]> git.ipfire.org Git - thirdparty/gcc.git/blob - libjava/classpath/configure
86e72ca6816fd759eae57c4891dd37b58e3b0b65
[thirdparty/gcc.git] / libjava / classpath / configure
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.
4 #
5 # Report bugs to <classpath@gnu.org>.
6 #
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.
10 #
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 ## -------------------- ##
16
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 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
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"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
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=';'
80 }
81 fi
82
83
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"
90
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
96 do
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
102
103 ;;
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
109 fi
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
113 fi
114
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='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
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 *) :
149 ;;
150 esac
151 fi
152 "
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; }
158
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 :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
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
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185 else
186 as_have_required=no
187 fi
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190 else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 do
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
199 /*)
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
208 fi
209 fi
210 done;;
211 esac
212 as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
219
220
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and classpath@gnu.org
240 $0: about your system, including any error possibly output
241 $0: before this message. Then install a modern shell, or
242 $0: manually run the script under such a shell if you do
243 $0: have one."
244 fi
245 exit 1
246 fi
247 fi
248 fi
249 SHELL=${CONFIG_SHELL-/bin/sh}
250 export SHELL
251 # Unset more variables known to interfere with behavior of common tools.
252 CLICOLOR_FORCE= GREP_OPTIONS=
253 unset CLICOLOR_FORCE GREP_OPTIONS
254
255 ## --------------------- ##
256 ## M4sh Shell Functions. ##
257 ## --------------------- ##
258 # as_fn_unset VAR
259 # ---------------
260 # Portably unset VAR.
261 as_fn_unset ()
262 {
263 { eval $1=; unset $1;}
264 }
265 as_unset=as_fn_unset
266
267 # as_fn_set_status STATUS
268 # -----------------------
269 # Set $? to STATUS, without forking.
270 as_fn_set_status ()
271 {
272 return $1
273 } # as_fn_set_status
274
275 # as_fn_exit STATUS
276 # -----------------
277 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 as_fn_exit ()
279 {
280 set +e
281 as_fn_set_status $1
282 exit $1
283 } # as_fn_exit
284
285 # as_fn_mkdir_p
286 # -------------
287 # Create "$as_dir" as a directory, including parents if necessary.
288 as_fn_mkdir_p ()
289 {
290
291 case $as_dir in #(
292 -*) as_dir=./$as_dir;;
293 esac
294 test -d "$as_dir" || eval $as_mkdir_p || {
295 as_dirs=
296 while :; do
297 case $as_dir in #(
298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
299 *) as_qdir=$as_dir;;
300 esac
301 as_dirs="'$as_qdir' $as_dirs"
302 as_dir=`$as_dirname -- "$as_dir" ||
303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304 X"$as_dir" : 'X\(//\)[^/]' \| \
305 X"$as_dir" : 'X\(//\)$' \| \
306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307 $as_echo X"$as_dir" |
308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
309 s//\1/
310 q
311 }
312 /^X\(\/\/\)[^/].*/{
313 s//\1/
314 q
315 }
316 /^X\(\/\/\)$/{
317 s//\1/
318 q
319 }
320 /^X\(\/\).*/{
321 s//\1/
322 q
323 }
324 s/.*/./; q'`
325 test -d "$as_dir" && break
326 done
327 test -z "$as_dirs" || eval "mkdir $as_dirs"
328 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329
330
331 } # as_fn_mkdir_p
332 # as_fn_append VAR VALUE
333 # ----------------------
334 # Append the text in VALUE to the end of the definition contained in VAR. Take
335 # advantage of any shell optimizations that allow amortized linear growth over
336 # repeated appends, instead of the typical quadratic growth present in naive
337 # implementations.
338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
339 eval 'as_fn_append ()
340 {
341 eval $1+=\$2
342 }'
343 else
344 as_fn_append ()
345 {
346 eval $1=\$$1\$2
347 }
348 fi # as_fn_append
349
350 # as_fn_arith ARG...
351 # ------------------
352 # Perform arithmetic evaluation on the ARGs, and store the result in the
353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
354 # must be portable across $(()) and expr.
355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356 eval 'as_fn_arith ()
357 {
358 as_val=$(( $* ))
359 }'
360 else
361 as_fn_arith ()
362 {
363 as_val=`expr "$@" || test $? -eq 1`
364 }
365 fi # as_fn_arith
366
367
368 # as_fn_error ERROR [LINENO LOG_FD]
369 # ---------------------------------
370 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372 # script with status $?, using 1 if that was 0.
373 as_fn_error ()
374 {
375 as_status=$?; test $as_status -eq 0 && as_status=1
376 if test "$3"; then
377 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
379 fi
380 $as_echo "$as_me: error: $1" >&2
381 as_fn_exit $as_status
382 } # as_fn_error
383
384 if expr a : '\(a\)' >/dev/null 2>&1 &&
385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
386 as_expr=expr
387 else
388 as_expr=false
389 fi
390
391 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 as_basename=basename
393 else
394 as_basename=false
395 fi
396
397 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_dirname=dirname
399 else
400 as_dirname=false
401 fi
402
403 as_me=`$as_basename -- "$0" ||
404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405 X"$0" : 'X\(//\)$' \| \
406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 $as_echo X/"$0" |
408 sed '/^.*\/\([^/][^/]*\)\/*$/{
409 s//\1/
410 q
411 }
412 /^X\/\(\/\/\)$/{
413 s//\1/
414 q
415 }
416 /^X\/\(\/\).*/{
417 s//\1/
418 q
419 }
420 s/.*/./; q'`
421
422 # Avoid depending upon Character Ranges.
423 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
424 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
426 as_cr_digits='0123456789'
427 as_cr_alnum=$as_cr_Letters$as_cr_digits
428
429
430 as_lineno_1=$LINENO as_lineno_1a=$LINENO
431 as_lineno_2=$LINENO as_lineno_2a=$LINENO
432 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
434 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 sed -n '
436 p
437 /[$]LINENO/=
438 ' <$as_myself |
439 sed '
440 s/[$]LINENO.*/&-/
441 t lineno
442 b
443 :lineno
444 N
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 t loop
448 s/-\n.*//
449 ' >$as_me.lineno &&
450 chmod +x "$as_me.lineno" ||
451 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
459 }
460
461 ECHO_C= ECHO_N= ECHO_T=
462 case `echo -n x` in #(((((
463 -n*)
464 case `echo 'xy\c'` in
465 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 xy) ECHO_C='\c';;
467 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 ECHO_T=' ';;
469 esac;;
470 *)
471 ECHO_N='-n';;
472 esac
473
474 rm -f conf$$ conf$$.exe conf$$.file
475 if test -d conf$$.dir; then
476 rm -f conf$$.dir/conf$$.file
477 else
478 rm -f conf$$.dir
479 mkdir conf$$.dir 2>/dev/null
480 fi
481 if (echo >conf$$.file) 2>/dev/null; then
482 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s='ln -s'
484 # ... but there are two gotchas:
485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487 # In both cases, we have to default to `cp -p'.
488 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 as_ln_s='cp -p'
490 elif ln conf$$.file conf$$ 2>/dev/null; then
491 as_ln_s=ln
492 else
493 as_ln_s='cp -p'
494 fi
495 else
496 as_ln_s='cp -p'
497 fi
498 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499 rmdir conf$$.dir 2>/dev/null
500
501 if mkdir -p . 2>/dev/null; then
502 as_mkdir_p='mkdir -p "$as_dir"'
503 else
504 test -d ./-p && rmdir ./-p
505 as_mkdir_p=false
506 fi
507
508 if test -x / >/dev/null 2>&1; then
509 as_test_x='test -x'
510 else
511 if ls -dL / >/dev/null 2>&1; then
512 as_ls_L_option=L
513 else
514 as_ls_L_option=
515 fi
516 as_test_x='
517 eval sh -c '\''
518 if test -d "$1"; then
519 test -d "$1/.";
520 else
521 case $1 in #(
522 -*)set "./$1";;
523 esac;
524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525 ???[sx]*):;;*)false;;esac;fi
526 '\'' sh
527 '
528 fi
529 as_executable_p=$as_test_x
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537 SHELL=${CONFIG_SHELL-/bin/sh}
538
539
540 exec 7<&0 </dev/null 6>&1
541
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547 #
548 # Initializations.
549 #
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558
559 # Identity of this package.
560 PACKAGE_NAME='GNU Classpath'
561 PACKAGE_TARNAME='classpath'
562 PACKAGE_VERSION='0.98'
563 PACKAGE_STRING='GNU Classpath 0.98'
564 PACKAGE_BUGREPORT='classpath@gnu.org'
565 PACKAGE_URL='http://www.gnu.org/software/classpath/'
566
567 ac_unique_file="java/lang/System.java"
568 ac_default_prefix=/usr/local/classpath
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 CREATE_GMPBI_LIBRARY_FALSE
610 CREATE_GMPBI_LIBRARY_TRUE
611 WANT_NATIVE_BIG_INTEGER
612 DEFAULT_PREFS_PEER
613 ENABLE_LOCAL_SOCKETS_FALSE
614 ENABLE_LOCAL_SOCKETS_TRUE
615 PATH_TO_ESCHER
616 USE_ESCHER_FALSE
617 USE_ESCHER_TRUE
618 JAVAC_MEM_OPT
619 ac_ct_ANTLR
620 ANTLR
621 ANTLR_JAR
622 GCJ_JAVAC_FALSE
623 GCJ_JAVAC_TRUE
624 JAVAC_IS_GCJ
625 JAVAC
626 uudecode
627 JAVA
628 PATH_TO_GLIBJ_ZIP
629 USE_PREBUILT_GLIBJ_ZIP_FALSE
630 USE_PREBUILT_GLIBJ_ZIP_TRUE
631 REGEN_PARSERS_FALSE
632 REGEN_PARSERS_TRUE
633 JAY_SKELETON
634 JAY
635 CREATE_API_DOCS_FALSE
636 CREATE_API_DOCS_TRUE
637 GJDOC
638 TOOLSDIR
639 EXAMPLESDIR
640 BUILD_CLASS_FILES_FALSE
641 BUILD_CLASS_FILES_TRUE
642 INSTALL_CLASS_FILES_FALSE
643 INSTALL_CLASS_FILES_TRUE
644 INSTALL_GLIBJ_ZIP_FALSE
645 INSTALL_GLIBJ_ZIP_TRUE
646 WITH_JAR_FALSE
647 WITH_JAR_TRUE
648 JAR
649 ZIP
650 FIND
651 DATE
652 CP
653 MKDIR
654 REMOVE
655 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION
656 ECJ_JAR
657 INIT_LOAD_LIBRARY
658 LIBDEBUG
659 MAINT
660 MAINTAINER_MODE_FALSE
661 MAINTAINER_MODE_TRUE
662 vm_classes
663 CLASSPATH_INCLUDES
664 USER_JAVAH
665 GMP_LIBS
666 GMP_CFLAGS
667 PLUGIN_DIR
668 GLIB_LIBS
669 GLIB_CFLAGS
670 MOZILLA_LIBS
671 MOZILLA_CFLAGS
672 MOC
673 QT_LIBS
674 QT_CFLAGS
675 GSTREAMER_MIXER_PROVIDER
676 GSTREAMER_FILE_READER
677 GST_PLUGIN_LDFLAGS
678 GSTREAMER_PLUGINS_BASE_LIBS
679 GSTREAMER_PLUGINS_BASE_CFLAGS
680 GSTREAMER_BASE_LIBS
681 GSTREAMER_BASE_CFLAGS
682 GSTREAMER_LIBS
683 GSTREAMER_CFLAGS
684 GDK_LIBS
685 GDK_CFLAGS
686 GCONF_LIBS
687 GCONF_CFLAGS
688 XTEST_LIBS
689 CAIRO_LIBS
690 CAIRO_CFLAGS
691 PANGOFT2_LIBS
692 PANGOFT2_CFLAGS
693 FREETYPE2_LIBS
694 FREETYPE2_CFLAGS
695 GTK_LIBS
696 GTK_CFLAGS
697 X_EXTRA_LIBS
698 X_LIBS
699 X_PRE_LIBS
700 X_CFLAGS
701 XMKMF
702 XSLT_LIBS
703 XSLT_CFLAGS
704 XML_LIBS
705 XML_CFLAGS
706 PKG_CONFIG
707 ERROR_CFLAGS
708 STRICT_WARNING_CFLAGS
709 EXTRA_CFLAGS
710 WARNING_CFLAGS
711 LTLIBICONV
712 LIBICONV
713 LIBMAGIC
714 COLLECTIONS_PREFIX
715 PERL
716 CXXCPP
717 am__fastdepCXX_FALSE
718 am__fastdepCXX_TRUE
719 CXXDEPMODE
720 ac_ct_CXX
721 CXXFLAGS
722 CXX
723 OTOOL64
724 OTOOL
725 LIPO
726 NMEDIT
727 DSYMUTIL
728 RANLIB
729 AR
730 OBJDUMP
731 NM
732 ac_ct_DUMPBIN
733 DUMPBIN
734 LD
735 FGREP
736 SED
737 LIBTOOL
738 LN_S
739 CREATE_WRAPPERS_FALSE
740 CREATE_WRAPPERS_TRUE
741 CREATE_GJDOC_PARSER_FALSE
742 CREATE_GJDOC_PARSER_TRUE
743 CREATE_JNI_HEADERS_FALSE
744 CREATE_JNI_HEADERS_TRUE
745 glibjdir
746 nativeexeclibdir
747 toolexeclibdir
748 CREATE_GJDOC_FALSE
749 CREATE_GJDOC_TRUE
750 CREATE_PLUGIN_FALSE
751 CREATE_PLUGIN_TRUE
752 CREATE_QT_PEER_LIBRARIES_FALSE
753 CREATE_QT_PEER_LIBRARIES_TRUE
754 CREATE_GTK_PEER_LIBRARIES_FALSE
755 CREATE_GTK_PEER_LIBRARIES_TRUE
756 CREATE_DSSI_LIBRARIES_FALSE
757 CREATE_DSSI_LIBRARIES_TRUE
758 CREATE_ALSA_LIBRARIES_FALSE
759 CREATE_ALSA_LIBRARIES_TRUE
760 EGREP
761 GREP
762 CPP
763 am__fastdepCC_FALSE
764 am__fastdepCC_TRUE
765 CCDEPMODE
766 AMDEPBACKSLASH
767 AMDEP_FALSE
768 AMDEP_TRUE
769 am__quote
770 am__include
771 DEPDIR
772 OBJEXT
773 EXEEXT
774 ac_ct_CC
775 CPPFLAGS
776 LDFLAGS
777 CFLAGS
778 CC
779 CREATE_XMLJ_LIBRARY_FALSE
780 CREATE_XMLJ_LIBRARY_TRUE
781 default_toolkit
782 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE
783 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE
784 CREATE_GCONF_PEER_LIBRARIES_FALSE
785 CREATE_GCONF_PEER_LIBRARIES_TRUE
786 CREATE_CORE_JNI_LIBRARIES_FALSE
787 CREATE_CORE_JNI_LIBRARIES_TRUE
788 CREATE_JNI_LIBRARIES_FALSE
789 CREATE_JNI_LIBRARIES_TRUE
790 CREATE_COLLECTIONS_FALSE
791 CREATE_COLLECTIONS_TRUE
792 am__untar
793 am__tar
794 AMTAR
795 am__leading_dot
796 SET_MAKE
797 AWK
798 mkdir_p
799 MKDIR_P
800 INSTALL_STRIP_PROGRAM
801 STRIP
802 install_sh
803 MAKEINFO
804 AUTOHEADER
805 AUTOMAKE
806 AUTOCONF
807 ACLOCAL
808 VERSION
809 PACKAGE
810 CYGPATH_W
811 am__isrc
812 INSTALL_DATA
813 INSTALL_SCRIPT
814 INSTALL_PROGRAM
815 CLASSPATH_CONVENIENCE
816 CLASSPATH_MODULE
817 LIBVERSION
818 INSTALL_BINARIES_FALSE
819 INSTALL_BINARIES_TRUE
820 multi_basedir
821 GENINSRC_FALSE
822 GENINSRC_TRUE
823 JAVA_MAINTAINER_MODE_FALSE
824 JAVA_MAINTAINER_MODE_TRUE
825 target_os
826 target_vendor
827 target_cpu
828 target
829 host_os
830 host_vendor
831 host_cpu
832 host
833 build_os
834 build_vendor
835 build_cpu
836 build
837 target_alias
838 host_alias
839 build_alias
840 LIBS
841 ECHO_T
842 ECHO_N
843 ECHO_C
844 DEFS
845 mandir
846 localedir
847 libdir
848 psdir
849 pdfdir
850 dvidir
851 htmldir
852 infodir
853 docdir
854 oldincludedir
855 includedir
856 localstatedir
857 sharedstatedir
858 sysconfdir
859 datadir
860 datarootdir
861 libexecdir
862 sbindir
863 bindir
864 program_transform_name
865 prefix
866 exec_prefix
867 PACKAGE_URL
868 PACKAGE_BUGREPORT
869 PACKAGE_STRING
870 PACKAGE_VERSION
871 PACKAGE_TARNAME
872 PACKAGE_NAME
873 PATH_SEPARATOR
874 SHELL'
875 ac_subst_files=''
876 ac_user_opts='
877 enable_option_checking
878 enable_java_maintainer_mode
879 enable_generated_files_in_srcdir
880 enable_multilib
881 enable_collections
882 enable_jni
883 enable_core_jni
884 enable_default_preferences_peer
885 enable_gconf_peer
886 enable_gconf_peers
887 enable_gstreamer_peer
888 enable_gstreamer_peers
889 enable_Werror
890 enable_default_toolkit
891 enable_xmlj
892 enable_alsa
893 enable_dependency_tracking
894 enable_dssi
895 enable_gtk_peer
896 enable_gtk_peers
897 enable_qt_peer
898 enable_plugin
899 enable_gmp
900 enable_gjdoc
901 with_native_libdir
902 with_glibj_dir
903 with_antlr_jar
904 enable_regen_headers
905 enable_regen_gjdoc_parser
906 enable_tool_wrappers
907 enable_static
908 enable_shared
909 with_pic
910 enable_fast_install
911 with_gnu_ld
912 enable_libtool_lock
913 enable_rpath
914 with_libiconv_prefix
915 with_x
916 with_qt4dir
917 with_javah
918 with_vm_classes
919 enable_maintainer_mode
920 enable_debug
921 enable_load_library
922 with_ecj_jar
923 enable_java_lang_system_explicit_initialization
924 with_jar
925 with_glibj
926 enable_examples
927 enable_tools
928 with_gjdoc
929 with_jay
930 enable_portable_native_sync
931 with_glibj_zip
932 with_escher
933 enable_local_sockets
934 '
935 ac_precious_vars='build_alias
936 host_alias
937 target_alias
938 CC
939 CFLAGS
940 LDFLAGS
941 LIBS
942 CPPFLAGS
943 CPP
944 CXX
945 CXXFLAGS
946 CCC
947 CXXCPP
948 XMKMF'
949
950
951 # Initialize some variables set by options.
952 ac_init_help=
953 ac_init_version=false
954 ac_unrecognized_opts=
955 ac_unrecognized_sep=
956 # The variables have the same names as the options, with
957 # dashes changed to underlines.
958 cache_file=/dev/null
959 exec_prefix=NONE
960 no_create=
961 no_recursion=
962 prefix=NONE
963 program_prefix=NONE
964 program_suffix=NONE
965 program_transform_name=s,x,x,
966 silent=
967 site=
968 srcdir=
969 verbose=
970 x_includes=NONE
971 x_libraries=NONE
972
973 # Installation directory options.
974 # These are left unexpanded so users can "make install exec_prefix=/foo"
975 # and all the variables that are supposed to be based on exec_prefix
976 # by default will actually change.
977 # Use braces instead of parens because sh, perl, etc. also accept them.
978 # (The list follows the same order as the GNU Coding Standards.)
979 bindir='${exec_prefix}/bin'
980 sbindir='${exec_prefix}/sbin'
981 libexecdir='${exec_prefix}/libexec'
982 datarootdir='${prefix}/share'
983 datadir='${datarootdir}'
984 sysconfdir='${prefix}/etc'
985 sharedstatedir='${prefix}/com'
986 localstatedir='${prefix}/var'
987 includedir='${prefix}/include'
988 oldincludedir='/usr/include'
989 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
990 infodir='${datarootdir}/info'
991 htmldir='${docdir}'
992 dvidir='${docdir}'
993 pdfdir='${docdir}'
994 psdir='${docdir}'
995 libdir='${exec_prefix}/lib'
996 localedir='${datarootdir}/locale'
997 mandir='${datarootdir}/man'
998
999 ac_prev=
1000 ac_dashdash=
1001 for ac_option
1002 do
1003 # If the previous option needs an argument, assign it.
1004 if test -n "$ac_prev"; then
1005 eval $ac_prev=\$ac_option
1006 ac_prev=
1007 continue
1008 fi
1009
1010 case $ac_option in
1011 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012 *) ac_optarg=yes ;;
1013 esac
1014
1015 # Accept the important Cygnus configure options, so we can diagnose typos.
1016
1017 case $ac_dashdash$ac_option in
1018 --)
1019 ac_dashdash=yes ;;
1020
1021 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022 ac_prev=bindir ;;
1023 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024 bindir=$ac_optarg ;;
1025
1026 -build | --build | --buil | --bui | --bu)
1027 ac_prev=build_alias ;;
1028 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029 build_alias=$ac_optarg ;;
1030
1031 -cache-file | --cache-file | --cache-fil | --cache-fi \
1032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033 ac_prev=cache_file ;;
1034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036 cache_file=$ac_optarg ;;
1037
1038 --config-cache | -C)
1039 cache_file=config.cache ;;
1040
1041 -datadir | --datadir | --datadi | --datad)
1042 ac_prev=datadir ;;
1043 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1044 datadir=$ac_optarg ;;
1045
1046 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047 | --dataroo | --dataro | --datar)
1048 ac_prev=datarootdir ;;
1049 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051 datarootdir=$ac_optarg ;;
1052
1053 -disable-* | --disable-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error "invalid feature name: $ac_useropt"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1061 *"
1062 "enable_$ac_useropt"
1063 "*) ;;
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1066 esac
1067 eval enable_$ac_useropt=no ;;
1068
1069 -docdir | --docdir | --docdi | --doc | --do)
1070 ac_prev=docdir ;;
1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072 docdir=$ac_optarg ;;
1073
1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075 ac_prev=dvidir ;;
1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077 dvidir=$ac_optarg ;;
1078
1079 -enable-* | --enable-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error "invalid feature name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1087 *"
1088 "enable_$ac_useropt"
1089 "*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval enable_$ac_useropt=\$ac_optarg ;;
1094
1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097 | --exec | --exe | --ex)
1098 ac_prev=exec_prefix ;;
1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101 | --exec=* | --exe=* | --ex=*)
1102 exec_prefix=$ac_optarg ;;
1103
1104 -gas | --gas | --ga | --g)
1105 # Obsolete; use --with-gas.
1106 with_gas=yes ;;
1107
1108 -help | --help | --hel | --he | -h)
1109 ac_init_help=long ;;
1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111 ac_init_help=recursive ;;
1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113 ac_init_help=short ;;
1114
1115 -host | --host | --hos | --ho)
1116 ac_prev=host_alias ;;
1117 -host=* | --host=* | --hos=* | --ho=*)
1118 host_alias=$ac_optarg ;;
1119
1120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121 ac_prev=htmldir ;;
1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123 | --ht=*)
1124 htmldir=$ac_optarg ;;
1125
1126 -includedir | --includedir | --includedi | --included | --include \
1127 | --includ | --inclu | --incl | --inc)
1128 ac_prev=includedir ;;
1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130 | --includ=* | --inclu=* | --incl=* | --inc=*)
1131 includedir=$ac_optarg ;;
1132
1133 -infodir | --infodir | --infodi | --infod | --info | --inf)
1134 ac_prev=infodir ;;
1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136 infodir=$ac_optarg ;;
1137
1138 -libdir | --libdir | --libdi | --libd)
1139 ac_prev=libdir ;;
1140 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141 libdir=$ac_optarg ;;
1142
1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144 | --libexe | --libex | --libe)
1145 ac_prev=libexecdir ;;
1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147 | --libexe=* | --libex=* | --libe=*)
1148 libexecdir=$ac_optarg ;;
1149
1150 -localedir | --localedir | --localedi | --localed | --locale)
1151 ac_prev=localedir ;;
1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153 localedir=$ac_optarg ;;
1154
1155 -localstatedir | --localstatedir | --localstatedi | --localstated \
1156 | --localstate | --localstat | --localsta | --localst | --locals)
1157 ac_prev=localstatedir ;;
1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1160 localstatedir=$ac_optarg ;;
1161
1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163 ac_prev=mandir ;;
1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165 mandir=$ac_optarg ;;
1166
1167 -nfp | --nfp | --nf)
1168 # Obsolete; use --without-fp.
1169 with_fp=no ;;
1170
1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172 | --no-cr | --no-c | -n)
1173 no_create=yes ;;
1174
1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177 no_recursion=yes ;;
1178
1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181 | --oldin | --oldi | --old | --ol | --o)
1182 ac_prev=oldincludedir ;;
1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186 oldincludedir=$ac_optarg ;;
1187
1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189 ac_prev=prefix ;;
1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191 prefix=$ac_optarg ;;
1192
1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194 | --program-pre | --program-pr | --program-p)
1195 ac_prev=program_prefix ;;
1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198 program_prefix=$ac_optarg ;;
1199
1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201 | --program-suf | --program-su | --program-s)
1202 ac_prev=program_suffix ;;
1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205 program_suffix=$ac_optarg ;;
1206
1207 -program-transform-name | --program-transform-name \
1208 | --program-transform-nam | --program-transform-na \
1209 | --program-transform-n | --program-transform- \
1210 | --program-transform | --program-transfor \
1211 | --program-transfo | --program-transf \
1212 | --program-trans | --program-tran \
1213 | --progr-tra | --program-tr | --program-t)
1214 ac_prev=program_transform_name ;;
1215 -program-transform-name=* | --program-transform-name=* \
1216 | --program-transform-nam=* | --program-transform-na=* \
1217 | --program-transform-n=* | --program-transform-=* \
1218 | --program-transform=* | --program-transfor=* \
1219 | --program-transfo=* | --program-transf=* \
1220 | --program-trans=* | --program-tran=* \
1221 | --progr-tra=* | --program-tr=* | --program-t=*)
1222 program_transform_name=$ac_optarg ;;
1223
1224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225 ac_prev=pdfdir ;;
1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227 pdfdir=$ac_optarg ;;
1228
1229 -psdir | --psdir | --psdi | --psd | --ps)
1230 ac_prev=psdir ;;
1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232 psdir=$ac_optarg ;;
1233
1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235 | -silent | --silent | --silen | --sile | --sil)
1236 silent=yes ;;
1237
1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239 ac_prev=sbindir ;;
1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241 | --sbi=* | --sb=*)
1242 sbindir=$ac_optarg ;;
1243
1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246 | --sharedst | --shareds | --shared | --share | --shar \
1247 | --sha | --sh)
1248 ac_prev=sharedstatedir ;;
1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252 | --sha=* | --sh=*)
1253 sharedstatedir=$ac_optarg ;;
1254
1255 -site | --site | --sit)
1256 ac_prev=site ;;
1257 -site=* | --site=* | --sit=*)
1258 site=$ac_optarg ;;
1259
1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261 ac_prev=srcdir ;;
1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263 srcdir=$ac_optarg ;;
1264
1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266 | --syscon | --sysco | --sysc | --sys | --sy)
1267 ac_prev=sysconfdir ;;
1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270 sysconfdir=$ac_optarg ;;
1271
1272 -target | --target | --targe | --targ | --tar | --ta | --t)
1273 ac_prev=target_alias ;;
1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275 target_alias=$ac_optarg ;;
1276
1277 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278 verbose=yes ;;
1279
1280 -version | --version | --versio | --versi | --vers | -V)
1281 ac_init_version=: ;;
1282
1283 -with-* | --with-*)
1284 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287 as_fn_error "invalid package name: $ac_useropt"
1288 ac_useropt_orig=$ac_useropt
1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290 case $ac_user_opts in
1291 *"
1292 "with_$ac_useropt"
1293 "*) ;;
1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1295 ac_unrecognized_sep=', ';;
1296 esac
1297 eval with_$ac_useropt=\$ac_optarg ;;
1298
1299 -without-* | --without-*)
1300 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303 as_fn_error "invalid package name: $ac_useropt"
1304 ac_useropt_orig=$ac_useropt
1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1307 *"
1308 "with_$ac_useropt"
1309 "*) ;;
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1311 ac_unrecognized_sep=', ';;
1312 esac
1313 eval with_$ac_useropt=no ;;
1314
1315 --x)
1316 # Obsolete; use --with-x.
1317 with_x=yes ;;
1318
1319 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1320 | --x-incl | --x-inc | --x-in | --x-i)
1321 ac_prev=x_includes ;;
1322 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1323 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1324 x_includes=$ac_optarg ;;
1325
1326 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1327 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1328 ac_prev=x_libraries ;;
1329 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1330 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1331 x_libraries=$ac_optarg ;;
1332
1333 -*) as_fn_error "unrecognized option: \`$ac_option'
1334 Try \`$0 --help' for more information."
1335 ;;
1336
1337 *=*)
1338 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1339 # Reject names that are not valid shell variable names.
1340 case $ac_envvar in #(
1341 '' | [0-9]* | *[!_$as_cr_alnum]* )
1342 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1343 esac
1344 eval $ac_envvar=\$ac_optarg
1345 export $ac_envvar ;;
1346
1347 *)
1348 # FIXME: should be removed in autoconf 3.0.
1349 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1350 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1351 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1352 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1353 ;;
1354
1355 esac
1356 done
1357
1358 if test -n "$ac_prev"; then
1359 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1360 as_fn_error "missing argument to $ac_option"
1361 fi
1362
1363 if test -n "$ac_unrecognized_opts"; then
1364 case $enable_option_checking in
1365 no) ;;
1366 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1367 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1368 esac
1369 fi
1370
1371 # Check all directory arguments for consistency.
1372 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1373 datadir sysconfdir sharedstatedir localstatedir includedir \
1374 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1375 libdir localedir mandir
1376 do
1377 eval ac_val=\$$ac_var
1378 # Remove trailing slashes.
1379 case $ac_val in
1380 */ )
1381 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1382 eval $ac_var=\$ac_val;;
1383 esac
1384 # Be sure to have absolute directory names.
1385 case $ac_val in
1386 [\\/$]* | ?:[\\/]* ) continue;;
1387 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1388 esac
1389 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1390 done
1391
1392 # There might be people who depend on the old broken behavior: `$host'
1393 # used to hold the argument of --host etc.
1394 # FIXME: To remove some day.
1395 build=$build_alias
1396 host=$host_alias
1397 target=$target_alias
1398
1399 # FIXME: To remove some day.
1400 if test "x$host_alias" != x; then
1401 if test "x$build_alias" = x; then
1402 cross_compiling=maybe
1403 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1404 If a cross compiler is detected then cross compile mode will be used." >&2
1405 elif test "x$build_alias" != "x$host_alias"; then
1406 cross_compiling=yes
1407 fi
1408 fi
1409
1410 ac_tool_prefix=
1411 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1412
1413 test "$silent" = yes && exec 6>/dev/null
1414
1415
1416 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1417 ac_ls_di=`ls -di .` &&
1418 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1419 as_fn_error "working directory cannot be determined"
1420 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1421 as_fn_error "pwd does not report name of working directory"
1422
1423
1424 # Find the source files, if location was not specified.
1425 if test -z "$srcdir"; then
1426 ac_srcdir_defaulted=yes
1427 # Try the directory containing this script, then the parent directory.
1428 ac_confdir=`$as_dirname -- "$as_myself" ||
1429 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1430 X"$as_myself" : 'X\(//\)[^/]' \| \
1431 X"$as_myself" : 'X\(//\)$' \| \
1432 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1433 $as_echo X"$as_myself" |
1434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1435 s//\1/
1436 q
1437 }
1438 /^X\(\/\/\)[^/].*/{
1439 s//\1/
1440 q
1441 }
1442 /^X\(\/\/\)$/{
1443 s//\1/
1444 q
1445 }
1446 /^X\(\/\).*/{
1447 s//\1/
1448 q
1449 }
1450 s/.*/./; q'`
1451 srcdir=$ac_confdir
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 srcdir=..
1454 fi
1455 else
1456 ac_srcdir_defaulted=no
1457 fi
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1460 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1461 fi
1462 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1463 ac_abs_confdir=`(
1464 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1465 pwd)`
1466 # When building in place, set srcdir=.
1467 if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 srcdir=.
1469 fi
1470 # Remove unnecessary trailing slashes from srcdir.
1471 # Double slashes in file names in object file debugging info
1472 # mess up M-x gdb in Emacs.
1473 case $srcdir in
1474 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475 esac
1476 for ac_var in $ac_precious_vars; do
1477 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_env_${ac_var}_value=\$${ac_var}
1479 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1481 done
1482
1483 #
1484 # Report the --help message.
1485 #
1486 if test "$ac_init_help" = "long"; then
1487 # Omit some internal or obsolete options to make the list less imposing.
1488 # This message is too long to be a string in the A/UX 3.1 sh.
1489 cat <<_ACEOF
1490 \`configure' configures GNU Classpath 0.98 to adapt to many kinds of systems.
1491
1492 Usage: $0 [OPTION]... [VAR=VALUE]...
1493
1494 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1495 VAR=VALUE. See below for descriptions of some of the useful variables.
1496
1497 Defaults for the options are specified in brackets.
1498
1499 Configuration:
1500 -h, --help display this help and exit
1501 --help=short display options specific to this package
1502 --help=recursive display the short help of all the included packages
1503 -V, --version display version information and exit
1504 -q, --quiet, --silent do not print \`checking...' messages
1505 --cache-file=FILE cache test results in FILE [disabled]
1506 -C, --config-cache alias for \`--cache-file=config.cache'
1507 -n, --no-create do not create output files
1508 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1509
1510 Installation directories:
1511 --prefix=PREFIX install architecture-independent files in PREFIX
1512 [$ac_default_prefix]
1513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1514 [PREFIX]
1515
1516 By default, \`make install' will install all the files in
1517 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1518 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1519 for instance \`--prefix=\$HOME'.
1520
1521 For better control, use the options below.
1522
1523 Fine tuning of the installation directories:
1524 --bindir=DIR user executables [EPREFIX/bin]
1525 --sbindir=DIR system admin executables [EPREFIX/sbin]
1526 --libexecdir=DIR program executables [EPREFIX/libexec]
1527 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1528 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1529 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1530 --libdir=DIR object code libraries [EPREFIX/lib]
1531 --includedir=DIR C header files [PREFIX/include]
1532 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1533 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1534 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1535 --infodir=DIR info documentation [DATAROOTDIR/info]
1536 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1537 --mandir=DIR man documentation [DATAROOTDIR/man]
1538 --docdir=DIR documentation root [DATAROOTDIR/doc/classpath]
1539 --htmldir=DIR html documentation [DOCDIR]
1540 --dvidir=DIR dvi documentation [DOCDIR]
1541 --pdfdir=DIR pdf documentation [DOCDIR]
1542 --psdir=DIR ps documentation [DOCDIR]
1543 _ACEOF
1544
1545 cat <<\_ACEOF
1546
1547 Program names:
1548 --program-prefix=PREFIX prepend PREFIX to installed program names
1549 --program-suffix=SUFFIX append SUFFIX to installed program names
1550 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1551
1552 X features:
1553 --x-includes=DIR X include files are in DIR
1554 --x-libraries=DIR X library files are in DIR
1555
1556 System types:
1557 --build=BUILD configure for building on BUILD [guessed]
1558 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1559 --target=TARGET configure for building compilers for TARGET [HOST]
1560 _ACEOF
1561 fi
1562
1563 if test -n "$ac_init_help"; then
1564 case $ac_init_help in
1565 short | recursive ) echo "Configuration of GNU Classpath 0.98:";;
1566 esac
1567 cat <<\_ACEOF
1568
1569 Optional Features:
1570 --disable-option-checking ignore unrecognized --enable/--with options
1571 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1572 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1573 --enable-java-maintainer-mode
1574 allow rebuilding of .class and .h files
1575 --enable-generated-files-in-srcdir
1576 put copies of generated files in source dir
1577 intended for creating source tarballs for users
1578 without texinfo, perl, bison or flex.
1579 --enable-multilib build many library versions (default)
1580 --enable-collections create collections.jar default=no
1581 --enable-jni compile JNI source default=yes
1582 --enable-core-jni compile JNI sources for core default=yes
1583 --enable-default-preferences-peer[=peer type or class name]
1584 specify one of: "gconf" [default] for a GConf based
1585 backend, "file" for a file based one, "memory" for a
1586 transient one, or a fully qualified class name
1587 implementing java.util.prefs.PreferencesFactory
1588 --disable-gconf-peer compile GConf native peers (disabled by
1589 --disable-jni) default=yes
1590
1591 --enable-gstreamer-peer compile GStreamer native peers (disabled by
1592 --disable-jni) default=no
1593 --enable-Werror whether to compile C code with -Werror which turns
1594 any compiler warning into a compilation failure
1595 default=no
1596 --enable-default-toolkit
1597 fully qualified class name of default AWT toolkit
1598 --enable-xmlj compile native libxml/xslt library default=no
1599 --disable-alsa compile ALSA providers (enable by --enable-alsa)
1600 default=yes
1601 --disable-dependency-tracking speeds up one-time build
1602 --enable-dependency-tracking do not reject slow dependency extractors
1603 --disable-dssi compile DSSI providers (enable by --enable-dssi)
1604 default=yes
1605 --disable-gtk-peer compile GTK native peers (disabled by --disable-jni)
1606 default=yes
1607 --enable-qt-peer compile Qt4 native peers (disabled by --disable-jni)
1608 default=no
1609 --disable-plugin compile gcjwebplugin (disabled by --disable-plugin)
1610 default=yes
1611 --enable-gmp compile native java.math.BigInteger library
1612 (disabled by --disable-gmp) default=yes
1613 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1614 default=yes
1615 --enable-regen-headers automatically regenerate JNI headers default=yes if
1616 headers don't exist
1617 --enable-regen-gjdoc-parser
1618 automatically regenerate the GJDoc parser
1619 default=yes if generated source doesn't exist
1620 --enable-tool-wrappers create tool wrapper binaries default=no
1621 --enable-static[=PKGS] build static libraries [default=no]
1622 --enable-shared[=PKGS] build shared libraries [default=yes]
1623 --enable-fast-install[=PKGS]
1624 optimize for fast installation [default=yes]
1625 --disable-libtool-lock avoid locking (might break parallel builds)
1626 --disable-rpath do not hardcode runtime library paths
1627 --enable-maintainer-mode enable make rules and dependencies not useful
1628 (and sometimes confusing) to the casual installer
1629 --enable-debug enable runtime debugging code
1630 --enable-load-library enable to use JNI native methods default=yes
1631 --enable-java-lang-system-explicit-initialization
1632 will the VM explicitly invoke java.lang.System's
1633 static initialization methods default=no
1634 --enable-examples enable build of the examples default=yes
1635 --enable-tools enable build of the tools default=yes
1636 --enable-portable-native-sync
1637 synchronize VM threads portably
1638 --enable-local-sockets enables local (AF_LOCAL) socket API default: no
1639
1640 Optional Packages:
1641 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1642 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1643 --with-native-libdir sets the installation directory for native libraries
1644 default='${libdir}/${PACKAGE}'
1645 --with-glibj-dir sets the installation directory for glibj.zip
1646 default='${libdir}/${PACKAGE}'
1647 --with-antlr-jar=file Use ANTLR from the specified jar file
1648 --with-pic try to use only PIC/non-PIC objects [default=use
1649 both]
1650 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1651 --with-gnu-ld assume the C compiler uses GNU ld default=no
1652 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1653 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1654 --with-x use the X Window System
1655 --with-qt4dir=DIR Qt4 installation directory used for OS-X. For other
1656 systems use pkg-config.
1657 --with-javah specify path or name of a javah-like program
1658 --with-vm-classes specify path to VM override source files
1659 --with-ecj-jar=ABS.PATH specify jar file containing the Eclipse Java
1660 Compiler
1661 --with-jar=PATH define to use a jar style tool
1662 --with-glibj define what to install (zip|flat|both|none|build)
1663 [default=zip]
1664 --with-gjdoc generate documentation using gjdoc (default is NO)
1665 --with-jay=DIR|PATH Regenerate the parsers with jay
1666 --with-glibj-zip=ABS.PATH
1667 use prebuilt glibj.zip class library
1668 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1669
1670 Some influential environment variables:
1671 CC C compiler command
1672 CFLAGS C compiler flags
1673 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1674 nonstandard directory <lib dir>
1675 LIBS libraries to pass to the linker, e.g. -l<library>
1676 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1677 you have headers in a nonstandard directory <include dir>
1678 CPP C preprocessor
1679 CXX C++ compiler command
1680 CXXFLAGS C++ compiler flags
1681 CXXCPP C++ preprocessor
1682 XMKMF Path to xmkmf, Makefile generator for X Window System
1683
1684 Use these variables to override the choices made by `configure' or to help
1685 it to find libraries and programs with nonstandard names/locations.
1686
1687 Report bugs to <classpath@gnu.org>.
1688 GNU Classpath home page: <http://www.gnu.org/software/classpath/>.
1689 General help using GNU software: <http://www.gnu.org/gethelp/>.
1690 _ACEOF
1691 ac_status=$?
1692 fi
1693
1694 if test "$ac_init_help" = "recursive"; then
1695 # If there are subdirs, report their specific --help.
1696 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1697 test -d "$ac_dir" ||
1698 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1699 continue
1700 ac_builddir=.
1701
1702 case "$ac_dir" in
1703 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704 *)
1705 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1706 # A ".." for each directory in $ac_dir_suffix.
1707 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1708 case $ac_top_builddir_sub in
1709 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1711 esac ;;
1712 esac
1713 ac_abs_top_builddir=$ac_pwd
1714 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1715 # for backward compatibility:
1716 ac_top_builddir=$ac_top_build_prefix
1717
1718 case $srcdir in
1719 .) # We are building in place.
1720 ac_srcdir=.
1721 ac_top_srcdir=$ac_top_builddir_sub
1722 ac_abs_top_srcdir=$ac_pwd ;;
1723 [\\/]* | ?:[\\/]* ) # Absolute name.
1724 ac_srcdir=$srcdir$ac_dir_suffix;
1725 ac_top_srcdir=$srcdir
1726 ac_abs_top_srcdir=$srcdir ;;
1727 *) # Relative name.
1728 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1729 ac_top_srcdir=$ac_top_build_prefix$srcdir
1730 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1731 esac
1732 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1733
1734 cd "$ac_dir" || { ac_status=$?; continue; }
1735 # Check for guested configure.
1736 if test -f "$ac_srcdir/configure.gnu"; then
1737 echo &&
1738 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1739 elif test -f "$ac_srcdir/configure"; then
1740 echo &&
1741 $SHELL "$ac_srcdir/configure" --help=recursive
1742 else
1743 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1744 fi || ac_status=$?
1745 cd "$ac_pwd" || { ac_status=$?; break; }
1746 done
1747 fi
1748
1749 test -n "$ac_init_help" && exit $ac_status
1750 if $ac_init_version; then
1751 cat <<\_ACEOF
1752 GNU Classpath configure 0.98
1753 generated by GNU Autoconf 2.64
1754
1755 Copyright (C) 2009 Free Software Foundation, Inc.
1756 This configure script is free software; the Free Software Foundation
1757 gives unlimited permission to copy, distribute and modify it.
1758 _ACEOF
1759 exit
1760 fi
1761
1762 ## ------------------------ ##
1763 ## Autoconf initialization. ##
1764 ## ------------------------ ##
1765
1766 # ac_fn_c_try_compile LINENO
1767 # --------------------------
1768 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_c_try_compile ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 rm -f conftest.$ac_objext
1773 if { { ac_try="$ac_compile"
1774 case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_compile") 2>conftest.err
1781 ac_status=$?
1782 if test -s conftest.err; then
1783 grep -v '^ *+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1786 fi
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && {
1789 test -z "$ac_c_werror_flag" ||
1790 test ! -s conftest.err
1791 } && test -s conftest.$ac_objext; then :
1792 ac_retval=0
1793 else
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=1
1798 fi
1799 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800 return $ac_retval
1801
1802 } # ac_fn_c_try_compile
1803
1804 # ac_fn_c_try_cpp LINENO
1805 # ----------------------
1806 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_c_try_cpp ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if { { ac_try="$ac_cpp conftest.$ac_ext"
1811 case "(($ac_try" in
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1818 ac_status=$?
1819 if test -s conftest.err; then
1820 grep -v '^ *+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1823 fi
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } >/dev/null && {
1826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1827 test ! -s conftest.err
1828 }; then :
1829 ac_retval=0
1830 else
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1833
1834 ac_retval=1
1835 fi
1836 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837 return $ac_retval
1838
1839 } # ac_fn_c_try_cpp
1840
1841 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1842 # -------------------------------------------------------
1843 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1844 # the include files in INCLUDES and setting the cache variable VAR
1845 # accordingly.
1846 ac_fn_c_check_header_mongrel ()
1847 {
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1853 $as_echo_n "(cached) " >&6
1854 fi
1855 eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 else
1859 # Is the header compilable?
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1861 $as_echo_n "checking $2 usability... " >&6; }
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1864 $4
1865 #include <$2>
1866 _ACEOF
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868 ac_header_compiler=yes
1869 else
1870 ac_header_compiler=no
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1874 $as_echo "$ac_header_compiler" >&6; }
1875
1876 # Is the header present?
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1878 $as_echo_n "checking $2 presence... " >&6; }
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1881 #include <$2>
1882 _ACEOF
1883 if ac_fn_c_try_cpp "$LINENO"; then :
1884 ac_header_preproc=yes
1885 else
1886 ac_header_preproc=no
1887 fi
1888 rm -f conftest.err conftest.$ac_ext
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1890 $as_echo "$ac_header_preproc" >&6; }
1891
1892 # So? What about this header?
1893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1894 yes:no: )
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1896 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1898 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1899 ;;
1900 no:yes:* )
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1902 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1904 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1906 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1908 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1910 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1911 ( cat <<\_ASBOX
1912 ## -------------------------------- ##
1913 ## Report this to classpath@gnu.org ##
1914 ## -------------------------------- ##
1915 _ASBOX
1916 ) | sed "s/^/$as_me: WARNING: /" >&2
1917 ;;
1918 esac
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920 $as_echo_n "checking for $2... " >&6; }
1921 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1922 $as_echo_n "(cached) " >&6
1923 else
1924 eval "$3=\$ac_header_compiler"
1925 fi
1926 eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 fi
1930 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1931
1932 } # ac_fn_c_check_header_mongrel
1933
1934 # ac_fn_c_try_run LINENO
1935 # ----------------------
1936 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1937 # that executables *can* be run.
1938 ac_fn_c_try_run ()
1939 {
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 if { { ac_try="$ac_link"
1942 case "(($ac_try" in
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1945 esac
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_link") 2>&5
1949 ac_status=$?
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1952 { { case "(($ac_try" in
1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954 *) ac_try_echo=$ac_try;;
1955 esac
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958 (eval "$ac_try") 2>&5
1959 ac_status=$?
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; }; }; then :
1962 ac_retval=0
1963 else
1964 $as_echo "$as_me: program exited with status $ac_status" >&5
1965 $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1967
1968 ac_retval=$ac_status
1969 fi
1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972 return $ac_retval
1973
1974 } # ac_fn_c_try_run
1975
1976 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1977 # -------------------------------------------------------
1978 # Tests whether HEADER exists and can be compiled using the include files in
1979 # INCLUDES, setting the cache variable VAR accordingly.
1980 ac_fn_c_check_header_compile ()
1981 {
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1986 $as_echo_n "(cached) " >&6
1987 else
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1990 $4
1991 #include <$2>
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 eval "$3=yes"
1995 else
1996 eval "$3=no"
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 fi
2000 eval ac_res=\$$3
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004
2005 } # ac_fn_c_check_header_compile
2006
2007 # ac_fn_c_try_link LINENO
2008 # -----------------------
2009 # Try to link conftest.$ac_ext, and return whether this succeeded.
2010 ac_fn_c_try_link ()
2011 {
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 rm -f conftest.$ac_objext conftest$ac_exeext
2014 if { { ac_try="$ac_link"
2015 case "(($ac_try" in
2016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017 *) ac_try_echo=$ac_try;;
2018 esac
2019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 $as_echo "$ac_try_echo"; } >&5
2021 (eval "$ac_link") 2>conftest.err
2022 ac_status=$?
2023 if test -s conftest.err; then
2024 grep -v '^ *+' conftest.err >conftest.er1
2025 cat conftest.er1 >&5
2026 mv -f conftest.er1 conftest.err
2027 fi
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; } && {
2030 test -z "$ac_c_werror_flag" ||
2031 test ! -s conftest.err
2032 } && test -s conftest$ac_exeext && {
2033 test "$cross_compiling" = yes ||
2034 $as_test_x conftest$ac_exeext
2035 }; then :
2036 ac_retval=0
2037 else
2038 $as_echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2040
2041 ac_retval=1
2042 fi
2043 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2044 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2045 # interfere with the next link command; also delete a directory that is
2046 # left behind by Apple's compiler. We do this before executing the actions.
2047 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2048 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2049 return $ac_retval
2050
2051 } # ac_fn_c_try_link
2052
2053 # ac_fn_c_check_func LINENO FUNC VAR
2054 # ----------------------------------
2055 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2056 ac_fn_c_check_func ()
2057 {
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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 if test x$gcc_no_link = xyes; then
2065 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2066 fi
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2069 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2071 #define $2 innocuous_$2
2072
2073 /* System header to define __stub macros and hopefully few prototypes,
2074 which can conflict with char $2 (); below.
2075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2076 <limits.h> exists even on freestanding compilers. */
2077
2078 #ifdef __STDC__
2079 # include <limits.h>
2080 #else
2081 # include <assert.h>
2082 #endif
2083
2084 #undef $2
2085
2086 /* Override any GCC internal prototype to avoid an error.
2087 Use char because int might match the return type of a GCC
2088 builtin and then its argument prototype would still apply. */
2089 #ifdef __cplusplus
2090 extern "C"
2091 #endif
2092 char $2 ();
2093 /* The GNU C library defines this for functions which it implements
2094 to always fail with ENOSYS. Some functions are actually named
2095 something starting with __ and the normal name is an alias. */
2096 #if defined __stub_$2 || defined __stub___$2
2097 choke me
2098 #endif
2099
2100 int
2101 main ()
2102 {
2103 return $2 ();
2104 ;
2105 return 0;
2106 }
2107 _ACEOF
2108 if ac_fn_c_try_link "$LINENO"; then :
2109 eval "$3=yes"
2110 else
2111 eval "$3=no"
2112 fi
2113 rm -f core conftest.err conftest.$ac_objext \
2114 conftest$ac_exeext conftest.$ac_ext
2115 fi
2116 eval ac_res=\$$3
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2120
2121 } # ac_fn_c_check_func
2122
2123 # ac_fn_cxx_try_compile LINENO
2124 # ----------------------------
2125 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2126 ac_fn_cxx_try_compile ()
2127 {
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 rm -f conftest.$ac_objext
2130 if { { ac_try="$ac_compile"
2131 case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2134 esac
2135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2136 $as_echo "$ac_try_echo"; } >&5
2137 (eval "$ac_compile") 2>conftest.err
2138 ac_status=$?
2139 if test -s conftest.err; then
2140 grep -v '^ *+' conftest.err >conftest.er1
2141 cat conftest.er1 >&5
2142 mv -f conftest.er1 conftest.err
2143 fi
2144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2145 test $ac_status = 0; } && {
2146 test -z "$ac_cxx_werror_flag" ||
2147 test ! -s conftest.err
2148 } && test -s conftest.$ac_objext; then :
2149 ac_retval=0
2150 else
2151 $as_echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2153
2154 ac_retval=1
2155 fi
2156 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2157 return $ac_retval
2158
2159 } # ac_fn_cxx_try_compile
2160
2161 # ac_fn_cxx_try_cpp LINENO
2162 # ------------------------
2163 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2164 ac_fn_cxx_try_cpp ()
2165 {
2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167 if { { ac_try="$ac_cpp conftest.$ac_ext"
2168 case "(($ac_try" in
2169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170 *) ac_try_echo=$ac_try;;
2171 esac
2172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2173 $as_echo "$ac_try_echo"; } >&5
2174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2175 ac_status=$?
2176 if test -s conftest.err; then
2177 grep -v '^ *+' conftest.err >conftest.er1
2178 cat conftest.er1 >&5
2179 mv -f conftest.er1 conftest.err
2180 fi
2181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182 test $ac_status = 0; } >/dev/null && {
2183 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2184 test ! -s conftest.err
2185 }; then :
2186 ac_retval=0
2187 else
2188 $as_echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2190
2191 ac_retval=1
2192 fi
2193 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2194 return $ac_retval
2195
2196 } # ac_fn_cxx_try_cpp
2197
2198 # ac_fn_cxx_try_link LINENO
2199 # -------------------------
2200 # Try to link conftest.$ac_ext, and return whether this succeeded.
2201 ac_fn_cxx_try_link ()
2202 {
2203 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204 rm -f conftest.$ac_objext conftest$ac_exeext
2205 if { { ac_try="$ac_link"
2206 case "(($ac_try" in
2207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2208 *) ac_try_echo=$ac_try;;
2209 esac
2210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2211 $as_echo "$ac_try_echo"; } >&5
2212 (eval "$ac_link") 2>conftest.err
2213 ac_status=$?
2214 if test -s conftest.err; then
2215 grep -v '^ *+' conftest.err >conftest.er1
2216 cat conftest.er1 >&5
2217 mv -f conftest.er1 conftest.err
2218 fi
2219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2220 test $ac_status = 0; } && {
2221 test -z "$ac_cxx_werror_flag" ||
2222 test ! -s conftest.err
2223 } && test -s conftest$ac_exeext && {
2224 test "$cross_compiling" = yes ||
2225 $as_test_x conftest$ac_exeext
2226 }; then :
2227 ac_retval=0
2228 else
2229 $as_echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2231
2232 ac_retval=1
2233 fi
2234 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2235 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2236 # interfere with the next link command; also delete a directory that is
2237 # left behind by Apple's compiler. We do this before executing the actions.
2238 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2239 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2240 return $ac_retval
2241
2242 } # ac_fn_cxx_try_link
2243
2244 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2245 # ----------------------------------------------------
2246 # Tries to find if the field MEMBER exists in type AGGR, after including
2247 # INCLUDES, setting cache variable VAR accordingly.
2248 ac_fn_c_check_member ()
2249 {
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2252 $as_echo_n "checking for $2.$3... " >&6; }
2253 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2254 $as_echo_n "(cached) " >&6
2255 else
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2258 $5
2259 int
2260 main ()
2261 {
2262 static $2 ac_aggr;
2263 if (ac_aggr.$3)
2264 return 0;
2265 ;
2266 return 0;
2267 }
2268 _ACEOF
2269 if ac_fn_c_try_compile "$LINENO"; then :
2270 eval "$4=yes"
2271 else
2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2274 $5
2275 int
2276 main ()
2277 {
2278 static $2 ac_aggr;
2279 if (sizeof ac_aggr.$3)
2280 return 0;
2281 ;
2282 return 0;
2283 }
2284 _ACEOF
2285 if ac_fn_c_try_compile "$LINENO"; then :
2286 eval "$4=yes"
2287 else
2288 eval "$4=no"
2289 fi
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 fi
2292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 fi
2294 eval ac_res=\$$4
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2296 $as_echo "$ac_res" >&6; }
2297 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2298
2299 } # ac_fn_c_check_member
2300
2301 # ac_fn_c_check_decl LINENO SYMBOL VAR
2302 # ------------------------------------
2303 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2304 ac_fn_c_check_decl ()
2305 {
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2308 $as_echo_n "checking whether $2 is declared... " >&6; }
2309 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2310 $as_echo_n "(cached) " >&6
2311 else
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2314 $4
2315 int
2316 main ()
2317 {
2318 #ifndef $2
2319 (void) $2;
2320 #endif
2321
2322 ;
2323 return 0;
2324 }
2325 _ACEOF
2326 if ac_fn_c_try_compile "$LINENO"; then :
2327 eval "$3=yes"
2328 else
2329 eval "$3=no"
2330 fi
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 fi
2333 eval ac_res=\$$3
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335 $as_echo "$ac_res" >&6; }
2336 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2337
2338 } # ac_fn_c_check_decl
2339
2340 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2341 # -------------------------------------------
2342 # Tests whether TYPE exists after having included INCLUDES, setting cache
2343 # variable VAR accordingly.
2344 ac_fn_c_check_type ()
2345 {
2346 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2348 $as_echo_n "checking for $2... " >&6; }
2349 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2350 $as_echo_n "(cached) " >&6
2351 else
2352 eval "$3=no"
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2355 $4
2356 int
2357 main ()
2358 {
2359 if (sizeof ($2))
2360 return 0;
2361 ;
2362 return 0;
2363 }
2364 _ACEOF
2365 if ac_fn_c_try_compile "$LINENO"; then :
2366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367 /* end confdefs.h. */
2368 $4
2369 int
2370 main ()
2371 {
2372 if (sizeof (($2)))
2373 return 0;
2374 ;
2375 return 0;
2376 }
2377 _ACEOF
2378 if ac_fn_c_try_compile "$LINENO"; then :
2379
2380 else
2381 eval "$3=yes"
2382 fi
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 fi
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 fi
2387 eval ac_res=\$$3
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2389 $as_echo "$ac_res" >&6; }
2390 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2391
2392 } # ac_fn_c_check_type
2393
2394 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2395 # --------------------------------------------
2396 # Tries to find the compile-time value of EXPR in a program that includes
2397 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2398 # computed
2399 ac_fn_c_compute_int ()
2400 {
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 if test "$cross_compiling" = yes; then
2403 # Depending upon the size, compute the lo and hi bounds.
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2406 $4
2407 int
2408 main ()
2409 {
2410 static int test_array [1 - 2 * !(($2) >= 0)];
2411 test_array [0] = 0
2412
2413 ;
2414 return 0;
2415 }
2416 _ACEOF
2417 if ac_fn_c_try_compile "$LINENO"; then :
2418 ac_lo=0 ac_mid=0
2419 while :; do
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2422 $4
2423 int
2424 main ()
2425 {
2426 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2427 test_array [0] = 0
2428
2429 ;
2430 return 0;
2431 }
2432 _ACEOF
2433 if ac_fn_c_try_compile "$LINENO"; then :
2434 ac_hi=$ac_mid; break
2435 else
2436 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2437 if test $ac_lo -le $ac_mid; then
2438 ac_lo= ac_hi=
2439 break
2440 fi
2441 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2442 fi
2443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444 done
2445 else
2446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h. */
2448 $4
2449 int
2450 main ()
2451 {
2452 static int test_array [1 - 2 * !(($2) < 0)];
2453 test_array [0] = 0
2454
2455 ;
2456 return 0;
2457 }
2458 _ACEOF
2459 if ac_fn_c_try_compile "$LINENO"; then :
2460 ac_hi=-1 ac_mid=-1
2461 while :; do
2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h. */
2464 $4
2465 int
2466 main ()
2467 {
2468 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2469 test_array [0] = 0
2470
2471 ;
2472 return 0;
2473 }
2474 _ACEOF
2475 if ac_fn_c_try_compile "$LINENO"; then :
2476 ac_lo=$ac_mid; break
2477 else
2478 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2479 if test $ac_mid -le $ac_hi; then
2480 ac_lo= ac_hi=
2481 break
2482 fi
2483 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2484 fi
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486 done
2487 else
2488 ac_lo= ac_hi=
2489 fi
2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491 fi
2492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493 # Binary search between lo and hi bounds.
2494 while test "x$ac_lo" != "x$ac_hi"; do
2495 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2498 $4
2499 int
2500 main ()
2501 {
2502 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2503 test_array [0] = 0
2504
2505 ;
2506 return 0;
2507 }
2508 _ACEOF
2509 if ac_fn_c_try_compile "$LINENO"; then :
2510 ac_hi=$ac_mid
2511 else
2512 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2513 fi
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 done
2516 case $ac_lo in #((
2517 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2518 '') ac_retval=1 ;;
2519 esac
2520 else
2521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522 /* end confdefs.h. */
2523 $4
2524 static long int longval () { return $2; }
2525 static unsigned long int ulongval () { return $2; }
2526 #include <stdio.h>
2527 #include <stdlib.h>
2528 int
2529 main ()
2530 {
2531
2532 FILE *f = fopen ("conftest.val", "w");
2533 if (! f)
2534 return 1;
2535 if (($2) < 0)
2536 {
2537 long int i = longval ();
2538 if (i != ($2))
2539 return 1;
2540 fprintf (f, "%ld", i);
2541 }
2542 else
2543 {
2544 unsigned long int i = ulongval ();
2545 if (i != ($2))
2546 return 1;
2547 fprintf (f, "%lu", i);
2548 }
2549 /* Do not output a trailing newline, as this causes \r\n confusion
2550 on some platforms. */
2551 return ferror (f) || fclose (f) != 0;
2552
2553 ;
2554 return 0;
2555 }
2556 _ACEOF
2557 if ac_fn_c_try_run "$LINENO"; then :
2558 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2559 else
2560 ac_retval=1
2561 fi
2562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2563 conftest.$ac_objext conftest.beam conftest.$ac_ext
2564 rm -f conftest.val
2565
2566 fi
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2568 return $ac_retval
2569
2570 } # ac_fn_c_compute_int
2571 cat >config.log <<_ACEOF
2572 This file contains any messages produced by compilers while
2573 running configure, to aid debugging if configure makes a mistake.
2574
2575 It was created by GNU Classpath $as_me 0.98, which was
2576 generated by GNU Autoconf 2.64. Invocation command line was
2577
2578 $ $0 $@
2579
2580 _ACEOF
2581 exec 5>>config.log
2582 {
2583 cat <<_ASUNAME
2584 ## --------- ##
2585 ## Platform. ##
2586 ## --------- ##
2587
2588 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2589 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2590 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2591 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2592 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2593
2594 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2595 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2596
2597 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2598 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2599 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2600 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2601 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2602 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2603 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2604
2605 _ASUNAME
2606
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2609 do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 $as_echo "PATH: $as_dir"
2613 done
2614 IFS=$as_save_IFS
2615
2616 } >&5
2617
2618 cat >&5 <<_ACEOF
2619
2620
2621 ## ----------- ##
2622 ## Core tests. ##
2623 ## ----------- ##
2624
2625 _ACEOF
2626
2627
2628 # Keep a trace of the command line.
2629 # Strip out --no-create and --no-recursion so they do not pile up.
2630 # Strip out --silent because we don't want to record it for future runs.
2631 # Also quote any args containing shell meta-characters.
2632 # Make two passes to allow for proper duplicate-argument suppression.
2633 ac_configure_args=
2634 ac_configure_args0=
2635 ac_configure_args1=
2636 ac_must_keep_next=false
2637 for ac_pass in 1 2
2638 do
2639 for ac_arg
2640 do
2641 case $ac_arg in
2642 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2643 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2644 | -silent | --silent | --silen | --sile | --sil)
2645 continue ;;
2646 *\'*)
2647 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2648 esac
2649 case $ac_pass in
2650 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2651 2)
2652 as_fn_append ac_configure_args1 " '$ac_arg'"
2653 if test $ac_must_keep_next = true; then
2654 ac_must_keep_next=false # Got value, back to normal.
2655 else
2656 case $ac_arg in
2657 *=* | --config-cache | -C | -disable-* | --disable-* \
2658 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2659 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2660 | -with-* | --with-* | -without-* | --without-* | --x)
2661 case "$ac_configure_args0 " in
2662 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2663 esac
2664 ;;
2665 -* ) ac_must_keep_next=true ;;
2666 esac
2667 fi
2668 as_fn_append ac_configure_args " '$ac_arg'"
2669 ;;
2670 esac
2671 done
2672 done
2673 { ac_configure_args0=; unset ac_configure_args0;}
2674 { ac_configure_args1=; unset ac_configure_args1;}
2675
2676 # When interrupted or exit'd, cleanup temporary files, and complete
2677 # config.log. We remove comments because anyway the quotes in there
2678 # would cause problems or look ugly.
2679 # WARNING: Use '\'' to represent an apostrophe within the trap.
2680 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2681 trap 'exit_status=$?
2682 # Save into config.log some information that might help in debugging.
2683 {
2684 echo
2685
2686 cat <<\_ASBOX
2687 ## ---------------- ##
2688 ## Cache variables. ##
2689 ## ---------------- ##
2690 _ASBOX
2691 echo
2692 # The following way of writing the cache mishandles newlines in values,
2693 (
2694 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2695 eval ac_val=\$$ac_var
2696 case $ac_val in #(
2697 *${as_nl}*)
2698 case $ac_var in #(
2699 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2700 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2701 esac
2702 case $ac_var in #(
2703 _ | IFS | as_nl) ;; #(
2704 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2705 *) { eval $ac_var=; unset $ac_var;} ;;
2706 esac ;;
2707 esac
2708 done
2709 (set) 2>&1 |
2710 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2711 *${as_nl}ac_space=\ *)
2712 sed -n \
2713 "s/'\''/'\''\\\\'\'''\''/g;
2714 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2715 ;; #(
2716 *)
2717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2718 ;;
2719 esac |
2720 sort
2721 )
2722 echo
2723
2724 cat <<\_ASBOX
2725 ## ----------------- ##
2726 ## Output variables. ##
2727 ## ----------------- ##
2728 _ASBOX
2729 echo
2730 for ac_var in $ac_subst_vars
2731 do
2732 eval ac_val=\$$ac_var
2733 case $ac_val in
2734 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2735 esac
2736 $as_echo "$ac_var='\''$ac_val'\''"
2737 done | sort
2738 echo
2739
2740 if test -n "$ac_subst_files"; then
2741 cat <<\_ASBOX
2742 ## ------------------- ##
2743 ## File substitutions. ##
2744 ## ------------------- ##
2745 _ASBOX
2746 echo
2747 for ac_var in $ac_subst_files
2748 do
2749 eval ac_val=\$$ac_var
2750 case $ac_val in
2751 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2752 esac
2753 $as_echo "$ac_var='\''$ac_val'\''"
2754 done | sort
2755 echo
2756 fi
2757
2758 if test -s confdefs.h; then
2759 cat <<\_ASBOX
2760 ## ----------- ##
2761 ## confdefs.h. ##
2762 ## ----------- ##
2763 _ASBOX
2764 echo
2765 cat confdefs.h
2766 echo
2767 fi
2768 test "$ac_signal" != 0 &&
2769 $as_echo "$as_me: caught signal $ac_signal"
2770 $as_echo "$as_me: exit $exit_status"
2771 } >&5
2772 rm -f core *.core core.conftest.* &&
2773 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2774 exit $exit_status
2775 ' 0
2776 for ac_signal in 1 2 13 15; do
2777 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2778 done
2779 ac_signal=0
2780
2781 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2782 rm -f -r conftest* confdefs.h
2783
2784 $as_echo "/* confdefs.h */" > confdefs.h
2785
2786 # Predefined preprocessor variables.
2787
2788 cat >>confdefs.h <<_ACEOF
2789 #define PACKAGE_NAME "$PACKAGE_NAME"
2790 _ACEOF
2791
2792 cat >>confdefs.h <<_ACEOF
2793 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2794 _ACEOF
2795
2796 cat >>confdefs.h <<_ACEOF
2797 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2798 _ACEOF
2799
2800 cat >>confdefs.h <<_ACEOF
2801 #define PACKAGE_STRING "$PACKAGE_STRING"
2802 _ACEOF
2803
2804 cat >>confdefs.h <<_ACEOF
2805 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2806 _ACEOF
2807
2808 cat >>confdefs.h <<_ACEOF
2809 #define PACKAGE_URL "$PACKAGE_URL"
2810 _ACEOF
2811
2812
2813 # Let the site file select an alternate cache file if it wants to.
2814 # Prefer an explicitly selected file to automatically selected ones.
2815 ac_site_file1=NONE
2816 ac_site_file2=NONE
2817 if test -n "$CONFIG_SITE"; then
2818 ac_site_file1=$CONFIG_SITE
2819 elif test "x$prefix" != xNONE; then
2820 ac_site_file1=$prefix/share/config.site
2821 ac_site_file2=$prefix/etc/config.site
2822 else
2823 ac_site_file1=$ac_default_prefix/share/config.site
2824 ac_site_file2=$ac_default_prefix/etc/config.site
2825 fi
2826 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2827 do
2828 test "x$ac_site_file" = xNONE && continue
2829 if test -r "$ac_site_file"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2831 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2832 sed 's/^/| /' "$ac_site_file" >&5
2833 . "$ac_site_file"
2834 fi
2835 done
2836
2837 if test -r "$cache_file"; then
2838 # Some versions of bash will fail to source /dev/null (special
2839 # files actually), so we avoid doing that.
2840 if test -f "$cache_file"; then
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2842 $as_echo "$as_me: loading cache $cache_file" >&6;}
2843 case $cache_file in
2844 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2845 *) . "./$cache_file";;
2846 esac
2847 fi
2848 else
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2850 $as_echo "$as_me: creating cache $cache_file" >&6;}
2851 >$cache_file
2852 fi
2853
2854 # Check that the precious variables saved in the cache have kept the same
2855 # value.
2856 ac_cache_corrupted=false
2857 for ac_var in $ac_precious_vars; do
2858 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2859 eval ac_new_set=\$ac_env_${ac_var}_set
2860 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2861 eval ac_new_val=\$ac_env_${ac_var}_value
2862 case $ac_old_set,$ac_new_set in
2863 set,)
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2865 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2866 ac_cache_corrupted=: ;;
2867 ,set)
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2869 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2870 ac_cache_corrupted=: ;;
2871 ,);;
2872 *)
2873 if test "x$ac_old_val" != "x$ac_new_val"; then
2874 # differences in whitespace do not lead to failure.
2875 ac_old_val_w=`echo x $ac_old_val`
2876 ac_new_val_w=`echo x $ac_new_val`
2877 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2879 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2880 ac_cache_corrupted=:
2881 else
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2883 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2884 eval $ac_var=\$ac_old_val
2885 fi
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2887 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2889 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2890 fi;;
2891 esac
2892 # Pass precious variables to config.status.
2893 if test "$ac_new_set" = set; then
2894 case $ac_new_val in
2895 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2896 *) ac_arg=$ac_var=$ac_new_val ;;
2897 esac
2898 case " $ac_configure_args " in
2899 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2900 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2901 esac
2902 fi
2903 done
2904 if $ac_cache_corrupted; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2908 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2909 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2910 fi
2911 ## -------------------- ##
2912 ## Main body of script. ##
2913 ## -------------------- ##
2914
2915 ac_ext=c
2916 ac_cpp='$CPP $CPPFLAGS'
2917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920
2921
2922
2923
2924
2925
2926
2927 ac_aux_dir=
2928 for ac_dir in ../.. "$srcdir"/../..; do
2929 for ac_t in install-sh install.sh shtool; do
2930 if test -f "$ac_dir/$ac_t"; then
2931 ac_aux_dir=$ac_dir
2932 ac_install_sh="$ac_aux_dir/$ac_t -c"
2933 break 2
2934 fi
2935 done
2936 done
2937 if test -z "$ac_aux_dir"; then
2938 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2939 fi
2940
2941 # These three variables are undocumented and unsupported,
2942 # and are intended to be withdrawn in a future Autoconf release.
2943 # They can cause serious problems if a builder's source tree is in a directory
2944 # whose full name contains unusual characters.
2945 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2946 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2947 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2948
2949
2950
2951 # Make sure we can run config.sub.
2952 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2953 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2954
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2956 $as_echo_n "checking build system type... " >&6; }
2957 if test "${ac_cv_build+set}" = set; then :
2958 $as_echo_n "(cached) " >&6
2959 else
2960 ac_build_alias=$build_alias
2961 test "x$ac_build_alias" = x &&
2962 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2963 test "x$ac_build_alias" = x &&
2964 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2965 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2966 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2967
2968 fi
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2970 $as_echo "$ac_cv_build" >&6; }
2971 case $ac_cv_build in
2972 *-*-*) ;;
2973 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2974 esac
2975 build=$ac_cv_build
2976 ac_save_IFS=$IFS; IFS='-'
2977 set x $ac_cv_build
2978 shift
2979 build_cpu=$1
2980 build_vendor=$2
2981 shift; shift
2982 # Remember, the first character of IFS is used to create $*,
2983 # except with old shells:
2984 build_os=$*
2985 IFS=$ac_save_IFS
2986 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2987
2988
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2990 $as_echo_n "checking host system type... " >&6; }
2991 if test "${ac_cv_host+set}" = set; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 if test "x$host_alias" = x; then
2995 ac_cv_host=$ac_cv_build
2996 else
2997 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2998 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2999 fi
3000
3001 fi
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3003 $as_echo "$ac_cv_host" >&6; }
3004 case $ac_cv_host in
3005 *-*-*) ;;
3006 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3007 esac
3008 host=$ac_cv_host
3009 ac_save_IFS=$IFS; IFS='-'
3010 set x $ac_cv_host
3011 shift
3012 host_cpu=$1
3013 host_vendor=$2
3014 shift; shift
3015 # Remember, the first character of IFS is used to create $*,
3016 # except with old shells:
3017 host_os=$*
3018 IFS=$ac_save_IFS
3019 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3020
3021
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3023 $as_echo_n "checking target system type... " >&6; }
3024 if test "${ac_cv_target+set}" = set; then :
3025 $as_echo_n "(cached) " >&6
3026 else
3027 if test "x$target_alias" = x; then
3028 ac_cv_target=$ac_cv_host
3029 else
3030 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3031 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3032 fi
3033
3034 fi
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3036 $as_echo "$ac_cv_target" >&6; }
3037 case $ac_cv_target in
3038 *-*-*) ;;
3039 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3040 esac
3041 target=$ac_cv_target
3042 ac_save_IFS=$IFS; IFS='-'
3043 set x $ac_cv_target
3044 shift
3045 target_cpu=$1
3046 target_vendor=$2
3047 shift; shift
3048 # Remember, the first character of IFS is used to create $*,
3049 # except with old shells:
3050 target_os=$*
3051 IFS=$ac_save_IFS
3052 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3053
3054
3055 # The aliases save the names the user supplied, while $host etc.
3056 # will get canonicalized.
3057 test -n "$target_alias" &&
3058 test "$program_prefix$program_suffix$program_transform_name" = \
3059 NONENONEs,x,x, &&
3060 program_prefix=${target_alias}-
3061
3062 # Check whether --enable-java-maintainer-mode was given.
3063 if test "${enable_java_maintainer_mode+set}" = set; then :
3064 enableval=$enable_java_maintainer_mode;
3065 fi
3066
3067 if test "$enable_java_maintainer_mode" = yes; then
3068 JAVA_MAINTAINER_MODE_TRUE=
3069 JAVA_MAINTAINER_MODE_FALSE='#'
3070 else
3071 JAVA_MAINTAINER_MODE_TRUE='#'
3072 JAVA_MAINTAINER_MODE_FALSE=
3073 fi
3074
3075
3076 # We would like to our source tree to be readonly. However when releases or
3077 # pre-releases are generated, the man pages need to be included as they are
3078 # converted from the texi files via perl which we don't require end users to
3079 # have installed.
3080 # Therefore we have --enable-generated-files-in-srcdir to do just that.
3081
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3083 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3084 # Check whether --enable-generated-files-in-srcdir was given.
3085 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3086 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3087 else
3088 generated_files_in_srcdir=no
3089 fi
3090
3091
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3093 $as_echo "$generated_files_in_srcdir" >&6; }
3094 if test x$generated_files_in_srcdir = xyes; then
3095 GENINSRC_TRUE=
3096 GENINSRC_FALSE='#'
3097 else
3098 GENINSRC_TRUE='#'
3099 GENINSRC_FALSE=
3100 fi
3101
3102
3103 # Find the rest of the source tree framework.
3104 # Default to --enable-multilib
3105 # Check whether --enable-multilib was given.
3106 if test "${enable_multilib+set}" = set; then :
3107 enableval=$enable_multilib; case "$enableval" in
3108 yes) multilib=yes ;;
3109 no) multilib=no ;;
3110 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3111 esac
3112 else
3113 multilib=yes
3114 fi
3115
3116
3117 # We may get other options which we leave undocumented:
3118 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3119 # See config-ml.in if you want the gory details.
3120
3121 if test "$srcdir" = "."; then
3122 if test "$with_target_subdir" != "."; then
3123 multi_basedir="$srcdir/$with_multisrctop../../.."
3124 else
3125 multi_basedir="$srcdir/$with_multisrctop../.."
3126 fi
3127 else
3128 multi_basedir="$srcdir/../.."
3129 fi
3130
3131
3132 # Even if the default multilib is not a cross compilation,
3133 # it may be that some of the other multilibs are.
3134 if test $cross_compiling = no && test $multilib = yes \
3135 && test "x${with_multisubdir}" != x ; then
3136 cross_compiling=maybe
3137 fi
3138
3139 ac_config_commands="$ac_config_commands default-1"
3140
3141
3142 if test -z "${with_multisubdir}"; then
3143 INSTALL_BINARIES_TRUE=
3144 INSTALL_BINARIES_FALSE='#'
3145 else
3146 INSTALL_BINARIES_TRUE='#'
3147 INSTALL_BINARIES_FALSE=
3148 fi
3149
3150
3151 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
3152
3153 LIBVERSION="0:0:0"
3154
3155 case "$host_os" in
3156 darwin*)
3157 cp_module=""
3158 ;;
3159 *)
3160 cp_module="-module"
3161 ;;
3162 esac
3163
3164 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
3165
3166
3167 CLASSPATH_CONVENIENCE="-no-undefined"
3168
3169
3170
3171 am__api_version='1.11'
3172
3173 # Find a good install program. We prefer a C program (faster),
3174 # so one script is as good as another. But avoid the broken or
3175 # incompatible versions:
3176 # SysV /etc/install, /usr/sbin/install
3177 # SunOS /usr/etc/install
3178 # IRIX /sbin/install
3179 # AIX /bin/install
3180 # AmigaOS /C/install, which installs bootblocks on floppy discs
3181 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3182 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3183 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3184 # OS/2's system install, which has a completely different semantic
3185 # ./install, which can be erroneously created by make from ./install.sh.
3186 # Reject install programs that cannot install multiple files.
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3188 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3189 if test -z "$INSTALL"; then
3190 if test "${ac_cv_path_install+set}" = set; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 for as_dir in $PATH
3195 do
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
3198 # Account for people who put trailing slashes in PATH elements.
3199 case $as_dir/ in #((
3200 ./ | .// | /[cC]/* | \
3201 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3202 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3203 /usr/ucb/* ) ;;
3204 *)
3205 # OSF1 and SCO ODT 3.0 have their own names for install.
3206 # Don't use installbsd from OSF since it installs stuff as root
3207 # by default.
3208 for ac_prog in ginstall scoinst install; do
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3211 if test $ac_prog = install &&
3212 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3213 # AIX install. It has an incompatible calling convention.
3214 :
3215 elif test $ac_prog = install &&
3216 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3217 # program-specific install script used by HP pwplus--don't use.
3218 :
3219 else
3220 rm -rf conftest.one conftest.two conftest.dir
3221 echo one > conftest.one
3222 echo two > conftest.two
3223 mkdir conftest.dir
3224 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3225 test -s conftest.one && test -s conftest.two &&
3226 test -s conftest.dir/conftest.one &&
3227 test -s conftest.dir/conftest.two
3228 then
3229 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3230 break 3
3231 fi
3232 fi
3233 fi
3234 done
3235 done
3236 ;;
3237 esac
3238
3239 done
3240 IFS=$as_save_IFS
3241
3242 rm -rf conftest.one conftest.two conftest.dir
3243
3244 fi
3245 if test "${ac_cv_path_install+set}" = set; then
3246 INSTALL=$ac_cv_path_install
3247 else
3248 # As a last resort, use the slow shell script. Don't cache a
3249 # value for INSTALL within a source directory, because that will
3250 # break other packages using the cache if that directory is
3251 # removed, or if the value is a relative name.
3252 INSTALL=$ac_install_sh
3253 fi
3254 fi
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3256 $as_echo "$INSTALL" >&6; }
3257
3258 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3259 # It thinks the first close brace ends the variable substitution.
3260 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3261
3262 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3263
3264 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3265
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3267 $as_echo_n "checking whether build environment is sane... " >&6; }
3268 # Just in case
3269 sleep 1
3270 echo timestamp > conftest.file
3271 # Reject unsafe characters in $srcdir or the absolute working directory
3272 # name. Accept space and tab only in the latter.
3273 am_lf='
3274 '
3275 case `pwd` in
3276 *[\\\"\#\$\&\'\`$am_lf]*)
3277 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3278 esac
3279 case $srcdir in
3280 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3281 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3282 esac
3283
3284 # Do `set' in a subshell so we don't clobber the current shell's
3285 # arguments. Must try -L first in case configure is actually a
3286 # symlink; some systems play weird games with the mod time of symlinks
3287 # (eg FreeBSD returns the mod time of the symlink's containing
3288 # directory).
3289 if (
3290 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3291 if test "$*" = "X"; then
3292 # -L didn't work.
3293 set X `ls -t "$srcdir/configure" conftest.file`
3294 fi
3295 rm -f conftest.file
3296 if test "$*" != "X $srcdir/configure conftest.file" \
3297 && test "$*" != "X conftest.file $srcdir/configure"; then
3298
3299 # If neither matched, then we have a broken ls. This can happen
3300 # if, for instance, CONFIG_SHELL is bash and it inherits a
3301 # broken ls alias from the environment. This has actually
3302 # happened. Such a system could not be considered "sane".
3303 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3304 alias in your environment" "$LINENO" 5
3305 fi
3306
3307 test "$2" = conftest.file
3308 )
3309 then
3310 # Ok.
3311 :
3312 else
3313 as_fn_error "newly created file is older than distributed files!
3314 Check your system clock" "$LINENO" 5
3315 fi
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3317 $as_echo "yes" >&6; }
3318 test "$program_prefix" != NONE &&
3319 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3320 # Use a double $ so make ignores it.
3321 test "$program_suffix" != NONE &&
3322 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3323 # Double any \ or $.
3324 # By default was `s,x,x', remove it if useless.
3325 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3326 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3327
3328 # expand $ac_aux_dir to an absolute path
3329 am_aux_dir=`cd $ac_aux_dir && pwd`
3330
3331 if test x"${MISSING+set}" != xset; then
3332 case $am_aux_dir in
3333 *\ * | *\ *)
3334 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3335 *)
3336 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3337 esac
3338 fi
3339 # Use eval to expand $SHELL
3340 if eval "$MISSING --run true"; then
3341 am_missing_run="$MISSING --run "
3342 else
3343 am_missing_run=
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3345 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3346 fi
3347
3348 if test x"${install_sh}" != xset; then
3349 case $am_aux_dir in
3350 *\ * | *\ *)
3351 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3352 *)
3353 install_sh="\${SHELL} $am_aux_dir/install-sh"
3354 esac
3355 fi
3356
3357 # Installed binaries are usually stripped using `strip' when the user
3358 # run `make install-strip'. However `strip' might not be the right
3359 # tool to use in cross-compilation environments, therefore Automake
3360 # will honor the `STRIP' environment variable to overrule this program.
3361 if test "$cross_compiling" != no; then
3362 if test -n "$ac_tool_prefix"; then
3363 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3364 set dummy ${ac_tool_prefix}strip; ac_word=$2
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 $as_echo_n "checking for $ac_word... " >&6; }
3367 if test "${ac_cv_prog_STRIP+set}" = set; then :
3368 $as_echo_n "(cached) " >&6
3369 else
3370 if test -n "$STRIP"; then
3371 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3375 do
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3383 fi
3384 done
3385 done
3386 IFS=$as_save_IFS
3387
3388 fi
3389 fi
3390 STRIP=$ac_cv_prog_STRIP
3391 if test -n "$STRIP"; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3393 $as_echo "$STRIP" >&6; }
3394 else
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3397 fi
3398
3399
3400 fi
3401 if test -z "$ac_cv_prog_STRIP"; then
3402 ac_ct_STRIP=$STRIP
3403 # Extract the first word of "strip", so it can be a program name with args.
3404 set dummy strip; ac_word=$2
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406 $as_echo_n "checking for $ac_word... " >&6; }
3407 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 if test -n "$ac_ct_STRIP"; then
3411 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3412 else
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3415 do
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420 ac_cv_prog_ac_ct_STRIP="strip"
3421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 break 2
3423 fi
3424 done
3425 done
3426 IFS=$as_save_IFS
3427
3428 fi
3429 fi
3430 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3431 if test -n "$ac_ct_STRIP"; then
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3433 $as_echo "$ac_ct_STRIP" >&6; }
3434 else
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3437 fi
3438
3439 if test "x$ac_ct_STRIP" = x; then
3440 STRIP=":"
3441 else
3442 case $cross_compiling:$ac_tool_warned in
3443 yes:)
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3446 ac_tool_warned=yes ;;
3447 esac
3448 STRIP=$ac_ct_STRIP
3449 fi
3450 else
3451 STRIP="$ac_cv_prog_STRIP"
3452 fi
3453
3454 fi
3455 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3456
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3458 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3459 if test -z "$MKDIR_P"; then
3460 if test "${ac_cv_path_mkdir+set}" = set; then :
3461 $as_echo_n "(cached) " >&6
3462 else
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3465 do
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
3468 for ac_prog in mkdir gmkdir; do
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3471 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3472 'mkdir (GNU coreutils) '* | \
3473 'mkdir (coreutils) '* | \
3474 'mkdir (fileutils) '4.1*)
3475 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3476 break 3;;
3477 esac
3478 done
3479 done
3480 done
3481 IFS=$as_save_IFS
3482
3483 fi
3484
3485 if test "${ac_cv_path_mkdir+set}" = set; then
3486 MKDIR_P="$ac_cv_path_mkdir -p"
3487 else
3488 # As a last resort, use the slow shell script. Don't cache a
3489 # value for MKDIR_P within a source directory, because that will
3490 # break other packages using the cache if that directory is
3491 # removed, or if the value is a relative name.
3492 test -d ./--version && rmdir ./--version
3493 MKDIR_P="$ac_install_sh -d"
3494 fi
3495 fi
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3497 $as_echo "$MKDIR_P" >&6; }
3498
3499 mkdir_p="$MKDIR_P"
3500 case $mkdir_p in
3501 [\\/$]* | ?:[\\/]*) ;;
3502 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3503 esac
3504
3505 for ac_prog in gawk mawk nawk awk
3506 do
3507 # Extract the first word of "$ac_prog", so it can be a program name with args.
3508 set dummy $ac_prog; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if test "${ac_cv_prog_AWK+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 if test -n "$AWK"; then
3515 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3516 else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3519 do
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3524 ac_cv_prog_AWK="$ac_prog"
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 break 2
3527 fi
3528 done
3529 done
3530 IFS=$as_save_IFS
3531
3532 fi
3533 fi
3534 AWK=$ac_cv_prog_AWK
3535 if test -n "$AWK"; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3537 $as_echo "$AWK" >&6; }
3538 else
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3541 fi
3542
3543
3544 test -n "$AWK" && break
3545 done
3546
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3548 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3549 set x ${MAKE-make}
3550 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3551 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 cat >conftest.make <<\_ACEOF
3555 SHELL = /bin/sh
3556 all:
3557 @echo '@@@%%%=$(MAKE)=@@@%%%'
3558 _ACEOF
3559 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3560 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3561 *@@@%%%=?*=@@@%%%*)
3562 eval ac_cv_prog_make_${ac_make}_set=yes;;
3563 *)
3564 eval ac_cv_prog_make_${ac_make}_set=no;;
3565 esac
3566 rm -f conftest.make
3567 fi
3568 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3570 $as_echo "yes" >&6; }
3571 SET_MAKE=
3572 else
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 $as_echo "no" >&6; }
3575 SET_MAKE="MAKE=${MAKE-make}"
3576 fi
3577
3578 rm -rf .tst 2>/dev/null
3579 mkdir .tst 2>/dev/null
3580 if test -d .tst; then
3581 am__leading_dot=.
3582 else
3583 am__leading_dot=_
3584 fi
3585 rmdir .tst 2>/dev/null
3586
3587 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3588 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3589 # is not polluted with repeated "-I."
3590 am__isrc=' -I$(srcdir)'
3591 # test to see if srcdir already configured
3592 if test -f $srcdir/config.status; then
3593 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3594 fi
3595 fi
3596
3597 # test whether we have cygpath
3598 if test -z "$CYGPATH_W"; then
3599 if (cygpath --version) >/dev/null 2>/dev/null; then
3600 CYGPATH_W='cygpath -w'
3601 else
3602 CYGPATH_W=echo
3603 fi
3604 fi
3605
3606
3607 # Define the identity of the package.
3608 PACKAGE='classpath'
3609 VERSION='0.98'
3610
3611
3612 cat >>confdefs.h <<_ACEOF
3613 #define PACKAGE "$PACKAGE"
3614 _ACEOF
3615
3616
3617 cat >>confdefs.h <<_ACEOF
3618 #define VERSION "$VERSION"
3619 _ACEOF
3620
3621 # Some tools Automake needs.
3622
3623 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3624
3625
3626 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3627
3628
3629 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3630
3631
3632 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3633
3634
3635 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3636
3637 # We need awk for the "check" target. The system "awk" is bad on
3638 # some platforms.
3639 # Always define AMTAR for backward compatibility.
3640
3641 AMTAR=${AMTAR-"${am_missing_run}tar"}
3642
3643
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3645 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3646 # Loop over all known methods to create a tar archive until one works.
3647 _am_tools='gnutar plaintar pax cpio none'
3648 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3649 # Do not fold the above two line into one, because Tru64 sh and
3650 # Solaris sh will not grok spaces in the rhs of `-'.
3651 for _am_tool in $_am_tools
3652 do
3653 case $_am_tool in
3654 gnutar)
3655 for _am_tar in tar gnutar gtar;
3656 do
3657 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3658 ($_am_tar --version) >&5 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } && break
3662 done
3663 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3664 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3665 am__untar="$_am_tar -xf -"
3666 ;;
3667 plaintar)
3668 # Must skip GNU tar: if it does not support --format= it doesn't create
3669 # ustar tarball either.
3670 (tar --version) >/dev/null 2>&1 && continue
3671 am__tar='tar chf - "$$tardir"'
3672 am__tar_='tar chf - "$tardir"'
3673 am__untar='tar xf -'
3674 ;;
3675 pax)
3676 am__tar='pax -L -x ustar -w "$$tardir"'
3677 am__tar_='pax -L -x ustar -w "$tardir"'
3678 am__untar='pax -r'
3679 ;;
3680 cpio)
3681 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3682 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3683 am__untar='cpio -i -H ustar -d'
3684 ;;
3685 none)
3686 am__tar=false
3687 am__tar_=false
3688 am__untar=false
3689 ;;
3690 esac
3691
3692 # If the value was cached, stop now. We just wanted to have am__tar
3693 # and am__untar set.
3694 test -n "${am_cv_prog_tar_ustar}" && break
3695
3696 # tar/untar a dummy directory, and stop if the command works
3697 rm -rf conftest.dir
3698 mkdir conftest.dir
3699 echo GrepMe > conftest.dir/file
3700 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3701 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }
3705 rm -rf conftest.dir
3706 if test -s conftest.tar; then
3707 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3708 ($am__untar <conftest.tar) >&5 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }
3712 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3713 fi
3714 done
3715 rm -rf conftest.dir
3716
3717 if test "${am_cv_prog_tar_ustar+set}" = set; then :
3718 $as_echo_n "(cached) " >&6
3719 else
3720 am_cv_prog_tar_ustar=$_am_tool
3721 fi
3722
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3724 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3725
3726
3727
3728
3729
3730 ac_config_headers="$ac_config_headers include/config.h"
3731
3732
3733
3734
3735
3736 # Check whether --enable-collections was given.
3737 if test "${enable_collections+set}" = set; then :
3738 enableval=$enable_collections; case x"${enableval}" in
3739 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
3740 xno) COMPILE_COLLECTIONS=no ;;
3741 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
3742 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
3743 esac
3744 else
3745 COMPILE_COLLECTIONS=no
3746 fi
3747
3748 if test "x${COMPILE_COLLECTIONS}" = xyes; then
3749 CREATE_COLLECTIONS_TRUE=
3750 CREATE_COLLECTIONS_FALSE='#'
3751 else
3752 CREATE_COLLECTIONS_TRUE='#'
3753 CREATE_COLLECTIONS_FALSE=
3754 fi
3755
3756
3757 # Check whether --enable-jni was given.
3758 if test "${enable_jni+set}" = set; then :
3759 enableval=$enable_jni; case "${enableval}" in
3760 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
3761 no) COMPILE_JNI=no ;;
3762 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
3763 esac
3764 else
3765 COMPILE_JNI=yes
3766 fi
3767
3768 if test "x${COMPILE_JNI}" = xyes; then
3769 CREATE_JNI_LIBRARIES_TRUE=
3770 CREATE_JNI_LIBRARIES_FALSE='#'
3771 else
3772 CREATE_JNI_LIBRARIES_TRUE='#'
3773 CREATE_JNI_LIBRARIES_FALSE=
3774 fi
3775
3776
3777 # Check whether --enable-core-jni was given.
3778 if test "${enable_core_jni+set}" = set; then :
3779 enableval=$enable_core_jni; case "${enableval}" in
3780 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
3781 no) COMPILE_CORE_JNI=no ;;
3782 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
3783 esac
3784 else
3785 COMPILE_CORE_JNI=yes
3786 fi
3787
3788 if test "x${COMPILE_CORE_JNI}" = xyes; then
3789 CREATE_CORE_JNI_LIBRARIES_TRUE=
3790 CREATE_CORE_JNI_LIBRARIES_FALSE='#'
3791 else
3792 CREATE_CORE_JNI_LIBRARIES_TRUE='#'
3793 CREATE_CORE_JNI_LIBRARIES_FALSE=
3794 fi
3795
3796
3797 # Check whether --enable-default-preferences-peer was given.
3798 if test "${enable_default_preferences_peer+set}" = set; then :
3799 enableval=$enable_default_preferences_peer; case "${enableval}" in
3800 file) DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory ;;
3801 gconf|yes|true) DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory ;;
3802 memory) DEFAULT_PREFS_PEER=gnu.java.util.prefs.MemoryBasedFactory ;;
3803 no|false) as_fn_error "bad value '${enableval}' for --enable-default-preferences-peer" "$LINENO" 5 ;;
3804 *) DEFAULT_PREFS_PEER=${enableval} ;;
3805 esac
3806 else
3807 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
3808 fi
3809
3810
3811 # Check whether --enable-gconf-peer was given.
3812 if test "${enable_gconf_peer+set}" = set; then :
3813 enableval=$enable_gconf_peer; case "${enableval}" in
3814 yes) COMPILE_GCONF_PEER=yes ;;
3815 no) COMPILE_GCONF_PEER=no ;;
3816 *) COMPILE_GCONF_PEER=yes ;;
3817 esac
3818 else
3819 COMPILE_GCONF_PEER=yes
3820 fi
3821
3822 if test "x${COMPILE_GCONF_PEER}" = xyes; then
3823 CREATE_GCONF_PEER_LIBRARIES_TRUE=
3824 CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
3825 else
3826 CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
3827 CREATE_GCONF_PEER_LIBRARIES_FALSE=
3828 fi
3829
3830
3831 # Check whether --enable-gconf-peers was given.
3832 if test "${enable_gconf_peers+set}" = set; then :
3833 enableval=$enable_gconf_peers; as_fn_error "No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" "$LINENO" 5
3834 fi
3835
3836
3837 # Check whether --enable-gstreamer-peer was given.
3838 if test "${enable_gstreamer_peer+set}" = set; then :
3839 enableval=$enable_gstreamer_peer; case "${enableval}" in
3840 yes) COMPILE_GSTREAMER_PEER=yes ;;
3841 no) COMPILE_GSTREAMER_PEER=no ;;
3842 *) COMPILE_GSTREAMER_PEER=default ;;
3843 esac
3844 else
3845 COMPILE_GSTREAMER_PEER=default
3846 fi
3847
3848 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
3849 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE=
3850 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE='#'
3851 else
3852 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE='#'
3853 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE=
3854 fi
3855
3856
3857 # Check whether --enable-gstreamer-peers was given.
3858 if test "${enable_gstreamer_peers+set}" = set; then :
3859 enableval=$enable_gstreamer_peers; as_fn_error "No --enable-gstreamer-peers (or --disable-gstreamer-peers) option; you want --enable-gstreamer-peer" "$LINENO" 5
3860 fi
3861
3862
3863 # Check whether --enable-Werror was given.
3864 if test "${enable_Werror+set}" = set; then :
3865 enableval=$enable_Werror; case "${enableval}" in
3866 yes) ENABLE_WERROR=yes ;;
3867 no) ENABLE_WERROR=no ;;
3868 *) ENABLE_WERROR=default ;;
3869 esac
3870 else
3871 ENABLE_WERROR=default
3872 fi
3873
3874
3875 # Check whether --enable-default-toolkit was given.
3876 if test "${enable_default_toolkit+set}" = set; then :
3877 enableval=$enable_default_toolkit;
3878 fi
3879
3880 default_toolkit=$enable_default_toolkit
3881 if test "$default_toolkit" = ""; then
3882 default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
3883 fi
3884
3885
3886 # Check whether --enable-xmlj was given.
3887 if test "${enable_xmlj+set}" = set; then :
3888 enableval=$enable_xmlj; case "${enableval}" in
3889 yes) COMPILE_XMLJ=yes ;;
3890 no) COMPILE_XMLJ=no ;;
3891 *) COMPILE_XMLJ=no ;;
3892 esac
3893 else
3894 COMPILE_XMLJ=no
3895 fi
3896
3897 if test "x${COMPILE_XMLJ}" = xyes; then
3898 CREATE_XMLJ_LIBRARY_TRUE=
3899 CREATE_XMLJ_LIBRARY_FALSE='#'
3900 else
3901 CREATE_XMLJ_LIBRARY_TRUE='#'
3902 CREATE_XMLJ_LIBRARY_FALSE=
3903 fi
3904
3905
3906 DEPDIR="${am__leading_dot}deps"
3907
3908 ac_config_commands="$ac_config_commands depfiles"
3909
3910
3911 am_make=${MAKE-make}
3912 cat > confinc << 'END'
3913 am__doit:
3914 @echo this is the am__doit target
3915 .PHONY: am__doit
3916 END
3917 # If we don't find an include directive, just comment out the code.
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3919 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3920 am__include="#"
3921 am__quote=
3922 _am_result=none
3923 # First try GNU make style include.
3924 echo "include confinc" > confmf
3925 # Ignore all kinds of additional output from `make'.
3926 case `$am_make -s -f confmf 2> /dev/null` in #(
3927 *the\ am__doit\ target*)
3928 am__include=include
3929 am__quote=
3930 _am_result=GNU
3931 ;;
3932 esac
3933 # Now try BSD make style include.
3934 if test "$am__include" = "#"; then
3935 echo '.include "confinc"' > confmf
3936 case `$am_make -s -f confmf 2> /dev/null` in #(
3937 *the\ am__doit\ target*)
3938 am__include=.include
3939 am__quote="\""
3940 _am_result=BSD
3941 ;;
3942 esac
3943 fi
3944
3945
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3947 $as_echo "$_am_result" >&6; }
3948 rm -f confinc confmf
3949
3950 # Check whether --enable-dependency-tracking was given.
3951 if test "${enable_dependency_tracking+set}" = set; then :
3952 enableval=$enable_dependency_tracking;
3953 fi
3954
3955 if test "x$enable_dependency_tracking" != xno; then
3956 am_depcomp="$ac_aux_dir/depcomp"
3957 AMDEPBACKSLASH='\'
3958 fi
3959 if test "x$enable_dependency_tracking" != xno; then
3960 AMDEP_TRUE=
3961 AMDEP_FALSE='#'
3962 else
3963 AMDEP_TRUE='#'
3964 AMDEP_FALSE=
3965 fi
3966
3967
3968 ac_ext=c
3969 ac_cpp='$CPP $CPPFLAGS'
3970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3973 if test -n "$ac_tool_prefix"; then
3974 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3975 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977 $as_echo_n "checking for $ac_word... " >&6; }
3978 if test "${ac_cv_prog_CC+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 if test -n "$CC"; then
3982 ac_cv_prog_CC="$CC" # Let the user override the test.
3983 else
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3986 do
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3991 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 break 2
3994 fi
3995 done
3996 done
3997 IFS=$as_save_IFS
3998
3999 fi
4000 fi
4001 CC=$ac_cv_prog_CC
4002 if test -n "$CC"; then
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4004 $as_echo "$CC" >&6; }
4005 else
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 $as_echo "no" >&6; }
4008 fi
4009
4010
4011 fi
4012 if test -z "$ac_cv_prog_CC"; then
4013 ac_ct_CC=$CC
4014 # Extract the first word of "gcc", so it can be a program name with args.
4015 set dummy gcc; ac_word=$2
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4017 $as_echo_n "checking for $ac_word... " >&6; }
4018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4019 $as_echo_n "(cached) " >&6
4020 else
4021 if test -n "$ac_ct_CC"; then
4022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4023 else
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4026 do
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4031 ac_cv_prog_ac_ct_CC="gcc"
4032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 break 2
4034 fi
4035 done
4036 done
4037 IFS=$as_save_IFS
4038
4039 fi
4040 fi
4041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4042 if test -n "$ac_ct_CC"; then
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4044 $as_echo "$ac_ct_CC" >&6; }
4045 else
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4047 $as_echo "no" >&6; }
4048 fi
4049
4050 if test "x$ac_ct_CC" = x; then
4051 CC=""
4052 else
4053 case $cross_compiling:$ac_tool_warned in
4054 yes:)
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4057 ac_tool_warned=yes ;;
4058 esac
4059 CC=$ac_ct_CC
4060 fi
4061 else
4062 CC="$ac_cv_prog_CC"
4063 fi
4064
4065 if test -z "$CC"; then
4066 if test -n "$ac_tool_prefix"; then
4067 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4068 set dummy ${ac_tool_prefix}cc; ac_word=$2
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4070 $as_echo_n "checking for $ac_word... " >&6; }
4071 if test "${ac_cv_prog_CC+set}" = set; then :
4072 $as_echo_n "(cached) " >&6
4073 else
4074 if test -n "$CC"; then
4075 ac_cv_prog_CC="$CC" # Let the user override the test.
4076 else
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH
4079 do
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4084 ac_cv_prog_CC="${ac_tool_prefix}cc"
4085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 break 2
4087 fi
4088 done
4089 done
4090 IFS=$as_save_IFS
4091
4092 fi
4093 fi
4094 CC=$ac_cv_prog_CC
4095 if test -n "$CC"; then
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4097 $as_echo "$CC" >&6; }
4098 else
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100 $as_echo "no" >&6; }
4101 fi
4102
4103
4104 fi
4105 fi
4106 if test -z "$CC"; then
4107 # Extract the first word of "cc", so it can be a program name with args.
4108 set dummy cc; ac_word=$2
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4110 $as_echo_n "checking for $ac_word... " >&6; }
4111 if test "${ac_cv_prog_CC+set}" = set; then :
4112 $as_echo_n "(cached) " >&6
4113 else
4114 if test -n "$CC"; then
4115 ac_cv_prog_CC="$CC" # Let the user override the test.
4116 else
4117 ac_prog_rejected=no
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH
4120 do
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4125 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4126 ac_prog_rejected=yes
4127 continue
4128 fi
4129 ac_cv_prog_CC="cc"
4130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4131 break 2
4132 fi
4133 done
4134 done
4135 IFS=$as_save_IFS
4136
4137 if test $ac_prog_rejected = yes; then
4138 # We found a bogon in the path, so make sure we never use it.
4139 set dummy $ac_cv_prog_CC
4140 shift
4141 if test $# != 0; then
4142 # We chose a different compiler from the bogus one.
4143 # However, it has the same basename, so the bogon will be chosen
4144 # first if we set CC to just the basename; use the full file name.
4145 shift
4146 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4147 fi
4148 fi
4149 fi
4150 fi
4151 CC=$ac_cv_prog_CC
4152 if test -n "$CC"; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4154 $as_echo "$CC" >&6; }
4155 else
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157 $as_echo "no" >&6; }
4158 fi
4159
4160
4161 fi
4162 if test -z "$CC"; then
4163 if test -n "$ac_tool_prefix"; then
4164 for ac_prog in cl.exe
4165 do
4166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4169 $as_echo_n "checking for $ac_word... " >&6; }
4170 if test "${ac_cv_prog_CC+set}" = set; then :
4171 $as_echo_n "(cached) " >&6
4172 else
4173 if test -n "$CC"; then
4174 ac_cv_prog_CC="$CC" # Let the user override the test.
4175 else
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4178 do
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 break 2
4186 fi
4187 done
4188 done
4189 IFS=$as_save_IFS
4190
4191 fi
4192 fi
4193 CC=$ac_cv_prog_CC
4194 if test -n "$CC"; then
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4196 $as_echo "$CC" >&6; }
4197 else
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4199 $as_echo "no" >&6; }
4200 fi
4201
4202
4203 test -n "$CC" && break
4204 done
4205 fi
4206 if test -z "$CC"; then
4207 ac_ct_CC=$CC
4208 for ac_prog in cl.exe
4209 do
4210 # Extract the first word of "$ac_prog", so it can be a program name with args.
4211 set dummy $ac_prog; ac_word=$2
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213 $as_echo_n "checking for $ac_word... " >&6; }
4214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 if test -n "$ac_ct_CC"; then
4218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4219 else
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH
4222 do
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4227 ac_cv_prog_ac_ct_CC="$ac_prog"
4228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 break 2
4230 fi
4231 done
4232 done
4233 IFS=$as_save_IFS
4234
4235 fi
4236 fi
4237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4238 if test -n "$ac_ct_CC"; then
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4240 $as_echo "$ac_ct_CC" >&6; }
4241 else
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243 $as_echo "no" >&6; }
4244 fi
4245
4246
4247 test -n "$ac_ct_CC" && break
4248 done
4249
4250 if test "x$ac_ct_CC" = x; then
4251 CC=""
4252 else
4253 case $cross_compiling:$ac_tool_warned in
4254 yes:)
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4257 ac_tool_warned=yes ;;
4258 esac
4259 CC=$ac_ct_CC
4260 fi
4261 fi
4262
4263 fi
4264
4265
4266 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4268 as_fn_error "no acceptable C compiler found in \$PATH
4269 See \`config.log' for more details." "$LINENO" 5; }
4270
4271 # Provide some information about the compiler.
4272 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4273 set X $ac_compile
4274 ac_compiler=$2
4275 for ac_option in --version -v -V -qversion; do
4276 { { ac_try="$ac_compiler $ac_option >&5"
4277 case "(($ac_try" in
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4280 esac
4281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4282 $as_echo "$ac_try_echo"; } >&5
4283 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4284 ac_status=$?
4285 if test -s conftest.err; then
4286 sed '10a\
4287 ... rest of stderr output deleted ...
4288 10q' conftest.err >conftest.er1
4289 cat conftest.er1 >&5
4290 rm -f conftest.er1 conftest.err
4291 fi
4292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293 test $ac_status = 0; }
4294 done
4295
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4298
4299 int
4300 main ()
4301 {
4302
4303 ;
4304 return 0;
4305 }
4306 _ACEOF
4307 # FIXME: Cleanup?
4308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4309 (eval $ac_link) 2>&5
4310 ac_status=$?
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; }; then :
4313 gcc_no_link=no
4314 else
4315 gcc_no_link=yes
4316 fi
4317 if test x$gcc_no_link = xyes; then
4318 # Setting cross_compile will disable run tests; it will
4319 # also disable AC_CHECK_FILE but that's generally
4320 # correct if we can't link.
4321 cross_compiling=yes
4322 EXEEXT=
4323 else
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326
4327 int
4328 main ()
4329 {
4330
4331 ;
4332 return 0;
4333 }
4334 _ACEOF
4335 ac_clean_files_save=$ac_clean_files
4336 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4337 # Try to create an executable without -o first, disregard a.out.
4338 # It will help us diagnose broken compilers, and finding out an intuition
4339 # of exeext.
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4341 $as_echo_n "checking for C compiler default output file name... " >&6; }
4342 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4343
4344 # The possible output files:
4345 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4346
4347 ac_rmfiles=
4348 for ac_file in $ac_files
4349 do
4350 case $ac_file in
4351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4352 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4353 esac
4354 done
4355 rm -f $ac_rmfiles
4356
4357 if { { ac_try="$ac_link_default"
4358 case "(($ac_try" in
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4361 esac
4362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4363 $as_echo "$ac_try_echo"; } >&5
4364 (eval "$ac_link_default") 2>&5
4365 ac_status=$?
4366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4367 test $ac_status = 0; }; then :
4368 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4369 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4370 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4371 # so that the user can short-circuit this test for compilers unknown to
4372 # Autoconf.
4373 for ac_file in $ac_files ''
4374 do
4375 test -f "$ac_file" || continue
4376 case $ac_file in
4377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4378 ;;
4379 [ab].out )
4380 # We found the default executable, but exeext='' is most
4381 # certainly right.
4382 break;;
4383 *.* )
4384 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4385 then :; else
4386 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4387 fi
4388 # We set ac_cv_exeext here because the later test for it is not
4389 # safe: cross compilers may not add the suffix if given an `-o'
4390 # argument, so we may need to know it at that point already.
4391 # Even if this section looks crufty: it has the advantage of
4392 # actually working.
4393 break;;
4394 * )
4395 break;;
4396 esac
4397 done
4398 test "$ac_cv_exeext" = no && ac_cv_exeext=
4399
4400 else
4401 ac_file=''
4402 fi
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4404 $as_echo "$ac_file" >&6; }
4405 if test -z "$ac_file"; then :
4406 $as_echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4408
4409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4411 { as_fn_set_status 77
4412 as_fn_error "C compiler cannot create executables
4413 See \`config.log' for more details." "$LINENO" 5; }; }
4414 fi
4415 ac_exeext=$ac_cv_exeext
4416
4417 # Check that the compiler produces executables we can run. If not, either
4418 # the compiler is broken, or we cross compile.
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4420 $as_echo_n "checking whether the C compiler works... " >&6; }
4421 # If not cross compiling, check that we can run a simple program.
4422 if test "$cross_compiling" != yes; then
4423 if { ac_try='./$ac_file'
4424 { { case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4427 esac
4428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4429 $as_echo "$ac_try_echo"; } >&5
4430 (eval "$ac_try") 2>&5
4431 ac_status=$?
4432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4433 test $ac_status = 0; }; }; then
4434 cross_compiling=no
4435 else
4436 if test "$cross_compiling" = maybe; then
4437 cross_compiling=yes
4438 else
4439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4441 as_fn_error "cannot run C compiled programs.
4442 If you meant to cross compile, use \`--host'.
4443 See \`config.log' for more details." "$LINENO" 5; }
4444 fi
4445 fi
4446 fi
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4448 $as_echo "yes" >&6; }
4449
4450 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4451 ac_clean_files=$ac_clean_files_save
4452 # Check that the compiler produces executables we can run. If not, either
4453 # the compiler is broken, or we cross compile.
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4455 $as_echo_n "checking whether we are cross compiling... " >&6; }
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4457 $as_echo "$cross_compiling" >&6; }
4458
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4460 $as_echo_n "checking for suffix of executables... " >&6; }
4461 if { { ac_try="$ac_link"
4462 case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4465 esac
4466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4467 $as_echo "$ac_try_echo"; } >&5
4468 (eval "$ac_link") 2>&5
4469 ac_status=$?
4470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4471 test $ac_status = 0; }; then :
4472 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4473 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4474 # work properly (i.e., refer to `conftest.exe'), while it won't with
4475 # `rm'.
4476 for ac_file in conftest.exe conftest conftest.*; do
4477 test -f "$ac_file" || continue
4478 case $ac_file in
4479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4480 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4481 break;;
4482 * ) break;;
4483 esac
4484 done
4485 else
4486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4488 as_fn_error "cannot compute suffix of executables: cannot compile and link
4489 See \`config.log' for more details." "$LINENO" 5; }
4490 fi
4491 rm -f conftest$ac_cv_exeext
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4493 $as_echo "$ac_cv_exeext" >&6; }
4494
4495 rm -f conftest.$ac_ext
4496 EXEEXT=$ac_cv_exeext
4497 ac_exeext=$EXEEXT
4498 fi
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4500 $as_echo_n "checking for suffix of object files... " >&6; }
4501 if test "${ac_cv_objext+set}" = set; then :
4502 $as_echo_n "(cached) " >&6
4503 else
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4506
4507 int
4508 main ()
4509 {
4510
4511 ;
4512 return 0;
4513 }
4514 _ACEOF
4515 rm -f conftest.o conftest.obj
4516 if { { ac_try="$ac_compile"
4517 case "(($ac_try" in
4518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4519 *) ac_try_echo=$ac_try;;
4520 esac
4521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4522 $as_echo "$ac_try_echo"; } >&5
4523 (eval "$ac_compile") 2>&5
4524 ac_status=$?
4525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4526 test $ac_status = 0; }; then :
4527 for ac_file in conftest.o conftest.obj conftest.*; do
4528 test -f "$ac_file" || continue;
4529 case $ac_file in
4530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4531 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4532 break;;
4533 esac
4534 done
4535 else
4536 $as_echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4541 as_fn_error "cannot compute suffix of object files: cannot compile
4542 See \`config.log' for more details." "$LINENO" 5; }
4543 fi
4544 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4545 fi
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4547 $as_echo "$ac_cv_objext" >&6; }
4548 OBJEXT=$ac_cv_objext
4549 ac_objext=$OBJEXT
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4551 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4552 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4553 $as_echo_n "(cached) " >&6
4554 else
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4557
4558 int
4559 main ()
4560 {
4561 #ifndef __GNUC__
4562 choke me
4563 #endif
4564
4565 ;
4566 return 0;
4567 }
4568 _ACEOF
4569 if ac_fn_c_try_compile "$LINENO"; then :
4570 ac_compiler_gnu=yes
4571 else
4572 ac_compiler_gnu=no
4573 fi
4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4576
4577 fi
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4579 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4580 if test $ac_compiler_gnu = yes; then
4581 GCC=yes
4582 else
4583 GCC=
4584 fi
4585 ac_test_CFLAGS=${CFLAGS+set}
4586 ac_save_CFLAGS=$CFLAGS
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4588 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4589 if test "${ac_cv_prog_cc_g+set}" = set; then :
4590 $as_echo_n "(cached) " >&6
4591 else
4592 ac_save_c_werror_flag=$ac_c_werror_flag
4593 ac_c_werror_flag=yes
4594 ac_cv_prog_cc_g=no
4595 CFLAGS="-g"
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4598
4599 int
4600 main ()
4601 {
4602
4603 ;
4604 return 0;
4605 }
4606 _ACEOF
4607 if ac_fn_c_try_compile "$LINENO"; then :
4608 ac_cv_prog_cc_g=yes
4609 else
4610 CFLAGS=""
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613
4614 int
4615 main ()
4616 {
4617
4618 ;
4619 return 0;
4620 }
4621 _ACEOF
4622 if ac_fn_c_try_compile "$LINENO"; then :
4623
4624 else
4625 ac_c_werror_flag=$ac_save_c_werror_flag
4626 CFLAGS="-g"
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4629
4630 int
4631 main ()
4632 {
4633
4634 ;
4635 return 0;
4636 }
4637 _ACEOF
4638 if ac_fn_c_try_compile "$LINENO"; then :
4639 ac_cv_prog_cc_g=yes
4640 fi
4641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 fi
4643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4644 fi
4645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646 ac_c_werror_flag=$ac_save_c_werror_flag
4647 fi
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4649 $as_echo "$ac_cv_prog_cc_g" >&6; }
4650 if test "$ac_test_CFLAGS" = set; then
4651 CFLAGS=$ac_save_CFLAGS
4652 elif test $ac_cv_prog_cc_g = yes; then
4653 if test "$GCC" = yes; then
4654 CFLAGS="-g -O2"
4655 else
4656 CFLAGS="-g"
4657 fi
4658 else
4659 if test "$GCC" = yes; then
4660 CFLAGS="-O2"
4661 else
4662 CFLAGS=
4663 fi
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4666 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4667 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4668 $as_echo_n "(cached) " >&6
4669 else
4670 ac_cv_prog_cc_c89=no
4671 ac_save_CC=$CC
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4674 #include <stdarg.h>
4675 #include <stdio.h>
4676 #include <sys/types.h>
4677 #include <sys/stat.h>
4678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4679 struct buf { int x; };
4680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4681 static char *e (p, i)
4682 char **p;
4683 int i;
4684 {
4685 return p[i];
4686 }
4687 static char *f (char * (*g) (char **, int), char **p, ...)
4688 {
4689 char *s;
4690 va_list v;
4691 va_start (v,p);
4692 s = g (p, va_arg (v,int));
4693 va_end (v);
4694 return s;
4695 }
4696
4697 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4698 function prototypes and stuff, but not '\xHH' hex character constants.
4699 These don't provoke an error unfortunately, instead are silently treated
4700 as 'x'. The following induces an error, until -std is added to get
4701 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4702 array size at least. It's necessary to write '\x00'==0 to get something
4703 that's true only with -std. */
4704 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4705
4706 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4707 inside strings and character constants. */
4708 #define FOO(x) 'x'
4709 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4710
4711 int test (int i, double x);
4712 struct s1 {int (*f) (int a);};
4713 struct s2 {int (*f) (double a);};
4714 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4715 int argc;
4716 char **argv;
4717 int
4718 main ()
4719 {
4720 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4721 ;
4722 return 0;
4723 }
4724 _ACEOF
4725 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4726 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4727 do
4728 CC="$ac_save_CC $ac_arg"
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730 ac_cv_prog_cc_c89=$ac_arg
4731 fi
4732 rm -f core conftest.err conftest.$ac_objext
4733 test "x$ac_cv_prog_cc_c89" != "xno" && break
4734 done
4735 rm -f conftest.$ac_ext
4736 CC=$ac_save_CC
4737
4738 fi
4739 # AC_CACHE_VAL
4740 case "x$ac_cv_prog_cc_c89" in
4741 x)
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4743 $as_echo "none needed" >&6; } ;;
4744 xno)
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4746 $as_echo "unsupported" >&6; } ;;
4747 *)
4748 CC="$CC $ac_cv_prog_cc_c89"
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4750 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4751 esac
4752 if test "x$ac_cv_prog_cc_c89" != xno; then :
4753
4754 fi
4755
4756 ac_ext=c
4757 ac_cpp='$CPP $CPPFLAGS'
4758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4761
4762 depcc="$CC" am_compiler_list=
4763
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4765 $as_echo_n "checking dependency style of $depcc... " >&6; }
4766 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4770 # We make a subdir and do the tests there. Otherwise we can end up
4771 # making bogus files that we don't know about and never remove. For
4772 # instance it was reported that on HP-UX the gcc test will end up
4773 # making a dummy file named `D' -- because `-MD' means `put the output
4774 # in D'.
4775 mkdir conftest.dir
4776 # Copy depcomp to subdir because otherwise we won't find it if we're
4777 # using a relative directory.
4778 cp "$am_depcomp" conftest.dir
4779 cd conftest.dir
4780 # We will build objects and dependencies in a subdirectory because
4781 # it helps to detect inapplicable dependency modes. For instance
4782 # both Tru64's cc and ICC support -MD to output dependencies as a
4783 # side effect of compilation, but ICC will put the dependencies in
4784 # the current directory while Tru64 will put them in the object
4785 # directory.
4786 mkdir sub
4787
4788 am_cv_CC_dependencies_compiler_type=none
4789 if test "$am_compiler_list" = ""; then
4790 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4791 fi
4792 am__universal=false
4793 case " $depcc " in #(
4794 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4795 esac
4796
4797 for depmode in $am_compiler_list; do
4798 # Setup a source with many dependencies, because some compilers
4799 # like to wrap large dependency lists on column 80 (with \), and
4800 # we should not choose a depcomp mode which is confused by this.
4801 #
4802 # We need to recreate these files for each test, as the compiler may
4803 # overwrite some of them when testing with obscure command lines.
4804 # This happens at least with the AIX C compiler.
4805 : > sub/conftest.c
4806 for i in 1 2 3 4 5 6; do
4807 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4808 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4809 # Solaris 8's {/usr,}/bin/sh.
4810 touch sub/conftst$i.h
4811 done
4812 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4813
4814 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4815 # mode. It turns out that the SunPro C++ compiler does not properly
4816 # handle `-M -o', and we need to detect this. Also, some Intel
4817 # versions had trouble with output in subdirs
4818 am__obj=sub/conftest.${OBJEXT-o}
4819 am__minus_obj="-o $am__obj"
4820 case $depmode in
4821 gcc)
4822 # This depmode causes a compiler race in universal mode.
4823 test "$am__universal" = false || continue
4824 ;;
4825 nosideeffect)
4826 # after this tag, mechanisms are not by side-effect, so they'll
4827 # only be used when explicitly requested
4828 if test "x$enable_dependency_tracking" = xyes; then
4829 continue
4830 else
4831 break
4832 fi
4833 ;;
4834 msvisualcpp | msvcmsys)
4835 # This compiler won't grok `-c -o', but also, the minuso test has
4836 # not run yet. These depmodes are late enough in the game, and
4837 # so weak that their functioning should not be impacted.
4838 am__obj=conftest.${OBJEXT-o}
4839 am__minus_obj=
4840 ;;
4841 none) break ;;
4842 esac
4843 if depmode=$depmode \
4844 source=sub/conftest.c object=$am__obj \
4845 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4846 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4847 >/dev/null 2>conftest.err &&
4848 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4849 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4850 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4851 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4852 # icc doesn't choke on unknown options, it will just issue warnings
4853 # or remarks (even with -Werror). So we grep stderr for any message
4854 # that says an option was ignored or not supported.
4855 # When given -MP, icc 7.0 and 7.1 complain thusly:
4856 # icc: Command line warning: ignoring option '-M'; no argument required
4857 # The diagnosis changed in icc 8.0:
4858 # icc: Command line remark: option '-MP' not supported
4859 if (grep 'ignoring option' conftest.err ||
4860 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4861 am_cv_CC_dependencies_compiler_type=$depmode
4862 break
4863 fi
4864 fi
4865 done
4866
4867 cd ..
4868 rm -rf conftest.dir
4869 else
4870 am_cv_CC_dependencies_compiler_type=none
4871 fi
4872
4873 fi
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4875 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4876 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4877
4878 if
4879 test "x$enable_dependency_tracking" != xno \
4880 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4881 am__fastdepCC_TRUE=
4882 am__fastdepCC_FALSE='#'
4883 else
4884 am__fastdepCC_TRUE='#'
4885 am__fastdepCC_FALSE=
4886 fi
4887
4888
4889
4890 ac_ext=c
4891 ac_cpp='$CPP $CPPFLAGS'
4892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4896 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4897 # On Suns, sometimes $CPP names a directory.
4898 if test -n "$CPP" && test -d "$CPP"; then
4899 CPP=
4900 fi
4901 if test -z "$CPP"; then
4902 if test "${ac_cv_prog_CPP+set}" = set; then :
4903 $as_echo_n "(cached) " >&6
4904 else
4905 # Double quotes because CPP needs to be expanded
4906 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4907 do
4908 ac_preproc_ok=false
4909 for ac_c_preproc_warn_flag in '' yes
4910 do
4911 # Use a header file that comes with gcc, so configuring glibc
4912 # with a fresh cross-compiler works.
4913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4914 # <limits.h> exists even on freestanding compilers.
4915 # On the NeXT, cc -E runs the code through the compiler's parser,
4916 # not just through cpp. "Syntax error" is here to catch this case.
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4919 #ifdef __STDC__
4920 # include <limits.h>
4921 #else
4922 # include <assert.h>
4923 #endif
4924 Syntax error
4925 _ACEOF
4926 if ac_fn_c_try_cpp "$LINENO"; then :
4927
4928 else
4929 # Broken: fails on valid input.
4930 continue
4931 fi
4932 rm -f conftest.err conftest.$ac_ext
4933
4934 # OK, works on sane cases. Now check whether nonexistent headers
4935 # can be detected and how.
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4938 #include <ac_nonexistent.h>
4939 _ACEOF
4940 if ac_fn_c_try_cpp "$LINENO"; then :
4941 # Broken: success on invalid input.
4942 continue
4943 else
4944 # Passes both tests.
4945 ac_preproc_ok=:
4946 break
4947 fi
4948 rm -f conftest.err conftest.$ac_ext
4949
4950 done
4951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4952 rm -f conftest.err conftest.$ac_ext
4953 if $ac_preproc_ok; then :
4954 break
4955 fi
4956
4957 done
4958 ac_cv_prog_CPP=$CPP
4959
4960 fi
4961 CPP=$ac_cv_prog_CPP
4962 else
4963 ac_cv_prog_CPP=$CPP
4964 fi
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4966 $as_echo "$CPP" >&6; }
4967 ac_preproc_ok=false
4968 for ac_c_preproc_warn_flag in '' yes
4969 do
4970 # Use a header file that comes with gcc, so configuring glibc
4971 # with a fresh cross-compiler works.
4972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4973 # <limits.h> exists even on freestanding compilers.
4974 # On the NeXT, cc -E runs the code through the compiler's parser,
4975 # not just through cpp. "Syntax error" is here to catch this case.
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4978 #ifdef __STDC__
4979 # include <limits.h>
4980 #else
4981 # include <assert.h>
4982 #endif
4983 Syntax error
4984 _ACEOF
4985 if ac_fn_c_try_cpp "$LINENO"; then :
4986
4987 else
4988 # Broken: fails on valid input.
4989 continue
4990 fi
4991 rm -f conftest.err conftest.$ac_ext
4992
4993 # OK, works on sane cases. Now check whether nonexistent headers
4994 # can be detected and how.
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4997 #include <ac_nonexistent.h>
4998 _ACEOF
4999 if ac_fn_c_try_cpp "$LINENO"; then :
5000 # Broken: success on invalid input.
5001 continue
5002 else
5003 # Passes both tests.
5004 ac_preproc_ok=:
5005 break
5006 fi
5007 rm -f conftest.err conftest.$ac_ext
5008
5009 done
5010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5011 rm -f conftest.err conftest.$ac_ext
5012 if $ac_preproc_ok; then :
5013
5014 else
5015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5017 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5018 See \`config.log' for more details." "$LINENO" 5; }
5019 fi
5020
5021 ac_ext=c
5022 ac_cpp='$CPP $CPPFLAGS'
5023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5026
5027
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5029 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5030 if test "${ac_cv_path_GREP+set}" = set; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 if test -z "$GREP"; then
5034 ac_path_GREP_found=false
5035 # Loop through the user's path and test for each of PROGNAME-LIST
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5038 do
5039 IFS=$as_save_IFS
5040 test -z "$as_dir" && as_dir=.
5041 for ac_prog in grep ggrep; do
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5044 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5045 # Check for GNU ac_path_GREP and select it if it is found.
5046 # Check for GNU $ac_path_GREP
5047 case `"$ac_path_GREP" --version 2>&1` in
5048 *GNU*)
5049 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5050 *)
5051 ac_count=0
5052 $as_echo_n 0123456789 >"conftest.in"
5053 while :
5054 do
5055 cat "conftest.in" "conftest.in" >"conftest.tmp"
5056 mv "conftest.tmp" "conftest.in"
5057 cp "conftest.in" "conftest.nl"
5058 $as_echo 'GREP' >> "conftest.nl"
5059 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5061 as_fn_arith $ac_count + 1 && ac_count=$as_val
5062 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5063 # Best one so far, save it but keep looking for a better one
5064 ac_cv_path_GREP="$ac_path_GREP"
5065 ac_path_GREP_max=$ac_count
5066 fi
5067 # 10*(2^10) chars as input seems more than enough
5068 test $ac_count -gt 10 && break
5069 done
5070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5071 esac
5072
5073 $ac_path_GREP_found && break 3
5074 done
5075 done
5076 done
5077 IFS=$as_save_IFS
5078 if test -z "$ac_cv_path_GREP"; then
5079 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5080 fi
5081 else
5082 ac_cv_path_GREP=$GREP
5083 fi
5084
5085 fi
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5087 $as_echo "$ac_cv_path_GREP" >&6; }
5088 GREP="$ac_cv_path_GREP"
5089
5090
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5092 $as_echo_n "checking for egrep... " >&6; }
5093 if test "${ac_cv_path_EGREP+set}" = set; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5097 then ac_cv_path_EGREP="$GREP -E"
5098 else
5099 if test -z "$EGREP"; then
5100 ac_path_EGREP_found=false
5101 # Loop through the user's path and test for each of PROGNAME-LIST
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5104 do
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5107 for ac_prog in egrep; do
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5110 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5111 # Check for GNU ac_path_EGREP and select it if it is found.
5112 # Check for GNU $ac_path_EGREP
5113 case `"$ac_path_EGREP" --version 2>&1` in
5114 *GNU*)
5115 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5116 *)
5117 ac_count=0
5118 $as_echo_n 0123456789 >"conftest.in"
5119 while :
5120 do
5121 cat "conftest.in" "conftest.in" >"conftest.tmp"
5122 mv "conftest.tmp" "conftest.in"
5123 cp "conftest.in" "conftest.nl"
5124 $as_echo 'EGREP' >> "conftest.nl"
5125 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5127 as_fn_arith $ac_count + 1 && ac_count=$as_val
5128 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5129 # Best one so far, save it but keep looking for a better one
5130 ac_cv_path_EGREP="$ac_path_EGREP"
5131 ac_path_EGREP_max=$ac_count
5132 fi
5133 # 10*(2^10) chars as input seems more than enough
5134 test $ac_count -gt 10 && break
5135 done
5136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5137 esac
5138
5139 $ac_path_EGREP_found && break 3
5140 done
5141 done
5142 done
5143 IFS=$as_save_IFS
5144 if test -z "$ac_cv_path_EGREP"; then
5145 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5146 fi
5147 else
5148 ac_cv_path_EGREP=$EGREP
5149 fi
5150
5151 fi
5152 fi
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5154 $as_echo "$ac_cv_path_EGREP" >&6; }
5155 EGREP="$ac_cv_path_EGREP"
5156
5157
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5159 $as_echo_n "checking for ANSI C header files... " >&6; }
5160 if test "${ac_cv_header_stdc+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164 /* end confdefs.h. */
5165 #include <stdlib.h>
5166 #include <stdarg.h>
5167 #include <string.h>
5168 #include <float.h>
5169
5170 int
5171 main ()
5172 {
5173
5174 ;
5175 return 0;
5176 }
5177 _ACEOF
5178 if ac_fn_c_try_compile "$LINENO"; then :
5179 ac_cv_header_stdc=yes
5180 else
5181 ac_cv_header_stdc=no
5182 fi
5183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184
5185 if test $ac_cv_header_stdc = yes; then
5186 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5189 #include <string.h>
5190
5191 _ACEOF
5192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5193 $EGREP "memchr" >/dev/null 2>&1; then :
5194
5195 else
5196 ac_cv_header_stdc=no
5197 fi
5198 rm -f conftest*
5199
5200 fi
5201
5202 if test $ac_cv_header_stdc = yes; then
5203 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5206 #include <stdlib.h>
5207
5208 _ACEOF
5209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5210 $EGREP "free" >/dev/null 2>&1; then :
5211
5212 else
5213 ac_cv_header_stdc=no
5214 fi
5215 rm -f conftest*
5216
5217 fi
5218
5219 if test $ac_cv_header_stdc = yes; then
5220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5221 if test "$cross_compiling" = yes; then :
5222 :
5223 else
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5226 #include <ctype.h>
5227 #include <stdlib.h>
5228 #if ((' ' & 0x0FF) == 0x020)
5229 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5230 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5231 #else
5232 # define ISLOWER(c) \
5233 (('a' <= (c) && (c) <= 'i') \
5234 || ('j' <= (c) && (c) <= 'r') \
5235 || ('s' <= (c) && (c) <= 'z'))
5236 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5237 #endif
5238
5239 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5240 int
5241 main ()
5242 {
5243 int i;
5244 for (i = 0; i < 256; i++)
5245 if (XOR (islower (i), ISLOWER (i))
5246 || toupper (i) != TOUPPER (i))
5247 return 2;
5248 return 0;
5249 }
5250 _ACEOF
5251 if ac_fn_c_try_run "$LINENO"; then :
5252
5253 else
5254 ac_cv_header_stdc=no
5255 fi
5256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5257 conftest.$ac_objext conftest.beam conftest.$ac_ext
5258 fi
5259
5260 fi
5261 fi
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5263 $as_echo "$ac_cv_header_stdc" >&6; }
5264 if test $ac_cv_header_stdc = yes; then
5265
5266 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5267
5268 fi
5269
5270 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5271 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5272 inttypes.h stdint.h unistd.h
5273 do :
5274 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5275 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5276 "
5277 eval as_val=\$$as_ac_Header
5278 if test "x$as_val" = x""yes; then :
5279 cat >>confdefs.h <<_ACEOF
5280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5281 _ACEOF
5282
5283 fi
5284
5285 done
5286
5287
5288 # Check whether --enable-alsa was given.
5289 if test "${enable_alsa+set}" = set; then :
5290 enableval=$enable_alsa; case "${enableval}" in
5291 yes) COMPILE_ALSA=yes ;;
5292 no) COMPILE_ALSA=no ;;
5293 *) COMPILE_ALSA=yes ;;
5294 esac
5295 else
5296 for ac_header in alsa/asoundlib.h
5297 do :
5298 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
5299 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
5300 cat >>confdefs.h <<_ACEOF
5301 #define HAVE_ALSA_ASOUNDLIB_H 1
5302 _ACEOF
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_seq_open in -lasound" >&5
5304 $as_echo_n "checking for snd_seq_open in -lasound... " >&6; }
5305 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then :
5306 $as_echo_n "(cached) " >&6
5307 else
5308 ac_check_lib_save_LIBS=$LIBS
5309 LIBS="-lasound $LIBS"
5310 if test x$gcc_no_link = xyes; then
5311 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5312 fi
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5315
5316 /* Override any GCC internal prototype to avoid an error.
5317 Use char because int might match the return type of a GCC
5318 builtin and then its argument prototype would still apply. */
5319 #ifdef __cplusplus
5320 extern "C"
5321 #endif
5322 char snd_seq_open ();
5323 int
5324 main ()
5325 {
5326 return snd_seq_open ();
5327 ;
5328 return 0;
5329 }
5330 _ACEOF
5331 if ac_fn_c_try_link "$LINENO"; then :
5332 ac_cv_lib_asound_snd_seq_open=yes
5333 else
5334 ac_cv_lib_asound_snd_seq_open=no
5335 fi
5336 rm -f core conftest.err conftest.$ac_objext \
5337 conftest$ac_exeext conftest.$ac_ext
5338 LIBS=$ac_check_lib_save_LIBS
5339 fi
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_seq_open" >&5
5341 $as_echo "$ac_cv_lib_asound_snd_seq_open" >&6; }
5342 if test "x$ac_cv_lib_asound_snd_seq_open" = x""yes; then :
5343 COMPILE_ALSA=yes
5344 else
5345 COMPILE_ALSA=no
5346 fi
5347
5348 else
5349 COMPILE_ALSA=no
5350 fi
5351
5352 done
5353
5354 fi
5355
5356 if test "x${COMPILE_ALSA}" = xyes; then
5357 CREATE_ALSA_LIBRARIES_TRUE=
5358 CREATE_ALSA_LIBRARIES_FALSE='#'
5359 else
5360 CREATE_ALSA_LIBRARIES_TRUE='#'
5361 CREATE_ALSA_LIBRARIES_FALSE=
5362 fi
5363
5364
5365 # Check whether --enable-dssi was given.
5366 if test "${enable_dssi+set}" = set; then :
5367 enableval=$enable_dssi; case "${enableval}" in
5368 yes) COMPILE_DSSI=yes ;;
5369 no) COMPILE_DSSI=no ;;
5370 *) COMPILE_DSSI=yes ;;
5371 esac
5372 else
5373 COMPILE_DSSI=no
5374 for ac_header in dssi.h
5375 do :
5376 ac_fn_c_check_header_mongrel "$LINENO" "dssi.h" "ac_cv_header_dssi_h" "$ac_includes_default"
5377 if test "x$ac_cv_header_dssi_h" = x""yes; then :
5378 cat >>confdefs.h <<_ACEOF
5379 #define HAVE_DSSI_H 1
5380 _ACEOF
5381
5382 for ac_header in jack/jack.h
5383 do :
5384 ac_fn_c_check_header_mongrel "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default"
5385 if test "x$ac_cv_header_jack_jack_h" = x""yes; then :
5386 cat >>confdefs.h <<_ACEOF
5387 #define HAVE_JACK_JACK_H 1
5388 _ACEOF
5389 COMPILE_DSSI=yes
5390 fi
5391
5392 done
5393
5394 fi
5395
5396 done
5397
5398 fi
5399
5400 if test "x${COMPILE_DSSI}" = xyes; then
5401 CREATE_DSSI_LIBRARIES_TRUE=
5402 CREATE_DSSI_LIBRARIES_FALSE='#'
5403 else
5404 CREATE_DSSI_LIBRARIES_TRUE='#'
5405 CREATE_DSSI_LIBRARIES_FALSE=
5406 fi
5407
5408
5409 # Check whether --enable-gtk-peer was given.
5410 if test "${enable_gtk_peer+set}" = set; then :
5411 enableval=$enable_gtk_peer; case "${enableval}" in
5412 yes) COMPILE_GTK_PEER=yes ;;
5413 no) COMPILE_GTK_PEER=no ;;
5414 *) COMPILE_GTK_PEER=yes ;;
5415 esac
5416 else
5417 COMPILE_GTK_PEER=yes
5418 fi
5419
5420 if test "x${COMPILE_GTK_PEER}" = xyes; then
5421 CREATE_GTK_PEER_LIBRARIES_TRUE=
5422 CREATE_GTK_PEER_LIBRARIES_FALSE='#'
5423 else
5424 CREATE_GTK_PEER_LIBRARIES_TRUE='#'
5425 CREATE_GTK_PEER_LIBRARIES_FALSE=
5426 fi
5427
5428
5429 # Check whether --enable-gtk-peers was given.
5430 if test "${enable_gtk_peers+set}" = set; then :
5431 enableval=$enable_gtk_peers; as_fn_error "No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" "$LINENO" 5
5432 fi
5433
5434
5435 # Check whether --enable-qt-peer was given.
5436 if test "${enable_qt_peer+set}" = set; then :
5437 enableval=$enable_qt_peer; case "${enableval}" in
5438 yes) COMPILE_QT_PEER=yes ;;
5439 no) COMPILE_QT_PEER=no ;;
5440 *) COMPILE_QT_PEER=yes ;;
5441 esac
5442 else
5443 COMPILE_QT_PEER=no
5444 fi
5445
5446 if test "x${COMPILE_QT_PEER}" = xyes; then
5447 CREATE_QT_PEER_LIBRARIES_TRUE=
5448 CREATE_QT_PEER_LIBRARIES_FALSE='#'
5449 else
5450 CREATE_QT_PEER_LIBRARIES_TRUE='#'
5451 CREATE_QT_PEER_LIBRARIES_FALSE=
5452 fi
5453
5454
5455 # Check whether --enable-plugin was given.
5456 if test "${enable_plugin+set}" = set; then :
5457 enableval=$enable_plugin; case "${enableval}" in
5458 yes) COMPILE_PLUGIN=yes ;;
5459 no) COMPILE_PLUGIN=no ;;
5460 *) COMPILE_PLUGIN=yes ;;
5461 esac
5462 else
5463 COMPILE_PLUGIN=yes
5464 fi
5465
5466 if test "x${COMPILE_PLUGIN}" = xyes; then
5467 CREATE_PLUGIN_TRUE=
5468 CREATE_PLUGIN_FALSE='#'
5469 else
5470 CREATE_PLUGIN_TRUE='#'
5471 CREATE_PLUGIN_FALSE=
5472 fi
5473
5474
5475 # Check whether --enable-gmp was given.
5476 if test "${enable_gmp+set}" = set; then :
5477 enableval=$enable_gmp; case "${enableval}" in
5478 yes|true) COMPILE_GMP=yes ;;
5479 no|false) COMPILE_GMP=no ;;
5480 *) COMPILE_GMP=yes ;;
5481 esac
5482 else
5483 COMPILE_GMP=yes
5484 fi
5485
5486
5487 # Check whether --enable-gjdoc was given.
5488 if test "${enable_gjdoc+set}" = set; then :
5489 enableval=$enable_gjdoc; case "${enableval}" in
5490 yes) COMPILE_GJDOC=yes ;;
5491 no) COMPILE_GJDOC=no ;;
5492 *) COMPILE_GJDOC=yes ;;
5493 esac
5494 else
5495 COMPILE_GJDOC=yes
5496 fi
5497
5498 if test "x${COMPILE_GJDOC}" = xyes; then
5499 CREATE_GJDOC_TRUE=
5500 CREATE_GJDOC_FALSE='#'
5501 else
5502 CREATE_GJDOC_TRUE='#'
5503 CREATE_GJDOC_FALSE=
5504 fi
5505
5506
5507
5508 multi_os_directory=`$CC -print-multi-os-directory`
5509 case $multi_os_directory in
5510 .) toolexeclibdir=${libdir} ;; # Avoid trailing /.
5511 *) toolexeclibdir=${libdir}/${multi_os_directory} ;;
5512 esac
5513
5514
5515
5516
5517 # Check whether --with-native-libdir was given.
5518 if test "${with_native_libdir+set}" = set; then :
5519 withval=$with_native_libdir;
5520 nativeexeclibdir=${withval}
5521
5522 else
5523
5524 nativeexeclibdir='${toolexeclibdir}/gcj-'`cat ${srcdir}/../../gcc/BASE-VER`-`awk -F: '/^[^#].*:/ { print $1 }' ${srcdir}/../libtool-version`
5525
5526 fi
5527
5528
5529
5530
5531
5532 # Check whether --with-glibj-dir was given.
5533 if test "${with_glibj_dir+set}" = set; then :
5534 withval=$with_glibj_dir;
5535 glibjdir=${withval}
5536
5537 else
5538
5539 glibjdir='${datadir}/${PACKAGE}'
5540
5541 fi
5542
5543
5544
5545
5546
5547 # Check whether --with-antlr-jar was given.
5548 if test "${with_antlr_jar+set}" = set; then :
5549 withval=$with_antlr_jar;
5550 ANTLR_JAR=$withval
5551
5552 else
5553
5554 ANTLR_JAR="$ANTLR_JAR"
5555
5556 fi
5557
5558
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the headers" >&5
5560 $as_echo_n "checking whether to regenerate the headers... " >&6; }
5561 # Check whether --enable-regen-headers was given.
5562 if test "${enable_regen_headers+set}" = set; then :
5563 enableval=$enable_regen_headers; case "${enableval}" in
5564 yes) REGENERATE_JNI_HEADERS=yes ;;
5565 no) REGENERATE_JNI_HEADERS=no ;;
5566 *) REGENERATE_JNI_HEADERS=yes ;;
5567 esac
5568 else
5569 if test -e ${srcdir}/include/java_lang_VMSystem.h; then
5570 REGENERATE_JNI_HEADERS=no ;
5571 else
5572 REGENERATE_JNI_HEADERS=yes ;
5573 fi
5574 fi
5575
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_JNI_HEADERS}" >&5
5577 $as_echo "${REGENERATE_JNI_HEADERS}" >&6; }
5578 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
5579 CREATE_JNI_HEADERS_TRUE=
5580 CREATE_JNI_HEADERS_FALSE='#'
5581 else
5582 CREATE_JNI_HEADERS_TRUE='#'
5583 CREATE_JNI_HEADERS_FALSE=
5584 fi
5585
5586
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the GJDoc parser" >&5
5588 $as_echo_n "checking whether to regenerate the GJDoc parser... " >&6; }
5589 # Check whether --enable-regen-gjdoc-parser was given.
5590 if test "${enable_regen_gjdoc_parser+set}" = set; then :
5591 enableval=$enable_regen_gjdoc_parser; case "${enableval}" in
5592 yes) REGENERATE_GJDOC_PARSER=yes ;;
5593 no) REGENERATE_GJDOC_PARSER=no ;;
5594 *) REGENERATE_GJDOC_PARSER=yes ;;
5595 esac
5596 else
5597 if test -e ${srcdir}/tools/generated/gnu/classpath/tools/gjdoc/expr/JavaLexer.java; then
5598 REGENERATE_GJDOC_PARSER=no ;
5599 else
5600 REGENERATE_GJDOC_PARSER=yes ;
5601 fi
5602 fi
5603
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_GJDOC_PARSER}" >&5
5605 $as_echo "${REGENERATE_GJDOC_PARSER}" >&6; }
5606 if test "x${REGENERATE_GJDOC_PARSER}" = xyes; then
5607 CREATE_GJDOC_PARSER_TRUE=
5608 CREATE_GJDOC_PARSER_FALSE='#'
5609 else
5610 CREATE_GJDOC_PARSER_TRUE='#'
5611 CREATE_GJDOC_PARSER_FALSE=
5612 fi
5613
5614
5615 # Check whether --enable-tool-wrappers was given.
5616 if test "${enable_tool_wrappers+set}" = set; then :
5617 enableval=$enable_tool_wrappers; case x"${enableval}" in
5618 xyes)
5619 COMPILE_WRAPPERS=yes;
5620 for ac_header in ltdl.h
5621 do :
5622 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
5623 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
5624 cat >>confdefs.h <<_ACEOF
5625 #define HAVE_LTDL_H 1
5626 _ACEOF
5627
5628 else
5629 as_fn_error "cannot find ltdl.h" "$LINENO" 5
5630 fi
5631
5632 done
5633
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
5635 $as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
5636 if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
5637 $as_echo_n "(cached) " >&6
5638 else
5639 ac_check_lib_save_LIBS=$LIBS
5640 LIBS="-lltdl $LIBS"
5641 if test x$gcc_no_link = xyes; then
5642 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5643 fi
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5646
5647 /* Override any GCC internal prototype to avoid an error.
5648 Use char because int might match the return type of a GCC
5649 builtin and then its argument prototype would still apply. */
5650 #ifdef __cplusplus
5651 extern "C"
5652 #endif
5653 char lt_dlopen ();
5654 int
5655 main ()
5656 {
5657 return lt_dlopen ();
5658 ;
5659 return 0;
5660 }
5661 _ACEOF
5662 if ac_fn_c_try_link "$LINENO"; then :
5663 ac_cv_lib_ltdl_lt_dlopen=yes
5664 else
5665 ac_cv_lib_ltdl_lt_dlopen=no
5666 fi
5667 rm -f core conftest.err conftest.$ac_objext \
5668 conftest$ac_exeext conftest.$ac_ext
5669 LIBS=$ac_check_lib_save_LIBS
5670 fi
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
5672 $as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
5673 if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
5674 cat >>confdefs.h <<_ACEOF
5675 #define HAVE_LIBLTDL 1
5676 _ACEOF
5677
5678 LIBS="-lltdl $LIBS"
5679
5680 else
5681 as_fn_error "cannot find libltdl" "$LINENO" 5
5682 fi
5683
5684 ;;
5685 xno) COMPILE_WRAPPERS=no ;;
5686 x) COMPILE_WRAPPERS=yes ;;
5687 *) COMPILE_WRAPPERS=yes ;;
5688 esac
5689 else
5690 COMPILE_WRAPPERS=no
5691 fi
5692
5693 if test "x${COMPILE_WRAPPERS}" = xyes; then
5694 CREATE_WRAPPERS_TRUE=
5695 CREATE_WRAPPERS_FALSE='#'
5696 else
5697 CREATE_WRAPPERS_TRUE='#'
5698 CREATE_WRAPPERS_FALSE=
5699 fi
5700
5701
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5703 $as_echo_n "checking whether ln -s works... " >&6; }
5704 LN_S=$as_ln_s
5705 if test "$LN_S" = "ln -s"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5707 $as_echo "yes" >&6; }
5708 else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5710 $as_echo "no, using $LN_S" >&6; }
5711 fi
5712
5713
5714
5715
5716 # Check whether --enable-static was given.
5717 if test "${enable_static+set}" = set; then :
5718 enableval=$enable_static; p=${PACKAGE-default}
5719 case $enableval in
5720 yes) enable_static=yes ;;
5721 no) enable_static=no ;;
5722 *)
5723 enable_static=no
5724 # Look at the argument we got. We use all the common list separators.
5725 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5726 for pkg in $enableval; do
5727 IFS="$lt_save_ifs"
5728 if test "X$pkg" = "X$p"; then
5729 enable_static=yes
5730 fi
5731 done
5732 IFS="$lt_save_ifs"
5733 ;;
5734 esac
5735 else
5736 enable_static=no
5737 fi
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747 case `pwd` in
5748 *\ * | *\ *)
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5750 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5751 esac
5752
5753
5754
5755 macro_version='2.2.7a'
5756 macro_revision='1.3134'
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770 ltmain="$ac_aux_dir/ltmain.sh"
5771
5772 # Backslashify metacharacters that are still active within
5773 # double-quoted strings.
5774 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5775
5776 # Same as above, but do not quote variable references.
5777 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5778
5779 # Sed substitution to delay expansion of an escaped shell variable in a
5780 # double_quote_subst'ed string.
5781 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5782
5783 # Sed substitution to delay expansion of an escaped single quote.
5784 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5785
5786 # Sed substitution to avoid accidental globbing in evaled expressions
5787 no_glob_subst='s/\*/\\\*/g'
5788
5789 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5790 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5791 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5792
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5794 $as_echo_n "checking how to print strings... " >&6; }
5795 # Test print first, because it will be a builtin if present.
5796 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5797 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5798 ECHO='print -r --'
5799 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5800 ECHO='printf %s\n'
5801 else
5802 # Use this function as a fallback that always works.
5803 func_fallback_echo ()
5804 {
5805 eval 'cat <<_LTECHO_EOF
5806 $1
5807 _LTECHO_EOF'
5808 }
5809 ECHO='func_fallback_echo'
5810 fi
5811
5812 # func_echo_all arg...
5813 # Invoke $ECHO with all args, space-separated.
5814 func_echo_all ()
5815 {
5816 $ECHO ""
5817 }
5818
5819 case "$ECHO" in
5820 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5821 $as_echo "printf" >&6; } ;;
5822 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5823 $as_echo "print -r" >&6; } ;;
5824 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5825 $as_echo "cat" >&6; } ;;
5826 esac
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5842 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5843 if test "${ac_cv_path_SED+set}" = set; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5847 for ac_i in 1 2 3 4 5 6 7; do
5848 ac_script="$ac_script$as_nl$ac_script"
5849 done
5850 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5851 { ac_script=; unset ac_script;}
5852 if test -z "$SED"; then
5853 ac_path_SED_found=false
5854 # Loop through the user's path and test for each of PROGNAME-LIST
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858 IFS=$as_save_IFS
5859 test -z "$as_dir" && as_dir=.
5860 for ac_prog in sed gsed; do
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5863 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5864 # Check for GNU ac_path_SED and select it if it is found.
5865 # Check for GNU $ac_path_SED
5866 case `"$ac_path_SED" --version 2>&1` in
5867 *GNU*)
5868 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5869 *)
5870 ac_count=0
5871 $as_echo_n 0123456789 >"conftest.in"
5872 while :
5873 do
5874 cat "conftest.in" "conftest.in" >"conftest.tmp"
5875 mv "conftest.tmp" "conftest.in"
5876 cp "conftest.in" "conftest.nl"
5877 $as_echo '' >> "conftest.nl"
5878 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5879 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5880 as_fn_arith $ac_count + 1 && ac_count=$as_val
5881 if test $ac_count -gt ${ac_path_SED_max-0}; then
5882 # Best one so far, save it but keep looking for a better one
5883 ac_cv_path_SED="$ac_path_SED"
5884 ac_path_SED_max=$ac_count
5885 fi
5886 # 10*(2^10) chars as input seems more than enough
5887 test $ac_count -gt 10 && break
5888 done
5889 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5890 esac
5891
5892 $ac_path_SED_found && break 3
5893 done
5894 done
5895 done
5896 IFS=$as_save_IFS
5897 if test -z "$ac_cv_path_SED"; then
5898 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5899 fi
5900 else
5901 ac_cv_path_SED=$SED
5902 fi
5903
5904 fi
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5906 $as_echo "$ac_cv_path_SED" >&6; }
5907 SED="$ac_cv_path_SED"
5908 rm -f conftest.sed
5909
5910 test -z "$SED" && SED=sed
5911 Xsed="$SED -e 1s/^X//"
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5924 $as_echo_n "checking for fgrep... " >&6; }
5925 if test "${ac_cv_path_FGREP+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5927 else
5928 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5929 then ac_cv_path_FGREP="$GREP -F"
5930 else
5931 if test -z "$FGREP"; then
5932 ac_path_FGREP_found=false
5933 # Loop through the user's path and test for each of PROGNAME-LIST
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5936 do
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_prog in fgrep; do
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5942 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5943 # Check for GNU ac_path_FGREP and select it if it is found.
5944 # Check for GNU $ac_path_FGREP
5945 case `"$ac_path_FGREP" --version 2>&1` in
5946 *GNU*)
5947 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5948 *)
5949 ac_count=0
5950 $as_echo_n 0123456789 >"conftest.in"
5951 while :
5952 do
5953 cat "conftest.in" "conftest.in" >"conftest.tmp"
5954 mv "conftest.tmp" "conftest.in"
5955 cp "conftest.in" "conftest.nl"
5956 $as_echo 'FGREP' >> "conftest.nl"
5957 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5959 as_fn_arith $ac_count + 1 && ac_count=$as_val
5960 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5961 # Best one so far, save it but keep looking for a better one
5962 ac_cv_path_FGREP="$ac_path_FGREP"
5963 ac_path_FGREP_max=$ac_count
5964 fi
5965 # 10*(2^10) chars as input seems more than enough
5966 test $ac_count -gt 10 && break
5967 done
5968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5969 esac
5970
5971 $ac_path_FGREP_found && break 3
5972 done
5973 done
5974 done
5975 IFS=$as_save_IFS
5976 if test -z "$ac_cv_path_FGREP"; then
5977 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5978 fi
5979 else
5980 ac_cv_path_FGREP=$FGREP
5981 fi
5982
5983 fi
5984 fi
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5986 $as_echo "$ac_cv_path_FGREP" >&6; }
5987 FGREP="$ac_cv_path_FGREP"
5988
5989
5990 test -z "$GREP" && GREP=grep
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010 # Check whether --with-gnu-ld was given.
6011 if test "${with_gnu_ld+set}" = set; then :
6012 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6013 else
6014 with_gnu_ld=no
6015 fi
6016
6017 ac_prog=ld
6018 if test "$GCC" = yes; then
6019 # Check if gcc -print-prog-name=ld gives a path.
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6021 $as_echo_n "checking for ld used by $CC... " >&6; }
6022 case $host in
6023 *-*-mingw*)
6024 # gcc leaves a trailing carriage return which upsets mingw
6025 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6026 *)
6027 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6028 esac
6029 case $ac_prog in
6030 # Accept absolute paths.
6031 [\\/]* | ?:[\\/]*)
6032 re_direlt='/[^/][^/]*/\.\./'
6033 # Canonicalize the pathname of ld
6034 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6035 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6036 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6037 done
6038 test -z "$LD" && LD="$ac_prog"
6039 ;;
6040 "")
6041 # If it fails, then pretend we aren't using GCC.
6042 ac_prog=ld
6043 ;;
6044 *)
6045 # If it is relative, then search for the first ld in PATH.
6046 with_gnu_ld=unknown
6047 ;;
6048 esac
6049 elif test "$with_gnu_ld" = yes; then
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6051 $as_echo_n "checking for GNU ld... " >&6; }
6052 else
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6054 $as_echo_n "checking for non-GNU ld... " >&6; }
6055 fi
6056 if test "${lt_cv_path_LD+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 if test -z "$LD"; then
6060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6061 for ac_dir in $PATH; do
6062 IFS="$lt_save_ifs"
6063 test -z "$ac_dir" && ac_dir=.
6064 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6065 lt_cv_path_LD="$ac_dir/$ac_prog"
6066 # Check to see if the program is GNU ld. I'd rather use --version,
6067 # but apparently some variants of GNU ld only accept -v.
6068 # Break only if it was the GNU/non-GNU ld that we prefer.
6069 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6070 *GNU* | *'with BFD'*)
6071 test "$with_gnu_ld" != no && break
6072 ;;
6073 *)
6074 test "$with_gnu_ld" != yes && break
6075 ;;
6076 esac
6077 fi
6078 done
6079 IFS="$lt_save_ifs"
6080 else
6081 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6082 fi
6083 fi
6084
6085 LD="$lt_cv_path_LD"
6086 if test -n "$LD"; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6088 $as_echo "$LD" >&6; }
6089 else
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }
6092 fi
6093 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6095 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6096 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6097 $as_echo_n "(cached) " >&6
6098 else
6099 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6100 case `$LD -v 2>&1 </dev/null` in
6101 *GNU* | *'with BFD'*)
6102 lt_cv_prog_gnu_ld=yes
6103 ;;
6104 *)
6105 lt_cv_prog_gnu_ld=no
6106 ;;
6107 esac
6108 fi
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6110 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6111 with_gnu_ld=$lt_cv_prog_gnu_ld
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6122 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6123 if test "${lt_cv_path_NM+set}" = set; then :
6124 $as_echo_n "(cached) " >&6
6125 else
6126 if test -n "$NM"; then
6127 # Let the user override the test.
6128 lt_cv_path_NM="$NM"
6129 else
6130 lt_nm_to_check="${ac_tool_prefix}nm"
6131 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6132 lt_nm_to_check="$lt_nm_to_check nm"
6133 fi
6134 for lt_tmp_nm in $lt_nm_to_check; do
6135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6136 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6137 IFS="$lt_save_ifs"
6138 test -z "$ac_dir" && ac_dir=.
6139 tmp_nm="$ac_dir/$lt_tmp_nm"
6140 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6141 # Check to see if the nm accepts a BSD-compat flag.
6142 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6143 # nm: unknown option "B" ignored
6144 # Tru64's nm complains that /dev/null is an invalid object file
6145 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6146 */dev/null* | *'Invalid file or object type'*)
6147 lt_cv_path_NM="$tmp_nm -B"
6148 break
6149 ;;
6150 *)
6151 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6152 */dev/null*)
6153 lt_cv_path_NM="$tmp_nm -p"
6154 break
6155 ;;
6156 *)
6157 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6158 continue # so that we can try to find one that supports BSD flags
6159 ;;
6160 esac
6161 ;;
6162 esac
6163 fi
6164 done
6165 IFS="$lt_save_ifs"
6166 done
6167 : ${lt_cv_path_NM=no}
6168 fi
6169 fi
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6171 $as_echo "$lt_cv_path_NM" >&6; }
6172 if test "$lt_cv_path_NM" != "no"; then
6173 NM="$lt_cv_path_NM"
6174 else
6175 # Didn't find any BSD compatible name lister, look for dumpbin.
6176 if test -n "$DUMPBIN"; then :
6177 # Let the user override the test.
6178 else
6179 if test -n "$ac_tool_prefix"; then
6180 for ac_prog in dumpbin "link -dump"
6181 do
6182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 $as_echo_n "checking for $ac_word... " >&6; }
6186 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
6188 else
6189 if test -n "$DUMPBIN"; then
6190 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6202 fi
6203 done
6204 done
6205 IFS=$as_save_IFS
6206
6207 fi
6208 fi
6209 DUMPBIN=$ac_cv_prog_DUMPBIN
6210 if test -n "$DUMPBIN"; then
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6212 $as_echo "$DUMPBIN" >&6; }
6213 else
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6216 fi
6217
6218
6219 test -n "$DUMPBIN" && break
6220 done
6221 fi
6222 if test -z "$DUMPBIN"; then
6223 ac_ct_DUMPBIN=$DUMPBIN
6224 for ac_prog in dumpbin "link -dump"
6225 do
6226 # Extract the first word of "$ac_prog", so it can be a program name with args.
6227 set dummy $ac_prog; ac_word=$2
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229 $as_echo_n "checking for $ac_word... " >&6; }
6230 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6231 $as_echo_n "(cached) " >&6
6232 else
6233 if test -n "$ac_ct_DUMPBIN"; then
6234 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6235 else
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6238 do
6239 IFS=$as_save_IFS
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6243 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6245 break 2
6246 fi
6247 done
6248 done
6249 IFS=$as_save_IFS
6250
6251 fi
6252 fi
6253 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6254 if test -n "$ac_ct_DUMPBIN"; then
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6256 $as_echo "$ac_ct_DUMPBIN" >&6; }
6257 else
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }
6260 fi
6261
6262
6263 test -n "$ac_ct_DUMPBIN" && break
6264 done
6265
6266 if test "x$ac_ct_DUMPBIN" = x; then
6267 DUMPBIN=":"
6268 else
6269 case $cross_compiling:$ac_tool_warned in
6270 yes:)
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6273 ac_tool_warned=yes ;;
6274 esac
6275 DUMPBIN=$ac_ct_DUMPBIN
6276 fi
6277 fi
6278
6279 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6280 *COFF*)
6281 DUMPBIN="$DUMPBIN -symbols"
6282 ;;
6283 *)
6284 DUMPBIN=:
6285 ;;
6286 esac
6287 fi
6288
6289 if test "$DUMPBIN" != ":"; then
6290 NM="$DUMPBIN"
6291 fi
6292 fi
6293 test -z "$NM" && NM=nm
6294
6295
6296
6297
6298
6299
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6301 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6302 if test "${lt_cv_nm_interface+set}" = set; then :
6303 $as_echo_n "(cached) " >&6
6304 else
6305 lt_cv_nm_interface="BSD nm"
6306 echo "int some_variable = 0;" > conftest.$ac_ext
6307 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6308 (eval "$ac_compile" 2>conftest.err)
6309 cat conftest.err >&5
6310 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6311 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6312 cat conftest.err >&5
6313 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6314 cat conftest.out >&5
6315 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6316 lt_cv_nm_interface="MS dumpbin"
6317 fi
6318 rm -f conftest*
6319 fi
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6321 $as_echo "$lt_cv_nm_interface" >&6; }
6322
6323 # find the maximum length of command line arguments
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6325 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6326 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 i=0
6330 teststring="ABCD"
6331
6332 case $build_os in
6333 msdosdjgpp*)
6334 # On DJGPP, this test can blow up pretty badly due to problems in libc
6335 # (any single argument exceeding 2000 bytes causes a buffer overrun
6336 # during glob expansion). Even if it were fixed, the result of this
6337 # check would be larger than it should be.
6338 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6339 ;;
6340
6341 gnu*)
6342 # Under GNU Hurd, this test is not required because there is
6343 # no limit to the length of command line arguments.
6344 # Libtool will interpret -1 as no limit whatsoever
6345 lt_cv_sys_max_cmd_len=-1;
6346 ;;
6347
6348 cygwin* | mingw* | cegcc*)
6349 # On Win9x/ME, this test blows up -- it succeeds, but takes
6350 # about 5 minutes as the teststring grows exponentially.
6351 # Worse, since 9x/ME are not pre-emptively multitasking,
6352 # you end up with a "frozen" computer, even though with patience
6353 # the test eventually succeeds (with a max line length of 256k).
6354 # Instead, let's just punt: use the minimum linelength reported by
6355 # all of the supported platforms: 8192 (on NT/2K/XP).
6356 lt_cv_sys_max_cmd_len=8192;
6357 ;;
6358
6359 mint*)
6360 # On MiNT this can take a long time and run out of memory.
6361 lt_cv_sys_max_cmd_len=8192;
6362 ;;
6363
6364 amigaos*)
6365 # On AmigaOS with pdksh, this test takes hours, literally.
6366 # So we just punt and use a minimum line length of 8192.
6367 lt_cv_sys_max_cmd_len=8192;
6368 ;;
6369
6370 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6371 # This has been around since 386BSD, at least. Likely further.
6372 if test -x /sbin/sysctl; then
6373 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6374 elif test -x /usr/sbin/sysctl; then
6375 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6376 else
6377 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6378 fi
6379 # And add a safety zone
6380 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6382 ;;
6383
6384 interix*)
6385 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6386 lt_cv_sys_max_cmd_len=196608
6387 ;;
6388
6389 osf*)
6390 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6391 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6392 # nice to cause kernel panics so lets avoid the loop below.
6393 # First set a reasonable default.
6394 lt_cv_sys_max_cmd_len=16384
6395 #
6396 if test -x /sbin/sysconfig; then
6397 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6398 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6399 esac
6400 fi
6401 ;;
6402 sco3.2v5*)
6403 lt_cv_sys_max_cmd_len=102400
6404 ;;
6405 sysv5* | sco5v6* | sysv4.2uw2*)
6406 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6407 if test -n "$kargmax"; then
6408 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6409 else
6410 lt_cv_sys_max_cmd_len=32768
6411 fi
6412 ;;
6413 *)
6414 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6415 if test -n "$lt_cv_sys_max_cmd_len"; then
6416 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6417 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6418 else
6419 # Make teststring a little bigger before we do anything with it.
6420 # a 1K string should be a reasonable start.
6421 for i in 1 2 3 4 5 6 7 8 ; do
6422 teststring=$teststring$teststring
6423 done
6424 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6425 # If test is not a shell built-in, we'll probably end up computing a
6426 # maximum length that is only half of the actual maximum length, but
6427 # we can't tell.
6428 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6429 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6430 test $i != 17 # 1/2 MB should be enough
6431 do
6432 i=`expr $i + 1`
6433 teststring=$teststring$teststring
6434 done
6435 # Only check the string length outside the loop.
6436 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6437 teststring=
6438 # Add a significant safety factor because C++ compilers can tack on
6439 # massive amounts of additional arguments before passing them to the
6440 # linker. It appears as though 1/2 is a usable value.
6441 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6442 fi
6443 ;;
6444 esac
6445
6446 fi
6447
6448 if test -n $lt_cv_sys_max_cmd_len ; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6450 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6451 else
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6453 $as_echo "none" >&6; }
6454 fi
6455 max_cmd_len=$lt_cv_sys_max_cmd_len
6456
6457
6458
6459
6460
6461
6462 : ${CP="cp -f"}
6463 : ${MV="mv -f"}
6464 : ${RM="rm -f"}
6465
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6467 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6468 # Try some XSI features
6469 xsi_shell=no
6470 ( _lt_dummy="a/b/c"
6471 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6472 = c,a/b,, \
6473 && eval 'test $(( 1 + 1 )) -eq 2 \
6474 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6475 && xsi_shell=yes
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6477 $as_echo "$xsi_shell" >&6; }
6478
6479
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6481 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6482 lt_shell_append=no
6483 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6484 >/dev/null 2>&1 \
6485 && lt_shell_append=yes
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6487 $as_echo "$lt_shell_append" >&6; }
6488
6489
6490 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6491 lt_unset=unset
6492 else
6493 lt_unset=false
6494 fi
6495
6496
6497
6498
6499
6500 # test EBCDIC or ASCII
6501 case `echo X|tr X '\101'` in
6502 A) # ASCII based system
6503 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6504 lt_SP2NL='tr \040 \012'
6505 lt_NL2SP='tr \015\012 \040\040'
6506 ;;
6507 *) # EBCDIC based system
6508 lt_SP2NL='tr \100 \n'
6509 lt_NL2SP='tr \r\n \100\100'
6510 ;;
6511 esac
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6522 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6523 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6524 $as_echo_n "(cached) " >&6
6525 else
6526 lt_cv_ld_reload_flag='-r'
6527 fi
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6529 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6530 reload_flag=$lt_cv_ld_reload_flag
6531 case $reload_flag in
6532 "" | " "*) ;;
6533 *) reload_flag=" $reload_flag" ;;
6534 esac
6535 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6536 case $host_os in
6537 darwin*)
6538 if test "$GCC" = yes; then
6539 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6540 else
6541 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6542 fi
6543 ;;
6544 esac
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554 if test -n "$ac_tool_prefix"; then
6555 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6556 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 if test -n "$OBJDUMP"; then
6563 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568 IFS=$as_save_IFS
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 break 2
6575 fi
6576 done
6577 done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 OBJDUMP=$ac_cv_prog_OBJDUMP
6583 if test -n "$OBJDUMP"; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6585 $as_echo "$OBJDUMP" >&6; }
6586 else
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6589 fi
6590
6591
6592 fi
6593 if test -z "$ac_cv_prog_OBJDUMP"; then
6594 ac_ct_OBJDUMP=$OBJDUMP
6595 # Extract the first word of "objdump", so it can be a program name with args.
6596 set dummy objdump; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 if test -n "$ac_ct_OBJDUMP"; then
6603 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 break 2
6615 fi
6616 done
6617 done
6618 IFS=$as_save_IFS
6619
6620 fi
6621 fi
6622 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6623 if test -n "$ac_ct_OBJDUMP"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6625 $as_echo "$ac_ct_OBJDUMP" >&6; }
6626 else
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6629 fi
6630
6631 if test "x$ac_ct_OBJDUMP" = x; then
6632 OBJDUMP="false"
6633 else
6634 case $cross_compiling:$ac_tool_warned in
6635 yes:)
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6638 ac_tool_warned=yes ;;
6639 esac
6640 OBJDUMP=$ac_ct_OBJDUMP
6641 fi
6642 else
6643 OBJDUMP="$ac_cv_prog_OBJDUMP"
6644 fi
6645
6646 test -z "$OBJDUMP" && OBJDUMP=objdump
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6657 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6658 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6659 $as_echo_n "(cached) " >&6
6660 else
6661 lt_cv_file_magic_cmd='$MAGIC_CMD'
6662 lt_cv_file_magic_test_file=
6663 lt_cv_deplibs_check_method='unknown'
6664 # Need to set the preceding variable on all platforms that support
6665 # interlibrary dependencies.
6666 # 'none' -- dependencies not supported.
6667 # `unknown' -- same as none, but documents that we really don't know.
6668 # 'pass_all' -- all dependencies passed with no checks.
6669 # 'test_compile' -- check by making test program.
6670 # 'file_magic [[regex]]' -- check by looking for files in library path
6671 # which responds to the $file_magic_cmd with a given extended regex.
6672 # If you have `file' or equivalent on your system and you're not sure
6673 # whether `pass_all' will *always* work, you probably want this one.
6674
6675 case $host_os in
6676 aix[4-9]*)
6677 lt_cv_deplibs_check_method=pass_all
6678 ;;
6679
6680 beos*)
6681 lt_cv_deplibs_check_method=pass_all
6682 ;;
6683
6684 bsdi[45]*)
6685 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6686 lt_cv_file_magic_cmd='/usr/bin/file -L'
6687 lt_cv_file_magic_test_file=/shlib/libc.so
6688 ;;
6689
6690 cygwin*)
6691 # func_win32_libid is a shell function defined in ltmain.sh
6692 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6693 lt_cv_file_magic_cmd='func_win32_libid'
6694 ;;
6695
6696 mingw* | pw32*)
6697 # Base MSYS/MinGW do not provide the 'file' command needed by
6698 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6699 # unless we find 'file', for example because we are cross-compiling.
6700 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6701 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6702 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6703 lt_cv_file_magic_cmd='func_win32_libid'
6704 else
6705 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6706 lt_cv_file_magic_cmd='$OBJDUMP -f'
6707 fi
6708 ;;
6709
6710 cegcc*)
6711 # use the weaker test based on 'objdump'. See mingw*.
6712 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6713 lt_cv_file_magic_cmd='$OBJDUMP -f'
6714 ;;
6715
6716 darwin* | rhapsody*)
6717 lt_cv_deplibs_check_method=pass_all
6718 ;;
6719
6720 freebsd* | dragonfly*)
6721 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6722 case $host_cpu in
6723 i*86 )
6724 # Not sure whether the presence of OpenBSD here was a mistake.
6725 # Let's accept both of them until this is cleared up.
6726 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6727 lt_cv_file_magic_cmd=/usr/bin/file
6728 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6729 ;;
6730 esac
6731 else
6732 lt_cv_deplibs_check_method=pass_all
6733 fi
6734 ;;
6735
6736 gnu*)
6737 lt_cv_deplibs_check_method=pass_all
6738 ;;
6739
6740 haiku*)
6741 lt_cv_deplibs_check_method=pass_all
6742 ;;
6743
6744 hpux10.20* | hpux11*)
6745 lt_cv_file_magic_cmd=/usr/bin/file
6746 case $host_cpu in
6747 ia64*)
6748 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6749 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6750 ;;
6751 hppa*64*)
6752 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6753 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6754 ;;
6755 *)
6756 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6757 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6758 ;;
6759 esac
6760 ;;
6761
6762 interix[3-9]*)
6763 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6764 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6765 ;;
6766
6767 irix5* | irix6* | nonstopux*)
6768 case $LD in
6769 *-32|*"-32 ") libmagic=32-bit;;
6770 *-n32|*"-n32 ") libmagic=N32;;
6771 *-64|*"-64 ") libmagic=64-bit;;
6772 *) libmagic=never-match;;
6773 esac
6774 lt_cv_deplibs_check_method=pass_all
6775 ;;
6776
6777 # This must be Linux ELF.
6778 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6779 lt_cv_deplibs_check_method=pass_all
6780 ;;
6781
6782 netbsd*)
6783 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6784 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6785 else
6786 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6787 fi
6788 ;;
6789
6790 newos6*)
6791 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6792 lt_cv_file_magic_cmd=/usr/bin/file
6793 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6794 ;;
6795
6796 *nto* | *qnx*)
6797 lt_cv_deplibs_check_method=pass_all
6798 ;;
6799
6800 openbsd*)
6801 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6802 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6803 else
6804 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6805 fi
6806 ;;
6807
6808 osf3* | osf4* | osf5*)
6809 lt_cv_deplibs_check_method=pass_all
6810 ;;
6811
6812 rdos*)
6813 lt_cv_deplibs_check_method=pass_all
6814 ;;
6815
6816 solaris*)
6817 lt_cv_deplibs_check_method=pass_all
6818 ;;
6819
6820 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6821 lt_cv_deplibs_check_method=pass_all
6822 ;;
6823
6824 sysv4 | sysv4.3*)
6825 case $host_vendor in
6826 motorola)
6827 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]'
6828 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6829 ;;
6830 ncr)
6831 lt_cv_deplibs_check_method=pass_all
6832 ;;
6833 sequent)
6834 lt_cv_file_magic_cmd='/bin/file'
6835 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6836 ;;
6837 sni)
6838 lt_cv_file_magic_cmd='/bin/file'
6839 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6840 lt_cv_file_magic_test_file=/lib/libc.so
6841 ;;
6842 siemens)
6843 lt_cv_deplibs_check_method=pass_all
6844 ;;
6845 pc)
6846 lt_cv_deplibs_check_method=pass_all
6847 ;;
6848 esac
6849 ;;
6850
6851 tpf*)
6852 lt_cv_deplibs_check_method=pass_all
6853 ;;
6854 esac
6855
6856 fi
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6858 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6859 file_magic_cmd=$lt_cv_file_magic_cmd
6860 deplibs_check_method=$lt_cv_deplibs_check_method
6861 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874 if test -n "$ac_tool_prefix"; then
6875 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6876 set dummy ${ac_tool_prefix}ar; ac_word=$2
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878 $as_echo_n "checking for $ac_word... " >&6; }
6879 if test "${ac_cv_prog_AR+set}" = set; then :
6880 $as_echo_n "(cached) " >&6
6881 else
6882 if test -n "$AR"; then
6883 ac_cv_prog_AR="$AR" # Let the user override the test.
6884 else
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6887 do
6888 IFS=$as_save_IFS
6889 test -z "$as_dir" && as_dir=.
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6892 ac_cv_prog_AR="${ac_tool_prefix}ar"
6893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6894 break 2
6895 fi
6896 done
6897 done
6898 IFS=$as_save_IFS
6899
6900 fi
6901 fi
6902 AR=$ac_cv_prog_AR
6903 if test -n "$AR"; then
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6905 $as_echo "$AR" >&6; }
6906 else
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908 $as_echo "no" >&6; }
6909 fi
6910
6911
6912 fi
6913 if test -z "$ac_cv_prog_AR"; then
6914 ac_ct_AR=$AR
6915 # Extract the first word of "ar", so it can be a program name with args.
6916 set dummy ar; ac_word=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6920 $as_echo_n "(cached) " >&6
6921 else
6922 if test -n "$ac_ct_AR"; then
6923 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6924 else
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6927 do
6928 IFS=$as_save_IFS
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6932 ac_cv_prog_ac_ct_AR="ar"
6933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 break 2
6935 fi
6936 done
6937 done
6938 IFS=$as_save_IFS
6939
6940 fi
6941 fi
6942 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6943 if test -n "$ac_ct_AR"; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6945 $as_echo "$ac_ct_AR" >&6; }
6946 else
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6949 fi
6950
6951 if test "x$ac_ct_AR" = x; then
6952 AR="false"
6953 else
6954 case $cross_compiling:$ac_tool_warned in
6955 yes:)
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6958 ac_tool_warned=yes ;;
6959 esac
6960 AR=$ac_ct_AR
6961 fi
6962 else
6963 AR="$ac_cv_prog_AR"
6964 fi
6965
6966 test -z "$AR" && AR=ar
6967 test -z "$AR_FLAGS" && AR_FLAGS=cru
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979 if test -n "$ac_tool_prefix"; then
6980 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6981 set dummy ${ac_tool_prefix}strip; ac_word=$2
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983 $as_echo_n "checking for $ac_word... " >&6; }
6984 if test "${ac_cv_prog_STRIP+set}" = set; then :
6985 $as_echo_n "(cached) " >&6
6986 else
6987 if test -n "$STRIP"; then
6988 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6989 else
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6992 do
6993 IFS=$as_save_IFS
6994 test -z "$as_dir" && as_dir=.
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6997 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6999 break 2
7000 fi
7001 done
7002 done
7003 IFS=$as_save_IFS
7004
7005 fi
7006 fi
7007 STRIP=$ac_cv_prog_STRIP
7008 if test -n "$STRIP"; then
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7010 $as_echo "$STRIP" >&6; }
7011 else
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013 $as_echo "no" >&6; }
7014 fi
7015
7016
7017 fi
7018 if test -z "$ac_cv_prog_STRIP"; then
7019 ac_ct_STRIP=$STRIP
7020 # Extract the first word of "strip", so it can be a program name with args.
7021 set dummy strip; ac_word=$2
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023 $as_echo_n "checking for $ac_word... " >&6; }
7024 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7025 $as_echo_n "(cached) " >&6
7026 else
7027 if test -n "$ac_ct_STRIP"; then
7028 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7029 else
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7032 do
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037 ac_cv_prog_ac_ct_STRIP="strip"
7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 break 2
7040 fi
7041 done
7042 done
7043 IFS=$as_save_IFS
7044
7045 fi
7046 fi
7047 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7048 if test -n "$ac_ct_STRIP"; then
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7050 $as_echo "$ac_ct_STRIP" >&6; }
7051 else
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7054 fi
7055
7056 if test "x$ac_ct_STRIP" = x; then
7057 STRIP=":"
7058 else
7059 case $cross_compiling:$ac_tool_warned in
7060 yes:)
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7063 ac_tool_warned=yes ;;
7064 esac
7065 STRIP=$ac_ct_STRIP
7066 fi
7067 else
7068 STRIP="$ac_cv_prog_STRIP"
7069 fi
7070
7071 test -z "$STRIP" && STRIP=:
7072
7073
7074
7075
7076
7077
7078 if test -n "$ac_tool_prefix"; then
7079 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7080 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7084 $as_echo_n "(cached) " >&6
7085 else
7086 if test -n "$RANLIB"; then
7087 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7096 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 break 2
7099 fi
7100 done
7101 done
7102 IFS=$as_save_IFS
7103
7104 fi
7105 fi
7106 RANLIB=$ac_cv_prog_RANLIB
7107 if test -n "$RANLIB"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7109 $as_echo "$RANLIB" >&6; }
7110 else
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7113 fi
7114
7115
7116 fi
7117 if test -z "$ac_cv_prog_RANLIB"; then
7118 ac_ct_RANLIB=$RANLIB
7119 # Extract the first word of "ranlib", so it can be a program name with args.
7120 set dummy ranlib; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 if test -n "$ac_ct_RANLIB"; then
7127 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7136 ac_cv_prog_ac_ct_RANLIB="ranlib"
7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7139 fi
7140 done
7141 done
7142 IFS=$as_save_IFS
7143
7144 fi
7145 fi
7146 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7147 if test -n "$ac_ct_RANLIB"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7149 $as_echo "$ac_ct_RANLIB" >&6; }
7150 else
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7153 fi
7154
7155 if test "x$ac_ct_RANLIB" = x; then
7156 RANLIB=":"
7157 else
7158 case $cross_compiling:$ac_tool_warned in
7159 yes:)
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7162 ac_tool_warned=yes ;;
7163 esac
7164 RANLIB=$ac_ct_RANLIB
7165 fi
7166 else
7167 RANLIB="$ac_cv_prog_RANLIB"
7168 fi
7169
7170 test -z "$RANLIB" && RANLIB=:
7171
7172
7173
7174
7175
7176
7177 # Determine commands to create old-style static archives.
7178 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7179 old_postinstall_cmds='chmod 644 $oldlib'
7180 old_postuninstall_cmds=
7181
7182 if test -n "$RANLIB"; then
7183 case $host_os in
7184 openbsd*)
7185 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7186 ;;
7187 *)
7188 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7189 ;;
7190 esac
7191 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7192 fi
7193
7194 case $host_os in
7195 darwin*)
7196 lock_old_archive_extraction=yes ;;
7197 *)
7198 lock_old_archive_extraction=no ;;
7199 esac
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239 # If no C compiler was specified, use CC.
7240 LTCC=${LTCC-"$CC"}
7241
7242 # If no C compiler flags were specified, use CFLAGS.
7243 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7244
7245 # Allow CC to be a program name with arguments.
7246 compiler=$CC
7247
7248
7249 # Check for command to grab the raw symbol name followed by C symbol from nm.
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7251 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7252 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7253 $as_echo_n "(cached) " >&6
7254 else
7255
7256 # These are sane defaults that work on at least a few old systems.
7257 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7258
7259 # Character class describing NM global symbol codes.
7260 symcode='[BCDEGRST]'
7261
7262 # Regexp to match symbols that can be accessed directly from C.
7263 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7264
7265 # Define system-specific variables.
7266 case $host_os in
7267 aix*)
7268 symcode='[BCDT]'
7269 ;;
7270 cygwin* | mingw* | pw32* | cegcc*)
7271 symcode='[ABCDGISTW]'
7272 ;;
7273 hpux*)
7274 if test "$host_cpu" = ia64; then
7275 symcode='[ABCDEGRST]'
7276 fi
7277 ;;
7278 irix* | nonstopux*)
7279 symcode='[BCDEGRST]'
7280 ;;
7281 osf*)
7282 symcode='[BCDEGQRST]'
7283 ;;
7284 solaris*)
7285 symcode='[BDRT]'
7286 ;;
7287 sco3.2v5*)
7288 symcode='[DT]'
7289 ;;
7290 sysv4.2uw2*)
7291 symcode='[DT]'
7292 ;;
7293 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7294 symcode='[ABDT]'
7295 ;;
7296 sysv4)
7297 symcode='[DFNSTU]'
7298 ;;
7299 esac
7300
7301 # If we're using GNU nm, then use its standard symbol codes.
7302 case `$NM -V 2>&1` in
7303 *GNU* | *'with BFD'*)
7304 symcode='[ABCDGIRSTW]' ;;
7305 esac
7306
7307 # Transform an extracted symbol line into a proper C declaration.
7308 # Some systems (esp. on ia64) link data and code symbols differently,
7309 # so use this general approach.
7310 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7311
7312 # Transform an extracted symbol line into symbol name and symbol address
7313 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7314 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'"
7315
7316 # Handle CRLF in mingw tool chain
7317 opt_cr=
7318 case $build_os in
7319 mingw*)
7320 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7321 ;;
7322 esac
7323
7324 # Try without a prefix underscore, then with it.
7325 for ac_symprfx in "" "_"; do
7326
7327 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7328 symxfrm="\\1 $ac_symprfx\\2 \\2"
7329
7330 # Write the raw and C identifiers.
7331 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7332 # Fake it for dumpbin and say T for any non-static function
7333 # and D for any global variable.
7334 # Also find C++ and __fastcall symbols from MSVC++,
7335 # which start with @ or ?.
7336 lt_cv_sys_global_symbol_pipe="$AWK '"\
7337 " {last_section=section; section=\$ 3};"\
7338 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7339 " \$ 0!~/External *\|/{next};"\
7340 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7341 " {if(hide[section]) next};"\
7342 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7343 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7344 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7345 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7346 " ' prfx=^$ac_symprfx"
7347 else
7348 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7349 fi
7350
7351 # Check to see that the pipe works correctly.
7352 pipe_works=no
7353
7354 rm -f conftest*
7355 cat > conftest.$ac_ext <<_LT_EOF
7356 #ifdef __cplusplus
7357 extern "C" {
7358 #endif
7359 char nm_test_var;
7360 void nm_test_func(void);
7361 void nm_test_func(void){}
7362 #ifdef __cplusplus
7363 }
7364 #endif
7365 int main(){nm_test_var='a';nm_test_func();return(0);}
7366 _LT_EOF
7367
7368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7369 (eval $ac_compile) 2>&5
7370 ac_status=$?
7371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7372 test $ac_status = 0; }; then
7373 # Now try to grab the symbols.
7374 nlist=conftest.nm
7375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7376 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7377 ac_status=$?
7378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7379 test $ac_status = 0; } && test -s "$nlist"; then
7380 # Try sorting and uniquifying the output.
7381 if sort "$nlist" | uniq > "$nlist"T; then
7382 mv -f "$nlist"T "$nlist"
7383 else
7384 rm -f "$nlist"T
7385 fi
7386
7387 # Make sure that we snagged all the symbols we need.
7388 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7389 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7390 cat <<_LT_EOF > conftest.$ac_ext
7391 #ifdef __cplusplus
7392 extern "C" {
7393 #endif
7394
7395 _LT_EOF
7396 # Now generate the symbol file.
7397 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7398
7399 cat <<_LT_EOF >> conftest.$ac_ext
7400
7401 /* The mapping between symbol names and symbols. */
7402 const struct {
7403 const char *name;
7404 void *address;
7405 }
7406 lt__PROGRAM__LTX_preloaded_symbols[] =
7407 {
7408 { "@PROGRAM@", (void *) 0 },
7409 _LT_EOF
7410 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7411 cat <<\_LT_EOF >> conftest.$ac_ext
7412 {0, (void *) 0}
7413 };
7414
7415 /* This works around a problem in FreeBSD linker */
7416 #ifdef FREEBSD_WORKAROUND
7417 static const void *lt_preloaded_setup() {
7418 return lt__PROGRAM__LTX_preloaded_symbols;
7419 }
7420 #endif
7421
7422 #ifdef __cplusplus
7423 }
7424 #endif
7425 _LT_EOF
7426 # Now try linking the two files.
7427 mv conftest.$ac_objext conftstm.$ac_objext
7428 lt_save_LIBS="$LIBS"
7429 lt_save_CFLAGS="$CFLAGS"
7430 LIBS="conftstm.$ac_objext"
7431 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7433 (eval $ac_link) 2>&5
7434 ac_status=$?
7435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7436 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7437 pipe_works=yes
7438 fi
7439 LIBS="$lt_save_LIBS"
7440 CFLAGS="$lt_save_CFLAGS"
7441 else
7442 echo "cannot find nm_test_func in $nlist" >&5
7443 fi
7444 else
7445 echo "cannot find nm_test_var in $nlist" >&5
7446 fi
7447 else
7448 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7449 fi
7450 else
7451 echo "$progname: failed program was:" >&5
7452 cat conftest.$ac_ext >&5
7453 fi
7454 rm -rf conftest* conftst*
7455
7456 # Do not use the global_symbol_pipe unless it works.
7457 if test "$pipe_works" = yes; then
7458 break
7459 else
7460 lt_cv_sys_global_symbol_pipe=
7461 fi
7462 done
7463
7464 fi
7465
7466 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7467 lt_cv_sys_global_symbol_to_cdecl=
7468 fi
7469 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7471 $as_echo "failed" >&6; }
7472 else
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7474 $as_echo "ok" >&6; }
7475 fi
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498 # Check whether --enable-libtool-lock was given.
7499 if test "${enable_libtool_lock+set}" = set; then :
7500 enableval=$enable_libtool_lock;
7501 fi
7502
7503 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7504
7505 # Some flags need to be propagated to the compiler or linker for good
7506 # libtool support.
7507 case $host in
7508 ia64-*-hpux*)
7509 # Find out which ABI we are using.
7510 echo 'int i;' > conftest.$ac_ext
7511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7512 (eval $ac_compile) 2>&5
7513 ac_status=$?
7514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7515 test $ac_status = 0; }; then
7516 case `/usr/bin/file conftest.$ac_objext` in
7517 *ELF-32*)
7518 HPUX_IA64_MODE="32"
7519 ;;
7520 *ELF-64*)
7521 HPUX_IA64_MODE="64"
7522 ;;
7523 esac
7524 fi
7525 rm -rf conftest*
7526 ;;
7527 *-*-irix6*)
7528 # Find out which ABI we are using.
7529 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7531 (eval $ac_compile) 2>&5
7532 ac_status=$?
7533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7534 test $ac_status = 0; }; then
7535 if test "$lt_cv_prog_gnu_ld" = yes; then
7536 case `/usr/bin/file conftest.$ac_objext` in
7537 *32-bit*)
7538 LD="${LD-ld} -melf32bsmip"
7539 ;;
7540 *N32*)
7541 LD="${LD-ld} -melf32bmipn32"
7542 ;;
7543 *64-bit*)
7544 LD="${LD-ld} -melf64bmip"
7545 ;;
7546 esac
7547 else
7548 case `/usr/bin/file conftest.$ac_objext` in
7549 *32-bit*)
7550 LD="${LD-ld} -32"
7551 ;;
7552 *N32*)
7553 LD="${LD-ld} -n32"
7554 ;;
7555 *64-bit*)
7556 LD="${LD-ld} -64"
7557 ;;
7558 esac
7559 fi
7560 fi
7561 rm -rf conftest*
7562 ;;
7563
7564 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7565 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7566 # Find out which ABI we are using.
7567 echo 'int i;' > conftest.$ac_ext
7568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7569 (eval $ac_compile) 2>&5
7570 ac_status=$?
7571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7572 test $ac_status = 0; }; then
7573 case `/usr/bin/file conftest.o` in
7574 *32-bit*)
7575 case $host in
7576 x86_64-*kfreebsd*-gnu)
7577 LD="${LD-ld} -m elf_i386_fbsd"
7578 ;;
7579 x86_64-*linux*)
7580 LD="${LD-ld} -m elf_i386"
7581 ;;
7582 ppc64-*linux*|powerpc64-*linux*)
7583 LD="${LD-ld} -m elf32ppclinux"
7584 ;;
7585 s390x-*linux*)
7586 LD="${LD-ld} -m elf_s390"
7587 ;;
7588 sparc64-*linux*)
7589 LD="${LD-ld} -m elf32_sparc"
7590 ;;
7591 esac
7592 ;;
7593 *64-bit*)
7594 case $host in
7595 x86_64-*kfreebsd*-gnu)
7596 LD="${LD-ld} -m elf_x86_64_fbsd"
7597 ;;
7598 x86_64-*linux*)
7599 LD="${LD-ld} -m elf_x86_64"
7600 ;;
7601 ppc*-*linux*|powerpc*-*linux*)
7602 LD="${LD-ld} -m elf64ppc"
7603 ;;
7604 s390*-*linux*|s390*-*tpf*)
7605 LD="${LD-ld} -m elf64_s390"
7606 ;;
7607 sparc*-*linux*)
7608 LD="${LD-ld} -m elf64_sparc"
7609 ;;
7610 esac
7611 ;;
7612 esac
7613 fi
7614 rm -rf conftest*
7615 ;;
7616
7617 *-*-sco3.2v5*)
7618 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7619 SAVE_CFLAGS="$CFLAGS"
7620 CFLAGS="$CFLAGS -belf"
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7622 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7623 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7624 $as_echo_n "(cached) " >&6
7625 else
7626 ac_ext=c
7627 ac_cpp='$CPP $CPPFLAGS'
7628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7631
7632 if test x$gcc_no_link = xyes; then
7633 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7634 fi
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7637
7638 int
7639 main ()
7640 {
7641
7642 ;
7643 return 0;
7644 }
7645 _ACEOF
7646 if ac_fn_c_try_link "$LINENO"; then :
7647 lt_cv_cc_needs_belf=yes
7648 else
7649 lt_cv_cc_needs_belf=no
7650 fi
7651 rm -f core conftest.err conftest.$ac_objext \
7652 conftest$ac_exeext conftest.$ac_ext
7653 ac_ext=c
7654 ac_cpp='$CPP $CPPFLAGS'
7655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7658
7659 fi
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7661 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7662 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7663 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7664 CFLAGS="$SAVE_CFLAGS"
7665 fi
7666 ;;
7667 sparc*-*solaris*)
7668 # Find out which ABI we are using.
7669 echo 'int i;' > conftest.$ac_ext
7670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7671 (eval $ac_compile) 2>&5
7672 ac_status=$?
7673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7674 test $ac_status = 0; }; then
7675 case `/usr/bin/file conftest.o` in
7676 *64-bit*)
7677 case $lt_cv_prog_gnu_ld in
7678 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7679 *)
7680 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7681 LD="${LD-ld} -64"
7682 fi
7683 ;;
7684 esac
7685 ;;
7686 esac
7687 fi
7688 rm -rf conftest*
7689 ;;
7690 esac
7691
7692 need_locks="$enable_libtool_lock"
7693
7694
7695 case $host_os in
7696 rhapsody* | darwin*)
7697 if test -n "$ac_tool_prefix"; then
7698 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7699 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7703 $as_echo_n "(cached) " >&6
7704 else
7705 if test -n "$DSYMUTIL"; then
7706 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7707 else
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7710 do
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 break 2
7718 fi
7719 done
7720 done
7721 IFS=$as_save_IFS
7722
7723 fi
7724 fi
7725 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7726 if test -n "$DSYMUTIL"; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7728 $as_echo "$DSYMUTIL" >&6; }
7729 else
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7732 fi
7733
7734
7735 fi
7736 if test -z "$ac_cv_prog_DSYMUTIL"; then
7737 ac_ct_DSYMUTIL=$DSYMUTIL
7738 # Extract the first word of "dsymutil", so it can be a program name with args.
7739 set dummy dsymutil; ac_word=$2
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741 $as_echo_n "checking for $ac_word... " >&6; }
7742 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7743 $as_echo_n "(cached) " >&6
7744 else
7745 if test -n "$ac_ct_DSYMUTIL"; then
7746 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7747 else
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7750 do
7751 IFS=$as_save_IFS
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7755 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 break 2
7758 fi
7759 done
7760 done
7761 IFS=$as_save_IFS
7762
7763 fi
7764 fi
7765 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7766 if test -n "$ac_ct_DSYMUTIL"; then
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7768 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7769 else
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 $as_echo "no" >&6; }
7772 fi
7773
7774 if test "x$ac_ct_DSYMUTIL" = x; then
7775 DSYMUTIL=":"
7776 else
7777 case $cross_compiling:$ac_tool_warned in
7778 yes:)
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7781 ac_tool_warned=yes ;;
7782 esac
7783 DSYMUTIL=$ac_ct_DSYMUTIL
7784 fi
7785 else
7786 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7787 fi
7788
7789 if test -n "$ac_tool_prefix"; then
7790 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7791 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 if test -n "$NMEDIT"; then
7798 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7799 else
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7802 do
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7810 fi
7811 done
7812 done
7813 IFS=$as_save_IFS
7814
7815 fi
7816 fi
7817 NMEDIT=$ac_cv_prog_NMEDIT
7818 if test -n "$NMEDIT"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7820 $as_echo "$NMEDIT" >&6; }
7821 else
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7824 fi
7825
7826
7827 fi
7828 if test -z "$ac_cv_prog_NMEDIT"; then
7829 ac_ct_NMEDIT=$NMEDIT
7830 # Extract the first word of "nmedit", so it can be a program name with args.
7831 set dummy nmedit; ac_word=$2
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833 $as_echo_n "checking for $ac_word... " >&6; }
7834 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7835 $as_echo_n "(cached) " >&6
7836 else
7837 if test -n "$ac_ct_NMEDIT"; then
7838 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7839 else
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 for as_dir in $PATH
7842 do
7843 IFS=$as_save_IFS
7844 test -z "$as_dir" && as_dir=.
7845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7847 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7849 break 2
7850 fi
7851 done
7852 done
7853 IFS=$as_save_IFS
7854
7855 fi
7856 fi
7857 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7858 if test -n "$ac_ct_NMEDIT"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7860 $as_echo "$ac_ct_NMEDIT" >&6; }
7861 else
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 $as_echo "no" >&6; }
7864 fi
7865
7866 if test "x$ac_ct_NMEDIT" = x; then
7867 NMEDIT=":"
7868 else
7869 case $cross_compiling:$ac_tool_warned in
7870 yes:)
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7873 ac_tool_warned=yes ;;
7874 esac
7875 NMEDIT=$ac_ct_NMEDIT
7876 fi
7877 else
7878 NMEDIT="$ac_cv_prog_NMEDIT"
7879 fi
7880
7881 if test -n "$ac_tool_prefix"; then
7882 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7883 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 $as_echo_n "checking for $ac_word... " >&6; }
7886 if test "${ac_cv_prog_LIPO+set}" = set; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 if test -n "$LIPO"; then
7890 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7891 else
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7894 do
7895 IFS=$as_save_IFS
7896 test -z "$as_dir" && as_dir=.
7897 for ac_exec_ext in '' $ac_executable_extensions; do
7898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7899 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 break 2
7902 fi
7903 done
7904 done
7905 IFS=$as_save_IFS
7906
7907 fi
7908 fi
7909 LIPO=$ac_cv_prog_LIPO
7910 if test -n "$LIPO"; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7912 $as_echo "$LIPO" >&6; }
7913 else
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7916 fi
7917
7918
7919 fi
7920 if test -z "$ac_cv_prog_LIPO"; then
7921 ac_ct_LIPO=$LIPO
7922 # Extract the first word of "lipo", so it can be a program name with args.
7923 set dummy lipo; ac_word=$2
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925 $as_echo_n "checking for $ac_word... " >&6; }
7926 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 if test -n "$ac_ct_LIPO"; then
7930 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7931 else
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 for as_dir in $PATH
7934 do
7935 IFS=$as_save_IFS
7936 test -z "$as_dir" && as_dir=.
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7939 ac_cv_prog_ac_ct_LIPO="lipo"
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 break 2
7942 fi
7943 done
7944 done
7945 IFS=$as_save_IFS
7946
7947 fi
7948 fi
7949 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7950 if test -n "$ac_ct_LIPO"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7952 $as_echo "$ac_ct_LIPO" >&6; }
7953 else
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7956 fi
7957
7958 if test "x$ac_ct_LIPO" = x; then
7959 LIPO=":"
7960 else
7961 case $cross_compiling:$ac_tool_warned in
7962 yes:)
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7965 ac_tool_warned=yes ;;
7966 esac
7967 LIPO=$ac_ct_LIPO
7968 fi
7969 else
7970 LIPO="$ac_cv_prog_LIPO"
7971 fi
7972
7973 if test -n "$ac_tool_prefix"; then
7974 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7975 set dummy ${ac_tool_prefix}otool; ac_word=$2
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977 $as_echo_n "checking for $ac_word... " >&6; }
7978 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7979 $as_echo_n "(cached) " >&6
7980 else
7981 if test -n "$OTOOL"; then
7982 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7983 else
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 for as_dir in $PATH
7986 do
7987 IFS=$as_save_IFS
7988 test -z "$as_dir" && as_dir=.
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7991 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7993 break 2
7994 fi
7995 done
7996 done
7997 IFS=$as_save_IFS
7998
7999 fi
8000 fi
8001 OTOOL=$ac_cv_prog_OTOOL
8002 if test -n "$OTOOL"; then
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8004 $as_echo "$OTOOL" >&6; }
8005 else
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 $as_echo "no" >&6; }
8008 fi
8009
8010
8011 fi
8012 if test -z "$ac_cv_prog_OTOOL"; then
8013 ac_ct_OTOOL=$OTOOL
8014 # Extract the first word of "otool", so it can be a program name with args.
8015 set dummy otool; ac_word=$2
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 $as_echo_n "checking for $ac_word... " >&6; }
8018 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8019 $as_echo_n "(cached) " >&6
8020 else
8021 if test -n "$ac_ct_OTOOL"; then
8022 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8023 else
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8026 do
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8031 ac_cv_prog_ac_ct_OTOOL="otool"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8034 fi
8035 done
8036 done
8037 IFS=$as_save_IFS
8038
8039 fi
8040 fi
8041 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8042 if test -n "$ac_ct_OTOOL"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8044 $as_echo "$ac_ct_OTOOL" >&6; }
8045 else
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8048 fi
8049
8050 if test "x$ac_ct_OTOOL" = x; then
8051 OTOOL=":"
8052 else
8053 case $cross_compiling:$ac_tool_warned in
8054 yes:)
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8057 ac_tool_warned=yes ;;
8058 esac
8059 OTOOL=$ac_ct_OTOOL
8060 fi
8061 else
8062 OTOOL="$ac_cv_prog_OTOOL"
8063 fi
8064
8065 if test -n "$ac_tool_prefix"; then
8066 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8067 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069 $as_echo_n "checking for $ac_word... " >&6; }
8070 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8071 $as_echo_n "(cached) " >&6
8072 else
8073 if test -n "$OTOOL64"; then
8074 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8075 else
8076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 for as_dir in $PATH
8078 do
8079 IFS=$as_save_IFS
8080 test -z "$as_dir" && as_dir=.
8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8083 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8085 break 2
8086 fi
8087 done
8088 done
8089 IFS=$as_save_IFS
8090
8091 fi
8092 fi
8093 OTOOL64=$ac_cv_prog_OTOOL64
8094 if test -n "$OTOOL64"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8096 $as_echo "$OTOOL64" >&6; }
8097 else
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8100 fi
8101
8102
8103 fi
8104 if test -z "$ac_cv_prog_OTOOL64"; then
8105 ac_ct_OTOOL64=$OTOOL64
8106 # Extract the first word of "otool64", so it can be a program name with args.
8107 set dummy otool64; ac_word=$2
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109 $as_echo_n "checking for $ac_word... " >&6; }
8110 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 if test -n "$ac_ct_OTOOL64"; then
8114 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8115 else
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 for as_dir in $PATH
8118 do
8119 IFS=$as_save_IFS
8120 test -z "$as_dir" && as_dir=.
8121 for ac_exec_ext in '' $ac_executable_extensions; do
8122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8123 ac_cv_prog_ac_ct_OTOOL64="otool64"
8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8125 break 2
8126 fi
8127 done
8128 done
8129 IFS=$as_save_IFS
8130
8131 fi
8132 fi
8133 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8134 if test -n "$ac_ct_OTOOL64"; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8136 $as_echo "$ac_ct_OTOOL64" >&6; }
8137 else
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139 $as_echo "no" >&6; }
8140 fi
8141
8142 if test "x$ac_ct_OTOOL64" = x; then
8143 OTOOL64=":"
8144 else
8145 case $cross_compiling:$ac_tool_warned in
8146 yes:)
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8149 ac_tool_warned=yes ;;
8150 esac
8151 OTOOL64=$ac_ct_OTOOL64
8152 fi
8153 else
8154 OTOOL64="$ac_cv_prog_OTOOL64"
8155 fi
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8184 $as_echo_n "checking for -single_module linker flag... " >&6; }
8185 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8186 $as_echo_n "(cached) " >&6
8187 else
8188 lt_cv_apple_cc_single_mod=no
8189 if test -z "${LT_MULTI_MODULE}"; then
8190 # By default we will add the -single_module flag. You can override
8191 # by either setting the environment variable LT_MULTI_MODULE
8192 # non-empty at configure time, or by adding -multi_module to the
8193 # link flags.
8194 rm -rf libconftest.dylib*
8195 echo "int foo(void){return 1;}" > conftest.c
8196 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8197 -dynamiclib -Wl,-single_module conftest.c" >&5
8198 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8199 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8200 _lt_result=$?
8201 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8202 lt_cv_apple_cc_single_mod=yes
8203 else
8204 cat conftest.err >&5
8205 fi
8206 rm -rf libconftest.dylib*
8207 rm -f conftest.*
8208 fi
8209 fi
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8211 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8213 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8214 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 lt_cv_ld_exported_symbols_list=no
8218 save_LDFLAGS=$LDFLAGS
8219 echo "_main" > conftest.sym
8220 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8221 if test x$gcc_no_link = xyes; then
8222 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8223 fi
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8226
8227 int
8228 main ()
8229 {
8230
8231 ;
8232 return 0;
8233 }
8234 _ACEOF
8235 if ac_fn_c_try_link "$LINENO"; then :
8236 lt_cv_ld_exported_symbols_list=yes
8237 else
8238 lt_cv_ld_exported_symbols_list=no
8239 fi
8240 rm -f core conftest.err conftest.$ac_objext \
8241 conftest$ac_exeext conftest.$ac_ext
8242 LDFLAGS="$save_LDFLAGS"
8243
8244 fi
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8246 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8248 $as_echo_n "checking for -force_load linker flag... " >&6; }
8249 if test "${lt_cv_ld_force_load+set}" = set; then :
8250 $as_echo_n "(cached) " >&6
8251 else
8252 lt_cv_ld_force_load=no
8253 cat > conftest.c << _LT_EOF
8254 int forced_loaded() { return 2;}
8255 _LT_EOF
8256 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8257 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8258 echo "$AR cru libconftest.a conftest.o" >&5
8259 $AR cru libconftest.a conftest.o 2>&5
8260 cat > conftest.c << _LT_EOF
8261 int main() { return 0;}
8262 _LT_EOF
8263 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8264 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8265 _lt_result=$?
8266 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8267 lt_cv_ld_force_load=yes
8268 else
8269 cat conftest.err >&5
8270 fi
8271 rm -f conftest.err libconftest.a conftest conftest.c
8272 rm -rf conftest.dSYM
8273
8274 fi
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8276 $as_echo "$lt_cv_ld_force_load" >&6; }
8277 case $host_os in
8278 rhapsody* | darwin1.[012])
8279 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8280 darwin1.*)
8281 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8282 darwin*) # darwin 5.x on
8283 # if running on 10.5 or later, the deployment target defaults
8284 # to the OS version, if on x86, and 10.4, the deployment
8285 # target defaults to 10.4. Don't you love it?
8286 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8287 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8288 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8289 10.[012]*)
8290 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8291 10.*)
8292 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8293 esac
8294 ;;
8295 esac
8296 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8297 _lt_dar_single_mod='$single_module'
8298 fi
8299 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8300 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8301 else
8302 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8303 fi
8304 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8305 _lt_dsymutil='~$DSYMUTIL $lib || :'
8306 else
8307 _lt_dsymutil=
8308 fi
8309 ;;
8310 esac
8311
8312 for ac_header in dlfcn.h
8313 do :
8314 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8315 "
8316 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8317 cat >>confdefs.h <<_ACEOF
8318 #define HAVE_DLFCN_H 1
8319 _ACEOF
8320
8321 fi
8322
8323 done
8324
8325
8326
8327
8328
8329 # Set options
8330
8331
8332
8333 enable_dlopen=no
8334
8335
8336 enable_win32_dll=no
8337
8338
8339 # Check whether --enable-shared was given.
8340 if test "${enable_shared+set}" = set; then :
8341 enableval=$enable_shared; p=${PACKAGE-default}
8342 case $enableval in
8343 yes) enable_shared=yes ;;
8344 no) enable_shared=no ;;
8345 *)
8346 enable_shared=no
8347 # Look at the argument we got. We use all the common list separators.
8348 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8349 for pkg in $enableval; do
8350 IFS="$lt_save_ifs"
8351 if test "X$pkg" = "X$p"; then
8352 enable_shared=yes
8353 fi
8354 done
8355 IFS="$lt_save_ifs"
8356 ;;
8357 esac
8358 else
8359 enable_shared=yes
8360 fi
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372 # Check whether --with-pic was given.
8373 if test "${with_pic+set}" = set; then :
8374 withval=$with_pic; pic_mode="$withval"
8375 else
8376 pic_mode=default
8377 fi
8378
8379
8380 test -z "$pic_mode" && pic_mode=default
8381
8382
8383
8384
8385
8386
8387
8388 # Check whether --enable-fast-install was given.
8389 if test "${enable_fast_install+set}" = set; then :
8390 enableval=$enable_fast_install; p=${PACKAGE-default}
8391 case $enableval in
8392 yes) enable_fast_install=yes ;;
8393 no) enable_fast_install=no ;;
8394 *)
8395 enable_fast_install=no
8396 # Look at the argument we got. We use all the common list separators.
8397 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8398 for pkg in $enableval; do
8399 IFS="$lt_save_ifs"
8400 if test "X$pkg" = "X$p"; then
8401 enable_fast_install=yes
8402 fi
8403 done
8404 IFS="$lt_save_ifs"
8405 ;;
8406 esac
8407 else
8408 enable_fast_install=yes
8409 fi
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421 # This can be used to rebuild libtool when needed
8422 LIBTOOL_DEPS="$ltmain"
8423
8424 # Always use our own libtool.
8425 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452 test -z "$LN_S" && LN_S="ln -s"
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467 if test -n "${ZSH_VERSION+set}" ; then
8468 setopt NO_GLOB_SUBST
8469 fi
8470
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8472 $as_echo_n "checking for objdir... " >&6; }
8473 if test "${lt_cv_objdir+set}" = set; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 rm -f .libs 2>/dev/null
8477 mkdir .libs 2>/dev/null
8478 if test -d .libs; then
8479 lt_cv_objdir=.libs
8480 else
8481 # MS-DOS does not allow filenames that begin with a dot.
8482 lt_cv_objdir=_libs
8483 fi
8484 rmdir .libs 2>/dev/null
8485 fi
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8487 $as_echo "$lt_cv_objdir" >&6; }
8488 objdir=$lt_cv_objdir
8489
8490
8491
8492
8493
8494 cat >>confdefs.h <<_ACEOF
8495 #define LT_OBJDIR "$lt_cv_objdir/"
8496 _ACEOF
8497
8498
8499
8500
8501 case $host_os in
8502 aix3*)
8503 # AIX sometimes has problems with the GCC collect2 program. For some
8504 # reason, if we set the COLLECT_NAMES environment variable, the problems
8505 # vanish in a puff of smoke.
8506 if test "X${COLLECT_NAMES+set}" != Xset; then
8507 COLLECT_NAMES=
8508 export COLLECT_NAMES
8509 fi
8510 ;;
8511 esac
8512
8513 # Global variables:
8514 ofile=libtool
8515 can_build_shared=yes
8516
8517 # All known linkers require a `.a' archive for static linking (except MSVC,
8518 # which needs '.lib').
8519 libext=a
8520
8521 with_gnu_ld="$lt_cv_prog_gnu_ld"
8522
8523 old_CC="$CC"
8524 old_CFLAGS="$CFLAGS"
8525
8526 # Set sane defaults for various variables
8527 test -z "$CC" && CC=cc
8528 test -z "$LTCC" && LTCC=$CC
8529 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8530 test -z "$LD" && LD=ld
8531 test -z "$ac_objext" && ac_objext=o
8532
8533 for cc_temp in $compiler""; do
8534 case $cc_temp in
8535 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8536 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8537 \-*) ;;
8538 *) break;;
8539 esac
8540 done
8541 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8542
8543
8544 # Only perform the check for file, if the check method requires it
8545 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8546 case $deplibs_check_method in
8547 file_magic*)
8548 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8550 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8551 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8552 $as_echo_n "(cached) " >&6
8553 else
8554 case $MAGIC_CMD in
8555 [\\/*] | ?:[\\/]*)
8556 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8557 ;;
8558 *)
8559 lt_save_MAGIC_CMD="$MAGIC_CMD"
8560 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8561 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8562 for ac_dir in $ac_dummy; do
8563 IFS="$lt_save_ifs"
8564 test -z "$ac_dir" && ac_dir=.
8565 if test -f $ac_dir/${ac_tool_prefix}file; then
8566 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8567 if test -n "$file_magic_test_file"; then
8568 case $deplibs_check_method in
8569 "file_magic "*)
8570 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8571 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8572 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8573 $EGREP "$file_magic_regex" > /dev/null; then
8574 :
8575 else
8576 cat <<_LT_EOF 1>&2
8577
8578 *** Warning: the command libtool uses to detect shared libraries,
8579 *** $file_magic_cmd, produces output that libtool cannot recognize.
8580 *** The result is that libtool may fail to recognize shared libraries
8581 *** as such. This will affect the creation of libtool libraries that
8582 *** depend on shared libraries, but programs linked with such libtool
8583 *** libraries will work regardless of this problem. Nevertheless, you
8584 *** may want to report the problem to your system manager and/or to
8585 *** bug-libtool@gnu.org
8586
8587 _LT_EOF
8588 fi ;;
8589 esac
8590 fi
8591 break
8592 fi
8593 done
8594 IFS="$lt_save_ifs"
8595 MAGIC_CMD="$lt_save_MAGIC_CMD"
8596 ;;
8597 esac
8598 fi
8599
8600 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8601 if test -n "$MAGIC_CMD"; then
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8603 $as_echo "$MAGIC_CMD" >&6; }
8604 else
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606 $as_echo "no" >&6; }
8607 fi
8608
8609
8610
8611
8612
8613 if test -z "$lt_cv_path_MAGIC_CMD"; then
8614 if test -n "$ac_tool_prefix"; then
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8616 $as_echo_n "checking for file... " >&6; }
8617 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8618 $as_echo_n "(cached) " >&6
8619 else
8620 case $MAGIC_CMD in
8621 [\\/*] | ?:[\\/]*)
8622 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8623 ;;
8624 *)
8625 lt_save_MAGIC_CMD="$MAGIC_CMD"
8626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8627 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8628 for ac_dir in $ac_dummy; do
8629 IFS="$lt_save_ifs"
8630 test -z "$ac_dir" && ac_dir=.
8631 if test -f $ac_dir/file; then
8632 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8633 if test -n "$file_magic_test_file"; then
8634 case $deplibs_check_method in
8635 "file_magic "*)
8636 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8637 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8638 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8639 $EGREP "$file_magic_regex" > /dev/null; then
8640 :
8641 else
8642 cat <<_LT_EOF 1>&2
8643
8644 *** Warning: the command libtool uses to detect shared libraries,
8645 *** $file_magic_cmd, produces output that libtool cannot recognize.
8646 *** The result is that libtool may fail to recognize shared libraries
8647 *** as such. This will affect the creation of libtool libraries that
8648 *** depend on shared libraries, but programs linked with such libtool
8649 *** libraries will work regardless of this problem. Nevertheless, you
8650 *** may want to report the problem to your system manager and/or to
8651 *** bug-libtool@gnu.org
8652
8653 _LT_EOF
8654 fi ;;
8655 esac
8656 fi
8657 break
8658 fi
8659 done
8660 IFS="$lt_save_ifs"
8661 MAGIC_CMD="$lt_save_MAGIC_CMD"
8662 ;;
8663 esac
8664 fi
8665
8666 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8667 if test -n "$MAGIC_CMD"; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8669 $as_echo "$MAGIC_CMD" >&6; }
8670 else
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672 $as_echo "no" >&6; }
8673 fi
8674
8675
8676 else
8677 MAGIC_CMD=:
8678 fi
8679 fi
8680
8681 fi
8682 ;;
8683 esac
8684
8685 # Use C for the default configuration in the libtool script
8686
8687 lt_save_CC="$CC"
8688 ac_ext=c
8689 ac_cpp='$CPP $CPPFLAGS'
8690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8693
8694
8695 # Source file extension for C test sources.
8696 ac_ext=c
8697
8698 # Object file extension for compiled C test sources.
8699 objext=o
8700 objext=$objext
8701
8702 # Code to be used in simple compile tests
8703 lt_simple_compile_test_code="int some_variable = 0;"
8704
8705 # Code to be used in simple link tests
8706 lt_simple_link_test_code='int main(){return(0);}'
8707
8708
8709
8710
8711
8712
8713
8714 # If no C compiler was specified, use CC.
8715 LTCC=${LTCC-"$CC"}
8716
8717 # If no C compiler flags were specified, use CFLAGS.
8718 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8719
8720 # Allow CC to be a program name with arguments.
8721 compiler=$CC
8722
8723 # Save the default compiler, since it gets overwritten when the other
8724 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8725 compiler_DEFAULT=$CC
8726
8727 # save warnings/boilerplate of simple test code
8728 ac_outfile=conftest.$ac_objext
8729 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8730 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8731 _lt_compiler_boilerplate=`cat conftest.err`
8732 $RM conftest*
8733
8734 ac_outfile=conftest.$ac_objext
8735 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8736 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8737 _lt_linker_boilerplate=`cat conftest.err`
8738 $RM -r conftest*
8739
8740
8741 ## CAVEAT EMPTOR:
8742 ## There is no encapsulation within the following macros, do not change
8743 ## the running order or otherwise move them around unless you know exactly
8744 ## what you are doing...
8745 if test -n "$compiler"; then
8746
8747 lt_prog_compiler_no_builtin_flag=
8748
8749 if test "$GCC" = yes; then
8750 case $cc_basename in
8751 nvcc*)
8752 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8753 *)
8754 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8755 esac
8756
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8758 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8759 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8760 $as_echo_n "(cached) " >&6
8761 else
8762 lt_cv_prog_compiler_rtti_exceptions=no
8763 ac_outfile=conftest.$ac_objext
8764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8765 lt_compiler_flag="-fno-rtti -fno-exceptions"
8766 # Insert the option either (1) after the last *FLAGS variable, or
8767 # (2) before a word containing "conftest.", or (3) at the end.
8768 # Note that $ac_compile itself does not contain backslashes and begins
8769 # with a dollar sign (not a hyphen), so the echo should work correctly.
8770 # The option is referenced via a variable to avoid confusing sed.
8771 lt_compile=`echo "$ac_compile" | $SED \
8772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8774 -e 's:$: $lt_compiler_flag:'`
8775 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8776 (eval "$lt_compile" 2>conftest.err)
8777 ac_status=$?
8778 cat conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 if (exit $ac_status) && test -s "$ac_outfile"; then
8781 # The compiler can only warn and ignore the option if not recognized
8782 # So say no if there are warnings other than the usual output.
8783 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8784 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8785 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8786 lt_cv_prog_compiler_rtti_exceptions=yes
8787 fi
8788 fi
8789 $RM conftest*
8790
8791 fi
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8793 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8794
8795 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8796 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8797 else
8798 :
8799 fi
8800
8801 fi
8802
8803
8804
8805
8806
8807
8808 lt_prog_compiler_wl=
8809 lt_prog_compiler_pic=
8810 lt_prog_compiler_static=
8811
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8813 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8814
8815 if test "$GCC" = yes; then
8816 lt_prog_compiler_wl='-Wl,'
8817 lt_prog_compiler_static='-static'
8818
8819 case $host_os in
8820 aix*)
8821 # All AIX code is PIC.
8822 if test "$host_cpu" = ia64; then
8823 # AIX 5 now supports IA64 processor
8824 lt_prog_compiler_static='-Bstatic'
8825 fi
8826 ;;
8827
8828 amigaos*)
8829 case $host_cpu in
8830 powerpc)
8831 # see comment about AmigaOS4 .so support
8832 lt_prog_compiler_pic='-fPIC'
8833 ;;
8834 m68k)
8835 # FIXME: we need at least 68020 code to build shared libraries, but
8836 # adding the `-m68020' flag to GCC prevents building anything better,
8837 # like `-m68040'.
8838 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8839 ;;
8840 esac
8841 ;;
8842
8843 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8844 # PIC is the default for these OSes.
8845 ;;
8846
8847 mingw* | cygwin* | pw32* | os2* | cegcc*)
8848 # This hack is so that the source file can tell whether it is being
8849 # built for inclusion in a dll (and should export symbols for example).
8850 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8851 # (--disable-auto-import) libraries
8852 lt_prog_compiler_pic='-DDLL_EXPORT'
8853 ;;
8854
8855 darwin* | rhapsody*)
8856 # PIC is the default on this platform
8857 # Common symbols not allowed in MH_DYLIB files
8858 lt_prog_compiler_pic='-fno-common'
8859 ;;
8860
8861 haiku*)
8862 # PIC is the default for Haiku.
8863 # The "-static" flag exists, but is broken.
8864 lt_prog_compiler_static=
8865 ;;
8866
8867 hpux*)
8868 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8869 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8870 # sets the default TLS model and affects inlining.
8871 case $host_cpu in
8872 hppa*64*)
8873 # +Z the default
8874 ;;
8875 *)
8876 lt_prog_compiler_pic='-fPIC'
8877 ;;
8878 esac
8879 ;;
8880
8881 interix[3-9]*)
8882 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8883 # Instead, we relocate shared libraries at runtime.
8884 ;;
8885
8886 msdosdjgpp*)
8887 # Just because we use GCC doesn't mean we suddenly get shared libraries
8888 # on systems that don't support them.
8889 lt_prog_compiler_can_build_shared=no
8890 enable_shared=no
8891 ;;
8892
8893 *nto* | *qnx*)
8894 # QNX uses GNU C++, but need to define -shared option too, otherwise
8895 # it will coredump.
8896 lt_prog_compiler_pic='-fPIC -shared'
8897 ;;
8898
8899 sysv4*MP*)
8900 if test -d /usr/nec; then
8901 lt_prog_compiler_pic=-Kconform_pic
8902 fi
8903 ;;
8904
8905 *)
8906 lt_prog_compiler_pic='-fPIC'
8907 ;;
8908 esac
8909
8910 case $cc_basename in
8911 nvcc*) # Cuda Compiler Driver 2.2
8912 lt_prog_compiler_wl='-Xlinker '
8913 lt_prog_compiler_pic='-Xcompiler -fPIC'
8914 ;;
8915 esac
8916 else
8917 # PORTME Check for flag to pass linker flags through the system compiler.
8918 case $host_os in
8919 aix*)
8920 lt_prog_compiler_wl='-Wl,'
8921 if test "$host_cpu" = ia64; then
8922 # AIX 5 now supports IA64 processor
8923 lt_prog_compiler_static='-Bstatic'
8924 else
8925 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8926 fi
8927 ;;
8928
8929 mingw* | cygwin* | pw32* | os2* | cegcc*)
8930 # This hack is so that the source file can tell whether it is being
8931 # built for inclusion in a dll (and should export symbols for example).
8932 lt_prog_compiler_pic='-DDLL_EXPORT'
8933 ;;
8934
8935 hpux9* | hpux10* | hpux11*)
8936 lt_prog_compiler_wl='-Wl,'
8937 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8938 # not for PA HP-UX.
8939 case $host_cpu in
8940 hppa*64*|ia64*)
8941 # +Z the default
8942 ;;
8943 *)
8944 lt_prog_compiler_pic='+Z'
8945 ;;
8946 esac
8947 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8948 lt_prog_compiler_static='${wl}-a ${wl}archive'
8949 ;;
8950
8951 irix5* | irix6* | nonstopux*)
8952 lt_prog_compiler_wl='-Wl,'
8953 # PIC (with -KPIC) is the default.
8954 lt_prog_compiler_static='-non_shared'
8955 ;;
8956
8957 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8958 case $cc_basename in
8959 # old Intel for x86_64 which still supported -KPIC.
8960 ecc*)
8961 lt_prog_compiler_wl='-Wl,'
8962 lt_prog_compiler_pic='-KPIC'
8963 lt_prog_compiler_static='-static'
8964 ;;
8965 # icc used to be incompatible with GCC.
8966 # ICC 10 doesn't accept -KPIC any more.
8967 icc* | ifort*)
8968 lt_prog_compiler_wl='-Wl,'
8969 lt_prog_compiler_pic='-fPIC'
8970 lt_prog_compiler_static='-static'
8971 ;;
8972 # Lahey Fortran 8.1.
8973 lf95*)
8974 lt_prog_compiler_wl='-Wl,'
8975 lt_prog_compiler_pic='--shared'
8976 lt_prog_compiler_static='--static'
8977 ;;
8978 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8979 # Portland Group compilers (*not* the Pentium gcc compiler,
8980 # which looks to be a dead project)
8981 lt_prog_compiler_wl='-Wl,'
8982 lt_prog_compiler_pic='-fpic'
8983 lt_prog_compiler_static='-Bstatic'
8984 ;;
8985 ccc*)
8986 lt_prog_compiler_wl='-Wl,'
8987 # All Alpha code is PIC.
8988 lt_prog_compiler_static='-non_shared'
8989 ;;
8990 xl* | bgxl* | bgf* | mpixl*)
8991 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8992 lt_prog_compiler_wl='-Wl,'
8993 lt_prog_compiler_pic='-qpic'
8994 lt_prog_compiler_static='-qstaticlink'
8995 ;;
8996 *)
8997 case `$CC -V 2>&1 | sed 5q` in
8998 *Sun\ F* | *Sun*Fortran*)
8999 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9000 lt_prog_compiler_pic='-KPIC'
9001 lt_prog_compiler_static='-Bstatic'
9002 lt_prog_compiler_wl=''
9003 ;;
9004 *Sun\ C*)
9005 # Sun C 5.9
9006 lt_prog_compiler_pic='-KPIC'
9007 lt_prog_compiler_static='-Bstatic'
9008 lt_prog_compiler_wl='-Wl,'
9009 ;;
9010 esac
9011 ;;
9012 esac
9013 ;;
9014
9015 newsos6)
9016 lt_prog_compiler_pic='-KPIC'
9017 lt_prog_compiler_static='-Bstatic'
9018 ;;
9019
9020 *nto* | *qnx*)
9021 # QNX uses GNU C++, but need to define -shared option too, otherwise
9022 # it will coredump.
9023 lt_prog_compiler_pic='-fPIC -shared'
9024 ;;
9025
9026 osf3* | osf4* | osf5*)
9027 lt_prog_compiler_wl='-Wl,'
9028 # All OSF/1 code is PIC.
9029 lt_prog_compiler_static='-non_shared'
9030 ;;
9031
9032 rdos*)
9033 lt_prog_compiler_static='-non_shared'
9034 ;;
9035
9036 solaris*)
9037 lt_prog_compiler_pic='-KPIC'
9038 lt_prog_compiler_static='-Bstatic'
9039 case $cc_basename in
9040 f77* | f90* | f95*)
9041 lt_prog_compiler_wl='-Qoption ld ';;
9042 *)
9043 lt_prog_compiler_wl='-Wl,';;
9044 esac
9045 ;;
9046
9047 sunos4*)
9048 lt_prog_compiler_wl='-Qoption ld '
9049 lt_prog_compiler_pic='-PIC'
9050 lt_prog_compiler_static='-Bstatic'
9051 ;;
9052
9053 sysv4 | sysv4.2uw2* | sysv4.3*)
9054 lt_prog_compiler_wl='-Wl,'
9055 lt_prog_compiler_pic='-KPIC'
9056 lt_prog_compiler_static='-Bstatic'
9057 ;;
9058
9059 sysv4*MP*)
9060 if test -d /usr/nec ;then
9061 lt_prog_compiler_pic='-Kconform_pic'
9062 lt_prog_compiler_static='-Bstatic'
9063 fi
9064 ;;
9065
9066 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9067 lt_prog_compiler_wl='-Wl,'
9068 lt_prog_compiler_pic='-KPIC'
9069 lt_prog_compiler_static='-Bstatic'
9070 ;;
9071
9072 unicos*)
9073 lt_prog_compiler_wl='-Wl,'
9074 lt_prog_compiler_can_build_shared=no
9075 ;;
9076
9077 uts4*)
9078 lt_prog_compiler_pic='-pic'
9079 lt_prog_compiler_static='-Bstatic'
9080 ;;
9081
9082 *)
9083 lt_prog_compiler_can_build_shared=no
9084 ;;
9085 esac
9086 fi
9087
9088 case $host_os in
9089 # For platforms which do not support PIC, -DPIC is meaningless:
9090 *djgpp*)
9091 lt_prog_compiler_pic=
9092 ;;
9093 *)
9094 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9095 ;;
9096 esac
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9098 $as_echo "$lt_prog_compiler_pic" >&6; }
9099
9100
9101
9102
9103
9104
9105 #
9106 # Check to make sure the PIC flag actually works.
9107 #
9108 if test -n "$lt_prog_compiler_pic"; then
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9110 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9111 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 lt_cv_prog_compiler_pic_works=no
9115 ac_outfile=conftest.$ac_objext
9116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9117 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9118 # Insert the option either (1) after the last *FLAGS variable, or
9119 # (2) before a word containing "conftest.", or (3) at the end.
9120 # Note that $ac_compile itself does not contain backslashes and begins
9121 # with a dollar sign (not a hyphen), so the echo should work correctly.
9122 # The option is referenced via a variable to avoid confusing sed.
9123 lt_compile=`echo "$ac_compile" | $SED \
9124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9126 -e 's:$: $lt_compiler_flag:'`
9127 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9128 (eval "$lt_compile" 2>conftest.err)
9129 ac_status=$?
9130 cat conftest.err >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 if (exit $ac_status) && test -s "$ac_outfile"; then
9133 # The compiler can only warn and ignore the option if not recognized
9134 # So say no if there are warnings other than the usual output.
9135 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9136 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9137 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9138 lt_cv_prog_compiler_pic_works=yes
9139 fi
9140 fi
9141 $RM conftest*
9142
9143 fi
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9145 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9146
9147 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9148 case $lt_prog_compiler_pic in
9149 "" | " "*) ;;
9150 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9151 esac
9152 else
9153 lt_prog_compiler_pic=
9154 lt_prog_compiler_can_build_shared=no
9155 fi
9156
9157 fi
9158
9159
9160
9161
9162
9163
9164 #
9165 # Check to make sure the static flag actually works.
9166 #
9167 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9169 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9170 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9171 $as_echo_n "(cached) " >&6
9172 else
9173 lt_cv_prog_compiler_static_works=no
9174 save_LDFLAGS="$LDFLAGS"
9175 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9176 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9177 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9178 # The linker can only warn and ignore the option if not recognized
9179 # So say no if there are warnings
9180 if test -s conftest.err; then
9181 # Append any errors to the config.log.
9182 cat conftest.err 1>&5
9183 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9184 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9185 if diff conftest.exp conftest.er2 >/dev/null; then
9186 lt_cv_prog_compiler_static_works=yes
9187 fi
9188 else
9189 lt_cv_prog_compiler_static_works=yes
9190 fi
9191 fi
9192 $RM -r conftest*
9193 LDFLAGS="$save_LDFLAGS"
9194
9195 fi
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9197 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9198
9199 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9200 :
9201 else
9202 lt_prog_compiler_static=
9203 fi
9204
9205
9206
9207
9208
9209
9210
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9212 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9213 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9214 $as_echo_n "(cached) " >&6
9215 else
9216 lt_cv_prog_compiler_c_o=no
9217 $RM -r conftest 2>/dev/null
9218 mkdir conftest
9219 cd conftest
9220 mkdir out
9221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9222
9223 lt_compiler_flag="-o out/conftest2.$ac_objext"
9224 # Insert the option either (1) after the last *FLAGS variable, or
9225 # (2) before a word containing "conftest.", or (3) at the end.
9226 # Note that $ac_compile itself does not contain backslashes and begins
9227 # with a dollar sign (not a hyphen), so the echo should work correctly.
9228 lt_compile=`echo "$ac_compile" | $SED \
9229 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9231 -e 's:$: $lt_compiler_flag:'`
9232 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9233 (eval "$lt_compile" 2>out/conftest.err)
9234 ac_status=$?
9235 cat out/conftest.err >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9238 then
9239 # The compiler can only warn and ignore the option if not recognized
9240 # So say no if there are warnings
9241 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9242 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9243 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9244 lt_cv_prog_compiler_c_o=yes
9245 fi
9246 fi
9247 chmod u+w . 2>&5
9248 $RM conftest*
9249 # SGI C++ compiler will create directory out/ii_files/ for
9250 # template instantiation
9251 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9252 $RM out/* && rmdir out
9253 cd ..
9254 $RM -r conftest
9255 $RM conftest*
9256
9257 fi
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9259 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9260
9261
9262
9263
9264
9265
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9267 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9268 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9269 $as_echo_n "(cached) " >&6
9270 else
9271 lt_cv_prog_compiler_c_o=no
9272 $RM -r conftest 2>/dev/null
9273 mkdir conftest
9274 cd conftest
9275 mkdir out
9276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9277
9278 lt_compiler_flag="-o out/conftest2.$ac_objext"
9279 # Insert the option either (1) after the last *FLAGS variable, or
9280 # (2) before a word containing "conftest.", or (3) at the end.
9281 # Note that $ac_compile itself does not contain backslashes and begins
9282 # with a dollar sign (not a hyphen), so the echo should work correctly.
9283 lt_compile=`echo "$ac_compile" | $SED \
9284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9286 -e 's:$: $lt_compiler_flag:'`
9287 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9288 (eval "$lt_compile" 2>out/conftest.err)
9289 ac_status=$?
9290 cat out/conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9293 then
9294 # The compiler can only warn and ignore the option if not recognized
9295 # So say no if there are warnings
9296 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9297 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9298 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9299 lt_cv_prog_compiler_c_o=yes
9300 fi
9301 fi
9302 chmod u+w . 2>&5
9303 $RM conftest*
9304 # SGI C++ compiler will create directory out/ii_files/ for
9305 # template instantiation
9306 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9307 $RM out/* && rmdir out
9308 cd ..
9309 $RM -r conftest
9310 $RM conftest*
9311
9312 fi
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9314 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9315
9316
9317
9318
9319 hard_links="nottested"
9320 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9321 # do not overwrite the value of need_locks provided by the user
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9323 $as_echo_n "checking if we can lock with hard links... " >&6; }
9324 hard_links=yes
9325 $RM conftest*
9326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9327 touch conftest.a
9328 ln conftest.a conftest.b 2>&5 || hard_links=no
9329 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9331 $as_echo "$hard_links" >&6; }
9332 if test "$hard_links" = no; then
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9334 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9335 need_locks=warn
9336 fi
9337 else
9338 need_locks=no
9339 fi
9340
9341
9342
9343
9344
9345
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9347 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9348
9349 runpath_var=
9350 allow_undefined_flag=
9351 always_export_symbols=no
9352 archive_cmds=
9353 archive_expsym_cmds=
9354 compiler_needs_object=no
9355 enable_shared_with_static_runtimes=no
9356 export_dynamic_flag_spec=
9357 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9358 hardcode_automatic=no
9359 hardcode_direct=no
9360 hardcode_direct_absolute=no
9361 hardcode_libdir_flag_spec=
9362 hardcode_libdir_flag_spec_ld=
9363 hardcode_libdir_separator=
9364 hardcode_minus_L=no
9365 hardcode_shlibpath_var=unsupported
9366 inherit_rpath=no
9367 link_all_deplibs=unknown
9368 module_cmds=
9369 module_expsym_cmds=
9370 old_archive_from_new_cmds=
9371 old_archive_from_expsyms_cmds=
9372 thread_safe_flag_spec=
9373 whole_archive_flag_spec=
9374 # include_expsyms should be a list of space-separated symbols to be *always*
9375 # included in the symbol list
9376 include_expsyms=
9377 # exclude_expsyms can be an extended regexp of symbols to exclude
9378 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9379 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9380 # as well as any symbol that contains `d'.
9381 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9382 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9383 # platforms (ab)use it in PIC code, but their linkers get confused if
9384 # the symbol is explicitly referenced. Since portable code cannot
9385 # rely on this symbol name, it's probably fine to never include it in
9386 # preloaded symbol tables.
9387 # Exclude shared library initialization/finalization symbols.
9388 extract_expsyms_cmds=
9389
9390 case $host_os in
9391 cygwin* | mingw* | pw32* | cegcc*)
9392 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9393 # When not using gcc, we currently assume that we are using
9394 # Microsoft Visual C++.
9395 if test "$GCC" != yes; then
9396 with_gnu_ld=no
9397 fi
9398 ;;
9399 interix*)
9400 # we just hope/assume this is gcc and not c89 (= MSVC++)
9401 with_gnu_ld=yes
9402 ;;
9403 openbsd*)
9404 with_gnu_ld=no
9405 ;;
9406 esac
9407
9408 ld_shlibs=yes
9409
9410 # On some targets, GNU ld is compatible enough with the native linker
9411 # that we're better off using the native interface for both.
9412 lt_use_gnu_ld_interface=no
9413 if test "$with_gnu_ld" = yes; then
9414 case $host_os in
9415 aix*)
9416 # The AIX port of GNU ld has always aspired to compatibility
9417 # with the native linker. However, as the warning in the GNU ld
9418 # block says, versions before 2.19.5* couldn't really create working
9419 # shared libraries, regardless of the interface used.
9420 case `$LD -v 2>&1` in
9421 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9422 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9423 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9424 *)
9425 lt_use_gnu_ld_interface=yes
9426 ;;
9427 esac
9428 ;;
9429 *)
9430 lt_use_gnu_ld_interface=yes
9431 ;;
9432 esac
9433 fi
9434
9435 if test "$lt_use_gnu_ld_interface" = yes; then
9436 # If archive_cmds runs LD, not CC, wlarc should be empty
9437 wlarc='${wl}'
9438
9439 # Set some defaults for GNU ld with shared library support. These
9440 # are reset later if shared libraries are not supported. Putting them
9441 # here allows them to be overridden if necessary.
9442 runpath_var=LD_RUN_PATH
9443 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9444 export_dynamic_flag_spec='${wl}--export-dynamic'
9445 # ancient GNU ld didn't support --whole-archive et. al.
9446 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9447 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9448 else
9449 whole_archive_flag_spec=
9450 fi
9451 supports_anon_versioning=no
9452 case `$LD -v 2>&1` in
9453 *GNU\ gold*) supports_anon_versioning=yes ;;
9454 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9455 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9456 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9457 *\ 2.11.*) ;; # other 2.11 versions
9458 *) supports_anon_versioning=yes ;;
9459 esac
9460
9461 # See if GNU ld supports shared libraries.
9462 case $host_os in
9463 aix[3-9]*)
9464 # On AIX/PPC, the GNU linker is very broken
9465 if test "$host_cpu" != ia64; then
9466 ld_shlibs=no
9467 cat <<_LT_EOF 1>&2
9468
9469 *** Warning: the GNU linker, at least up to release 2.19, is reported
9470 *** to be unable to reliably create shared libraries on AIX.
9471 *** Therefore, libtool is disabling shared libraries support. If you
9472 *** really care for shared libraries, you may want to install binutils
9473 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9474 *** You will then need to restart the configuration process.
9475
9476 _LT_EOF
9477 fi
9478 ;;
9479
9480 amigaos*)
9481 case $host_cpu in
9482 powerpc)
9483 # see comment about AmigaOS4 .so support
9484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9485 archive_expsym_cmds=''
9486 ;;
9487 m68k)
9488 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)'
9489 hardcode_libdir_flag_spec='-L$libdir'
9490 hardcode_minus_L=yes
9491 ;;
9492 esac
9493 ;;
9494
9495 beos*)
9496 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9497 allow_undefined_flag=unsupported
9498 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9499 # support --undefined. This deserves some investigation. FIXME
9500 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9501 else
9502 ld_shlibs=no
9503 fi
9504 ;;
9505
9506 cygwin* | mingw* | pw32* | cegcc*)
9507 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9508 # as there is no search path for DLLs.
9509 hardcode_libdir_flag_spec='-L$libdir'
9510 export_dynamic_flag_spec='${wl}--export-all-symbols'
9511 allow_undefined_flag=unsupported
9512 always_export_symbols=no
9513 enable_shared_with_static_runtimes=yes
9514 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9515
9516 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9518 # If the export-symbols file already is a .def file (1st line
9519 # is EXPORTS), use it as is; otherwise, prepend...
9520 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9521 cp $export_symbols $output_objdir/$soname.def;
9522 else
9523 echo EXPORTS > $output_objdir/$soname.def;
9524 cat $export_symbols >> $output_objdir/$soname.def;
9525 fi~
9526 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9527 else
9528 ld_shlibs=no
9529 fi
9530 ;;
9531
9532 haiku*)
9533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9534 link_all_deplibs=yes
9535 ;;
9536
9537 interix[3-9]*)
9538 hardcode_direct=no
9539 hardcode_shlibpath_var=no
9540 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9541 export_dynamic_flag_spec='${wl}-E'
9542 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9543 # Instead, shared libraries are loaded at an image base (0x10000000 by
9544 # default) and relocated if they conflict, which is a slow very memory
9545 # consuming and fragmenting process. To avoid this, we pick a random,
9546 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9547 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9548 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9549 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'
9550 ;;
9551
9552 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9553 tmp_diet=no
9554 if test "$host_os" = linux-dietlibc; then
9555 case $cc_basename in
9556 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9557 esac
9558 fi
9559 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9560 && test "$tmp_diet" = no
9561 then
9562 tmp_addflag=
9563 tmp_sharedflag='-shared'
9564 case $cc_basename,$host_cpu in
9565 pgcc*) # Portland Group C compiler
9566 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9567 tmp_addflag=' $pic_flag'
9568 ;;
9569 pgf77* | pgf90* | pgf95* | pgfortran*)
9570 # Portland Group f77 and f90 compilers
9571 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9572 tmp_addflag=' $pic_flag -Mnomain' ;;
9573 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9574 tmp_addflag=' -i_dynamic' ;;
9575 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9576 tmp_addflag=' -i_dynamic -nofor_main' ;;
9577 ifc* | ifort*) # Intel Fortran compiler
9578 tmp_addflag=' -nofor_main' ;;
9579 lf95*) # Lahey Fortran 8.1
9580 whole_archive_flag_spec=
9581 tmp_sharedflag='--shared' ;;
9582 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9583 tmp_sharedflag='-qmkshrobj'
9584 tmp_addflag= ;;
9585 nvcc*) # Cuda Compiler Driver 2.2
9586 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9587 compiler_needs_object=yes
9588 ;;
9589 esac
9590 case `$CC -V 2>&1 | sed 5q` in
9591 *Sun\ C*) # Sun C 5.9
9592 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9593 compiler_needs_object=yes
9594 tmp_sharedflag='-G' ;;
9595 *Sun\ F*) # Sun Fortran 8.3
9596 tmp_sharedflag='-G' ;;
9597 esac
9598 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9599
9600 if test "x$supports_anon_versioning" = xyes; then
9601 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9602 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9603 echo "local: *; };" >> $output_objdir/$libname.ver~
9604 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9605 fi
9606
9607 case $cc_basename in
9608 xlf* | bgf* | bgxlf* | mpixlf*)
9609 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9610 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9611 hardcode_libdir_flag_spec=
9612 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9613 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9614 if test "x$supports_anon_versioning" = xyes; then
9615 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9616 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9617 echo "local: *; };" >> $output_objdir/$libname.ver~
9618 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9619 fi
9620 ;;
9621 esac
9622 else
9623 ld_shlibs=no
9624 fi
9625 ;;
9626
9627 netbsd*)
9628 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9629 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9630 wlarc=
9631 else
9632 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9633 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9634 fi
9635 ;;
9636
9637 solaris*)
9638 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9639 ld_shlibs=no
9640 cat <<_LT_EOF 1>&2
9641
9642 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9643 *** create shared libraries on Solaris systems. Therefore, libtool
9644 *** is disabling shared libraries support. We urge you to upgrade GNU
9645 *** binutils to release 2.9.1 or newer. Another option is to modify
9646 *** your PATH or compiler configuration so that the native linker is
9647 *** used, and then restart.
9648
9649 _LT_EOF
9650 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9652 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9653 else
9654 ld_shlibs=no
9655 fi
9656 ;;
9657
9658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9659 case `$LD -v 2>&1` in
9660 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9661 ld_shlibs=no
9662 cat <<_LT_EOF 1>&2
9663
9664 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9665 *** reliably create shared libraries on SCO systems. Therefore, libtool
9666 *** is disabling shared libraries support. We urge you to upgrade GNU
9667 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9668 *** your PATH or compiler configuration so that the native linker is
9669 *** used, and then restart.
9670
9671 _LT_EOF
9672 ;;
9673 *)
9674 # For security reasons, it is highly recommended that you always
9675 # use absolute paths for naming shared libraries, and exclude the
9676 # DT_RUNPATH tag from executables and libraries. But doing so
9677 # requires that you compile everything twice, which is a pain.
9678 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9679 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9681 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9682 else
9683 ld_shlibs=no
9684 fi
9685 ;;
9686 esac
9687 ;;
9688
9689 sunos4*)
9690 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9691 wlarc=
9692 hardcode_direct=yes
9693 hardcode_shlibpath_var=no
9694 ;;
9695
9696 *)
9697 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9699 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9700 else
9701 ld_shlibs=no
9702 fi
9703 ;;
9704 esac
9705
9706 if test "$ld_shlibs" = no; then
9707 runpath_var=
9708 hardcode_libdir_flag_spec=
9709 export_dynamic_flag_spec=
9710 whole_archive_flag_spec=
9711 fi
9712 else
9713 # PORTME fill in a description of your system's linker (not GNU ld)
9714 case $host_os in
9715 aix3*)
9716 allow_undefined_flag=unsupported
9717 always_export_symbols=yes
9718 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'
9719 # Note: this linker hardcodes the directories in LIBPATH if there
9720 # are no directories specified by -L.
9721 hardcode_minus_L=yes
9722 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9723 # Neither direct hardcoding nor static linking is supported with a
9724 # broken collect2.
9725 hardcode_direct=unsupported
9726 fi
9727 ;;
9728
9729 aix[4-9]*)
9730 if test "$host_cpu" = ia64; then
9731 # On IA64, the linker does run time linking by default, so we don't
9732 # have to do anything special.
9733 aix_use_runtimelinking=no
9734 exp_sym_flag='-Bexport'
9735 no_entry_flag=""
9736 else
9737 # If we're using GNU nm, then we don't want the "-C" option.
9738 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9739 # Also, AIX nm treats weak defined symbols like other global
9740 # defined symbols, whereas GNU nm marks them as "W".
9741 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9742 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9743 else
9744 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'
9745 fi
9746 aix_use_runtimelinking=no
9747
9748 # Test if we are trying to use run time linking or normal
9749 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9750 # need to do runtime linking.
9751 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9752 for ld_flag in $LDFLAGS; do
9753 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9754 aix_use_runtimelinking=yes
9755 break
9756 fi
9757 done
9758 ;;
9759 esac
9760
9761 exp_sym_flag='-bexport'
9762 no_entry_flag='-bnoentry'
9763 fi
9764
9765 # When large executables or shared objects are built, AIX ld can
9766 # have problems creating the table of contents. If linking a library
9767 # or program results in "error TOC overflow" add -mminimal-toc to
9768 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9769 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9770
9771 archive_cmds=''
9772 hardcode_direct=yes
9773 hardcode_direct_absolute=yes
9774 hardcode_libdir_separator=':'
9775 link_all_deplibs=yes
9776 file_list_spec='${wl}-f,'
9777
9778 if test "$GCC" = yes; then
9779 case $host_os in aix4.[012]|aix4.[012].*)
9780 # We only want to do this on AIX 4.2 and lower, the check
9781 # below for broken collect2 doesn't work under 4.3+
9782 collect2name=`${CC} -print-prog-name=collect2`
9783 if test -f "$collect2name" &&
9784 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9785 then
9786 # We have reworked collect2
9787 :
9788 else
9789 # We have old collect2
9790 hardcode_direct=unsupported
9791 # It fails to find uninstalled libraries when the uninstalled
9792 # path is not listed in the libpath. Setting hardcode_minus_L
9793 # to unsupported forces relinking
9794 hardcode_minus_L=yes
9795 hardcode_libdir_flag_spec='-L$libdir'
9796 hardcode_libdir_separator=
9797 fi
9798 ;;
9799 esac
9800 shared_flag='-shared'
9801 if test "$aix_use_runtimelinking" = yes; then
9802 shared_flag="$shared_flag "'${wl}-G'
9803 fi
9804 else
9805 # not using gcc
9806 if test "$host_cpu" = ia64; then
9807 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9808 # chokes on -Wl,-G. The following line is correct:
9809 shared_flag='-G'
9810 else
9811 if test "$aix_use_runtimelinking" = yes; then
9812 shared_flag='${wl}-G'
9813 else
9814 shared_flag='${wl}-bM:SRE'
9815 fi
9816 fi
9817 fi
9818
9819 export_dynamic_flag_spec='${wl}-bexpall'
9820 # It seems that -bexpall does not export symbols beginning with
9821 # underscore (_), so it is better to generate a list of symbols to export.
9822 always_export_symbols=yes
9823 if test "$aix_use_runtimelinking" = yes; then
9824 # Warning - without using the other runtime loading flags (-brtl),
9825 # -berok will link without error, but may produce a broken library.
9826 allow_undefined_flag='-berok'
9827 # Determine the default libpath from the value encoded in an
9828 # empty executable.
9829 if test x$gcc_no_link = xyes; then
9830 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9831 fi
9832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h. */
9834
9835 int
9836 main ()
9837 {
9838
9839 ;
9840 return 0;
9841 }
9842 _ACEOF
9843 if ac_fn_c_try_link "$LINENO"; then :
9844
9845 lt_aix_libpath_sed='
9846 /Import File Strings/,/^$/ {
9847 /^0/ {
9848 s/^0 *\(.*\)$/\1/
9849 p
9850 }
9851 }'
9852 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9853 # Check for a 64-bit object if we didn't find anything.
9854 if test -z "$aix_libpath"; then
9855 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9856 fi
9857 fi
9858 rm -f core conftest.err conftest.$ac_objext \
9859 conftest$ac_exeext conftest.$ac_ext
9860 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9861
9862 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9863 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9864 else
9865 if test "$host_cpu" = ia64; then
9866 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9867 allow_undefined_flag="-z nodefs"
9868 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"
9869 else
9870 # Determine the default libpath from the value encoded in an
9871 # empty executable.
9872 if test x$gcc_no_link = xyes; then
9873 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9874 fi
9875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9876 /* end confdefs.h. */
9877
9878 int
9879 main ()
9880 {
9881
9882 ;
9883 return 0;
9884 }
9885 _ACEOF
9886 if ac_fn_c_try_link "$LINENO"; then :
9887
9888 lt_aix_libpath_sed='
9889 /Import File Strings/,/^$/ {
9890 /^0/ {
9891 s/^0 *\(.*\)$/\1/
9892 p
9893 }
9894 }'
9895 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9896 # Check for a 64-bit object if we didn't find anything.
9897 if test -z "$aix_libpath"; then
9898 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9899 fi
9900 fi
9901 rm -f core conftest.err conftest.$ac_objext \
9902 conftest$ac_exeext conftest.$ac_ext
9903 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9904
9905 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9906 # Warning - without using the other run time loading flags,
9907 # -berok will link without error, but may produce a broken library.
9908 no_undefined_flag=' ${wl}-bernotok'
9909 allow_undefined_flag=' ${wl}-berok'
9910 if test "$with_gnu_ld" = yes; then
9911 # We only use this code for GNU lds that support --whole-archive.
9912 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9913 else
9914 # Exported symbols can be pulled into shared objects from archives
9915 whole_archive_flag_spec='$convenience'
9916 fi
9917 archive_cmds_need_lc=yes
9918 # This is similar to how AIX traditionally builds its shared libraries.
9919 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'
9920 fi
9921 fi
9922 ;;
9923
9924 amigaos*)
9925 case $host_cpu in
9926 powerpc)
9927 # see comment about AmigaOS4 .so support
9928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9929 archive_expsym_cmds=''
9930 ;;
9931 m68k)
9932 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)'
9933 hardcode_libdir_flag_spec='-L$libdir'
9934 hardcode_minus_L=yes
9935 ;;
9936 esac
9937 ;;
9938
9939 bsdi[45]*)
9940 export_dynamic_flag_spec=-rdynamic
9941 ;;
9942
9943 cygwin* | mingw* | pw32* | cegcc*)
9944 # When not using gcc, we currently assume that we are using
9945 # Microsoft Visual C++.
9946 # hardcode_libdir_flag_spec is actually meaningless, as there is
9947 # no search path for DLLs.
9948 hardcode_libdir_flag_spec=' '
9949 allow_undefined_flag=unsupported
9950 # Tell ltmain to make .lib files, not .a files.
9951 libext=lib
9952 # Tell ltmain to make .dll files, not .so files.
9953 shrext_cmds=".dll"
9954 # FIXME: Setting linknames here is a bad hack.
9955 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9956 # The linker will automatically build a .lib file if we build a DLL.
9957 old_archive_from_new_cmds='true'
9958 # FIXME: Should let the user specify the lib program.
9959 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9960 fix_srcfile_path='`cygpath -w "$srcfile"`'
9961 enable_shared_with_static_runtimes=yes
9962 ;;
9963
9964 darwin* | rhapsody*)
9965
9966
9967 archive_cmds_need_lc=no
9968 hardcode_direct=no
9969 hardcode_automatic=yes
9970 hardcode_shlibpath_var=unsupported
9971 if test "$lt_cv_ld_force_load" = "yes"; then
9972 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9973 else
9974 whole_archive_flag_spec=''
9975 fi
9976 link_all_deplibs=yes
9977 allow_undefined_flag="$_lt_dar_allow_undefined"
9978 case $cc_basename in
9979 ifort*) _lt_dar_can_shared=yes ;;
9980 *) _lt_dar_can_shared=$GCC ;;
9981 esac
9982 if test "$_lt_dar_can_shared" = "yes"; then
9983 output_verbose_link_cmd=func_echo_all
9984 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9985 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9986 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}"
9987 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}"
9988
9989 else
9990 ld_shlibs=no
9991 fi
9992
9993 ;;
9994
9995 dgux*)
9996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9997 hardcode_libdir_flag_spec='-L$libdir'
9998 hardcode_shlibpath_var=no
9999 ;;
10000
10001 freebsd1*)
10002 ld_shlibs=no
10003 ;;
10004
10005 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10006 # support. Future versions do this automatically, but an explicit c++rt0.o
10007 # does not break anything, and helps significantly (at the cost of a little
10008 # extra space).
10009 freebsd2.2*)
10010 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10011 hardcode_libdir_flag_spec='-R$libdir'
10012 hardcode_direct=yes
10013 hardcode_shlibpath_var=no
10014 ;;
10015
10016 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10017 freebsd2*)
10018 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10019 hardcode_direct=yes
10020 hardcode_minus_L=yes
10021 hardcode_shlibpath_var=no
10022 ;;
10023
10024 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10025 freebsd* | dragonfly*)
10026 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10027 hardcode_libdir_flag_spec='-R$libdir'
10028 hardcode_direct=yes
10029 hardcode_shlibpath_var=no
10030 ;;
10031
10032 hpux9*)
10033 if test "$GCC" = yes; then
10034 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'
10035 else
10036 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'
10037 fi
10038 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10039 hardcode_libdir_separator=:
10040 hardcode_direct=yes
10041
10042 # hardcode_minus_L: Not really in the search PATH,
10043 # but as the default location of the library.
10044 hardcode_minus_L=yes
10045 export_dynamic_flag_spec='${wl}-E'
10046 ;;
10047
10048 hpux10*)
10049 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10050 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10051 else
10052 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10053 fi
10054 if test "$with_gnu_ld" = no; then
10055 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10056 hardcode_libdir_flag_spec_ld='+b $libdir'
10057 hardcode_libdir_separator=:
10058 hardcode_direct=yes
10059 hardcode_direct_absolute=yes
10060 export_dynamic_flag_spec='${wl}-E'
10061 # hardcode_minus_L: Not really in the search PATH,
10062 # but as the default location of the library.
10063 hardcode_minus_L=yes
10064 fi
10065 ;;
10066
10067 hpux11*)
10068 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10069 case $host_cpu in
10070 hppa*64*)
10071 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10072 ;;
10073 ia64*)
10074 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10075 ;;
10076 *)
10077 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10078 ;;
10079 esac
10080 else
10081 case $host_cpu in
10082 hppa*64*)
10083 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10084 ;;
10085 ia64*)
10086 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10087 ;;
10088 *)
10089
10090 # Older versions of the 11.00 compiler do not understand -b yet
10091 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10093 $as_echo_n "checking if $CC understands -b... " >&6; }
10094 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10095 $as_echo_n "(cached) " >&6
10096 else
10097 lt_cv_prog_compiler__b=no
10098 save_LDFLAGS="$LDFLAGS"
10099 LDFLAGS="$LDFLAGS -b"
10100 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10101 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10102 # The linker can only warn and ignore the option if not recognized
10103 # So say no if there are warnings
10104 if test -s conftest.err; then
10105 # Append any errors to the config.log.
10106 cat conftest.err 1>&5
10107 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10109 if diff conftest.exp conftest.er2 >/dev/null; then
10110 lt_cv_prog_compiler__b=yes
10111 fi
10112 else
10113 lt_cv_prog_compiler__b=yes
10114 fi
10115 fi
10116 $RM -r conftest*
10117 LDFLAGS="$save_LDFLAGS"
10118
10119 fi
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10121 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10122
10123 if test x"$lt_cv_prog_compiler__b" = xyes; then
10124 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10125 else
10126 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10127 fi
10128
10129 ;;
10130 esac
10131 fi
10132 if test "$with_gnu_ld" = no; then
10133 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10134 hardcode_libdir_separator=:
10135
10136 case $host_cpu in
10137 hppa*64*|ia64*)
10138 hardcode_direct=no
10139 hardcode_shlibpath_var=no
10140 ;;
10141 *)
10142 hardcode_direct=yes
10143 hardcode_direct_absolute=yes
10144 export_dynamic_flag_spec='${wl}-E'
10145
10146 # hardcode_minus_L: Not really in the search PATH,
10147 # but as the default location of the library.
10148 hardcode_minus_L=yes
10149 ;;
10150 esac
10151 fi
10152 ;;
10153
10154 irix5* | irix6* | nonstopux*)
10155 if test "$GCC" = yes; then
10156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10157 # Try to use the -exported_symbol ld option, if it does not
10158 # work, assume that -exports_file does not work either and
10159 # implicitly export all symbols.
10160 save_LDFLAGS="$LDFLAGS"
10161 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10162 if test x$gcc_no_link = xyes; then
10163 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10164 fi
10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h. */
10167 int foo(void) {}
10168 _ACEOF
10169 if ac_fn_c_try_link "$LINENO"; then :
10170 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10171
10172 fi
10173 rm -f core conftest.err conftest.$ac_objext \
10174 conftest$ac_exeext conftest.$ac_ext
10175 LDFLAGS="$save_LDFLAGS"
10176 else
10177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10178 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10179 fi
10180 archive_cmds_need_lc='no'
10181 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10182 hardcode_libdir_separator=:
10183 inherit_rpath=yes
10184 link_all_deplibs=yes
10185 ;;
10186
10187 netbsd*)
10188 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10189 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10190 else
10191 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10192 fi
10193 hardcode_libdir_flag_spec='-R$libdir'
10194 hardcode_direct=yes
10195 hardcode_shlibpath_var=no
10196 ;;
10197
10198 newsos6)
10199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10200 hardcode_direct=yes
10201 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10202 hardcode_libdir_separator=:
10203 hardcode_shlibpath_var=no
10204 ;;
10205
10206 *nto* | *qnx*)
10207 ;;
10208
10209 openbsd*)
10210 if test -f /usr/libexec/ld.so; then
10211 hardcode_direct=yes
10212 hardcode_shlibpath_var=no
10213 hardcode_direct_absolute=yes
10214 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10215 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10216 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10217 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10218 export_dynamic_flag_spec='${wl}-E'
10219 else
10220 case $host_os in
10221 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10222 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10223 hardcode_libdir_flag_spec='-R$libdir'
10224 ;;
10225 *)
10226 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10227 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10228 ;;
10229 esac
10230 fi
10231 else
10232 ld_shlibs=no
10233 fi
10234 ;;
10235
10236 os2*)
10237 hardcode_libdir_flag_spec='-L$libdir'
10238 hardcode_minus_L=yes
10239 allow_undefined_flag=unsupported
10240 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'
10241 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10242 ;;
10243
10244 osf3*)
10245 if test "$GCC" = yes; then
10246 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10247 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10248 else
10249 allow_undefined_flag=' -expect_unresolved \*'
10250 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10251 fi
10252 archive_cmds_need_lc='no'
10253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10254 hardcode_libdir_separator=:
10255 ;;
10256
10257 osf4* | osf5*) # as osf3* with the addition of -msym flag
10258 if test "$GCC" = yes; then
10259 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10260 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10261 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10262 else
10263 allow_undefined_flag=' -expect_unresolved \*'
10264 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10265 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~
10266 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10267
10268 # Both c and cxx compiler support -rpath directly
10269 hardcode_libdir_flag_spec='-rpath $libdir'
10270 fi
10271 archive_cmds_need_lc='no'
10272 hardcode_libdir_separator=:
10273 ;;
10274
10275 solaris*)
10276 no_undefined_flag=' -z defs'
10277 if test "$GCC" = yes; then
10278 wlarc='${wl}'
10279 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10280 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10281 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10282 else
10283 case `$CC -V 2>&1` in
10284 *"Compilers 5.0"*)
10285 wlarc=''
10286 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10287 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10288 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10289 ;;
10290 *)
10291 wlarc='${wl}'
10292 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10293 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10294 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10295 ;;
10296 esac
10297 fi
10298 hardcode_libdir_flag_spec='-R$libdir'
10299 hardcode_shlibpath_var=no
10300 case $host_os in
10301 solaris2.[0-5] | solaris2.[0-5].*) ;;
10302 *)
10303 # The compiler driver will combine and reorder linker options,
10304 # but understands `-z linker_flag'. GCC discards it without `$wl',
10305 # but is careful enough not to reorder.
10306 # Supported since Solaris 2.6 (maybe 2.5.1?)
10307 if test "$GCC" = yes; then
10308 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10309 else
10310 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10311 fi
10312 ;;
10313 esac
10314 link_all_deplibs=yes
10315 ;;
10316
10317 sunos4*)
10318 if test "x$host_vendor" = xsequent; then
10319 # Use $CC to link under sequent, because it throws in some extra .o
10320 # files that make .init and .fini sections work.
10321 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10322 else
10323 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10324 fi
10325 hardcode_libdir_flag_spec='-L$libdir'
10326 hardcode_direct=yes
10327 hardcode_minus_L=yes
10328 hardcode_shlibpath_var=no
10329 ;;
10330
10331 sysv4)
10332 case $host_vendor in
10333 sni)
10334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10335 hardcode_direct=yes # is this really true???
10336 ;;
10337 siemens)
10338 ## LD is ld it makes a PLAMLIB
10339 ## CC just makes a GrossModule.
10340 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10341 reload_cmds='$CC -r -o $output$reload_objs'
10342 hardcode_direct=no
10343 ;;
10344 motorola)
10345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10346 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10347 ;;
10348 esac
10349 runpath_var='LD_RUN_PATH'
10350 hardcode_shlibpath_var=no
10351 ;;
10352
10353 sysv4.3*)
10354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10355 hardcode_shlibpath_var=no
10356 export_dynamic_flag_spec='-Bexport'
10357 ;;
10358
10359 sysv4*MP*)
10360 if test -d /usr/nec; then
10361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10362 hardcode_shlibpath_var=no
10363 runpath_var=LD_RUN_PATH
10364 hardcode_runpath_var=yes
10365 ld_shlibs=yes
10366 fi
10367 ;;
10368
10369 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10370 no_undefined_flag='${wl}-z,text'
10371 archive_cmds_need_lc=no
10372 hardcode_shlibpath_var=no
10373 runpath_var='LD_RUN_PATH'
10374
10375 if test "$GCC" = yes; then
10376 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10377 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10378 else
10379 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10380 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10381 fi
10382 ;;
10383
10384 sysv5* | sco3.2v5* | sco5v6*)
10385 # Note: We can NOT use -z defs as we might desire, because we do not
10386 # link with -lc, and that would cause any symbols used from libc to
10387 # always be unresolved, which means just about no library would
10388 # ever link correctly. If we're not using GNU ld we use -z text
10389 # though, which does catch some bad symbols but isn't as heavy-handed
10390 # as -z defs.
10391 no_undefined_flag='${wl}-z,text'
10392 allow_undefined_flag='${wl}-z,nodefs'
10393 archive_cmds_need_lc=no
10394 hardcode_shlibpath_var=no
10395 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10396 hardcode_libdir_separator=':'
10397 link_all_deplibs=yes
10398 export_dynamic_flag_spec='${wl}-Bexport'
10399 runpath_var='LD_RUN_PATH'
10400
10401 if test "$GCC" = yes; then
10402 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10403 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10404 else
10405 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10406 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10407 fi
10408 ;;
10409
10410 uts4*)
10411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10412 hardcode_libdir_flag_spec='-L$libdir'
10413 hardcode_shlibpath_var=no
10414 ;;
10415
10416 *)
10417 ld_shlibs=no
10418 ;;
10419 esac
10420
10421 if test x$host_vendor = xsni; then
10422 case $host in
10423 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10424 export_dynamic_flag_spec='${wl}-Blargedynsym'
10425 ;;
10426 esac
10427 fi
10428 fi
10429
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10431 $as_echo "$ld_shlibs" >&6; }
10432 test "$ld_shlibs" = no && can_build_shared=no
10433
10434 with_gnu_ld=$with_gnu_ld
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450 #
10451 # Do we need to explicitly link libc?
10452 #
10453 case "x$archive_cmds_need_lc" in
10454 x|xyes)
10455 # Assume -lc should be added
10456 archive_cmds_need_lc=yes
10457
10458 if test "$enable_shared" = yes && test "$GCC" = yes; then
10459 case $archive_cmds in
10460 *'~'*)
10461 # FIXME: we may have to deal with multi-command sequences.
10462 ;;
10463 '$CC '*)
10464 # Test whether the compiler implicitly links with -lc since on some
10465 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10466 # to ld, don't add -lc before -lgcc.
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10468 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10469 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10470 $as_echo_n "(cached) " >&6
10471 else
10472 $RM conftest*
10473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10474
10475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10476 (eval $ac_compile) 2>&5
10477 ac_status=$?
10478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10479 test $ac_status = 0; } 2>conftest.err; then
10480 soname=conftest
10481 lib=conftest
10482 libobjs=conftest.$ac_objext
10483 deplibs=
10484 wl=$lt_prog_compiler_wl
10485 pic_flag=$lt_prog_compiler_pic
10486 compiler_flags=-v
10487 linker_flags=-v
10488 verstring=
10489 output_objdir=.
10490 libname=conftest
10491 lt_save_allow_undefined_flag=$allow_undefined_flag
10492 allow_undefined_flag=
10493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10494 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10495 ac_status=$?
10496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10497 test $ac_status = 0; }
10498 then
10499 lt_cv_archive_cmds_need_lc=no
10500 else
10501 lt_cv_archive_cmds_need_lc=yes
10502 fi
10503 allow_undefined_flag=$lt_save_allow_undefined_flag
10504 else
10505 cat conftest.err 1>&5
10506 fi
10507 $RM conftest*
10508
10509 fi
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10511 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10512 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10513 ;;
10514 esac
10515 fi
10516 ;;
10517 esac
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10676 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10677
10678 if test "$GCC" = yes; then
10679 case $host_os in
10680 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10681 *) lt_awk_arg="/^libraries:/" ;;
10682 esac
10683 case $host_os in
10684 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10685 *) lt_sed_strip_eq="s,=/,/,g" ;;
10686 esac
10687 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10688 case $lt_search_path_spec in
10689 *\;*)
10690 # if the path contains ";" then we assume it to be the separator
10691 # otherwise default to the standard path separator (i.e. ":") - it is
10692 # assumed that no part of a normal pathname contains ";" but that should
10693 # okay in the real world where ";" in dirpaths is itself problematic.
10694 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10695 ;;
10696 *)
10697 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10698 ;;
10699 esac
10700 # Ok, now we have the path, separated by spaces, we can step through it
10701 # and add multilib dir if necessary.
10702 lt_tmp_lt_search_path_spec=
10703 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10704 for lt_sys_path in $lt_search_path_spec; do
10705 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10706 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10707 else
10708 test -d "$lt_sys_path" && \
10709 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10710 fi
10711 done
10712 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10713 BEGIN {RS=" "; FS="/|\n";} {
10714 lt_foo="";
10715 lt_count=0;
10716 for (lt_i = NF; lt_i > 0; lt_i--) {
10717 if ($lt_i != "" && $lt_i != ".") {
10718 if ($lt_i == "..") {
10719 lt_count++;
10720 } else {
10721 if (lt_count == 0) {
10722 lt_foo="/" $lt_i lt_foo;
10723 } else {
10724 lt_count--;
10725 }
10726 }
10727 }
10728 }
10729 if (lt_foo != "") { lt_freq[lt_foo]++; }
10730 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10731 }'`
10732 # AWK program above erroneously prepends '/' to C:/dos/paths
10733 # for these hosts.
10734 case $host_os in
10735 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10736 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10737 esac
10738 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10739 else
10740 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10741 fi
10742 library_names_spec=
10743 libname_spec='lib$name'
10744 soname_spec=
10745 shrext_cmds=".so"
10746 postinstall_cmds=
10747 postuninstall_cmds=
10748 finish_cmds=
10749 finish_eval=
10750 shlibpath_var=
10751 shlibpath_overrides_runpath=unknown
10752 version_type=none
10753 dynamic_linker="$host_os ld.so"
10754 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10755 need_lib_prefix=unknown
10756 hardcode_into_libs=no
10757
10758 # when you set need_version to no, make sure it does not cause -set_version
10759 # flags to be left without arguments
10760 need_version=unknown
10761
10762 case $host_os in
10763 aix3*)
10764 version_type=linux
10765 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10766 shlibpath_var=LIBPATH
10767
10768 # AIX 3 has no versioning support, so we append a major version to the name.
10769 soname_spec='${libname}${release}${shared_ext}$major'
10770 ;;
10771
10772 aix[4-9]*)
10773 version_type=linux
10774 need_lib_prefix=no
10775 need_version=no
10776 hardcode_into_libs=yes
10777 if test "$host_cpu" = ia64; then
10778 # AIX 5 supports IA64
10779 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10780 shlibpath_var=LD_LIBRARY_PATH
10781 else
10782 # With GCC up to 2.95.x, collect2 would create an import file
10783 # for dependence libraries. The import file would start with
10784 # the line `#! .'. This would cause the generated library to
10785 # depend on `.', always an invalid library. This was fixed in
10786 # development snapshots of GCC prior to 3.0.
10787 case $host_os in
10788 aix4 | aix4.[01] | aix4.[01].*)
10789 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10790 echo ' yes '
10791 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10792 :
10793 else
10794 can_build_shared=no
10795 fi
10796 ;;
10797 esac
10798 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10799 # soname into executable. Probably we can add versioning support to
10800 # collect2, so additional links can be useful in future.
10801 if test "$aix_use_runtimelinking" = yes; then
10802 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10803 # instead of lib<name>.a to let people know that these are not
10804 # typical AIX shared libraries.
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10806 else
10807 # We preserve .a as extension for shared libraries through AIX4.2
10808 # and later when we are not doing run time linking.
10809 library_names_spec='${libname}${release}.a $libname.a'
10810 soname_spec='${libname}${release}${shared_ext}$major'
10811 fi
10812 shlibpath_var=LIBPATH
10813 fi
10814 ;;
10815
10816 amigaos*)
10817 case $host_cpu in
10818 powerpc)
10819 # Since July 2007 AmigaOS4 officially supports .so libraries.
10820 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10822 ;;
10823 m68k)
10824 library_names_spec='$libname.ixlibrary $libname.a'
10825 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10826 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10827 ;;
10828 esac
10829 ;;
10830
10831 beos*)
10832 library_names_spec='${libname}${shared_ext}'
10833 dynamic_linker="$host_os ld.so"
10834 shlibpath_var=LIBRARY_PATH
10835 ;;
10836
10837 bsdi[45]*)
10838 version_type=linux
10839 need_version=no
10840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10841 soname_spec='${libname}${release}${shared_ext}$major'
10842 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10843 shlibpath_var=LD_LIBRARY_PATH
10844 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10845 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10846 # the default ld.so.conf also contains /usr/contrib/lib and
10847 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10848 # libtool to hard-code these into programs
10849 ;;
10850
10851 cygwin* | mingw* | pw32* | cegcc*)
10852 version_type=windows
10853 shrext_cmds=".dll"
10854 need_version=no
10855 need_lib_prefix=no
10856
10857 case $GCC,$host_os in
10858 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10859 library_names_spec='$libname.dll.a'
10860 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10861 postinstall_cmds='base_file=`basename \${file}`~
10862 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10863 dldir=$destdir/`dirname \$dlpath`~
10864 test -d \$dldir || mkdir -p \$dldir~
10865 $install_prog $dir/$dlname \$dldir/$dlname~
10866 chmod a+x \$dldir/$dlname~
10867 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10868 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10869 fi'
10870 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10871 dlpath=$dir/\$dldll~
10872 $RM \$dlpath'
10873 shlibpath_overrides_runpath=yes
10874
10875 case $host_os in
10876 cygwin*)
10877 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10878 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10879
10880 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10881 ;;
10882 mingw* | cegcc*)
10883 # MinGW DLLs use traditional 'lib' prefix
10884 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10885 ;;
10886 pw32*)
10887 # pw32 DLLs use 'pw' prefix rather than 'lib'
10888 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10889 ;;
10890 esac
10891 ;;
10892
10893 *)
10894 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10895 ;;
10896 esac
10897 dynamic_linker='Win32 ld.exe'
10898 # FIXME: first we should search . and the directory the executable is in
10899 shlibpath_var=PATH
10900 ;;
10901
10902 darwin* | rhapsody*)
10903 dynamic_linker="$host_os dyld"
10904 version_type=darwin
10905 need_lib_prefix=no
10906 need_version=no
10907 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10908 soname_spec='${libname}${release}${major}$shared_ext'
10909 shlibpath_overrides_runpath=yes
10910 shlibpath_var=DYLD_LIBRARY_PATH
10911 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10912
10913 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10914 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10915 ;;
10916
10917 dgux*)
10918 version_type=linux
10919 need_lib_prefix=no
10920 need_version=no
10921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10922 soname_spec='${libname}${release}${shared_ext}$major'
10923 shlibpath_var=LD_LIBRARY_PATH
10924 ;;
10925
10926 freebsd1*)
10927 dynamic_linker=no
10928 ;;
10929
10930 freebsd* | dragonfly*)
10931 # DragonFly does not have aout. When/if they implement a new
10932 # versioning mechanism, adjust this.
10933 if test -x /usr/bin/objformat; then
10934 objformat=`/usr/bin/objformat`
10935 else
10936 case $host_os in
10937 freebsd[123]*) objformat=aout ;;
10938 *) objformat=elf ;;
10939 esac
10940 fi
10941 version_type=freebsd-$objformat
10942 case $version_type in
10943 freebsd-elf*)
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10945 need_version=no
10946 need_lib_prefix=no
10947 ;;
10948 freebsd-*)
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10950 need_version=yes
10951 ;;
10952 esac
10953 shlibpath_var=LD_LIBRARY_PATH
10954 case $host_os in
10955 freebsd2*)
10956 shlibpath_overrides_runpath=yes
10957 ;;
10958 freebsd3.[01]* | freebsdelf3.[01]*)
10959 shlibpath_overrides_runpath=yes
10960 hardcode_into_libs=yes
10961 ;;
10962 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10963 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10964 shlibpath_overrides_runpath=no
10965 hardcode_into_libs=yes
10966 ;;
10967 *) # from 4.6 on, and DragonFly
10968 shlibpath_overrides_runpath=yes
10969 hardcode_into_libs=yes
10970 ;;
10971 esac
10972 ;;
10973
10974 gnu*)
10975 version_type=linux
10976 need_lib_prefix=no
10977 need_version=no
10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10979 soname_spec='${libname}${release}${shared_ext}$major'
10980 shlibpath_var=LD_LIBRARY_PATH
10981 hardcode_into_libs=yes
10982 ;;
10983
10984 haiku*)
10985 version_type=linux
10986 need_lib_prefix=no
10987 need_version=no
10988 dynamic_linker="$host_os runtime_loader"
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10990 soname_spec='${libname}${release}${shared_ext}$major'
10991 shlibpath_var=LIBRARY_PATH
10992 shlibpath_overrides_runpath=yes
10993 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10994 hardcode_into_libs=yes
10995 ;;
10996
10997 hpux9* | hpux10* | hpux11*)
10998 # Give a soname corresponding to the major version so that dld.sl refuses to
10999 # link against other versions.
11000 version_type=sunos
11001 need_lib_prefix=no
11002 need_version=no
11003 case $host_cpu in
11004 ia64*)
11005 shrext_cmds='.so'
11006 hardcode_into_libs=yes
11007 dynamic_linker="$host_os dld.so"
11008 shlibpath_var=LD_LIBRARY_PATH
11009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11011 soname_spec='${libname}${release}${shared_ext}$major'
11012 if test "X$HPUX_IA64_MODE" = X32; then
11013 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11014 else
11015 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11016 fi
11017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11018 ;;
11019 hppa*64*)
11020 shrext_cmds='.sl'
11021 hardcode_into_libs=yes
11022 dynamic_linker="$host_os dld.sl"
11023 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11026 soname_spec='${libname}${release}${shared_ext}$major'
11027 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11029 ;;
11030 *)
11031 shrext_cmds='.sl'
11032 dynamic_linker="$host_os dld.sl"
11033 shlibpath_var=SHLIB_PATH
11034 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11036 soname_spec='${libname}${release}${shared_ext}$major'
11037 ;;
11038 esac
11039 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11040 postinstall_cmds='chmod 555 $lib'
11041 # or fails outright, so override atomically:
11042 install_override_mode=555
11043 ;;
11044
11045 interix[3-9]*)
11046 version_type=linux
11047 need_lib_prefix=no
11048 need_version=no
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11050 soname_spec='${libname}${release}${shared_ext}$major'
11051 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11052 shlibpath_var=LD_LIBRARY_PATH
11053 shlibpath_overrides_runpath=no
11054 hardcode_into_libs=yes
11055 ;;
11056
11057 irix5* | irix6* | nonstopux*)
11058 case $host_os in
11059 nonstopux*) version_type=nonstopux ;;
11060 *)
11061 if test "$lt_cv_prog_gnu_ld" = yes; then
11062 version_type=linux
11063 else
11064 version_type=irix
11065 fi ;;
11066 esac
11067 need_lib_prefix=no
11068 need_version=no
11069 soname_spec='${libname}${release}${shared_ext}$major'
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11071 case $host_os in
11072 irix5* | nonstopux*)
11073 libsuff= shlibsuff=
11074 ;;
11075 *)
11076 case $LD in # libtool.m4 will add one of these switches to LD
11077 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11078 libsuff= shlibsuff= libmagic=32-bit;;
11079 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11080 libsuff=32 shlibsuff=N32 libmagic=N32;;
11081 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11082 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11083 *) libsuff= shlibsuff= libmagic=never-match;;
11084 esac
11085 ;;
11086 esac
11087 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11088 shlibpath_overrides_runpath=no
11089 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11090 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11091 hardcode_into_libs=yes
11092 ;;
11093
11094 # No shared lib support for Linux oldld, aout, or coff.
11095 linux*oldld* | linux*aout* | linux*coff*)
11096 dynamic_linker=no
11097 ;;
11098
11099 # This must be Linux ELF.
11100 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11101 version_type=linux
11102 need_lib_prefix=no
11103 need_version=no
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105 soname_spec='${libname}${release}${shared_ext}$major'
11106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 shlibpath_overrides_runpath=no
11109
11110 # Some binutils ld are patched to set DT_RUNPATH
11111 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11112 $as_echo_n "(cached) " >&6
11113 else
11114 lt_cv_shlibpath_overrides_runpath=no
11115 save_LDFLAGS=$LDFLAGS
11116 save_libdir=$libdir
11117 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11118 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11119 if test x$gcc_no_link = xyes; then
11120 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11121 fi
11122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11123 /* end confdefs.h. */
11124
11125 int
11126 main ()
11127 {
11128
11129 ;
11130 return 0;
11131 }
11132 _ACEOF
11133 if ac_fn_c_try_link "$LINENO"; then :
11134 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11135 lt_cv_shlibpath_overrides_runpath=yes
11136 fi
11137 fi
11138 rm -f core conftest.err conftest.$ac_objext \
11139 conftest$ac_exeext conftest.$ac_ext
11140 LDFLAGS=$save_LDFLAGS
11141 libdir=$save_libdir
11142
11143 fi
11144
11145 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11146
11147 # This implies no fast_install, which is unacceptable.
11148 # Some rework will be needed to allow for fast_install
11149 # before this can be enabled.
11150 hardcode_into_libs=yes
11151
11152 # Append ld.so.conf contents to the search path
11153 if test -f /etc/ld.so.conf; then
11154 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11155 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11156 fi
11157
11158 # We used to test for /lib/ld.so.1 and disable shared libraries on
11159 # powerpc, because MkLinux only supported shared libraries with the
11160 # GNU dynamic linker. Since this was broken with cross compilers,
11161 # most powerpc-linux boxes support dynamic linking these days and
11162 # people can always --disable-shared, the test was removed, and we
11163 # assume the GNU/Linux dynamic linker is in use.
11164 dynamic_linker='GNU/Linux ld.so'
11165 ;;
11166
11167 netbsd*)
11168 version_type=sunos
11169 need_lib_prefix=no
11170 need_version=no
11171 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11174 dynamic_linker='NetBSD (a.out) ld.so'
11175 else
11176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11177 soname_spec='${libname}${release}${shared_ext}$major'
11178 dynamic_linker='NetBSD ld.elf_so'
11179 fi
11180 shlibpath_var=LD_LIBRARY_PATH
11181 shlibpath_overrides_runpath=yes
11182 hardcode_into_libs=yes
11183 ;;
11184
11185 newsos6)
11186 version_type=linux
11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188 shlibpath_var=LD_LIBRARY_PATH
11189 shlibpath_overrides_runpath=yes
11190 ;;
11191
11192 *nto* | *qnx*)
11193 version_type=qnx
11194 need_lib_prefix=no
11195 need_version=no
11196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11197 soname_spec='${libname}${release}${shared_ext}$major'
11198 shlibpath_var=LD_LIBRARY_PATH
11199 shlibpath_overrides_runpath=no
11200 hardcode_into_libs=yes
11201 dynamic_linker='ldqnx.so'
11202 ;;
11203
11204 openbsd*)
11205 version_type=sunos
11206 sys_lib_dlsearch_path_spec="/usr/lib"
11207 need_lib_prefix=no
11208 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11209 case $host_os in
11210 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11211 *) need_version=no ;;
11212 esac
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11215 shlibpath_var=LD_LIBRARY_PATH
11216 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11217 case $host_os in
11218 openbsd2.[89] | openbsd2.[89].*)
11219 shlibpath_overrides_runpath=no
11220 ;;
11221 *)
11222 shlibpath_overrides_runpath=yes
11223 ;;
11224 esac
11225 else
11226 shlibpath_overrides_runpath=yes
11227 fi
11228 ;;
11229
11230 os2*)
11231 libname_spec='$name'
11232 shrext_cmds=".dll"
11233 need_lib_prefix=no
11234 library_names_spec='$libname${shared_ext} $libname.a'
11235 dynamic_linker='OS/2 ld.exe'
11236 shlibpath_var=LIBPATH
11237 ;;
11238
11239 osf3* | osf4* | osf5*)
11240 version_type=osf
11241 need_lib_prefix=no
11242 need_version=no
11243 soname_spec='${libname}${release}${shared_ext}$major'
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11245 shlibpath_var=LD_LIBRARY_PATH
11246 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11247 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11248 ;;
11249
11250 rdos*)
11251 dynamic_linker=no
11252 ;;
11253
11254 solaris*)
11255 version_type=linux
11256 need_lib_prefix=no
11257 need_version=no
11258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11259 soname_spec='${libname}${release}${shared_ext}$major'
11260 shlibpath_var=LD_LIBRARY_PATH
11261 shlibpath_overrides_runpath=yes
11262 hardcode_into_libs=yes
11263 # ldd complains unless libraries are executable
11264 postinstall_cmds='chmod +x $lib'
11265 ;;
11266
11267 sunos4*)
11268 version_type=sunos
11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11270 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11271 shlibpath_var=LD_LIBRARY_PATH
11272 shlibpath_overrides_runpath=yes
11273 if test "$with_gnu_ld" = yes; then
11274 need_lib_prefix=no
11275 fi
11276 need_version=yes
11277 ;;
11278
11279 sysv4 | sysv4.3*)
11280 version_type=linux
11281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11282 soname_spec='${libname}${release}${shared_ext}$major'
11283 shlibpath_var=LD_LIBRARY_PATH
11284 case $host_vendor in
11285 sni)
11286 shlibpath_overrides_runpath=no
11287 need_lib_prefix=no
11288 runpath_var=LD_RUN_PATH
11289 ;;
11290 siemens)
11291 need_lib_prefix=no
11292 ;;
11293 motorola)
11294 need_lib_prefix=no
11295 need_version=no
11296 shlibpath_overrides_runpath=no
11297 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11298 ;;
11299 esac
11300 ;;
11301
11302 sysv4*MP*)
11303 if test -d /usr/nec ;then
11304 version_type=linux
11305 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11306 soname_spec='$libname${shared_ext}.$major'
11307 shlibpath_var=LD_LIBRARY_PATH
11308 fi
11309 ;;
11310
11311 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11312 version_type=freebsd-elf
11313 need_lib_prefix=no
11314 need_version=no
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11316 soname_spec='${libname}${release}${shared_ext}$major'
11317 shlibpath_var=LD_LIBRARY_PATH
11318 shlibpath_overrides_runpath=yes
11319 hardcode_into_libs=yes
11320 if test "$with_gnu_ld" = yes; then
11321 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11322 else
11323 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11324 case $host_os in
11325 sco3.2v5*)
11326 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11327 ;;
11328 esac
11329 fi
11330 sys_lib_dlsearch_path_spec='/usr/lib'
11331 ;;
11332
11333 tpf*)
11334 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11335 version_type=linux
11336 need_lib_prefix=no
11337 need_version=no
11338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11339 shlibpath_var=LD_LIBRARY_PATH
11340 shlibpath_overrides_runpath=no
11341 hardcode_into_libs=yes
11342 ;;
11343
11344 uts4*)
11345 version_type=linux
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347 soname_spec='${libname}${release}${shared_ext}$major'
11348 shlibpath_var=LD_LIBRARY_PATH
11349 ;;
11350
11351 *)
11352 dynamic_linker=no
11353 ;;
11354 esac
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11356 $as_echo "$dynamic_linker" >&6; }
11357 test "$dynamic_linker" = no && can_build_shared=no
11358
11359 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11360 if test "$GCC" = yes; then
11361 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11362 fi
11363
11364 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11365 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11366 fi
11367 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11368 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11369 fi
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11463 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11464 hardcode_action=
11465 if test -n "$hardcode_libdir_flag_spec" ||
11466 test -n "$runpath_var" ||
11467 test "X$hardcode_automatic" = "Xyes" ; then
11468
11469 # We can hardcode non-existent directories.
11470 if test "$hardcode_direct" != no &&
11471 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11472 # have to relink, otherwise we might link with an installed library
11473 # when we should be linking with a yet-to-be-installed one
11474 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11475 test "$hardcode_minus_L" != no; then
11476 # Linking always hardcodes the temporary library directory.
11477 hardcode_action=relink
11478 else
11479 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11480 hardcode_action=immediate
11481 fi
11482 else
11483 # We cannot hardcode anything, or else we can only hardcode existing
11484 # directories.
11485 hardcode_action=unsupported
11486 fi
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11488 $as_echo "$hardcode_action" >&6; }
11489
11490 if test "$hardcode_action" = relink ||
11491 test "$inherit_rpath" = yes; then
11492 # Fast installation is not supported
11493 enable_fast_install=no
11494 elif test "$shlibpath_overrides_runpath" = yes ||
11495 test "$enable_shared" = no; then
11496 # Fast installation is not necessary
11497 enable_fast_install=needless
11498 fi
11499
11500
11501
11502
11503
11504
11505 if test "x$enable_dlopen" != xyes; then
11506 enable_dlopen=unknown
11507 enable_dlopen_self=unknown
11508 enable_dlopen_self_static=unknown
11509 else
11510 lt_cv_dlopen=no
11511 lt_cv_dlopen_libs=
11512
11513 case $host_os in
11514 beos*)
11515 lt_cv_dlopen="load_add_on"
11516 lt_cv_dlopen_libs=
11517 lt_cv_dlopen_self=yes
11518 ;;
11519
11520 mingw* | pw32* | cegcc*)
11521 lt_cv_dlopen="LoadLibrary"
11522 lt_cv_dlopen_libs=
11523 ;;
11524
11525 cygwin*)
11526 lt_cv_dlopen="dlopen"
11527 lt_cv_dlopen_libs=
11528 ;;
11529
11530 darwin*)
11531 # if libdl is installed we need to link against it
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11533 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11534 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11535 $as_echo_n "(cached) " >&6
11536 else
11537 ac_check_lib_save_LIBS=$LIBS
11538 LIBS="-ldl $LIBS"
11539 if test x$gcc_no_link = xyes; then
11540 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11541 fi
11542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11543 /* end confdefs.h. */
11544
11545 /* Override any GCC internal prototype to avoid an error.
11546 Use char because int might match the return type of a GCC
11547 builtin and then its argument prototype would still apply. */
11548 #ifdef __cplusplus
11549 extern "C"
11550 #endif
11551 char dlopen ();
11552 int
11553 main ()
11554 {
11555 return dlopen ();
11556 ;
11557 return 0;
11558 }
11559 _ACEOF
11560 if ac_fn_c_try_link "$LINENO"; then :
11561 ac_cv_lib_dl_dlopen=yes
11562 else
11563 ac_cv_lib_dl_dlopen=no
11564 fi
11565 rm -f core conftest.err conftest.$ac_objext \
11566 conftest$ac_exeext conftest.$ac_ext
11567 LIBS=$ac_check_lib_save_LIBS
11568 fi
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11570 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11571 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11572 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11573 else
11574
11575 lt_cv_dlopen="dyld"
11576 lt_cv_dlopen_libs=
11577 lt_cv_dlopen_self=yes
11578
11579 fi
11580
11581 ;;
11582
11583 *)
11584 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11585 if test "x$ac_cv_func_shl_load" = x""yes; then :
11586 lt_cv_dlopen="shl_load"
11587 else
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11589 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11590 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11591 $as_echo_n "(cached) " >&6
11592 else
11593 ac_check_lib_save_LIBS=$LIBS
11594 LIBS="-ldld $LIBS"
11595 if test x$gcc_no_link = xyes; then
11596 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11597 fi
11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599 /* end confdefs.h. */
11600
11601 /* Override any GCC internal prototype to avoid an error.
11602 Use char because int might match the return type of a GCC
11603 builtin and then its argument prototype would still apply. */
11604 #ifdef __cplusplus
11605 extern "C"
11606 #endif
11607 char shl_load ();
11608 int
11609 main ()
11610 {
11611 return shl_load ();
11612 ;
11613 return 0;
11614 }
11615 _ACEOF
11616 if ac_fn_c_try_link "$LINENO"; then :
11617 ac_cv_lib_dld_shl_load=yes
11618 else
11619 ac_cv_lib_dld_shl_load=no
11620 fi
11621 rm -f core conftest.err conftest.$ac_objext \
11622 conftest$ac_exeext conftest.$ac_ext
11623 LIBS=$ac_check_lib_save_LIBS
11624 fi
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11626 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11627 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11628 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11629 else
11630 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11631 if test "x$ac_cv_func_dlopen" = x""yes; then :
11632 lt_cv_dlopen="dlopen"
11633 else
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11635 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11636 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11637 $as_echo_n "(cached) " >&6
11638 else
11639 ac_check_lib_save_LIBS=$LIBS
11640 LIBS="-ldl $LIBS"
11641 if test x$gcc_no_link = xyes; then
11642 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11643 fi
11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h. */
11646
11647 /* Override any GCC internal prototype to avoid an error.
11648 Use char because int might match the return type of a GCC
11649 builtin and then its argument prototype would still apply. */
11650 #ifdef __cplusplus
11651 extern "C"
11652 #endif
11653 char dlopen ();
11654 int
11655 main ()
11656 {
11657 return dlopen ();
11658 ;
11659 return 0;
11660 }
11661 _ACEOF
11662 if ac_fn_c_try_link "$LINENO"; then :
11663 ac_cv_lib_dl_dlopen=yes
11664 else
11665 ac_cv_lib_dl_dlopen=no
11666 fi
11667 rm -f core conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669 LIBS=$ac_check_lib_save_LIBS
11670 fi
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11672 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11673 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11674 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11675 else
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11677 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11678 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11679 $as_echo_n "(cached) " >&6
11680 else
11681 ac_check_lib_save_LIBS=$LIBS
11682 LIBS="-lsvld $LIBS"
11683 if test x$gcc_no_link = xyes; then
11684 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11685 fi
11686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11687 /* end confdefs.h. */
11688
11689 /* Override any GCC internal prototype to avoid an error.
11690 Use char because int might match the return type of a GCC
11691 builtin and then its argument prototype would still apply. */
11692 #ifdef __cplusplus
11693 extern "C"
11694 #endif
11695 char dlopen ();
11696 int
11697 main ()
11698 {
11699 return dlopen ();
11700 ;
11701 return 0;
11702 }
11703 _ACEOF
11704 if ac_fn_c_try_link "$LINENO"; then :
11705 ac_cv_lib_svld_dlopen=yes
11706 else
11707 ac_cv_lib_svld_dlopen=no
11708 fi
11709 rm -f core conftest.err conftest.$ac_objext \
11710 conftest$ac_exeext conftest.$ac_ext
11711 LIBS=$ac_check_lib_save_LIBS
11712 fi
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11714 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11715 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11716 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11717 else
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11719 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11720 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11721 $as_echo_n "(cached) " >&6
11722 else
11723 ac_check_lib_save_LIBS=$LIBS
11724 LIBS="-ldld $LIBS"
11725 if test x$gcc_no_link = xyes; then
11726 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11727 fi
11728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11729 /* end confdefs.h. */
11730
11731 /* Override any GCC internal prototype to avoid an error.
11732 Use char because int might match the return type of a GCC
11733 builtin and then its argument prototype would still apply. */
11734 #ifdef __cplusplus
11735 extern "C"
11736 #endif
11737 char dld_link ();
11738 int
11739 main ()
11740 {
11741 return dld_link ();
11742 ;
11743 return 0;
11744 }
11745 _ACEOF
11746 if ac_fn_c_try_link "$LINENO"; then :
11747 ac_cv_lib_dld_dld_link=yes
11748 else
11749 ac_cv_lib_dld_dld_link=no
11750 fi
11751 rm -f core conftest.err conftest.$ac_objext \
11752 conftest$ac_exeext conftest.$ac_ext
11753 LIBS=$ac_check_lib_save_LIBS
11754 fi
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11756 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11757 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11758 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11759 fi
11760
11761
11762 fi
11763
11764
11765 fi
11766
11767
11768 fi
11769
11770
11771 fi
11772
11773
11774 fi
11775
11776 ;;
11777 esac
11778
11779 if test "x$lt_cv_dlopen" != xno; then
11780 enable_dlopen=yes
11781 else
11782 enable_dlopen=no
11783 fi
11784
11785 case $lt_cv_dlopen in
11786 dlopen)
11787 save_CPPFLAGS="$CPPFLAGS"
11788 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11789
11790 save_LDFLAGS="$LDFLAGS"
11791 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11792
11793 save_LIBS="$LIBS"
11794 LIBS="$lt_cv_dlopen_libs $LIBS"
11795
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11797 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11798 if test "${lt_cv_dlopen_self+set}" = set; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801 if test "$cross_compiling" = yes; then :
11802 lt_cv_dlopen_self=cross
11803 else
11804 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11805 lt_status=$lt_dlunknown
11806 cat > conftest.$ac_ext <<_LT_EOF
11807 #line 11807 "configure"
11808 #include "confdefs.h"
11809
11810 #if HAVE_DLFCN_H
11811 #include <dlfcn.h>
11812 #endif
11813
11814 #include <stdio.h>
11815
11816 #ifdef RTLD_GLOBAL
11817 # define LT_DLGLOBAL RTLD_GLOBAL
11818 #else
11819 # ifdef DL_GLOBAL
11820 # define LT_DLGLOBAL DL_GLOBAL
11821 # else
11822 # define LT_DLGLOBAL 0
11823 # endif
11824 #endif
11825
11826 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11827 find out it does not work in some platform. */
11828 #ifndef LT_DLLAZY_OR_NOW
11829 # ifdef RTLD_LAZY
11830 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11831 # else
11832 # ifdef DL_LAZY
11833 # define LT_DLLAZY_OR_NOW DL_LAZY
11834 # else
11835 # ifdef RTLD_NOW
11836 # define LT_DLLAZY_OR_NOW RTLD_NOW
11837 # else
11838 # ifdef DL_NOW
11839 # define LT_DLLAZY_OR_NOW DL_NOW
11840 # else
11841 # define LT_DLLAZY_OR_NOW 0
11842 # endif
11843 # endif
11844 # endif
11845 # endif
11846 #endif
11847
11848 /* When -fvisbility=hidden is used, assume the code has been annotated
11849 correspondingly for the symbols needed. */
11850 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11851 void fnord () __attribute__((visibility("default")));
11852 #endif
11853
11854 void fnord () { int i=42; }
11855 int main ()
11856 {
11857 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11858 int status = $lt_dlunknown;
11859
11860 if (self)
11861 {
11862 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11863 else
11864 {
11865 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11866 else puts (dlerror ());
11867 }
11868 /* dlclose (self); */
11869 }
11870 else
11871 puts (dlerror ());
11872
11873 return status;
11874 }
11875 _LT_EOF
11876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11877 (eval $ac_link) 2>&5
11878 ac_status=$?
11879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11880 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11881 (./conftest; exit; ) >&5 2>/dev/null
11882 lt_status=$?
11883 case x$lt_status in
11884 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11885 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11886 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11887 esac
11888 else :
11889 # compilation failed
11890 lt_cv_dlopen_self=no
11891 fi
11892 fi
11893 rm -fr conftest*
11894
11895
11896 fi
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11898 $as_echo "$lt_cv_dlopen_self" >&6; }
11899
11900 if test "x$lt_cv_dlopen_self" = xyes; then
11901 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11903 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11904 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11905 $as_echo_n "(cached) " >&6
11906 else
11907 if test "$cross_compiling" = yes; then :
11908 lt_cv_dlopen_self_static=cross
11909 else
11910 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11911 lt_status=$lt_dlunknown
11912 cat > conftest.$ac_ext <<_LT_EOF
11913 #line 11913 "configure"
11914 #include "confdefs.h"
11915
11916 #if HAVE_DLFCN_H
11917 #include <dlfcn.h>
11918 #endif
11919
11920 #include <stdio.h>
11921
11922 #ifdef RTLD_GLOBAL
11923 # define LT_DLGLOBAL RTLD_GLOBAL
11924 #else
11925 # ifdef DL_GLOBAL
11926 # define LT_DLGLOBAL DL_GLOBAL
11927 # else
11928 # define LT_DLGLOBAL 0
11929 # endif
11930 #endif
11931
11932 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11933 find out it does not work in some platform. */
11934 #ifndef LT_DLLAZY_OR_NOW
11935 # ifdef RTLD_LAZY
11936 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11937 # else
11938 # ifdef DL_LAZY
11939 # define LT_DLLAZY_OR_NOW DL_LAZY
11940 # else
11941 # ifdef RTLD_NOW
11942 # define LT_DLLAZY_OR_NOW RTLD_NOW
11943 # else
11944 # ifdef DL_NOW
11945 # define LT_DLLAZY_OR_NOW DL_NOW
11946 # else
11947 # define LT_DLLAZY_OR_NOW 0
11948 # endif
11949 # endif
11950 # endif
11951 # endif
11952 #endif
11953
11954 /* When -fvisbility=hidden is used, assume the code has been annotated
11955 correspondingly for the symbols needed. */
11956 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11957 void fnord () __attribute__((visibility("default")));
11958 #endif
11959
11960 void fnord () { int i=42; }
11961 int main ()
11962 {
11963 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11964 int status = $lt_dlunknown;
11965
11966 if (self)
11967 {
11968 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11969 else
11970 {
11971 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11972 else puts (dlerror ());
11973 }
11974 /* dlclose (self); */
11975 }
11976 else
11977 puts (dlerror ());
11978
11979 return status;
11980 }
11981 _LT_EOF
11982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11983 (eval $ac_link) 2>&5
11984 ac_status=$?
11985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11986 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11987 (./conftest; exit; ) >&5 2>/dev/null
11988 lt_status=$?
11989 case x$lt_status in
11990 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11991 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11992 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11993 esac
11994 else :
11995 # compilation failed
11996 lt_cv_dlopen_self_static=no
11997 fi
11998 fi
11999 rm -fr conftest*
12000
12001
12002 fi
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12004 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12005 fi
12006
12007 CPPFLAGS="$save_CPPFLAGS"
12008 LDFLAGS="$save_LDFLAGS"
12009 LIBS="$save_LIBS"
12010 ;;
12011 esac
12012
12013 case $lt_cv_dlopen_self in
12014 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12015 *) enable_dlopen_self=unknown ;;
12016 esac
12017
12018 case $lt_cv_dlopen_self_static in
12019 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12020 *) enable_dlopen_self_static=unknown ;;
12021 esac
12022 fi
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040 striplib=
12041 old_striplib=
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12043 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12044 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12045 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12046 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12048 $as_echo "yes" >&6; }
12049 else
12050 # FIXME - insert some real tests, host_os isn't really good enough
12051 case $host_os in
12052 darwin*)
12053 if test -n "$STRIP" ; then
12054 striplib="$STRIP -x"
12055 old_striplib="$STRIP -S"
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12057 $as_echo "yes" >&6; }
12058 else
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060 $as_echo "no" >&6; }
12061 fi
12062 ;;
12063 *)
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065 $as_echo "no" >&6; }
12066 ;;
12067 esac
12068 fi
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081 # Report which library types will actually be built
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12083 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12085 $as_echo "$can_build_shared" >&6; }
12086
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12088 $as_echo_n "checking whether to build shared libraries... " >&6; }
12089 test "$can_build_shared" = "no" && enable_shared=no
12090
12091 # On AIX, shared libraries and static libraries use the same namespace, and
12092 # are all built from PIC.
12093 case $host_os in
12094 aix3*)
12095 test "$enable_shared" = yes && enable_static=no
12096 if test -n "$RANLIB"; then
12097 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12098 postinstall_cmds='$RANLIB $lib'
12099 fi
12100 ;;
12101
12102 aix[4-9]*)
12103 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12104 test "$enable_shared" = yes && enable_static=no
12105 fi
12106 ;;
12107 esac
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12109 $as_echo "$enable_shared" >&6; }
12110
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12112 $as_echo_n "checking whether to build static libraries... " >&6; }
12113 # Make sure either enable_shared or enable_static is yes.
12114 test "$enable_shared" = yes || enable_static=yes
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12116 $as_echo "$enable_static" >&6; }
12117
12118
12119
12120
12121 fi
12122 ac_ext=c
12123 ac_cpp='$CPP $CPPFLAGS'
12124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12127
12128 CC="$lt_save_CC"
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142 ac_config_commands="$ac_config_commands libtool"
12143
12144
12145
12146
12147 # Only expand once:
12148
12149
12150 for ac_prog in gawk mawk nawk awk
12151 do
12152 # Extract the first word of "$ac_prog", so it can be a program name with args.
12153 set dummy $ac_prog; ac_word=$2
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12155 $as_echo_n "checking for $ac_word... " >&6; }
12156 if test "${ac_cv_prog_AWK+set}" = set; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 if test -n "$AWK"; then
12160 ac_cv_prog_AWK="$AWK" # Let the user override the test.
12161 else
12162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12163 for as_dir in $PATH
12164 do
12165 IFS=$as_save_IFS
12166 test -z "$as_dir" && as_dir=.
12167 for ac_exec_ext in '' $ac_executable_extensions; do
12168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12169 ac_cv_prog_AWK="$ac_prog"
12170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12171 break 2
12172 fi
12173 done
12174 done
12175 IFS=$as_save_IFS
12176
12177 fi
12178 fi
12179 AWK=$ac_cv_prog_AWK
12180 if test -n "$AWK"; then
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12182 $as_echo "$AWK" >&6; }
12183 else
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185 $as_echo "no" >&6; }
12186 fi
12187
12188
12189 test -n "$AWK" && break
12190 done
12191
12192 ac_ext=c
12193 ac_cpp='$CPP $CPPFLAGS'
12194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12197 if test -n "$ac_tool_prefix"; then
12198 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12199 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12201 $as_echo_n "checking for $ac_word... " >&6; }
12202 if test "${ac_cv_prog_CC+set}" = set; then :
12203 $as_echo_n "(cached) " >&6
12204 else
12205 if test -n "$CC"; then
12206 ac_cv_prog_CC="$CC" # Let the user override the test.
12207 else
12208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12209 for as_dir in $PATH
12210 do
12211 IFS=$as_save_IFS
12212 test -z "$as_dir" && as_dir=.
12213 for ac_exec_ext in '' $ac_executable_extensions; do
12214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12215 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12217 break 2
12218 fi
12219 done
12220 done
12221 IFS=$as_save_IFS
12222
12223 fi
12224 fi
12225 CC=$ac_cv_prog_CC
12226 if test -n "$CC"; then
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12228 $as_echo "$CC" >&6; }
12229 else
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12231 $as_echo "no" >&6; }
12232 fi
12233
12234
12235 fi
12236 if test -z "$ac_cv_prog_CC"; then
12237 ac_ct_CC=$CC
12238 # Extract the first word of "gcc", so it can be a program name with args.
12239 set dummy gcc; ac_word=$2
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12241 $as_echo_n "checking for $ac_word... " >&6; }
12242 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12243 $as_echo_n "(cached) " >&6
12244 else
12245 if test -n "$ac_ct_CC"; then
12246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12247 else
12248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249 for as_dir in $PATH
12250 do
12251 IFS=$as_save_IFS
12252 test -z "$as_dir" && as_dir=.
12253 for ac_exec_ext in '' $ac_executable_extensions; do
12254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12255 ac_cv_prog_ac_ct_CC="gcc"
12256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12257 break 2
12258 fi
12259 done
12260 done
12261 IFS=$as_save_IFS
12262
12263 fi
12264 fi
12265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12266 if test -n "$ac_ct_CC"; then
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12268 $as_echo "$ac_ct_CC" >&6; }
12269 else
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271 $as_echo "no" >&6; }
12272 fi
12273
12274 if test "x$ac_ct_CC" = x; then
12275 CC=""
12276 else
12277 case $cross_compiling:$ac_tool_warned in
12278 yes:)
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12281 ac_tool_warned=yes ;;
12282 esac
12283 CC=$ac_ct_CC
12284 fi
12285 else
12286 CC="$ac_cv_prog_CC"
12287 fi
12288
12289 if test -z "$CC"; then
12290 if test -n "$ac_tool_prefix"; then
12291 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12292 set dummy ${ac_tool_prefix}cc; ac_word=$2
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12294 $as_echo_n "checking for $ac_word... " >&6; }
12295 if test "${ac_cv_prog_CC+set}" = set; then :
12296 $as_echo_n "(cached) " >&6
12297 else
12298 if test -n "$CC"; then
12299 ac_cv_prog_CC="$CC" # Let the user override the test.
12300 else
12301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302 for as_dir in $PATH
12303 do
12304 IFS=$as_save_IFS
12305 test -z "$as_dir" && as_dir=.
12306 for ac_exec_ext in '' $ac_executable_extensions; do
12307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12308 ac_cv_prog_CC="${ac_tool_prefix}cc"
12309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12310 break 2
12311 fi
12312 done
12313 done
12314 IFS=$as_save_IFS
12315
12316 fi
12317 fi
12318 CC=$ac_cv_prog_CC
12319 if test -n "$CC"; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12321 $as_echo "$CC" >&6; }
12322 else
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12325 fi
12326
12327
12328 fi
12329 fi
12330 if test -z "$CC"; then
12331 # Extract the first word of "cc", so it can be a program name with args.
12332 set dummy cc; ac_word=$2
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12334 $as_echo_n "checking for $ac_word... " >&6; }
12335 if test "${ac_cv_prog_CC+set}" = set; then :
12336 $as_echo_n "(cached) " >&6
12337 else
12338 if test -n "$CC"; then
12339 ac_cv_prog_CC="$CC" # Let the user override the test.
12340 else
12341 ac_prog_rejected=no
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $PATH
12344 do
12345 IFS=$as_save_IFS
12346 test -z "$as_dir" && as_dir=.
12347 for ac_exec_ext in '' $ac_executable_extensions; do
12348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12349 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12350 ac_prog_rejected=yes
12351 continue
12352 fi
12353 ac_cv_prog_CC="cc"
12354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12355 break 2
12356 fi
12357 done
12358 done
12359 IFS=$as_save_IFS
12360
12361 if test $ac_prog_rejected = yes; then
12362 # We found a bogon in the path, so make sure we never use it.
12363 set dummy $ac_cv_prog_CC
12364 shift
12365 if test $# != 0; then
12366 # We chose a different compiler from the bogus one.
12367 # However, it has the same basename, so the bogon will be chosen
12368 # first if we set CC to just the basename; use the full file name.
12369 shift
12370 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12371 fi
12372 fi
12373 fi
12374 fi
12375 CC=$ac_cv_prog_CC
12376 if test -n "$CC"; then
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12378 $as_echo "$CC" >&6; }
12379 else
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381 $as_echo "no" >&6; }
12382 fi
12383
12384
12385 fi
12386 if test -z "$CC"; then
12387 if test -n "$ac_tool_prefix"; then
12388 for ac_prog in cl.exe
12389 do
12390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12393 $as_echo_n "checking for $ac_word... " >&6; }
12394 if test "${ac_cv_prog_CC+set}" = set; then :
12395 $as_echo_n "(cached) " >&6
12396 else
12397 if test -n "$CC"; then
12398 ac_cv_prog_CC="$CC" # Let the user override the test.
12399 else
12400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401 for as_dir in $PATH
12402 do
12403 IFS=$as_save_IFS
12404 test -z "$as_dir" && as_dir=.
12405 for ac_exec_ext in '' $ac_executable_extensions; do
12406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12407 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12409 break 2
12410 fi
12411 done
12412 done
12413 IFS=$as_save_IFS
12414
12415 fi
12416 fi
12417 CC=$ac_cv_prog_CC
12418 if test -n "$CC"; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12420 $as_echo "$CC" >&6; }
12421 else
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12424 fi
12425
12426
12427 test -n "$CC" && break
12428 done
12429 fi
12430 if test -z "$CC"; then
12431 ac_ct_CC=$CC
12432 for ac_prog in cl.exe
12433 do
12434 # Extract the first word of "$ac_prog", so it can be a program name with args.
12435 set dummy $ac_prog; ac_word=$2
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12437 $as_echo_n "checking for $ac_word... " >&6; }
12438 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12439 $as_echo_n "(cached) " >&6
12440 else
12441 if test -n "$ac_ct_CC"; then
12442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12443 else
12444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445 for as_dir in $PATH
12446 do
12447 IFS=$as_save_IFS
12448 test -z "$as_dir" && as_dir=.
12449 for ac_exec_ext in '' $ac_executable_extensions; do
12450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12451 ac_cv_prog_ac_ct_CC="$ac_prog"
12452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12453 break 2
12454 fi
12455 done
12456 done
12457 IFS=$as_save_IFS
12458
12459 fi
12460 fi
12461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12462 if test -n "$ac_ct_CC"; then
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12464 $as_echo "$ac_ct_CC" >&6; }
12465 else
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467 $as_echo "no" >&6; }
12468 fi
12469
12470
12471 test -n "$ac_ct_CC" && break
12472 done
12473
12474 if test "x$ac_ct_CC" = x; then
12475 CC=""
12476 else
12477 case $cross_compiling:$ac_tool_warned in
12478 yes:)
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12481 ac_tool_warned=yes ;;
12482 esac
12483 CC=$ac_ct_CC
12484 fi
12485 fi
12486
12487 fi
12488
12489
12490 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12492 as_fn_error "no acceptable C compiler found in \$PATH
12493 See \`config.log' for more details." "$LINENO" 5; }
12494
12495 # Provide some information about the compiler.
12496 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12497 set X $ac_compile
12498 ac_compiler=$2
12499 for ac_option in --version -v -V -qversion; do
12500 { { ac_try="$ac_compiler $ac_option >&5"
12501 case "(($ac_try" in
12502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503 *) ac_try_echo=$ac_try;;
12504 esac
12505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12506 $as_echo "$ac_try_echo"; } >&5
12507 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12508 ac_status=$?
12509 if test -s conftest.err; then
12510 sed '10a\
12511 ... rest of stderr output deleted ...
12512 10q' conftest.err >conftest.er1
12513 cat conftest.er1 >&5
12514 rm -f conftest.er1 conftest.err
12515 fi
12516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12517 test $ac_status = 0; }
12518 done
12519
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12521 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12522 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
12523 $as_echo_n "(cached) " >&6
12524 else
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12527
12528 int
12529 main ()
12530 {
12531 #ifndef __GNUC__
12532 choke me
12533 #endif
12534
12535 ;
12536 return 0;
12537 }
12538 _ACEOF
12539 if ac_fn_c_try_compile "$LINENO"; then :
12540 ac_compiler_gnu=yes
12541 else
12542 ac_compiler_gnu=no
12543 fi
12544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12545 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12546
12547 fi
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12549 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12550 if test $ac_compiler_gnu = yes; then
12551 GCC=yes
12552 else
12553 GCC=
12554 fi
12555 ac_test_CFLAGS=${CFLAGS+set}
12556 ac_save_CFLAGS=$CFLAGS
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12558 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12559 if test "${ac_cv_prog_cc_g+set}" = set; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 ac_save_c_werror_flag=$ac_c_werror_flag
12563 ac_c_werror_flag=yes
12564 ac_cv_prog_cc_g=no
12565 CFLAGS="-g"
12566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h. */
12568
12569 int
12570 main ()
12571 {
12572
12573 ;
12574 return 0;
12575 }
12576 _ACEOF
12577 if ac_fn_c_try_compile "$LINENO"; then :
12578 ac_cv_prog_cc_g=yes
12579 else
12580 CFLAGS=""
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12583
12584 int
12585 main ()
12586 {
12587
12588 ;
12589 return 0;
12590 }
12591 _ACEOF
12592 if ac_fn_c_try_compile "$LINENO"; then :
12593
12594 else
12595 ac_c_werror_flag=$ac_save_c_werror_flag
12596 CFLAGS="-g"
12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12599
12600 int
12601 main ()
12602 {
12603
12604 ;
12605 return 0;
12606 }
12607 _ACEOF
12608 if ac_fn_c_try_compile "$LINENO"; then :
12609 ac_cv_prog_cc_g=yes
12610 fi
12611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12612 fi
12613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12614 fi
12615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12616 ac_c_werror_flag=$ac_save_c_werror_flag
12617 fi
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12619 $as_echo "$ac_cv_prog_cc_g" >&6; }
12620 if test "$ac_test_CFLAGS" = set; then
12621 CFLAGS=$ac_save_CFLAGS
12622 elif test $ac_cv_prog_cc_g = yes; then
12623 if test "$GCC" = yes; then
12624 CFLAGS="-g -O2"
12625 else
12626 CFLAGS="-g"
12627 fi
12628 else
12629 if test "$GCC" = yes; then
12630 CFLAGS="-O2"
12631 else
12632 CFLAGS=
12633 fi
12634 fi
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12636 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12637 if test "${ac_cv_prog_cc_c89+set}" = set; then :
12638 $as_echo_n "(cached) " >&6
12639 else
12640 ac_cv_prog_cc_c89=no
12641 ac_save_CC=$CC
12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h. */
12644 #include <stdarg.h>
12645 #include <stdio.h>
12646 #include <sys/types.h>
12647 #include <sys/stat.h>
12648 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12649 struct buf { int x; };
12650 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12651 static char *e (p, i)
12652 char **p;
12653 int i;
12654 {
12655 return p[i];
12656 }
12657 static char *f (char * (*g) (char **, int), char **p, ...)
12658 {
12659 char *s;
12660 va_list v;
12661 va_start (v,p);
12662 s = g (p, va_arg (v,int));
12663 va_end (v);
12664 return s;
12665 }
12666
12667 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12668 function prototypes and stuff, but not '\xHH' hex character constants.
12669 These don't provoke an error unfortunately, instead are silently treated
12670 as 'x'. The following induces an error, until -std is added to get
12671 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12672 array size at least. It's necessary to write '\x00'==0 to get something
12673 that's true only with -std. */
12674 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12675
12676 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12677 inside strings and character constants. */
12678 #define FOO(x) 'x'
12679 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12680
12681 int test (int i, double x);
12682 struct s1 {int (*f) (int a);};
12683 struct s2 {int (*f) (double a);};
12684 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12685 int argc;
12686 char **argv;
12687 int
12688 main ()
12689 {
12690 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12691 ;
12692 return 0;
12693 }
12694 _ACEOF
12695 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12696 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12697 do
12698 CC="$ac_save_CC $ac_arg"
12699 if ac_fn_c_try_compile "$LINENO"; then :
12700 ac_cv_prog_cc_c89=$ac_arg
12701 fi
12702 rm -f core conftest.err conftest.$ac_objext
12703 test "x$ac_cv_prog_cc_c89" != "xno" && break
12704 done
12705 rm -f conftest.$ac_ext
12706 CC=$ac_save_CC
12707
12708 fi
12709 # AC_CACHE_VAL
12710 case "x$ac_cv_prog_cc_c89" in
12711 x)
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12713 $as_echo "none needed" >&6; } ;;
12714 xno)
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12716 $as_echo "unsupported" >&6; } ;;
12717 *)
12718 CC="$CC $ac_cv_prog_cc_c89"
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12720 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12721 esac
12722 if test "x$ac_cv_prog_cc_c89" != xno; then :
12723
12724 fi
12725
12726 ac_ext=c
12727 ac_cpp='$CPP $CPPFLAGS'
12728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12731
12732 depcc="$CC" am_compiler_list=
12733
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12735 $as_echo_n "checking dependency style of $depcc... " >&6; }
12736 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
12737 $as_echo_n "(cached) " >&6
12738 else
12739 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12740 # We make a subdir and do the tests there. Otherwise we can end up
12741 # making bogus files that we don't know about and never remove. For
12742 # instance it was reported that on HP-UX the gcc test will end up
12743 # making a dummy file named `D' -- because `-MD' means `put the output
12744 # in D'.
12745 mkdir conftest.dir
12746 # Copy depcomp to subdir because otherwise we won't find it if we're
12747 # using a relative directory.
12748 cp "$am_depcomp" conftest.dir
12749 cd conftest.dir
12750 # We will build objects and dependencies in a subdirectory because
12751 # it helps to detect inapplicable dependency modes. For instance
12752 # both Tru64's cc and ICC support -MD to output dependencies as a
12753 # side effect of compilation, but ICC will put the dependencies in
12754 # the current directory while Tru64 will put them in the object
12755 # directory.
12756 mkdir sub
12757
12758 am_cv_CC_dependencies_compiler_type=none
12759 if test "$am_compiler_list" = ""; then
12760 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12761 fi
12762 am__universal=false
12763 case " $depcc " in #(
12764 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12765 esac
12766
12767 for depmode in $am_compiler_list; do
12768 # Setup a source with many dependencies, because some compilers
12769 # like to wrap large dependency lists on column 80 (with \), and
12770 # we should not choose a depcomp mode which is confused by this.
12771 #
12772 # We need to recreate these files for each test, as the compiler may
12773 # overwrite some of them when testing with obscure command lines.
12774 # This happens at least with the AIX C compiler.
12775 : > sub/conftest.c
12776 for i in 1 2 3 4 5 6; do
12777 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12778 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12779 # Solaris 8's {/usr,}/bin/sh.
12780 touch sub/conftst$i.h
12781 done
12782 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12783
12784 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12785 # mode. It turns out that the SunPro C++ compiler does not properly
12786 # handle `-M -o', and we need to detect this. Also, some Intel
12787 # versions had trouble with output in subdirs
12788 am__obj=sub/conftest.${OBJEXT-o}
12789 am__minus_obj="-o $am__obj"
12790 case $depmode in
12791 gcc)
12792 # This depmode causes a compiler race in universal mode.
12793 test "$am__universal" = false || continue
12794 ;;
12795 nosideeffect)
12796 # after this tag, mechanisms are not by side-effect, so they'll
12797 # only be used when explicitly requested
12798 if test "x$enable_dependency_tracking" = xyes; then
12799 continue
12800 else
12801 break
12802 fi
12803 ;;
12804 msvisualcpp | msvcmsys)
12805 # This compiler won't grok `-c -o', but also, the minuso test has
12806 # not run yet. These depmodes are late enough in the game, and
12807 # so weak that their functioning should not be impacted.
12808 am__obj=conftest.${OBJEXT-o}
12809 am__minus_obj=
12810 ;;
12811 none) break ;;
12812 esac
12813 if depmode=$depmode \
12814 source=sub/conftest.c object=$am__obj \
12815 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12816 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12817 >/dev/null 2>conftest.err &&
12818 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12819 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12820 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12821 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12822 # icc doesn't choke on unknown options, it will just issue warnings
12823 # or remarks (even with -Werror). So we grep stderr for any message
12824 # that says an option was ignored or not supported.
12825 # When given -MP, icc 7.0 and 7.1 complain thusly:
12826 # icc: Command line warning: ignoring option '-M'; no argument required
12827 # The diagnosis changed in icc 8.0:
12828 # icc: Command line remark: option '-MP' not supported
12829 if (grep 'ignoring option' conftest.err ||
12830 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12831 am_cv_CC_dependencies_compiler_type=$depmode
12832 break
12833 fi
12834 fi
12835 done
12836
12837 cd ..
12838 rm -rf conftest.dir
12839 else
12840 am_cv_CC_dependencies_compiler_type=none
12841 fi
12842
12843 fi
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12845 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12846 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12847
12848 if
12849 test "x$enable_dependency_tracking" != xno \
12850 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12851 am__fastdepCC_TRUE=
12852 am__fastdepCC_FALSE='#'
12853 else
12854 am__fastdepCC_TRUE='#'
12855 am__fastdepCC_FALSE=
12856 fi
12857
12858
12859 if test "x$CC" != xcc; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12861 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12862 else
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12864 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12865 fi
12866 set dummy $CC; ac_cc=`$as_echo "$2" |
12867 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12868 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
12869 $as_echo_n "(cached) " >&6
12870 else
12871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12872 /* end confdefs.h. */
12873
12874 int
12875 main ()
12876 {
12877
12878 ;
12879 return 0;
12880 }
12881 _ACEOF
12882 # Make sure it works both with $CC and with simple cc.
12883 # We do the test twice because some compilers refuse to overwrite an
12884 # existing .o file with -o, though they will create one.
12885 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12886 rm -f conftest2.*
12887 if { { case "(($ac_try" in
12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12890 esac
12891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12892 $as_echo "$ac_try_echo"; } >&5
12893 (eval "$ac_try") 2>&5
12894 ac_status=$?
12895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12896 test $ac_status = 0; } &&
12897 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12900 esac
12901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12902 $as_echo "$ac_try_echo"; } >&5
12903 (eval "$ac_try") 2>&5
12904 ac_status=$?
12905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12906 test $ac_status = 0; };
12907 then
12908 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12909 if test "x$CC" != xcc; then
12910 # Test first that cc exists at all.
12911 if { ac_try='cc -c conftest.$ac_ext >&5'
12912 { { case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12915 esac
12916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12917 $as_echo "$ac_try_echo"; } >&5
12918 (eval "$ac_try") 2>&5
12919 ac_status=$?
12920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12921 test $ac_status = 0; }; }; then
12922 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12923 rm -f conftest2.*
12924 if { { case "(($ac_try" in
12925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12926 *) ac_try_echo=$ac_try;;
12927 esac
12928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12929 $as_echo "$ac_try_echo"; } >&5
12930 (eval "$ac_try") 2>&5
12931 ac_status=$?
12932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12933 test $ac_status = 0; } &&
12934 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12936 *) ac_try_echo=$ac_try;;
12937 esac
12938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12939 $as_echo "$ac_try_echo"; } >&5
12940 (eval "$ac_try") 2>&5
12941 ac_status=$?
12942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12943 test $ac_status = 0; };
12944 then
12945 # cc works too.
12946 :
12947 else
12948 # cc exists but doesn't like -o.
12949 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12950 fi
12951 fi
12952 fi
12953 else
12954 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12955 fi
12956 rm -f core conftest*
12957
12958 fi
12959 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12961 $as_echo "yes" >&6; }
12962 else
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12964 $as_echo "no" >&6; }
12965
12966 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12967
12968 fi
12969
12970 # FIXME: we rely on the cache variable name because
12971 # there is no other way.
12972 set dummy $CC
12973 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12974 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12975 if test "$am_t" != yes; then
12976 # Losing compiler, so override with the script.
12977 # FIXME: It is wrong to rewrite CC.
12978 # But if we don't then we get into trouble of one sort or another.
12979 # A longer-term fix would be to have automake use am__CC in this case,
12980 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12981 CC="$am_aux_dir/compile $CC"
12982 fi
12983
12984
12985 ac_ext=c
12986 ac_cpp='$CPP $CPPFLAGS'
12987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12991 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12992 # On Suns, sometimes $CPP names a directory.
12993 if test -n "$CPP" && test -d "$CPP"; then
12994 CPP=
12995 fi
12996 if test -z "$CPP"; then
12997 if test "${ac_cv_prog_CPP+set}" = set; then :
12998 $as_echo_n "(cached) " >&6
12999 else
13000 # Double quotes because CPP needs to be expanded
13001 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13002 do
13003 ac_preproc_ok=false
13004 for ac_c_preproc_warn_flag in '' yes
13005 do
13006 # Use a header file that comes with gcc, so configuring glibc
13007 # with a fresh cross-compiler works.
13008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13009 # <limits.h> exists even on freestanding compilers.
13010 # On the NeXT, cc -E runs the code through the compiler's parser,
13011 # not just through cpp. "Syntax error" is here to catch this case.
13012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h. */
13014 #ifdef __STDC__
13015 # include <limits.h>
13016 #else
13017 # include <assert.h>
13018 #endif
13019 Syntax error
13020 _ACEOF
13021 if ac_fn_c_try_cpp "$LINENO"; then :
13022
13023 else
13024 # Broken: fails on valid input.
13025 continue
13026 fi
13027 rm -f conftest.err conftest.$ac_ext
13028
13029 # OK, works on sane cases. Now check whether nonexistent headers
13030 # can be detected and how.
13031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032 /* end confdefs.h. */
13033 #include <ac_nonexistent.h>
13034 _ACEOF
13035 if ac_fn_c_try_cpp "$LINENO"; then :
13036 # Broken: success on invalid input.
13037 continue
13038 else
13039 # Passes both tests.
13040 ac_preproc_ok=:
13041 break
13042 fi
13043 rm -f conftest.err conftest.$ac_ext
13044
13045 done
13046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13047 rm -f conftest.err conftest.$ac_ext
13048 if $ac_preproc_ok; then :
13049 break
13050 fi
13051
13052 done
13053 ac_cv_prog_CPP=$CPP
13054
13055 fi
13056 CPP=$ac_cv_prog_CPP
13057 else
13058 ac_cv_prog_CPP=$CPP
13059 fi
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13061 $as_echo "$CPP" >&6; }
13062 ac_preproc_ok=false
13063 for ac_c_preproc_warn_flag in '' yes
13064 do
13065 # Use a header file that comes with gcc, so configuring glibc
13066 # with a fresh cross-compiler works.
13067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13068 # <limits.h> exists even on freestanding compilers.
13069 # On the NeXT, cc -E runs the code through the compiler's parser,
13070 # not just through cpp. "Syntax error" is here to catch this case.
13071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072 /* end confdefs.h. */
13073 #ifdef __STDC__
13074 # include <limits.h>
13075 #else
13076 # include <assert.h>
13077 #endif
13078 Syntax error
13079 _ACEOF
13080 if ac_fn_c_try_cpp "$LINENO"; then :
13081
13082 else
13083 # Broken: fails on valid input.
13084 continue
13085 fi
13086 rm -f conftest.err conftest.$ac_ext
13087
13088 # OK, works on sane cases. Now check whether nonexistent headers
13089 # can be detected and how.
13090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h. */
13092 #include <ac_nonexistent.h>
13093 _ACEOF
13094 if ac_fn_c_try_cpp "$LINENO"; then :
13095 # Broken: success on invalid input.
13096 continue
13097 else
13098 # Passes both tests.
13099 ac_preproc_ok=:
13100 break
13101 fi
13102 rm -f conftest.err conftest.$ac_ext
13103
13104 done
13105 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13106 rm -f conftest.err conftest.$ac_ext
13107 if $ac_preproc_ok; then :
13108
13109 else
13110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13112 as_fn_error "C preprocessor \"$CPP\" fails sanity check
13113 See \`config.log' for more details." "$LINENO" 5; }
13114 fi
13115
13116 ac_ext=c
13117 ac_cpp='$CPP $CPPFLAGS'
13118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13121
13122 ac_ext=cpp
13123 ac_cpp='$CXXCPP $CPPFLAGS'
13124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13127 if test -z "$CXX"; then
13128 if test -n "$CCC"; then
13129 CXX=$CCC
13130 else
13131 if test -n "$ac_tool_prefix"; then
13132 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13133 do
13134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13135 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13137 $as_echo_n "checking for $ac_word... " >&6; }
13138 if test "${ac_cv_prog_CXX+set}" = set; then :
13139 $as_echo_n "(cached) " >&6
13140 else
13141 if test -n "$CXX"; then
13142 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13143 else
13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13146 do
13147 IFS=$as_save_IFS
13148 test -z "$as_dir" && as_dir=.
13149 for ac_exec_ext in '' $ac_executable_extensions; do
13150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13151 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13153 break 2
13154 fi
13155 done
13156 done
13157 IFS=$as_save_IFS
13158
13159 fi
13160 fi
13161 CXX=$ac_cv_prog_CXX
13162 if test -n "$CXX"; then
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13164 $as_echo "$CXX" >&6; }
13165 else
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13167 $as_echo "no" >&6; }
13168 fi
13169
13170
13171 test -n "$CXX" && break
13172 done
13173 fi
13174 if test -z "$CXX"; then
13175 ac_ct_CXX=$CXX
13176 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13177 do
13178 # Extract the first word of "$ac_prog", so it can be a program name with args.
13179 set dummy $ac_prog; ac_word=$2
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13181 $as_echo_n "checking for $ac_word... " >&6; }
13182 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13183 $as_echo_n "(cached) " >&6
13184 else
13185 if test -n "$ac_ct_CXX"; then
13186 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13187 else
13188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13189 for as_dir in $PATH
13190 do
13191 IFS=$as_save_IFS
13192 test -z "$as_dir" && as_dir=.
13193 for ac_exec_ext in '' $ac_executable_extensions; do
13194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13195 ac_cv_prog_ac_ct_CXX="$ac_prog"
13196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13197 break 2
13198 fi
13199 done
13200 done
13201 IFS=$as_save_IFS
13202
13203 fi
13204 fi
13205 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13206 if test -n "$ac_ct_CXX"; then
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13208 $as_echo "$ac_ct_CXX" >&6; }
13209 else
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211 $as_echo "no" >&6; }
13212 fi
13213
13214
13215 test -n "$ac_ct_CXX" && break
13216 done
13217
13218 if test "x$ac_ct_CXX" = x; then
13219 CXX="g++"
13220 else
13221 case $cross_compiling:$ac_tool_warned in
13222 yes:)
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13225 ac_tool_warned=yes ;;
13226 esac
13227 CXX=$ac_ct_CXX
13228 fi
13229 fi
13230
13231 fi
13232 fi
13233 # Provide some information about the compiler.
13234 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13235 set X $ac_compile
13236 ac_compiler=$2
13237 for ac_option in --version -v -V -qversion; do
13238 { { ac_try="$ac_compiler $ac_option >&5"
13239 case "(($ac_try" in
13240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241 *) ac_try_echo=$ac_try;;
13242 esac
13243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13244 $as_echo "$ac_try_echo"; } >&5
13245 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13246 ac_status=$?
13247 if test -s conftest.err; then
13248 sed '10a\
13249 ... rest of stderr output deleted ...
13250 10q' conftest.err >conftest.er1
13251 cat conftest.er1 >&5
13252 rm -f conftest.er1 conftest.err
13253 fi
13254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13255 test $ac_status = 0; }
13256 done
13257
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13259 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13260 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13261 $as_echo_n "(cached) " >&6
13262 else
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13265
13266 int
13267 main ()
13268 {
13269 #ifndef __GNUC__
13270 choke me
13271 #endif
13272
13273 ;
13274 return 0;
13275 }
13276 _ACEOF
13277 if ac_fn_cxx_try_compile "$LINENO"; then :
13278 ac_compiler_gnu=yes
13279 else
13280 ac_compiler_gnu=no
13281 fi
13282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13283 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13284
13285 fi
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13287 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13288 if test $ac_compiler_gnu = yes; then
13289 GXX=yes
13290 else
13291 GXX=
13292 fi
13293 ac_test_CXXFLAGS=${CXXFLAGS+set}
13294 ac_save_CXXFLAGS=$CXXFLAGS
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13296 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13297 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13298 $as_echo_n "(cached) " >&6
13299 else
13300 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13301 ac_cxx_werror_flag=yes
13302 ac_cv_prog_cxx_g=no
13303 CXXFLAGS="-g"
13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305 /* end confdefs.h. */
13306
13307 int
13308 main ()
13309 {
13310
13311 ;
13312 return 0;
13313 }
13314 _ACEOF
13315 if ac_fn_cxx_try_compile "$LINENO"; then :
13316 ac_cv_prog_cxx_g=yes
13317 else
13318 CXXFLAGS=""
13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13321
13322 int
13323 main ()
13324 {
13325
13326 ;
13327 return 0;
13328 }
13329 _ACEOF
13330 if ac_fn_cxx_try_compile "$LINENO"; then :
13331
13332 else
13333 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13334 CXXFLAGS="-g"
13335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13337
13338 int
13339 main ()
13340 {
13341
13342 ;
13343 return 0;
13344 }
13345 _ACEOF
13346 if ac_fn_cxx_try_compile "$LINENO"; then :
13347 ac_cv_prog_cxx_g=yes
13348 fi
13349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13350 fi
13351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13352 fi
13353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13354 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13355 fi
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13357 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13358 if test "$ac_test_CXXFLAGS" = set; then
13359 CXXFLAGS=$ac_save_CXXFLAGS
13360 elif test $ac_cv_prog_cxx_g = yes; then
13361 if test "$GXX" = yes; then
13362 CXXFLAGS="-g -O2"
13363 else
13364 CXXFLAGS="-g"
13365 fi
13366 else
13367 if test "$GXX" = yes; then
13368 CXXFLAGS="-O2"
13369 else
13370 CXXFLAGS=
13371 fi
13372 fi
13373 ac_ext=c
13374 ac_cpp='$CPP $CPPFLAGS'
13375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13378
13379 depcc="$CXX" am_compiler_list=
13380
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13382 $as_echo_n "checking dependency style of $depcc... " >&6; }
13383 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13384 $as_echo_n "(cached) " >&6
13385 else
13386 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13387 # We make a subdir and do the tests there. Otherwise we can end up
13388 # making bogus files that we don't know about and never remove. For
13389 # instance it was reported that on HP-UX the gcc test will end up
13390 # making a dummy file named `D' -- because `-MD' means `put the output
13391 # in D'.
13392 mkdir conftest.dir
13393 # Copy depcomp to subdir because otherwise we won't find it if we're
13394 # using a relative directory.
13395 cp "$am_depcomp" conftest.dir
13396 cd conftest.dir
13397 # We will build objects and dependencies in a subdirectory because
13398 # it helps to detect inapplicable dependency modes. For instance
13399 # both Tru64's cc and ICC support -MD to output dependencies as a
13400 # side effect of compilation, but ICC will put the dependencies in
13401 # the current directory while Tru64 will put them in the object
13402 # directory.
13403 mkdir sub
13404
13405 am_cv_CXX_dependencies_compiler_type=none
13406 if test "$am_compiler_list" = ""; then
13407 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13408 fi
13409 am__universal=false
13410 case " $depcc " in #(
13411 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13412 esac
13413
13414 for depmode in $am_compiler_list; do
13415 # Setup a source with many dependencies, because some compilers
13416 # like to wrap large dependency lists on column 80 (with \), and
13417 # we should not choose a depcomp mode which is confused by this.
13418 #
13419 # We need to recreate these files for each test, as the compiler may
13420 # overwrite some of them when testing with obscure command lines.
13421 # This happens at least with the AIX C compiler.
13422 : > sub/conftest.c
13423 for i in 1 2 3 4 5 6; do
13424 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13425 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13426 # Solaris 8's {/usr,}/bin/sh.
13427 touch sub/conftst$i.h
13428 done
13429 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13430
13431 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13432 # mode. It turns out that the SunPro C++ compiler does not properly
13433 # handle `-M -o', and we need to detect this. Also, some Intel
13434 # versions had trouble with output in subdirs
13435 am__obj=sub/conftest.${OBJEXT-o}
13436 am__minus_obj="-o $am__obj"
13437 case $depmode in
13438 gcc)
13439 # This depmode causes a compiler race in universal mode.
13440 test "$am__universal" = false || continue
13441 ;;
13442 nosideeffect)
13443 # after this tag, mechanisms are not by side-effect, so they'll
13444 # only be used when explicitly requested
13445 if test "x$enable_dependency_tracking" = xyes; then
13446 continue
13447 else
13448 break
13449 fi
13450 ;;
13451 msvisualcpp | msvcmsys)
13452 # This compiler won't grok `-c -o', but also, the minuso test has
13453 # not run yet. These depmodes are late enough in the game, and
13454 # so weak that their functioning should not be impacted.
13455 am__obj=conftest.${OBJEXT-o}
13456 am__minus_obj=
13457 ;;
13458 none) break ;;
13459 esac
13460 if depmode=$depmode \
13461 source=sub/conftest.c object=$am__obj \
13462 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13463 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13464 >/dev/null 2>conftest.err &&
13465 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13466 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13467 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13468 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13469 # icc doesn't choke on unknown options, it will just issue warnings
13470 # or remarks (even with -Werror). So we grep stderr for any message
13471 # that says an option was ignored or not supported.
13472 # When given -MP, icc 7.0 and 7.1 complain thusly:
13473 # icc: Command line warning: ignoring option '-M'; no argument required
13474 # The diagnosis changed in icc 8.0:
13475 # icc: Command line remark: option '-MP' not supported
13476 if (grep 'ignoring option' conftest.err ||
13477 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13478 am_cv_CXX_dependencies_compiler_type=$depmode
13479 break
13480 fi
13481 fi
13482 done
13483
13484 cd ..
13485 rm -rf conftest.dir
13486 else
13487 am_cv_CXX_dependencies_compiler_type=none
13488 fi
13489
13490 fi
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13492 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13493 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13494
13495 if
13496 test "x$enable_dependency_tracking" != xno \
13497 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13498 am__fastdepCXX_TRUE=
13499 am__fastdepCXX_FALSE='#'
13500 else
13501 am__fastdepCXX_TRUE='#'
13502 am__fastdepCXX_FALSE=
13503 fi
13504
13505
13506 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13507 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13508 (test "X$CXX" != "Xg++"))) ; then
13509 ac_ext=cpp
13510 ac_cpp='$CXXCPP $CPPFLAGS'
13511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13515 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13516 if test -z "$CXXCPP"; then
13517 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13518 $as_echo_n "(cached) " >&6
13519 else
13520 # Double quotes because CXXCPP needs to be expanded
13521 for CXXCPP in "$CXX -E" "/lib/cpp"
13522 do
13523 ac_preproc_ok=false
13524 for ac_cxx_preproc_warn_flag in '' yes
13525 do
13526 # Use a header file that comes with gcc, so configuring glibc
13527 # with a fresh cross-compiler works.
13528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13529 # <limits.h> exists even on freestanding compilers.
13530 # On the NeXT, cc -E runs the code through the compiler's parser,
13531 # not just through cpp. "Syntax error" is here to catch this case.
13532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533 /* end confdefs.h. */
13534 #ifdef __STDC__
13535 # include <limits.h>
13536 #else
13537 # include <assert.h>
13538 #endif
13539 Syntax error
13540 _ACEOF
13541 if ac_fn_cxx_try_cpp "$LINENO"; then :
13542
13543 else
13544 # Broken: fails on valid input.
13545 continue
13546 fi
13547 rm -f conftest.err conftest.$ac_ext
13548
13549 # OK, works on sane cases. Now check whether nonexistent headers
13550 # can be detected and how.
13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13553 #include <ac_nonexistent.h>
13554 _ACEOF
13555 if ac_fn_cxx_try_cpp "$LINENO"; then :
13556 # Broken: success on invalid input.
13557 continue
13558 else
13559 # Passes both tests.
13560 ac_preproc_ok=:
13561 break
13562 fi
13563 rm -f conftest.err conftest.$ac_ext
13564
13565 done
13566 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13567 rm -f conftest.err conftest.$ac_ext
13568 if $ac_preproc_ok; then :
13569 break
13570 fi
13571
13572 done
13573 ac_cv_prog_CXXCPP=$CXXCPP
13574
13575 fi
13576 CXXCPP=$ac_cv_prog_CXXCPP
13577 else
13578 ac_cv_prog_CXXCPP=$CXXCPP
13579 fi
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13581 $as_echo "$CXXCPP" >&6; }
13582 ac_preproc_ok=false
13583 for ac_cxx_preproc_warn_flag in '' yes
13584 do
13585 # Use a header file that comes with gcc, so configuring glibc
13586 # with a fresh cross-compiler works.
13587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13588 # <limits.h> exists even on freestanding compilers.
13589 # On the NeXT, cc -E runs the code through the compiler's parser,
13590 # not just through cpp. "Syntax error" is here to catch this case.
13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h. */
13593 #ifdef __STDC__
13594 # include <limits.h>
13595 #else
13596 # include <assert.h>
13597 #endif
13598 Syntax error
13599 _ACEOF
13600 if ac_fn_cxx_try_cpp "$LINENO"; then :
13601
13602 else
13603 # Broken: fails on valid input.
13604 continue
13605 fi
13606 rm -f conftest.err conftest.$ac_ext
13607
13608 # OK, works on sane cases. Now check whether nonexistent headers
13609 # can be detected and how.
13610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611 /* end confdefs.h. */
13612 #include <ac_nonexistent.h>
13613 _ACEOF
13614 if ac_fn_cxx_try_cpp "$LINENO"; then :
13615 # Broken: success on invalid input.
13616 continue
13617 else
13618 # Passes both tests.
13619 ac_preproc_ok=:
13620 break
13621 fi
13622 rm -f conftest.err conftest.$ac_ext
13623
13624 done
13625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13626 rm -f conftest.err conftest.$ac_ext
13627 if $ac_preproc_ok; then :
13628
13629 else
13630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13632 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13633 See \`config.log' for more details." "$LINENO" 5; }
13634 fi
13635
13636 ac_ext=c
13637 ac_cpp='$CPP $CPPFLAGS'
13638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13641
13642 else
13643 _lt_caught_CXX_error=yes
13644 fi
13645
13646 ac_ext=cpp
13647 ac_cpp='$CXXCPP $CPPFLAGS'
13648 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13649 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13650 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13651
13652 archive_cmds_need_lc_CXX=no
13653 allow_undefined_flag_CXX=
13654 always_export_symbols_CXX=no
13655 archive_expsym_cmds_CXX=
13656 compiler_needs_object_CXX=no
13657 export_dynamic_flag_spec_CXX=
13658 hardcode_direct_CXX=no
13659 hardcode_direct_absolute_CXX=no
13660 hardcode_libdir_flag_spec_CXX=
13661 hardcode_libdir_flag_spec_ld_CXX=
13662 hardcode_libdir_separator_CXX=
13663 hardcode_minus_L_CXX=no
13664 hardcode_shlibpath_var_CXX=unsupported
13665 hardcode_automatic_CXX=no
13666 inherit_rpath_CXX=no
13667 module_cmds_CXX=
13668 module_expsym_cmds_CXX=
13669 link_all_deplibs_CXX=unknown
13670 old_archive_cmds_CXX=$old_archive_cmds
13671 reload_flag_CXX=$reload_flag
13672 reload_cmds_CXX=$reload_cmds
13673 no_undefined_flag_CXX=
13674 whole_archive_flag_spec_CXX=
13675 enable_shared_with_static_runtimes_CXX=no
13676
13677 # Source file extension for C++ test sources.
13678 ac_ext=cpp
13679
13680 # Object file extension for compiled C++ test sources.
13681 objext=o
13682 objext_CXX=$objext
13683
13684 # No sense in running all these tests if we already determined that
13685 # the CXX compiler isn't working. Some variables (like enable_shared)
13686 # are currently assumed to apply to all compilers on this platform,
13687 # and will be corrupted by setting them based on a non-working compiler.
13688 if test "$_lt_caught_CXX_error" != yes; then
13689 # Code to be used in simple compile tests
13690 lt_simple_compile_test_code="int some_variable = 0;"
13691
13692 # Code to be used in simple link tests
13693 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13694
13695 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13696
13697
13698
13699
13700
13701
13702 # If no C compiler was specified, use CC.
13703 LTCC=${LTCC-"$CC"}
13704
13705 # If no C compiler flags were specified, use CFLAGS.
13706 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13707
13708 # Allow CC to be a program name with arguments.
13709 compiler=$CC
13710
13711
13712 # save warnings/boilerplate of simple test code
13713 ac_outfile=conftest.$ac_objext
13714 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13715 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13716 _lt_compiler_boilerplate=`cat conftest.err`
13717 $RM conftest*
13718
13719 ac_outfile=conftest.$ac_objext
13720 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13721 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13722 _lt_linker_boilerplate=`cat conftest.err`
13723 $RM -r conftest*
13724
13725
13726 # Allow CC to be a program name with arguments.
13727 lt_save_CC=$CC
13728 lt_save_LD=$LD
13729 lt_save_GCC=$GCC
13730 GCC=$GXX
13731 lt_save_with_gnu_ld=$with_gnu_ld
13732 lt_save_path_LD=$lt_cv_path_LD
13733 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13734 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13735 else
13736 $as_unset lt_cv_prog_gnu_ld
13737 fi
13738 if test -n "${lt_cv_path_LDCXX+set}"; then
13739 lt_cv_path_LD=$lt_cv_path_LDCXX
13740 else
13741 $as_unset lt_cv_path_LD
13742 fi
13743 test -z "${LDCXX+set}" || LD=$LDCXX
13744 CC=${CXX-"c++"}
13745 compiler=$CC
13746 compiler_CXX=$CC
13747 for cc_temp in $compiler""; do
13748 case $cc_temp in
13749 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13750 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13751 \-*) ;;
13752 *) break;;
13753 esac
13754 done
13755 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13756
13757
13758 if test -n "$compiler"; then
13759 # We don't want -fno-exception when compiling C++ code, so set the
13760 # no_builtin_flag separately
13761 if test "$GXX" = yes; then
13762 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13763 else
13764 lt_prog_compiler_no_builtin_flag_CXX=
13765 fi
13766
13767 if test "$GXX" = yes; then
13768 # Set up default GNU C++ configuration
13769
13770
13771
13772 # Check whether --with-gnu-ld was given.
13773 if test "${with_gnu_ld+set}" = set; then :
13774 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13775 else
13776 with_gnu_ld=no
13777 fi
13778
13779 ac_prog=ld
13780 if test "$GCC" = yes; then
13781 # Check if gcc -print-prog-name=ld gives a path.
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13783 $as_echo_n "checking for ld used by $CC... " >&6; }
13784 case $host in
13785 *-*-mingw*)
13786 # gcc leaves a trailing carriage return which upsets mingw
13787 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13788 *)
13789 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13790 esac
13791 case $ac_prog in
13792 # Accept absolute paths.
13793 [\\/]* | ?:[\\/]*)
13794 re_direlt='/[^/][^/]*/\.\./'
13795 # Canonicalize the pathname of ld
13796 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13797 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13798 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13799 done
13800 test -z "$LD" && LD="$ac_prog"
13801 ;;
13802 "")
13803 # If it fails, then pretend we aren't using GCC.
13804 ac_prog=ld
13805 ;;
13806 *)
13807 # If it is relative, then search for the first ld in PATH.
13808 with_gnu_ld=unknown
13809 ;;
13810 esac
13811 elif test "$with_gnu_ld" = yes; then
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13813 $as_echo_n "checking for GNU ld... " >&6; }
13814 else
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13816 $as_echo_n "checking for non-GNU ld... " >&6; }
13817 fi
13818 if test "${lt_cv_path_LD+set}" = set; then :
13819 $as_echo_n "(cached) " >&6
13820 else
13821 if test -z "$LD"; then
13822 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13823 for ac_dir in $PATH; do
13824 IFS="$lt_save_ifs"
13825 test -z "$ac_dir" && ac_dir=.
13826 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13827 lt_cv_path_LD="$ac_dir/$ac_prog"
13828 # Check to see if the program is GNU ld. I'd rather use --version,
13829 # but apparently some variants of GNU ld only accept -v.
13830 # Break only if it was the GNU/non-GNU ld that we prefer.
13831 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13832 *GNU* | *'with BFD'*)
13833 test "$with_gnu_ld" != no && break
13834 ;;
13835 *)
13836 test "$with_gnu_ld" != yes && break
13837 ;;
13838 esac
13839 fi
13840 done
13841 IFS="$lt_save_ifs"
13842 else
13843 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13844 fi
13845 fi
13846
13847 LD="$lt_cv_path_LD"
13848 if test -n "$LD"; then
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13850 $as_echo "$LD" >&6; }
13851 else
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13853 $as_echo "no" >&6; }
13854 fi
13855 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13857 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13858 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13859 $as_echo_n "(cached) " >&6
13860 else
13861 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13862 case `$LD -v 2>&1 </dev/null` in
13863 *GNU* | *'with BFD'*)
13864 lt_cv_prog_gnu_ld=yes
13865 ;;
13866 *)
13867 lt_cv_prog_gnu_ld=no
13868 ;;
13869 esac
13870 fi
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13872 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13873 with_gnu_ld=$lt_cv_prog_gnu_ld
13874
13875
13876
13877
13878
13879
13880
13881 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13882 # archiving commands below assume that GNU ld is being used.
13883 if test "$with_gnu_ld" = yes; then
13884 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13885 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'
13886
13887 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13888 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13889
13890 # If archive_cmds runs LD, not CC, wlarc should be empty
13891 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13892 # investigate it a little bit more. (MM)
13893 wlarc='${wl}'
13894
13895 # ancient GNU ld didn't support --whole-archive et. al.
13896 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13897 $GREP 'no-whole-archive' > /dev/null; then
13898 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13899 else
13900 whole_archive_flag_spec_CXX=
13901 fi
13902 else
13903 with_gnu_ld=no
13904 wlarc=
13905
13906 # A generic and very simple default shared library creation
13907 # command for GNU C++ for the case where it uses the native
13908 # linker, instead of GNU ld. If possible, this setting should
13909 # overridden to take advantage of the native linker features on
13910 # the platform it is being used on.
13911 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13912 fi
13913
13914 # Commands to make compiler produce verbose output that lists
13915 # what "hidden" libraries, object files and flags are used when
13916 # linking a shared library.
13917 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13918
13919 else
13920 GXX=no
13921 with_gnu_ld=no
13922 wlarc=
13923 fi
13924
13925 # PORTME: fill in a description of your system's C++ link characteristics
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13927 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13928 ld_shlibs_CXX=yes
13929 case $host_os in
13930 aix3*)
13931 # FIXME: insert proper C++ library support
13932 ld_shlibs_CXX=no
13933 ;;
13934 aix[4-9]*)
13935 if test "$host_cpu" = ia64; then
13936 # On IA64, the linker does run time linking by default, so we don't
13937 # have to do anything special.
13938 aix_use_runtimelinking=no
13939 exp_sym_flag='-Bexport'
13940 no_entry_flag=""
13941 else
13942 aix_use_runtimelinking=no
13943
13944 # Test if we are trying to use run time linking or normal
13945 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13946 # need to do runtime linking.
13947 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13948 for ld_flag in $LDFLAGS; do
13949 case $ld_flag in
13950 *-brtl*)
13951 aix_use_runtimelinking=yes
13952 break
13953 ;;
13954 esac
13955 done
13956 ;;
13957 esac
13958
13959 exp_sym_flag='-bexport'
13960 no_entry_flag='-bnoentry'
13961 fi
13962
13963 # When large executables or shared objects are built, AIX ld can
13964 # have problems creating the table of contents. If linking a library
13965 # or program results in "error TOC overflow" add -mminimal-toc to
13966 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13967 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13968
13969 archive_cmds_CXX=''
13970 hardcode_direct_CXX=yes
13971 hardcode_direct_absolute_CXX=yes
13972 hardcode_libdir_separator_CXX=':'
13973 link_all_deplibs_CXX=yes
13974 file_list_spec_CXX='${wl}-f,'
13975
13976 if test "$GXX" = yes; then
13977 case $host_os in aix4.[012]|aix4.[012].*)
13978 # We only want to do this on AIX 4.2 and lower, the check
13979 # below for broken collect2 doesn't work under 4.3+
13980 collect2name=`${CC} -print-prog-name=collect2`
13981 if test -f "$collect2name" &&
13982 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13983 then
13984 # We have reworked collect2
13985 :
13986 else
13987 # We have old collect2
13988 hardcode_direct_CXX=unsupported
13989 # It fails to find uninstalled libraries when the uninstalled
13990 # path is not listed in the libpath. Setting hardcode_minus_L
13991 # to unsupported forces relinking
13992 hardcode_minus_L_CXX=yes
13993 hardcode_libdir_flag_spec_CXX='-L$libdir'
13994 hardcode_libdir_separator_CXX=
13995 fi
13996 esac
13997 shared_flag='-shared'
13998 if test "$aix_use_runtimelinking" = yes; then
13999 shared_flag="$shared_flag "'${wl}-G'
14000 fi
14001 else
14002 # not using gcc
14003 if test "$host_cpu" = ia64; then
14004 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14005 # chokes on -Wl,-G. The following line is correct:
14006 shared_flag='-G'
14007 else
14008 if test "$aix_use_runtimelinking" = yes; then
14009 shared_flag='${wl}-G'
14010 else
14011 shared_flag='${wl}-bM:SRE'
14012 fi
14013 fi
14014 fi
14015
14016 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14017 # It seems that -bexpall does not export symbols beginning with
14018 # underscore (_), so it is better to generate a list of symbols to
14019 # export.
14020 always_export_symbols_CXX=yes
14021 if test "$aix_use_runtimelinking" = yes; then
14022 # Warning - without using the other runtime loading flags (-brtl),
14023 # -berok will link without error, but may produce a broken library.
14024 allow_undefined_flag_CXX='-berok'
14025 # Determine the default libpath from the value encoded in an empty
14026 # executable.
14027 if test x$gcc_no_link = xyes; then
14028 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14029 fi
14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14032
14033 int
14034 main ()
14035 {
14036
14037 ;
14038 return 0;
14039 }
14040 _ACEOF
14041 if ac_fn_cxx_try_link "$LINENO"; then :
14042
14043 lt_aix_libpath_sed='
14044 /Import File Strings/,/^$/ {
14045 /^0/ {
14046 s/^0 *\(.*\)$/\1/
14047 p
14048 }
14049 }'
14050 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14051 # Check for a 64-bit object if we didn't find anything.
14052 if test -z "$aix_libpath"; then
14053 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14054 fi
14055 fi
14056 rm -f core conftest.err conftest.$ac_objext \
14057 conftest$ac_exeext conftest.$ac_ext
14058 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14059
14060 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14061
14062 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14063 else
14064 if test "$host_cpu" = ia64; then
14065 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14066 allow_undefined_flag_CXX="-z nodefs"
14067 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"
14068 else
14069 # Determine the default libpath from the value encoded in an
14070 # empty executable.
14071 if test x$gcc_no_link = xyes; then
14072 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14073 fi
14074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075 /* end confdefs.h. */
14076
14077 int
14078 main ()
14079 {
14080
14081 ;
14082 return 0;
14083 }
14084 _ACEOF
14085 if ac_fn_cxx_try_link "$LINENO"; then :
14086
14087 lt_aix_libpath_sed='
14088 /Import File Strings/,/^$/ {
14089 /^0/ {
14090 s/^0 *\(.*\)$/\1/
14091 p
14092 }
14093 }'
14094 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14095 # Check for a 64-bit object if we didn't find anything.
14096 if test -z "$aix_libpath"; then
14097 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14098 fi
14099 fi
14100 rm -f core conftest.err conftest.$ac_objext \
14101 conftest$ac_exeext conftest.$ac_ext
14102 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14103
14104 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14105 # Warning - without using the other run time loading flags,
14106 # -berok will link without error, but may produce a broken library.
14107 no_undefined_flag_CXX=' ${wl}-bernotok'
14108 allow_undefined_flag_CXX=' ${wl}-berok'
14109 if test "$with_gnu_ld" = yes; then
14110 # We only use this code for GNU lds that support --whole-archive.
14111 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14112 else
14113 # Exported symbols can be pulled into shared objects from archives
14114 whole_archive_flag_spec_CXX='$convenience'
14115 fi
14116 archive_cmds_need_lc_CXX=yes
14117 # This is similar to how AIX traditionally builds its shared
14118 # libraries.
14119 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'
14120 fi
14121 fi
14122 ;;
14123
14124 beos*)
14125 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14126 allow_undefined_flag_CXX=unsupported
14127 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14128 # support --undefined. This deserves some investigation. FIXME
14129 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14130 else
14131 ld_shlibs_CXX=no
14132 fi
14133 ;;
14134
14135 chorus*)
14136 case $cc_basename in
14137 *)
14138 # FIXME: insert proper C++ library support
14139 ld_shlibs_CXX=no
14140 ;;
14141 esac
14142 ;;
14143
14144 cygwin* | mingw* | pw32* | cegcc*)
14145 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14146 # as there is no search path for DLLs.
14147 hardcode_libdir_flag_spec_CXX='-L$libdir'
14148 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14149 allow_undefined_flag_CXX=unsupported
14150 always_export_symbols_CXX=no
14151 enable_shared_with_static_runtimes_CXX=yes
14152
14153 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14154 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'
14155 # If the export-symbols file already is a .def file (1st line
14156 # is EXPORTS), use it as is; otherwise, prepend...
14157 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14158 cp $export_symbols $output_objdir/$soname.def;
14159 else
14160 echo EXPORTS > $output_objdir/$soname.def;
14161 cat $export_symbols >> $output_objdir/$soname.def;
14162 fi~
14163 $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'
14164 else
14165 ld_shlibs_CXX=no
14166 fi
14167 ;;
14168 darwin* | rhapsody*)
14169
14170
14171 archive_cmds_need_lc_CXX=no
14172 hardcode_direct_CXX=no
14173 hardcode_automatic_CXX=yes
14174 hardcode_shlibpath_var_CXX=unsupported
14175 if test "$lt_cv_ld_force_load" = "yes"; then
14176 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14177 else
14178 whole_archive_flag_spec_CXX=''
14179 fi
14180 link_all_deplibs_CXX=yes
14181 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14182 case $cc_basename in
14183 ifort*) _lt_dar_can_shared=yes ;;
14184 *) _lt_dar_can_shared=$GCC ;;
14185 esac
14186 if test "$_lt_dar_can_shared" = "yes"; then
14187 output_verbose_link_cmd=func_echo_all
14188 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}"
14189 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14190 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}"
14191 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}"
14192 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14193 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}"
14194 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}"
14195 fi
14196
14197 else
14198 ld_shlibs_CXX=no
14199 fi
14200
14201 ;;
14202
14203 dgux*)
14204 case $cc_basename in
14205 ec++*)
14206 # FIXME: insert proper C++ library support
14207 ld_shlibs_CXX=no
14208 ;;
14209 ghcx*)
14210 # Green Hills C++ Compiler
14211 # FIXME: insert proper C++ library support
14212 ld_shlibs_CXX=no
14213 ;;
14214 *)
14215 # FIXME: insert proper C++ library support
14216 ld_shlibs_CXX=no
14217 ;;
14218 esac
14219 ;;
14220
14221 freebsd[12]*)
14222 # C++ shared libraries reported to be fairly broken before
14223 # switch to ELF
14224 ld_shlibs_CXX=no
14225 ;;
14226
14227 freebsd-elf*)
14228 archive_cmds_need_lc_CXX=no
14229 ;;
14230
14231 freebsd* | dragonfly*)
14232 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14233 # conventions
14234 ld_shlibs_CXX=yes
14235 ;;
14236
14237 gnu*)
14238 ;;
14239
14240 haiku*)
14241 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14242 link_all_deplibs_CXX=yes
14243 ;;
14244
14245 hpux9*)
14246 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14247 hardcode_libdir_separator_CXX=:
14248 export_dynamic_flag_spec_CXX='${wl}-E'
14249 hardcode_direct_CXX=yes
14250 hardcode_minus_L_CXX=yes # Not in the search PATH,
14251 # but as the default
14252 # location of the library.
14253
14254 case $cc_basename in
14255 CC*)
14256 # FIXME: insert proper C++ library support
14257 ld_shlibs_CXX=no
14258 ;;
14259 aCC*)
14260 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'
14261 # Commands to make compiler produce verbose output that lists
14262 # what "hidden" libraries, object files and flags are used when
14263 # linking a shared library.
14264 #
14265 # There doesn't appear to be a way to prevent this compiler from
14266 # explicitly linking system object files so we need to strip them
14267 # from the output so that they don't get included in the library
14268 # dependencies.
14269 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14270 ;;
14271 *)
14272 if test "$GXX" = yes; then
14273 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'
14274 else
14275 # FIXME: insert proper C++ library support
14276 ld_shlibs_CXX=no
14277 fi
14278 ;;
14279 esac
14280 ;;
14281
14282 hpux10*|hpux11*)
14283 if test $with_gnu_ld = no; then
14284 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14285 hardcode_libdir_separator_CXX=:
14286
14287 case $host_cpu in
14288 hppa*64*|ia64*)
14289 ;;
14290 *)
14291 export_dynamic_flag_spec_CXX='${wl}-E'
14292 ;;
14293 esac
14294 fi
14295 case $host_cpu in
14296 hppa*64*|ia64*)
14297 hardcode_direct_CXX=no
14298 hardcode_shlibpath_var_CXX=no
14299 ;;
14300 *)
14301 hardcode_direct_CXX=yes
14302 hardcode_direct_absolute_CXX=yes
14303 hardcode_minus_L_CXX=yes # Not in the search PATH,
14304 # but as the default
14305 # location of the library.
14306 ;;
14307 esac
14308
14309 case $cc_basename in
14310 CC*)
14311 # FIXME: insert proper C++ library support
14312 ld_shlibs_CXX=no
14313 ;;
14314 aCC*)
14315 case $host_cpu in
14316 hppa*64*)
14317 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14318 ;;
14319 ia64*)
14320 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14321 ;;
14322 *)
14323 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14324 ;;
14325 esac
14326 # Commands to make compiler produce verbose output that lists
14327 # what "hidden" libraries, object files and flags are used when
14328 # linking a shared library.
14329 #
14330 # There doesn't appear to be a way to prevent this compiler from
14331 # explicitly linking system object files so we need to strip them
14332 # from the output so that they don't get included in the library
14333 # dependencies.
14334 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14335 ;;
14336 *)
14337 if test "$GXX" = yes; then
14338 if test $with_gnu_ld = no; then
14339 case $host_cpu in
14340 hppa*64*)
14341 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14342 ;;
14343 ia64*)
14344 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14345 ;;
14346 *)
14347 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'
14348 ;;
14349 esac
14350 fi
14351 else
14352 # FIXME: insert proper C++ library support
14353 ld_shlibs_CXX=no
14354 fi
14355 ;;
14356 esac
14357 ;;
14358
14359 interix[3-9]*)
14360 hardcode_direct_CXX=no
14361 hardcode_shlibpath_var_CXX=no
14362 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14363 export_dynamic_flag_spec_CXX='${wl}-E'
14364 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14365 # Instead, shared libraries are loaded at an image base (0x10000000 by
14366 # default) and relocated if they conflict, which is a slow very memory
14367 # consuming and fragmenting process. To avoid this, we pick a random,
14368 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14369 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14370 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'
14371 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'
14372 ;;
14373 irix5* | irix6*)
14374 case $cc_basename in
14375 CC*)
14376 # SGI C++
14377 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14378
14379 # Archives containing C++ object files must be created using
14380 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14381 # necessary to make sure instantiated templates are included
14382 # in the archive.
14383 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14384 ;;
14385 *)
14386 if test "$GXX" = yes; then
14387 if test "$with_gnu_ld" = no; then
14388 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14389 else
14390 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14391 fi
14392 fi
14393 link_all_deplibs_CXX=yes
14394 ;;
14395 esac
14396 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14397 hardcode_libdir_separator_CXX=:
14398 inherit_rpath_CXX=yes
14399 ;;
14400
14401 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14402 case $cc_basename in
14403 KCC*)
14404 # Kuck and Associates, Inc. (KAI) C++ Compiler
14405
14406 # KCC will only create a shared library if the output file
14407 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14408 # to its proper name (with version) after linking.
14409 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'
14410 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'
14411 # Commands to make compiler produce verbose output that lists
14412 # what "hidden" libraries, object files and flags are used when
14413 # linking a shared library.
14414 #
14415 # There doesn't appear to be a way to prevent this compiler from
14416 # explicitly linking system object files so we need to strip them
14417 # from the output so that they don't get included in the library
14418 # dependencies.
14419 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14420
14421 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14422 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14423
14424 # Archives containing C++ object files must be created using
14425 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14426 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14427 ;;
14428 icpc* | ecpc* )
14429 # Intel C++
14430 with_gnu_ld=yes
14431 # version 8.0 and above of icpc choke on multiply defined symbols
14432 # if we add $predep_objects and $postdep_objects, however 7.1 and
14433 # earlier do not add the objects themselves.
14434 case `$CC -V 2>&1` in
14435 *"Version 7."*)
14436 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14437 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'
14438 ;;
14439 *) # Version 8.0 or newer
14440 tmp_idyn=
14441 case $host_cpu in
14442 ia64*) tmp_idyn=' -i_dynamic';;
14443 esac
14444 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14445 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'
14446 ;;
14447 esac
14448 archive_cmds_need_lc_CXX=no
14449 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14450 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14451 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14452 ;;
14453 pgCC* | pgcpp*)
14454 # Portland Group C++ compiler
14455 case `$CC -V` in
14456 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14457 prelink_cmds_CXX='tpldir=Template.dir~
14458 rm -rf $tpldir~
14459 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14460 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14461 old_archive_cmds_CXX='tpldir=Template.dir~
14462 rm -rf $tpldir~
14463 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14464 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14465 $RANLIB $oldlib'
14466 archive_cmds_CXX='tpldir=Template.dir~
14467 rm -rf $tpldir~
14468 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14469 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14470 archive_expsym_cmds_CXX='tpldir=Template.dir~
14471 rm -rf $tpldir~
14472 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14473 $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'
14474 ;;
14475 *) # Version 6 and above use weak symbols
14476 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14477 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'
14478 ;;
14479 esac
14480
14481 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14482 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14483 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14484 ;;
14485 cxx*)
14486 # Compaq C++
14487 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14488 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'
14489
14490 runpath_var=LD_RUN_PATH
14491 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14492 hardcode_libdir_separator_CXX=:
14493
14494 # Commands to make compiler produce verbose output that lists
14495 # what "hidden" libraries, object files and flags are used when
14496 # linking a shared library.
14497 #
14498 # There doesn't appear to be a way to prevent this compiler from
14499 # explicitly linking system object files so we need to strip them
14500 # from the output so that they don't get included in the library
14501 # dependencies.
14502 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14503 ;;
14504 xl* | mpixl* | bgxl*)
14505 # IBM XL 8.0 on PPC, with GNU ld
14506 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14507 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14508 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14509 if test "x$supports_anon_versioning" = xyes; then
14510 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14511 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14512 echo "local: *; };" >> $output_objdir/$libname.ver~
14513 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14514 fi
14515 ;;
14516 *)
14517 case `$CC -V 2>&1 | sed 5q` in
14518 *Sun\ C*)
14519 # Sun C++ 5.9
14520 no_undefined_flag_CXX=' -zdefs'
14521 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14522 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'
14523 hardcode_libdir_flag_spec_CXX='-R$libdir'
14524 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14525 compiler_needs_object_CXX=yes
14526
14527 # Not sure whether something based on
14528 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14529 # would be better.
14530 output_verbose_link_cmd='func_echo_all'
14531
14532 # Archives containing C++ object files must be created using
14533 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14534 # necessary to make sure instantiated templates are included
14535 # in the archive.
14536 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14537 ;;
14538 esac
14539 ;;
14540 esac
14541 ;;
14542
14543 lynxos*)
14544 # FIXME: insert proper C++ library support
14545 ld_shlibs_CXX=no
14546 ;;
14547
14548 m88k*)
14549 # FIXME: insert proper C++ library support
14550 ld_shlibs_CXX=no
14551 ;;
14552
14553 mvs*)
14554 case $cc_basename in
14555 cxx*)
14556 # FIXME: insert proper C++ library support
14557 ld_shlibs_CXX=no
14558 ;;
14559 *)
14560 # FIXME: insert proper C++ library support
14561 ld_shlibs_CXX=no
14562 ;;
14563 esac
14564 ;;
14565
14566 netbsd*)
14567 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14568 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14569 wlarc=
14570 hardcode_libdir_flag_spec_CXX='-R$libdir'
14571 hardcode_direct_CXX=yes
14572 hardcode_shlibpath_var_CXX=no
14573 fi
14574 # Workaround some broken pre-1.5 toolchains
14575 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14576 ;;
14577
14578 *nto* | *qnx*)
14579 ld_shlibs_CXX=yes
14580 ;;
14581
14582 openbsd2*)
14583 # C++ shared libraries are fairly broken
14584 ld_shlibs_CXX=no
14585 ;;
14586
14587 openbsd*)
14588 if test -f /usr/libexec/ld.so; then
14589 hardcode_direct_CXX=yes
14590 hardcode_shlibpath_var_CXX=no
14591 hardcode_direct_absolute_CXX=yes
14592 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14593 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14594 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14595 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14596 export_dynamic_flag_spec_CXX='${wl}-E'
14597 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14598 fi
14599 output_verbose_link_cmd=func_echo_all
14600 else
14601 ld_shlibs_CXX=no
14602 fi
14603 ;;
14604
14605 osf3* | osf4* | osf5*)
14606 case $cc_basename in
14607 KCC*)
14608 # Kuck and Associates, Inc. (KAI) C++ Compiler
14609
14610 # KCC will only create a shared library if the output file
14611 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14612 # to its proper name (with version) after linking.
14613 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'
14614
14615 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14616 hardcode_libdir_separator_CXX=:
14617
14618 # Archives containing C++ object files must be created using
14619 # the KAI C++ compiler.
14620 case $host in
14621 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14622 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14623 esac
14624 ;;
14625 RCC*)
14626 # Rational C++ 2.4.1
14627 # FIXME: insert proper C++ library support
14628 ld_shlibs_CXX=no
14629 ;;
14630 cxx*)
14631 case $host in
14632 osf3*)
14633 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14634 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14635 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14636 ;;
14637 *)
14638 allow_undefined_flag_CXX=' -expect_unresolved \*'
14639 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14640 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14641 echo "-hidden">> $lib.exp~
14642 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14643 $RM $lib.exp'
14644 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14645 ;;
14646 esac
14647
14648 hardcode_libdir_separator_CXX=:
14649
14650 # Commands to make compiler produce verbose output that lists
14651 # what "hidden" libraries, object files and flags are used when
14652 # linking a shared library.
14653 #
14654 # There doesn't appear to be a way to prevent this compiler from
14655 # explicitly linking system object files so we need to strip them
14656 # from the output so that they don't get included in the library
14657 # dependencies.
14658 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14659 ;;
14660 *)
14661 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14662 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14663 case $host in
14664 osf3*)
14665 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14666 ;;
14667 *)
14668 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14669 ;;
14670 esac
14671
14672 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14673 hardcode_libdir_separator_CXX=:
14674
14675 # Commands to make compiler produce verbose output that lists
14676 # what "hidden" libraries, object files and flags are used when
14677 # linking a shared library.
14678 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14679
14680 else
14681 # FIXME: insert proper C++ library support
14682 ld_shlibs_CXX=no
14683 fi
14684 ;;
14685 esac
14686 ;;
14687
14688 psos*)
14689 # FIXME: insert proper C++ library support
14690 ld_shlibs_CXX=no
14691 ;;
14692
14693 sunos4*)
14694 case $cc_basename in
14695 CC*)
14696 # Sun C++ 4.x
14697 # FIXME: insert proper C++ library support
14698 ld_shlibs_CXX=no
14699 ;;
14700 lcc*)
14701 # Lucid
14702 # FIXME: insert proper C++ library support
14703 ld_shlibs_CXX=no
14704 ;;
14705 *)
14706 # FIXME: insert proper C++ library support
14707 ld_shlibs_CXX=no
14708 ;;
14709 esac
14710 ;;
14711
14712 solaris*)
14713 case $cc_basename in
14714 CC*)
14715 # Sun C++ 4.2, 5.x and Centerline C++
14716 archive_cmds_need_lc_CXX=yes
14717 no_undefined_flag_CXX=' -zdefs'
14718 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14719 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14720 $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'
14721
14722 hardcode_libdir_flag_spec_CXX='-R$libdir'
14723 hardcode_shlibpath_var_CXX=no
14724 case $host_os in
14725 solaris2.[0-5] | solaris2.[0-5].*) ;;
14726 *)
14727 # The compiler driver will combine and reorder linker options,
14728 # but understands `-z linker_flag'.
14729 # Supported since Solaris 2.6 (maybe 2.5.1?)
14730 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14731 ;;
14732 esac
14733 link_all_deplibs_CXX=yes
14734
14735 output_verbose_link_cmd='func_echo_all'
14736
14737 # Archives containing C++ object files must be created using
14738 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14739 # necessary to make sure instantiated templates are included
14740 # in the archive.
14741 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14742 ;;
14743 gcx*)
14744 # Green Hills C++ Compiler
14745 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14746
14747 # The C++ compiler must be used to create the archive.
14748 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14749 ;;
14750 *)
14751 # GNU C++ compiler with Solaris linker
14752 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14753 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14754 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14755 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14756 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14757 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14758
14759 # Commands to make compiler produce verbose output that lists
14760 # what "hidden" libraries, object files and flags are used when
14761 # linking a shared library.
14762 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14763 else
14764 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14765 # platform.
14766 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14767 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14768 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14769
14770 # Commands to make compiler produce verbose output that lists
14771 # what "hidden" libraries, object files and flags are used when
14772 # linking a shared library.
14773 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14774 fi
14775
14776 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14777 case $host_os in
14778 solaris2.[0-5] | solaris2.[0-5].*) ;;
14779 *)
14780 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14781 ;;
14782 esac
14783 fi
14784 ;;
14785 esac
14786 ;;
14787
14788 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14789 no_undefined_flag_CXX='${wl}-z,text'
14790 archive_cmds_need_lc_CXX=no
14791 hardcode_shlibpath_var_CXX=no
14792 runpath_var='LD_RUN_PATH'
14793
14794 case $cc_basename in
14795 CC*)
14796 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14797 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14798 ;;
14799 *)
14800 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14801 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14802 ;;
14803 esac
14804 ;;
14805
14806 sysv5* | sco3.2v5* | sco5v6*)
14807 # Note: We can NOT use -z defs as we might desire, because we do not
14808 # link with -lc, and that would cause any symbols used from libc to
14809 # always be unresolved, which means just about no library would
14810 # ever link correctly. If we're not using GNU ld we use -z text
14811 # though, which does catch some bad symbols but isn't as heavy-handed
14812 # as -z defs.
14813 no_undefined_flag_CXX='${wl}-z,text'
14814 allow_undefined_flag_CXX='${wl}-z,nodefs'
14815 archive_cmds_need_lc_CXX=no
14816 hardcode_shlibpath_var_CXX=no
14817 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14818 hardcode_libdir_separator_CXX=':'
14819 link_all_deplibs_CXX=yes
14820 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14821 runpath_var='LD_RUN_PATH'
14822
14823 case $cc_basename in
14824 CC*)
14825 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14826 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14827 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14828 '"$old_archive_cmds_CXX"
14829 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14830 '"$reload_cmds_CXX"
14831 ;;
14832 *)
14833 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14834 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14835 ;;
14836 esac
14837 ;;
14838
14839 tandem*)
14840 case $cc_basename in
14841 NCC*)
14842 # NonStop-UX NCC 3.20
14843 # FIXME: insert proper C++ library support
14844 ld_shlibs_CXX=no
14845 ;;
14846 *)
14847 # FIXME: insert proper C++ library support
14848 ld_shlibs_CXX=no
14849 ;;
14850 esac
14851 ;;
14852
14853 vxworks*)
14854 # FIXME: insert proper C++ library support
14855 ld_shlibs_CXX=no
14856 ;;
14857
14858 *)
14859 # FIXME: insert proper C++ library support
14860 ld_shlibs_CXX=no
14861 ;;
14862 esac
14863
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14865 $as_echo "$ld_shlibs_CXX" >&6; }
14866 test "$ld_shlibs_CXX" = no && can_build_shared=no
14867
14868 GCC_CXX="$GXX"
14869 LD_CXX="$LD"
14870
14871 ## CAVEAT EMPTOR:
14872 ## There is no encapsulation within the following macros, do not change
14873 ## the running order or otherwise move them around unless you know exactly
14874 ## what you are doing...
14875 # Dependencies to place before and after the object being linked:
14876 predep_objects_CXX=
14877 postdep_objects_CXX=
14878 predeps_CXX=
14879 postdeps_CXX=
14880 compiler_lib_search_path_CXX=
14881
14882 cat > conftest.$ac_ext <<_LT_EOF
14883 class Foo
14884 {
14885 public:
14886 Foo (void) { a = 0; }
14887 private:
14888 int a;
14889 };
14890 _LT_EOF
14891
14892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14893 (eval $ac_compile) 2>&5
14894 ac_status=$?
14895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14896 test $ac_status = 0; }; then
14897 # Parse the compiler output and extract the necessary
14898 # objects, libraries and library flags.
14899
14900 # Sentinel used to keep track of whether or not we are before
14901 # the conftest object file.
14902 pre_test_object_deps_done=no
14903
14904 for p in `eval "$output_verbose_link_cmd"`; do
14905 case $p in
14906
14907 -L* | -R* | -l*)
14908 # Some compilers place space between "-{L,R}" and the path.
14909 # Remove the space.
14910 if test $p = "-L" ||
14911 test $p = "-R"; then
14912 prev=$p
14913 continue
14914 else
14915 prev=
14916 fi
14917
14918 if test "$pre_test_object_deps_done" = no; then
14919 case $p in
14920 -L* | -R*)
14921 # Internal compiler library paths should come after those
14922 # provided the user. The postdeps already come after the
14923 # user supplied libs so there is no need to process them.
14924 if test -z "$compiler_lib_search_path_CXX"; then
14925 compiler_lib_search_path_CXX="${prev}${p}"
14926 else
14927 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14928 fi
14929 ;;
14930 # The "-l" case would never come before the object being
14931 # linked, so don't bother handling this case.
14932 esac
14933 else
14934 if test -z "$postdeps_CXX"; then
14935 postdeps_CXX="${prev}${p}"
14936 else
14937 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14938 fi
14939 fi
14940 ;;
14941
14942 *.$objext)
14943 # This assumes that the test object file only shows up
14944 # once in the compiler output.
14945 if test "$p" = "conftest.$objext"; then
14946 pre_test_object_deps_done=yes
14947 continue
14948 fi
14949
14950 if test "$pre_test_object_deps_done" = no; then
14951 if test -z "$predep_objects_CXX"; then
14952 predep_objects_CXX="$p"
14953 else
14954 predep_objects_CXX="$predep_objects_CXX $p"
14955 fi
14956 else
14957 if test -z "$postdep_objects_CXX"; then
14958 postdep_objects_CXX="$p"
14959 else
14960 postdep_objects_CXX="$postdep_objects_CXX $p"
14961 fi
14962 fi
14963 ;;
14964
14965 *) ;; # Ignore the rest.
14966
14967 esac
14968 done
14969
14970 # Clean up.
14971 rm -f a.out a.exe
14972 else
14973 echo "libtool.m4: error: problem compiling CXX test program"
14974 fi
14975
14976 $RM -f confest.$objext
14977
14978 # PORTME: override above test on systems where it is broken
14979 case $host_os in
14980 interix[3-9]*)
14981 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14982 # hack all around it, let's just trust "g++" to DTRT.
14983 predep_objects_CXX=
14984 postdep_objects_CXX=
14985 postdeps_CXX=
14986 ;;
14987
14988 linux*)
14989 case `$CC -V 2>&1 | sed 5q` in
14990 *Sun\ C*)
14991 # Sun C++ 5.9
14992
14993 # The more standards-conforming stlport4 library is
14994 # incompatible with the Cstd library. Avoid specifying
14995 # it if it's in CXXFLAGS. Ignore libCrun as
14996 # -library=stlport4 depends on it.
14997 case " $CXX $CXXFLAGS " in
14998 *" -library=stlport4 "*)
14999 solaris_use_stlport4=yes
15000 ;;
15001 esac
15002
15003 if test "$solaris_use_stlport4" != yes; then
15004 postdeps_CXX='-library=Cstd -library=Crun'
15005 fi
15006 ;;
15007 esac
15008 ;;
15009
15010 solaris*)
15011 case $cc_basename in
15012 CC*)
15013 # The more standards-conforming stlport4 library is
15014 # incompatible with the Cstd library. Avoid specifying
15015 # it if it's in CXXFLAGS. Ignore libCrun as
15016 # -library=stlport4 depends on it.
15017 case " $CXX $CXXFLAGS " in
15018 *" -library=stlport4 "*)
15019 solaris_use_stlport4=yes
15020 ;;
15021 esac
15022
15023 # Adding this requires a known-good setup of shared libraries for
15024 # Sun compiler versions before 5.6, else PIC objects from an old
15025 # archive will be linked into the output, leading to subtle bugs.
15026 if test "$solaris_use_stlport4" != yes; then
15027 postdeps_CXX='-library=Cstd -library=Crun'
15028 fi
15029 ;;
15030 esac
15031 ;;
15032 esac
15033
15034
15035 case " $postdeps_CXX " in
15036 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15037 esac
15038 compiler_lib_search_dirs_CXX=
15039 if test -n "${compiler_lib_search_path_CXX}"; then
15040 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15041 fi
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073 lt_prog_compiler_wl_CXX=
15074 lt_prog_compiler_pic_CXX=
15075 lt_prog_compiler_static_CXX=
15076
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15078 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15079
15080 # C++ specific cases for pic, static, wl, etc.
15081 if test "$GXX" = yes; then
15082 lt_prog_compiler_wl_CXX='-Wl,'
15083 lt_prog_compiler_static_CXX='-static'
15084
15085 case $host_os in
15086 aix*)
15087 # All AIX code is PIC.
15088 if test "$host_cpu" = ia64; then
15089 # AIX 5 now supports IA64 processor
15090 lt_prog_compiler_static_CXX='-Bstatic'
15091 fi
15092 ;;
15093
15094 amigaos*)
15095 case $host_cpu in
15096 powerpc)
15097 # see comment about AmigaOS4 .so support
15098 lt_prog_compiler_pic_CXX='-fPIC'
15099 ;;
15100 m68k)
15101 # FIXME: we need at least 68020 code to build shared libraries, but
15102 # adding the `-m68020' flag to GCC prevents building anything better,
15103 # like `-m68040'.
15104 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15105 ;;
15106 esac
15107 ;;
15108
15109 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15110 # PIC is the default for these OSes.
15111 ;;
15112 mingw* | cygwin* | os2* | pw32* | cegcc*)
15113 # This hack is so that the source file can tell whether it is being
15114 # built for inclusion in a dll (and should export symbols for example).
15115 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15116 # (--disable-auto-import) libraries
15117 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15118 ;;
15119 darwin* | rhapsody*)
15120 # PIC is the default on this platform
15121 # Common symbols not allowed in MH_DYLIB files
15122 lt_prog_compiler_pic_CXX='-fno-common'
15123 ;;
15124 *djgpp*)
15125 # DJGPP does not support shared libraries at all
15126 lt_prog_compiler_pic_CXX=
15127 ;;
15128 haiku*)
15129 # PIC is the default for Haiku.
15130 # The "-static" flag exists, but is broken.
15131 lt_prog_compiler_static_CXX=
15132 ;;
15133 interix[3-9]*)
15134 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15135 # Instead, we relocate shared libraries at runtime.
15136 ;;
15137 sysv4*MP*)
15138 if test -d /usr/nec; then
15139 lt_prog_compiler_pic_CXX=-Kconform_pic
15140 fi
15141 ;;
15142 hpux*)
15143 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15144 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15145 # sets the default TLS model and affects inlining.
15146 case $host_cpu in
15147 hppa*64*)
15148 ;;
15149 *)
15150 lt_prog_compiler_pic_CXX='-fPIC'
15151 ;;
15152 esac
15153 ;;
15154 *qnx* | *nto*)
15155 # QNX uses GNU C++, but need to define -shared option too, otherwise
15156 # it will coredump.
15157 lt_prog_compiler_pic_CXX='-fPIC -shared'
15158 ;;
15159 *)
15160 lt_prog_compiler_pic_CXX='-fPIC'
15161 ;;
15162 esac
15163 else
15164 case $host_os in
15165 aix[4-9]*)
15166 # All AIX code is PIC.
15167 if test "$host_cpu" = ia64; then
15168 # AIX 5 now supports IA64 processor
15169 lt_prog_compiler_static_CXX='-Bstatic'
15170 else
15171 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15172 fi
15173 ;;
15174 chorus*)
15175 case $cc_basename in
15176 cxch68*)
15177 # Green Hills C++ Compiler
15178 # _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"
15179 ;;
15180 esac
15181 ;;
15182 dgux*)
15183 case $cc_basename in
15184 ec++*)
15185 lt_prog_compiler_pic_CXX='-KPIC'
15186 ;;
15187 ghcx*)
15188 # Green Hills C++ Compiler
15189 lt_prog_compiler_pic_CXX='-pic'
15190 ;;
15191 *)
15192 ;;
15193 esac
15194 ;;
15195 freebsd* | dragonfly*)
15196 # FreeBSD uses GNU C++
15197 ;;
15198 hpux9* | hpux10* | hpux11*)
15199 case $cc_basename in
15200 CC*)
15201 lt_prog_compiler_wl_CXX='-Wl,'
15202 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15203 if test "$host_cpu" != ia64; then
15204 lt_prog_compiler_pic_CXX='+Z'
15205 fi
15206 ;;
15207 aCC*)
15208 lt_prog_compiler_wl_CXX='-Wl,'
15209 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15210 case $host_cpu in
15211 hppa*64*|ia64*)
15212 # +Z the default
15213 ;;
15214 *)
15215 lt_prog_compiler_pic_CXX='+Z'
15216 ;;
15217 esac
15218 ;;
15219 *)
15220 ;;
15221 esac
15222 ;;
15223 interix*)
15224 # This is c89, which is MS Visual C++ (no shared libs)
15225 # Anyone wants to do a port?
15226 ;;
15227 irix5* | irix6* | nonstopux*)
15228 case $cc_basename in
15229 CC*)
15230 lt_prog_compiler_wl_CXX='-Wl,'
15231 lt_prog_compiler_static_CXX='-non_shared'
15232 # CC pic flag -KPIC is the default.
15233 ;;
15234 *)
15235 ;;
15236 esac
15237 ;;
15238 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15239 case $cc_basename in
15240 KCC*)
15241 # KAI C++ Compiler
15242 lt_prog_compiler_wl_CXX='--backend -Wl,'
15243 lt_prog_compiler_pic_CXX='-fPIC'
15244 ;;
15245 ecpc* )
15246 # old Intel C++ for x86_64 which still supported -KPIC.
15247 lt_prog_compiler_wl_CXX='-Wl,'
15248 lt_prog_compiler_pic_CXX='-KPIC'
15249 lt_prog_compiler_static_CXX='-static'
15250 ;;
15251 icpc* )
15252 # Intel C++, used to be incompatible with GCC.
15253 # ICC 10 doesn't accept -KPIC any more.
15254 lt_prog_compiler_wl_CXX='-Wl,'
15255 lt_prog_compiler_pic_CXX='-fPIC'
15256 lt_prog_compiler_static_CXX='-static'
15257 ;;
15258 pgCC* | pgcpp*)
15259 # Portland Group C++ compiler
15260 lt_prog_compiler_wl_CXX='-Wl,'
15261 lt_prog_compiler_pic_CXX='-fpic'
15262 lt_prog_compiler_static_CXX='-Bstatic'
15263 ;;
15264 cxx*)
15265 # Compaq C++
15266 # Make sure the PIC flag is empty. It appears that all Alpha
15267 # Linux and Compaq Tru64 Unix objects are PIC.
15268 lt_prog_compiler_pic_CXX=
15269 lt_prog_compiler_static_CXX='-non_shared'
15270 ;;
15271 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15272 # IBM XL 8.0, 9.0 on PPC and BlueGene
15273 lt_prog_compiler_wl_CXX='-Wl,'
15274 lt_prog_compiler_pic_CXX='-qpic'
15275 lt_prog_compiler_static_CXX='-qstaticlink'
15276 ;;
15277 *)
15278 case `$CC -V 2>&1 | sed 5q` in
15279 *Sun\ C*)
15280 # Sun C++ 5.9
15281 lt_prog_compiler_pic_CXX='-KPIC'
15282 lt_prog_compiler_static_CXX='-Bstatic'
15283 lt_prog_compiler_wl_CXX='-Qoption ld '
15284 ;;
15285 esac
15286 ;;
15287 esac
15288 ;;
15289 lynxos*)
15290 ;;
15291 m88k*)
15292 ;;
15293 mvs*)
15294 case $cc_basename in
15295 cxx*)
15296 lt_prog_compiler_pic_CXX='-W c,exportall'
15297 ;;
15298 *)
15299 ;;
15300 esac
15301 ;;
15302 netbsd*)
15303 ;;
15304 *qnx* | *nto*)
15305 # QNX uses GNU C++, but need to define -shared option too, otherwise
15306 # it will coredump.
15307 lt_prog_compiler_pic_CXX='-fPIC -shared'
15308 ;;
15309 osf3* | osf4* | osf5*)
15310 case $cc_basename in
15311 KCC*)
15312 lt_prog_compiler_wl_CXX='--backend -Wl,'
15313 ;;
15314 RCC*)
15315 # Rational C++ 2.4.1
15316 lt_prog_compiler_pic_CXX='-pic'
15317 ;;
15318 cxx*)
15319 # Digital/Compaq C++
15320 lt_prog_compiler_wl_CXX='-Wl,'
15321 # Make sure the PIC flag is empty. It appears that all Alpha
15322 # Linux and Compaq Tru64 Unix objects are PIC.
15323 lt_prog_compiler_pic_CXX=
15324 lt_prog_compiler_static_CXX='-non_shared'
15325 ;;
15326 *)
15327 ;;
15328 esac
15329 ;;
15330 psos*)
15331 ;;
15332 solaris*)
15333 case $cc_basename in
15334 CC*)
15335 # Sun C++ 4.2, 5.x and Centerline C++
15336 lt_prog_compiler_pic_CXX='-KPIC'
15337 lt_prog_compiler_static_CXX='-Bstatic'
15338 lt_prog_compiler_wl_CXX='-Qoption ld '
15339 ;;
15340 gcx*)
15341 # Green Hills C++ Compiler
15342 lt_prog_compiler_pic_CXX='-PIC'
15343 ;;
15344 *)
15345 ;;
15346 esac
15347 ;;
15348 sunos4*)
15349 case $cc_basename in
15350 CC*)
15351 # Sun C++ 4.x
15352 lt_prog_compiler_pic_CXX='-pic'
15353 lt_prog_compiler_static_CXX='-Bstatic'
15354 ;;
15355 lcc*)
15356 # Lucid
15357 lt_prog_compiler_pic_CXX='-pic'
15358 ;;
15359 *)
15360 ;;
15361 esac
15362 ;;
15363 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15364 case $cc_basename in
15365 CC*)
15366 lt_prog_compiler_wl_CXX='-Wl,'
15367 lt_prog_compiler_pic_CXX='-KPIC'
15368 lt_prog_compiler_static_CXX='-Bstatic'
15369 ;;
15370 esac
15371 ;;
15372 tandem*)
15373 case $cc_basename in
15374 NCC*)
15375 # NonStop-UX NCC 3.20
15376 lt_prog_compiler_pic_CXX='-KPIC'
15377 ;;
15378 *)
15379 ;;
15380 esac
15381 ;;
15382 vxworks*)
15383 ;;
15384 *)
15385 lt_prog_compiler_can_build_shared_CXX=no
15386 ;;
15387 esac
15388 fi
15389
15390 case $host_os in
15391 # For platforms which do not support PIC, -DPIC is meaningless:
15392 *djgpp*)
15393 lt_prog_compiler_pic_CXX=
15394 ;;
15395 *)
15396 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15397 ;;
15398 esac
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15400 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15401
15402
15403
15404 #
15405 # Check to make sure the PIC flag actually works.
15406 #
15407 if test -n "$lt_prog_compiler_pic_CXX"; then
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15409 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15410 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15411 $as_echo_n "(cached) " >&6
15412 else
15413 lt_cv_prog_compiler_pic_works_CXX=no
15414 ac_outfile=conftest.$ac_objext
15415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15416 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15417 # Insert the option either (1) after the last *FLAGS variable, or
15418 # (2) before a word containing "conftest.", or (3) at the end.
15419 # Note that $ac_compile itself does not contain backslashes and begins
15420 # with a dollar sign (not a hyphen), so the echo should work correctly.
15421 # The option is referenced via a variable to avoid confusing sed.
15422 lt_compile=`echo "$ac_compile" | $SED \
15423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15425 -e 's:$: $lt_compiler_flag:'`
15426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15427 (eval "$lt_compile" 2>conftest.err)
15428 ac_status=$?
15429 cat conftest.err >&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 if (exit $ac_status) && test -s "$ac_outfile"; then
15432 # The compiler can only warn and ignore the option if not recognized
15433 # So say no if there are warnings other than the usual output.
15434 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15436 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15437 lt_cv_prog_compiler_pic_works_CXX=yes
15438 fi
15439 fi
15440 $RM conftest*
15441
15442 fi
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15444 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15445
15446 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15447 case $lt_prog_compiler_pic_CXX in
15448 "" | " "*) ;;
15449 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15450 esac
15451 else
15452 lt_prog_compiler_pic_CXX=
15453 lt_prog_compiler_can_build_shared_CXX=no
15454 fi
15455
15456 fi
15457
15458
15459
15460 #
15461 # Check to make sure the static flag actually works.
15462 #
15463 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15465 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15466 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15467 $as_echo_n "(cached) " >&6
15468 else
15469 lt_cv_prog_compiler_static_works_CXX=no
15470 save_LDFLAGS="$LDFLAGS"
15471 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15472 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15473 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15474 # The linker can only warn and ignore the option if not recognized
15475 # So say no if there are warnings
15476 if test -s conftest.err; then
15477 # Append any errors to the config.log.
15478 cat conftest.err 1>&5
15479 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15480 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15481 if diff conftest.exp conftest.er2 >/dev/null; then
15482 lt_cv_prog_compiler_static_works_CXX=yes
15483 fi
15484 else
15485 lt_cv_prog_compiler_static_works_CXX=yes
15486 fi
15487 fi
15488 $RM -r conftest*
15489 LDFLAGS="$save_LDFLAGS"
15490
15491 fi
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15493 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15494
15495 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15496 :
15497 else
15498 lt_prog_compiler_static_CXX=
15499 fi
15500
15501
15502
15503
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15505 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15506 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15507 $as_echo_n "(cached) " >&6
15508 else
15509 lt_cv_prog_compiler_c_o_CXX=no
15510 $RM -r conftest 2>/dev/null
15511 mkdir conftest
15512 cd conftest
15513 mkdir out
15514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15515
15516 lt_compiler_flag="-o out/conftest2.$ac_objext"
15517 # Insert the option either (1) after the last *FLAGS variable, or
15518 # (2) before a word containing "conftest.", or (3) at the end.
15519 # Note that $ac_compile itself does not contain backslashes and begins
15520 # with a dollar sign (not a hyphen), so the echo should work correctly.
15521 lt_compile=`echo "$ac_compile" | $SED \
15522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15524 -e 's:$: $lt_compiler_flag:'`
15525 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15526 (eval "$lt_compile" 2>out/conftest.err)
15527 ac_status=$?
15528 cat out/conftest.err >&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15531 then
15532 # The compiler can only warn and ignore the option if not recognized
15533 # So say no if there are warnings
15534 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15535 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15536 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15537 lt_cv_prog_compiler_c_o_CXX=yes
15538 fi
15539 fi
15540 chmod u+w . 2>&5
15541 $RM conftest*
15542 # SGI C++ compiler will create directory out/ii_files/ for
15543 # template instantiation
15544 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15545 $RM out/* && rmdir out
15546 cd ..
15547 $RM -r conftest
15548 $RM conftest*
15549
15550 fi
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15552 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15553
15554
15555
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15557 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15558 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15559 $as_echo_n "(cached) " >&6
15560 else
15561 lt_cv_prog_compiler_c_o_CXX=no
15562 $RM -r conftest 2>/dev/null
15563 mkdir conftest
15564 cd conftest
15565 mkdir out
15566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15567
15568 lt_compiler_flag="-o out/conftest2.$ac_objext"
15569 # Insert the option either (1) after the last *FLAGS variable, or
15570 # (2) before a word containing "conftest.", or (3) at the end.
15571 # Note that $ac_compile itself does not contain backslashes and begins
15572 # with a dollar sign (not a hyphen), so the echo should work correctly.
15573 lt_compile=`echo "$ac_compile" | $SED \
15574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15576 -e 's:$: $lt_compiler_flag:'`
15577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15578 (eval "$lt_compile" 2>out/conftest.err)
15579 ac_status=$?
15580 cat out/conftest.err >&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15583 then
15584 # The compiler can only warn and ignore the option if not recognized
15585 # So say no if there are warnings
15586 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15587 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15588 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15589 lt_cv_prog_compiler_c_o_CXX=yes
15590 fi
15591 fi
15592 chmod u+w . 2>&5
15593 $RM conftest*
15594 # SGI C++ compiler will create directory out/ii_files/ for
15595 # template instantiation
15596 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15597 $RM out/* && rmdir out
15598 cd ..
15599 $RM -r conftest
15600 $RM conftest*
15601
15602 fi
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15604 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15605
15606
15607
15608
15609 hard_links="nottested"
15610 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15611 # do not overwrite the value of need_locks provided by the user
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15613 $as_echo_n "checking if we can lock with hard links... " >&6; }
15614 hard_links=yes
15615 $RM conftest*
15616 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15617 touch conftest.a
15618 ln conftest.a conftest.b 2>&5 || hard_links=no
15619 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15621 $as_echo "$hard_links" >&6; }
15622 if test "$hard_links" = no; then
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15624 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15625 need_locks=warn
15626 fi
15627 else
15628 need_locks=no
15629 fi
15630
15631
15632
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15634 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15635
15636 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15637 case $host_os in
15638 aix[4-9]*)
15639 # If we're using GNU nm, then we don't want the "-C" option.
15640 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15641 # Also, AIX nm treats weak defined symbols like other global defined
15642 # symbols, whereas GNU nm marks them as "W".
15643 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15644 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15645 else
15646 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'
15647 fi
15648 ;;
15649 pw32*)
15650 export_symbols_cmds_CXX="$ltdll_cmds"
15651 ;;
15652 cygwin* | mingw* | cegcc*)
15653 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'
15654 ;;
15655 *)
15656 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15657 ;;
15658 esac
15659 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15660
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15662 $as_echo "$ld_shlibs_CXX" >&6; }
15663 test "$ld_shlibs_CXX" = no && can_build_shared=no
15664
15665 with_gnu_ld_CXX=$with_gnu_ld
15666
15667
15668
15669
15670
15671
15672 #
15673 # Do we need to explicitly link libc?
15674 #
15675 case "x$archive_cmds_need_lc_CXX" in
15676 x|xyes)
15677 # Assume -lc should be added
15678 archive_cmds_need_lc_CXX=yes
15679
15680 if test "$enable_shared" = yes && test "$GCC" = yes; then
15681 case $archive_cmds_CXX in
15682 *'~'*)
15683 # FIXME: we may have to deal with multi-command sequences.
15684 ;;
15685 '$CC '*)
15686 # Test whether the compiler implicitly links with -lc since on some
15687 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15688 # to ld, don't add -lc before -lgcc.
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15690 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15691 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15692 $as_echo_n "(cached) " >&6
15693 else
15694 $RM conftest*
15695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15696
15697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15698 (eval $ac_compile) 2>&5
15699 ac_status=$?
15700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15701 test $ac_status = 0; } 2>conftest.err; then
15702 soname=conftest
15703 lib=conftest
15704 libobjs=conftest.$ac_objext
15705 deplibs=
15706 wl=$lt_prog_compiler_wl_CXX
15707 pic_flag=$lt_prog_compiler_pic_CXX
15708 compiler_flags=-v
15709 linker_flags=-v
15710 verstring=
15711 output_objdir=.
15712 libname=conftest
15713 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15714 allow_undefined_flag_CXX=
15715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15716 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15717 ac_status=$?
15718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15719 test $ac_status = 0; }
15720 then
15721 lt_cv_archive_cmds_need_lc_CXX=no
15722 else
15723 lt_cv_archive_cmds_need_lc_CXX=yes
15724 fi
15725 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15726 else
15727 cat conftest.err 1>&5
15728 fi
15729 $RM conftest*
15730
15731 fi
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15733 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15734 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15735 ;;
15736 esac
15737 fi
15738 ;;
15739 esac
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15805 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15806
15807 library_names_spec=
15808 libname_spec='lib$name'
15809 soname_spec=
15810 shrext_cmds=".so"
15811 postinstall_cmds=
15812 postuninstall_cmds=
15813 finish_cmds=
15814 finish_eval=
15815 shlibpath_var=
15816 shlibpath_overrides_runpath=unknown
15817 version_type=none
15818 dynamic_linker="$host_os ld.so"
15819 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15820 need_lib_prefix=unknown
15821 hardcode_into_libs=no
15822
15823 # when you set need_version to no, make sure it does not cause -set_version
15824 # flags to be left without arguments
15825 need_version=unknown
15826
15827 case $host_os in
15828 aix3*)
15829 version_type=linux
15830 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15831 shlibpath_var=LIBPATH
15832
15833 # AIX 3 has no versioning support, so we append a major version to the name.
15834 soname_spec='${libname}${release}${shared_ext}$major'
15835 ;;
15836
15837 aix[4-9]*)
15838 version_type=linux
15839 need_lib_prefix=no
15840 need_version=no
15841 hardcode_into_libs=yes
15842 if test "$host_cpu" = ia64; then
15843 # AIX 5 supports IA64
15844 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15845 shlibpath_var=LD_LIBRARY_PATH
15846 else
15847 # With GCC up to 2.95.x, collect2 would create an import file
15848 # for dependence libraries. The import file would start with
15849 # the line `#! .'. This would cause the generated library to
15850 # depend on `.', always an invalid library. This was fixed in
15851 # development snapshots of GCC prior to 3.0.
15852 case $host_os in
15853 aix4 | aix4.[01] | aix4.[01].*)
15854 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15855 echo ' yes '
15856 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15857 :
15858 else
15859 can_build_shared=no
15860 fi
15861 ;;
15862 esac
15863 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15864 # soname into executable. Probably we can add versioning support to
15865 # collect2, so additional links can be useful in future.
15866 if test "$aix_use_runtimelinking" = yes; then
15867 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15868 # instead of lib<name>.a to let people know that these are not
15869 # typical AIX shared libraries.
15870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15871 else
15872 # We preserve .a as extension for shared libraries through AIX4.2
15873 # and later when we are not doing run time linking.
15874 library_names_spec='${libname}${release}.a $libname.a'
15875 soname_spec='${libname}${release}${shared_ext}$major'
15876 fi
15877 shlibpath_var=LIBPATH
15878 fi
15879 ;;
15880
15881 amigaos*)
15882 case $host_cpu in
15883 powerpc)
15884 # Since July 2007 AmigaOS4 officially supports .so libraries.
15885 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15887 ;;
15888 m68k)
15889 library_names_spec='$libname.ixlibrary $libname.a'
15890 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15891 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15892 ;;
15893 esac
15894 ;;
15895
15896 beos*)
15897 library_names_spec='${libname}${shared_ext}'
15898 dynamic_linker="$host_os ld.so"
15899 shlibpath_var=LIBRARY_PATH
15900 ;;
15901
15902 bsdi[45]*)
15903 version_type=linux
15904 need_version=no
15905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15906 soname_spec='${libname}${release}${shared_ext}$major'
15907 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15908 shlibpath_var=LD_LIBRARY_PATH
15909 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15910 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15911 # the default ld.so.conf also contains /usr/contrib/lib and
15912 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15913 # libtool to hard-code these into programs
15914 ;;
15915
15916 cygwin* | mingw* | pw32* | cegcc*)
15917 version_type=windows
15918 shrext_cmds=".dll"
15919 need_version=no
15920 need_lib_prefix=no
15921
15922 case $GCC,$host_os in
15923 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15924 library_names_spec='$libname.dll.a'
15925 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15926 postinstall_cmds='base_file=`basename \${file}`~
15927 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15928 dldir=$destdir/`dirname \$dlpath`~
15929 test -d \$dldir || mkdir -p \$dldir~
15930 $install_prog $dir/$dlname \$dldir/$dlname~
15931 chmod a+x \$dldir/$dlname~
15932 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15933 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15934 fi'
15935 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15936 dlpath=$dir/\$dldll~
15937 $RM \$dlpath'
15938 shlibpath_overrides_runpath=yes
15939
15940 case $host_os in
15941 cygwin*)
15942 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15943 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15944
15945 ;;
15946 mingw* | cegcc*)
15947 # MinGW DLLs use traditional 'lib' prefix
15948 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15949 ;;
15950 pw32*)
15951 # pw32 DLLs use 'pw' prefix rather than 'lib'
15952 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15953 ;;
15954 esac
15955 ;;
15956
15957 *)
15958 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15959 ;;
15960 esac
15961 dynamic_linker='Win32 ld.exe'
15962 # FIXME: first we should search . and the directory the executable is in
15963 shlibpath_var=PATH
15964 ;;
15965
15966 darwin* | rhapsody*)
15967 dynamic_linker="$host_os dyld"
15968 version_type=darwin
15969 need_lib_prefix=no
15970 need_version=no
15971 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15972 soname_spec='${libname}${release}${major}$shared_ext'
15973 shlibpath_overrides_runpath=yes
15974 shlibpath_var=DYLD_LIBRARY_PATH
15975 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15976
15977 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15978 ;;
15979
15980 dgux*)
15981 version_type=linux
15982 need_lib_prefix=no
15983 need_version=no
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15985 soname_spec='${libname}${release}${shared_ext}$major'
15986 shlibpath_var=LD_LIBRARY_PATH
15987 ;;
15988
15989 freebsd1*)
15990 dynamic_linker=no
15991 ;;
15992
15993 freebsd* | dragonfly*)
15994 # DragonFly does not have aout. When/if they implement a new
15995 # versioning mechanism, adjust this.
15996 if test -x /usr/bin/objformat; then
15997 objformat=`/usr/bin/objformat`
15998 else
15999 case $host_os in
16000 freebsd[123]*) objformat=aout ;;
16001 *) objformat=elf ;;
16002 esac
16003 fi
16004 version_type=freebsd-$objformat
16005 case $version_type in
16006 freebsd-elf*)
16007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16008 need_version=no
16009 need_lib_prefix=no
16010 ;;
16011 freebsd-*)
16012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16013 need_version=yes
16014 ;;
16015 esac
16016 shlibpath_var=LD_LIBRARY_PATH
16017 case $host_os in
16018 freebsd2*)
16019 shlibpath_overrides_runpath=yes
16020 ;;
16021 freebsd3.[01]* | freebsdelf3.[01]*)
16022 shlibpath_overrides_runpath=yes
16023 hardcode_into_libs=yes
16024 ;;
16025 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16026 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16027 shlibpath_overrides_runpath=no
16028 hardcode_into_libs=yes
16029 ;;
16030 *) # from 4.6 on, and DragonFly
16031 shlibpath_overrides_runpath=yes
16032 hardcode_into_libs=yes
16033 ;;
16034 esac
16035 ;;
16036
16037 gnu*)
16038 version_type=linux
16039 need_lib_prefix=no
16040 need_version=no
16041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16042 soname_spec='${libname}${release}${shared_ext}$major'
16043 shlibpath_var=LD_LIBRARY_PATH
16044 hardcode_into_libs=yes
16045 ;;
16046
16047 haiku*)
16048 version_type=linux
16049 need_lib_prefix=no
16050 need_version=no
16051 dynamic_linker="$host_os runtime_loader"
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16053 soname_spec='${libname}${release}${shared_ext}$major'
16054 shlibpath_var=LIBRARY_PATH
16055 shlibpath_overrides_runpath=yes
16056 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16057 hardcode_into_libs=yes
16058 ;;
16059
16060 hpux9* | hpux10* | hpux11*)
16061 # Give a soname corresponding to the major version so that dld.sl refuses to
16062 # link against other versions.
16063 version_type=sunos
16064 need_lib_prefix=no
16065 need_version=no
16066 case $host_cpu in
16067 ia64*)
16068 shrext_cmds='.so'
16069 hardcode_into_libs=yes
16070 dynamic_linker="$host_os dld.so"
16071 shlibpath_var=LD_LIBRARY_PATH
16072 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16074 soname_spec='${libname}${release}${shared_ext}$major'
16075 if test "X$HPUX_IA64_MODE" = X32; then
16076 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16077 else
16078 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16079 fi
16080 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16081 ;;
16082 hppa*64*)
16083 shrext_cmds='.sl'
16084 hardcode_into_libs=yes
16085 dynamic_linker="$host_os dld.sl"
16086 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16089 soname_spec='${libname}${release}${shared_ext}$major'
16090 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16091 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16092 ;;
16093 *)
16094 shrext_cmds='.sl'
16095 dynamic_linker="$host_os dld.sl"
16096 shlibpath_var=SHLIB_PATH
16097 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16099 soname_spec='${libname}${release}${shared_ext}$major'
16100 ;;
16101 esac
16102 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16103 postinstall_cmds='chmod 555 $lib'
16104 # or fails outright, so override atomically:
16105 install_override_mode=555
16106 ;;
16107
16108 interix[3-9]*)
16109 version_type=linux
16110 need_lib_prefix=no
16111 need_version=no
16112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16113 soname_spec='${libname}${release}${shared_ext}$major'
16114 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16115 shlibpath_var=LD_LIBRARY_PATH
16116 shlibpath_overrides_runpath=no
16117 hardcode_into_libs=yes
16118 ;;
16119
16120 irix5* | irix6* | nonstopux*)
16121 case $host_os in
16122 nonstopux*) version_type=nonstopux ;;
16123 *)
16124 if test "$lt_cv_prog_gnu_ld" = yes; then
16125 version_type=linux
16126 else
16127 version_type=irix
16128 fi ;;
16129 esac
16130 need_lib_prefix=no
16131 need_version=no
16132 soname_spec='${libname}${release}${shared_ext}$major'
16133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16134 case $host_os in
16135 irix5* | nonstopux*)
16136 libsuff= shlibsuff=
16137 ;;
16138 *)
16139 case $LD in # libtool.m4 will add one of these switches to LD
16140 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16141 libsuff= shlibsuff= libmagic=32-bit;;
16142 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16143 libsuff=32 shlibsuff=N32 libmagic=N32;;
16144 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16145 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16146 *) libsuff= shlibsuff= libmagic=never-match;;
16147 esac
16148 ;;
16149 esac
16150 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16151 shlibpath_overrides_runpath=no
16152 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16153 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16154 hardcode_into_libs=yes
16155 ;;
16156
16157 # No shared lib support for Linux oldld, aout, or coff.
16158 linux*oldld* | linux*aout* | linux*coff*)
16159 dynamic_linker=no
16160 ;;
16161
16162 # This must be Linux ELF.
16163 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16164 version_type=linux
16165 need_lib_prefix=no
16166 need_version=no
16167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16168 soname_spec='${libname}${release}${shared_ext}$major'
16169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16170 shlibpath_var=LD_LIBRARY_PATH
16171 shlibpath_overrides_runpath=no
16172
16173 # Some binutils ld are patched to set DT_RUNPATH
16174 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16175 $as_echo_n "(cached) " >&6
16176 else
16177 lt_cv_shlibpath_overrides_runpath=no
16178 save_LDFLAGS=$LDFLAGS
16179 save_libdir=$libdir
16180 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16181 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16182 if test x$gcc_no_link = xyes; then
16183 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16184 fi
16185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16186 /* end confdefs.h. */
16187
16188 int
16189 main ()
16190 {
16191
16192 ;
16193 return 0;
16194 }
16195 _ACEOF
16196 if ac_fn_cxx_try_link "$LINENO"; then :
16197 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16198 lt_cv_shlibpath_overrides_runpath=yes
16199 fi
16200 fi
16201 rm -f core conftest.err conftest.$ac_objext \
16202 conftest$ac_exeext conftest.$ac_ext
16203 LDFLAGS=$save_LDFLAGS
16204 libdir=$save_libdir
16205
16206 fi
16207
16208 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16209
16210 # This implies no fast_install, which is unacceptable.
16211 # Some rework will be needed to allow for fast_install
16212 # before this can be enabled.
16213 hardcode_into_libs=yes
16214
16215 # Append ld.so.conf contents to the search path
16216 if test -f /etc/ld.so.conf; then
16217 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16218 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16219 fi
16220
16221 # We used to test for /lib/ld.so.1 and disable shared libraries on
16222 # powerpc, because MkLinux only supported shared libraries with the
16223 # GNU dynamic linker. Since this was broken with cross compilers,
16224 # most powerpc-linux boxes support dynamic linking these days and
16225 # people can always --disable-shared, the test was removed, and we
16226 # assume the GNU/Linux dynamic linker is in use.
16227 dynamic_linker='GNU/Linux ld.so'
16228 ;;
16229
16230 netbsd*)
16231 version_type=sunos
16232 need_lib_prefix=no
16233 need_version=no
16234 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16237 dynamic_linker='NetBSD (a.out) ld.so'
16238 else
16239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16240 soname_spec='${libname}${release}${shared_ext}$major'
16241 dynamic_linker='NetBSD ld.elf_so'
16242 fi
16243 shlibpath_var=LD_LIBRARY_PATH
16244 shlibpath_overrides_runpath=yes
16245 hardcode_into_libs=yes
16246 ;;
16247
16248 newsos6)
16249 version_type=linux
16250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16251 shlibpath_var=LD_LIBRARY_PATH
16252 shlibpath_overrides_runpath=yes
16253 ;;
16254
16255 *nto* | *qnx*)
16256 version_type=qnx
16257 need_lib_prefix=no
16258 need_version=no
16259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16260 soname_spec='${libname}${release}${shared_ext}$major'
16261 shlibpath_var=LD_LIBRARY_PATH
16262 shlibpath_overrides_runpath=no
16263 hardcode_into_libs=yes
16264 dynamic_linker='ldqnx.so'
16265 ;;
16266
16267 openbsd*)
16268 version_type=sunos
16269 sys_lib_dlsearch_path_spec="/usr/lib"
16270 need_lib_prefix=no
16271 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16272 case $host_os in
16273 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16274 *) need_version=no ;;
16275 esac
16276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16278 shlibpath_var=LD_LIBRARY_PATH
16279 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16280 case $host_os in
16281 openbsd2.[89] | openbsd2.[89].*)
16282 shlibpath_overrides_runpath=no
16283 ;;
16284 *)
16285 shlibpath_overrides_runpath=yes
16286 ;;
16287 esac
16288 else
16289 shlibpath_overrides_runpath=yes
16290 fi
16291 ;;
16292
16293 os2*)
16294 libname_spec='$name'
16295 shrext_cmds=".dll"
16296 need_lib_prefix=no
16297 library_names_spec='$libname${shared_ext} $libname.a'
16298 dynamic_linker='OS/2 ld.exe'
16299 shlibpath_var=LIBPATH
16300 ;;
16301
16302 osf3* | osf4* | osf5*)
16303 version_type=osf
16304 need_lib_prefix=no
16305 need_version=no
16306 soname_spec='${libname}${release}${shared_ext}$major'
16307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16308 shlibpath_var=LD_LIBRARY_PATH
16309 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16310 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16311 ;;
16312
16313 rdos*)
16314 dynamic_linker=no
16315 ;;
16316
16317 solaris*)
16318 version_type=linux
16319 need_lib_prefix=no
16320 need_version=no
16321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 shlibpath_var=LD_LIBRARY_PATH
16324 shlibpath_overrides_runpath=yes
16325 hardcode_into_libs=yes
16326 # ldd complains unless libraries are executable
16327 postinstall_cmds='chmod +x $lib'
16328 ;;
16329
16330 sunos4*)
16331 version_type=sunos
16332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16333 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16334 shlibpath_var=LD_LIBRARY_PATH
16335 shlibpath_overrides_runpath=yes
16336 if test "$with_gnu_ld" = yes; then
16337 need_lib_prefix=no
16338 fi
16339 need_version=yes
16340 ;;
16341
16342 sysv4 | sysv4.3*)
16343 version_type=linux
16344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16345 soname_spec='${libname}${release}${shared_ext}$major'
16346 shlibpath_var=LD_LIBRARY_PATH
16347 case $host_vendor in
16348 sni)
16349 shlibpath_overrides_runpath=no
16350 need_lib_prefix=no
16351 runpath_var=LD_RUN_PATH
16352 ;;
16353 siemens)
16354 need_lib_prefix=no
16355 ;;
16356 motorola)
16357 need_lib_prefix=no
16358 need_version=no
16359 shlibpath_overrides_runpath=no
16360 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16361 ;;
16362 esac
16363 ;;
16364
16365 sysv4*MP*)
16366 if test -d /usr/nec ;then
16367 version_type=linux
16368 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16369 soname_spec='$libname${shared_ext}.$major'
16370 shlibpath_var=LD_LIBRARY_PATH
16371 fi
16372 ;;
16373
16374 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16375 version_type=freebsd-elf
16376 need_lib_prefix=no
16377 need_version=no
16378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16379 soname_spec='${libname}${release}${shared_ext}$major'
16380 shlibpath_var=LD_LIBRARY_PATH
16381 shlibpath_overrides_runpath=yes
16382 hardcode_into_libs=yes
16383 if test "$with_gnu_ld" = yes; then
16384 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16385 else
16386 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16387 case $host_os in
16388 sco3.2v5*)
16389 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16390 ;;
16391 esac
16392 fi
16393 sys_lib_dlsearch_path_spec='/usr/lib'
16394 ;;
16395
16396 tpf*)
16397 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16398 version_type=linux
16399 need_lib_prefix=no
16400 need_version=no
16401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16402 shlibpath_var=LD_LIBRARY_PATH
16403 shlibpath_overrides_runpath=no
16404 hardcode_into_libs=yes
16405 ;;
16406
16407 uts4*)
16408 version_type=linux
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410 soname_spec='${libname}${release}${shared_ext}$major'
16411 shlibpath_var=LD_LIBRARY_PATH
16412 ;;
16413
16414 *)
16415 dynamic_linker=no
16416 ;;
16417 esac
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16419 $as_echo "$dynamic_linker" >&6; }
16420 test "$dynamic_linker" = no && can_build_shared=no
16421
16422 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16423 if test "$GCC" = yes; then
16424 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16425 fi
16426
16427 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16428 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16429 fi
16430 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16431 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16432 fi
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16472 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16473 hardcode_action_CXX=
16474 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16475 test -n "$runpath_var_CXX" ||
16476 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16477
16478 # We can hardcode non-existent directories.
16479 if test "$hardcode_direct_CXX" != no &&
16480 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16481 # have to relink, otherwise we might link with an installed library
16482 # when we should be linking with a yet-to-be-installed one
16483 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16484 test "$hardcode_minus_L_CXX" != no; then
16485 # Linking always hardcodes the temporary library directory.
16486 hardcode_action_CXX=relink
16487 else
16488 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16489 hardcode_action_CXX=immediate
16490 fi
16491 else
16492 # We cannot hardcode anything, or else we can only hardcode existing
16493 # directories.
16494 hardcode_action_CXX=unsupported
16495 fi
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16497 $as_echo "$hardcode_action_CXX" >&6; }
16498
16499 if test "$hardcode_action_CXX" = relink ||
16500 test "$inherit_rpath_CXX" = yes; then
16501 # Fast installation is not supported
16502 enable_fast_install=no
16503 elif test "$shlibpath_overrides_runpath" = yes ||
16504 test "$enable_shared" = no; then
16505 # Fast installation is not necessary
16506 enable_fast_install=needless
16507 fi
16508
16509
16510
16511
16512
16513
16514
16515 fi # test -n "$compiler"
16516
16517 CC=$lt_save_CC
16518 LDCXX=$LD
16519 LD=$lt_save_LD
16520 GCC=$lt_save_GCC
16521 with_gnu_ld=$lt_save_with_gnu_ld
16522 lt_cv_path_LDCXX=$lt_cv_path_LD
16523 lt_cv_path_LD=$lt_save_path_LD
16524 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16525 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16526 fi # test "$_lt_caught_CXX_error" != yes
16527
16528 ac_ext=c
16529 ac_cpp='$CPP $CPPFLAGS'
16530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16533
16534
16535
16536 # Handle -Werror default case.
16537 if test "$ENABLE_WERROR" = default; then
16538 case "$host_os" in
16539 *linux*)
16540 if test "$GCC" = yes; then
16541 ENABLE_WERROR=yes
16542 fi
16543 ;;
16544 esac
16545 fi
16546
16547 if test "x${COMPILE_COLLECTIONS}" = xyes; then
16548 # Extract the first word of "perl", so it can be a program name with args.
16549 set dummy perl; ac_word=$2
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16551 $as_echo_n "checking for $ac_word... " >&6; }
16552 if test "${ac_cv_path_PERL+set}" = set; then :
16553 $as_echo_n "(cached) " >&6
16554 else
16555 case $PERL in
16556 [\\/]* | ?:[\\/]*)
16557 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
16558 ;;
16559 *)
16560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16561 for as_dir in $PATH
16562 do
16563 IFS=$as_save_IFS
16564 test -z "$as_dir" && as_dir=.
16565 for ac_exec_ext in '' $ac_executable_extensions; do
16566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16567 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
16568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16569 break 2
16570 fi
16571 done
16572 done
16573 IFS=$as_save_IFS
16574
16575 ;;
16576 esac
16577 fi
16578 PERL=$ac_cv_path_PERL
16579 if test -n "$PERL"; then
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
16581 $as_echo "$PERL" >&6; }
16582 else
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16584 $as_echo "no" >&6; }
16585 fi
16586
16587
16588
16589
16590 ac_config_files="$ac_config_files lib/mkcollections.pl"
16591
16592 ac_config_commands="$ac_config_commands mkcollections.pl"
16593
16594 fi
16595
16596 if test "x${COMPILE_JNI}" = xyes; then
16597
16598
16599
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((,,))" >&5
16601 $as_echo_n "checking __attribute__((,,))... " >&6; }
16602 if test "${gcc_cv_c_gcc_attribute_supported+set}" = set; then :
16603 $as_echo_n "(cached) " >&6
16604 else
16605
16606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16607 /* end confdefs.h. */
16608
16609 int
16610 main ()
16611 {
16612 extern int testfunction(int x) __attribute__((,,))
16613 ;
16614 return 0;
16615 }
16616 _ACEOF
16617 if ac_fn_c_try_compile "$LINENO"; then :
16618 gcc_cv_c_gcc_attribute_supported=yes
16619 else
16620 gcc_cv_c_gcc_attribute_supported=no
16621 fi
16622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16623
16624 fi
16625
16626 if test "x$gcc_cv_c_gcc_attribute_supported" = xyes; then
16627 true
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16629 $as_echo "yes" >&6; }
16630
16631 $as_echo "#define HAVE_GNUC25_ATTRIB /**/" >>confdefs.h
16632
16633
16634 else
16635 true
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16637 $as_echo "no" >&6; }
16638
16639 fi
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((unused))" >&5
16650 $as_echo_n "checking __attribute__((unused))... " >&6; }
16651 if test "${gcc_cv_c_gcc_attribute_unused+set}" = set; then :
16652 $as_echo_n "(cached) " >&6
16653 else
16654
16655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16656 /* end confdefs.h. */
16657
16658 int
16659 main ()
16660 {
16661 extern int testfunction(int x) __attribute__((unused))
16662 ;
16663 return 0;
16664 }
16665 _ACEOF
16666 if ac_fn_c_try_compile "$LINENO"; then :
16667 gcc_cv_c_gcc_attribute_unused=yes
16668 else
16669 gcc_cv_c_gcc_attribute_unused=no
16670 fi
16671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16672
16673 fi
16674
16675 if test "x$gcc_cv_c_gcc_attribute_unused" = xyes; then
16676 true
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16678 $as_echo "yes" >&6; }
16679
16680 $as_echo "#define HAVE_GNUC25_UNUSED /**/" >>confdefs.h
16681
16682
16683 else
16684 true
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16686 $as_echo "no" >&6; }
16687
16688 fi
16689
16690
16691
16692
16693
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16695 $as_echo_n "checking for ANSI C header files... " >&6; }
16696 if test "${ac_cv_header_stdc+set}" = set; then :
16697 $as_echo_n "(cached) " >&6
16698 else
16699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16700 /* end confdefs.h. */
16701 #include <stdlib.h>
16702 #include <stdarg.h>
16703 #include <string.h>
16704 #include <float.h>
16705
16706 int
16707 main ()
16708 {
16709
16710 ;
16711 return 0;
16712 }
16713 _ACEOF
16714 if ac_fn_c_try_compile "$LINENO"; then :
16715 ac_cv_header_stdc=yes
16716 else
16717 ac_cv_header_stdc=no
16718 fi
16719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16720
16721 if test $ac_cv_header_stdc = yes; then
16722 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16724 /* end confdefs.h. */
16725 #include <string.h>
16726
16727 _ACEOF
16728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16729 $EGREP "memchr" >/dev/null 2>&1; then :
16730
16731 else
16732 ac_cv_header_stdc=no
16733 fi
16734 rm -f conftest*
16735
16736 fi
16737
16738 if test $ac_cv_header_stdc = yes; then
16739 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741 /* end confdefs.h. */
16742 #include <stdlib.h>
16743
16744 _ACEOF
16745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16746 $EGREP "free" >/dev/null 2>&1; then :
16747
16748 else
16749 ac_cv_header_stdc=no
16750 fi
16751 rm -f conftest*
16752
16753 fi
16754
16755 if test $ac_cv_header_stdc = yes; then
16756 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16757 if test "$cross_compiling" = yes; then :
16758 :
16759 else
16760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16761 /* end confdefs.h. */
16762 #include <ctype.h>
16763 #include <stdlib.h>
16764 #if ((' ' & 0x0FF) == 0x020)
16765 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16766 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16767 #else
16768 # define ISLOWER(c) \
16769 (('a' <= (c) && (c) <= 'i') \
16770 || ('j' <= (c) && (c) <= 'r') \
16771 || ('s' <= (c) && (c) <= 'z'))
16772 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16773 #endif
16774
16775 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16776 int
16777 main ()
16778 {
16779 int i;
16780 for (i = 0; i < 256; i++)
16781 if (XOR (islower (i), ISLOWER (i))
16782 || toupper (i) != TOUPPER (i))
16783 return 2;
16784 return 0;
16785 }
16786 _ACEOF
16787 if ac_fn_c_try_run "$LINENO"; then :
16788
16789 else
16790 ac_cv_header_stdc=no
16791 fi
16792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16793 conftest.$ac_objext conftest.beam conftest.$ac_ext
16794 fi
16795
16796 fi
16797 fi
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16799 $as_echo "$ac_cv_header_stdc" >&6; }
16800 if test $ac_cv_header_stdc = yes; then
16801
16802 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16803
16804 fi
16805
16806
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16808 $as_echo_n "checking size of void *... " >&6; }
16809 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16810 $as_echo_n "(cached) " >&6
16811 else
16812 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
16813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814 /* end confdefs.h. */
16815 #include "confdefs.h"
16816 #include <sys/types.h>
16817
16818
16819 int
16820 main ()
16821 {
16822 switch (0) case 0: case (sizeof (void *) == $ac_size):;
16823 ;
16824 return 0;
16825 }
16826 _ACEOF
16827 if ac_fn_c_try_compile "$LINENO"; then :
16828 ac_cv_sizeof_void_p=$ac_size
16829 fi
16830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16831 if test x$ac_cv_sizeof_void_p != x ; then break; fi
16832 done
16833
16834 fi
16835
16836 if test x$ac_cv_sizeof_void_p = x ; then
16837 as_fn_error "cannot determine a size for void *" "$LINENO" 5
16838 fi
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16840 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16841
16842 cat >>confdefs.h <<_ACEOF
16843 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16844 _ACEOF
16845
16846
16847
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16849 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16850 if test "${ac_cv_c_bigendian+set}" = set; then :
16851 $as_echo_n "(cached) " >&6
16852 else
16853 ac_cv_c_bigendian=unknown
16854 # See if sys/param.h defines the BYTE_ORDER macro.
16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h. */
16857 #include <sys/types.h>
16858 #include <sys/param.h>
16859 int
16860 main ()
16861 {
16862
16863 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16864 bogus endian macros
16865 #endif
16866 ;
16867 return 0;
16868 }
16869 _ACEOF
16870 if ac_fn_c_try_compile "$LINENO"; then :
16871 # It does; now see whether it defined to BIG_ENDIAN or not.
16872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16873 /* end confdefs.h. */
16874 #include <sys/types.h>
16875 #include <sys/param.h>
16876 int
16877 main ()
16878 {
16879
16880 #if BYTE_ORDER != BIG_ENDIAN
16881 not big endian
16882 #endif
16883 ;
16884 return 0;
16885 }
16886 _ACEOF
16887 if ac_fn_c_try_compile "$LINENO"; then :
16888 ac_cv_c_bigendian=yes
16889 else
16890 ac_cv_c_bigendian=no
16891 fi
16892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16893 fi
16894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16895 if test $ac_cv_c_bigendian = unknown; then
16896 if test "$cross_compiling" = yes; then :
16897 echo $ac_n "cross-compiling... " 2>&6
16898 else
16899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16900 /* end confdefs.h. */
16901 main () {
16902 /* Are we little or big endian? From Harbison&Steele. */
16903 union
16904 {
16905 long l;
16906 char c[sizeof (long)];
16907 } u;
16908 u.l = 1;
16909 exit (u.c[sizeof (long) - 1] == 1);
16910 }
16911 _ACEOF
16912 if ac_fn_c_try_run "$LINENO"; then :
16913 ac_cv_c_bigendian=no
16914 else
16915 ac_cv_c_bigendian=yes
16916 fi
16917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16918 conftest.$ac_objext conftest.beam conftest.$ac_ext
16919 fi
16920
16921 fi
16922 fi
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16924 $as_echo "$ac_cv_c_bigendian" >&6; }
16925 if test $ac_cv_c_bigendian = unknown; then
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
16927 $as_echo_n "checking to probe for byte ordering... " >&6; }
16928
16929 cat >conftest.c <<EOF
16930 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16931 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16932 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
16933 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16934 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16935 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
16936 int main() { _ascii (); _ebcdic (); return 0; }
16937 EOF
16938 if test -f conftest.c ; then
16939 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
16940 if test `grep -l BIGenDianSyS conftest.o` ; then
16941 echo $ac_n ' big endian probe OK, ' 1>&6
16942 ac_cv_c_bigendian=yes
16943 fi
16944 if test `grep -l LiTTleEnDian conftest.o` ; then
16945 echo $ac_n ' little endian probe OK, ' 1>&6
16946 if test $ac_cv_c_bigendian = yes ; then
16947 ac_cv_c_bigendian=unknown;
16948 else
16949 ac_cv_c_bigendian=no
16950 fi
16951 fi
16952 echo $ac_n 'guessing bigendian ... ' >&6
16953 fi
16954 fi
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16956 $as_echo "$ac_cv_c_bigendian" >&6; }
16957 fi
16958 if test $ac_cv_c_bigendian = yes; then
16959
16960 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16961
16962
16963 $as_echo "#define HOST_WORDS_BIG_ENDIAN 1" >>confdefs.h
16964
16965 BYTEORDER=4321
16966 else
16967 BYTEORDER=1234
16968 fi
16969
16970 cat >>confdefs.h <<_ACEOF
16971 #define BYTEORDER $BYTEORDER
16972 _ACEOF
16973
16974 if test $ac_cv_c_bigendian = unknown; then
16975 as_fn_error "unknown endianess - sorry, please pre-set ac_cv_c_bigendian" "$LINENO" 5
16976 fi
16977
16978
16979 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
16980 asm/ioctls.h \
16981 inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
16982 sys/time.h \
16983 sys/select.h \
16984 crt_externs.h \
16985 fcntl.h \
16986 sys/mman.h \
16987 magic.h \
16988 sys/event.h sys/epoll.h \
16989 ifaddrs.h \
16990 netinet/in_systm.h netinet/ip.h net/if.h \
16991 sys/loadavg.h sys/sockio.h
16992 do :
16993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16994 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16995 eval as_val=\$$as_ac_Header
16996 if test "x$as_val" = x""yes; then :
16997 cat >>confdefs.h <<_ACEOF
16998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16999 _ACEOF
17000
17001 fi
17002
17003 done
17004
17005
17006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17007 /* end confdefs.h. */
17008 #include <stdint.h>
17009
17010 _ACEOF
17011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17012 $EGREP "uint32_t" >/dev/null 2>&1; then :
17013
17014 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
17015
17016 fi
17017 rm -f conftest*
17018
17019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020 /* end confdefs.h. */
17021 #include <inttypes.h>
17022
17023 _ACEOF
17024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17025 $EGREP "uint32_t" >/dev/null 2>&1; then :
17026
17027 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
17028
17029 fi
17030 rm -f conftest*
17031
17032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h. */
17034 #include <sys/types.h>
17035
17036 _ACEOF
17037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17038 $EGREP "u_int32_t" >/dev/null 2>&1; then :
17039
17040 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
17041
17042 fi
17043 rm -f conftest*
17044
17045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17046 /* end confdefs.h. */
17047 #include <sys/config.h>
17048
17049 _ACEOF
17050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17051 $EGREP "u_int32_t" >/dev/null 2>&1; then :
17052
17053 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
17054
17055 fi
17056 rm -f conftest*
17057
17058
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
17060 $as_echo_n "checking for library containing inet_pton... " >&6; }
17061 if test "${ac_cv_search_inet_pton+set}" = set; then :
17062 $as_echo_n "(cached) " >&6
17063 else
17064 ac_func_search_save_LIBS=$LIBS
17065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17066 /* end confdefs.h. */
17067
17068 /* Override any GCC internal prototype to avoid an error.
17069 Use char because int might match the return type of a GCC
17070 builtin and then its argument prototype would still apply. */
17071 #ifdef __cplusplus
17072 extern "C"
17073 #endif
17074 char inet_pton ();
17075 int
17076 main ()
17077 {
17078 return inet_pton ();
17079 ;
17080 return 0;
17081 }
17082 _ACEOF
17083 for ac_lib in '' nsl; do
17084 if test -z "$ac_lib"; then
17085 ac_res="none required"
17086 else
17087 ac_res=-l$ac_lib
17088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17089 fi
17090 if test x$gcc_no_link = xyes; then
17091 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17092 fi
17093 if ac_fn_c_try_link "$LINENO"; then :
17094 ac_cv_search_inet_pton=$ac_res
17095 fi
17096 rm -f core conftest.err conftest.$ac_objext \
17097 conftest$ac_exeext
17098 if test "${ac_cv_search_inet_pton+set}" = set; then :
17099 break
17100 fi
17101 done
17102 if test "${ac_cv_search_inet_pton+set}" = set; then :
17103
17104 else
17105 ac_cv_search_inet_pton=no
17106 fi
17107 rm conftest.$ac_ext
17108 LIBS=$ac_func_search_save_LIBS
17109 fi
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
17111 $as_echo "$ac_cv_search_inet_pton" >&6; }
17112 ac_res=$ac_cv_search_inet_pton
17113 if test "$ac_res" != no; then :
17114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17115
17116 fi
17117
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
17119 $as_echo_n "checking for gethostname in -lsocket... " >&6; }
17120 if test "${ac_cv_lib_socket_gethostname+set}" = set; then :
17121 $as_echo_n "(cached) " >&6
17122 else
17123 ac_check_lib_save_LIBS=$LIBS
17124 LIBS="-lsocket $LIBS"
17125 if test x$gcc_no_link = xyes; then
17126 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17127 fi
17128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129 /* end confdefs.h. */
17130
17131 /* Override any GCC internal prototype to avoid an error.
17132 Use char because int might match the return type of a GCC
17133 builtin and then its argument prototype would still apply. */
17134 #ifdef __cplusplus
17135 extern "C"
17136 #endif
17137 char gethostname ();
17138 int
17139 main ()
17140 {
17141 return gethostname ();
17142 ;
17143 return 0;
17144 }
17145 _ACEOF
17146 if ac_fn_c_try_link "$LINENO"; then :
17147 ac_cv_lib_socket_gethostname=yes
17148 else
17149 ac_cv_lib_socket_gethostname=no
17150 fi
17151 rm -f core conftest.err conftest.$ac_objext \
17152 conftest$ac_exeext conftest.$ac_ext
17153 LIBS=$ac_check_lib_save_LIBS
17154 fi
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
17156 $as_echo "$ac_cv_lib_socket_gethostname" >&6; }
17157 if test "x$ac_cv_lib_socket_gethostname" = x""yes; then :
17158 cat >>confdefs.h <<_ACEOF
17159 #define HAVE_LIBSOCKET 1
17160 _ACEOF
17161
17162 LIBS="-lsocket $LIBS"
17163
17164 fi
17165
17166 for ac_func in ftruncate fsync select \
17167 gethostname socket strerror fork pipe execve open close \
17168 lseek fstat read readv write writev htonl memset htons connect \
17169 getsockname getpeername bind listen accept \
17170 recvfrom send sendto setsockopt getsockopt time mktime \
17171 gethostbyname_r localtime_r \
17172 strerror_r \
17173 fcntl \
17174 statvfs \
17175 mmap munmap mincore msync madvise getpagesize sysconf \
17176 lstat readlink \
17177 inet_aton inet_addr inet_pton \
17178 getifaddrs kqueue kevent epoll_create \
17179 getloadavg
17180 do :
17181 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17182 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17183 eval as_val=\$$as_ac_var
17184 if test "x$as_val" = x""yes; then :
17185 cat >>confdefs.h <<_ACEOF
17186 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17187 _ACEOF
17188
17189 fi
17190 done
17191
17192
17193 LIBMAGIC=
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
17195 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
17196 if test "${ac_cv_lib_magic_magic_open+set}" = set; then :
17197 $as_echo_n "(cached) " >&6
17198 else
17199 ac_check_lib_save_LIBS=$LIBS
17200 LIBS="-lmagic $LIBS"
17201 if test x$gcc_no_link = xyes; then
17202 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17203 fi
17204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17205 /* end confdefs.h. */
17206
17207 /* Override any GCC internal prototype to avoid an error.
17208 Use char because int might match the return type of a GCC
17209 builtin and then its argument prototype would still apply. */
17210 #ifdef __cplusplus
17211 extern "C"
17212 #endif
17213 char magic_open ();
17214 int
17215 main ()
17216 {
17217 return magic_open ();
17218 ;
17219 return 0;
17220 }
17221 _ACEOF
17222 if ac_fn_c_try_link "$LINENO"; then :
17223 ac_cv_lib_magic_magic_open=yes
17224 else
17225 ac_cv_lib_magic_magic_open=no
17226 fi
17227 rm -f core conftest.err conftest.$ac_objext \
17228 conftest$ac_exeext conftest.$ac_ext
17229 LIBS=$ac_check_lib_save_LIBS
17230 fi
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
17232 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
17233 if test "x$ac_cv_lib_magic_magic_open" = x""yes; then :
17234 LIBMAGIC=-lmagic
17235 fi
17236
17237
17238
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
17240 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242 /* end confdefs.h. */
17243 #include <netinet/in.h>
17244 int
17245 main ()
17246 {
17247 struct sockaddr_in6 addr6;
17248 ;
17249 return 0;
17250 }
17251 _ACEOF
17252 if ac_fn_c_try_compile "$LINENO"; then :
17253
17254 $as_echo "#define HAVE_INET6 1" >>confdefs.h
17255
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17257 $as_echo "yes" >&6; }
17258 else
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17260 $as_echo "no" >&6; }
17261 fi
17262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17263
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17265 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17266 if test "${ac_cv_header_time+set}" = set; then :
17267 $as_echo_n "(cached) " >&6
17268 else
17269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17270 /* end confdefs.h. */
17271 #include <sys/types.h>
17272 #include <sys/time.h>
17273 #include <time.h>
17274
17275 int
17276 main ()
17277 {
17278 if ((struct tm *) 0)
17279 return 0;
17280 ;
17281 return 0;
17282 }
17283 _ACEOF
17284 if ac_fn_c_try_compile "$LINENO"; then :
17285 ac_cv_header_time=yes
17286 else
17287 ac_cv_header_time=no
17288 fi
17289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17290 fi
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17292 $as_echo "$ac_cv_header_time" >&6; }
17293 if test $ac_cv_header_time = yes; then
17294
17295 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17296
17297 fi
17298
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17300 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17301 if test "${ac_cv_struct_tm+set}" = set; then :
17302 $as_echo_n "(cached) " >&6
17303 else
17304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17305 /* end confdefs.h. */
17306 #include <sys/types.h>
17307 #include <time.h>
17308
17309 int
17310 main ()
17311 {
17312 struct tm tm;
17313 int *p = &tm.tm_sec;
17314 return !p;
17315 ;
17316 return 0;
17317 }
17318 _ACEOF
17319 if ac_fn_c_try_compile "$LINENO"; then :
17320 ac_cv_struct_tm=time.h
17321 else
17322 ac_cv_struct_tm=sys/time.h
17323 fi
17324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17325 fi
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17327 $as_echo "$ac_cv_struct_tm" >&6; }
17328 if test $ac_cv_struct_tm = sys/time.h; then
17329
17330 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17331
17332 fi
17333
17334 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
17335 #include <$ac_cv_struct_tm>
17336
17337 "
17338 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
17339
17340 cat >>confdefs.h <<_ACEOF
17341 #define HAVE_STRUCT_TM_TM_ZONE 1
17342 _ACEOF
17343
17344
17345 fi
17346
17347 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17348
17349 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
17350
17351 else
17352 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
17353 "
17354 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
17355 ac_have_decl=1
17356 else
17357 ac_have_decl=0
17358 fi
17359
17360 cat >>confdefs.h <<_ACEOF
17361 #define HAVE_DECL_TZNAME $ac_have_decl
17362 _ACEOF
17363
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
17365 $as_echo_n "checking for tzname... " >&6; }
17366 if test "${ac_cv_var_tzname+set}" = set; then :
17367 $as_echo_n "(cached) " >&6
17368 else
17369 if test x$gcc_no_link = xyes; then
17370 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17371 fi
17372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373 /* end confdefs.h. */
17374 #include <time.h>
17375 #if !HAVE_DECL_TZNAME
17376 extern char *tzname[];
17377 #endif
17378
17379 int
17380 main ()
17381 {
17382 return tzname[0][0];
17383 ;
17384 return 0;
17385 }
17386 _ACEOF
17387 if ac_fn_c_try_link "$LINENO"; then :
17388 ac_cv_var_tzname=yes
17389 else
17390 ac_cv_var_tzname=no
17391 fi
17392 rm -f core conftest.err conftest.$ac_objext \
17393 conftest$ac_exeext conftest.$ac_ext
17394 fi
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
17396 $as_echo "$ac_cv_var_tzname" >&6; }
17397 if test $ac_cv_var_tzname = yes; then
17398
17399 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
17400
17401 fi
17402 fi
17403
17404
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
17406 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
17407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17408 /* end confdefs.h. */
17409 #include <time.h>
17410 int
17411 main ()
17412 {
17413 struct tm tim; tim.tm_gmtoff = 0;
17414 ;
17415 return 0;
17416 }
17417 _ACEOF
17418 if ac_fn_c_try_compile "$LINENO"; then :
17419
17420 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
17421
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17423 $as_echo "yes" >&6; }
17424 else
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17426 $as_echo "no" >&6; }
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
17428 $as_echo_n "checking for global timezone variable... " >&6; }
17429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17430 /* end confdefs.h. */
17431 #include <time.h>
17432 int
17433 main ()
17434 {
17435 void i(){long z2 = 2*timezone;}
17436 ;
17437 return 0;
17438 }
17439 _ACEOF
17440 if ac_fn_c_try_compile "$LINENO"; then :
17441
17442 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
17443
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17445 $as_echo "yes" >&6; }
17446 else
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17448 $as_echo "no" >&6; }
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
17450 $as_echo_n "checking for global _timezone variable... " >&6; }
17451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17452 /* end confdefs.h. */
17453 #include <time.h>
17454 int
17455 main ()
17456 {
17457 long z2 = _timezone;
17458 ;
17459 return 0;
17460 }
17461 _ACEOF
17462 if ac_fn_c_try_compile "$LINENO"; then :
17463
17464 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
17465
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17467 $as_echo "yes" >&6; }
17468 else
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17470 $as_echo "no" >&6; }
17471 fi
17472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17473 fi
17474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17475 fi
17476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17477
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17479 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17480 if test "${ac_cv_c_const+set}" = set; then :
17481 $as_echo_n "(cached) " >&6
17482 else
17483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17484 /* end confdefs.h. */
17485
17486 int
17487 main ()
17488 {
17489 /* FIXME: Include the comments suggested by Paul. */
17490 #ifndef __cplusplus
17491 /* Ultrix mips cc rejects this. */
17492 typedef int charset[2];
17493 const charset cs;
17494 /* SunOS 4.1.1 cc rejects this. */
17495 char const *const *pcpcc;
17496 char **ppc;
17497 /* NEC SVR4.0.2 mips cc rejects this. */
17498 struct point {int x, y;};
17499 static struct point const zero = {0,0};
17500 /* AIX XL C 1.02.0.0 rejects this.
17501 It does not let you subtract one const X* pointer from another in
17502 an arm of an if-expression whose if-part is not a constant
17503 expression */
17504 const char *g = "string";
17505 pcpcc = &g + (g ? g-g : 0);
17506 /* HPUX 7.0 cc rejects these. */
17507 ++pcpcc;
17508 ppc = (char**) pcpcc;
17509 pcpcc = (char const *const *) ppc;
17510 { /* SCO 3.2v4 cc rejects this. */
17511 char *t;
17512 char const *s = 0 ? (char *) 0 : (char const *) 0;
17513
17514 *t++ = 0;
17515 if (s) return 0;
17516 }
17517 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17518 int x[] = {25, 17};
17519 const int *foo = &x[0];
17520 ++foo;
17521 }
17522 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17523 typedef const int *iptr;
17524 iptr p = 0;
17525 ++p;
17526 }
17527 { /* AIX XL C 1.02.0.0 rejects this saying
17528 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17529 struct s { int j; const int *ap[3]; };
17530 struct s *b; b->j = 5;
17531 }
17532 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17533 const int foo = 10;
17534 if (!foo) return 0;
17535 }
17536 return !cs[0] && !zero.x;
17537 #endif
17538
17539 ;
17540 return 0;
17541 }
17542 _ACEOF
17543 if ac_fn_c_try_compile "$LINENO"; then :
17544 ac_cv_c_const=yes
17545 else
17546 ac_cv_c_const=no
17547 fi
17548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17549 fi
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17551 $as_echo "$ac_cv_c_const" >&6; }
17552 if test $ac_cv_c_const = no; then
17553
17554 $as_echo "#define const /**/" >>confdefs.h
17555
17556 fi
17557
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17559 $as_echo_n "checking for inline... " >&6; }
17560 if test "${ac_cv_c_inline+set}" = set; then :
17561 $as_echo_n "(cached) " >&6
17562 else
17563 ac_cv_c_inline=no
17564 for ac_kw in inline __inline__ __inline; do
17565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17566 /* end confdefs.h. */
17567 #ifndef __cplusplus
17568 typedef int foo_t;
17569 static $ac_kw foo_t static_foo () {return 0; }
17570 $ac_kw foo_t foo () {return 0; }
17571 #endif
17572
17573 _ACEOF
17574 if ac_fn_c_try_compile "$LINENO"; then :
17575 ac_cv_c_inline=$ac_kw
17576 fi
17577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17578 test "$ac_cv_c_inline" != no && break
17579 done
17580
17581 fi
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17583 $as_echo "$ac_cv_c_inline" >&6; }
17584
17585 case $ac_cv_c_inline in
17586 inline | yes) ;;
17587 *)
17588 case $ac_cv_c_inline in
17589 no) ac_val=;;
17590 *) ac_val=$ac_cv_c_inline;;
17591 esac
17592 cat >>confdefs.h <<_ACEOF
17593 #ifndef __cplusplus
17594 #define inline $ac_val
17595 #endif
17596 _ACEOF
17597 ;;
17598 esac
17599
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
17601 $as_echo_n "checking for __attribute__... " >&6; }
17602 if test "${ac_cv_c_attribute+set}" = set; then :
17603 $as_echo_n "(cached) " >&6
17604 else
17605
17606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17607 /* end confdefs.h. */
17608 void foo(void) __attribute__ ((__noreturn__));
17609
17610 _ACEOF
17611 if ac_fn_c_try_compile "$LINENO"; then :
17612 ac_cv_c_attribute=yes
17613 else
17614 ac_cv_c_attribute=no
17615
17616 fi
17617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17618
17619 fi
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_attribute" >&5
17621 $as_echo "$ac_cv_c_attribute" >&6; }
17622
17623 case $ac_cv_c_attribute in
17624 yes) ;;
17625 no)
17626 cat >>confdefs.h <<_ACEOF
17627 #define __attribute__(x) /* nothing */
17628 _ACEOF
17629 ;;
17630 esac
17631
17632
17633
17634 ac_ext=c
17635 ac_cpp='$CPP $CPPFLAGS'
17636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17639
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() takes" >&5
17641 $as_echo_n "checking how many arguments gethostbyname_r() takes... " >&6; }
17642
17643 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then :
17644 $as_echo_n "(cached) " >&6
17645 else
17646
17647
17648 ################################################################
17649
17650 ac_cv_func_which_gethostbyname_r=unknown
17651
17652 #
17653 # ONE ARGUMENT (sanity check)
17654 #
17655
17656 # This should fail, as there is no variant of gethostbyname_r() that takes
17657 # a single argument. If it actually compiles, then we can assume that
17658 # netdb.h is not declaring the function, and the compiler is thereby
17659 # assuming an implicit prototype. In which case, we're out of luck.
17660 #
17661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17662 /* end confdefs.h. */
17663 #include <netdb.h>
17664 int
17665 main ()
17666 {
17667
17668 char *name = "www.gnu.org";
17669 (void)gethostbyname_r(name) /* ; */
17670
17671 ;
17672 return 0;
17673 }
17674 _ACEOF
17675 if ac_fn_c_try_compile "$LINENO"; then :
17676 ac_cv_func_which_gethostbyname_r=no
17677 fi
17678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17679
17680 #
17681 # SIX ARGUMENTS
17682 # (e.g. Linux)
17683 #
17684
17685 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17686
17687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17688 /* end confdefs.h. */
17689 #include <netdb.h>
17690 int
17691 main ()
17692 {
17693
17694 char *name = "www.gnu.org";
17695 struct hostent ret, *retp;
17696 char buf[1024];
17697 int buflen = 1024;
17698 int my_h_errno;
17699 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
17700
17701 ;
17702 return 0;
17703 }
17704 _ACEOF
17705 if ac_fn_c_try_compile "$LINENO"; then :
17706 ac_cv_func_which_gethostbyname_r=six
17707 fi
17708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17709
17710 fi
17711
17712 #
17713 # FIVE ARGUMENTS
17714 # (e.g. Solaris)
17715 #
17716
17717 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17718
17719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17720 /* end confdefs.h. */
17721 #include <netdb.h>
17722 int
17723 main ()
17724 {
17725
17726 char *name = "www.gnu.org";
17727 struct hostent ret;
17728 char buf[1024];
17729 int buflen = 1024;
17730 int my_h_errno;
17731 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
17732
17733 ;
17734 return 0;
17735 }
17736 _ACEOF
17737 if ac_fn_c_try_compile "$LINENO"; then :
17738 ac_cv_func_which_gethostbyname_r=five
17739 fi
17740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17741
17742 fi
17743
17744 #
17745 # THREE ARGUMENTS
17746 # (e.g. AIX, HP-UX, Tru64)
17747 #
17748
17749 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17750
17751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17752 /* end confdefs.h. */
17753 #include <netdb.h>
17754 int
17755 main ()
17756 {
17757
17758 char *name = "www.gnu.org";
17759 struct hostent ret;
17760 struct hostent_data data;
17761 (void)gethostbyname_r(name, &ret, &data) /* ; */
17762
17763 ;
17764 return 0;
17765 }
17766 _ACEOF
17767 if ac_fn_c_try_compile "$LINENO"; then :
17768 ac_cv_func_which_gethostbyname_r=three
17769 fi
17770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17771
17772 fi
17773
17774 ################################################################
17775
17776
17777 fi
17778
17779 case "$ac_cv_func_which_gethostbyname_r" in
17780 three)
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: three" >&5
17782 $as_echo "three" >&6; }
17783
17784 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_3 1" >>confdefs.h
17785
17786 ;;
17787
17788 five)
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: five" >&5
17790 $as_echo "five" >&6; }
17791
17792 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_5 1" >>confdefs.h
17793
17794 ;;
17795
17796 six)
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: six" >&5
17798 $as_echo "six" >&6; }
17799
17800 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_6 1" >>confdefs.h
17801
17802 ;;
17803
17804 no)
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find function declaration in netdb.h" >&5
17806 $as_echo "cannot find function declaration in netdb.h" >&6; }
17807 ;;
17808
17809 unknown)
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't tell" >&5
17811 $as_echo "can't tell" >&6; }
17812 ;;
17813
17814 *)
17815 as_fn_error "internal error" "$LINENO" 5
17816 ;;
17817 esac
17818
17819 ac_ext=c
17820 ac_cpp='$CPP $CPPFLAGS'
17821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17824
17825
17826
17827
17828
17829 if test "X$prefix" = "XNONE"; then
17830 acl_final_prefix="$ac_default_prefix"
17831 else
17832 acl_final_prefix="$prefix"
17833 fi
17834 if test "X$exec_prefix" = "XNONE"; then
17835 acl_final_exec_prefix='${prefix}'
17836 else
17837 acl_final_exec_prefix="$exec_prefix"
17838 fi
17839 acl_save_prefix="$prefix"
17840 prefix="$acl_final_prefix"
17841 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17842 prefix="$acl_save_prefix"
17843
17844
17845 # Check whether --with-gnu-ld was given.
17846 if test "${with_gnu_ld+set}" = set; then :
17847 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17848 else
17849 with_gnu_ld=no
17850 fi
17851
17852 # Prepare PATH_SEPARATOR.
17853 # The user is always right.
17854 if test "${PATH_SEPARATOR+set}" != set; then
17855 echo "#! /bin/sh" >conf$$.sh
17856 echo "exit 0" >>conf$$.sh
17857 chmod +x conf$$.sh
17858 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17859 PATH_SEPARATOR=';'
17860 else
17861 PATH_SEPARATOR=:
17862 fi
17863 rm -f conf$$.sh
17864 fi
17865 ac_prog=ld
17866 if test "$GCC" = yes; then
17867 # Check if gcc -print-prog-name=ld gives a path.
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17869 $as_echo_n "checking for ld used by GCC... " >&6; }
17870 case $host in
17871 *-*-mingw*)
17872 # gcc leaves a trailing carriage return which upsets mingw
17873 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17874 *)
17875 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17876 esac
17877 case $ac_prog in
17878 # Accept absolute paths.
17879 [\\/]* | [A-Za-z]:[\\/]*)
17880 re_direlt='/[^/][^/]*/\.\./'
17881 # Canonicalize the path of ld
17882 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17883 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17884 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17885 done
17886 test -z "$LD" && LD="$ac_prog"
17887 ;;
17888 "")
17889 # If it fails, then pretend we aren't using GCC.
17890 ac_prog=ld
17891 ;;
17892 *)
17893 # If it is relative, then search for the first ld in PATH.
17894 with_gnu_ld=unknown
17895 ;;
17896 esac
17897 elif test "$with_gnu_ld" = yes; then
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17899 $as_echo_n "checking for GNU ld... " >&6; }
17900 else
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17902 $as_echo_n "checking for non-GNU ld... " >&6; }
17903 fi
17904 if test "${acl_cv_path_LD+set}" = set; then :
17905 $as_echo_n "(cached) " >&6
17906 else
17907 if test -z "$LD"; then
17908 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17909 for ac_dir in $PATH; do
17910 test -z "$ac_dir" && ac_dir=.
17911 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17912 acl_cv_path_LD="$ac_dir/$ac_prog"
17913 # Check to see if the program is GNU ld. I'd rather use --version,
17914 # but apparently some GNU ld's only accept -v.
17915 # Break only if it was the GNU/non-GNU ld that we prefer.
17916 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
17917 test "$with_gnu_ld" != no && break
17918 else
17919 test "$with_gnu_ld" != yes && break
17920 fi
17921 fi
17922 done
17923 IFS="$ac_save_ifs"
17924 else
17925 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17926 fi
17927 fi
17928
17929 LD="$acl_cv_path_LD"
17930 if test -n "$LD"; then
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17932 $as_echo "$LD" >&6; }
17933 else
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17935 $as_echo "no" >&6; }
17936 fi
17937 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17939 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17940 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
17941 $as_echo_n "(cached) " >&6
17942 else
17943 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17944 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
17945 acl_cv_prog_gnu_ld=yes
17946 else
17947 acl_cv_prog_gnu_ld=no
17948 fi
17949 fi
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17951 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17952 with_gnu_ld=$acl_cv_prog_gnu_ld
17953
17954
17955
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17957 $as_echo_n "checking for shared library run path origin... " >&6; }
17958 if test "${acl_cv_rpath+set}" = set; then :
17959 $as_echo_n "(cached) " >&6
17960 else
17961
17962 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17963 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17964 . ./conftest.sh
17965 rm -f ./conftest.sh
17966 acl_cv_rpath=done
17967
17968 fi
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17970 $as_echo "$acl_cv_rpath" >&6; }
17971 wl="$acl_cv_wl"
17972 libext="$acl_cv_libext"
17973 shlibext="$acl_cv_shlibext"
17974 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17975 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17976 hardcode_direct="$acl_cv_hardcode_direct"
17977 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17978 # Check whether --enable-rpath was given.
17979 if test "${enable_rpath+set}" = set; then :
17980 enableval=$enable_rpath; :
17981 else
17982 enable_rpath=yes
17983 fi
17984
17985
17986
17987
17988
17989
17990
17991
17992 use_additional=yes
17993
17994 acl_save_prefix="$prefix"
17995 prefix="$acl_final_prefix"
17996 acl_save_exec_prefix="$exec_prefix"
17997 exec_prefix="$acl_final_exec_prefix"
17998
17999 eval additional_includedir=\"$includedir\"
18000 eval additional_libdir=\"$libdir\"
18001
18002 exec_prefix="$acl_save_exec_prefix"
18003 prefix="$acl_save_prefix"
18004
18005
18006 # Check whether --with-libiconv-prefix was given.
18007 if test "${with_libiconv_prefix+set}" = set; then :
18008 withval=$with_libiconv_prefix;
18009 if test "X$withval" = "Xno"; then
18010 use_additional=no
18011 else
18012 if test "X$withval" = "X"; then
18013
18014 acl_save_prefix="$prefix"
18015 prefix="$acl_final_prefix"
18016 acl_save_exec_prefix="$exec_prefix"
18017 exec_prefix="$acl_final_exec_prefix"
18018
18019 eval additional_includedir=\"$includedir\"
18020 eval additional_libdir=\"$libdir\"
18021
18022 exec_prefix="$acl_save_exec_prefix"
18023 prefix="$acl_save_prefix"
18024
18025 else
18026 additional_includedir="$withval/include"
18027 additional_libdir="$withval/lib"
18028 fi
18029 fi
18030
18031 fi
18032
18033 LIBICONV=
18034 LTLIBICONV=
18035 INCICONV=
18036 rpathdirs=
18037 ltrpathdirs=
18038 names_already_handled=
18039 names_next_round='iconv '
18040 while test -n "$names_next_round"; do
18041 names_this_round="$names_next_round"
18042 names_next_round=
18043 for name in $names_this_round; do
18044 already_handled=
18045 for n in $names_already_handled; do
18046 if test "$n" = "$name"; then
18047 already_handled=yes
18048 break
18049 fi
18050 done
18051 if test -z "$already_handled"; then
18052 names_already_handled="$names_already_handled $name"
18053 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18054 eval value=\"\$HAVE_LIB$uppername\"
18055 if test -n "$value"; then
18056 if test "$value" = yes; then
18057 eval value=\"\$LIB$uppername\"
18058 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18059 eval value=\"\$LTLIB$uppername\"
18060 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18061 else
18062 :
18063 fi
18064 else
18065 found_dir=
18066 found_la=
18067 found_so=
18068 found_a=
18069 if test $use_additional = yes; then
18070 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18071 found_dir="$additional_libdir"
18072 found_so="$additional_libdir/lib$name.$shlibext"
18073 if test -f "$additional_libdir/lib$name.la"; then
18074 found_la="$additional_libdir/lib$name.la"
18075 fi
18076 else
18077 if test -f "$additional_libdir/lib$name.$libext"; then
18078 found_dir="$additional_libdir"
18079 found_a="$additional_libdir/lib$name.$libext"
18080 if test -f "$additional_libdir/lib$name.la"; then
18081 found_la="$additional_libdir/lib$name.la"
18082 fi
18083 fi
18084 fi
18085 fi
18086 if test "X$found_dir" = "X"; then
18087 for x in $LDFLAGS $LTLIBICONV; do
18088
18089 acl_save_prefix="$prefix"
18090 prefix="$acl_final_prefix"
18091 acl_save_exec_prefix="$exec_prefix"
18092 exec_prefix="$acl_final_exec_prefix"
18093 eval x=\"$x\"
18094 exec_prefix="$acl_save_exec_prefix"
18095 prefix="$acl_save_prefix"
18096
18097 case "$x" in
18098 -L*)
18099 dir=`echo "X$x" | sed -e 's/^X-L//'`
18100 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18101 found_dir="$dir"
18102 found_so="$dir/lib$name.$shlibext"
18103 if test -f "$dir/lib$name.la"; then
18104 found_la="$dir/lib$name.la"
18105 fi
18106 else
18107 if test -f "$dir/lib$name.$libext"; then
18108 found_dir="$dir"
18109 found_a="$dir/lib$name.$libext"
18110 if test -f "$dir/lib$name.la"; then
18111 found_la="$dir/lib$name.la"
18112 fi
18113 fi
18114 fi
18115 ;;
18116 esac
18117 if test "X$found_dir" != "X"; then
18118 break
18119 fi
18120 done
18121 fi
18122 if test "X$found_dir" != "X"; then
18123 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18124 if test "X$found_so" != "X"; then
18125 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18126 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18127 else
18128 haveit=
18129 for x in $ltrpathdirs; do
18130 if test "X$x" = "X$found_dir"; then
18131 haveit=yes
18132 break
18133 fi
18134 done
18135 if test -z "$haveit"; then
18136 ltrpathdirs="$ltrpathdirs $found_dir"
18137 fi
18138 if test "$hardcode_direct" = yes; then
18139 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18140 else
18141 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18142 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18143 haveit=
18144 for x in $rpathdirs; do
18145 if test "X$x" = "X$found_dir"; then
18146 haveit=yes
18147 break
18148 fi
18149 done
18150 if test -z "$haveit"; then
18151 rpathdirs="$rpathdirs $found_dir"
18152 fi
18153 else
18154 haveit=
18155 for x in $LDFLAGS $LIBICONV; do
18156
18157 acl_save_prefix="$prefix"
18158 prefix="$acl_final_prefix"
18159 acl_save_exec_prefix="$exec_prefix"
18160 exec_prefix="$acl_final_exec_prefix"
18161 eval x=\"$x\"
18162 exec_prefix="$acl_save_exec_prefix"
18163 prefix="$acl_save_prefix"
18164
18165 if test "X$x" = "X-L$found_dir"; then
18166 haveit=yes
18167 break
18168 fi
18169 done
18170 if test -z "$haveit"; then
18171 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18172 fi
18173 if test "$hardcode_minus_L" != no; then
18174 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18175 else
18176 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18177 fi
18178 fi
18179 fi
18180 fi
18181 else
18182 if test "X$found_a" != "X"; then
18183 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18184 else
18185 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18186 fi
18187 fi
18188 additional_includedir=
18189 case "$found_dir" in
18190 */lib | */lib/)
18191 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18192 additional_includedir="$basedir/include"
18193 ;;
18194 esac
18195 if test "X$additional_includedir" != "X"; then
18196 if test "X$additional_includedir" != "X/usr/include"; then
18197 haveit=
18198 if test "X$additional_includedir" = "X/usr/local/include"; then
18199 if test -n "$GCC"; then
18200 case $host_os in
18201 linux*) haveit=yes;;
18202 esac
18203 fi
18204 fi
18205 if test -z "$haveit"; then
18206 for x in $CPPFLAGS $INCICONV; do
18207
18208 acl_save_prefix="$prefix"
18209 prefix="$acl_final_prefix"
18210 acl_save_exec_prefix="$exec_prefix"
18211 exec_prefix="$acl_final_exec_prefix"
18212 eval x=\"$x\"
18213 exec_prefix="$acl_save_exec_prefix"
18214 prefix="$acl_save_prefix"
18215
18216 if test "X$x" = "X-I$additional_includedir"; then
18217 haveit=yes
18218 break
18219 fi
18220 done
18221 if test -z "$haveit"; then
18222 if test -d "$additional_includedir"; then
18223 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18224 fi
18225 fi
18226 fi
18227 fi
18228 fi
18229 if test -n "$found_la"; then
18230 save_libdir="$libdir"
18231 case "$found_la" in
18232 */* | *\\*) . "$found_la" ;;
18233 *) . "./$found_la" ;;
18234 esac
18235 libdir="$save_libdir"
18236 for dep in $dependency_libs; do
18237 case "$dep" in
18238 -L*)
18239 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18240 if test "X$additional_libdir" != "X/usr/lib"; then
18241 haveit=
18242 if test "X$additional_libdir" = "X/usr/local/lib"; then
18243 if test -n "$GCC"; then
18244 case $host_os in
18245 linux*) haveit=yes;;
18246 esac
18247 fi
18248 fi
18249 if test -z "$haveit"; then
18250 haveit=
18251 for x in $LDFLAGS $LIBICONV; do
18252
18253 acl_save_prefix="$prefix"
18254 prefix="$acl_final_prefix"
18255 acl_save_exec_prefix="$exec_prefix"
18256 exec_prefix="$acl_final_exec_prefix"
18257 eval x=\"$x\"
18258 exec_prefix="$acl_save_exec_prefix"
18259 prefix="$acl_save_prefix"
18260
18261 if test "X$x" = "X-L$additional_libdir"; then
18262 haveit=yes
18263 break
18264 fi
18265 done
18266 if test -z "$haveit"; then
18267 if test -d "$additional_libdir"; then
18268 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18269 fi
18270 fi
18271 haveit=
18272 for x in $LDFLAGS $LTLIBICONV; do
18273
18274 acl_save_prefix="$prefix"
18275 prefix="$acl_final_prefix"
18276 acl_save_exec_prefix="$exec_prefix"
18277 exec_prefix="$acl_final_exec_prefix"
18278 eval x=\"$x\"
18279 exec_prefix="$acl_save_exec_prefix"
18280 prefix="$acl_save_prefix"
18281
18282 if test "X$x" = "X-L$additional_libdir"; then
18283 haveit=yes
18284 break
18285 fi
18286 done
18287 if test -z "$haveit"; then
18288 if test -d "$additional_libdir"; then
18289 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18290 fi
18291 fi
18292 fi
18293 fi
18294 ;;
18295 -R*)
18296 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18297 if test "$enable_rpath" != no; then
18298 haveit=
18299 for x in $rpathdirs; do
18300 if test "X$x" = "X$dir"; then
18301 haveit=yes
18302 break
18303 fi
18304 done
18305 if test -z "$haveit"; then
18306 rpathdirs="$rpathdirs $dir"
18307 fi
18308 haveit=
18309 for x in $ltrpathdirs; do
18310 if test "X$x" = "X$dir"; then
18311 haveit=yes
18312 break
18313 fi
18314 done
18315 if test -z "$haveit"; then
18316 ltrpathdirs="$ltrpathdirs $dir"
18317 fi
18318 fi
18319 ;;
18320 -l*)
18321 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18322 ;;
18323 *.la)
18324 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18325 ;;
18326 *)
18327 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18328 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18329 ;;
18330 esac
18331 done
18332 fi
18333 else
18334 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18335 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18336 fi
18337 fi
18338 fi
18339 done
18340 done
18341 if test "X$rpathdirs" != "X"; then
18342 if test -n "$hardcode_libdir_separator"; then
18343 alldirs=
18344 for found_dir in $rpathdirs; do
18345 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18346 done
18347 acl_save_libdir="$libdir"
18348 libdir="$alldirs"
18349 eval flag=\"$hardcode_libdir_flag_spec\"
18350 libdir="$acl_save_libdir"
18351 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18352 else
18353 for found_dir in $rpathdirs; do
18354 acl_save_libdir="$libdir"
18355 libdir="$found_dir"
18356 eval flag=\"$hardcode_libdir_flag_spec\"
18357 libdir="$acl_save_libdir"
18358 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18359 done
18360 fi
18361 fi
18362 if test "X$ltrpathdirs" != "X"; then
18363 for found_dir in $ltrpathdirs; do
18364 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18365 done
18366 fi
18367
18368
18369
18370
18371
18372
18373
18374 am_save_CPPFLAGS="$CPPFLAGS"
18375
18376 for element in $INCICONV; do
18377 haveit=
18378 for x in $CPPFLAGS; do
18379
18380 acl_save_prefix="$prefix"
18381 prefix="$acl_final_prefix"
18382 acl_save_exec_prefix="$exec_prefix"
18383 exec_prefix="$acl_final_exec_prefix"
18384 eval x=\"$x\"
18385 exec_prefix="$acl_save_exec_prefix"
18386 prefix="$acl_save_prefix"
18387
18388 if test "X$x" = "X$element"; then
18389 haveit=yes
18390 break
18391 fi
18392 done
18393 if test -z "$haveit"; then
18394 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18395 fi
18396 done
18397
18398
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18400 $as_echo_n "checking for iconv... " >&6; }
18401 if test "${am_cv_func_iconv+set}" = set; then :
18402 $as_echo_n "(cached) " >&6
18403 else
18404
18405 am_cv_func_iconv="no, consider installing GNU libiconv"
18406 am_cv_lib_iconv=no
18407 if test x$gcc_no_link = xyes; then
18408 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18409 fi
18410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411 /* end confdefs.h. */
18412 #include <stdlib.h>
18413 #include <iconv.h>
18414 int
18415 main ()
18416 {
18417 iconv_t cd = iconv_open("","");
18418 iconv(cd,NULL,NULL,NULL,NULL);
18419 iconv_close(cd);
18420 ;
18421 return 0;
18422 }
18423 _ACEOF
18424 if ac_fn_c_try_link "$LINENO"; then :
18425 am_cv_func_iconv=yes
18426 fi
18427 rm -f core conftest.err conftest.$ac_objext \
18428 conftest$ac_exeext conftest.$ac_ext
18429 if test "$am_cv_func_iconv" != yes; then
18430 am_save_LIBS="$LIBS"
18431 LIBS="$LIBS $LIBICONV"
18432 if test x$gcc_no_link = xyes; then
18433 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18434 fi
18435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18436 /* end confdefs.h. */
18437 #include <stdlib.h>
18438 #include <iconv.h>
18439 int
18440 main ()
18441 {
18442 iconv_t cd = iconv_open("","");
18443 iconv(cd,NULL,NULL,NULL,NULL);
18444 iconv_close(cd);
18445 ;
18446 return 0;
18447 }
18448 _ACEOF
18449 if ac_fn_c_try_link "$LINENO"; then :
18450 am_cv_lib_iconv=yes
18451 am_cv_func_iconv=yes
18452 fi
18453 rm -f core conftest.err conftest.$ac_objext \
18454 conftest$ac_exeext conftest.$ac_ext
18455 LIBS="$am_save_LIBS"
18456 fi
18457
18458 fi
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18460 $as_echo "$am_cv_func_iconv" >&6; }
18461 if test "$am_cv_func_iconv" = yes; then
18462
18463 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18464
18465 fi
18466 if test "$am_cv_lib_iconv" = yes; then
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18468 $as_echo_n "checking how to link with libiconv... " >&6; }
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18470 $as_echo "$LIBICONV" >&6; }
18471 else
18472 CPPFLAGS="$am_save_CPPFLAGS"
18473 LIBICONV=
18474 LTLIBICONV=
18475 fi
18476
18477
18478
18479 if test "$am_cv_func_iconv" = yes; then
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18481 $as_echo_n "checking for iconv declaration... " >&6; }
18482 if test "${am_cv_proto_iconv+set}" = set; then :
18483 $as_echo_n "(cached) " >&6
18484 else
18485
18486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18487 /* end confdefs.h. */
18488
18489 #include <stdlib.h>
18490 #include <iconv.h>
18491 extern
18492 #ifdef __cplusplus
18493 "C"
18494 #endif
18495 #if defined(__STDC__) || defined(__cplusplus)
18496 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18497 #else
18498 size_t iconv();
18499 #endif
18500
18501 int
18502 main ()
18503 {
18504
18505 ;
18506 return 0;
18507 }
18508 _ACEOF
18509 if ac_fn_c_try_compile "$LINENO"; then :
18510 am_cv_proto_iconv_arg1=""
18511 else
18512 am_cv_proto_iconv_arg1="const"
18513 fi
18514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18515 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);"
18516 fi
18517
18518 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
18520 }$am_cv_proto_iconv" >&5
18521 $as_echo "${ac_t:-
18522 }$am_cv_proto_iconv" >&6; }
18523
18524 cat >>confdefs.h <<_ACEOF
18525 #define ICONV_CONST $am_cv_proto_iconv_arg1
18526 _ACEOF
18527
18528 fi
18529
18530
18531 if test "x${GCC}" = xyes; then
18532
18533 WARNING_CFLAGS='-W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
18534
18535
18536 EXTRA_CFLAGS='-fexceptions -fasynchronous-unwind-tables'
18537
18538
18539 STRICT_WARNING_CFLAGS='-Wstrict-prototypes -pedantic'
18540
18541
18542 ERROR_CFLAGS=
18543 if test "x${ENABLE_WERROR}" = xyes; then
18544 ERROR_CFLAGS='-Werror'
18545 fi
18546
18547 fi
18548
18549 if test "x${COMPILE_XMLJ}" = xyes; then
18550
18551 succeeded=no
18552
18553 if test -z "$PKG_CONFIG"; then
18554 # Extract the first word of "pkg-config", so it can be a program name with args.
18555 set dummy pkg-config; ac_word=$2
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18557 $as_echo_n "checking for $ac_word... " >&6; }
18558 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18559 $as_echo_n "(cached) " >&6
18560 else
18561 case $PKG_CONFIG in
18562 [\\/]* | ?:[\\/]*)
18563 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18564 ;;
18565 *)
18566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18567 for as_dir in $PATH
18568 do
18569 IFS=$as_save_IFS
18570 test -z "$as_dir" && as_dir=.
18571 for ac_exec_ext in '' $ac_executable_extensions; do
18572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18573 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18575 break 2
18576 fi
18577 done
18578 done
18579 IFS=$as_save_IFS
18580
18581 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18582 ;;
18583 esac
18584 fi
18585 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18586 if test -n "$PKG_CONFIG"; then
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18588 $as_echo "$PKG_CONFIG" >&6; }
18589 else
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18591 $as_echo "no" >&6; }
18592 fi
18593
18594
18595 fi
18596
18597 if test "$PKG_CONFIG" = "no" ; then
18598 echo "*** The pkg-config script could not be found. Make sure it is"
18599 echo "*** in your path, or set the PKG_CONFIG environment variable"
18600 echo "*** to the full path to pkg-config."
18601 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18602 else
18603 PKG_CONFIG_MIN_VERSION=0.9.0
18604 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.8" >&5
18606 $as_echo_n "checking for libxml-2.0 >= 2.6.8... " >&6; }
18607
18608 if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18610 $as_echo "yes" >&6; }
18611 succeeded=yes
18612
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_CFLAGS" >&5
18614 $as_echo_n "checking XML_CFLAGS... " >&6; }
18615 XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_CFLAGS" >&5
18617 $as_echo "$XML_CFLAGS" >&6; }
18618
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_LIBS" >&5
18620 $as_echo_n "checking XML_LIBS... " >&6; }
18621 XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_LIBS" >&5
18623 $as_echo "$XML_LIBS" >&6; }
18624 else
18625 XML_CFLAGS=""
18626 XML_LIBS=""
18627 ## If we have a custom action on failure, don't print errors, but
18628 ## do set a variable so people can do so.
18629 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
18630 echo $XML_PKG_ERRORS
18631 fi
18632
18633
18634
18635 else
18636 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18637 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18638 fi
18639 fi
18640
18641 if test $succeeded = yes; then
18642 :
18643 else
18644 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
18645 fi
18646
18647
18648 succeeded=no
18649
18650 if test -z "$PKG_CONFIG"; then
18651 # Extract the first word of "pkg-config", so it can be a program name with args.
18652 set dummy pkg-config; ac_word=$2
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18654 $as_echo_n "checking for $ac_word... " >&6; }
18655 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18656 $as_echo_n "(cached) " >&6
18657 else
18658 case $PKG_CONFIG in
18659 [\\/]* | ?:[\\/]*)
18660 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18661 ;;
18662 *)
18663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18664 for as_dir in $PATH
18665 do
18666 IFS=$as_save_IFS
18667 test -z "$as_dir" && as_dir=.
18668 for ac_exec_ext in '' $ac_executable_extensions; do
18669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18670 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18672 break 2
18673 fi
18674 done
18675 done
18676 IFS=$as_save_IFS
18677
18678 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18679 ;;
18680 esac
18681 fi
18682 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18683 if test -n "$PKG_CONFIG"; then
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18685 $as_echo "$PKG_CONFIG" >&6; }
18686 else
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18688 $as_echo "no" >&6; }
18689 fi
18690
18691
18692 fi
18693
18694 if test "$PKG_CONFIG" = "no" ; then
18695 echo "*** The pkg-config script could not be found. Make sure it is"
18696 echo "*** in your path, or set the PKG_CONFIG environment variable"
18697 echo "*** to the full path to pkg-config."
18698 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18699 else
18700 PKG_CONFIG_MIN_VERSION=0.9.0
18701 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt >= 1.1.11" >&5
18703 $as_echo_n "checking for libxslt >= 1.1.11... " >&6; }
18704
18705 if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18707 $as_echo "yes" >&6; }
18708 succeeded=yes
18709
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_CFLAGS" >&5
18711 $as_echo_n "checking XSLT_CFLAGS... " >&6; }
18712 XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_CFLAGS" >&5
18714 $as_echo "$XSLT_CFLAGS" >&6; }
18715
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_LIBS" >&5
18717 $as_echo_n "checking XSLT_LIBS... " >&6; }
18718 XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_LIBS" >&5
18720 $as_echo "$XSLT_LIBS" >&6; }
18721 else
18722 XSLT_CFLAGS=""
18723 XSLT_LIBS=""
18724 ## If we have a custom action on failure, don't print errors, but
18725 ## do set a variable so people can do so.
18726 XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
18727 echo $XSLT_PKG_ERRORS
18728 fi
18729
18730
18731
18732 else
18733 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18734 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18735 fi
18736 fi
18737
18738 if test $succeeded = yes; then
18739 :
18740 else
18741 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
18742 fi
18743
18744
18745
18746
18747
18748 fi
18749
18750 if test "x${COMPILE_GTK_PEER}" = xyes; then
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18752 $as_echo_n "checking for X... " >&6; }
18753
18754
18755 # Check whether --with-x was given.
18756 if test "${with_x+set}" = set; then :
18757 withval=$with_x;
18758 fi
18759
18760 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18761 if test "x$with_x" = xno; then
18762 # The user explicitly disabled X.
18763 have_x=disabled
18764 else
18765 case $x_includes,$x_libraries in #(
18766 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
18767 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
18768 $as_echo_n "(cached) " >&6
18769 else
18770 # One or both of the vars are not set, and there is no cached value.
18771 ac_x_includes=no ac_x_libraries=no
18772 rm -f -r conftest.dir
18773 if mkdir conftest.dir; then
18774 cd conftest.dir
18775 cat >Imakefile <<'_ACEOF'
18776 incroot:
18777 @echo incroot='${INCROOT}'
18778 usrlibdir:
18779 @echo usrlibdir='${USRLIBDIR}'
18780 libdir:
18781 @echo libdir='${LIBDIR}'
18782 _ACEOF
18783 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18784 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18785 for ac_var in incroot usrlibdir libdir; do
18786 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18787 done
18788 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18789 for ac_extension in a so sl dylib la dll; do
18790 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18791 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18792 ac_im_usrlibdir=$ac_im_libdir; break
18793 fi
18794 done
18795 # Screen out bogus values from the imake configuration. They are
18796 # bogus both because they are the default anyway, and because
18797 # using them would break gcc on systems where it needs fixed includes.
18798 case $ac_im_incroot in
18799 /usr/include) ac_x_includes= ;;
18800 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18801 esac
18802 case $ac_im_usrlibdir in
18803 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
18804 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18805 esac
18806 fi
18807 cd ..
18808 rm -f -r conftest.dir
18809 fi
18810
18811 # Standard set of common directories for X headers.
18812 # Check X11 before X11Rn because it is often a symlink to the current release.
18813 ac_x_header_dirs='
18814 /usr/X11/include
18815 /usr/X11R7/include
18816 /usr/X11R6/include
18817 /usr/X11R5/include
18818 /usr/X11R4/include
18819
18820 /usr/include/X11
18821 /usr/include/X11R7
18822 /usr/include/X11R6
18823 /usr/include/X11R5
18824 /usr/include/X11R4
18825
18826 /usr/local/X11/include
18827 /usr/local/X11R7/include
18828 /usr/local/X11R6/include
18829 /usr/local/X11R5/include
18830 /usr/local/X11R4/include
18831
18832 /usr/local/include/X11
18833 /usr/local/include/X11R7
18834 /usr/local/include/X11R6
18835 /usr/local/include/X11R5
18836 /usr/local/include/X11R4
18837
18838 /usr/X386/include
18839 /usr/x386/include
18840 /usr/XFree86/include/X11
18841
18842 /usr/include
18843 /usr/local/include
18844 /usr/unsupported/include
18845 /usr/athena/include
18846 /usr/local/x11r5/include
18847 /usr/lpp/Xamples/include
18848
18849 /usr/openwin/include
18850 /usr/openwin/share/include'
18851
18852 if test "$ac_x_includes" = no; then
18853 # Guess where to find include files, by looking for Xlib.h.
18854 # First, try using that file with no special directory specified.
18855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18856 /* end confdefs.h. */
18857 #include <X11/Xlib.h>
18858 _ACEOF
18859 if ac_fn_c_try_cpp "$LINENO"; then :
18860 # We can compile using X headers with no special include directory.
18861 ac_x_includes=
18862 else
18863 for ac_dir in $ac_x_header_dirs; do
18864 if test -r "$ac_dir/X11/Xlib.h"; then
18865 ac_x_includes=$ac_dir
18866 break
18867 fi
18868 done
18869 fi
18870 rm -f conftest.err conftest.$ac_ext
18871 fi # $ac_x_includes = no
18872
18873 if test "$ac_x_libraries" = no; then
18874 # Check for the libraries.
18875 # See if we find them without any special options.
18876 # Don't add to $LIBS permanently.
18877 ac_save_LIBS=$LIBS
18878 LIBS="-lX11 $LIBS"
18879 if test x$gcc_no_link = xyes; then
18880 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18881 fi
18882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18883 /* end confdefs.h. */
18884 #include <X11/Xlib.h>
18885 int
18886 main ()
18887 {
18888 XrmInitialize ()
18889 ;
18890 return 0;
18891 }
18892 _ACEOF
18893 if ac_fn_c_try_link "$LINENO"; then :
18894 LIBS=$ac_save_LIBS
18895 # We can link X programs with no special library path.
18896 ac_x_libraries=
18897 else
18898 LIBS=$ac_save_LIBS
18899 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18900 do
18901 # Don't even attempt the hair of trying to link an X program!
18902 for ac_extension in a so sl dylib la dll; do
18903 if test -r "$ac_dir/libX11.$ac_extension"; then
18904 ac_x_libraries=$ac_dir
18905 break 2
18906 fi
18907 done
18908 done
18909 fi
18910 rm -f core conftest.err conftest.$ac_objext \
18911 conftest$ac_exeext conftest.$ac_ext
18912 fi # $ac_x_libraries = no
18913
18914 case $ac_x_includes,$ac_x_libraries in #(
18915 no,* | *,no | *\'*)
18916 # Didn't find X, or a directory has "'" in its name.
18917 ac_cv_have_x="have_x=no";; #(
18918 *)
18919 # Record where we found X for the cache.
18920 ac_cv_have_x="have_x=yes\
18921 ac_x_includes='$ac_x_includes'\
18922 ac_x_libraries='$ac_x_libraries'"
18923 esac
18924 fi
18925 ;; #(
18926 *) have_x=yes;;
18927 esac
18928 eval "$ac_cv_have_x"
18929 fi # $with_x != no
18930
18931 if test "$have_x" != yes; then
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18933 $as_echo "$have_x" >&6; }
18934 no_x=yes
18935 else
18936 # If each of the values was on the command line, it overrides each guess.
18937 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18938 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18939 # Update the cache value to reflect the command line values.
18940 ac_cv_have_x="have_x=yes\
18941 ac_x_includes='$x_includes'\
18942 ac_x_libraries='$x_libraries'"
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18944 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18945 fi
18946
18947 if test "$no_x" = yes; then
18948 # Not all programs may use this symbol, but it does not hurt to define it.
18949
18950 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
18951
18952 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18953 else
18954 if test -n "$x_includes"; then
18955 X_CFLAGS="$X_CFLAGS -I$x_includes"
18956 fi
18957
18958 # It would also be nice to do this for all -L options, not just this one.
18959 if test -n "$x_libraries"; then
18960 X_LIBS="$X_LIBS -L$x_libraries"
18961 # For Solaris; some versions of Sun CC require a space after -R and
18962 # others require no space. Words are not sufficient . . . .
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
18964 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
18965 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18966 ac_xsave_c_werror_flag=$ac_c_werror_flag
18967 ac_c_werror_flag=yes
18968 if test x$gcc_no_link = xyes; then
18969 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18970 fi
18971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18972 /* end confdefs.h. */
18973
18974 int
18975 main ()
18976 {
18977
18978 ;
18979 return 0;
18980 }
18981 _ACEOF
18982 if ac_fn_c_try_link "$LINENO"; then :
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18984 $as_echo "no" >&6; }
18985 X_LIBS="$X_LIBS -R$x_libraries"
18986 else
18987 LIBS="$ac_xsave_LIBS -R $x_libraries"
18988 if test x$gcc_no_link = xyes; then
18989 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18990 fi
18991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18992 /* end confdefs.h. */
18993
18994 int
18995 main ()
18996 {
18997
18998 ;
18999 return 0;
19000 }
19001 _ACEOF
19002 if ac_fn_c_try_link "$LINENO"; then :
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19004 $as_echo "yes" >&6; }
19005 X_LIBS="$X_LIBS -R $x_libraries"
19006 else
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19008 $as_echo "neither works" >&6; }
19009 fi
19010 rm -f core conftest.err conftest.$ac_objext \
19011 conftest$ac_exeext conftest.$ac_ext
19012 fi
19013 rm -f core conftest.err conftest.$ac_objext \
19014 conftest$ac_exeext conftest.$ac_ext
19015 ac_c_werror_flag=$ac_xsave_c_werror_flag
19016 LIBS=$ac_xsave_LIBS
19017 fi
19018
19019 # Check for system-dependent libraries X programs must link with.
19020 # Do this before checking for the system-independent R6 libraries
19021 # (-lICE), since we may need -lsocket or whatever for X linking.
19022
19023 if test "$ISC" = yes; then
19024 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19025 else
19026 # Martyn Johnson says this is needed for Ultrix, if the X
19027 # libraries were built with DECnet support. And Karl Berry says
19028 # the Alpha needs dnet_stub (dnet does not exist).
19029 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19030 if test x$gcc_no_link = xyes; then
19031 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19032 fi
19033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19034 /* end confdefs.h. */
19035
19036 /* Override any GCC internal prototype to avoid an error.
19037 Use char because int might match the return type of a GCC
19038 builtin and then its argument prototype would still apply. */
19039 #ifdef __cplusplus
19040 extern "C"
19041 #endif
19042 char XOpenDisplay ();
19043 int
19044 main ()
19045 {
19046 return XOpenDisplay ();
19047 ;
19048 return 0;
19049 }
19050 _ACEOF
19051 if ac_fn_c_try_link "$LINENO"; then :
19052
19053 else
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19055 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19056 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
19057 $as_echo_n "(cached) " >&6
19058 else
19059 ac_check_lib_save_LIBS=$LIBS
19060 LIBS="-ldnet $LIBS"
19061 if test x$gcc_no_link = xyes; then
19062 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19063 fi
19064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19065 /* end confdefs.h. */
19066
19067 /* Override any GCC internal prototype to avoid an error.
19068 Use char because int might match the return type of a GCC
19069 builtin and then its argument prototype would still apply. */
19070 #ifdef __cplusplus
19071 extern "C"
19072 #endif
19073 char dnet_ntoa ();
19074 int
19075 main ()
19076 {
19077 return dnet_ntoa ();
19078 ;
19079 return 0;
19080 }
19081 _ACEOF
19082 if ac_fn_c_try_link "$LINENO"; then :
19083 ac_cv_lib_dnet_dnet_ntoa=yes
19084 else
19085 ac_cv_lib_dnet_dnet_ntoa=no
19086 fi
19087 rm -f core conftest.err conftest.$ac_objext \
19088 conftest$ac_exeext conftest.$ac_ext
19089 LIBS=$ac_check_lib_save_LIBS
19090 fi
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19092 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19093 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
19094 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19095 fi
19096
19097 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19099 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19100 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
19101 $as_echo_n "(cached) " >&6
19102 else
19103 ac_check_lib_save_LIBS=$LIBS
19104 LIBS="-ldnet_stub $LIBS"
19105 if test x$gcc_no_link = xyes; then
19106 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19107 fi
19108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19109 /* end confdefs.h. */
19110
19111 /* Override any GCC internal prototype to avoid an error.
19112 Use char because int might match the return type of a GCC
19113 builtin and then its argument prototype would still apply. */
19114 #ifdef __cplusplus
19115 extern "C"
19116 #endif
19117 char dnet_ntoa ();
19118 int
19119 main ()
19120 {
19121 return dnet_ntoa ();
19122 ;
19123 return 0;
19124 }
19125 _ACEOF
19126 if ac_fn_c_try_link "$LINENO"; then :
19127 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19128 else
19129 ac_cv_lib_dnet_stub_dnet_ntoa=no
19130 fi
19131 rm -f core conftest.err conftest.$ac_objext \
19132 conftest$ac_exeext conftest.$ac_ext
19133 LIBS=$ac_check_lib_save_LIBS
19134 fi
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19136 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19137 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
19138 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19139 fi
19140
19141 fi
19142 fi
19143 rm -f core conftest.err conftest.$ac_objext \
19144 conftest$ac_exeext conftest.$ac_ext
19145 LIBS="$ac_xsave_LIBS"
19146
19147 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19148 # to get the SysV transport functions.
19149 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19150 # needs -lnsl.
19151 # The nsl library prevents programs from opening the X display
19152 # on Irix 5.2, according to T.E. Dickey.
19153 # The functions gethostbyname, getservbyname, and inet_addr are
19154 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19155 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19156 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
19157
19158 fi
19159
19160 if test $ac_cv_func_gethostbyname = no; then
19161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19162 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19163 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
19164 $as_echo_n "(cached) " >&6
19165 else
19166 ac_check_lib_save_LIBS=$LIBS
19167 LIBS="-lnsl $LIBS"
19168 if test x$gcc_no_link = xyes; then
19169 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19170 fi
19171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19172 /* end confdefs.h. */
19173
19174 /* Override any GCC internal prototype to avoid an error.
19175 Use char because int might match the return type of a GCC
19176 builtin and then its argument prototype would still apply. */
19177 #ifdef __cplusplus
19178 extern "C"
19179 #endif
19180 char gethostbyname ();
19181 int
19182 main ()
19183 {
19184 return gethostbyname ();
19185 ;
19186 return 0;
19187 }
19188 _ACEOF
19189 if ac_fn_c_try_link "$LINENO"; then :
19190 ac_cv_lib_nsl_gethostbyname=yes
19191 else
19192 ac_cv_lib_nsl_gethostbyname=no
19193 fi
19194 rm -f core conftest.err conftest.$ac_objext \
19195 conftest$ac_exeext conftest.$ac_ext
19196 LIBS=$ac_check_lib_save_LIBS
19197 fi
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19199 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19200 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
19201 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19202 fi
19203
19204 if test $ac_cv_lib_nsl_gethostbyname = no; then
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
19206 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
19207 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
19208 $as_echo_n "(cached) " >&6
19209 else
19210 ac_check_lib_save_LIBS=$LIBS
19211 LIBS="-lbsd $LIBS"
19212 if test x$gcc_no_link = xyes; then
19213 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19214 fi
19215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19216 /* end confdefs.h. */
19217
19218 /* Override any GCC internal prototype to avoid an error.
19219 Use char because int might match the return type of a GCC
19220 builtin and then its argument prototype would still apply. */
19221 #ifdef __cplusplus
19222 extern "C"
19223 #endif
19224 char gethostbyname ();
19225 int
19226 main ()
19227 {
19228 return gethostbyname ();
19229 ;
19230 return 0;
19231 }
19232 _ACEOF
19233 if ac_fn_c_try_link "$LINENO"; then :
19234 ac_cv_lib_bsd_gethostbyname=yes
19235 else
19236 ac_cv_lib_bsd_gethostbyname=no
19237 fi
19238 rm -f core conftest.err conftest.$ac_objext \
19239 conftest$ac_exeext conftest.$ac_ext
19240 LIBS=$ac_check_lib_save_LIBS
19241 fi
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
19243 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
19244 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
19245 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19246 fi
19247
19248 fi
19249 fi
19250
19251 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19252 # socket/setsockopt and other routines are undefined under SCO ODT
19253 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19254 # on later versions), says Simon Leinen: it contains gethostby*
19255 # variants that don't use the name server (or something). -lsocket
19256 # must be given before -lnsl if both are needed. We assume that
19257 # if connect needs -lnsl, so does gethostbyname.
19258 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
19259 if test "x$ac_cv_func_connect" = x""yes; then :
19260
19261 fi
19262
19263 if test $ac_cv_func_connect = no; then
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
19265 $as_echo_n "checking for connect in -lsocket... " >&6; }
19266 if test "${ac_cv_lib_socket_connect+set}" = set; then :
19267 $as_echo_n "(cached) " >&6
19268 else
19269 ac_check_lib_save_LIBS=$LIBS
19270 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19271 if test x$gcc_no_link = xyes; then
19272 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19273 fi
19274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19275 /* end confdefs.h. */
19276
19277 /* Override any GCC internal prototype to avoid an error.
19278 Use char because int might match the return type of a GCC
19279 builtin and then its argument prototype would still apply. */
19280 #ifdef __cplusplus
19281 extern "C"
19282 #endif
19283 char connect ();
19284 int
19285 main ()
19286 {
19287 return connect ();
19288 ;
19289 return 0;
19290 }
19291 _ACEOF
19292 if ac_fn_c_try_link "$LINENO"; then :
19293 ac_cv_lib_socket_connect=yes
19294 else
19295 ac_cv_lib_socket_connect=no
19296 fi
19297 rm -f core conftest.err conftest.$ac_objext \
19298 conftest$ac_exeext conftest.$ac_ext
19299 LIBS=$ac_check_lib_save_LIBS
19300 fi
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19302 $as_echo "$ac_cv_lib_socket_connect" >&6; }
19303 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
19304 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19305 fi
19306
19307 fi
19308
19309 # Guillermo Gomez says -lposix is necessary on A/UX.
19310 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
19311 if test "x$ac_cv_func_remove" = x""yes; then :
19312
19313 fi
19314
19315 if test $ac_cv_func_remove = no; then
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
19317 $as_echo_n "checking for remove in -lposix... " >&6; }
19318 if test "${ac_cv_lib_posix_remove+set}" = set; then :
19319 $as_echo_n "(cached) " >&6
19320 else
19321 ac_check_lib_save_LIBS=$LIBS
19322 LIBS="-lposix $LIBS"
19323 if test x$gcc_no_link = xyes; then
19324 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19325 fi
19326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19327 /* end confdefs.h. */
19328
19329 /* Override any GCC internal prototype to avoid an error.
19330 Use char because int might match the return type of a GCC
19331 builtin and then its argument prototype would still apply. */
19332 #ifdef __cplusplus
19333 extern "C"
19334 #endif
19335 char remove ();
19336 int
19337 main ()
19338 {
19339 return remove ();
19340 ;
19341 return 0;
19342 }
19343 _ACEOF
19344 if ac_fn_c_try_link "$LINENO"; then :
19345 ac_cv_lib_posix_remove=yes
19346 else
19347 ac_cv_lib_posix_remove=no
19348 fi
19349 rm -f core conftest.err conftest.$ac_objext \
19350 conftest$ac_exeext conftest.$ac_ext
19351 LIBS=$ac_check_lib_save_LIBS
19352 fi
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19354 $as_echo "$ac_cv_lib_posix_remove" >&6; }
19355 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
19356 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19357 fi
19358
19359 fi
19360
19361 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19362 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19363 if test "x$ac_cv_func_shmat" = x""yes; then :
19364
19365 fi
19366
19367 if test $ac_cv_func_shmat = no; then
19368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19369 $as_echo_n "checking for shmat in -lipc... " >&6; }
19370 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
19371 $as_echo_n "(cached) " >&6
19372 else
19373 ac_check_lib_save_LIBS=$LIBS
19374 LIBS="-lipc $LIBS"
19375 if test x$gcc_no_link = xyes; then
19376 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19377 fi
19378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19379 /* end confdefs.h. */
19380
19381 /* Override any GCC internal prototype to avoid an error.
19382 Use char because int might match the return type of a GCC
19383 builtin and then its argument prototype would still apply. */
19384 #ifdef __cplusplus
19385 extern "C"
19386 #endif
19387 char shmat ();
19388 int
19389 main ()
19390 {
19391 return shmat ();
19392 ;
19393 return 0;
19394 }
19395 _ACEOF
19396 if ac_fn_c_try_link "$LINENO"; then :
19397 ac_cv_lib_ipc_shmat=yes
19398 else
19399 ac_cv_lib_ipc_shmat=no
19400 fi
19401 rm -f core conftest.err conftest.$ac_objext \
19402 conftest$ac_exeext conftest.$ac_ext
19403 LIBS=$ac_check_lib_save_LIBS
19404 fi
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19406 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
19407 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
19408 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19409 fi
19410
19411 fi
19412 fi
19413
19414 # Check for libraries that X11R6 Xt/Xaw programs need.
19415 ac_save_LDFLAGS=$LDFLAGS
19416 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19417 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19418 # check for ICE first), but we must link in the order -lSM -lICE or
19419 # we get undefined symbols. So assume we have SM if we have ICE.
19420 # These have to be linked with before -lX11, unlike the other
19421 # libraries we check for below, so use a different variable.
19422 # John Interrante, Karl Berry
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19424 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19425 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
19426 $as_echo_n "(cached) " >&6
19427 else
19428 ac_check_lib_save_LIBS=$LIBS
19429 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19430 if test x$gcc_no_link = xyes; then
19431 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19432 fi
19433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19434 /* end confdefs.h. */
19435
19436 /* Override any GCC internal prototype to avoid an error.
19437 Use char because int might match the return type of a GCC
19438 builtin and then its argument prototype would still apply. */
19439 #ifdef __cplusplus
19440 extern "C"
19441 #endif
19442 char IceConnectionNumber ();
19443 int
19444 main ()
19445 {
19446 return IceConnectionNumber ();
19447 ;
19448 return 0;
19449 }
19450 _ACEOF
19451 if ac_fn_c_try_link "$LINENO"; then :
19452 ac_cv_lib_ICE_IceConnectionNumber=yes
19453 else
19454 ac_cv_lib_ICE_IceConnectionNumber=no
19455 fi
19456 rm -f core conftest.err conftest.$ac_objext \
19457 conftest$ac_exeext conftest.$ac_ext
19458 LIBS=$ac_check_lib_save_LIBS
19459 fi
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19461 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19462 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
19463 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19464 fi
19465
19466 LDFLAGS=$ac_save_LDFLAGS
19467
19468 fi
19469
19470 if test "$no_x" = yes; then
19471 as_fn_error "GTK+ peers requested but no X library available" "$LINENO" 5
19472 fi
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
19474 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
19475 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
19476 $as_echo_n "(cached) " >&6
19477 else
19478 ac_check_lib_save_LIBS=$LIBS
19479 LIBS="-lXtst ${X_LIBS} $LIBS"
19480 if test x$gcc_no_link = xyes; then
19481 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19482 fi
19483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19484 /* end confdefs.h. */
19485
19486 /* Override any GCC internal prototype to avoid an error.
19487 Use char because int might match the return type of a GCC
19488 builtin and then its argument prototype would still apply. */
19489 #ifdef __cplusplus
19490 extern "C"
19491 #endif
19492 char XTestQueryExtension ();
19493 int
19494 main ()
19495 {
19496 return XTestQueryExtension ();
19497 ;
19498 return 0;
19499 }
19500 _ACEOF
19501 if ac_fn_c_try_link "$LINENO"; then :
19502 ac_cv_lib_Xtst_XTestQueryExtension=yes
19503 else
19504 ac_cv_lib_Xtst_XTestQueryExtension=no
19505 fi
19506 rm -f core conftest.err conftest.$ac_objext \
19507 conftest$ac_exeext conftest.$ac_ext
19508 LIBS=$ac_check_lib_save_LIBS
19509 fi
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
19511 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
19512 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
19513
19514 $as_echo "#define HAVE_XTEST 1" >>confdefs.h
19515 XTEST_LIBS="$XTEST_LIBS -X11 -lXtst"
19516 else
19517 true
19518 fi
19519
19520
19521
19522
19523 succeeded=no
19524
19525 if test -z "$PKG_CONFIG"; then
19526 # Extract the first word of "pkg-config", so it can be a program name with args.
19527 set dummy pkg-config; ac_word=$2
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19529 $as_echo_n "checking for $ac_word... " >&6; }
19530 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19531 $as_echo_n "(cached) " >&6
19532 else
19533 case $PKG_CONFIG in
19534 [\\/]* | ?:[\\/]*)
19535 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19536 ;;
19537 *)
19538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19539 for as_dir in $PATH
19540 do
19541 IFS=$as_save_IFS
19542 test -z "$as_dir" && as_dir=.
19543 for ac_exec_ext in '' $ac_executable_extensions; do
19544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19545 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19547 break 2
19548 fi
19549 done
19550 done
19551 IFS=$as_save_IFS
19552
19553 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19554 ;;
19555 esac
19556 fi
19557 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19558 if test -n "$PKG_CONFIG"; then
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19560 $as_echo "$PKG_CONFIG" >&6; }
19561 else
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19563 $as_echo "no" >&6; }
19564 fi
19565
19566
19567 fi
19568
19569 if test "$PKG_CONFIG" = "no" ; then
19570 echo "*** The pkg-config script could not be found. Make sure it is"
19571 echo "*** in your path, or set the PKG_CONFIG environment variable"
19572 echo "*** to the full path to pkg-config."
19573 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19574 else
19575 PKG_CONFIG_MIN_VERSION=0.9.0
19576 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
19578 $as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
19579
19580 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19582 $as_echo "yes" >&6; }
19583 succeeded=yes
19584
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
19586 $as_echo_n "checking GTK_CFLAGS... " >&6; }
19587 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
19589 $as_echo "$GTK_CFLAGS" >&6; }
19590
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
19592 $as_echo_n "checking GTK_LIBS... " >&6; }
19593 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
19595 $as_echo "$GTK_LIBS" >&6; }
19596 else
19597 GTK_CFLAGS=""
19598 GTK_LIBS=""
19599 ## If we have a custom action on failure, don't print errors, but
19600 ## do set a variable so people can do so.
19601 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19602 echo $GTK_PKG_ERRORS
19603 fi
19604
19605
19606
19607 else
19608 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19609 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19610 fi
19611 fi
19612
19613 if test $succeeded = yes; then
19614 :
19615 else
19616 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
19617 fi
19618
19619
19620 succeeded=no
19621
19622 if test -z "$PKG_CONFIG"; then
19623 # Extract the first word of "pkg-config", so it can be a program name with args.
19624 set dummy pkg-config; ac_word=$2
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19626 $as_echo_n "checking for $ac_word... " >&6; }
19627 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19628 $as_echo_n "(cached) " >&6
19629 else
19630 case $PKG_CONFIG in
19631 [\\/]* | ?:[\\/]*)
19632 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19633 ;;
19634 *)
19635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19636 for as_dir in $PATH
19637 do
19638 IFS=$as_save_IFS
19639 test -z "$as_dir" && as_dir=.
19640 for ac_exec_ext in '' $ac_executable_extensions; do
19641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19642 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19644 break 2
19645 fi
19646 done
19647 done
19648 IFS=$as_save_IFS
19649
19650 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19651 ;;
19652 esac
19653 fi
19654 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19655 if test -n "$PKG_CONFIG"; then
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19657 $as_echo "$PKG_CONFIG" >&6; }
19658 else
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19660 $as_echo "no" >&6; }
19661 fi
19662
19663
19664 fi
19665
19666 if test "$PKG_CONFIG" = "no" ; then
19667 echo "*** The pkg-config script could not be found. Make sure it is"
19668 echo "*** in your path, or set the PKG_CONFIG environment variable"
19669 echo "*** to the full path to pkg-config."
19670 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19671 else
19672 PKG_CONFIG_MIN_VERSION=0.9.0
19673 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
19675 $as_echo_n "checking for freetype2... " >&6; }
19676
19677 if $PKG_CONFIG --exists "freetype2" ; then
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19679 $as_echo "yes" >&6; }
19680 succeeded=yes
19681
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_CFLAGS" >&5
19683 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
19684 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_CFLAGS" >&5
19686 $as_echo "$FREETYPE2_CFLAGS" >&6; }
19687
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_LIBS" >&5
19689 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
19690 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_LIBS" >&5
19692 $as_echo "$FREETYPE2_LIBS" >&6; }
19693 else
19694 FREETYPE2_CFLAGS=""
19695 FREETYPE2_LIBS=""
19696 ## If we have a custom action on failure, don't print errors, but
19697 ## do set a variable so people can do so.
19698 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
19699 echo $FREETYPE2_PKG_ERRORS
19700 fi
19701
19702
19703
19704 else
19705 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19706 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19707 fi
19708 fi
19709
19710 if test $succeeded = yes; then
19711 :
19712 else
19713 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
19714 fi
19715
19716
19717 succeeded=no
19718
19719 if test -z "$PKG_CONFIG"; then
19720 # Extract the first word of "pkg-config", so it can be a program name with args.
19721 set dummy pkg-config; ac_word=$2
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19723 $as_echo_n "checking for $ac_word... " >&6; }
19724 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19725 $as_echo_n "(cached) " >&6
19726 else
19727 case $PKG_CONFIG in
19728 [\\/]* | ?:[\\/]*)
19729 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19730 ;;
19731 *)
19732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19733 for as_dir in $PATH
19734 do
19735 IFS=$as_save_IFS
19736 test -z "$as_dir" && as_dir=.
19737 for ac_exec_ext in '' $ac_executable_extensions; do
19738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19739 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19741 break 2
19742 fi
19743 done
19744 done
19745 IFS=$as_save_IFS
19746
19747 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19748 ;;
19749 esac
19750 fi
19751 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19752 if test -n "$PKG_CONFIG"; then
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19754 $as_echo "$PKG_CONFIG" >&6; }
19755 else
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19757 $as_echo "no" >&6; }
19758 fi
19759
19760
19761 fi
19762
19763 if test "$PKG_CONFIG" = "no" ; then
19764 echo "*** The pkg-config script could not be found. Make sure it is"
19765 echo "*** in your path, or set the PKG_CONFIG environment variable"
19766 echo "*** to the full path to pkg-config."
19767 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19768 else
19769 PKG_CONFIG_MIN_VERSION=0.9.0
19770 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pangoft2" >&5
19772 $as_echo_n "checking for pangoft2... " >&6; }
19773
19774 if $PKG_CONFIG --exists "pangoft2" ; then
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19776 $as_echo "yes" >&6; }
19777 succeeded=yes
19778
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_CFLAGS" >&5
19780 $as_echo_n "checking PANGOFT2_CFLAGS... " >&6; }
19781 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
19782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_CFLAGS" >&5
19783 $as_echo "$PANGOFT2_CFLAGS" >&6; }
19784
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_LIBS" >&5
19786 $as_echo_n "checking PANGOFT2_LIBS... " >&6; }
19787 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
19788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_LIBS" >&5
19789 $as_echo "$PANGOFT2_LIBS" >&6; }
19790 else
19791 PANGOFT2_CFLAGS=""
19792 PANGOFT2_LIBS=""
19793 ## If we have a custom action on failure, don't print errors, but
19794 ## do set a variable so people can do so.
19795 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
19796 echo $PANGOFT2_PKG_ERRORS
19797 fi
19798
19799
19800
19801 else
19802 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19803 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19804 fi
19805 fi
19806
19807 if test $succeeded = yes; then
19808 :
19809 else
19810 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
19811 fi
19812
19813
19814 succeeded=no
19815
19816 if test -z "$PKG_CONFIG"; then
19817 # Extract the first word of "pkg-config", so it can be a program name with args.
19818 set dummy pkg-config; ac_word=$2
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19820 $as_echo_n "checking for $ac_word... " >&6; }
19821 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19822 $as_echo_n "(cached) " >&6
19823 else
19824 case $PKG_CONFIG in
19825 [\\/]* | ?:[\\/]*)
19826 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19827 ;;
19828 *)
19829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19830 for as_dir in $PATH
19831 do
19832 IFS=$as_save_IFS
19833 test -z "$as_dir" && as_dir=.
19834 for ac_exec_ext in '' $ac_executable_extensions; do
19835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19836 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19838 break 2
19839 fi
19840 done
19841 done
19842 IFS=$as_save_IFS
19843
19844 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19845 ;;
19846 esac
19847 fi
19848 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19849 if test -n "$PKG_CONFIG"; then
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19851 $as_echo "$PKG_CONFIG" >&6; }
19852 else
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19854 $as_echo "no" >&6; }
19855 fi
19856
19857
19858 fi
19859
19860 if test "$PKG_CONFIG" = "no" ; then
19861 echo "*** The pkg-config script could not be found. Make sure it is"
19862 echo "*** in your path, or set the PKG_CONFIG environment variable"
19863 echo "*** to the full path to pkg-config."
19864 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19865 else
19866 PKG_CONFIG_MIN_VERSION=0.9.0
19867 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo >= 1.1.8" >&5
19869 $as_echo_n "checking for cairo >= 1.1.8... " >&6; }
19870
19871 if $PKG_CONFIG --exists "cairo >= 1.1.8" ; then
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19873 $as_echo "yes" >&6; }
19874 succeeded=yes
19875
19876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_CFLAGS" >&5
19877 $as_echo_n "checking CAIRO_CFLAGS... " >&6; }
19878 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.1.8"`
19879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_CFLAGS" >&5
19880 $as_echo "$CAIRO_CFLAGS" >&6; }
19881
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_LIBS" >&5
19883 $as_echo_n "checking CAIRO_LIBS... " >&6; }
19884 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.1.8"`
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_LIBS" >&5
19886 $as_echo "$CAIRO_LIBS" >&6; }
19887 else
19888 CAIRO_CFLAGS=""
19889 CAIRO_LIBS=""
19890 ## If we have a custom action on failure, don't print errors, but
19891 ## do set a variable so people can do so.
19892 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.1.8"`
19893 echo $CAIRO_PKG_ERRORS
19894 fi
19895
19896
19897
19898 else
19899 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19900 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19901 fi
19902 fi
19903
19904 if test $succeeded = yes; then
19905 :
19906 else
19907 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
19908 fi
19909
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
19911 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
19912 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
19913 $as_echo_n "(cached) " >&6
19914 else
19915 ac_check_lib_save_LIBS=$LIBS
19916 LIBS="-lXrender ${X_LIBS} $LIBS"
19917 if test x$gcc_no_link = xyes; then
19918 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19919 fi
19920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19921 /* end confdefs.h. */
19922
19923 /* Override any GCC internal prototype to avoid an error.
19924 Use char because int might match the return type of a GCC
19925 builtin and then its argument prototype would still apply. */
19926 #ifdef __cplusplus
19927 extern "C"
19928 #endif
19929 char XRenderQueryExtension ();
19930 int
19931 main ()
19932 {
19933 return XRenderQueryExtension ();
19934 ;
19935 return 0;
19936 }
19937 _ACEOF
19938 if ac_fn_c_try_link "$LINENO"; then :
19939 ac_cv_lib_Xrender_XRenderQueryExtension=yes
19940 else
19941 ac_cv_lib_Xrender_XRenderQueryExtension=no
19942 fi
19943 rm -f core conftest.err conftest.$ac_objext \
19944 conftest$ac_exeext conftest.$ac_ext
19945 LIBS=$ac_check_lib_save_LIBS
19946 fi
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
19948 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
19949 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
19950
19951 $as_echo "#define HAVE_XRENDER 1" >>confdefs.h
19952 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
19953 else
19954 true
19955 fi
19956
19957
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
19959 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
19960 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then :
19961 $as_echo_n "(cached) " >&6
19962 else
19963 ac_check_lib_save_LIBS=$LIBS
19964 LIBS="-lXrandr ${X_LIBS} $LIBS"
19965 if test x$gcc_no_link = xyes; then
19966 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19967 fi
19968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19969 /* end confdefs.h. */
19970
19971 /* Override any GCC internal prototype to avoid an error.
19972 Use char because int might match the return type of a GCC
19973 builtin and then its argument prototype would still apply. */
19974 #ifdef __cplusplus
19975 extern "C"
19976 #endif
19977 char XRRQueryExtension ();
19978 int
19979 main ()
19980 {
19981 return XRRQueryExtension ();
19982 ;
19983 return 0;
19984 }
19985 _ACEOF
19986 if ac_fn_c_try_link "$LINENO"; then :
19987 ac_cv_lib_Xrandr_XRRQueryExtension=yes
19988 else
19989 ac_cv_lib_Xrandr_XRRQueryExtension=no
19990 fi
19991 rm -f core conftest.err conftest.$ac_objext \
19992 conftest$ac_exeext conftest.$ac_ext
19993 LIBS=$ac_check_lib_save_LIBS
19994 fi
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
19996 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
19997 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then :
19998
19999 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
20000 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
20001 else
20002 true
20003 fi
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013 fi
20014
20015 if test "x${COMPILE_GCONF_PEER}" = xyes; then
20016
20017 succeeded=no
20018
20019 if test -z "$PKG_CONFIG"; then
20020 # Extract the first word of "pkg-config", so it can be a program name with args.
20021 set dummy pkg-config; ac_word=$2
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20023 $as_echo_n "checking for $ac_word... " >&6; }
20024 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20025 $as_echo_n "(cached) " >&6
20026 else
20027 case $PKG_CONFIG in
20028 [\\/]* | ?:[\\/]*)
20029 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20030 ;;
20031 *)
20032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20033 for as_dir in $PATH
20034 do
20035 IFS=$as_save_IFS
20036 test -z "$as_dir" && as_dir=.
20037 for ac_exec_ext in '' $ac_executable_extensions; do
20038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20039 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20041 break 2
20042 fi
20043 done
20044 done
20045 IFS=$as_save_IFS
20046
20047 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20048 ;;
20049 esac
20050 fi
20051 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20052 if test -n "$PKG_CONFIG"; then
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20054 $as_echo "$PKG_CONFIG" >&6; }
20055 else
20056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20057 $as_echo "no" >&6; }
20058 fi
20059
20060
20061 fi
20062
20063 if test "$PKG_CONFIG" = "no" ; then
20064 echo "*** The pkg-config script could not be found. Make sure it is"
20065 echo "*** in your path, or set the PKG_CONFIG environment variable"
20066 echo "*** to the full path to pkg-config."
20067 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20068 else
20069 PKG_CONFIG_MIN_VERSION=0.9.0
20070 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.6.0" >&5
20072 $as_echo_n "checking for gconf-2.0 >= 2.6.0... " >&6; }
20073
20074 if $PKG_CONFIG --exists "gconf-2.0 >= 2.6.0" ; then
20075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20076 $as_echo "yes" >&6; }
20077 succeeded=yes
20078
20079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
20080 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
20081 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.6.0"`
20082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
20083 $as_echo "$GCONF_CFLAGS" >&6; }
20084
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
20086 $as_echo_n "checking GCONF_LIBS... " >&6; }
20087 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.6.0"`
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
20089 $as_echo "$GCONF_LIBS" >&6; }
20090 else
20091 GCONF_CFLAGS=""
20092 GCONF_LIBS=""
20093 ## If we have a custom action on failure, don't print errors, but
20094 ## do set a variable so people can do so.
20095 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.6.0"`
20096 echo $GCONF_PKG_ERRORS
20097 fi
20098
20099
20100
20101 else
20102 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20103 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20104 fi
20105 fi
20106
20107 if test $succeeded = yes; then
20108 :
20109 else
20110 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
20111 fi
20112
20113
20114
20115
20116 succeeded=no
20117
20118 if test -z "$PKG_CONFIG"; then
20119 # Extract the first word of "pkg-config", so it can be a program name with args.
20120 set dummy pkg-config; ac_word=$2
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20122 $as_echo_n "checking for $ac_word... " >&6; }
20123 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20124 $as_echo_n "(cached) " >&6
20125 else
20126 case $PKG_CONFIG in
20127 [\\/]* | ?:[\\/]*)
20128 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20129 ;;
20130 *)
20131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20132 for as_dir in $PATH
20133 do
20134 IFS=$as_save_IFS
20135 test -z "$as_dir" && as_dir=.
20136 for ac_exec_ext in '' $ac_executable_extensions; do
20137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20138 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20140 break 2
20141 fi
20142 done
20143 done
20144 IFS=$as_save_IFS
20145
20146 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20147 ;;
20148 esac
20149 fi
20150 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20151 if test -n "$PKG_CONFIG"; then
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20153 $as_echo "$PKG_CONFIG" >&6; }
20154 else
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20156 $as_echo "no" >&6; }
20157 fi
20158
20159
20160 fi
20161
20162 if test "$PKG_CONFIG" = "no" ; then
20163 echo "*** The pkg-config script could not be found. Make sure it is"
20164 echo "*** in your path, or set the PKG_CONFIG environment variable"
20165 echo "*** to the full path to pkg-config."
20166 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20167 else
20168 PKG_CONFIG_MIN_VERSION=0.9.0
20169 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
20171 $as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
20172
20173 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
20174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20175 $as_echo "yes" >&6; }
20176 succeeded=yes
20177
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
20179 $as_echo_n "checking GDK_CFLAGS... " >&6; }
20180 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
20182 $as_echo "$GDK_CFLAGS" >&6; }
20183
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
20185 $as_echo_n "checking GDK_LIBS... " >&6; }
20186 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
20188 $as_echo "$GDK_LIBS" >&6; }
20189 else
20190 GDK_CFLAGS=""
20191 GDK_LIBS=""
20192 ## If we have a custom action on failure, don't print errors, but
20193 ## do set a variable so people can do so.
20194 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
20195 echo $GDK_PKG_ERRORS
20196 fi
20197
20198
20199
20200 else
20201 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20202 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20203 fi
20204 fi
20205
20206 if test $succeeded = yes; then
20207 :
20208 else
20209 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
20210 fi
20211
20212
20213
20214 USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
20215 if test "$USE_GCONF_PREFS_PEER" = ""; then
20216 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
20217 fi
20218 fi
20219
20220 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
20221 GST_MAJORMINOR=0.10
20222 GST_REQUIRED=0.10.10
20223
20224
20225 succeeded=no
20226
20227 if test -z "$PKG_CONFIG"; then
20228 # Extract the first word of "pkg-config", so it can be a program name with args.
20229 set dummy pkg-config; ac_word=$2
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20231 $as_echo_n "checking for $ac_word... " >&6; }
20232 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20233 $as_echo_n "(cached) " >&6
20234 else
20235 case $PKG_CONFIG in
20236 [\\/]* | ?:[\\/]*)
20237 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20238 ;;
20239 *)
20240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20241 for as_dir in $PATH
20242 do
20243 IFS=$as_save_IFS
20244 test -z "$as_dir" && as_dir=.
20245 for ac_exec_ext in '' $ac_executable_extensions; do
20246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20247 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20249 break 2
20250 fi
20251 done
20252 done
20253 IFS=$as_save_IFS
20254
20255 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20256 ;;
20257 esac
20258 fi
20259 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20260 if test -n "$PKG_CONFIG"; then
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20262 $as_echo "$PKG_CONFIG" >&6; }
20263 else
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20265 $as_echo "no" >&6; }
20266 fi
20267
20268
20269 fi
20270
20271 if test "$PKG_CONFIG" = "no" ; then
20272 echo "*** The pkg-config script could not be found. Make sure it is"
20273 echo "*** in your path, or set the PKG_CONFIG environment variable"
20274 echo "*** to the full path to pkg-config."
20275 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20276 else
20277 PKG_CONFIG_MIN_VERSION=0.9.0
20278 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20280 $as_echo_n "checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20281
20282 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20284 $as_echo "yes" >&6; }
20285 succeeded=yes
20286
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_CFLAGS" >&5
20288 $as_echo_n "checking GSTREAMER_CFLAGS... " >&6; }
20289 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_CFLAGS" >&5
20291 $as_echo "$GSTREAMER_CFLAGS" >&6; }
20292
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_LIBS" >&5
20294 $as_echo_n "checking GSTREAMER_LIBS... " >&6; }
20295 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_LIBS" >&5
20297 $as_echo "$GSTREAMER_LIBS" >&6; }
20298 else
20299 GSTREAMER_CFLAGS=""
20300 GSTREAMER_LIBS=""
20301 ## If we have a custom action on failure, don't print errors, but
20302 ## do set a variable so people can do so.
20303 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20304 echo $GSTREAMER_PKG_ERRORS
20305 fi
20306
20307
20308
20309 else
20310 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20311 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20312 fi
20313 fi
20314
20315 if test $succeeded = yes; then
20316 :
20317 else
20318 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
20319 fi
20320
20321
20322
20323
20324
20325 succeeded=no
20326
20327 if test -z "$PKG_CONFIG"; then
20328 # Extract the first word of "pkg-config", so it can be a program name with args.
20329 set dummy pkg-config; ac_word=$2
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20331 $as_echo_n "checking for $ac_word... " >&6; }
20332 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20333 $as_echo_n "(cached) " >&6
20334 else
20335 case $PKG_CONFIG in
20336 [\\/]* | ?:[\\/]*)
20337 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20338 ;;
20339 *)
20340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20341 for as_dir in $PATH
20342 do
20343 IFS=$as_save_IFS
20344 test -z "$as_dir" && as_dir=.
20345 for ac_exec_ext in '' $ac_executable_extensions; do
20346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20347 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20349 break 2
20350 fi
20351 done
20352 done
20353 IFS=$as_save_IFS
20354
20355 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20356 ;;
20357 esac
20358 fi
20359 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20360 if test -n "$PKG_CONFIG"; then
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20362 $as_echo "$PKG_CONFIG" >&6; }
20363 else
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20365 $as_echo "no" >&6; }
20366 fi
20367
20368
20369 fi
20370
20371 if test "$PKG_CONFIG" = "no" ; then
20372 echo "*** The pkg-config script could not be found. Make sure it is"
20373 echo "*** in your path, or set the PKG_CONFIG environment variable"
20374 echo "*** to the full path to pkg-config."
20375 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20376 else
20377 PKG_CONFIG_MIN_VERSION=0.9.0
20378 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20380 $as_echo_n "checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20381
20382 if $PKG_CONFIG --exists "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20384 $as_echo "yes" >&6; }
20385 succeeded=yes
20386
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_CFLAGS" >&5
20388 $as_echo_n "checking GSTREAMER_BASE_CFLAGS... " >&6; }
20389 GSTREAMER_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_CFLAGS" >&5
20391 $as_echo "$GSTREAMER_BASE_CFLAGS" >&6; }
20392
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_LIBS" >&5
20394 $as_echo_n "checking GSTREAMER_BASE_LIBS... " >&6; }
20395 GSTREAMER_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_LIBS" >&5
20397 $as_echo "$GSTREAMER_BASE_LIBS" >&6; }
20398 else
20399 GSTREAMER_BASE_CFLAGS=""
20400 GSTREAMER_BASE_LIBS=""
20401 ## If we have a custom action on failure, don't print errors, but
20402 ## do set a variable so people can do so.
20403 GSTREAMER_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20404 echo $GSTREAMER_BASE_PKG_ERRORS
20405 fi
20406
20407
20408
20409 else
20410 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20411 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20412 fi
20413 fi
20414
20415 if test $succeeded = yes; then
20416 :
20417 else
20418 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
20419 fi
20420
20421
20422
20423
20424
20425 succeeded=no
20426
20427 if test -z "$PKG_CONFIG"; then
20428 # Extract the first word of "pkg-config", so it can be a program name with args.
20429 set dummy pkg-config; ac_word=$2
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20431 $as_echo_n "checking for $ac_word... " >&6; }
20432 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20433 $as_echo_n "(cached) " >&6
20434 else
20435 case $PKG_CONFIG in
20436 [\\/]* | ?:[\\/]*)
20437 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20438 ;;
20439 *)
20440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20441 for as_dir in $PATH
20442 do
20443 IFS=$as_save_IFS
20444 test -z "$as_dir" && as_dir=.
20445 for ac_exec_ext in '' $ac_executable_extensions; do
20446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20447 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20449 break 2
20450 fi
20451 done
20452 done
20453 IFS=$as_save_IFS
20454
20455 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20456 ;;
20457 esac
20458 fi
20459 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20460 if test -n "$PKG_CONFIG"; then
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20462 $as_echo "$PKG_CONFIG" >&6; }
20463 else
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20465 $as_echo "no" >&6; }
20466 fi
20467
20468
20469 fi
20470
20471 if test "$PKG_CONFIG" = "no" ; then
20472 echo "*** The pkg-config script could not be found. Make sure it is"
20473 echo "*** in your path, or set the PKG_CONFIG environment variable"
20474 echo "*** to the full path to pkg-config."
20475 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20476 else
20477 PKG_CONFIG_MIN_VERSION=0.9.0
20478 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20480 $as_echo_n "checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20481
20482 if $PKG_CONFIG --exists "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20484 $as_echo "yes" >&6; }
20485 succeeded=yes
20486
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
20488 $as_echo_n "checking GSTREAMER_PLUGINS_BASE_CFLAGS... " >&6; }
20489 GSTREAMER_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
20491 $as_echo "$GSTREAMER_PLUGINS_BASE_CFLAGS" >&6; }
20492
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_LIBS" >&5
20494 $as_echo_n "checking GSTREAMER_PLUGINS_BASE_LIBS... " >&6; }
20495 GSTREAMER_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_LIBS" >&5
20497 $as_echo "$GSTREAMER_PLUGINS_BASE_LIBS" >&6; }
20498 else
20499 GSTREAMER_PLUGINS_BASE_CFLAGS=""
20500 GSTREAMER_PLUGINS_BASE_LIBS=""
20501 ## If we have a custom action on failure, don't print errors, but
20502 ## do set a variable so people can do so.
20503 GSTREAMER_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20504 echo $GSTREAMER_PLUGINS_BASE_PKG_ERRORS
20505 fi
20506
20507
20508
20509 else
20510 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20511 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20512 fi
20513 fi
20514
20515 if test $succeeded = yes; then
20516 :
20517 else
20518 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
20519 fi
20520
20521
20522
20523
20524 GST_PLUGIN_LDFLAGS='-module -avoid-version -Wno-unused-parameter -no-undefined'
20525
20526
20527
20528 succeeded=no
20529
20530 if test -z "$PKG_CONFIG"; then
20531 # Extract the first word of "pkg-config", so it can be a program name with args.
20532 set dummy pkg-config; ac_word=$2
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20534 $as_echo_n "checking for $ac_word... " >&6; }
20535 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20536 $as_echo_n "(cached) " >&6
20537 else
20538 case $PKG_CONFIG in
20539 [\\/]* | ?:[\\/]*)
20540 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20541 ;;
20542 *)
20543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20544 for as_dir in $PATH
20545 do
20546 IFS=$as_save_IFS
20547 test -z "$as_dir" && as_dir=.
20548 for ac_exec_ext in '' $ac_executable_extensions; do
20549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20550 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20552 break 2
20553 fi
20554 done
20555 done
20556 IFS=$as_save_IFS
20557
20558 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20559 ;;
20560 esac
20561 fi
20562 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20563 if test -n "$PKG_CONFIG"; then
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20565 $as_echo "$PKG_CONFIG" >&6; }
20566 else
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20568 $as_echo "no" >&6; }
20569 fi
20570
20571
20572 fi
20573
20574 if test "$PKG_CONFIG" = "no" ; then
20575 echo "*** The pkg-config script could not be found. Make sure it is"
20576 echo "*** in your path, or set the PKG_CONFIG environment variable"
20577 echo "*** to the full path to pkg-config."
20578 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20579 else
20580 PKG_CONFIG_MIN_VERSION=0.9.0
20581 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
20583 $as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
20584
20585 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20587 $as_echo "yes" >&6; }
20588 succeeded=yes
20589
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
20591 $as_echo_n "checking GDK_CFLAGS... " >&6; }
20592 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
20594 $as_echo "$GDK_CFLAGS" >&6; }
20595
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
20597 $as_echo_n "checking GDK_LIBS... " >&6; }
20598 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
20600 $as_echo "$GDK_LIBS" >&6; }
20601 else
20602 GDK_CFLAGS=""
20603 GDK_LIBS=""
20604 ## If we have a custom action on failure, don't print errors, but
20605 ## do set a variable so people can do so.
20606 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
20607 echo $GDK_PKG_ERRORS
20608 fi
20609
20610
20611
20612 else
20613 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20614 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20615 fi
20616 fi
20617
20618 if test $succeeded = yes; then
20619 :
20620 else
20621 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
20622 fi
20623
20624
20625
20626
20627 GSTREAMER_FILE_READER=gnu.javax.sound.sampled.gstreamer.io.GstAudioFileReader
20628 GSTREAMER_MIXER_PROVIDER=gnu.javax.sound.sampled.gstreamer.GStreamerMixerProvider
20629 fi
20630
20631
20632
20633 if test "x${COMPILE_QT_PEER}" = xyes; then
20634
20635 succeeded=no
20636
20637 if test -z "$PKG_CONFIG"; then
20638 # Extract the first word of "pkg-config", so it can be a program name with args.
20639 set dummy pkg-config; ac_word=$2
20640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20641 $as_echo_n "checking for $ac_word... " >&6; }
20642 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20643 $as_echo_n "(cached) " >&6
20644 else
20645 case $PKG_CONFIG in
20646 [\\/]* | ?:[\\/]*)
20647 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20648 ;;
20649 *)
20650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20651 for as_dir in $PATH
20652 do
20653 IFS=$as_save_IFS
20654 test -z "$as_dir" && as_dir=.
20655 for ac_exec_ext in '' $ac_executable_extensions; do
20656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20657 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20659 break 2
20660 fi
20661 done
20662 done
20663 IFS=$as_save_IFS
20664
20665 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20666 ;;
20667 esac
20668 fi
20669 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20670 if test -n "$PKG_CONFIG"; then
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20672 $as_echo "$PKG_CONFIG" >&6; }
20673 else
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20675 $as_echo "no" >&6; }
20676 fi
20677
20678
20679 fi
20680
20681 if test "$PKG_CONFIG" = "no" ; then
20682 echo "*** The pkg-config script could not be found. Make sure it is"
20683 echo "*** in your path, or set the PKG_CONFIG environment variable"
20684 echo "*** to the full path to pkg-config."
20685 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20686 else
20687 PKG_CONFIG_MIN_VERSION=0.9.0
20688 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore QtGui >= 4.1.0" >&5
20690 $as_echo_n "checking for QtCore QtGui >= 4.1.0... " >&6; }
20691
20692 if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20694 $as_echo "yes" >&6; }
20695 succeeded=yes
20696
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_CFLAGS" >&5
20698 $as_echo_n "checking QT_CFLAGS... " >&6; }
20699 QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CFLAGS" >&5
20701 $as_echo "$QT_CFLAGS" >&6; }
20702
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_LIBS" >&5
20704 $as_echo_n "checking QT_LIBS... " >&6; }
20705 QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LIBS" >&5
20707 $as_echo "$QT_LIBS" >&6; }
20708 else
20709 QT_CFLAGS=""
20710 QT_LIBS=""
20711 ## If we have a custom action on failure, don't print errors, but
20712 ## do set a variable so people can do so.
20713 QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
20714
20715 fi
20716
20717
20718
20719 else
20720 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20721 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20722 fi
20723 fi
20724
20725 if test $succeeded = yes; then
20726 HAVE_QT4="yes"
20727 else
20728 HAVE_QT4="no"
20729 fi
20730
20731 if test "x$HAVE_QT4" = "xyes"; then
20732 QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
20733 EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
20734 as_ac_File=`$as_echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $QT_INCLUDE_DIR/QWidget" >&5
20736 $as_echo_n "checking for $QT_INCLUDE_DIR/QWidget... " >&6; }
20737 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
20738 $as_echo_n "(cached) " >&6
20739 else
20740 test "$cross_compiling" = yes &&
20741 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20742 if test -r "$QT_INCLUDE_DIR/QWidget"; then
20743 eval "$as_ac_File=yes"
20744 else
20745 eval "$as_ac_File=no"
20746 fi
20747 fi
20748 eval ac_res=\$$as_ac_File
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20750 $as_echo "$ac_res" >&6; }
20751 eval as_val=\$$as_ac_File
20752 if test "x$as_val" = x""yes; then :
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: No extra QT_INCLUDE_DIR needed" >&5
20754 $as_echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
20755 else
20756 as_ac_File=`$as_echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
20757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
20758 $as_echo_n "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... " >&6; }
20759 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
20760 $as_echo_n "(cached) " >&6
20761 else
20762 test "$cross_compiling" = yes &&
20763 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20764 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
20765 eval "$as_ac_File=yes"
20766 else
20767 eval "$as_ac_File=no"
20768 fi
20769 fi
20770 eval ac_res=\$$as_ac_File
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20772 $as_echo "$ac_res" >&6; }
20773 eval as_val=\$$as_ac_File
20774 if test "x$as_val" = x""yes; then :
20775 QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
20776 else
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: QWidget not found" >&5
20778 $as_echo "$as_me: WARNING: QWidget not found" >&2;}
20779 fi
20780
20781 fi
20782
20783 # Extract the first word of "moc", so it can be a program name with args.
20784 set dummy moc; ac_word=$2
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20786 $as_echo_n "checking for $ac_word... " >&6; }
20787 if test "${ac_cv_prog_MOC+set}" = set; then :
20788 $as_echo_n "(cached) " >&6
20789 else
20790 if test -n "$MOC"; then
20791 ac_cv_prog_MOC="$MOC" # Let the user override the test.
20792 else
20793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20794 for as_dir in $PATH
20795 do
20796 IFS=$as_save_IFS
20797 test -z "$as_dir" && as_dir=.
20798 for ac_exec_ext in '' $ac_executable_extensions; do
20799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20800 ac_cv_prog_MOC="moc"
20801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20802 break 2
20803 fi
20804 done
20805 done
20806 IFS=$as_save_IFS
20807
20808 fi
20809 fi
20810 MOC=$ac_cv_prog_MOC
20811 if test -n "$MOC"; then
20812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
20813 $as_echo "$MOC" >&6; }
20814 else
20815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20816 $as_echo "no" >&6; }
20817 fi
20818
20819
20820 # Extract the first word of "moc-qt4", so it can be a program name with args.
20821 set dummy moc-qt4; ac_word=$2
20822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20823 $as_echo_n "checking for $ac_word... " >&6; }
20824 if test "${ac_cv_prog_MOC+set}" = set; then :
20825 $as_echo_n "(cached) " >&6
20826 else
20827 if test -n "$MOC"; then
20828 ac_cv_prog_MOC="$MOC" # Let the user override the test.
20829 else
20830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20831 for as_dir in $PATH
20832 do
20833 IFS=$as_save_IFS
20834 test -z "$as_dir" && as_dir=.
20835 for ac_exec_ext in '' $ac_executable_extensions; do
20836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20837 ac_cv_prog_MOC="moc-qt4"
20838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20839 break 2
20840 fi
20841 done
20842 done
20843 IFS=$as_save_IFS
20844
20845 fi
20846 fi
20847 MOC=$ac_cv_prog_MOC
20848 if test -n "$MOC"; then
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
20850 $as_echo "$MOC" >&6; }
20851 else
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20853 $as_echo "no" >&6; }
20854 fi
20855
20856
20857 fi
20858 if test "x$HAVE_QT4" = "xno"; then
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
20860 $as_echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
20861 case "$host_os" in
20862 darwin*)
20863
20864 # Check whether --with-qt4dir was given.
20865 if test "${with_qt4dir+set}" = set; then :
20866 withval=$with_qt4dir; QT4DIR=$withval
20867
20868 fi
20869
20870 if test x"$QT4DIR" = x ; then
20871 as_fn_error "*** No path for Qt4 --with-qt4dir option given" "$LINENO" 5
20872 fi
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: QT4DIR... $QT4DIR" >&5
20874 $as_echo "QT4DIR... $QT4DIR" >&6; }
20875 # Extract the first word of "moc", so it can be a program name with args.
20876 set dummy moc; ac_word=$2
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20878 $as_echo_n "checking for $ac_word... " >&6; }
20879 if test "${ac_cv_prog_MOC+set}" = set; then :
20880 $as_echo_n "(cached) " >&6
20881 else
20882 if test -n "$MOC"; then
20883 ac_cv_prog_MOC="$MOC" # Let the user override the test.
20884 else
20885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20886 for as_dir in $QT4DIR/bin
20887 do
20888 IFS=$as_save_IFS
20889 test -z "$as_dir" && as_dir=.
20890 for ac_exec_ext in '' $ac_executable_extensions; do
20891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20892 ac_cv_prog_MOC="$QT4DIR/bin/moc"
20893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20894 break 2
20895 fi
20896 done
20897 done
20898 IFS=$as_save_IFS
20899
20900 fi
20901 fi
20902 MOC=$ac_cv_prog_MOC
20903 if test -n "$MOC"; then
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
20905 $as_echo "$MOC" >&6; }
20906 else
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20908 $as_echo "no" >&6; }
20909 fi
20910
20911
20912 if test x"$MOC" = x; then
20913 as_fn_error "*** This is not the right Qt installation" "$LINENO" 5
20914 fi
20915 QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
20916 QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
20917 QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
20918 QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
20919 ;;
20920 *)
20921 as_fn_error "*** Please check PKG_CONFIG_PATH or the version
20922 of your installed Qt4 installation." "$LINENO" 5
20923 ;;
20924 esac
20925 fi
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: Set QT_CFLAGS... $QT_CFLAGS" >&5
20927 $as_echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
20928
20929
20930 fi
20931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
20932 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
20933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20934 /* end confdefs.h. */
20935 #include <sys/socket.h>
20936 int
20937 main ()
20938 {
20939 int f = MSG_NOSIGNAL;
20940 ;
20941 return 0;
20942 }
20943 _ACEOF
20944 if ac_fn_c_try_compile "$LINENO"; then :
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20946 $as_echo "yes" >&6; }
20947
20948 $as_echo "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
20949
20950 else
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20952 $as_echo "no" >&6; }
20953
20954 fi
20955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_NOSIGPIPE " >&5
20957 $as_echo_n "checking for SO_NOSIGPIPE ... " >&6; }
20958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20959 /* end confdefs.h. */
20960 #include <sys/socket.h>
20961 int
20962 main ()
20963 {
20964 int f = SO_NOSIGPIPE;
20965 ;
20966 return 0;
20967 }
20968 _ACEOF
20969 if ac_fn_c_try_compile "$LINENO"; then :
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20971 $as_echo "yes" >&6; }
20972
20973 $as_echo "#define HAVE_SO_NOSIGPIPE 1" >>confdefs.h
20974
20975 else
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20977 $as_echo "no" >&6; }
20978
20979 fi
20980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_WAITALL" >&5
20982 $as_echo_n "checking for MSG_WAITALL... " >&6; }
20983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20984 /* end confdefs.h. */
20985 #include <sys/socket.h>
20986 int
20987 main ()
20988 {
20989 int f = MSG_WAITALL;
20990 ;
20991 return 0;
20992 }
20993 _ACEOF
20994 if ac_fn_c_try_compile "$LINENO"; then :
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20996 $as_echo "yes" >&6; }
20997
20998 $as_echo "#define HAVE_MSG_WAITALL 1" >>confdefs.h
20999
21000 else
21001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21002 $as_echo "no" >&6; }
21003
21004 fi
21005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21006
21007 if test "x${COMPILE_PLUGIN}" = xyes; then
21008
21009 succeeded=no
21010
21011 if test -z "$PKG_CONFIG"; then
21012 # Extract the first word of "pkg-config", so it can be a program name with args.
21013 set dummy pkg-config; ac_word=$2
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21015 $as_echo_n "checking for $ac_word... " >&6; }
21016 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21017 $as_echo_n "(cached) " >&6
21018 else
21019 case $PKG_CONFIG in
21020 [\\/]* | ?:[\\/]*)
21021 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21022 ;;
21023 *)
21024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21025 for as_dir in $PATH
21026 do
21027 IFS=$as_save_IFS
21028 test -z "$as_dir" && as_dir=.
21029 for ac_exec_ext in '' $ac_executable_extensions; do
21030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21031 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21033 break 2
21034 fi
21035 done
21036 done
21037 IFS=$as_save_IFS
21038
21039 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21040 ;;
21041 esac
21042 fi
21043 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21044 if test -n "$PKG_CONFIG"; then
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21046 $as_echo "$PKG_CONFIG" >&6; }
21047 else
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21049 $as_echo "no" >&6; }
21050 fi
21051
21052
21053 fi
21054
21055 if test "$PKG_CONFIG" = "no" ; then
21056 echo "*** The pkg-config script could not be found. Make sure it is"
21057 echo "*** in your path, or set the PKG_CONFIG environment variable"
21058 echo "*** to the full path to pkg-config."
21059 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21060 else
21061 PKG_CONFIG_MIN_VERSION=0.9.0
21062 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin libxul-unstable" >&5
21064 $as_echo_n "checking for mozilla-plugin libxul-unstable... " >&6; }
21065
21066 if $PKG_CONFIG --exists "mozilla-plugin libxul-unstable" ; then
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21068 $as_echo "yes" >&6; }
21069 succeeded=yes
21070
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21072 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21073 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin libxul-unstable"`
21074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21075 $as_echo "$MOZILLA_CFLAGS" >&6; }
21076
21077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21078 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21079 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin libxul-unstable"`
21080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21081 $as_echo "$MOZILLA_LIBS" >&6; }
21082 else
21083 MOZILLA_CFLAGS=""
21084 MOZILLA_LIBS=""
21085 ## If we have a custom action on failure, don't print errors, but
21086 ## do set a variable so people can do so.
21087 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin libxul-unstable"`
21088
21089 fi
21090
21091
21092
21093 else
21094 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21095 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21096 fi
21097 fi
21098
21099 if test $succeeded = yes; then
21100 MOZILLA_FOUND=yes
21101 else
21102 MOZILLA_FOUND=no
21103 fi
21104
21105 if test "x${MOZILLA_FOUND}" = xno; then
21106
21107 succeeded=no
21108
21109 if test -z "$PKG_CONFIG"; then
21110 # Extract the first word of "pkg-config", so it can be a program name with args.
21111 set dummy pkg-config; ac_word=$2
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21113 $as_echo_n "checking for $ac_word... " >&6; }
21114 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21115 $as_echo_n "(cached) " >&6
21116 else
21117 case $PKG_CONFIG in
21118 [\\/]* | ?:[\\/]*)
21119 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21120 ;;
21121 *)
21122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21123 for as_dir in $PATH
21124 do
21125 IFS=$as_save_IFS
21126 test -z "$as_dir" && as_dir=.
21127 for ac_exec_ext in '' $ac_executable_extensions; do
21128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21129 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21131 break 2
21132 fi
21133 done
21134 done
21135 IFS=$as_save_IFS
21136
21137 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21138 ;;
21139 esac
21140 fi
21141 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21142 if test -n "$PKG_CONFIG"; then
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21144 $as_echo "$PKG_CONFIG" >&6; }
21145 else
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21147 $as_echo "no" >&6; }
21148 fi
21149
21150
21151 fi
21152
21153 if test "$PKG_CONFIG" = "no" ; then
21154 echo "*** The pkg-config script could not be found. Make sure it is"
21155 echo "*** in your path, or set the PKG_CONFIG environment variable"
21156 echo "*** to the full path to pkg-config."
21157 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21158 else
21159 PKG_CONFIG_MIN_VERSION=0.9.0
21160 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin" >&5
21162 $as_echo_n "checking for mozilla-plugin... " >&6; }
21163
21164 if $PKG_CONFIG --exists "mozilla-plugin" ; then
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21166 $as_echo "yes" >&6; }
21167 succeeded=yes
21168
21169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21170 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21171 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21173 $as_echo "$MOZILLA_CFLAGS" >&6; }
21174
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21176 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21177 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
21178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21179 $as_echo "$MOZILLA_LIBS" >&6; }
21180 else
21181 MOZILLA_CFLAGS=""
21182 MOZILLA_LIBS=""
21183 ## If we have a custom action on failure, don't print errors, but
21184 ## do set a variable so people can do so.
21185 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
21186
21187 fi
21188
21189
21190
21191 else
21192 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21193 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21194 fi
21195 fi
21196
21197 if test $succeeded = yes; then
21198 MOZILLA_FOUND=yes
21199 else
21200 MOZILLA_FOUND=no
21201 fi
21202
21203 fi
21204 if test "x${MOZILLA_FOUND}" = xno; then
21205
21206 succeeded=no
21207
21208 if test -z "$PKG_CONFIG"; then
21209 # Extract the first word of "pkg-config", so it can be a program name with args.
21210 set dummy pkg-config; ac_word=$2
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21212 $as_echo_n "checking for $ac_word... " >&6; }
21213 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21214 $as_echo_n "(cached) " >&6
21215 else
21216 case $PKG_CONFIG in
21217 [\\/]* | ?:[\\/]*)
21218 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21219 ;;
21220 *)
21221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21222 for as_dir in $PATH
21223 do
21224 IFS=$as_save_IFS
21225 test -z "$as_dir" && as_dir=.
21226 for ac_exec_ext in '' $ac_executable_extensions; do
21227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21228 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21230 break 2
21231 fi
21232 done
21233 done
21234 IFS=$as_save_IFS
21235
21236 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21237 ;;
21238 esac
21239 fi
21240 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21241 if test -n "$PKG_CONFIG"; then
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21243 $as_echo "$PKG_CONFIG" >&6; }
21244 else
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21246 $as_echo "no" >&6; }
21247 fi
21248
21249
21250 fi
21251
21252 if test "$PKG_CONFIG" = "no" ; then
21253 echo "*** The pkg-config script could not be found. Make sure it is"
21254 echo "*** in your path, or set the PKG_CONFIG environment variable"
21255 echo "*** to the full path to pkg-config."
21256 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21257 else
21258 PKG_CONFIG_MIN_VERSION=0.9.0
21259 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for firefox-plugin firefox-xpcom" >&5
21261 $as_echo_n "checking for firefox-plugin firefox-xpcom... " >&6; }
21262
21263 if $PKG_CONFIG --exists "firefox-plugin firefox-xpcom" ; then
21264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21265 $as_echo "yes" >&6; }
21266 succeeded=yes
21267
21268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21269 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21270 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin firefox-xpcom"`
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21272 $as_echo "$MOZILLA_CFLAGS" >&6; }
21273
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21275 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21276 MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin firefox-xpcom"`
21277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21278 $as_echo "$MOZILLA_LIBS" >&6; }
21279 else
21280 MOZILLA_CFLAGS=""
21281 MOZILLA_LIBS=""
21282 ## If we have a custom action on failure, don't print errors, but
21283 ## do set a variable so people can do so.
21284 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin firefox-xpcom"`
21285
21286 fi
21287
21288
21289
21290 else
21291 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21292 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21293 fi
21294 fi
21295
21296 if test $succeeded = yes; then
21297 MOZILLA_FOUND=yes
21298 else
21299 MOZILLA_FOUND=no
21300 fi
21301
21302 fi
21303 if test "x${MOZILLA_FOUND}" = xno; then
21304
21305 succeeded=no
21306
21307 if test -z "$PKG_CONFIG"; then
21308 # Extract the first word of "pkg-config", so it can be a program name with args.
21309 set dummy pkg-config; ac_word=$2
21310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21311 $as_echo_n "checking for $ac_word... " >&6; }
21312 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21313 $as_echo_n "(cached) " >&6
21314 else
21315 case $PKG_CONFIG in
21316 [\\/]* | ?:[\\/]*)
21317 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21318 ;;
21319 *)
21320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21321 for as_dir in $PATH
21322 do
21323 IFS=$as_save_IFS
21324 test -z "$as_dir" && as_dir=.
21325 for ac_exec_ext in '' $ac_executable_extensions; do
21326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21327 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21329 break 2
21330 fi
21331 done
21332 done
21333 IFS=$as_save_IFS
21334
21335 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21336 ;;
21337 esac
21338 fi
21339 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21340 if test -n "$PKG_CONFIG"; then
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21342 $as_echo "$PKG_CONFIG" >&6; }
21343 else
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21345 $as_echo "no" >&6; }
21346 fi
21347
21348
21349 fi
21350
21351 if test "$PKG_CONFIG" = "no" ; then
21352 echo "*** The pkg-config script could not be found. Make sure it is"
21353 echo "*** in your path, or set the PKG_CONFIG environment variable"
21354 echo "*** to the full path to pkg-config."
21355 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21356 else
21357 PKG_CONFIG_MIN_VERSION=0.9.0
21358 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xulrunner-plugin xulrunner-xpcom" >&5
21360 $as_echo_n "checking for xulrunner-plugin xulrunner-xpcom... " >&6; }
21361
21362 if $PKG_CONFIG --exists "xulrunner-plugin xulrunner-xpcom" ; then
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21364 $as_echo "yes" >&6; }
21365 succeeded=yes
21366
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21368 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21369 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin xulrunner-xpcom"`
21370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21371 $as_echo "$MOZILLA_CFLAGS" >&6; }
21372
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21374 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21375 MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin xulrunner-xpcom"`
21376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21377 $as_echo "$MOZILLA_LIBS" >&6; }
21378 else
21379 MOZILLA_CFLAGS=""
21380 MOZILLA_LIBS=""
21381 ## If we have a custom action on failure, don't print errors, but
21382 ## do set a variable so people can do so.
21383 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin xulrunner-xpcom"`
21384
21385 fi
21386
21387
21388
21389 else
21390 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21391 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21392 fi
21393 fi
21394
21395 if test $succeeded = yes; then
21396 MOZILLA_FOUND=yes
21397 else
21398 MOZILLA_FOUND=no
21399 fi
21400
21401 fi
21402 if test "x${MOZILLA_FOUND}" = xno; then
21403
21404 succeeded=no
21405
21406 if test -z "$PKG_CONFIG"; then
21407 # Extract the first word of "pkg-config", so it can be a program name with args.
21408 set dummy pkg-config; ac_word=$2
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21410 $as_echo_n "checking for $ac_word... " >&6; }
21411 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21412 $as_echo_n "(cached) " >&6
21413 else
21414 case $PKG_CONFIG in
21415 [\\/]* | ?:[\\/]*)
21416 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21417 ;;
21418 *)
21419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21420 for as_dir in $PATH
21421 do
21422 IFS=$as_save_IFS
21423 test -z "$as_dir" && as_dir=.
21424 for ac_exec_ext in '' $ac_executable_extensions; do
21425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21426 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21428 break 2
21429 fi
21430 done
21431 done
21432 IFS=$as_save_IFS
21433
21434 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21435 ;;
21436 esac
21437 fi
21438 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21439 if test -n "$PKG_CONFIG"; then
21440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21441 $as_echo "$PKG_CONFIG" >&6; }
21442 else
21443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21444 $as_echo "no" >&6; }
21445 fi
21446
21447
21448 fi
21449
21450 if test "$PKG_CONFIG" = "no" ; then
21451 echo "*** The pkg-config script could not be found. Make sure it is"
21452 echo "*** in your path, or set the PKG_CONFIG environment variable"
21453 echo "*** to the full path to pkg-config."
21454 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21455 else
21456 PKG_CONFIG_MIN_VERSION=0.9.0
21457 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-firefox-plugin mozilla-firefox-xpcom" >&5
21459 $as_echo_n "checking for mozilla-firefox-plugin mozilla-firefox-xpcom... " >&6; }
21460
21461 if $PKG_CONFIG --exists "mozilla-firefox-plugin mozilla-firefox-xpcom" ; then
21462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21463 $as_echo "yes" >&6; }
21464 succeeded=yes
21465
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21467 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21468 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21470 $as_echo "$MOZILLA_CFLAGS" >&6; }
21471
21472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21473 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21474 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21476 $as_echo "$MOZILLA_LIBS" >&6; }
21477 else
21478 MOZILLA_CFLAGS=""
21479 MOZILLA_LIBS=""
21480 ## If we have a custom action on failure, don't print errors, but
21481 ## do set a variable so people can do so.
21482 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21483
21484 fi
21485
21486
21487
21488 else
21489 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21490 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21491 fi
21492 fi
21493
21494 if test $succeeded = yes; then
21495 MOZILLA_FOUND=yes
21496 else
21497 MOZILLA_FOUND=no
21498 fi
21499
21500 fi
21501 if test "x${MOZILLA_FOUND}" = xno; then
21502
21503 succeeded=no
21504
21505 if test -z "$PKG_CONFIG"; then
21506 # Extract the first word of "pkg-config", so it can be a program name with args.
21507 set dummy pkg-config; ac_word=$2
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21509 $as_echo_n "checking for $ac_word... " >&6; }
21510 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21511 $as_echo_n "(cached) " >&6
21512 else
21513 case $PKG_CONFIG in
21514 [\\/]* | ?:[\\/]*)
21515 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21516 ;;
21517 *)
21518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21519 for as_dir in $PATH
21520 do
21521 IFS=$as_save_IFS
21522 test -z "$as_dir" && as_dir=.
21523 for ac_exec_ext in '' $ac_executable_extensions; do
21524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21525 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21527 break 2
21528 fi
21529 done
21530 done
21531 IFS=$as_save_IFS
21532
21533 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21534 ;;
21535 esac
21536 fi
21537 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21538 if test -n "$PKG_CONFIG"; then
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21540 $as_echo "$PKG_CONFIG" >&6; }
21541 else
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21543 $as_echo "no" >&6; }
21544 fi
21545
21546
21547 fi
21548
21549 if test "$PKG_CONFIG" = "no" ; then
21550 echo "*** The pkg-config script could not be found. Make sure it is"
21551 echo "*** in your path, or set the PKG_CONFIG environment variable"
21552 echo "*** to the full path to pkg-config."
21553 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21554 else
21555 PKG_CONFIG_MIN_VERSION=0.9.0
21556 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seamonkey-plugin seamonkey-xpcom" >&5
21558 $as_echo_n "checking for seamonkey-plugin seamonkey-xpcom... " >&6; }
21559
21560 if $PKG_CONFIG --exists "seamonkey-plugin seamonkey-xpcom" ; then
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21562 $as_echo "yes" >&6; }
21563 succeeded=yes
21564
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21566 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21567 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "seamonkey-plugin seamonkey-xpcom"`
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21569 $as_echo "$MOZILLA_CFLAGS" >&6; }
21570
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21572 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21573 MOZILLA_LIBS=`$PKG_CONFIG --libs "seamonkey-plugin seamonkey-xpcom"`
21574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21575 $as_echo "$MOZILLA_LIBS" >&6; }
21576 else
21577 MOZILLA_CFLAGS=""
21578 MOZILLA_LIBS=""
21579 ## If we have a custom action on failure, don't print errors, but
21580 ## do set a variable so people can do so.
21581 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "seamonkey-plugin seamonkey-xpcom"`
21582
21583 fi
21584
21585
21586
21587 else
21588 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21589 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21590 fi
21591 fi
21592
21593 if test $succeeded = yes; then
21594 MOZILLA_FOUND=yes
21595 else
21596 MOZILLA_FOUND=no
21597 fi
21598
21599 fi
21600 if test "x${MOZILLA_FOUND}" = xno; then
21601
21602 succeeded=no
21603
21604 if test -z "$PKG_CONFIG"; then
21605 # Extract the first word of "pkg-config", so it can be a program name with args.
21606 set dummy pkg-config; ac_word=$2
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21608 $as_echo_n "checking for $ac_word... " >&6; }
21609 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21610 $as_echo_n "(cached) " >&6
21611 else
21612 case $PKG_CONFIG in
21613 [\\/]* | ?:[\\/]*)
21614 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21615 ;;
21616 *)
21617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21618 for as_dir in $PATH
21619 do
21620 IFS=$as_save_IFS
21621 test -z "$as_dir" && as_dir=.
21622 for ac_exec_ext in '' $ac_executable_extensions; do
21623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21624 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21626 break 2
21627 fi
21628 done
21629 done
21630 IFS=$as_save_IFS
21631
21632 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21633 ;;
21634 esac
21635 fi
21636 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21637 if test -n "$PKG_CONFIG"; then
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21639 $as_echo "$PKG_CONFIG" >&6; }
21640 else
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21642 $as_echo "no" >&6; }
21643 fi
21644
21645
21646 fi
21647
21648 if test "$PKG_CONFIG" = "no" ; then
21649 echo "*** The pkg-config script could not be found. Make sure it is"
21650 echo "*** in your path, or set the PKG_CONFIG environment variable"
21651 echo "*** to the full path to pkg-config."
21652 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21653 else
21654 PKG_CONFIG_MIN_VERSION=0.9.0
21655 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iceape-plugin iceape-xpcom" >&5
21657 $as_echo_n "checking for iceape-plugin iceape-xpcom... " >&6; }
21658
21659 if $PKG_CONFIG --exists "iceape-plugin iceape-xpcom" ; then
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21661 $as_echo "yes" >&6; }
21662 succeeded=yes
21663
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21665 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21666 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "iceape-plugin iceape-xpcom"`
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21668 $as_echo "$MOZILLA_CFLAGS" >&6; }
21669
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21671 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21672 MOZILLA_LIBS=`$PKG_CONFIG --libs "iceape-plugin iceape-xpcom"`
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21674 $as_echo "$MOZILLA_LIBS" >&6; }
21675 else
21676 MOZILLA_CFLAGS=""
21677 MOZILLA_LIBS=""
21678 ## If we have a custom action on failure, don't print errors, but
21679 ## do set a variable so people can do so.
21680 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "iceape-plugin iceape-xpcom"`
21681
21682 fi
21683
21684
21685
21686 else
21687 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21688 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21689 fi
21690 fi
21691
21692 if test $succeeded = yes; then
21693 MOZILLA_FOUND=yes
21694 else
21695 MOZILLA_FOUND=no
21696 fi
21697
21698 fi
21699 if test "x${MOZILLA_FOUND}" = xno; then
21700 as_fn_error "Couldn't find plugin support headers and libraries, try --disable-plugin" "$LINENO" 5
21701 fi
21702
21703
21704 succeeded=no
21705
21706 if test -z "$PKG_CONFIG"; then
21707 # Extract the first word of "pkg-config", so it can be a program name with args.
21708 set dummy pkg-config; ac_word=$2
21709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21710 $as_echo_n "checking for $ac_word... " >&6; }
21711 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21712 $as_echo_n "(cached) " >&6
21713 else
21714 case $PKG_CONFIG in
21715 [\\/]* | ?:[\\/]*)
21716 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21717 ;;
21718 *)
21719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21720 for as_dir in $PATH
21721 do
21722 IFS=$as_save_IFS
21723 test -z "$as_dir" && as_dir=.
21724 for ac_exec_ext in '' $ac_executable_extensions; do
21725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21726 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21728 break 2
21729 fi
21730 done
21731 done
21732 IFS=$as_save_IFS
21733
21734 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21735 ;;
21736 esac
21737 fi
21738 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21739 if test -n "$PKG_CONFIG"; then
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21741 $as_echo "$PKG_CONFIG" >&6; }
21742 else
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21744 $as_echo "no" >&6; }
21745 fi
21746
21747
21748 fi
21749
21750 if test "$PKG_CONFIG" = "no" ; then
21751 echo "*** The pkg-config script could not be found. Make sure it is"
21752 echo "*** in your path, or set the PKG_CONFIG environment variable"
21753 echo "*** to the full path to pkg-config."
21754 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21755 else
21756 PKG_CONFIG_MIN_VERSION=0.9.0
21757 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0" >&5
21759 $as_echo_n "checking for glib-2.0... " >&6; }
21760
21761 if $PKG_CONFIG --exists "glib-2.0" ; then
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21763 $as_echo "yes" >&6; }
21764 succeeded=yes
21765
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
21767 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
21768 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
21770 $as_echo "$GLIB_CFLAGS" >&6; }
21771
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
21773 $as_echo_n "checking GLIB_LIBS... " >&6; }
21774 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
21776 $as_echo "$GLIB_LIBS" >&6; }
21777 else
21778 GLIB_CFLAGS=""
21779 GLIB_LIBS=""
21780 ## If we have a custom action on failure, don't print errors, but
21781 ## do set a variable so people can do so.
21782 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
21783 echo $GLIB_PKG_ERRORS
21784 fi
21785
21786
21787
21788 else
21789 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21790 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21791 fi
21792 fi
21793
21794 if test $succeeded = yes; then
21795 :
21796 else
21797 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
21798 fi
21799
21800
21801 succeeded=no
21802
21803 if test -z "$PKG_CONFIG"; then
21804 # Extract the first word of "pkg-config", so it can be a program name with args.
21805 set dummy pkg-config; ac_word=$2
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21807 $as_echo_n "checking for $ac_word... " >&6; }
21808 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21809 $as_echo_n "(cached) " >&6
21810 else
21811 case $PKG_CONFIG in
21812 [\\/]* | ?:[\\/]*)
21813 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21814 ;;
21815 *)
21816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21817 for as_dir in $PATH
21818 do
21819 IFS=$as_save_IFS
21820 test -z "$as_dir" && as_dir=.
21821 for ac_exec_ext in '' $ac_executable_extensions; do
21822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21823 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21825 break 2
21826 fi
21827 done
21828 done
21829 IFS=$as_save_IFS
21830
21831 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21832 ;;
21833 esac
21834 fi
21835 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21836 if test -n "$PKG_CONFIG"; then
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21838 $as_echo "$PKG_CONFIG" >&6; }
21839 else
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21841 $as_echo "no" >&6; }
21842 fi
21843
21844
21845 fi
21846
21847 if test "$PKG_CONFIG" = "no" ; then
21848 echo "*** The pkg-config script could not be found. Make sure it is"
21849 echo "*** in your path, or set the PKG_CONFIG environment variable"
21850 echo "*** to the full path to pkg-config."
21851 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21852 else
21853 PKG_CONFIG_MIN_VERSION=0.9.0
21854 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
21856 $as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
21857
21858 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21860 $as_echo "yes" >&6; }
21861 succeeded=yes
21862
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
21864 $as_echo_n "checking GTK_CFLAGS... " >&6; }
21865 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
21867 $as_echo "$GTK_CFLAGS" >&6; }
21868
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
21870 $as_echo_n "checking GTK_LIBS... " >&6; }
21871 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
21873 $as_echo "$GTK_LIBS" >&6; }
21874 else
21875 GTK_CFLAGS=""
21876 GTK_LIBS=""
21877 ## If we have a custom action on failure, don't print errors, but
21878 ## do set a variable so people can do so.
21879 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
21880 echo $GTK_PKG_ERRORS
21881 fi
21882
21883
21884
21885 else
21886 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21887 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21888 fi
21889 fi
21890
21891 if test $succeeded = yes; then
21892 :
21893 else
21894 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
21895 fi
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905 PLUGIN_DIR=$HOME/.mozilla/plugins/
21906
21907 fi
21908
21909 if test "x${COMPILE_GMP}" = xyes; then
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_mul_si in -lgmp" >&5
21911 $as_echo_n "checking for __gmpz_mul_si in -lgmp... " >&6; }
21912 if test "${ac_cv_lib_gmp___gmpz_mul_si+set}" = set; then :
21913 $as_echo_n "(cached) " >&6
21914 else
21915 ac_check_lib_save_LIBS=$LIBS
21916 LIBS="-lgmp $LIBS"
21917 if test x$gcc_no_link = xyes; then
21918 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21919 fi
21920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21921 /* end confdefs.h. */
21922
21923 /* Override any GCC internal prototype to avoid an error.
21924 Use char because int might match the return type of a GCC
21925 builtin and then its argument prototype would still apply. */
21926 #ifdef __cplusplus
21927 extern "C"
21928 #endif
21929 char __gmpz_mul_si ();
21930 int
21931 main ()
21932 {
21933 return __gmpz_mul_si ();
21934 ;
21935 return 0;
21936 }
21937 _ACEOF
21938 if ac_fn_c_try_link "$LINENO"; then :
21939 ac_cv_lib_gmp___gmpz_mul_si=yes
21940 else
21941 ac_cv_lib_gmp___gmpz_mul_si=no
21942 fi
21943 rm -f core conftest.err conftest.$ac_objext \
21944 conftest$ac_exeext conftest.$ac_ext
21945 LIBS=$ac_check_lib_save_LIBS
21946 fi
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_mul_si" >&5
21948 $as_echo "$ac_cv_lib_gmp___gmpz_mul_si" >&6; }
21949 if test "x$ac_cv_lib_gmp___gmpz_mul_si" = x""yes; then :
21950 GMP_CFLAGS=-I/usr/include
21951 GMP_LIBS=-lgmp
21952 else
21953 GMP_CFLAGS=
21954 GMP_LIBS=
21955 fi
21956
21957
21958
21959
21960 for ac_header in gmp.h
21961 do :
21962 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
21963 if test "x$ac_cv_header_gmp_h" = x""yes; then :
21964 cat >>confdefs.h <<_ACEOF
21965 #define HAVE_GMP_H 1
21966 _ACEOF
21967
21968 fi
21969
21970 done
21971
21972 fi
21973
21974 else
21975 COMPILE_GMP=no
21976 fi
21977
21978 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
21979
21980
21981 # Check whether --with-javah was given.
21982 if test "${with_javah+set}" = set; then :
21983 withval=$with_javah;
21984 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
21985
21986 if test "x${withval}" != x; then
21987 if test -f "${withval}"; then
21988 USER_JAVAH="${withval}"
21989 else
21990 # Extract the first word of ""${withval}"", so it can be a program name with args.
21991 set dummy "${withval}"; ac_word=$2
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21993 $as_echo_n "checking for $ac_word... " >&6; }
21994 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
21995 $as_echo_n "(cached) " >&6
21996 else
21997 case $USER_JAVAH in
21998 [\\/]* | ?:[\\/]*)
21999 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22000 ;;
22001 *)
22002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22003 for as_dir in $PATH
22004 do
22005 IFS=$as_save_IFS
22006 test -z "$as_dir" && as_dir=.
22007 for ac_exec_ext in '' $ac_executable_extensions; do
22008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22009 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22011 break 2
22012 fi
22013 done
22014 done
22015 IFS=$as_save_IFS
22016
22017 ;;
22018 esac
22019 fi
22020 USER_JAVAH=$ac_cv_path_USER_JAVAH
22021 if test -n "$USER_JAVAH"; then
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22023 $as_echo "$USER_JAVAH" >&6; }
22024 else
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22026 $as_echo "no" >&6; }
22027 fi
22028
22029
22030 fi
22031 else
22032 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22033 do
22034 # Extract the first word of "$ac_prog", so it can be a program name with args.
22035 set dummy $ac_prog; ac_word=$2
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22037 $as_echo_n "checking for $ac_word... " >&6; }
22038 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22039 $as_echo_n "(cached) " >&6
22040 else
22041 case $USER_JAVAH in
22042 [\\/]* | ?:[\\/]*)
22043 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22044 ;;
22045 *)
22046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22047 for as_dir in $PATH
22048 do
22049 IFS=$as_save_IFS
22050 test -z "$as_dir" && as_dir=.
22051 for ac_exec_ext in '' $ac_executable_extensions; do
22052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22053 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22055 break 2
22056 fi
22057 done
22058 done
22059 IFS=$as_save_IFS
22060
22061 ;;
22062 esac
22063 fi
22064 USER_JAVAH=$ac_cv_path_USER_JAVAH
22065 if test -n "$USER_JAVAH"; then
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22067 $as_echo "$USER_JAVAH" >&6; }
22068 else
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22070 $as_echo "no" >&6; }
22071 fi
22072
22073
22074 test -n "$USER_JAVAH" && break
22075 done
22076
22077 fi
22078
22079 if test "x${USER_JAVAH}" = x; then
22080 as_fn_error "can not find javah" "$LINENO" 5
22081 fi
22082
22083 else
22084
22085 if test "x" != x; then
22086 if test -f ""; then
22087 USER_JAVAH=""
22088 else
22089 # Extract the first word of """", so it can be a program name with args.
22090 set dummy ""; ac_word=$2
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22092 $as_echo_n "checking for $ac_word... " >&6; }
22093 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22094 $as_echo_n "(cached) " >&6
22095 else
22096 case $USER_JAVAH in
22097 [\\/]* | ?:[\\/]*)
22098 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22099 ;;
22100 *)
22101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22102 for as_dir in $PATH
22103 do
22104 IFS=$as_save_IFS
22105 test -z "$as_dir" && as_dir=.
22106 for ac_exec_ext in '' $ac_executable_extensions; do
22107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22108 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22110 break 2
22111 fi
22112 done
22113 done
22114 IFS=$as_save_IFS
22115
22116 ;;
22117 esac
22118 fi
22119 USER_JAVAH=$ac_cv_path_USER_JAVAH
22120 if test -n "$USER_JAVAH"; then
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22122 $as_echo "$USER_JAVAH" >&6; }
22123 else
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22125 $as_echo "no" >&6; }
22126 fi
22127
22128
22129 fi
22130 else
22131 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22132 do
22133 # Extract the first word of "$ac_prog", so it can be a program name with args.
22134 set dummy $ac_prog; ac_word=$2
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22136 $as_echo_n "checking for $ac_word... " >&6; }
22137 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22138 $as_echo_n "(cached) " >&6
22139 else
22140 case $USER_JAVAH in
22141 [\\/]* | ?:[\\/]*)
22142 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22143 ;;
22144 *)
22145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22146 for as_dir in $PATH
22147 do
22148 IFS=$as_save_IFS
22149 test -z "$as_dir" && as_dir=.
22150 for ac_exec_ext in '' $ac_executable_extensions; do
22151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22152 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22154 break 2
22155 fi
22156 done
22157 done
22158 IFS=$as_save_IFS
22159
22160 ;;
22161 esac
22162 fi
22163 USER_JAVAH=$ac_cv_path_USER_JAVAH
22164 if test -n "$USER_JAVAH"; then
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22166 $as_echo "$USER_JAVAH" >&6; }
22167 else
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22169 $as_echo "no" >&6; }
22170 fi
22171
22172
22173 test -n "$USER_JAVAH" && break
22174 done
22175
22176 fi
22177
22178 if test "x${USER_JAVAH}" = x; then
22179 as_fn_error "can not find javah" "$LINENO" 5
22180 fi
22181
22182 fi
22183
22184 else
22185
22186
22187 if test "x" != x; then
22188 if test -f ""; then
22189 USER_JAVAH=""
22190 else
22191 # Extract the first word of """", so it can be a program name with args.
22192 set dummy ""; ac_word=$2
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22194 $as_echo_n "checking for $ac_word... " >&6; }
22195 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22196 $as_echo_n "(cached) " >&6
22197 else
22198 case $USER_JAVAH in
22199 [\\/]* | ?:[\\/]*)
22200 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22201 ;;
22202 *)
22203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22204 for as_dir in $PATH
22205 do
22206 IFS=$as_save_IFS
22207 test -z "$as_dir" && as_dir=.
22208 for ac_exec_ext in '' $ac_executable_extensions; do
22209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22210 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22212 break 2
22213 fi
22214 done
22215 done
22216 IFS=$as_save_IFS
22217
22218 ;;
22219 esac
22220 fi
22221 USER_JAVAH=$ac_cv_path_USER_JAVAH
22222 if test -n "$USER_JAVAH"; then
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22224 $as_echo "$USER_JAVAH" >&6; }
22225 else
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22227 $as_echo "no" >&6; }
22228 fi
22229
22230
22231 fi
22232 else
22233 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22234 do
22235 # Extract the first word of "$ac_prog", so it can be a program name with args.
22236 set dummy $ac_prog; ac_word=$2
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22238 $as_echo_n "checking for $ac_word... " >&6; }
22239 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22240 $as_echo_n "(cached) " >&6
22241 else
22242 case $USER_JAVAH in
22243 [\\/]* | ?:[\\/]*)
22244 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22245 ;;
22246 *)
22247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22248 for as_dir in $PATH
22249 do
22250 IFS=$as_save_IFS
22251 test -z "$as_dir" && as_dir=.
22252 for ac_exec_ext in '' $ac_executable_extensions; do
22253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22254 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22256 break 2
22257 fi
22258 done
22259 done
22260 IFS=$as_save_IFS
22261
22262 ;;
22263 esac
22264 fi
22265 USER_JAVAH=$ac_cv_path_USER_JAVAH
22266 if test -n "$USER_JAVAH"; then
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22268 $as_echo "$USER_JAVAH" >&6; }
22269 else
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22271 $as_echo "no" >&6; }
22272 fi
22273
22274
22275 test -n "$USER_JAVAH" && break
22276 done
22277
22278 fi
22279
22280 if test "x${USER_JAVAH}" = x; then
22281 as_fn_error "can not find javah" "$LINENO" 5
22282 fi
22283
22284
22285 fi
22286
22287
22288
22289 fi
22290
22291 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/jni/native-lib"
22292
22293
22294 if test "x${COMPILE_JNI}" = xyes; then
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking jni_md.h support" >&5
22296 $as_echo_n "checking jni_md.h support... " >&6; }
22297 if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22299 $as_echo "yes" >&6; }
22300 else
22301 target_cpu=x86
22302 target_os=linux-gnu
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no" >&5
22304 $as_echo "$as_me: WARNING: no" >&2;}
22305 fi
22306 ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
22307 ac_dests="include/jni_md.h"
22308 while test -n "$ac_sources"; do
22309 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22310 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22311 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
22312 done
22313 ac_config_links="$ac_config_links $ac_config_links_1"
22314
22315 fi
22316
22317
22318
22319 # Check whether --with-vm-classes was given.
22320 if test "${with_vm_classes+set}" = set; then :
22321 withval=$with_vm_classes; vm_classes="$with_vm_classes"
22322 else
22323 vm_classes='${top_srcdir}/vm/reference'
22324 fi
22325
22326
22327
22328
22329
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
22331 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
22332 # Check whether --enable-maintainer-mode was given.
22333 if test "${enable_maintainer_mode+set}" = set; then :
22334 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
22335 else
22336 USE_MAINTAINER_MODE=no
22337 fi
22338
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
22340 $as_echo "$USE_MAINTAINER_MODE" >&6; }
22341 if test $USE_MAINTAINER_MODE = yes; then
22342 MAINTAINER_MODE_TRUE=
22343 MAINTAINER_MODE_FALSE='#'
22344 else
22345 MAINTAINER_MODE_TRUE='#'
22346 MAINTAINER_MODE_FALSE=
22347 fi
22348
22349 MAINT=$MAINTAINER_MODE_TRUE
22350
22351
22352
22353 # Check whether --enable-debug was given.
22354 if test "${enable_debug+set}" = set; then :
22355 enableval=$enable_debug; case "${enableval}" in
22356 yes)
22357 LIBDEBUG="true"
22358
22359 $as_echo "#define DEBUG 1" >>confdefs.h
22360
22361 ;;
22362 no) LIBDEBUG="false" ;;
22363 *) as_fn_error "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
22364 esac
22365 else
22366 LIBDEBUG="false"
22367 fi
22368
22369
22370
22371 # Check whether --enable-load-library was given.
22372 if test "${enable_load_library+set}" = set; then :
22373 enableval=$enable_load_library; case "${enableval}" in
22374 yes) INIT_LOAD_LIBRARY="true" ;;
22375 no) INIT_LOAD_LIBRARY="false" ;;
22376 *) as_fn_error "bad value ${enableval} for --enable-load-library" "$LINENO" 5 ;;
22377 esac
22378 else
22379 INIT_LOAD_LIBRARY="true"
22380 fi
22381
22382
22383
22384
22385
22386 # Check whether --with-ecj-jar was given.
22387 if test "${with_ecj_jar+set}" = set; then :
22388 withval=$with_ecj_jar; ECJ_JAR=$withval
22389 else
22390 if test -f $multi_basedir/ecj.jar; then
22391 ECJ_JAR='$(jardir)/ecj.jar'
22392 fi
22393 fi
22394
22395
22396
22397 # Check whether --enable-java-lang-system-explicit-initialization was given.
22398 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then :
22399 enableval=$enable_java_lang_system_explicit_initialization; case "${enableval}" in
22400 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
22401 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
22402 *) as_fn_error "bad value ${enableval} for --enable-java-lang-system-explicit-initialization" "$LINENO" 5 ;;
22403 esac
22404 else
22405 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
22406 fi
22407
22408
22409
22410
22411 REMOVE=""
22412
22413
22414 # Extract the first word of "mkdir", so it can be a program name with args.
22415 set dummy mkdir; ac_word=$2
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22417 $as_echo_n "checking for $ac_word... " >&6; }
22418 if test "${ac_cv_path_MKDIR+set}" = set; then :
22419 $as_echo_n "(cached) " >&6
22420 else
22421 case $MKDIR in
22422 [\\/]* | ?:[\\/]*)
22423 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
22424 ;;
22425 *)
22426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22427 for as_dir in $PATH
22428 do
22429 IFS=$as_save_IFS
22430 test -z "$as_dir" && as_dir=.
22431 for ac_exec_ext in '' $ac_executable_extensions; do
22432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22433 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
22434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22435 break 2
22436 fi
22437 done
22438 done
22439 IFS=$as_save_IFS
22440
22441 ;;
22442 esac
22443 fi
22444 MKDIR=$ac_cv_path_MKDIR
22445 if test -n "$MKDIR"; then
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
22447 $as_echo "$MKDIR" >&6; }
22448 else
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22450 $as_echo "no" >&6; }
22451 fi
22452
22453
22454 # Extract the first word of "cp", so it can be a program name with args.
22455 set dummy cp; ac_word=$2
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22457 $as_echo_n "checking for $ac_word... " >&6; }
22458 if test "${ac_cv_path_CP+set}" = set; then :
22459 $as_echo_n "(cached) " >&6
22460 else
22461 case $CP in
22462 [\\/]* | ?:[\\/]*)
22463 ac_cv_path_CP="$CP" # Let the user override the test with a path.
22464 ;;
22465 *)
22466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22467 for as_dir in $PATH
22468 do
22469 IFS=$as_save_IFS
22470 test -z "$as_dir" && as_dir=.
22471 for ac_exec_ext in '' $ac_executable_extensions; do
22472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22473 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
22474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22475 break 2
22476 fi
22477 done
22478 done
22479 IFS=$as_save_IFS
22480
22481 ;;
22482 esac
22483 fi
22484 CP=$ac_cv_path_CP
22485 if test -n "$CP"; then
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
22487 $as_echo "$CP" >&6; }
22488 else
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22490 $as_echo "no" >&6; }
22491 fi
22492
22493
22494 # Extract the first word of "date", so it can be a program name with args.
22495 set dummy date; ac_word=$2
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22497 $as_echo_n "checking for $ac_word... " >&6; }
22498 if test "${ac_cv_path_DATE+set}" = set; then :
22499 $as_echo_n "(cached) " >&6
22500 else
22501 case $DATE in
22502 [\\/]* | ?:[\\/]*)
22503 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
22504 ;;
22505 *)
22506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22507 for as_dir in $PATH
22508 do
22509 IFS=$as_save_IFS
22510 test -z "$as_dir" && as_dir=.
22511 for ac_exec_ext in '' $ac_executable_extensions; do
22512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22513 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
22514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22515 break 2
22516 fi
22517 done
22518 done
22519 IFS=$as_save_IFS
22520
22521 ;;
22522 esac
22523 fi
22524 DATE=$ac_cv_path_DATE
22525 if test -n "$DATE"; then
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
22527 $as_echo "$DATE" >&6; }
22528 else
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22530 $as_echo "no" >&6; }
22531 fi
22532
22533
22534
22535 # Extract the first word of "find", so it can be a program name with args.
22536 set dummy find; ac_word=$2
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22538 $as_echo_n "checking for $ac_word... " >&6; }
22539 if test "${ac_cv_path_FIND+set}" = set; then :
22540 $as_echo_n "(cached) " >&6
22541 else
22542 case $FIND in
22543 [\\/]* | ?:[\\/]*)
22544 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
22545 ;;
22546 *)
22547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22548 for as_dir in $PATH
22549 do
22550 IFS=$as_save_IFS
22551 test -z "$as_dir" && as_dir=.
22552 for ac_exec_ext in '' $ac_executable_extensions; do
22553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22554 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
22555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22556 break 2
22557 fi
22558 done
22559 done
22560 IFS=$as_save_IFS
22561
22562 ;;
22563 esac
22564 fi
22565 FIND=$ac_cv_path_FIND
22566 if test -n "$FIND"; then
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
22568 $as_echo "$FIND" >&6; }
22569 else
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22571 $as_echo "no" >&6; }
22572 fi
22573
22574
22575
22576
22577 # Extract the first word of "zip", so it can be a program name with args.
22578 set dummy zip; ac_word=$2
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22580 $as_echo_n "checking for $ac_word... " >&6; }
22581 if test "${ac_cv_path_ZIP+set}" = set; then :
22582 $as_echo_n "(cached) " >&6
22583 else
22584 case $ZIP in
22585 [\\/]* | ?:[\\/]*)
22586 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
22587 ;;
22588 *)
22589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22590 for as_dir in $PATH
22591 do
22592 IFS=$as_save_IFS
22593 test -z "$as_dir" && as_dir=.
22594 for ac_exec_ext in '' $ac_executable_extensions; do
22595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22596 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
22597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22598 break 2
22599 fi
22600 done
22601 done
22602 IFS=$as_save_IFS
22603
22604 ;;
22605 esac
22606 fi
22607 ZIP=$ac_cv_path_ZIP
22608 if test -n "$ZIP"; then
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
22610 $as_echo "$ZIP" >&6; }
22611 else
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22613 $as_echo "no" >&6; }
22614 fi
22615
22616
22617
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a jar-like tool" >&5
22619 $as_echo_n "checking for a jar-like tool... " >&6; }
22620
22621 # Check whether --with-jar was given.
22622 if test "${with_jar+set}" = set; then :
22623 withval=$with_jar;
22624 case "${withval}" in
22625 yes)
22626 JAR=yes
22627 ;;
22628 no)
22629 JAR=no
22630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
22631 $as_echo "${JAR}" >&6; }
22632 ;;
22633 *)
22634 if test -f "${withval}"; then
22635 JAR="${withval}"
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
22637 $as_echo "${JAR}" >&6; }
22638 else
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22640 $as_echo "not found" >&6; }
22641 as_fn_error "The jar tool ${withval} was not found." "$LINENO" 5
22642 fi
22643 ;;
22644 esac
22645
22646 else
22647
22648 JAR=yes
22649
22650 fi
22651
22652 if test x"${JAR}" = "xyes"; then
22653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying fastjar, gjar and jar" >&5
22654 $as_echo "trying fastjar, gjar and jar" >&6; }
22655 for ac_prog in fastjar gjar jar
22656 do
22657 # Extract the first word of "$ac_prog", so it can be a program name with args.
22658 set dummy $ac_prog; ac_word=$2
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22660 $as_echo_n "checking for $ac_word... " >&6; }
22661 if test "${ac_cv_path_JAR+set}" = set; then :
22662 $as_echo_n "(cached) " >&6
22663 else
22664 case $JAR in
22665 [\\/]* | ?:[\\/]*)
22666 ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
22667 ;;
22668 *)
22669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22670 for as_dir in $PATH
22671 do
22672 IFS=$as_save_IFS
22673 test -z "$as_dir" && as_dir=.
22674 for ac_exec_ext in '' $ac_executable_extensions; do
22675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22676 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
22677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22678 break 2
22679 fi
22680 done
22681 done
22682 IFS=$as_save_IFS
22683
22684 ;;
22685 esac
22686 fi
22687 JAR=$ac_cv_path_JAR
22688 if test -n "$JAR"; then
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
22690 $as_echo "$JAR" >&6; }
22691 else
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22693 $as_echo "no" >&6; }
22694 fi
22695
22696
22697 test -n "$JAR" && break
22698 done
22699
22700 if test x"${RHINO_JAR}" = "xyes"; then
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22702 $as_echo "not found" >&6; }
22703 fi
22704 fi
22705 if test x"${JAR}" = "xno" && test x"${ZIP}" = ""; then
22706 as_fn_error "No zip or jar tool found." "$LINENO" 5
22707 fi
22708 if test x"${JAR}" != "xno" && test x"${JAR}" != "xyes"; then
22709 WITH_JAR_TRUE=
22710 WITH_JAR_FALSE='#'
22711 else
22712 WITH_JAR_TRUE='#'
22713 WITH_JAR_FALSE=
22714 fi
22715
22716
22717
22718
22719 # Check whether --with-glibj was given.
22720 if test "${with_glibj+set}" = set; then :
22721 withval=$with_glibj;
22722 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
22723 install_class_files=no
22724 build_class_files=yes
22725 use_zip=yes
22726 elif test "x${withval}" = xboth; then
22727 install_class_files=yes
22728 build_class_files=yes
22729 use_zip=yes
22730 elif test "x${withval}" = xflat; then
22731 install_class_files=yes
22732 build_class_files=yes
22733 use_zip=no
22734 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
22735 install_class_files=no
22736 build_class_files=no
22737 use_zip=no
22738 elif test "x${withval}" = xbuild; then
22739 install_class_files=no
22740 build_class_files=yes
22741 use_zip=no
22742 else
22743 as_fn_error "unknown value given to --with-glibj" "$LINENO" 5
22744 fi
22745
22746 else
22747
22748 install_class_files=no
22749 use_zip=yes
22750
22751 fi
22752
22753 if test "x${use_zip}" = xyes; then
22754 INSTALL_GLIBJ_ZIP_TRUE=
22755 INSTALL_GLIBJ_ZIP_FALSE='#'
22756 else
22757 INSTALL_GLIBJ_ZIP_TRUE='#'
22758 INSTALL_GLIBJ_ZIP_FALSE=
22759 fi
22760
22761 if test "x${install_class_files}" = xyes; then
22762 INSTALL_CLASS_FILES_TRUE=
22763 INSTALL_CLASS_FILES_FALSE='#'
22764 else
22765 INSTALL_CLASS_FILES_TRUE='#'
22766 INSTALL_CLASS_FILES_FALSE=
22767 fi
22768
22769 if test "x${build_class_files}" = xyes; then
22770 BUILD_CLASS_FILES_TRUE=
22771 BUILD_CLASS_FILES_FALSE='#'
22772 else
22773 BUILD_CLASS_FILES_TRUE='#'
22774 BUILD_CLASS_FILES_FALSE=
22775 fi
22776
22777
22778 # Check whether --enable-examples was given.
22779 if test "${enable_examples+set}" = set; then :
22780 enableval=$enable_examples; case "${enableval}" in
22781 yes) EXAMPLESDIR="examples" ;;
22782 no) EXAMPLESDIR="" ;;
22783 *) as_fn_error "bad value ${enableval} for --enable-examples" "$LINENO" 5 ;;
22784 esac
22785 else
22786 EXAMPLESDIR="examples"
22787 fi
22788
22789 if test "x${build_class_files}" = xno; then
22790 EXAMPLESDIR=""
22791 fi
22792
22793
22794 # Check whether --enable-tools was given.
22795 if test "${enable_tools+set}" = set; then :
22796 enableval=$enable_tools; case "${enableval}" in
22797 yes) TOOLSDIR="tools" ;;
22798 no) TOOLSDIR="" ;;
22799 *) as_fn_error "bad value ${enableval} for --enable-tools" "$LINENO" 5 ;;
22800 esac
22801 else
22802 TOOLSDIR="tools"
22803 fi
22804
22805 if test "x${build_class_files}" = xno; then
22806 TOOLSDIR=""
22807 fi
22808
22809
22810
22811
22812
22813 # Check whether --with-gjdoc was given.
22814 if test "${with_gjdoc+set}" = set; then :
22815 withval=$with_gjdoc; if test "x${withval}" = xno; then
22816 WITH_GJDOC=no;
22817 elif test "x${withval}" = xyes -o "x{withval}" = x; then
22818 WITH_GJDOC=yes;
22819 # Extract the first word of "gjdoc", so it can be a program name with args.
22820 set dummy gjdoc; ac_word=$2
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22822 $as_echo_n "checking for $ac_word... " >&6; }
22823 if test "${ac_cv_path_GJDOC+set}" = set; then :
22824 $as_echo_n "(cached) " >&6
22825 else
22826 case $GJDOC in
22827 [\\/]* | ?:[\\/]*)
22828 ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
22829 ;;
22830 *)
22831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22832 for as_dir in $PATH
22833 do
22834 IFS=$as_save_IFS
22835 test -z "$as_dir" && as_dir=.
22836 for ac_exec_ext in '' $ac_executable_extensions; do
22837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22838 ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
22839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22840 break 2
22841 fi
22842 done
22843 done
22844 IFS=$as_save_IFS
22845
22846 test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
22847 ;;
22848 esac
22849 fi
22850 GJDOC=$ac_cv_path_GJDOC
22851 if test -n "$GJDOC"; then
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GJDOC" >&5
22853 $as_echo "$GJDOC" >&6; }
22854 else
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22856 $as_echo "no" >&6; }
22857 fi
22858
22859
22860 if test "x${GJDOC}" = xno; then
22861 as_fn_error "\"gjdoc executable not found\"" "$LINENO" 5;
22862 fi
22863 else
22864 WITH_GJDOC=yes
22865 GJDOC="${withval}"
22866 as_ac_File=`$as_echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${GJDOC}" >&5
22868 $as_echo_n "checking for ${GJDOC}... " >&6; }
22869 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
22870 $as_echo_n "(cached) " >&6
22871 else
22872 test "$cross_compiling" = yes &&
22873 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
22874 if test -r "${GJDOC}"; then
22875 eval "$as_ac_File=yes"
22876 else
22877 eval "$as_ac_File=no"
22878 fi
22879 fi
22880 eval ac_res=\$$as_ac_File
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22882 $as_echo "$ac_res" >&6; }
22883 eval as_val=\$$as_ac_File
22884 if test "x$as_val" = x""yes; then :
22885
22886 else
22887 as_fn_error "\"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" "$LINENO" 5
22888 fi
22889
22890 fi
22891 else
22892 WITH_GJDOC=no
22893 fi
22894
22895 if test "x${WITH_GJDOC}" = xyes; then
22896 CREATE_API_DOCS_TRUE=
22897 CREATE_API_DOCS_FALSE='#'
22898 else
22899 CREATE_API_DOCS_TRUE='#'
22900 CREATE_API_DOCS_FALSE=
22901 fi
22902
22903 if test "x${WITH_GJDOC}" = xyes; then
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of GJDoc" >&5
22905 $as_echo_n "checking version of GJDoc... " >&6; }
22906 gjdoc_version=$(${GJDOC} --version|cut -d ' ' -f2)
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gjdoc_version}" >&5
22908 $as_echo "${gjdoc_version}" >&6; }
22909 case ${gjdoc_version} in
22910 0.7.9) ;;
22911 0.8*) ;;
22912 *) as_fn_error "Building documentation requires GJDoc >= 0.7.9, ${gjdoc_version} found." "$LINENO" 5 ;;
22913 esac
22914 fi
22915
22916
22917
22918
22919 # Check whether --with-jay was given.
22920 if test "${with_jay+set}" = set; then :
22921 withval=$with_jay;
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
22923 $as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
22924 JAY_FOUND=no
22925 JAY_DIR_PATH=
22926 if test "x${withval}" = xno; then
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22928 $as_echo "no" >&6; }
22929 elif test "x${withval}" = xyes; then
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22931 $as_echo "yes" >&6; }
22932 JAY_DIR_PATH="/usr/share/jay"
22933 elif test -d "${withval}"; then
22934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22935 $as_echo "yes" >&6; }
22936 JAY_DIR_PATH="${withval}"
22937 elif test -f "${withval}"; then
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22939 $as_echo "yes" >&6; }
22940 JAY_DIR_PATH=`dirname "${withval}"`
22941 JAY="${withval}"
22942 else
22943 as_fn_error "jay not found at ${withval}" "$LINENO" 5
22944 fi
22945
22946 if test "x${JAY_DIR_PATH}" != x; then
22947 # Extract the first word of "jay", so it can be a program name with args.
22948 set dummy jay; ac_word=$2
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22950 $as_echo_n "checking for $ac_word... " >&6; }
22951 if test "${ac_cv_path_JAY+set}" = set; then :
22952 $as_echo_n "(cached) " >&6
22953 else
22954 case $JAY in
22955 [\\/]* | ?:[\\/]*)
22956 ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
22957 ;;
22958 *)
22959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22960 as_dummy="${JAY_DIR_PATH}:${PATH}"
22961 for as_dir in $as_dummy
22962 do
22963 IFS=$as_save_IFS
22964 test -z "$as_dir" && as_dir=.
22965 for ac_exec_ext in '' $ac_executable_extensions; do
22966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22967 ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
22968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22969 break 2
22970 fi
22971 done
22972 done
22973 IFS=$as_save_IFS
22974
22975 test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
22976 ;;
22977 esac
22978 fi
22979 JAY=$ac_cv_path_JAY
22980 if test -n "$JAY"; then
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAY" >&5
22982 $as_echo "$JAY" >&6; }
22983 else
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22985 $as_echo "no" >&6; }
22986 fi
22987
22988
22989 if test "x${JAY}" = xno; then
22990 as_fn_error "jay executable not found" "$LINENO" 5;
22991 fi
22992 JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
22993 as_ac_File=`$as_echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${JAY_SKELETON}" >&5
22995 $as_echo_n "checking for ${JAY_SKELETON}... " >&6; }
22996 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
22997 $as_echo_n "(cached) " >&6
22998 else
22999 test "$cross_compiling" = yes &&
23000 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
23001 if test -r "${JAY_SKELETON}"; then
23002 eval "$as_ac_File=yes"
23003 else
23004 eval "$as_ac_File=no"
23005 fi
23006 fi
23007 eval ac_res=\$$as_ac_File
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23009 $as_echo "$ac_res" >&6; }
23010 eval as_val=\$$as_ac_File
23011 if test "x$as_val" = x""yes; then :
23012
23013 else
23014 as_fn_error "Expected skeleton file in ${JAY_DIR_PATH}" "$LINENO" 5
23015 fi
23016
23017 JAY_FOUND=yes
23018 fi
23019
23020 else
23021
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
23023 $as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
23024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23025 $as_echo "no" >&6; }
23026 JAY_FOUND=no
23027
23028 fi
23029
23030 if test "x${JAY_FOUND}" = xyes; then
23031 REGEN_PARSERS_TRUE=
23032 REGEN_PARSERS_FALSE='#'
23033 else
23034 REGEN_PARSERS_TRUE='#'
23035 REGEN_PARSERS_FALSE=
23036 fi
23037
23038
23039
23040 # Check whether --enable-portable-native-sync was given.
23041 if test "${enable_portable_native_sync+set}" = set; then :
23042 enableval=$enable_portable_native_sync; case "${enableval}" in
23043 yes)
23044
23045 $as_echo "#define PORTABLE_NATIVE_SYNC 1" >>confdefs.h
23046
23047 ;;
23048 no) ;;
23049 *)
23050 as_fn_error "bad value ${enableval} for --enable-portable-native-sync" "$LINENO" 5
23051 ;;
23052 esac
23053 fi
23054
23055
23056 # ------ AX CREATE STDINT H -------------------------------------
23057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
23058 $as_echo_n "checking for stdint types... " >&6; }
23059 ac_stdint_h=`echo include/config-int.h`
23060 # try to shortcircuit - if the default include path of the compiler
23061 # can find a "stdint.h" header then we assume that all compilers can.
23062 if test "${ac_cv_header_stdint_t+set}" = set; then :
23063 $as_echo_n "(cached) " >&6
23064 else
23065
23066 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
23067 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
23068 old_CFLAGS="$CFLAGS" ; CFLAGS=""
23069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23070 /* end confdefs.h. */
23071 #include <stdint.h>
23072 int
23073 main ()
23074 {
23075 int_least32_t v = 0;
23076 ;
23077 return 0;
23078 }
23079 _ACEOF
23080 if ac_fn_c_try_compile "$LINENO"; then :
23081 ac_cv_stdint_result="(assuming C99 compatible system)"
23082 ac_cv_header_stdint_t="stdint.h";
23083 else
23084 ac_cv_header_stdint_t=""
23085 fi
23086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23087 CXXFLAGS="$old_CXXFLAGS"
23088 CPPFLAGS="$old_CPPFLAGS"
23089 CFLAGS="$old_CFLAGS"
23090 fi
23091
23092
23093 v="... $ac_cv_header_stdint_h"
23094 if test "$ac_stdint_h" = "stdint.h" ; then
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
23096 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
23097 elif test "$ac_stdint_h" = "inttypes.h" ; then
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
23099 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
23100 elif test "_$ac_cv_header_stdint_t" = "_" ; then
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
23102 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
23103 else
23104 ac_cv_header_stdint="$ac_cv_header_stdint_t"
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
23106 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
23107 fi
23108
23109 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
23110
23111
23112 inttype_headers=`echo | sed -e 's/,/ /g'`
23113
23114 ac_cv_stdint_result="(no helpful system typedefs seen)"
23115
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
23117 $as_echo_n "checking for stdint uintptr_t... " >&6; }
23118 if test "${ac_cv_header_stdint_x+set}" = set; then :
23119 $as_echo_n "(cached) " >&6
23120 else
23121
23122 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23124 $as_echo "(..)" >&6; }
23125 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
23126 unset ac_cv_type_uintptr_t
23127 unset ac_cv_type_uint64_t
23128 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
23129 "
23130 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
23131 ac_cv_header_stdint_x=$i
23132 else
23133 continue
23134 fi
23135
23136 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23137 "
23138 if test "x$ac_cv_type_uint64_t" = x""yes; then :
23139 and64="/uint64_t"
23140 else
23141 and64=""
23142 fi
23143
23144 stdint.h inttypes.h sys/inttypes.h $inttype_headers
23145 break
23146 done
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
23148 $as_echo_n "checking for stdint uintptr_t... " >&6; }
23149
23150 fi
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
23152 $as_echo "$ac_cv_header_stdint_x" >&6; }
23153
23154
23155 if test "_$ac_cv_header_stdint_x" = "_" ; then
23156
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
23158 $as_echo_n "checking for stdint uint32_t... " >&6; }
23159 if test "${ac_cv_header_stdint_o+set}" = set; then :
23160 $as_echo_n "(cached) " >&6
23161 else
23162
23163 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23165 $as_echo "(..)" >&6; }
23166 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
23167 unset ac_cv_type_uint32_t
23168 unset ac_cv_type_uint64_t
23169 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
23170 "
23171 if test "x$ac_cv_type_uint32_t" = x""yes; then :
23172 ac_cv_header_stdint_o=$i
23173 else
23174 continue
23175 fi
23176
23177 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23178 "
23179 if test "x$ac_cv_type_uint64_t" = x""yes; then :
23180 and64="/uint64_t"
23181 else
23182 and64=""
23183 fi
23184
23185 inttypes.h sys/inttypes.h stdint.h $inttype_headers
23186 break
23187 break;
23188 done
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
23190 $as_echo_n "checking for stdint uint32_t... " >&6; }
23191
23192 fi
23193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
23194 $as_echo "$ac_cv_header_stdint_o" >&6; }
23195
23196 fi
23197
23198 if test "_$ac_cv_header_stdint_x" = "_" ; then
23199 if test "_$ac_cv_header_stdint_o" = "_" ; then
23200
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
23202 $as_echo_n "checking for stdint u_int32_t... " >&6; }
23203 if test "${ac_cv_header_stdint_u+set}" = set; then :
23204 $as_echo_n "(cached) " >&6
23205 else
23206
23207 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23209 $as_echo "(..)" >&6; }
23210 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
23211 unset ac_cv_type_u_int32_t
23212 unset ac_cv_type_u_int64_t
23213 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
23214 "
23215 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
23216 ac_cv_header_stdint_u=$i
23217 else
23218 continue
23219 fi
23220
23221 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
23222 "
23223 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
23224 and64="/u_int64_t"
23225 else
23226 and64=""
23227 fi
23228
23229 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
23230 break
23231 break;
23232 done
23233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
23234 $as_echo_n "checking for stdint u_int32_t... " >&6; }
23235
23236 fi
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
23238 $as_echo "$ac_cv_header_stdint_u" >&6; }
23239
23240 fi fi
23241
23242 if test "_$ac_cv_header_stdint_x" = "_" ; then
23243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
23244 $as_echo_n "checking for stdint datatype model... " >&6; }
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23246 $as_echo "(..)" >&6; }
23247
23248 # The cast to long int works around a bug in the HP C Compiler
23249 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23250 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23251 # This bug is HP SR number 8606223364.
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
23253 $as_echo_n "checking size of char... " >&6; }
23254 if test "${ac_cv_sizeof_char+set}" = set; then :
23255 $as_echo_n "(cached) " >&6
23256 else
23257 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
23258
23259 else
23260 if test "$ac_cv_type_char" = yes; then
23261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23263 { as_fn_set_status 77
23264 as_fn_error "cannot compute sizeof (char)
23265 See \`config.log' for more details." "$LINENO" 5; }; }
23266 else
23267 ac_cv_sizeof_char=0
23268 fi
23269 fi
23270
23271 fi
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
23273 $as_echo "$ac_cv_sizeof_char" >&6; }
23274
23275
23276
23277 cat >>confdefs.h <<_ACEOF
23278 #define SIZEOF_CHAR $ac_cv_sizeof_char
23279 _ACEOF
23280
23281
23282 # The cast to long int works around a bug in the HP C Compiler
23283 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23284 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23285 # This bug is HP SR number 8606223364.
23286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23287 $as_echo_n "checking size of short... " >&6; }
23288 if test "${ac_cv_sizeof_short+set}" = set; then :
23289 $as_echo_n "(cached) " >&6
23290 else
23291 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23292
23293 else
23294 if test "$ac_cv_type_short" = yes; then
23295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23297 { as_fn_set_status 77
23298 as_fn_error "cannot compute sizeof (short)
23299 See \`config.log' for more details." "$LINENO" 5; }; }
23300 else
23301 ac_cv_sizeof_short=0
23302 fi
23303 fi
23304
23305 fi
23306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23307 $as_echo "$ac_cv_sizeof_short" >&6; }
23308
23309
23310
23311 cat >>confdefs.h <<_ACEOF
23312 #define SIZEOF_SHORT $ac_cv_sizeof_short
23313 _ACEOF
23314
23315
23316 # The cast to long int works around a bug in the HP C Compiler
23317 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23318 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23319 # This bug is HP SR number 8606223364.
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23321 $as_echo_n "checking size of int... " >&6; }
23322 if test "${ac_cv_sizeof_int+set}" = set; then :
23323 $as_echo_n "(cached) " >&6
23324 else
23325 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23326
23327 else
23328 if test "$ac_cv_type_int" = yes; then
23329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23331 { as_fn_set_status 77
23332 as_fn_error "cannot compute sizeof (int)
23333 See \`config.log' for more details." "$LINENO" 5; }; }
23334 else
23335 ac_cv_sizeof_int=0
23336 fi
23337 fi
23338
23339 fi
23340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23341 $as_echo "$ac_cv_sizeof_int" >&6; }
23342
23343
23344
23345 cat >>confdefs.h <<_ACEOF
23346 #define SIZEOF_INT $ac_cv_sizeof_int
23347 _ACEOF
23348
23349
23350 # The cast to long int works around a bug in the HP C Compiler
23351 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23352 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23353 # This bug is HP SR number 8606223364.
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23355 $as_echo_n "checking size of long... " >&6; }
23356 if test "${ac_cv_sizeof_long+set}" = set; then :
23357 $as_echo_n "(cached) " >&6
23358 else
23359 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23360
23361 else
23362 if test "$ac_cv_type_long" = yes; then
23363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23365 { as_fn_set_status 77
23366 as_fn_error "cannot compute sizeof (long)
23367 See \`config.log' for more details." "$LINENO" 5; }; }
23368 else
23369 ac_cv_sizeof_long=0
23370 fi
23371 fi
23372
23373 fi
23374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23375 $as_echo "$ac_cv_sizeof_long" >&6; }
23376
23377
23378
23379 cat >>confdefs.h <<_ACEOF
23380 #define SIZEOF_LONG $ac_cv_sizeof_long
23381 _ACEOF
23382
23383
23384 # The cast to long int works around a bug in the HP C Compiler
23385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23387 # This bug is HP SR number 8606223364.
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
23389 $as_echo_n "checking size of void*... " >&6; }
23390 if test "${ac_cv_sizeof_voidp+set}" = set; then :
23391 $as_echo_n "(cached) " >&6
23392 else
23393 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
23394
23395 else
23396 if test "$ac_cv_type_voidp" = yes; then
23397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23399 { as_fn_set_status 77
23400 as_fn_error "cannot compute sizeof (void*)
23401 See \`config.log' for more details." "$LINENO" 5; }; }
23402 else
23403 ac_cv_sizeof_voidp=0
23404 fi
23405 fi
23406
23407 fi
23408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
23409 $as_echo "$ac_cv_sizeof_voidp" >&6; }
23410
23411
23412
23413 cat >>confdefs.h <<_ACEOF
23414 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
23415 _ACEOF
23416
23417
23418 ac_cv_char_data_model=""
23419 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
23420 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
23421 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
23422 ac_cv_long_data_model=""
23423 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
23424 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
23425 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
23426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
23427 $as_echo_n "checking data model... " >&6; }
23428 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
23429 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
23430 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
23431 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
23432 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
23433 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
23434 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
23435 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
23436 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
23437 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
23438 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
23439 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
23440 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
23441 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
23442 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
23443 222/*|333/*|444/*|666/*|888/*) :
23444 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
23445 *) ac_cv_data_model="none" ; n="very unusual model" ;;
23446 esac
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
23448 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
23449
23450 fi
23451
23452 if test "_$ac_cv_header_stdint_x" != "_" ; then
23453 ac_cv_header_stdint="$ac_cv_header_stdint_x"
23454 elif test "_$ac_cv_header_stdint_o" != "_" ; then
23455 ac_cv_header_stdint="$ac_cv_header_stdint_o"
23456 elif test "_$ac_cv_header_stdint_u" != "_" ; then
23457 ac_cv_header_stdint="$ac_cv_header_stdint_u"
23458 else
23459 ac_cv_header_stdint="stddef.h"
23460 fi
23461
23462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
23463 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
23465 $as_echo "($ac_cv_header_stdint)" >&6; }
23466 unset ac_cv_type_int_least32_t
23467 unset ac_cv_type_int_fast32_t
23468 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
23469 "
23470 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
23471
23472 fi
23473
23474 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
23475 "
23476 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
23477
23478 fi
23479
23480 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
23481 "
23482 if test "x$ac_cv_type_intmax_t" = x""yes; then :
23483
23484 fi
23485
23486
23487 fi # shortcircut to system "stdint.h"
23488 # ------------------ PREPARE VARIABLES ------------------------------
23489 if test "$GCC" = "yes" ; then
23490 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
23491 else
23492 ac_cv_stdint_message="using $CC"
23493 fi
23494
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
23496 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
23497
23498 # ----------------- DONE inttypes.h checks START header -------------
23499 ac_config_commands="$ac_config_commands $ac_stdint_h"
23500
23501
23502
23503
23504 # Check whether --with-glibj_zip was given.
23505 if test "${with_glibj_zip+set}" = set; then :
23506 withval=$with_glibj_zip;
23507 fi
23508
23509
23510 case "$with_glibj_zip" in
23511 "")
23512 use_glibj_zip=false
23513 ;;
23514 "no" )
23515 use_glibj_zip=false
23516 ;;
23517 "yes")
23518 as_fn_error "Please suply an absolute path to a prebuilt glibj.zip" "$LINENO" 5
23519 ;;
23520 *)
23521 use_glibj_zip=true
23522 PATH_TO_GLIBJ_ZIP=$with_glibj_zip
23523 ;;
23524 esac;
23525
23526 if test x$use_glibj_zip = xtrue; then
23527 USE_PREBUILT_GLIBJ_ZIP_TRUE=
23528 USE_PREBUILT_GLIBJ_ZIP_FALSE='#'
23529 else
23530 USE_PREBUILT_GLIBJ_ZIP_TRUE='#'
23531 USE_PREBUILT_GLIBJ_ZIP_FALSE=
23532 fi
23533
23534
23535
23536 if test "x${TOOLSDIR}" != x; then
23537 if test "x${COMPILE_WRAPPERS}" = xno && test "x${enable_java_maintainer_mode}" = xyes; then
23538
23539
23540 if test "x$JAVAPREFIX" = x; then
23541 test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
23542 do
23543 # Extract the first word of "$ac_prog", so it can be a program name with args.
23544 set dummy $ac_prog; ac_word=$2
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23546 $as_echo_n "checking for $ac_word... " >&6; }
23547 if test "${ac_cv_prog_JAVA+set}" = set; then :
23548 $as_echo_n "(cached) " >&6
23549 else
23550 if test -n "$JAVA"; then
23551 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
23552 else
23553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23554 for as_dir in $PATH
23555 do
23556 IFS=$as_save_IFS
23557 test -z "$as_dir" && as_dir=.
23558 for ac_exec_ext in '' $ac_executable_extensions; do
23559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23560 ac_cv_prog_JAVA="$ac_prog"
23561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23562 break 2
23563 fi
23564 done
23565 done
23566 IFS=$as_save_IFS
23567
23568 fi
23569 fi
23570 JAVA=$ac_cv_prog_JAVA
23571 if test -n "$JAVA"; then
23572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
23573 $as_echo "$JAVA" >&6; }
23574 else
23575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23576 $as_echo "no" >&6; }
23577 fi
23578
23579
23580 test -n "$JAVA" && break
23581 done
23582
23583 else
23584 test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
23585 do
23586 # Extract the first word of "$ac_prog", so it can be a program name with args.
23587 set dummy $ac_prog; ac_word=$2
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23589 $as_echo_n "checking for $ac_word... " >&6; }
23590 if test "${ac_cv_prog_JAVA+set}" = set; then :
23591 $as_echo_n "(cached) " >&6
23592 else
23593 if test -n "$JAVA"; then
23594 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
23595 else
23596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23597 for as_dir in $PATH
23598 do
23599 IFS=$as_save_IFS
23600 test -z "$as_dir" && as_dir=.
23601 for ac_exec_ext in '' $ac_executable_extensions; do
23602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23603 ac_cv_prog_JAVA="$ac_prog"
23604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23605 break 2
23606 fi
23607 done
23608 done
23609 IFS=$as_save_IFS
23610
23611 fi
23612 fi
23613 JAVA=$ac_cv_prog_JAVA
23614 if test -n "$JAVA"; then
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
23616 $as_echo "$JAVA" >&6; }
23617 else
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23619 $as_echo "no" >&6; }
23620 fi
23621
23622
23623 test -n "$JAVA" && break
23624 done
23625 test -n "$JAVA" || JAVA="$JAVAPREFIX"
23626
23627 fi
23628 test "x$JAVA" = x && as_fn_error "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
23629
23630 # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
23631 set dummy uudecode$EXEEXT; ac_word=$2
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23633 $as_echo_n "checking for $ac_word... " >&6; }
23634 if test "${ac_cv_prog_uudecode+set}" = set; then :
23635 $as_echo_n "(cached) " >&6
23636 else
23637 if test -n "$uudecode"; then
23638 ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
23639 else
23640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23641 for as_dir in $PATH
23642 do
23643 IFS=$as_save_IFS
23644 test -z "$as_dir" && as_dir=.
23645 for ac_exec_ext in '' $ac_executable_extensions; do
23646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23647 ac_cv_prog_uudecode="yes"
23648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23649 break 2
23650 fi
23651 done
23652 done
23653 IFS=$as_save_IFS
23654
23655 fi
23656 fi
23657 uudecode=$ac_cv_prog_uudecode
23658 if test -n "$uudecode"; then
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
23660 $as_echo "$uudecode" >&6; }
23661 else
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23663 $as_echo "no" >&6; }
23664 fi
23665
23666
23667 if test x$uudecode = xyes; then
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
23669 $as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
23670 if test "${ac_cv_prog_uudecode_base64+set}" = set; then :
23671 $as_echo_n "(cached) " >&6
23672 else
23673
23674 cat << \EOF > Test.uue
23675 begin-base64 644 Test.class
23676 yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
23677 bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
23678 bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
23679 YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
23680 aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
23681 AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
23682 AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
23683 ====
23684 EOF
23685 if uudecode$EXEEXT Test.uue; then
23686 ac_cv_prog_uudecode_base64=yes
23687 else
23688 echo "configure: 23688: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
23689 echo "configure: failed file was:" >&5
23690 cat Test.uue >&5
23691 ac_cv_prog_uudecode_base64=no
23692 fi
23693 rm -f Test.uue
23694 fi
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
23696 $as_echo "$ac_cv_prog_uudecode_base64" >&6; }
23697 fi
23698 if test x$ac_cv_prog_uudecode_base64 != xyes; then
23699 rm -f Test.class
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
23701 $as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
23702 if test x$ac_cv_prog_javac_works = xno; then
23703 as_fn_error "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
23704 fi
23705 if test x$ac_cv_prog_javac_works = x; then
23706
23707 ECJ_OPTS="-warn:-deprecation,serial,unusedImport"
23708 JAVAC_OPTS="-Xlint:unchecked,cast,divzero,empty,finally,overrides"
23709 GCJ_OPTS="-g"
23710 if test "x$JAVAPREFIX" = x; then
23711 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"
23712 do
23713 # Extract the first word of "$ac_prog", so it can be a program name with args.
23714 set dummy $ac_prog; ac_word=$2
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23716 $as_echo_n "checking for $ac_word... " >&6; }
23717 if test "${ac_cv_prog_JAVAC+set}" = set; then :
23718 $as_echo_n "(cached) " >&6
23719 else
23720 if test -n "$JAVAC"; then
23721 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
23722 else
23723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23724 for as_dir in $PATH
23725 do
23726 IFS=$as_save_IFS
23727 test -z "$as_dir" && as_dir=.
23728 for ac_exec_ext in '' $ac_executable_extensions; do
23729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23730 ac_cv_prog_JAVAC="$ac_prog"
23731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23732 break 2
23733 fi
23734 done
23735 done
23736 IFS=$as_save_IFS
23737
23738 fi
23739 fi
23740 JAVAC=$ac_cv_prog_JAVAC
23741 if test -n "$JAVAC"; then
23742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
23743 $as_echo "$JAVAC" >&6; }
23744 else
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23746 $as_echo "no" >&6; }
23747 fi
23748
23749
23750 test -n "$JAVAC" && break
23751 done
23752
23753 else
23754 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"
23755 do
23756 # Extract the first word of "$ac_prog", so it can be a program name with args.
23757 set dummy $ac_prog; ac_word=$2
23758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23759 $as_echo_n "checking for $ac_word... " >&6; }
23760 if test "${ac_cv_prog_JAVAC+set}" = set; then :
23761 $as_echo_n "(cached) " >&6
23762 else
23763 if test -n "$JAVAC"; then
23764 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
23765 else
23766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23767 for as_dir in $PATH
23768 do
23769 IFS=$as_save_IFS
23770 test -z "$as_dir" && as_dir=.
23771 for ac_exec_ext in '' $ac_executable_extensions; do
23772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23773 ac_cv_prog_JAVAC="$ac_prog"
23774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23775 break 2
23776 fi
23777 done
23778 done
23779 IFS=$as_save_IFS
23780
23781 fi
23782 fi
23783 JAVAC=$ac_cv_prog_JAVAC
23784 if test -n "$JAVAC"; then
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
23786 $as_echo "$JAVAC" >&6; }
23787 else
23788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23789 $as_echo "no" >&6; }
23790 fi
23791
23792
23793 test -n "$JAVAC" && break
23794 done
23795 test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
23796
23797 fi
23798 test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC is a version of gcj" >&5
23800 $as_echo_n "checking if $JAVAC is a version of gcj... " >&6; }
23801 if test "${ac_cv_prog_javac_is_gcj+set}" = set; then :
23802 $as_echo_n "(cached) " >&6
23803 else
23804
23805 if $JAVAC --version | grep gcj > /dev/null; then
23806 ac_cv_prog_javac_is_gcj=yes;
23807 JAVAC="$JAVAC $GCJ_OPTS";
23808 fi
23809 fi
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_is_gcj" >&5
23811 $as_echo "$ac_cv_prog_javac_is_gcj" >&6; }
23812 JAVAC_IS_GCJ=$ac_cv_prog_javac_is_gcj
23813
23814 if test x"${JAVAC_IS_GCJ}" = xyes; then
23815 GCJ_JAVAC_TRUE=
23816 GCJ_JAVAC_FALSE='#'
23817 else
23818 GCJ_JAVAC_TRUE='#'
23819 GCJ_JAVAC_FALSE=
23820 fi
23821
23822 if test "$enable_java_maintainer_mode" = yes; then
23823
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
23825 $as_echo_n "checking if $JAVAC works... " >&6; }
23826 if test "${ac_cv_prog_javac_works+set}" = set; then :
23827 $as_echo_n "(cached) " >&6
23828 else
23829
23830 JAVA_TEST=Object.java
23831 CLASS_TEST=Object.class
23832 cat << \EOF > $JAVA_TEST
23833 /* #line 23833 "configure" */
23834 package java.lang;
23835
23836 public class Object
23837 {
23838 static <T> void doStuff()
23839 {
23840 }
23841 }
23842 EOF
23843 if test x$JAVAC_IS_GCJ = xyes; then
23844 CMD="$JAVAC $JAVACFLAGS -fsource=1.5 -ftarget=1.5 $JAVA_TEST"
23845 else
23846 CMD="$JAVAC $JAVACFLAGS -source 1.5 -target 1.5 $JAVA_TEST"
23847 fi
23848 if { ac_try='$CMD'
23849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23850 (eval $ac_try) 2>&5
23851 ac_status=$?
23852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23853 test $ac_status = 0; }; } >/dev/null 2>&1; then
23854 ac_cv_prog_javac_works=yes
23855 else
23856 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
23857 echo "configure: failed program was:" >&5
23858 cat $JAVA_TEST >&5
23859 fi
23860 rm -f $JAVA_TEST $CLASS_TEST
23861
23862 fi
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
23864 $as_echo "$ac_cv_prog_javac_works" >&6; }
23865
23866 fi
23867
23868 fi
23869 fi
23870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
23871 $as_echo_n "checking if $JAVA works... " >&6; }
23872 if test "${ac_cv_prog_java_works+set}" = set; then :
23873 $as_echo_n "(cached) " >&6
23874 else
23875
23876 JAVA_TEST=Test.java
23877 CLASS_TEST=Test.class
23878 TEST=Test
23879 cat << \EOF > $JAVA_TEST
23880 /* [#]line 23880 "configure" */
23881 public class Test {
23882 public static void main (String args[]) {
23883 System.exit (0);
23884 } }
23885 EOF
23886 if test x$ac_cv_prog_uudecode_base64 != xyes; then
23887 if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
23888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23889 (eval $ac_try) 2>&5
23890 ac_status=$?
23891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23892 test $ac_status = 0; }; } && test -s $CLASS_TEST; then
23893 :
23894 else
23895 echo "configure: failed program was:" >&5
23896 cat $JAVA_TEST >&5
23897 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
23898 fi
23899 fi
23900 if { ac_try='CLASSPATH=.:$CLASSPATH $JAVA $JAVAFLAGS $TEST'
23901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23902 (eval $ac_try) 2>&5
23903 ac_status=$?
23904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23905 test $ac_status = 0; }; } >/dev/null 2>&1; then
23906 ac_cv_prog_java_works=yes
23907 else
23908 echo "configure: failed program was:" >&5
23909 cat $JAVA_TEST >&5
23910 as_fn_error "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
23911 fi
23912 rm -fr $JAVA_TEST $CLASS_TEST Test.uue
23913
23914 fi
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
23916 $as_echo "$ac_cv_prog_java_works" >&6; }
23917
23918
23919
23920 fi
23921 if test "x${COMPILE_GJDOC}" = xyes; then
23922
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ANTLR parser generator JAR file" >&5
23924 $as_echo_n "checking for the ANTLR parser generator JAR file... " >&6; }
23925 if test -z "$ANTLR_JAR"; then
23926 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
23927 /usr/share/antlr/lib /usr/share/java /usr/lib;
23928 do
23929 if test -f "$antlr_lib_home/antlr.jar"; then
23930 ANTLR_JAR="$antlr_lib_home/antlr.jar"
23931 break
23932 fi
23933 done
23934 fi
23935 test -f $ANTLR_JAR || as_fn_error "specified ANTLR jar file $ANTLR_JAR not found." "$LINENO" 5 \
23936 && { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
23937 $as_echo "$ANTLR_JAR" >&6; }
23938
23939
23940 if test "x${REGENERATE_GJDOC_PARSER}" = xyes && test "x${enable_java_maintainer_mode}" = xyes; then
23941
23942 if test -n "$ac_tool_prefix"; then
23943 for ac_prog in cantlr runantlr antlr
23944 do
23945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23948 $as_echo_n "checking for $ac_word... " >&6; }
23949 if test "${ac_cv_prog_ANTLR+set}" = set; then :
23950 $as_echo_n "(cached) " >&6
23951 else
23952 if test -n "$ANTLR"; then
23953 ac_cv_prog_ANTLR="$ANTLR" # Let the user override the test.
23954 else
23955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23956 for as_dir in $PATH
23957 do
23958 IFS=$as_save_IFS
23959 test -z "$as_dir" && as_dir=.
23960 for ac_exec_ext in '' $ac_executable_extensions; do
23961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23962 ac_cv_prog_ANTLR="$ac_tool_prefix$ac_prog"
23963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23964 break 2
23965 fi
23966 done
23967 done
23968 IFS=$as_save_IFS
23969
23970 fi
23971 fi
23972 ANTLR=$ac_cv_prog_ANTLR
23973 if test -n "$ANTLR"; then
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR" >&5
23975 $as_echo "$ANTLR" >&6; }
23976 else
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23978 $as_echo "no" >&6; }
23979 fi
23980
23981
23982 test -n "$ANTLR" && break
23983 done
23984 fi
23985 if test -z "$ANTLR"; then
23986 ac_ct_ANTLR=$ANTLR
23987 for ac_prog in cantlr runantlr antlr
23988 do
23989 # Extract the first word of "$ac_prog", so it can be a program name with args.
23990 set dummy $ac_prog; ac_word=$2
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23992 $as_echo_n "checking for $ac_word... " >&6; }
23993 if test "${ac_cv_prog_ac_ct_ANTLR+set}" = set; then :
23994 $as_echo_n "(cached) " >&6
23995 else
23996 if test -n "$ac_ct_ANTLR"; then
23997 ac_cv_prog_ac_ct_ANTLR="$ac_ct_ANTLR" # Let the user override the test.
23998 else
23999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24000 for as_dir in $PATH
24001 do
24002 IFS=$as_save_IFS
24003 test -z "$as_dir" && as_dir=.
24004 for ac_exec_ext in '' $ac_executable_extensions; do
24005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24006 ac_cv_prog_ac_ct_ANTLR="$ac_prog"
24007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24008 break 2
24009 fi
24010 done
24011 done
24012 IFS=$as_save_IFS
24013
24014 fi
24015 fi
24016 ac_ct_ANTLR=$ac_cv_prog_ac_ct_ANTLR
24017 if test -n "$ac_ct_ANTLR"; then
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ANTLR" >&5
24019 $as_echo "$ac_ct_ANTLR" >&6; }
24020 else
24021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24022 $as_echo "no" >&6; }
24023 fi
24024
24025
24026 test -n "$ac_ct_ANTLR" && break
24027 done
24028
24029 if test "x$ac_ct_ANTLR" = x; then
24030 ANTLR=""
24031 else
24032 case $cross_compiling:$ac_tool_warned in
24033 yes:)
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24036 ac_tool_warned=yes ;;
24037 esac
24038 ANTLR=$ac_ct_ANTLR
24039 fi
24040 fi
24041
24042 if test "x$ANTLR" = x; then
24043 if test -z "$JAVA"; then
24044 as_fn_error "Failed to find either an antlr binary or a suitable Java runtime for ANTLR." "$LINENO" 5
24045 else
24046 ANTLR="$JAVA -classpath $ANTLR_JAR antlr.Tool"
24047 fi
24048 fi
24049
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr 2.7.1 or better" >&5
24051 $as_echo_n "checking for antlr 2.7.1 or better... " >&6; }
24052 antlr_version_str=`$ANTLR 2>&1 | head -n 1 | sed '/.*Version */!d; s///;q'`
24053 if test "$antlr_version_str"; then
24054 antlr_version_regex='s/\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\).*$/'
24055 antlr_version_major=`echo $antlr_version_str | sed "$antlr_version_regex\\1/"`
24056 antlr_version_minor=`echo $antlr_version_str | sed "$antlr_version_regex\\2/"`
24057 antlr_version_micro=`echo $antlr_version_str | sed "$antlr_version_regex\\3/"`
24058 (test $antlr_version_major -gt 2 || \
24059 (test $antlr_version_major -eq 2 && \
24060 test $antlr_version_minor -gt 7) || \
24061 (test $antlr_version_major -eq 2 && \
24062 test $antlr_version_minor -eq 7 && \
24063 test $antlr_version_micro -ge 1))
24064 fi
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&5
24066 $as_echo "$antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&6; }
24067
24068 fi
24069 fi
24070 fi
24071
24072
24073 # Check for javac if we need to build either the class library,
24074 # the examples or the tools
24075 if test "x${use_glibj_zip}" = xfalse || \
24076 test "x${EXAMPLESDIR}" != x || \
24077 test "x${TOOLSDIR}" != x && \
24078 test "x${build_class_files}" != xno; then
24079
24080 ECJ_OPTS="-warn:-deprecation,serial,unusedImport"
24081 JAVAC_OPTS="-Xlint:unchecked,cast,divzero,empty,finally,overrides"
24082 GCJ_OPTS="-g"
24083 if test "x$JAVAPREFIX" = x; then
24084 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"
24085 do
24086 # Extract the first word of "$ac_prog", so it can be a program name with args.
24087 set dummy $ac_prog; ac_word=$2
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24089 $as_echo_n "checking for $ac_word... " >&6; }
24090 if test "${ac_cv_prog_JAVAC+set}" = set; then :
24091 $as_echo_n "(cached) " >&6
24092 else
24093 if test -n "$JAVAC"; then
24094 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
24095 else
24096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24097 for as_dir in $PATH
24098 do
24099 IFS=$as_save_IFS
24100 test -z "$as_dir" && as_dir=.
24101 for ac_exec_ext in '' $ac_executable_extensions; do
24102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24103 ac_cv_prog_JAVAC="$ac_prog"
24104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24105 break 2
24106 fi
24107 done
24108 done
24109 IFS=$as_save_IFS
24110
24111 fi
24112 fi
24113 JAVAC=$ac_cv_prog_JAVAC
24114 if test -n "$JAVAC"; then
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
24116 $as_echo "$JAVAC" >&6; }
24117 else
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24119 $as_echo "no" >&6; }
24120 fi
24121
24122
24123 test -n "$JAVAC" && break
24124 done
24125
24126 else
24127 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"
24128 do
24129 # Extract the first word of "$ac_prog", so it can be a program name with args.
24130 set dummy $ac_prog; ac_word=$2
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24132 $as_echo_n "checking for $ac_word... " >&6; }
24133 if test "${ac_cv_prog_JAVAC+set}" = set; then :
24134 $as_echo_n "(cached) " >&6
24135 else
24136 if test -n "$JAVAC"; then
24137 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
24138 else
24139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24140 for as_dir in $PATH
24141 do
24142 IFS=$as_save_IFS
24143 test -z "$as_dir" && as_dir=.
24144 for ac_exec_ext in '' $ac_executable_extensions; do
24145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24146 ac_cv_prog_JAVAC="$ac_prog"
24147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24148 break 2
24149 fi
24150 done
24151 done
24152 IFS=$as_save_IFS
24153
24154 fi
24155 fi
24156 JAVAC=$ac_cv_prog_JAVAC
24157 if test -n "$JAVAC"; then
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
24159 $as_echo "$JAVAC" >&6; }
24160 else
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24162 $as_echo "no" >&6; }
24163 fi
24164
24165
24166 test -n "$JAVAC" && break
24167 done
24168 test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
24169
24170 fi
24171 test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC is a version of gcj" >&5
24173 $as_echo_n "checking if $JAVAC is a version of gcj... " >&6; }
24174 if test "${ac_cv_prog_javac_is_gcj+set}" = set; then :
24175 $as_echo_n "(cached) " >&6
24176 else
24177
24178 if $JAVAC --version | grep gcj > /dev/null; then
24179 ac_cv_prog_javac_is_gcj=yes;
24180 JAVAC="$JAVAC $GCJ_OPTS";
24181 fi
24182 fi
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_is_gcj" >&5
24184 $as_echo "$ac_cv_prog_javac_is_gcj" >&6; }
24185 JAVAC_IS_GCJ=$ac_cv_prog_javac_is_gcj
24186
24187 if test x"${JAVAC_IS_GCJ}" = xyes; then
24188 GCJ_JAVAC_TRUE=
24189 GCJ_JAVAC_FALSE='#'
24190 else
24191 GCJ_JAVAC_TRUE='#'
24192 GCJ_JAVAC_FALSE=
24193 fi
24194
24195 if test "$enable_java_maintainer_mode" = yes; then
24196
24197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
24198 $as_echo_n "checking if $JAVAC works... " >&6; }
24199 if test "${ac_cv_prog_javac_works+set}" = set; then :
24200 $as_echo_n "(cached) " >&6
24201 else
24202
24203 JAVA_TEST=Object.java
24204 CLASS_TEST=Object.class
24205 cat << \EOF > $JAVA_TEST
24206 /* #line 24206 "configure" */
24207 package java.lang;
24208
24209 public class Object
24210 {
24211 static <T> void doStuff()
24212 {
24213 }
24214 }
24215 EOF
24216 if test x$JAVAC_IS_GCJ = xyes; then
24217 CMD="$JAVAC $JAVACFLAGS -fsource=1.5 -ftarget=1.5 $JAVA_TEST"
24218 else
24219 CMD="$JAVAC $JAVACFLAGS -source 1.5 -target 1.5 $JAVA_TEST"
24220 fi
24221 if { ac_try='$CMD'
24222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24223 (eval $ac_try) 2>&5
24224 ac_status=$?
24225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24226 test $ac_status = 0; }; } >/dev/null 2>&1; then
24227 ac_cv_prog_javac_works=yes
24228 else
24229 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
24230 echo "configure: failed program was:" >&5
24231 cat $JAVA_TEST >&5
24232 fi
24233 rm -f $JAVA_TEST $CLASS_TEST
24234
24235 fi
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
24237 $as_echo "$ac_cv_prog_javac_works" >&6; }
24238
24239 fi
24240
24241
24242 JAVA_TEST=Test.java
24243 CLASS_TEST=Test.class
24244 cat << \EOF > $JAVA_TEST
24245 /* #line 24245 "configure" */
24246 public class Test
24247 {
24248 public static void main(String args)
24249 {
24250 System.out.println("Hello World");
24251 }
24252 }
24253 EOF
24254 if test x$JAVAC_IS_GCJ != xyes; then
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether javac supports -J" >&5
24256 $as_echo_n "checking whether javac supports -J... " >&6; }
24257 $JAVAC $JAVACFLAGS -J-Xmx768M -sourcepath '' $JAVA_TEST
24258 javac_result=$?
24259 if test "x$javac_result" = "x0"; then
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24261 $as_echo "yes" >&6; }
24262 JAVAC_MEM_OPT="-J-Xmx768M"
24263 else
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24265 $as_echo "no" >&6; }
24266 fi
24267 fi
24268 rm -f $JAVA_TEST $CLASS_TEST
24269
24270
24271 fi
24272
24273
24274 # Check whether --with-escher was given.
24275 if test "${with_escher+set}" = set; then :
24276 withval=$with_escher;
24277 fi
24278
24279 case "$with_escher" in
24280 "")
24281 use_escher=false
24282 ;;
24283 "no")
24284 use_escher=false
24285 ;;
24286 "yes")
24287 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
24288 ;;
24289 *)
24290 use_escher=true
24291 PATH_TO_ESCHER=$with_escher
24292 ;;
24293 esac
24294
24295 if test x$use_escher = xtrue; then
24296 USE_ESCHER_TRUE=
24297 USE_ESCHER_FALSE='#'
24298 else
24299 USE_ESCHER_TRUE='#'
24300 USE_ESCHER_FALSE=
24301 fi
24302
24303
24304
24305 # Check whether --enable-local-sockets was given.
24306 if test "${enable_local_sockets+set}" = set; then :
24307 enableval=$enable_local_sockets; case "${enableval}" in
24308 yes)
24309 ENABLE_LOCAL_SOCKETS=yes
24310 ;;
24311 *)
24312 ENABLE_LOCAL_SOCKETS=no
24313 ;;
24314 esac
24315 fi
24316
24317 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
24318 then
24319 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
24320 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
24321
24322 fi
24323
24324
24325 for ac_func in read write bind listen accept shutdown
24326 do :
24327 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24328 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24329 eval as_val=\$$as_ac_var
24330 if test "x$as_val" = x""yes; then :
24331 cat >>confdefs.h <<_ACEOF
24332 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24333 _ACEOF
24334
24335 else
24336 as_fn_error "networking support not available" "$LINENO" 5
24337 fi
24338 done
24339
24340
24341 $as_echo "#define ENABLE_LOCAL_SOCKETS 1" >>confdefs.h
24342
24343 fi
24344 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"; then
24345 ENABLE_LOCAL_SOCKETS_TRUE=
24346 ENABLE_LOCAL_SOCKETS_FALSE='#'
24347 else
24348 ENABLE_LOCAL_SOCKETS_TRUE='#'
24349 ENABLE_LOCAL_SOCKETS_FALSE=
24350 fi
24351
24352
24353
24354
24355 WANT_NATIVE_BIG_INTEGER=false
24356 if test "x${COMPILE_GMP}" = xyes; then
24357 if test "x${ac_cv_lib_gmp___gmpz_mul_si}" = xyes; then
24358 if test "x${ac_cv_header_gmp_h}" = xyes; then
24359 WANT_NATIVE_BIG_INTEGER=true
24360
24361 $as_echo "#define WITH_GNU_MP 1" >>confdefs.h
24362
24363 else
24364 COMPILE_GMP=no
24365 fi
24366 else
24367 COMPILE_GMP=no
24368 fi
24369 fi
24370
24371 if test "x${COMPILE_GMP}" = xyes; then
24372 CREATE_GMPBI_LIBRARY_TRUE=
24373 CREATE_GMPBI_LIBRARY_FALSE='#'
24374 else
24375 CREATE_GMPBI_LIBRARY_TRUE='#'
24376 CREATE_GMPBI_LIBRARY_FALSE=
24377 fi
24378
24379
24380 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"
24381
24382
24383 if test "x${COMPILE_WRAPPERS}" = xyes; then
24384 :
24385 else
24386 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"
24387
24388
24389 ac_config_commands="$ac_config_commands gappletviewer"
24390
24391 ac_config_commands="$ac_config_commands gjarsigner"
24392
24393 ac_config_commands="$ac_config_commands gkeytool"
24394
24395 ac_config_commands="$ac_config_commands gjar"
24396
24397 ac_config_commands="$ac_config_commands gnative2ascii"
24398
24399 ac_config_commands="$ac_config_commands gserialver"
24400
24401 ac_config_commands="$ac_config_commands grmiregistry"
24402
24403 ac_config_commands="$ac_config_commands gtnameserv"
24404
24405 ac_config_commands="$ac_config_commands gorbd"
24406
24407 ac_config_commands="$ac_config_commands grmid"
24408
24409 ac_config_commands="$ac_config_commands grmic"
24410
24411 ac_config_commands="$ac_config_commands gjavah"
24412
24413
24414 fi
24415
24416 if test "x${COMPILE_GJDOC}" = xyes
24417 then
24418 ac_config_files="$ac_config_files tools/gjdoc"
24419
24420 ac_config_commands="$ac_config_commands gjdoc"
24421
24422 fi
24423
24424 ac_config_commands="$ac_config_commands gen-classlist"
24425
24426 ac_config_commands="$ac_config_commands copy-vmresources"
24427
24428 cat >confcache <<\_ACEOF
24429 # This file is a shell script that caches the results of configure
24430 # tests run on this system so they can be shared between configure
24431 # scripts and configure runs, see configure's option --config-cache.
24432 # It is not useful on other systems. If it contains results you don't
24433 # want to keep, you may remove or edit it.
24434 #
24435 # config.status only pays attention to the cache file if you give it
24436 # the --recheck option to rerun configure.
24437 #
24438 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24439 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24440 # following values.
24441
24442 _ACEOF
24443
24444 # The following way of writing the cache mishandles newlines in values,
24445 # but we know of no workaround that is simple, portable, and efficient.
24446 # So, we kill variables containing newlines.
24447 # Ultrix sh set writes to stderr and can't be redirected directly,
24448 # and sets the high bit in the cache file unless we assign to the vars.
24449 (
24450 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24451 eval ac_val=\$$ac_var
24452 case $ac_val in #(
24453 *${as_nl}*)
24454 case $ac_var in #(
24455 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24456 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24457 esac
24458 case $ac_var in #(
24459 _ | IFS | as_nl) ;; #(
24460 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24461 *) { eval $ac_var=; unset $ac_var;} ;;
24462 esac ;;
24463 esac
24464 done
24465
24466 (set) 2>&1 |
24467 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24468 *${as_nl}ac_space=\ *)
24469 # `set' does not quote correctly, so add quotes: double-quote
24470 # substitution turns \\\\ into \\, and sed turns \\ into \.
24471 sed -n \
24472 "s/'/'\\\\''/g;
24473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24474 ;; #(
24475 *)
24476 # `set' quotes correctly as required by POSIX, so do not add quotes.
24477 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24478 ;;
24479 esac |
24480 sort
24481 ) |
24482 sed '
24483 /^ac_cv_env_/b end
24484 t clear
24485 :clear
24486 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24487 t end
24488 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24489 :end' >>confcache
24490 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24491 if test -w "$cache_file"; then
24492 test "x$cache_file" != "x/dev/null" &&
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24494 $as_echo "$as_me: updating cache $cache_file" >&6;}
24495 cat confcache >$cache_file
24496 else
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24498 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24499 fi
24500 fi
24501 rm -f confcache
24502
24503 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24504 # Let make expand exec_prefix.
24505 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24506
24507 DEFS=-DHAVE_CONFIG_H
24508
24509 ac_libobjs=
24510 ac_ltlibobjs=
24511 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24512 # 1. Remove the extension, and $U if already installed.
24513 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24514 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24515 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24516 # will be set to the directory where LIBOBJS objects are built.
24517 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24518 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24519 done
24520 LIBOBJS=$ac_libobjs
24521
24522 LTLIBOBJS=$ac_ltlibobjs
24523
24524
24525 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24526 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24528 fi
24529 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
24530 as_fn_error "conditional \"GENINSRC\" was never defined.
24531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24532 fi
24533 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
24534 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
24535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24536 fi
24537 if test -n "$EXEEXT"; then
24538 am__EXEEXT_TRUE=
24539 am__EXEEXT_FALSE='#'
24540 else
24541 am__EXEEXT_TRUE='#'
24542 am__EXEEXT_FALSE=
24543 fi
24544
24545 if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
24546 as_fn_error "conditional \"CREATE_COLLECTIONS\" was never defined.
24547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24548 fi
24549 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
24550 as_fn_error "conditional \"CREATE_JNI_LIBRARIES\" was never defined.
24551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24552 fi
24553 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
24554 as_fn_error "conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
24555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24556 fi
24557 if test -z "${CREATE_GCONF_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GCONF_PEER_LIBRARIES_FALSE}"; then
24558 as_fn_error "conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
24559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24560 fi
24561 if test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_FALSE}"; then
24562 as_fn_error "conditional \"CREATE_GSTREAMER_PEER_LIBRARIES\" was never defined.
24563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24564 fi
24565 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
24566 as_fn_error "conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
24567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24568 fi
24569 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24570 as_fn_error "conditional \"AMDEP\" was never defined.
24571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24572 fi
24573 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24574 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24576 fi
24577 if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
24578 as_fn_error "conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
24579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24580 fi
24581 if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
24582 as_fn_error "conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
24583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24584 fi
24585 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
24586 as_fn_error "conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
24587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24588 fi
24589 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
24590 as_fn_error "conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
24591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24592 fi
24593 if test -z "${CREATE_PLUGIN_TRUE}" && test -z "${CREATE_PLUGIN_FALSE}"; then
24594 as_fn_error "conditional \"CREATE_PLUGIN\" was never defined.
24595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24596 fi
24597 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24598 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24600 fi
24601 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
24602 as_fn_error "conditional \"CREATE_JNI_HEADERS\" was never defined.
24603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24604 fi
24605 if test -z "${CREATE_GJDOC_PARSER_TRUE}" && test -z "${CREATE_GJDOC_PARSER_FALSE}"; then
24606 as_fn_error "conditional \"CREATE_GJDOC_PARSER\" was never defined.
24607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24608 fi
24609 if test -z "${CREATE_WRAPPERS_TRUE}" && test -z "${CREATE_WRAPPERS_FALSE}"; then
24610 as_fn_error "conditional \"CREATE_WRAPPERS\" was never defined.
24611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24612 fi
24613 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24614 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24616 fi
24617 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24618 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24620 fi
24621 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24622 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24624 fi
24625 if test -z "${WITH_JAR_TRUE}" && test -z "${WITH_JAR_FALSE}"; then
24626 as_fn_error "conditional \"WITH_JAR\" was never defined.
24627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24628 fi
24629 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
24630 as_fn_error "conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
24631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24632 fi
24633 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
24634 as_fn_error "conditional \"INSTALL_CLASS_FILES\" was never defined.
24635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24636 fi
24637 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
24638 as_fn_error "conditional \"BUILD_CLASS_FILES\" was never defined.
24639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24640 fi
24641 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
24642 as_fn_error "conditional \"CREATE_API_DOCS\" was never defined.
24643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24644 fi
24645 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
24646 as_fn_error "conditional \"REGEN_PARSERS\" was never defined.
24647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24648 fi
24649 if test -z "${USE_PREBUILT_GLIBJ_ZIP_TRUE}" && test -z "${USE_PREBUILT_GLIBJ_ZIP_FALSE}"; then
24650 as_fn_error "conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
24651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24652 fi
24653 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
24654 as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
24655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24656 fi
24657 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
24658 as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
24659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24660 fi
24661 if test -z "${USE_ESCHER_TRUE}" && test -z "${USE_ESCHER_FALSE}"; then
24662 as_fn_error "conditional \"USE_ESCHER\" was never defined.
24663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24664 fi
24665 if test -z "${ENABLE_LOCAL_SOCKETS_TRUE}" && test -z "${ENABLE_LOCAL_SOCKETS_FALSE}"; then
24666 as_fn_error "conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
24667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24668 fi
24669 if test -z "${CREATE_GMPBI_LIBRARY_TRUE}" && test -z "${CREATE_GMPBI_LIBRARY_FALSE}"; then
24670 as_fn_error "conditional \"CREATE_GMPBI_LIBRARY\" was never defined.
24671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24672 fi
24673
24674 : ${CONFIG_STATUS=./config.status}
24675 ac_write_fail=0
24676 ac_clean_files_save=$ac_clean_files
24677 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24679 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24680 as_write_fail=0
24681 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24682 #! $SHELL
24683 # Generated by $as_me.
24684 # Run this file to recreate the current configuration.
24685 # Compiler output produced by configure, useful for debugging
24686 # configure, is in config.log if it exists.
24687
24688 debug=false
24689 ac_cs_recheck=false
24690 ac_cs_silent=false
24691
24692 SHELL=\${CONFIG_SHELL-$SHELL}
24693 export SHELL
24694 _ASEOF
24695 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24696 ## -------------------- ##
24697 ## M4sh Initialization. ##
24698 ## -------------------- ##
24699
24700 # Be more Bourne compatible
24701 DUALCASE=1; export DUALCASE # for MKS sh
24702 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24703 emulate sh
24704 NULLCMD=:
24705 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24706 # is contrary to our usage. Disable this feature.
24707 alias -g '${1+"$@"}'='"$@"'
24708 setopt NO_GLOB_SUBST
24709 else
24710 case `(set -o) 2>/dev/null` in #(
24711 *posix*) :
24712 set -o posix ;; #(
24713 *) :
24714 ;;
24715 esac
24716 fi
24717
24718
24719 as_nl='
24720 '
24721 export as_nl
24722 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24723 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24724 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24725 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24726 # Prefer a ksh shell builtin over an external printf program on Solaris,
24727 # but without wasting forks for bash or zsh.
24728 if test -z "$BASH_VERSION$ZSH_VERSION" \
24729 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24730 as_echo='print -r --'
24731 as_echo_n='print -rn --'
24732 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24733 as_echo='printf %s\n'
24734 as_echo_n='printf %s'
24735 else
24736 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24737 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24738 as_echo_n='/usr/ucb/echo -n'
24739 else
24740 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24741 as_echo_n_body='eval
24742 arg=$1;
24743 case $arg in #(
24744 *"$as_nl"*)
24745 expr "X$arg" : "X\\(.*\\)$as_nl";
24746 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24747 esac;
24748 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24749 '
24750 export as_echo_n_body
24751 as_echo_n='sh -c $as_echo_n_body as_echo'
24752 fi
24753 export as_echo_body
24754 as_echo='sh -c $as_echo_body as_echo'
24755 fi
24756
24757 # The user is always right.
24758 if test "${PATH_SEPARATOR+set}" != set; then
24759 PATH_SEPARATOR=:
24760 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24761 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24762 PATH_SEPARATOR=';'
24763 }
24764 fi
24765
24766
24767 # IFS
24768 # We need space, tab and new line, in precisely that order. Quoting is
24769 # there to prevent editors from complaining about space-tab.
24770 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24771 # splitting by setting IFS to empty value.)
24772 IFS=" "" $as_nl"
24773
24774 # Find who we are. Look in the path if we contain no directory separator.
24775 case $0 in #((
24776 *[\\/]* ) as_myself=$0 ;;
24777 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24778 for as_dir in $PATH
24779 do
24780 IFS=$as_save_IFS
24781 test -z "$as_dir" && as_dir=.
24782 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24783 done
24784 IFS=$as_save_IFS
24785
24786 ;;
24787 esac
24788 # We did not find ourselves, most probably we were run as `sh COMMAND'
24789 # in which case we are not to be found in the path.
24790 if test "x$as_myself" = x; then
24791 as_myself=$0
24792 fi
24793 if test ! -f "$as_myself"; then
24794 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24795 exit 1
24796 fi
24797
24798 # Unset variables that we do not need and which cause bugs (e.g. in
24799 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24800 # suppresses any "Segmentation fault" message there. '((' could
24801 # trigger a bug in pdksh 5.2.14.
24802 for as_var in BASH_ENV ENV MAIL MAILPATH
24803 do eval test x\${$as_var+set} = xset \
24804 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24805 done
24806 PS1='$ '
24807 PS2='> '
24808 PS4='+ '
24809
24810 # NLS nuisances.
24811 LC_ALL=C
24812 export LC_ALL
24813 LANGUAGE=C
24814 export LANGUAGE
24815
24816 # CDPATH.
24817 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24818
24819
24820 # as_fn_error ERROR [LINENO LOG_FD]
24821 # ---------------------------------
24822 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24823 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24824 # script with status $?, using 1 if that was 0.
24825 as_fn_error ()
24826 {
24827 as_status=$?; test $as_status -eq 0 && as_status=1
24828 if test "$3"; then
24829 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24830 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24831 fi
24832 $as_echo "$as_me: error: $1" >&2
24833 as_fn_exit $as_status
24834 } # as_fn_error
24835
24836
24837 # as_fn_set_status STATUS
24838 # -----------------------
24839 # Set $? to STATUS, without forking.
24840 as_fn_set_status ()
24841 {
24842 return $1
24843 } # as_fn_set_status
24844
24845 # as_fn_exit STATUS
24846 # -----------------
24847 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24848 as_fn_exit ()
24849 {
24850 set +e
24851 as_fn_set_status $1
24852 exit $1
24853 } # as_fn_exit
24854
24855 # as_fn_unset VAR
24856 # ---------------
24857 # Portably unset VAR.
24858 as_fn_unset ()
24859 {
24860 { eval $1=; unset $1;}
24861 }
24862 as_unset=as_fn_unset
24863 # as_fn_append VAR VALUE
24864 # ----------------------
24865 # Append the text in VALUE to the end of the definition contained in VAR. Take
24866 # advantage of any shell optimizations that allow amortized linear growth over
24867 # repeated appends, instead of the typical quadratic growth present in naive
24868 # implementations.
24869 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24870 eval 'as_fn_append ()
24871 {
24872 eval $1+=\$2
24873 }'
24874 else
24875 as_fn_append ()
24876 {
24877 eval $1=\$$1\$2
24878 }
24879 fi # as_fn_append
24880
24881 # as_fn_arith ARG...
24882 # ------------------
24883 # Perform arithmetic evaluation on the ARGs, and store the result in the
24884 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24885 # must be portable across $(()) and expr.
24886 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24887 eval 'as_fn_arith ()
24888 {
24889 as_val=$(( $* ))
24890 }'
24891 else
24892 as_fn_arith ()
24893 {
24894 as_val=`expr "$@" || test $? -eq 1`
24895 }
24896 fi # as_fn_arith
24897
24898
24899 if expr a : '\(a\)' >/dev/null 2>&1 &&
24900 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24901 as_expr=expr
24902 else
24903 as_expr=false
24904 fi
24905
24906 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24907 as_basename=basename
24908 else
24909 as_basename=false
24910 fi
24911
24912 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24913 as_dirname=dirname
24914 else
24915 as_dirname=false
24916 fi
24917
24918 as_me=`$as_basename -- "$0" ||
24919 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24920 X"$0" : 'X\(//\)$' \| \
24921 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24922 $as_echo X/"$0" |
24923 sed '/^.*\/\([^/][^/]*\)\/*$/{
24924 s//\1/
24925 q
24926 }
24927 /^X\/\(\/\/\)$/{
24928 s//\1/
24929 q
24930 }
24931 /^X\/\(\/\).*/{
24932 s//\1/
24933 q
24934 }
24935 s/.*/./; q'`
24936
24937 # Avoid depending upon Character Ranges.
24938 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24939 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24940 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24941 as_cr_digits='0123456789'
24942 as_cr_alnum=$as_cr_Letters$as_cr_digits
24943
24944 ECHO_C= ECHO_N= ECHO_T=
24945 case `echo -n x` in #(((((
24946 -n*)
24947 case `echo 'xy\c'` in
24948 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24949 xy) ECHO_C='\c';;
24950 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24951 ECHO_T=' ';;
24952 esac;;
24953 *)
24954 ECHO_N='-n';;
24955 esac
24956
24957 rm -f conf$$ conf$$.exe conf$$.file
24958 if test -d conf$$.dir; then
24959 rm -f conf$$.dir/conf$$.file
24960 else
24961 rm -f conf$$.dir
24962 mkdir conf$$.dir 2>/dev/null
24963 fi
24964 if (echo >conf$$.file) 2>/dev/null; then
24965 if ln -s conf$$.file conf$$ 2>/dev/null; then
24966 as_ln_s='ln -s'
24967 # ... but there are two gotchas:
24968 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24969 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24970 # In both cases, we have to default to `cp -p'.
24971 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24972 as_ln_s='cp -p'
24973 elif ln conf$$.file conf$$ 2>/dev/null; then
24974 as_ln_s=ln
24975 else
24976 as_ln_s='cp -p'
24977 fi
24978 else
24979 as_ln_s='cp -p'
24980 fi
24981 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24982 rmdir conf$$.dir 2>/dev/null
24983
24984
24985 # as_fn_mkdir_p
24986 # -------------
24987 # Create "$as_dir" as a directory, including parents if necessary.
24988 as_fn_mkdir_p ()
24989 {
24990
24991 case $as_dir in #(
24992 -*) as_dir=./$as_dir;;
24993 esac
24994 test -d "$as_dir" || eval $as_mkdir_p || {
24995 as_dirs=
24996 while :; do
24997 case $as_dir in #(
24998 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24999 *) as_qdir=$as_dir;;
25000 esac
25001 as_dirs="'$as_qdir' $as_dirs"
25002 as_dir=`$as_dirname -- "$as_dir" ||
25003 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25004 X"$as_dir" : 'X\(//\)[^/]' \| \
25005 X"$as_dir" : 'X\(//\)$' \| \
25006 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25007 $as_echo X"$as_dir" |
25008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25009 s//\1/
25010 q
25011 }
25012 /^X\(\/\/\)[^/].*/{
25013 s//\1/
25014 q
25015 }
25016 /^X\(\/\/\)$/{
25017 s//\1/
25018 q
25019 }
25020 /^X\(\/\).*/{
25021 s//\1/
25022 q
25023 }
25024 s/.*/./; q'`
25025 test -d "$as_dir" && break
25026 done
25027 test -z "$as_dirs" || eval "mkdir $as_dirs"
25028 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25029
25030
25031 } # as_fn_mkdir_p
25032 if mkdir -p . 2>/dev/null; then
25033 as_mkdir_p='mkdir -p "$as_dir"'
25034 else
25035 test -d ./-p && rmdir ./-p
25036 as_mkdir_p=false
25037 fi
25038
25039 if test -x / >/dev/null 2>&1; then
25040 as_test_x='test -x'
25041 else
25042 if ls -dL / >/dev/null 2>&1; then
25043 as_ls_L_option=L
25044 else
25045 as_ls_L_option=
25046 fi
25047 as_test_x='
25048 eval sh -c '\''
25049 if test -d "$1"; then
25050 test -d "$1/.";
25051 else
25052 case $1 in #(
25053 -*)set "./$1";;
25054 esac;
25055 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25056 ???[sx]*):;;*)false;;esac;fi
25057 '\'' sh
25058 '
25059 fi
25060 as_executable_p=$as_test_x
25061
25062 # Sed expression to map a string onto a valid CPP name.
25063 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25064
25065 # Sed expression to map a string onto a valid variable name.
25066 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25067
25068
25069 exec 6>&1
25070 ## ----------------------------------- ##
25071 ## Main body of $CONFIG_STATUS script. ##
25072 ## ----------------------------------- ##
25073 _ASEOF
25074 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25075
25076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25077 # Save the log message, to keep $0 and so on meaningful, and to
25078 # report actual input values of CONFIG_FILES etc. instead of their
25079 # values after options handling.
25080 ac_log="
25081 This file was extended by GNU Classpath $as_me 0.98, which was
25082 generated by GNU Autoconf 2.64. Invocation command line was
25083
25084 CONFIG_FILES = $CONFIG_FILES
25085 CONFIG_HEADERS = $CONFIG_HEADERS
25086 CONFIG_LINKS = $CONFIG_LINKS
25087 CONFIG_COMMANDS = $CONFIG_COMMANDS
25088 $ $0 $@
25089
25090 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25091 "
25092
25093 _ACEOF
25094
25095 case $ac_config_files in *"
25096 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25097 esac
25098
25099 case $ac_config_headers in *"
25100 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25101 esac
25102
25103
25104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25105 # Files that config.status was made for.
25106 config_files="$ac_config_files"
25107 config_headers="$ac_config_headers"
25108 config_links="$ac_config_links"
25109 config_commands="$ac_config_commands"
25110
25111 _ACEOF
25112
25113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25114 ac_cs_usage="\
25115 \`$as_me' instantiates files and other configuration actions
25116 from templates according to the current configuration. Unless the files
25117 and actions are specified as TAGs, all are instantiated by default.
25118
25119 Usage: $0 [OPTION]... [TAG]...
25120
25121 -h, --help print this help, then exit
25122 -V, --version print version number and configuration settings, then exit
25123 -q, --quiet, --silent
25124 do not print progress messages
25125 -d, --debug don't remove temporary files
25126 --recheck update $as_me by reconfiguring in the same conditions
25127 --file=FILE[:TEMPLATE]
25128 instantiate the configuration file FILE
25129 --header=FILE[:TEMPLATE]
25130 instantiate the configuration header FILE
25131
25132 Configuration files:
25133 $config_files
25134
25135 Configuration headers:
25136 $config_headers
25137
25138 Configuration links:
25139 $config_links
25140
25141 Configuration commands:
25142 $config_commands
25143
25144 Report bugs to <classpath@gnu.org>.
25145 GNU Classpath home page: <http://www.gnu.org/software/classpath/>.
25146 General help using GNU software: <http://www.gnu.org/gethelp/>."
25147
25148 _ACEOF
25149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25150 ac_cs_version="\\
25151 GNU Classpath config.status 0.98
25152 configured by $0, generated by GNU Autoconf 2.64,
25153 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25154
25155 Copyright (C) 2009 Free Software Foundation, Inc.
25156 This config.status script is free software; the Free Software Foundation
25157 gives unlimited permission to copy, distribute and modify it."
25158
25159 ac_pwd='$ac_pwd'
25160 srcdir='$srcdir'
25161 INSTALL='$INSTALL'
25162 MKDIR_P='$MKDIR_P'
25163 AWK='$AWK'
25164 test -n "\$AWK" || AWK=awk
25165 _ACEOF
25166
25167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25168 # The default lists apply if the user does not specify any file.
25169 ac_need_defaults=:
25170 while test $# != 0
25171 do
25172 case $1 in
25173 --*=*)
25174 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25175 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25176 ac_shift=:
25177 ;;
25178 *)
25179 ac_option=$1
25180 ac_optarg=$2
25181 ac_shift=shift
25182 ;;
25183 esac
25184
25185 case $ac_option in
25186 # Handling of the options.
25187 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25188 ac_cs_recheck=: ;;
25189 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25190 $as_echo "$ac_cs_version"; exit ;;
25191 --debug | --debu | --deb | --de | --d | -d )
25192 debug=: ;;
25193 --file | --fil | --fi | --f )
25194 $ac_shift
25195 case $ac_optarg in
25196 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25197 esac
25198 as_fn_append CONFIG_FILES " '$ac_optarg'"
25199 ac_need_defaults=false;;
25200 --header | --heade | --head | --hea )
25201 $ac_shift
25202 case $ac_optarg in
25203 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25204 esac
25205 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25206 ac_need_defaults=false;;
25207 --he | --h)
25208 # Conflict between --help and --header
25209 as_fn_error "ambiguous option: \`$1'
25210 Try \`$0 --help' for more information.";;
25211 --help | --hel | -h )
25212 $as_echo "$ac_cs_usage"; exit ;;
25213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25214 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25215 ac_cs_silent=: ;;
25216
25217 # This is an error.
25218 -*) as_fn_error "unrecognized option: \`$1'
25219 Try \`$0 --help' for more information." ;;
25220
25221 *) as_fn_append ac_config_targets " $1"
25222 ac_need_defaults=false ;;
25223
25224 esac
25225 shift
25226 done
25227
25228 ac_configure_extra_args=
25229
25230 if $ac_cs_silent; then
25231 exec 6>/dev/null
25232 ac_configure_extra_args="$ac_configure_extra_args --silent"
25233 fi
25234
25235 _ACEOF
25236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25237 if \$ac_cs_recheck; then
25238 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25239 shift
25240 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25241 CONFIG_SHELL='$SHELL'
25242 export CONFIG_SHELL
25243 exec "\$@"
25244 fi
25245
25246 _ACEOF
25247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25248 exec 5>>config.log
25249 {
25250 echo
25251 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25252 ## Running $as_me. ##
25253 _ASBOX
25254 $as_echo "$ac_log"
25255 } >&5
25256
25257 _ACEOF
25258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25259 #
25260 # INIT-COMMANDS
25261 #
25262
25263 srcdir="$srcdir"
25264 host="$host"
25265 target="$target"
25266 with_multisubdir="$with_multisubdir"
25267 with_multisrctop="$with_multisrctop"
25268 with_target_subdir="$with_target_subdir"
25269 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25270 multi_basedir="$multi_basedir"
25271 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25272 CC="$CC"
25273 CXX="$CXX"
25274 GFORTRAN="$GFORTRAN"
25275 GCJ="$GCJ"
25276 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25277
25278
25279 # The HP-UX ksh and POSIX shell print the target directory to stdout
25280 # if CDPATH is set.
25281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25282
25283 sed_quote_subst='$sed_quote_subst'
25284 double_quote_subst='$double_quote_subst'
25285 delay_variable_subst='$delay_variable_subst'
25286 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25287 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25288 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25289 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25290 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25291 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25292 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25293 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25294 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25295 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25296 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25297 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25298 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25299 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25300 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25301 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25302 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25303 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25304 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25305 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25306 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25307 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25308 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25309 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25310 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25311 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25312 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25313 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25314 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25315 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25316 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25317 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25318 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25319 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25320 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25321 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25322 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25323 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25324 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25325 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25326 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25327 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25328 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25329 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25330 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25331 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25332 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25333 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25334 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
25335 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25336 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25337 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25338 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25339 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25340 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25341 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25342 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25343 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25344 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25345 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25346 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25347 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25348 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25349 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25350 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25351 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25352 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25353 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25354 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25355 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25356 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25357 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25358 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25359 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25360 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25361 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25362 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25363 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25364 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25365 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25366 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25367 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25368 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25369 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25370 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25371 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25372 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25373 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25374 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25375 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25376 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25377 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25378 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25379 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25380 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25381 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25382 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25383 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25384 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25385 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25386 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25387 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25388 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25389 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25390 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25391 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25392 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25393 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25394 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25395 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25396 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25397 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25398 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25399 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25400 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25401 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25402 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25403 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25404 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25405 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25406 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25407 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25408 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25409 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25410 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25411 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25412 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25413 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25414 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25415 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25416 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25417 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25418 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25419 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25420 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25421 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25422 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25423 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25424 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25425 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25426 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25427 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25428 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25429 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25430 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25431 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25432 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25433 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25434 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25435 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25436 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25437 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25438 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25439 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25440 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25441 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25442 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25443 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25444 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25445 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25446 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25447 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25448 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25449 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25450 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25451 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25452 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25453 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25454 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25455 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25456 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25457 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25458 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25459 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25460 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25461
25462 LTCC='$LTCC'
25463 LTCFLAGS='$LTCFLAGS'
25464 compiler='$compiler_DEFAULT'
25465
25466 # A function that is used when there is no print builtin or printf.
25467 func_fallback_echo ()
25468 {
25469 eval 'cat <<_LTECHO_EOF
25470 \$1
25471 _LTECHO_EOF'
25472 }
25473
25474 # Quote evaled strings.
25475 for var in SHELL \
25476 ECHO \
25477 SED \
25478 GREP \
25479 EGREP \
25480 FGREP \
25481 LD \
25482 NM \
25483 LN_S \
25484 lt_SP2NL \
25485 lt_NL2SP \
25486 reload_flag \
25487 OBJDUMP \
25488 deplibs_check_method \
25489 file_magic_cmd \
25490 AR \
25491 AR_FLAGS \
25492 STRIP \
25493 RANLIB \
25494 CC \
25495 CFLAGS \
25496 compiler \
25497 lt_cv_sys_global_symbol_pipe \
25498 lt_cv_sys_global_symbol_to_cdecl \
25499 lt_cv_sys_global_symbol_to_c_name_address \
25500 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25501 lt_prog_compiler_no_builtin_flag \
25502 lt_prog_compiler_wl \
25503 lt_prog_compiler_pic \
25504 lt_prog_compiler_static \
25505 lt_cv_prog_compiler_c_o \
25506 need_locks \
25507 DSYMUTIL \
25508 NMEDIT \
25509 LIPO \
25510 OTOOL \
25511 OTOOL64 \
25512 shrext_cmds \
25513 export_dynamic_flag_spec \
25514 whole_archive_flag_spec \
25515 compiler_needs_object \
25516 with_gnu_ld \
25517 allow_undefined_flag \
25518 no_undefined_flag \
25519 hardcode_libdir_flag_spec \
25520 hardcode_libdir_flag_spec_ld \
25521 hardcode_libdir_separator \
25522 fix_srcfile_path \
25523 exclude_expsyms \
25524 include_expsyms \
25525 file_list_spec \
25526 variables_saved_for_relink \
25527 libname_spec \
25528 library_names_spec \
25529 soname_spec \
25530 install_override_mode \
25531 finish_eval \
25532 old_striplib \
25533 striplib \
25534 compiler_lib_search_dirs \
25535 predep_objects \
25536 postdep_objects \
25537 predeps \
25538 postdeps \
25539 compiler_lib_search_path \
25540 LD_CXX \
25541 reload_flag_CXX \
25542 compiler_CXX \
25543 lt_prog_compiler_no_builtin_flag_CXX \
25544 lt_prog_compiler_wl_CXX \
25545 lt_prog_compiler_pic_CXX \
25546 lt_prog_compiler_static_CXX \
25547 lt_cv_prog_compiler_c_o_CXX \
25548 export_dynamic_flag_spec_CXX \
25549 whole_archive_flag_spec_CXX \
25550 compiler_needs_object_CXX \
25551 with_gnu_ld_CXX \
25552 allow_undefined_flag_CXX \
25553 no_undefined_flag_CXX \
25554 hardcode_libdir_flag_spec_CXX \
25555 hardcode_libdir_flag_spec_ld_CXX \
25556 hardcode_libdir_separator_CXX \
25557 fix_srcfile_path_CXX \
25558 exclude_expsyms_CXX \
25559 include_expsyms_CXX \
25560 file_list_spec_CXX \
25561 compiler_lib_search_dirs_CXX \
25562 predep_objects_CXX \
25563 postdep_objects_CXX \
25564 predeps_CXX \
25565 postdeps_CXX \
25566 compiler_lib_search_path_CXX; do
25567 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25568 *[\\\\\\\`\\"\\\$]*)
25569 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25570 ;;
25571 *)
25572 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25573 ;;
25574 esac
25575 done
25576
25577 # Double-quote double-evaled strings.
25578 for var in reload_cmds \
25579 old_postinstall_cmds \
25580 old_postuninstall_cmds \
25581 old_archive_cmds \
25582 extract_expsyms_cmds \
25583 old_archive_from_new_cmds \
25584 old_archive_from_expsyms_cmds \
25585 archive_cmds \
25586 archive_expsym_cmds \
25587 module_cmds \
25588 module_expsym_cmds \
25589 export_symbols_cmds \
25590 prelink_cmds \
25591 postinstall_cmds \
25592 postuninstall_cmds \
25593 finish_cmds \
25594 sys_lib_search_path_spec \
25595 sys_lib_dlsearch_path_spec \
25596 reload_cmds_CXX \
25597 old_archive_cmds_CXX \
25598 old_archive_from_new_cmds_CXX \
25599 old_archive_from_expsyms_cmds_CXX \
25600 archive_cmds_CXX \
25601 archive_expsym_cmds_CXX \
25602 module_cmds_CXX \
25603 module_expsym_cmds_CXX \
25604 export_symbols_cmds_CXX \
25605 prelink_cmds_CXX; do
25606 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25607 *[\\\\\\\`\\"\\\$]*)
25608 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25609 ;;
25610 *)
25611 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25612 ;;
25613 esac
25614 done
25615
25616 ac_aux_dir='$ac_aux_dir'
25617 xsi_shell='$xsi_shell'
25618 lt_shell_append='$lt_shell_append'
25619
25620 # See if we are running on zsh, and set the options which allow our
25621 # commands through without removal of \ escapes INIT.
25622 if test -n "\${ZSH_VERSION+set}" ; then
25623 setopt NO_GLOB_SUBST
25624 fi
25625
25626
25627 PACKAGE='$PACKAGE'
25628 VERSION='$VERSION'
25629 TIMESTAMP='$TIMESTAMP'
25630 RM='$RM'
25631 ofile='$ofile'
25632
25633
25634
25635
25636
25637 # variables for create stdint.h replacement
25638 PACKAGE="$PACKAGE"
25639 VERSION="$VERSION"
25640 ac_stdint_h="$ac_stdint_h"
25641 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
25642 ac_cv_stdint_message="$ac_cv_stdint_message"
25643 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
25644 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
25645 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
25646 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
25647 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
25648 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
25649 ac_cv_char_data_model="$ac_cv_char_data_model"
25650 ac_cv_long_data_model="$ac_cv_long_data_model"
25651 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
25652 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
25653 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
25654
25655
25656 _ACEOF
25657
25658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25659
25660 # Handling of arguments.
25661 for ac_config_target in $ac_config_targets
25662 do
25663 case $ac_config_target in
25664 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25665 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25666 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25667 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25668 "lib/mkcollections.pl") CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
25669 "mkcollections.pl") CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
25670 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
25671 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
25672 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25673 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25674 "doc/api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
25675 "external/Makefile") CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
25676 "external/sax/Makefile") CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
25677 "external/w3c_dom/Makefile") CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
25678 "external/relaxngDatatype/Makefile") CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
25679 "external/jsr166/Makefile") CONFIG_FILES="$CONFIG_FILES external/jsr166/Makefile" ;;
25680 "gnu/classpath/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
25681 "gnu/java/security/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/java/security/Configuration.java" ;;
25682 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25683 "native/Makefile") CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
25684 "native/fdlibm/Makefile") CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
25685 "native/jawt/Makefile") CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
25686 "native/jni/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
25687 "native/jni/classpath/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
25688 "native/jni/java-io/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
25689 "native/jni/java-lang/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
25690 "native/jni/java-math/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-math/Makefile" ;;
25691 "native/jni/java-net/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
25692 "native/jni/java-nio/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
25693 "native/jni/java-util/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
25694 "native/jni/gtk-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
25695 "native/jni/gconf-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gconf-peer/Makefile" ;;
25696 "native/jni/gstreamer-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gstreamer-peer/Makefile" ;;
25697 "native/jni/qt-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
25698 "native/jni/xmlj/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
25699 "native/jni/midi-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
25700 "native/jni/midi-dssi/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
25701 "native/jni/native-lib/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/native-lib/Makefile" ;;
25702 "native/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES native/plugin/Makefile" ;;
25703 "resource/Makefile") CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
25704 "resource/META-INF/services/java.util.prefs.PreferencesFactory") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/java.util.prefs.PreferencesFactory" ;;
25705 "resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader" ;;
25706 "resource/META-INF/services/javax.sound.sampled.spi.MixerProvider") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.MixerProvider" ;;
25707 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
25708 "scripts/classpath.spec") CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
25709 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25710 "lib/gen-classlist.sh") CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
25711 "lib/copy-vmresources.sh") CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
25712 "scripts/check_jni_methods.sh") CONFIG_FILES="$CONFIG_FILES scripts/check_jni_methods.sh" ;;
25713 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
25714 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
25715 "examples/Makefile.jawt") CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
25716 "examples/Makefile.java2d") CONFIG_FILES="$CONFIG_FILES examples/Makefile.java2d" ;;
25717 "tools/gappletviewer") CONFIG_FILES="$CONFIG_FILES tools/gappletviewer" ;;
25718 "tools/gjarsigner") CONFIG_FILES="$CONFIG_FILES tools/gjarsigner" ;;
25719 "tools/gkeytool") CONFIG_FILES="$CONFIG_FILES tools/gkeytool" ;;
25720 "tools/gjar") CONFIG_FILES="$CONFIG_FILES tools/gjar" ;;
25721 "tools/gnative2ascii") CONFIG_FILES="$CONFIG_FILES tools/gnative2ascii" ;;
25722 "tools/gserialver") CONFIG_FILES="$CONFIG_FILES tools/gserialver" ;;
25723 "tools/grmiregistry") CONFIG_FILES="$CONFIG_FILES tools/grmiregistry" ;;
25724 "tools/gtnameserv") CONFIG_FILES="$CONFIG_FILES tools/gtnameserv" ;;
25725 "tools/gorbd") CONFIG_FILES="$CONFIG_FILES tools/gorbd" ;;
25726 "tools/grmid") CONFIG_FILES="$CONFIG_FILES tools/grmid" ;;
25727 "tools/grmic") CONFIG_FILES="$CONFIG_FILES tools/grmic" ;;
25728 "tools/gjavah") CONFIG_FILES="$CONFIG_FILES tools/gjavah" ;;
25729 "gappletviewer") CONFIG_COMMANDS="$CONFIG_COMMANDS gappletviewer" ;;
25730 "gjarsigner") CONFIG_COMMANDS="$CONFIG_COMMANDS gjarsigner" ;;
25731 "gkeytool") CONFIG_COMMANDS="$CONFIG_COMMANDS gkeytool" ;;
25732 "gjar") CONFIG_COMMANDS="$CONFIG_COMMANDS gjar" ;;
25733 "gnative2ascii") CONFIG_COMMANDS="$CONFIG_COMMANDS gnative2ascii" ;;
25734 "gserialver") CONFIG_COMMANDS="$CONFIG_COMMANDS gserialver" ;;
25735 "grmiregistry") CONFIG_COMMANDS="$CONFIG_COMMANDS grmiregistry" ;;
25736 "gtnameserv") CONFIG_COMMANDS="$CONFIG_COMMANDS gtnameserv" ;;
25737 "gorbd") CONFIG_COMMANDS="$CONFIG_COMMANDS gorbd" ;;
25738 "grmid") CONFIG_COMMANDS="$CONFIG_COMMANDS grmid" ;;
25739 "grmic") CONFIG_COMMANDS="$CONFIG_COMMANDS grmic" ;;
25740 "gjavah") CONFIG_COMMANDS="$CONFIG_COMMANDS gjavah" ;;
25741 "tools/gjdoc") CONFIG_FILES="$CONFIG_FILES tools/gjdoc" ;;
25742 "gjdoc") CONFIG_COMMANDS="$CONFIG_COMMANDS gjdoc" ;;
25743 "gen-classlist") CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
25744 "copy-vmresources") CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
25745
25746 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25747 esac
25748 done
25749
25750
25751 # If the user did not use the arguments to specify the items to instantiate,
25752 # then the envvar interface is used. Set only those that are not.
25753 # We use the long form for the default assignment because of an extremely
25754 # bizarre bug on SunOS 4.1.3.
25755 if $ac_need_defaults; then
25756 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25757 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25758 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25759 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25760 fi
25761
25762 # Have a temporary directory for convenience. Make it in the build tree
25763 # simply because there is no reason against having it here, and in addition,
25764 # creating and moving files from /tmp can sometimes cause problems.
25765 # Hook for its removal unless debugging.
25766 # Note that there is a small window in which the directory will not be cleaned:
25767 # after its creation but before its name has been assigned to `$tmp'.
25768 $debug ||
25769 {
25770 tmp=
25771 trap 'exit_status=$?
25772 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25773 ' 0
25774 trap 'as_fn_exit 1' 1 2 13 15
25775 }
25776 # Create a (secure) tmp directory for tmp files.
25777
25778 {
25779 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25780 test -n "$tmp" && test -d "$tmp"
25781 } ||
25782 {
25783 tmp=./conf$$-$RANDOM
25784 (umask 077 && mkdir "$tmp")
25785 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25786
25787 # Set up the scripts for CONFIG_FILES section.
25788 # No need to generate them if there are no CONFIG_FILES.
25789 # This happens for instance with `./config.status config.h'.
25790 if test -n "$CONFIG_FILES"; then
25791
25792
25793 ac_cr=`echo X | tr X '\015'`
25794 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25795 # But we know of no other shell where ac_cr would be empty at this
25796 # point, so we can use a bashism as a fallback.
25797 if test "x$ac_cr" = x; then
25798 eval ac_cr=\$\'\\r\'
25799 fi
25800 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25801 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25802 ac_cs_awk_cr='\r'
25803 else
25804 ac_cs_awk_cr=$ac_cr
25805 fi
25806
25807 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25808 _ACEOF
25809
25810
25811 {
25812 echo "cat >conf$$subs.awk <<_ACEOF" &&
25813 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25814 echo "_ACEOF"
25815 } >conf$$subs.sh ||
25816 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25817 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25818 ac_delim='%!_!# '
25819 for ac_last_try in false false false false false :; do
25820 . ./conf$$subs.sh ||
25821 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25822
25823 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25824 if test $ac_delim_n = $ac_delim_num; then
25825 break
25826 elif $ac_last_try; then
25827 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25828 else
25829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25830 fi
25831 done
25832 rm -f conf$$subs.sh
25833
25834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25835 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25836 _ACEOF
25837 sed -n '
25838 h
25839 s/^/S["/; s/!.*/"]=/
25840 p
25841 g
25842 s/^[^!]*!//
25843 :repl
25844 t repl
25845 s/'"$ac_delim"'$//
25846 t delim
25847 :nl
25848 h
25849 s/\(.\{148\}\).*/\1/
25850 t more1
25851 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25852 p
25853 n
25854 b repl
25855 :more1
25856 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25857 p
25858 g
25859 s/.\{148\}//
25860 t nl
25861 :delim
25862 h
25863 s/\(.\{148\}\).*/\1/
25864 t more2
25865 s/["\\]/\\&/g; s/^/"/; s/$/"/
25866 p
25867 b
25868 :more2
25869 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25870 p
25871 g
25872 s/.\{148\}//
25873 t delim
25874 ' <conf$$subs.awk | sed '
25875 /^[^""]/{
25876 N
25877 s/\n//
25878 }
25879 ' >>$CONFIG_STATUS || ac_write_fail=1
25880 rm -f conf$$subs.awk
25881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25882 _ACAWK
25883 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25884 for (key in S) S_is_set[key] = 1
25885 FS = "\a"
25886
25887 }
25888 {
25889 line = $ 0
25890 nfields = split(line, field, "@")
25891 substed = 0
25892 len = length(field[1])
25893 for (i = 2; i < nfields; i++) {
25894 key = field[i]
25895 keylen = length(key)
25896 if (S_is_set[key]) {
25897 value = S[key]
25898 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25899 len += length(value) + length(field[++i])
25900 substed = 1
25901 } else
25902 len += 1 + keylen
25903 }
25904
25905 print line
25906 }
25907
25908 _ACAWK
25909 _ACEOF
25910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25911 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25912 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25913 else
25914 cat
25915 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25916 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25917 _ACEOF
25918
25919 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25920 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25921 # trailing colons and then remove the whole line if VPATH becomes empty
25922 # (actually we leave an empty line to preserve line numbers).
25923 if test "x$srcdir" = x.; then
25924 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25925 s/:*\$(srcdir):*/:/
25926 s/:*\${srcdir}:*/:/
25927 s/:*@srcdir@:*/:/
25928 s/^\([^=]*=[ ]*\):*/\1/
25929 s/:*$//
25930 s/^[^=]*=[ ]*$//
25931 }'
25932 fi
25933
25934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25935 fi # test -n "$CONFIG_FILES"
25936
25937 # Set up the scripts for CONFIG_HEADERS section.
25938 # No need to generate them if there are no CONFIG_HEADERS.
25939 # This happens for instance with `./config.status Makefile'.
25940 if test -n "$CONFIG_HEADERS"; then
25941 cat >"$tmp/defines.awk" <<\_ACAWK ||
25942 BEGIN {
25943 _ACEOF
25944
25945 # Transform confdefs.h into an awk script `defines.awk', embedded as
25946 # here-document in config.status, that substitutes the proper values into
25947 # config.h.in to produce config.h.
25948
25949 # Create a delimiter string that does not exist in confdefs.h, to ease
25950 # handling of long lines.
25951 ac_delim='%!_!# '
25952 for ac_last_try in false false :; do
25953 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25954 if test -z "$ac_t"; then
25955 break
25956 elif $ac_last_try; then
25957 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25958 else
25959 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25960 fi
25961 done
25962
25963 # For the awk script, D is an array of macro values keyed by name,
25964 # likewise P contains macro parameters if any. Preserve backslash
25965 # newline sequences.
25966
25967 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25968 sed -n '
25969 s/.\{148\}/&'"$ac_delim"'/g
25970 t rset
25971 :rset
25972 s/^[ ]*#[ ]*define[ ][ ]*/ /
25973 t def
25974 d
25975 :def
25976 s/\\$//
25977 t bsnl
25978 s/["\\]/\\&/g
25979 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25980 D["\1"]=" \3"/p
25981 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25982 d
25983 :bsnl
25984 s/["\\]/\\&/g
25985 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25986 D["\1"]=" \3\\\\\\n"\\/p
25987 t cont
25988 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25989 t cont
25990 d
25991 :cont
25992 n
25993 s/.\{148\}/&'"$ac_delim"'/g
25994 t clear
25995 :clear
25996 s/\\$//
25997 t bsnlc
25998 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25999 d
26000 :bsnlc
26001 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26002 b cont
26003 ' <confdefs.h | sed '
26004 s/'"$ac_delim"'/"\\\
26005 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26006
26007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26008 for (key in D) D_is_set[key] = 1
26009 FS = "\a"
26010 }
26011 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26012 line = \$ 0
26013 split(line, arg, " ")
26014 if (arg[1] == "#") {
26015 defundef = arg[2]
26016 mac1 = arg[3]
26017 } else {
26018 defundef = substr(arg[1], 2)
26019 mac1 = arg[2]
26020 }
26021 split(mac1, mac2, "(") #)
26022 macro = mac2[1]
26023 prefix = substr(line, 1, index(line, defundef) - 1)
26024 if (D_is_set[macro]) {
26025 # Preserve the white space surrounding the "#".
26026 print prefix "define", macro P[macro] D[macro]
26027 next
26028 } else {
26029 # Replace #undef with comments. This is necessary, for example,
26030 # in the case of _POSIX_SOURCE, which is predefined and required
26031 # on some systems where configure will not decide to define it.
26032 if (defundef == "undef") {
26033 print "/*", prefix defundef, macro, "*/"
26034 next
26035 }
26036 }
26037 }
26038 { print }
26039 _ACAWK
26040 _ACEOF
26041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26042 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26043 fi # test -n "$CONFIG_HEADERS"
26044
26045
26046 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26047 shift
26048 for ac_tag
26049 do
26050 case $ac_tag in
26051 :[FHLC]) ac_mode=$ac_tag; continue;;
26052 esac
26053 case $ac_mode$ac_tag in
26054 :[FHL]*:*);;
26055 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26056 :[FH]-) ac_tag=-:-;;
26057 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26058 esac
26059 ac_save_IFS=$IFS
26060 IFS=:
26061 set x $ac_tag
26062 IFS=$ac_save_IFS
26063 shift
26064 ac_file=$1
26065 shift
26066
26067 case $ac_mode in
26068 :L) ac_source=$1;;
26069 :[FH])
26070 ac_file_inputs=
26071 for ac_f
26072 do
26073 case $ac_f in
26074 -) ac_f="$tmp/stdin";;
26075 *) # Look for the file first in the build tree, then in the source tree
26076 # (if the path is not absolute). The absolute path cannot be DOS-style,
26077 # because $ac_f cannot contain `:'.
26078 test -f "$ac_f" ||
26079 case $ac_f in
26080 [\\/$]*) false;;
26081 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26082 esac ||
26083 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26084 esac
26085 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26086 as_fn_append ac_file_inputs " '$ac_f'"
26087 done
26088
26089 # Let's still pretend it is `configure' which instantiates (i.e., don't
26090 # use $as_me), people would be surprised to read:
26091 # /* config.h. Generated by config.status. */
26092 configure_input='Generated from '`
26093 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26094 `' by configure.'
26095 if test x"$ac_file" != x-; then
26096 configure_input="$ac_file. $configure_input"
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26098 $as_echo "$as_me: creating $ac_file" >&6;}
26099 fi
26100 # Neutralize special characters interpreted by sed in replacement strings.
26101 case $configure_input in #(
26102 *\&* | *\|* | *\\* )
26103 ac_sed_conf_input=`$as_echo "$configure_input" |
26104 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26105 *) ac_sed_conf_input=$configure_input;;
26106 esac
26107
26108 case $ac_tag in
26109 *:-:* | *:-) cat >"$tmp/stdin" \
26110 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26111 esac
26112 ;;
26113 esac
26114
26115 ac_dir=`$as_dirname -- "$ac_file" ||
26116 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26117 X"$ac_file" : 'X\(//\)[^/]' \| \
26118 X"$ac_file" : 'X\(//\)$' \| \
26119 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26120 $as_echo X"$ac_file" |
26121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26122 s//\1/
26123 q
26124 }
26125 /^X\(\/\/\)[^/].*/{
26126 s//\1/
26127 q
26128 }
26129 /^X\(\/\/\)$/{
26130 s//\1/
26131 q
26132 }
26133 /^X\(\/\).*/{
26134 s//\1/
26135 q
26136 }
26137 s/.*/./; q'`
26138 as_dir="$ac_dir"; as_fn_mkdir_p
26139 ac_builddir=.
26140
26141 case "$ac_dir" in
26142 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26143 *)
26144 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26145 # A ".." for each directory in $ac_dir_suffix.
26146 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26147 case $ac_top_builddir_sub in
26148 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26149 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26150 esac ;;
26151 esac
26152 ac_abs_top_builddir=$ac_pwd
26153 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26154 # for backward compatibility:
26155 ac_top_builddir=$ac_top_build_prefix
26156
26157 case $srcdir in
26158 .) # We are building in place.
26159 ac_srcdir=.
26160 ac_top_srcdir=$ac_top_builddir_sub
26161 ac_abs_top_srcdir=$ac_pwd ;;
26162 [\\/]* | ?:[\\/]* ) # Absolute name.
26163 ac_srcdir=$srcdir$ac_dir_suffix;
26164 ac_top_srcdir=$srcdir
26165 ac_abs_top_srcdir=$srcdir ;;
26166 *) # Relative name.
26167 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26168 ac_top_srcdir=$ac_top_build_prefix$srcdir
26169 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26170 esac
26171 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26172
26173
26174 case $ac_mode in
26175 :F)
26176 #
26177 # CONFIG_FILE
26178 #
26179
26180 case $INSTALL in
26181 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26182 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26183 esac
26184 ac_MKDIR_P=$MKDIR_P
26185 case $MKDIR_P in
26186 [\\/$]* | ?:[\\/]* ) ;;
26187 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26188 esac
26189 _ACEOF
26190
26191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26192 # If the template does not know about datarootdir, expand it.
26193 # FIXME: This hack should be removed a few years after 2.60.
26194 ac_datarootdir_hack=; ac_datarootdir_seen=
26195 ac_sed_dataroot='
26196 /datarootdir/ {
26197 p
26198 q
26199 }
26200 /@datadir@/p
26201 /@docdir@/p
26202 /@infodir@/p
26203 /@localedir@/p
26204 /@mandir@/p'
26205 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26206 *datarootdir*) ac_datarootdir_seen=yes;;
26207 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26209 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26210 _ACEOF
26211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26212 ac_datarootdir_hack='
26213 s&@datadir@&$datadir&g
26214 s&@docdir@&$docdir&g
26215 s&@infodir@&$infodir&g
26216 s&@localedir@&$localedir&g
26217 s&@mandir@&$mandir&g
26218 s&\\\${datarootdir}&$datarootdir&g' ;;
26219 esac
26220 _ACEOF
26221
26222 # Neutralize VPATH when `$srcdir' = `.'.
26223 # Shell code in configure.ac might set extrasub.
26224 # FIXME: do we really want to maintain this feature?
26225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26226 ac_sed_extra="$ac_vpsub
26227 $extrasub
26228 _ACEOF
26229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26230 :t
26231 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26232 s|@configure_input@|$ac_sed_conf_input|;t t
26233 s&@top_builddir@&$ac_top_builddir_sub&;t t
26234 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26235 s&@srcdir@&$ac_srcdir&;t t
26236 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26237 s&@top_srcdir@&$ac_top_srcdir&;t t
26238 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26239 s&@builddir@&$ac_builddir&;t t
26240 s&@abs_builddir@&$ac_abs_builddir&;t t
26241 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26242 s&@INSTALL@&$ac_INSTALL&;t t
26243 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26244 $ac_datarootdir_hack
26245 "
26246 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26247 || as_fn_error "could not create $ac_file" "$LINENO" 5
26248
26249 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26250 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26251 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26253 which seems to be undefined. Please make sure it is defined." >&5
26254 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26255 which seems to be undefined. Please make sure it is defined." >&2;}
26256
26257 rm -f "$tmp/stdin"
26258 case $ac_file in
26259 -) cat "$tmp/out" && rm -f "$tmp/out";;
26260 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26261 esac \
26262 || as_fn_error "could not create $ac_file" "$LINENO" 5
26263 ;;
26264 :H)
26265 #
26266 # CONFIG_HEADER
26267 #
26268 if test x"$ac_file" != x-; then
26269 {
26270 $as_echo "/* $configure_input */" \
26271 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26272 } >"$tmp/config.h" \
26273 || as_fn_error "could not create $ac_file" "$LINENO" 5
26274 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26276 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26277 else
26278 rm -f "$ac_file"
26279 mv "$tmp/config.h" "$ac_file" \
26280 || as_fn_error "could not create $ac_file" "$LINENO" 5
26281 fi
26282 else
26283 $as_echo "/* $configure_input */" \
26284 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26285 || as_fn_error "could not create -" "$LINENO" 5
26286 fi
26287 # Compute "$ac_file"'s index in $config_headers.
26288 _am_arg="$ac_file"
26289 _am_stamp_count=1
26290 for _am_header in $config_headers :; do
26291 case $_am_header in
26292 $_am_arg | $_am_arg:* )
26293 break ;;
26294 * )
26295 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26296 esac
26297 done
26298 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26299 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26300 X"$_am_arg" : 'X\(//\)[^/]' \| \
26301 X"$_am_arg" : 'X\(//\)$' \| \
26302 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26303 $as_echo X"$_am_arg" |
26304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26305 s//\1/
26306 q
26307 }
26308 /^X\(\/\/\)[^/].*/{
26309 s//\1/
26310 q
26311 }
26312 /^X\(\/\/\)$/{
26313 s//\1/
26314 q
26315 }
26316 /^X\(\/\).*/{
26317 s//\1/
26318 q
26319 }
26320 s/.*/./; q'`/stamp-h$_am_stamp_count
26321 ;;
26322 :L)
26323 #
26324 # CONFIG_LINK
26325 #
26326
26327 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26328 :
26329 else
26330 # Prefer the file from the source tree if names are identical.
26331 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26332 ac_source=$srcdir/$ac_source
26333 fi
26334
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26336 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26337
26338 if test ! -r "$ac_source"; then
26339 as_fn_error "$ac_source: file not found" "$LINENO" 5
26340 fi
26341 rm -f "$ac_file"
26342
26343 # Try a relative symlink, then a hard link, then a copy.
26344 case $srcdir in
26345 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26346 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26347 esac
26348 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26349 ln "$ac_source" "$ac_file" 2>/dev/null ||
26350 cp -p "$ac_source" "$ac_file" ||
26351 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26352 fi
26353 ;;
26354 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26355 $as_echo "$as_me: executing $ac_file commands" >&6;}
26356 ;;
26357 esac
26358
26359
26360 case $ac_file$ac_mode in
26361 "default-1":C)
26362 # Only add multilib support code if we just rebuilt the top-level
26363 # Makefile.
26364 case " $CONFIG_FILES " in
26365 *" Makefile "*)
26366 ac_file=Makefile . ${multi_basedir}/config-ml.in
26367 ;;
26368 esac ;;
26369 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26370 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26371 # are listed without --file. Let's play safe and only enable the eval
26372 # if we detect the quoting.
26373 case $CONFIG_FILES in
26374 *\'*) eval set x "$CONFIG_FILES" ;;
26375 *) set x $CONFIG_FILES ;;
26376 esac
26377 shift
26378 for mf
26379 do
26380 # Strip MF so we end up with the name of the file.
26381 mf=`echo "$mf" | sed -e 's/:.*$//'`
26382 # Check whether this is an Automake generated Makefile or not.
26383 # We used to match only the files named `Makefile.in', but
26384 # some people rename them; so instead we look at the file content.
26385 # Grep'ing the first line is not enough: some people post-process
26386 # each Makefile.in and add a new line on top of each file to say so.
26387 # Grep'ing the whole file is not good either: AIX grep has a line
26388 # limit of 2048, but all sed's we know have understand at least 4000.
26389 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26390 dirpart=`$as_dirname -- "$mf" ||
26391 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26392 X"$mf" : 'X\(//\)[^/]' \| \
26393 X"$mf" : 'X\(//\)$' \| \
26394 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26395 $as_echo X"$mf" |
26396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26397 s//\1/
26398 q
26399 }
26400 /^X\(\/\/\)[^/].*/{
26401 s//\1/
26402 q
26403 }
26404 /^X\(\/\/\)$/{
26405 s//\1/
26406 q
26407 }
26408 /^X\(\/\).*/{
26409 s//\1/
26410 q
26411 }
26412 s/.*/./; q'`
26413 else
26414 continue
26415 fi
26416 # Extract the definition of DEPDIR, am__include, and am__quote
26417 # from the Makefile without running `make'.
26418 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26419 test -z "$DEPDIR" && continue
26420 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26421 test -z "am__include" && continue
26422 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26423 # When using ansi2knr, U may be empty or an underscore; expand it
26424 U=`sed -n 's/^U = //p' < "$mf"`
26425 # Find all dependency output files, they are included files with
26426 # $(DEPDIR) in their names. We invoke sed twice because it is the
26427 # simplest approach to changing $(DEPDIR) to its actual value in the
26428 # expansion.
26429 for file in `sed -n "
26430 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26431 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26432 # Make sure the directory exists.
26433 test -f "$dirpart/$file" && continue
26434 fdir=`$as_dirname -- "$file" ||
26435 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26436 X"$file" : 'X\(//\)[^/]' \| \
26437 X"$file" : 'X\(//\)$' \| \
26438 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26439 $as_echo X"$file" |
26440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26441 s//\1/
26442 q
26443 }
26444 /^X\(\/\/\)[^/].*/{
26445 s//\1/
26446 q
26447 }
26448 /^X\(\/\/\)$/{
26449 s//\1/
26450 q
26451 }
26452 /^X\(\/\).*/{
26453 s//\1/
26454 q
26455 }
26456 s/.*/./; q'`
26457 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26458 # echo "creating $dirpart/$file"
26459 echo '# dummy' > "$dirpart/$file"
26460 done
26461 done
26462 }
26463 ;;
26464 "libtool":C)
26465
26466 # See if we are running on zsh, and set the options which allow our
26467 # commands through without removal of \ escapes.
26468 if test -n "${ZSH_VERSION+set}" ; then
26469 setopt NO_GLOB_SUBST
26470 fi
26471
26472 cfgfile="${ofile}T"
26473 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26474 $RM "$cfgfile"
26475
26476 cat <<_LT_EOF >> "$cfgfile"
26477 #! $SHELL
26478
26479 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26480 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26481 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26482 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26483 #
26484 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26485 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
26486 # Written by Gordon Matzigkeit, 1996
26487 #
26488 # This file is part of GNU Libtool.
26489 #
26490 # GNU Libtool is free software; you can redistribute it and/or
26491 # modify it under the terms of the GNU General Public License as
26492 # published by the Free Software Foundation; either version 2 of
26493 # the License, or (at your option) any later version.
26494 #
26495 # As a special exception to the GNU General Public License,
26496 # if you distribute this file as part of a program or library that
26497 # is built using GNU Libtool, you may include this file under the
26498 # same distribution terms that you use for the rest of that program.
26499 #
26500 # GNU Libtool is distributed in the hope that it will be useful,
26501 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26502 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26503 # GNU General Public License for more details.
26504 #
26505 # You should have received a copy of the GNU General Public License
26506 # along with GNU Libtool; see the file COPYING. If not, a copy
26507 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26508 # obtained by writing to the Free Software Foundation, Inc.,
26509 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26510
26511
26512 # The names of the tagged configurations supported by this script.
26513 available_tags="CXX "
26514
26515 # ### BEGIN LIBTOOL CONFIG
26516
26517 # Whether or not to build static libraries.
26518 build_old_libs=$enable_static
26519
26520 # Which release of libtool.m4 was used?
26521 macro_version=$macro_version
26522 macro_revision=$macro_revision
26523
26524 # Whether or not to build shared libraries.
26525 build_libtool_libs=$enable_shared
26526
26527 # What type of objects to build.
26528 pic_mode=$pic_mode
26529
26530 # Whether or not to optimize for fast installation.
26531 fast_install=$enable_fast_install
26532
26533 # Shell to use when invoking shell scripts.
26534 SHELL=$lt_SHELL
26535
26536 # An echo program that protects backslashes.
26537 ECHO=$lt_ECHO
26538
26539 # The host system.
26540 host_alias=$host_alias
26541 host=$host
26542 host_os=$host_os
26543
26544 # The build system.
26545 build_alias=$build_alias
26546 build=$build
26547 build_os=$build_os
26548
26549 # A sed program that does not truncate output.
26550 SED=$lt_SED
26551
26552 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26553 Xsed="\$SED -e 1s/^X//"
26554
26555 # A grep program that handles long lines.
26556 GREP=$lt_GREP
26557
26558 # An ERE matcher.
26559 EGREP=$lt_EGREP
26560
26561 # A literal string matcher.
26562 FGREP=$lt_FGREP
26563
26564 # A BSD- or MS-compatible name lister.
26565 NM=$lt_NM
26566
26567 # Whether we need soft or hard links.
26568 LN_S=$lt_LN_S
26569
26570 # What is the maximum length of a command?
26571 max_cmd_len=$max_cmd_len
26572
26573 # Object file suffix (normally "o").
26574 objext=$ac_objext
26575
26576 # Executable file suffix (normally "").
26577 exeext=$exeext
26578
26579 # whether the shell understands "unset".
26580 lt_unset=$lt_unset
26581
26582 # turn spaces into newlines.
26583 SP2NL=$lt_lt_SP2NL
26584
26585 # turn newlines into spaces.
26586 NL2SP=$lt_lt_NL2SP
26587
26588 # An object symbol dumper.
26589 OBJDUMP=$lt_OBJDUMP
26590
26591 # Method to check whether dependent libraries are shared objects.
26592 deplibs_check_method=$lt_deplibs_check_method
26593
26594 # Command to use when deplibs_check_method == "file_magic".
26595 file_magic_cmd=$lt_file_magic_cmd
26596
26597 # The archiver.
26598 AR=$lt_AR
26599 AR_FLAGS=$lt_AR_FLAGS
26600
26601 # A symbol stripping program.
26602 STRIP=$lt_STRIP
26603
26604 # Commands used to install an old-style archive.
26605 RANLIB=$lt_RANLIB
26606 old_postinstall_cmds=$lt_old_postinstall_cmds
26607 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26608
26609 # Whether to use a lock for old archive extraction.
26610 lock_old_archive_extraction=$lock_old_archive_extraction
26611
26612 # A C compiler.
26613 LTCC=$lt_CC
26614
26615 # LTCC compiler flags.
26616 LTCFLAGS=$lt_CFLAGS
26617
26618 # Take the output of nm and produce a listing of raw symbols and C names.
26619 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26620
26621 # Transform the output of nm in a proper C declaration.
26622 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26623
26624 # Transform the output of nm in a C name address pair.
26625 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26626
26627 # Transform the output of nm in a C name address pair when lib prefix is needed.
26628 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26629
26630 # The name of the directory that contains temporary libtool files.
26631 objdir=$objdir
26632
26633 # Used to examine libraries when file_magic_cmd begins with "file".
26634 MAGIC_CMD=$MAGIC_CMD
26635
26636 # Must we lock files when doing compilation?
26637 need_locks=$lt_need_locks
26638
26639 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26640 DSYMUTIL=$lt_DSYMUTIL
26641
26642 # Tool to change global to local symbols on Mac OS X.
26643 NMEDIT=$lt_NMEDIT
26644
26645 # Tool to manipulate fat objects and archives on Mac OS X.
26646 LIPO=$lt_LIPO
26647
26648 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26649 OTOOL=$lt_OTOOL
26650
26651 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26652 OTOOL64=$lt_OTOOL64
26653
26654 # Old archive suffix (normally "a").
26655 libext=$libext
26656
26657 # Shared library suffix (normally ".so").
26658 shrext_cmds=$lt_shrext_cmds
26659
26660 # The commands to extract the exported symbol list from a shared archive.
26661 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26662
26663 # Variables whose values should be saved in libtool wrapper scripts and
26664 # restored at link time.
26665 variables_saved_for_relink=$lt_variables_saved_for_relink
26666
26667 # Do we need the "lib" prefix for modules?
26668 need_lib_prefix=$need_lib_prefix
26669
26670 # Do we need a version for libraries?
26671 need_version=$need_version
26672
26673 # Library versioning type.
26674 version_type=$version_type
26675
26676 # Shared library runtime path variable.
26677 runpath_var=$runpath_var
26678
26679 # Shared library path variable.
26680 shlibpath_var=$shlibpath_var
26681
26682 # Is shlibpath searched before the hard-coded library search path?
26683 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26684
26685 # Format of library name prefix.
26686 libname_spec=$lt_libname_spec
26687
26688 # List of archive names. First name is the real one, the rest are links.
26689 # The last name is the one that the linker finds with -lNAME
26690 library_names_spec=$lt_library_names_spec
26691
26692 # The coded name of the library, if different from the real name.
26693 soname_spec=$lt_soname_spec
26694
26695 # Permission mode override for installation of shared libraries.
26696 install_override_mode=$lt_install_override_mode
26697
26698 # Command to use after installation of a shared archive.
26699 postinstall_cmds=$lt_postinstall_cmds
26700
26701 # Command to use after uninstallation of a shared archive.
26702 postuninstall_cmds=$lt_postuninstall_cmds
26703
26704 # Commands used to finish a libtool library installation in a directory.
26705 finish_cmds=$lt_finish_cmds
26706
26707 # As "finish_cmds", except a single script fragment to be evaled but
26708 # not shown.
26709 finish_eval=$lt_finish_eval
26710
26711 # Whether we should hardcode library paths into libraries.
26712 hardcode_into_libs=$hardcode_into_libs
26713
26714 # Compile-time system search path for libraries.
26715 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26716
26717 # Run-time system search path for libraries.
26718 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26719
26720 # Whether dlopen is supported.
26721 dlopen_support=$enable_dlopen
26722
26723 # Whether dlopen of programs is supported.
26724 dlopen_self=$enable_dlopen_self
26725
26726 # Whether dlopen of statically linked programs is supported.
26727 dlopen_self_static=$enable_dlopen_self_static
26728
26729 # Commands to strip libraries.
26730 old_striplib=$lt_old_striplib
26731 striplib=$lt_striplib
26732
26733
26734 # The linker used to build libraries.
26735 LD=$lt_LD
26736
26737 # How to create reloadable object files.
26738 reload_flag=$lt_reload_flag
26739 reload_cmds=$lt_reload_cmds
26740
26741 # Commands used to build an old-style archive.
26742 old_archive_cmds=$lt_old_archive_cmds
26743
26744 # A language specific compiler.
26745 CC=$lt_compiler
26746
26747 # Is the compiler the GNU compiler?
26748 with_gcc=$GCC
26749
26750 # Compiler flag to turn off builtin functions.
26751 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26752
26753 # How to pass a linker flag through the compiler.
26754 wl=$lt_lt_prog_compiler_wl
26755
26756 # Additional compiler flags for building library objects.
26757 pic_flag=$lt_lt_prog_compiler_pic
26758
26759 # Compiler flag to prevent dynamic linking.
26760 link_static_flag=$lt_lt_prog_compiler_static
26761
26762 # Does compiler simultaneously support -c and -o options?
26763 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26764
26765 # Whether or not to add -lc for building shared libraries.
26766 build_libtool_need_lc=$archive_cmds_need_lc
26767
26768 # Whether or not to disallow shared libs when runtime libs are static.
26769 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26770
26771 # Compiler flag to allow reflexive dlopens.
26772 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26773
26774 # Compiler flag to generate shared objects directly from archives.
26775 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26776
26777 # Whether the compiler copes with passing no objects directly.
26778 compiler_needs_object=$lt_compiler_needs_object
26779
26780 # Create an old-style archive from a shared archive.
26781 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26782
26783 # Create a temporary old-style archive to link instead of a shared archive.
26784 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26785
26786 # Commands used to build a shared archive.
26787 archive_cmds=$lt_archive_cmds
26788 archive_expsym_cmds=$lt_archive_expsym_cmds
26789
26790 # Commands used to build a loadable module if different from building
26791 # a shared archive.
26792 module_cmds=$lt_module_cmds
26793 module_expsym_cmds=$lt_module_expsym_cmds
26794
26795 # Whether we are building with GNU ld or not.
26796 with_gnu_ld=$lt_with_gnu_ld
26797
26798 # Flag that allows shared libraries with undefined symbols to be built.
26799 allow_undefined_flag=$lt_allow_undefined_flag
26800
26801 # Flag that enforces no undefined symbols.
26802 no_undefined_flag=$lt_no_undefined_flag
26803
26804 # Flag to hardcode \$libdir into a binary during linking.
26805 # This must work even if \$libdir does not exist
26806 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26807
26808 # If ld is used when linking, flag to hardcode \$libdir into a binary
26809 # during linking. This must work even if \$libdir does not exist.
26810 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26811
26812 # Whether we need a single "-rpath" flag with a separated argument.
26813 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26814
26815 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26816 # DIR into the resulting binary.
26817 hardcode_direct=$hardcode_direct
26818
26819 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26820 # DIR into the resulting binary and the resulting library dependency is
26821 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26822 # library is relocated.
26823 hardcode_direct_absolute=$hardcode_direct_absolute
26824
26825 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26826 # into the resulting binary.
26827 hardcode_minus_L=$hardcode_minus_L
26828
26829 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26830 # into the resulting binary.
26831 hardcode_shlibpath_var=$hardcode_shlibpath_var
26832
26833 # Set to "yes" if building a shared library automatically hardcodes DIR
26834 # into the library and all subsequent libraries and executables linked
26835 # against it.
26836 hardcode_automatic=$hardcode_automatic
26837
26838 # Set to yes if linker adds runtime paths of dependent libraries
26839 # to runtime path list.
26840 inherit_rpath=$inherit_rpath
26841
26842 # Whether libtool must link a program against all its dependency libraries.
26843 link_all_deplibs=$link_all_deplibs
26844
26845 # Fix the shell variable \$srcfile for the compiler.
26846 fix_srcfile_path=$lt_fix_srcfile_path
26847
26848 # Set to "yes" if exported symbols are required.
26849 always_export_symbols=$always_export_symbols
26850
26851 # The commands to list exported symbols.
26852 export_symbols_cmds=$lt_export_symbols_cmds
26853
26854 # Symbols that should not be listed in the preloaded symbols.
26855 exclude_expsyms=$lt_exclude_expsyms
26856
26857 # Symbols that must always be exported.
26858 include_expsyms=$lt_include_expsyms
26859
26860 # Commands necessary for linking programs (against libraries) with templates.
26861 prelink_cmds=$lt_prelink_cmds
26862
26863 # Specify filename containing input files.
26864 file_list_spec=$lt_file_list_spec
26865
26866 # How to hardcode a shared library path into an executable.
26867 hardcode_action=$hardcode_action
26868
26869 # The directories searched by this compiler when creating a shared library.
26870 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26871
26872 # Dependencies to place before and after the objects being linked to
26873 # create a shared library.
26874 predep_objects=$lt_predep_objects
26875 postdep_objects=$lt_postdep_objects
26876 predeps=$lt_predeps
26877 postdeps=$lt_postdeps
26878
26879 # The library search path used internally by the compiler when linking
26880 # a shared library.
26881 compiler_lib_search_path=$lt_compiler_lib_search_path
26882
26883 # ### END LIBTOOL CONFIG
26884
26885 _LT_EOF
26886
26887 case $host_os in
26888 aix3*)
26889 cat <<\_LT_EOF >> "$cfgfile"
26890 # AIX sometimes has problems with the GCC collect2 program. For some
26891 # reason, if we set the COLLECT_NAMES environment variable, the problems
26892 # vanish in a puff of smoke.
26893 if test "X${COLLECT_NAMES+set}" != Xset; then
26894 COLLECT_NAMES=
26895 export COLLECT_NAMES
26896 fi
26897 _LT_EOF
26898 ;;
26899 esac
26900
26901
26902 ltmain="$ac_aux_dir/ltmain.sh"
26903
26904
26905 # We use sed instead of cat because bash on DJGPP gets confused if
26906 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26907 # text mode, it properly converts lines to CR/LF. This bash problem
26908 # is reportedly fixed, but why not run on old versions too?
26909 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
26910 || (rm -f "$cfgfile"; exit 1)
26911
26912 case $xsi_shell in
26913 yes)
26914 cat << \_LT_EOF >> "$cfgfile"
26915
26916 # func_dirname file append nondir_replacement
26917 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
26918 # otherwise set result to NONDIR_REPLACEMENT.
26919 func_dirname ()
26920 {
26921 case ${1} in
26922 */*) func_dirname_result="${1%/*}${2}" ;;
26923 * ) func_dirname_result="${3}" ;;
26924 esac
26925 }
26926
26927 # func_basename file
26928 func_basename ()
26929 {
26930 func_basename_result="${1##*/}"
26931 }
26932
26933 # func_dirname_and_basename file append nondir_replacement
26934 # perform func_basename and func_dirname in a single function
26935 # call:
26936 # dirname: Compute the dirname of FILE. If nonempty,
26937 # add APPEND to the result, otherwise set result
26938 # to NONDIR_REPLACEMENT.
26939 # value returned in "$func_dirname_result"
26940 # basename: Compute filename of FILE.
26941 # value retuned in "$func_basename_result"
26942 # Implementation must be kept synchronized with func_dirname
26943 # and func_basename. For efficiency, we do not delegate to
26944 # those functions but instead duplicate the functionality here.
26945 func_dirname_and_basename ()
26946 {
26947 case ${1} in
26948 */*) func_dirname_result="${1%/*}${2}" ;;
26949 * ) func_dirname_result="${3}" ;;
26950 esac
26951 func_basename_result="${1##*/}"
26952 }
26953
26954 # func_stripname prefix suffix name
26955 # strip PREFIX and SUFFIX off of NAME.
26956 # PREFIX and SUFFIX must not contain globbing or regex special
26957 # characters, hashes, percent signs, but SUFFIX may contain a leading
26958 # dot (in which case that matches only a dot).
26959 func_stripname ()
26960 {
26961 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
26962 # positional parameters, so assign one to ordinary parameter first.
26963 func_stripname_result=${3}
26964 func_stripname_result=${func_stripname_result#"${1}"}
26965 func_stripname_result=${func_stripname_result%"${2}"}
26966 }
26967
26968 # func_opt_split
26969 func_opt_split ()
26970 {
26971 func_opt_split_opt=${1%%=*}
26972 func_opt_split_arg=${1#*=}
26973 }
26974
26975 # func_lo2o object
26976 func_lo2o ()
26977 {
26978 case ${1} in
26979 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
26980 *) func_lo2o_result=${1} ;;
26981 esac
26982 }
26983
26984 # func_xform libobj-or-source
26985 func_xform ()
26986 {
26987 func_xform_result=${1%.*}.lo
26988 }
26989
26990 # func_arith arithmetic-term...
26991 func_arith ()
26992 {
26993 func_arith_result=$(( $* ))
26994 }
26995
26996 # func_len string
26997 # STRING may not start with a hyphen.
26998 func_len ()
26999 {
27000 func_len_result=${#1}
27001 }
27002
27003 _LT_EOF
27004 ;;
27005 *) # Bourne compatible functions.
27006 cat << \_LT_EOF >> "$cfgfile"
27007
27008 # func_dirname file append nondir_replacement
27009 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27010 # otherwise set result to NONDIR_REPLACEMENT.
27011 func_dirname ()
27012 {
27013 # Extract subdirectory from the argument.
27014 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27015 if test "X$func_dirname_result" = "X${1}"; then
27016 func_dirname_result="${3}"
27017 else
27018 func_dirname_result="$func_dirname_result${2}"
27019 fi
27020 }
27021
27022 # func_basename file
27023 func_basename ()
27024 {
27025 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27026 }
27027
27028
27029 # func_stripname prefix suffix name
27030 # strip PREFIX and SUFFIX off of NAME.
27031 # PREFIX and SUFFIX must not contain globbing or regex special
27032 # characters, hashes, percent signs, but SUFFIX may contain a leading
27033 # dot (in which case that matches only a dot).
27034 # func_strip_suffix prefix name
27035 func_stripname ()
27036 {
27037 case ${2} in
27038 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27039 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27040 esac
27041 }
27042
27043 # sed scripts:
27044 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27045 my_sed_long_arg='1s/^-[^=]*=//'
27046
27047 # func_opt_split
27048 func_opt_split ()
27049 {
27050 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27051 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27052 }
27053
27054 # func_lo2o object
27055 func_lo2o ()
27056 {
27057 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27058 }
27059
27060 # func_xform libobj-or-source
27061 func_xform ()
27062 {
27063 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27064 }
27065
27066 # func_arith arithmetic-term...
27067 func_arith ()
27068 {
27069 func_arith_result=`expr "$@"`
27070 }
27071
27072 # func_len string
27073 # STRING may not start with a hyphen.
27074 func_len ()
27075 {
27076 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27077 }
27078
27079 _LT_EOF
27080 esac
27081
27082 case $lt_shell_append in
27083 yes)
27084 cat << \_LT_EOF >> "$cfgfile"
27085
27086 # func_append var value
27087 # Append VALUE to the end of shell variable VAR.
27088 func_append ()
27089 {
27090 eval "$1+=\$2"
27091 }
27092 _LT_EOF
27093 ;;
27094 *)
27095 cat << \_LT_EOF >> "$cfgfile"
27096
27097 # func_append var value
27098 # Append VALUE to the end of shell variable VAR.
27099 func_append ()
27100 {
27101 eval "$1=\$$1\$2"
27102 }
27103
27104 _LT_EOF
27105 ;;
27106 esac
27107
27108
27109 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27110 || (rm -f "$cfgfile"; exit 1)
27111
27112 mv -f "$cfgfile" "$ofile" ||
27113 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27114 chmod +x "$ofile"
27115
27116
27117 cat <<_LT_EOF >> "$ofile"
27118
27119 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27120
27121 # The linker used to build libraries.
27122 LD=$lt_LD_CXX
27123
27124 # How to create reloadable object files.
27125 reload_flag=$lt_reload_flag_CXX
27126 reload_cmds=$lt_reload_cmds_CXX
27127
27128 # Commands used to build an old-style archive.
27129 old_archive_cmds=$lt_old_archive_cmds_CXX
27130
27131 # A language specific compiler.
27132 CC=$lt_compiler_CXX
27133
27134 # Is the compiler the GNU compiler?
27135 with_gcc=$GCC_CXX
27136
27137 # Compiler flag to turn off builtin functions.
27138 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27139
27140 # How to pass a linker flag through the compiler.
27141 wl=$lt_lt_prog_compiler_wl_CXX
27142
27143 # Additional compiler flags for building library objects.
27144 pic_flag=$lt_lt_prog_compiler_pic_CXX
27145
27146 # Compiler flag to prevent dynamic linking.
27147 link_static_flag=$lt_lt_prog_compiler_static_CXX
27148
27149 # Does compiler simultaneously support -c and -o options?
27150 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27151
27152 # Whether or not to add -lc for building shared libraries.
27153 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27154
27155 # Whether or not to disallow shared libs when runtime libs are static.
27156 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27157
27158 # Compiler flag to allow reflexive dlopens.
27159 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27160
27161 # Compiler flag to generate shared objects directly from archives.
27162 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27163
27164 # Whether the compiler copes with passing no objects directly.
27165 compiler_needs_object=$lt_compiler_needs_object_CXX
27166
27167 # Create an old-style archive from a shared archive.
27168 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27169
27170 # Create a temporary old-style archive to link instead of a shared archive.
27171 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27172
27173 # Commands used to build a shared archive.
27174 archive_cmds=$lt_archive_cmds_CXX
27175 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27176
27177 # Commands used to build a loadable module if different from building
27178 # a shared archive.
27179 module_cmds=$lt_module_cmds_CXX
27180 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27181
27182 # Whether we are building with GNU ld or not.
27183 with_gnu_ld=$lt_with_gnu_ld_CXX
27184
27185 # Flag that allows shared libraries with undefined symbols to be built.
27186 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27187
27188 # Flag that enforces no undefined symbols.
27189 no_undefined_flag=$lt_no_undefined_flag_CXX
27190
27191 # Flag to hardcode \$libdir into a binary during linking.
27192 # This must work even if \$libdir does not exist
27193 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27194
27195 # If ld is used when linking, flag to hardcode \$libdir into a binary
27196 # during linking. This must work even if \$libdir does not exist.
27197 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27198
27199 # Whether we need a single "-rpath" flag with a separated argument.
27200 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27201
27202 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27203 # DIR into the resulting binary.
27204 hardcode_direct=$hardcode_direct_CXX
27205
27206 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27207 # DIR into the resulting binary and the resulting library dependency is
27208 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27209 # library is relocated.
27210 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27211
27212 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27213 # into the resulting binary.
27214 hardcode_minus_L=$hardcode_minus_L_CXX
27215
27216 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27217 # into the resulting binary.
27218 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27219
27220 # Set to "yes" if building a shared library automatically hardcodes DIR
27221 # into the library and all subsequent libraries and executables linked
27222 # against it.
27223 hardcode_automatic=$hardcode_automatic_CXX
27224
27225 # Set to yes if linker adds runtime paths of dependent libraries
27226 # to runtime path list.
27227 inherit_rpath=$inherit_rpath_CXX
27228
27229 # Whether libtool must link a program against all its dependency libraries.
27230 link_all_deplibs=$link_all_deplibs_CXX
27231
27232 # Fix the shell variable \$srcfile for the compiler.
27233 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27234
27235 # Set to "yes" if exported symbols are required.
27236 always_export_symbols=$always_export_symbols_CXX
27237
27238 # The commands to list exported symbols.
27239 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27240
27241 # Symbols that should not be listed in the preloaded symbols.
27242 exclude_expsyms=$lt_exclude_expsyms_CXX
27243
27244 # Symbols that must always be exported.
27245 include_expsyms=$lt_include_expsyms_CXX
27246
27247 # Commands necessary for linking programs (against libraries) with templates.
27248 prelink_cmds=$lt_prelink_cmds_CXX
27249
27250 # Specify filename containing input files.
27251 file_list_spec=$lt_file_list_spec_CXX
27252
27253 # How to hardcode a shared library path into an executable.
27254 hardcode_action=$hardcode_action_CXX
27255
27256 # The directories searched by this compiler when creating a shared library.
27257 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27258
27259 # Dependencies to place before and after the objects being linked to
27260 # create a shared library.
27261 predep_objects=$lt_predep_objects_CXX
27262 postdep_objects=$lt_postdep_objects_CXX
27263 predeps=$lt_predeps_CXX
27264 postdeps=$lt_postdeps_CXX
27265
27266 # The library search path used internally by the compiler when linking
27267 # a shared library.
27268 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27269
27270 # ### END LIBTOOL TAG CONFIG: CXX
27271 _LT_EOF
27272
27273 ;;
27274 "mkcollections.pl":C) chmod 755 lib/mkcollections.pl ;;
27275 "$ac_stdint_h":C)
27276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
27277 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
27278 ac_stdint=$tmp/_stdint.h
27279
27280 echo "#ifndef" $_ac_stdint_h >$ac_stdint
27281 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
27282 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
27283 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
27284 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
27285 if test "_$ac_cv_header_stdint_t" != "_" ; then
27286 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
27287 echo "#include <stdint.h>" >>$ac_stdint
27288 echo "#endif" >>$ac_stdint
27289 echo "#endif" >>$ac_stdint
27290 else
27291
27292 cat >>$ac_stdint <<STDINT_EOF
27293
27294 /* ................... shortcircuit part ........................... */
27295
27296 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
27297 #include <stdint.h>
27298 #else
27299 #include <stddef.h>
27300
27301 /* .................... configured part ............................ */
27302
27303 STDINT_EOF
27304
27305 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
27306 if test "_$ac_cv_header_stdint_x" != "_" ; then
27307 ac_header="$ac_cv_header_stdint_x"
27308 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
27309 else
27310 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
27311 fi
27312
27313 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
27314 if test "_$ac_cv_header_stdint_o" != "_" ; then
27315 ac_header="$ac_cv_header_stdint_o"
27316 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
27317 else
27318 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
27319 fi
27320
27321 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
27322 if test "_$ac_cv_header_stdint_u" != "_" ; then
27323 ac_header="$ac_cv_header_stdint_u"
27324 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
27325 else
27326 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
27327 fi
27328
27329 echo "" >>$ac_stdint
27330
27331 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
27332 echo "#include <$ac_header>" >>$ac_stdint
27333 echo "" >>$ac_stdint
27334 fi fi
27335
27336 echo "/* which 64bit typedef has been found */" >>$ac_stdint
27337 if test "$ac_cv_type_uint64_t" = "yes" ; then
27338 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
27339 else
27340 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
27341 fi
27342 if test "$ac_cv_type_u_int64_t" = "yes" ; then
27343 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
27344 else
27345 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
27346 fi
27347 echo "" >>$ac_stdint
27348
27349 echo "/* which type model has been detected */" >>$ac_stdint
27350 if test "_$ac_cv_char_data_model" != "_" ; then
27351 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
27352 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
27353 else
27354 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
27355 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
27356 fi
27357 echo "" >>$ac_stdint
27358
27359 echo "/* whether int_least types were detected */" >>$ac_stdint
27360 if test "$ac_cv_type_int_least32_t" = "yes"; then
27361 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
27362 else
27363 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
27364 fi
27365 echo "/* whether int_fast types were detected */" >>$ac_stdint
27366 if test "$ac_cv_type_int_fast32_t" = "yes"; then
27367 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
27368 else
27369 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
27370 fi
27371 echo "/* whether intmax_t type was detected */" >>$ac_stdint
27372 if test "$ac_cv_type_intmax_t" = "yes"; then
27373 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
27374 else
27375 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
27376 fi
27377 echo "" >>$ac_stdint
27378
27379 cat >>$ac_stdint <<STDINT_EOF
27380 /* .................... detections part ............................ */
27381
27382 /* whether we need to define bitspecific types from compiler base types */
27383 #ifndef _STDINT_HEADER_INTPTR
27384 #ifndef _STDINT_HEADER_UINT32
27385 #ifndef _STDINT_HEADER_U_INT32
27386 #define _STDINT_NEED_INT_MODEL_T
27387 #else
27388 #define _STDINT_HAVE_U_INT_TYPES
27389 #endif
27390 #endif
27391 #endif
27392
27393 #ifdef _STDINT_HAVE_U_INT_TYPES
27394 #undef _STDINT_NEED_INT_MODEL_T
27395 #endif
27396
27397 #ifdef _STDINT_CHAR_MODEL
27398 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
27399 #ifndef _STDINT_BYTE_MODEL
27400 #define _STDINT_BYTE_MODEL 12
27401 #endif
27402 #endif
27403 #endif
27404
27405 #ifndef _STDINT_HAVE_INT_LEAST32_T
27406 #define _STDINT_NEED_INT_LEAST_T
27407 #endif
27408
27409 #ifndef _STDINT_HAVE_INT_FAST32_T
27410 #define _STDINT_NEED_INT_FAST_T
27411 #endif
27412
27413 #ifndef _STDINT_HEADER_INTPTR
27414 #define _STDINT_NEED_INTPTR_T
27415 #ifndef _STDINT_HAVE_INTMAX_T
27416 #define _STDINT_NEED_INTMAX_T
27417 #endif
27418 #endif
27419
27420
27421 /* .................... definition part ............................ */
27422
27423 /* some system headers have good uint64_t */
27424 #ifndef _HAVE_UINT64_T
27425 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
27426 #define _HAVE_UINT64_T
27427 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
27428 #define _HAVE_UINT64_T
27429 typedef u_int64_t uint64_t;
27430 #endif
27431 #endif
27432
27433 #ifndef _HAVE_UINT64_T
27434 /* .. here are some common heuristics using compiler runtime specifics */
27435 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
27436 #define _HAVE_UINT64_T
27437 #define _HAVE_LONGLONG_UINT64_T
27438 typedef long long int64_t;
27439 typedef unsigned long long uint64_t;
27440
27441 #elif !defined __STRICT_ANSI__
27442 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
27443 #define _HAVE_UINT64_T
27444 typedef __int64 int64_t;
27445 typedef unsigned __int64 uint64_t;
27446
27447 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
27448 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
27449 #if !defined _NO_LONGLONG
27450 #define _HAVE_UINT64_T
27451 #define _HAVE_LONGLONG_UINT64_T
27452 typedef long long int64_t;
27453 typedef unsigned long long uint64_t;
27454 #endif
27455
27456 #elif defined __alpha || (defined __mips && defined _ABIN32)
27457 #if !defined _NO_LONGLONG
27458 typedef long int64_t;
27459 typedef unsigned long uint64_t;
27460 #endif
27461 /* compiler/cpu type to define int64_t */
27462 #endif
27463 #endif
27464 #endif
27465
27466 #if defined _STDINT_HAVE_U_INT_TYPES
27467 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
27468 typedef u_int8_t uint8_t;
27469 typedef u_int16_t uint16_t;
27470 typedef u_int32_t uint32_t;
27471
27472 /* glibc compatibility */
27473 #ifndef __int8_t_defined
27474 #define __int8_t_defined
27475 #endif
27476 #endif
27477
27478 #ifdef _STDINT_NEED_INT_MODEL_T
27479 /* we must guess all the basic types. Apart from byte-adressable system, */
27480 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
27481 /* (btw, those nibble-addressable systems are way off, or so we assume) */
27482
27483
27484 #if defined _STDINT_BYTE_MODEL
27485 #if _STDINT_LONG_MODEL+0 == 242
27486 /* 2:4:2 = IP16 = a normal 16-bit system */
27487 typedef unsigned char uint8_t;
27488 typedef unsigned short uint16_t;
27489 typedef unsigned long uint32_t;
27490 #ifndef __int8_t_defined
27491 #define __int8_t_defined
27492 typedef char int8_t;
27493 typedef short int16_t;
27494 typedef long int32_t;
27495 #endif
27496 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
27497 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
27498 /* 4:4:4 = ILP32 = a normal 32-bit system */
27499 typedef unsigned char uint8_t;
27500 typedef unsigned short uint16_t;
27501 typedef unsigned int uint32_t;
27502 #ifndef __int8_t_defined
27503 #define __int8_t_defined
27504 typedef char int8_t;
27505 typedef short int16_t;
27506 typedef int int32_t;
27507 #endif
27508 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
27509 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
27510 /* 4:8:8 = LP64 = a normal 64-bit system */
27511 typedef unsigned char uint8_t;
27512 typedef unsigned short uint16_t;
27513 typedef unsigned int uint32_t;
27514 #ifndef __int8_t_defined
27515 #define __int8_t_defined
27516 typedef char int8_t;
27517 typedef short int16_t;
27518 typedef int int32_t;
27519 #endif
27520 /* this system has a "long" of 64bit */
27521 #ifndef _HAVE_UINT64_T
27522 #define _HAVE_UINT64_T
27523 typedef unsigned long uint64_t;
27524 typedef long int64_t;
27525 #endif
27526 #elif _STDINT_LONG_MODEL+0 == 448
27527 /* LLP64 a 64-bit system derived from a 32-bit system */
27528 typedef unsigned char uint8_t;
27529 typedef unsigned short uint16_t;
27530 typedef unsigned int uint32_t;
27531 #ifndef __int8_t_defined
27532 #define __int8_t_defined
27533 typedef char int8_t;
27534 typedef short int16_t;
27535 typedef int int32_t;
27536 #endif
27537 /* assuming the system has a "long long" */
27538 #ifndef _HAVE_UINT64_T
27539 #define _HAVE_UINT64_T
27540 #define _HAVE_LONGLONG_UINT64_T
27541 typedef unsigned long long uint64_t;
27542 typedef long long int64_t;
27543 #endif
27544 #else
27545 #define _STDINT_NO_INT32_T
27546 #endif
27547 #else
27548 #define _STDINT_NO_INT8_T
27549 #define _STDINT_NO_INT32_T
27550 #endif
27551 #endif
27552
27553 /*
27554 * quote from SunOS-5.8 sys/inttypes.h:
27555 * Use at your own risk. As of February 1996, the committee is squarely
27556 * behind the fixed sized types; the "least" and "fast" types are still being
27557 * discussed. The probability that the "fast" types may be removed before
27558 * the standard is finalized is high enough that they are not currently
27559 * implemented.
27560 */
27561
27562 #if defined _STDINT_NEED_INT_LEAST_T
27563 typedef int8_t int_least8_t;
27564 typedef int16_t int_least16_t;
27565 typedef int32_t int_least32_t;
27566 #ifdef _HAVE_UINT64_T
27567 typedef int64_t int_least64_t;
27568 #endif
27569
27570 typedef uint8_t uint_least8_t;
27571 typedef uint16_t uint_least16_t;
27572 typedef uint32_t uint_least32_t;
27573 #ifdef _HAVE_UINT64_T
27574 typedef uint64_t uint_least64_t;
27575 #endif
27576 /* least types */
27577 #endif
27578
27579 #if defined _STDINT_NEED_INT_FAST_T
27580 typedef int8_t int_fast8_t;
27581 typedef int int_fast16_t;
27582 typedef int32_t int_fast32_t;
27583 #ifdef _HAVE_UINT64_T
27584 typedef int64_t int_fast64_t;
27585 #endif
27586
27587 typedef uint8_t uint_fast8_t;
27588 typedef unsigned uint_fast16_t;
27589 typedef uint32_t uint_fast32_t;
27590 #ifdef _HAVE_UINT64_T
27591 typedef uint64_t uint_fast64_t;
27592 #endif
27593 /* fast types */
27594 #endif
27595
27596 #ifdef _STDINT_NEED_INTMAX_T
27597 #ifdef _HAVE_UINT64_T
27598 typedef int64_t intmax_t;
27599 typedef uint64_t uintmax_t;
27600 #else
27601 typedef long intmax_t;
27602 typedef unsigned long uintmax_t;
27603 #endif
27604 #endif
27605
27606 #ifdef _STDINT_NEED_INTPTR_T
27607 #ifndef __intptr_t_defined
27608 #define __intptr_t_defined
27609 /* we encourage using "long" to store pointer values, never use "int" ! */
27610 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
27611 typedef unsigned int uintptr_t;
27612 typedef int intptr_t;
27613 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
27614 typedef unsigned long uintptr_t;
27615 typedef long intptr_t;
27616 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
27617 typedef uint64_t uintptr_t;
27618 typedef int64_t intptr_t;
27619 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
27620 typedef unsigned long uintptr_t;
27621 typedef long intptr_t;
27622 #endif
27623 #endif
27624 #endif
27625
27626 /* The ISO C99 standard specifies that in C++ implementations these
27627 should only be defined if explicitly requested. */
27628 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
27629 #ifndef UINT32_C
27630
27631 /* Signed. */
27632 # define INT8_C(c) c
27633 # define INT16_C(c) c
27634 # define INT32_C(c) c
27635 # ifdef _HAVE_LONGLONG_UINT64_T
27636 # define INT64_C(c) c ## L
27637 # else
27638 # define INT64_C(c) c ## LL
27639 # endif
27640
27641 /* Unsigned. */
27642 # define UINT8_C(c) c ## U
27643 # define UINT16_C(c) c ## U
27644 # define UINT32_C(c) c ## U
27645 # ifdef _HAVE_LONGLONG_UINT64_T
27646 # define UINT64_C(c) c ## UL
27647 # else
27648 # define UINT64_C(c) c ## ULL
27649 # endif
27650
27651 /* Maximal type. */
27652 # ifdef _HAVE_LONGLONG_UINT64_T
27653 # define INTMAX_C(c) c ## L
27654 # define UINTMAX_C(c) c ## UL
27655 # else
27656 # define INTMAX_C(c) c ## LL
27657 # define UINTMAX_C(c) c ## ULL
27658 # endif
27659
27660 /* literalnumbers */
27661 #endif
27662 #endif
27663
27664 /* These limits are merily those of a two complement byte-oriented system */
27665
27666 /* Minimum of signed integral types. */
27667 #ifndef INT8_MIN
27668 # define INT8_MIN (-128)
27669 #endif
27670 #ifndef INT16_MIN
27671 # define INT16_MIN (-32767-1)
27672 #endif
27673 #ifndef INT32_MIN
27674 # define INT32_MIN (-2147483647-1)
27675 #endif
27676 #ifndef INT64_MIN
27677 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
27678 #endif
27679
27680 /* Maximum of signed integral types. */
27681 #ifndef INT8_MAX
27682 # define INT8_MAX (127)
27683 #endif
27684 #ifndef INT16_MAX
27685 # define INT16_MAX (32767)
27686 #endif
27687 #ifndef INT32_MAX
27688 # define INT32_MAX (2147483647)
27689 #endif
27690 #ifndef INT64_MAX
27691 # define INT64_MAX (__INT64_C(9223372036854775807))
27692 #endif
27693
27694 /* Maximum of unsigned integral types. */
27695 #ifndef UINT8_MAX
27696 # define UINT8_MAX (255)
27697 #endif
27698 #ifndef UINT16_MAX
27699 # define UINT16_MAX (65535)
27700 #endif
27701 #ifndef UINT32_MAX
27702 # define UINT32_MAX (4294967295U)
27703 #endif
27704 #ifndef UINT64_MAX
27705 # define UINT64_MAX (__UINT64_C(18446744073709551615))
27706 #endif
27707
27708 /* Minimum of signed integral types having a minimum size. */
27709 # define INT_LEAST8_MIN INT8_MIN
27710 # define INT_LEAST16_MIN INT16_MIN
27711 # define INT_LEAST32_MIN INT32_MIN
27712 # define INT_LEAST64_MIN INT64_MIN
27713 /* Maximum of signed integral types having a minimum size. */
27714 # define INT_LEAST8_MAX INT8_MAX
27715 # define INT_LEAST16_MAX INT16_MAX
27716 # define INT_LEAST32_MAX INT32_MAX
27717 # define INT_LEAST64_MAX INT64_MAX
27718
27719 /* Maximum of unsigned integral types having a minimum size. */
27720 # define UINT_LEAST8_MAX UINT8_MAX
27721 # define UINT_LEAST16_MAX UINT16_MAX
27722 # define UINT_LEAST32_MAX UINT32_MAX
27723 # define UINT_LEAST64_MAX UINT64_MAX
27724
27725 /* shortcircuit*/
27726 #endif
27727 /* once */
27728 #endif
27729 #endif
27730 STDINT_EOF
27731 fi
27732 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
27733 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
27734 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
27735 else
27736 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
27737 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27738 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
27739 X"$ac_stdint_h" : 'X\(//\)$' \| \
27740 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
27741 $as_echo X"$ac_stdint_h" |
27742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27743 s//\1/
27744 q
27745 }
27746 /^X\(\/\/\)[^/].*/{
27747 s//\1/
27748 q
27749 }
27750 /^X\(\/\/\)$/{
27751 s//\1/
27752 q
27753 }
27754 /^X\(\/\).*/{
27755 s//\1/
27756 q
27757 }
27758 s/.*/./; q'`
27759 as_dir="$ac_dir"; as_fn_mkdir_p
27760 rm -f $ac_stdint_h
27761 mv $ac_stdint $ac_stdint_h
27762 fi
27763 ;;
27764 "gappletviewer":C) chmod 755 tools/gappletviewer ;;
27765 "gjarsigner":C) chmod 755 tools/gjarsigner ;;
27766 "gkeytool":C) chmod 755 tools/gkeytool ;;
27767 "gjar":C) chmod 755 tools/gjar ;;
27768 "gnative2ascii":C) chmod 755 tools/gnative2ascii ;;
27769 "gserialver":C) chmod 755 tools/gserialver ;;
27770 "grmiregistry":C) chmod 755 tools/grmiregistry ;;
27771 "gtnameserv":C) chmod 755 tools/gtnameserv ;;
27772 "gorbd":C) chmod 755 tools/gorbd ;;
27773 "grmid":C) chmod 755 tools/grmid ;;
27774 "grmic":C) chmod 755 tools/grmic ;;
27775 "gjavah":C) chmod 755 tools/gjavah ;;
27776 "gjdoc":C) chmod 755 tools/gjdoc ;;
27777 "gen-classlist":C) chmod 755 lib/gen-classlist.sh ;;
27778 "copy-vmresources":C) chmod 755 lib/copy-vmresources.sh ;;
27779
27780 esac
27781 done # for ac_tag
27782
27783
27784 as_fn_exit 0
27785 _ACEOF
27786 ac_clean_files=$ac_clean_files_save
27787
27788 test $ac_write_fail = 0 ||
27789 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27790
27791
27792 # configure is writing to config.log, and then calls config.status.
27793 # config.status does its own redirection, appending to config.log.
27794 # Unfortunately, on DOS this fails, as config.log is still kept open
27795 # by configure, so config.status won't be able to write to it; its
27796 # output is simply discarded. So we exec the FD to /dev/null,
27797 # effectively closing config.log, so it can be properly (re)opened and
27798 # appended to by config.status. When coming back to configure, we
27799 # need to make the FD available again.
27800 if test "$no_create" != yes; then
27801 ac_cs_success=:
27802 ac_config_status_args=
27803 test "$silent" = yes &&
27804 ac_config_status_args="$ac_config_status_args --quiet"
27805 exec 5>/dev/null
27806 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27807 exec 5>>config.log
27808 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27809 # would make configure fail if this is the last instruction.
27810 $ac_cs_success || as_fn_exit $?
27811 fi
27812 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27814 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27815 fi
27816
27817
27818 # Create standard.omit based on decisions we just made.
27819 cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
27820 if test x$use_escher != xtrue; then
27821 echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit
27822 fi