]> git.ipfire.org Git - thirdparty/gcc.git/blob - libjava/classpath/configure
re PR bootstrap/42798 (--enable-build-with-cxx bootstrap fails on i686-pc-linux-gnu...
[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_gmp
918 with_gmp_include
919 with_gmp_lib
920 with_javah
921 with_vm_classes
922 enable_maintainer_mode
923 enable_debug
924 enable_load_library
925 with_ecj_jar
926 enable_java_lang_system_explicit_initialization
927 with_jar
928 with_glibj
929 enable_examples
930 enable_tools
931 with_gjdoc
932 with_jay
933 enable_portable_native_sync
934 with_glibj_zip
935 with_escher
936 enable_local_sockets
937 '
938 ac_precious_vars='build_alias
939 host_alias
940 target_alias
941 CC
942 CFLAGS
943 LDFLAGS
944 LIBS
945 CPPFLAGS
946 CPP
947 CXX
948 CXXFLAGS
949 CCC
950 CXXCPP
951 XMKMF'
952
953
954 # Initialize some variables set by options.
955 ac_init_help=
956 ac_init_version=false
957 ac_unrecognized_opts=
958 ac_unrecognized_sep=
959 # The variables have the same names as the options, with
960 # dashes changed to underlines.
961 cache_file=/dev/null
962 exec_prefix=NONE
963 no_create=
964 no_recursion=
965 prefix=NONE
966 program_prefix=NONE
967 program_suffix=NONE
968 program_transform_name=s,x,x,
969 silent=
970 site=
971 srcdir=
972 verbose=
973 x_includes=NONE
974 x_libraries=NONE
975
976 # Installation directory options.
977 # These are left unexpanded so users can "make install exec_prefix=/foo"
978 # and all the variables that are supposed to be based on exec_prefix
979 # by default will actually change.
980 # Use braces instead of parens because sh, perl, etc. also accept them.
981 # (The list follows the same order as the GNU Coding Standards.)
982 bindir='${exec_prefix}/bin'
983 sbindir='${exec_prefix}/sbin'
984 libexecdir='${exec_prefix}/libexec'
985 datarootdir='${prefix}/share'
986 datadir='${datarootdir}'
987 sysconfdir='${prefix}/etc'
988 sharedstatedir='${prefix}/com'
989 localstatedir='${prefix}/var'
990 includedir='${prefix}/include'
991 oldincludedir='/usr/include'
992 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
993 infodir='${datarootdir}/info'
994 htmldir='${docdir}'
995 dvidir='${docdir}'
996 pdfdir='${docdir}'
997 psdir='${docdir}'
998 libdir='${exec_prefix}/lib'
999 localedir='${datarootdir}/locale'
1000 mandir='${datarootdir}/man'
1001
1002 ac_prev=
1003 ac_dashdash=
1004 for ac_option
1005 do
1006 # If the previous option needs an argument, assign it.
1007 if test -n "$ac_prev"; then
1008 eval $ac_prev=\$ac_option
1009 ac_prev=
1010 continue
1011 fi
1012
1013 case $ac_option in
1014 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015 *) ac_optarg=yes ;;
1016 esac
1017
1018 # Accept the important Cygnus configure options, so we can diagnose typos.
1019
1020 case $ac_dashdash$ac_option in
1021 --)
1022 ac_dashdash=yes ;;
1023
1024 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1025 ac_prev=bindir ;;
1026 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1027 bindir=$ac_optarg ;;
1028
1029 -build | --build | --buil | --bui | --bu)
1030 ac_prev=build_alias ;;
1031 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1032 build_alias=$ac_optarg ;;
1033
1034 -cache-file | --cache-file | --cache-fil | --cache-fi \
1035 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1036 ac_prev=cache_file ;;
1037 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1038 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1039 cache_file=$ac_optarg ;;
1040
1041 --config-cache | -C)
1042 cache_file=config.cache ;;
1043
1044 -datadir | --datadir | --datadi | --datad)
1045 ac_prev=datadir ;;
1046 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1047 datadir=$ac_optarg ;;
1048
1049 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1050 | --dataroo | --dataro | --datar)
1051 ac_prev=datarootdir ;;
1052 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1053 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1054 datarootdir=$ac_optarg ;;
1055
1056 -disable-* | --disable-*)
1057 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060 as_fn_error "invalid feature name: $ac_useropt"
1061 ac_useropt_orig=$ac_useropt
1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1064 *"
1065 "enable_$ac_useropt"
1066 "*) ;;
1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1068 ac_unrecognized_sep=', ';;
1069 esac
1070 eval enable_$ac_useropt=no ;;
1071
1072 -docdir | --docdir | --docdi | --doc | --do)
1073 ac_prev=docdir ;;
1074 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075 docdir=$ac_optarg ;;
1076
1077 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078 ac_prev=dvidir ;;
1079 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080 dvidir=$ac_optarg ;;
1081
1082 -enable-* | --enable-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 as_fn_error "invalid feature name: $ac_useropt"
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1090 *"
1091 "enable_$ac_useropt"
1092 "*) ;;
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval enable_$ac_useropt=\$ac_optarg ;;
1097
1098 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1099 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1100 | --exec | --exe | --ex)
1101 ac_prev=exec_prefix ;;
1102 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1103 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1104 | --exec=* | --exe=* | --ex=*)
1105 exec_prefix=$ac_optarg ;;
1106
1107 -gas | --gas | --ga | --g)
1108 # Obsolete; use --with-gas.
1109 with_gas=yes ;;
1110
1111 -help | --help | --hel | --he | -h)
1112 ac_init_help=long ;;
1113 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1114 ac_init_help=recursive ;;
1115 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1116 ac_init_help=short ;;
1117
1118 -host | --host | --hos | --ho)
1119 ac_prev=host_alias ;;
1120 -host=* | --host=* | --hos=* | --ho=*)
1121 host_alias=$ac_optarg ;;
1122
1123 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1124 ac_prev=htmldir ;;
1125 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1126 | --ht=*)
1127 htmldir=$ac_optarg ;;
1128
1129 -includedir | --includedir | --includedi | --included | --include \
1130 | --includ | --inclu | --incl | --inc)
1131 ac_prev=includedir ;;
1132 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1133 | --includ=* | --inclu=* | --incl=* | --inc=*)
1134 includedir=$ac_optarg ;;
1135
1136 -infodir | --infodir | --infodi | --infod | --info | --inf)
1137 ac_prev=infodir ;;
1138 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1139 infodir=$ac_optarg ;;
1140
1141 -libdir | --libdir | --libdi | --libd)
1142 ac_prev=libdir ;;
1143 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1144 libdir=$ac_optarg ;;
1145
1146 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1147 | --libexe | --libex | --libe)
1148 ac_prev=libexecdir ;;
1149 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1150 | --libexe=* | --libex=* | --libe=*)
1151 libexecdir=$ac_optarg ;;
1152
1153 -localedir | --localedir | --localedi | --localed | --locale)
1154 ac_prev=localedir ;;
1155 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1156 localedir=$ac_optarg ;;
1157
1158 -localstatedir | --localstatedir | --localstatedi | --localstated \
1159 | --localstate | --localstat | --localsta | --localst | --locals)
1160 ac_prev=localstatedir ;;
1161 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1162 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1163 localstatedir=$ac_optarg ;;
1164
1165 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1166 ac_prev=mandir ;;
1167 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1168 mandir=$ac_optarg ;;
1169
1170 -nfp | --nfp | --nf)
1171 # Obsolete; use --without-fp.
1172 with_fp=no ;;
1173
1174 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1175 | --no-cr | --no-c | -n)
1176 no_create=yes ;;
1177
1178 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1179 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1180 no_recursion=yes ;;
1181
1182 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1183 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1184 | --oldin | --oldi | --old | --ol | --o)
1185 ac_prev=oldincludedir ;;
1186 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1187 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1188 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1189 oldincludedir=$ac_optarg ;;
1190
1191 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1192 ac_prev=prefix ;;
1193 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1194 prefix=$ac_optarg ;;
1195
1196 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1197 | --program-pre | --program-pr | --program-p)
1198 ac_prev=program_prefix ;;
1199 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1200 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1201 program_prefix=$ac_optarg ;;
1202
1203 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1204 | --program-suf | --program-su | --program-s)
1205 ac_prev=program_suffix ;;
1206 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1207 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1208 program_suffix=$ac_optarg ;;
1209
1210 -program-transform-name | --program-transform-name \
1211 | --program-transform-nam | --program-transform-na \
1212 | --program-transform-n | --program-transform- \
1213 | --program-transform | --program-transfor \
1214 | --program-transfo | --program-transf \
1215 | --program-trans | --program-tran \
1216 | --progr-tra | --program-tr | --program-t)
1217 ac_prev=program_transform_name ;;
1218 -program-transform-name=* | --program-transform-name=* \
1219 | --program-transform-nam=* | --program-transform-na=* \
1220 | --program-transform-n=* | --program-transform-=* \
1221 | --program-transform=* | --program-transfor=* \
1222 | --program-transfo=* | --program-transf=* \
1223 | --program-trans=* | --program-tran=* \
1224 | --progr-tra=* | --program-tr=* | --program-t=*)
1225 program_transform_name=$ac_optarg ;;
1226
1227 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1228 ac_prev=pdfdir ;;
1229 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1230 pdfdir=$ac_optarg ;;
1231
1232 -psdir | --psdir | --psdi | --psd | --ps)
1233 ac_prev=psdir ;;
1234 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1235 psdir=$ac_optarg ;;
1236
1237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238 | -silent | --silent | --silen | --sile | --sil)
1239 silent=yes ;;
1240
1241 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1242 ac_prev=sbindir ;;
1243 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1244 | --sbi=* | --sb=*)
1245 sbindir=$ac_optarg ;;
1246
1247 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1248 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1249 | --sharedst | --shareds | --shared | --share | --shar \
1250 | --sha | --sh)
1251 ac_prev=sharedstatedir ;;
1252 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1253 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1254 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1255 | --sha=* | --sh=*)
1256 sharedstatedir=$ac_optarg ;;
1257
1258 -site | --site | --sit)
1259 ac_prev=site ;;
1260 -site=* | --site=* | --sit=*)
1261 site=$ac_optarg ;;
1262
1263 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1264 ac_prev=srcdir ;;
1265 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1266 srcdir=$ac_optarg ;;
1267
1268 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1269 | --syscon | --sysco | --sysc | --sys | --sy)
1270 ac_prev=sysconfdir ;;
1271 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1272 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1273 sysconfdir=$ac_optarg ;;
1274
1275 -target | --target | --targe | --targ | --tar | --ta | --t)
1276 ac_prev=target_alias ;;
1277 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1278 target_alias=$ac_optarg ;;
1279
1280 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1281 verbose=yes ;;
1282
1283 -version | --version | --versio | --versi | --vers | -V)
1284 ac_init_version=: ;;
1285
1286 -with-* | --with-*)
1287 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290 as_fn_error "invalid package name: $ac_useropt"
1291 ac_useropt_orig=$ac_useropt
1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293 case $ac_user_opts in
1294 *"
1295 "with_$ac_useropt"
1296 "*) ;;
1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1298 ac_unrecognized_sep=', ';;
1299 esac
1300 eval with_$ac_useropt=\$ac_optarg ;;
1301
1302 -without-* | --without-*)
1303 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1306 as_fn_error "invalid package name: $ac_useropt"
1307 ac_useropt_orig=$ac_useropt
1308 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1309 case $ac_user_opts in
1310 *"
1311 "with_$ac_useropt"
1312 "*) ;;
1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1314 ac_unrecognized_sep=', ';;
1315 esac
1316 eval with_$ac_useropt=no ;;
1317
1318 --x)
1319 # Obsolete; use --with-x.
1320 with_x=yes ;;
1321
1322 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1323 | --x-incl | --x-inc | --x-in | --x-i)
1324 ac_prev=x_includes ;;
1325 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1326 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1327 x_includes=$ac_optarg ;;
1328
1329 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1330 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1331 ac_prev=x_libraries ;;
1332 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1333 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1334 x_libraries=$ac_optarg ;;
1335
1336 -*) as_fn_error "unrecognized option: \`$ac_option'
1337 Try \`$0 --help' for more information."
1338 ;;
1339
1340 *=*)
1341 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1342 # Reject names that are not valid shell variable names.
1343 case $ac_envvar in #(
1344 '' | [0-9]* | *[!_$as_cr_alnum]* )
1345 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1346 esac
1347 eval $ac_envvar=\$ac_optarg
1348 export $ac_envvar ;;
1349
1350 *)
1351 # FIXME: should be removed in autoconf 3.0.
1352 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1353 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1354 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1355 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1356 ;;
1357
1358 esac
1359 done
1360
1361 if test -n "$ac_prev"; then
1362 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1363 as_fn_error "missing argument to $ac_option"
1364 fi
1365
1366 if test -n "$ac_unrecognized_opts"; then
1367 case $enable_option_checking in
1368 no) ;;
1369 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1370 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1371 esac
1372 fi
1373
1374 # Check all directory arguments for consistency.
1375 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1376 datadir sysconfdir sharedstatedir localstatedir includedir \
1377 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1378 libdir localedir mandir
1379 do
1380 eval ac_val=\$$ac_var
1381 # Remove trailing slashes.
1382 case $ac_val in
1383 */ )
1384 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1385 eval $ac_var=\$ac_val;;
1386 esac
1387 # Be sure to have absolute directory names.
1388 case $ac_val in
1389 [\\/$]* | ?:[\\/]* ) continue;;
1390 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1391 esac
1392 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1393 done
1394
1395 # There might be people who depend on the old broken behavior: `$host'
1396 # used to hold the argument of --host etc.
1397 # FIXME: To remove some day.
1398 build=$build_alias
1399 host=$host_alias
1400 target=$target_alias
1401
1402 # FIXME: To remove some day.
1403 if test "x$host_alias" != x; then
1404 if test "x$build_alias" = x; then
1405 cross_compiling=maybe
1406 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1407 If a cross compiler is detected then cross compile mode will be used." >&2
1408 elif test "x$build_alias" != "x$host_alias"; then
1409 cross_compiling=yes
1410 fi
1411 fi
1412
1413 ac_tool_prefix=
1414 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1415
1416 test "$silent" = yes && exec 6>/dev/null
1417
1418
1419 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1420 ac_ls_di=`ls -di .` &&
1421 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1422 as_fn_error "working directory cannot be determined"
1423 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1424 as_fn_error "pwd does not report name of working directory"
1425
1426
1427 # Find the source files, if location was not specified.
1428 if test -z "$srcdir"; then
1429 ac_srcdir_defaulted=yes
1430 # Try the directory containing this script, then the parent directory.
1431 ac_confdir=`$as_dirname -- "$as_myself" ||
1432 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1433 X"$as_myself" : 'X\(//\)[^/]' \| \
1434 X"$as_myself" : 'X\(//\)$' \| \
1435 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1436 $as_echo X"$as_myself" |
1437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1438 s//\1/
1439 q
1440 }
1441 /^X\(\/\/\)[^/].*/{
1442 s//\1/
1443 q
1444 }
1445 /^X\(\/\/\)$/{
1446 s//\1/
1447 q
1448 }
1449 /^X\(\/\).*/{
1450 s//\1/
1451 q
1452 }
1453 s/.*/./; q'`
1454 srcdir=$ac_confdir
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456 srcdir=..
1457 fi
1458 else
1459 ac_srcdir_defaulted=no
1460 fi
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1462 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1463 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1464 fi
1465 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1466 ac_abs_confdir=`(
1467 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1468 pwd)`
1469 # When building in place, set srcdir=.
1470 if test "$ac_abs_confdir" = "$ac_pwd"; then
1471 srcdir=.
1472 fi
1473 # Remove unnecessary trailing slashes from srcdir.
1474 # Double slashes in file names in object file debugging info
1475 # mess up M-x gdb in Emacs.
1476 case $srcdir in
1477 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1478 esac
1479 for ac_var in $ac_precious_vars; do
1480 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1481 eval ac_env_${ac_var}_value=\$${ac_var}
1482 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1483 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1484 done
1485
1486 #
1487 # Report the --help message.
1488 #
1489 if test "$ac_init_help" = "long"; then
1490 # Omit some internal or obsolete options to make the list less imposing.
1491 # This message is too long to be a string in the A/UX 3.1 sh.
1492 cat <<_ACEOF
1493 \`configure' configures GNU Classpath 0.98 to adapt to many kinds of systems.
1494
1495 Usage: $0 [OPTION]... [VAR=VALUE]...
1496
1497 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1498 VAR=VALUE. See below for descriptions of some of the useful variables.
1499
1500 Defaults for the options are specified in brackets.
1501
1502 Configuration:
1503 -h, --help display this help and exit
1504 --help=short display options specific to this package
1505 --help=recursive display the short help of all the included packages
1506 -V, --version display version information and exit
1507 -q, --quiet, --silent do not print \`checking...' messages
1508 --cache-file=FILE cache test results in FILE [disabled]
1509 -C, --config-cache alias for \`--cache-file=config.cache'
1510 -n, --no-create do not create output files
1511 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1512
1513 Installation directories:
1514 --prefix=PREFIX install architecture-independent files in PREFIX
1515 [$ac_default_prefix]
1516 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1517 [PREFIX]
1518
1519 By default, \`make install' will install all the files in
1520 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1521 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1522 for instance \`--prefix=\$HOME'.
1523
1524 For better control, use the options below.
1525
1526 Fine tuning of the installation directories:
1527 --bindir=DIR user executables [EPREFIX/bin]
1528 --sbindir=DIR system admin executables [EPREFIX/sbin]
1529 --libexecdir=DIR program executables [EPREFIX/libexec]
1530 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1531 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1532 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1533 --libdir=DIR object code libraries [EPREFIX/lib]
1534 --includedir=DIR C header files [PREFIX/include]
1535 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1536 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1537 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1538 --infodir=DIR info documentation [DATAROOTDIR/info]
1539 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1540 --mandir=DIR man documentation [DATAROOTDIR/man]
1541 --docdir=DIR documentation root [DATAROOTDIR/doc/classpath]
1542 --htmldir=DIR html documentation [DOCDIR]
1543 --dvidir=DIR dvi documentation [DOCDIR]
1544 --pdfdir=DIR pdf documentation [DOCDIR]
1545 --psdir=DIR ps documentation [DOCDIR]
1546 _ACEOF
1547
1548 cat <<\_ACEOF
1549
1550 Program names:
1551 --program-prefix=PREFIX prepend PREFIX to installed program names
1552 --program-suffix=SUFFIX append SUFFIX to installed program names
1553 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1554
1555 X features:
1556 --x-includes=DIR X include files are in DIR
1557 --x-libraries=DIR X library files are in DIR
1558
1559 System types:
1560 --build=BUILD configure for building on BUILD [guessed]
1561 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1562 --target=TARGET configure for building compilers for TARGET [HOST]
1563 _ACEOF
1564 fi
1565
1566 if test -n "$ac_init_help"; then
1567 case $ac_init_help in
1568 short | recursive ) echo "Configuration of GNU Classpath 0.98:";;
1569 esac
1570 cat <<\_ACEOF
1571
1572 Optional Features:
1573 --disable-option-checking ignore unrecognized --enable/--with options
1574 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1575 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1576 --enable-java-maintainer-mode
1577 allow rebuilding of .class and .h files
1578 --enable-generated-files-in-srcdir
1579 put copies of generated files in source dir
1580 intended for creating source tarballs for users
1581 without texinfo, perl, bison or flex.
1582 --enable-multilib build many library versions (default)
1583 --enable-collections create collections.jar default=no
1584 --enable-jni compile JNI source default=yes
1585 --enable-core-jni compile JNI sources for core default=yes
1586 --enable-default-preferences-peer[=peer type or class name]
1587 specify one of: "gconf" [default] for a GConf based
1588 backend, "file" for a file based one, "memory" for a
1589 transient one, or a fully qualified class name
1590 implementing java.util.prefs.PreferencesFactory
1591 --disable-gconf-peer compile GConf native peers (disabled by
1592 --disable-jni) default=yes
1593
1594 --enable-gstreamer-peer compile GStreamer native peers (disabled by
1595 --disable-jni) default=no
1596 --enable-Werror whether to compile C code with -Werror which turns
1597 any compiler warning into a compilation failure
1598 default=no
1599 --enable-default-toolkit
1600 fully qualified class name of default AWT toolkit
1601 --enable-xmlj compile native libxml/xslt library default=no
1602 --disable-alsa compile ALSA providers (enable by --enable-alsa)
1603 default=yes
1604 --disable-dependency-tracking speeds up one-time build
1605 --enable-dependency-tracking do not reject slow dependency extractors
1606 --disable-dssi compile DSSI providers (enable by --enable-dssi)
1607 default=yes
1608 --disable-gtk-peer compile GTK native peers (disabled by --disable-jni)
1609 default=yes
1610 --enable-qt-peer compile Qt4 native peers (disabled by --disable-jni)
1611 default=no
1612 --disable-plugin compile gcjwebplugin (disabled by --disable-plugin)
1613 default=yes
1614 --enable-gmp compile native java.math.BigInteger library
1615 (disabled by --disable-gmp) default=yes
1616 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1617 default=yes
1618 --enable-regen-headers automatically regenerate JNI headers default=yes if
1619 headers don't exist
1620 --enable-regen-gjdoc-parser
1621 automatically regenerate the GJDoc parser
1622 default=yes if generated source doesn't exist
1623 --enable-tool-wrappers create tool wrapper binaries default=no
1624 --enable-static[=PKGS] build static libraries [default=no]
1625 --enable-shared[=PKGS] build shared libraries [default=yes]
1626 --enable-fast-install[=PKGS]
1627 optimize for fast installation [default=yes]
1628 --disable-libtool-lock avoid locking (might break parallel builds)
1629 --disable-rpath do not hardcode runtime library paths
1630 --enable-maintainer-mode enable make rules and dependencies not useful
1631 (and sometimes confusing) to the casual installer
1632 --enable-debug enable runtime debugging code
1633 --enable-load-library enable to use JNI native methods default=yes
1634 --enable-java-lang-system-explicit-initialization
1635 will the VM explicitly invoke java.lang.System's
1636 static initialization methods default=no
1637 --enable-examples enable build of the examples default=yes
1638 --enable-tools enable build of the tools default=yes
1639 --enable-portable-native-sync
1640 synchronize VM threads portably
1641 --enable-local-sockets enables local (AF_LOCAL) socket API default: no
1642
1643 Optional Packages:
1644 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1645 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1646 --with-native-libdir sets the installation directory for native libraries
1647 default='${libdir}/${PACKAGE}'
1648 --with-glibj-dir sets the installation directory for glibj.zip
1649 default='${libdir}/${PACKAGE}'
1650 --with-antlr-jar=file Use ANTLR from the specified jar file
1651 --with-pic try to use only PIC/non-PIC objects [default=use
1652 both]
1653 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1654 --with-gnu-ld assume the C compiler uses GNU ld default=no
1655 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1656 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1657 --with-x use the X Window System
1658 --with-qt4dir=DIR Qt4 installation directory used for OS-X. For other
1659 systems use pkg-config.
1660 --with-gmp=PATH specify prefix directory for the installed GMP package.
1661 Equivalent to --with-gmp-include=PATH/include
1662 plus --with-gmp-lib=PATH/lib
1663 --with-gmp-include=PATH specify directory for installed GMP include files
1664 --with-gmp-lib=PATH specify directory for the installed GMP library
1665 --with-javah specify path or name of a javah-like program
1666 --with-vm-classes specify path to VM override source files
1667 --with-ecj-jar=ABS.PATH specify jar file containing the Eclipse Java
1668 Compiler
1669 --with-jar=PATH define to use a jar style tool
1670 --with-glibj define what to install (zip|flat|both|none|build)
1671 [default=zip]
1672 --with-gjdoc generate documentation using gjdoc (default is NO)
1673 --with-jay=DIR|PATH Regenerate the parsers with jay
1674 --with-glibj-zip=ABS.PATH
1675 use prebuilt glibj.zip class library
1676 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1677
1678 Some influential environment variables:
1679 CC C compiler command
1680 CFLAGS C compiler flags
1681 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1682 nonstandard directory <lib dir>
1683 LIBS libraries to pass to the linker, e.g. -l<library>
1684 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1685 you have headers in a nonstandard directory <include dir>
1686 CPP C preprocessor
1687 CXX C++ compiler command
1688 CXXFLAGS C++ compiler flags
1689 CXXCPP C++ preprocessor
1690 XMKMF Path to xmkmf, Makefile generator for X Window System
1691
1692 Use these variables to override the choices made by `configure' or to help
1693 it to find libraries and programs with nonstandard names/locations.
1694
1695 Report bugs to <classpath@gnu.org>.
1696 GNU Classpath home page: <http://www.gnu.org/software/classpath/>.
1697 General help using GNU software: <http://www.gnu.org/gethelp/>.
1698 _ACEOF
1699 ac_status=$?
1700 fi
1701
1702 if test "$ac_init_help" = "recursive"; then
1703 # If there are subdirs, report their specific --help.
1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705 test -d "$ac_dir" ||
1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1707 continue
1708 ac_builddir=.
1709
1710 case "$ac_dir" in
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 *)
1713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1714 # A ".." for each directory in $ac_dir_suffix.
1715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716 case $ac_top_builddir_sub in
1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719 esac ;;
1720 esac
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1725
1726 case $srcdir in
1727 .) # We are building in place.
1728 ac_srcdir=.
1729 ac_top_srcdir=$ac_top_builddir_sub
1730 ac_abs_top_srcdir=$ac_pwd ;;
1731 [\\/]* | ?:[\\/]* ) # Absolute name.
1732 ac_srcdir=$srcdir$ac_dir_suffix;
1733 ac_top_srcdir=$srcdir
1734 ac_abs_top_srcdir=$srcdir ;;
1735 *) # Relative name.
1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737 ac_top_srcdir=$ac_top_build_prefix$srcdir
1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739 esac
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1741
1742 cd "$ac_dir" || { ac_status=$?; continue; }
1743 # Check for guested configure.
1744 if test -f "$ac_srcdir/configure.gnu"; then
1745 echo &&
1746 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747 elif test -f "$ac_srcdir/configure"; then
1748 echo &&
1749 $SHELL "$ac_srcdir/configure" --help=recursive
1750 else
1751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752 fi || ac_status=$?
1753 cd "$ac_pwd" || { ac_status=$?; break; }
1754 done
1755 fi
1756
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1759 cat <<\_ACEOF
1760 GNU Classpath configure 0.98
1761 generated by GNU Autoconf 2.64
1762
1763 Copyright (C) 2009 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1766 _ACEOF
1767 exit
1768 fi
1769
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1773
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext
1781 if { { ac_try="$ac_compile"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.$ac_objext; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805 ac_retval=1
1806 fi
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808 return $ac_retval
1809
1810 } # ac_fn_c_try_compile
1811
1812 # ac_fn_c_try_cpp LINENO
1813 # ----------------------
1814 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_c_try_cpp ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { { ac_try="$ac_cpp conftest.$ac_ext"
1819 case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1826 ac_status=$?
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1831 fi
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } >/dev/null && {
1834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1835 test ! -s conftest.err
1836 }; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_retval=1
1843 fi
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845 return $ac_retval
1846
1847 } # ac_fn_c_try_cpp
1848
1849 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1850 # -------------------------------------------------------
1851 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1852 # the include files in INCLUDES and setting the cache variable VAR
1853 # accordingly.
1854 ac_fn_c_check_header_mongrel ()
1855 {
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861 $as_echo_n "(cached) " >&6
1862 fi
1863 eval ac_res=\$$3
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1866 else
1867 # Is the header compilable?
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1869 $as_echo_n "checking $2 usability... " >&6; }
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1872 $4
1873 #include <$2>
1874 _ACEOF
1875 if ac_fn_c_try_compile "$LINENO"; then :
1876 ac_header_compiler=yes
1877 else
1878 ac_header_compiler=no
1879 fi
1880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1882 $as_echo "$ac_header_compiler" >&6; }
1883
1884 # Is the header present?
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1886 $as_echo_n "checking $2 presence... " >&6; }
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1889 #include <$2>
1890 _ACEOF
1891 if ac_fn_c_try_cpp "$LINENO"; then :
1892 ac_header_preproc=yes
1893 else
1894 ac_header_preproc=no
1895 fi
1896 rm -f conftest.err conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1898 $as_echo "$ac_header_preproc" >&6; }
1899
1900 # So? What about this header?
1901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1902 yes:no: )
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1904 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1906 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1907 ;;
1908 no:yes:* )
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1910 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1912 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1914 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1916 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1918 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1919 ( cat <<\_ASBOX
1920 ## -------------------------------- ##
1921 ## Report this to classpath@gnu.org ##
1922 ## -------------------------------- ##
1923 _ASBOX
1924 ) | sed "s/^/$as_me: WARNING: /" >&2
1925 ;;
1926 esac
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930 $as_echo_n "(cached) " >&6
1931 else
1932 eval "$3=\$ac_header_compiler"
1933 fi
1934 eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 fi
1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1939
1940 } # ac_fn_c_check_header_mongrel
1941
1942 # ac_fn_c_try_run LINENO
1943 # ----------------------
1944 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1945 # that executables *can* be run.
1946 ac_fn_c_try_run ()
1947 {
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if { { ac_try="$ac_link"
1950 case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953 esac
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_link") 2>&5
1957 ac_status=$?
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1960 { { case "(($ac_try" in
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963 esac
1964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_try") 2>&5
1967 ac_status=$?
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; }; }; then :
1970 ac_retval=0
1971 else
1972 $as_echo "$as_me: program exited with status $ac_status" >&5
1973 $as_echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
1975
1976 ac_retval=$ac_status
1977 fi
1978 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1979 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1980 return $ac_retval
1981
1982 } # ac_fn_c_try_run
1983
1984 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1985 # -------------------------------------------------------
1986 # Tests whether HEADER exists and can be compiled using the include files in
1987 # INCLUDES, setting the cache variable VAR accordingly.
1988 ac_fn_c_check_header_compile ()
1989 {
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994 $as_echo_n "(cached) " >&6
1995 else
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
1998 $4
1999 #include <$2>
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 eval "$3=yes"
2003 else
2004 eval "$3=no"
2005 fi
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 fi
2008 eval ac_res=\$$3
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012
2013 } # ac_fn_c_check_header_compile
2014
2015 # ac_fn_c_try_link LINENO
2016 # -----------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded.
2018 ac_fn_c_try_link ()
2019 {
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 rm -f conftest.$ac_objext conftest$ac_exeext
2022 if { { ac_try="$ac_link"
2023 case "(($ac_try" in
2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2026 esac
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_link") 2>conftest.err
2030 ac_status=$?
2031 if test -s conftest.err; then
2032 grep -v '^ *+' conftest.err >conftest.er1
2033 cat conftest.er1 >&5
2034 mv -f conftest.er1 conftest.err
2035 fi
2036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037 test $ac_status = 0; } && {
2038 test -z "$ac_c_werror_flag" ||
2039 test ! -s conftest.err
2040 } && test -s conftest$ac_exeext && {
2041 test "$cross_compiling" = yes ||
2042 $as_test_x conftest$ac_exeext
2043 }; then :
2044 ac_retval=0
2045 else
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2048
2049 ac_retval=1
2050 fi
2051 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2052 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2053 # interfere with the next link command; also delete a directory that is
2054 # left behind by Apple's compiler. We do this before executing the actions.
2055 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057 return $ac_retval
2058
2059 } # ac_fn_c_try_link
2060
2061 # ac_fn_c_check_func LINENO FUNC VAR
2062 # ----------------------------------
2063 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2064 ac_fn_c_check_func ()
2065 {
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2068 $as_echo_n "checking for $2... " >&6; }
2069 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2070 $as_echo_n "(cached) " >&6
2071 else
2072 if test x$gcc_no_link = xyes; then
2073 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2074 fi
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2077 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2079 #define $2 innocuous_$2
2080
2081 /* System header to define __stub macros and hopefully few prototypes,
2082 which can conflict with char $2 (); below.
2083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2084 <limits.h> exists even on freestanding compilers. */
2085
2086 #ifdef __STDC__
2087 # include <limits.h>
2088 #else
2089 # include <assert.h>
2090 #endif
2091
2092 #undef $2
2093
2094 /* Override any GCC internal prototype to avoid an error.
2095 Use char because int might match the return type of a GCC
2096 builtin and then its argument prototype would still apply. */
2097 #ifdef __cplusplus
2098 extern "C"
2099 #endif
2100 char $2 ();
2101 /* The GNU C library defines this for functions which it implements
2102 to always fail with ENOSYS. Some functions are actually named
2103 something starting with __ and the normal name is an alias. */
2104 #if defined __stub_$2 || defined __stub___$2
2105 choke me
2106 #endif
2107
2108 int
2109 main ()
2110 {
2111 return $2 ();
2112 ;
2113 return 0;
2114 }
2115 _ACEOF
2116 if ac_fn_c_try_link "$LINENO"; then :
2117 eval "$3=yes"
2118 else
2119 eval "$3=no"
2120 fi
2121 rm -f core conftest.err conftest.$ac_objext \
2122 conftest$ac_exeext conftest.$ac_ext
2123 fi
2124 eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2128
2129 } # ac_fn_c_check_func
2130
2131 # ac_fn_cxx_try_compile LINENO
2132 # ----------------------------
2133 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2134 ac_fn_cxx_try_compile ()
2135 {
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 rm -f conftest.$ac_objext
2138 if { { ac_try="$ac_compile"
2139 case "(($ac_try" in
2140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2141 *) ac_try_echo=$ac_try;;
2142 esac
2143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2144 $as_echo "$ac_try_echo"; } >&5
2145 (eval "$ac_compile") 2>conftest.err
2146 ac_status=$?
2147 if test -s conftest.err; then
2148 grep -v '^ *+' conftest.err >conftest.er1
2149 cat conftest.er1 >&5
2150 mv -f conftest.er1 conftest.err
2151 fi
2152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2153 test $ac_status = 0; } && {
2154 test -z "$ac_cxx_werror_flag" ||
2155 test ! -s conftest.err
2156 } && test -s conftest.$ac_objext; then :
2157 ac_retval=0
2158 else
2159 $as_echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2161
2162 ac_retval=1
2163 fi
2164 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2165 return $ac_retval
2166
2167 } # ac_fn_cxx_try_compile
2168
2169 # ac_fn_cxx_try_cpp LINENO
2170 # ------------------------
2171 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2172 ac_fn_cxx_try_cpp ()
2173 {
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 if { { ac_try="$ac_cpp conftest.$ac_ext"
2176 case "(($ac_try" in
2177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178 *) ac_try_echo=$ac_try;;
2179 esac
2180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2181 $as_echo "$ac_try_echo"; } >&5
2182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2183 ac_status=$?
2184 if test -s conftest.err; then
2185 grep -v '^ *+' conftest.err >conftest.er1
2186 cat conftest.er1 >&5
2187 mv -f conftest.er1 conftest.err
2188 fi
2189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2190 test $ac_status = 0; } >/dev/null && {
2191 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2192 test ! -s conftest.err
2193 }; then :
2194 ac_retval=0
2195 else
2196 $as_echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2198
2199 ac_retval=1
2200 fi
2201 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2202 return $ac_retval
2203
2204 } # ac_fn_cxx_try_cpp
2205
2206 # ac_fn_cxx_try_link LINENO
2207 # -------------------------
2208 # Try to link conftest.$ac_ext, and return whether this succeeded.
2209 ac_fn_cxx_try_link ()
2210 {
2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212 rm -f conftest.$ac_objext conftest$ac_exeext
2213 if { { ac_try="$ac_link"
2214 case "(($ac_try" in
2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2217 esac
2218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219 $as_echo "$ac_try_echo"; } >&5
2220 (eval "$ac_link") 2>conftest.err
2221 ac_status=$?
2222 if test -s conftest.err; then
2223 grep -v '^ *+' conftest.err >conftest.er1
2224 cat conftest.er1 >&5
2225 mv -f conftest.er1 conftest.err
2226 fi
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228 test $ac_status = 0; } && {
2229 test -z "$ac_cxx_werror_flag" ||
2230 test ! -s conftest.err
2231 } && test -s conftest$ac_exeext && {
2232 test "$cross_compiling" = yes ||
2233 $as_test_x conftest$ac_exeext
2234 }; then :
2235 ac_retval=0
2236 else
2237 $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240 ac_retval=1
2241 fi
2242 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2243 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2244 # interfere with the next link command; also delete a directory that is
2245 # left behind by Apple's compiler. We do this before executing the actions.
2246 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2247 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2248 return $ac_retval
2249
2250 } # ac_fn_cxx_try_link
2251
2252 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2253 # ----------------------------------------------------
2254 # Tries to find if the field MEMBER exists in type AGGR, after including
2255 # INCLUDES, setting cache variable VAR accordingly.
2256 ac_fn_c_check_member ()
2257 {
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2260 $as_echo_n "checking for $2.$3... " >&6; }
2261 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2262 $as_echo_n "(cached) " >&6
2263 else
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2266 $5
2267 int
2268 main ()
2269 {
2270 static $2 ac_aggr;
2271 if (ac_aggr.$3)
2272 return 0;
2273 ;
2274 return 0;
2275 }
2276 _ACEOF
2277 if ac_fn_c_try_compile "$LINENO"; then :
2278 eval "$4=yes"
2279 else
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2282 $5
2283 int
2284 main ()
2285 {
2286 static $2 ac_aggr;
2287 if (sizeof ac_aggr.$3)
2288 return 0;
2289 ;
2290 return 0;
2291 }
2292 _ACEOF
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294 eval "$4=yes"
2295 else
2296 eval "$4=no"
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 fi
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 fi
2302 eval ac_res=\$$4
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304 $as_echo "$ac_res" >&6; }
2305 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2306
2307 } # ac_fn_c_check_member
2308
2309 # ac_fn_c_check_decl LINENO SYMBOL VAR
2310 # ------------------------------------
2311 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2312 ac_fn_c_check_decl ()
2313 {
2314 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315 as_decl_name=`echo $2|sed 's/ *(.*//'`
2316 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2318 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2319 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2320 $as_echo_n "(cached) " >&6
2321 else
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2324 $4
2325 int
2326 main ()
2327 {
2328 #ifndef $as_decl_name
2329 #ifdef __cplusplus
2330 (void) $as_decl_use;
2331 #else
2332 (void) $as_decl_name;
2333 #endif
2334 #endif
2335
2336 ;
2337 return 0;
2338 }
2339 _ACEOF
2340 if ac_fn_c_try_compile "$LINENO"; then :
2341 eval "$3=yes"
2342 else
2343 eval "$3=no"
2344 fi
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346 fi
2347 eval ac_res=\$$3
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2351
2352 } # ac_fn_c_check_decl
2353
2354 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2355 # -------------------------------------------
2356 # Tests whether TYPE exists after having included INCLUDES, setting cache
2357 # variable VAR accordingly.
2358 ac_fn_c_check_type ()
2359 {
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2362 $as_echo_n "checking for $2... " >&6; }
2363 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2364 $as_echo_n "(cached) " >&6
2365 else
2366 eval "$3=no"
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2369 $4
2370 int
2371 main ()
2372 {
2373 if (sizeof ($2))
2374 return 0;
2375 ;
2376 return 0;
2377 }
2378 _ACEOF
2379 if ac_fn_c_try_compile "$LINENO"; then :
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2382 $4
2383 int
2384 main ()
2385 {
2386 if (sizeof (($2)))
2387 return 0;
2388 ;
2389 return 0;
2390 }
2391 _ACEOF
2392 if ac_fn_c_try_compile "$LINENO"; then :
2393
2394 else
2395 eval "$3=yes"
2396 fi
2397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2398 fi
2399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 fi
2401 eval ac_res=\$$3
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2403 $as_echo "$ac_res" >&6; }
2404 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2405
2406 } # ac_fn_c_check_type
2407
2408 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2409 # --------------------------------------------
2410 # Tries to find the compile-time value of EXPR in a program that includes
2411 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2412 # computed
2413 ac_fn_c_compute_int ()
2414 {
2415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416 if test "$cross_compiling" = yes; then
2417 # Depending upon the size, compute the lo and hi bounds.
2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2420 $4
2421 int
2422 main ()
2423 {
2424 static int test_array [1 - 2 * !(($2) >= 0)];
2425 test_array [0] = 0
2426
2427 ;
2428 return 0;
2429 }
2430 _ACEOF
2431 if ac_fn_c_try_compile "$LINENO"; then :
2432 ac_lo=0 ac_mid=0
2433 while :; do
2434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2435 /* end confdefs.h. */
2436 $4
2437 int
2438 main ()
2439 {
2440 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2441 test_array [0] = 0
2442
2443 ;
2444 return 0;
2445 }
2446 _ACEOF
2447 if ac_fn_c_try_compile "$LINENO"; then :
2448 ac_hi=$ac_mid; break
2449 else
2450 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2451 if test $ac_lo -le $ac_mid; then
2452 ac_lo= ac_hi=
2453 break
2454 fi
2455 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2456 fi
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 done
2459 else
2460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2461 /* end confdefs.h. */
2462 $4
2463 int
2464 main ()
2465 {
2466 static int test_array [1 - 2 * !(($2) < 0)];
2467 test_array [0] = 0
2468
2469 ;
2470 return 0;
2471 }
2472 _ACEOF
2473 if ac_fn_c_try_compile "$LINENO"; then :
2474 ac_hi=-1 ac_mid=-1
2475 while :; do
2476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h. */
2478 $4
2479 int
2480 main ()
2481 {
2482 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2483 test_array [0] = 0
2484
2485 ;
2486 return 0;
2487 }
2488 _ACEOF
2489 if ac_fn_c_try_compile "$LINENO"; then :
2490 ac_lo=$ac_mid; break
2491 else
2492 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2493 if test $ac_mid -le $ac_hi; then
2494 ac_lo= ac_hi=
2495 break
2496 fi
2497 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2498 fi
2499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2500 done
2501 else
2502 ac_lo= ac_hi=
2503 fi
2504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2505 fi
2506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2507 # Binary search between lo and hi bounds.
2508 while test "x$ac_lo" != "x$ac_hi"; do
2509 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2512 $4
2513 int
2514 main ()
2515 {
2516 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2517 test_array [0] = 0
2518
2519 ;
2520 return 0;
2521 }
2522 _ACEOF
2523 if ac_fn_c_try_compile "$LINENO"; then :
2524 ac_hi=$ac_mid
2525 else
2526 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2527 fi
2528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529 done
2530 case $ac_lo in #((
2531 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2532 '') ac_retval=1 ;;
2533 esac
2534 else
2535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2536 /* end confdefs.h. */
2537 $4
2538 static long int longval () { return $2; }
2539 static unsigned long int ulongval () { return $2; }
2540 #include <stdio.h>
2541 #include <stdlib.h>
2542 int
2543 main ()
2544 {
2545
2546 FILE *f = fopen ("conftest.val", "w");
2547 if (! f)
2548 return 1;
2549 if (($2) < 0)
2550 {
2551 long int i = longval ();
2552 if (i != ($2))
2553 return 1;
2554 fprintf (f, "%ld", i);
2555 }
2556 else
2557 {
2558 unsigned long int i = ulongval ();
2559 if (i != ($2))
2560 return 1;
2561 fprintf (f, "%lu", i);
2562 }
2563 /* Do not output a trailing newline, as this causes \r\n confusion
2564 on some platforms. */
2565 return ferror (f) || fclose (f) != 0;
2566
2567 ;
2568 return 0;
2569 }
2570 _ACEOF
2571 if ac_fn_c_try_run "$LINENO"; then :
2572 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2573 else
2574 ac_retval=1
2575 fi
2576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2577 conftest.$ac_objext conftest.beam conftest.$ac_ext
2578 rm -f conftest.val
2579
2580 fi
2581 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2582 return $ac_retval
2583
2584 } # ac_fn_c_compute_int
2585 cat >config.log <<_ACEOF
2586 This file contains any messages produced by compilers while
2587 running configure, to aid debugging if configure makes a mistake.
2588
2589 It was created by GNU Classpath $as_me 0.98, which was
2590 generated by GNU Autoconf 2.64. Invocation command line was
2591
2592 $ $0 $@
2593
2594 _ACEOF
2595 exec 5>>config.log
2596 {
2597 cat <<_ASUNAME
2598 ## --------- ##
2599 ## Platform. ##
2600 ## --------- ##
2601
2602 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2603 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2604 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2605 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2606 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2607
2608 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2609 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2610
2611 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2612 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2613 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2614 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2615 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2616 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2617 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2618
2619 _ASUNAME
2620
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 $as_echo "PATH: $as_dir"
2627 done
2628 IFS=$as_save_IFS
2629
2630 } >&5
2631
2632 cat >&5 <<_ACEOF
2633
2634
2635 ## ----------- ##
2636 ## Core tests. ##
2637 ## ----------- ##
2638
2639 _ACEOF
2640
2641
2642 # Keep a trace of the command line.
2643 # Strip out --no-create and --no-recursion so they do not pile up.
2644 # Strip out --silent because we don't want to record it for future runs.
2645 # Also quote any args containing shell meta-characters.
2646 # Make two passes to allow for proper duplicate-argument suppression.
2647 ac_configure_args=
2648 ac_configure_args0=
2649 ac_configure_args1=
2650 ac_must_keep_next=false
2651 for ac_pass in 1 2
2652 do
2653 for ac_arg
2654 do
2655 case $ac_arg in
2656 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2658 | -silent | --silent | --silen | --sile | --sil)
2659 continue ;;
2660 *\'*)
2661 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2662 esac
2663 case $ac_pass in
2664 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2665 2)
2666 as_fn_append ac_configure_args1 " '$ac_arg'"
2667 if test $ac_must_keep_next = true; then
2668 ac_must_keep_next=false # Got value, back to normal.
2669 else
2670 case $ac_arg in
2671 *=* | --config-cache | -C | -disable-* | --disable-* \
2672 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2673 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2674 | -with-* | --with-* | -without-* | --without-* | --x)
2675 case "$ac_configure_args0 " in
2676 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2677 esac
2678 ;;
2679 -* ) ac_must_keep_next=true ;;
2680 esac
2681 fi
2682 as_fn_append ac_configure_args " '$ac_arg'"
2683 ;;
2684 esac
2685 done
2686 done
2687 { ac_configure_args0=; unset ac_configure_args0;}
2688 { ac_configure_args1=; unset ac_configure_args1;}
2689
2690 # When interrupted or exit'd, cleanup temporary files, and complete
2691 # config.log. We remove comments because anyway the quotes in there
2692 # would cause problems or look ugly.
2693 # WARNING: Use '\'' to represent an apostrophe within the trap.
2694 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2695 trap 'exit_status=$?
2696 # Save into config.log some information that might help in debugging.
2697 {
2698 echo
2699
2700 cat <<\_ASBOX
2701 ## ---------------- ##
2702 ## Cache variables. ##
2703 ## ---------------- ##
2704 _ASBOX
2705 echo
2706 # The following way of writing the cache mishandles newlines in values,
2707 (
2708 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2709 eval ac_val=\$$ac_var
2710 case $ac_val in #(
2711 *${as_nl}*)
2712 case $ac_var in #(
2713 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2714 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2715 esac
2716 case $ac_var in #(
2717 _ | IFS | as_nl) ;; #(
2718 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2719 *) { eval $ac_var=; unset $ac_var;} ;;
2720 esac ;;
2721 esac
2722 done
2723 (set) 2>&1 |
2724 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2725 *${as_nl}ac_space=\ *)
2726 sed -n \
2727 "s/'\''/'\''\\\\'\'''\''/g;
2728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2729 ;; #(
2730 *)
2731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2732 ;;
2733 esac |
2734 sort
2735 )
2736 echo
2737
2738 cat <<\_ASBOX
2739 ## ----------------- ##
2740 ## Output variables. ##
2741 ## ----------------- ##
2742 _ASBOX
2743 echo
2744 for ac_var in $ac_subst_vars
2745 do
2746 eval ac_val=\$$ac_var
2747 case $ac_val in
2748 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2749 esac
2750 $as_echo "$ac_var='\''$ac_val'\''"
2751 done | sort
2752 echo
2753
2754 if test -n "$ac_subst_files"; then
2755 cat <<\_ASBOX
2756 ## ------------------- ##
2757 ## File substitutions. ##
2758 ## ------------------- ##
2759 _ASBOX
2760 echo
2761 for ac_var in $ac_subst_files
2762 do
2763 eval ac_val=\$$ac_var
2764 case $ac_val in
2765 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2766 esac
2767 $as_echo "$ac_var='\''$ac_val'\''"
2768 done | sort
2769 echo
2770 fi
2771
2772 if test -s confdefs.h; then
2773 cat <<\_ASBOX
2774 ## ----------- ##
2775 ## confdefs.h. ##
2776 ## ----------- ##
2777 _ASBOX
2778 echo
2779 cat confdefs.h
2780 echo
2781 fi
2782 test "$ac_signal" != 0 &&
2783 $as_echo "$as_me: caught signal $ac_signal"
2784 $as_echo "$as_me: exit $exit_status"
2785 } >&5
2786 rm -f core *.core core.conftest.* &&
2787 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2788 exit $exit_status
2789 ' 0
2790 for ac_signal in 1 2 13 15; do
2791 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2792 done
2793 ac_signal=0
2794
2795 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2796 rm -f -r conftest* confdefs.h
2797
2798 $as_echo "/* confdefs.h */" > confdefs.h
2799
2800 # Predefined preprocessor variables.
2801
2802 cat >>confdefs.h <<_ACEOF
2803 #define PACKAGE_NAME "$PACKAGE_NAME"
2804 _ACEOF
2805
2806 cat >>confdefs.h <<_ACEOF
2807 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2808 _ACEOF
2809
2810 cat >>confdefs.h <<_ACEOF
2811 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2812 _ACEOF
2813
2814 cat >>confdefs.h <<_ACEOF
2815 #define PACKAGE_STRING "$PACKAGE_STRING"
2816 _ACEOF
2817
2818 cat >>confdefs.h <<_ACEOF
2819 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2820 _ACEOF
2821
2822 cat >>confdefs.h <<_ACEOF
2823 #define PACKAGE_URL "$PACKAGE_URL"
2824 _ACEOF
2825
2826
2827 # Let the site file select an alternate cache file if it wants to.
2828 # Prefer an explicitly selected file to automatically selected ones.
2829 ac_site_file1=NONE
2830 ac_site_file2=NONE
2831 if test -n "$CONFIG_SITE"; then
2832 ac_site_file1=$CONFIG_SITE
2833 elif test "x$prefix" != xNONE; then
2834 ac_site_file1=$prefix/share/config.site
2835 ac_site_file2=$prefix/etc/config.site
2836 else
2837 ac_site_file1=$ac_default_prefix/share/config.site
2838 ac_site_file2=$ac_default_prefix/etc/config.site
2839 fi
2840 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2841 do
2842 test "x$ac_site_file" = xNONE && continue
2843 if test -r "$ac_site_file"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2845 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2846 sed 's/^/| /' "$ac_site_file" >&5
2847 . "$ac_site_file"
2848 fi
2849 done
2850
2851 if test -r "$cache_file"; then
2852 # Some versions of bash will fail to source /dev/null (special
2853 # files actually), so we avoid doing that.
2854 if test -f "$cache_file"; then
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2856 $as_echo "$as_me: loading cache $cache_file" >&6;}
2857 case $cache_file in
2858 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2859 *) . "./$cache_file";;
2860 esac
2861 fi
2862 else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2864 $as_echo "$as_me: creating cache $cache_file" >&6;}
2865 >$cache_file
2866 fi
2867
2868 # Check that the precious variables saved in the cache have kept the same
2869 # value.
2870 ac_cache_corrupted=false
2871 for ac_var in $ac_precious_vars; do
2872 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2873 eval ac_new_set=\$ac_env_${ac_var}_set
2874 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2875 eval ac_new_val=\$ac_env_${ac_var}_value
2876 case $ac_old_set,$ac_new_set in
2877 set,)
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2879 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2880 ac_cache_corrupted=: ;;
2881 ,set)
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2883 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2884 ac_cache_corrupted=: ;;
2885 ,);;
2886 *)
2887 if test "x$ac_old_val" != "x$ac_new_val"; then
2888 # differences in whitespace do not lead to failure.
2889 ac_old_val_w=`echo x $ac_old_val`
2890 ac_new_val_w=`echo x $ac_new_val`
2891 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2893 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2894 ac_cache_corrupted=:
2895 else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2897 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2898 eval $ac_var=\$ac_old_val
2899 fi
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2901 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2903 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2904 fi;;
2905 esac
2906 # Pass precious variables to config.status.
2907 if test "$ac_new_set" = set; then
2908 case $ac_new_val in
2909 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2910 *) ac_arg=$ac_var=$ac_new_val ;;
2911 esac
2912 case " $ac_configure_args " in
2913 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2914 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2915 esac
2916 fi
2917 done
2918 if $ac_cache_corrupted; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2922 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2923 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2924 fi
2925 ## -------------------- ##
2926 ## Main body of script. ##
2927 ## -------------------- ##
2928
2929 ac_ext=c
2930 ac_cpp='$CPP $CPPFLAGS'
2931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934
2935
2936
2937
2938
2939
2940
2941 ac_aux_dir=
2942 for ac_dir in ../.. "$srcdir"/../..; do
2943 for ac_t in install-sh install.sh shtool; do
2944 if test -f "$ac_dir/$ac_t"; then
2945 ac_aux_dir=$ac_dir
2946 ac_install_sh="$ac_aux_dir/$ac_t -c"
2947 break 2
2948 fi
2949 done
2950 done
2951 if test -z "$ac_aux_dir"; then
2952 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2953 fi
2954
2955 # These three variables are undocumented and unsupported,
2956 # and are intended to be withdrawn in a future Autoconf release.
2957 # They can cause serious problems if a builder's source tree is in a directory
2958 # whose full name contains unusual characters.
2959 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2960 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2961 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2962
2963
2964
2965 # Make sure we can run config.sub.
2966 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2967 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2968
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2970 $as_echo_n "checking build system type... " >&6; }
2971 if test "${ac_cv_build+set}" = set; then :
2972 $as_echo_n "(cached) " >&6
2973 else
2974 ac_build_alias=$build_alias
2975 test "x$ac_build_alias" = x &&
2976 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2977 test "x$ac_build_alias" = x &&
2978 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2979 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2980 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2981
2982 fi
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2984 $as_echo "$ac_cv_build" >&6; }
2985 case $ac_cv_build in
2986 *-*-*) ;;
2987 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2988 esac
2989 build=$ac_cv_build
2990 ac_save_IFS=$IFS; IFS='-'
2991 set x $ac_cv_build
2992 shift
2993 build_cpu=$1
2994 build_vendor=$2
2995 shift; shift
2996 # Remember, the first character of IFS is used to create $*,
2997 # except with old shells:
2998 build_os=$*
2999 IFS=$ac_save_IFS
3000 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3001
3002
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3004 $as_echo_n "checking host system type... " >&6; }
3005 if test "${ac_cv_host+set}" = set; then :
3006 $as_echo_n "(cached) " >&6
3007 else
3008 if test "x$host_alias" = x; then
3009 ac_cv_host=$ac_cv_build
3010 else
3011 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3012 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3013 fi
3014
3015 fi
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3017 $as_echo "$ac_cv_host" >&6; }
3018 case $ac_cv_host in
3019 *-*-*) ;;
3020 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3021 esac
3022 host=$ac_cv_host
3023 ac_save_IFS=$IFS; IFS='-'
3024 set x $ac_cv_host
3025 shift
3026 host_cpu=$1
3027 host_vendor=$2
3028 shift; shift
3029 # Remember, the first character of IFS is used to create $*,
3030 # except with old shells:
3031 host_os=$*
3032 IFS=$ac_save_IFS
3033 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3034
3035
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3037 $as_echo_n "checking target system type... " >&6; }
3038 if test "${ac_cv_target+set}" = set; then :
3039 $as_echo_n "(cached) " >&6
3040 else
3041 if test "x$target_alias" = x; then
3042 ac_cv_target=$ac_cv_host
3043 else
3044 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3045 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3046 fi
3047
3048 fi
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3050 $as_echo "$ac_cv_target" >&6; }
3051 case $ac_cv_target in
3052 *-*-*) ;;
3053 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3054 esac
3055 target=$ac_cv_target
3056 ac_save_IFS=$IFS; IFS='-'
3057 set x $ac_cv_target
3058 shift
3059 target_cpu=$1
3060 target_vendor=$2
3061 shift; shift
3062 # Remember, the first character of IFS is used to create $*,
3063 # except with old shells:
3064 target_os=$*
3065 IFS=$ac_save_IFS
3066 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3067
3068
3069 # The aliases save the names the user supplied, while $host etc.
3070 # will get canonicalized.
3071 test -n "$target_alias" &&
3072 test "$program_prefix$program_suffix$program_transform_name" = \
3073 NONENONEs,x,x, &&
3074 program_prefix=${target_alias}-
3075
3076 # Check whether --enable-java-maintainer-mode was given.
3077 if test "${enable_java_maintainer_mode+set}" = set; then :
3078 enableval=$enable_java_maintainer_mode;
3079 fi
3080
3081 if test "$enable_java_maintainer_mode" = yes; then
3082 JAVA_MAINTAINER_MODE_TRUE=
3083 JAVA_MAINTAINER_MODE_FALSE='#'
3084 else
3085 JAVA_MAINTAINER_MODE_TRUE='#'
3086 JAVA_MAINTAINER_MODE_FALSE=
3087 fi
3088
3089
3090 # We would like to our source tree to be readonly. However when releases or
3091 # pre-releases are generated, the man pages need to be included as they are
3092 # converted from the texi files via perl which we don't require end users to
3093 # have installed.
3094 # Therefore we have --enable-generated-files-in-srcdir to do just that.
3095
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3097 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3098 # Check whether --enable-generated-files-in-srcdir was given.
3099 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3100 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3101 else
3102 generated_files_in_srcdir=no
3103 fi
3104
3105
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3107 $as_echo "$generated_files_in_srcdir" >&6; }
3108 if test x$generated_files_in_srcdir = xyes; then
3109 GENINSRC_TRUE=
3110 GENINSRC_FALSE='#'
3111 else
3112 GENINSRC_TRUE='#'
3113 GENINSRC_FALSE=
3114 fi
3115
3116
3117 # Find the rest of the source tree framework.
3118 # Default to --enable-multilib
3119 # Check whether --enable-multilib was given.
3120 if test "${enable_multilib+set}" = set; then :
3121 enableval=$enable_multilib; case "$enableval" in
3122 yes) multilib=yes ;;
3123 no) multilib=no ;;
3124 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3125 esac
3126 else
3127 multilib=yes
3128 fi
3129
3130
3131 # We may get other options which we leave undocumented:
3132 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3133 # See config-ml.in if you want the gory details.
3134
3135 if test "$srcdir" = "."; then
3136 if test "$with_target_subdir" != "."; then
3137 multi_basedir="$srcdir/$with_multisrctop../../.."
3138 else
3139 multi_basedir="$srcdir/$with_multisrctop../.."
3140 fi
3141 else
3142 multi_basedir="$srcdir/../.."
3143 fi
3144
3145
3146 # Even if the default multilib is not a cross compilation,
3147 # it may be that some of the other multilibs are.
3148 if test $cross_compiling = no && test $multilib = yes \
3149 && test "x${with_multisubdir}" != x ; then
3150 cross_compiling=maybe
3151 fi
3152
3153 ac_config_commands="$ac_config_commands default-1"
3154
3155
3156 if test -z "${with_multisubdir}"; then
3157 INSTALL_BINARIES_TRUE=
3158 INSTALL_BINARIES_FALSE='#'
3159 else
3160 INSTALL_BINARIES_TRUE='#'
3161 INSTALL_BINARIES_FALSE=
3162 fi
3163
3164
3165 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
3166
3167 LIBVERSION="0:0:0"
3168
3169 case "$host_os" in
3170 darwin*)
3171 cp_module=""
3172 ;;
3173 *)
3174 cp_module="-module"
3175 ;;
3176 esac
3177
3178 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
3179
3180
3181 CLASSPATH_CONVENIENCE="-no-undefined"
3182
3183
3184
3185 am__api_version='1.11'
3186
3187 # Find a good install program. We prefer a C program (faster),
3188 # so one script is as good as another. But avoid the broken or
3189 # incompatible versions:
3190 # SysV /etc/install, /usr/sbin/install
3191 # SunOS /usr/etc/install
3192 # IRIX /sbin/install
3193 # AIX /bin/install
3194 # AmigaOS /C/install, which installs bootblocks on floppy discs
3195 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3196 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3197 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3198 # OS/2's system install, which has a completely different semantic
3199 # ./install, which can be erroneously created by make from ./install.sh.
3200 # Reject install programs that cannot install multiple files.
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3202 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3203 if test -z "$INSTALL"; then
3204 if test "${ac_cv_path_install+set}" = set; then :
3205 $as_echo_n "(cached) " >&6
3206 else
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3209 do
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 # Account for people who put trailing slashes in PATH elements.
3213 case $as_dir/ in #((
3214 ./ | .// | /[cC]/* | \
3215 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3216 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3217 /usr/ucb/* ) ;;
3218 *)
3219 # OSF1 and SCO ODT 3.0 have their own names for install.
3220 # Don't use installbsd from OSF since it installs stuff as root
3221 # by default.
3222 for ac_prog in ginstall scoinst install; do
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3225 if test $ac_prog = install &&
3226 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3227 # AIX install. It has an incompatible calling convention.
3228 :
3229 elif test $ac_prog = install &&
3230 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3231 # program-specific install script used by HP pwplus--don't use.
3232 :
3233 else
3234 rm -rf conftest.one conftest.two conftest.dir
3235 echo one > conftest.one
3236 echo two > conftest.two
3237 mkdir conftest.dir
3238 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3239 test -s conftest.one && test -s conftest.two &&
3240 test -s conftest.dir/conftest.one &&
3241 test -s conftest.dir/conftest.two
3242 then
3243 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3244 break 3
3245 fi
3246 fi
3247 fi
3248 done
3249 done
3250 ;;
3251 esac
3252
3253 done
3254 IFS=$as_save_IFS
3255
3256 rm -rf conftest.one conftest.two conftest.dir
3257
3258 fi
3259 if test "${ac_cv_path_install+set}" = set; then
3260 INSTALL=$ac_cv_path_install
3261 else
3262 # As a last resort, use the slow shell script. Don't cache a
3263 # value for INSTALL within a source directory, because that will
3264 # break other packages using the cache if that directory is
3265 # removed, or if the value is a relative name.
3266 INSTALL=$ac_install_sh
3267 fi
3268 fi
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3270 $as_echo "$INSTALL" >&6; }
3271
3272 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3273 # It thinks the first close brace ends the variable substitution.
3274 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3275
3276 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3277
3278 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3279
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3281 $as_echo_n "checking whether build environment is sane... " >&6; }
3282 # Just in case
3283 sleep 1
3284 echo timestamp > conftest.file
3285 # Reject unsafe characters in $srcdir or the absolute working directory
3286 # name. Accept space and tab only in the latter.
3287 am_lf='
3288 '
3289 case `pwd` in
3290 *[\\\"\#\$\&\'\`$am_lf]*)
3291 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3292 esac
3293 case $srcdir in
3294 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3295 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3296 esac
3297
3298 # Do `set' in a subshell so we don't clobber the current shell's
3299 # arguments. Must try -L first in case configure is actually a
3300 # symlink; some systems play weird games with the mod time of symlinks
3301 # (eg FreeBSD returns the mod time of the symlink's containing
3302 # directory).
3303 if (
3304 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3305 if test "$*" = "X"; then
3306 # -L didn't work.
3307 set X `ls -t "$srcdir/configure" conftest.file`
3308 fi
3309 rm -f conftest.file
3310 if test "$*" != "X $srcdir/configure conftest.file" \
3311 && test "$*" != "X conftest.file $srcdir/configure"; then
3312
3313 # If neither matched, then we have a broken ls. This can happen
3314 # if, for instance, CONFIG_SHELL is bash and it inherits a
3315 # broken ls alias from the environment. This has actually
3316 # happened. Such a system could not be considered "sane".
3317 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3318 alias in your environment" "$LINENO" 5
3319 fi
3320
3321 test "$2" = conftest.file
3322 )
3323 then
3324 # Ok.
3325 :
3326 else
3327 as_fn_error "newly created file is older than distributed files!
3328 Check your system clock" "$LINENO" 5
3329 fi
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3331 $as_echo "yes" >&6; }
3332 test "$program_prefix" != NONE &&
3333 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3334 # Use a double $ so make ignores it.
3335 test "$program_suffix" != NONE &&
3336 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3337 # Double any \ or $.
3338 # By default was `s,x,x', remove it if useless.
3339 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3340 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3341
3342 # expand $ac_aux_dir to an absolute path
3343 am_aux_dir=`cd $ac_aux_dir && pwd`
3344
3345 if test x"${MISSING+set}" != xset; then
3346 case $am_aux_dir in
3347 *\ * | *\ *)
3348 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3349 *)
3350 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3351 esac
3352 fi
3353 # Use eval to expand $SHELL
3354 if eval "$MISSING --run true"; then
3355 am_missing_run="$MISSING --run "
3356 else
3357 am_missing_run=
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3359 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3360 fi
3361
3362 if test x"${install_sh}" != xset; then
3363 case $am_aux_dir in
3364 *\ * | *\ *)
3365 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3366 *)
3367 install_sh="\${SHELL} $am_aux_dir/install-sh"
3368 esac
3369 fi
3370
3371 # Installed binaries are usually stripped using `strip' when the user
3372 # run `make install-strip'. However `strip' might not be the right
3373 # tool to use in cross-compilation environments, therefore Automake
3374 # will honor the `STRIP' environment variable to overrule this program.
3375 if test "$cross_compiling" != no; then
3376 if test -n "$ac_tool_prefix"; then
3377 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3378 set dummy ${ac_tool_prefix}strip; ac_word=$2
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380 $as_echo_n "checking for $ac_word... " >&6; }
3381 if test "${ac_cv_prog_STRIP+set}" = set; then :
3382 $as_echo_n "(cached) " >&6
3383 else
3384 if test -n "$STRIP"; then
3385 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3386 else
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3389 do
3390 IFS=$as_save_IFS
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 break 2
3397 fi
3398 done
3399 done
3400 IFS=$as_save_IFS
3401
3402 fi
3403 fi
3404 STRIP=$ac_cv_prog_STRIP
3405 if test -n "$STRIP"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3407 $as_echo "$STRIP" >&6; }
3408 else
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3411 fi
3412
3413
3414 fi
3415 if test -z "$ac_cv_prog_STRIP"; then
3416 ac_ct_STRIP=$STRIP
3417 # Extract the first word of "strip", so it can be a program name with args.
3418 set dummy strip; ac_word=$2
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3420 $as_echo_n "checking for $ac_word... " >&6; }
3421 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3422 $as_echo_n "(cached) " >&6
3423 else
3424 if test -n "$ac_ct_STRIP"; then
3425 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3426 else
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3429 do
3430 IFS=$as_save_IFS
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3434 ac_cv_prog_ac_ct_STRIP="strip"
3435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 break 2
3437 fi
3438 done
3439 done
3440 IFS=$as_save_IFS
3441
3442 fi
3443 fi
3444 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3445 if test -n "$ac_ct_STRIP"; then
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3447 $as_echo "$ac_ct_STRIP" >&6; }
3448 else
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 $as_echo "no" >&6; }
3451 fi
3452
3453 if test "x$ac_ct_STRIP" = x; then
3454 STRIP=":"
3455 else
3456 case $cross_compiling:$ac_tool_warned in
3457 yes:)
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3460 ac_tool_warned=yes ;;
3461 esac
3462 STRIP=$ac_ct_STRIP
3463 fi
3464 else
3465 STRIP="$ac_cv_prog_STRIP"
3466 fi
3467
3468 fi
3469 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3470
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3472 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3473 if test -z "$MKDIR_P"; then
3474 if test "${ac_cv_path_mkdir+set}" = set; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3479 do
3480 IFS=$as_save_IFS
3481 test -z "$as_dir" && as_dir=.
3482 for ac_prog in mkdir gmkdir; do
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3485 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3486 'mkdir (GNU coreutils) '* | \
3487 'mkdir (coreutils) '* | \
3488 'mkdir (fileutils) '4.1*)
3489 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3490 break 3;;
3491 esac
3492 done
3493 done
3494 done
3495 IFS=$as_save_IFS
3496
3497 fi
3498
3499 if test "${ac_cv_path_mkdir+set}" = set; then
3500 MKDIR_P="$ac_cv_path_mkdir -p"
3501 else
3502 # As a last resort, use the slow shell script. Don't cache a
3503 # value for MKDIR_P within a source directory, because that will
3504 # break other packages using the cache if that directory is
3505 # removed, or if the value is a relative name.
3506 test -d ./--version && rmdir ./--version
3507 MKDIR_P="$ac_install_sh -d"
3508 fi
3509 fi
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3511 $as_echo "$MKDIR_P" >&6; }
3512
3513 mkdir_p="$MKDIR_P"
3514 case $mkdir_p in
3515 [\\/$]* | ?:[\\/]*) ;;
3516 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3517 esac
3518
3519 for ac_prog in gawk mawk nawk awk
3520 do
3521 # Extract the first word of "$ac_prog", so it can be a program name with args.
3522 set dummy $ac_prog; ac_word=$2
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524 $as_echo_n "checking for $ac_word... " >&6; }
3525 if test "${ac_cv_prog_AWK+set}" = set; then :
3526 $as_echo_n "(cached) " >&6
3527 else
3528 if test -n "$AWK"; then
3529 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3530 else
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH
3533 do
3534 IFS=$as_save_IFS
3535 test -z "$as_dir" && as_dir=.
3536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3538 ac_cv_prog_AWK="$ac_prog"
3539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 break 2
3541 fi
3542 done
3543 done
3544 IFS=$as_save_IFS
3545
3546 fi
3547 fi
3548 AWK=$ac_cv_prog_AWK
3549 if test -n "$AWK"; then
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3551 $as_echo "$AWK" >&6; }
3552 else
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 $as_echo "no" >&6; }
3555 fi
3556
3557
3558 test -n "$AWK" && break
3559 done
3560
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3562 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3563 set x ${MAKE-make}
3564 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3565 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 cat >conftest.make <<\_ACEOF
3569 SHELL = /bin/sh
3570 all:
3571 @echo '@@@%%%=$(MAKE)=@@@%%%'
3572 _ACEOF
3573 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3574 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3575 *@@@%%%=?*=@@@%%%*)
3576 eval ac_cv_prog_make_${ac_make}_set=yes;;
3577 *)
3578 eval ac_cv_prog_make_${ac_make}_set=no;;
3579 esac
3580 rm -f conftest.make
3581 fi
3582 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3584 $as_echo "yes" >&6; }
3585 SET_MAKE=
3586 else
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3589 SET_MAKE="MAKE=${MAKE-make}"
3590 fi
3591
3592 rm -rf .tst 2>/dev/null
3593 mkdir .tst 2>/dev/null
3594 if test -d .tst; then
3595 am__leading_dot=.
3596 else
3597 am__leading_dot=_
3598 fi
3599 rmdir .tst 2>/dev/null
3600
3601 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3602 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3603 # is not polluted with repeated "-I."
3604 am__isrc=' -I$(srcdir)'
3605 # test to see if srcdir already configured
3606 if test -f $srcdir/config.status; then
3607 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3608 fi
3609 fi
3610
3611 # test whether we have cygpath
3612 if test -z "$CYGPATH_W"; then
3613 if (cygpath --version) >/dev/null 2>/dev/null; then
3614 CYGPATH_W='cygpath -w'
3615 else
3616 CYGPATH_W=echo
3617 fi
3618 fi
3619
3620
3621 # Define the identity of the package.
3622 PACKAGE='classpath'
3623 VERSION='0.98'
3624
3625
3626 cat >>confdefs.h <<_ACEOF
3627 #define PACKAGE "$PACKAGE"
3628 _ACEOF
3629
3630
3631 cat >>confdefs.h <<_ACEOF
3632 #define VERSION "$VERSION"
3633 _ACEOF
3634
3635 # Some tools Automake needs.
3636
3637 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3638
3639
3640 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3641
3642
3643 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3644
3645
3646 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3647
3648
3649 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3650
3651 # We need awk for the "check" target. The system "awk" is bad on
3652 # some platforms.
3653 # Always define AMTAR for backward compatibility.
3654
3655 AMTAR=${AMTAR-"${am_missing_run}tar"}
3656
3657
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3659 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3660 # Loop over all known methods to create a tar archive until one works.
3661 _am_tools='gnutar plaintar pax cpio none'
3662 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3663 # Do not fold the above two line into one, because Tru64 sh and
3664 # Solaris sh will not grok spaces in the rhs of `-'.
3665 for _am_tool in $_am_tools
3666 do
3667 case $_am_tool in
3668 gnutar)
3669 for _am_tar in tar gnutar gtar;
3670 do
3671 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3672 ($_am_tar --version) >&5 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } && break
3676 done
3677 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3678 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3679 am__untar="$_am_tar -xf -"
3680 ;;
3681 plaintar)
3682 # Must skip GNU tar: if it does not support --format= it doesn't create
3683 # ustar tarball either.
3684 (tar --version) >/dev/null 2>&1 && continue
3685 am__tar='tar chf - "$$tardir"'
3686 am__tar_='tar chf - "$tardir"'
3687 am__untar='tar xf -'
3688 ;;
3689 pax)
3690 am__tar='pax -L -x ustar -w "$$tardir"'
3691 am__tar_='pax -L -x ustar -w "$tardir"'
3692 am__untar='pax -r'
3693 ;;
3694 cpio)
3695 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3696 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3697 am__untar='cpio -i -H ustar -d'
3698 ;;
3699 none)
3700 am__tar=false
3701 am__tar_=false
3702 am__untar=false
3703 ;;
3704 esac
3705
3706 # If the value was cached, stop now. We just wanted to have am__tar
3707 # and am__untar set.
3708 test -n "${am_cv_prog_tar_ustar}" && break
3709
3710 # tar/untar a dummy directory, and stop if the command works
3711 rm -rf conftest.dir
3712 mkdir conftest.dir
3713 echo GrepMe > conftest.dir/file
3714 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3715 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }
3719 rm -rf conftest.dir
3720 if test -s conftest.tar; then
3721 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3722 ($am__untar <conftest.tar) >&5 2>&5
3723 ac_status=$?
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }
3726 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3727 fi
3728 done
3729 rm -rf conftest.dir
3730
3731 if test "${am_cv_prog_tar_ustar+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 am_cv_prog_tar_ustar=$_am_tool
3735 fi
3736
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3738 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3739
3740
3741
3742
3743
3744 ac_config_headers="$ac_config_headers include/config.h"
3745
3746
3747
3748
3749
3750 # Check whether --enable-collections was given.
3751 if test "${enable_collections+set}" = set; then :
3752 enableval=$enable_collections; case x"${enableval}" in
3753 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
3754 xno) COMPILE_COLLECTIONS=no ;;
3755 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
3756 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
3757 esac
3758 else
3759 COMPILE_COLLECTIONS=no
3760 fi
3761
3762 if test "x${COMPILE_COLLECTIONS}" = xyes; then
3763 CREATE_COLLECTIONS_TRUE=
3764 CREATE_COLLECTIONS_FALSE='#'
3765 else
3766 CREATE_COLLECTIONS_TRUE='#'
3767 CREATE_COLLECTIONS_FALSE=
3768 fi
3769
3770
3771 # Check whether --enable-jni was given.
3772 if test "${enable_jni+set}" = set; then :
3773 enableval=$enable_jni; case "${enableval}" in
3774 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
3775 no) COMPILE_JNI=no ;;
3776 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
3777 esac
3778 else
3779 COMPILE_JNI=yes
3780 fi
3781
3782 if test "x${COMPILE_JNI}" = xyes; then
3783 CREATE_JNI_LIBRARIES_TRUE=
3784 CREATE_JNI_LIBRARIES_FALSE='#'
3785 else
3786 CREATE_JNI_LIBRARIES_TRUE='#'
3787 CREATE_JNI_LIBRARIES_FALSE=
3788 fi
3789
3790
3791 # Check whether --enable-core-jni was given.
3792 if test "${enable_core_jni+set}" = set; then :
3793 enableval=$enable_core_jni; case "${enableval}" in
3794 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
3795 no) COMPILE_CORE_JNI=no ;;
3796 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
3797 esac
3798 else
3799 COMPILE_CORE_JNI=yes
3800 fi
3801
3802 if test "x${COMPILE_CORE_JNI}" = xyes; then
3803 CREATE_CORE_JNI_LIBRARIES_TRUE=
3804 CREATE_CORE_JNI_LIBRARIES_FALSE='#'
3805 else
3806 CREATE_CORE_JNI_LIBRARIES_TRUE='#'
3807 CREATE_CORE_JNI_LIBRARIES_FALSE=
3808 fi
3809
3810
3811 # Check whether --enable-default-preferences-peer was given.
3812 if test "${enable_default_preferences_peer+set}" = set; then :
3813 enableval=$enable_default_preferences_peer; case "${enableval}" in
3814 file) DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory ;;
3815 gconf|yes|true) DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory ;;
3816 memory) DEFAULT_PREFS_PEER=gnu.java.util.prefs.MemoryBasedFactory ;;
3817 no|false) as_fn_error "bad value '${enableval}' for --enable-default-preferences-peer" "$LINENO" 5 ;;
3818 *) DEFAULT_PREFS_PEER=${enableval} ;;
3819 esac
3820 else
3821 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
3822 fi
3823
3824
3825 # Check whether --enable-gconf-peer was given.
3826 if test "${enable_gconf_peer+set}" = set; then :
3827 enableval=$enable_gconf_peer; case "${enableval}" in
3828 yes) COMPILE_GCONF_PEER=yes ;;
3829 no) COMPILE_GCONF_PEER=no ;;
3830 *) COMPILE_GCONF_PEER=yes ;;
3831 esac
3832 else
3833 COMPILE_GCONF_PEER=yes
3834 fi
3835
3836 if test "x${COMPILE_GCONF_PEER}" = xyes; then
3837 CREATE_GCONF_PEER_LIBRARIES_TRUE=
3838 CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
3839 else
3840 CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
3841 CREATE_GCONF_PEER_LIBRARIES_FALSE=
3842 fi
3843
3844
3845 # Check whether --enable-gconf-peers was given.
3846 if test "${enable_gconf_peers+set}" = set; then :
3847 enableval=$enable_gconf_peers; as_fn_error "No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" "$LINENO" 5
3848 fi
3849
3850
3851 # Check whether --enable-gstreamer-peer was given.
3852 if test "${enable_gstreamer_peer+set}" = set; then :
3853 enableval=$enable_gstreamer_peer; case "${enableval}" in
3854 yes) COMPILE_GSTREAMER_PEER=yes ;;
3855 no) COMPILE_GSTREAMER_PEER=no ;;
3856 *) COMPILE_GSTREAMER_PEER=default ;;
3857 esac
3858 else
3859 COMPILE_GSTREAMER_PEER=default
3860 fi
3861
3862 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
3863 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE=
3864 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE='#'
3865 else
3866 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE='#'
3867 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE=
3868 fi
3869
3870
3871 # Check whether --enable-gstreamer-peers was given.
3872 if test "${enable_gstreamer_peers+set}" = set; then :
3873 enableval=$enable_gstreamer_peers; as_fn_error "No --enable-gstreamer-peers (or --disable-gstreamer-peers) option; you want --enable-gstreamer-peer" "$LINENO" 5
3874 fi
3875
3876
3877 # Check whether --enable-Werror was given.
3878 if test "${enable_Werror+set}" = set; then :
3879 enableval=$enable_Werror; case "${enableval}" in
3880 yes) ENABLE_WERROR=yes ;;
3881 no) ENABLE_WERROR=no ;;
3882 *) ENABLE_WERROR=default ;;
3883 esac
3884 else
3885 ENABLE_WERROR=default
3886 fi
3887
3888
3889 # Check whether --enable-default-toolkit was given.
3890 if test "${enable_default_toolkit+set}" = set; then :
3891 enableval=$enable_default_toolkit;
3892 fi
3893
3894 default_toolkit=$enable_default_toolkit
3895 if test "$default_toolkit" = ""; then
3896 default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
3897 fi
3898
3899
3900 # Check whether --enable-xmlj was given.
3901 if test "${enable_xmlj+set}" = set; then :
3902 enableval=$enable_xmlj; case "${enableval}" in
3903 yes) COMPILE_XMLJ=yes ;;
3904 no) COMPILE_XMLJ=no ;;
3905 *) COMPILE_XMLJ=no ;;
3906 esac
3907 else
3908 COMPILE_XMLJ=no
3909 fi
3910
3911 if test "x${COMPILE_XMLJ}" = xyes; then
3912 CREATE_XMLJ_LIBRARY_TRUE=
3913 CREATE_XMLJ_LIBRARY_FALSE='#'
3914 else
3915 CREATE_XMLJ_LIBRARY_TRUE='#'
3916 CREATE_XMLJ_LIBRARY_FALSE=
3917 fi
3918
3919
3920 DEPDIR="${am__leading_dot}deps"
3921
3922 ac_config_commands="$ac_config_commands depfiles"
3923
3924
3925 am_make=${MAKE-make}
3926 cat > confinc << 'END'
3927 am__doit:
3928 @echo this is the am__doit target
3929 .PHONY: am__doit
3930 END
3931 # If we don't find an include directive, just comment out the code.
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3933 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3934 am__include="#"
3935 am__quote=
3936 _am_result=none
3937 # First try GNU make style include.
3938 echo "include confinc" > confmf
3939 # Ignore all kinds of additional output from `make'.
3940 case `$am_make -s -f confmf 2> /dev/null` in #(
3941 *the\ am__doit\ target*)
3942 am__include=include
3943 am__quote=
3944 _am_result=GNU
3945 ;;
3946 esac
3947 # Now try BSD make style include.
3948 if test "$am__include" = "#"; then
3949 echo '.include "confinc"' > confmf
3950 case `$am_make -s -f confmf 2> /dev/null` in #(
3951 *the\ am__doit\ target*)
3952 am__include=.include
3953 am__quote="\""
3954 _am_result=BSD
3955 ;;
3956 esac
3957 fi
3958
3959
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3961 $as_echo "$_am_result" >&6; }
3962 rm -f confinc confmf
3963
3964 # Check whether --enable-dependency-tracking was given.
3965 if test "${enable_dependency_tracking+set}" = set; then :
3966 enableval=$enable_dependency_tracking;
3967 fi
3968
3969 if test "x$enable_dependency_tracking" != xno; then
3970 am_depcomp="$ac_aux_dir/depcomp"
3971 AMDEPBACKSLASH='\'
3972 fi
3973 if test "x$enable_dependency_tracking" != xno; then
3974 AMDEP_TRUE=
3975 AMDEP_FALSE='#'
3976 else
3977 AMDEP_TRUE='#'
3978 AMDEP_FALSE=
3979 fi
3980
3981
3982 ac_ext=c
3983 ac_cpp='$CPP $CPPFLAGS'
3984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3987 if test -n "$ac_tool_prefix"; then
3988 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3989 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991 $as_echo_n "checking for $ac_word... " >&6; }
3992 if test "${ac_cv_prog_CC+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 if test -n "$CC"; then
3996 ac_cv_prog_CC="$CC" # Let the user override the test.
3997 else
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH
4000 do
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4005 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 break 2
4008 fi
4009 done
4010 done
4011 IFS=$as_save_IFS
4012
4013 fi
4014 fi
4015 CC=$ac_cv_prog_CC
4016 if test -n "$CC"; then
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4018 $as_echo "$CC" >&6; }
4019 else
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 $as_echo "no" >&6; }
4022 fi
4023
4024
4025 fi
4026 if test -z "$ac_cv_prog_CC"; then
4027 ac_ct_CC=$CC
4028 # Extract the first word of "gcc", so it can be a program name with args.
4029 set dummy gcc; ac_word=$2
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031 $as_echo_n "checking for $ac_word... " >&6; }
4032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4033 $as_echo_n "(cached) " >&6
4034 else
4035 if test -n "$ac_ct_CC"; then
4036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4037 else
4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 for as_dir in $PATH
4040 do
4041 IFS=$as_save_IFS
4042 test -z "$as_dir" && as_dir=.
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4045 ac_cv_prog_ac_ct_CC="gcc"
4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 break 2
4048 fi
4049 done
4050 done
4051 IFS=$as_save_IFS
4052
4053 fi
4054 fi
4055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4056 if test -n "$ac_ct_CC"; then
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4058 $as_echo "$ac_ct_CC" >&6; }
4059 else
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 $as_echo "no" >&6; }
4062 fi
4063
4064 if test "x$ac_ct_CC" = x; then
4065 CC=""
4066 else
4067 case $cross_compiling:$ac_tool_warned in
4068 yes:)
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4071 ac_tool_warned=yes ;;
4072 esac
4073 CC=$ac_ct_CC
4074 fi
4075 else
4076 CC="$ac_cv_prog_CC"
4077 fi
4078
4079 if test -z "$CC"; then
4080 if test -n "$ac_tool_prefix"; then
4081 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4082 set dummy ${ac_tool_prefix}cc; ac_word=$2
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4084 $as_echo_n "checking for $ac_word... " >&6; }
4085 if test "${ac_cv_prog_CC+set}" = set; then :
4086 $as_echo_n "(cached) " >&6
4087 else
4088 if test -n "$CC"; then
4089 ac_cv_prog_CC="$CC" # Let the user override the test.
4090 else
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH
4093 do
4094 IFS=$as_save_IFS
4095 test -z "$as_dir" && as_dir=.
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4098 ac_cv_prog_CC="${ac_tool_prefix}cc"
4099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4100 break 2
4101 fi
4102 done
4103 done
4104 IFS=$as_save_IFS
4105
4106 fi
4107 fi
4108 CC=$ac_cv_prog_CC
4109 if test -n "$CC"; then
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4111 $as_echo "$CC" >&6; }
4112 else
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 $as_echo "no" >&6; }
4115 fi
4116
4117
4118 fi
4119 fi
4120 if test -z "$CC"; then
4121 # Extract the first word of "cc", so it can be a program name with args.
4122 set dummy cc; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if test "${ac_cv_prog_CC+set}" = set; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 if test -n "$CC"; then
4129 ac_cv_prog_CC="$CC" # Let the user override the test.
4130 else
4131 ac_prog_rejected=no
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4134 do
4135 IFS=$as_save_IFS
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4140 ac_prog_rejected=yes
4141 continue
4142 fi
4143 ac_cv_prog_CC="cc"
4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 break 2
4146 fi
4147 done
4148 done
4149 IFS=$as_save_IFS
4150
4151 if test $ac_prog_rejected = yes; then
4152 # We found a bogon in the path, so make sure we never use it.
4153 set dummy $ac_cv_prog_CC
4154 shift
4155 if test $# != 0; then
4156 # We chose a different compiler from the bogus one.
4157 # However, it has the same basename, so the bogon will be chosen
4158 # first if we set CC to just the basename; use the full file name.
4159 shift
4160 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4161 fi
4162 fi
4163 fi
4164 fi
4165 CC=$ac_cv_prog_CC
4166 if test -n "$CC"; then
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4168 $as_echo "$CC" >&6; }
4169 else
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171 $as_echo "no" >&6; }
4172 fi
4173
4174
4175 fi
4176 if test -z "$CC"; then
4177 if test -n "$ac_tool_prefix"; then
4178 for ac_prog in cl.exe
4179 do
4180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 $as_echo_n "checking for $ac_word... " >&6; }
4184 if test "${ac_cv_prog_CC+set}" = set; then :
4185 $as_echo_n "(cached) " >&6
4186 else
4187 if test -n "$CC"; then
4188 ac_cv_prog_CC="$CC" # Let the user override the test.
4189 else
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4197 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4199 break 2
4200 fi
4201 done
4202 done
4203 IFS=$as_save_IFS
4204
4205 fi
4206 fi
4207 CC=$ac_cv_prog_CC
4208 if test -n "$CC"; then
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4210 $as_echo "$CC" >&6; }
4211 else
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4214 fi
4215
4216
4217 test -n "$CC" && break
4218 done
4219 fi
4220 if test -z "$CC"; then
4221 ac_ct_CC=$CC
4222 for ac_prog in cl.exe
4223 do
4224 # Extract the first word of "$ac_prog", so it can be a program name with args.
4225 set dummy $ac_prog; ac_word=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 if test -n "$ac_ct_CC"; then
4232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4236 do
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241 ac_cv_prog_ac_ct_CC="$ac_prog"
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 break 2
4244 fi
4245 done
4246 done
4247 IFS=$as_save_IFS
4248
4249 fi
4250 fi
4251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4252 if test -n "$ac_ct_CC"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4254 $as_echo "$ac_ct_CC" >&6; }
4255 else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4258 fi
4259
4260
4261 test -n "$ac_ct_CC" && break
4262 done
4263
4264 if test "x$ac_ct_CC" = x; then
4265 CC=""
4266 else
4267 case $cross_compiling:$ac_tool_warned in
4268 yes:)
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4271 ac_tool_warned=yes ;;
4272 esac
4273 CC=$ac_ct_CC
4274 fi
4275 fi
4276
4277 fi
4278
4279
4280 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4282 as_fn_error "no acceptable C compiler found in \$PATH
4283 See \`config.log' for more details." "$LINENO" 5; }
4284
4285 # Provide some information about the compiler.
4286 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4287 set X $ac_compile
4288 ac_compiler=$2
4289 for ac_option in --version -v -V -qversion; do
4290 { { ac_try="$ac_compiler $ac_option >&5"
4291 case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294 esac
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 $as_echo "$ac_try_echo"; } >&5
4297 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4298 ac_status=$?
4299 if test -s conftest.err; then
4300 sed '10a\
4301 ... rest of stderr output deleted ...
4302 10q' conftest.err >conftest.er1
4303 cat conftest.er1 >&5
4304 rm -f conftest.er1 conftest.err
4305 fi
4306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4307 test $ac_status = 0; }
4308 done
4309
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4312
4313 int
4314 main ()
4315 {
4316
4317 ;
4318 return 0;
4319 }
4320 _ACEOF
4321 # FIXME: Cleanup?
4322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4323 (eval $ac_link) 2>&5
4324 ac_status=$?
4325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326 test $ac_status = 0; }; then :
4327 gcc_no_link=no
4328 else
4329 gcc_no_link=yes
4330 fi
4331 if test x$gcc_no_link = xyes; then
4332 # Setting cross_compile will disable run tests; it will
4333 # also disable AC_CHECK_FILE but that's generally
4334 # correct if we can't link.
4335 cross_compiling=yes
4336 EXEEXT=
4337 else
4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h. */
4340
4341 int
4342 main ()
4343 {
4344
4345 ;
4346 return 0;
4347 }
4348 _ACEOF
4349 ac_clean_files_save=$ac_clean_files
4350 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4351 # Try to create an executable without -o first, disregard a.out.
4352 # It will help us diagnose broken compilers, and finding out an intuition
4353 # of exeext.
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4355 $as_echo_n "checking for C compiler default output file name... " >&6; }
4356 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4357
4358 # The possible output files:
4359 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4360
4361 ac_rmfiles=
4362 for ac_file in $ac_files
4363 do
4364 case $ac_file in
4365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4366 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4367 esac
4368 done
4369 rm -f $ac_rmfiles
4370
4371 if { { ac_try="$ac_link_default"
4372 case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375 esac
4376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4377 $as_echo "$ac_try_echo"; } >&5
4378 (eval "$ac_link_default") 2>&5
4379 ac_status=$?
4380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4381 test $ac_status = 0; }; then :
4382 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4383 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4384 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4385 # so that the user can short-circuit this test for compilers unknown to
4386 # Autoconf.
4387 for ac_file in $ac_files ''
4388 do
4389 test -f "$ac_file" || continue
4390 case $ac_file in
4391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4392 ;;
4393 [ab].out )
4394 # We found the default executable, but exeext='' is most
4395 # certainly right.
4396 break;;
4397 *.* )
4398 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4399 then :; else
4400 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4401 fi
4402 # We set ac_cv_exeext here because the later test for it is not
4403 # safe: cross compilers may not add the suffix if given an `-o'
4404 # argument, so we may need to know it at that point already.
4405 # Even if this section looks crufty: it has the advantage of
4406 # actually working.
4407 break;;
4408 * )
4409 break;;
4410 esac
4411 done
4412 test "$ac_cv_exeext" = no && ac_cv_exeext=
4413
4414 else
4415 ac_file=''
4416 fi
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4418 $as_echo "$ac_file" >&6; }
4419 if test -z "$ac_file"; then :
4420 $as_echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4422
4423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4425 { as_fn_set_status 77
4426 as_fn_error "C compiler cannot create executables
4427 See \`config.log' for more details." "$LINENO" 5; }; }
4428 fi
4429 ac_exeext=$ac_cv_exeext
4430
4431 # Check that the compiler produces executables we can run. If not, either
4432 # the compiler is broken, or we cross compile.
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4434 $as_echo_n "checking whether the C compiler works... " >&6; }
4435 # If not cross compiling, check that we can run a simple program.
4436 if test "$cross_compiling" != yes; then
4437 if { ac_try='./$ac_file'
4438 { { case "(($ac_try" in
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4441 esac
4442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4443 $as_echo "$ac_try_echo"; } >&5
4444 (eval "$ac_try") 2>&5
4445 ac_status=$?
4446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4447 test $ac_status = 0; }; }; then
4448 cross_compiling=no
4449 else
4450 if test "$cross_compiling" = maybe; then
4451 cross_compiling=yes
4452 else
4453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4455 as_fn_error "cannot run C compiled programs.
4456 If you meant to cross compile, use \`--host'.
4457 See \`config.log' for more details." "$LINENO" 5; }
4458 fi
4459 fi
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4462 $as_echo "yes" >&6; }
4463
4464 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4465 ac_clean_files=$ac_clean_files_save
4466 # Check that the compiler produces executables we can run. If not, either
4467 # the compiler is broken, or we cross compile.
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4469 $as_echo_n "checking whether we are cross compiling... " >&6; }
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4471 $as_echo "$cross_compiling" >&6; }
4472
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4474 $as_echo_n "checking for suffix of executables... " >&6; }
4475 if { { ac_try="$ac_link"
4476 case "(($ac_try" in
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4479 esac
4480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4481 $as_echo "$ac_try_echo"; } >&5
4482 (eval "$ac_link") 2>&5
4483 ac_status=$?
4484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4485 test $ac_status = 0; }; then :
4486 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4487 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4488 # work properly (i.e., refer to `conftest.exe'), while it won't with
4489 # `rm'.
4490 for ac_file in conftest.exe conftest conftest.*; do
4491 test -f "$ac_file" || continue
4492 case $ac_file in
4493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4494 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4495 break;;
4496 * ) break;;
4497 esac
4498 done
4499 else
4500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4502 as_fn_error "cannot compute suffix of executables: cannot compile and link
4503 See \`config.log' for more details." "$LINENO" 5; }
4504 fi
4505 rm -f conftest$ac_cv_exeext
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4507 $as_echo "$ac_cv_exeext" >&6; }
4508
4509 rm -f conftest.$ac_ext
4510 EXEEXT=$ac_cv_exeext
4511 ac_exeext=$EXEEXT
4512 fi
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4514 $as_echo_n "checking for suffix of object files... " >&6; }
4515 if test "${ac_cv_objext+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4520
4521 int
4522 main ()
4523 {
4524
4525 ;
4526 return 0;
4527 }
4528 _ACEOF
4529 rm -f conftest.o conftest.obj
4530 if { { ac_try="$ac_compile"
4531 case "(($ac_try" in
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4534 esac
4535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4536 $as_echo "$ac_try_echo"; } >&5
4537 (eval "$ac_compile") 2>&5
4538 ac_status=$?
4539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4540 test $ac_status = 0; }; then :
4541 for ac_file in conftest.o conftest.obj conftest.*; do
4542 test -f "$ac_file" || continue;
4543 case $ac_file in
4544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4545 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4546 break;;
4547 esac
4548 done
4549 else
4550 $as_echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.$ac_ext >&5
4552
4553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4555 as_fn_error "cannot compute suffix of object files: cannot compile
4556 See \`config.log' for more details." "$LINENO" 5; }
4557 fi
4558 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4559 fi
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4561 $as_echo "$ac_cv_objext" >&6; }
4562 OBJEXT=$ac_cv_objext
4563 ac_objext=$OBJEXT
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4565 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4566 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4571
4572 int
4573 main ()
4574 {
4575 #ifndef __GNUC__
4576 choke me
4577 #endif
4578
4579 ;
4580 return 0;
4581 }
4582 _ACEOF
4583 if ac_fn_c_try_compile "$LINENO"; then :
4584 ac_compiler_gnu=yes
4585 else
4586 ac_compiler_gnu=no
4587 fi
4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4590
4591 fi
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4593 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4594 if test $ac_compiler_gnu = yes; then
4595 GCC=yes
4596 else
4597 GCC=
4598 fi
4599 ac_test_CFLAGS=${CFLAGS+set}
4600 ac_save_CFLAGS=$CFLAGS
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4602 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4603 if test "${ac_cv_prog_cc_g+set}" = set; then :
4604 $as_echo_n "(cached) " >&6
4605 else
4606 ac_save_c_werror_flag=$ac_c_werror_flag
4607 ac_c_werror_flag=yes
4608 ac_cv_prog_cc_g=no
4609 CFLAGS="-g"
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4612
4613 int
4614 main ()
4615 {
4616
4617 ;
4618 return 0;
4619 }
4620 _ACEOF
4621 if ac_fn_c_try_compile "$LINENO"; then :
4622 ac_cv_prog_cc_g=yes
4623 else
4624 CFLAGS=""
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4627
4628 int
4629 main ()
4630 {
4631
4632 ;
4633 return 0;
4634 }
4635 _ACEOF
4636 if ac_fn_c_try_compile "$LINENO"; then :
4637
4638 else
4639 ac_c_werror_flag=$ac_save_c_werror_flag
4640 CFLAGS="-g"
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643
4644 int
4645 main ()
4646 {
4647
4648 ;
4649 return 0;
4650 }
4651 _ACEOF
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653 ac_cv_prog_cc_g=yes
4654 fi
4655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656 fi
4657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658 fi
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 ac_c_werror_flag=$ac_save_c_werror_flag
4661 fi
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4663 $as_echo "$ac_cv_prog_cc_g" >&6; }
4664 if test "$ac_test_CFLAGS" = set; then
4665 CFLAGS=$ac_save_CFLAGS
4666 elif test $ac_cv_prog_cc_g = yes; then
4667 if test "$GCC" = yes; then
4668 CFLAGS="-g -O2"
4669 else
4670 CFLAGS="-g"
4671 fi
4672 else
4673 if test "$GCC" = yes; then
4674 CFLAGS="-O2"
4675 else
4676 CFLAGS=
4677 fi
4678 fi
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4680 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4681 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 ac_cv_prog_cc_c89=no
4685 ac_save_CC=$CC
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4688 #include <stdarg.h>
4689 #include <stdio.h>
4690 #include <sys/types.h>
4691 #include <sys/stat.h>
4692 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4693 struct buf { int x; };
4694 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4695 static char *e (p, i)
4696 char **p;
4697 int i;
4698 {
4699 return p[i];
4700 }
4701 static char *f (char * (*g) (char **, int), char **p, ...)
4702 {
4703 char *s;
4704 va_list v;
4705 va_start (v,p);
4706 s = g (p, va_arg (v,int));
4707 va_end (v);
4708 return s;
4709 }
4710
4711 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4712 function prototypes and stuff, but not '\xHH' hex character constants.
4713 These don't provoke an error unfortunately, instead are silently treated
4714 as 'x'. The following induces an error, until -std is added to get
4715 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4716 array size at least. It's necessary to write '\x00'==0 to get something
4717 that's true only with -std. */
4718 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4719
4720 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4721 inside strings and character constants. */
4722 #define FOO(x) 'x'
4723 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4724
4725 int test (int i, double x);
4726 struct s1 {int (*f) (int a);};
4727 struct s2 {int (*f) (double a);};
4728 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4729 int argc;
4730 char **argv;
4731 int
4732 main ()
4733 {
4734 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4735 ;
4736 return 0;
4737 }
4738 _ACEOF
4739 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4740 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4741 do
4742 CC="$ac_save_CC $ac_arg"
4743 if ac_fn_c_try_compile "$LINENO"; then :
4744 ac_cv_prog_cc_c89=$ac_arg
4745 fi
4746 rm -f core conftest.err conftest.$ac_objext
4747 test "x$ac_cv_prog_cc_c89" != "xno" && break
4748 done
4749 rm -f conftest.$ac_ext
4750 CC=$ac_save_CC
4751
4752 fi
4753 # AC_CACHE_VAL
4754 case "x$ac_cv_prog_cc_c89" in
4755 x)
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4757 $as_echo "none needed" >&6; } ;;
4758 xno)
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4760 $as_echo "unsupported" >&6; } ;;
4761 *)
4762 CC="$CC $ac_cv_prog_cc_c89"
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4764 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4765 esac
4766 if test "x$ac_cv_prog_cc_c89" != xno; then :
4767
4768 fi
4769
4770 ac_ext=c
4771 ac_cpp='$CPP $CPPFLAGS'
4772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4775
4776 depcc="$CC" am_compiler_list=
4777
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4779 $as_echo_n "checking dependency style of $depcc... " >&6; }
4780 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4784 # We make a subdir and do the tests there. Otherwise we can end up
4785 # making bogus files that we don't know about and never remove. For
4786 # instance it was reported that on HP-UX the gcc test will end up
4787 # making a dummy file named `D' -- because `-MD' means `put the output
4788 # in D'.
4789 mkdir conftest.dir
4790 # Copy depcomp to subdir because otherwise we won't find it if we're
4791 # using a relative directory.
4792 cp "$am_depcomp" conftest.dir
4793 cd conftest.dir
4794 # We will build objects and dependencies in a subdirectory because
4795 # it helps to detect inapplicable dependency modes. For instance
4796 # both Tru64's cc and ICC support -MD to output dependencies as a
4797 # side effect of compilation, but ICC will put the dependencies in
4798 # the current directory while Tru64 will put them in the object
4799 # directory.
4800 mkdir sub
4801
4802 am_cv_CC_dependencies_compiler_type=none
4803 if test "$am_compiler_list" = ""; then
4804 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4805 fi
4806 am__universal=false
4807 case " $depcc " in #(
4808 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4809 esac
4810
4811 for depmode in $am_compiler_list; do
4812 # Setup a source with many dependencies, because some compilers
4813 # like to wrap large dependency lists on column 80 (with \), and
4814 # we should not choose a depcomp mode which is confused by this.
4815 #
4816 # We need to recreate these files for each test, as the compiler may
4817 # overwrite some of them when testing with obscure command lines.
4818 # This happens at least with the AIX C compiler.
4819 : > sub/conftest.c
4820 for i in 1 2 3 4 5 6; do
4821 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4822 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4823 # Solaris 8's {/usr,}/bin/sh.
4824 touch sub/conftst$i.h
4825 done
4826 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4827
4828 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4829 # mode. It turns out that the SunPro C++ compiler does not properly
4830 # handle `-M -o', and we need to detect this. Also, some Intel
4831 # versions had trouble with output in subdirs
4832 am__obj=sub/conftest.${OBJEXT-o}
4833 am__minus_obj="-o $am__obj"
4834 case $depmode in
4835 gcc)
4836 # This depmode causes a compiler race in universal mode.
4837 test "$am__universal" = false || continue
4838 ;;
4839 nosideeffect)
4840 # after this tag, mechanisms are not by side-effect, so they'll
4841 # only be used when explicitly requested
4842 if test "x$enable_dependency_tracking" = xyes; then
4843 continue
4844 else
4845 break
4846 fi
4847 ;;
4848 msvisualcpp | msvcmsys)
4849 # This compiler won't grok `-c -o', but also, the minuso test has
4850 # not run yet. These depmodes are late enough in the game, and
4851 # so weak that their functioning should not be impacted.
4852 am__obj=conftest.${OBJEXT-o}
4853 am__minus_obj=
4854 ;;
4855 none) break ;;
4856 esac
4857 if depmode=$depmode \
4858 source=sub/conftest.c object=$am__obj \
4859 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4860 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4861 >/dev/null 2>conftest.err &&
4862 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4863 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4864 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4865 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4866 # icc doesn't choke on unknown options, it will just issue warnings
4867 # or remarks (even with -Werror). So we grep stderr for any message
4868 # that says an option was ignored or not supported.
4869 # When given -MP, icc 7.0 and 7.1 complain thusly:
4870 # icc: Command line warning: ignoring option '-M'; no argument required
4871 # The diagnosis changed in icc 8.0:
4872 # icc: Command line remark: option '-MP' not supported
4873 if (grep 'ignoring option' conftest.err ||
4874 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4875 am_cv_CC_dependencies_compiler_type=$depmode
4876 break
4877 fi
4878 fi
4879 done
4880
4881 cd ..
4882 rm -rf conftest.dir
4883 else
4884 am_cv_CC_dependencies_compiler_type=none
4885 fi
4886
4887 fi
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4889 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4890 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4891
4892 if
4893 test "x$enable_dependency_tracking" != xno \
4894 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4895 am__fastdepCC_TRUE=
4896 am__fastdepCC_FALSE='#'
4897 else
4898 am__fastdepCC_TRUE='#'
4899 am__fastdepCC_FALSE=
4900 fi
4901
4902
4903
4904 ac_ext=c
4905 ac_cpp='$CPP $CPPFLAGS'
4906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4910 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4911 # On Suns, sometimes $CPP names a directory.
4912 if test -n "$CPP" && test -d "$CPP"; then
4913 CPP=
4914 fi
4915 if test -z "$CPP"; then
4916 if test "${ac_cv_prog_CPP+set}" = set; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 # Double quotes because CPP needs to be expanded
4920 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4921 do
4922 ac_preproc_ok=false
4923 for ac_c_preproc_warn_flag in '' yes
4924 do
4925 # Use a header file that comes with gcc, so configuring glibc
4926 # with a fresh cross-compiler works.
4927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4928 # <limits.h> exists even on freestanding compilers.
4929 # On the NeXT, cc -E runs the code through the compiler's parser,
4930 # not just through cpp. "Syntax error" is here to catch this case.
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4933 #ifdef __STDC__
4934 # include <limits.h>
4935 #else
4936 # include <assert.h>
4937 #endif
4938 Syntax error
4939 _ACEOF
4940 if ac_fn_c_try_cpp "$LINENO"; then :
4941
4942 else
4943 # Broken: fails on valid input.
4944 continue
4945 fi
4946 rm -f conftest.err conftest.$ac_ext
4947
4948 # OK, works on sane cases. Now check whether nonexistent headers
4949 # can be detected and how.
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952 #include <ac_nonexistent.h>
4953 _ACEOF
4954 if ac_fn_c_try_cpp "$LINENO"; then :
4955 # Broken: success on invalid input.
4956 continue
4957 else
4958 # Passes both tests.
4959 ac_preproc_ok=:
4960 break
4961 fi
4962 rm -f conftest.err conftest.$ac_ext
4963
4964 done
4965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4966 rm -f conftest.err conftest.$ac_ext
4967 if $ac_preproc_ok; then :
4968 break
4969 fi
4970
4971 done
4972 ac_cv_prog_CPP=$CPP
4973
4974 fi
4975 CPP=$ac_cv_prog_CPP
4976 else
4977 ac_cv_prog_CPP=$CPP
4978 fi
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4980 $as_echo "$CPP" >&6; }
4981 ac_preproc_ok=false
4982 for ac_c_preproc_warn_flag in '' yes
4983 do
4984 # Use a header file that comes with gcc, so configuring glibc
4985 # with a fresh cross-compiler works.
4986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987 # <limits.h> exists even on freestanding compilers.
4988 # On the NeXT, cc -E runs the code through the compiler's parser,
4989 # not just through cpp. "Syntax error" is here to catch this case.
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4992 #ifdef __STDC__
4993 # include <limits.h>
4994 #else
4995 # include <assert.h>
4996 #endif
4997 Syntax error
4998 _ACEOF
4999 if ac_fn_c_try_cpp "$LINENO"; then :
5000
5001 else
5002 # Broken: fails on valid input.
5003 continue
5004 fi
5005 rm -f conftest.err conftest.$ac_ext
5006
5007 # OK, works on sane cases. Now check whether nonexistent headers
5008 # can be detected and how.
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5011 #include <ac_nonexistent.h>
5012 _ACEOF
5013 if ac_fn_c_try_cpp "$LINENO"; then :
5014 # Broken: success on invalid input.
5015 continue
5016 else
5017 # Passes both tests.
5018 ac_preproc_ok=:
5019 break
5020 fi
5021 rm -f conftest.err conftest.$ac_ext
5022
5023 done
5024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5025 rm -f conftest.err conftest.$ac_ext
5026 if $ac_preproc_ok; then :
5027
5028 else
5029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5031 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5032 See \`config.log' for more details." "$LINENO" 5; }
5033 fi
5034
5035 ac_ext=c
5036 ac_cpp='$CPP $CPPFLAGS'
5037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5040
5041
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5043 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5044 if test "${ac_cv_path_GREP+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 if test -z "$GREP"; then
5048 ac_path_GREP_found=false
5049 # Loop through the user's path and test for each of PROGNAME-LIST
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5052 do
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_prog in grep ggrep; do
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5058 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5059 # Check for GNU ac_path_GREP and select it if it is found.
5060 # Check for GNU $ac_path_GREP
5061 case `"$ac_path_GREP" --version 2>&1` in
5062 *GNU*)
5063 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5064 *)
5065 ac_count=0
5066 $as_echo_n 0123456789 >"conftest.in"
5067 while :
5068 do
5069 cat "conftest.in" "conftest.in" >"conftest.tmp"
5070 mv "conftest.tmp" "conftest.in"
5071 cp "conftest.in" "conftest.nl"
5072 $as_echo 'GREP' >> "conftest.nl"
5073 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5074 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5075 as_fn_arith $ac_count + 1 && ac_count=$as_val
5076 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5077 # Best one so far, save it but keep looking for a better one
5078 ac_cv_path_GREP="$ac_path_GREP"
5079 ac_path_GREP_max=$ac_count
5080 fi
5081 # 10*(2^10) chars as input seems more than enough
5082 test $ac_count -gt 10 && break
5083 done
5084 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5085 esac
5086
5087 $ac_path_GREP_found && break 3
5088 done
5089 done
5090 done
5091 IFS=$as_save_IFS
5092 if test -z "$ac_cv_path_GREP"; then
5093 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5094 fi
5095 else
5096 ac_cv_path_GREP=$GREP
5097 fi
5098
5099 fi
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5101 $as_echo "$ac_cv_path_GREP" >&6; }
5102 GREP="$ac_cv_path_GREP"
5103
5104
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5106 $as_echo_n "checking for egrep... " >&6; }
5107 if test "${ac_cv_path_EGREP+set}" = set; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5111 then ac_cv_path_EGREP="$GREP -E"
5112 else
5113 if test -z "$EGREP"; then
5114 ac_path_EGREP_found=false
5115 # Loop through the user's path and test for each of PROGNAME-LIST
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5118 do
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_prog in egrep; do
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5124 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5125 # Check for GNU ac_path_EGREP and select it if it is found.
5126 # Check for GNU $ac_path_EGREP
5127 case `"$ac_path_EGREP" --version 2>&1` in
5128 *GNU*)
5129 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5130 *)
5131 ac_count=0
5132 $as_echo_n 0123456789 >"conftest.in"
5133 while :
5134 do
5135 cat "conftest.in" "conftest.in" >"conftest.tmp"
5136 mv "conftest.tmp" "conftest.in"
5137 cp "conftest.in" "conftest.nl"
5138 $as_echo 'EGREP' >> "conftest.nl"
5139 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5140 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5141 as_fn_arith $ac_count + 1 && ac_count=$as_val
5142 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5143 # Best one so far, save it but keep looking for a better one
5144 ac_cv_path_EGREP="$ac_path_EGREP"
5145 ac_path_EGREP_max=$ac_count
5146 fi
5147 # 10*(2^10) chars as input seems more than enough
5148 test $ac_count -gt 10 && break
5149 done
5150 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5151 esac
5152
5153 $ac_path_EGREP_found && break 3
5154 done
5155 done
5156 done
5157 IFS=$as_save_IFS
5158 if test -z "$ac_cv_path_EGREP"; then
5159 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5160 fi
5161 else
5162 ac_cv_path_EGREP=$EGREP
5163 fi
5164
5165 fi
5166 fi
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5168 $as_echo "$ac_cv_path_EGREP" >&6; }
5169 EGREP="$ac_cv_path_EGREP"
5170
5171
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5173 $as_echo_n "checking for ANSI C header files... " >&6; }
5174 if test "${ac_cv_header_stdc+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5179 #include <stdlib.h>
5180 #include <stdarg.h>
5181 #include <string.h>
5182 #include <float.h>
5183
5184 int
5185 main ()
5186 {
5187
5188 ;
5189 return 0;
5190 }
5191 _ACEOF
5192 if ac_fn_c_try_compile "$LINENO"; then :
5193 ac_cv_header_stdc=yes
5194 else
5195 ac_cv_header_stdc=no
5196 fi
5197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5198
5199 if test $ac_cv_header_stdc = yes; then
5200 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5203 #include <string.h>
5204
5205 _ACEOF
5206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5207 $EGREP "memchr" >/dev/null 2>&1; then :
5208
5209 else
5210 ac_cv_header_stdc=no
5211 fi
5212 rm -f conftest*
5213
5214 fi
5215
5216 if test $ac_cv_header_stdc = yes; then
5217 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h. */
5220 #include <stdlib.h>
5221
5222 _ACEOF
5223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5224 $EGREP "free" >/dev/null 2>&1; then :
5225
5226 else
5227 ac_cv_header_stdc=no
5228 fi
5229 rm -f conftest*
5230
5231 fi
5232
5233 if test $ac_cv_header_stdc = yes; then
5234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5235 if test "$cross_compiling" = yes; then :
5236 :
5237 else
5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5240 #include <ctype.h>
5241 #include <stdlib.h>
5242 #if ((' ' & 0x0FF) == 0x020)
5243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5245 #else
5246 # define ISLOWER(c) \
5247 (('a' <= (c) && (c) <= 'i') \
5248 || ('j' <= (c) && (c) <= 'r') \
5249 || ('s' <= (c) && (c) <= 'z'))
5250 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5251 #endif
5252
5253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5254 int
5255 main ()
5256 {
5257 int i;
5258 for (i = 0; i < 256; i++)
5259 if (XOR (islower (i), ISLOWER (i))
5260 || toupper (i) != TOUPPER (i))
5261 return 2;
5262 return 0;
5263 }
5264 _ACEOF
5265 if ac_fn_c_try_run "$LINENO"; then :
5266
5267 else
5268 ac_cv_header_stdc=no
5269 fi
5270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5271 conftest.$ac_objext conftest.beam conftest.$ac_ext
5272 fi
5273
5274 fi
5275 fi
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5277 $as_echo "$ac_cv_header_stdc" >&6; }
5278 if test $ac_cv_header_stdc = yes; then
5279
5280 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5281
5282 fi
5283
5284 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5285 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5286 inttypes.h stdint.h unistd.h
5287 do :
5288 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5289 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5290 "
5291 eval as_val=\$$as_ac_Header
5292 if test "x$as_val" = x""yes; then :
5293 cat >>confdefs.h <<_ACEOF
5294 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5295 _ACEOF
5296
5297 fi
5298
5299 done
5300
5301
5302 # Check whether --enable-alsa was given.
5303 if test "${enable_alsa+set}" = set; then :
5304 enableval=$enable_alsa; case "${enableval}" in
5305 yes) COMPILE_ALSA=yes ;;
5306 no) COMPILE_ALSA=no ;;
5307 *) COMPILE_ALSA=yes ;;
5308 esac
5309 else
5310 for ac_header in alsa/asoundlib.h
5311 do :
5312 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
5313 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
5314 cat >>confdefs.h <<_ACEOF
5315 #define HAVE_ALSA_ASOUNDLIB_H 1
5316 _ACEOF
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_seq_open in -lasound" >&5
5318 $as_echo_n "checking for snd_seq_open in -lasound... " >&6; }
5319 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 ac_check_lib_save_LIBS=$LIBS
5323 LIBS="-lasound $LIBS"
5324 if test x$gcc_no_link = xyes; then
5325 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5326 fi
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5329
5330 /* Override any GCC internal prototype to avoid an error.
5331 Use char because int might match the return type of a GCC
5332 builtin and then its argument prototype would still apply. */
5333 #ifdef __cplusplus
5334 extern "C"
5335 #endif
5336 char snd_seq_open ();
5337 int
5338 main ()
5339 {
5340 return snd_seq_open ();
5341 ;
5342 return 0;
5343 }
5344 _ACEOF
5345 if ac_fn_c_try_link "$LINENO"; then :
5346 ac_cv_lib_asound_snd_seq_open=yes
5347 else
5348 ac_cv_lib_asound_snd_seq_open=no
5349 fi
5350 rm -f core conftest.err conftest.$ac_objext \
5351 conftest$ac_exeext conftest.$ac_ext
5352 LIBS=$ac_check_lib_save_LIBS
5353 fi
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_seq_open" >&5
5355 $as_echo "$ac_cv_lib_asound_snd_seq_open" >&6; }
5356 if test "x$ac_cv_lib_asound_snd_seq_open" = x""yes; then :
5357 COMPILE_ALSA=yes
5358 else
5359 COMPILE_ALSA=no
5360 fi
5361
5362 else
5363 COMPILE_ALSA=no
5364 fi
5365
5366 done
5367
5368 fi
5369
5370 if test "x${COMPILE_ALSA}" = xyes; then
5371 CREATE_ALSA_LIBRARIES_TRUE=
5372 CREATE_ALSA_LIBRARIES_FALSE='#'
5373 else
5374 CREATE_ALSA_LIBRARIES_TRUE='#'
5375 CREATE_ALSA_LIBRARIES_FALSE=
5376 fi
5377
5378
5379 # Check whether --enable-dssi was given.
5380 if test "${enable_dssi+set}" = set; then :
5381 enableval=$enable_dssi; case "${enableval}" in
5382 yes) COMPILE_DSSI=yes ;;
5383 no) COMPILE_DSSI=no ;;
5384 *) COMPILE_DSSI=yes ;;
5385 esac
5386 else
5387 COMPILE_DSSI=no
5388 for ac_header in dssi.h
5389 do :
5390 ac_fn_c_check_header_mongrel "$LINENO" "dssi.h" "ac_cv_header_dssi_h" "$ac_includes_default"
5391 if test "x$ac_cv_header_dssi_h" = x""yes; then :
5392 cat >>confdefs.h <<_ACEOF
5393 #define HAVE_DSSI_H 1
5394 _ACEOF
5395
5396 for ac_header in jack/jack.h
5397 do :
5398 ac_fn_c_check_header_mongrel "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default"
5399 if test "x$ac_cv_header_jack_jack_h" = x""yes; then :
5400 cat >>confdefs.h <<_ACEOF
5401 #define HAVE_JACK_JACK_H 1
5402 _ACEOF
5403 COMPILE_DSSI=yes
5404 fi
5405
5406 done
5407
5408 fi
5409
5410 done
5411
5412 fi
5413
5414 if test "x${COMPILE_DSSI}" = xyes; then
5415 CREATE_DSSI_LIBRARIES_TRUE=
5416 CREATE_DSSI_LIBRARIES_FALSE='#'
5417 else
5418 CREATE_DSSI_LIBRARIES_TRUE='#'
5419 CREATE_DSSI_LIBRARIES_FALSE=
5420 fi
5421
5422
5423 # Check whether --enable-gtk-peer was given.
5424 if test "${enable_gtk_peer+set}" = set; then :
5425 enableval=$enable_gtk_peer; case "${enableval}" in
5426 yes) COMPILE_GTK_PEER=yes ;;
5427 no) COMPILE_GTK_PEER=no ;;
5428 *) COMPILE_GTK_PEER=yes ;;
5429 esac
5430 else
5431 COMPILE_GTK_PEER=yes
5432 fi
5433
5434 if test "x${COMPILE_GTK_PEER}" = xyes; then
5435 CREATE_GTK_PEER_LIBRARIES_TRUE=
5436 CREATE_GTK_PEER_LIBRARIES_FALSE='#'
5437 else
5438 CREATE_GTK_PEER_LIBRARIES_TRUE='#'
5439 CREATE_GTK_PEER_LIBRARIES_FALSE=
5440 fi
5441
5442
5443 # Check whether --enable-gtk-peers was given.
5444 if test "${enable_gtk_peers+set}" = set; then :
5445 enableval=$enable_gtk_peers; as_fn_error "No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" "$LINENO" 5
5446 fi
5447
5448
5449 # Check whether --enable-qt-peer was given.
5450 if test "${enable_qt_peer+set}" = set; then :
5451 enableval=$enable_qt_peer; case "${enableval}" in
5452 yes) COMPILE_QT_PEER=yes ;;
5453 no) COMPILE_QT_PEER=no ;;
5454 *) COMPILE_QT_PEER=yes ;;
5455 esac
5456 else
5457 COMPILE_QT_PEER=no
5458 fi
5459
5460 if test "x${COMPILE_QT_PEER}" = xyes; then
5461 CREATE_QT_PEER_LIBRARIES_TRUE=
5462 CREATE_QT_PEER_LIBRARIES_FALSE='#'
5463 else
5464 CREATE_QT_PEER_LIBRARIES_TRUE='#'
5465 CREATE_QT_PEER_LIBRARIES_FALSE=
5466 fi
5467
5468
5469 # Check whether --enable-plugin was given.
5470 if test "${enable_plugin+set}" = set; then :
5471 enableval=$enable_plugin; case "${enableval}" in
5472 yes) COMPILE_PLUGIN=yes ;;
5473 no) COMPILE_PLUGIN=no ;;
5474 *) COMPILE_PLUGIN=yes ;;
5475 esac
5476 else
5477 COMPILE_PLUGIN=yes
5478 fi
5479
5480 if test "x${COMPILE_PLUGIN}" = xyes; then
5481 CREATE_PLUGIN_TRUE=
5482 CREATE_PLUGIN_FALSE='#'
5483 else
5484 CREATE_PLUGIN_TRUE='#'
5485 CREATE_PLUGIN_FALSE=
5486 fi
5487
5488
5489 # Check whether --enable-gmp was given.
5490 if test "${enable_gmp+set}" = set; then :
5491 enableval=$enable_gmp; case "${enableval}" in
5492 yes|true) COMPILE_GMP=yes ;;
5493 no|false) COMPILE_GMP=no ;;
5494 *) COMPILE_GMP=yes ;;
5495 esac
5496 else
5497 COMPILE_GMP=yes
5498 fi
5499
5500
5501 # Check whether --enable-gjdoc was given.
5502 if test "${enable_gjdoc+set}" = set; then :
5503 enableval=$enable_gjdoc; case "${enableval}" in
5504 yes) COMPILE_GJDOC=yes ;;
5505 no) COMPILE_GJDOC=no ;;
5506 *) COMPILE_GJDOC=yes ;;
5507 esac
5508 else
5509 COMPILE_GJDOC=yes
5510 fi
5511
5512 if test "x${COMPILE_GJDOC}" = xyes; then
5513 CREATE_GJDOC_TRUE=
5514 CREATE_GJDOC_FALSE='#'
5515 else
5516 CREATE_GJDOC_TRUE='#'
5517 CREATE_GJDOC_FALSE=
5518 fi
5519
5520
5521
5522 multi_os_directory=`$CC -print-multi-os-directory`
5523 case $multi_os_directory in
5524 .) toolexeclibdir=${libdir} ;; # Avoid trailing /.
5525 *) toolexeclibdir=${libdir}/${multi_os_directory} ;;
5526 esac
5527
5528
5529
5530
5531 # Check whether --with-native-libdir was given.
5532 if test "${with_native_libdir+set}" = set; then :
5533 withval=$with_native_libdir;
5534 nativeexeclibdir=${withval}
5535
5536 else
5537
5538 nativeexeclibdir='${toolexeclibdir}/gcj-'`cat ${srcdir}/../../gcc/BASE-VER`-`awk -F: '/^[^#].*:/ { print $1 }' ${srcdir}/../libtool-version`
5539
5540 fi
5541
5542
5543
5544
5545
5546 # Check whether --with-glibj-dir was given.
5547 if test "${with_glibj_dir+set}" = set; then :
5548 withval=$with_glibj_dir;
5549 glibjdir=${withval}
5550
5551 else
5552
5553 glibjdir='${datadir}/${PACKAGE}'
5554
5555 fi
5556
5557
5558
5559
5560
5561 # Check whether --with-antlr-jar was given.
5562 if test "${with_antlr_jar+set}" = set; then :
5563 withval=$with_antlr_jar;
5564 ANTLR_JAR=$withval
5565
5566 else
5567
5568 ANTLR_JAR="$ANTLR_JAR"
5569
5570 fi
5571
5572
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the headers" >&5
5574 $as_echo_n "checking whether to regenerate the headers... " >&6; }
5575 # Check whether --enable-regen-headers was given.
5576 if test "${enable_regen_headers+set}" = set; then :
5577 enableval=$enable_regen_headers; case "${enableval}" in
5578 yes) REGENERATE_JNI_HEADERS=yes ;;
5579 no) REGENERATE_JNI_HEADERS=no ;;
5580 *) REGENERATE_JNI_HEADERS=yes ;;
5581 esac
5582 else
5583 if test -e ${srcdir}/include/java_lang_VMSystem.h; then
5584 REGENERATE_JNI_HEADERS=no ;
5585 else
5586 REGENERATE_JNI_HEADERS=yes ;
5587 fi
5588 fi
5589
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_JNI_HEADERS}" >&5
5591 $as_echo "${REGENERATE_JNI_HEADERS}" >&6; }
5592 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
5593 CREATE_JNI_HEADERS_TRUE=
5594 CREATE_JNI_HEADERS_FALSE='#'
5595 else
5596 CREATE_JNI_HEADERS_TRUE='#'
5597 CREATE_JNI_HEADERS_FALSE=
5598 fi
5599
5600
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the GJDoc parser" >&5
5602 $as_echo_n "checking whether to regenerate the GJDoc parser... " >&6; }
5603 # Check whether --enable-regen-gjdoc-parser was given.
5604 if test "${enable_regen_gjdoc_parser+set}" = set; then :
5605 enableval=$enable_regen_gjdoc_parser; case "${enableval}" in
5606 yes) REGENERATE_GJDOC_PARSER=yes ;;
5607 no) REGENERATE_GJDOC_PARSER=no ;;
5608 *) REGENERATE_GJDOC_PARSER=yes ;;
5609 esac
5610 else
5611 if test -e ${srcdir}/tools/generated/gnu/classpath/tools/gjdoc/expr/JavaLexer.java; then
5612 REGENERATE_GJDOC_PARSER=no ;
5613 else
5614 REGENERATE_GJDOC_PARSER=yes ;
5615 fi
5616 fi
5617
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_GJDOC_PARSER}" >&5
5619 $as_echo "${REGENERATE_GJDOC_PARSER}" >&6; }
5620 if test "x${REGENERATE_GJDOC_PARSER}" = xyes; then
5621 CREATE_GJDOC_PARSER_TRUE=
5622 CREATE_GJDOC_PARSER_FALSE='#'
5623 else
5624 CREATE_GJDOC_PARSER_TRUE='#'
5625 CREATE_GJDOC_PARSER_FALSE=
5626 fi
5627
5628
5629 # Check whether --enable-tool-wrappers was given.
5630 if test "${enable_tool_wrappers+set}" = set; then :
5631 enableval=$enable_tool_wrappers; case x"${enableval}" in
5632 xyes)
5633 COMPILE_WRAPPERS=yes;
5634 for ac_header in ltdl.h
5635 do :
5636 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
5637 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
5638 cat >>confdefs.h <<_ACEOF
5639 #define HAVE_LTDL_H 1
5640 _ACEOF
5641
5642 else
5643 as_fn_error "cannot find ltdl.h" "$LINENO" 5
5644 fi
5645
5646 done
5647
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
5649 $as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
5650 if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
5651 $as_echo_n "(cached) " >&6
5652 else
5653 ac_check_lib_save_LIBS=$LIBS
5654 LIBS="-lltdl $LIBS"
5655 if test x$gcc_no_link = xyes; then
5656 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5657 fi
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660
5661 /* Override any GCC internal prototype to avoid an error.
5662 Use char because int might match the return type of a GCC
5663 builtin and then its argument prototype would still apply. */
5664 #ifdef __cplusplus
5665 extern "C"
5666 #endif
5667 char lt_dlopen ();
5668 int
5669 main ()
5670 {
5671 return lt_dlopen ();
5672 ;
5673 return 0;
5674 }
5675 _ACEOF
5676 if ac_fn_c_try_link "$LINENO"; then :
5677 ac_cv_lib_ltdl_lt_dlopen=yes
5678 else
5679 ac_cv_lib_ltdl_lt_dlopen=no
5680 fi
5681 rm -f core conftest.err conftest.$ac_objext \
5682 conftest$ac_exeext conftest.$ac_ext
5683 LIBS=$ac_check_lib_save_LIBS
5684 fi
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
5686 $as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
5687 if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
5688 cat >>confdefs.h <<_ACEOF
5689 #define HAVE_LIBLTDL 1
5690 _ACEOF
5691
5692 LIBS="-lltdl $LIBS"
5693
5694 else
5695 as_fn_error "cannot find libltdl" "$LINENO" 5
5696 fi
5697
5698 ;;
5699 xno) COMPILE_WRAPPERS=no ;;
5700 x) COMPILE_WRAPPERS=yes ;;
5701 *) COMPILE_WRAPPERS=yes ;;
5702 esac
5703 else
5704 COMPILE_WRAPPERS=no
5705 fi
5706
5707 if test "x${COMPILE_WRAPPERS}" = xyes; then
5708 CREATE_WRAPPERS_TRUE=
5709 CREATE_WRAPPERS_FALSE='#'
5710 else
5711 CREATE_WRAPPERS_TRUE='#'
5712 CREATE_WRAPPERS_FALSE=
5713 fi
5714
5715
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5717 $as_echo_n "checking whether ln -s works... " >&6; }
5718 LN_S=$as_ln_s
5719 if test "$LN_S" = "ln -s"; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5721 $as_echo "yes" >&6; }
5722 else
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5724 $as_echo "no, using $LN_S" >&6; }
5725 fi
5726
5727
5728
5729
5730 # Check whether --enable-static was given.
5731 if test "${enable_static+set}" = set; then :
5732 enableval=$enable_static; p=${PACKAGE-default}
5733 case $enableval in
5734 yes) enable_static=yes ;;
5735 no) enable_static=no ;;
5736 *)
5737 enable_static=no
5738 # Look at the argument we got. We use all the common list separators.
5739 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5740 for pkg in $enableval; do
5741 IFS="$lt_save_ifs"
5742 if test "X$pkg" = "X$p"; then
5743 enable_static=yes
5744 fi
5745 done
5746 IFS="$lt_save_ifs"
5747 ;;
5748 esac
5749 else
5750 enable_static=no
5751 fi
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761 case `pwd` in
5762 *\ * | *\ *)
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5764 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5765 esac
5766
5767
5768
5769 macro_version='2.2.7a'
5770 macro_revision='1.3134'
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784 ltmain="$ac_aux_dir/ltmain.sh"
5785
5786 # Backslashify metacharacters that are still active within
5787 # double-quoted strings.
5788 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5789
5790 # Same as above, but do not quote variable references.
5791 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5792
5793 # Sed substitution to delay expansion of an escaped shell variable in a
5794 # double_quote_subst'ed string.
5795 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5796
5797 # Sed substitution to delay expansion of an escaped single quote.
5798 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5799
5800 # Sed substitution to avoid accidental globbing in evaled expressions
5801 no_glob_subst='s/\*/\\\*/g'
5802
5803 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5804 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5805 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5806
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5808 $as_echo_n "checking how to print strings... " >&6; }
5809 # Test print first, because it will be a builtin if present.
5810 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5811 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5812 ECHO='print -r --'
5813 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5814 ECHO='printf %s\n'
5815 else
5816 # Use this function as a fallback that always works.
5817 func_fallback_echo ()
5818 {
5819 eval 'cat <<_LTECHO_EOF
5820 $1
5821 _LTECHO_EOF'
5822 }
5823 ECHO='func_fallback_echo'
5824 fi
5825
5826 # func_echo_all arg...
5827 # Invoke $ECHO with all args, space-separated.
5828 func_echo_all ()
5829 {
5830 $ECHO ""
5831 }
5832
5833 case "$ECHO" in
5834 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5835 $as_echo "printf" >&6; } ;;
5836 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5837 $as_echo "print -r" >&6; } ;;
5838 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5839 $as_echo "cat" >&6; } ;;
5840 esac
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5856 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5857 if test "${ac_cv_path_SED+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5861 for ac_i in 1 2 3 4 5 6 7; do
5862 ac_script="$ac_script$as_nl$ac_script"
5863 done
5864 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5865 { ac_script=; unset ac_script;}
5866 if test -z "$SED"; then
5867 ac_path_SED_found=false
5868 # Loop through the user's path and test for each of PROGNAME-LIST
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5871 do
5872 IFS=$as_save_IFS
5873 test -z "$as_dir" && as_dir=.
5874 for ac_prog in sed gsed; do
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5877 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5878 # Check for GNU ac_path_SED and select it if it is found.
5879 # Check for GNU $ac_path_SED
5880 case `"$ac_path_SED" --version 2>&1` in
5881 *GNU*)
5882 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5883 *)
5884 ac_count=0
5885 $as_echo_n 0123456789 >"conftest.in"
5886 while :
5887 do
5888 cat "conftest.in" "conftest.in" >"conftest.tmp"
5889 mv "conftest.tmp" "conftest.in"
5890 cp "conftest.in" "conftest.nl"
5891 $as_echo '' >> "conftest.nl"
5892 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5893 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5894 as_fn_arith $ac_count + 1 && ac_count=$as_val
5895 if test $ac_count -gt ${ac_path_SED_max-0}; then
5896 # Best one so far, save it but keep looking for a better one
5897 ac_cv_path_SED="$ac_path_SED"
5898 ac_path_SED_max=$ac_count
5899 fi
5900 # 10*(2^10) chars as input seems more than enough
5901 test $ac_count -gt 10 && break
5902 done
5903 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5904 esac
5905
5906 $ac_path_SED_found && break 3
5907 done
5908 done
5909 done
5910 IFS=$as_save_IFS
5911 if test -z "$ac_cv_path_SED"; then
5912 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5913 fi
5914 else
5915 ac_cv_path_SED=$SED
5916 fi
5917
5918 fi
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5920 $as_echo "$ac_cv_path_SED" >&6; }
5921 SED="$ac_cv_path_SED"
5922 rm -f conftest.sed
5923
5924 test -z "$SED" && SED=sed
5925 Xsed="$SED -e 1s/^X//"
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5938 $as_echo_n "checking for fgrep... " >&6; }
5939 if test "${ac_cv_path_FGREP+set}" = set; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5943 then ac_cv_path_FGREP="$GREP -F"
5944 else
5945 if test -z "$FGREP"; then
5946 ac_path_FGREP_found=false
5947 # Loop through the user's path and test for each of PROGNAME-LIST
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5950 do
5951 IFS=$as_save_IFS
5952 test -z "$as_dir" && as_dir=.
5953 for ac_prog in fgrep; do
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5956 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5957 # Check for GNU ac_path_FGREP and select it if it is found.
5958 # Check for GNU $ac_path_FGREP
5959 case `"$ac_path_FGREP" --version 2>&1` in
5960 *GNU*)
5961 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5962 *)
5963 ac_count=0
5964 $as_echo_n 0123456789 >"conftest.in"
5965 while :
5966 do
5967 cat "conftest.in" "conftest.in" >"conftest.tmp"
5968 mv "conftest.tmp" "conftest.in"
5969 cp "conftest.in" "conftest.nl"
5970 $as_echo 'FGREP' >> "conftest.nl"
5971 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5972 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5973 as_fn_arith $ac_count + 1 && ac_count=$as_val
5974 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5975 # Best one so far, save it but keep looking for a better one
5976 ac_cv_path_FGREP="$ac_path_FGREP"
5977 ac_path_FGREP_max=$ac_count
5978 fi
5979 # 10*(2^10) chars as input seems more than enough
5980 test $ac_count -gt 10 && break
5981 done
5982 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5983 esac
5984
5985 $ac_path_FGREP_found && break 3
5986 done
5987 done
5988 done
5989 IFS=$as_save_IFS
5990 if test -z "$ac_cv_path_FGREP"; then
5991 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5992 fi
5993 else
5994 ac_cv_path_FGREP=$FGREP
5995 fi
5996
5997 fi
5998 fi
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6000 $as_echo "$ac_cv_path_FGREP" >&6; }
6001 FGREP="$ac_cv_path_FGREP"
6002
6003
6004 test -z "$GREP" && GREP=grep
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024 # Check whether --with-gnu-ld was given.
6025 if test "${with_gnu_ld+set}" = set; then :
6026 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6027 else
6028 with_gnu_ld=no
6029 fi
6030
6031 ac_prog=ld
6032 if test "$GCC" = yes; then
6033 # Check if gcc -print-prog-name=ld gives a path.
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6035 $as_echo_n "checking for ld used by $CC... " >&6; }
6036 case $host in
6037 *-*-mingw*)
6038 # gcc leaves a trailing carriage return which upsets mingw
6039 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6040 *)
6041 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6042 esac
6043 case $ac_prog in
6044 # Accept absolute paths.
6045 [\\/]* | ?:[\\/]*)
6046 re_direlt='/[^/][^/]*/\.\./'
6047 # Canonicalize the pathname of ld
6048 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6049 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6050 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6051 done
6052 test -z "$LD" && LD="$ac_prog"
6053 ;;
6054 "")
6055 # If it fails, then pretend we aren't using GCC.
6056 ac_prog=ld
6057 ;;
6058 *)
6059 # If it is relative, then search for the first ld in PATH.
6060 with_gnu_ld=unknown
6061 ;;
6062 esac
6063 elif test "$with_gnu_ld" = yes; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6065 $as_echo_n "checking for GNU ld... " >&6; }
6066 else
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6068 $as_echo_n "checking for non-GNU ld... " >&6; }
6069 fi
6070 if test "${lt_cv_path_LD+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 if test -z "$LD"; then
6074 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6075 for ac_dir in $PATH; do
6076 IFS="$lt_save_ifs"
6077 test -z "$ac_dir" && ac_dir=.
6078 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6079 lt_cv_path_LD="$ac_dir/$ac_prog"
6080 # Check to see if the program is GNU ld. I'd rather use --version,
6081 # but apparently some variants of GNU ld only accept -v.
6082 # Break only if it was the GNU/non-GNU ld that we prefer.
6083 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6084 *GNU* | *'with BFD'*)
6085 test "$with_gnu_ld" != no && break
6086 ;;
6087 *)
6088 test "$with_gnu_ld" != yes && break
6089 ;;
6090 esac
6091 fi
6092 done
6093 IFS="$lt_save_ifs"
6094 else
6095 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6096 fi
6097 fi
6098
6099 LD="$lt_cv_path_LD"
6100 if test -n "$LD"; then
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6102 $as_echo "$LD" >&6; }
6103 else
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 $as_echo "no" >&6; }
6106 fi
6107 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6109 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6110 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6111 $as_echo_n "(cached) " >&6
6112 else
6113 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6114 case `$LD -v 2>&1 </dev/null` in
6115 *GNU* | *'with BFD'*)
6116 lt_cv_prog_gnu_ld=yes
6117 ;;
6118 *)
6119 lt_cv_prog_gnu_ld=no
6120 ;;
6121 esac
6122 fi
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6124 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6125 with_gnu_ld=$lt_cv_prog_gnu_ld
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6136 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6137 if test "${lt_cv_path_NM+set}" = set; then :
6138 $as_echo_n "(cached) " >&6
6139 else
6140 if test -n "$NM"; then
6141 # Let the user override the test.
6142 lt_cv_path_NM="$NM"
6143 else
6144 lt_nm_to_check="${ac_tool_prefix}nm"
6145 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6146 lt_nm_to_check="$lt_nm_to_check nm"
6147 fi
6148 for lt_tmp_nm in $lt_nm_to_check; do
6149 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6150 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6151 IFS="$lt_save_ifs"
6152 test -z "$ac_dir" && ac_dir=.
6153 tmp_nm="$ac_dir/$lt_tmp_nm"
6154 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6155 # Check to see if the nm accepts a BSD-compat flag.
6156 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6157 # nm: unknown option "B" ignored
6158 # Tru64's nm complains that /dev/null is an invalid object file
6159 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6160 */dev/null* | *'Invalid file or object type'*)
6161 lt_cv_path_NM="$tmp_nm -B"
6162 break
6163 ;;
6164 *)
6165 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6166 */dev/null*)
6167 lt_cv_path_NM="$tmp_nm -p"
6168 break
6169 ;;
6170 *)
6171 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6172 continue # so that we can try to find one that supports BSD flags
6173 ;;
6174 esac
6175 ;;
6176 esac
6177 fi
6178 done
6179 IFS="$lt_save_ifs"
6180 done
6181 : ${lt_cv_path_NM=no}
6182 fi
6183 fi
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6185 $as_echo "$lt_cv_path_NM" >&6; }
6186 if test "$lt_cv_path_NM" != "no"; then
6187 NM="$lt_cv_path_NM"
6188 else
6189 # Didn't find any BSD compatible name lister, look for dumpbin.
6190 if test -n "$DUMPBIN"; then :
6191 # Let the user override the test.
6192 else
6193 if test -n "$ac_tool_prefix"; then
6194 for ac_prog in dumpbin "link -dump"
6195 do
6196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6199 $as_echo_n "checking for $ac_word... " >&6; }
6200 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6201 $as_echo_n "(cached) " >&6
6202 else
6203 if test -n "$DUMPBIN"; then
6204 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6205 else
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6208 do
6209 IFS=$as_save_IFS
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6213 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 break 2
6216 fi
6217 done
6218 done
6219 IFS=$as_save_IFS
6220
6221 fi
6222 fi
6223 DUMPBIN=$ac_cv_prog_DUMPBIN
6224 if test -n "$DUMPBIN"; then
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6226 $as_echo "$DUMPBIN" >&6; }
6227 else
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229 $as_echo "no" >&6; }
6230 fi
6231
6232
6233 test -n "$DUMPBIN" && break
6234 done
6235 fi
6236 if test -z "$DUMPBIN"; then
6237 ac_ct_DUMPBIN=$DUMPBIN
6238 for ac_prog in dumpbin "link -dump"
6239 do
6240 # Extract the first word of "$ac_prog", so it can be a program name with args.
6241 set dummy $ac_prog; ac_word=$2
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243 $as_echo_n "checking for $ac_word... " >&6; }
6244 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6245 $as_echo_n "(cached) " >&6
6246 else
6247 if test -n "$ac_ct_DUMPBIN"; then
6248 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6249 else
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH
6252 do
6253 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6257 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6259 break 2
6260 fi
6261 done
6262 done
6263 IFS=$as_save_IFS
6264
6265 fi
6266 fi
6267 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6268 if test -n "$ac_ct_DUMPBIN"; then
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6270 $as_echo "$ac_ct_DUMPBIN" >&6; }
6271 else
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 $as_echo "no" >&6; }
6274 fi
6275
6276
6277 test -n "$ac_ct_DUMPBIN" && break
6278 done
6279
6280 if test "x$ac_ct_DUMPBIN" = x; then
6281 DUMPBIN=":"
6282 else
6283 case $cross_compiling:$ac_tool_warned in
6284 yes:)
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6287 ac_tool_warned=yes ;;
6288 esac
6289 DUMPBIN=$ac_ct_DUMPBIN
6290 fi
6291 fi
6292
6293 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6294 *COFF*)
6295 DUMPBIN="$DUMPBIN -symbols"
6296 ;;
6297 *)
6298 DUMPBIN=:
6299 ;;
6300 esac
6301 fi
6302
6303 if test "$DUMPBIN" != ":"; then
6304 NM="$DUMPBIN"
6305 fi
6306 fi
6307 test -z "$NM" && NM=nm
6308
6309
6310
6311
6312
6313
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6315 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6316 if test "${lt_cv_nm_interface+set}" = set; then :
6317 $as_echo_n "(cached) " >&6
6318 else
6319 lt_cv_nm_interface="BSD nm"
6320 echo "int some_variable = 0;" > conftest.$ac_ext
6321 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6322 (eval "$ac_compile" 2>conftest.err)
6323 cat conftest.err >&5
6324 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6325 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6326 cat conftest.err >&5
6327 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6328 cat conftest.out >&5
6329 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6330 lt_cv_nm_interface="MS dumpbin"
6331 fi
6332 rm -f conftest*
6333 fi
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6335 $as_echo "$lt_cv_nm_interface" >&6; }
6336
6337 # find the maximum length of command line arguments
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6339 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6340 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 i=0
6344 teststring="ABCD"
6345
6346 case $build_os in
6347 msdosdjgpp*)
6348 # On DJGPP, this test can blow up pretty badly due to problems in libc
6349 # (any single argument exceeding 2000 bytes causes a buffer overrun
6350 # during glob expansion). Even if it were fixed, the result of this
6351 # check would be larger than it should be.
6352 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6353 ;;
6354
6355 gnu*)
6356 # Under GNU Hurd, this test is not required because there is
6357 # no limit to the length of command line arguments.
6358 # Libtool will interpret -1 as no limit whatsoever
6359 lt_cv_sys_max_cmd_len=-1;
6360 ;;
6361
6362 cygwin* | mingw* | cegcc*)
6363 # On Win9x/ME, this test blows up -- it succeeds, but takes
6364 # about 5 minutes as the teststring grows exponentially.
6365 # Worse, since 9x/ME are not pre-emptively multitasking,
6366 # you end up with a "frozen" computer, even though with patience
6367 # the test eventually succeeds (with a max line length of 256k).
6368 # Instead, let's just punt: use the minimum linelength reported by
6369 # all of the supported platforms: 8192 (on NT/2K/XP).
6370 lt_cv_sys_max_cmd_len=8192;
6371 ;;
6372
6373 mint*)
6374 # On MiNT this can take a long time and run out of memory.
6375 lt_cv_sys_max_cmd_len=8192;
6376 ;;
6377
6378 amigaos*)
6379 # On AmigaOS with pdksh, this test takes hours, literally.
6380 # So we just punt and use a minimum line length of 8192.
6381 lt_cv_sys_max_cmd_len=8192;
6382 ;;
6383
6384 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6385 # This has been around since 386BSD, at least. Likely further.
6386 if test -x /sbin/sysctl; then
6387 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6388 elif test -x /usr/sbin/sysctl; then
6389 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6390 else
6391 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6392 fi
6393 # And add a safety zone
6394 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6395 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6396 ;;
6397
6398 interix*)
6399 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6400 lt_cv_sys_max_cmd_len=196608
6401 ;;
6402
6403 osf*)
6404 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6405 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6406 # nice to cause kernel panics so lets avoid the loop below.
6407 # First set a reasonable default.
6408 lt_cv_sys_max_cmd_len=16384
6409 #
6410 if test -x /sbin/sysconfig; then
6411 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6412 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6413 esac
6414 fi
6415 ;;
6416 sco3.2v5*)
6417 lt_cv_sys_max_cmd_len=102400
6418 ;;
6419 sysv5* | sco5v6* | sysv4.2uw2*)
6420 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6421 if test -n "$kargmax"; then
6422 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6423 else
6424 lt_cv_sys_max_cmd_len=32768
6425 fi
6426 ;;
6427 *)
6428 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6429 if test -n "$lt_cv_sys_max_cmd_len"; then
6430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6431 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6432 else
6433 # Make teststring a little bigger before we do anything with it.
6434 # a 1K string should be a reasonable start.
6435 for i in 1 2 3 4 5 6 7 8 ; do
6436 teststring=$teststring$teststring
6437 done
6438 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6439 # If test is not a shell built-in, we'll probably end up computing a
6440 # maximum length that is only half of the actual maximum length, but
6441 # we can't tell.
6442 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6443 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6444 test $i != 17 # 1/2 MB should be enough
6445 do
6446 i=`expr $i + 1`
6447 teststring=$teststring$teststring
6448 done
6449 # Only check the string length outside the loop.
6450 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6451 teststring=
6452 # Add a significant safety factor because C++ compilers can tack on
6453 # massive amounts of additional arguments before passing them to the
6454 # linker. It appears as though 1/2 is a usable value.
6455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6456 fi
6457 ;;
6458 esac
6459
6460 fi
6461
6462 if test -n $lt_cv_sys_max_cmd_len ; then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6464 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6465 else
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6467 $as_echo "none" >&6; }
6468 fi
6469 max_cmd_len=$lt_cv_sys_max_cmd_len
6470
6471
6472
6473
6474
6475
6476 : ${CP="cp -f"}
6477 : ${MV="mv -f"}
6478 : ${RM="rm -f"}
6479
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6481 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6482 # Try some XSI features
6483 xsi_shell=no
6484 ( _lt_dummy="a/b/c"
6485 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6486 = c,a/b,, \
6487 && eval 'test $(( 1 + 1 )) -eq 2 \
6488 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6489 && xsi_shell=yes
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6491 $as_echo "$xsi_shell" >&6; }
6492
6493
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6495 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6496 lt_shell_append=no
6497 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6498 >/dev/null 2>&1 \
6499 && lt_shell_append=yes
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6501 $as_echo "$lt_shell_append" >&6; }
6502
6503
6504 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6505 lt_unset=unset
6506 else
6507 lt_unset=false
6508 fi
6509
6510
6511
6512
6513
6514 # test EBCDIC or ASCII
6515 case `echo X|tr X '\101'` in
6516 A) # ASCII based system
6517 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6518 lt_SP2NL='tr \040 \012'
6519 lt_NL2SP='tr \015\012 \040\040'
6520 ;;
6521 *) # EBCDIC based system
6522 lt_SP2NL='tr \100 \n'
6523 lt_NL2SP='tr \r\n \100\100'
6524 ;;
6525 esac
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6536 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6537 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6538 $as_echo_n "(cached) " >&6
6539 else
6540 lt_cv_ld_reload_flag='-r'
6541 fi
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6543 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6544 reload_flag=$lt_cv_ld_reload_flag
6545 case $reload_flag in
6546 "" | " "*) ;;
6547 *) reload_flag=" $reload_flag" ;;
6548 esac
6549 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6550 case $host_os in
6551 darwin*)
6552 if test "$GCC" = yes; then
6553 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6554 else
6555 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6556 fi
6557 ;;
6558 esac
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568 if test -n "$ac_tool_prefix"; then
6569 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6570 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 $as_echo_n "checking for $ac_word... " >&6; }
6573 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576 if test -n "$OBJDUMP"; then
6577 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6578 else
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6581 do
6582 IFS=$as_save_IFS
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6586 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 break 2
6589 fi
6590 done
6591 done
6592 IFS=$as_save_IFS
6593
6594 fi
6595 fi
6596 OBJDUMP=$ac_cv_prog_OBJDUMP
6597 if test -n "$OBJDUMP"; then
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6599 $as_echo "$OBJDUMP" >&6; }
6600 else
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6603 fi
6604
6605
6606 fi
6607 if test -z "$ac_cv_prog_OBJDUMP"; then
6608 ac_ct_OBJDUMP=$OBJDUMP
6609 # Extract the first word of "objdump", so it can be a program name with args.
6610 set dummy objdump; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6614 $as_echo_n "(cached) " >&6
6615 else
6616 if test -n "$ac_ct_OBJDUMP"; then
6617 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6618 else
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6621 do
6622 IFS=$as_save_IFS
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6626 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 break 2
6629 fi
6630 done
6631 done
6632 IFS=$as_save_IFS
6633
6634 fi
6635 fi
6636 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6637 if test -n "$ac_ct_OBJDUMP"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6639 $as_echo "$ac_ct_OBJDUMP" >&6; }
6640 else
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6643 fi
6644
6645 if test "x$ac_ct_OBJDUMP" = x; then
6646 OBJDUMP="false"
6647 else
6648 case $cross_compiling:$ac_tool_warned in
6649 yes:)
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6652 ac_tool_warned=yes ;;
6653 esac
6654 OBJDUMP=$ac_ct_OBJDUMP
6655 fi
6656 else
6657 OBJDUMP="$ac_cv_prog_OBJDUMP"
6658 fi
6659
6660 test -z "$OBJDUMP" && OBJDUMP=objdump
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6671 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6672 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675 lt_cv_file_magic_cmd='$MAGIC_CMD'
6676 lt_cv_file_magic_test_file=
6677 lt_cv_deplibs_check_method='unknown'
6678 # Need to set the preceding variable on all platforms that support
6679 # interlibrary dependencies.
6680 # 'none' -- dependencies not supported.
6681 # `unknown' -- same as none, but documents that we really don't know.
6682 # 'pass_all' -- all dependencies passed with no checks.
6683 # 'test_compile' -- check by making test program.
6684 # 'file_magic [[regex]]' -- check by looking for files in library path
6685 # which responds to the $file_magic_cmd with a given extended regex.
6686 # If you have `file' or equivalent on your system and you're not sure
6687 # whether `pass_all' will *always* work, you probably want this one.
6688
6689 case $host_os in
6690 aix[4-9]*)
6691 lt_cv_deplibs_check_method=pass_all
6692 ;;
6693
6694 beos*)
6695 lt_cv_deplibs_check_method=pass_all
6696 ;;
6697
6698 bsdi[45]*)
6699 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6700 lt_cv_file_magic_cmd='/usr/bin/file -L'
6701 lt_cv_file_magic_test_file=/shlib/libc.so
6702 ;;
6703
6704 cygwin*)
6705 # func_win32_libid is a shell function defined in ltmain.sh
6706 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6707 lt_cv_file_magic_cmd='func_win32_libid'
6708 ;;
6709
6710 mingw* | pw32*)
6711 # Base MSYS/MinGW do not provide the 'file' command needed by
6712 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6713 # unless we find 'file', for example because we are cross-compiling.
6714 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6715 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6716 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6717 lt_cv_file_magic_cmd='func_win32_libid'
6718 else
6719 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6720 lt_cv_file_magic_cmd='$OBJDUMP -f'
6721 fi
6722 ;;
6723
6724 cegcc*)
6725 # use the weaker test based on 'objdump'. See mingw*.
6726 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6727 lt_cv_file_magic_cmd='$OBJDUMP -f'
6728 ;;
6729
6730 darwin* | rhapsody*)
6731 lt_cv_deplibs_check_method=pass_all
6732 ;;
6733
6734 freebsd* | dragonfly*)
6735 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6736 case $host_cpu in
6737 i*86 )
6738 # Not sure whether the presence of OpenBSD here was a mistake.
6739 # Let's accept both of them until this is cleared up.
6740 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6741 lt_cv_file_magic_cmd=/usr/bin/file
6742 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6743 ;;
6744 esac
6745 else
6746 lt_cv_deplibs_check_method=pass_all
6747 fi
6748 ;;
6749
6750 gnu*)
6751 lt_cv_deplibs_check_method=pass_all
6752 ;;
6753
6754 haiku*)
6755 lt_cv_deplibs_check_method=pass_all
6756 ;;
6757
6758 hpux10.20* | hpux11*)
6759 lt_cv_file_magic_cmd=/usr/bin/file
6760 case $host_cpu in
6761 ia64*)
6762 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6763 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6764 ;;
6765 hppa*64*)
6766 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]'
6767 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6768 ;;
6769 *)
6770 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6771 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6772 ;;
6773 esac
6774 ;;
6775
6776 interix[3-9]*)
6777 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6778 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6779 ;;
6780
6781 irix5* | irix6* | nonstopux*)
6782 case $LD in
6783 *-32|*"-32 ") libmagic=32-bit;;
6784 *-n32|*"-n32 ") libmagic=N32;;
6785 *-64|*"-64 ") libmagic=64-bit;;
6786 *) libmagic=never-match;;
6787 esac
6788 lt_cv_deplibs_check_method=pass_all
6789 ;;
6790
6791 # This must be Linux ELF.
6792 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6793 lt_cv_deplibs_check_method=pass_all
6794 ;;
6795
6796 netbsd*)
6797 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6798 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6799 else
6800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6801 fi
6802 ;;
6803
6804 newos6*)
6805 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6806 lt_cv_file_magic_cmd=/usr/bin/file
6807 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6808 ;;
6809
6810 *nto* | *qnx*)
6811 lt_cv_deplibs_check_method=pass_all
6812 ;;
6813
6814 openbsd*)
6815 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6817 else
6818 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6819 fi
6820 ;;
6821
6822 osf3* | osf4* | osf5*)
6823 lt_cv_deplibs_check_method=pass_all
6824 ;;
6825
6826 rdos*)
6827 lt_cv_deplibs_check_method=pass_all
6828 ;;
6829
6830 solaris*)
6831 lt_cv_deplibs_check_method=pass_all
6832 ;;
6833
6834 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6835 lt_cv_deplibs_check_method=pass_all
6836 ;;
6837
6838 sysv4 | sysv4.3*)
6839 case $host_vendor in
6840 motorola)
6841 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]'
6842 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6843 ;;
6844 ncr)
6845 lt_cv_deplibs_check_method=pass_all
6846 ;;
6847 sequent)
6848 lt_cv_file_magic_cmd='/bin/file'
6849 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6850 ;;
6851 sni)
6852 lt_cv_file_magic_cmd='/bin/file'
6853 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6854 lt_cv_file_magic_test_file=/lib/libc.so
6855 ;;
6856 siemens)
6857 lt_cv_deplibs_check_method=pass_all
6858 ;;
6859 pc)
6860 lt_cv_deplibs_check_method=pass_all
6861 ;;
6862 esac
6863 ;;
6864
6865 tpf*)
6866 lt_cv_deplibs_check_method=pass_all
6867 ;;
6868 esac
6869
6870 fi
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6872 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6873 file_magic_cmd=$lt_cv_file_magic_cmd
6874 deplibs_check_method=$lt_cv_deplibs_check_method
6875 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888 if test -n "$ac_tool_prefix"; then
6889 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6890 set dummy ${ac_tool_prefix}ar; ac_word=$2
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892 $as_echo_n "checking for $ac_word... " >&6; }
6893 if test "${ac_cv_prog_AR+set}" = set; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 if test -n "$AR"; then
6897 ac_cv_prog_AR="$AR" # Let the user override the test.
6898 else
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_prog_AR="${ac_tool_prefix}ar"
6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910 done
6911 done
6912 IFS=$as_save_IFS
6913
6914 fi
6915 fi
6916 AR=$ac_cv_prog_AR
6917 if test -n "$AR"; then
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6919 $as_echo "$AR" >&6; }
6920 else
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922 $as_echo "no" >&6; }
6923 fi
6924
6925
6926 fi
6927 if test -z "$ac_cv_prog_AR"; then
6928 ac_ct_AR=$AR
6929 # Extract the first word of "ar", so it can be a program name with args.
6930 set dummy ar; ac_word=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 if test -n "$ac_ct_AR"; then
6937 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6938 else
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6941 do
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6946 ac_cv_prog_ac_ct_AR="ar"
6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 break 2
6949 fi
6950 done
6951 done
6952 IFS=$as_save_IFS
6953
6954 fi
6955 fi
6956 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6957 if test -n "$ac_ct_AR"; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6959 $as_echo "$ac_ct_AR" >&6; }
6960 else
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962 $as_echo "no" >&6; }
6963 fi
6964
6965 if test "x$ac_ct_AR" = x; then
6966 AR="false"
6967 else
6968 case $cross_compiling:$ac_tool_warned in
6969 yes:)
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6972 ac_tool_warned=yes ;;
6973 esac
6974 AR=$ac_ct_AR
6975 fi
6976 else
6977 AR="$ac_cv_prog_AR"
6978 fi
6979
6980 test -z "$AR" && AR=ar
6981 test -z "$AR_FLAGS" && AR_FLAGS=cru
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993 if test -n "$ac_tool_prefix"; then
6994 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6995 set dummy ${ac_tool_prefix}strip; ac_word=$2
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997 $as_echo_n "checking for $ac_word... " >&6; }
6998 if test "${ac_cv_prog_STRIP+set}" = set; then :
6999 $as_echo_n "(cached) " >&6
7000 else
7001 if test -n "$STRIP"; then
7002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7003 else
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 for as_dir in $PATH
7006 do
7007 IFS=$as_save_IFS
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7011 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 break 2
7014 fi
7015 done
7016 done
7017 IFS=$as_save_IFS
7018
7019 fi
7020 fi
7021 STRIP=$ac_cv_prog_STRIP
7022 if test -n "$STRIP"; then
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7024 $as_echo "$STRIP" >&6; }
7025 else
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027 $as_echo "no" >&6; }
7028 fi
7029
7030
7031 fi
7032 if test -z "$ac_cv_prog_STRIP"; then
7033 ac_ct_STRIP=$STRIP
7034 # Extract the first word of "strip", so it can be a program name with args.
7035 set dummy strip; ac_word=$2
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037 $as_echo_n "checking for $ac_word... " >&6; }
7038 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7039 $as_echo_n "(cached) " >&6
7040 else
7041 if test -n "$ac_ct_STRIP"; then
7042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7043 else
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 for as_dir in $PATH
7046 do
7047 IFS=$as_save_IFS
7048 test -z "$as_dir" && as_dir=.
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7051 ac_cv_prog_ac_ct_STRIP="strip"
7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 break 2
7054 fi
7055 done
7056 done
7057 IFS=$as_save_IFS
7058
7059 fi
7060 fi
7061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7062 if test -n "$ac_ct_STRIP"; then
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7064 $as_echo "$ac_ct_STRIP" >&6; }
7065 else
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067 $as_echo "no" >&6; }
7068 fi
7069
7070 if test "x$ac_ct_STRIP" = x; then
7071 STRIP=":"
7072 else
7073 case $cross_compiling:$ac_tool_warned in
7074 yes:)
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077 ac_tool_warned=yes ;;
7078 esac
7079 STRIP=$ac_ct_STRIP
7080 fi
7081 else
7082 STRIP="$ac_cv_prog_STRIP"
7083 fi
7084
7085 test -z "$STRIP" && STRIP=:
7086
7087
7088
7089
7090
7091
7092 if test -n "$ac_tool_prefix"; then
7093 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7094 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096 $as_echo_n "checking for $ac_word... " >&6; }
7097 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7098 $as_echo_n "(cached) " >&6
7099 else
7100 if test -n "$RANLIB"; then
7101 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7102 else
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH
7105 do
7106 IFS=$as_save_IFS
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7110 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 break 2
7113 fi
7114 done
7115 done
7116 IFS=$as_save_IFS
7117
7118 fi
7119 fi
7120 RANLIB=$ac_cv_prog_RANLIB
7121 if test -n "$RANLIB"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7123 $as_echo "$RANLIB" >&6; }
7124 else
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7127 fi
7128
7129
7130 fi
7131 if test -z "$ac_cv_prog_RANLIB"; then
7132 ac_ct_RANLIB=$RANLIB
7133 # Extract the first word of "ranlib", so it can be a program name with args.
7134 set dummy ranlib; ac_word=$2
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136 $as_echo_n "checking for $ac_word... " >&6; }
7137 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7138 $as_echo_n "(cached) " >&6
7139 else
7140 if test -n "$ac_ct_RANLIB"; then
7141 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7142 else
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 for as_dir in $PATH
7145 do
7146 IFS=$as_save_IFS
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7150 ac_cv_prog_ac_ct_RANLIB="ranlib"
7151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 break 2
7153 fi
7154 done
7155 done
7156 IFS=$as_save_IFS
7157
7158 fi
7159 fi
7160 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7161 if test -n "$ac_ct_RANLIB"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7163 $as_echo "$ac_ct_RANLIB" >&6; }
7164 else
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }
7167 fi
7168
7169 if test "x$ac_ct_RANLIB" = x; then
7170 RANLIB=":"
7171 else
7172 case $cross_compiling:$ac_tool_warned in
7173 yes:)
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7176 ac_tool_warned=yes ;;
7177 esac
7178 RANLIB=$ac_ct_RANLIB
7179 fi
7180 else
7181 RANLIB="$ac_cv_prog_RANLIB"
7182 fi
7183
7184 test -z "$RANLIB" && RANLIB=:
7185
7186
7187
7188
7189
7190
7191 # Determine commands to create old-style static archives.
7192 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7193 old_postinstall_cmds='chmod 644 $oldlib'
7194 old_postuninstall_cmds=
7195
7196 if test -n "$RANLIB"; then
7197 case $host_os in
7198 openbsd*)
7199 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7200 ;;
7201 *)
7202 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7203 ;;
7204 esac
7205 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7206 fi
7207
7208 case $host_os in
7209 darwin*)
7210 lock_old_archive_extraction=yes ;;
7211 *)
7212 lock_old_archive_extraction=no ;;
7213 esac
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
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253 # If no C compiler was specified, use CC.
7254 LTCC=${LTCC-"$CC"}
7255
7256 # If no C compiler flags were specified, use CFLAGS.
7257 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7258
7259 # Allow CC to be a program name with arguments.
7260 compiler=$CC
7261
7262
7263 # Check for command to grab the raw symbol name followed by C symbol from nm.
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7265 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7266 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7267 $as_echo_n "(cached) " >&6
7268 else
7269
7270 # These are sane defaults that work on at least a few old systems.
7271 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7272
7273 # Character class describing NM global symbol codes.
7274 symcode='[BCDEGRST]'
7275
7276 # Regexp to match symbols that can be accessed directly from C.
7277 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7278
7279 # Define system-specific variables.
7280 case $host_os in
7281 aix*)
7282 symcode='[BCDT]'
7283 ;;
7284 cygwin* | mingw* | pw32* | cegcc*)
7285 symcode='[ABCDGISTW]'
7286 ;;
7287 hpux*)
7288 if test "$host_cpu" = ia64; then
7289 symcode='[ABCDEGRST]'
7290 fi
7291 ;;
7292 irix* | nonstopux*)
7293 symcode='[BCDEGRST]'
7294 ;;
7295 osf*)
7296 symcode='[BCDEGQRST]'
7297 ;;
7298 solaris*)
7299 symcode='[BDRT]'
7300 ;;
7301 sco3.2v5*)
7302 symcode='[DT]'
7303 ;;
7304 sysv4.2uw2*)
7305 symcode='[DT]'
7306 ;;
7307 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7308 symcode='[ABDT]'
7309 ;;
7310 sysv4)
7311 symcode='[DFNSTU]'
7312 ;;
7313 esac
7314
7315 # If we're using GNU nm, then use its standard symbol codes.
7316 case `$NM -V 2>&1` in
7317 *GNU* | *'with BFD'*)
7318 symcode='[ABCDGIRSTW]' ;;
7319 esac
7320
7321 # Transform an extracted symbol line into a proper C declaration.
7322 # Some systems (esp. on ia64) link data and code symbols differently,
7323 # so use this general approach.
7324 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7325
7326 # Transform an extracted symbol line into symbol name and symbol address
7327 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7328 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'"
7329
7330 # Handle CRLF in mingw tool chain
7331 opt_cr=
7332 case $build_os in
7333 mingw*)
7334 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7335 ;;
7336 esac
7337
7338 # Try without a prefix underscore, then with it.
7339 for ac_symprfx in "" "_"; do
7340
7341 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7342 symxfrm="\\1 $ac_symprfx\\2 \\2"
7343
7344 # Write the raw and C identifiers.
7345 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7346 # Fake it for dumpbin and say T for any non-static function
7347 # and D for any global variable.
7348 # Also find C++ and __fastcall symbols from MSVC++,
7349 # which start with @ or ?.
7350 lt_cv_sys_global_symbol_pipe="$AWK '"\
7351 " {last_section=section; section=\$ 3};"\
7352 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7353 " \$ 0!~/External *\|/{next};"\
7354 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7355 " {if(hide[section]) next};"\
7356 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7357 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7358 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7359 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7360 " ' prfx=^$ac_symprfx"
7361 else
7362 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7363 fi
7364
7365 # Check to see that the pipe works correctly.
7366 pipe_works=no
7367
7368 rm -f conftest*
7369 cat > conftest.$ac_ext <<_LT_EOF
7370 #ifdef __cplusplus
7371 extern "C" {
7372 #endif
7373 char nm_test_var;
7374 void nm_test_func(void);
7375 void nm_test_func(void){}
7376 #ifdef __cplusplus
7377 }
7378 #endif
7379 int main(){nm_test_var='a';nm_test_func();return(0);}
7380 _LT_EOF
7381
7382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7383 (eval $ac_compile) 2>&5
7384 ac_status=$?
7385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7386 test $ac_status = 0; }; then
7387 # Now try to grab the symbols.
7388 nlist=conftest.nm
7389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7390 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7391 ac_status=$?
7392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393 test $ac_status = 0; } && test -s "$nlist"; then
7394 # Try sorting and uniquifying the output.
7395 if sort "$nlist" | uniq > "$nlist"T; then
7396 mv -f "$nlist"T "$nlist"
7397 else
7398 rm -f "$nlist"T
7399 fi
7400
7401 # Make sure that we snagged all the symbols we need.
7402 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7403 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7404 cat <<_LT_EOF > conftest.$ac_ext
7405 #ifdef __cplusplus
7406 extern "C" {
7407 #endif
7408
7409 _LT_EOF
7410 # Now generate the symbol file.
7411 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7412
7413 cat <<_LT_EOF >> conftest.$ac_ext
7414
7415 /* The mapping between symbol names and symbols. */
7416 const struct {
7417 const char *name;
7418 void *address;
7419 }
7420 lt__PROGRAM__LTX_preloaded_symbols[] =
7421 {
7422 { "@PROGRAM@", (void *) 0 },
7423 _LT_EOF
7424 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7425 cat <<\_LT_EOF >> conftest.$ac_ext
7426 {0, (void *) 0}
7427 };
7428
7429 /* This works around a problem in FreeBSD linker */
7430 #ifdef FREEBSD_WORKAROUND
7431 static const void *lt_preloaded_setup() {
7432 return lt__PROGRAM__LTX_preloaded_symbols;
7433 }
7434 #endif
7435
7436 #ifdef __cplusplus
7437 }
7438 #endif
7439 _LT_EOF
7440 # Now try linking the two files.
7441 mv conftest.$ac_objext conftstm.$ac_objext
7442 lt_save_LIBS="$LIBS"
7443 lt_save_CFLAGS="$CFLAGS"
7444 LIBS="conftstm.$ac_objext"
7445 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7447 (eval $ac_link) 2>&5
7448 ac_status=$?
7449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7450 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7451 pipe_works=yes
7452 fi
7453 LIBS="$lt_save_LIBS"
7454 CFLAGS="$lt_save_CFLAGS"
7455 else
7456 echo "cannot find nm_test_func in $nlist" >&5
7457 fi
7458 else
7459 echo "cannot find nm_test_var in $nlist" >&5
7460 fi
7461 else
7462 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7463 fi
7464 else
7465 echo "$progname: failed program was:" >&5
7466 cat conftest.$ac_ext >&5
7467 fi
7468 rm -rf conftest* conftst*
7469
7470 # Do not use the global_symbol_pipe unless it works.
7471 if test "$pipe_works" = yes; then
7472 break
7473 else
7474 lt_cv_sys_global_symbol_pipe=
7475 fi
7476 done
7477
7478 fi
7479
7480 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7481 lt_cv_sys_global_symbol_to_cdecl=
7482 fi
7483 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7485 $as_echo "failed" >&6; }
7486 else
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7488 $as_echo "ok" >&6; }
7489 fi
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512 # Check whether --enable-libtool-lock was given.
7513 if test "${enable_libtool_lock+set}" = set; then :
7514 enableval=$enable_libtool_lock;
7515 fi
7516
7517 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7518
7519 # Some flags need to be propagated to the compiler or linker for good
7520 # libtool support.
7521 case $host in
7522 ia64-*-hpux*)
7523 # Find out which ABI we are using.
7524 echo 'int i;' > conftest.$ac_ext
7525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7526 (eval $ac_compile) 2>&5
7527 ac_status=$?
7528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7529 test $ac_status = 0; }; then
7530 case `/usr/bin/file conftest.$ac_objext` in
7531 *ELF-32*)
7532 HPUX_IA64_MODE="32"
7533 ;;
7534 *ELF-64*)
7535 HPUX_IA64_MODE="64"
7536 ;;
7537 esac
7538 fi
7539 rm -rf conftest*
7540 ;;
7541 *-*-irix6*)
7542 # Find out which ABI we are using.
7543 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7545 (eval $ac_compile) 2>&5
7546 ac_status=$?
7547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7548 test $ac_status = 0; }; then
7549 if test "$lt_cv_prog_gnu_ld" = yes; then
7550 case `/usr/bin/file conftest.$ac_objext` in
7551 *32-bit*)
7552 LD="${LD-ld} -melf32bsmip"
7553 ;;
7554 *N32*)
7555 LD="${LD-ld} -melf32bmipn32"
7556 ;;
7557 *64-bit*)
7558 LD="${LD-ld} -melf64bmip"
7559 ;;
7560 esac
7561 else
7562 case `/usr/bin/file conftest.$ac_objext` in
7563 *32-bit*)
7564 LD="${LD-ld} -32"
7565 ;;
7566 *N32*)
7567 LD="${LD-ld} -n32"
7568 ;;
7569 *64-bit*)
7570 LD="${LD-ld} -64"
7571 ;;
7572 esac
7573 fi
7574 fi
7575 rm -rf conftest*
7576 ;;
7577
7578 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7579 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7580 # Find out which ABI we are using.
7581 echo 'int i;' > conftest.$ac_ext
7582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7583 (eval $ac_compile) 2>&5
7584 ac_status=$?
7585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7586 test $ac_status = 0; }; then
7587 case `/usr/bin/file conftest.o` in
7588 *32-bit*)
7589 case $host in
7590 x86_64-*kfreebsd*-gnu)
7591 LD="${LD-ld} -m elf_i386_fbsd"
7592 ;;
7593 x86_64-*linux*)
7594 LD="${LD-ld} -m elf_i386"
7595 ;;
7596 ppc64-*linux*|powerpc64-*linux*)
7597 LD="${LD-ld} -m elf32ppclinux"
7598 ;;
7599 s390x-*linux*)
7600 LD="${LD-ld} -m elf_s390"
7601 ;;
7602 sparc64-*linux*)
7603 LD="${LD-ld} -m elf32_sparc"
7604 ;;
7605 esac
7606 ;;
7607 *64-bit*)
7608 case $host in
7609 x86_64-*kfreebsd*-gnu)
7610 LD="${LD-ld} -m elf_x86_64_fbsd"
7611 ;;
7612 x86_64-*linux*)
7613 LD="${LD-ld} -m elf_x86_64"
7614 ;;
7615 ppc*-*linux*|powerpc*-*linux*)
7616 LD="${LD-ld} -m elf64ppc"
7617 ;;
7618 s390*-*linux*|s390*-*tpf*)
7619 LD="${LD-ld} -m elf64_s390"
7620 ;;
7621 sparc*-*linux*)
7622 LD="${LD-ld} -m elf64_sparc"
7623 ;;
7624 esac
7625 ;;
7626 esac
7627 fi
7628 rm -rf conftest*
7629 ;;
7630
7631 *-*-sco3.2v5*)
7632 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7633 SAVE_CFLAGS="$CFLAGS"
7634 CFLAGS="$CFLAGS -belf"
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7636 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7637 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7638 $as_echo_n "(cached) " >&6
7639 else
7640 ac_ext=c
7641 ac_cpp='$CPP $CPPFLAGS'
7642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7645
7646 if test x$gcc_no_link = xyes; then
7647 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7648 fi
7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650 /* end confdefs.h. */
7651
7652 int
7653 main ()
7654 {
7655
7656 ;
7657 return 0;
7658 }
7659 _ACEOF
7660 if ac_fn_c_try_link "$LINENO"; then :
7661 lt_cv_cc_needs_belf=yes
7662 else
7663 lt_cv_cc_needs_belf=no
7664 fi
7665 rm -f core conftest.err conftest.$ac_objext \
7666 conftest$ac_exeext conftest.$ac_ext
7667 ac_ext=c
7668 ac_cpp='$CPP $CPPFLAGS'
7669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7672
7673 fi
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7675 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7676 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7677 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7678 CFLAGS="$SAVE_CFLAGS"
7679 fi
7680 ;;
7681 sparc*-*solaris*)
7682 # Find out which ABI we are using.
7683 echo 'int i;' > conftest.$ac_ext
7684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7685 (eval $ac_compile) 2>&5
7686 ac_status=$?
7687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7688 test $ac_status = 0; }; then
7689 case `/usr/bin/file conftest.o` in
7690 *64-bit*)
7691 case $lt_cv_prog_gnu_ld in
7692 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7693 *)
7694 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7695 LD="${LD-ld} -64"
7696 fi
7697 ;;
7698 esac
7699 ;;
7700 esac
7701 fi
7702 rm -rf conftest*
7703 ;;
7704 esac
7705
7706 need_locks="$enable_libtool_lock"
7707
7708
7709 case $host_os in
7710 rhapsody* | darwin*)
7711 if test -n "$ac_tool_prefix"; then
7712 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7713 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715 $as_echo_n "checking for $ac_word... " >&6; }
7716 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7717 $as_echo_n "(cached) " >&6
7718 else
7719 if test -n "$DSYMUTIL"; then
7720 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7721 else
7722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723 for as_dir in $PATH
7724 do
7725 IFS=$as_save_IFS
7726 test -z "$as_dir" && as_dir=.
7727 for ac_exec_ext in '' $ac_executable_extensions; do
7728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7729 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 break 2
7732 fi
7733 done
7734 done
7735 IFS=$as_save_IFS
7736
7737 fi
7738 fi
7739 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7740 if test -n "$DSYMUTIL"; then
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7742 $as_echo "$DSYMUTIL" >&6; }
7743 else
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745 $as_echo "no" >&6; }
7746 fi
7747
7748
7749 fi
7750 if test -z "$ac_cv_prog_DSYMUTIL"; then
7751 ac_ct_DSYMUTIL=$DSYMUTIL
7752 # Extract the first word of "dsymutil", so it can be a program name with args.
7753 set dummy dsymutil; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7757 $as_echo_n "(cached) " >&6
7758 else
7759 if test -n "$ac_ct_DSYMUTIL"; then
7760 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7764 do
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7772 fi
7773 done
7774 done
7775 IFS=$as_save_IFS
7776
7777 fi
7778 fi
7779 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7780 if test -n "$ac_ct_DSYMUTIL"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7782 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7783 else
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7786 fi
7787
7788 if test "x$ac_ct_DSYMUTIL" = x; then
7789 DSYMUTIL=":"
7790 else
7791 case $cross_compiling:$ac_tool_warned in
7792 yes:)
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7795 ac_tool_warned=yes ;;
7796 esac
7797 DSYMUTIL=$ac_ct_DSYMUTIL
7798 fi
7799 else
7800 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7801 fi
7802
7803 if test -n "$ac_tool_prefix"; then
7804 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7805 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 if test -n "$NMEDIT"; then
7812 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7813 else
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7816 do
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7821 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7824 fi
7825 done
7826 done
7827 IFS=$as_save_IFS
7828
7829 fi
7830 fi
7831 NMEDIT=$ac_cv_prog_NMEDIT
7832 if test -n "$NMEDIT"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7834 $as_echo "$NMEDIT" >&6; }
7835 else
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7838 fi
7839
7840
7841 fi
7842 if test -z "$ac_cv_prog_NMEDIT"; then
7843 ac_ct_NMEDIT=$NMEDIT
7844 # Extract the first word of "nmedit", so it can be a program name with args.
7845 set dummy nmedit; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 if test -n "$ac_ct_NMEDIT"; then
7852 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7853 else
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 for as_dir in $PATH
7856 do
7857 IFS=$as_save_IFS
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7861 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 break 2
7864 fi
7865 done
7866 done
7867 IFS=$as_save_IFS
7868
7869 fi
7870 fi
7871 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7872 if test -n "$ac_ct_NMEDIT"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7874 $as_echo "$ac_ct_NMEDIT" >&6; }
7875 else
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7878 fi
7879
7880 if test "x$ac_ct_NMEDIT" = x; then
7881 NMEDIT=":"
7882 else
7883 case $cross_compiling:$ac_tool_warned in
7884 yes:)
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7887 ac_tool_warned=yes ;;
7888 esac
7889 NMEDIT=$ac_ct_NMEDIT
7890 fi
7891 else
7892 NMEDIT="$ac_cv_prog_NMEDIT"
7893 fi
7894
7895 if test -n "$ac_tool_prefix"; then
7896 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7897 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899 $as_echo_n "checking for $ac_word... " >&6; }
7900 if test "${ac_cv_prog_LIPO+set}" = set; then :
7901 $as_echo_n "(cached) " >&6
7902 else
7903 if test -n "$LIPO"; then
7904 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7905 else
7906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 for as_dir in $PATH
7908 do
7909 IFS=$as_save_IFS
7910 test -z "$as_dir" && as_dir=.
7911 for ac_exec_ext in '' $ac_executable_extensions; do
7912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7913 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 break 2
7916 fi
7917 done
7918 done
7919 IFS=$as_save_IFS
7920
7921 fi
7922 fi
7923 LIPO=$ac_cv_prog_LIPO
7924 if test -n "$LIPO"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7926 $as_echo "$LIPO" >&6; }
7927 else
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7930 fi
7931
7932
7933 fi
7934 if test -z "$ac_cv_prog_LIPO"; then
7935 ac_ct_LIPO=$LIPO
7936 # Extract the first word of "lipo", so it can be a program name with args.
7937 set dummy lipo; ac_word=$2
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7939 $as_echo_n "checking for $ac_word... " >&6; }
7940 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7941 $as_echo_n "(cached) " >&6
7942 else
7943 if test -n "$ac_ct_LIPO"; then
7944 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7945 else
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 for as_dir in $PATH
7948 do
7949 IFS=$as_save_IFS
7950 test -z "$as_dir" && as_dir=.
7951 for ac_exec_ext in '' $ac_executable_extensions; do
7952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7953 ac_cv_prog_ac_ct_LIPO="lipo"
7954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 break 2
7956 fi
7957 done
7958 done
7959 IFS=$as_save_IFS
7960
7961 fi
7962 fi
7963 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7964 if test -n "$ac_ct_LIPO"; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7966 $as_echo "$ac_ct_LIPO" >&6; }
7967 else
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969 $as_echo "no" >&6; }
7970 fi
7971
7972 if test "x$ac_ct_LIPO" = x; then
7973 LIPO=":"
7974 else
7975 case $cross_compiling:$ac_tool_warned in
7976 yes:)
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7979 ac_tool_warned=yes ;;
7980 esac
7981 LIPO=$ac_ct_LIPO
7982 fi
7983 else
7984 LIPO="$ac_cv_prog_LIPO"
7985 fi
7986
7987 if test -n "$ac_tool_prefix"; then
7988 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7989 set dummy ${ac_tool_prefix}otool; ac_word=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991 $as_echo_n "checking for $ac_word... " >&6; }
7992 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 if test -n "$OTOOL"; then
7996 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7997 else
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8000 do
8001 IFS=$as_save_IFS
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8005 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007 break 2
8008 fi
8009 done
8010 done
8011 IFS=$as_save_IFS
8012
8013 fi
8014 fi
8015 OTOOL=$ac_cv_prog_OTOOL
8016 if test -n "$OTOOL"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8018 $as_echo "$OTOOL" >&6; }
8019 else
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8022 fi
8023
8024
8025 fi
8026 if test -z "$ac_cv_prog_OTOOL"; then
8027 ac_ct_OTOOL=$OTOOL
8028 # Extract the first word of "otool", so it can be a program name with args.
8029 set dummy otool; ac_word=$2
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031 $as_echo_n "checking for $ac_word... " >&6; }
8032 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8033 $as_echo_n "(cached) " >&6
8034 else
8035 if test -n "$ac_ct_OTOOL"; then
8036 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8037 else
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8040 do
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8045 ac_cv_prog_ac_ct_OTOOL="otool"
8046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 break 2
8048 fi
8049 done
8050 done
8051 IFS=$as_save_IFS
8052
8053 fi
8054 fi
8055 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8056 if test -n "$ac_ct_OTOOL"; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8058 $as_echo "$ac_ct_OTOOL" >&6; }
8059 else
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061 $as_echo "no" >&6; }
8062 fi
8063
8064 if test "x$ac_ct_OTOOL" = x; then
8065 OTOOL=":"
8066 else
8067 case $cross_compiling:$ac_tool_warned in
8068 yes:)
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8071 ac_tool_warned=yes ;;
8072 esac
8073 OTOOL=$ac_ct_OTOOL
8074 fi
8075 else
8076 OTOOL="$ac_cv_prog_OTOOL"
8077 fi
8078
8079 if test -n "$ac_tool_prefix"; then
8080 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8081 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083 $as_echo_n "checking for $ac_word... " >&6; }
8084 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8085 $as_echo_n "(cached) " >&6
8086 else
8087 if test -n "$OTOOL64"; then
8088 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8089 else
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091 for as_dir in $PATH
8092 do
8093 IFS=$as_save_IFS
8094 test -z "$as_dir" && as_dir=.
8095 for ac_exec_ext in '' $ac_executable_extensions; do
8096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8097 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099 break 2
8100 fi
8101 done
8102 done
8103 IFS=$as_save_IFS
8104
8105 fi
8106 fi
8107 OTOOL64=$ac_cv_prog_OTOOL64
8108 if test -n "$OTOOL64"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8110 $as_echo "$OTOOL64" >&6; }
8111 else
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8114 fi
8115
8116
8117 fi
8118 if test -z "$ac_cv_prog_OTOOL64"; then
8119 ac_ct_OTOOL64=$OTOOL64
8120 # Extract the first word of "otool64", so it can be a program name with args.
8121 set dummy otool64; ac_word=$2
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123 $as_echo_n "checking for $ac_word... " >&6; }
8124 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8125 $as_echo_n "(cached) " >&6
8126 else
8127 if test -n "$ac_ct_OTOOL64"; then
8128 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8129 else
8130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131 for as_dir in $PATH
8132 do
8133 IFS=$as_save_IFS
8134 test -z "$as_dir" && as_dir=.
8135 for ac_exec_ext in '' $ac_executable_extensions; do
8136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8137 ac_cv_prog_ac_ct_OTOOL64="otool64"
8138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8139 break 2
8140 fi
8141 done
8142 done
8143 IFS=$as_save_IFS
8144
8145 fi
8146 fi
8147 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8148 if test -n "$ac_ct_OTOOL64"; then
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8150 $as_echo "$ac_ct_OTOOL64" >&6; }
8151 else
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153 $as_echo "no" >&6; }
8154 fi
8155
8156 if test "x$ac_ct_OTOOL64" = x; then
8157 OTOOL64=":"
8158 else
8159 case $cross_compiling:$ac_tool_warned in
8160 yes:)
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8163 ac_tool_warned=yes ;;
8164 esac
8165 OTOOL64=$ac_ct_OTOOL64
8166 fi
8167 else
8168 OTOOL64="$ac_cv_prog_OTOOL64"
8169 fi
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8198 $as_echo_n "checking for -single_module linker flag... " >&6; }
8199 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 lt_cv_apple_cc_single_mod=no
8203 if test -z "${LT_MULTI_MODULE}"; then
8204 # By default we will add the -single_module flag. You can override
8205 # by either setting the environment variable LT_MULTI_MODULE
8206 # non-empty at configure time, or by adding -multi_module to the
8207 # link flags.
8208 rm -rf libconftest.dylib*
8209 echo "int foo(void){return 1;}" > conftest.c
8210 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8211 -dynamiclib -Wl,-single_module conftest.c" >&5
8212 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8213 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8214 _lt_result=$?
8215 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8216 lt_cv_apple_cc_single_mod=yes
8217 else
8218 cat conftest.err >&5
8219 fi
8220 rm -rf libconftest.dylib*
8221 rm -f conftest.*
8222 fi
8223 fi
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8225 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8227 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8228 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 lt_cv_ld_exported_symbols_list=no
8232 save_LDFLAGS=$LDFLAGS
8233 echo "_main" > conftest.sym
8234 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8235 if test x$gcc_no_link = xyes; then
8236 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8237 fi
8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8240
8241 int
8242 main ()
8243 {
8244
8245 ;
8246 return 0;
8247 }
8248 _ACEOF
8249 if ac_fn_c_try_link "$LINENO"; then :
8250 lt_cv_ld_exported_symbols_list=yes
8251 else
8252 lt_cv_ld_exported_symbols_list=no
8253 fi
8254 rm -f core conftest.err conftest.$ac_objext \
8255 conftest$ac_exeext conftest.$ac_ext
8256 LDFLAGS="$save_LDFLAGS"
8257
8258 fi
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8260 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8262 $as_echo_n "checking for -force_load linker flag... " >&6; }
8263 if test "${lt_cv_ld_force_load+set}" = set; then :
8264 $as_echo_n "(cached) " >&6
8265 else
8266 lt_cv_ld_force_load=no
8267 cat > conftest.c << _LT_EOF
8268 int forced_loaded() { return 2;}
8269 _LT_EOF
8270 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8271 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8272 echo "$AR cru libconftest.a conftest.o" >&5
8273 $AR cru libconftest.a conftest.o 2>&5
8274 cat > conftest.c << _LT_EOF
8275 int main() { return 0;}
8276 _LT_EOF
8277 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8278 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8279 _lt_result=$?
8280 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8281 lt_cv_ld_force_load=yes
8282 else
8283 cat conftest.err >&5
8284 fi
8285 rm -f conftest.err libconftest.a conftest conftest.c
8286 rm -rf conftest.dSYM
8287
8288 fi
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8290 $as_echo "$lt_cv_ld_force_load" >&6; }
8291 case $host_os in
8292 rhapsody* | darwin1.[012])
8293 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8294 darwin1.*)
8295 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8296 darwin*) # darwin 5.x on
8297 # if running on 10.5 or later, the deployment target defaults
8298 # to the OS version, if on x86, and 10.4, the deployment
8299 # target defaults to 10.4. Don't you love it?
8300 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8301 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8302 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8303 10.[012]*)
8304 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8305 10.*)
8306 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8307 esac
8308 ;;
8309 esac
8310 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8311 _lt_dar_single_mod='$single_module'
8312 fi
8313 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8314 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8315 else
8316 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8317 fi
8318 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8319 _lt_dsymutil='~$DSYMUTIL $lib || :'
8320 else
8321 _lt_dsymutil=
8322 fi
8323 ;;
8324 esac
8325
8326 for ac_header in dlfcn.h
8327 do :
8328 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8329 "
8330 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8331 cat >>confdefs.h <<_ACEOF
8332 #define HAVE_DLFCN_H 1
8333 _ACEOF
8334
8335 fi
8336
8337 done
8338
8339
8340
8341
8342
8343 # Set options
8344
8345
8346
8347 enable_dlopen=no
8348
8349
8350 enable_win32_dll=no
8351
8352
8353 # Check whether --enable-shared was given.
8354 if test "${enable_shared+set}" = set; then :
8355 enableval=$enable_shared; p=${PACKAGE-default}
8356 case $enableval in
8357 yes) enable_shared=yes ;;
8358 no) enable_shared=no ;;
8359 *)
8360 enable_shared=no
8361 # Look at the argument we got. We use all the common list separators.
8362 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8363 for pkg in $enableval; do
8364 IFS="$lt_save_ifs"
8365 if test "X$pkg" = "X$p"; then
8366 enable_shared=yes
8367 fi
8368 done
8369 IFS="$lt_save_ifs"
8370 ;;
8371 esac
8372 else
8373 enable_shared=yes
8374 fi
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386 # Check whether --with-pic was given.
8387 if test "${with_pic+set}" = set; then :
8388 withval=$with_pic; pic_mode="$withval"
8389 else
8390 pic_mode=default
8391 fi
8392
8393
8394 test -z "$pic_mode" && pic_mode=default
8395
8396
8397
8398
8399
8400
8401
8402 # Check whether --enable-fast-install was given.
8403 if test "${enable_fast_install+set}" = set; then :
8404 enableval=$enable_fast_install; p=${PACKAGE-default}
8405 case $enableval in
8406 yes) enable_fast_install=yes ;;
8407 no) enable_fast_install=no ;;
8408 *)
8409 enable_fast_install=no
8410 # Look at the argument we got. We use all the common list separators.
8411 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8412 for pkg in $enableval; do
8413 IFS="$lt_save_ifs"
8414 if test "X$pkg" = "X$p"; then
8415 enable_fast_install=yes
8416 fi
8417 done
8418 IFS="$lt_save_ifs"
8419 ;;
8420 esac
8421 else
8422 enable_fast_install=yes
8423 fi
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435 # This can be used to rebuild libtool when needed
8436 LIBTOOL_DEPS="$ltmain"
8437
8438 # Always use our own libtool.
8439 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466 test -z "$LN_S" && LN_S="ln -s"
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481 if test -n "${ZSH_VERSION+set}" ; then
8482 setopt NO_GLOB_SUBST
8483 fi
8484
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8486 $as_echo_n "checking for objdir... " >&6; }
8487 if test "${lt_cv_objdir+set}" = set; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 rm -f .libs 2>/dev/null
8491 mkdir .libs 2>/dev/null
8492 if test -d .libs; then
8493 lt_cv_objdir=.libs
8494 else
8495 # MS-DOS does not allow filenames that begin with a dot.
8496 lt_cv_objdir=_libs
8497 fi
8498 rmdir .libs 2>/dev/null
8499 fi
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8501 $as_echo "$lt_cv_objdir" >&6; }
8502 objdir=$lt_cv_objdir
8503
8504
8505
8506
8507
8508 cat >>confdefs.h <<_ACEOF
8509 #define LT_OBJDIR "$lt_cv_objdir/"
8510 _ACEOF
8511
8512
8513
8514
8515 case $host_os in
8516 aix3*)
8517 # AIX sometimes has problems with the GCC collect2 program. For some
8518 # reason, if we set the COLLECT_NAMES environment variable, the problems
8519 # vanish in a puff of smoke.
8520 if test "X${COLLECT_NAMES+set}" != Xset; then
8521 COLLECT_NAMES=
8522 export COLLECT_NAMES
8523 fi
8524 ;;
8525 esac
8526
8527 # Global variables:
8528 ofile=libtool
8529 can_build_shared=yes
8530
8531 # All known linkers require a `.a' archive for static linking (except MSVC,
8532 # which needs '.lib').
8533 libext=a
8534
8535 with_gnu_ld="$lt_cv_prog_gnu_ld"
8536
8537 old_CC="$CC"
8538 old_CFLAGS="$CFLAGS"
8539
8540 # Set sane defaults for various variables
8541 test -z "$CC" && CC=cc
8542 test -z "$LTCC" && LTCC=$CC
8543 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8544 test -z "$LD" && LD=ld
8545 test -z "$ac_objext" && ac_objext=o
8546
8547 for cc_temp in $compiler""; do
8548 case $cc_temp in
8549 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8550 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8551 \-*) ;;
8552 *) break;;
8553 esac
8554 done
8555 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8556
8557
8558 # Only perform the check for file, if the check method requires it
8559 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8560 case $deplibs_check_method in
8561 file_magic*)
8562 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8564 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8565 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8566 $as_echo_n "(cached) " >&6
8567 else
8568 case $MAGIC_CMD in
8569 [\\/*] | ?:[\\/]*)
8570 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8571 ;;
8572 *)
8573 lt_save_MAGIC_CMD="$MAGIC_CMD"
8574 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8575 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8576 for ac_dir in $ac_dummy; do
8577 IFS="$lt_save_ifs"
8578 test -z "$ac_dir" && ac_dir=.
8579 if test -f $ac_dir/${ac_tool_prefix}file; then
8580 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8581 if test -n "$file_magic_test_file"; then
8582 case $deplibs_check_method in
8583 "file_magic "*)
8584 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8585 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8586 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8587 $EGREP "$file_magic_regex" > /dev/null; then
8588 :
8589 else
8590 cat <<_LT_EOF 1>&2
8591
8592 *** Warning: the command libtool uses to detect shared libraries,
8593 *** $file_magic_cmd, produces output that libtool cannot recognize.
8594 *** The result is that libtool may fail to recognize shared libraries
8595 *** as such. This will affect the creation of libtool libraries that
8596 *** depend on shared libraries, but programs linked with such libtool
8597 *** libraries will work regardless of this problem. Nevertheless, you
8598 *** may want to report the problem to your system manager and/or to
8599 *** bug-libtool@gnu.org
8600
8601 _LT_EOF
8602 fi ;;
8603 esac
8604 fi
8605 break
8606 fi
8607 done
8608 IFS="$lt_save_ifs"
8609 MAGIC_CMD="$lt_save_MAGIC_CMD"
8610 ;;
8611 esac
8612 fi
8613
8614 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8615 if test -n "$MAGIC_CMD"; then
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8617 $as_echo "$MAGIC_CMD" >&6; }
8618 else
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8620 $as_echo "no" >&6; }
8621 fi
8622
8623
8624
8625
8626
8627 if test -z "$lt_cv_path_MAGIC_CMD"; then
8628 if test -n "$ac_tool_prefix"; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8630 $as_echo_n "checking for file... " >&6; }
8631 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8632 $as_echo_n "(cached) " >&6
8633 else
8634 case $MAGIC_CMD in
8635 [\\/*] | ?:[\\/]*)
8636 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8637 ;;
8638 *)
8639 lt_save_MAGIC_CMD="$MAGIC_CMD"
8640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8641 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8642 for ac_dir in $ac_dummy; do
8643 IFS="$lt_save_ifs"
8644 test -z "$ac_dir" && ac_dir=.
8645 if test -f $ac_dir/file; then
8646 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8647 if test -n "$file_magic_test_file"; then
8648 case $deplibs_check_method in
8649 "file_magic "*)
8650 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8651 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8652 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8653 $EGREP "$file_magic_regex" > /dev/null; then
8654 :
8655 else
8656 cat <<_LT_EOF 1>&2
8657
8658 *** Warning: the command libtool uses to detect shared libraries,
8659 *** $file_magic_cmd, produces output that libtool cannot recognize.
8660 *** The result is that libtool may fail to recognize shared libraries
8661 *** as such. This will affect the creation of libtool libraries that
8662 *** depend on shared libraries, but programs linked with such libtool
8663 *** libraries will work regardless of this problem. Nevertheless, you
8664 *** may want to report the problem to your system manager and/or to
8665 *** bug-libtool@gnu.org
8666
8667 _LT_EOF
8668 fi ;;
8669 esac
8670 fi
8671 break
8672 fi
8673 done
8674 IFS="$lt_save_ifs"
8675 MAGIC_CMD="$lt_save_MAGIC_CMD"
8676 ;;
8677 esac
8678 fi
8679
8680 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8681 if test -n "$MAGIC_CMD"; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8683 $as_echo "$MAGIC_CMD" >&6; }
8684 else
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686 $as_echo "no" >&6; }
8687 fi
8688
8689
8690 else
8691 MAGIC_CMD=:
8692 fi
8693 fi
8694
8695 fi
8696 ;;
8697 esac
8698
8699 # Use C for the default configuration in the libtool script
8700
8701 lt_save_CC="$CC"
8702 ac_ext=c
8703 ac_cpp='$CPP $CPPFLAGS'
8704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8707
8708
8709 # Source file extension for C test sources.
8710 ac_ext=c
8711
8712 # Object file extension for compiled C test sources.
8713 objext=o
8714 objext=$objext
8715
8716 # Code to be used in simple compile tests
8717 lt_simple_compile_test_code="int some_variable = 0;"
8718
8719 # Code to be used in simple link tests
8720 lt_simple_link_test_code='int main(){return(0);}'
8721
8722
8723
8724
8725
8726
8727
8728 # If no C compiler was specified, use CC.
8729 LTCC=${LTCC-"$CC"}
8730
8731 # If no C compiler flags were specified, use CFLAGS.
8732 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8733
8734 # Allow CC to be a program name with arguments.
8735 compiler=$CC
8736
8737 # Save the default compiler, since it gets overwritten when the other
8738 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8739 compiler_DEFAULT=$CC
8740
8741 # save warnings/boilerplate of simple test code
8742 ac_outfile=conftest.$ac_objext
8743 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8744 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8745 _lt_compiler_boilerplate=`cat conftest.err`
8746 $RM conftest*
8747
8748 ac_outfile=conftest.$ac_objext
8749 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8750 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8751 _lt_linker_boilerplate=`cat conftest.err`
8752 $RM -r conftest*
8753
8754
8755 ## CAVEAT EMPTOR:
8756 ## There is no encapsulation within the following macros, do not change
8757 ## the running order or otherwise move them around unless you know exactly
8758 ## what you are doing...
8759 if test -n "$compiler"; then
8760
8761 lt_prog_compiler_no_builtin_flag=
8762
8763 if test "$GCC" = yes; then
8764 case $cc_basename in
8765 nvcc*)
8766 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8767 *)
8768 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8769 esac
8770
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8772 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8773 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8774 $as_echo_n "(cached) " >&6
8775 else
8776 lt_cv_prog_compiler_rtti_exceptions=no
8777 ac_outfile=conftest.$ac_objext
8778 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8779 lt_compiler_flag="-fno-rtti -fno-exceptions"
8780 # Insert the option either (1) after the last *FLAGS variable, or
8781 # (2) before a word containing "conftest.", or (3) at the end.
8782 # Note that $ac_compile itself does not contain backslashes and begins
8783 # with a dollar sign (not a hyphen), so the echo should work correctly.
8784 # The option is referenced via a variable to avoid confusing sed.
8785 lt_compile=`echo "$ac_compile" | $SED \
8786 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8788 -e 's:$: $lt_compiler_flag:'`
8789 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8790 (eval "$lt_compile" 2>conftest.err)
8791 ac_status=$?
8792 cat conftest.err >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 if (exit $ac_status) && test -s "$ac_outfile"; then
8795 # The compiler can only warn and ignore the option if not recognized
8796 # So say no if there are warnings other than the usual output.
8797 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8799 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8800 lt_cv_prog_compiler_rtti_exceptions=yes
8801 fi
8802 fi
8803 $RM conftest*
8804
8805 fi
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8807 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8808
8809 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8810 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8811 else
8812 :
8813 fi
8814
8815 fi
8816
8817
8818
8819
8820
8821
8822 lt_prog_compiler_wl=
8823 lt_prog_compiler_pic=
8824 lt_prog_compiler_static=
8825
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8827 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8828
8829 if test "$GCC" = yes; then
8830 lt_prog_compiler_wl='-Wl,'
8831 lt_prog_compiler_static='-static'
8832
8833 case $host_os in
8834 aix*)
8835 # All AIX code is PIC.
8836 if test "$host_cpu" = ia64; then
8837 # AIX 5 now supports IA64 processor
8838 lt_prog_compiler_static='-Bstatic'
8839 fi
8840 ;;
8841
8842 amigaos*)
8843 case $host_cpu in
8844 powerpc)
8845 # see comment about AmigaOS4 .so support
8846 lt_prog_compiler_pic='-fPIC'
8847 ;;
8848 m68k)
8849 # FIXME: we need at least 68020 code to build shared libraries, but
8850 # adding the `-m68020' flag to GCC prevents building anything better,
8851 # like `-m68040'.
8852 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8853 ;;
8854 esac
8855 ;;
8856
8857 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8858 # PIC is the default for these OSes.
8859 ;;
8860
8861 mingw* | cygwin* | pw32* | os2* | cegcc*)
8862 # This hack is so that the source file can tell whether it is being
8863 # built for inclusion in a dll (and should export symbols for example).
8864 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8865 # (--disable-auto-import) libraries
8866 lt_prog_compiler_pic='-DDLL_EXPORT'
8867 ;;
8868
8869 darwin* | rhapsody*)
8870 # PIC is the default on this platform
8871 # Common symbols not allowed in MH_DYLIB files
8872 lt_prog_compiler_pic='-fno-common'
8873 ;;
8874
8875 haiku*)
8876 # PIC is the default for Haiku.
8877 # The "-static" flag exists, but is broken.
8878 lt_prog_compiler_static=
8879 ;;
8880
8881 hpux*)
8882 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8883 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8884 # sets the default TLS model and affects inlining.
8885 case $host_cpu in
8886 hppa*64*)
8887 # +Z the default
8888 ;;
8889 *)
8890 lt_prog_compiler_pic='-fPIC'
8891 ;;
8892 esac
8893 ;;
8894
8895 interix[3-9]*)
8896 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8897 # Instead, we relocate shared libraries at runtime.
8898 ;;
8899
8900 msdosdjgpp*)
8901 # Just because we use GCC doesn't mean we suddenly get shared libraries
8902 # on systems that don't support them.
8903 lt_prog_compiler_can_build_shared=no
8904 enable_shared=no
8905 ;;
8906
8907 *nto* | *qnx*)
8908 # QNX uses GNU C++, but need to define -shared option too, otherwise
8909 # it will coredump.
8910 lt_prog_compiler_pic='-fPIC -shared'
8911 ;;
8912
8913 sysv4*MP*)
8914 if test -d /usr/nec; then
8915 lt_prog_compiler_pic=-Kconform_pic
8916 fi
8917 ;;
8918
8919 *)
8920 lt_prog_compiler_pic='-fPIC'
8921 ;;
8922 esac
8923
8924 case $cc_basename in
8925 nvcc*) # Cuda Compiler Driver 2.2
8926 lt_prog_compiler_wl='-Xlinker '
8927 lt_prog_compiler_pic='-Xcompiler -fPIC'
8928 ;;
8929 esac
8930 else
8931 # PORTME Check for flag to pass linker flags through the system compiler.
8932 case $host_os in
8933 aix*)
8934 lt_prog_compiler_wl='-Wl,'
8935 if test "$host_cpu" = ia64; then
8936 # AIX 5 now supports IA64 processor
8937 lt_prog_compiler_static='-Bstatic'
8938 else
8939 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8940 fi
8941 ;;
8942
8943 mingw* | cygwin* | pw32* | os2* | cegcc*)
8944 # This hack is so that the source file can tell whether it is being
8945 # built for inclusion in a dll (and should export symbols for example).
8946 lt_prog_compiler_pic='-DDLL_EXPORT'
8947 ;;
8948
8949 hpux9* | hpux10* | hpux11*)
8950 lt_prog_compiler_wl='-Wl,'
8951 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8952 # not for PA HP-UX.
8953 case $host_cpu in
8954 hppa*64*|ia64*)
8955 # +Z the default
8956 ;;
8957 *)
8958 lt_prog_compiler_pic='+Z'
8959 ;;
8960 esac
8961 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8962 lt_prog_compiler_static='${wl}-a ${wl}archive'
8963 ;;
8964
8965 irix5* | irix6* | nonstopux*)
8966 lt_prog_compiler_wl='-Wl,'
8967 # PIC (with -KPIC) is the default.
8968 lt_prog_compiler_static='-non_shared'
8969 ;;
8970
8971 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8972 case $cc_basename in
8973 # old Intel for x86_64 which still supported -KPIC.
8974 ecc*)
8975 lt_prog_compiler_wl='-Wl,'
8976 lt_prog_compiler_pic='-KPIC'
8977 lt_prog_compiler_static='-static'
8978 ;;
8979 # icc used to be incompatible with GCC.
8980 # ICC 10 doesn't accept -KPIC any more.
8981 icc* | ifort*)
8982 lt_prog_compiler_wl='-Wl,'
8983 lt_prog_compiler_pic='-fPIC'
8984 lt_prog_compiler_static='-static'
8985 ;;
8986 # Lahey Fortran 8.1.
8987 lf95*)
8988 lt_prog_compiler_wl='-Wl,'
8989 lt_prog_compiler_pic='--shared'
8990 lt_prog_compiler_static='--static'
8991 ;;
8992 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8993 # Portland Group compilers (*not* the Pentium gcc compiler,
8994 # which looks to be a dead project)
8995 lt_prog_compiler_wl='-Wl,'
8996 lt_prog_compiler_pic='-fpic'
8997 lt_prog_compiler_static='-Bstatic'
8998 ;;
8999 ccc*)
9000 lt_prog_compiler_wl='-Wl,'
9001 # All Alpha code is PIC.
9002 lt_prog_compiler_static='-non_shared'
9003 ;;
9004 xl* | bgxl* | bgf* | mpixl*)
9005 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9006 lt_prog_compiler_wl='-Wl,'
9007 lt_prog_compiler_pic='-qpic'
9008 lt_prog_compiler_static='-qstaticlink'
9009 ;;
9010 *)
9011 case `$CC -V 2>&1 | sed 5q` in
9012 *Sun\ F* | *Sun*Fortran*)
9013 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9014 lt_prog_compiler_pic='-KPIC'
9015 lt_prog_compiler_static='-Bstatic'
9016 lt_prog_compiler_wl=''
9017 ;;
9018 *Sun\ C*)
9019 # Sun C 5.9
9020 lt_prog_compiler_pic='-KPIC'
9021 lt_prog_compiler_static='-Bstatic'
9022 lt_prog_compiler_wl='-Wl,'
9023 ;;
9024 esac
9025 ;;
9026 esac
9027 ;;
9028
9029 newsos6)
9030 lt_prog_compiler_pic='-KPIC'
9031 lt_prog_compiler_static='-Bstatic'
9032 ;;
9033
9034 *nto* | *qnx*)
9035 # QNX uses GNU C++, but need to define -shared option too, otherwise
9036 # it will coredump.
9037 lt_prog_compiler_pic='-fPIC -shared'
9038 ;;
9039
9040 osf3* | osf4* | osf5*)
9041 lt_prog_compiler_wl='-Wl,'
9042 # All OSF/1 code is PIC.
9043 lt_prog_compiler_static='-non_shared'
9044 ;;
9045
9046 rdos*)
9047 lt_prog_compiler_static='-non_shared'
9048 ;;
9049
9050 solaris*)
9051 lt_prog_compiler_pic='-KPIC'
9052 lt_prog_compiler_static='-Bstatic'
9053 case $cc_basename in
9054 f77* | f90* | f95*)
9055 lt_prog_compiler_wl='-Qoption ld ';;
9056 *)
9057 lt_prog_compiler_wl='-Wl,';;
9058 esac
9059 ;;
9060
9061 sunos4*)
9062 lt_prog_compiler_wl='-Qoption ld '
9063 lt_prog_compiler_pic='-PIC'
9064 lt_prog_compiler_static='-Bstatic'
9065 ;;
9066
9067 sysv4 | sysv4.2uw2* | sysv4.3*)
9068 lt_prog_compiler_wl='-Wl,'
9069 lt_prog_compiler_pic='-KPIC'
9070 lt_prog_compiler_static='-Bstatic'
9071 ;;
9072
9073 sysv4*MP*)
9074 if test -d /usr/nec ;then
9075 lt_prog_compiler_pic='-Kconform_pic'
9076 lt_prog_compiler_static='-Bstatic'
9077 fi
9078 ;;
9079
9080 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9081 lt_prog_compiler_wl='-Wl,'
9082 lt_prog_compiler_pic='-KPIC'
9083 lt_prog_compiler_static='-Bstatic'
9084 ;;
9085
9086 unicos*)
9087 lt_prog_compiler_wl='-Wl,'
9088 lt_prog_compiler_can_build_shared=no
9089 ;;
9090
9091 uts4*)
9092 lt_prog_compiler_pic='-pic'
9093 lt_prog_compiler_static='-Bstatic'
9094 ;;
9095
9096 *)
9097 lt_prog_compiler_can_build_shared=no
9098 ;;
9099 esac
9100 fi
9101
9102 case $host_os in
9103 # For platforms which do not support PIC, -DPIC is meaningless:
9104 *djgpp*)
9105 lt_prog_compiler_pic=
9106 ;;
9107 *)
9108 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9109 ;;
9110 esac
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9112 $as_echo "$lt_prog_compiler_pic" >&6; }
9113
9114
9115
9116
9117
9118
9119 #
9120 # Check to make sure the PIC flag actually works.
9121 #
9122 if test -n "$lt_prog_compiler_pic"; then
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9124 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9125 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9126 $as_echo_n "(cached) " >&6
9127 else
9128 lt_cv_prog_compiler_pic_works=no
9129 ac_outfile=conftest.$ac_objext
9130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9131 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9132 # Insert the option either (1) after the last *FLAGS variable, or
9133 # (2) before a word containing "conftest.", or (3) at the end.
9134 # Note that $ac_compile itself does not contain backslashes and begins
9135 # with a dollar sign (not a hyphen), so the echo should work correctly.
9136 # The option is referenced via a variable to avoid confusing sed.
9137 lt_compile=`echo "$ac_compile" | $SED \
9138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9140 -e 's:$: $lt_compiler_flag:'`
9141 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9142 (eval "$lt_compile" 2>conftest.err)
9143 ac_status=$?
9144 cat conftest.err >&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 if (exit $ac_status) && test -s "$ac_outfile"; then
9147 # The compiler can only warn and ignore the option if not recognized
9148 # So say no if there are warnings other than the usual output.
9149 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9151 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9152 lt_cv_prog_compiler_pic_works=yes
9153 fi
9154 fi
9155 $RM conftest*
9156
9157 fi
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9159 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9160
9161 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9162 case $lt_prog_compiler_pic in
9163 "" | " "*) ;;
9164 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9165 esac
9166 else
9167 lt_prog_compiler_pic=
9168 lt_prog_compiler_can_build_shared=no
9169 fi
9170
9171 fi
9172
9173
9174
9175
9176
9177
9178 #
9179 # Check to make sure the static flag actually works.
9180 #
9181 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9183 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9184 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9185 $as_echo_n "(cached) " >&6
9186 else
9187 lt_cv_prog_compiler_static_works=no
9188 save_LDFLAGS="$LDFLAGS"
9189 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9190 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9191 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9192 # The linker can only warn and ignore the option if not recognized
9193 # So say no if there are warnings
9194 if test -s conftest.err; then
9195 # Append any errors to the config.log.
9196 cat conftest.err 1>&5
9197 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9199 if diff conftest.exp conftest.er2 >/dev/null; then
9200 lt_cv_prog_compiler_static_works=yes
9201 fi
9202 else
9203 lt_cv_prog_compiler_static_works=yes
9204 fi
9205 fi
9206 $RM -r conftest*
9207 LDFLAGS="$save_LDFLAGS"
9208
9209 fi
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9211 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9212
9213 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9214 :
9215 else
9216 lt_prog_compiler_static=
9217 fi
9218
9219
9220
9221
9222
9223
9224
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9226 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9227 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 lt_cv_prog_compiler_c_o=no
9231 $RM -r conftest 2>/dev/null
9232 mkdir conftest
9233 cd conftest
9234 mkdir out
9235 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9236
9237 lt_compiler_flag="-o out/conftest2.$ac_objext"
9238 # Insert the option either (1) after the last *FLAGS variable, or
9239 # (2) before a word containing "conftest.", or (3) at the end.
9240 # Note that $ac_compile itself does not contain backslashes and begins
9241 # with a dollar sign (not a hyphen), so the echo should work correctly.
9242 lt_compile=`echo "$ac_compile" | $SED \
9243 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9245 -e 's:$: $lt_compiler_flag:'`
9246 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9247 (eval "$lt_compile" 2>out/conftest.err)
9248 ac_status=$?
9249 cat out/conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9252 then
9253 # The compiler can only warn and ignore the option if not recognized
9254 # So say no if there are warnings
9255 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9256 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9257 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9258 lt_cv_prog_compiler_c_o=yes
9259 fi
9260 fi
9261 chmod u+w . 2>&5
9262 $RM conftest*
9263 # SGI C++ compiler will create directory out/ii_files/ for
9264 # template instantiation
9265 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9266 $RM out/* && rmdir out
9267 cd ..
9268 $RM -r conftest
9269 $RM conftest*
9270
9271 fi
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9273 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9274
9275
9276
9277
9278
9279
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9281 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9282 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9283 $as_echo_n "(cached) " >&6
9284 else
9285 lt_cv_prog_compiler_c_o=no
9286 $RM -r conftest 2>/dev/null
9287 mkdir conftest
9288 cd conftest
9289 mkdir out
9290 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9291
9292 lt_compiler_flag="-o out/conftest2.$ac_objext"
9293 # Insert the option either (1) after the last *FLAGS variable, or
9294 # (2) before a word containing "conftest.", or (3) at the end.
9295 # Note that $ac_compile itself does not contain backslashes and begins
9296 # with a dollar sign (not a hyphen), so the echo should work correctly.
9297 lt_compile=`echo "$ac_compile" | $SED \
9298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9300 -e 's:$: $lt_compiler_flag:'`
9301 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9302 (eval "$lt_compile" 2>out/conftest.err)
9303 ac_status=$?
9304 cat out/conftest.err >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9307 then
9308 # The compiler can only warn and ignore the option if not recognized
9309 # So say no if there are warnings
9310 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9311 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9312 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9313 lt_cv_prog_compiler_c_o=yes
9314 fi
9315 fi
9316 chmod u+w . 2>&5
9317 $RM conftest*
9318 # SGI C++ compiler will create directory out/ii_files/ for
9319 # template instantiation
9320 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9321 $RM out/* && rmdir out
9322 cd ..
9323 $RM -r conftest
9324 $RM conftest*
9325
9326 fi
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9328 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9329
9330
9331
9332
9333 hard_links="nottested"
9334 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9335 # do not overwrite the value of need_locks provided by the user
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9337 $as_echo_n "checking if we can lock with hard links... " >&6; }
9338 hard_links=yes
9339 $RM conftest*
9340 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9341 touch conftest.a
9342 ln conftest.a conftest.b 2>&5 || hard_links=no
9343 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9345 $as_echo "$hard_links" >&6; }
9346 if test "$hard_links" = no; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9348 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9349 need_locks=warn
9350 fi
9351 else
9352 need_locks=no
9353 fi
9354
9355
9356
9357
9358
9359
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9361 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9362
9363 runpath_var=
9364 allow_undefined_flag=
9365 always_export_symbols=no
9366 archive_cmds=
9367 archive_expsym_cmds=
9368 compiler_needs_object=no
9369 enable_shared_with_static_runtimes=no
9370 export_dynamic_flag_spec=
9371 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9372 hardcode_automatic=no
9373 hardcode_direct=no
9374 hardcode_direct_absolute=no
9375 hardcode_libdir_flag_spec=
9376 hardcode_libdir_flag_spec_ld=
9377 hardcode_libdir_separator=
9378 hardcode_minus_L=no
9379 hardcode_shlibpath_var=unsupported
9380 inherit_rpath=no
9381 link_all_deplibs=unknown
9382 module_cmds=
9383 module_expsym_cmds=
9384 old_archive_from_new_cmds=
9385 old_archive_from_expsyms_cmds=
9386 thread_safe_flag_spec=
9387 whole_archive_flag_spec=
9388 # include_expsyms should be a list of space-separated symbols to be *always*
9389 # included in the symbol list
9390 include_expsyms=
9391 # exclude_expsyms can be an extended regexp of symbols to exclude
9392 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9393 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9394 # as well as any symbol that contains `d'.
9395 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9396 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9397 # platforms (ab)use it in PIC code, but their linkers get confused if
9398 # the symbol is explicitly referenced. Since portable code cannot
9399 # rely on this symbol name, it's probably fine to never include it in
9400 # preloaded symbol tables.
9401 # Exclude shared library initialization/finalization symbols.
9402 extract_expsyms_cmds=
9403
9404 case $host_os in
9405 cygwin* | mingw* | pw32* | cegcc*)
9406 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9407 # When not using gcc, we currently assume that we are using
9408 # Microsoft Visual C++.
9409 if test "$GCC" != yes; then
9410 with_gnu_ld=no
9411 fi
9412 ;;
9413 interix*)
9414 # we just hope/assume this is gcc and not c89 (= MSVC++)
9415 with_gnu_ld=yes
9416 ;;
9417 openbsd*)
9418 with_gnu_ld=no
9419 ;;
9420 esac
9421
9422 ld_shlibs=yes
9423
9424 # On some targets, GNU ld is compatible enough with the native linker
9425 # that we're better off using the native interface for both.
9426 lt_use_gnu_ld_interface=no
9427 if test "$with_gnu_ld" = yes; then
9428 case $host_os in
9429 aix*)
9430 # The AIX port of GNU ld has always aspired to compatibility
9431 # with the native linker. However, as the warning in the GNU ld
9432 # block says, versions before 2.19.5* couldn't really create working
9433 # shared libraries, regardless of the interface used.
9434 case `$LD -v 2>&1` in
9435 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9436 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9437 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9438 *)
9439 lt_use_gnu_ld_interface=yes
9440 ;;
9441 esac
9442 ;;
9443 *)
9444 lt_use_gnu_ld_interface=yes
9445 ;;
9446 esac
9447 fi
9448
9449 if test "$lt_use_gnu_ld_interface" = yes; then
9450 # If archive_cmds runs LD, not CC, wlarc should be empty
9451 wlarc='${wl}'
9452
9453 # Set some defaults for GNU ld with shared library support. These
9454 # are reset later if shared libraries are not supported. Putting them
9455 # here allows them to be overridden if necessary.
9456 runpath_var=LD_RUN_PATH
9457 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9458 export_dynamic_flag_spec='${wl}--export-dynamic'
9459 # ancient GNU ld didn't support --whole-archive et. al.
9460 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9461 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9462 else
9463 whole_archive_flag_spec=
9464 fi
9465 supports_anon_versioning=no
9466 case `$LD -v 2>&1` in
9467 *GNU\ gold*) supports_anon_versioning=yes ;;
9468 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9469 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9470 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9471 *\ 2.11.*) ;; # other 2.11 versions
9472 *) supports_anon_versioning=yes ;;
9473 esac
9474
9475 # See if GNU ld supports shared libraries.
9476 case $host_os in
9477 aix[3-9]*)
9478 # On AIX/PPC, the GNU linker is very broken
9479 if test "$host_cpu" != ia64; then
9480 ld_shlibs=no
9481 cat <<_LT_EOF 1>&2
9482
9483 *** Warning: the GNU linker, at least up to release 2.19, is reported
9484 *** to be unable to reliably create shared libraries on AIX.
9485 *** Therefore, libtool is disabling shared libraries support. If you
9486 *** really care for shared libraries, you may want to install binutils
9487 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9488 *** You will then need to restart the configuration process.
9489
9490 _LT_EOF
9491 fi
9492 ;;
9493
9494 amigaos*)
9495 case $host_cpu in
9496 powerpc)
9497 # see comment about AmigaOS4 .so support
9498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9499 archive_expsym_cmds=''
9500 ;;
9501 m68k)
9502 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)'
9503 hardcode_libdir_flag_spec='-L$libdir'
9504 hardcode_minus_L=yes
9505 ;;
9506 esac
9507 ;;
9508
9509 beos*)
9510 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9511 allow_undefined_flag=unsupported
9512 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9513 # support --undefined. This deserves some investigation. FIXME
9514 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9515 else
9516 ld_shlibs=no
9517 fi
9518 ;;
9519
9520 cygwin* | mingw* | pw32* | cegcc*)
9521 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9522 # as there is no search path for DLLs.
9523 hardcode_libdir_flag_spec='-L$libdir'
9524 export_dynamic_flag_spec='${wl}--export-all-symbols'
9525 allow_undefined_flag=unsupported
9526 always_export_symbols=no
9527 enable_shared_with_static_runtimes=yes
9528 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9529
9530 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9532 # If the export-symbols file already is a .def file (1st line
9533 # is EXPORTS), use it as is; otherwise, prepend...
9534 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9535 cp $export_symbols $output_objdir/$soname.def;
9536 else
9537 echo EXPORTS > $output_objdir/$soname.def;
9538 cat $export_symbols >> $output_objdir/$soname.def;
9539 fi~
9540 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9541 else
9542 ld_shlibs=no
9543 fi
9544 ;;
9545
9546 haiku*)
9547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9548 link_all_deplibs=yes
9549 ;;
9550
9551 interix[3-9]*)
9552 hardcode_direct=no
9553 hardcode_shlibpath_var=no
9554 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9555 export_dynamic_flag_spec='${wl}-E'
9556 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9557 # Instead, shared libraries are loaded at an image base (0x10000000 by
9558 # default) and relocated if they conflict, which is a slow very memory
9559 # consuming and fragmenting process. To avoid this, we pick a random,
9560 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9561 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9562 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9563 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'
9564 ;;
9565
9566 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9567 tmp_diet=no
9568 if test "$host_os" = linux-dietlibc; then
9569 case $cc_basename in
9570 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9571 esac
9572 fi
9573 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9574 && test "$tmp_diet" = no
9575 then
9576 tmp_addflag=
9577 tmp_sharedflag='-shared'
9578 case $cc_basename,$host_cpu in
9579 pgcc*) # Portland Group C compiler
9580 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'
9581 tmp_addflag=' $pic_flag'
9582 ;;
9583 pgf77* | pgf90* | pgf95* | pgfortran*)
9584 # Portland Group f77 and f90 compilers
9585 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'
9586 tmp_addflag=' $pic_flag -Mnomain' ;;
9587 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9588 tmp_addflag=' -i_dynamic' ;;
9589 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9590 tmp_addflag=' -i_dynamic -nofor_main' ;;
9591 ifc* | ifort*) # Intel Fortran compiler
9592 tmp_addflag=' -nofor_main' ;;
9593 lf95*) # Lahey Fortran 8.1
9594 whole_archive_flag_spec=
9595 tmp_sharedflag='--shared' ;;
9596 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9597 tmp_sharedflag='-qmkshrobj'
9598 tmp_addflag= ;;
9599 nvcc*) # Cuda Compiler Driver 2.2
9600 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'
9601 compiler_needs_object=yes
9602 ;;
9603 esac
9604 case `$CC -V 2>&1 | sed 5q` in
9605 *Sun\ C*) # Sun C 5.9
9606 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'
9607 compiler_needs_object=yes
9608 tmp_sharedflag='-G' ;;
9609 *Sun\ F*) # Sun Fortran 8.3
9610 tmp_sharedflag='-G' ;;
9611 esac
9612 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9613
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 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9619 fi
9620
9621 case $cc_basename in
9622 xlf* | bgf* | bgxlf* | mpixlf*)
9623 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9624 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9625 hardcode_libdir_flag_spec=
9626 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9627 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9628 if test "x$supports_anon_versioning" = xyes; then
9629 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9630 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9631 echo "local: *; };" >> $output_objdir/$libname.ver~
9632 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9633 fi
9634 ;;
9635 esac
9636 else
9637 ld_shlibs=no
9638 fi
9639 ;;
9640
9641 netbsd*)
9642 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9643 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9644 wlarc=
9645 else
9646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9647 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9648 fi
9649 ;;
9650
9651 solaris*)
9652 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9653 ld_shlibs=no
9654 cat <<_LT_EOF 1>&2
9655
9656 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9657 *** create shared libraries on Solaris systems. Therefore, libtool
9658 *** is disabling shared libraries support. We urge you to upgrade GNU
9659 *** binutils to release 2.9.1 or newer. Another option is to modify
9660 *** your PATH or compiler configuration so that the native linker is
9661 *** used, and then restart.
9662
9663 _LT_EOF
9664 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9666 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9667 else
9668 ld_shlibs=no
9669 fi
9670 ;;
9671
9672 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9673 case `$LD -v 2>&1` in
9674 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9675 ld_shlibs=no
9676 cat <<_LT_EOF 1>&2
9677
9678 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9679 *** reliably create shared libraries on SCO systems. Therefore, libtool
9680 *** is disabling shared libraries support. We urge you to upgrade GNU
9681 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9682 *** your PATH or compiler configuration so that the native linker is
9683 *** used, and then restart.
9684
9685 _LT_EOF
9686 ;;
9687 *)
9688 # For security reasons, it is highly recommended that you always
9689 # use absolute paths for naming shared libraries, and exclude the
9690 # DT_RUNPATH tag from executables and libraries. But doing so
9691 # requires that you compile everything twice, which is a pain.
9692 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9695 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9696 else
9697 ld_shlibs=no
9698 fi
9699 ;;
9700 esac
9701 ;;
9702
9703 sunos4*)
9704 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9705 wlarc=
9706 hardcode_direct=yes
9707 hardcode_shlibpath_var=no
9708 ;;
9709
9710 *)
9711 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9713 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9714 else
9715 ld_shlibs=no
9716 fi
9717 ;;
9718 esac
9719
9720 if test "$ld_shlibs" = no; then
9721 runpath_var=
9722 hardcode_libdir_flag_spec=
9723 export_dynamic_flag_spec=
9724 whole_archive_flag_spec=
9725 fi
9726 else
9727 # PORTME fill in a description of your system's linker (not GNU ld)
9728 case $host_os in
9729 aix3*)
9730 allow_undefined_flag=unsupported
9731 always_export_symbols=yes
9732 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'
9733 # Note: this linker hardcodes the directories in LIBPATH if there
9734 # are no directories specified by -L.
9735 hardcode_minus_L=yes
9736 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9737 # Neither direct hardcoding nor static linking is supported with a
9738 # broken collect2.
9739 hardcode_direct=unsupported
9740 fi
9741 ;;
9742
9743 aix[4-9]*)
9744 if test "$host_cpu" = ia64; then
9745 # On IA64, the linker does run time linking by default, so we don't
9746 # have to do anything special.
9747 aix_use_runtimelinking=no
9748 exp_sym_flag='-Bexport'
9749 no_entry_flag=""
9750 else
9751 # If we're using GNU nm, then we don't want the "-C" option.
9752 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9753 # Also, AIX nm treats weak defined symbols like other global
9754 # defined symbols, whereas GNU nm marks them as "W".
9755 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9756 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'
9757 else
9758 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'
9759 fi
9760 aix_use_runtimelinking=no
9761
9762 # Test if we are trying to use run time linking or normal
9763 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9764 # need to do runtime linking.
9765 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9766 for ld_flag in $LDFLAGS; do
9767 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9768 aix_use_runtimelinking=yes
9769 break
9770 fi
9771 done
9772 ;;
9773 esac
9774
9775 exp_sym_flag='-bexport'
9776 no_entry_flag='-bnoentry'
9777 fi
9778
9779 # When large executables or shared objects are built, AIX ld can
9780 # have problems creating the table of contents. If linking a library
9781 # or program results in "error TOC overflow" add -mminimal-toc to
9782 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9783 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9784
9785 archive_cmds=''
9786 hardcode_direct=yes
9787 hardcode_direct_absolute=yes
9788 hardcode_libdir_separator=':'
9789 link_all_deplibs=yes
9790 file_list_spec='${wl}-f,'
9791
9792 if test "$GCC" = yes; then
9793 case $host_os in aix4.[012]|aix4.[012].*)
9794 # We only want to do this on AIX 4.2 and lower, the check
9795 # below for broken collect2 doesn't work under 4.3+
9796 collect2name=`${CC} -print-prog-name=collect2`
9797 if test -f "$collect2name" &&
9798 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9799 then
9800 # We have reworked collect2
9801 :
9802 else
9803 # We have old collect2
9804 hardcode_direct=unsupported
9805 # It fails to find uninstalled libraries when the uninstalled
9806 # path is not listed in the libpath. Setting hardcode_minus_L
9807 # to unsupported forces relinking
9808 hardcode_minus_L=yes
9809 hardcode_libdir_flag_spec='-L$libdir'
9810 hardcode_libdir_separator=
9811 fi
9812 ;;
9813 esac
9814 shared_flag='-shared'
9815 if test "$aix_use_runtimelinking" = yes; then
9816 shared_flag="$shared_flag "'${wl}-G'
9817 fi
9818 else
9819 # not using gcc
9820 if test "$host_cpu" = ia64; then
9821 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9822 # chokes on -Wl,-G. The following line is correct:
9823 shared_flag='-G'
9824 else
9825 if test "$aix_use_runtimelinking" = yes; then
9826 shared_flag='${wl}-G'
9827 else
9828 shared_flag='${wl}-bM:SRE'
9829 fi
9830 fi
9831 fi
9832
9833 export_dynamic_flag_spec='${wl}-bexpall'
9834 # It seems that -bexpall does not export symbols beginning with
9835 # underscore (_), so it is better to generate a list of symbols to export.
9836 always_export_symbols=yes
9837 if test "$aix_use_runtimelinking" = yes; then
9838 # Warning - without using the other runtime loading flags (-brtl),
9839 # -berok will link without error, but may produce a broken library.
9840 allow_undefined_flag='-berok'
9841 # Determine the default libpath from the value encoded in an
9842 # empty executable.
9843 if test x$gcc_no_link = xyes; then
9844 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9845 fi
9846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9847 /* end confdefs.h. */
9848
9849 int
9850 main ()
9851 {
9852
9853 ;
9854 return 0;
9855 }
9856 _ACEOF
9857 if ac_fn_c_try_link "$LINENO"; then :
9858
9859 lt_aix_libpath_sed='
9860 /Import File Strings/,/^$/ {
9861 /^0/ {
9862 s/^0 *\(.*\)$/\1/
9863 p
9864 }
9865 }'
9866 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9867 # Check for a 64-bit object if we didn't find anything.
9868 if test -z "$aix_libpath"; then
9869 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9870 fi
9871 fi
9872 rm -f core conftest.err conftest.$ac_objext \
9873 conftest$ac_exeext conftest.$ac_ext
9874 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9875
9876 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9877 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"
9878 else
9879 if test "$host_cpu" = ia64; then
9880 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9881 allow_undefined_flag="-z nodefs"
9882 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"
9883 else
9884 # Determine the default libpath from the value encoded in an
9885 # empty executable.
9886 if test x$gcc_no_link = xyes; then
9887 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9888 fi
9889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890 /* end confdefs.h. */
9891
9892 int
9893 main ()
9894 {
9895
9896 ;
9897 return 0;
9898 }
9899 _ACEOF
9900 if ac_fn_c_try_link "$LINENO"; then :
9901
9902 lt_aix_libpath_sed='
9903 /Import File Strings/,/^$/ {
9904 /^0/ {
9905 s/^0 *\(.*\)$/\1/
9906 p
9907 }
9908 }'
9909 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9910 # Check for a 64-bit object if we didn't find anything.
9911 if test -z "$aix_libpath"; then
9912 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9913 fi
9914 fi
9915 rm -f core conftest.err conftest.$ac_objext \
9916 conftest$ac_exeext conftest.$ac_ext
9917 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9918
9919 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9920 # Warning - without using the other run time loading flags,
9921 # -berok will link without error, but may produce a broken library.
9922 no_undefined_flag=' ${wl}-bernotok'
9923 allow_undefined_flag=' ${wl}-berok'
9924 if test "$with_gnu_ld" = yes; then
9925 # We only use this code for GNU lds that support --whole-archive.
9926 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9927 else
9928 # Exported symbols can be pulled into shared objects from archives
9929 whole_archive_flag_spec='$convenience'
9930 fi
9931 archive_cmds_need_lc=yes
9932 # This is similar to how AIX traditionally builds its shared libraries.
9933 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'
9934 fi
9935 fi
9936 ;;
9937
9938 amigaos*)
9939 case $host_cpu in
9940 powerpc)
9941 # see comment about AmigaOS4 .so support
9942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9943 archive_expsym_cmds=''
9944 ;;
9945 m68k)
9946 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)'
9947 hardcode_libdir_flag_spec='-L$libdir'
9948 hardcode_minus_L=yes
9949 ;;
9950 esac
9951 ;;
9952
9953 bsdi[45]*)
9954 export_dynamic_flag_spec=-rdynamic
9955 ;;
9956
9957 cygwin* | mingw* | pw32* | cegcc*)
9958 # When not using gcc, we currently assume that we are using
9959 # Microsoft Visual C++.
9960 # hardcode_libdir_flag_spec is actually meaningless, as there is
9961 # no search path for DLLs.
9962 hardcode_libdir_flag_spec=' '
9963 allow_undefined_flag=unsupported
9964 # Tell ltmain to make .lib files, not .a files.
9965 libext=lib
9966 # Tell ltmain to make .dll files, not .so files.
9967 shrext_cmds=".dll"
9968 # FIXME: Setting linknames here is a bad hack.
9969 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9970 # The linker will automatically build a .lib file if we build a DLL.
9971 old_archive_from_new_cmds='true'
9972 # FIXME: Should let the user specify the lib program.
9973 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9974 fix_srcfile_path='`cygpath -w "$srcfile"`'
9975 enable_shared_with_static_runtimes=yes
9976 ;;
9977
9978 darwin* | rhapsody*)
9979
9980
9981 archive_cmds_need_lc=no
9982 hardcode_direct=no
9983 hardcode_automatic=yes
9984 hardcode_shlibpath_var=unsupported
9985 if test "$lt_cv_ld_force_load" = "yes"; then
9986 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\"`'
9987 else
9988 whole_archive_flag_spec=''
9989 fi
9990 link_all_deplibs=yes
9991 allow_undefined_flag="$_lt_dar_allow_undefined"
9992 case $cc_basename in
9993 ifort*) _lt_dar_can_shared=yes ;;
9994 *) _lt_dar_can_shared=$GCC ;;
9995 esac
9996 if test "$_lt_dar_can_shared" = "yes"; then
9997 output_verbose_link_cmd=func_echo_all
9998 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9999 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10000 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}"
10001 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}"
10002
10003 else
10004 ld_shlibs=no
10005 fi
10006
10007 ;;
10008
10009 dgux*)
10010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10011 hardcode_libdir_flag_spec='-L$libdir'
10012 hardcode_shlibpath_var=no
10013 ;;
10014
10015 freebsd1*)
10016 ld_shlibs=no
10017 ;;
10018
10019 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10020 # support. Future versions do this automatically, but an explicit c++rt0.o
10021 # does not break anything, and helps significantly (at the cost of a little
10022 # extra space).
10023 freebsd2.2*)
10024 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10025 hardcode_libdir_flag_spec='-R$libdir'
10026 hardcode_direct=yes
10027 hardcode_shlibpath_var=no
10028 ;;
10029
10030 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10031 freebsd2*)
10032 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10033 hardcode_direct=yes
10034 hardcode_minus_L=yes
10035 hardcode_shlibpath_var=no
10036 ;;
10037
10038 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10039 freebsd* | dragonfly*)
10040 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10041 hardcode_libdir_flag_spec='-R$libdir'
10042 hardcode_direct=yes
10043 hardcode_shlibpath_var=no
10044 ;;
10045
10046 hpux9*)
10047 if test "$GCC" = yes; then
10048 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'
10049 else
10050 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'
10051 fi
10052 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10053 hardcode_libdir_separator=:
10054 hardcode_direct=yes
10055
10056 # hardcode_minus_L: Not really in the search PATH,
10057 # but as the default location of the library.
10058 hardcode_minus_L=yes
10059 export_dynamic_flag_spec='${wl}-E'
10060 ;;
10061
10062 hpux10*)
10063 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10064 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10065 else
10066 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10067 fi
10068 if test "$with_gnu_ld" = no; then
10069 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10070 hardcode_libdir_flag_spec_ld='+b $libdir'
10071 hardcode_libdir_separator=:
10072 hardcode_direct=yes
10073 hardcode_direct_absolute=yes
10074 export_dynamic_flag_spec='${wl}-E'
10075 # hardcode_minus_L: Not really in the search PATH,
10076 # but as the default location of the library.
10077 hardcode_minus_L=yes
10078 fi
10079 ;;
10080
10081 hpux11*)
10082 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10083 case $host_cpu in
10084 hppa*64*)
10085 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10086 ;;
10087 ia64*)
10088 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10089 ;;
10090 *)
10091 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10092 ;;
10093 esac
10094 else
10095 case $host_cpu in
10096 hppa*64*)
10097 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10098 ;;
10099 ia64*)
10100 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10101 ;;
10102 *)
10103
10104 # Older versions of the 11.00 compiler do not understand -b yet
10105 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10107 $as_echo_n "checking if $CC understands -b... " >&6; }
10108 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10109 $as_echo_n "(cached) " >&6
10110 else
10111 lt_cv_prog_compiler__b=no
10112 save_LDFLAGS="$LDFLAGS"
10113 LDFLAGS="$LDFLAGS -b"
10114 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10115 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10116 # The linker can only warn and ignore the option if not recognized
10117 # So say no if there are warnings
10118 if test -s conftest.err; then
10119 # Append any errors to the config.log.
10120 cat conftest.err 1>&5
10121 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10123 if diff conftest.exp conftest.er2 >/dev/null; then
10124 lt_cv_prog_compiler__b=yes
10125 fi
10126 else
10127 lt_cv_prog_compiler__b=yes
10128 fi
10129 fi
10130 $RM -r conftest*
10131 LDFLAGS="$save_LDFLAGS"
10132
10133 fi
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10135 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10136
10137 if test x"$lt_cv_prog_compiler__b" = xyes; then
10138 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10139 else
10140 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10141 fi
10142
10143 ;;
10144 esac
10145 fi
10146 if test "$with_gnu_ld" = no; then
10147 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10148 hardcode_libdir_separator=:
10149
10150 case $host_cpu in
10151 hppa*64*|ia64*)
10152 hardcode_direct=no
10153 hardcode_shlibpath_var=no
10154 ;;
10155 *)
10156 hardcode_direct=yes
10157 hardcode_direct_absolute=yes
10158 export_dynamic_flag_spec='${wl}-E'
10159
10160 # hardcode_minus_L: Not really in the search PATH,
10161 # but as the default location of the library.
10162 hardcode_minus_L=yes
10163 ;;
10164 esac
10165 fi
10166 ;;
10167
10168 irix5* | irix6* | nonstopux*)
10169 if test "$GCC" = yes; then
10170 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'
10171 # Try to use the -exported_symbol ld option, if it does not
10172 # work, assume that -exports_file does not work either and
10173 # implicitly export all symbols.
10174 save_LDFLAGS="$LDFLAGS"
10175 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10176 if test x$gcc_no_link = xyes; then
10177 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10178 fi
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10181 int foo(void) {}
10182 _ACEOF
10183 if ac_fn_c_try_link "$LINENO"; then :
10184 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'
10185
10186 fi
10187 rm -f core conftest.err conftest.$ac_objext \
10188 conftest$ac_exeext conftest.$ac_ext
10189 LDFLAGS="$save_LDFLAGS"
10190 else
10191 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'
10192 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'
10193 fi
10194 archive_cmds_need_lc='no'
10195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10196 hardcode_libdir_separator=:
10197 inherit_rpath=yes
10198 link_all_deplibs=yes
10199 ;;
10200
10201 netbsd*)
10202 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10204 else
10205 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10206 fi
10207 hardcode_libdir_flag_spec='-R$libdir'
10208 hardcode_direct=yes
10209 hardcode_shlibpath_var=no
10210 ;;
10211
10212 newsos6)
10213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10214 hardcode_direct=yes
10215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10216 hardcode_libdir_separator=:
10217 hardcode_shlibpath_var=no
10218 ;;
10219
10220 *nto* | *qnx*)
10221 ;;
10222
10223 openbsd*)
10224 if test -f /usr/libexec/ld.so; then
10225 hardcode_direct=yes
10226 hardcode_shlibpath_var=no
10227 hardcode_direct_absolute=yes
10228 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10230 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10232 export_dynamic_flag_spec='${wl}-E'
10233 else
10234 case $host_os in
10235 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10237 hardcode_libdir_flag_spec='-R$libdir'
10238 ;;
10239 *)
10240 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10241 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10242 ;;
10243 esac
10244 fi
10245 else
10246 ld_shlibs=no
10247 fi
10248 ;;
10249
10250 os2*)
10251 hardcode_libdir_flag_spec='-L$libdir'
10252 hardcode_minus_L=yes
10253 allow_undefined_flag=unsupported
10254 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'
10255 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10256 ;;
10257
10258 osf3*)
10259 if test "$GCC" = yes; then
10260 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10261 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'
10262 else
10263 allow_undefined_flag=' -expect_unresolved \*'
10264 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'
10265 fi
10266 archive_cmds_need_lc='no'
10267 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10268 hardcode_libdir_separator=:
10269 ;;
10270
10271 osf4* | osf5*) # as osf3* with the addition of -msym flag
10272 if test "$GCC" = yes; then
10273 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10274 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'
10275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10276 else
10277 allow_undefined_flag=' -expect_unresolved \*'
10278 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'
10279 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~
10280 $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'
10281
10282 # Both c and cxx compiler support -rpath directly
10283 hardcode_libdir_flag_spec='-rpath $libdir'
10284 fi
10285 archive_cmds_need_lc='no'
10286 hardcode_libdir_separator=:
10287 ;;
10288
10289 solaris*)
10290 no_undefined_flag=' -z defs'
10291 if test "$GCC" = yes; then
10292 wlarc='${wl}'
10293 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10294 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10295 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10296 else
10297 case `$CC -V 2>&1` in
10298 *"Compilers 5.0"*)
10299 wlarc=''
10300 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10301 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10302 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10303 ;;
10304 *)
10305 wlarc='${wl}'
10306 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10307 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10308 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10309 ;;
10310 esac
10311 fi
10312 hardcode_libdir_flag_spec='-R$libdir'
10313 hardcode_shlibpath_var=no
10314 case $host_os in
10315 solaris2.[0-5] | solaris2.[0-5].*) ;;
10316 *)
10317 # The compiler driver will combine and reorder linker options,
10318 # but understands `-z linker_flag'. GCC discards it without `$wl',
10319 # but is careful enough not to reorder.
10320 # Supported since Solaris 2.6 (maybe 2.5.1?)
10321 if test "$GCC" = yes; then
10322 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10323 else
10324 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10325 fi
10326 ;;
10327 esac
10328 link_all_deplibs=yes
10329 ;;
10330
10331 sunos4*)
10332 if test "x$host_vendor" = xsequent; then
10333 # Use $CC to link under sequent, because it throws in some extra .o
10334 # files that make .init and .fini sections work.
10335 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10336 else
10337 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10338 fi
10339 hardcode_libdir_flag_spec='-L$libdir'
10340 hardcode_direct=yes
10341 hardcode_minus_L=yes
10342 hardcode_shlibpath_var=no
10343 ;;
10344
10345 sysv4)
10346 case $host_vendor in
10347 sni)
10348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10349 hardcode_direct=yes # is this really true???
10350 ;;
10351 siemens)
10352 ## LD is ld it makes a PLAMLIB
10353 ## CC just makes a GrossModule.
10354 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10355 reload_cmds='$CC -r -o $output$reload_objs'
10356 hardcode_direct=no
10357 ;;
10358 motorola)
10359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10360 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10361 ;;
10362 esac
10363 runpath_var='LD_RUN_PATH'
10364 hardcode_shlibpath_var=no
10365 ;;
10366
10367 sysv4.3*)
10368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10369 hardcode_shlibpath_var=no
10370 export_dynamic_flag_spec='-Bexport'
10371 ;;
10372
10373 sysv4*MP*)
10374 if test -d /usr/nec; then
10375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10376 hardcode_shlibpath_var=no
10377 runpath_var=LD_RUN_PATH
10378 hardcode_runpath_var=yes
10379 ld_shlibs=yes
10380 fi
10381 ;;
10382
10383 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10384 no_undefined_flag='${wl}-z,text'
10385 archive_cmds_need_lc=no
10386 hardcode_shlibpath_var=no
10387 runpath_var='LD_RUN_PATH'
10388
10389 if test "$GCC" = yes; then
10390 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10391 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10392 else
10393 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395 fi
10396 ;;
10397
10398 sysv5* | sco3.2v5* | sco5v6*)
10399 # Note: We can NOT use -z defs as we might desire, because we do not
10400 # link with -lc, and that would cause any symbols used from libc to
10401 # always be unresolved, which means just about no library would
10402 # ever link correctly. If we're not using GNU ld we use -z text
10403 # though, which does catch some bad symbols but isn't as heavy-handed
10404 # as -z defs.
10405 no_undefined_flag='${wl}-z,text'
10406 allow_undefined_flag='${wl}-z,nodefs'
10407 archive_cmds_need_lc=no
10408 hardcode_shlibpath_var=no
10409 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10410 hardcode_libdir_separator=':'
10411 link_all_deplibs=yes
10412 export_dynamic_flag_spec='${wl}-Bexport'
10413 runpath_var='LD_RUN_PATH'
10414
10415 if test "$GCC" = yes; then
10416 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10417 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10418 else
10419 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10420 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 fi
10422 ;;
10423
10424 uts4*)
10425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10426 hardcode_libdir_flag_spec='-L$libdir'
10427 hardcode_shlibpath_var=no
10428 ;;
10429
10430 *)
10431 ld_shlibs=no
10432 ;;
10433 esac
10434
10435 if test x$host_vendor = xsni; then
10436 case $host in
10437 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10438 export_dynamic_flag_spec='${wl}-Blargedynsym'
10439 ;;
10440 esac
10441 fi
10442 fi
10443
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10445 $as_echo "$ld_shlibs" >&6; }
10446 test "$ld_shlibs" = no && can_build_shared=no
10447
10448 with_gnu_ld=$with_gnu_ld
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464 #
10465 # Do we need to explicitly link libc?
10466 #
10467 case "x$archive_cmds_need_lc" in
10468 x|xyes)
10469 # Assume -lc should be added
10470 archive_cmds_need_lc=yes
10471
10472 if test "$enable_shared" = yes && test "$GCC" = yes; then
10473 case $archive_cmds in
10474 *'~'*)
10475 # FIXME: we may have to deal with multi-command sequences.
10476 ;;
10477 '$CC '*)
10478 # Test whether the compiler implicitly links with -lc since on some
10479 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10480 # to ld, don't add -lc before -lgcc.
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10482 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10483 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10484 $as_echo_n "(cached) " >&6
10485 else
10486 $RM conftest*
10487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10488
10489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10490 (eval $ac_compile) 2>&5
10491 ac_status=$?
10492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10493 test $ac_status = 0; } 2>conftest.err; then
10494 soname=conftest
10495 lib=conftest
10496 libobjs=conftest.$ac_objext
10497 deplibs=
10498 wl=$lt_prog_compiler_wl
10499 pic_flag=$lt_prog_compiler_pic
10500 compiler_flags=-v
10501 linker_flags=-v
10502 verstring=
10503 output_objdir=.
10504 libname=conftest
10505 lt_save_allow_undefined_flag=$allow_undefined_flag
10506 allow_undefined_flag=
10507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10508 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10509 ac_status=$?
10510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10511 test $ac_status = 0; }
10512 then
10513 lt_cv_archive_cmds_need_lc=no
10514 else
10515 lt_cv_archive_cmds_need_lc=yes
10516 fi
10517 allow_undefined_flag=$lt_save_allow_undefined_flag
10518 else
10519 cat conftest.err 1>&5
10520 fi
10521 $RM conftest*
10522
10523 fi
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10525 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10526 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10527 ;;
10528 esac
10529 fi
10530 ;;
10531 esac
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
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10690 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10691
10692 if test "$GCC" = yes; then
10693 case $host_os in
10694 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10695 *) lt_awk_arg="/^libraries:/" ;;
10696 esac
10697 case $host_os in
10698 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10699 *) lt_sed_strip_eq="s,=/,/,g" ;;
10700 esac
10701 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10702 case $lt_search_path_spec in
10703 *\;*)
10704 # if the path contains ";" then we assume it to be the separator
10705 # otherwise default to the standard path separator (i.e. ":") - it is
10706 # assumed that no part of a normal pathname contains ";" but that should
10707 # okay in the real world where ";" in dirpaths is itself problematic.
10708 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10709 ;;
10710 *)
10711 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10712 ;;
10713 esac
10714 # Ok, now we have the path, separated by spaces, we can step through it
10715 # and add multilib dir if necessary.
10716 lt_tmp_lt_search_path_spec=
10717 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10718 for lt_sys_path in $lt_search_path_spec; do
10719 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10720 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10721 else
10722 test -d "$lt_sys_path" && \
10723 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10724 fi
10725 done
10726 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10727 BEGIN {RS=" "; FS="/|\n";} {
10728 lt_foo="";
10729 lt_count=0;
10730 for (lt_i = NF; lt_i > 0; lt_i--) {
10731 if ($lt_i != "" && $lt_i != ".") {
10732 if ($lt_i == "..") {
10733 lt_count++;
10734 } else {
10735 if (lt_count == 0) {
10736 lt_foo="/" $lt_i lt_foo;
10737 } else {
10738 lt_count--;
10739 }
10740 }
10741 }
10742 }
10743 if (lt_foo != "") { lt_freq[lt_foo]++; }
10744 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10745 }'`
10746 # AWK program above erroneously prepends '/' to C:/dos/paths
10747 # for these hosts.
10748 case $host_os in
10749 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10750 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10751 esac
10752 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10753 else
10754 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10755 fi
10756 library_names_spec=
10757 libname_spec='lib$name'
10758 soname_spec=
10759 shrext_cmds=".so"
10760 postinstall_cmds=
10761 postuninstall_cmds=
10762 finish_cmds=
10763 finish_eval=
10764 shlibpath_var=
10765 shlibpath_overrides_runpath=unknown
10766 version_type=none
10767 dynamic_linker="$host_os ld.so"
10768 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10769 need_lib_prefix=unknown
10770 hardcode_into_libs=no
10771
10772 # when you set need_version to no, make sure it does not cause -set_version
10773 # flags to be left without arguments
10774 need_version=unknown
10775
10776 case $host_os in
10777 aix3*)
10778 version_type=linux
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10780 shlibpath_var=LIBPATH
10781
10782 # AIX 3 has no versioning support, so we append a major version to the name.
10783 soname_spec='${libname}${release}${shared_ext}$major'
10784 ;;
10785
10786 aix[4-9]*)
10787 version_type=linux
10788 need_lib_prefix=no
10789 need_version=no
10790 hardcode_into_libs=yes
10791 if test "$host_cpu" = ia64; then
10792 # AIX 5 supports IA64
10793 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10794 shlibpath_var=LD_LIBRARY_PATH
10795 else
10796 # With GCC up to 2.95.x, collect2 would create an import file
10797 # for dependence libraries. The import file would start with
10798 # the line `#! .'. This would cause the generated library to
10799 # depend on `.', always an invalid library. This was fixed in
10800 # development snapshots of GCC prior to 3.0.
10801 case $host_os in
10802 aix4 | aix4.[01] | aix4.[01].*)
10803 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10804 echo ' yes '
10805 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10806 :
10807 else
10808 can_build_shared=no
10809 fi
10810 ;;
10811 esac
10812 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10813 # soname into executable. Probably we can add versioning support to
10814 # collect2, so additional links can be useful in future.
10815 if test "$aix_use_runtimelinking" = yes; then
10816 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10817 # instead of lib<name>.a to let people know that these are not
10818 # typical AIX shared libraries.
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820 else
10821 # We preserve .a as extension for shared libraries through AIX4.2
10822 # and later when we are not doing run time linking.
10823 library_names_spec='${libname}${release}.a $libname.a'
10824 soname_spec='${libname}${release}${shared_ext}$major'
10825 fi
10826 shlibpath_var=LIBPATH
10827 fi
10828 ;;
10829
10830 amigaos*)
10831 case $host_cpu in
10832 powerpc)
10833 # Since July 2007 AmigaOS4 officially supports .so libraries.
10834 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10836 ;;
10837 m68k)
10838 library_names_spec='$libname.ixlibrary $libname.a'
10839 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10840 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'
10841 ;;
10842 esac
10843 ;;
10844
10845 beos*)
10846 library_names_spec='${libname}${shared_ext}'
10847 dynamic_linker="$host_os ld.so"
10848 shlibpath_var=LIBRARY_PATH
10849 ;;
10850
10851 bsdi[45]*)
10852 version_type=linux
10853 need_version=no
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10855 soname_spec='${libname}${release}${shared_ext}$major'
10856 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10857 shlibpath_var=LD_LIBRARY_PATH
10858 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10859 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10860 # the default ld.so.conf also contains /usr/contrib/lib and
10861 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10862 # libtool to hard-code these into programs
10863 ;;
10864
10865 cygwin* | mingw* | pw32* | cegcc*)
10866 version_type=windows
10867 shrext_cmds=".dll"
10868 need_version=no
10869 need_lib_prefix=no
10870
10871 case $GCC,$host_os in
10872 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10873 library_names_spec='$libname.dll.a'
10874 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10875 postinstall_cmds='base_file=`basename \${file}`~
10876 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10877 dldir=$destdir/`dirname \$dlpath`~
10878 test -d \$dldir || mkdir -p \$dldir~
10879 $install_prog $dir/$dlname \$dldir/$dlname~
10880 chmod a+x \$dldir/$dlname~
10881 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10882 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10883 fi'
10884 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10885 dlpath=$dir/\$dldll~
10886 $RM \$dlpath'
10887 shlibpath_overrides_runpath=yes
10888
10889 case $host_os in
10890 cygwin*)
10891 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10892 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10893
10894 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10895 ;;
10896 mingw* | cegcc*)
10897 # MinGW DLLs use traditional 'lib' prefix
10898 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10899 ;;
10900 pw32*)
10901 # pw32 DLLs use 'pw' prefix rather than 'lib'
10902 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10903 ;;
10904 esac
10905 ;;
10906
10907 *)
10908 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10909 ;;
10910 esac
10911 dynamic_linker='Win32 ld.exe'
10912 # FIXME: first we should search . and the directory the executable is in
10913 shlibpath_var=PATH
10914 ;;
10915
10916 darwin* | rhapsody*)
10917 dynamic_linker="$host_os dyld"
10918 version_type=darwin
10919 need_lib_prefix=no
10920 need_version=no
10921 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10922 soname_spec='${libname}${release}${major}$shared_ext'
10923 shlibpath_overrides_runpath=yes
10924 shlibpath_var=DYLD_LIBRARY_PATH
10925 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10926
10927 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10928 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10929 ;;
10930
10931 dgux*)
10932 version_type=linux
10933 need_lib_prefix=no
10934 need_version=no
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10936 soname_spec='${libname}${release}${shared_ext}$major'
10937 shlibpath_var=LD_LIBRARY_PATH
10938 ;;
10939
10940 freebsd1*)
10941 dynamic_linker=no
10942 ;;
10943
10944 freebsd* | dragonfly*)
10945 # DragonFly does not have aout. When/if they implement a new
10946 # versioning mechanism, adjust this.
10947 if test -x /usr/bin/objformat; then
10948 objformat=`/usr/bin/objformat`
10949 else
10950 case $host_os in
10951 freebsd[123]*) objformat=aout ;;
10952 *) objformat=elf ;;
10953 esac
10954 fi
10955 version_type=freebsd-$objformat
10956 case $version_type in
10957 freebsd-elf*)
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10959 need_version=no
10960 need_lib_prefix=no
10961 ;;
10962 freebsd-*)
10963 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10964 need_version=yes
10965 ;;
10966 esac
10967 shlibpath_var=LD_LIBRARY_PATH
10968 case $host_os in
10969 freebsd2*)
10970 shlibpath_overrides_runpath=yes
10971 ;;
10972 freebsd3.[01]* | freebsdelf3.[01]*)
10973 shlibpath_overrides_runpath=yes
10974 hardcode_into_libs=yes
10975 ;;
10976 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10977 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10978 shlibpath_overrides_runpath=no
10979 hardcode_into_libs=yes
10980 ;;
10981 *) # from 4.6 on, and DragonFly
10982 shlibpath_overrides_runpath=yes
10983 hardcode_into_libs=yes
10984 ;;
10985 esac
10986 ;;
10987
10988 gnu*)
10989 version_type=linux
10990 need_lib_prefix=no
10991 need_version=no
10992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10993 soname_spec='${libname}${release}${shared_ext}$major'
10994 shlibpath_var=LD_LIBRARY_PATH
10995 hardcode_into_libs=yes
10996 ;;
10997
10998 haiku*)
10999 version_type=linux
11000 need_lib_prefix=no
11001 need_version=no
11002 dynamic_linker="$host_os runtime_loader"
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11004 soname_spec='${libname}${release}${shared_ext}$major'
11005 shlibpath_var=LIBRARY_PATH
11006 shlibpath_overrides_runpath=yes
11007 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11008 hardcode_into_libs=yes
11009 ;;
11010
11011 hpux9* | hpux10* | hpux11*)
11012 # Give a soname corresponding to the major version so that dld.sl refuses to
11013 # link against other versions.
11014 version_type=sunos
11015 need_lib_prefix=no
11016 need_version=no
11017 case $host_cpu in
11018 ia64*)
11019 shrext_cmds='.so'
11020 hardcode_into_libs=yes
11021 dynamic_linker="$host_os dld.so"
11022 shlibpath_var=LD_LIBRARY_PATH
11023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11025 soname_spec='${libname}${release}${shared_ext}$major'
11026 if test "X$HPUX_IA64_MODE" = X32; then
11027 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11028 else
11029 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11030 fi
11031 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11032 ;;
11033 hppa*64*)
11034 shrext_cmds='.sl'
11035 hardcode_into_libs=yes
11036 dynamic_linker="$host_os dld.sl"
11037 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11038 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040 soname_spec='${libname}${release}${shared_ext}$major'
11041 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11043 ;;
11044 *)
11045 shrext_cmds='.sl'
11046 dynamic_linker="$host_os dld.sl"
11047 shlibpath_var=SHLIB_PATH
11048 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
11052 esac
11053 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11054 postinstall_cmds='chmod 555 $lib'
11055 # or fails outright, so override atomically:
11056 install_override_mode=555
11057 ;;
11058
11059 interix[3-9]*)
11060 version_type=linux
11061 need_lib_prefix=no
11062 need_version=no
11063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11064 soname_spec='${libname}${release}${shared_ext}$major'
11065 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11066 shlibpath_var=LD_LIBRARY_PATH
11067 shlibpath_overrides_runpath=no
11068 hardcode_into_libs=yes
11069 ;;
11070
11071 irix5* | irix6* | nonstopux*)
11072 case $host_os in
11073 nonstopux*) version_type=nonstopux ;;
11074 *)
11075 if test "$lt_cv_prog_gnu_ld" = yes; then
11076 version_type=linux
11077 else
11078 version_type=irix
11079 fi ;;
11080 esac
11081 need_lib_prefix=no
11082 need_version=no
11083 soname_spec='${libname}${release}${shared_ext}$major'
11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11085 case $host_os in
11086 irix5* | nonstopux*)
11087 libsuff= shlibsuff=
11088 ;;
11089 *)
11090 case $LD in # libtool.m4 will add one of these switches to LD
11091 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11092 libsuff= shlibsuff= libmagic=32-bit;;
11093 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11094 libsuff=32 shlibsuff=N32 libmagic=N32;;
11095 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11096 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11097 *) libsuff= shlibsuff= libmagic=never-match;;
11098 esac
11099 ;;
11100 esac
11101 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11102 shlibpath_overrides_runpath=no
11103 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11104 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11105 hardcode_into_libs=yes
11106 ;;
11107
11108 # No shared lib support for Linux oldld, aout, or coff.
11109 linux*oldld* | linux*aout* | linux*coff*)
11110 dynamic_linker=no
11111 ;;
11112
11113 # This must be Linux ELF.
11114 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11115 version_type=linux
11116 need_lib_prefix=no
11117 need_version=no
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119 soname_spec='${libname}${release}${shared_ext}$major'
11120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 shlibpath_overrides_runpath=no
11123
11124 # Some binutils ld are patched to set DT_RUNPATH
11125 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11126 $as_echo_n "(cached) " >&6
11127 else
11128 lt_cv_shlibpath_overrides_runpath=no
11129 save_LDFLAGS=$LDFLAGS
11130 save_libdir=$libdir
11131 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11132 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11133 if test x$gcc_no_link = xyes; then
11134 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11135 fi
11136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11137 /* end confdefs.h. */
11138
11139 int
11140 main ()
11141 {
11142
11143 ;
11144 return 0;
11145 }
11146 _ACEOF
11147 if ac_fn_c_try_link "$LINENO"; then :
11148 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11149 lt_cv_shlibpath_overrides_runpath=yes
11150 fi
11151 fi
11152 rm -f core conftest.err conftest.$ac_objext \
11153 conftest$ac_exeext conftest.$ac_ext
11154 LDFLAGS=$save_LDFLAGS
11155 libdir=$save_libdir
11156
11157 fi
11158
11159 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11160
11161 # This implies no fast_install, which is unacceptable.
11162 # Some rework will be needed to allow for fast_install
11163 # before this can be enabled.
11164 hardcode_into_libs=yes
11165
11166 # Append ld.so.conf contents to the search path
11167 if test -f /etc/ld.so.conf; then
11168 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' ' '`
11169 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11170 fi
11171
11172 # We used to test for /lib/ld.so.1 and disable shared libraries on
11173 # powerpc, because MkLinux only supported shared libraries with the
11174 # GNU dynamic linker. Since this was broken with cross compilers,
11175 # most powerpc-linux boxes support dynamic linking these days and
11176 # people can always --disable-shared, the test was removed, and we
11177 # assume the GNU/Linux dynamic linker is in use.
11178 dynamic_linker='GNU/Linux ld.so'
11179 ;;
11180
11181 netbsd*)
11182 version_type=sunos
11183 need_lib_prefix=no
11184 need_version=no
11185 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11188 dynamic_linker='NetBSD (a.out) ld.so'
11189 else
11190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11191 soname_spec='${libname}${release}${shared_ext}$major'
11192 dynamic_linker='NetBSD ld.elf_so'
11193 fi
11194 shlibpath_var=LD_LIBRARY_PATH
11195 shlibpath_overrides_runpath=yes
11196 hardcode_into_libs=yes
11197 ;;
11198
11199 newsos6)
11200 version_type=linux
11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 shlibpath_overrides_runpath=yes
11204 ;;
11205
11206 *nto* | *qnx*)
11207 version_type=qnx
11208 need_lib_prefix=no
11209 need_version=no
11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11211 soname_spec='${libname}${release}${shared_ext}$major'
11212 shlibpath_var=LD_LIBRARY_PATH
11213 shlibpath_overrides_runpath=no
11214 hardcode_into_libs=yes
11215 dynamic_linker='ldqnx.so'
11216 ;;
11217
11218 openbsd*)
11219 version_type=sunos
11220 sys_lib_dlsearch_path_spec="/usr/lib"
11221 need_lib_prefix=no
11222 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11223 case $host_os in
11224 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11225 *) need_version=no ;;
11226 esac
11227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11229 shlibpath_var=LD_LIBRARY_PATH
11230 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11231 case $host_os in
11232 openbsd2.[89] | openbsd2.[89].*)
11233 shlibpath_overrides_runpath=no
11234 ;;
11235 *)
11236 shlibpath_overrides_runpath=yes
11237 ;;
11238 esac
11239 else
11240 shlibpath_overrides_runpath=yes
11241 fi
11242 ;;
11243
11244 os2*)
11245 libname_spec='$name'
11246 shrext_cmds=".dll"
11247 need_lib_prefix=no
11248 library_names_spec='$libname${shared_ext} $libname.a'
11249 dynamic_linker='OS/2 ld.exe'
11250 shlibpath_var=LIBPATH
11251 ;;
11252
11253 osf3* | osf4* | osf5*)
11254 version_type=osf
11255 need_lib_prefix=no
11256 need_version=no
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11259 shlibpath_var=LD_LIBRARY_PATH
11260 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11261 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11262 ;;
11263
11264 rdos*)
11265 dynamic_linker=no
11266 ;;
11267
11268 solaris*)
11269 version_type=linux
11270 need_lib_prefix=no
11271 need_version=no
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11273 soname_spec='${libname}${release}${shared_ext}$major'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 shlibpath_overrides_runpath=yes
11276 hardcode_into_libs=yes
11277 # ldd complains unless libraries are executable
11278 postinstall_cmds='chmod +x $lib'
11279 ;;
11280
11281 sunos4*)
11282 version_type=sunos
11283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11284 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11285 shlibpath_var=LD_LIBRARY_PATH
11286 shlibpath_overrides_runpath=yes
11287 if test "$with_gnu_ld" = yes; then
11288 need_lib_prefix=no
11289 fi
11290 need_version=yes
11291 ;;
11292
11293 sysv4 | sysv4.3*)
11294 version_type=linux
11295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11296 soname_spec='${libname}${release}${shared_ext}$major'
11297 shlibpath_var=LD_LIBRARY_PATH
11298 case $host_vendor in
11299 sni)
11300 shlibpath_overrides_runpath=no
11301 need_lib_prefix=no
11302 runpath_var=LD_RUN_PATH
11303 ;;
11304 siemens)
11305 need_lib_prefix=no
11306 ;;
11307 motorola)
11308 need_lib_prefix=no
11309 need_version=no
11310 shlibpath_overrides_runpath=no
11311 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11312 ;;
11313 esac
11314 ;;
11315
11316 sysv4*MP*)
11317 if test -d /usr/nec ;then
11318 version_type=linux
11319 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11320 soname_spec='$libname${shared_ext}.$major'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 fi
11323 ;;
11324
11325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11326 version_type=freebsd-elf
11327 need_lib_prefix=no
11328 need_version=no
11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11330 soname_spec='${libname}${release}${shared_ext}$major'
11331 shlibpath_var=LD_LIBRARY_PATH
11332 shlibpath_overrides_runpath=yes
11333 hardcode_into_libs=yes
11334 if test "$with_gnu_ld" = yes; then
11335 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11336 else
11337 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11338 case $host_os in
11339 sco3.2v5*)
11340 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11341 ;;
11342 esac
11343 fi
11344 sys_lib_dlsearch_path_spec='/usr/lib'
11345 ;;
11346
11347 tpf*)
11348 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11349 version_type=linux
11350 need_lib_prefix=no
11351 need_version=no
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 shlibpath_overrides_runpath=no
11355 hardcode_into_libs=yes
11356 ;;
11357
11358 uts4*)
11359 version_type=linux
11360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361 soname_spec='${libname}${release}${shared_ext}$major'
11362 shlibpath_var=LD_LIBRARY_PATH
11363 ;;
11364
11365 *)
11366 dynamic_linker=no
11367 ;;
11368 esac
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11370 $as_echo "$dynamic_linker" >&6; }
11371 test "$dynamic_linker" = no && can_build_shared=no
11372
11373 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11374 if test "$GCC" = yes; then
11375 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11376 fi
11377
11378 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11379 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11380 fi
11381 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11382 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11383 fi
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
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11477 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11478 hardcode_action=
11479 if test -n "$hardcode_libdir_flag_spec" ||
11480 test -n "$runpath_var" ||
11481 test "X$hardcode_automatic" = "Xyes" ; then
11482
11483 # We can hardcode non-existent directories.
11484 if test "$hardcode_direct" != no &&
11485 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11486 # have to relink, otherwise we might link with an installed library
11487 # when we should be linking with a yet-to-be-installed one
11488 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11489 test "$hardcode_minus_L" != no; then
11490 # Linking always hardcodes the temporary library directory.
11491 hardcode_action=relink
11492 else
11493 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11494 hardcode_action=immediate
11495 fi
11496 else
11497 # We cannot hardcode anything, or else we can only hardcode existing
11498 # directories.
11499 hardcode_action=unsupported
11500 fi
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11502 $as_echo "$hardcode_action" >&6; }
11503
11504 if test "$hardcode_action" = relink ||
11505 test "$inherit_rpath" = yes; then
11506 # Fast installation is not supported
11507 enable_fast_install=no
11508 elif test "$shlibpath_overrides_runpath" = yes ||
11509 test "$enable_shared" = no; then
11510 # Fast installation is not necessary
11511 enable_fast_install=needless
11512 fi
11513
11514
11515
11516
11517
11518
11519 if test "x$enable_dlopen" != xyes; then
11520 enable_dlopen=unknown
11521 enable_dlopen_self=unknown
11522 enable_dlopen_self_static=unknown
11523 else
11524 lt_cv_dlopen=no
11525 lt_cv_dlopen_libs=
11526
11527 case $host_os in
11528 beos*)
11529 lt_cv_dlopen="load_add_on"
11530 lt_cv_dlopen_libs=
11531 lt_cv_dlopen_self=yes
11532 ;;
11533
11534 mingw* | pw32* | cegcc*)
11535 lt_cv_dlopen="LoadLibrary"
11536 lt_cv_dlopen_libs=
11537 ;;
11538
11539 cygwin*)
11540 lt_cv_dlopen="dlopen"
11541 lt_cv_dlopen_libs=
11542 ;;
11543
11544 darwin*)
11545 # if libdl is installed we need to link against it
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11547 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11548 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11549 $as_echo_n "(cached) " >&6
11550 else
11551 ac_check_lib_save_LIBS=$LIBS
11552 LIBS="-ldl $LIBS"
11553 if test x$gcc_no_link = xyes; then
11554 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11555 fi
11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557 /* end confdefs.h. */
11558
11559 /* Override any GCC internal prototype to avoid an error.
11560 Use char because int might match the return type of a GCC
11561 builtin and then its argument prototype would still apply. */
11562 #ifdef __cplusplus
11563 extern "C"
11564 #endif
11565 char dlopen ();
11566 int
11567 main ()
11568 {
11569 return dlopen ();
11570 ;
11571 return 0;
11572 }
11573 _ACEOF
11574 if ac_fn_c_try_link "$LINENO"; then :
11575 ac_cv_lib_dl_dlopen=yes
11576 else
11577 ac_cv_lib_dl_dlopen=no
11578 fi
11579 rm -f core conftest.err conftest.$ac_objext \
11580 conftest$ac_exeext conftest.$ac_ext
11581 LIBS=$ac_check_lib_save_LIBS
11582 fi
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11584 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11585 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11586 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11587 else
11588
11589 lt_cv_dlopen="dyld"
11590 lt_cv_dlopen_libs=
11591 lt_cv_dlopen_self=yes
11592
11593 fi
11594
11595 ;;
11596
11597 *)
11598 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11599 if test "x$ac_cv_func_shl_load" = x""yes; then :
11600 lt_cv_dlopen="shl_load"
11601 else
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11603 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11604 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11605 $as_echo_n "(cached) " >&6
11606 else
11607 ac_check_lib_save_LIBS=$LIBS
11608 LIBS="-ldld $LIBS"
11609 if test x$gcc_no_link = xyes; then
11610 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11611 fi
11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h. */
11614
11615 /* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
11618 #ifdef __cplusplus
11619 extern "C"
11620 #endif
11621 char shl_load ();
11622 int
11623 main ()
11624 {
11625 return shl_load ();
11626 ;
11627 return 0;
11628 }
11629 _ACEOF
11630 if ac_fn_c_try_link "$LINENO"; then :
11631 ac_cv_lib_dld_shl_load=yes
11632 else
11633 ac_cv_lib_dld_shl_load=no
11634 fi
11635 rm -f core conftest.err conftest.$ac_objext \
11636 conftest$ac_exeext conftest.$ac_ext
11637 LIBS=$ac_check_lib_save_LIBS
11638 fi
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11640 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11641 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11642 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11643 else
11644 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11645 if test "x$ac_cv_func_dlopen" = x""yes; then :
11646 lt_cv_dlopen="dlopen"
11647 else
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11649 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11650 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11651 $as_echo_n "(cached) " >&6
11652 else
11653 ac_check_lib_save_LIBS=$LIBS
11654 LIBS="-ldl $LIBS"
11655 if test x$gcc_no_link = xyes; then
11656 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11657 fi
11658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h. */
11660
11661 /* Override any GCC internal prototype to avoid an error.
11662 Use char because int might match the return type of a GCC
11663 builtin and then its argument prototype would still apply. */
11664 #ifdef __cplusplus
11665 extern "C"
11666 #endif
11667 char dlopen ();
11668 int
11669 main ()
11670 {
11671 return dlopen ();
11672 ;
11673 return 0;
11674 }
11675 _ACEOF
11676 if ac_fn_c_try_link "$LINENO"; then :
11677 ac_cv_lib_dl_dlopen=yes
11678 else
11679 ac_cv_lib_dl_dlopen=no
11680 fi
11681 rm -f core conftest.err conftest.$ac_objext \
11682 conftest$ac_exeext conftest.$ac_ext
11683 LIBS=$ac_check_lib_save_LIBS
11684 fi
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11686 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11687 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11688 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11689 else
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11691 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11692 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11693 $as_echo_n "(cached) " >&6
11694 else
11695 ac_check_lib_save_LIBS=$LIBS
11696 LIBS="-lsvld $LIBS"
11697 if test x$gcc_no_link = xyes; then
11698 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11699 fi
11700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11701 /* end confdefs.h. */
11702
11703 /* Override any GCC internal prototype to avoid an error.
11704 Use char because int might match the return type of a GCC
11705 builtin and then its argument prototype would still apply. */
11706 #ifdef __cplusplus
11707 extern "C"
11708 #endif
11709 char dlopen ();
11710 int
11711 main ()
11712 {
11713 return dlopen ();
11714 ;
11715 return 0;
11716 }
11717 _ACEOF
11718 if ac_fn_c_try_link "$LINENO"; then :
11719 ac_cv_lib_svld_dlopen=yes
11720 else
11721 ac_cv_lib_svld_dlopen=no
11722 fi
11723 rm -f core conftest.err conftest.$ac_objext \
11724 conftest$ac_exeext conftest.$ac_ext
11725 LIBS=$ac_check_lib_save_LIBS
11726 fi
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11728 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11729 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11730 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11731 else
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11733 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11734 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11735 $as_echo_n "(cached) " >&6
11736 else
11737 ac_check_lib_save_LIBS=$LIBS
11738 LIBS="-ldld $LIBS"
11739 if test x$gcc_no_link = xyes; then
11740 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11741 fi
11742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743 /* end confdefs.h. */
11744
11745 /* Override any GCC internal prototype to avoid an error.
11746 Use char because int might match the return type of a GCC
11747 builtin and then its argument prototype would still apply. */
11748 #ifdef __cplusplus
11749 extern "C"
11750 #endif
11751 char dld_link ();
11752 int
11753 main ()
11754 {
11755 return dld_link ();
11756 ;
11757 return 0;
11758 }
11759 _ACEOF
11760 if ac_fn_c_try_link "$LINENO"; then :
11761 ac_cv_lib_dld_dld_link=yes
11762 else
11763 ac_cv_lib_dld_dld_link=no
11764 fi
11765 rm -f core conftest.err conftest.$ac_objext \
11766 conftest$ac_exeext conftest.$ac_ext
11767 LIBS=$ac_check_lib_save_LIBS
11768 fi
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11770 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11771 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11772 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11773 fi
11774
11775
11776 fi
11777
11778
11779 fi
11780
11781
11782 fi
11783
11784
11785 fi
11786
11787
11788 fi
11789
11790 ;;
11791 esac
11792
11793 if test "x$lt_cv_dlopen" != xno; then
11794 enable_dlopen=yes
11795 else
11796 enable_dlopen=no
11797 fi
11798
11799 case $lt_cv_dlopen in
11800 dlopen)
11801 save_CPPFLAGS="$CPPFLAGS"
11802 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11803
11804 save_LDFLAGS="$LDFLAGS"
11805 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11806
11807 save_LIBS="$LIBS"
11808 LIBS="$lt_cv_dlopen_libs $LIBS"
11809
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11811 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11812 if test "${lt_cv_dlopen_self+set}" = set; then :
11813 $as_echo_n "(cached) " >&6
11814 else
11815 if test "$cross_compiling" = yes; then :
11816 lt_cv_dlopen_self=cross
11817 else
11818 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11819 lt_status=$lt_dlunknown
11820 cat > conftest.$ac_ext <<_LT_EOF
11821 #line 11821 "configure"
11822 #include "confdefs.h"
11823
11824 #if HAVE_DLFCN_H
11825 #include <dlfcn.h>
11826 #endif
11827
11828 #include <stdio.h>
11829
11830 #ifdef RTLD_GLOBAL
11831 # define LT_DLGLOBAL RTLD_GLOBAL
11832 #else
11833 # ifdef DL_GLOBAL
11834 # define LT_DLGLOBAL DL_GLOBAL
11835 # else
11836 # define LT_DLGLOBAL 0
11837 # endif
11838 #endif
11839
11840 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11841 find out it does not work in some platform. */
11842 #ifndef LT_DLLAZY_OR_NOW
11843 # ifdef RTLD_LAZY
11844 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11845 # else
11846 # ifdef DL_LAZY
11847 # define LT_DLLAZY_OR_NOW DL_LAZY
11848 # else
11849 # ifdef RTLD_NOW
11850 # define LT_DLLAZY_OR_NOW RTLD_NOW
11851 # else
11852 # ifdef DL_NOW
11853 # define LT_DLLAZY_OR_NOW DL_NOW
11854 # else
11855 # define LT_DLLAZY_OR_NOW 0
11856 # endif
11857 # endif
11858 # endif
11859 # endif
11860 #endif
11861
11862 /* When -fvisbility=hidden is used, assume the code has been annotated
11863 correspondingly for the symbols needed. */
11864 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11865 void fnord () __attribute__((visibility("default")));
11866 #endif
11867
11868 void fnord () { int i=42; }
11869 int main ()
11870 {
11871 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11872 int status = $lt_dlunknown;
11873
11874 if (self)
11875 {
11876 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11877 else
11878 {
11879 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11880 else puts (dlerror ());
11881 }
11882 /* dlclose (self); */
11883 }
11884 else
11885 puts (dlerror ());
11886
11887 return status;
11888 }
11889 _LT_EOF
11890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11891 (eval $ac_link) 2>&5
11892 ac_status=$?
11893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11894 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11895 (./conftest; exit; ) >&5 2>/dev/null
11896 lt_status=$?
11897 case x$lt_status in
11898 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11899 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11900 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11901 esac
11902 else :
11903 # compilation failed
11904 lt_cv_dlopen_self=no
11905 fi
11906 fi
11907 rm -fr conftest*
11908
11909
11910 fi
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11912 $as_echo "$lt_cv_dlopen_self" >&6; }
11913
11914 if test "x$lt_cv_dlopen_self" = xyes; then
11915 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11917 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11918 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11919 $as_echo_n "(cached) " >&6
11920 else
11921 if test "$cross_compiling" = yes; then :
11922 lt_cv_dlopen_self_static=cross
11923 else
11924 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11925 lt_status=$lt_dlunknown
11926 cat > conftest.$ac_ext <<_LT_EOF
11927 #line 11927 "configure"
11928 #include "confdefs.h"
11929
11930 #if HAVE_DLFCN_H
11931 #include <dlfcn.h>
11932 #endif
11933
11934 #include <stdio.h>
11935
11936 #ifdef RTLD_GLOBAL
11937 # define LT_DLGLOBAL RTLD_GLOBAL
11938 #else
11939 # ifdef DL_GLOBAL
11940 # define LT_DLGLOBAL DL_GLOBAL
11941 # else
11942 # define LT_DLGLOBAL 0
11943 # endif
11944 #endif
11945
11946 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11947 find out it does not work in some platform. */
11948 #ifndef LT_DLLAZY_OR_NOW
11949 # ifdef RTLD_LAZY
11950 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11951 # else
11952 # ifdef DL_LAZY
11953 # define LT_DLLAZY_OR_NOW DL_LAZY
11954 # else
11955 # ifdef RTLD_NOW
11956 # define LT_DLLAZY_OR_NOW RTLD_NOW
11957 # else
11958 # ifdef DL_NOW
11959 # define LT_DLLAZY_OR_NOW DL_NOW
11960 # else
11961 # define LT_DLLAZY_OR_NOW 0
11962 # endif
11963 # endif
11964 # endif
11965 # endif
11966 #endif
11967
11968 /* When -fvisbility=hidden is used, assume the code has been annotated
11969 correspondingly for the symbols needed. */
11970 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11971 void fnord () __attribute__((visibility("default")));
11972 #endif
11973
11974 void fnord () { int i=42; }
11975 int main ()
11976 {
11977 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11978 int status = $lt_dlunknown;
11979
11980 if (self)
11981 {
11982 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11983 else
11984 {
11985 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11986 else puts (dlerror ());
11987 }
11988 /* dlclose (self); */
11989 }
11990 else
11991 puts (dlerror ());
11992
11993 return status;
11994 }
11995 _LT_EOF
11996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11997 (eval $ac_link) 2>&5
11998 ac_status=$?
11999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12000 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12001 (./conftest; exit; ) >&5 2>/dev/null
12002 lt_status=$?
12003 case x$lt_status in
12004 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12005 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12006 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12007 esac
12008 else :
12009 # compilation failed
12010 lt_cv_dlopen_self_static=no
12011 fi
12012 fi
12013 rm -fr conftest*
12014
12015
12016 fi
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12018 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12019 fi
12020
12021 CPPFLAGS="$save_CPPFLAGS"
12022 LDFLAGS="$save_LDFLAGS"
12023 LIBS="$save_LIBS"
12024 ;;
12025 esac
12026
12027 case $lt_cv_dlopen_self in
12028 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12029 *) enable_dlopen_self=unknown ;;
12030 esac
12031
12032 case $lt_cv_dlopen_self_static in
12033 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12034 *) enable_dlopen_self_static=unknown ;;
12035 esac
12036 fi
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054 striplib=
12055 old_striplib=
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12057 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12058 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12059 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12060 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12062 $as_echo "yes" >&6; }
12063 else
12064 # FIXME - insert some real tests, host_os isn't really good enough
12065 case $host_os in
12066 darwin*)
12067 if test -n "$STRIP" ; then
12068 striplib="$STRIP -x"
12069 old_striplib="$STRIP -S"
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12071 $as_echo "yes" >&6; }
12072 else
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 $as_echo "no" >&6; }
12075 fi
12076 ;;
12077 *)
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079 $as_echo "no" >&6; }
12080 ;;
12081 esac
12082 fi
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095 # Report which library types will actually be built
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12097 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12099 $as_echo "$can_build_shared" >&6; }
12100
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12102 $as_echo_n "checking whether to build shared libraries... " >&6; }
12103 test "$can_build_shared" = "no" && enable_shared=no
12104
12105 # On AIX, shared libraries and static libraries use the same namespace, and
12106 # are all built from PIC.
12107 case $host_os in
12108 aix3*)
12109 test "$enable_shared" = yes && enable_static=no
12110 if test -n "$RANLIB"; then
12111 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12112 postinstall_cmds='$RANLIB $lib'
12113 fi
12114 ;;
12115
12116 aix[4-9]*)
12117 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12118 test "$enable_shared" = yes && enable_static=no
12119 fi
12120 ;;
12121 esac
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12123 $as_echo "$enable_shared" >&6; }
12124
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12126 $as_echo_n "checking whether to build static libraries... " >&6; }
12127 # Make sure either enable_shared or enable_static is yes.
12128 test "$enable_shared" = yes || enable_static=yes
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12130 $as_echo "$enable_static" >&6; }
12131
12132
12133
12134
12135 fi
12136 ac_ext=c
12137 ac_cpp='$CPP $CPPFLAGS'
12138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12141
12142 CC="$lt_save_CC"
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156 ac_config_commands="$ac_config_commands libtool"
12157
12158
12159
12160
12161 # Only expand once:
12162
12163
12164 for ac_prog in gawk mawk nawk awk
12165 do
12166 # Extract the first word of "$ac_prog", so it can be a program name with args.
12167 set dummy $ac_prog; ac_word=$2
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12169 $as_echo_n "checking for $ac_word... " >&6; }
12170 if test "${ac_cv_prog_AWK+set}" = set; then :
12171 $as_echo_n "(cached) " >&6
12172 else
12173 if test -n "$AWK"; then
12174 ac_cv_prog_AWK="$AWK" # Let the user override the test.
12175 else
12176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177 for as_dir in $PATH
12178 do
12179 IFS=$as_save_IFS
12180 test -z "$as_dir" && as_dir=.
12181 for ac_exec_ext in '' $ac_executable_extensions; do
12182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12183 ac_cv_prog_AWK="$ac_prog"
12184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12185 break 2
12186 fi
12187 done
12188 done
12189 IFS=$as_save_IFS
12190
12191 fi
12192 fi
12193 AWK=$ac_cv_prog_AWK
12194 if test -n "$AWK"; then
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12196 $as_echo "$AWK" >&6; }
12197 else
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12199 $as_echo "no" >&6; }
12200 fi
12201
12202
12203 test -n "$AWK" && break
12204 done
12205
12206 ac_ext=c
12207 ac_cpp='$CPP $CPPFLAGS'
12208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12211 if test -n "$ac_tool_prefix"; then
12212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12213 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12215 $as_echo_n "checking for $ac_word... " >&6; }
12216 if test "${ac_cv_prog_CC+set}" = set; then :
12217 $as_echo_n "(cached) " >&6
12218 else
12219 if test -n "$CC"; then
12220 ac_cv_prog_CC="$CC" # Let the user override the test.
12221 else
12222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12223 for as_dir in $PATH
12224 do
12225 IFS=$as_save_IFS
12226 test -z "$as_dir" && as_dir=.
12227 for ac_exec_ext in '' $ac_executable_extensions; do
12228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12229 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12231 break 2
12232 fi
12233 done
12234 done
12235 IFS=$as_save_IFS
12236
12237 fi
12238 fi
12239 CC=$ac_cv_prog_CC
12240 if test -n "$CC"; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12242 $as_echo "$CC" >&6; }
12243 else
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245 $as_echo "no" >&6; }
12246 fi
12247
12248
12249 fi
12250 if test -z "$ac_cv_prog_CC"; then
12251 ac_ct_CC=$CC
12252 # Extract the first word of "gcc", so it can be a program name with args.
12253 set dummy gcc; ac_word=$2
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12255 $as_echo_n "checking for $ac_word... " >&6; }
12256 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12257 $as_echo_n "(cached) " >&6
12258 else
12259 if test -n "$ac_ct_CC"; then
12260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12261 else
12262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263 for as_dir in $PATH
12264 do
12265 IFS=$as_save_IFS
12266 test -z "$as_dir" && as_dir=.
12267 for ac_exec_ext in '' $ac_executable_extensions; do
12268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12269 ac_cv_prog_ac_ct_CC="gcc"
12270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12271 break 2
12272 fi
12273 done
12274 done
12275 IFS=$as_save_IFS
12276
12277 fi
12278 fi
12279 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12280 if test -n "$ac_ct_CC"; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12282 $as_echo "$ac_ct_CC" >&6; }
12283 else
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12286 fi
12287
12288 if test "x$ac_ct_CC" = x; then
12289 CC=""
12290 else
12291 case $cross_compiling:$ac_tool_warned in
12292 yes:)
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12295 ac_tool_warned=yes ;;
12296 esac
12297 CC=$ac_ct_CC
12298 fi
12299 else
12300 CC="$ac_cv_prog_CC"
12301 fi
12302
12303 if test -z "$CC"; then
12304 if test -n "$ac_tool_prefix"; then
12305 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12306 set dummy ${ac_tool_prefix}cc; ac_word=$2
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12308 $as_echo_n "checking for $ac_word... " >&6; }
12309 if test "${ac_cv_prog_CC+set}" = set; then :
12310 $as_echo_n "(cached) " >&6
12311 else
12312 if test -n "$CC"; then
12313 ac_cv_prog_CC="$CC" # Let the user override the test.
12314 else
12315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316 for as_dir in $PATH
12317 do
12318 IFS=$as_save_IFS
12319 test -z "$as_dir" && as_dir=.
12320 for ac_exec_ext in '' $ac_executable_extensions; do
12321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12322 ac_cv_prog_CC="${ac_tool_prefix}cc"
12323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12324 break 2
12325 fi
12326 done
12327 done
12328 IFS=$as_save_IFS
12329
12330 fi
12331 fi
12332 CC=$ac_cv_prog_CC
12333 if test -n "$CC"; then
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12335 $as_echo "$CC" >&6; }
12336 else
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338 $as_echo "no" >&6; }
12339 fi
12340
12341
12342 fi
12343 fi
12344 if test -z "$CC"; then
12345 # Extract the first word of "cc", so it can be a program name with args.
12346 set dummy cc; ac_word=$2
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12348 $as_echo_n "checking for $ac_word... " >&6; }
12349 if test "${ac_cv_prog_CC+set}" = set; then :
12350 $as_echo_n "(cached) " >&6
12351 else
12352 if test -n "$CC"; then
12353 ac_cv_prog_CC="$CC" # Let the user override the test.
12354 else
12355 ac_prog_rejected=no
12356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357 for as_dir in $PATH
12358 do
12359 IFS=$as_save_IFS
12360 test -z "$as_dir" && as_dir=.
12361 for ac_exec_ext in '' $ac_executable_extensions; do
12362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12363 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12364 ac_prog_rejected=yes
12365 continue
12366 fi
12367 ac_cv_prog_CC="cc"
12368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12369 break 2
12370 fi
12371 done
12372 done
12373 IFS=$as_save_IFS
12374
12375 if test $ac_prog_rejected = yes; then
12376 # We found a bogon in the path, so make sure we never use it.
12377 set dummy $ac_cv_prog_CC
12378 shift
12379 if test $# != 0; then
12380 # We chose a different compiler from the bogus one.
12381 # However, it has the same basename, so the bogon will be chosen
12382 # first if we set CC to just the basename; use the full file name.
12383 shift
12384 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12385 fi
12386 fi
12387 fi
12388 fi
12389 CC=$ac_cv_prog_CC
12390 if test -n "$CC"; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12392 $as_echo "$CC" >&6; }
12393 else
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395 $as_echo "no" >&6; }
12396 fi
12397
12398
12399 fi
12400 if test -z "$CC"; then
12401 if test -n "$ac_tool_prefix"; then
12402 for ac_prog in cl.exe
12403 do
12404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12407 $as_echo_n "checking for $ac_word... " >&6; }
12408 if test "${ac_cv_prog_CC+set}" = set; then :
12409 $as_echo_n "(cached) " >&6
12410 else
12411 if test -n "$CC"; then
12412 ac_cv_prog_CC="$CC" # Let the user override the test.
12413 else
12414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12415 for as_dir in $PATH
12416 do
12417 IFS=$as_save_IFS
12418 test -z "$as_dir" && as_dir=.
12419 for ac_exec_ext in '' $ac_executable_extensions; do
12420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12421 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12423 break 2
12424 fi
12425 done
12426 done
12427 IFS=$as_save_IFS
12428
12429 fi
12430 fi
12431 CC=$ac_cv_prog_CC
12432 if test -n "$CC"; then
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12434 $as_echo "$CC" >&6; }
12435 else
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437 $as_echo "no" >&6; }
12438 fi
12439
12440
12441 test -n "$CC" && break
12442 done
12443 fi
12444 if test -z "$CC"; then
12445 ac_ct_CC=$CC
12446 for ac_prog in cl.exe
12447 do
12448 # Extract the first word of "$ac_prog", so it can be a program name with args.
12449 set dummy $ac_prog; ac_word=$2
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12451 $as_echo_n "checking for $ac_word... " >&6; }
12452 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12453 $as_echo_n "(cached) " >&6
12454 else
12455 if test -n "$ac_ct_CC"; then
12456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12457 else
12458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12459 for as_dir in $PATH
12460 do
12461 IFS=$as_save_IFS
12462 test -z "$as_dir" && as_dir=.
12463 for ac_exec_ext in '' $ac_executable_extensions; do
12464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12465 ac_cv_prog_ac_ct_CC="$ac_prog"
12466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12467 break 2
12468 fi
12469 done
12470 done
12471 IFS=$as_save_IFS
12472
12473 fi
12474 fi
12475 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12476 if test -n "$ac_ct_CC"; then
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12478 $as_echo "$ac_ct_CC" >&6; }
12479 else
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 $as_echo "no" >&6; }
12482 fi
12483
12484
12485 test -n "$ac_ct_CC" && break
12486 done
12487
12488 if test "x$ac_ct_CC" = x; then
12489 CC=""
12490 else
12491 case $cross_compiling:$ac_tool_warned in
12492 yes:)
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12495 ac_tool_warned=yes ;;
12496 esac
12497 CC=$ac_ct_CC
12498 fi
12499 fi
12500
12501 fi
12502
12503
12504 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12506 as_fn_error "no acceptable C compiler found in \$PATH
12507 See \`config.log' for more details." "$LINENO" 5; }
12508
12509 # Provide some information about the compiler.
12510 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12511 set X $ac_compile
12512 ac_compiler=$2
12513 for ac_option in --version -v -V -qversion; do
12514 { { ac_try="$ac_compiler $ac_option >&5"
12515 case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12518 esac
12519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12520 $as_echo "$ac_try_echo"; } >&5
12521 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12522 ac_status=$?
12523 if test -s conftest.err; then
12524 sed '10a\
12525 ... rest of stderr output deleted ...
12526 10q' conftest.err >conftest.er1
12527 cat conftest.er1 >&5
12528 rm -f conftest.er1 conftest.err
12529 fi
12530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12531 test $ac_status = 0; }
12532 done
12533
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12535 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12536 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
12537 $as_echo_n "(cached) " >&6
12538 else
12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h. */
12541
12542 int
12543 main ()
12544 {
12545 #ifndef __GNUC__
12546 choke me
12547 #endif
12548
12549 ;
12550 return 0;
12551 }
12552 _ACEOF
12553 if ac_fn_c_try_compile "$LINENO"; then :
12554 ac_compiler_gnu=yes
12555 else
12556 ac_compiler_gnu=no
12557 fi
12558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12559 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12560
12561 fi
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12563 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12564 if test $ac_compiler_gnu = yes; then
12565 GCC=yes
12566 else
12567 GCC=
12568 fi
12569 ac_test_CFLAGS=${CFLAGS+set}
12570 ac_save_CFLAGS=$CFLAGS
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12572 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12573 if test "${ac_cv_prog_cc_g+set}" = set; then :
12574 $as_echo_n "(cached) " >&6
12575 else
12576 ac_save_c_werror_flag=$ac_c_werror_flag
12577 ac_c_werror_flag=yes
12578 ac_cv_prog_cc_g=no
12579 CFLAGS="-g"
12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h. */
12582
12583 int
12584 main ()
12585 {
12586
12587 ;
12588 return 0;
12589 }
12590 _ACEOF
12591 if ac_fn_c_try_compile "$LINENO"; then :
12592 ac_cv_prog_cc_g=yes
12593 else
12594 CFLAGS=""
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12597
12598 int
12599 main ()
12600 {
12601
12602 ;
12603 return 0;
12604 }
12605 _ACEOF
12606 if ac_fn_c_try_compile "$LINENO"; then :
12607
12608 else
12609 ac_c_werror_flag=$ac_save_c_werror_flag
12610 CFLAGS="-g"
12611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h. */
12613
12614 int
12615 main ()
12616 {
12617
12618 ;
12619 return 0;
12620 }
12621 _ACEOF
12622 if ac_fn_c_try_compile "$LINENO"; then :
12623 ac_cv_prog_cc_g=yes
12624 fi
12625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12626 fi
12627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12628 fi
12629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12630 ac_c_werror_flag=$ac_save_c_werror_flag
12631 fi
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12633 $as_echo "$ac_cv_prog_cc_g" >&6; }
12634 if test "$ac_test_CFLAGS" = set; then
12635 CFLAGS=$ac_save_CFLAGS
12636 elif test $ac_cv_prog_cc_g = yes; then
12637 if test "$GCC" = yes; then
12638 CFLAGS="-g -O2"
12639 else
12640 CFLAGS="-g"
12641 fi
12642 else
12643 if test "$GCC" = yes; then
12644 CFLAGS="-O2"
12645 else
12646 CFLAGS=
12647 fi
12648 fi
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12650 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12651 if test "${ac_cv_prog_cc_c89+set}" = set; then :
12652 $as_echo_n "(cached) " >&6
12653 else
12654 ac_cv_prog_cc_c89=no
12655 ac_save_CC=$CC
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12658 #include <stdarg.h>
12659 #include <stdio.h>
12660 #include <sys/types.h>
12661 #include <sys/stat.h>
12662 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12663 struct buf { int x; };
12664 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12665 static char *e (p, i)
12666 char **p;
12667 int i;
12668 {
12669 return p[i];
12670 }
12671 static char *f (char * (*g) (char **, int), char **p, ...)
12672 {
12673 char *s;
12674 va_list v;
12675 va_start (v,p);
12676 s = g (p, va_arg (v,int));
12677 va_end (v);
12678 return s;
12679 }
12680
12681 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12682 function prototypes and stuff, but not '\xHH' hex character constants.
12683 These don't provoke an error unfortunately, instead are silently treated
12684 as 'x'. The following induces an error, until -std is added to get
12685 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12686 array size at least. It's necessary to write '\x00'==0 to get something
12687 that's true only with -std. */
12688 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12689
12690 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12691 inside strings and character constants. */
12692 #define FOO(x) 'x'
12693 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12694
12695 int test (int i, double x);
12696 struct s1 {int (*f) (int a);};
12697 struct s2 {int (*f) (double a);};
12698 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12699 int argc;
12700 char **argv;
12701 int
12702 main ()
12703 {
12704 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12705 ;
12706 return 0;
12707 }
12708 _ACEOF
12709 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12710 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12711 do
12712 CC="$ac_save_CC $ac_arg"
12713 if ac_fn_c_try_compile "$LINENO"; then :
12714 ac_cv_prog_cc_c89=$ac_arg
12715 fi
12716 rm -f core conftest.err conftest.$ac_objext
12717 test "x$ac_cv_prog_cc_c89" != "xno" && break
12718 done
12719 rm -f conftest.$ac_ext
12720 CC=$ac_save_CC
12721
12722 fi
12723 # AC_CACHE_VAL
12724 case "x$ac_cv_prog_cc_c89" in
12725 x)
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12727 $as_echo "none needed" >&6; } ;;
12728 xno)
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12730 $as_echo "unsupported" >&6; } ;;
12731 *)
12732 CC="$CC $ac_cv_prog_cc_c89"
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12734 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12735 esac
12736 if test "x$ac_cv_prog_cc_c89" != xno; then :
12737
12738 fi
12739
12740 ac_ext=c
12741 ac_cpp='$CPP $CPPFLAGS'
12742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12745
12746 depcc="$CC" am_compiler_list=
12747
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12749 $as_echo_n "checking dependency style of $depcc... " >&6; }
12750 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
12751 $as_echo_n "(cached) " >&6
12752 else
12753 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12754 # We make a subdir and do the tests there. Otherwise we can end up
12755 # making bogus files that we don't know about and never remove. For
12756 # instance it was reported that on HP-UX the gcc test will end up
12757 # making a dummy file named `D' -- because `-MD' means `put the output
12758 # in D'.
12759 mkdir conftest.dir
12760 # Copy depcomp to subdir because otherwise we won't find it if we're
12761 # using a relative directory.
12762 cp "$am_depcomp" conftest.dir
12763 cd conftest.dir
12764 # We will build objects and dependencies in a subdirectory because
12765 # it helps to detect inapplicable dependency modes. For instance
12766 # both Tru64's cc and ICC support -MD to output dependencies as a
12767 # side effect of compilation, but ICC will put the dependencies in
12768 # the current directory while Tru64 will put them in the object
12769 # directory.
12770 mkdir sub
12771
12772 am_cv_CC_dependencies_compiler_type=none
12773 if test "$am_compiler_list" = ""; then
12774 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12775 fi
12776 am__universal=false
12777 case " $depcc " in #(
12778 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12779 esac
12780
12781 for depmode in $am_compiler_list; do
12782 # Setup a source with many dependencies, because some compilers
12783 # like to wrap large dependency lists on column 80 (with \), and
12784 # we should not choose a depcomp mode which is confused by this.
12785 #
12786 # We need to recreate these files for each test, as the compiler may
12787 # overwrite some of them when testing with obscure command lines.
12788 # This happens at least with the AIX C compiler.
12789 : > sub/conftest.c
12790 for i in 1 2 3 4 5 6; do
12791 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12792 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12793 # Solaris 8's {/usr,}/bin/sh.
12794 touch sub/conftst$i.h
12795 done
12796 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12797
12798 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12799 # mode. It turns out that the SunPro C++ compiler does not properly
12800 # handle `-M -o', and we need to detect this. Also, some Intel
12801 # versions had trouble with output in subdirs
12802 am__obj=sub/conftest.${OBJEXT-o}
12803 am__minus_obj="-o $am__obj"
12804 case $depmode in
12805 gcc)
12806 # This depmode causes a compiler race in universal mode.
12807 test "$am__universal" = false || continue
12808 ;;
12809 nosideeffect)
12810 # after this tag, mechanisms are not by side-effect, so they'll
12811 # only be used when explicitly requested
12812 if test "x$enable_dependency_tracking" = xyes; then
12813 continue
12814 else
12815 break
12816 fi
12817 ;;
12818 msvisualcpp | msvcmsys)
12819 # This compiler won't grok `-c -o', but also, the minuso test has
12820 # not run yet. These depmodes are late enough in the game, and
12821 # so weak that their functioning should not be impacted.
12822 am__obj=conftest.${OBJEXT-o}
12823 am__minus_obj=
12824 ;;
12825 none) break ;;
12826 esac
12827 if depmode=$depmode \
12828 source=sub/conftest.c object=$am__obj \
12829 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12830 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12831 >/dev/null 2>conftest.err &&
12832 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12833 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12834 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12835 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12836 # icc doesn't choke on unknown options, it will just issue warnings
12837 # or remarks (even with -Werror). So we grep stderr for any message
12838 # that says an option was ignored or not supported.
12839 # When given -MP, icc 7.0 and 7.1 complain thusly:
12840 # icc: Command line warning: ignoring option '-M'; no argument required
12841 # The diagnosis changed in icc 8.0:
12842 # icc: Command line remark: option '-MP' not supported
12843 if (grep 'ignoring option' conftest.err ||
12844 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12845 am_cv_CC_dependencies_compiler_type=$depmode
12846 break
12847 fi
12848 fi
12849 done
12850
12851 cd ..
12852 rm -rf conftest.dir
12853 else
12854 am_cv_CC_dependencies_compiler_type=none
12855 fi
12856
12857 fi
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12859 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12860 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12861
12862 if
12863 test "x$enable_dependency_tracking" != xno \
12864 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12865 am__fastdepCC_TRUE=
12866 am__fastdepCC_FALSE='#'
12867 else
12868 am__fastdepCC_TRUE='#'
12869 am__fastdepCC_FALSE=
12870 fi
12871
12872
12873 if test "x$CC" != xcc; then
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12875 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12876 else
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12878 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12879 fi
12880 set dummy $CC; ac_cc=`$as_echo "$2" |
12881 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12882 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
12883 $as_echo_n "(cached) " >&6
12884 else
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12887
12888 int
12889 main ()
12890 {
12891
12892 ;
12893 return 0;
12894 }
12895 _ACEOF
12896 # Make sure it works both with $CC and with simple cc.
12897 # We do the test twice because some compilers refuse to overwrite an
12898 # existing .o file with -o, though they will create one.
12899 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12900 rm -f conftest2.*
12901 if { { case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12904 esac
12905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12906 $as_echo "$ac_try_echo"; } >&5
12907 (eval "$ac_try") 2>&5
12908 ac_status=$?
12909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12910 test $ac_status = 0; } &&
12911 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12913 *) ac_try_echo=$ac_try;;
12914 esac
12915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12916 $as_echo "$ac_try_echo"; } >&5
12917 (eval "$ac_try") 2>&5
12918 ac_status=$?
12919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12920 test $ac_status = 0; };
12921 then
12922 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12923 if test "x$CC" != xcc; then
12924 # Test first that cc exists at all.
12925 if { ac_try='cc -c conftest.$ac_ext >&5'
12926 { { case "(($ac_try" in
12927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12928 *) ac_try_echo=$ac_try;;
12929 esac
12930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12931 $as_echo "$ac_try_echo"; } >&5
12932 (eval "$ac_try") 2>&5
12933 ac_status=$?
12934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12935 test $ac_status = 0; }; }; then
12936 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12937 rm -f conftest2.*
12938 if { { case "(($ac_try" in
12939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940 *) ac_try_echo=$ac_try;;
12941 esac
12942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12943 $as_echo "$ac_try_echo"; } >&5
12944 (eval "$ac_try") 2>&5
12945 ac_status=$?
12946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12947 test $ac_status = 0; } &&
12948 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12950 *) ac_try_echo=$ac_try;;
12951 esac
12952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12953 $as_echo "$ac_try_echo"; } >&5
12954 (eval "$ac_try") 2>&5
12955 ac_status=$?
12956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12957 test $ac_status = 0; };
12958 then
12959 # cc works too.
12960 :
12961 else
12962 # cc exists but doesn't like -o.
12963 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12964 fi
12965 fi
12966 fi
12967 else
12968 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12969 fi
12970 rm -f core conftest*
12971
12972 fi
12973 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12975 $as_echo "yes" >&6; }
12976 else
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 $as_echo "no" >&6; }
12979
12980 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12981
12982 fi
12983
12984 # FIXME: we rely on the cache variable name because
12985 # there is no other way.
12986 set dummy $CC
12987 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12988 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12989 if test "$am_t" != yes; then
12990 # Losing compiler, so override with the script.
12991 # FIXME: It is wrong to rewrite CC.
12992 # But if we don't then we get into trouble of one sort or another.
12993 # A longer-term fix would be to have automake use am__CC in this case,
12994 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12995 CC="$am_aux_dir/compile $CC"
12996 fi
12997
12998
12999 ac_ext=c
13000 ac_cpp='$CPP $CPPFLAGS'
13001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13005 $as_echo_n "checking how to run the C preprocessor... " >&6; }
13006 # On Suns, sometimes $CPP names a directory.
13007 if test -n "$CPP" && test -d "$CPP"; then
13008 CPP=
13009 fi
13010 if test -z "$CPP"; then
13011 if test "${ac_cv_prog_CPP+set}" = set; then :
13012 $as_echo_n "(cached) " >&6
13013 else
13014 # Double quotes because CPP needs to be expanded
13015 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13016 do
13017 ac_preproc_ok=false
13018 for ac_c_preproc_warn_flag in '' yes
13019 do
13020 # Use a header file that comes with gcc, so configuring glibc
13021 # with a fresh cross-compiler works.
13022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13023 # <limits.h> exists even on freestanding compilers.
13024 # On the NeXT, cc -E runs the code through the compiler's parser,
13025 # not just through cpp. "Syntax error" is here to catch this case.
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13028 #ifdef __STDC__
13029 # include <limits.h>
13030 #else
13031 # include <assert.h>
13032 #endif
13033 Syntax error
13034 _ACEOF
13035 if ac_fn_c_try_cpp "$LINENO"; then :
13036
13037 else
13038 # Broken: fails on valid input.
13039 continue
13040 fi
13041 rm -f conftest.err conftest.$ac_ext
13042
13043 # OK, works on sane cases. Now check whether nonexistent headers
13044 # can be detected and how.
13045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h. */
13047 #include <ac_nonexistent.h>
13048 _ACEOF
13049 if ac_fn_c_try_cpp "$LINENO"; then :
13050 # Broken: success on invalid input.
13051 continue
13052 else
13053 # Passes both tests.
13054 ac_preproc_ok=:
13055 break
13056 fi
13057 rm -f conftest.err conftest.$ac_ext
13058
13059 done
13060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13061 rm -f conftest.err conftest.$ac_ext
13062 if $ac_preproc_ok; then :
13063 break
13064 fi
13065
13066 done
13067 ac_cv_prog_CPP=$CPP
13068
13069 fi
13070 CPP=$ac_cv_prog_CPP
13071 else
13072 ac_cv_prog_CPP=$CPP
13073 fi
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13075 $as_echo "$CPP" >&6; }
13076 ac_preproc_ok=false
13077 for ac_c_preproc_warn_flag in '' yes
13078 do
13079 # Use a header file that comes with gcc, so configuring glibc
13080 # with a fresh cross-compiler works.
13081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13082 # <limits.h> exists even on freestanding compilers.
13083 # On the NeXT, cc -E runs the code through the compiler's parser,
13084 # not just through cpp. "Syntax error" is here to catch this case.
13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086 /* end confdefs.h. */
13087 #ifdef __STDC__
13088 # include <limits.h>
13089 #else
13090 # include <assert.h>
13091 #endif
13092 Syntax error
13093 _ACEOF
13094 if ac_fn_c_try_cpp "$LINENO"; then :
13095
13096 else
13097 # Broken: fails on valid input.
13098 continue
13099 fi
13100 rm -f conftest.err conftest.$ac_ext
13101
13102 # OK, works on sane cases. Now check whether nonexistent headers
13103 # can be detected and how.
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13106 #include <ac_nonexistent.h>
13107 _ACEOF
13108 if ac_fn_c_try_cpp "$LINENO"; then :
13109 # Broken: success on invalid input.
13110 continue
13111 else
13112 # Passes both tests.
13113 ac_preproc_ok=:
13114 break
13115 fi
13116 rm -f conftest.err conftest.$ac_ext
13117
13118 done
13119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13120 rm -f conftest.err conftest.$ac_ext
13121 if $ac_preproc_ok; then :
13122
13123 else
13124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13126 as_fn_error "C preprocessor \"$CPP\" fails sanity check
13127 See \`config.log' for more details." "$LINENO" 5; }
13128 fi
13129
13130 ac_ext=c
13131 ac_cpp='$CPP $CPPFLAGS'
13132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13135
13136 ac_ext=cpp
13137 ac_cpp='$CXXCPP $CPPFLAGS'
13138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13141 if test -z "$CXX"; then
13142 if test -n "$CCC"; then
13143 CXX=$CCC
13144 else
13145 if test -n "$ac_tool_prefix"; then
13146 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13147 do
13148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13151 $as_echo_n "checking for $ac_word... " >&6; }
13152 if test "${ac_cv_prog_CXX+set}" = set; then :
13153 $as_echo_n "(cached) " >&6
13154 else
13155 if test -n "$CXX"; then
13156 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13157 else
13158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13159 for as_dir in $PATH
13160 do
13161 IFS=$as_save_IFS
13162 test -z "$as_dir" && as_dir=.
13163 for ac_exec_ext in '' $ac_executable_extensions; do
13164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13165 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13167 break 2
13168 fi
13169 done
13170 done
13171 IFS=$as_save_IFS
13172
13173 fi
13174 fi
13175 CXX=$ac_cv_prog_CXX
13176 if test -n "$CXX"; then
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13178 $as_echo "$CXX" >&6; }
13179 else
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181 $as_echo "no" >&6; }
13182 fi
13183
13184
13185 test -n "$CXX" && break
13186 done
13187 fi
13188 if test -z "$CXX"; then
13189 ac_ct_CXX=$CXX
13190 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13191 do
13192 # Extract the first word of "$ac_prog", so it can be a program name with args.
13193 set dummy $ac_prog; ac_word=$2
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13195 $as_echo_n "checking for $ac_word... " >&6; }
13196 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13197 $as_echo_n "(cached) " >&6
13198 else
13199 if test -n "$ac_ct_CXX"; then
13200 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13201 else
13202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203 for as_dir in $PATH
13204 do
13205 IFS=$as_save_IFS
13206 test -z "$as_dir" && as_dir=.
13207 for ac_exec_ext in '' $ac_executable_extensions; do
13208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13209 ac_cv_prog_ac_ct_CXX="$ac_prog"
13210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13211 break 2
13212 fi
13213 done
13214 done
13215 IFS=$as_save_IFS
13216
13217 fi
13218 fi
13219 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13220 if test -n "$ac_ct_CXX"; then
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13222 $as_echo "$ac_ct_CXX" >&6; }
13223 else
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225 $as_echo "no" >&6; }
13226 fi
13227
13228
13229 test -n "$ac_ct_CXX" && break
13230 done
13231
13232 if test "x$ac_ct_CXX" = x; then
13233 CXX="g++"
13234 else
13235 case $cross_compiling:$ac_tool_warned in
13236 yes:)
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13239 ac_tool_warned=yes ;;
13240 esac
13241 CXX=$ac_ct_CXX
13242 fi
13243 fi
13244
13245 fi
13246 fi
13247 # Provide some information about the compiler.
13248 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13249 set X $ac_compile
13250 ac_compiler=$2
13251 for ac_option in --version -v -V -qversion; do
13252 { { ac_try="$ac_compiler $ac_option >&5"
13253 case "(($ac_try" in
13254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255 *) ac_try_echo=$ac_try;;
13256 esac
13257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13258 $as_echo "$ac_try_echo"; } >&5
13259 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13260 ac_status=$?
13261 if test -s conftest.err; then
13262 sed '10a\
13263 ... rest of stderr output deleted ...
13264 10q' conftest.err >conftest.er1
13265 cat conftest.er1 >&5
13266 rm -f conftest.er1 conftest.err
13267 fi
13268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13269 test $ac_status = 0; }
13270 done
13271
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13273 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13274 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13275 $as_echo_n "(cached) " >&6
13276 else
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13279
13280 int
13281 main ()
13282 {
13283 #ifndef __GNUC__
13284 choke me
13285 #endif
13286
13287 ;
13288 return 0;
13289 }
13290 _ACEOF
13291 if ac_fn_cxx_try_compile "$LINENO"; then :
13292 ac_compiler_gnu=yes
13293 else
13294 ac_compiler_gnu=no
13295 fi
13296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13297 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13298
13299 fi
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13301 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13302 if test $ac_compiler_gnu = yes; then
13303 GXX=yes
13304 else
13305 GXX=
13306 fi
13307 ac_test_CXXFLAGS=${CXXFLAGS+set}
13308 ac_save_CXXFLAGS=$CXXFLAGS
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13310 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13311 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13312 $as_echo_n "(cached) " >&6
13313 else
13314 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13315 ac_cxx_werror_flag=yes
13316 ac_cv_prog_cxx_g=no
13317 CXXFLAGS="-g"
13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13320
13321 int
13322 main ()
13323 {
13324
13325 ;
13326 return 0;
13327 }
13328 _ACEOF
13329 if ac_fn_cxx_try_compile "$LINENO"; then :
13330 ac_cv_prog_cxx_g=yes
13331 else
13332 CXXFLAGS=""
13333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334 /* end confdefs.h. */
13335
13336 int
13337 main ()
13338 {
13339
13340 ;
13341 return 0;
13342 }
13343 _ACEOF
13344 if ac_fn_cxx_try_compile "$LINENO"; then :
13345
13346 else
13347 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13348 CXXFLAGS="-g"
13349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13350 /* end confdefs.h. */
13351
13352 int
13353 main ()
13354 {
13355
13356 ;
13357 return 0;
13358 }
13359 _ACEOF
13360 if ac_fn_cxx_try_compile "$LINENO"; then :
13361 ac_cv_prog_cxx_g=yes
13362 fi
13363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13364 fi
13365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13366 fi
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13369 fi
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13371 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13372 if test "$ac_test_CXXFLAGS" = set; then
13373 CXXFLAGS=$ac_save_CXXFLAGS
13374 elif test $ac_cv_prog_cxx_g = yes; then
13375 if test "$GXX" = yes; then
13376 CXXFLAGS="-g -O2"
13377 else
13378 CXXFLAGS="-g"
13379 fi
13380 else
13381 if test "$GXX" = yes; then
13382 CXXFLAGS="-O2"
13383 else
13384 CXXFLAGS=
13385 fi
13386 fi
13387 ac_ext=c
13388 ac_cpp='$CPP $CPPFLAGS'
13389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13392
13393 depcc="$CXX" am_compiler_list=
13394
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13396 $as_echo_n "checking dependency style of $depcc... " >&6; }
13397 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13398 $as_echo_n "(cached) " >&6
13399 else
13400 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13401 # We make a subdir and do the tests there. Otherwise we can end up
13402 # making bogus files that we don't know about and never remove. For
13403 # instance it was reported that on HP-UX the gcc test will end up
13404 # making a dummy file named `D' -- because `-MD' means `put the output
13405 # in D'.
13406 mkdir conftest.dir
13407 # Copy depcomp to subdir because otherwise we won't find it if we're
13408 # using a relative directory.
13409 cp "$am_depcomp" conftest.dir
13410 cd conftest.dir
13411 # We will build objects and dependencies in a subdirectory because
13412 # it helps to detect inapplicable dependency modes. For instance
13413 # both Tru64's cc and ICC support -MD to output dependencies as a
13414 # side effect of compilation, but ICC will put the dependencies in
13415 # the current directory while Tru64 will put them in the object
13416 # directory.
13417 mkdir sub
13418
13419 am_cv_CXX_dependencies_compiler_type=none
13420 if test "$am_compiler_list" = ""; then
13421 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13422 fi
13423 am__universal=false
13424 case " $depcc " in #(
13425 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13426 esac
13427
13428 for depmode in $am_compiler_list; do
13429 # Setup a source with many dependencies, because some compilers
13430 # like to wrap large dependency lists on column 80 (with \), and
13431 # we should not choose a depcomp mode which is confused by this.
13432 #
13433 # We need to recreate these files for each test, as the compiler may
13434 # overwrite some of them when testing with obscure command lines.
13435 # This happens at least with the AIX C compiler.
13436 : > sub/conftest.c
13437 for i in 1 2 3 4 5 6; do
13438 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13439 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13440 # Solaris 8's {/usr,}/bin/sh.
13441 touch sub/conftst$i.h
13442 done
13443 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13444
13445 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13446 # mode. It turns out that the SunPro C++ compiler does not properly
13447 # handle `-M -o', and we need to detect this. Also, some Intel
13448 # versions had trouble with output in subdirs
13449 am__obj=sub/conftest.${OBJEXT-o}
13450 am__minus_obj="-o $am__obj"
13451 case $depmode in
13452 gcc)
13453 # This depmode causes a compiler race in universal mode.
13454 test "$am__universal" = false || continue
13455 ;;
13456 nosideeffect)
13457 # after this tag, mechanisms are not by side-effect, so they'll
13458 # only be used when explicitly requested
13459 if test "x$enable_dependency_tracking" = xyes; then
13460 continue
13461 else
13462 break
13463 fi
13464 ;;
13465 msvisualcpp | msvcmsys)
13466 # This compiler won't grok `-c -o', but also, the minuso test has
13467 # not run yet. These depmodes are late enough in the game, and
13468 # so weak that their functioning should not be impacted.
13469 am__obj=conftest.${OBJEXT-o}
13470 am__minus_obj=
13471 ;;
13472 none) break ;;
13473 esac
13474 if depmode=$depmode \
13475 source=sub/conftest.c object=$am__obj \
13476 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13477 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13478 >/dev/null 2>conftest.err &&
13479 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13480 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13481 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13482 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13483 # icc doesn't choke on unknown options, it will just issue warnings
13484 # or remarks (even with -Werror). So we grep stderr for any message
13485 # that says an option was ignored or not supported.
13486 # When given -MP, icc 7.0 and 7.1 complain thusly:
13487 # icc: Command line warning: ignoring option '-M'; no argument required
13488 # The diagnosis changed in icc 8.0:
13489 # icc: Command line remark: option '-MP' not supported
13490 if (grep 'ignoring option' conftest.err ||
13491 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13492 am_cv_CXX_dependencies_compiler_type=$depmode
13493 break
13494 fi
13495 fi
13496 done
13497
13498 cd ..
13499 rm -rf conftest.dir
13500 else
13501 am_cv_CXX_dependencies_compiler_type=none
13502 fi
13503
13504 fi
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13506 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13507 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13508
13509 if
13510 test "x$enable_dependency_tracking" != xno \
13511 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13512 am__fastdepCXX_TRUE=
13513 am__fastdepCXX_FALSE='#'
13514 else
13515 am__fastdepCXX_TRUE='#'
13516 am__fastdepCXX_FALSE=
13517 fi
13518
13519
13520 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13521 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13522 (test "X$CXX" != "Xg++"))) ; then
13523 ac_ext=cpp
13524 ac_cpp='$CXXCPP $CPPFLAGS'
13525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13529 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13530 if test -z "$CXXCPP"; then
13531 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13532 $as_echo_n "(cached) " >&6
13533 else
13534 # Double quotes because CXXCPP needs to be expanded
13535 for CXXCPP in "$CXX -E" "/lib/cpp"
13536 do
13537 ac_preproc_ok=false
13538 for ac_cxx_preproc_warn_flag in '' yes
13539 do
13540 # Use a header file that comes with gcc, so configuring glibc
13541 # with a fresh cross-compiler works.
13542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13543 # <limits.h> exists even on freestanding compilers.
13544 # On the NeXT, cc -E runs the code through the compiler's parser,
13545 # not just through cpp. "Syntax error" is here to catch this case.
13546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13547 /* end confdefs.h. */
13548 #ifdef __STDC__
13549 # include <limits.h>
13550 #else
13551 # include <assert.h>
13552 #endif
13553 Syntax error
13554 _ACEOF
13555 if ac_fn_cxx_try_cpp "$LINENO"; then :
13556
13557 else
13558 # Broken: fails on valid input.
13559 continue
13560 fi
13561 rm -f conftest.err conftest.$ac_ext
13562
13563 # OK, works on sane cases. Now check whether nonexistent headers
13564 # can be detected and how.
13565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13566 /* end confdefs.h. */
13567 #include <ac_nonexistent.h>
13568 _ACEOF
13569 if ac_fn_cxx_try_cpp "$LINENO"; then :
13570 # Broken: success on invalid input.
13571 continue
13572 else
13573 # Passes both tests.
13574 ac_preproc_ok=:
13575 break
13576 fi
13577 rm -f conftest.err conftest.$ac_ext
13578
13579 done
13580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13581 rm -f conftest.err conftest.$ac_ext
13582 if $ac_preproc_ok; then :
13583 break
13584 fi
13585
13586 done
13587 ac_cv_prog_CXXCPP=$CXXCPP
13588
13589 fi
13590 CXXCPP=$ac_cv_prog_CXXCPP
13591 else
13592 ac_cv_prog_CXXCPP=$CXXCPP
13593 fi
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13595 $as_echo "$CXXCPP" >&6; }
13596 ac_preproc_ok=false
13597 for ac_cxx_preproc_warn_flag in '' yes
13598 do
13599 # Use a header file that comes with gcc, so configuring glibc
13600 # with a fresh cross-compiler works.
13601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13602 # <limits.h> exists even on freestanding compilers.
13603 # On the NeXT, cc -E runs the code through the compiler's parser,
13604 # not just through cpp. "Syntax error" is here to catch this case.
13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h. */
13607 #ifdef __STDC__
13608 # include <limits.h>
13609 #else
13610 # include <assert.h>
13611 #endif
13612 Syntax error
13613 _ACEOF
13614 if ac_fn_cxx_try_cpp "$LINENO"; then :
13615
13616 else
13617 # Broken: fails on valid input.
13618 continue
13619 fi
13620 rm -f conftest.err conftest.$ac_ext
13621
13622 # OK, works on sane cases. Now check whether nonexistent headers
13623 # can be detected and how.
13624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13625 /* end confdefs.h. */
13626 #include <ac_nonexistent.h>
13627 _ACEOF
13628 if ac_fn_cxx_try_cpp "$LINENO"; then :
13629 # Broken: success on invalid input.
13630 continue
13631 else
13632 # Passes both tests.
13633 ac_preproc_ok=:
13634 break
13635 fi
13636 rm -f conftest.err conftest.$ac_ext
13637
13638 done
13639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13640 rm -f conftest.err conftest.$ac_ext
13641 if $ac_preproc_ok; then :
13642
13643 else
13644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13646 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13647 See \`config.log' for more details." "$LINENO" 5; }
13648 fi
13649
13650 ac_ext=c
13651 ac_cpp='$CPP $CPPFLAGS'
13652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13655
13656 else
13657 _lt_caught_CXX_error=yes
13658 fi
13659
13660 ac_ext=cpp
13661 ac_cpp='$CXXCPP $CPPFLAGS'
13662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13665
13666 archive_cmds_need_lc_CXX=no
13667 allow_undefined_flag_CXX=
13668 always_export_symbols_CXX=no
13669 archive_expsym_cmds_CXX=
13670 compiler_needs_object_CXX=no
13671 export_dynamic_flag_spec_CXX=
13672 hardcode_direct_CXX=no
13673 hardcode_direct_absolute_CXX=no
13674 hardcode_libdir_flag_spec_CXX=
13675 hardcode_libdir_flag_spec_ld_CXX=
13676 hardcode_libdir_separator_CXX=
13677 hardcode_minus_L_CXX=no
13678 hardcode_shlibpath_var_CXX=unsupported
13679 hardcode_automatic_CXX=no
13680 inherit_rpath_CXX=no
13681 module_cmds_CXX=
13682 module_expsym_cmds_CXX=
13683 link_all_deplibs_CXX=unknown
13684 old_archive_cmds_CXX=$old_archive_cmds
13685 reload_flag_CXX=$reload_flag
13686 reload_cmds_CXX=$reload_cmds
13687 no_undefined_flag_CXX=
13688 whole_archive_flag_spec_CXX=
13689 enable_shared_with_static_runtimes_CXX=no
13690
13691 # Source file extension for C++ test sources.
13692 ac_ext=cpp
13693
13694 # Object file extension for compiled C++ test sources.
13695 objext=o
13696 objext_CXX=$objext
13697
13698 # No sense in running all these tests if we already determined that
13699 # the CXX compiler isn't working. Some variables (like enable_shared)
13700 # are currently assumed to apply to all compilers on this platform,
13701 # and will be corrupted by setting them based on a non-working compiler.
13702 if test "$_lt_caught_CXX_error" != yes; then
13703 # Code to be used in simple compile tests
13704 lt_simple_compile_test_code="int some_variable = 0;"
13705
13706 # Code to be used in simple link tests
13707 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13708
13709 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13710
13711
13712
13713
13714
13715
13716 # If no C compiler was specified, use CC.
13717 LTCC=${LTCC-"$CC"}
13718
13719 # If no C compiler flags were specified, use CFLAGS.
13720 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13721
13722 # Allow CC to be a program name with arguments.
13723 compiler=$CC
13724
13725
13726 # save warnings/boilerplate of simple test code
13727 ac_outfile=conftest.$ac_objext
13728 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13729 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13730 _lt_compiler_boilerplate=`cat conftest.err`
13731 $RM conftest*
13732
13733 ac_outfile=conftest.$ac_objext
13734 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13735 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13736 _lt_linker_boilerplate=`cat conftest.err`
13737 $RM -r conftest*
13738
13739
13740 # Allow CC to be a program name with arguments.
13741 lt_save_CC=$CC
13742 lt_save_LD=$LD
13743 lt_save_GCC=$GCC
13744 GCC=$GXX
13745 lt_save_with_gnu_ld=$with_gnu_ld
13746 lt_save_path_LD=$lt_cv_path_LD
13747 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13748 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13749 else
13750 $as_unset lt_cv_prog_gnu_ld
13751 fi
13752 if test -n "${lt_cv_path_LDCXX+set}"; then
13753 lt_cv_path_LD=$lt_cv_path_LDCXX
13754 else
13755 $as_unset lt_cv_path_LD
13756 fi
13757 test -z "${LDCXX+set}" || LD=$LDCXX
13758 CC=${CXX-"c++"}
13759 compiler=$CC
13760 compiler_CXX=$CC
13761 for cc_temp in $compiler""; do
13762 case $cc_temp in
13763 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13764 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13765 \-*) ;;
13766 *) break;;
13767 esac
13768 done
13769 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13770
13771
13772 if test -n "$compiler"; then
13773 # We don't want -fno-exception when compiling C++ code, so set the
13774 # no_builtin_flag separately
13775 if test "$GXX" = yes; then
13776 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13777 else
13778 lt_prog_compiler_no_builtin_flag_CXX=
13779 fi
13780
13781 if test "$GXX" = yes; then
13782 # Set up default GNU C++ configuration
13783
13784
13785
13786 # Check whether --with-gnu-ld was given.
13787 if test "${with_gnu_ld+set}" = set; then :
13788 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13789 else
13790 with_gnu_ld=no
13791 fi
13792
13793 ac_prog=ld
13794 if test "$GCC" = yes; then
13795 # Check if gcc -print-prog-name=ld gives a path.
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13797 $as_echo_n "checking for ld used by $CC... " >&6; }
13798 case $host in
13799 *-*-mingw*)
13800 # gcc leaves a trailing carriage return which upsets mingw
13801 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13802 *)
13803 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13804 esac
13805 case $ac_prog in
13806 # Accept absolute paths.
13807 [\\/]* | ?:[\\/]*)
13808 re_direlt='/[^/][^/]*/\.\./'
13809 # Canonicalize the pathname of ld
13810 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13811 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13812 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13813 done
13814 test -z "$LD" && LD="$ac_prog"
13815 ;;
13816 "")
13817 # If it fails, then pretend we aren't using GCC.
13818 ac_prog=ld
13819 ;;
13820 *)
13821 # If it is relative, then search for the first ld in PATH.
13822 with_gnu_ld=unknown
13823 ;;
13824 esac
13825 elif test "$with_gnu_ld" = yes; then
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13827 $as_echo_n "checking for GNU ld... " >&6; }
13828 else
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13830 $as_echo_n "checking for non-GNU ld... " >&6; }
13831 fi
13832 if test "${lt_cv_path_LD+set}" = set; then :
13833 $as_echo_n "(cached) " >&6
13834 else
13835 if test -z "$LD"; then
13836 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13837 for ac_dir in $PATH; do
13838 IFS="$lt_save_ifs"
13839 test -z "$ac_dir" && ac_dir=.
13840 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13841 lt_cv_path_LD="$ac_dir/$ac_prog"
13842 # Check to see if the program is GNU ld. I'd rather use --version,
13843 # but apparently some variants of GNU ld only accept -v.
13844 # Break only if it was the GNU/non-GNU ld that we prefer.
13845 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13846 *GNU* | *'with BFD'*)
13847 test "$with_gnu_ld" != no && break
13848 ;;
13849 *)
13850 test "$with_gnu_ld" != yes && break
13851 ;;
13852 esac
13853 fi
13854 done
13855 IFS="$lt_save_ifs"
13856 else
13857 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13858 fi
13859 fi
13860
13861 LD="$lt_cv_path_LD"
13862 if test -n "$LD"; then
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13864 $as_echo "$LD" >&6; }
13865 else
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13867 $as_echo "no" >&6; }
13868 fi
13869 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13871 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13872 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13873 $as_echo_n "(cached) " >&6
13874 else
13875 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13876 case `$LD -v 2>&1 </dev/null` in
13877 *GNU* | *'with BFD'*)
13878 lt_cv_prog_gnu_ld=yes
13879 ;;
13880 *)
13881 lt_cv_prog_gnu_ld=no
13882 ;;
13883 esac
13884 fi
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13886 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13887 with_gnu_ld=$lt_cv_prog_gnu_ld
13888
13889
13890
13891
13892
13893
13894
13895 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13896 # archiving commands below assume that GNU ld is being used.
13897 if test "$with_gnu_ld" = yes; then
13898 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13899 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'
13900
13901 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13902 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13903
13904 # If archive_cmds runs LD, not CC, wlarc should be empty
13905 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13906 # investigate it a little bit more. (MM)
13907 wlarc='${wl}'
13908
13909 # ancient GNU ld didn't support --whole-archive et. al.
13910 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13911 $GREP 'no-whole-archive' > /dev/null; then
13912 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13913 else
13914 whole_archive_flag_spec_CXX=
13915 fi
13916 else
13917 with_gnu_ld=no
13918 wlarc=
13919
13920 # A generic and very simple default shared library creation
13921 # command for GNU C++ for the case where it uses the native
13922 # linker, instead of GNU ld. If possible, this setting should
13923 # overridden to take advantage of the native linker features on
13924 # the platform it is being used on.
13925 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13926 fi
13927
13928 # Commands to make compiler produce verbose output that lists
13929 # what "hidden" libraries, object files and flags are used when
13930 # linking a shared library.
13931 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13932
13933 else
13934 GXX=no
13935 with_gnu_ld=no
13936 wlarc=
13937 fi
13938
13939 # PORTME: fill in a description of your system's C++ link characteristics
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13941 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13942 ld_shlibs_CXX=yes
13943 case $host_os in
13944 aix3*)
13945 # FIXME: insert proper C++ library support
13946 ld_shlibs_CXX=no
13947 ;;
13948 aix[4-9]*)
13949 if test "$host_cpu" = ia64; then
13950 # On IA64, the linker does run time linking by default, so we don't
13951 # have to do anything special.
13952 aix_use_runtimelinking=no
13953 exp_sym_flag='-Bexport'
13954 no_entry_flag=""
13955 else
13956 aix_use_runtimelinking=no
13957
13958 # Test if we are trying to use run time linking or normal
13959 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13960 # need to do runtime linking.
13961 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13962 for ld_flag in $LDFLAGS; do
13963 case $ld_flag in
13964 *-brtl*)
13965 aix_use_runtimelinking=yes
13966 break
13967 ;;
13968 esac
13969 done
13970 ;;
13971 esac
13972
13973 exp_sym_flag='-bexport'
13974 no_entry_flag='-bnoentry'
13975 fi
13976
13977 # When large executables or shared objects are built, AIX ld can
13978 # have problems creating the table of contents. If linking a library
13979 # or program results in "error TOC overflow" add -mminimal-toc to
13980 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13981 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13982
13983 archive_cmds_CXX=''
13984 hardcode_direct_CXX=yes
13985 hardcode_direct_absolute_CXX=yes
13986 hardcode_libdir_separator_CXX=':'
13987 link_all_deplibs_CXX=yes
13988 file_list_spec_CXX='${wl}-f,'
13989
13990 if test "$GXX" = yes; then
13991 case $host_os in aix4.[012]|aix4.[012].*)
13992 # We only want to do this on AIX 4.2 and lower, the check
13993 # below for broken collect2 doesn't work under 4.3+
13994 collect2name=`${CC} -print-prog-name=collect2`
13995 if test -f "$collect2name" &&
13996 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13997 then
13998 # We have reworked collect2
13999 :
14000 else
14001 # We have old collect2
14002 hardcode_direct_CXX=unsupported
14003 # It fails to find uninstalled libraries when the uninstalled
14004 # path is not listed in the libpath. Setting hardcode_minus_L
14005 # to unsupported forces relinking
14006 hardcode_minus_L_CXX=yes
14007 hardcode_libdir_flag_spec_CXX='-L$libdir'
14008 hardcode_libdir_separator_CXX=
14009 fi
14010 esac
14011 shared_flag='-shared'
14012 if test "$aix_use_runtimelinking" = yes; then
14013 shared_flag="$shared_flag "'${wl}-G'
14014 fi
14015 else
14016 # not using gcc
14017 if test "$host_cpu" = ia64; then
14018 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14019 # chokes on -Wl,-G. The following line is correct:
14020 shared_flag='-G'
14021 else
14022 if test "$aix_use_runtimelinking" = yes; then
14023 shared_flag='${wl}-G'
14024 else
14025 shared_flag='${wl}-bM:SRE'
14026 fi
14027 fi
14028 fi
14029
14030 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14031 # It seems that -bexpall does not export symbols beginning with
14032 # underscore (_), so it is better to generate a list of symbols to
14033 # export.
14034 always_export_symbols_CXX=yes
14035 if test "$aix_use_runtimelinking" = yes; then
14036 # Warning - without using the other runtime loading flags (-brtl),
14037 # -berok will link without error, but may produce a broken library.
14038 allow_undefined_flag_CXX='-berok'
14039 # Determine the default libpath from the value encoded in an empty
14040 # executable.
14041 if test x$gcc_no_link = xyes; then
14042 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14043 fi
14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14046
14047 int
14048 main ()
14049 {
14050
14051 ;
14052 return 0;
14053 }
14054 _ACEOF
14055 if ac_fn_cxx_try_link "$LINENO"; then :
14056
14057 lt_aix_libpath_sed='
14058 /Import File Strings/,/^$/ {
14059 /^0/ {
14060 s/^0 *\(.*\)$/\1/
14061 p
14062 }
14063 }'
14064 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14065 # Check for a 64-bit object if we didn't find anything.
14066 if test -z "$aix_libpath"; then
14067 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14068 fi
14069 fi
14070 rm -f core conftest.err conftest.$ac_objext \
14071 conftest$ac_exeext conftest.$ac_ext
14072 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14073
14074 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14075
14076 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"
14077 else
14078 if test "$host_cpu" = ia64; then
14079 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14080 allow_undefined_flag_CXX="-z nodefs"
14081 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"
14082 else
14083 # Determine the default libpath from the value encoded in an
14084 # empty executable.
14085 if test x$gcc_no_link = xyes; then
14086 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14087 fi
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090
14091 int
14092 main ()
14093 {
14094
14095 ;
14096 return 0;
14097 }
14098 _ACEOF
14099 if ac_fn_cxx_try_link "$LINENO"; then :
14100
14101 lt_aix_libpath_sed='
14102 /Import File Strings/,/^$/ {
14103 /^0/ {
14104 s/^0 *\(.*\)$/\1/
14105 p
14106 }
14107 }'
14108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14109 # Check for a 64-bit object if we didn't find anything.
14110 if test -z "$aix_libpath"; then
14111 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14112 fi
14113 fi
14114 rm -f core conftest.err conftest.$ac_objext \
14115 conftest$ac_exeext conftest.$ac_ext
14116 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14117
14118 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14119 # Warning - without using the other run time loading flags,
14120 # -berok will link without error, but may produce a broken library.
14121 no_undefined_flag_CXX=' ${wl}-bernotok'
14122 allow_undefined_flag_CXX=' ${wl}-berok'
14123 if test "$with_gnu_ld" = yes; then
14124 # We only use this code for GNU lds that support --whole-archive.
14125 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14126 else
14127 # Exported symbols can be pulled into shared objects from archives
14128 whole_archive_flag_spec_CXX='$convenience'
14129 fi
14130 archive_cmds_need_lc_CXX=yes
14131 # This is similar to how AIX traditionally builds its shared
14132 # libraries.
14133 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'
14134 fi
14135 fi
14136 ;;
14137
14138 beos*)
14139 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14140 allow_undefined_flag_CXX=unsupported
14141 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14142 # support --undefined. This deserves some investigation. FIXME
14143 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14144 else
14145 ld_shlibs_CXX=no
14146 fi
14147 ;;
14148
14149 chorus*)
14150 case $cc_basename in
14151 *)
14152 # FIXME: insert proper C++ library support
14153 ld_shlibs_CXX=no
14154 ;;
14155 esac
14156 ;;
14157
14158 cygwin* | mingw* | pw32* | cegcc*)
14159 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14160 # as there is no search path for DLLs.
14161 hardcode_libdir_flag_spec_CXX='-L$libdir'
14162 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14163 allow_undefined_flag_CXX=unsupported
14164 always_export_symbols_CXX=no
14165 enable_shared_with_static_runtimes_CXX=yes
14166
14167 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14168 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'
14169 # If the export-symbols file already is a .def file (1st line
14170 # is EXPORTS), use it as is; otherwise, prepend...
14171 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14172 cp $export_symbols $output_objdir/$soname.def;
14173 else
14174 echo EXPORTS > $output_objdir/$soname.def;
14175 cat $export_symbols >> $output_objdir/$soname.def;
14176 fi~
14177 $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'
14178 else
14179 ld_shlibs_CXX=no
14180 fi
14181 ;;
14182 darwin* | rhapsody*)
14183
14184
14185 archive_cmds_need_lc_CXX=no
14186 hardcode_direct_CXX=no
14187 hardcode_automatic_CXX=yes
14188 hardcode_shlibpath_var_CXX=unsupported
14189 if test "$lt_cv_ld_force_load" = "yes"; then
14190 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\"`'
14191 else
14192 whole_archive_flag_spec_CXX=''
14193 fi
14194 link_all_deplibs_CXX=yes
14195 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14196 case $cc_basename in
14197 ifort*) _lt_dar_can_shared=yes ;;
14198 *) _lt_dar_can_shared=$GCC ;;
14199 esac
14200 if test "$_lt_dar_can_shared" = "yes"; then
14201 output_verbose_link_cmd=func_echo_all
14202 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}"
14203 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14204 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}"
14205 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}"
14206 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14207 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}"
14208 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}"
14209 fi
14210
14211 else
14212 ld_shlibs_CXX=no
14213 fi
14214
14215 ;;
14216
14217 dgux*)
14218 case $cc_basename in
14219 ec++*)
14220 # FIXME: insert proper C++ library support
14221 ld_shlibs_CXX=no
14222 ;;
14223 ghcx*)
14224 # Green Hills C++ Compiler
14225 # FIXME: insert proper C++ library support
14226 ld_shlibs_CXX=no
14227 ;;
14228 *)
14229 # FIXME: insert proper C++ library support
14230 ld_shlibs_CXX=no
14231 ;;
14232 esac
14233 ;;
14234
14235 freebsd[12]*)
14236 # C++ shared libraries reported to be fairly broken before
14237 # switch to ELF
14238 ld_shlibs_CXX=no
14239 ;;
14240
14241 freebsd-elf*)
14242 archive_cmds_need_lc_CXX=no
14243 ;;
14244
14245 freebsd* | dragonfly*)
14246 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14247 # conventions
14248 ld_shlibs_CXX=yes
14249 ;;
14250
14251 gnu*)
14252 ;;
14253
14254 haiku*)
14255 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14256 link_all_deplibs_CXX=yes
14257 ;;
14258
14259 hpux9*)
14260 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14261 hardcode_libdir_separator_CXX=:
14262 export_dynamic_flag_spec_CXX='${wl}-E'
14263 hardcode_direct_CXX=yes
14264 hardcode_minus_L_CXX=yes # Not in the search PATH,
14265 # but as the default
14266 # location of the library.
14267
14268 case $cc_basename in
14269 CC*)
14270 # FIXME: insert proper C++ library support
14271 ld_shlibs_CXX=no
14272 ;;
14273 aCC*)
14274 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'
14275 # Commands to make compiler produce verbose output that lists
14276 # what "hidden" libraries, object files and flags are used when
14277 # linking a shared library.
14278 #
14279 # There doesn't appear to be a way to prevent this compiler from
14280 # explicitly linking system object files so we need to strip them
14281 # from the output so that they don't get included in the library
14282 # dependencies.
14283 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"'
14284 ;;
14285 *)
14286 if test "$GXX" = yes; then
14287 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'
14288 else
14289 # FIXME: insert proper C++ library support
14290 ld_shlibs_CXX=no
14291 fi
14292 ;;
14293 esac
14294 ;;
14295
14296 hpux10*|hpux11*)
14297 if test $with_gnu_ld = no; then
14298 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14299 hardcode_libdir_separator_CXX=:
14300
14301 case $host_cpu in
14302 hppa*64*|ia64*)
14303 ;;
14304 *)
14305 export_dynamic_flag_spec_CXX='${wl}-E'
14306 ;;
14307 esac
14308 fi
14309 case $host_cpu in
14310 hppa*64*|ia64*)
14311 hardcode_direct_CXX=no
14312 hardcode_shlibpath_var_CXX=no
14313 ;;
14314 *)
14315 hardcode_direct_CXX=yes
14316 hardcode_direct_absolute_CXX=yes
14317 hardcode_minus_L_CXX=yes # Not in the search PATH,
14318 # but as the default
14319 # location of the library.
14320 ;;
14321 esac
14322
14323 case $cc_basename in
14324 CC*)
14325 # FIXME: insert proper C++ library support
14326 ld_shlibs_CXX=no
14327 ;;
14328 aCC*)
14329 case $host_cpu in
14330 hppa*64*)
14331 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14332 ;;
14333 ia64*)
14334 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14335 ;;
14336 *)
14337 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14338 ;;
14339 esac
14340 # Commands to make compiler produce verbose output that lists
14341 # what "hidden" libraries, object files and flags are used when
14342 # linking a shared library.
14343 #
14344 # There doesn't appear to be a way to prevent this compiler from
14345 # explicitly linking system object files so we need to strip them
14346 # from the output so that they don't get included in the library
14347 # dependencies.
14348 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"'
14349 ;;
14350 *)
14351 if test "$GXX" = yes; then
14352 if test $with_gnu_ld = no; then
14353 case $host_cpu in
14354 hppa*64*)
14355 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14356 ;;
14357 ia64*)
14358 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14359 ;;
14360 *)
14361 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'
14362 ;;
14363 esac
14364 fi
14365 else
14366 # FIXME: insert proper C++ library support
14367 ld_shlibs_CXX=no
14368 fi
14369 ;;
14370 esac
14371 ;;
14372
14373 interix[3-9]*)
14374 hardcode_direct_CXX=no
14375 hardcode_shlibpath_var_CXX=no
14376 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14377 export_dynamic_flag_spec_CXX='${wl}-E'
14378 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14379 # Instead, shared libraries are loaded at an image base (0x10000000 by
14380 # default) and relocated if they conflict, which is a slow very memory
14381 # consuming and fragmenting process. To avoid this, we pick a random,
14382 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14383 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14384 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'
14385 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'
14386 ;;
14387 irix5* | irix6*)
14388 case $cc_basename in
14389 CC*)
14390 # SGI C++
14391 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'
14392
14393 # Archives containing C++ object files must be created using
14394 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14395 # necessary to make sure instantiated templates are included
14396 # in the archive.
14397 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14398 ;;
14399 *)
14400 if test "$GXX" = yes; then
14401 if test "$with_gnu_ld" = no; then
14402 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'
14403 else
14404 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14405 fi
14406 fi
14407 link_all_deplibs_CXX=yes
14408 ;;
14409 esac
14410 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14411 hardcode_libdir_separator_CXX=:
14412 inherit_rpath_CXX=yes
14413 ;;
14414
14415 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14416 case $cc_basename in
14417 KCC*)
14418 # Kuck and Associates, Inc. (KAI) C++ Compiler
14419
14420 # KCC will only create a shared library if the output file
14421 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14422 # to its proper name (with version) after linking.
14423 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'
14424 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'
14425 # Commands to make compiler produce verbose output that lists
14426 # what "hidden" libraries, object files and flags are used when
14427 # linking a shared library.
14428 #
14429 # There doesn't appear to be a way to prevent this compiler from
14430 # explicitly linking system object files so we need to strip them
14431 # from the output so that they don't get included in the library
14432 # dependencies.
14433 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"'
14434
14435 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14436 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14437
14438 # Archives containing C++ object files must be created using
14439 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14440 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14441 ;;
14442 icpc* | ecpc* )
14443 # Intel C++
14444 with_gnu_ld=yes
14445 # version 8.0 and above of icpc choke on multiply defined symbols
14446 # if we add $predep_objects and $postdep_objects, however 7.1 and
14447 # earlier do not add the objects themselves.
14448 case `$CC -V 2>&1` in
14449 *"Version 7."*)
14450 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14451 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'
14452 ;;
14453 *) # Version 8.0 or newer
14454 tmp_idyn=
14455 case $host_cpu in
14456 ia64*) tmp_idyn=' -i_dynamic';;
14457 esac
14458 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14459 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'
14460 ;;
14461 esac
14462 archive_cmds_need_lc_CXX=no
14463 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14464 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14465 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14466 ;;
14467 pgCC* | pgcpp*)
14468 # Portland Group C++ compiler
14469 case `$CC -V` in
14470 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14471 prelink_cmds_CXX='tpldir=Template.dir~
14472 rm -rf $tpldir~
14473 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14474 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14475 old_archive_cmds_CXX='tpldir=Template.dir~
14476 rm -rf $tpldir~
14477 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14478 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14479 $RANLIB $oldlib'
14480 archive_cmds_CXX='tpldir=Template.dir~
14481 rm -rf $tpldir~
14482 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14483 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14484 archive_expsym_cmds_CXX='tpldir=Template.dir~
14485 rm -rf $tpldir~
14486 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14487 $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'
14488 ;;
14489 *) # Version 6 and above use weak symbols
14490 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14491 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'
14492 ;;
14493 esac
14494
14495 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14496 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14497 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'
14498 ;;
14499 cxx*)
14500 # Compaq C++
14501 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14502 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'
14503
14504 runpath_var=LD_RUN_PATH
14505 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14506 hardcode_libdir_separator_CXX=:
14507
14508 # Commands to make compiler produce verbose output that lists
14509 # what "hidden" libraries, object files and flags are used when
14510 # linking a shared library.
14511 #
14512 # There doesn't appear to be a way to prevent this compiler from
14513 # explicitly linking system object files so we need to strip them
14514 # from the output so that they don't get included in the library
14515 # dependencies.
14516 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'
14517 ;;
14518 xl* | mpixl* | bgxl*)
14519 # IBM XL 8.0 on PPC, with GNU ld
14520 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14521 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14522 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14523 if test "x$supports_anon_versioning" = xyes; then
14524 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14525 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14526 echo "local: *; };" >> $output_objdir/$libname.ver~
14527 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14528 fi
14529 ;;
14530 *)
14531 case `$CC -V 2>&1 | sed 5q` in
14532 *Sun\ C*)
14533 # Sun C++ 5.9
14534 no_undefined_flag_CXX=' -zdefs'
14535 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14536 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'
14537 hardcode_libdir_flag_spec_CXX='-R$libdir'
14538 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'
14539 compiler_needs_object_CXX=yes
14540
14541 # Not sure whether something based on
14542 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14543 # would be better.
14544 output_verbose_link_cmd='func_echo_all'
14545
14546 # Archives containing C++ object files must be created using
14547 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14548 # necessary to make sure instantiated templates are included
14549 # in the archive.
14550 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14551 ;;
14552 esac
14553 ;;
14554 esac
14555 ;;
14556
14557 lynxos*)
14558 # FIXME: insert proper C++ library support
14559 ld_shlibs_CXX=no
14560 ;;
14561
14562 m88k*)
14563 # FIXME: insert proper C++ library support
14564 ld_shlibs_CXX=no
14565 ;;
14566
14567 mvs*)
14568 case $cc_basename in
14569 cxx*)
14570 # FIXME: insert proper C++ library support
14571 ld_shlibs_CXX=no
14572 ;;
14573 *)
14574 # FIXME: insert proper C++ library support
14575 ld_shlibs_CXX=no
14576 ;;
14577 esac
14578 ;;
14579
14580 netbsd*)
14581 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14582 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14583 wlarc=
14584 hardcode_libdir_flag_spec_CXX='-R$libdir'
14585 hardcode_direct_CXX=yes
14586 hardcode_shlibpath_var_CXX=no
14587 fi
14588 # Workaround some broken pre-1.5 toolchains
14589 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14590 ;;
14591
14592 *nto* | *qnx*)
14593 ld_shlibs_CXX=yes
14594 ;;
14595
14596 openbsd2*)
14597 # C++ shared libraries are fairly broken
14598 ld_shlibs_CXX=no
14599 ;;
14600
14601 openbsd*)
14602 if test -f /usr/libexec/ld.so; then
14603 hardcode_direct_CXX=yes
14604 hardcode_shlibpath_var_CXX=no
14605 hardcode_direct_absolute_CXX=yes
14606 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14607 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14608 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14609 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14610 export_dynamic_flag_spec_CXX='${wl}-E'
14611 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14612 fi
14613 output_verbose_link_cmd=func_echo_all
14614 else
14615 ld_shlibs_CXX=no
14616 fi
14617 ;;
14618
14619 osf3* | osf4* | osf5*)
14620 case $cc_basename in
14621 KCC*)
14622 # Kuck and Associates, Inc. (KAI) C++ Compiler
14623
14624 # KCC will only create a shared library if the output file
14625 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14626 # to its proper name (with version) after linking.
14627 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'
14628
14629 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14630 hardcode_libdir_separator_CXX=:
14631
14632 # Archives containing C++ object files must be created using
14633 # the KAI C++ compiler.
14634 case $host in
14635 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14636 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14637 esac
14638 ;;
14639 RCC*)
14640 # Rational C++ 2.4.1
14641 # FIXME: insert proper C++ library support
14642 ld_shlibs_CXX=no
14643 ;;
14644 cxx*)
14645 case $host in
14646 osf3*)
14647 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14648 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'
14649 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14650 ;;
14651 *)
14652 allow_undefined_flag_CXX=' -expect_unresolved \*'
14653 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'
14654 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14655 echo "-hidden">> $lib.exp~
14656 $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~
14657 $RM $lib.exp'
14658 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14659 ;;
14660 esac
14661
14662 hardcode_libdir_separator_CXX=:
14663
14664 # Commands to make compiler produce verbose output that lists
14665 # what "hidden" libraries, object files and flags are used when
14666 # linking a shared library.
14667 #
14668 # There doesn't appear to be a way to prevent this compiler from
14669 # explicitly linking system object files so we need to strip them
14670 # from the output so that they don't get included in the library
14671 # dependencies.
14672 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"'
14673 ;;
14674 *)
14675 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14676 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14677 case $host in
14678 osf3*)
14679 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'
14680 ;;
14681 *)
14682 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'
14683 ;;
14684 esac
14685
14686 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14687 hardcode_libdir_separator_CXX=:
14688
14689 # Commands to make compiler produce verbose output that lists
14690 # what "hidden" libraries, object files and flags are used when
14691 # linking a shared library.
14692 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14693
14694 else
14695 # FIXME: insert proper C++ library support
14696 ld_shlibs_CXX=no
14697 fi
14698 ;;
14699 esac
14700 ;;
14701
14702 psos*)
14703 # FIXME: insert proper C++ library support
14704 ld_shlibs_CXX=no
14705 ;;
14706
14707 sunos4*)
14708 case $cc_basename in
14709 CC*)
14710 # Sun C++ 4.x
14711 # FIXME: insert proper C++ library support
14712 ld_shlibs_CXX=no
14713 ;;
14714 lcc*)
14715 # Lucid
14716 # FIXME: insert proper C++ library support
14717 ld_shlibs_CXX=no
14718 ;;
14719 *)
14720 # FIXME: insert proper C++ library support
14721 ld_shlibs_CXX=no
14722 ;;
14723 esac
14724 ;;
14725
14726 solaris*)
14727 case $cc_basename in
14728 CC*)
14729 # Sun C++ 4.2, 5.x and Centerline C++
14730 archive_cmds_need_lc_CXX=yes
14731 no_undefined_flag_CXX=' -zdefs'
14732 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14733 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14734 $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'
14735
14736 hardcode_libdir_flag_spec_CXX='-R$libdir'
14737 hardcode_shlibpath_var_CXX=no
14738 case $host_os in
14739 solaris2.[0-5] | solaris2.[0-5].*) ;;
14740 *)
14741 # The compiler driver will combine and reorder linker options,
14742 # but understands `-z linker_flag'.
14743 # Supported since Solaris 2.6 (maybe 2.5.1?)
14744 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14745 ;;
14746 esac
14747 link_all_deplibs_CXX=yes
14748
14749 output_verbose_link_cmd='func_echo_all'
14750
14751 # Archives containing C++ object files must be created using
14752 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14753 # necessary to make sure instantiated templates are included
14754 # in the archive.
14755 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14756 ;;
14757 gcx*)
14758 # Green Hills C++ Compiler
14759 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14760
14761 # The C++ compiler must be used to create the archive.
14762 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14763 ;;
14764 *)
14765 # GNU C++ compiler with Solaris linker
14766 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14767 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14768 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14769 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14770 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14771 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14772
14773 # Commands to make compiler produce verbose output that lists
14774 # what "hidden" libraries, object files and flags are used when
14775 # linking a shared library.
14776 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14777 else
14778 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14779 # platform.
14780 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14781 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14782 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14783
14784 # Commands to make compiler produce verbose output that lists
14785 # what "hidden" libraries, object files and flags are used when
14786 # linking a shared library.
14787 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14788 fi
14789
14790 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14791 case $host_os in
14792 solaris2.[0-5] | solaris2.[0-5].*) ;;
14793 *)
14794 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14795 ;;
14796 esac
14797 fi
14798 ;;
14799 esac
14800 ;;
14801
14802 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14803 no_undefined_flag_CXX='${wl}-z,text'
14804 archive_cmds_need_lc_CXX=no
14805 hardcode_shlibpath_var_CXX=no
14806 runpath_var='LD_RUN_PATH'
14807
14808 case $cc_basename in
14809 CC*)
14810 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14811 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14812 ;;
14813 *)
14814 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14815 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14816 ;;
14817 esac
14818 ;;
14819
14820 sysv5* | sco3.2v5* | sco5v6*)
14821 # Note: We can NOT use -z defs as we might desire, because we do not
14822 # link with -lc, and that would cause any symbols used from libc to
14823 # always be unresolved, which means just about no library would
14824 # ever link correctly. If we're not using GNU ld we use -z text
14825 # though, which does catch some bad symbols but isn't as heavy-handed
14826 # as -z defs.
14827 no_undefined_flag_CXX='${wl}-z,text'
14828 allow_undefined_flag_CXX='${wl}-z,nodefs'
14829 archive_cmds_need_lc_CXX=no
14830 hardcode_shlibpath_var_CXX=no
14831 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14832 hardcode_libdir_separator_CXX=':'
14833 link_all_deplibs_CXX=yes
14834 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14835 runpath_var='LD_RUN_PATH'
14836
14837 case $cc_basename in
14838 CC*)
14839 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14840 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14841 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14842 '"$old_archive_cmds_CXX"
14843 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14844 '"$reload_cmds_CXX"
14845 ;;
14846 *)
14847 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14848 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14849 ;;
14850 esac
14851 ;;
14852
14853 tandem*)
14854 case $cc_basename in
14855 NCC*)
14856 # NonStop-UX NCC 3.20
14857 # FIXME: insert proper C++ library support
14858 ld_shlibs_CXX=no
14859 ;;
14860 *)
14861 # FIXME: insert proper C++ library support
14862 ld_shlibs_CXX=no
14863 ;;
14864 esac
14865 ;;
14866
14867 vxworks*)
14868 # FIXME: insert proper C++ library support
14869 ld_shlibs_CXX=no
14870 ;;
14871
14872 *)
14873 # FIXME: insert proper C++ library support
14874 ld_shlibs_CXX=no
14875 ;;
14876 esac
14877
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14879 $as_echo "$ld_shlibs_CXX" >&6; }
14880 test "$ld_shlibs_CXX" = no && can_build_shared=no
14881
14882 GCC_CXX="$GXX"
14883 LD_CXX="$LD"
14884
14885 ## CAVEAT EMPTOR:
14886 ## There is no encapsulation within the following macros, do not change
14887 ## the running order or otherwise move them around unless you know exactly
14888 ## what you are doing...
14889 # Dependencies to place before and after the object being linked:
14890 predep_objects_CXX=
14891 postdep_objects_CXX=
14892 predeps_CXX=
14893 postdeps_CXX=
14894 compiler_lib_search_path_CXX=
14895
14896 cat > conftest.$ac_ext <<_LT_EOF
14897 class Foo
14898 {
14899 public:
14900 Foo (void) { a = 0; }
14901 private:
14902 int a;
14903 };
14904 _LT_EOF
14905
14906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14907 (eval $ac_compile) 2>&5
14908 ac_status=$?
14909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14910 test $ac_status = 0; }; then
14911 # Parse the compiler output and extract the necessary
14912 # objects, libraries and library flags.
14913
14914 # Sentinel used to keep track of whether or not we are before
14915 # the conftest object file.
14916 pre_test_object_deps_done=no
14917
14918 for p in `eval "$output_verbose_link_cmd"`; do
14919 case $p in
14920
14921 -L* | -R* | -l*)
14922 # Some compilers place space between "-{L,R}" and the path.
14923 # Remove the space.
14924 if test $p = "-L" ||
14925 test $p = "-R"; then
14926 prev=$p
14927 continue
14928 else
14929 prev=
14930 fi
14931
14932 if test "$pre_test_object_deps_done" = no; then
14933 case $p in
14934 -L* | -R*)
14935 # Internal compiler library paths should come after those
14936 # provided the user. The postdeps already come after the
14937 # user supplied libs so there is no need to process them.
14938 if test -z "$compiler_lib_search_path_CXX"; then
14939 compiler_lib_search_path_CXX="${prev}${p}"
14940 else
14941 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14942 fi
14943 ;;
14944 # The "-l" case would never come before the object being
14945 # linked, so don't bother handling this case.
14946 esac
14947 else
14948 if test -z "$postdeps_CXX"; then
14949 postdeps_CXX="${prev}${p}"
14950 else
14951 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14952 fi
14953 fi
14954 ;;
14955
14956 *.$objext)
14957 # This assumes that the test object file only shows up
14958 # once in the compiler output.
14959 if test "$p" = "conftest.$objext"; then
14960 pre_test_object_deps_done=yes
14961 continue
14962 fi
14963
14964 if test "$pre_test_object_deps_done" = no; then
14965 if test -z "$predep_objects_CXX"; then
14966 predep_objects_CXX="$p"
14967 else
14968 predep_objects_CXX="$predep_objects_CXX $p"
14969 fi
14970 else
14971 if test -z "$postdep_objects_CXX"; then
14972 postdep_objects_CXX="$p"
14973 else
14974 postdep_objects_CXX="$postdep_objects_CXX $p"
14975 fi
14976 fi
14977 ;;
14978
14979 *) ;; # Ignore the rest.
14980
14981 esac
14982 done
14983
14984 # Clean up.
14985 rm -f a.out a.exe
14986 else
14987 echo "libtool.m4: error: problem compiling CXX test program"
14988 fi
14989
14990 $RM -f confest.$objext
14991
14992 # PORTME: override above test on systems where it is broken
14993 case $host_os in
14994 interix[3-9]*)
14995 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14996 # hack all around it, let's just trust "g++" to DTRT.
14997 predep_objects_CXX=
14998 postdep_objects_CXX=
14999 postdeps_CXX=
15000 ;;
15001
15002 linux*)
15003 case `$CC -V 2>&1 | sed 5q` in
15004 *Sun\ C*)
15005 # Sun C++ 5.9
15006
15007 # The more standards-conforming stlport4 library is
15008 # incompatible with the Cstd library. Avoid specifying
15009 # it if it's in CXXFLAGS. Ignore libCrun as
15010 # -library=stlport4 depends on it.
15011 case " $CXX $CXXFLAGS " in
15012 *" -library=stlport4 "*)
15013 solaris_use_stlport4=yes
15014 ;;
15015 esac
15016
15017 if test "$solaris_use_stlport4" != yes; then
15018 postdeps_CXX='-library=Cstd -library=Crun'
15019 fi
15020 ;;
15021 esac
15022 ;;
15023
15024 solaris*)
15025 case $cc_basename in
15026 CC*)
15027 # The more standards-conforming stlport4 library is
15028 # incompatible with the Cstd library. Avoid specifying
15029 # it if it's in CXXFLAGS. Ignore libCrun as
15030 # -library=stlport4 depends on it.
15031 case " $CXX $CXXFLAGS " in
15032 *" -library=stlport4 "*)
15033 solaris_use_stlport4=yes
15034 ;;
15035 esac
15036
15037 # Adding this requires a known-good setup of shared libraries for
15038 # Sun compiler versions before 5.6, else PIC objects from an old
15039 # archive will be linked into the output, leading to subtle bugs.
15040 if test "$solaris_use_stlport4" != yes; then
15041 postdeps_CXX='-library=Cstd -library=Crun'
15042 fi
15043 ;;
15044 esac
15045 ;;
15046 esac
15047
15048
15049 case " $postdeps_CXX " in
15050 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15051 esac
15052 compiler_lib_search_dirs_CXX=
15053 if test -n "${compiler_lib_search_path_CXX}"; then
15054 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15055 fi
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087 lt_prog_compiler_wl_CXX=
15088 lt_prog_compiler_pic_CXX=
15089 lt_prog_compiler_static_CXX=
15090
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15092 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15093
15094 # C++ specific cases for pic, static, wl, etc.
15095 if test "$GXX" = yes; then
15096 lt_prog_compiler_wl_CXX='-Wl,'
15097 lt_prog_compiler_static_CXX='-static'
15098
15099 case $host_os in
15100 aix*)
15101 # All AIX code is PIC.
15102 if test "$host_cpu" = ia64; then
15103 # AIX 5 now supports IA64 processor
15104 lt_prog_compiler_static_CXX='-Bstatic'
15105 fi
15106 ;;
15107
15108 amigaos*)
15109 case $host_cpu in
15110 powerpc)
15111 # see comment about AmigaOS4 .so support
15112 lt_prog_compiler_pic_CXX='-fPIC'
15113 ;;
15114 m68k)
15115 # FIXME: we need at least 68020 code to build shared libraries, but
15116 # adding the `-m68020' flag to GCC prevents building anything better,
15117 # like `-m68040'.
15118 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15119 ;;
15120 esac
15121 ;;
15122
15123 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15124 # PIC is the default for these OSes.
15125 ;;
15126 mingw* | cygwin* | os2* | pw32* | cegcc*)
15127 # This hack is so that the source file can tell whether it is being
15128 # built for inclusion in a dll (and should export symbols for example).
15129 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15130 # (--disable-auto-import) libraries
15131 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15132 ;;
15133 darwin* | rhapsody*)
15134 # PIC is the default on this platform
15135 # Common symbols not allowed in MH_DYLIB files
15136 lt_prog_compiler_pic_CXX='-fno-common'
15137 ;;
15138 *djgpp*)
15139 # DJGPP does not support shared libraries at all
15140 lt_prog_compiler_pic_CXX=
15141 ;;
15142 haiku*)
15143 # PIC is the default for Haiku.
15144 # The "-static" flag exists, but is broken.
15145 lt_prog_compiler_static_CXX=
15146 ;;
15147 interix[3-9]*)
15148 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15149 # Instead, we relocate shared libraries at runtime.
15150 ;;
15151 sysv4*MP*)
15152 if test -d /usr/nec; then
15153 lt_prog_compiler_pic_CXX=-Kconform_pic
15154 fi
15155 ;;
15156 hpux*)
15157 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15158 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15159 # sets the default TLS model and affects inlining.
15160 case $host_cpu in
15161 hppa*64*)
15162 ;;
15163 *)
15164 lt_prog_compiler_pic_CXX='-fPIC'
15165 ;;
15166 esac
15167 ;;
15168 *qnx* | *nto*)
15169 # QNX uses GNU C++, but need to define -shared option too, otherwise
15170 # it will coredump.
15171 lt_prog_compiler_pic_CXX='-fPIC -shared'
15172 ;;
15173 *)
15174 lt_prog_compiler_pic_CXX='-fPIC'
15175 ;;
15176 esac
15177 else
15178 case $host_os in
15179 aix[4-9]*)
15180 # All AIX code is PIC.
15181 if test "$host_cpu" = ia64; then
15182 # AIX 5 now supports IA64 processor
15183 lt_prog_compiler_static_CXX='-Bstatic'
15184 else
15185 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15186 fi
15187 ;;
15188 chorus*)
15189 case $cc_basename in
15190 cxch68*)
15191 # Green Hills C++ Compiler
15192 # _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"
15193 ;;
15194 esac
15195 ;;
15196 dgux*)
15197 case $cc_basename in
15198 ec++*)
15199 lt_prog_compiler_pic_CXX='-KPIC'
15200 ;;
15201 ghcx*)
15202 # Green Hills C++ Compiler
15203 lt_prog_compiler_pic_CXX='-pic'
15204 ;;
15205 *)
15206 ;;
15207 esac
15208 ;;
15209 freebsd* | dragonfly*)
15210 # FreeBSD uses GNU C++
15211 ;;
15212 hpux9* | hpux10* | hpux11*)
15213 case $cc_basename in
15214 CC*)
15215 lt_prog_compiler_wl_CXX='-Wl,'
15216 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15217 if test "$host_cpu" != ia64; then
15218 lt_prog_compiler_pic_CXX='+Z'
15219 fi
15220 ;;
15221 aCC*)
15222 lt_prog_compiler_wl_CXX='-Wl,'
15223 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15224 case $host_cpu in
15225 hppa*64*|ia64*)
15226 # +Z the default
15227 ;;
15228 *)
15229 lt_prog_compiler_pic_CXX='+Z'
15230 ;;
15231 esac
15232 ;;
15233 *)
15234 ;;
15235 esac
15236 ;;
15237 interix*)
15238 # This is c89, which is MS Visual C++ (no shared libs)
15239 # Anyone wants to do a port?
15240 ;;
15241 irix5* | irix6* | nonstopux*)
15242 case $cc_basename in
15243 CC*)
15244 lt_prog_compiler_wl_CXX='-Wl,'
15245 lt_prog_compiler_static_CXX='-non_shared'
15246 # CC pic flag -KPIC is the default.
15247 ;;
15248 *)
15249 ;;
15250 esac
15251 ;;
15252 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15253 case $cc_basename in
15254 KCC*)
15255 # KAI C++ Compiler
15256 lt_prog_compiler_wl_CXX='--backend -Wl,'
15257 lt_prog_compiler_pic_CXX='-fPIC'
15258 ;;
15259 ecpc* )
15260 # old Intel C++ for x86_64 which still supported -KPIC.
15261 lt_prog_compiler_wl_CXX='-Wl,'
15262 lt_prog_compiler_pic_CXX='-KPIC'
15263 lt_prog_compiler_static_CXX='-static'
15264 ;;
15265 icpc* )
15266 # Intel C++, used to be incompatible with GCC.
15267 # ICC 10 doesn't accept -KPIC any more.
15268 lt_prog_compiler_wl_CXX='-Wl,'
15269 lt_prog_compiler_pic_CXX='-fPIC'
15270 lt_prog_compiler_static_CXX='-static'
15271 ;;
15272 pgCC* | pgcpp*)
15273 # Portland Group C++ compiler
15274 lt_prog_compiler_wl_CXX='-Wl,'
15275 lt_prog_compiler_pic_CXX='-fpic'
15276 lt_prog_compiler_static_CXX='-Bstatic'
15277 ;;
15278 cxx*)
15279 # Compaq C++
15280 # Make sure the PIC flag is empty. It appears that all Alpha
15281 # Linux and Compaq Tru64 Unix objects are PIC.
15282 lt_prog_compiler_pic_CXX=
15283 lt_prog_compiler_static_CXX='-non_shared'
15284 ;;
15285 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15286 # IBM XL 8.0, 9.0 on PPC and BlueGene
15287 lt_prog_compiler_wl_CXX='-Wl,'
15288 lt_prog_compiler_pic_CXX='-qpic'
15289 lt_prog_compiler_static_CXX='-qstaticlink'
15290 ;;
15291 *)
15292 case `$CC -V 2>&1 | sed 5q` in
15293 *Sun\ C*)
15294 # Sun C++ 5.9
15295 lt_prog_compiler_pic_CXX='-KPIC'
15296 lt_prog_compiler_static_CXX='-Bstatic'
15297 lt_prog_compiler_wl_CXX='-Qoption ld '
15298 ;;
15299 esac
15300 ;;
15301 esac
15302 ;;
15303 lynxos*)
15304 ;;
15305 m88k*)
15306 ;;
15307 mvs*)
15308 case $cc_basename in
15309 cxx*)
15310 lt_prog_compiler_pic_CXX='-W c,exportall'
15311 ;;
15312 *)
15313 ;;
15314 esac
15315 ;;
15316 netbsd*)
15317 ;;
15318 *qnx* | *nto*)
15319 # QNX uses GNU C++, but need to define -shared option too, otherwise
15320 # it will coredump.
15321 lt_prog_compiler_pic_CXX='-fPIC -shared'
15322 ;;
15323 osf3* | osf4* | osf5*)
15324 case $cc_basename in
15325 KCC*)
15326 lt_prog_compiler_wl_CXX='--backend -Wl,'
15327 ;;
15328 RCC*)
15329 # Rational C++ 2.4.1
15330 lt_prog_compiler_pic_CXX='-pic'
15331 ;;
15332 cxx*)
15333 # Digital/Compaq C++
15334 lt_prog_compiler_wl_CXX='-Wl,'
15335 # Make sure the PIC flag is empty. It appears that all Alpha
15336 # Linux and Compaq Tru64 Unix objects are PIC.
15337 lt_prog_compiler_pic_CXX=
15338 lt_prog_compiler_static_CXX='-non_shared'
15339 ;;
15340 *)
15341 ;;
15342 esac
15343 ;;
15344 psos*)
15345 ;;
15346 solaris*)
15347 case $cc_basename in
15348 CC*)
15349 # Sun C++ 4.2, 5.x and Centerline C++
15350 lt_prog_compiler_pic_CXX='-KPIC'
15351 lt_prog_compiler_static_CXX='-Bstatic'
15352 lt_prog_compiler_wl_CXX='-Qoption ld '
15353 ;;
15354 gcx*)
15355 # Green Hills C++ Compiler
15356 lt_prog_compiler_pic_CXX='-PIC'
15357 ;;
15358 *)
15359 ;;
15360 esac
15361 ;;
15362 sunos4*)
15363 case $cc_basename in
15364 CC*)
15365 # Sun C++ 4.x
15366 lt_prog_compiler_pic_CXX='-pic'
15367 lt_prog_compiler_static_CXX='-Bstatic'
15368 ;;
15369 lcc*)
15370 # Lucid
15371 lt_prog_compiler_pic_CXX='-pic'
15372 ;;
15373 *)
15374 ;;
15375 esac
15376 ;;
15377 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15378 case $cc_basename in
15379 CC*)
15380 lt_prog_compiler_wl_CXX='-Wl,'
15381 lt_prog_compiler_pic_CXX='-KPIC'
15382 lt_prog_compiler_static_CXX='-Bstatic'
15383 ;;
15384 esac
15385 ;;
15386 tandem*)
15387 case $cc_basename in
15388 NCC*)
15389 # NonStop-UX NCC 3.20
15390 lt_prog_compiler_pic_CXX='-KPIC'
15391 ;;
15392 *)
15393 ;;
15394 esac
15395 ;;
15396 vxworks*)
15397 ;;
15398 *)
15399 lt_prog_compiler_can_build_shared_CXX=no
15400 ;;
15401 esac
15402 fi
15403
15404 case $host_os in
15405 # For platforms which do not support PIC, -DPIC is meaningless:
15406 *djgpp*)
15407 lt_prog_compiler_pic_CXX=
15408 ;;
15409 *)
15410 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15411 ;;
15412 esac
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15414 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15415
15416
15417
15418 #
15419 # Check to make sure the PIC flag actually works.
15420 #
15421 if test -n "$lt_prog_compiler_pic_CXX"; then
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15423 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15424 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15425 $as_echo_n "(cached) " >&6
15426 else
15427 lt_cv_prog_compiler_pic_works_CXX=no
15428 ac_outfile=conftest.$ac_objext
15429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15430 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15431 # Insert the option either (1) after the last *FLAGS variable, or
15432 # (2) before a word containing "conftest.", or (3) at the end.
15433 # Note that $ac_compile itself does not contain backslashes and begins
15434 # with a dollar sign (not a hyphen), so the echo should work correctly.
15435 # The option is referenced via a variable to avoid confusing sed.
15436 lt_compile=`echo "$ac_compile" | $SED \
15437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15439 -e 's:$: $lt_compiler_flag:'`
15440 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15441 (eval "$lt_compile" 2>conftest.err)
15442 ac_status=$?
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 if (exit $ac_status) && test -s "$ac_outfile"; then
15446 # The compiler can only warn and ignore the option if not recognized
15447 # So say no if there are warnings other than the usual output.
15448 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15449 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15450 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15451 lt_cv_prog_compiler_pic_works_CXX=yes
15452 fi
15453 fi
15454 $RM conftest*
15455
15456 fi
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15458 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15459
15460 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15461 case $lt_prog_compiler_pic_CXX in
15462 "" | " "*) ;;
15463 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15464 esac
15465 else
15466 lt_prog_compiler_pic_CXX=
15467 lt_prog_compiler_can_build_shared_CXX=no
15468 fi
15469
15470 fi
15471
15472
15473
15474 #
15475 # Check to make sure the static flag actually works.
15476 #
15477 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15479 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15480 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15481 $as_echo_n "(cached) " >&6
15482 else
15483 lt_cv_prog_compiler_static_works_CXX=no
15484 save_LDFLAGS="$LDFLAGS"
15485 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15486 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15487 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15488 # The linker can only warn and ignore the option if not recognized
15489 # So say no if there are warnings
15490 if test -s conftest.err; then
15491 # Append any errors to the config.log.
15492 cat conftest.err 1>&5
15493 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15494 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15495 if diff conftest.exp conftest.er2 >/dev/null; then
15496 lt_cv_prog_compiler_static_works_CXX=yes
15497 fi
15498 else
15499 lt_cv_prog_compiler_static_works_CXX=yes
15500 fi
15501 fi
15502 $RM -r conftest*
15503 LDFLAGS="$save_LDFLAGS"
15504
15505 fi
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15507 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15508
15509 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15510 :
15511 else
15512 lt_prog_compiler_static_CXX=
15513 fi
15514
15515
15516
15517
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15519 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15520 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15521 $as_echo_n "(cached) " >&6
15522 else
15523 lt_cv_prog_compiler_c_o_CXX=no
15524 $RM -r conftest 2>/dev/null
15525 mkdir conftest
15526 cd conftest
15527 mkdir out
15528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15529
15530 lt_compiler_flag="-o out/conftest2.$ac_objext"
15531 # Insert the option either (1) after the last *FLAGS variable, or
15532 # (2) before a word containing "conftest.", or (3) at the end.
15533 # Note that $ac_compile itself does not contain backslashes and begins
15534 # with a dollar sign (not a hyphen), so the echo should work correctly.
15535 lt_compile=`echo "$ac_compile" | $SED \
15536 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15538 -e 's:$: $lt_compiler_flag:'`
15539 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15540 (eval "$lt_compile" 2>out/conftest.err)
15541 ac_status=$?
15542 cat out/conftest.err >&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15545 then
15546 # The compiler can only warn and ignore the option if not recognized
15547 # So say no if there are warnings
15548 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15549 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15550 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15551 lt_cv_prog_compiler_c_o_CXX=yes
15552 fi
15553 fi
15554 chmod u+w . 2>&5
15555 $RM conftest*
15556 # SGI C++ compiler will create directory out/ii_files/ for
15557 # template instantiation
15558 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15559 $RM out/* && rmdir out
15560 cd ..
15561 $RM -r conftest
15562 $RM conftest*
15563
15564 fi
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15566 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15567
15568
15569
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15571 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15572 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15573 $as_echo_n "(cached) " >&6
15574 else
15575 lt_cv_prog_compiler_c_o_CXX=no
15576 $RM -r conftest 2>/dev/null
15577 mkdir conftest
15578 cd conftest
15579 mkdir out
15580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15581
15582 lt_compiler_flag="-o out/conftest2.$ac_objext"
15583 # Insert the option either (1) after the last *FLAGS variable, or
15584 # (2) before a word containing "conftest.", or (3) at the end.
15585 # Note that $ac_compile itself does not contain backslashes and begins
15586 # with a dollar sign (not a hyphen), so the echo should work correctly.
15587 lt_compile=`echo "$ac_compile" | $SED \
15588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15590 -e 's:$: $lt_compiler_flag:'`
15591 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15592 (eval "$lt_compile" 2>out/conftest.err)
15593 ac_status=$?
15594 cat out/conftest.err >&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15597 then
15598 # The compiler can only warn and ignore the option if not recognized
15599 # So say no if there are warnings
15600 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15601 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15602 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15603 lt_cv_prog_compiler_c_o_CXX=yes
15604 fi
15605 fi
15606 chmod u+w . 2>&5
15607 $RM conftest*
15608 # SGI C++ compiler will create directory out/ii_files/ for
15609 # template instantiation
15610 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15611 $RM out/* && rmdir out
15612 cd ..
15613 $RM -r conftest
15614 $RM conftest*
15615
15616 fi
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15618 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15619
15620
15621
15622
15623 hard_links="nottested"
15624 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15625 # do not overwrite the value of need_locks provided by the user
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15627 $as_echo_n "checking if we can lock with hard links... " >&6; }
15628 hard_links=yes
15629 $RM conftest*
15630 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15631 touch conftest.a
15632 ln conftest.a conftest.b 2>&5 || hard_links=no
15633 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15635 $as_echo "$hard_links" >&6; }
15636 if test "$hard_links" = no; then
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15638 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15639 need_locks=warn
15640 fi
15641 else
15642 need_locks=no
15643 fi
15644
15645
15646
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15648 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15649
15650 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15651 case $host_os in
15652 aix[4-9]*)
15653 # If we're using GNU nm, then we don't want the "-C" option.
15654 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15655 # Also, AIX nm treats weak defined symbols like other global defined
15656 # symbols, whereas GNU nm marks them as "W".
15657 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15658 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'
15659 else
15660 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'
15661 fi
15662 ;;
15663 pw32*)
15664 export_symbols_cmds_CXX="$ltdll_cmds"
15665 ;;
15666 cygwin* | mingw* | cegcc*)
15667 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'
15668 ;;
15669 *)
15670 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15671 ;;
15672 esac
15673 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15674
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15676 $as_echo "$ld_shlibs_CXX" >&6; }
15677 test "$ld_shlibs_CXX" = no && can_build_shared=no
15678
15679 with_gnu_ld_CXX=$with_gnu_ld
15680
15681
15682
15683
15684
15685
15686 #
15687 # Do we need to explicitly link libc?
15688 #
15689 case "x$archive_cmds_need_lc_CXX" in
15690 x|xyes)
15691 # Assume -lc should be added
15692 archive_cmds_need_lc_CXX=yes
15693
15694 if test "$enable_shared" = yes && test "$GCC" = yes; then
15695 case $archive_cmds_CXX in
15696 *'~'*)
15697 # FIXME: we may have to deal with multi-command sequences.
15698 ;;
15699 '$CC '*)
15700 # Test whether the compiler implicitly links with -lc since on some
15701 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15702 # to ld, don't add -lc before -lgcc.
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15704 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15705 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15706 $as_echo_n "(cached) " >&6
15707 else
15708 $RM conftest*
15709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15710
15711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15712 (eval $ac_compile) 2>&5
15713 ac_status=$?
15714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15715 test $ac_status = 0; } 2>conftest.err; then
15716 soname=conftest
15717 lib=conftest
15718 libobjs=conftest.$ac_objext
15719 deplibs=
15720 wl=$lt_prog_compiler_wl_CXX
15721 pic_flag=$lt_prog_compiler_pic_CXX
15722 compiler_flags=-v
15723 linker_flags=-v
15724 verstring=
15725 output_objdir=.
15726 libname=conftest
15727 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15728 allow_undefined_flag_CXX=
15729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15730 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15731 ac_status=$?
15732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15733 test $ac_status = 0; }
15734 then
15735 lt_cv_archive_cmds_need_lc_CXX=no
15736 else
15737 lt_cv_archive_cmds_need_lc_CXX=yes
15738 fi
15739 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15740 else
15741 cat conftest.err 1>&5
15742 fi
15743 $RM conftest*
15744
15745 fi
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15747 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15748 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15749 ;;
15750 esac
15751 fi
15752 ;;
15753 esac
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
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15819 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15820
15821 library_names_spec=
15822 libname_spec='lib$name'
15823 soname_spec=
15824 shrext_cmds=".so"
15825 postinstall_cmds=
15826 postuninstall_cmds=
15827 finish_cmds=
15828 finish_eval=
15829 shlibpath_var=
15830 shlibpath_overrides_runpath=unknown
15831 version_type=none
15832 dynamic_linker="$host_os ld.so"
15833 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15834 need_lib_prefix=unknown
15835 hardcode_into_libs=no
15836
15837 # when you set need_version to no, make sure it does not cause -set_version
15838 # flags to be left without arguments
15839 need_version=unknown
15840
15841 case $host_os in
15842 aix3*)
15843 version_type=linux
15844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15845 shlibpath_var=LIBPATH
15846
15847 # AIX 3 has no versioning support, so we append a major version to the name.
15848 soname_spec='${libname}${release}${shared_ext}$major'
15849 ;;
15850
15851 aix[4-9]*)
15852 version_type=linux
15853 need_lib_prefix=no
15854 need_version=no
15855 hardcode_into_libs=yes
15856 if test "$host_cpu" = ia64; then
15857 # AIX 5 supports IA64
15858 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15859 shlibpath_var=LD_LIBRARY_PATH
15860 else
15861 # With GCC up to 2.95.x, collect2 would create an import file
15862 # for dependence libraries. The import file would start with
15863 # the line `#! .'. This would cause the generated library to
15864 # depend on `.', always an invalid library. This was fixed in
15865 # development snapshots of GCC prior to 3.0.
15866 case $host_os in
15867 aix4 | aix4.[01] | aix4.[01].*)
15868 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15869 echo ' yes '
15870 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15871 :
15872 else
15873 can_build_shared=no
15874 fi
15875 ;;
15876 esac
15877 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15878 # soname into executable. Probably we can add versioning support to
15879 # collect2, so additional links can be useful in future.
15880 if test "$aix_use_runtimelinking" = yes; then
15881 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15882 # instead of lib<name>.a to let people know that these are not
15883 # typical AIX shared libraries.
15884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15885 else
15886 # We preserve .a as extension for shared libraries through AIX4.2
15887 # and later when we are not doing run time linking.
15888 library_names_spec='${libname}${release}.a $libname.a'
15889 soname_spec='${libname}${release}${shared_ext}$major'
15890 fi
15891 shlibpath_var=LIBPATH
15892 fi
15893 ;;
15894
15895 amigaos*)
15896 case $host_cpu in
15897 powerpc)
15898 # Since July 2007 AmigaOS4 officially supports .so libraries.
15899 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15901 ;;
15902 m68k)
15903 library_names_spec='$libname.ixlibrary $libname.a'
15904 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15905 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'
15906 ;;
15907 esac
15908 ;;
15909
15910 beos*)
15911 library_names_spec='${libname}${shared_ext}'
15912 dynamic_linker="$host_os ld.so"
15913 shlibpath_var=LIBRARY_PATH
15914 ;;
15915
15916 bsdi[45]*)
15917 version_type=linux
15918 need_version=no
15919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15920 soname_spec='${libname}${release}${shared_ext}$major'
15921 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15922 shlibpath_var=LD_LIBRARY_PATH
15923 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15924 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15925 # the default ld.so.conf also contains /usr/contrib/lib and
15926 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15927 # libtool to hard-code these into programs
15928 ;;
15929
15930 cygwin* | mingw* | pw32* | cegcc*)
15931 version_type=windows
15932 shrext_cmds=".dll"
15933 need_version=no
15934 need_lib_prefix=no
15935
15936 case $GCC,$host_os in
15937 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15938 library_names_spec='$libname.dll.a'
15939 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15940 postinstall_cmds='base_file=`basename \${file}`~
15941 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15942 dldir=$destdir/`dirname \$dlpath`~
15943 test -d \$dldir || mkdir -p \$dldir~
15944 $install_prog $dir/$dlname \$dldir/$dlname~
15945 chmod a+x \$dldir/$dlname~
15946 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15947 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15948 fi'
15949 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15950 dlpath=$dir/\$dldll~
15951 $RM \$dlpath'
15952 shlibpath_overrides_runpath=yes
15953
15954 case $host_os in
15955 cygwin*)
15956 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15957 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15958
15959 ;;
15960 mingw* | cegcc*)
15961 # MinGW DLLs use traditional 'lib' prefix
15962 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15963 ;;
15964 pw32*)
15965 # pw32 DLLs use 'pw' prefix rather than 'lib'
15966 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15967 ;;
15968 esac
15969 ;;
15970
15971 *)
15972 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15973 ;;
15974 esac
15975 dynamic_linker='Win32 ld.exe'
15976 # FIXME: first we should search . and the directory the executable is in
15977 shlibpath_var=PATH
15978 ;;
15979
15980 darwin* | rhapsody*)
15981 dynamic_linker="$host_os dyld"
15982 version_type=darwin
15983 need_lib_prefix=no
15984 need_version=no
15985 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15986 soname_spec='${libname}${release}${major}$shared_ext'
15987 shlibpath_overrides_runpath=yes
15988 shlibpath_var=DYLD_LIBRARY_PATH
15989 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15990
15991 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15992 ;;
15993
15994 dgux*)
15995 version_type=linux
15996 need_lib_prefix=no
15997 need_version=no
15998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15999 soname_spec='${libname}${release}${shared_ext}$major'
16000 shlibpath_var=LD_LIBRARY_PATH
16001 ;;
16002
16003 freebsd1*)
16004 dynamic_linker=no
16005 ;;
16006
16007 freebsd* | dragonfly*)
16008 # DragonFly does not have aout. When/if they implement a new
16009 # versioning mechanism, adjust this.
16010 if test -x /usr/bin/objformat; then
16011 objformat=`/usr/bin/objformat`
16012 else
16013 case $host_os in
16014 freebsd[123]*) objformat=aout ;;
16015 *) objformat=elf ;;
16016 esac
16017 fi
16018 version_type=freebsd-$objformat
16019 case $version_type in
16020 freebsd-elf*)
16021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16022 need_version=no
16023 need_lib_prefix=no
16024 ;;
16025 freebsd-*)
16026 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16027 need_version=yes
16028 ;;
16029 esac
16030 shlibpath_var=LD_LIBRARY_PATH
16031 case $host_os in
16032 freebsd2*)
16033 shlibpath_overrides_runpath=yes
16034 ;;
16035 freebsd3.[01]* | freebsdelf3.[01]*)
16036 shlibpath_overrides_runpath=yes
16037 hardcode_into_libs=yes
16038 ;;
16039 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16040 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16041 shlibpath_overrides_runpath=no
16042 hardcode_into_libs=yes
16043 ;;
16044 *) # from 4.6 on, and DragonFly
16045 shlibpath_overrides_runpath=yes
16046 hardcode_into_libs=yes
16047 ;;
16048 esac
16049 ;;
16050
16051 gnu*)
16052 version_type=linux
16053 need_lib_prefix=no
16054 need_version=no
16055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16056 soname_spec='${libname}${release}${shared_ext}$major'
16057 shlibpath_var=LD_LIBRARY_PATH
16058 hardcode_into_libs=yes
16059 ;;
16060
16061 haiku*)
16062 version_type=linux
16063 need_lib_prefix=no
16064 need_version=no
16065 dynamic_linker="$host_os runtime_loader"
16066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16067 soname_spec='${libname}${release}${shared_ext}$major'
16068 shlibpath_var=LIBRARY_PATH
16069 shlibpath_overrides_runpath=yes
16070 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16071 hardcode_into_libs=yes
16072 ;;
16073
16074 hpux9* | hpux10* | hpux11*)
16075 # Give a soname corresponding to the major version so that dld.sl refuses to
16076 # link against other versions.
16077 version_type=sunos
16078 need_lib_prefix=no
16079 need_version=no
16080 case $host_cpu in
16081 ia64*)
16082 shrext_cmds='.so'
16083 hardcode_into_libs=yes
16084 dynamic_linker="$host_os dld.so"
16085 shlibpath_var=LD_LIBRARY_PATH
16086 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16088 soname_spec='${libname}${release}${shared_ext}$major'
16089 if test "X$HPUX_IA64_MODE" = X32; then
16090 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16091 else
16092 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16093 fi
16094 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16095 ;;
16096 hppa*64*)
16097 shrext_cmds='.sl'
16098 hardcode_into_libs=yes
16099 dynamic_linker="$host_os dld.sl"
16100 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16103 soname_spec='${libname}${release}${shared_ext}$major'
16104 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16105 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16106 ;;
16107 *)
16108 shrext_cmds='.sl'
16109 dynamic_linker="$host_os dld.sl"
16110 shlibpath_var=SHLIB_PATH
16111 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
16115 esac
16116 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16117 postinstall_cmds='chmod 555 $lib'
16118 # or fails outright, so override atomically:
16119 install_override_mode=555
16120 ;;
16121
16122 interix[3-9]*)
16123 version_type=linux
16124 need_lib_prefix=no
16125 need_version=no
16126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16127 soname_spec='${libname}${release}${shared_ext}$major'
16128 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16129 shlibpath_var=LD_LIBRARY_PATH
16130 shlibpath_overrides_runpath=no
16131 hardcode_into_libs=yes
16132 ;;
16133
16134 irix5* | irix6* | nonstopux*)
16135 case $host_os in
16136 nonstopux*) version_type=nonstopux ;;
16137 *)
16138 if test "$lt_cv_prog_gnu_ld" = yes; then
16139 version_type=linux
16140 else
16141 version_type=irix
16142 fi ;;
16143 esac
16144 need_lib_prefix=no
16145 need_version=no
16146 soname_spec='${libname}${release}${shared_ext}$major'
16147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16148 case $host_os in
16149 irix5* | nonstopux*)
16150 libsuff= shlibsuff=
16151 ;;
16152 *)
16153 case $LD in # libtool.m4 will add one of these switches to LD
16154 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16155 libsuff= shlibsuff= libmagic=32-bit;;
16156 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16157 libsuff=32 shlibsuff=N32 libmagic=N32;;
16158 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16159 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16160 *) libsuff= shlibsuff= libmagic=never-match;;
16161 esac
16162 ;;
16163 esac
16164 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16165 shlibpath_overrides_runpath=no
16166 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16167 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16168 hardcode_into_libs=yes
16169 ;;
16170
16171 # No shared lib support for Linux oldld, aout, or coff.
16172 linux*oldld* | linux*aout* | linux*coff*)
16173 dynamic_linker=no
16174 ;;
16175
16176 # This must be Linux ELF.
16177 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16178 version_type=linux
16179 need_lib_prefix=no
16180 need_version=no
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16182 soname_spec='${libname}${release}${shared_ext}$major'
16183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16184 shlibpath_var=LD_LIBRARY_PATH
16185 shlibpath_overrides_runpath=no
16186
16187 # Some binutils ld are patched to set DT_RUNPATH
16188 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16189 $as_echo_n "(cached) " >&6
16190 else
16191 lt_cv_shlibpath_overrides_runpath=no
16192 save_LDFLAGS=$LDFLAGS
16193 save_libdir=$libdir
16194 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16195 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16196 if test x$gcc_no_link = xyes; then
16197 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16198 fi
16199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200 /* end confdefs.h. */
16201
16202 int
16203 main ()
16204 {
16205
16206 ;
16207 return 0;
16208 }
16209 _ACEOF
16210 if ac_fn_cxx_try_link "$LINENO"; then :
16211 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16212 lt_cv_shlibpath_overrides_runpath=yes
16213 fi
16214 fi
16215 rm -f core conftest.err conftest.$ac_objext \
16216 conftest$ac_exeext conftest.$ac_ext
16217 LDFLAGS=$save_LDFLAGS
16218 libdir=$save_libdir
16219
16220 fi
16221
16222 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16223
16224 # This implies no fast_install, which is unacceptable.
16225 # Some rework will be needed to allow for fast_install
16226 # before this can be enabled.
16227 hardcode_into_libs=yes
16228
16229 # Append ld.so.conf contents to the search path
16230 if test -f /etc/ld.so.conf; then
16231 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' ' '`
16232 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16233 fi
16234
16235 # We used to test for /lib/ld.so.1 and disable shared libraries on
16236 # powerpc, because MkLinux only supported shared libraries with the
16237 # GNU dynamic linker. Since this was broken with cross compilers,
16238 # most powerpc-linux boxes support dynamic linking these days and
16239 # people can always --disable-shared, the test was removed, and we
16240 # assume the GNU/Linux dynamic linker is in use.
16241 dynamic_linker='GNU/Linux ld.so'
16242 ;;
16243
16244 netbsd*)
16245 version_type=sunos
16246 need_lib_prefix=no
16247 need_version=no
16248 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16251 dynamic_linker='NetBSD (a.out) ld.so'
16252 else
16253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16254 soname_spec='${libname}${release}${shared_ext}$major'
16255 dynamic_linker='NetBSD ld.elf_so'
16256 fi
16257 shlibpath_var=LD_LIBRARY_PATH
16258 shlibpath_overrides_runpath=yes
16259 hardcode_into_libs=yes
16260 ;;
16261
16262 newsos6)
16263 version_type=linux
16264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16265 shlibpath_var=LD_LIBRARY_PATH
16266 shlibpath_overrides_runpath=yes
16267 ;;
16268
16269 *nto* | *qnx*)
16270 version_type=qnx
16271 need_lib_prefix=no
16272 need_version=no
16273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274 soname_spec='${libname}${release}${shared_ext}$major'
16275 shlibpath_var=LD_LIBRARY_PATH
16276 shlibpath_overrides_runpath=no
16277 hardcode_into_libs=yes
16278 dynamic_linker='ldqnx.so'
16279 ;;
16280
16281 openbsd*)
16282 version_type=sunos
16283 sys_lib_dlsearch_path_spec="/usr/lib"
16284 need_lib_prefix=no
16285 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16286 case $host_os in
16287 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16288 *) need_version=no ;;
16289 esac
16290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16292 shlibpath_var=LD_LIBRARY_PATH
16293 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16294 case $host_os in
16295 openbsd2.[89] | openbsd2.[89].*)
16296 shlibpath_overrides_runpath=no
16297 ;;
16298 *)
16299 shlibpath_overrides_runpath=yes
16300 ;;
16301 esac
16302 else
16303 shlibpath_overrides_runpath=yes
16304 fi
16305 ;;
16306
16307 os2*)
16308 libname_spec='$name'
16309 shrext_cmds=".dll"
16310 need_lib_prefix=no
16311 library_names_spec='$libname${shared_ext} $libname.a'
16312 dynamic_linker='OS/2 ld.exe'
16313 shlibpath_var=LIBPATH
16314 ;;
16315
16316 osf3* | osf4* | osf5*)
16317 version_type=osf
16318 need_lib_prefix=no
16319 need_version=no
16320 soname_spec='${libname}${release}${shared_ext}$major'
16321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16322 shlibpath_var=LD_LIBRARY_PATH
16323 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16324 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16325 ;;
16326
16327 rdos*)
16328 dynamic_linker=no
16329 ;;
16330
16331 solaris*)
16332 version_type=linux
16333 need_lib_prefix=no
16334 need_version=no
16335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16336 soname_spec='${libname}${release}${shared_ext}$major'
16337 shlibpath_var=LD_LIBRARY_PATH
16338 shlibpath_overrides_runpath=yes
16339 hardcode_into_libs=yes
16340 # ldd complains unless libraries are executable
16341 postinstall_cmds='chmod +x $lib'
16342 ;;
16343
16344 sunos4*)
16345 version_type=sunos
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16347 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16348 shlibpath_var=LD_LIBRARY_PATH
16349 shlibpath_overrides_runpath=yes
16350 if test "$with_gnu_ld" = yes; then
16351 need_lib_prefix=no
16352 fi
16353 need_version=yes
16354 ;;
16355
16356 sysv4 | sysv4.3*)
16357 version_type=linux
16358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16359 soname_spec='${libname}${release}${shared_ext}$major'
16360 shlibpath_var=LD_LIBRARY_PATH
16361 case $host_vendor in
16362 sni)
16363 shlibpath_overrides_runpath=no
16364 need_lib_prefix=no
16365 runpath_var=LD_RUN_PATH
16366 ;;
16367 siemens)
16368 need_lib_prefix=no
16369 ;;
16370 motorola)
16371 need_lib_prefix=no
16372 need_version=no
16373 shlibpath_overrides_runpath=no
16374 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16375 ;;
16376 esac
16377 ;;
16378
16379 sysv4*MP*)
16380 if test -d /usr/nec ;then
16381 version_type=linux
16382 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16383 soname_spec='$libname${shared_ext}.$major'
16384 shlibpath_var=LD_LIBRARY_PATH
16385 fi
16386 ;;
16387
16388 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16389 version_type=freebsd-elf
16390 need_lib_prefix=no
16391 need_version=no
16392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16393 soname_spec='${libname}${release}${shared_ext}$major'
16394 shlibpath_var=LD_LIBRARY_PATH
16395 shlibpath_overrides_runpath=yes
16396 hardcode_into_libs=yes
16397 if test "$with_gnu_ld" = yes; then
16398 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16399 else
16400 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16401 case $host_os in
16402 sco3.2v5*)
16403 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16404 ;;
16405 esac
16406 fi
16407 sys_lib_dlsearch_path_spec='/usr/lib'
16408 ;;
16409
16410 tpf*)
16411 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16412 version_type=linux
16413 need_lib_prefix=no
16414 need_version=no
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416 shlibpath_var=LD_LIBRARY_PATH
16417 shlibpath_overrides_runpath=no
16418 hardcode_into_libs=yes
16419 ;;
16420
16421 uts4*)
16422 version_type=linux
16423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16424 soname_spec='${libname}${release}${shared_ext}$major'
16425 shlibpath_var=LD_LIBRARY_PATH
16426 ;;
16427
16428 *)
16429 dynamic_linker=no
16430 ;;
16431 esac
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16433 $as_echo "$dynamic_linker" >&6; }
16434 test "$dynamic_linker" = no && can_build_shared=no
16435
16436 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16437 if test "$GCC" = yes; then
16438 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16439 fi
16440
16441 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16442 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16443 fi
16444 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16445 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16446 fi
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
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16486 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16487 hardcode_action_CXX=
16488 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16489 test -n "$runpath_var_CXX" ||
16490 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16491
16492 # We can hardcode non-existent directories.
16493 if test "$hardcode_direct_CXX" != no &&
16494 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16495 # have to relink, otherwise we might link with an installed library
16496 # when we should be linking with a yet-to-be-installed one
16497 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16498 test "$hardcode_minus_L_CXX" != no; then
16499 # Linking always hardcodes the temporary library directory.
16500 hardcode_action_CXX=relink
16501 else
16502 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16503 hardcode_action_CXX=immediate
16504 fi
16505 else
16506 # We cannot hardcode anything, or else we can only hardcode existing
16507 # directories.
16508 hardcode_action_CXX=unsupported
16509 fi
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16511 $as_echo "$hardcode_action_CXX" >&6; }
16512
16513 if test "$hardcode_action_CXX" = relink ||
16514 test "$inherit_rpath_CXX" = yes; then
16515 # Fast installation is not supported
16516 enable_fast_install=no
16517 elif test "$shlibpath_overrides_runpath" = yes ||
16518 test "$enable_shared" = no; then
16519 # Fast installation is not necessary
16520 enable_fast_install=needless
16521 fi
16522
16523
16524
16525
16526
16527
16528
16529 fi # test -n "$compiler"
16530
16531 CC=$lt_save_CC
16532 LDCXX=$LD
16533 LD=$lt_save_LD
16534 GCC=$lt_save_GCC
16535 with_gnu_ld=$lt_save_with_gnu_ld
16536 lt_cv_path_LDCXX=$lt_cv_path_LD
16537 lt_cv_path_LD=$lt_save_path_LD
16538 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16539 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16540 fi # test "$_lt_caught_CXX_error" != yes
16541
16542 ac_ext=c
16543 ac_cpp='$CPP $CPPFLAGS'
16544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16547
16548
16549
16550 # Handle -Werror default case.
16551 if test "$ENABLE_WERROR" = default; then
16552 case "$host_os" in
16553 *linux*)
16554 if test "$GCC" = yes; then
16555 ENABLE_WERROR=yes
16556 fi
16557 ;;
16558 esac
16559 fi
16560
16561 if test "x${COMPILE_COLLECTIONS}" = xyes; then
16562 # Extract the first word of "perl", so it can be a program name with args.
16563 set dummy perl; ac_word=$2
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16565 $as_echo_n "checking for $ac_word... " >&6; }
16566 if test "${ac_cv_path_PERL+set}" = set; then :
16567 $as_echo_n "(cached) " >&6
16568 else
16569 case $PERL in
16570 [\\/]* | ?:[\\/]*)
16571 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
16572 ;;
16573 *)
16574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16575 for as_dir in $PATH
16576 do
16577 IFS=$as_save_IFS
16578 test -z "$as_dir" && as_dir=.
16579 for ac_exec_ext in '' $ac_executable_extensions; do
16580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16581 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
16582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16583 break 2
16584 fi
16585 done
16586 done
16587 IFS=$as_save_IFS
16588
16589 ;;
16590 esac
16591 fi
16592 PERL=$ac_cv_path_PERL
16593 if test -n "$PERL"; then
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
16595 $as_echo "$PERL" >&6; }
16596 else
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16598 $as_echo "no" >&6; }
16599 fi
16600
16601
16602
16603
16604 ac_config_files="$ac_config_files lib/mkcollections.pl"
16605
16606 ac_config_commands="$ac_config_commands mkcollections.pl"
16607
16608 fi
16609
16610 if test "x${COMPILE_JNI}" = xyes; then
16611
16612
16613
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((,,))" >&5
16615 $as_echo_n "checking __attribute__((,,))... " >&6; }
16616 if test "${gcc_cv_c_gcc_attribute_supported+set}" = set; then :
16617 $as_echo_n "(cached) " >&6
16618 else
16619
16620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16621 /* end confdefs.h. */
16622
16623 int
16624 main ()
16625 {
16626 extern int testfunction(int x) __attribute__((,,))
16627 ;
16628 return 0;
16629 }
16630 _ACEOF
16631 if ac_fn_c_try_compile "$LINENO"; then :
16632 gcc_cv_c_gcc_attribute_supported=yes
16633 else
16634 gcc_cv_c_gcc_attribute_supported=no
16635 fi
16636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16637
16638 fi
16639
16640 if test "x$gcc_cv_c_gcc_attribute_supported" = xyes; then
16641 true
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16643 $as_echo "yes" >&6; }
16644
16645 $as_echo "#define HAVE_GNUC25_ATTRIB /**/" >>confdefs.h
16646
16647
16648 else
16649 true
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16651 $as_echo "no" >&6; }
16652
16653 fi
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((unused))" >&5
16664 $as_echo_n "checking __attribute__((unused))... " >&6; }
16665 if test "${gcc_cv_c_gcc_attribute_unused+set}" = set; then :
16666 $as_echo_n "(cached) " >&6
16667 else
16668
16669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16670 /* end confdefs.h. */
16671
16672 int
16673 main ()
16674 {
16675 extern int testfunction(int x) __attribute__((unused))
16676 ;
16677 return 0;
16678 }
16679 _ACEOF
16680 if ac_fn_c_try_compile "$LINENO"; then :
16681 gcc_cv_c_gcc_attribute_unused=yes
16682 else
16683 gcc_cv_c_gcc_attribute_unused=no
16684 fi
16685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16686
16687 fi
16688
16689 if test "x$gcc_cv_c_gcc_attribute_unused" = xyes; then
16690 true
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16692 $as_echo "yes" >&6; }
16693
16694 $as_echo "#define HAVE_GNUC25_UNUSED /**/" >>confdefs.h
16695
16696
16697 else
16698 true
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16700 $as_echo "no" >&6; }
16701
16702 fi
16703
16704
16705
16706
16707
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16709 $as_echo_n "checking for ANSI C header files... " >&6; }
16710 if test "${ac_cv_header_stdc+set}" = set; then :
16711 $as_echo_n "(cached) " >&6
16712 else
16713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16714 /* end confdefs.h. */
16715 #include <stdlib.h>
16716 #include <stdarg.h>
16717 #include <string.h>
16718 #include <float.h>
16719
16720 int
16721 main ()
16722 {
16723
16724 ;
16725 return 0;
16726 }
16727 _ACEOF
16728 if ac_fn_c_try_compile "$LINENO"; then :
16729 ac_cv_header_stdc=yes
16730 else
16731 ac_cv_header_stdc=no
16732 fi
16733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16734
16735 if test $ac_cv_header_stdc = yes; then
16736 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16738 /* end confdefs.h. */
16739 #include <string.h>
16740
16741 _ACEOF
16742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16743 $EGREP "memchr" >/dev/null 2>&1; then :
16744
16745 else
16746 ac_cv_header_stdc=no
16747 fi
16748 rm -f conftest*
16749
16750 fi
16751
16752 if test $ac_cv_header_stdc = yes; then
16753 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16755 /* end confdefs.h. */
16756 #include <stdlib.h>
16757
16758 _ACEOF
16759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16760 $EGREP "free" >/dev/null 2>&1; then :
16761
16762 else
16763 ac_cv_header_stdc=no
16764 fi
16765 rm -f conftest*
16766
16767 fi
16768
16769 if test $ac_cv_header_stdc = yes; then
16770 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16771 if test "$cross_compiling" = yes; then :
16772 :
16773 else
16774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16775 /* end confdefs.h. */
16776 #include <ctype.h>
16777 #include <stdlib.h>
16778 #if ((' ' & 0x0FF) == 0x020)
16779 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16780 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16781 #else
16782 # define ISLOWER(c) \
16783 (('a' <= (c) && (c) <= 'i') \
16784 || ('j' <= (c) && (c) <= 'r') \
16785 || ('s' <= (c) && (c) <= 'z'))
16786 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16787 #endif
16788
16789 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16790 int
16791 main ()
16792 {
16793 int i;
16794 for (i = 0; i < 256; i++)
16795 if (XOR (islower (i), ISLOWER (i))
16796 || toupper (i) != TOUPPER (i))
16797 return 2;
16798 return 0;
16799 }
16800 _ACEOF
16801 if ac_fn_c_try_run "$LINENO"; then :
16802
16803 else
16804 ac_cv_header_stdc=no
16805 fi
16806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16807 conftest.$ac_objext conftest.beam conftest.$ac_ext
16808 fi
16809
16810 fi
16811 fi
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16813 $as_echo "$ac_cv_header_stdc" >&6; }
16814 if test $ac_cv_header_stdc = yes; then
16815
16816 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16817
16818 fi
16819
16820
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16822 $as_echo_n "checking size of void *... " >&6; }
16823 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16824 $as_echo_n "(cached) " >&6
16825 else
16826 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
16827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16828 /* end confdefs.h. */
16829 #include "confdefs.h"
16830 #include <sys/types.h>
16831
16832
16833 int
16834 main ()
16835 {
16836 switch (0) case 0: case (sizeof (void *) == $ac_size):;
16837 ;
16838 return 0;
16839 }
16840 _ACEOF
16841 if ac_fn_c_try_compile "$LINENO"; then :
16842 ac_cv_sizeof_void_p=$ac_size
16843 fi
16844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16845 if test x$ac_cv_sizeof_void_p != x ; then break; fi
16846 done
16847
16848 fi
16849
16850 if test x$ac_cv_sizeof_void_p = x ; then
16851 as_fn_error "cannot determine a size for void *" "$LINENO" 5
16852 fi
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16854 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16855
16856 cat >>confdefs.h <<_ACEOF
16857 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16858 _ACEOF
16859
16860
16861
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16863 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16864 if test "${ac_cv_c_bigendian+set}" = set; then :
16865 $as_echo_n "(cached) " >&6
16866 else
16867 ac_cv_c_bigendian=unknown
16868 # See if sys/param.h defines the BYTE_ORDER macro.
16869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16870 /* end confdefs.h. */
16871 #include <sys/types.h>
16872 #include <sys/param.h>
16873 int
16874 main ()
16875 {
16876
16877 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16878 bogus endian macros
16879 #endif
16880 ;
16881 return 0;
16882 }
16883 _ACEOF
16884 if ac_fn_c_try_compile "$LINENO"; then :
16885 # It does; now see whether it defined to BIG_ENDIAN or not.
16886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16887 /* end confdefs.h. */
16888 #include <sys/types.h>
16889 #include <sys/param.h>
16890 int
16891 main ()
16892 {
16893
16894 #if BYTE_ORDER != BIG_ENDIAN
16895 not big endian
16896 #endif
16897 ;
16898 return 0;
16899 }
16900 _ACEOF
16901 if ac_fn_c_try_compile "$LINENO"; then :
16902 ac_cv_c_bigendian=yes
16903 else
16904 ac_cv_c_bigendian=no
16905 fi
16906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16907 fi
16908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16909 if test $ac_cv_c_bigendian = unknown; then
16910 if test "$cross_compiling" = yes; then :
16911 echo $ac_n "cross-compiling... " 2>&6
16912 else
16913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16914 /* end confdefs.h. */
16915 main () {
16916 /* Are we little or big endian? From Harbison&Steele. */
16917 union
16918 {
16919 long l;
16920 char c[sizeof (long)];
16921 } u;
16922 u.l = 1;
16923 exit (u.c[sizeof (long) - 1] == 1);
16924 }
16925 _ACEOF
16926 if ac_fn_c_try_run "$LINENO"; then :
16927 ac_cv_c_bigendian=no
16928 else
16929 ac_cv_c_bigendian=yes
16930 fi
16931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16932 conftest.$ac_objext conftest.beam conftest.$ac_ext
16933 fi
16934
16935 fi
16936 fi
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16938 $as_echo "$ac_cv_c_bigendian" >&6; }
16939 if test $ac_cv_c_bigendian = unknown; then
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
16941 $as_echo_n "checking to probe for byte ordering... " >&6; }
16942
16943 cat >conftest.c <<EOF
16944 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16945 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16946 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
16947 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16948 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16949 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
16950 int main() { _ascii (); _ebcdic (); return 0; }
16951 EOF
16952 if test -f conftest.c ; then
16953 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
16954 if test `grep -l BIGenDianSyS conftest.o` ; then
16955 echo $ac_n ' big endian probe OK, ' 1>&6
16956 ac_cv_c_bigendian=yes
16957 fi
16958 if test `grep -l LiTTleEnDian conftest.o` ; then
16959 echo $ac_n ' little endian probe OK, ' 1>&6
16960 if test $ac_cv_c_bigendian = yes ; then
16961 ac_cv_c_bigendian=unknown;
16962 else
16963 ac_cv_c_bigendian=no
16964 fi
16965 fi
16966 echo $ac_n 'guessing bigendian ... ' >&6
16967 fi
16968 fi
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16970 $as_echo "$ac_cv_c_bigendian" >&6; }
16971 fi
16972 if test $ac_cv_c_bigendian = yes; then
16973
16974 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16975
16976
16977 $as_echo "#define HOST_WORDS_BIG_ENDIAN 1" >>confdefs.h
16978
16979 BYTEORDER=4321
16980 else
16981 BYTEORDER=1234
16982 fi
16983
16984 cat >>confdefs.h <<_ACEOF
16985 #define BYTEORDER $BYTEORDER
16986 _ACEOF
16987
16988 if test $ac_cv_c_bigendian = unknown; then
16989 as_fn_error "unknown endianess - sorry, please pre-set ac_cv_c_bigendian" "$LINENO" 5
16990 fi
16991
16992
16993 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
16994 asm/ioctls.h \
16995 inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
16996 sys/time.h \
16997 sys/select.h \
16998 crt_externs.h \
16999 fcntl.h \
17000 sys/mman.h \
17001 magic.h \
17002 sys/event.h sys/epoll.h \
17003 ifaddrs.h \
17004 netinet/in_systm.h netinet/ip.h net/if.h \
17005 sys/loadavg.h sys/sockio.h
17006 do :
17007 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17008 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17009 eval as_val=\$$as_ac_Header
17010 if test "x$as_val" = x""yes; then :
17011 cat >>confdefs.h <<_ACEOF
17012 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17013 _ACEOF
17014
17015 fi
17016
17017 done
17018
17019
17020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17021 /* end confdefs.h. */
17022 #include <stdint.h>
17023
17024 _ACEOF
17025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17026 $EGREP "uint32_t" >/dev/null 2>&1; then :
17027
17028 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
17029
17030 fi
17031 rm -f conftest*
17032
17033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17034 /* end confdefs.h. */
17035 #include <inttypes.h>
17036
17037 _ACEOF
17038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17039 $EGREP "uint32_t" >/dev/null 2>&1; then :
17040
17041 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
17042
17043 fi
17044 rm -f conftest*
17045
17046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17047 /* end confdefs.h. */
17048 #include <sys/types.h>
17049
17050 _ACEOF
17051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17052 $EGREP "u_int32_t" >/dev/null 2>&1; then :
17053
17054 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
17055
17056 fi
17057 rm -f conftest*
17058
17059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060 /* end confdefs.h. */
17061 #include <sys/config.h>
17062
17063 _ACEOF
17064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17065 $EGREP "u_int32_t" >/dev/null 2>&1; then :
17066
17067 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
17068
17069 fi
17070 rm -f conftest*
17071
17072
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
17074 $as_echo_n "checking for library containing inet_pton... " >&6; }
17075 if test "${ac_cv_search_inet_pton+set}" = set; then :
17076 $as_echo_n "(cached) " >&6
17077 else
17078 ac_func_search_save_LIBS=$LIBS
17079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17080 /* end confdefs.h. */
17081
17082 /* Override any GCC internal prototype to avoid an error.
17083 Use char because int might match the return type of a GCC
17084 builtin and then its argument prototype would still apply. */
17085 #ifdef __cplusplus
17086 extern "C"
17087 #endif
17088 char inet_pton ();
17089 int
17090 main ()
17091 {
17092 return inet_pton ();
17093 ;
17094 return 0;
17095 }
17096 _ACEOF
17097 for ac_lib in '' nsl; do
17098 if test -z "$ac_lib"; then
17099 ac_res="none required"
17100 else
17101 ac_res=-l$ac_lib
17102 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17103 fi
17104 if test x$gcc_no_link = xyes; then
17105 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17106 fi
17107 if ac_fn_c_try_link "$LINENO"; then :
17108 ac_cv_search_inet_pton=$ac_res
17109 fi
17110 rm -f core conftest.err conftest.$ac_objext \
17111 conftest$ac_exeext
17112 if test "${ac_cv_search_inet_pton+set}" = set; then :
17113 break
17114 fi
17115 done
17116 if test "${ac_cv_search_inet_pton+set}" = set; then :
17117
17118 else
17119 ac_cv_search_inet_pton=no
17120 fi
17121 rm conftest.$ac_ext
17122 LIBS=$ac_func_search_save_LIBS
17123 fi
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
17125 $as_echo "$ac_cv_search_inet_pton" >&6; }
17126 ac_res=$ac_cv_search_inet_pton
17127 if test "$ac_res" != no; then :
17128 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17129
17130 fi
17131
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
17133 $as_echo_n "checking for gethostname in -lsocket... " >&6; }
17134 if test "${ac_cv_lib_socket_gethostname+set}" = set; then :
17135 $as_echo_n "(cached) " >&6
17136 else
17137 ac_check_lib_save_LIBS=$LIBS
17138 LIBS="-lsocket $LIBS"
17139 if test x$gcc_no_link = xyes; then
17140 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17141 fi
17142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17143 /* end confdefs.h. */
17144
17145 /* Override any GCC internal prototype to avoid an error.
17146 Use char because int might match the return type of a GCC
17147 builtin and then its argument prototype would still apply. */
17148 #ifdef __cplusplus
17149 extern "C"
17150 #endif
17151 char gethostname ();
17152 int
17153 main ()
17154 {
17155 return gethostname ();
17156 ;
17157 return 0;
17158 }
17159 _ACEOF
17160 if ac_fn_c_try_link "$LINENO"; then :
17161 ac_cv_lib_socket_gethostname=yes
17162 else
17163 ac_cv_lib_socket_gethostname=no
17164 fi
17165 rm -f core conftest.err conftest.$ac_objext \
17166 conftest$ac_exeext conftest.$ac_ext
17167 LIBS=$ac_check_lib_save_LIBS
17168 fi
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
17170 $as_echo "$ac_cv_lib_socket_gethostname" >&6; }
17171 if test "x$ac_cv_lib_socket_gethostname" = x""yes; then :
17172 cat >>confdefs.h <<_ACEOF
17173 #define HAVE_LIBSOCKET 1
17174 _ACEOF
17175
17176 LIBS="-lsocket $LIBS"
17177
17178 fi
17179
17180 for ac_func in ftruncate fsync select \
17181 gethostname socket strerror fork pipe execve open close \
17182 lseek fstat read readv write writev htonl memset htons connect \
17183 getsockname getpeername bind listen accept \
17184 recvfrom send sendto setsockopt getsockopt time mktime \
17185 gethostbyname_r localtime_r \
17186 strerror_r \
17187 fcntl \
17188 statvfs \
17189 mmap munmap mincore msync madvise getpagesize sysconf \
17190 lstat readlink \
17191 inet_aton inet_addr inet_pton \
17192 getifaddrs kqueue kevent epoll_create \
17193 getloadavg
17194 do :
17195 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17196 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17197 eval as_val=\$$as_ac_var
17198 if test "x$as_val" = x""yes; then :
17199 cat >>confdefs.h <<_ACEOF
17200 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17201 _ACEOF
17202
17203 fi
17204 done
17205
17206
17207 LIBMAGIC=
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
17209 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
17210 if test "${ac_cv_lib_magic_magic_open+set}" = set; then :
17211 $as_echo_n "(cached) " >&6
17212 else
17213 ac_check_lib_save_LIBS=$LIBS
17214 LIBS="-lmagic $LIBS"
17215 if test x$gcc_no_link = xyes; then
17216 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17217 fi
17218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17219 /* end confdefs.h. */
17220
17221 /* Override any GCC internal prototype to avoid an error.
17222 Use char because int might match the return type of a GCC
17223 builtin and then its argument prototype would still apply. */
17224 #ifdef __cplusplus
17225 extern "C"
17226 #endif
17227 char magic_open ();
17228 int
17229 main ()
17230 {
17231 return magic_open ();
17232 ;
17233 return 0;
17234 }
17235 _ACEOF
17236 if ac_fn_c_try_link "$LINENO"; then :
17237 ac_cv_lib_magic_magic_open=yes
17238 else
17239 ac_cv_lib_magic_magic_open=no
17240 fi
17241 rm -f core conftest.err conftest.$ac_objext \
17242 conftest$ac_exeext conftest.$ac_ext
17243 LIBS=$ac_check_lib_save_LIBS
17244 fi
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
17246 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
17247 if test "x$ac_cv_lib_magic_magic_open" = x""yes; then :
17248 LIBMAGIC=-lmagic
17249 fi
17250
17251
17252
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
17254 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
17255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256 /* end confdefs.h. */
17257 #include <netinet/in.h>
17258 int
17259 main ()
17260 {
17261 struct sockaddr_in6 addr6;
17262 ;
17263 return 0;
17264 }
17265 _ACEOF
17266 if ac_fn_c_try_compile "$LINENO"; then :
17267
17268 $as_echo "#define HAVE_INET6 1" >>confdefs.h
17269
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17271 $as_echo "yes" >&6; }
17272 else
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17274 $as_echo "no" >&6; }
17275 fi
17276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17277
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17279 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17280 if test "${ac_cv_header_time+set}" = set; then :
17281 $as_echo_n "(cached) " >&6
17282 else
17283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17284 /* end confdefs.h. */
17285 #include <sys/types.h>
17286 #include <sys/time.h>
17287 #include <time.h>
17288
17289 int
17290 main ()
17291 {
17292 if ((struct tm *) 0)
17293 return 0;
17294 ;
17295 return 0;
17296 }
17297 _ACEOF
17298 if ac_fn_c_try_compile "$LINENO"; then :
17299 ac_cv_header_time=yes
17300 else
17301 ac_cv_header_time=no
17302 fi
17303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17304 fi
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17306 $as_echo "$ac_cv_header_time" >&6; }
17307 if test $ac_cv_header_time = yes; then
17308
17309 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17310
17311 fi
17312
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17314 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17315 if test "${ac_cv_struct_tm+set}" = set; then :
17316 $as_echo_n "(cached) " >&6
17317 else
17318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17319 /* end confdefs.h. */
17320 #include <sys/types.h>
17321 #include <time.h>
17322
17323 int
17324 main ()
17325 {
17326 struct tm tm;
17327 int *p = &tm.tm_sec;
17328 return !p;
17329 ;
17330 return 0;
17331 }
17332 _ACEOF
17333 if ac_fn_c_try_compile "$LINENO"; then :
17334 ac_cv_struct_tm=time.h
17335 else
17336 ac_cv_struct_tm=sys/time.h
17337 fi
17338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17339 fi
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17341 $as_echo "$ac_cv_struct_tm" >&6; }
17342 if test $ac_cv_struct_tm = sys/time.h; then
17343
17344 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17345
17346 fi
17347
17348 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
17349 #include <$ac_cv_struct_tm>
17350
17351 "
17352 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
17353
17354 cat >>confdefs.h <<_ACEOF
17355 #define HAVE_STRUCT_TM_TM_ZONE 1
17356 _ACEOF
17357
17358
17359 fi
17360
17361 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17362
17363 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
17364
17365 else
17366 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
17367 "
17368 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
17369 ac_have_decl=1
17370 else
17371 ac_have_decl=0
17372 fi
17373
17374 cat >>confdefs.h <<_ACEOF
17375 #define HAVE_DECL_TZNAME $ac_have_decl
17376 _ACEOF
17377
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
17379 $as_echo_n "checking for tzname... " >&6; }
17380 if test "${ac_cv_var_tzname+set}" = set; then :
17381 $as_echo_n "(cached) " >&6
17382 else
17383 if test x$gcc_no_link = xyes; then
17384 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17385 fi
17386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17387 /* end confdefs.h. */
17388 #include <time.h>
17389 #if !HAVE_DECL_TZNAME
17390 extern char *tzname[];
17391 #endif
17392
17393 int
17394 main ()
17395 {
17396 return tzname[0][0];
17397 ;
17398 return 0;
17399 }
17400 _ACEOF
17401 if ac_fn_c_try_link "$LINENO"; then :
17402 ac_cv_var_tzname=yes
17403 else
17404 ac_cv_var_tzname=no
17405 fi
17406 rm -f core conftest.err conftest.$ac_objext \
17407 conftest$ac_exeext conftest.$ac_ext
17408 fi
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
17410 $as_echo "$ac_cv_var_tzname" >&6; }
17411 if test $ac_cv_var_tzname = yes; then
17412
17413 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
17414
17415 fi
17416 fi
17417
17418
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
17420 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
17421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17422 /* end confdefs.h. */
17423 #include <time.h>
17424 int
17425 main ()
17426 {
17427 struct tm tim; tim.tm_gmtoff = 0;
17428 ;
17429 return 0;
17430 }
17431 _ACEOF
17432 if ac_fn_c_try_compile "$LINENO"; then :
17433
17434 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
17435
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17437 $as_echo "yes" >&6; }
17438 else
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17440 $as_echo "no" >&6; }
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
17442 $as_echo_n "checking for global timezone variable... " >&6; }
17443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17444 /* end confdefs.h. */
17445 #include <time.h>
17446 int
17447 main ()
17448 {
17449 void i(){long z2 = 2*timezone;}
17450 ;
17451 return 0;
17452 }
17453 _ACEOF
17454 if ac_fn_c_try_compile "$LINENO"; then :
17455
17456 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
17457
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17459 $as_echo "yes" >&6; }
17460 else
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17462 $as_echo "no" >&6; }
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
17464 $as_echo_n "checking for global _timezone variable... " >&6; }
17465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17466 /* end confdefs.h. */
17467 #include <time.h>
17468 int
17469 main ()
17470 {
17471 long z2 = _timezone;
17472 ;
17473 return 0;
17474 }
17475 _ACEOF
17476 if ac_fn_c_try_compile "$LINENO"; then :
17477
17478 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
17479
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17481 $as_echo "yes" >&6; }
17482 else
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17484 $as_echo "no" >&6; }
17485 fi
17486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17487 fi
17488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17489 fi
17490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17491
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17493 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17494 if test "${ac_cv_c_const+set}" = set; then :
17495 $as_echo_n "(cached) " >&6
17496 else
17497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17498 /* end confdefs.h. */
17499
17500 int
17501 main ()
17502 {
17503 /* FIXME: Include the comments suggested by Paul. */
17504 #ifndef __cplusplus
17505 /* Ultrix mips cc rejects this. */
17506 typedef int charset[2];
17507 const charset cs;
17508 /* SunOS 4.1.1 cc rejects this. */
17509 char const *const *pcpcc;
17510 char **ppc;
17511 /* NEC SVR4.0.2 mips cc rejects this. */
17512 struct point {int x, y;};
17513 static struct point const zero = {0,0};
17514 /* AIX XL C 1.02.0.0 rejects this.
17515 It does not let you subtract one const X* pointer from another in
17516 an arm of an if-expression whose if-part is not a constant
17517 expression */
17518 const char *g = "string";
17519 pcpcc = &g + (g ? g-g : 0);
17520 /* HPUX 7.0 cc rejects these. */
17521 ++pcpcc;
17522 ppc = (char**) pcpcc;
17523 pcpcc = (char const *const *) ppc;
17524 { /* SCO 3.2v4 cc rejects this. */
17525 char *t;
17526 char const *s = 0 ? (char *) 0 : (char const *) 0;
17527
17528 *t++ = 0;
17529 if (s) return 0;
17530 }
17531 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17532 int x[] = {25, 17};
17533 const int *foo = &x[0];
17534 ++foo;
17535 }
17536 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17537 typedef const int *iptr;
17538 iptr p = 0;
17539 ++p;
17540 }
17541 { /* AIX XL C 1.02.0.0 rejects this saying
17542 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17543 struct s { int j; const int *ap[3]; };
17544 struct s *b; b->j = 5;
17545 }
17546 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17547 const int foo = 10;
17548 if (!foo) return 0;
17549 }
17550 return !cs[0] && !zero.x;
17551 #endif
17552
17553 ;
17554 return 0;
17555 }
17556 _ACEOF
17557 if ac_fn_c_try_compile "$LINENO"; then :
17558 ac_cv_c_const=yes
17559 else
17560 ac_cv_c_const=no
17561 fi
17562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17563 fi
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17565 $as_echo "$ac_cv_c_const" >&6; }
17566 if test $ac_cv_c_const = no; then
17567
17568 $as_echo "#define const /**/" >>confdefs.h
17569
17570 fi
17571
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17573 $as_echo_n "checking for inline... " >&6; }
17574 if test "${ac_cv_c_inline+set}" = set; then :
17575 $as_echo_n "(cached) " >&6
17576 else
17577 ac_cv_c_inline=no
17578 for ac_kw in inline __inline__ __inline; do
17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17580 /* end confdefs.h. */
17581 #ifndef __cplusplus
17582 typedef int foo_t;
17583 static $ac_kw foo_t static_foo () {return 0; }
17584 $ac_kw foo_t foo () {return 0; }
17585 #endif
17586
17587 _ACEOF
17588 if ac_fn_c_try_compile "$LINENO"; then :
17589 ac_cv_c_inline=$ac_kw
17590 fi
17591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17592 test "$ac_cv_c_inline" != no && break
17593 done
17594
17595 fi
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17597 $as_echo "$ac_cv_c_inline" >&6; }
17598
17599 case $ac_cv_c_inline in
17600 inline | yes) ;;
17601 *)
17602 case $ac_cv_c_inline in
17603 no) ac_val=;;
17604 *) ac_val=$ac_cv_c_inline;;
17605 esac
17606 cat >>confdefs.h <<_ACEOF
17607 #ifndef __cplusplus
17608 #define inline $ac_val
17609 #endif
17610 _ACEOF
17611 ;;
17612 esac
17613
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
17615 $as_echo_n "checking for __attribute__... " >&6; }
17616 if test "${ac_cv_c_attribute+set}" = set; then :
17617 $as_echo_n "(cached) " >&6
17618 else
17619
17620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17621 /* end confdefs.h. */
17622 void foo(void) __attribute__ ((__noreturn__));
17623
17624 _ACEOF
17625 if ac_fn_c_try_compile "$LINENO"; then :
17626 ac_cv_c_attribute=yes
17627 else
17628 ac_cv_c_attribute=no
17629
17630 fi
17631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17632
17633 fi
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_attribute" >&5
17635 $as_echo "$ac_cv_c_attribute" >&6; }
17636
17637 case $ac_cv_c_attribute in
17638 yes) ;;
17639 no)
17640 cat >>confdefs.h <<_ACEOF
17641 #define __attribute__(x) /* nothing */
17642 _ACEOF
17643 ;;
17644 esac
17645
17646
17647
17648 ac_ext=c
17649 ac_cpp='$CPP $CPPFLAGS'
17650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17653
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() takes" >&5
17655 $as_echo_n "checking how many arguments gethostbyname_r() takes... " >&6; }
17656
17657 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then :
17658 $as_echo_n "(cached) " >&6
17659 else
17660
17661
17662 ################################################################
17663
17664 ac_cv_func_which_gethostbyname_r=unknown
17665
17666 #
17667 # ONE ARGUMENT (sanity check)
17668 #
17669
17670 # This should fail, as there is no variant of gethostbyname_r() that takes
17671 # a single argument. If it actually compiles, then we can assume that
17672 # netdb.h is not declaring the function, and the compiler is thereby
17673 # assuming an implicit prototype. In which case, we're out of luck.
17674 #
17675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17676 /* end confdefs.h. */
17677 #include <netdb.h>
17678 int
17679 main ()
17680 {
17681
17682 char *name = "www.gnu.org";
17683 (void)gethostbyname_r(name) /* ; */
17684
17685 ;
17686 return 0;
17687 }
17688 _ACEOF
17689 if ac_fn_c_try_compile "$LINENO"; then :
17690 ac_cv_func_which_gethostbyname_r=no
17691 fi
17692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693
17694 #
17695 # SIX ARGUMENTS
17696 # (e.g. Linux)
17697 #
17698
17699 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17700
17701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17702 /* end confdefs.h. */
17703 #include <netdb.h>
17704 int
17705 main ()
17706 {
17707
17708 char *name = "www.gnu.org";
17709 struct hostent ret, *retp;
17710 char buf[1024];
17711 int buflen = 1024;
17712 int my_h_errno;
17713 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
17714
17715 ;
17716 return 0;
17717 }
17718 _ACEOF
17719 if ac_fn_c_try_compile "$LINENO"; then :
17720 ac_cv_func_which_gethostbyname_r=six
17721 fi
17722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17723
17724 fi
17725
17726 #
17727 # FIVE ARGUMENTS
17728 # (e.g. Solaris)
17729 #
17730
17731 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17732
17733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17734 /* end confdefs.h. */
17735 #include <netdb.h>
17736 int
17737 main ()
17738 {
17739
17740 char *name = "www.gnu.org";
17741 struct hostent ret;
17742 char buf[1024];
17743 int buflen = 1024;
17744 int my_h_errno;
17745 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
17746
17747 ;
17748 return 0;
17749 }
17750 _ACEOF
17751 if ac_fn_c_try_compile "$LINENO"; then :
17752 ac_cv_func_which_gethostbyname_r=five
17753 fi
17754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17755
17756 fi
17757
17758 #
17759 # THREE ARGUMENTS
17760 # (e.g. AIX, HP-UX, Tru64)
17761 #
17762
17763 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17764
17765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17766 /* end confdefs.h. */
17767 #include <netdb.h>
17768 int
17769 main ()
17770 {
17771
17772 char *name = "www.gnu.org";
17773 struct hostent ret;
17774 struct hostent_data data;
17775 (void)gethostbyname_r(name, &ret, &data) /* ; */
17776
17777 ;
17778 return 0;
17779 }
17780 _ACEOF
17781 if ac_fn_c_try_compile "$LINENO"; then :
17782 ac_cv_func_which_gethostbyname_r=three
17783 fi
17784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17785
17786 fi
17787
17788 ################################################################
17789
17790
17791 fi
17792
17793 case "$ac_cv_func_which_gethostbyname_r" in
17794 three)
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: three" >&5
17796 $as_echo "three" >&6; }
17797
17798 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_3 1" >>confdefs.h
17799
17800 ;;
17801
17802 five)
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: five" >&5
17804 $as_echo "five" >&6; }
17805
17806 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_5 1" >>confdefs.h
17807
17808 ;;
17809
17810 six)
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: six" >&5
17812 $as_echo "six" >&6; }
17813
17814 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_6 1" >>confdefs.h
17815
17816 ;;
17817
17818 no)
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find function declaration in netdb.h" >&5
17820 $as_echo "cannot find function declaration in netdb.h" >&6; }
17821 ;;
17822
17823 unknown)
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't tell" >&5
17825 $as_echo "can't tell" >&6; }
17826 ;;
17827
17828 *)
17829 as_fn_error "internal error" "$LINENO" 5
17830 ;;
17831 esac
17832
17833 ac_ext=c
17834 ac_cpp='$CPP $CPPFLAGS'
17835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17838
17839
17840
17841
17842
17843 if test "X$prefix" = "XNONE"; then
17844 acl_final_prefix="$ac_default_prefix"
17845 else
17846 acl_final_prefix="$prefix"
17847 fi
17848 if test "X$exec_prefix" = "XNONE"; then
17849 acl_final_exec_prefix='${prefix}'
17850 else
17851 acl_final_exec_prefix="$exec_prefix"
17852 fi
17853 acl_save_prefix="$prefix"
17854 prefix="$acl_final_prefix"
17855 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17856 prefix="$acl_save_prefix"
17857
17858
17859 # Check whether --with-gnu-ld was given.
17860 if test "${with_gnu_ld+set}" = set; then :
17861 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17862 else
17863 with_gnu_ld=no
17864 fi
17865
17866 # Prepare PATH_SEPARATOR.
17867 # The user is always right.
17868 if test "${PATH_SEPARATOR+set}" != set; then
17869 echo "#! /bin/sh" >conf$$.sh
17870 echo "exit 0" >>conf$$.sh
17871 chmod +x conf$$.sh
17872 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17873 PATH_SEPARATOR=';'
17874 else
17875 PATH_SEPARATOR=:
17876 fi
17877 rm -f conf$$.sh
17878 fi
17879 ac_prog=ld
17880 if test "$GCC" = yes; then
17881 # Check if gcc -print-prog-name=ld gives a path.
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17883 $as_echo_n "checking for ld used by GCC... " >&6; }
17884 case $host in
17885 *-*-mingw*)
17886 # gcc leaves a trailing carriage return which upsets mingw
17887 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17888 *)
17889 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17890 esac
17891 case $ac_prog in
17892 # Accept absolute paths.
17893 [\\/]* | [A-Za-z]:[\\/]*)
17894 re_direlt='/[^/][^/]*/\.\./'
17895 # Canonicalize the path of ld
17896 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17897 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17898 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17899 done
17900 test -z "$LD" && LD="$ac_prog"
17901 ;;
17902 "")
17903 # If it fails, then pretend we aren't using GCC.
17904 ac_prog=ld
17905 ;;
17906 *)
17907 # If it is relative, then search for the first ld in PATH.
17908 with_gnu_ld=unknown
17909 ;;
17910 esac
17911 elif test "$with_gnu_ld" = yes; then
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17913 $as_echo_n "checking for GNU ld... " >&6; }
17914 else
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17916 $as_echo_n "checking for non-GNU ld... " >&6; }
17917 fi
17918 if test "${acl_cv_path_LD+set}" = set; then :
17919 $as_echo_n "(cached) " >&6
17920 else
17921 if test -z "$LD"; then
17922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17923 for ac_dir in $PATH; do
17924 test -z "$ac_dir" && ac_dir=.
17925 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17926 acl_cv_path_LD="$ac_dir/$ac_prog"
17927 # Check to see if the program is GNU ld. I'd rather use --version,
17928 # but apparently some GNU ld's only accept -v.
17929 # Break only if it was the GNU/non-GNU ld that we prefer.
17930 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
17931 test "$with_gnu_ld" != no && break
17932 else
17933 test "$with_gnu_ld" != yes && break
17934 fi
17935 fi
17936 done
17937 IFS="$ac_save_ifs"
17938 else
17939 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17940 fi
17941 fi
17942
17943 LD="$acl_cv_path_LD"
17944 if test -n "$LD"; then
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17946 $as_echo "$LD" >&6; }
17947 else
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17949 $as_echo "no" >&6; }
17950 fi
17951 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17953 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17954 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
17955 $as_echo_n "(cached) " >&6
17956 else
17957 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17958 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
17959 acl_cv_prog_gnu_ld=yes
17960 else
17961 acl_cv_prog_gnu_ld=no
17962 fi
17963 fi
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17965 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17966 with_gnu_ld=$acl_cv_prog_gnu_ld
17967
17968
17969
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17971 $as_echo_n "checking for shared library run path origin... " >&6; }
17972 if test "${acl_cv_rpath+set}" = set; then :
17973 $as_echo_n "(cached) " >&6
17974 else
17975
17976 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17977 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17978 . ./conftest.sh
17979 rm -f ./conftest.sh
17980 acl_cv_rpath=done
17981
17982 fi
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17984 $as_echo "$acl_cv_rpath" >&6; }
17985 wl="$acl_cv_wl"
17986 libext="$acl_cv_libext"
17987 shlibext="$acl_cv_shlibext"
17988 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17989 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17990 hardcode_direct="$acl_cv_hardcode_direct"
17991 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17992 # Check whether --enable-rpath was given.
17993 if test "${enable_rpath+set}" = set; then :
17994 enableval=$enable_rpath; :
17995 else
17996 enable_rpath=yes
17997 fi
17998
17999
18000
18001
18002
18003
18004
18005
18006 use_additional=yes
18007
18008 acl_save_prefix="$prefix"
18009 prefix="$acl_final_prefix"
18010 acl_save_exec_prefix="$exec_prefix"
18011 exec_prefix="$acl_final_exec_prefix"
18012
18013 eval additional_includedir=\"$includedir\"
18014 eval additional_libdir=\"$libdir\"
18015
18016 exec_prefix="$acl_save_exec_prefix"
18017 prefix="$acl_save_prefix"
18018
18019
18020 # Check whether --with-libiconv-prefix was given.
18021 if test "${with_libiconv_prefix+set}" = set; then :
18022 withval=$with_libiconv_prefix;
18023 if test "X$withval" = "Xno"; then
18024 use_additional=no
18025 else
18026 if test "X$withval" = "X"; then
18027
18028 acl_save_prefix="$prefix"
18029 prefix="$acl_final_prefix"
18030 acl_save_exec_prefix="$exec_prefix"
18031 exec_prefix="$acl_final_exec_prefix"
18032
18033 eval additional_includedir=\"$includedir\"
18034 eval additional_libdir=\"$libdir\"
18035
18036 exec_prefix="$acl_save_exec_prefix"
18037 prefix="$acl_save_prefix"
18038
18039 else
18040 additional_includedir="$withval/include"
18041 additional_libdir="$withval/lib"
18042 fi
18043 fi
18044
18045 fi
18046
18047 LIBICONV=
18048 LTLIBICONV=
18049 INCICONV=
18050 rpathdirs=
18051 ltrpathdirs=
18052 names_already_handled=
18053 names_next_round='iconv '
18054 while test -n "$names_next_round"; do
18055 names_this_round="$names_next_round"
18056 names_next_round=
18057 for name in $names_this_round; do
18058 already_handled=
18059 for n in $names_already_handled; do
18060 if test "$n" = "$name"; then
18061 already_handled=yes
18062 break
18063 fi
18064 done
18065 if test -z "$already_handled"; then
18066 names_already_handled="$names_already_handled $name"
18067 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18068 eval value=\"\$HAVE_LIB$uppername\"
18069 if test -n "$value"; then
18070 if test "$value" = yes; then
18071 eval value=\"\$LIB$uppername\"
18072 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18073 eval value=\"\$LTLIB$uppername\"
18074 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18075 else
18076 :
18077 fi
18078 else
18079 found_dir=
18080 found_la=
18081 found_so=
18082 found_a=
18083 if test $use_additional = yes; then
18084 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18085 found_dir="$additional_libdir"
18086 found_so="$additional_libdir/lib$name.$shlibext"
18087 if test -f "$additional_libdir/lib$name.la"; then
18088 found_la="$additional_libdir/lib$name.la"
18089 fi
18090 else
18091 if test -f "$additional_libdir/lib$name.$libext"; then
18092 found_dir="$additional_libdir"
18093 found_a="$additional_libdir/lib$name.$libext"
18094 if test -f "$additional_libdir/lib$name.la"; then
18095 found_la="$additional_libdir/lib$name.la"
18096 fi
18097 fi
18098 fi
18099 fi
18100 if test "X$found_dir" = "X"; then
18101 for x in $LDFLAGS $LTLIBICONV; do
18102
18103 acl_save_prefix="$prefix"
18104 prefix="$acl_final_prefix"
18105 acl_save_exec_prefix="$exec_prefix"
18106 exec_prefix="$acl_final_exec_prefix"
18107 eval x=\"$x\"
18108 exec_prefix="$acl_save_exec_prefix"
18109 prefix="$acl_save_prefix"
18110
18111 case "$x" in
18112 -L*)
18113 dir=`echo "X$x" | sed -e 's/^X-L//'`
18114 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18115 found_dir="$dir"
18116 found_so="$dir/lib$name.$shlibext"
18117 if test -f "$dir/lib$name.la"; then
18118 found_la="$dir/lib$name.la"
18119 fi
18120 else
18121 if test -f "$dir/lib$name.$libext"; then
18122 found_dir="$dir"
18123 found_a="$dir/lib$name.$libext"
18124 if test -f "$dir/lib$name.la"; then
18125 found_la="$dir/lib$name.la"
18126 fi
18127 fi
18128 fi
18129 ;;
18130 esac
18131 if test "X$found_dir" != "X"; then
18132 break
18133 fi
18134 done
18135 fi
18136 if test "X$found_dir" != "X"; then
18137 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18138 if test "X$found_so" != "X"; then
18139 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18140 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18141 else
18142 haveit=
18143 for x in $ltrpathdirs; do
18144 if test "X$x" = "X$found_dir"; then
18145 haveit=yes
18146 break
18147 fi
18148 done
18149 if test -z "$haveit"; then
18150 ltrpathdirs="$ltrpathdirs $found_dir"
18151 fi
18152 if test "$hardcode_direct" = yes; then
18153 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18154 else
18155 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18156 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18157 haveit=
18158 for x in $rpathdirs; do
18159 if test "X$x" = "X$found_dir"; then
18160 haveit=yes
18161 break
18162 fi
18163 done
18164 if test -z "$haveit"; then
18165 rpathdirs="$rpathdirs $found_dir"
18166 fi
18167 else
18168 haveit=
18169 for x in $LDFLAGS $LIBICONV; do
18170
18171 acl_save_prefix="$prefix"
18172 prefix="$acl_final_prefix"
18173 acl_save_exec_prefix="$exec_prefix"
18174 exec_prefix="$acl_final_exec_prefix"
18175 eval x=\"$x\"
18176 exec_prefix="$acl_save_exec_prefix"
18177 prefix="$acl_save_prefix"
18178
18179 if test "X$x" = "X-L$found_dir"; then
18180 haveit=yes
18181 break
18182 fi
18183 done
18184 if test -z "$haveit"; then
18185 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18186 fi
18187 if test "$hardcode_minus_L" != no; then
18188 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18189 else
18190 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18191 fi
18192 fi
18193 fi
18194 fi
18195 else
18196 if test "X$found_a" != "X"; then
18197 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18198 else
18199 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18200 fi
18201 fi
18202 additional_includedir=
18203 case "$found_dir" in
18204 */lib | */lib/)
18205 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18206 additional_includedir="$basedir/include"
18207 ;;
18208 esac
18209 if test "X$additional_includedir" != "X"; then
18210 if test "X$additional_includedir" != "X/usr/include"; then
18211 haveit=
18212 if test "X$additional_includedir" = "X/usr/local/include"; then
18213 if test -n "$GCC"; then
18214 case $host_os in
18215 linux*) haveit=yes;;
18216 esac
18217 fi
18218 fi
18219 if test -z "$haveit"; then
18220 for x in $CPPFLAGS $INCICONV; do
18221
18222 acl_save_prefix="$prefix"
18223 prefix="$acl_final_prefix"
18224 acl_save_exec_prefix="$exec_prefix"
18225 exec_prefix="$acl_final_exec_prefix"
18226 eval x=\"$x\"
18227 exec_prefix="$acl_save_exec_prefix"
18228 prefix="$acl_save_prefix"
18229
18230 if test "X$x" = "X-I$additional_includedir"; then
18231 haveit=yes
18232 break
18233 fi
18234 done
18235 if test -z "$haveit"; then
18236 if test -d "$additional_includedir"; then
18237 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18238 fi
18239 fi
18240 fi
18241 fi
18242 fi
18243 if test -n "$found_la"; then
18244 save_libdir="$libdir"
18245 case "$found_la" in
18246 */* | *\\*) . "$found_la" ;;
18247 *) . "./$found_la" ;;
18248 esac
18249 libdir="$save_libdir"
18250 for dep in $dependency_libs; do
18251 case "$dep" in
18252 -L*)
18253 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18254 if test "X$additional_libdir" != "X/usr/lib"; then
18255 haveit=
18256 if test "X$additional_libdir" = "X/usr/local/lib"; then
18257 if test -n "$GCC"; then
18258 case $host_os in
18259 linux*) haveit=yes;;
18260 esac
18261 fi
18262 fi
18263 if test -z "$haveit"; then
18264 haveit=
18265 for x in $LDFLAGS $LIBICONV; do
18266
18267 acl_save_prefix="$prefix"
18268 prefix="$acl_final_prefix"
18269 acl_save_exec_prefix="$exec_prefix"
18270 exec_prefix="$acl_final_exec_prefix"
18271 eval x=\"$x\"
18272 exec_prefix="$acl_save_exec_prefix"
18273 prefix="$acl_save_prefix"
18274
18275 if test "X$x" = "X-L$additional_libdir"; then
18276 haveit=yes
18277 break
18278 fi
18279 done
18280 if test -z "$haveit"; then
18281 if test -d "$additional_libdir"; then
18282 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18283 fi
18284 fi
18285 haveit=
18286 for x in $LDFLAGS $LTLIBICONV; do
18287
18288 acl_save_prefix="$prefix"
18289 prefix="$acl_final_prefix"
18290 acl_save_exec_prefix="$exec_prefix"
18291 exec_prefix="$acl_final_exec_prefix"
18292 eval x=\"$x\"
18293 exec_prefix="$acl_save_exec_prefix"
18294 prefix="$acl_save_prefix"
18295
18296 if test "X$x" = "X-L$additional_libdir"; then
18297 haveit=yes
18298 break
18299 fi
18300 done
18301 if test -z "$haveit"; then
18302 if test -d "$additional_libdir"; then
18303 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18304 fi
18305 fi
18306 fi
18307 fi
18308 ;;
18309 -R*)
18310 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18311 if test "$enable_rpath" != no; then
18312 haveit=
18313 for x in $rpathdirs; do
18314 if test "X$x" = "X$dir"; then
18315 haveit=yes
18316 break
18317 fi
18318 done
18319 if test -z "$haveit"; then
18320 rpathdirs="$rpathdirs $dir"
18321 fi
18322 haveit=
18323 for x in $ltrpathdirs; do
18324 if test "X$x" = "X$dir"; then
18325 haveit=yes
18326 break
18327 fi
18328 done
18329 if test -z "$haveit"; then
18330 ltrpathdirs="$ltrpathdirs $dir"
18331 fi
18332 fi
18333 ;;
18334 -l*)
18335 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18336 ;;
18337 *.la)
18338 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18339 ;;
18340 *)
18341 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18342 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18343 ;;
18344 esac
18345 done
18346 fi
18347 else
18348 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18349 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18350 fi
18351 fi
18352 fi
18353 done
18354 done
18355 if test "X$rpathdirs" != "X"; then
18356 if test -n "$hardcode_libdir_separator"; then
18357 alldirs=
18358 for found_dir in $rpathdirs; do
18359 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18360 done
18361 acl_save_libdir="$libdir"
18362 libdir="$alldirs"
18363 eval flag=\"$hardcode_libdir_flag_spec\"
18364 libdir="$acl_save_libdir"
18365 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18366 else
18367 for found_dir in $rpathdirs; do
18368 acl_save_libdir="$libdir"
18369 libdir="$found_dir"
18370 eval flag=\"$hardcode_libdir_flag_spec\"
18371 libdir="$acl_save_libdir"
18372 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18373 done
18374 fi
18375 fi
18376 if test "X$ltrpathdirs" != "X"; then
18377 for found_dir in $ltrpathdirs; do
18378 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18379 done
18380 fi
18381
18382
18383
18384
18385
18386
18387
18388 am_save_CPPFLAGS="$CPPFLAGS"
18389
18390 for element in $INCICONV; do
18391 haveit=
18392 for x in $CPPFLAGS; do
18393
18394 acl_save_prefix="$prefix"
18395 prefix="$acl_final_prefix"
18396 acl_save_exec_prefix="$exec_prefix"
18397 exec_prefix="$acl_final_exec_prefix"
18398 eval x=\"$x\"
18399 exec_prefix="$acl_save_exec_prefix"
18400 prefix="$acl_save_prefix"
18401
18402 if test "X$x" = "X$element"; then
18403 haveit=yes
18404 break
18405 fi
18406 done
18407 if test -z "$haveit"; then
18408 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18409 fi
18410 done
18411
18412
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18414 $as_echo_n "checking for iconv... " >&6; }
18415 if test "${am_cv_func_iconv+set}" = set; then :
18416 $as_echo_n "(cached) " >&6
18417 else
18418
18419 am_cv_func_iconv="no, consider installing GNU libiconv"
18420 am_cv_lib_iconv=no
18421 if test x$gcc_no_link = xyes; then
18422 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18423 fi
18424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18425 /* end confdefs.h. */
18426 #include <stdlib.h>
18427 #include <iconv.h>
18428 int
18429 main ()
18430 {
18431 iconv_t cd = iconv_open("","");
18432 iconv(cd,NULL,NULL,NULL,NULL);
18433 iconv_close(cd);
18434 ;
18435 return 0;
18436 }
18437 _ACEOF
18438 if ac_fn_c_try_link "$LINENO"; then :
18439 am_cv_func_iconv=yes
18440 fi
18441 rm -f core conftest.err conftest.$ac_objext \
18442 conftest$ac_exeext conftest.$ac_ext
18443 if test "$am_cv_func_iconv" != yes; then
18444 am_save_LIBS="$LIBS"
18445 LIBS="$LIBS $LIBICONV"
18446 if test x$gcc_no_link = xyes; then
18447 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18448 fi
18449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18450 /* end confdefs.h. */
18451 #include <stdlib.h>
18452 #include <iconv.h>
18453 int
18454 main ()
18455 {
18456 iconv_t cd = iconv_open("","");
18457 iconv(cd,NULL,NULL,NULL,NULL);
18458 iconv_close(cd);
18459 ;
18460 return 0;
18461 }
18462 _ACEOF
18463 if ac_fn_c_try_link "$LINENO"; then :
18464 am_cv_lib_iconv=yes
18465 am_cv_func_iconv=yes
18466 fi
18467 rm -f core conftest.err conftest.$ac_objext \
18468 conftest$ac_exeext conftest.$ac_ext
18469 LIBS="$am_save_LIBS"
18470 fi
18471
18472 fi
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18474 $as_echo "$am_cv_func_iconv" >&6; }
18475 if test "$am_cv_func_iconv" = yes; then
18476
18477 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18478
18479 fi
18480 if test "$am_cv_lib_iconv" = yes; then
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18482 $as_echo_n "checking how to link with libiconv... " >&6; }
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18484 $as_echo "$LIBICONV" >&6; }
18485 else
18486 CPPFLAGS="$am_save_CPPFLAGS"
18487 LIBICONV=
18488 LTLIBICONV=
18489 fi
18490
18491
18492
18493 if test "$am_cv_func_iconv" = yes; then
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18495 $as_echo_n "checking for iconv declaration... " >&6; }
18496 if test "${am_cv_proto_iconv+set}" = set; then :
18497 $as_echo_n "(cached) " >&6
18498 else
18499
18500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501 /* end confdefs.h. */
18502
18503 #include <stdlib.h>
18504 #include <iconv.h>
18505 extern
18506 #ifdef __cplusplus
18507 "C"
18508 #endif
18509 #if defined(__STDC__) || defined(__cplusplus)
18510 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18511 #else
18512 size_t iconv();
18513 #endif
18514
18515 int
18516 main ()
18517 {
18518
18519 ;
18520 return 0;
18521 }
18522 _ACEOF
18523 if ac_fn_c_try_compile "$LINENO"; then :
18524 am_cv_proto_iconv_arg1=""
18525 else
18526 am_cv_proto_iconv_arg1="const"
18527 fi
18528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18529 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);"
18530 fi
18531
18532 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
18534 }$am_cv_proto_iconv" >&5
18535 $as_echo "${ac_t:-
18536 }$am_cv_proto_iconv" >&6; }
18537
18538 cat >>confdefs.h <<_ACEOF
18539 #define ICONV_CONST $am_cv_proto_iconv_arg1
18540 _ACEOF
18541
18542 fi
18543
18544
18545 if test "x${GCC}" = xyes; then
18546
18547 WARNING_CFLAGS='-W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
18548
18549
18550 EXTRA_CFLAGS='-fexceptions -fasynchronous-unwind-tables'
18551
18552
18553 STRICT_WARNING_CFLAGS='-Wstrict-prototypes -pedantic'
18554
18555
18556 ERROR_CFLAGS=
18557 if test "x${ENABLE_WERROR}" = xyes; then
18558 ERROR_CFLAGS='-Werror'
18559 fi
18560
18561 fi
18562
18563 if test "x${COMPILE_XMLJ}" = xyes; then
18564
18565 succeeded=no
18566
18567 if test -z "$PKG_CONFIG"; then
18568 # Extract the first word of "pkg-config", so it can be a program name with args.
18569 set dummy pkg-config; ac_word=$2
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18571 $as_echo_n "checking for $ac_word... " >&6; }
18572 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18573 $as_echo_n "(cached) " >&6
18574 else
18575 case $PKG_CONFIG in
18576 [\\/]* | ?:[\\/]*)
18577 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18578 ;;
18579 *)
18580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18581 for as_dir in $PATH
18582 do
18583 IFS=$as_save_IFS
18584 test -z "$as_dir" && as_dir=.
18585 for ac_exec_ext in '' $ac_executable_extensions; do
18586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18587 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18589 break 2
18590 fi
18591 done
18592 done
18593 IFS=$as_save_IFS
18594
18595 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18596 ;;
18597 esac
18598 fi
18599 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18600 if test -n "$PKG_CONFIG"; then
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18602 $as_echo "$PKG_CONFIG" >&6; }
18603 else
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18605 $as_echo "no" >&6; }
18606 fi
18607
18608
18609 fi
18610
18611 if test "$PKG_CONFIG" = "no" ; then
18612 echo "*** The pkg-config script could not be found. Make sure it is"
18613 echo "*** in your path, or set the PKG_CONFIG environment variable"
18614 echo "*** to the full path to pkg-config."
18615 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18616 else
18617 PKG_CONFIG_MIN_VERSION=0.9.0
18618 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.8" >&5
18620 $as_echo_n "checking for libxml-2.0 >= 2.6.8... " >&6; }
18621
18622 if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18624 $as_echo "yes" >&6; }
18625 succeeded=yes
18626
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_CFLAGS" >&5
18628 $as_echo_n "checking XML_CFLAGS... " >&6; }
18629 XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_CFLAGS" >&5
18631 $as_echo "$XML_CFLAGS" >&6; }
18632
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_LIBS" >&5
18634 $as_echo_n "checking XML_LIBS... " >&6; }
18635 XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_LIBS" >&5
18637 $as_echo "$XML_LIBS" >&6; }
18638 else
18639 XML_CFLAGS=""
18640 XML_LIBS=""
18641 ## If we have a custom action on failure, don't print errors, but
18642 ## do set a variable so people can do so.
18643 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
18644 echo $XML_PKG_ERRORS
18645 fi
18646
18647
18648
18649 else
18650 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18651 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18652 fi
18653 fi
18654
18655 if test $succeeded = yes; then
18656 :
18657 else
18658 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
18659 fi
18660
18661
18662 succeeded=no
18663
18664 if test -z "$PKG_CONFIG"; then
18665 # Extract the first word of "pkg-config", so it can be a program name with args.
18666 set dummy pkg-config; ac_word=$2
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18668 $as_echo_n "checking for $ac_word... " >&6; }
18669 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18670 $as_echo_n "(cached) " >&6
18671 else
18672 case $PKG_CONFIG in
18673 [\\/]* | ?:[\\/]*)
18674 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18675 ;;
18676 *)
18677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18678 for as_dir in $PATH
18679 do
18680 IFS=$as_save_IFS
18681 test -z "$as_dir" && as_dir=.
18682 for ac_exec_ext in '' $ac_executable_extensions; do
18683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18684 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18686 break 2
18687 fi
18688 done
18689 done
18690 IFS=$as_save_IFS
18691
18692 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18693 ;;
18694 esac
18695 fi
18696 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18697 if test -n "$PKG_CONFIG"; then
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18699 $as_echo "$PKG_CONFIG" >&6; }
18700 else
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18702 $as_echo "no" >&6; }
18703 fi
18704
18705
18706 fi
18707
18708 if test "$PKG_CONFIG" = "no" ; then
18709 echo "*** The pkg-config script could not be found. Make sure it is"
18710 echo "*** in your path, or set the PKG_CONFIG environment variable"
18711 echo "*** to the full path to pkg-config."
18712 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18713 else
18714 PKG_CONFIG_MIN_VERSION=0.9.0
18715 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt >= 1.1.11" >&5
18717 $as_echo_n "checking for libxslt >= 1.1.11... " >&6; }
18718
18719 if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18721 $as_echo "yes" >&6; }
18722 succeeded=yes
18723
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_CFLAGS" >&5
18725 $as_echo_n "checking XSLT_CFLAGS... " >&6; }
18726 XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_CFLAGS" >&5
18728 $as_echo "$XSLT_CFLAGS" >&6; }
18729
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_LIBS" >&5
18731 $as_echo_n "checking XSLT_LIBS... " >&6; }
18732 XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_LIBS" >&5
18734 $as_echo "$XSLT_LIBS" >&6; }
18735 else
18736 XSLT_CFLAGS=""
18737 XSLT_LIBS=""
18738 ## If we have a custom action on failure, don't print errors, but
18739 ## do set a variable so people can do so.
18740 XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
18741 echo $XSLT_PKG_ERRORS
18742 fi
18743
18744
18745
18746 else
18747 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18748 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18749 fi
18750 fi
18751
18752 if test $succeeded = yes; then
18753 :
18754 else
18755 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
18756 fi
18757
18758
18759
18760
18761
18762 fi
18763
18764 if test "x${COMPILE_GTK_PEER}" = xyes; then
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18766 $as_echo_n "checking for X... " >&6; }
18767
18768
18769 # Check whether --with-x was given.
18770 if test "${with_x+set}" = set; then :
18771 withval=$with_x;
18772 fi
18773
18774 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18775 if test "x$with_x" = xno; then
18776 # The user explicitly disabled X.
18777 have_x=disabled
18778 else
18779 case $x_includes,$x_libraries in #(
18780 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
18781 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
18782 $as_echo_n "(cached) " >&6
18783 else
18784 # One or both of the vars are not set, and there is no cached value.
18785 ac_x_includes=no ac_x_libraries=no
18786 rm -f -r conftest.dir
18787 if mkdir conftest.dir; then
18788 cd conftest.dir
18789 cat >Imakefile <<'_ACEOF'
18790 incroot:
18791 @echo incroot='${INCROOT}'
18792 usrlibdir:
18793 @echo usrlibdir='${USRLIBDIR}'
18794 libdir:
18795 @echo libdir='${LIBDIR}'
18796 _ACEOF
18797 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18798 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18799 for ac_var in incroot usrlibdir libdir; do
18800 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18801 done
18802 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18803 for ac_extension in a so sl dylib la dll; do
18804 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18805 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18806 ac_im_usrlibdir=$ac_im_libdir; break
18807 fi
18808 done
18809 # Screen out bogus values from the imake configuration. They are
18810 # bogus both because they are the default anyway, and because
18811 # using them would break gcc on systems where it needs fixed includes.
18812 case $ac_im_incroot in
18813 /usr/include) ac_x_includes= ;;
18814 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18815 esac
18816 case $ac_im_usrlibdir in
18817 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
18818 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18819 esac
18820 fi
18821 cd ..
18822 rm -f -r conftest.dir
18823 fi
18824
18825 # Standard set of common directories for X headers.
18826 # Check X11 before X11Rn because it is often a symlink to the current release.
18827 ac_x_header_dirs='
18828 /usr/X11/include
18829 /usr/X11R7/include
18830 /usr/X11R6/include
18831 /usr/X11R5/include
18832 /usr/X11R4/include
18833
18834 /usr/include/X11
18835 /usr/include/X11R7
18836 /usr/include/X11R6
18837 /usr/include/X11R5
18838 /usr/include/X11R4
18839
18840 /usr/local/X11/include
18841 /usr/local/X11R7/include
18842 /usr/local/X11R6/include
18843 /usr/local/X11R5/include
18844 /usr/local/X11R4/include
18845
18846 /usr/local/include/X11
18847 /usr/local/include/X11R7
18848 /usr/local/include/X11R6
18849 /usr/local/include/X11R5
18850 /usr/local/include/X11R4
18851
18852 /usr/X386/include
18853 /usr/x386/include
18854 /usr/XFree86/include/X11
18855
18856 /usr/include
18857 /usr/local/include
18858 /usr/unsupported/include
18859 /usr/athena/include
18860 /usr/local/x11r5/include
18861 /usr/lpp/Xamples/include
18862
18863 /usr/openwin/include
18864 /usr/openwin/share/include'
18865
18866 if test "$ac_x_includes" = no; then
18867 # Guess where to find include files, by looking for Xlib.h.
18868 # First, try using that file with no special directory specified.
18869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18870 /* end confdefs.h. */
18871 #include <X11/Xlib.h>
18872 _ACEOF
18873 if ac_fn_c_try_cpp "$LINENO"; then :
18874 # We can compile using X headers with no special include directory.
18875 ac_x_includes=
18876 else
18877 for ac_dir in $ac_x_header_dirs; do
18878 if test -r "$ac_dir/X11/Xlib.h"; then
18879 ac_x_includes=$ac_dir
18880 break
18881 fi
18882 done
18883 fi
18884 rm -f conftest.err conftest.$ac_ext
18885 fi # $ac_x_includes = no
18886
18887 if test "$ac_x_libraries" = no; then
18888 # Check for the libraries.
18889 # See if we find them without any special options.
18890 # Don't add to $LIBS permanently.
18891 ac_save_LIBS=$LIBS
18892 LIBS="-lX11 $LIBS"
18893 if test x$gcc_no_link = xyes; then
18894 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18895 fi
18896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18897 /* end confdefs.h. */
18898 #include <X11/Xlib.h>
18899 int
18900 main ()
18901 {
18902 XrmInitialize ()
18903 ;
18904 return 0;
18905 }
18906 _ACEOF
18907 if ac_fn_c_try_link "$LINENO"; then :
18908 LIBS=$ac_save_LIBS
18909 # We can link X programs with no special library path.
18910 ac_x_libraries=
18911 else
18912 LIBS=$ac_save_LIBS
18913 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18914 do
18915 # Don't even attempt the hair of trying to link an X program!
18916 for ac_extension in a so sl dylib la dll; do
18917 if test -r "$ac_dir/libX11.$ac_extension"; then
18918 ac_x_libraries=$ac_dir
18919 break 2
18920 fi
18921 done
18922 done
18923 fi
18924 rm -f core conftest.err conftest.$ac_objext \
18925 conftest$ac_exeext conftest.$ac_ext
18926 fi # $ac_x_libraries = no
18927
18928 case $ac_x_includes,$ac_x_libraries in #(
18929 no,* | *,no | *\'*)
18930 # Didn't find X, or a directory has "'" in its name.
18931 ac_cv_have_x="have_x=no";; #(
18932 *)
18933 # Record where we found X for the cache.
18934 ac_cv_have_x="have_x=yes\
18935 ac_x_includes='$ac_x_includes'\
18936 ac_x_libraries='$ac_x_libraries'"
18937 esac
18938 fi
18939 ;; #(
18940 *) have_x=yes;;
18941 esac
18942 eval "$ac_cv_have_x"
18943 fi # $with_x != no
18944
18945 if test "$have_x" != yes; then
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18947 $as_echo "$have_x" >&6; }
18948 no_x=yes
18949 else
18950 # If each of the values was on the command line, it overrides each guess.
18951 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18952 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18953 # Update the cache value to reflect the command line values.
18954 ac_cv_have_x="have_x=yes\
18955 ac_x_includes='$x_includes'\
18956 ac_x_libraries='$x_libraries'"
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18958 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18959 fi
18960
18961 if test "$no_x" = yes; then
18962 # Not all programs may use this symbol, but it does not hurt to define it.
18963
18964 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
18965
18966 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18967 else
18968 if test -n "$x_includes"; then
18969 X_CFLAGS="$X_CFLAGS -I$x_includes"
18970 fi
18971
18972 # It would also be nice to do this for all -L options, not just this one.
18973 if test -n "$x_libraries"; then
18974 X_LIBS="$X_LIBS -L$x_libraries"
18975 # For Solaris; some versions of Sun CC require a space after -R and
18976 # others require no space. Words are not sufficient . . . .
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
18978 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
18979 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18980 ac_xsave_c_werror_flag=$ac_c_werror_flag
18981 ac_c_werror_flag=yes
18982 if test x$gcc_no_link = xyes; then
18983 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18984 fi
18985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18986 /* end confdefs.h. */
18987
18988 int
18989 main ()
18990 {
18991
18992 ;
18993 return 0;
18994 }
18995 _ACEOF
18996 if ac_fn_c_try_link "$LINENO"; then :
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18998 $as_echo "no" >&6; }
18999 X_LIBS="$X_LIBS -R$x_libraries"
19000 else
19001 LIBS="$ac_xsave_LIBS -R $x_libraries"
19002 if test x$gcc_no_link = xyes; then
19003 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19004 fi
19005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19006 /* end confdefs.h. */
19007
19008 int
19009 main ()
19010 {
19011
19012 ;
19013 return 0;
19014 }
19015 _ACEOF
19016 if ac_fn_c_try_link "$LINENO"; then :
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19018 $as_echo "yes" >&6; }
19019 X_LIBS="$X_LIBS -R $x_libraries"
19020 else
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19022 $as_echo "neither works" >&6; }
19023 fi
19024 rm -f core conftest.err conftest.$ac_objext \
19025 conftest$ac_exeext conftest.$ac_ext
19026 fi
19027 rm -f core conftest.err conftest.$ac_objext \
19028 conftest$ac_exeext conftest.$ac_ext
19029 ac_c_werror_flag=$ac_xsave_c_werror_flag
19030 LIBS=$ac_xsave_LIBS
19031 fi
19032
19033 # Check for system-dependent libraries X programs must link with.
19034 # Do this before checking for the system-independent R6 libraries
19035 # (-lICE), since we may need -lsocket or whatever for X linking.
19036
19037 if test "$ISC" = yes; then
19038 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19039 else
19040 # Martyn Johnson says this is needed for Ultrix, if the X
19041 # libraries were built with DECnet support. And Karl Berry says
19042 # the Alpha needs dnet_stub (dnet does not exist).
19043 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19044 if test x$gcc_no_link = xyes; then
19045 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19046 fi
19047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19048 /* end confdefs.h. */
19049
19050 /* Override any GCC internal prototype to avoid an error.
19051 Use char because int might match the return type of a GCC
19052 builtin and then its argument prototype would still apply. */
19053 #ifdef __cplusplus
19054 extern "C"
19055 #endif
19056 char XOpenDisplay ();
19057 int
19058 main ()
19059 {
19060 return XOpenDisplay ();
19061 ;
19062 return 0;
19063 }
19064 _ACEOF
19065 if ac_fn_c_try_link "$LINENO"; then :
19066
19067 else
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19069 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19070 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
19071 $as_echo_n "(cached) " >&6
19072 else
19073 ac_check_lib_save_LIBS=$LIBS
19074 LIBS="-ldnet $LIBS"
19075 if test x$gcc_no_link = xyes; then
19076 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19077 fi
19078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19079 /* end confdefs.h. */
19080
19081 /* Override any GCC internal prototype to avoid an error.
19082 Use char because int might match the return type of a GCC
19083 builtin and then its argument prototype would still apply. */
19084 #ifdef __cplusplus
19085 extern "C"
19086 #endif
19087 char dnet_ntoa ();
19088 int
19089 main ()
19090 {
19091 return dnet_ntoa ();
19092 ;
19093 return 0;
19094 }
19095 _ACEOF
19096 if ac_fn_c_try_link "$LINENO"; then :
19097 ac_cv_lib_dnet_dnet_ntoa=yes
19098 else
19099 ac_cv_lib_dnet_dnet_ntoa=no
19100 fi
19101 rm -f core conftest.err conftest.$ac_objext \
19102 conftest$ac_exeext conftest.$ac_ext
19103 LIBS=$ac_check_lib_save_LIBS
19104 fi
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19106 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19107 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
19108 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19109 fi
19110
19111 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19113 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19114 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
19115 $as_echo_n "(cached) " >&6
19116 else
19117 ac_check_lib_save_LIBS=$LIBS
19118 LIBS="-ldnet_stub $LIBS"
19119 if test x$gcc_no_link = xyes; then
19120 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19121 fi
19122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19123 /* end confdefs.h. */
19124
19125 /* Override any GCC internal prototype to avoid an error.
19126 Use char because int might match the return type of a GCC
19127 builtin and then its argument prototype would still apply. */
19128 #ifdef __cplusplus
19129 extern "C"
19130 #endif
19131 char dnet_ntoa ();
19132 int
19133 main ()
19134 {
19135 return dnet_ntoa ();
19136 ;
19137 return 0;
19138 }
19139 _ACEOF
19140 if ac_fn_c_try_link "$LINENO"; then :
19141 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19142 else
19143 ac_cv_lib_dnet_stub_dnet_ntoa=no
19144 fi
19145 rm -f core conftest.err conftest.$ac_objext \
19146 conftest$ac_exeext conftest.$ac_ext
19147 LIBS=$ac_check_lib_save_LIBS
19148 fi
19149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19150 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19151 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
19152 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19153 fi
19154
19155 fi
19156 fi
19157 rm -f core conftest.err conftest.$ac_objext \
19158 conftest$ac_exeext conftest.$ac_ext
19159 LIBS="$ac_xsave_LIBS"
19160
19161 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19162 # to get the SysV transport functions.
19163 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19164 # needs -lnsl.
19165 # The nsl library prevents programs from opening the X display
19166 # on Irix 5.2, according to T.E. Dickey.
19167 # The functions gethostbyname, getservbyname, and inet_addr are
19168 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19169 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19170 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
19171
19172 fi
19173
19174 if test $ac_cv_func_gethostbyname = no; then
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19176 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19177 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
19178 $as_echo_n "(cached) " >&6
19179 else
19180 ac_check_lib_save_LIBS=$LIBS
19181 LIBS="-lnsl $LIBS"
19182 if test x$gcc_no_link = xyes; then
19183 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19184 fi
19185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19186 /* end confdefs.h. */
19187
19188 /* Override any GCC internal prototype to avoid an error.
19189 Use char because int might match the return type of a GCC
19190 builtin and then its argument prototype would still apply. */
19191 #ifdef __cplusplus
19192 extern "C"
19193 #endif
19194 char gethostbyname ();
19195 int
19196 main ()
19197 {
19198 return gethostbyname ();
19199 ;
19200 return 0;
19201 }
19202 _ACEOF
19203 if ac_fn_c_try_link "$LINENO"; then :
19204 ac_cv_lib_nsl_gethostbyname=yes
19205 else
19206 ac_cv_lib_nsl_gethostbyname=no
19207 fi
19208 rm -f core conftest.err conftest.$ac_objext \
19209 conftest$ac_exeext conftest.$ac_ext
19210 LIBS=$ac_check_lib_save_LIBS
19211 fi
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19213 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19214 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
19215 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19216 fi
19217
19218 if test $ac_cv_lib_nsl_gethostbyname = no; then
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
19220 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
19221 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
19222 $as_echo_n "(cached) " >&6
19223 else
19224 ac_check_lib_save_LIBS=$LIBS
19225 LIBS="-lbsd $LIBS"
19226 if test x$gcc_no_link = xyes; then
19227 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19228 fi
19229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19230 /* end confdefs.h. */
19231
19232 /* Override any GCC internal prototype to avoid an error.
19233 Use char because int might match the return type of a GCC
19234 builtin and then its argument prototype would still apply. */
19235 #ifdef __cplusplus
19236 extern "C"
19237 #endif
19238 char gethostbyname ();
19239 int
19240 main ()
19241 {
19242 return gethostbyname ();
19243 ;
19244 return 0;
19245 }
19246 _ACEOF
19247 if ac_fn_c_try_link "$LINENO"; then :
19248 ac_cv_lib_bsd_gethostbyname=yes
19249 else
19250 ac_cv_lib_bsd_gethostbyname=no
19251 fi
19252 rm -f core conftest.err conftest.$ac_objext \
19253 conftest$ac_exeext conftest.$ac_ext
19254 LIBS=$ac_check_lib_save_LIBS
19255 fi
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
19257 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
19258 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
19259 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19260 fi
19261
19262 fi
19263 fi
19264
19265 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19266 # socket/setsockopt and other routines are undefined under SCO ODT
19267 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19268 # on later versions), says Simon Leinen: it contains gethostby*
19269 # variants that don't use the name server (or something). -lsocket
19270 # must be given before -lnsl if both are needed. We assume that
19271 # if connect needs -lnsl, so does gethostbyname.
19272 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
19273 if test "x$ac_cv_func_connect" = x""yes; then :
19274
19275 fi
19276
19277 if test $ac_cv_func_connect = no; then
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
19279 $as_echo_n "checking for connect in -lsocket... " >&6; }
19280 if test "${ac_cv_lib_socket_connect+set}" = set; then :
19281 $as_echo_n "(cached) " >&6
19282 else
19283 ac_check_lib_save_LIBS=$LIBS
19284 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19285 if test x$gcc_no_link = xyes; then
19286 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19287 fi
19288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19289 /* end confdefs.h. */
19290
19291 /* Override any GCC internal prototype to avoid an error.
19292 Use char because int might match the return type of a GCC
19293 builtin and then its argument prototype would still apply. */
19294 #ifdef __cplusplus
19295 extern "C"
19296 #endif
19297 char connect ();
19298 int
19299 main ()
19300 {
19301 return connect ();
19302 ;
19303 return 0;
19304 }
19305 _ACEOF
19306 if ac_fn_c_try_link "$LINENO"; then :
19307 ac_cv_lib_socket_connect=yes
19308 else
19309 ac_cv_lib_socket_connect=no
19310 fi
19311 rm -f core conftest.err conftest.$ac_objext \
19312 conftest$ac_exeext conftest.$ac_ext
19313 LIBS=$ac_check_lib_save_LIBS
19314 fi
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19316 $as_echo "$ac_cv_lib_socket_connect" >&6; }
19317 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
19318 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19319 fi
19320
19321 fi
19322
19323 # Guillermo Gomez says -lposix is necessary on A/UX.
19324 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
19325 if test "x$ac_cv_func_remove" = x""yes; then :
19326
19327 fi
19328
19329 if test $ac_cv_func_remove = no; then
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
19331 $as_echo_n "checking for remove in -lposix... " >&6; }
19332 if test "${ac_cv_lib_posix_remove+set}" = set; then :
19333 $as_echo_n "(cached) " >&6
19334 else
19335 ac_check_lib_save_LIBS=$LIBS
19336 LIBS="-lposix $LIBS"
19337 if test x$gcc_no_link = xyes; then
19338 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19339 fi
19340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19341 /* end confdefs.h. */
19342
19343 /* Override any GCC internal prototype to avoid an error.
19344 Use char because int might match the return type of a GCC
19345 builtin and then its argument prototype would still apply. */
19346 #ifdef __cplusplus
19347 extern "C"
19348 #endif
19349 char remove ();
19350 int
19351 main ()
19352 {
19353 return remove ();
19354 ;
19355 return 0;
19356 }
19357 _ACEOF
19358 if ac_fn_c_try_link "$LINENO"; then :
19359 ac_cv_lib_posix_remove=yes
19360 else
19361 ac_cv_lib_posix_remove=no
19362 fi
19363 rm -f core conftest.err conftest.$ac_objext \
19364 conftest$ac_exeext conftest.$ac_ext
19365 LIBS=$ac_check_lib_save_LIBS
19366 fi
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19368 $as_echo "$ac_cv_lib_posix_remove" >&6; }
19369 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
19370 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19371 fi
19372
19373 fi
19374
19375 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19376 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19377 if test "x$ac_cv_func_shmat" = x""yes; then :
19378
19379 fi
19380
19381 if test $ac_cv_func_shmat = no; then
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19383 $as_echo_n "checking for shmat in -lipc... " >&6; }
19384 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
19385 $as_echo_n "(cached) " >&6
19386 else
19387 ac_check_lib_save_LIBS=$LIBS
19388 LIBS="-lipc $LIBS"
19389 if test x$gcc_no_link = xyes; then
19390 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19391 fi
19392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19393 /* end confdefs.h. */
19394
19395 /* Override any GCC internal prototype to avoid an error.
19396 Use char because int might match the return type of a GCC
19397 builtin and then its argument prototype would still apply. */
19398 #ifdef __cplusplus
19399 extern "C"
19400 #endif
19401 char shmat ();
19402 int
19403 main ()
19404 {
19405 return shmat ();
19406 ;
19407 return 0;
19408 }
19409 _ACEOF
19410 if ac_fn_c_try_link "$LINENO"; then :
19411 ac_cv_lib_ipc_shmat=yes
19412 else
19413 ac_cv_lib_ipc_shmat=no
19414 fi
19415 rm -f core conftest.err conftest.$ac_objext \
19416 conftest$ac_exeext conftest.$ac_ext
19417 LIBS=$ac_check_lib_save_LIBS
19418 fi
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19420 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
19421 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
19422 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19423 fi
19424
19425 fi
19426 fi
19427
19428 # Check for libraries that X11R6 Xt/Xaw programs need.
19429 ac_save_LDFLAGS=$LDFLAGS
19430 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19431 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19432 # check for ICE first), but we must link in the order -lSM -lICE or
19433 # we get undefined symbols. So assume we have SM if we have ICE.
19434 # These have to be linked with before -lX11, unlike the other
19435 # libraries we check for below, so use a different variable.
19436 # John Interrante, Karl Berry
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19438 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19439 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
19440 $as_echo_n "(cached) " >&6
19441 else
19442 ac_check_lib_save_LIBS=$LIBS
19443 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19444 if test x$gcc_no_link = xyes; then
19445 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19446 fi
19447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19448 /* end confdefs.h. */
19449
19450 /* Override any GCC internal prototype to avoid an error.
19451 Use char because int might match the return type of a GCC
19452 builtin and then its argument prototype would still apply. */
19453 #ifdef __cplusplus
19454 extern "C"
19455 #endif
19456 char IceConnectionNumber ();
19457 int
19458 main ()
19459 {
19460 return IceConnectionNumber ();
19461 ;
19462 return 0;
19463 }
19464 _ACEOF
19465 if ac_fn_c_try_link "$LINENO"; then :
19466 ac_cv_lib_ICE_IceConnectionNumber=yes
19467 else
19468 ac_cv_lib_ICE_IceConnectionNumber=no
19469 fi
19470 rm -f core conftest.err conftest.$ac_objext \
19471 conftest$ac_exeext conftest.$ac_ext
19472 LIBS=$ac_check_lib_save_LIBS
19473 fi
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19475 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19476 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
19477 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19478 fi
19479
19480 LDFLAGS=$ac_save_LDFLAGS
19481
19482 fi
19483
19484 if test "$no_x" = yes; then
19485 as_fn_error "GTK+ peers requested but no X library available" "$LINENO" 5
19486 fi
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
19488 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
19489 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
19490 $as_echo_n "(cached) " >&6
19491 else
19492 ac_check_lib_save_LIBS=$LIBS
19493 LIBS="-lXtst ${X_LIBS} $LIBS"
19494 if test x$gcc_no_link = xyes; then
19495 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19496 fi
19497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19498 /* end confdefs.h. */
19499
19500 /* Override any GCC internal prototype to avoid an error.
19501 Use char because int might match the return type of a GCC
19502 builtin and then its argument prototype would still apply. */
19503 #ifdef __cplusplus
19504 extern "C"
19505 #endif
19506 char XTestQueryExtension ();
19507 int
19508 main ()
19509 {
19510 return XTestQueryExtension ();
19511 ;
19512 return 0;
19513 }
19514 _ACEOF
19515 if ac_fn_c_try_link "$LINENO"; then :
19516 ac_cv_lib_Xtst_XTestQueryExtension=yes
19517 else
19518 ac_cv_lib_Xtst_XTestQueryExtension=no
19519 fi
19520 rm -f core conftest.err conftest.$ac_objext \
19521 conftest$ac_exeext conftest.$ac_ext
19522 LIBS=$ac_check_lib_save_LIBS
19523 fi
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
19525 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
19526 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
19527
19528 $as_echo "#define HAVE_XTEST 1" >>confdefs.h
19529 XTEST_LIBS="$XTEST_LIBS -X11 -lXtst"
19530 else
19531 true
19532 fi
19533
19534
19535
19536
19537 succeeded=no
19538
19539 if test -z "$PKG_CONFIG"; then
19540 # Extract the first word of "pkg-config", so it can be a program name with args.
19541 set dummy pkg-config; ac_word=$2
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19543 $as_echo_n "checking for $ac_word... " >&6; }
19544 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19545 $as_echo_n "(cached) " >&6
19546 else
19547 case $PKG_CONFIG in
19548 [\\/]* | ?:[\\/]*)
19549 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19550 ;;
19551 *)
19552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19553 for as_dir in $PATH
19554 do
19555 IFS=$as_save_IFS
19556 test -z "$as_dir" && as_dir=.
19557 for ac_exec_ext in '' $ac_executable_extensions; do
19558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19559 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19561 break 2
19562 fi
19563 done
19564 done
19565 IFS=$as_save_IFS
19566
19567 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19568 ;;
19569 esac
19570 fi
19571 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19572 if test -n "$PKG_CONFIG"; then
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19574 $as_echo "$PKG_CONFIG" >&6; }
19575 else
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19577 $as_echo "no" >&6; }
19578 fi
19579
19580
19581 fi
19582
19583 if test "$PKG_CONFIG" = "no" ; then
19584 echo "*** The pkg-config script could not be found. Make sure it is"
19585 echo "*** in your path, or set the PKG_CONFIG environment variable"
19586 echo "*** to the full path to pkg-config."
19587 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19588 else
19589 PKG_CONFIG_MIN_VERSION=0.9.0
19590 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
19592 $as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
19593
19594 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19596 $as_echo "yes" >&6; }
19597 succeeded=yes
19598
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
19600 $as_echo_n "checking GTK_CFLAGS... " >&6; }
19601 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
19603 $as_echo "$GTK_CFLAGS" >&6; }
19604
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
19606 $as_echo_n "checking GTK_LIBS... " >&6; }
19607 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
19609 $as_echo "$GTK_LIBS" >&6; }
19610 else
19611 GTK_CFLAGS=""
19612 GTK_LIBS=""
19613 ## If we have a custom action on failure, don't print errors, but
19614 ## do set a variable so people can do so.
19615 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19616 echo $GTK_PKG_ERRORS
19617 fi
19618
19619
19620
19621 else
19622 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19623 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19624 fi
19625 fi
19626
19627 if test $succeeded = yes; then
19628 :
19629 else
19630 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
19631 fi
19632
19633
19634 succeeded=no
19635
19636 if test -z "$PKG_CONFIG"; then
19637 # Extract the first word of "pkg-config", so it can be a program name with args.
19638 set dummy pkg-config; ac_word=$2
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19640 $as_echo_n "checking for $ac_word... " >&6; }
19641 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19642 $as_echo_n "(cached) " >&6
19643 else
19644 case $PKG_CONFIG in
19645 [\\/]* | ?:[\\/]*)
19646 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19647 ;;
19648 *)
19649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19650 for as_dir in $PATH
19651 do
19652 IFS=$as_save_IFS
19653 test -z "$as_dir" && as_dir=.
19654 for ac_exec_ext in '' $ac_executable_extensions; do
19655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19656 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19658 break 2
19659 fi
19660 done
19661 done
19662 IFS=$as_save_IFS
19663
19664 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19665 ;;
19666 esac
19667 fi
19668 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19669 if test -n "$PKG_CONFIG"; then
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19671 $as_echo "$PKG_CONFIG" >&6; }
19672 else
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19674 $as_echo "no" >&6; }
19675 fi
19676
19677
19678 fi
19679
19680 if test "$PKG_CONFIG" = "no" ; then
19681 echo "*** The pkg-config script could not be found. Make sure it is"
19682 echo "*** in your path, or set the PKG_CONFIG environment variable"
19683 echo "*** to the full path to pkg-config."
19684 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19685 else
19686 PKG_CONFIG_MIN_VERSION=0.9.0
19687 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
19689 $as_echo_n "checking for freetype2... " >&6; }
19690
19691 if $PKG_CONFIG --exists "freetype2" ; then
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19693 $as_echo "yes" >&6; }
19694 succeeded=yes
19695
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_CFLAGS" >&5
19697 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
19698 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_CFLAGS" >&5
19700 $as_echo "$FREETYPE2_CFLAGS" >&6; }
19701
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_LIBS" >&5
19703 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
19704 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_LIBS" >&5
19706 $as_echo "$FREETYPE2_LIBS" >&6; }
19707 else
19708 FREETYPE2_CFLAGS=""
19709 FREETYPE2_LIBS=""
19710 ## If we have a custom action on failure, don't print errors, but
19711 ## do set a variable so people can do so.
19712 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
19713 echo $FREETYPE2_PKG_ERRORS
19714 fi
19715
19716
19717
19718 else
19719 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19720 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19721 fi
19722 fi
19723
19724 if test $succeeded = yes; then
19725 :
19726 else
19727 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
19728 fi
19729
19730
19731 succeeded=no
19732
19733 if test -z "$PKG_CONFIG"; then
19734 # Extract the first word of "pkg-config", so it can be a program name with args.
19735 set dummy pkg-config; ac_word=$2
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19737 $as_echo_n "checking for $ac_word... " >&6; }
19738 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19739 $as_echo_n "(cached) " >&6
19740 else
19741 case $PKG_CONFIG in
19742 [\\/]* | ?:[\\/]*)
19743 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19744 ;;
19745 *)
19746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19747 for as_dir in $PATH
19748 do
19749 IFS=$as_save_IFS
19750 test -z "$as_dir" && as_dir=.
19751 for ac_exec_ext in '' $ac_executable_extensions; do
19752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19753 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19755 break 2
19756 fi
19757 done
19758 done
19759 IFS=$as_save_IFS
19760
19761 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19762 ;;
19763 esac
19764 fi
19765 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19766 if test -n "$PKG_CONFIG"; then
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19768 $as_echo "$PKG_CONFIG" >&6; }
19769 else
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19771 $as_echo "no" >&6; }
19772 fi
19773
19774
19775 fi
19776
19777 if test "$PKG_CONFIG" = "no" ; then
19778 echo "*** The pkg-config script could not be found. Make sure it is"
19779 echo "*** in your path, or set the PKG_CONFIG environment variable"
19780 echo "*** to the full path to pkg-config."
19781 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19782 else
19783 PKG_CONFIG_MIN_VERSION=0.9.0
19784 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pangoft2" >&5
19786 $as_echo_n "checking for pangoft2... " >&6; }
19787
19788 if $PKG_CONFIG --exists "pangoft2" ; then
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19790 $as_echo "yes" >&6; }
19791 succeeded=yes
19792
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_CFLAGS" >&5
19794 $as_echo_n "checking PANGOFT2_CFLAGS... " >&6; }
19795 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_CFLAGS" >&5
19797 $as_echo "$PANGOFT2_CFLAGS" >&6; }
19798
19799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_LIBS" >&5
19800 $as_echo_n "checking PANGOFT2_LIBS... " >&6; }
19801 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_LIBS" >&5
19803 $as_echo "$PANGOFT2_LIBS" >&6; }
19804 else
19805 PANGOFT2_CFLAGS=""
19806 PANGOFT2_LIBS=""
19807 ## If we have a custom action on failure, don't print errors, but
19808 ## do set a variable so people can do so.
19809 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
19810 echo $PANGOFT2_PKG_ERRORS
19811 fi
19812
19813
19814
19815 else
19816 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19817 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19818 fi
19819 fi
19820
19821 if test $succeeded = yes; then
19822 :
19823 else
19824 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
19825 fi
19826
19827
19828 succeeded=no
19829
19830 if test -z "$PKG_CONFIG"; then
19831 # Extract the first word of "pkg-config", so it can be a program name with args.
19832 set dummy pkg-config; ac_word=$2
19833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19834 $as_echo_n "checking for $ac_word... " >&6; }
19835 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19836 $as_echo_n "(cached) " >&6
19837 else
19838 case $PKG_CONFIG in
19839 [\\/]* | ?:[\\/]*)
19840 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19841 ;;
19842 *)
19843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19844 for as_dir in $PATH
19845 do
19846 IFS=$as_save_IFS
19847 test -z "$as_dir" && as_dir=.
19848 for ac_exec_ext in '' $ac_executable_extensions; do
19849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19850 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19852 break 2
19853 fi
19854 done
19855 done
19856 IFS=$as_save_IFS
19857
19858 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19859 ;;
19860 esac
19861 fi
19862 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19863 if test -n "$PKG_CONFIG"; then
19864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19865 $as_echo "$PKG_CONFIG" >&6; }
19866 else
19867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19868 $as_echo "no" >&6; }
19869 fi
19870
19871
19872 fi
19873
19874 if test "$PKG_CONFIG" = "no" ; then
19875 echo "*** The pkg-config script could not be found. Make sure it is"
19876 echo "*** in your path, or set the PKG_CONFIG environment variable"
19877 echo "*** to the full path to pkg-config."
19878 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19879 else
19880 PKG_CONFIG_MIN_VERSION=0.9.0
19881 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo >= 1.1.8" >&5
19883 $as_echo_n "checking for cairo >= 1.1.8... " >&6; }
19884
19885 if $PKG_CONFIG --exists "cairo >= 1.1.8" ; then
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19887 $as_echo "yes" >&6; }
19888 succeeded=yes
19889
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_CFLAGS" >&5
19891 $as_echo_n "checking CAIRO_CFLAGS... " >&6; }
19892 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.1.8"`
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_CFLAGS" >&5
19894 $as_echo "$CAIRO_CFLAGS" >&6; }
19895
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_LIBS" >&5
19897 $as_echo_n "checking CAIRO_LIBS... " >&6; }
19898 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.1.8"`
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_LIBS" >&5
19900 $as_echo "$CAIRO_LIBS" >&6; }
19901 else
19902 CAIRO_CFLAGS=""
19903 CAIRO_LIBS=""
19904 ## If we have a custom action on failure, don't print errors, but
19905 ## do set a variable so people can do so.
19906 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.1.8"`
19907 echo $CAIRO_PKG_ERRORS
19908 fi
19909
19910
19911
19912 else
19913 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19914 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19915 fi
19916 fi
19917
19918 if test $succeeded = yes; then
19919 :
19920 else
19921 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
19922 fi
19923
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
19925 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
19926 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
19927 $as_echo_n "(cached) " >&6
19928 else
19929 ac_check_lib_save_LIBS=$LIBS
19930 LIBS="-lXrender ${X_LIBS} $LIBS"
19931 if test x$gcc_no_link = xyes; then
19932 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19933 fi
19934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19935 /* end confdefs.h. */
19936
19937 /* Override any GCC internal prototype to avoid an error.
19938 Use char because int might match the return type of a GCC
19939 builtin and then its argument prototype would still apply. */
19940 #ifdef __cplusplus
19941 extern "C"
19942 #endif
19943 char XRenderQueryExtension ();
19944 int
19945 main ()
19946 {
19947 return XRenderQueryExtension ();
19948 ;
19949 return 0;
19950 }
19951 _ACEOF
19952 if ac_fn_c_try_link "$LINENO"; then :
19953 ac_cv_lib_Xrender_XRenderQueryExtension=yes
19954 else
19955 ac_cv_lib_Xrender_XRenderQueryExtension=no
19956 fi
19957 rm -f core conftest.err conftest.$ac_objext \
19958 conftest$ac_exeext conftest.$ac_ext
19959 LIBS=$ac_check_lib_save_LIBS
19960 fi
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
19962 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
19963 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
19964
19965 $as_echo "#define HAVE_XRENDER 1" >>confdefs.h
19966 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
19967 else
19968 true
19969 fi
19970
19971
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
19973 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
19974 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then :
19975 $as_echo_n "(cached) " >&6
19976 else
19977 ac_check_lib_save_LIBS=$LIBS
19978 LIBS="-lXrandr ${X_LIBS} $LIBS"
19979 if test x$gcc_no_link = xyes; then
19980 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19981 fi
19982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19983 /* end confdefs.h. */
19984
19985 /* Override any GCC internal prototype to avoid an error.
19986 Use char because int might match the return type of a GCC
19987 builtin and then its argument prototype would still apply. */
19988 #ifdef __cplusplus
19989 extern "C"
19990 #endif
19991 char XRRQueryExtension ();
19992 int
19993 main ()
19994 {
19995 return XRRQueryExtension ();
19996 ;
19997 return 0;
19998 }
19999 _ACEOF
20000 if ac_fn_c_try_link "$LINENO"; then :
20001 ac_cv_lib_Xrandr_XRRQueryExtension=yes
20002 else
20003 ac_cv_lib_Xrandr_XRRQueryExtension=no
20004 fi
20005 rm -f core conftest.err conftest.$ac_objext \
20006 conftest$ac_exeext conftest.$ac_ext
20007 LIBS=$ac_check_lib_save_LIBS
20008 fi
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
20010 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
20011 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then :
20012
20013 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
20014 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
20015 else
20016 true
20017 fi
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027 fi
20028
20029 if test "x${COMPILE_GCONF_PEER}" = xyes; then
20030
20031 succeeded=no
20032
20033 if test -z "$PKG_CONFIG"; then
20034 # Extract the first word of "pkg-config", so it can be a program name with args.
20035 set dummy pkg-config; ac_word=$2
20036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20037 $as_echo_n "checking for $ac_word... " >&6; }
20038 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20039 $as_echo_n "(cached) " >&6
20040 else
20041 case $PKG_CONFIG in
20042 [\\/]* | ?:[\\/]*)
20043 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20044 ;;
20045 *)
20046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20047 for as_dir in $PATH
20048 do
20049 IFS=$as_save_IFS
20050 test -z "$as_dir" && as_dir=.
20051 for ac_exec_ext in '' $ac_executable_extensions; do
20052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20053 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20055 break 2
20056 fi
20057 done
20058 done
20059 IFS=$as_save_IFS
20060
20061 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20062 ;;
20063 esac
20064 fi
20065 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20066 if test -n "$PKG_CONFIG"; then
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20068 $as_echo "$PKG_CONFIG" >&6; }
20069 else
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20071 $as_echo "no" >&6; }
20072 fi
20073
20074
20075 fi
20076
20077 if test "$PKG_CONFIG" = "no" ; then
20078 echo "*** The pkg-config script could not be found. Make sure it is"
20079 echo "*** in your path, or set the PKG_CONFIG environment variable"
20080 echo "*** to the full path to pkg-config."
20081 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20082 else
20083 PKG_CONFIG_MIN_VERSION=0.9.0
20084 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.6.0" >&5
20086 $as_echo_n "checking for gconf-2.0 >= 2.6.0... " >&6; }
20087
20088 if $PKG_CONFIG --exists "gconf-2.0 >= 2.6.0" ; then
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20090 $as_echo "yes" >&6; }
20091 succeeded=yes
20092
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
20094 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
20095 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.6.0"`
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
20097 $as_echo "$GCONF_CFLAGS" >&6; }
20098
20099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
20100 $as_echo_n "checking GCONF_LIBS... " >&6; }
20101 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.6.0"`
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
20103 $as_echo "$GCONF_LIBS" >&6; }
20104 else
20105 GCONF_CFLAGS=""
20106 GCONF_LIBS=""
20107 ## If we have a custom action on failure, don't print errors, but
20108 ## do set a variable so people can do so.
20109 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.6.0"`
20110 echo $GCONF_PKG_ERRORS
20111 fi
20112
20113
20114
20115 else
20116 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20117 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20118 fi
20119 fi
20120
20121 if test $succeeded = yes; then
20122 :
20123 else
20124 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
20125 fi
20126
20127
20128
20129
20130 succeeded=no
20131
20132 if test -z "$PKG_CONFIG"; then
20133 # Extract the first word of "pkg-config", so it can be a program name with args.
20134 set dummy pkg-config; ac_word=$2
20135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20136 $as_echo_n "checking for $ac_word... " >&6; }
20137 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20138 $as_echo_n "(cached) " >&6
20139 else
20140 case $PKG_CONFIG in
20141 [\\/]* | ?:[\\/]*)
20142 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20143 ;;
20144 *)
20145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20146 for as_dir in $PATH
20147 do
20148 IFS=$as_save_IFS
20149 test -z "$as_dir" && as_dir=.
20150 for ac_exec_ext in '' $ac_executable_extensions; do
20151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20152 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20154 break 2
20155 fi
20156 done
20157 done
20158 IFS=$as_save_IFS
20159
20160 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20161 ;;
20162 esac
20163 fi
20164 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20165 if test -n "$PKG_CONFIG"; then
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20167 $as_echo "$PKG_CONFIG" >&6; }
20168 else
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20170 $as_echo "no" >&6; }
20171 fi
20172
20173
20174 fi
20175
20176 if test "$PKG_CONFIG" = "no" ; then
20177 echo "*** The pkg-config script could not be found. Make sure it is"
20178 echo "*** in your path, or set the PKG_CONFIG environment variable"
20179 echo "*** to the full path to pkg-config."
20180 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20181 else
20182 PKG_CONFIG_MIN_VERSION=0.9.0
20183 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
20185 $as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
20186
20187 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20189 $as_echo "yes" >&6; }
20190 succeeded=yes
20191
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
20193 $as_echo_n "checking GDK_CFLAGS... " >&6; }
20194 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
20196 $as_echo "$GDK_CFLAGS" >&6; }
20197
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
20199 $as_echo_n "checking GDK_LIBS... " >&6; }
20200 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
20202 $as_echo "$GDK_LIBS" >&6; }
20203 else
20204 GDK_CFLAGS=""
20205 GDK_LIBS=""
20206 ## If we have a custom action on failure, don't print errors, but
20207 ## do set a variable so people can do so.
20208 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
20209 echo $GDK_PKG_ERRORS
20210 fi
20211
20212
20213
20214 else
20215 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20216 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20217 fi
20218 fi
20219
20220 if test $succeeded = yes; then
20221 :
20222 else
20223 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
20224 fi
20225
20226
20227
20228 USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
20229 if test "$USE_GCONF_PREFS_PEER" = ""; then
20230 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
20231 fi
20232 fi
20233
20234 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
20235 GST_MAJORMINOR=0.10
20236 GST_REQUIRED=0.10.10
20237
20238
20239 succeeded=no
20240
20241 if test -z "$PKG_CONFIG"; then
20242 # Extract the first word of "pkg-config", so it can be a program name with args.
20243 set dummy pkg-config; ac_word=$2
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20245 $as_echo_n "checking for $ac_word... " >&6; }
20246 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20247 $as_echo_n "(cached) " >&6
20248 else
20249 case $PKG_CONFIG in
20250 [\\/]* | ?:[\\/]*)
20251 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20252 ;;
20253 *)
20254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20255 for as_dir in $PATH
20256 do
20257 IFS=$as_save_IFS
20258 test -z "$as_dir" && as_dir=.
20259 for ac_exec_ext in '' $ac_executable_extensions; do
20260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20261 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20263 break 2
20264 fi
20265 done
20266 done
20267 IFS=$as_save_IFS
20268
20269 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20270 ;;
20271 esac
20272 fi
20273 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20274 if test -n "$PKG_CONFIG"; then
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20276 $as_echo "$PKG_CONFIG" >&6; }
20277 else
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20279 $as_echo "no" >&6; }
20280 fi
20281
20282
20283 fi
20284
20285 if test "$PKG_CONFIG" = "no" ; then
20286 echo "*** The pkg-config script could not be found. Make sure it is"
20287 echo "*** in your path, or set the PKG_CONFIG environment variable"
20288 echo "*** to the full path to pkg-config."
20289 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20290 else
20291 PKG_CONFIG_MIN_VERSION=0.9.0
20292 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20294 $as_echo_n "checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20295
20296 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20298 $as_echo "yes" >&6; }
20299 succeeded=yes
20300
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_CFLAGS" >&5
20302 $as_echo_n "checking GSTREAMER_CFLAGS... " >&6; }
20303 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_CFLAGS" >&5
20305 $as_echo "$GSTREAMER_CFLAGS" >&6; }
20306
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_LIBS" >&5
20308 $as_echo_n "checking GSTREAMER_LIBS... " >&6; }
20309 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_LIBS" >&5
20311 $as_echo "$GSTREAMER_LIBS" >&6; }
20312 else
20313 GSTREAMER_CFLAGS=""
20314 GSTREAMER_LIBS=""
20315 ## If we have a custom action on failure, don't print errors, but
20316 ## do set a variable so people can do so.
20317 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20318 echo $GSTREAMER_PKG_ERRORS
20319 fi
20320
20321
20322
20323 else
20324 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20325 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20326 fi
20327 fi
20328
20329 if test $succeeded = yes; then
20330 :
20331 else
20332 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
20333 fi
20334
20335
20336
20337
20338
20339 succeeded=no
20340
20341 if test -z "$PKG_CONFIG"; then
20342 # Extract the first word of "pkg-config", so it can be a program name with args.
20343 set dummy pkg-config; ac_word=$2
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20345 $as_echo_n "checking for $ac_word... " >&6; }
20346 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20347 $as_echo_n "(cached) " >&6
20348 else
20349 case $PKG_CONFIG in
20350 [\\/]* | ?:[\\/]*)
20351 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20352 ;;
20353 *)
20354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20355 for as_dir in $PATH
20356 do
20357 IFS=$as_save_IFS
20358 test -z "$as_dir" && as_dir=.
20359 for ac_exec_ext in '' $ac_executable_extensions; do
20360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20361 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20363 break 2
20364 fi
20365 done
20366 done
20367 IFS=$as_save_IFS
20368
20369 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20370 ;;
20371 esac
20372 fi
20373 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20374 if test -n "$PKG_CONFIG"; then
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20376 $as_echo "$PKG_CONFIG" >&6; }
20377 else
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20379 $as_echo "no" >&6; }
20380 fi
20381
20382
20383 fi
20384
20385 if test "$PKG_CONFIG" = "no" ; then
20386 echo "*** The pkg-config script could not be found. Make sure it is"
20387 echo "*** in your path, or set the PKG_CONFIG environment variable"
20388 echo "*** to the full path to pkg-config."
20389 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20390 else
20391 PKG_CONFIG_MIN_VERSION=0.9.0
20392 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20394 $as_echo_n "checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20395
20396 if $PKG_CONFIG --exists "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20398 $as_echo "yes" >&6; }
20399 succeeded=yes
20400
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_CFLAGS" >&5
20402 $as_echo_n "checking GSTREAMER_BASE_CFLAGS... " >&6; }
20403 GSTREAMER_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_CFLAGS" >&5
20405 $as_echo "$GSTREAMER_BASE_CFLAGS" >&6; }
20406
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_LIBS" >&5
20408 $as_echo_n "checking GSTREAMER_BASE_LIBS... " >&6; }
20409 GSTREAMER_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_LIBS" >&5
20411 $as_echo "$GSTREAMER_BASE_LIBS" >&6; }
20412 else
20413 GSTREAMER_BASE_CFLAGS=""
20414 GSTREAMER_BASE_LIBS=""
20415 ## If we have a custom action on failure, don't print errors, but
20416 ## do set a variable so people can do so.
20417 GSTREAMER_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20418 echo $GSTREAMER_BASE_PKG_ERRORS
20419 fi
20420
20421
20422
20423 else
20424 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20425 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20426 fi
20427 fi
20428
20429 if test $succeeded = yes; then
20430 :
20431 else
20432 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
20433 fi
20434
20435
20436
20437
20438
20439 succeeded=no
20440
20441 if test -z "$PKG_CONFIG"; then
20442 # Extract the first word of "pkg-config", so it can be a program name with args.
20443 set dummy pkg-config; ac_word=$2
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20445 $as_echo_n "checking for $ac_word... " >&6; }
20446 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20447 $as_echo_n "(cached) " >&6
20448 else
20449 case $PKG_CONFIG in
20450 [\\/]* | ?:[\\/]*)
20451 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20452 ;;
20453 *)
20454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20455 for as_dir in $PATH
20456 do
20457 IFS=$as_save_IFS
20458 test -z "$as_dir" && as_dir=.
20459 for ac_exec_ext in '' $ac_executable_extensions; do
20460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20461 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20463 break 2
20464 fi
20465 done
20466 done
20467 IFS=$as_save_IFS
20468
20469 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20470 ;;
20471 esac
20472 fi
20473 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20474 if test -n "$PKG_CONFIG"; then
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20476 $as_echo "$PKG_CONFIG" >&6; }
20477 else
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20479 $as_echo "no" >&6; }
20480 fi
20481
20482
20483 fi
20484
20485 if test "$PKG_CONFIG" = "no" ; then
20486 echo "*** The pkg-config script could not be found. Make sure it is"
20487 echo "*** in your path, or set the PKG_CONFIG environment variable"
20488 echo "*** to the full path to pkg-config."
20489 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20490 else
20491 PKG_CONFIG_MIN_VERSION=0.9.0
20492 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20494 $as_echo_n "checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20495
20496 if $PKG_CONFIG --exists "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20498 $as_echo "yes" >&6; }
20499 succeeded=yes
20500
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
20502 $as_echo_n "checking GSTREAMER_PLUGINS_BASE_CFLAGS... " >&6; }
20503 GSTREAMER_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
20505 $as_echo "$GSTREAMER_PLUGINS_BASE_CFLAGS" >&6; }
20506
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_LIBS" >&5
20508 $as_echo_n "checking GSTREAMER_PLUGINS_BASE_LIBS... " >&6; }
20509 GSTREAMER_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_LIBS" >&5
20511 $as_echo "$GSTREAMER_PLUGINS_BASE_LIBS" >&6; }
20512 else
20513 GSTREAMER_PLUGINS_BASE_CFLAGS=""
20514 GSTREAMER_PLUGINS_BASE_LIBS=""
20515 ## If we have a custom action on failure, don't print errors, but
20516 ## do set a variable so people can do so.
20517 GSTREAMER_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20518 echo $GSTREAMER_PLUGINS_BASE_PKG_ERRORS
20519 fi
20520
20521
20522
20523 else
20524 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20525 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20526 fi
20527 fi
20528
20529 if test $succeeded = yes; then
20530 :
20531 else
20532 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
20533 fi
20534
20535
20536
20537
20538 GST_PLUGIN_LDFLAGS='-module -avoid-version -Wno-unused-parameter -no-undefined'
20539
20540
20541
20542 succeeded=no
20543
20544 if test -z "$PKG_CONFIG"; then
20545 # Extract the first word of "pkg-config", so it can be a program name with args.
20546 set dummy pkg-config; ac_word=$2
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20548 $as_echo_n "checking for $ac_word... " >&6; }
20549 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20550 $as_echo_n "(cached) " >&6
20551 else
20552 case $PKG_CONFIG in
20553 [\\/]* | ?:[\\/]*)
20554 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20555 ;;
20556 *)
20557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20558 for as_dir in $PATH
20559 do
20560 IFS=$as_save_IFS
20561 test -z "$as_dir" && as_dir=.
20562 for ac_exec_ext in '' $ac_executable_extensions; do
20563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20564 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20566 break 2
20567 fi
20568 done
20569 done
20570 IFS=$as_save_IFS
20571
20572 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20573 ;;
20574 esac
20575 fi
20576 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20577 if test -n "$PKG_CONFIG"; then
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20579 $as_echo "$PKG_CONFIG" >&6; }
20580 else
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20582 $as_echo "no" >&6; }
20583 fi
20584
20585
20586 fi
20587
20588 if test "$PKG_CONFIG" = "no" ; then
20589 echo "*** The pkg-config script could not be found. Make sure it is"
20590 echo "*** in your path, or set the PKG_CONFIG environment variable"
20591 echo "*** to the full path to pkg-config."
20592 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20593 else
20594 PKG_CONFIG_MIN_VERSION=0.9.0
20595 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
20597 $as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
20598
20599 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20601 $as_echo "yes" >&6; }
20602 succeeded=yes
20603
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
20605 $as_echo_n "checking GDK_CFLAGS... " >&6; }
20606 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
20608 $as_echo "$GDK_CFLAGS" >&6; }
20609
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
20611 $as_echo_n "checking GDK_LIBS... " >&6; }
20612 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
20613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
20614 $as_echo "$GDK_LIBS" >&6; }
20615 else
20616 GDK_CFLAGS=""
20617 GDK_LIBS=""
20618 ## If we have a custom action on failure, don't print errors, but
20619 ## do set a variable so people can do so.
20620 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
20621 echo $GDK_PKG_ERRORS
20622 fi
20623
20624
20625
20626 else
20627 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20628 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20629 fi
20630 fi
20631
20632 if test $succeeded = yes; then
20633 :
20634 else
20635 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
20636 fi
20637
20638
20639
20640
20641 GSTREAMER_FILE_READER=gnu.javax.sound.sampled.gstreamer.io.GstAudioFileReader
20642 GSTREAMER_MIXER_PROVIDER=gnu.javax.sound.sampled.gstreamer.GStreamerMixerProvider
20643 fi
20644
20645
20646
20647 if test "x${COMPILE_QT_PEER}" = xyes; then
20648
20649 succeeded=no
20650
20651 if test -z "$PKG_CONFIG"; then
20652 # Extract the first word of "pkg-config", so it can be a program name with args.
20653 set dummy pkg-config; ac_word=$2
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20655 $as_echo_n "checking for $ac_word... " >&6; }
20656 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20657 $as_echo_n "(cached) " >&6
20658 else
20659 case $PKG_CONFIG in
20660 [\\/]* | ?:[\\/]*)
20661 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20662 ;;
20663 *)
20664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20665 for as_dir in $PATH
20666 do
20667 IFS=$as_save_IFS
20668 test -z "$as_dir" && as_dir=.
20669 for ac_exec_ext in '' $ac_executable_extensions; do
20670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20671 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20673 break 2
20674 fi
20675 done
20676 done
20677 IFS=$as_save_IFS
20678
20679 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20680 ;;
20681 esac
20682 fi
20683 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20684 if test -n "$PKG_CONFIG"; then
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20686 $as_echo "$PKG_CONFIG" >&6; }
20687 else
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20689 $as_echo "no" >&6; }
20690 fi
20691
20692
20693 fi
20694
20695 if test "$PKG_CONFIG" = "no" ; then
20696 echo "*** The pkg-config script could not be found. Make sure it is"
20697 echo "*** in your path, or set the PKG_CONFIG environment variable"
20698 echo "*** to the full path to pkg-config."
20699 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20700 else
20701 PKG_CONFIG_MIN_VERSION=0.9.0
20702 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore QtGui >= 4.1.0" >&5
20704 $as_echo_n "checking for QtCore QtGui >= 4.1.0... " >&6; }
20705
20706 if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20708 $as_echo "yes" >&6; }
20709 succeeded=yes
20710
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_CFLAGS" >&5
20712 $as_echo_n "checking QT_CFLAGS... " >&6; }
20713 QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CFLAGS" >&5
20715 $as_echo "$QT_CFLAGS" >&6; }
20716
20717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_LIBS" >&5
20718 $as_echo_n "checking QT_LIBS... " >&6; }
20719 QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
20720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LIBS" >&5
20721 $as_echo "$QT_LIBS" >&6; }
20722 else
20723 QT_CFLAGS=""
20724 QT_LIBS=""
20725 ## If we have a custom action on failure, don't print errors, but
20726 ## do set a variable so people can do so.
20727 QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
20728
20729 fi
20730
20731
20732
20733 else
20734 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20735 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20736 fi
20737 fi
20738
20739 if test $succeeded = yes; then
20740 HAVE_QT4="yes"
20741 else
20742 HAVE_QT4="no"
20743 fi
20744
20745 if test "x$HAVE_QT4" = "xyes"; then
20746 QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
20747 EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
20748 as_ac_File=`$as_echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $QT_INCLUDE_DIR/QWidget" >&5
20750 $as_echo_n "checking for $QT_INCLUDE_DIR/QWidget... " >&6; }
20751 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
20752 $as_echo_n "(cached) " >&6
20753 else
20754 test "$cross_compiling" = yes &&
20755 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20756 if test -r "$QT_INCLUDE_DIR/QWidget"; then
20757 eval "$as_ac_File=yes"
20758 else
20759 eval "$as_ac_File=no"
20760 fi
20761 fi
20762 eval ac_res=\$$as_ac_File
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20764 $as_echo "$ac_res" >&6; }
20765 eval as_val=\$$as_ac_File
20766 if test "x$as_val" = x""yes; then :
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: No extra QT_INCLUDE_DIR needed" >&5
20768 $as_echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
20769 else
20770 as_ac_File=`$as_echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
20772 $as_echo_n "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... " >&6; }
20773 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
20774 $as_echo_n "(cached) " >&6
20775 else
20776 test "$cross_compiling" = yes &&
20777 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20778 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
20779 eval "$as_ac_File=yes"
20780 else
20781 eval "$as_ac_File=no"
20782 fi
20783 fi
20784 eval ac_res=\$$as_ac_File
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20786 $as_echo "$ac_res" >&6; }
20787 eval as_val=\$$as_ac_File
20788 if test "x$as_val" = x""yes; then :
20789 QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
20790 else
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: QWidget not found" >&5
20792 $as_echo "$as_me: WARNING: QWidget not found" >&2;}
20793 fi
20794
20795 fi
20796
20797 # Extract the first word of "moc", so it can be a program name with args.
20798 set dummy moc; ac_word=$2
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20800 $as_echo_n "checking for $ac_word... " >&6; }
20801 if test "${ac_cv_prog_MOC+set}" = set; then :
20802 $as_echo_n "(cached) " >&6
20803 else
20804 if test -n "$MOC"; then
20805 ac_cv_prog_MOC="$MOC" # Let the user override the test.
20806 else
20807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20808 for as_dir in $PATH
20809 do
20810 IFS=$as_save_IFS
20811 test -z "$as_dir" && as_dir=.
20812 for ac_exec_ext in '' $ac_executable_extensions; do
20813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20814 ac_cv_prog_MOC="moc"
20815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20816 break 2
20817 fi
20818 done
20819 done
20820 IFS=$as_save_IFS
20821
20822 fi
20823 fi
20824 MOC=$ac_cv_prog_MOC
20825 if test -n "$MOC"; then
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
20827 $as_echo "$MOC" >&6; }
20828 else
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20830 $as_echo "no" >&6; }
20831 fi
20832
20833
20834 # Extract the first word of "moc-qt4", so it can be a program name with args.
20835 set dummy moc-qt4; ac_word=$2
20836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20837 $as_echo_n "checking for $ac_word... " >&6; }
20838 if test "${ac_cv_prog_MOC+set}" = set; then :
20839 $as_echo_n "(cached) " >&6
20840 else
20841 if test -n "$MOC"; then
20842 ac_cv_prog_MOC="$MOC" # Let the user override the test.
20843 else
20844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20845 for as_dir in $PATH
20846 do
20847 IFS=$as_save_IFS
20848 test -z "$as_dir" && as_dir=.
20849 for ac_exec_ext in '' $ac_executable_extensions; do
20850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20851 ac_cv_prog_MOC="moc-qt4"
20852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20853 break 2
20854 fi
20855 done
20856 done
20857 IFS=$as_save_IFS
20858
20859 fi
20860 fi
20861 MOC=$ac_cv_prog_MOC
20862 if test -n "$MOC"; then
20863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
20864 $as_echo "$MOC" >&6; }
20865 else
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20867 $as_echo "no" >&6; }
20868 fi
20869
20870
20871 fi
20872 if test "x$HAVE_QT4" = "xno"; then
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
20874 $as_echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
20875 case "$host_os" in
20876 darwin*)
20877
20878 # Check whether --with-qt4dir was given.
20879 if test "${with_qt4dir+set}" = set; then :
20880 withval=$with_qt4dir; QT4DIR=$withval
20881
20882 fi
20883
20884 if test x"$QT4DIR" = x ; then
20885 as_fn_error "*** No path for Qt4 --with-qt4dir option given" "$LINENO" 5
20886 fi
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: QT4DIR... $QT4DIR" >&5
20888 $as_echo "QT4DIR... $QT4DIR" >&6; }
20889 # Extract the first word of "moc", so it can be a program name with args.
20890 set dummy moc; ac_word=$2
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20892 $as_echo_n "checking for $ac_word... " >&6; }
20893 if test "${ac_cv_prog_MOC+set}" = set; then :
20894 $as_echo_n "(cached) " >&6
20895 else
20896 if test -n "$MOC"; then
20897 ac_cv_prog_MOC="$MOC" # Let the user override the test.
20898 else
20899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20900 for as_dir in $QT4DIR/bin
20901 do
20902 IFS=$as_save_IFS
20903 test -z "$as_dir" && as_dir=.
20904 for ac_exec_ext in '' $ac_executable_extensions; do
20905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20906 ac_cv_prog_MOC="$QT4DIR/bin/moc"
20907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20908 break 2
20909 fi
20910 done
20911 done
20912 IFS=$as_save_IFS
20913
20914 fi
20915 fi
20916 MOC=$ac_cv_prog_MOC
20917 if test -n "$MOC"; then
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
20919 $as_echo "$MOC" >&6; }
20920 else
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20922 $as_echo "no" >&6; }
20923 fi
20924
20925
20926 if test x"$MOC" = x; then
20927 as_fn_error "*** This is not the right Qt installation" "$LINENO" 5
20928 fi
20929 QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
20930 QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
20931 QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
20932 QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
20933 ;;
20934 *)
20935 as_fn_error "*** Please check PKG_CONFIG_PATH or the version
20936 of your installed Qt4 installation." "$LINENO" 5
20937 ;;
20938 esac
20939 fi
20940 { $as_echo "$as_me:${as_lineno-$LINENO}: Set QT_CFLAGS... $QT_CFLAGS" >&5
20941 $as_echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
20942
20943
20944 fi
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
20946 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
20947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20948 /* end confdefs.h. */
20949 #include <sys/socket.h>
20950 int
20951 main ()
20952 {
20953 int f = MSG_NOSIGNAL;
20954 ;
20955 return 0;
20956 }
20957 _ACEOF
20958 if ac_fn_c_try_compile "$LINENO"; then :
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20960 $as_echo "yes" >&6; }
20961
20962 $as_echo "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
20963
20964 else
20965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20966 $as_echo "no" >&6; }
20967
20968 fi
20969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_NOSIGPIPE " >&5
20971 $as_echo_n "checking for SO_NOSIGPIPE ... " >&6; }
20972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20973 /* end confdefs.h. */
20974 #include <sys/socket.h>
20975 int
20976 main ()
20977 {
20978 int f = SO_NOSIGPIPE;
20979 ;
20980 return 0;
20981 }
20982 _ACEOF
20983 if ac_fn_c_try_compile "$LINENO"; then :
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20985 $as_echo "yes" >&6; }
20986
20987 $as_echo "#define HAVE_SO_NOSIGPIPE 1" >>confdefs.h
20988
20989 else
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20991 $as_echo "no" >&6; }
20992
20993 fi
20994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_WAITALL" >&5
20996 $as_echo_n "checking for MSG_WAITALL... " >&6; }
20997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20998 /* end confdefs.h. */
20999 #include <sys/socket.h>
21000 int
21001 main ()
21002 {
21003 int f = MSG_WAITALL;
21004 ;
21005 return 0;
21006 }
21007 _ACEOF
21008 if ac_fn_c_try_compile "$LINENO"; then :
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21010 $as_echo "yes" >&6; }
21011
21012 $as_echo "#define HAVE_MSG_WAITALL 1" >>confdefs.h
21013
21014 else
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21016 $as_echo "no" >&6; }
21017
21018 fi
21019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21020
21021 if test "x${COMPILE_PLUGIN}" = xyes; then
21022
21023 succeeded=no
21024
21025 if test -z "$PKG_CONFIG"; then
21026 # Extract the first word of "pkg-config", so it can be a program name with args.
21027 set dummy pkg-config; ac_word=$2
21028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21029 $as_echo_n "checking for $ac_word... " >&6; }
21030 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21031 $as_echo_n "(cached) " >&6
21032 else
21033 case $PKG_CONFIG in
21034 [\\/]* | ?:[\\/]*)
21035 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21036 ;;
21037 *)
21038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21039 for as_dir in $PATH
21040 do
21041 IFS=$as_save_IFS
21042 test -z "$as_dir" && as_dir=.
21043 for ac_exec_ext in '' $ac_executable_extensions; do
21044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21045 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21047 break 2
21048 fi
21049 done
21050 done
21051 IFS=$as_save_IFS
21052
21053 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21054 ;;
21055 esac
21056 fi
21057 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21058 if test -n "$PKG_CONFIG"; then
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21060 $as_echo "$PKG_CONFIG" >&6; }
21061 else
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21063 $as_echo "no" >&6; }
21064 fi
21065
21066
21067 fi
21068
21069 if test "$PKG_CONFIG" = "no" ; then
21070 echo "*** The pkg-config script could not be found. Make sure it is"
21071 echo "*** in your path, or set the PKG_CONFIG environment variable"
21072 echo "*** to the full path to pkg-config."
21073 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21074 else
21075 PKG_CONFIG_MIN_VERSION=0.9.0
21076 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin libxul-unstable" >&5
21078 $as_echo_n "checking for mozilla-plugin libxul-unstable... " >&6; }
21079
21080 if $PKG_CONFIG --exists "mozilla-plugin libxul-unstable" ; then
21081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21082 $as_echo "yes" >&6; }
21083 succeeded=yes
21084
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21086 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21087 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin libxul-unstable"`
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21089 $as_echo "$MOZILLA_CFLAGS" >&6; }
21090
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21092 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21093 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin libxul-unstable"`
21094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21095 $as_echo "$MOZILLA_LIBS" >&6; }
21096 else
21097 MOZILLA_CFLAGS=""
21098 MOZILLA_LIBS=""
21099 ## If we have a custom action on failure, don't print errors, but
21100 ## do set a variable so people can do so.
21101 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin libxul-unstable"`
21102
21103 fi
21104
21105
21106
21107 else
21108 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21109 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21110 fi
21111 fi
21112
21113 if test $succeeded = yes; then
21114 MOZILLA_FOUND=yes
21115 else
21116 MOZILLA_FOUND=no
21117 fi
21118
21119 if test "x${MOZILLA_FOUND}" = xno; then
21120
21121 succeeded=no
21122
21123 if test -z "$PKG_CONFIG"; then
21124 # Extract the first word of "pkg-config", so it can be a program name with args.
21125 set dummy pkg-config; ac_word=$2
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21127 $as_echo_n "checking for $ac_word... " >&6; }
21128 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21129 $as_echo_n "(cached) " >&6
21130 else
21131 case $PKG_CONFIG in
21132 [\\/]* | ?:[\\/]*)
21133 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21134 ;;
21135 *)
21136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21137 for as_dir in $PATH
21138 do
21139 IFS=$as_save_IFS
21140 test -z "$as_dir" && as_dir=.
21141 for ac_exec_ext in '' $ac_executable_extensions; do
21142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21143 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21145 break 2
21146 fi
21147 done
21148 done
21149 IFS=$as_save_IFS
21150
21151 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21152 ;;
21153 esac
21154 fi
21155 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21156 if test -n "$PKG_CONFIG"; then
21157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21158 $as_echo "$PKG_CONFIG" >&6; }
21159 else
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21161 $as_echo "no" >&6; }
21162 fi
21163
21164
21165 fi
21166
21167 if test "$PKG_CONFIG" = "no" ; then
21168 echo "*** The pkg-config script could not be found. Make sure it is"
21169 echo "*** in your path, or set the PKG_CONFIG environment variable"
21170 echo "*** to the full path to pkg-config."
21171 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21172 else
21173 PKG_CONFIG_MIN_VERSION=0.9.0
21174 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin" >&5
21176 $as_echo_n "checking for mozilla-plugin... " >&6; }
21177
21178 if $PKG_CONFIG --exists "mozilla-plugin" ; then
21179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21180 $as_echo "yes" >&6; }
21181 succeeded=yes
21182
21183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21184 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21185 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21187 $as_echo "$MOZILLA_CFLAGS" >&6; }
21188
21189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21190 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21191 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21193 $as_echo "$MOZILLA_LIBS" >&6; }
21194 else
21195 MOZILLA_CFLAGS=""
21196 MOZILLA_LIBS=""
21197 ## If we have a custom action on failure, don't print errors, but
21198 ## do set a variable so people can do so.
21199 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
21200
21201 fi
21202
21203
21204
21205 else
21206 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21207 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21208 fi
21209 fi
21210
21211 if test $succeeded = yes; then
21212 MOZILLA_FOUND=yes
21213 else
21214 MOZILLA_FOUND=no
21215 fi
21216
21217 fi
21218 if test "x${MOZILLA_FOUND}" = xno; then
21219
21220 succeeded=no
21221
21222 if test -z "$PKG_CONFIG"; then
21223 # Extract the first word of "pkg-config", so it can be a program name with args.
21224 set dummy pkg-config; ac_word=$2
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21226 $as_echo_n "checking for $ac_word... " >&6; }
21227 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21228 $as_echo_n "(cached) " >&6
21229 else
21230 case $PKG_CONFIG in
21231 [\\/]* | ?:[\\/]*)
21232 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21233 ;;
21234 *)
21235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21236 for as_dir in $PATH
21237 do
21238 IFS=$as_save_IFS
21239 test -z "$as_dir" && as_dir=.
21240 for ac_exec_ext in '' $ac_executable_extensions; do
21241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21242 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21244 break 2
21245 fi
21246 done
21247 done
21248 IFS=$as_save_IFS
21249
21250 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21251 ;;
21252 esac
21253 fi
21254 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21255 if test -n "$PKG_CONFIG"; then
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21257 $as_echo "$PKG_CONFIG" >&6; }
21258 else
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21260 $as_echo "no" >&6; }
21261 fi
21262
21263
21264 fi
21265
21266 if test "$PKG_CONFIG" = "no" ; then
21267 echo "*** The pkg-config script could not be found. Make sure it is"
21268 echo "*** in your path, or set the PKG_CONFIG environment variable"
21269 echo "*** to the full path to pkg-config."
21270 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21271 else
21272 PKG_CONFIG_MIN_VERSION=0.9.0
21273 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for firefox-plugin firefox-xpcom" >&5
21275 $as_echo_n "checking for firefox-plugin firefox-xpcom... " >&6; }
21276
21277 if $PKG_CONFIG --exists "firefox-plugin firefox-xpcom" ; then
21278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21279 $as_echo "yes" >&6; }
21280 succeeded=yes
21281
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21283 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21284 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin firefox-xpcom"`
21285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21286 $as_echo "$MOZILLA_CFLAGS" >&6; }
21287
21288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21289 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21290 MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin firefox-xpcom"`
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21292 $as_echo "$MOZILLA_LIBS" >&6; }
21293 else
21294 MOZILLA_CFLAGS=""
21295 MOZILLA_LIBS=""
21296 ## If we have a custom action on failure, don't print errors, but
21297 ## do set a variable so people can do so.
21298 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin firefox-xpcom"`
21299
21300 fi
21301
21302
21303
21304 else
21305 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21306 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21307 fi
21308 fi
21309
21310 if test $succeeded = yes; then
21311 MOZILLA_FOUND=yes
21312 else
21313 MOZILLA_FOUND=no
21314 fi
21315
21316 fi
21317 if test "x${MOZILLA_FOUND}" = xno; then
21318
21319 succeeded=no
21320
21321 if test -z "$PKG_CONFIG"; then
21322 # Extract the first word of "pkg-config", so it can be a program name with args.
21323 set dummy pkg-config; ac_word=$2
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21325 $as_echo_n "checking for $ac_word... " >&6; }
21326 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21327 $as_echo_n "(cached) " >&6
21328 else
21329 case $PKG_CONFIG in
21330 [\\/]* | ?:[\\/]*)
21331 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21332 ;;
21333 *)
21334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21335 for as_dir in $PATH
21336 do
21337 IFS=$as_save_IFS
21338 test -z "$as_dir" && as_dir=.
21339 for ac_exec_ext in '' $ac_executable_extensions; do
21340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21341 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21343 break 2
21344 fi
21345 done
21346 done
21347 IFS=$as_save_IFS
21348
21349 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21350 ;;
21351 esac
21352 fi
21353 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21354 if test -n "$PKG_CONFIG"; then
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21356 $as_echo "$PKG_CONFIG" >&6; }
21357 else
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21359 $as_echo "no" >&6; }
21360 fi
21361
21362
21363 fi
21364
21365 if test "$PKG_CONFIG" = "no" ; then
21366 echo "*** The pkg-config script could not be found. Make sure it is"
21367 echo "*** in your path, or set the PKG_CONFIG environment variable"
21368 echo "*** to the full path to pkg-config."
21369 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21370 else
21371 PKG_CONFIG_MIN_VERSION=0.9.0
21372 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xulrunner-plugin xulrunner-xpcom" >&5
21374 $as_echo_n "checking for xulrunner-plugin xulrunner-xpcom... " >&6; }
21375
21376 if $PKG_CONFIG --exists "xulrunner-plugin xulrunner-xpcom" ; then
21377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21378 $as_echo "yes" >&6; }
21379 succeeded=yes
21380
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21382 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21383 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin xulrunner-xpcom"`
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21385 $as_echo "$MOZILLA_CFLAGS" >&6; }
21386
21387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21388 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21389 MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin xulrunner-xpcom"`
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21391 $as_echo "$MOZILLA_LIBS" >&6; }
21392 else
21393 MOZILLA_CFLAGS=""
21394 MOZILLA_LIBS=""
21395 ## If we have a custom action on failure, don't print errors, but
21396 ## do set a variable so people can do so.
21397 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin xulrunner-xpcom"`
21398
21399 fi
21400
21401
21402
21403 else
21404 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21405 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21406 fi
21407 fi
21408
21409 if test $succeeded = yes; then
21410 MOZILLA_FOUND=yes
21411 else
21412 MOZILLA_FOUND=no
21413 fi
21414
21415 fi
21416 if test "x${MOZILLA_FOUND}" = xno; then
21417
21418 succeeded=no
21419
21420 if test -z "$PKG_CONFIG"; then
21421 # Extract the first word of "pkg-config", so it can be a program name with args.
21422 set dummy pkg-config; ac_word=$2
21423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21424 $as_echo_n "checking for $ac_word... " >&6; }
21425 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21426 $as_echo_n "(cached) " >&6
21427 else
21428 case $PKG_CONFIG in
21429 [\\/]* | ?:[\\/]*)
21430 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21431 ;;
21432 *)
21433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21434 for as_dir in $PATH
21435 do
21436 IFS=$as_save_IFS
21437 test -z "$as_dir" && as_dir=.
21438 for ac_exec_ext in '' $ac_executable_extensions; do
21439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21440 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21442 break 2
21443 fi
21444 done
21445 done
21446 IFS=$as_save_IFS
21447
21448 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21449 ;;
21450 esac
21451 fi
21452 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21453 if test -n "$PKG_CONFIG"; then
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21455 $as_echo "$PKG_CONFIG" >&6; }
21456 else
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21458 $as_echo "no" >&6; }
21459 fi
21460
21461
21462 fi
21463
21464 if test "$PKG_CONFIG" = "no" ; then
21465 echo "*** The pkg-config script could not be found. Make sure it is"
21466 echo "*** in your path, or set the PKG_CONFIG environment variable"
21467 echo "*** to the full path to pkg-config."
21468 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21469 else
21470 PKG_CONFIG_MIN_VERSION=0.9.0
21471 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-firefox-plugin mozilla-firefox-xpcom" >&5
21473 $as_echo_n "checking for mozilla-firefox-plugin mozilla-firefox-xpcom... " >&6; }
21474
21475 if $PKG_CONFIG --exists "mozilla-firefox-plugin mozilla-firefox-xpcom" ; then
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21477 $as_echo "yes" >&6; }
21478 succeeded=yes
21479
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21481 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21482 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21484 $as_echo "$MOZILLA_CFLAGS" >&6; }
21485
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21487 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21488 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21490 $as_echo "$MOZILLA_LIBS" >&6; }
21491 else
21492 MOZILLA_CFLAGS=""
21493 MOZILLA_LIBS=""
21494 ## If we have a custom action on failure, don't print errors, but
21495 ## do set a variable so people can do so.
21496 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21497
21498 fi
21499
21500
21501
21502 else
21503 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21504 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21505 fi
21506 fi
21507
21508 if test $succeeded = yes; then
21509 MOZILLA_FOUND=yes
21510 else
21511 MOZILLA_FOUND=no
21512 fi
21513
21514 fi
21515 if test "x${MOZILLA_FOUND}" = xno; then
21516
21517 succeeded=no
21518
21519 if test -z "$PKG_CONFIG"; then
21520 # Extract the first word of "pkg-config", so it can be a program name with args.
21521 set dummy pkg-config; ac_word=$2
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21523 $as_echo_n "checking for $ac_word... " >&6; }
21524 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21525 $as_echo_n "(cached) " >&6
21526 else
21527 case $PKG_CONFIG in
21528 [\\/]* | ?:[\\/]*)
21529 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21530 ;;
21531 *)
21532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21533 for as_dir in $PATH
21534 do
21535 IFS=$as_save_IFS
21536 test -z "$as_dir" && as_dir=.
21537 for ac_exec_ext in '' $ac_executable_extensions; do
21538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21539 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21541 break 2
21542 fi
21543 done
21544 done
21545 IFS=$as_save_IFS
21546
21547 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21548 ;;
21549 esac
21550 fi
21551 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21552 if test -n "$PKG_CONFIG"; then
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21554 $as_echo "$PKG_CONFIG" >&6; }
21555 else
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21557 $as_echo "no" >&6; }
21558 fi
21559
21560
21561 fi
21562
21563 if test "$PKG_CONFIG" = "no" ; then
21564 echo "*** The pkg-config script could not be found. Make sure it is"
21565 echo "*** in your path, or set the PKG_CONFIG environment variable"
21566 echo "*** to the full path to pkg-config."
21567 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21568 else
21569 PKG_CONFIG_MIN_VERSION=0.9.0
21570 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seamonkey-plugin seamonkey-xpcom" >&5
21572 $as_echo_n "checking for seamonkey-plugin seamonkey-xpcom... " >&6; }
21573
21574 if $PKG_CONFIG --exists "seamonkey-plugin seamonkey-xpcom" ; then
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21576 $as_echo "yes" >&6; }
21577 succeeded=yes
21578
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21580 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21581 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "seamonkey-plugin seamonkey-xpcom"`
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21583 $as_echo "$MOZILLA_CFLAGS" >&6; }
21584
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21586 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21587 MOZILLA_LIBS=`$PKG_CONFIG --libs "seamonkey-plugin seamonkey-xpcom"`
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21589 $as_echo "$MOZILLA_LIBS" >&6; }
21590 else
21591 MOZILLA_CFLAGS=""
21592 MOZILLA_LIBS=""
21593 ## If we have a custom action on failure, don't print errors, but
21594 ## do set a variable so people can do so.
21595 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "seamonkey-plugin seamonkey-xpcom"`
21596
21597 fi
21598
21599
21600
21601 else
21602 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21603 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21604 fi
21605 fi
21606
21607 if test $succeeded = yes; then
21608 MOZILLA_FOUND=yes
21609 else
21610 MOZILLA_FOUND=no
21611 fi
21612
21613 fi
21614 if test "x${MOZILLA_FOUND}" = xno; then
21615
21616 succeeded=no
21617
21618 if test -z "$PKG_CONFIG"; then
21619 # Extract the first word of "pkg-config", so it can be a program name with args.
21620 set dummy pkg-config; ac_word=$2
21621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21622 $as_echo_n "checking for $ac_word... " >&6; }
21623 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21624 $as_echo_n "(cached) " >&6
21625 else
21626 case $PKG_CONFIG in
21627 [\\/]* | ?:[\\/]*)
21628 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21629 ;;
21630 *)
21631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21632 for as_dir in $PATH
21633 do
21634 IFS=$as_save_IFS
21635 test -z "$as_dir" && as_dir=.
21636 for ac_exec_ext in '' $ac_executable_extensions; do
21637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21638 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21640 break 2
21641 fi
21642 done
21643 done
21644 IFS=$as_save_IFS
21645
21646 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21647 ;;
21648 esac
21649 fi
21650 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21651 if test -n "$PKG_CONFIG"; then
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21653 $as_echo "$PKG_CONFIG" >&6; }
21654 else
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21656 $as_echo "no" >&6; }
21657 fi
21658
21659
21660 fi
21661
21662 if test "$PKG_CONFIG" = "no" ; then
21663 echo "*** The pkg-config script could not be found. Make sure it is"
21664 echo "*** in your path, or set the PKG_CONFIG environment variable"
21665 echo "*** to the full path to pkg-config."
21666 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21667 else
21668 PKG_CONFIG_MIN_VERSION=0.9.0
21669 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iceape-plugin iceape-xpcom" >&5
21671 $as_echo_n "checking for iceape-plugin iceape-xpcom... " >&6; }
21672
21673 if $PKG_CONFIG --exists "iceape-plugin iceape-xpcom" ; then
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21675 $as_echo "yes" >&6; }
21676 succeeded=yes
21677
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21679 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21680 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "iceape-plugin iceape-xpcom"`
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21682 $as_echo "$MOZILLA_CFLAGS" >&6; }
21683
21684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21685 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21686 MOZILLA_LIBS=`$PKG_CONFIG --libs "iceape-plugin iceape-xpcom"`
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21688 $as_echo "$MOZILLA_LIBS" >&6; }
21689 else
21690 MOZILLA_CFLAGS=""
21691 MOZILLA_LIBS=""
21692 ## If we have a custom action on failure, don't print errors, but
21693 ## do set a variable so people can do so.
21694 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "iceape-plugin iceape-xpcom"`
21695
21696 fi
21697
21698
21699
21700 else
21701 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21702 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21703 fi
21704 fi
21705
21706 if test $succeeded = yes; then
21707 MOZILLA_FOUND=yes
21708 else
21709 MOZILLA_FOUND=no
21710 fi
21711
21712 fi
21713 if test "x${MOZILLA_FOUND}" = xno; then
21714 as_fn_error "Couldn't find plugin support headers and libraries, try --disable-plugin" "$LINENO" 5
21715 fi
21716
21717
21718 succeeded=no
21719
21720 if test -z "$PKG_CONFIG"; then
21721 # Extract the first word of "pkg-config", so it can be a program name with args.
21722 set dummy pkg-config; ac_word=$2
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21724 $as_echo_n "checking for $ac_word... " >&6; }
21725 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21726 $as_echo_n "(cached) " >&6
21727 else
21728 case $PKG_CONFIG in
21729 [\\/]* | ?:[\\/]*)
21730 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21731 ;;
21732 *)
21733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21734 for as_dir in $PATH
21735 do
21736 IFS=$as_save_IFS
21737 test -z "$as_dir" && as_dir=.
21738 for ac_exec_ext in '' $ac_executable_extensions; do
21739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21740 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21742 break 2
21743 fi
21744 done
21745 done
21746 IFS=$as_save_IFS
21747
21748 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21749 ;;
21750 esac
21751 fi
21752 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21753 if test -n "$PKG_CONFIG"; then
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21755 $as_echo "$PKG_CONFIG" >&6; }
21756 else
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21758 $as_echo "no" >&6; }
21759 fi
21760
21761
21762 fi
21763
21764 if test "$PKG_CONFIG" = "no" ; then
21765 echo "*** The pkg-config script could not be found. Make sure it is"
21766 echo "*** in your path, or set the PKG_CONFIG environment variable"
21767 echo "*** to the full path to pkg-config."
21768 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21769 else
21770 PKG_CONFIG_MIN_VERSION=0.9.0
21771 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0" >&5
21773 $as_echo_n "checking for glib-2.0... " >&6; }
21774
21775 if $PKG_CONFIG --exists "glib-2.0" ; then
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21777 $as_echo "yes" >&6; }
21778 succeeded=yes
21779
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
21781 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
21782 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
21784 $as_echo "$GLIB_CFLAGS" >&6; }
21785
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
21787 $as_echo_n "checking GLIB_LIBS... " >&6; }
21788 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
21790 $as_echo "$GLIB_LIBS" >&6; }
21791 else
21792 GLIB_CFLAGS=""
21793 GLIB_LIBS=""
21794 ## If we have a custom action on failure, don't print errors, but
21795 ## do set a variable so people can do so.
21796 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
21797 echo $GLIB_PKG_ERRORS
21798 fi
21799
21800
21801
21802 else
21803 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21804 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21805 fi
21806 fi
21807
21808 if test $succeeded = yes; then
21809 :
21810 else
21811 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
21812 fi
21813
21814
21815 succeeded=no
21816
21817 if test -z "$PKG_CONFIG"; then
21818 # Extract the first word of "pkg-config", so it can be a program name with args.
21819 set dummy pkg-config; ac_word=$2
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21821 $as_echo_n "checking for $ac_word... " >&6; }
21822 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21823 $as_echo_n "(cached) " >&6
21824 else
21825 case $PKG_CONFIG in
21826 [\\/]* | ?:[\\/]*)
21827 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21828 ;;
21829 *)
21830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21831 for as_dir in $PATH
21832 do
21833 IFS=$as_save_IFS
21834 test -z "$as_dir" && as_dir=.
21835 for ac_exec_ext in '' $ac_executable_extensions; do
21836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21837 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21839 break 2
21840 fi
21841 done
21842 done
21843 IFS=$as_save_IFS
21844
21845 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21846 ;;
21847 esac
21848 fi
21849 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21850 if test -n "$PKG_CONFIG"; then
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21852 $as_echo "$PKG_CONFIG" >&6; }
21853 else
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21855 $as_echo "no" >&6; }
21856 fi
21857
21858
21859 fi
21860
21861 if test "$PKG_CONFIG" = "no" ; then
21862 echo "*** The pkg-config script could not be found. Make sure it is"
21863 echo "*** in your path, or set the PKG_CONFIG environment variable"
21864 echo "*** to the full path to pkg-config."
21865 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21866 else
21867 PKG_CONFIG_MIN_VERSION=0.9.0
21868 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
21870 $as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
21871
21872 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21874 $as_echo "yes" >&6; }
21875 succeeded=yes
21876
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
21878 $as_echo_n "checking GTK_CFLAGS... " >&6; }
21879 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
21881 $as_echo "$GTK_CFLAGS" >&6; }
21882
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
21884 $as_echo_n "checking GTK_LIBS... " >&6; }
21885 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
21887 $as_echo "$GTK_LIBS" >&6; }
21888 else
21889 GTK_CFLAGS=""
21890 GTK_LIBS=""
21891 ## If we have a custom action on failure, don't print errors, but
21892 ## do set a variable so people can do so.
21893 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
21894 echo $GTK_PKG_ERRORS
21895 fi
21896
21897
21898
21899 else
21900 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21901 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21902 fi
21903 fi
21904
21905 if test $succeeded = yes; then
21906 :
21907 else
21908 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
21909 fi
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919 PLUGIN_DIR=$HOME/.mozilla/plugins/
21920
21921 fi
21922
21923
21924 # Check whether --with-gmp was given.
21925 if test "${with_gmp+set}" = set; then :
21926 withval=$with_gmp;
21927 fi
21928
21929
21930 # Check whether --with-gmp_include was given.
21931 if test "${with_gmp_include+set}" = set; then :
21932 withval=$with_gmp_include;
21933 fi
21934
21935
21936 # Check whether --with-gmp_lib was given.
21937 if test "${with_gmp_lib+set}" = set; then :
21938 withval=$with_gmp_lib;
21939 fi
21940
21941
21942 if test "x$with_gmp" != x; then
21943 gmplibs=-lgmp
21944 gmpinc=
21945 gmplibs="-L$with_gmp/lib $gmplibs"
21946 gmpinc="-I$with_gmp/include $gmpinc"
21947 if test "x$with_gmp_include" != x; then
21948 gmpinc="-I$with_gmp_include $gmpinc"
21949 fi
21950 if test "x$with_gmp_lib" != x; then
21951 gmplibs="-L$with_gmp_lib $gmplibs"
21952 fi
21953 else
21954 gmplibs="-lgmp"
21955 gmpinc="-I/usr/include"
21956 fi
21957
21958 if test "x${COMPILE_GMP}" = xyes; then
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_mul_si in -lgmp" >&5
21960 $as_echo_n "checking for __gmpz_mul_si in -lgmp... " >&6; }
21961 if test "${ac_cv_lib_gmp___gmpz_mul_si+set}" = set; then :
21962 $as_echo_n "(cached) " >&6
21963 else
21964 ac_check_lib_save_LIBS=$LIBS
21965 LIBS="-lgmp $LIBS"
21966 if test x$gcc_no_link = xyes; then
21967 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21968 fi
21969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21970 /* end confdefs.h. */
21971
21972 /* Override any GCC internal prototype to avoid an error.
21973 Use char because int might match the return type of a GCC
21974 builtin and then its argument prototype would still apply. */
21975 #ifdef __cplusplus
21976 extern "C"
21977 #endif
21978 char __gmpz_mul_si ();
21979 int
21980 main ()
21981 {
21982 return __gmpz_mul_si ();
21983 ;
21984 return 0;
21985 }
21986 _ACEOF
21987 if ac_fn_c_try_link "$LINENO"; then :
21988 ac_cv_lib_gmp___gmpz_mul_si=yes
21989 else
21990 ac_cv_lib_gmp___gmpz_mul_si=no
21991 fi
21992 rm -f core conftest.err conftest.$ac_objext \
21993 conftest$ac_exeext conftest.$ac_ext
21994 LIBS=$ac_check_lib_save_LIBS
21995 fi
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_mul_si" >&5
21997 $as_echo "$ac_cv_lib_gmp___gmpz_mul_si" >&6; }
21998 if test "x$ac_cv_lib_gmp___gmpz_mul_si" = x""yes; then :
21999 GMP_CFLAGS="$gmpinc"
22000 GMP_LIBS="$gmplibs"
22001 else
22002 GMP_CFLAGS=
22003 GMP_LIBS=
22004 fi
22005
22006
22007
22008
22009 for ac_header in gmp.h
22010 do :
22011 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
22012 if test "x$ac_cv_header_gmp_h" = x""yes; then :
22013 cat >>confdefs.h <<_ACEOF
22014 #define HAVE_GMP_H 1
22015 _ACEOF
22016
22017 fi
22018
22019 done
22020
22021 fi
22022
22023 else
22024 COMPILE_GMP=no
22025 fi
22026
22027 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
22028
22029
22030 # Check whether --with-javah was given.
22031 if test "${with_javah+set}" = set; then :
22032 withval=$with_javah;
22033 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
22034
22035 if test "x${withval}" != x; then
22036 if test -f "${withval}"; then
22037 USER_JAVAH="${withval}"
22038 else
22039 # Extract the first word of ""${withval}"", so it can be a program name with args.
22040 set dummy "${withval}"; ac_word=$2
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22042 $as_echo_n "checking for $ac_word... " >&6; }
22043 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22044 $as_echo_n "(cached) " >&6
22045 else
22046 case $USER_JAVAH in
22047 [\\/]* | ?:[\\/]*)
22048 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22049 ;;
22050 *)
22051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22052 for as_dir in $PATH
22053 do
22054 IFS=$as_save_IFS
22055 test -z "$as_dir" && as_dir=.
22056 for ac_exec_ext in '' $ac_executable_extensions; do
22057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22058 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22060 break 2
22061 fi
22062 done
22063 done
22064 IFS=$as_save_IFS
22065
22066 ;;
22067 esac
22068 fi
22069 USER_JAVAH=$ac_cv_path_USER_JAVAH
22070 if test -n "$USER_JAVAH"; then
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22072 $as_echo "$USER_JAVAH" >&6; }
22073 else
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22075 $as_echo "no" >&6; }
22076 fi
22077
22078
22079 fi
22080 else
22081 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22082 do
22083 # Extract the first word of "$ac_prog", so it can be a program name with args.
22084 set dummy $ac_prog; ac_word=$2
22085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22086 $as_echo_n "checking for $ac_word... " >&6; }
22087 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22088 $as_echo_n "(cached) " >&6
22089 else
22090 case $USER_JAVAH in
22091 [\\/]* | ?:[\\/]*)
22092 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22093 ;;
22094 *)
22095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22096 for as_dir in $PATH
22097 do
22098 IFS=$as_save_IFS
22099 test -z "$as_dir" && as_dir=.
22100 for ac_exec_ext in '' $ac_executable_extensions; do
22101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22102 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22104 break 2
22105 fi
22106 done
22107 done
22108 IFS=$as_save_IFS
22109
22110 ;;
22111 esac
22112 fi
22113 USER_JAVAH=$ac_cv_path_USER_JAVAH
22114 if test -n "$USER_JAVAH"; then
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22116 $as_echo "$USER_JAVAH" >&6; }
22117 else
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22119 $as_echo "no" >&6; }
22120 fi
22121
22122
22123 test -n "$USER_JAVAH" && break
22124 done
22125
22126 fi
22127
22128 if test "x${USER_JAVAH}" = x; then
22129 as_fn_error "can not find javah" "$LINENO" 5
22130 fi
22131
22132 else
22133
22134 if test "x" != x; then
22135 if test -f ""; then
22136 USER_JAVAH=""
22137 else
22138 # Extract the first word of """", so it can be a program name with args.
22139 set dummy ""; ac_word=$2
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22141 $as_echo_n "checking for $ac_word... " >&6; }
22142 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22143 $as_echo_n "(cached) " >&6
22144 else
22145 case $USER_JAVAH in
22146 [\\/]* | ?:[\\/]*)
22147 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22148 ;;
22149 *)
22150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22151 for as_dir in $PATH
22152 do
22153 IFS=$as_save_IFS
22154 test -z "$as_dir" && as_dir=.
22155 for ac_exec_ext in '' $ac_executable_extensions; do
22156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22157 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22159 break 2
22160 fi
22161 done
22162 done
22163 IFS=$as_save_IFS
22164
22165 ;;
22166 esac
22167 fi
22168 USER_JAVAH=$ac_cv_path_USER_JAVAH
22169 if test -n "$USER_JAVAH"; then
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22171 $as_echo "$USER_JAVAH" >&6; }
22172 else
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22174 $as_echo "no" >&6; }
22175 fi
22176
22177
22178 fi
22179 else
22180 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22181 do
22182 # Extract the first word of "$ac_prog", so it can be a program name with args.
22183 set dummy $ac_prog; ac_word=$2
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22185 $as_echo_n "checking for $ac_word... " >&6; }
22186 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22187 $as_echo_n "(cached) " >&6
22188 else
22189 case $USER_JAVAH in
22190 [\\/]* | ?:[\\/]*)
22191 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22192 ;;
22193 *)
22194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22195 for as_dir in $PATH
22196 do
22197 IFS=$as_save_IFS
22198 test -z "$as_dir" && as_dir=.
22199 for ac_exec_ext in '' $ac_executable_extensions; do
22200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22201 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22203 break 2
22204 fi
22205 done
22206 done
22207 IFS=$as_save_IFS
22208
22209 ;;
22210 esac
22211 fi
22212 USER_JAVAH=$ac_cv_path_USER_JAVAH
22213 if test -n "$USER_JAVAH"; then
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22215 $as_echo "$USER_JAVAH" >&6; }
22216 else
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22218 $as_echo "no" >&6; }
22219 fi
22220
22221
22222 test -n "$USER_JAVAH" && break
22223 done
22224
22225 fi
22226
22227 if test "x${USER_JAVAH}" = x; then
22228 as_fn_error "can not find javah" "$LINENO" 5
22229 fi
22230
22231 fi
22232
22233 else
22234
22235
22236 if test "x" != x; then
22237 if test -f ""; then
22238 USER_JAVAH=""
22239 else
22240 # Extract the first word of """", so it can be a program name with args.
22241 set dummy ""; ac_word=$2
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22243 $as_echo_n "checking for $ac_word... " >&6; }
22244 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22245 $as_echo_n "(cached) " >&6
22246 else
22247 case $USER_JAVAH in
22248 [\\/]* | ?:[\\/]*)
22249 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22250 ;;
22251 *)
22252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22253 for as_dir in $PATH
22254 do
22255 IFS=$as_save_IFS
22256 test -z "$as_dir" && as_dir=.
22257 for ac_exec_ext in '' $ac_executable_extensions; do
22258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22259 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22261 break 2
22262 fi
22263 done
22264 done
22265 IFS=$as_save_IFS
22266
22267 ;;
22268 esac
22269 fi
22270 USER_JAVAH=$ac_cv_path_USER_JAVAH
22271 if test -n "$USER_JAVAH"; then
22272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22273 $as_echo "$USER_JAVAH" >&6; }
22274 else
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22276 $as_echo "no" >&6; }
22277 fi
22278
22279
22280 fi
22281 else
22282 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22283 do
22284 # Extract the first word of "$ac_prog", so it can be a program name with args.
22285 set dummy $ac_prog; ac_word=$2
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22287 $as_echo_n "checking for $ac_word... " >&6; }
22288 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22289 $as_echo_n "(cached) " >&6
22290 else
22291 case $USER_JAVAH in
22292 [\\/]* | ?:[\\/]*)
22293 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22294 ;;
22295 *)
22296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22297 for as_dir in $PATH
22298 do
22299 IFS=$as_save_IFS
22300 test -z "$as_dir" && as_dir=.
22301 for ac_exec_ext in '' $ac_executable_extensions; do
22302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22303 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22305 break 2
22306 fi
22307 done
22308 done
22309 IFS=$as_save_IFS
22310
22311 ;;
22312 esac
22313 fi
22314 USER_JAVAH=$ac_cv_path_USER_JAVAH
22315 if test -n "$USER_JAVAH"; then
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22317 $as_echo "$USER_JAVAH" >&6; }
22318 else
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22320 $as_echo "no" >&6; }
22321 fi
22322
22323
22324 test -n "$USER_JAVAH" && break
22325 done
22326
22327 fi
22328
22329 if test "x${USER_JAVAH}" = x; then
22330 as_fn_error "can not find javah" "$LINENO" 5
22331 fi
22332
22333
22334 fi
22335
22336
22337
22338 fi
22339
22340 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/jni/native-lib"
22341
22342
22343 if test "x${COMPILE_JNI}" = xyes; then
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking jni_md.h support" >&5
22345 $as_echo_n "checking jni_md.h support... " >&6; }
22346 if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22348 $as_echo "yes" >&6; }
22349 else
22350 target_cpu=x86
22351 target_os=linux-gnu
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no" >&5
22353 $as_echo "$as_me: WARNING: no" >&2;}
22354 fi
22355 ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
22356 ac_dests="include/jni_md.h"
22357 while test -n "$ac_sources"; do
22358 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22359 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22360 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
22361 done
22362 ac_config_links="$ac_config_links $ac_config_links_1"
22363
22364 fi
22365
22366
22367
22368 # Check whether --with-vm-classes was given.
22369 if test "${with_vm_classes+set}" = set; then :
22370 withval=$with_vm_classes; vm_classes="$with_vm_classes"
22371 else
22372 vm_classes='${top_srcdir}/vm/reference'
22373 fi
22374
22375
22376
22377
22378
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
22380 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
22381 # Check whether --enable-maintainer-mode was given.
22382 if test "${enable_maintainer_mode+set}" = set; then :
22383 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
22384 else
22385 USE_MAINTAINER_MODE=no
22386 fi
22387
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
22389 $as_echo "$USE_MAINTAINER_MODE" >&6; }
22390 if test $USE_MAINTAINER_MODE = yes; then
22391 MAINTAINER_MODE_TRUE=
22392 MAINTAINER_MODE_FALSE='#'
22393 else
22394 MAINTAINER_MODE_TRUE='#'
22395 MAINTAINER_MODE_FALSE=
22396 fi
22397
22398 MAINT=$MAINTAINER_MODE_TRUE
22399
22400
22401
22402 # Check whether --enable-debug was given.
22403 if test "${enable_debug+set}" = set; then :
22404 enableval=$enable_debug; case "${enableval}" in
22405 yes)
22406 LIBDEBUG="true"
22407
22408 $as_echo "#define DEBUG 1" >>confdefs.h
22409
22410 ;;
22411 no) LIBDEBUG="false" ;;
22412 *) as_fn_error "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
22413 esac
22414 else
22415 LIBDEBUG="false"
22416 fi
22417
22418
22419
22420 # Check whether --enable-load-library was given.
22421 if test "${enable_load_library+set}" = set; then :
22422 enableval=$enable_load_library; case "${enableval}" in
22423 yes) INIT_LOAD_LIBRARY="true" ;;
22424 no) INIT_LOAD_LIBRARY="false" ;;
22425 *) as_fn_error "bad value ${enableval} for --enable-load-library" "$LINENO" 5 ;;
22426 esac
22427 else
22428 INIT_LOAD_LIBRARY="true"
22429 fi
22430
22431
22432
22433
22434
22435 # Check whether --with-ecj-jar was given.
22436 if test "${with_ecj_jar+set}" = set; then :
22437 withval=$with_ecj_jar; ECJ_JAR=$withval
22438 else
22439 if test -f $multi_basedir/ecj.jar; then
22440 ECJ_JAR='$(jardir)/ecj.jar'
22441 fi
22442 fi
22443
22444
22445
22446 # Check whether --enable-java-lang-system-explicit-initialization was given.
22447 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then :
22448 enableval=$enable_java_lang_system_explicit_initialization; case "${enableval}" in
22449 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
22450 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
22451 *) as_fn_error "bad value ${enableval} for --enable-java-lang-system-explicit-initialization" "$LINENO" 5 ;;
22452 esac
22453 else
22454 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
22455 fi
22456
22457
22458
22459
22460 REMOVE=""
22461
22462
22463 # Extract the first word of "mkdir", so it can be a program name with args.
22464 set dummy mkdir; ac_word=$2
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22466 $as_echo_n "checking for $ac_word... " >&6; }
22467 if test "${ac_cv_path_MKDIR+set}" = set; then :
22468 $as_echo_n "(cached) " >&6
22469 else
22470 case $MKDIR in
22471 [\\/]* | ?:[\\/]*)
22472 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
22473 ;;
22474 *)
22475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22476 for as_dir in $PATH
22477 do
22478 IFS=$as_save_IFS
22479 test -z "$as_dir" && as_dir=.
22480 for ac_exec_ext in '' $ac_executable_extensions; do
22481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22482 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
22483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22484 break 2
22485 fi
22486 done
22487 done
22488 IFS=$as_save_IFS
22489
22490 ;;
22491 esac
22492 fi
22493 MKDIR=$ac_cv_path_MKDIR
22494 if test -n "$MKDIR"; then
22495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
22496 $as_echo "$MKDIR" >&6; }
22497 else
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22499 $as_echo "no" >&6; }
22500 fi
22501
22502
22503 # Extract the first word of "cp", so it can be a program name with args.
22504 set dummy cp; ac_word=$2
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22506 $as_echo_n "checking for $ac_word... " >&6; }
22507 if test "${ac_cv_path_CP+set}" = set; then :
22508 $as_echo_n "(cached) " >&6
22509 else
22510 case $CP in
22511 [\\/]* | ?:[\\/]*)
22512 ac_cv_path_CP="$CP" # Let the user override the test with a path.
22513 ;;
22514 *)
22515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22516 for as_dir in $PATH
22517 do
22518 IFS=$as_save_IFS
22519 test -z "$as_dir" && as_dir=.
22520 for ac_exec_ext in '' $ac_executable_extensions; do
22521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22522 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
22523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22524 break 2
22525 fi
22526 done
22527 done
22528 IFS=$as_save_IFS
22529
22530 ;;
22531 esac
22532 fi
22533 CP=$ac_cv_path_CP
22534 if test -n "$CP"; then
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
22536 $as_echo "$CP" >&6; }
22537 else
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22539 $as_echo "no" >&6; }
22540 fi
22541
22542
22543 # Extract the first word of "date", so it can be a program name with args.
22544 set dummy date; ac_word=$2
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22546 $as_echo_n "checking for $ac_word... " >&6; }
22547 if test "${ac_cv_path_DATE+set}" = set; then :
22548 $as_echo_n "(cached) " >&6
22549 else
22550 case $DATE in
22551 [\\/]* | ?:[\\/]*)
22552 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
22553 ;;
22554 *)
22555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22556 for as_dir in $PATH
22557 do
22558 IFS=$as_save_IFS
22559 test -z "$as_dir" && as_dir=.
22560 for ac_exec_ext in '' $ac_executable_extensions; do
22561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22562 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
22563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22564 break 2
22565 fi
22566 done
22567 done
22568 IFS=$as_save_IFS
22569
22570 ;;
22571 esac
22572 fi
22573 DATE=$ac_cv_path_DATE
22574 if test -n "$DATE"; then
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
22576 $as_echo "$DATE" >&6; }
22577 else
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22579 $as_echo "no" >&6; }
22580 fi
22581
22582
22583
22584 # Extract the first word of "find", so it can be a program name with args.
22585 set dummy find; ac_word=$2
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22587 $as_echo_n "checking for $ac_word... " >&6; }
22588 if test "${ac_cv_path_FIND+set}" = set; then :
22589 $as_echo_n "(cached) " >&6
22590 else
22591 case $FIND in
22592 [\\/]* | ?:[\\/]*)
22593 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
22594 ;;
22595 *)
22596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22597 for as_dir in $PATH
22598 do
22599 IFS=$as_save_IFS
22600 test -z "$as_dir" && as_dir=.
22601 for ac_exec_ext in '' $ac_executable_extensions; do
22602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22603 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
22604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22605 break 2
22606 fi
22607 done
22608 done
22609 IFS=$as_save_IFS
22610
22611 ;;
22612 esac
22613 fi
22614 FIND=$ac_cv_path_FIND
22615 if test -n "$FIND"; then
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
22617 $as_echo "$FIND" >&6; }
22618 else
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22620 $as_echo "no" >&6; }
22621 fi
22622
22623
22624
22625
22626 # Extract the first word of "zip", so it can be a program name with args.
22627 set dummy zip; ac_word=$2
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22629 $as_echo_n "checking for $ac_word... " >&6; }
22630 if test "${ac_cv_path_ZIP+set}" = set; then :
22631 $as_echo_n "(cached) " >&6
22632 else
22633 case $ZIP in
22634 [\\/]* | ?:[\\/]*)
22635 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
22636 ;;
22637 *)
22638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22639 for as_dir in $PATH
22640 do
22641 IFS=$as_save_IFS
22642 test -z "$as_dir" && as_dir=.
22643 for ac_exec_ext in '' $ac_executable_extensions; do
22644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22645 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
22646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22647 break 2
22648 fi
22649 done
22650 done
22651 IFS=$as_save_IFS
22652
22653 ;;
22654 esac
22655 fi
22656 ZIP=$ac_cv_path_ZIP
22657 if test -n "$ZIP"; then
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
22659 $as_echo "$ZIP" >&6; }
22660 else
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22662 $as_echo "no" >&6; }
22663 fi
22664
22665
22666
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a jar-like tool" >&5
22668 $as_echo_n "checking for a jar-like tool... " >&6; }
22669
22670 # Check whether --with-jar was given.
22671 if test "${with_jar+set}" = set; then :
22672 withval=$with_jar;
22673 case "${withval}" in
22674 yes)
22675 JAR=yes
22676 ;;
22677 no)
22678 JAR=no
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
22680 $as_echo "${JAR}" >&6; }
22681 ;;
22682 *)
22683 if test -f "${withval}"; then
22684 JAR="${withval}"
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
22686 $as_echo "${JAR}" >&6; }
22687 else
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22689 $as_echo "not found" >&6; }
22690 as_fn_error "The jar tool ${withval} was not found." "$LINENO" 5
22691 fi
22692 ;;
22693 esac
22694
22695 else
22696
22697 JAR=yes
22698
22699 fi
22700
22701 if test x"${JAR}" = "xyes"; then
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying fastjar, gjar and jar" >&5
22703 $as_echo "trying fastjar, gjar and jar" >&6; }
22704 for ac_prog in fastjar gjar jar
22705 do
22706 # Extract the first word of "$ac_prog", so it can be a program name with args.
22707 set dummy $ac_prog; ac_word=$2
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22709 $as_echo_n "checking for $ac_word... " >&6; }
22710 if test "${ac_cv_path_JAR+set}" = set; then :
22711 $as_echo_n "(cached) " >&6
22712 else
22713 case $JAR in
22714 [\\/]* | ?:[\\/]*)
22715 ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
22716 ;;
22717 *)
22718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22719 for as_dir in $PATH
22720 do
22721 IFS=$as_save_IFS
22722 test -z "$as_dir" && as_dir=.
22723 for ac_exec_ext in '' $ac_executable_extensions; do
22724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22725 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
22726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22727 break 2
22728 fi
22729 done
22730 done
22731 IFS=$as_save_IFS
22732
22733 ;;
22734 esac
22735 fi
22736 JAR=$ac_cv_path_JAR
22737 if test -n "$JAR"; then
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
22739 $as_echo "$JAR" >&6; }
22740 else
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22742 $as_echo "no" >&6; }
22743 fi
22744
22745
22746 test -n "$JAR" && break
22747 done
22748
22749 if test x"${RHINO_JAR}" = "xyes"; then
22750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22751 $as_echo "not found" >&6; }
22752 fi
22753 fi
22754 if test x"${JAR}" = "xno" && test x"${ZIP}" = ""; then
22755 as_fn_error "No zip or jar tool found." "$LINENO" 5
22756 fi
22757 if test x"${JAR}" != "xno" && test x"${JAR}" != "xyes"; then
22758 WITH_JAR_TRUE=
22759 WITH_JAR_FALSE='#'
22760 else
22761 WITH_JAR_TRUE='#'
22762 WITH_JAR_FALSE=
22763 fi
22764
22765
22766
22767
22768 # Check whether --with-glibj was given.
22769 if test "${with_glibj+set}" = set; then :
22770 withval=$with_glibj;
22771 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
22772 install_class_files=no
22773 build_class_files=yes
22774 use_zip=yes
22775 elif test "x${withval}" = xboth; then
22776 install_class_files=yes
22777 build_class_files=yes
22778 use_zip=yes
22779 elif test "x${withval}" = xflat; then
22780 install_class_files=yes
22781 build_class_files=yes
22782 use_zip=no
22783 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
22784 install_class_files=no
22785 build_class_files=no
22786 use_zip=no
22787 elif test "x${withval}" = xbuild; then
22788 install_class_files=no
22789 build_class_files=yes
22790 use_zip=no
22791 else
22792 as_fn_error "unknown value given to --with-glibj" "$LINENO" 5
22793 fi
22794
22795 else
22796
22797 install_class_files=no
22798 use_zip=yes
22799
22800 fi
22801
22802 if test "x${use_zip}" = xyes; then
22803 INSTALL_GLIBJ_ZIP_TRUE=
22804 INSTALL_GLIBJ_ZIP_FALSE='#'
22805 else
22806 INSTALL_GLIBJ_ZIP_TRUE='#'
22807 INSTALL_GLIBJ_ZIP_FALSE=
22808 fi
22809
22810 if test "x${install_class_files}" = xyes; then
22811 INSTALL_CLASS_FILES_TRUE=
22812 INSTALL_CLASS_FILES_FALSE='#'
22813 else
22814 INSTALL_CLASS_FILES_TRUE='#'
22815 INSTALL_CLASS_FILES_FALSE=
22816 fi
22817
22818 if test "x${build_class_files}" = xyes; then
22819 BUILD_CLASS_FILES_TRUE=
22820 BUILD_CLASS_FILES_FALSE='#'
22821 else
22822 BUILD_CLASS_FILES_TRUE='#'
22823 BUILD_CLASS_FILES_FALSE=
22824 fi
22825
22826
22827 # Check whether --enable-examples was given.
22828 if test "${enable_examples+set}" = set; then :
22829 enableval=$enable_examples; case "${enableval}" in
22830 yes) EXAMPLESDIR="examples" ;;
22831 no) EXAMPLESDIR="" ;;
22832 *) as_fn_error "bad value ${enableval} for --enable-examples" "$LINENO" 5 ;;
22833 esac
22834 else
22835 EXAMPLESDIR="examples"
22836 fi
22837
22838 if test "x${build_class_files}" = xno; then
22839 EXAMPLESDIR=""
22840 fi
22841
22842
22843 # Check whether --enable-tools was given.
22844 if test "${enable_tools+set}" = set; then :
22845 enableval=$enable_tools; case "${enableval}" in
22846 yes) TOOLSDIR="tools" ;;
22847 no) TOOLSDIR="" ;;
22848 *) as_fn_error "bad value ${enableval} for --enable-tools" "$LINENO" 5 ;;
22849 esac
22850 else
22851 TOOLSDIR="tools"
22852 fi
22853
22854 if test "x${build_class_files}" = xno; then
22855 TOOLSDIR=""
22856 fi
22857
22858
22859
22860
22861
22862 # Check whether --with-gjdoc was given.
22863 if test "${with_gjdoc+set}" = set; then :
22864 withval=$with_gjdoc; if test "x${withval}" = xno; then
22865 WITH_GJDOC=no;
22866 elif test "x${withval}" = xyes -o "x{withval}" = x; then
22867 WITH_GJDOC=yes;
22868 # Extract the first word of "gjdoc", so it can be a program name with args.
22869 set dummy gjdoc; ac_word=$2
22870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22871 $as_echo_n "checking for $ac_word... " >&6; }
22872 if test "${ac_cv_path_GJDOC+set}" = set; then :
22873 $as_echo_n "(cached) " >&6
22874 else
22875 case $GJDOC in
22876 [\\/]* | ?:[\\/]*)
22877 ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
22878 ;;
22879 *)
22880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22881 for as_dir in $PATH
22882 do
22883 IFS=$as_save_IFS
22884 test -z "$as_dir" && as_dir=.
22885 for ac_exec_ext in '' $ac_executable_extensions; do
22886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22887 ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
22888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22889 break 2
22890 fi
22891 done
22892 done
22893 IFS=$as_save_IFS
22894
22895 test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
22896 ;;
22897 esac
22898 fi
22899 GJDOC=$ac_cv_path_GJDOC
22900 if test -n "$GJDOC"; then
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GJDOC" >&5
22902 $as_echo "$GJDOC" >&6; }
22903 else
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22905 $as_echo "no" >&6; }
22906 fi
22907
22908
22909 if test "x${GJDOC}" = xno; then
22910 as_fn_error "\"gjdoc executable not found\"" "$LINENO" 5;
22911 fi
22912 else
22913 WITH_GJDOC=yes
22914 GJDOC="${withval}"
22915 as_ac_File=`$as_echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
22916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${GJDOC}" >&5
22917 $as_echo_n "checking for ${GJDOC}... " >&6; }
22918 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
22919 $as_echo_n "(cached) " >&6
22920 else
22921 test "$cross_compiling" = yes &&
22922 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
22923 if test -r "${GJDOC}"; then
22924 eval "$as_ac_File=yes"
22925 else
22926 eval "$as_ac_File=no"
22927 fi
22928 fi
22929 eval ac_res=\$$as_ac_File
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22931 $as_echo "$ac_res" >&6; }
22932 eval as_val=\$$as_ac_File
22933 if test "x$as_val" = x""yes; then :
22934
22935 else
22936 as_fn_error "\"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" "$LINENO" 5
22937 fi
22938
22939 fi
22940 else
22941 WITH_GJDOC=no
22942 fi
22943
22944 if test "x${WITH_GJDOC}" = xyes; then
22945 CREATE_API_DOCS_TRUE=
22946 CREATE_API_DOCS_FALSE='#'
22947 else
22948 CREATE_API_DOCS_TRUE='#'
22949 CREATE_API_DOCS_FALSE=
22950 fi
22951
22952 if test "x${WITH_GJDOC}" = xyes; then
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of GJDoc" >&5
22954 $as_echo_n "checking version of GJDoc... " >&6; }
22955 gjdoc_version=$(${GJDOC} --version|cut -d ' ' -f2)
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gjdoc_version}" >&5
22957 $as_echo "${gjdoc_version}" >&6; }
22958 case ${gjdoc_version} in
22959 0.7.9) ;;
22960 0.8*) ;;
22961 *) as_fn_error "Building documentation requires GJDoc >= 0.7.9, ${gjdoc_version} found." "$LINENO" 5 ;;
22962 esac
22963 fi
22964
22965
22966
22967
22968 # Check whether --with-jay was given.
22969 if test "${with_jay+set}" = set; then :
22970 withval=$with_jay;
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
22972 $as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
22973 JAY_FOUND=no
22974 JAY_DIR_PATH=
22975 if test "x${withval}" = xno; then
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22977 $as_echo "no" >&6; }
22978 elif test "x${withval}" = xyes; then
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22980 $as_echo "yes" >&6; }
22981 JAY_DIR_PATH="/usr/share/jay"
22982 elif test -d "${withval}"; then
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22984 $as_echo "yes" >&6; }
22985 JAY_DIR_PATH="${withval}"
22986 elif test -f "${withval}"; then
22987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22988 $as_echo "yes" >&6; }
22989 JAY_DIR_PATH=`dirname "${withval}"`
22990 JAY="${withval}"
22991 else
22992 as_fn_error "jay not found at ${withval}" "$LINENO" 5
22993 fi
22994
22995 if test "x${JAY_DIR_PATH}" != x; then
22996 # Extract the first word of "jay", so it can be a program name with args.
22997 set dummy jay; ac_word=$2
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22999 $as_echo_n "checking for $ac_word... " >&6; }
23000 if test "${ac_cv_path_JAY+set}" = set; then :
23001 $as_echo_n "(cached) " >&6
23002 else
23003 case $JAY in
23004 [\\/]* | ?:[\\/]*)
23005 ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
23006 ;;
23007 *)
23008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23009 as_dummy="${JAY_DIR_PATH}:${PATH}"
23010 for as_dir in $as_dummy
23011 do
23012 IFS=$as_save_IFS
23013 test -z "$as_dir" && as_dir=.
23014 for ac_exec_ext in '' $ac_executable_extensions; do
23015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23016 ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
23017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23018 break 2
23019 fi
23020 done
23021 done
23022 IFS=$as_save_IFS
23023
23024 test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
23025 ;;
23026 esac
23027 fi
23028 JAY=$ac_cv_path_JAY
23029 if test -n "$JAY"; then
23030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAY" >&5
23031 $as_echo "$JAY" >&6; }
23032 else
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23034 $as_echo "no" >&6; }
23035 fi
23036
23037
23038 if test "x${JAY}" = xno; then
23039 as_fn_error "jay executable not found" "$LINENO" 5;
23040 fi
23041 JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
23042 as_ac_File=`$as_echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
23043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${JAY_SKELETON}" >&5
23044 $as_echo_n "checking for ${JAY_SKELETON}... " >&6; }
23045 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
23046 $as_echo_n "(cached) " >&6
23047 else
23048 test "$cross_compiling" = yes &&
23049 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
23050 if test -r "${JAY_SKELETON}"; then
23051 eval "$as_ac_File=yes"
23052 else
23053 eval "$as_ac_File=no"
23054 fi
23055 fi
23056 eval ac_res=\$$as_ac_File
23057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23058 $as_echo "$ac_res" >&6; }
23059 eval as_val=\$$as_ac_File
23060 if test "x$as_val" = x""yes; then :
23061
23062 else
23063 as_fn_error "Expected skeleton file in ${JAY_DIR_PATH}" "$LINENO" 5
23064 fi
23065
23066 JAY_FOUND=yes
23067 fi
23068
23069 else
23070
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
23072 $as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23074 $as_echo "no" >&6; }
23075 JAY_FOUND=no
23076
23077 fi
23078
23079 if test "x${JAY_FOUND}" = xyes; then
23080 REGEN_PARSERS_TRUE=
23081 REGEN_PARSERS_FALSE='#'
23082 else
23083 REGEN_PARSERS_TRUE='#'
23084 REGEN_PARSERS_FALSE=
23085 fi
23086
23087
23088
23089 # Check whether --enable-portable-native-sync was given.
23090 if test "${enable_portable_native_sync+set}" = set; then :
23091 enableval=$enable_portable_native_sync; case "${enableval}" in
23092 yes)
23093
23094 $as_echo "#define PORTABLE_NATIVE_SYNC 1" >>confdefs.h
23095
23096 ;;
23097 no) ;;
23098 *)
23099 as_fn_error "bad value ${enableval} for --enable-portable-native-sync" "$LINENO" 5
23100 ;;
23101 esac
23102 fi
23103
23104
23105 # ------ AX CREATE STDINT H -------------------------------------
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
23107 $as_echo_n "checking for stdint types... " >&6; }
23108 ac_stdint_h=`echo include/config-int.h`
23109 # try to shortcircuit - if the default include path of the compiler
23110 # can find a "stdint.h" header then we assume that all compilers can.
23111 if test "${ac_cv_header_stdint_t+set}" = set; then :
23112 $as_echo_n "(cached) " >&6
23113 else
23114
23115 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
23116 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
23117 old_CFLAGS="$CFLAGS" ; CFLAGS=""
23118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23119 /* end confdefs.h. */
23120 #include <stdint.h>
23121 int
23122 main ()
23123 {
23124 int_least32_t v = 0;
23125 ;
23126 return 0;
23127 }
23128 _ACEOF
23129 if ac_fn_c_try_compile "$LINENO"; then :
23130 ac_cv_stdint_result="(assuming C99 compatible system)"
23131 ac_cv_header_stdint_t="stdint.h";
23132 else
23133 ac_cv_header_stdint_t=""
23134 fi
23135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23136 CXXFLAGS="$old_CXXFLAGS"
23137 CPPFLAGS="$old_CPPFLAGS"
23138 CFLAGS="$old_CFLAGS"
23139 fi
23140
23141
23142 v="... $ac_cv_header_stdint_h"
23143 if test "$ac_stdint_h" = "stdint.h" ; then
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
23145 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
23146 elif test "$ac_stdint_h" = "inttypes.h" ; then
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
23148 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
23149 elif test "_$ac_cv_header_stdint_t" = "_" ; then
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
23151 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
23152 else
23153 ac_cv_header_stdint="$ac_cv_header_stdint_t"
23154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
23155 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
23156 fi
23157
23158 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
23159
23160
23161 inttype_headers=`echo | sed -e 's/,/ /g'`
23162
23163 ac_cv_stdint_result="(no helpful system typedefs seen)"
23164
23165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
23166 $as_echo_n "checking for stdint uintptr_t... " >&6; }
23167 if test "${ac_cv_header_stdint_x+set}" = set; then :
23168 $as_echo_n "(cached) " >&6
23169 else
23170
23171 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23173 $as_echo "(..)" >&6; }
23174 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
23175 unset ac_cv_type_uintptr_t
23176 unset ac_cv_type_uint64_t
23177 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
23178 "
23179 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
23180 ac_cv_header_stdint_x=$i
23181 else
23182 continue
23183 fi
23184
23185 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23186 "
23187 if test "x$ac_cv_type_uint64_t" = x""yes; then :
23188 and64="/uint64_t"
23189 else
23190 and64=""
23191 fi
23192
23193 stdint.h inttypes.h sys/inttypes.h $inttype_headers
23194 break
23195 done
23196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
23197 $as_echo_n "checking for stdint uintptr_t... " >&6; }
23198
23199 fi
23200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
23201 $as_echo "$ac_cv_header_stdint_x" >&6; }
23202
23203
23204 if test "_$ac_cv_header_stdint_x" = "_" ; then
23205
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
23207 $as_echo_n "checking for stdint uint32_t... " >&6; }
23208 if test "${ac_cv_header_stdint_o+set}" = set; then :
23209 $as_echo_n "(cached) " >&6
23210 else
23211
23212 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
23213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23214 $as_echo "(..)" >&6; }
23215 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
23216 unset ac_cv_type_uint32_t
23217 unset ac_cv_type_uint64_t
23218 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
23219 "
23220 if test "x$ac_cv_type_uint32_t" = x""yes; then :
23221 ac_cv_header_stdint_o=$i
23222 else
23223 continue
23224 fi
23225
23226 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23227 "
23228 if test "x$ac_cv_type_uint64_t" = x""yes; then :
23229 and64="/uint64_t"
23230 else
23231 and64=""
23232 fi
23233
23234 inttypes.h sys/inttypes.h stdint.h $inttype_headers
23235 break
23236 break;
23237 done
23238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
23239 $as_echo_n "checking for stdint uint32_t... " >&6; }
23240
23241 fi
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
23243 $as_echo "$ac_cv_header_stdint_o" >&6; }
23244
23245 fi
23246
23247 if test "_$ac_cv_header_stdint_x" = "_" ; then
23248 if test "_$ac_cv_header_stdint_o" = "_" ; then
23249
23250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
23251 $as_echo_n "checking for stdint u_int32_t... " >&6; }
23252 if test "${ac_cv_header_stdint_u+set}" = set; then :
23253 $as_echo_n "(cached) " >&6
23254 else
23255
23256 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
23257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23258 $as_echo "(..)" >&6; }
23259 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
23260 unset ac_cv_type_u_int32_t
23261 unset ac_cv_type_u_int64_t
23262 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
23263 "
23264 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
23265 ac_cv_header_stdint_u=$i
23266 else
23267 continue
23268 fi
23269
23270 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
23271 "
23272 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
23273 and64="/u_int64_t"
23274 else
23275 and64=""
23276 fi
23277
23278 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
23279 break
23280 break;
23281 done
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
23283 $as_echo_n "checking for stdint u_int32_t... " >&6; }
23284
23285 fi
23286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
23287 $as_echo "$ac_cv_header_stdint_u" >&6; }
23288
23289 fi fi
23290
23291 if test "_$ac_cv_header_stdint_x" = "_" ; then
23292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
23293 $as_echo_n "checking for stdint datatype model... " >&6; }
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23295 $as_echo "(..)" >&6; }
23296
23297 # The cast to long int works around a bug in the HP C Compiler
23298 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23299 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23300 # This bug is HP SR number 8606223364.
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
23302 $as_echo_n "checking size of char... " >&6; }
23303 if test "${ac_cv_sizeof_char+set}" = set; then :
23304 $as_echo_n "(cached) " >&6
23305 else
23306 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
23307
23308 else
23309 if test "$ac_cv_type_char" = yes; then
23310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23312 { as_fn_set_status 77
23313 as_fn_error "cannot compute sizeof (char)
23314 See \`config.log' for more details." "$LINENO" 5; }; }
23315 else
23316 ac_cv_sizeof_char=0
23317 fi
23318 fi
23319
23320 fi
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
23322 $as_echo "$ac_cv_sizeof_char" >&6; }
23323
23324
23325
23326 cat >>confdefs.h <<_ACEOF
23327 #define SIZEOF_CHAR $ac_cv_sizeof_char
23328 _ACEOF
23329
23330
23331 # The cast to long int works around a bug in the HP C Compiler
23332 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23333 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23334 # This bug is HP SR number 8606223364.
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23336 $as_echo_n "checking size of short... " >&6; }
23337 if test "${ac_cv_sizeof_short+set}" = set; then :
23338 $as_echo_n "(cached) " >&6
23339 else
23340 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23341
23342 else
23343 if test "$ac_cv_type_short" = yes; then
23344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23346 { as_fn_set_status 77
23347 as_fn_error "cannot compute sizeof (short)
23348 See \`config.log' for more details." "$LINENO" 5; }; }
23349 else
23350 ac_cv_sizeof_short=0
23351 fi
23352 fi
23353
23354 fi
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23356 $as_echo "$ac_cv_sizeof_short" >&6; }
23357
23358
23359
23360 cat >>confdefs.h <<_ACEOF
23361 #define SIZEOF_SHORT $ac_cv_sizeof_short
23362 _ACEOF
23363
23364
23365 # The cast to long int works around a bug in the HP C Compiler
23366 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23367 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23368 # This bug is HP SR number 8606223364.
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23370 $as_echo_n "checking size of int... " >&6; }
23371 if test "${ac_cv_sizeof_int+set}" = set; then :
23372 $as_echo_n "(cached) " >&6
23373 else
23374 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23375
23376 else
23377 if test "$ac_cv_type_int" = yes; then
23378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23380 { as_fn_set_status 77
23381 as_fn_error "cannot compute sizeof (int)
23382 See \`config.log' for more details." "$LINENO" 5; }; }
23383 else
23384 ac_cv_sizeof_int=0
23385 fi
23386 fi
23387
23388 fi
23389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23390 $as_echo "$ac_cv_sizeof_int" >&6; }
23391
23392
23393
23394 cat >>confdefs.h <<_ACEOF
23395 #define SIZEOF_INT $ac_cv_sizeof_int
23396 _ACEOF
23397
23398
23399 # The cast to long int works around a bug in the HP C Compiler
23400 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23401 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23402 # This bug is HP SR number 8606223364.
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23404 $as_echo_n "checking size of long... " >&6; }
23405 if test "${ac_cv_sizeof_long+set}" = set; then :
23406 $as_echo_n "(cached) " >&6
23407 else
23408 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23409
23410 else
23411 if test "$ac_cv_type_long" = yes; then
23412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23414 { as_fn_set_status 77
23415 as_fn_error "cannot compute sizeof (long)
23416 See \`config.log' for more details." "$LINENO" 5; }; }
23417 else
23418 ac_cv_sizeof_long=0
23419 fi
23420 fi
23421
23422 fi
23423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23424 $as_echo "$ac_cv_sizeof_long" >&6; }
23425
23426
23427
23428 cat >>confdefs.h <<_ACEOF
23429 #define SIZEOF_LONG $ac_cv_sizeof_long
23430 _ACEOF
23431
23432
23433 # The cast to long int works around a bug in the HP C Compiler
23434 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23435 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23436 # This bug is HP SR number 8606223364.
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
23438 $as_echo_n "checking size of void*... " >&6; }
23439 if test "${ac_cv_sizeof_voidp+set}" = set; then :
23440 $as_echo_n "(cached) " >&6
23441 else
23442 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
23443
23444 else
23445 if test "$ac_cv_type_voidp" = yes; then
23446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23448 { as_fn_set_status 77
23449 as_fn_error "cannot compute sizeof (void*)
23450 See \`config.log' for more details." "$LINENO" 5; }; }
23451 else
23452 ac_cv_sizeof_voidp=0
23453 fi
23454 fi
23455
23456 fi
23457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
23458 $as_echo "$ac_cv_sizeof_voidp" >&6; }
23459
23460
23461
23462 cat >>confdefs.h <<_ACEOF
23463 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
23464 _ACEOF
23465
23466
23467 ac_cv_char_data_model=""
23468 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
23469 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
23470 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
23471 ac_cv_long_data_model=""
23472 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
23473 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
23474 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
23476 $as_echo_n "checking data model... " >&6; }
23477 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
23478 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
23479 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
23480 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
23481 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
23482 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
23483 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
23484 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
23485 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
23486 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
23487 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
23488 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
23489 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
23490 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
23491 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
23492 222/*|333/*|444/*|666/*|888/*) :
23493 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
23494 *) ac_cv_data_model="none" ; n="very unusual model" ;;
23495 esac
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
23497 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
23498
23499 fi
23500
23501 if test "_$ac_cv_header_stdint_x" != "_" ; then
23502 ac_cv_header_stdint="$ac_cv_header_stdint_x"
23503 elif test "_$ac_cv_header_stdint_o" != "_" ; then
23504 ac_cv_header_stdint="$ac_cv_header_stdint_o"
23505 elif test "_$ac_cv_header_stdint_u" != "_" ; then
23506 ac_cv_header_stdint="$ac_cv_header_stdint_u"
23507 else
23508 ac_cv_header_stdint="stddef.h"
23509 fi
23510
23511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
23512 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
23513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
23514 $as_echo "($ac_cv_header_stdint)" >&6; }
23515 unset ac_cv_type_int_least32_t
23516 unset ac_cv_type_int_fast32_t
23517 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
23518 "
23519 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
23520
23521 fi
23522
23523 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
23524 "
23525 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
23526
23527 fi
23528
23529 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
23530 "
23531 if test "x$ac_cv_type_intmax_t" = x""yes; then :
23532
23533 fi
23534
23535
23536 fi # shortcircut to system "stdint.h"
23537 # ------------------ PREPARE VARIABLES ------------------------------
23538 if test "$GCC" = "yes" ; then
23539 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
23540 else
23541 ac_cv_stdint_message="using $CC"
23542 fi
23543
23544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
23545 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
23546
23547 # ----------------- DONE inttypes.h checks START header -------------
23548 ac_config_commands="$ac_config_commands $ac_stdint_h"
23549
23550
23551
23552
23553 # Check whether --with-glibj_zip was given.
23554 if test "${with_glibj_zip+set}" = set; then :
23555 withval=$with_glibj_zip;
23556 fi
23557
23558
23559 case "$with_glibj_zip" in
23560 "")
23561 use_glibj_zip=false
23562 ;;
23563 "no" )
23564 use_glibj_zip=false
23565 ;;
23566 "yes")
23567 as_fn_error "Please suply an absolute path to a prebuilt glibj.zip" "$LINENO" 5
23568 ;;
23569 *)
23570 use_glibj_zip=true
23571 PATH_TO_GLIBJ_ZIP=$with_glibj_zip
23572 ;;
23573 esac;
23574
23575 if test x$use_glibj_zip = xtrue; then
23576 USE_PREBUILT_GLIBJ_ZIP_TRUE=
23577 USE_PREBUILT_GLIBJ_ZIP_FALSE='#'
23578 else
23579 USE_PREBUILT_GLIBJ_ZIP_TRUE='#'
23580 USE_PREBUILT_GLIBJ_ZIP_FALSE=
23581 fi
23582
23583
23584
23585 if test "x${TOOLSDIR}" != x; then
23586 if test "x${COMPILE_WRAPPERS}" = xno && test "x${enable_java_maintainer_mode}" = xyes; then
23587
23588
23589 if test "x$JAVAPREFIX" = x; then
23590 test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
23591 do
23592 # Extract the first word of "$ac_prog", so it can be a program name with args.
23593 set dummy $ac_prog; ac_word=$2
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23595 $as_echo_n "checking for $ac_word... " >&6; }
23596 if test "${ac_cv_prog_JAVA+set}" = set; then :
23597 $as_echo_n "(cached) " >&6
23598 else
23599 if test -n "$JAVA"; then
23600 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
23601 else
23602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23603 for as_dir in $PATH
23604 do
23605 IFS=$as_save_IFS
23606 test -z "$as_dir" && as_dir=.
23607 for ac_exec_ext in '' $ac_executable_extensions; do
23608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23609 ac_cv_prog_JAVA="$ac_prog"
23610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23611 break 2
23612 fi
23613 done
23614 done
23615 IFS=$as_save_IFS
23616
23617 fi
23618 fi
23619 JAVA=$ac_cv_prog_JAVA
23620 if test -n "$JAVA"; then
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
23622 $as_echo "$JAVA" >&6; }
23623 else
23624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23625 $as_echo "no" >&6; }
23626 fi
23627
23628
23629 test -n "$JAVA" && break
23630 done
23631
23632 else
23633 test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
23634 do
23635 # Extract the first word of "$ac_prog", so it can be a program name with args.
23636 set dummy $ac_prog; ac_word=$2
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23638 $as_echo_n "checking for $ac_word... " >&6; }
23639 if test "${ac_cv_prog_JAVA+set}" = set; then :
23640 $as_echo_n "(cached) " >&6
23641 else
23642 if test -n "$JAVA"; then
23643 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
23644 else
23645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23646 for as_dir in $PATH
23647 do
23648 IFS=$as_save_IFS
23649 test -z "$as_dir" && as_dir=.
23650 for ac_exec_ext in '' $ac_executable_extensions; do
23651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23652 ac_cv_prog_JAVA="$ac_prog"
23653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23654 break 2
23655 fi
23656 done
23657 done
23658 IFS=$as_save_IFS
23659
23660 fi
23661 fi
23662 JAVA=$ac_cv_prog_JAVA
23663 if test -n "$JAVA"; then
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
23665 $as_echo "$JAVA" >&6; }
23666 else
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23668 $as_echo "no" >&6; }
23669 fi
23670
23671
23672 test -n "$JAVA" && break
23673 done
23674 test -n "$JAVA" || JAVA="$JAVAPREFIX"
23675
23676 fi
23677 test "x$JAVA" = x && as_fn_error "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
23678
23679 # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
23680 set dummy uudecode$EXEEXT; ac_word=$2
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23682 $as_echo_n "checking for $ac_word... " >&6; }
23683 if test "${ac_cv_prog_uudecode+set}" = set; then :
23684 $as_echo_n "(cached) " >&6
23685 else
23686 if test -n "$uudecode"; then
23687 ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
23688 else
23689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23690 for as_dir in $PATH
23691 do
23692 IFS=$as_save_IFS
23693 test -z "$as_dir" && as_dir=.
23694 for ac_exec_ext in '' $ac_executable_extensions; do
23695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23696 ac_cv_prog_uudecode="yes"
23697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23698 break 2
23699 fi
23700 done
23701 done
23702 IFS=$as_save_IFS
23703
23704 fi
23705 fi
23706 uudecode=$ac_cv_prog_uudecode
23707 if test -n "$uudecode"; then
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
23709 $as_echo "$uudecode" >&6; }
23710 else
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23712 $as_echo "no" >&6; }
23713 fi
23714
23715
23716 if test x$uudecode = xyes; then
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
23718 $as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
23719 if test "${ac_cv_prog_uudecode_base64+set}" = set; then :
23720 $as_echo_n "(cached) " >&6
23721 else
23722
23723 cat << \EOF > Test.uue
23724 begin-base64 644 Test.class
23725 yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
23726 bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
23727 bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
23728 YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
23729 aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
23730 AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
23731 AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
23732 ====
23733 EOF
23734 if uudecode$EXEEXT Test.uue; then
23735 ac_cv_prog_uudecode_base64=yes
23736 else
23737 echo "configure: 23737: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
23738 echo "configure: failed file was:" >&5
23739 cat Test.uue >&5
23740 ac_cv_prog_uudecode_base64=no
23741 fi
23742 rm -f Test.uue
23743 fi
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
23745 $as_echo "$ac_cv_prog_uudecode_base64" >&6; }
23746 fi
23747 if test x$ac_cv_prog_uudecode_base64 != xyes; then
23748 rm -f Test.class
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
23750 $as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
23751 if test x$ac_cv_prog_javac_works = xno; then
23752 as_fn_error "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
23753 fi
23754 if test x$ac_cv_prog_javac_works = x; then
23755
23756 ECJ_OPTS="-warn:-deprecation,serial,unusedImport"
23757 JAVAC_OPTS="-Xlint:unchecked,cast,divzero,empty,finally,overrides"
23758 GCJ_OPTS="-g"
23759 if test "x$JAVAPREFIX" = x; then
23760 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"
23761 do
23762 # Extract the first word of "$ac_prog", so it can be a program name with args.
23763 set dummy $ac_prog; ac_word=$2
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23765 $as_echo_n "checking for $ac_word... " >&6; }
23766 if test "${ac_cv_prog_JAVAC+set}" = set; then :
23767 $as_echo_n "(cached) " >&6
23768 else
23769 if test -n "$JAVAC"; then
23770 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
23771 else
23772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23773 for as_dir in $PATH
23774 do
23775 IFS=$as_save_IFS
23776 test -z "$as_dir" && as_dir=.
23777 for ac_exec_ext in '' $ac_executable_extensions; do
23778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23779 ac_cv_prog_JAVAC="$ac_prog"
23780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23781 break 2
23782 fi
23783 done
23784 done
23785 IFS=$as_save_IFS
23786
23787 fi
23788 fi
23789 JAVAC=$ac_cv_prog_JAVAC
23790 if test -n "$JAVAC"; then
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
23792 $as_echo "$JAVAC" >&6; }
23793 else
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23795 $as_echo "no" >&6; }
23796 fi
23797
23798
23799 test -n "$JAVAC" && break
23800 done
23801
23802 else
23803 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"
23804 do
23805 # Extract the first word of "$ac_prog", so it can be a program name with args.
23806 set dummy $ac_prog; ac_word=$2
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23808 $as_echo_n "checking for $ac_word... " >&6; }
23809 if test "${ac_cv_prog_JAVAC+set}" = set; then :
23810 $as_echo_n "(cached) " >&6
23811 else
23812 if test -n "$JAVAC"; then
23813 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
23814 else
23815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23816 for as_dir in $PATH
23817 do
23818 IFS=$as_save_IFS
23819 test -z "$as_dir" && as_dir=.
23820 for ac_exec_ext in '' $ac_executable_extensions; do
23821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23822 ac_cv_prog_JAVAC="$ac_prog"
23823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23824 break 2
23825 fi
23826 done
23827 done
23828 IFS=$as_save_IFS
23829
23830 fi
23831 fi
23832 JAVAC=$ac_cv_prog_JAVAC
23833 if test -n "$JAVAC"; then
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
23835 $as_echo "$JAVAC" >&6; }
23836 else
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23838 $as_echo "no" >&6; }
23839 fi
23840
23841
23842 test -n "$JAVAC" && break
23843 done
23844 test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
23845
23846 fi
23847 test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC is a version of gcj" >&5
23849 $as_echo_n "checking if $JAVAC is a version of gcj... " >&6; }
23850 if test "${ac_cv_prog_javac_is_gcj+set}" = set; then :
23851 $as_echo_n "(cached) " >&6
23852 else
23853
23854 if $JAVAC --version | grep gcj > /dev/null; then
23855 ac_cv_prog_javac_is_gcj=yes;
23856 JAVAC="$JAVAC $GCJ_OPTS";
23857 fi
23858 fi
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_is_gcj" >&5
23860 $as_echo "$ac_cv_prog_javac_is_gcj" >&6; }
23861 JAVAC_IS_GCJ=$ac_cv_prog_javac_is_gcj
23862
23863 if test x"${JAVAC_IS_GCJ}" = xyes; then
23864 GCJ_JAVAC_TRUE=
23865 GCJ_JAVAC_FALSE='#'
23866 else
23867 GCJ_JAVAC_TRUE='#'
23868 GCJ_JAVAC_FALSE=
23869 fi
23870
23871 if test "$enable_java_maintainer_mode" = yes; then
23872
23873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
23874 $as_echo_n "checking if $JAVAC works... " >&6; }
23875 if test "${ac_cv_prog_javac_works+set}" = set; then :
23876 $as_echo_n "(cached) " >&6
23877 else
23878
23879 JAVA_TEST=Object.java
23880 CLASS_TEST=Object.class
23881 cat << \EOF > $JAVA_TEST
23882 /* #line 23882 "configure" */
23883 package java.lang;
23884
23885 public class Object
23886 {
23887 static <T> void doStuff()
23888 {
23889 }
23890 }
23891 EOF
23892 if test x$JAVAC_IS_GCJ = xyes; then
23893 CMD="$JAVAC $JAVACFLAGS -fsource=1.5 -ftarget=1.5 $JAVA_TEST"
23894 else
23895 CMD="$JAVAC $JAVACFLAGS -source 1.5 -target 1.5 $JAVA_TEST"
23896 fi
23897 if { ac_try='$CMD'
23898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23899 (eval $ac_try) 2>&5
23900 ac_status=$?
23901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23902 test $ac_status = 0; }; } >/dev/null 2>&1; then
23903 ac_cv_prog_javac_works=yes
23904 else
23905 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
23906 echo "configure: failed program was:" >&5
23907 cat $JAVA_TEST >&5
23908 fi
23909 rm -f $JAVA_TEST $CLASS_TEST
23910
23911 fi
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
23913 $as_echo "$ac_cv_prog_javac_works" >&6; }
23914
23915 fi
23916
23917 fi
23918 fi
23919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
23920 $as_echo_n "checking if $JAVA works... " >&6; }
23921 if test "${ac_cv_prog_java_works+set}" = set; then :
23922 $as_echo_n "(cached) " >&6
23923 else
23924
23925 JAVA_TEST=Test.java
23926 CLASS_TEST=Test.class
23927 TEST=Test
23928 cat << \EOF > $JAVA_TEST
23929 /* [#]line 23929 "configure" */
23930 public class Test {
23931 public static void main (String args[]) {
23932 System.exit (0);
23933 } }
23934 EOF
23935 if test x$ac_cv_prog_uudecode_base64 != xyes; then
23936 if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
23937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23938 (eval $ac_try) 2>&5
23939 ac_status=$?
23940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23941 test $ac_status = 0; }; } && test -s $CLASS_TEST; then
23942 :
23943 else
23944 echo "configure: failed program was:" >&5
23945 cat $JAVA_TEST >&5
23946 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
23947 fi
23948 fi
23949 if { ac_try='CLASSPATH=.:$CLASSPATH $JAVA $JAVAFLAGS $TEST'
23950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23951 (eval $ac_try) 2>&5
23952 ac_status=$?
23953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23954 test $ac_status = 0; }; } >/dev/null 2>&1; then
23955 ac_cv_prog_java_works=yes
23956 else
23957 echo "configure: failed program was:" >&5
23958 cat $JAVA_TEST >&5
23959 as_fn_error "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
23960 fi
23961 rm -fr $JAVA_TEST $CLASS_TEST Test.uue
23962
23963 fi
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
23965 $as_echo "$ac_cv_prog_java_works" >&6; }
23966
23967
23968
23969 fi
23970 if test "x${COMPILE_GJDOC}" = xyes; then
23971
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ANTLR parser generator JAR file" >&5
23973 $as_echo_n "checking for the ANTLR parser generator JAR file... " >&6; }
23974 if test -z "$ANTLR_JAR"; then
23975 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
23976 /usr/share/antlr/lib /usr/share/java /usr/lib;
23977 do
23978 if test -f "$antlr_lib_home/antlr.jar"; then
23979 ANTLR_JAR="$antlr_lib_home/antlr.jar"
23980 break
23981 fi
23982 done
23983 fi
23984 test -f $ANTLR_JAR || as_fn_error "specified ANTLR jar file $ANTLR_JAR not found." "$LINENO" 5 \
23985 && { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
23986 $as_echo "$ANTLR_JAR" >&6; }
23987
23988
23989 if test "x${REGENERATE_GJDOC_PARSER}" = xyes && test "x${enable_java_maintainer_mode}" = xyes; then
23990
23991 if test -n "$ac_tool_prefix"; then
23992 for ac_prog in cantlr runantlr antlr
23993 do
23994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23997 $as_echo_n "checking for $ac_word... " >&6; }
23998 if test "${ac_cv_prog_ANTLR+set}" = set; then :
23999 $as_echo_n "(cached) " >&6
24000 else
24001 if test -n "$ANTLR"; then
24002 ac_cv_prog_ANTLR="$ANTLR" # Let the user override the test.
24003 else
24004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24005 for as_dir in $PATH
24006 do
24007 IFS=$as_save_IFS
24008 test -z "$as_dir" && as_dir=.
24009 for ac_exec_ext in '' $ac_executable_extensions; do
24010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24011 ac_cv_prog_ANTLR="$ac_tool_prefix$ac_prog"
24012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24013 break 2
24014 fi
24015 done
24016 done
24017 IFS=$as_save_IFS
24018
24019 fi
24020 fi
24021 ANTLR=$ac_cv_prog_ANTLR
24022 if test -n "$ANTLR"; then
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR" >&5
24024 $as_echo "$ANTLR" >&6; }
24025 else
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24027 $as_echo "no" >&6; }
24028 fi
24029
24030
24031 test -n "$ANTLR" && break
24032 done
24033 fi
24034 if test -z "$ANTLR"; then
24035 ac_ct_ANTLR=$ANTLR
24036 for ac_prog in cantlr runantlr antlr
24037 do
24038 # Extract the first word of "$ac_prog", so it can be a program name with args.
24039 set dummy $ac_prog; ac_word=$2
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24041 $as_echo_n "checking for $ac_word... " >&6; }
24042 if test "${ac_cv_prog_ac_ct_ANTLR+set}" = set; then :
24043 $as_echo_n "(cached) " >&6
24044 else
24045 if test -n "$ac_ct_ANTLR"; then
24046 ac_cv_prog_ac_ct_ANTLR="$ac_ct_ANTLR" # Let the user override the test.
24047 else
24048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24049 for as_dir in $PATH
24050 do
24051 IFS=$as_save_IFS
24052 test -z "$as_dir" && as_dir=.
24053 for ac_exec_ext in '' $ac_executable_extensions; do
24054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24055 ac_cv_prog_ac_ct_ANTLR="$ac_prog"
24056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24057 break 2
24058 fi
24059 done
24060 done
24061 IFS=$as_save_IFS
24062
24063 fi
24064 fi
24065 ac_ct_ANTLR=$ac_cv_prog_ac_ct_ANTLR
24066 if test -n "$ac_ct_ANTLR"; then
24067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ANTLR" >&5
24068 $as_echo "$ac_ct_ANTLR" >&6; }
24069 else
24070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24071 $as_echo "no" >&6; }
24072 fi
24073
24074
24075 test -n "$ac_ct_ANTLR" && break
24076 done
24077
24078 if test "x$ac_ct_ANTLR" = x; then
24079 ANTLR=""
24080 else
24081 case $cross_compiling:$ac_tool_warned in
24082 yes:)
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24085 ac_tool_warned=yes ;;
24086 esac
24087 ANTLR=$ac_ct_ANTLR
24088 fi
24089 fi
24090
24091 if test "x$ANTLR" = x; then
24092 if test -z "$JAVA"; then
24093 as_fn_error "Failed to find either an antlr binary or a suitable Java runtime for ANTLR." "$LINENO" 5
24094 else
24095 ANTLR="$JAVA -classpath $ANTLR_JAR antlr.Tool"
24096 fi
24097 fi
24098
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr 2.7.1 or better" >&5
24100 $as_echo_n "checking for antlr 2.7.1 or better... " >&6; }
24101 antlr_version_str=`$ANTLR 2>&1 | head -n 1 | sed '/.*Version */!d; s///;q'`
24102 if test "$antlr_version_str"; then
24103 antlr_version_regex='s/\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\).*$/'
24104 antlr_version_major=`echo $antlr_version_str | sed "$antlr_version_regex\\1/"`
24105 antlr_version_minor=`echo $antlr_version_str | sed "$antlr_version_regex\\2/"`
24106 antlr_version_micro=`echo $antlr_version_str | sed "$antlr_version_regex\\3/"`
24107 (test $antlr_version_major -gt 2 || \
24108 (test $antlr_version_major -eq 2 && \
24109 test $antlr_version_minor -gt 7) || \
24110 (test $antlr_version_major -eq 2 && \
24111 test $antlr_version_minor -eq 7 && \
24112 test $antlr_version_micro -ge 1))
24113 fi
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&5
24115 $as_echo "$antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&6; }
24116
24117 fi
24118 fi
24119 fi
24120
24121
24122 # Check for javac if we need to build either the class library,
24123 # the examples or the tools
24124 if test "x${use_glibj_zip}" = xfalse || \
24125 test "x${EXAMPLESDIR}" != x || \
24126 test "x${TOOLSDIR}" != x && \
24127 test "x${build_class_files}" != xno; then
24128
24129 ECJ_OPTS="-warn:-deprecation,serial,unusedImport"
24130 JAVAC_OPTS="-Xlint:unchecked,cast,divzero,empty,finally,overrides"
24131 GCJ_OPTS="-g"
24132 if test "x$JAVAPREFIX" = x; then
24133 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"
24134 do
24135 # Extract the first word of "$ac_prog", so it can be a program name with args.
24136 set dummy $ac_prog; ac_word=$2
24137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24138 $as_echo_n "checking for $ac_word... " >&6; }
24139 if test "${ac_cv_prog_JAVAC+set}" = set; then :
24140 $as_echo_n "(cached) " >&6
24141 else
24142 if test -n "$JAVAC"; then
24143 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
24144 else
24145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24146 for as_dir in $PATH
24147 do
24148 IFS=$as_save_IFS
24149 test -z "$as_dir" && as_dir=.
24150 for ac_exec_ext in '' $ac_executable_extensions; do
24151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24152 ac_cv_prog_JAVAC="$ac_prog"
24153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24154 break 2
24155 fi
24156 done
24157 done
24158 IFS=$as_save_IFS
24159
24160 fi
24161 fi
24162 JAVAC=$ac_cv_prog_JAVAC
24163 if test -n "$JAVAC"; then
24164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
24165 $as_echo "$JAVAC" >&6; }
24166 else
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24168 $as_echo "no" >&6; }
24169 fi
24170
24171
24172 test -n "$JAVAC" && break
24173 done
24174
24175 else
24176 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"
24177 do
24178 # Extract the first word of "$ac_prog", so it can be a program name with args.
24179 set dummy $ac_prog; ac_word=$2
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24181 $as_echo_n "checking for $ac_word... " >&6; }
24182 if test "${ac_cv_prog_JAVAC+set}" = set; then :
24183 $as_echo_n "(cached) " >&6
24184 else
24185 if test -n "$JAVAC"; then
24186 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
24187 else
24188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24189 for as_dir in $PATH
24190 do
24191 IFS=$as_save_IFS
24192 test -z "$as_dir" && as_dir=.
24193 for ac_exec_ext in '' $ac_executable_extensions; do
24194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24195 ac_cv_prog_JAVAC="$ac_prog"
24196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24197 break 2
24198 fi
24199 done
24200 done
24201 IFS=$as_save_IFS
24202
24203 fi
24204 fi
24205 JAVAC=$ac_cv_prog_JAVAC
24206 if test -n "$JAVAC"; then
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
24208 $as_echo "$JAVAC" >&6; }
24209 else
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24211 $as_echo "no" >&6; }
24212 fi
24213
24214
24215 test -n "$JAVAC" && break
24216 done
24217 test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
24218
24219 fi
24220 test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC is a version of gcj" >&5
24222 $as_echo_n "checking if $JAVAC is a version of gcj... " >&6; }
24223 if test "${ac_cv_prog_javac_is_gcj+set}" = set; then :
24224 $as_echo_n "(cached) " >&6
24225 else
24226
24227 if $JAVAC --version | grep gcj > /dev/null; then
24228 ac_cv_prog_javac_is_gcj=yes;
24229 JAVAC="$JAVAC $GCJ_OPTS";
24230 fi
24231 fi
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_is_gcj" >&5
24233 $as_echo "$ac_cv_prog_javac_is_gcj" >&6; }
24234 JAVAC_IS_GCJ=$ac_cv_prog_javac_is_gcj
24235
24236 if test x"${JAVAC_IS_GCJ}" = xyes; then
24237 GCJ_JAVAC_TRUE=
24238 GCJ_JAVAC_FALSE='#'
24239 else
24240 GCJ_JAVAC_TRUE='#'
24241 GCJ_JAVAC_FALSE=
24242 fi
24243
24244 if test "$enable_java_maintainer_mode" = yes; then
24245
24246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
24247 $as_echo_n "checking if $JAVAC works... " >&6; }
24248 if test "${ac_cv_prog_javac_works+set}" = set; then :
24249 $as_echo_n "(cached) " >&6
24250 else
24251
24252 JAVA_TEST=Object.java
24253 CLASS_TEST=Object.class
24254 cat << \EOF > $JAVA_TEST
24255 /* #line 24255 "configure" */
24256 package java.lang;
24257
24258 public class Object
24259 {
24260 static <T> void doStuff()
24261 {
24262 }
24263 }
24264 EOF
24265 if test x$JAVAC_IS_GCJ = xyes; then
24266 CMD="$JAVAC $JAVACFLAGS -fsource=1.5 -ftarget=1.5 $JAVA_TEST"
24267 else
24268 CMD="$JAVAC $JAVACFLAGS -source 1.5 -target 1.5 $JAVA_TEST"
24269 fi
24270 if { ac_try='$CMD'
24271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24272 (eval $ac_try) 2>&5
24273 ac_status=$?
24274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24275 test $ac_status = 0; }; } >/dev/null 2>&1; then
24276 ac_cv_prog_javac_works=yes
24277 else
24278 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
24279 echo "configure: failed program was:" >&5
24280 cat $JAVA_TEST >&5
24281 fi
24282 rm -f $JAVA_TEST $CLASS_TEST
24283
24284 fi
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
24286 $as_echo "$ac_cv_prog_javac_works" >&6; }
24287
24288 fi
24289
24290
24291 JAVA_TEST=Test.java
24292 CLASS_TEST=Test.class
24293 cat << \EOF > $JAVA_TEST
24294 /* #line 24294 "configure" */
24295 public class Test
24296 {
24297 public static void main(String args)
24298 {
24299 System.out.println("Hello World");
24300 }
24301 }
24302 EOF
24303 if test x$JAVAC_IS_GCJ != xyes; then
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether javac supports -J" >&5
24305 $as_echo_n "checking whether javac supports -J... " >&6; }
24306 $JAVAC $JAVACFLAGS -J-Xmx768M -sourcepath '' $JAVA_TEST
24307 javac_result=$?
24308 if test "x$javac_result" = "x0"; then
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24310 $as_echo "yes" >&6; }
24311 JAVAC_MEM_OPT="-J-Xmx768M"
24312 else
24313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24314 $as_echo "no" >&6; }
24315 fi
24316 fi
24317 rm -f $JAVA_TEST $CLASS_TEST
24318
24319
24320 fi
24321
24322
24323 # Check whether --with-escher was given.
24324 if test "${with_escher+set}" = set; then :
24325 withval=$with_escher;
24326 fi
24327
24328 case "$with_escher" in
24329 "")
24330 use_escher=false
24331 ;;
24332 "no")
24333 use_escher=false
24334 ;;
24335 "yes")
24336 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
24337 ;;
24338 *)
24339 use_escher=true
24340 PATH_TO_ESCHER=$with_escher
24341 ;;
24342 esac
24343
24344 if test x$use_escher = xtrue; then
24345 USE_ESCHER_TRUE=
24346 USE_ESCHER_FALSE='#'
24347 else
24348 USE_ESCHER_TRUE='#'
24349 USE_ESCHER_FALSE=
24350 fi
24351
24352
24353
24354 # Check whether --enable-local-sockets was given.
24355 if test "${enable_local_sockets+set}" = set; then :
24356 enableval=$enable_local_sockets; case "${enableval}" in
24357 yes)
24358 ENABLE_LOCAL_SOCKETS=yes
24359 ;;
24360 *)
24361 ENABLE_LOCAL_SOCKETS=no
24362 ;;
24363 esac
24364 fi
24365
24366 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
24367 then
24368 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
24369 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
24370
24371 fi
24372
24373
24374 for ac_func in read write bind listen accept shutdown
24375 do :
24376 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24377 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24378 eval as_val=\$$as_ac_var
24379 if test "x$as_val" = x""yes; then :
24380 cat >>confdefs.h <<_ACEOF
24381 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24382 _ACEOF
24383
24384 else
24385 as_fn_error "networking support not available" "$LINENO" 5
24386 fi
24387 done
24388
24389
24390 $as_echo "#define ENABLE_LOCAL_SOCKETS 1" >>confdefs.h
24391
24392 fi
24393 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"; then
24394 ENABLE_LOCAL_SOCKETS_TRUE=
24395 ENABLE_LOCAL_SOCKETS_FALSE='#'
24396 else
24397 ENABLE_LOCAL_SOCKETS_TRUE='#'
24398 ENABLE_LOCAL_SOCKETS_FALSE=
24399 fi
24400
24401
24402
24403
24404 WANT_NATIVE_BIG_INTEGER=false
24405 if test "x${COMPILE_GMP}" = xyes; then
24406 if test "x${ac_cv_lib_gmp___gmpz_mul_si}" = xyes; then
24407 if test "x${ac_cv_header_gmp_h}" = xyes; then
24408 WANT_NATIVE_BIG_INTEGER=true
24409
24410 $as_echo "#define WITH_GNU_MP 1" >>confdefs.h
24411
24412 else
24413 COMPILE_GMP=no
24414 fi
24415 else
24416 COMPILE_GMP=no
24417 fi
24418 fi
24419
24420 if test "x${COMPILE_GMP}" = xyes; then
24421 CREATE_GMPBI_LIBRARY_TRUE=
24422 CREATE_GMPBI_LIBRARY_FALSE='#'
24423 else
24424 CREATE_GMPBI_LIBRARY_TRUE='#'
24425 CREATE_GMPBI_LIBRARY_FALSE=
24426 fi
24427
24428
24429 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"
24430
24431
24432 if test "x${COMPILE_WRAPPERS}" = xyes; then
24433 :
24434 else
24435 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"
24436
24437
24438 ac_config_commands="$ac_config_commands gappletviewer"
24439
24440 ac_config_commands="$ac_config_commands gjarsigner"
24441
24442 ac_config_commands="$ac_config_commands gkeytool"
24443
24444 ac_config_commands="$ac_config_commands gjar"
24445
24446 ac_config_commands="$ac_config_commands gnative2ascii"
24447
24448 ac_config_commands="$ac_config_commands gserialver"
24449
24450 ac_config_commands="$ac_config_commands grmiregistry"
24451
24452 ac_config_commands="$ac_config_commands gtnameserv"
24453
24454 ac_config_commands="$ac_config_commands gorbd"
24455
24456 ac_config_commands="$ac_config_commands grmid"
24457
24458 ac_config_commands="$ac_config_commands grmic"
24459
24460 ac_config_commands="$ac_config_commands gjavah"
24461
24462
24463 fi
24464
24465 if test "x${COMPILE_GJDOC}" = xyes
24466 then
24467 ac_config_files="$ac_config_files tools/gjdoc"
24468
24469 ac_config_commands="$ac_config_commands gjdoc"
24470
24471 fi
24472
24473 ac_config_commands="$ac_config_commands gen-classlist"
24474
24475 ac_config_commands="$ac_config_commands copy-vmresources"
24476
24477 cat >confcache <<\_ACEOF
24478 # This file is a shell script that caches the results of configure
24479 # tests run on this system so they can be shared between configure
24480 # scripts and configure runs, see configure's option --config-cache.
24481 # It is not useful on other systems. If it contains results you don't
24482 # want to keep, you may remove or edit it.
24483 #
24484 # config.status only pays attention to the cache file if you give it
24485 # the --recheck option to rerun configure.
24486 #
24487 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24488 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24489 # following values.
24490
24491 _ACEOF
24492
24493 # The following way of writing the cache mishandles newlines in values,
24494 # but we know of no workaround that is simple, portable, and efficient.
24495 # So, we kill variables containing newlines.
24496 # Ultrix sh set writes to stderr and can't be redirected directly,
24497 # and sets the high bit in the cache file unless we assign to the vars.
24498 (
24499 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24500 eval ac_val=\$$ac_var
24501 case $ac_val in #(
24502 *${as_nl}*)
24503 case $ac_var in #(
24504 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24505 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24506 esac
24507 case $ac_var in #(
24508 _ | IFS | as_nl) ;; #(
24509 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24510 *) { eval $ac_var=; unset $ac_var;} ;;
24511 esac ;;
24512 esac
24513 done
24514
24515 (set) 2>&1 |
24516 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24517 *${as_nl}ac_space=\ *)
24518 # `set' does not quote correctly, so add quotes: double-quote
24519 # substitution turns \\\\ into \\, and sed turns \\ into \.
24520 sed -n \
24521 "s/'/'\\\\''/g;
24522 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24523 ;; #(
24524 *)
24525 # `set' quotes correctly as required by POSIX, so do not add quotes.
24526 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24527 ;;
24528 esac |
24529 sort
24530 ) |
24531 sed '
24532 /^ac_cv_env_/b end
24533 t clear
24534 :clear
24535 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24536 t end
24537 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24538 :end' >>confcache
24539 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24540 if test -w "$cache_file"; then
24541 test "x$cache_file" != "x/dev/null" &&
24542 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24543 $as_echo "$as_me: updating cache $cache_file" >&6;}
24544 cat confcache >$cache_file
24545 else
24546 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24547 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24548 fi
24549 fi
24550 rm -f confcache
24551
24552 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24553 # Let make expand exec_prefix.
24554 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24555
24556 DEFS=-DHAVE_CONFIG_H
24557
24558 ac_libobjs=
24559 ac_ltlibobjs=
24560 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24561 # 1. Remove the extension, and $U if already installed.
24562 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24563 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24564 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24565 # will be set to the directory where LIBOBJS objects are built.
24566 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24567 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24568 done
24569 LIBOBJS=$ac_libobjs
24570
24571 LTLIBOBJS=$ac_ltlibobjs
24572
24573
24574 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24575 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24577 fi
24578 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
24579 as_fn_error "conditional \"GENINSRC\" was never defined.
24580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24581 fi
24582 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
24583 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
24584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24585 fi
24586 if test -n "$EXEEXT"; then
24587 am__EXEEXT_TRUE=
24588 am__EXEEXT_FALSE='#'
24589 else
24590 am__EXEEXT_TRUE='#'
24591 am__EXEEXT_FALSE=
24592 fi
24593
24594 if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
24595 as_fn_error "conditional \"CREATE_COLLECTIONS\" was never defined.
24596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24597 fi
24598 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
24599 as_fn_error "conditional \"CREATE_JNI_LIBRARIES\" was never defined.
24600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24601 fi
24602 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
24603 as_fn_error "conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
24604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24605 fi
24606 if test -z "${CREATE_GCONF_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GCONF_PEER_LIBRARIES_FALSE}"; then
24607 as_fn_error "conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
24608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24609 fi
24610 if test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_FALSE}"; then
24611 as_fn_error "conditional \"CREATE_GSTREAMER_PEER_LIBRARIES\" was never defined.
24612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24613 fi
24614 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
24615 as_fn_error "conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
24616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24617 fi
24618 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24619 as_fn_error "conditional \"AMDEP\" was never defined.
24620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24621 fi
24622 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24623 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24625 fi
24626 if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
24627 as_fn_error "conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
24628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24629 fi
24630 if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
24631 as_fn_error "conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
24632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24633 fi
24634 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
24635 as_fn_error "conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
24636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24637 fi
24638 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
24639 as_fn_error "conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
24640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24641 fi
24642 if test -z "${CREATE_PLUGIN_TRUE}" && test -z "${CREATE_PLUGIN_FALSE}"; then
24643 as_fn_error "conditional \"CREATE_PLUGIN\" was never defined.
24644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24645 fi
24646 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24647 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24649 fi
24650 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
24651 as_fn_error "conditional \"CREATE_JNI_HEADERS\" was never defined.
24652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24653 fi
24654 if test -z "${CREATE_GJDOC_PARSER_TRUE}" && test -z "${CREATE_GJDOC_PARSER_FALSE}"; then
24655 as_fn_error "conditional \"CREATE_GJDOC_PARSER\" was never defined.
24656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24657 fi
24658 if test -z "${CREATE_WRAPPERS_TRUE}" && test -z "${CREATE_WRAPPERS_FALSE}"; then
24659 as_fn_error "conditional \"CREATE_WRAPPERS\" was never defined.
24660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24661 fi
24662 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24663 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24665 fi
24666 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24667 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24669 fi
24670 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24671 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24673 fi
24674 if test -z "${WITH_JAR_TRUE}" && test -z "${WITH_JAR_FALSE}"; then
24675 as_fn_error "conditional \"WITH_JAR\" was never defined.
24676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24677 fi
24678 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
24679 as_fn_error "conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
24680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24681 fi
24682 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
24683 as_fn_error "conditional \"INSTALL_CLASS_FILES\" was never defined.
24684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24685 fi
24686 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
24687 as_fn_error "conditional \"BUILD_CLASS_FILES\" was never defined.
24688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24689 fi
24690 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
24691 as_fn_error "conditional \"CREATE_API_DOCS\" was never defined.
24692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24693 fi
24694 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
24695 as_fn_error "conditional \"REGEN_PARSERS\" was never defined.
24696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24697 fi
24698 if test -z "${USE_PREBUILT_GLIBJ_ZIP_TRUE}" && test -z "${USE_PREBUILT_GLIBJ_ZIP_FALSE}"; then
24699 as_fn_error "conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
24700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24701 fi
24702 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
24703 as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
24704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24705 fi
24706 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
24707 as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
24708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24709 fi
24710 if test -z "${USE_ESCHER_TRUE}" && test -z "${USE_ESCHER_FALSE}"; then
24711 as_fn_error "conditional \"USE_ESCHER\" was never defined.
24712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24713 fi
24714 if test -z "${ENABLE_LOCAL_SOCKETS_TRUE}" && test -z "${ENABLE_LOCAL_SOCKETS_FALSE}"; then
24715 as_fn_error "conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
24716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24717 fi
24718 if test -z "${CREATE_GMPBI_LIBRARY_TRUE}" && test -z "${CREATE_GMPBI_LIBRARY_FALSE}"; then
24719 as_fn_error "conditional \"CREATE_GMPBI_LIBRARY\" was never defined.
24720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24721 fi
24722
24723 : ${CONFIG_STATUS=./config.status}
24724 ac_write_fail=0
24725 ac_clean_files_save=$ac_clean_files
24726 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24728 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24729 as_write_fail=0
24730 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24731 #! $SHELL
24732 # Generated by $as_me.
24733 # Run this file to recreate the current configuration.
24734 # Compiler output produced by configure, useful for debugging
24735 # configure, is in config.log if it exists.
24736
24737 debug=false
24738 ac_cs_recheck=false
24739 ac_cs_silent=false
24740
24741 SHELL=\${CONFIG_SHELL-$SHELL}
24742 export SHELL
24743 _ASEOF
24744 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24745 ## -------------------- ##
24746 ## M4sh Initialization. ##
24747 ## -------------------- ##
24748
24749 # Be more Bourne compatible
24750 DUALCASE=1; export DUALCASE # for MKS sh
24751 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24752 emulate sh
24753 NULLCMD=:
24754 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24755 # is contrary to our usage. Disable this feature.
24756 alias -g '${1+"$@"}'='"$@"'
24757 setopt NO_GLOB_SUBST
24758 else
24759 case `(set -o) 2>/dev/null` in #(
24760 *posix*) :
24761 set -o posix ;; #(
24762 *) :
24763 ;;
24764 esac
24765 fi
24766
24767
24768 as_nl='
24769 '
24770 export as_nl
24771 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24772 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24773 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24774 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24775 # Prefer a ksh shell builtin over an external printf program on Solaris,
24776 # but without wasting forks for bash or zsh.
24777 if test -z "$BASH_VERSION$ZSH_VERSION" \
24778 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24779 as_echo='print -r --'
24780 as_echo_n='print -rn --'
24781 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24782 as_echo='printf %s\n'
24783 as_echo_n='printf %s'
24784 else
24785 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24786 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24787 as_echo_n='/usr/ucb/echo -n'
24788 else
24789 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24790 as_echo_n_body='eval
24791 arg=$1;
24792 case $arg in #(
24793 *"$as_nl"*)
24794 expr "X$arg" : "X\\(.*\\)$as_nl";
24795 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24796 esac;
24797 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24798 '
24799 export as_echo_n_body
24800 as_echo_n='sh -c $as_echo_n_body as_echo'
24801 fi
24802 export as_echo_body
24803 as_echo='sh -c $as_echo_body as_echo'
24804 fi
24805
24806 # The user is always right.
24807 if test "${PATH_SEPARATOR+set}" != set; then
24808 PATH_SEPARATOR=:
24809 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24810 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24811 PATH_SEPARATOR=';'
24812 }
24813 fi
24814
24815
24816 # IFS
24817 # We need space, tab and new line, in precisely that order. Quoting is
24818 # there to prevent editors from complaining about space-tab.
24819 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24820 # splitting by setting IFS to empty value.)
24821 IFS=" "" $as_nl"
24822
24823 # Find who we are. Look in the path if we contain no directory separator.
24824 case $0 in #((
24825 *[\\/]* ) as_myself=$0 ;;
24826 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24827 for as_dir in $PATH
24828 do
24829 IFS=$as_save_IFS
24830 test -z "$as_dir" && as_dir=.
24831 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24832 done
24833 IFS=$as_save_IFS
24834
24835 ;;
24836 esac
24837 # We did not find ourselves, most probably we were run as `sh COMMAND'
24838 # in which case we are not to be found in the path.
24839 if test "x$as_myself" = x; then
24840 as_myself=$0
24841 fi
24842 if test ! -f "$as_myself"; then
24843 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24844 exit 1
24845 fi
24846
24847 # Unset variables that we do not need and which cause bugs (e.g. in
24848 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24849 # suppresses any "Segmentation fault" message there. '((' could
24850 # trigger a bug in pdksh 5.2.14.
24851 for as_var in BASH_ENV ENV MAIL MAILPATH
24852 do eval test x\${$as_var+set} = xset \
24853 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24854 done
24855 PS1='$ '
24856 PS2='> '
24857 PS4='+ '
24858
24859 # NLS nuisances.
24860 LC_ALL=C
24861 export LC_ALL
24862 LANGUAGE=C
24863 export LANGUAGE
24864
24865 # CDPATH.
24866 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24867
24868
24869 # as_fn_error ERROR [LINENO LOG_FD]
24870 # ---------------------------------
24871 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24872 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24873 # script with status $?, using 1 if that was 0.
24874 as_fn_error ()
24875 {
24876 as_status=$?; test $as_status -eq 0 && as_status=1
24877 if test "$3"; then
24878 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24879 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24880 fi
24881 $as_echo "$as_me: error: $1" >&2
24882 as_fn_exit $as_status
24883 } # as_fn_error
24884
24885
24886 # as_fn_set_status STATUS
24887 # -----------------------
24888 # Set $? to STATUS, without forking.
24889 as_fn_set_status ()
24890 {
24891 return $1
24892 } # as_fn_set_status
24893
24894 # as_fn_exit STATUS
24895 # -----------------
24896 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24897 as_fn_exit ()
24898 {
24899 set +e
24900 as_fn_set_status $1
24901 exit $1
24902 } # as_fn_exit
24903
24904 # as_fn_unset VAR
24905 # ---------------
24906 # Portably unset VAR.
24907 as_fn_unset ()
24908 {
24909 { eval $1=; unset $1;}
24910 }
24911 as_unset=as_fn_unset
24912 # as_fn_append VAR VALUE
24913 # ----------------------
24914 # Append the text in VALUE to the end of the definition contained in VAR. Take
24915 # advantage of any shell optimizations that allow amortized linear growth over
24916 # repeated appends, instead of the typical quadratic growth present in naive
24917 # implementations.
24918 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24919 eval 'as_fn_append ()
24920 {
24921 eval $1+=\$2
24922 }'
24923 else
24924 as_fn_append ()
24925 {
24926 eval $1=\$$1\$2
24927 }
24928 fi # as_fn_append
24929
24930 # as_fn_arith ARG...
24931 # ------------------
24932 # Perform arithmetic evaluation on the ARGs, and store the result in the
24933 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24934 # must be portable across $(()) and expr.
24935 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24936 eval 'as_fn_arith ()
24937 {
24938 as_val=$(( $* ))
24939 }'
24940 else
24941 as_fn_arith ()
24942 {
24943 as_val=`expr "$@" || test $? -eq 1`
24944 }
24945 fi # as_fn_arith
24946
24947
24948 if expr a : '\(a\)' >/dev/null 2>&1 &&
24949 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24950 as_expr=expr
24951 else
24952 as_expr=false
24953 fi
24954
24955 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24956 as_basename=basename
24957 else
24958 as_basename=false
24959 fi
24960
24961 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24962 as_dirname=dirname
24963 else
24964 as_dirname=false
24965 fi
24966
24967 as_me=`$as_basename -- "$0" ||
24968 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24969 X"$0" : 'X\(//\)$' \| \
24970 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24971 $as_echo X/"$0" |
24972 sed '/^.*\/\([^/][^/]*\)\/*$/{
24973 s//\1/
24974 q
24975 }
24976 /^X\/\(\/\/\)$/{
24977 s//\1/
24978 q
24979 }
24980 /^X\/\(\/\).*/{
24981 s//\1/
24982 q
24983 }
24984 s/.*/./; q'`
24985
24986 # Avoid depending upon Character Ranges.
24987 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24988 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24989 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24990 as_cr_digits='0123456789'
24991 as_cr_alnum=$as_cr_Letters$as_cr_digits
24992
24993 ECHO_C= ECHO_N= ECHO_T=
24994 case `echo -n x` in #(((((
24995 -n*)
24996 case `echo 'xy\c'` in
24997 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24998 xy) ECHO_C='\c';;
24999 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25000 ECHO_T=' ';;
25001 esac;;
25002 *)
25003 ECHO_N='-n';;
25004 esac
25005
25006 rm -f conf$$ conf$$.exe conf$$.file
25007 if test -d conf$$.dir; then
25008 rm -f conf$$.dir/conf$$.file
25009 else
25010 rm -f conf$$.dir
25011 mkdir conf$$.dir 2>/dev/null
25012 fi
25013 if (echo >conf$$.file) 2>/dev/null; then
25014 if ln -s conf$$.file conf$$ 2>/dev/null; then
25015 as_ln_s='ln -s'
25016 # ... but there are two gotchas:
25017 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25018 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25019 # In both cases, we have to default to `cp -p'.
25020 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25021 as_ln_s='cp -p'
25022 elif ln conf$$.file conf$$ 2>/dev/null; then
25023 as_ln_s=ln
25024 else
25025 as_ln_s='cp -p'
25026 fi
25027 else
25028 as_ln_s='cp -p'
25029 fi
25030 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25031 rmdir conf$$.dir 2>/dev/null
25032
25033
25034 # as_fn_mkdir_p
25035 # -------------
25036 # Create "$as_dir" as a directory, including parents if necessary.
25037 as_fn_mkdir_p ()
25038 {
25039
25040 case $as_dir in #(
25041 -*) as_dir=./$as_dir;;
25042 esac
25043 test -d "$as_dir" || eval $as_mkdir_p || {
25044 as_dirs=
25045 while :; do
25046 case $as_dir in #(
25047 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25048 *) as_qdir=$as_dir;;
25049 esac
25050 as_dirs="'$as_qdir' $as_dirs"
25051 as_dir=`$as_dirname -- "$as_dir" ||
25052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25053 X"$as_dir" : 'X\(//\)[^/]' \| \
25054 X"$as_dir" : 'X\(//\)$' \| \
25055 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25056 $as_echo X"$as_dir" |
25057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25058 s//\1/
25059 q
25060 }
25061 /^X\(\/\/\)[^/].*/{
25062 s//\1/
25063 q
25064 }
25065 /^X\(\/\/\)$/{
25066 s//\1/
25067 q
25068 }
25069 /^X\(\/\).*/{
25070 s//\1/
25071 q
25072 }
25073 s/.*/./; q'`
25074 test -d "$as_dir" && break
25075 done
25076 test -z "$as_dirs" || eval "mkdir $as_dirs"
25077 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25078
25079
25080 } # as_fn_mkdir_p
25081 if mkdir -p . 2>/dev/null; then
25082 as_mkdir_p='mkdir -p "$as_dir"'
25083 else
25084 test -d ./-p && rmdir ./-p
25085 as_mkdir_p=false
25086 fi
25087
25088 if test -x / >/dev/null 2>&1; then
25089 as_test_x='test -x'
25090 else
25091 if ls -dL / >/dev/null 2>&1; then
25092 as_ls_L_option=L
25093 else
25094 as_ls_L_option=
25095 fi
25096 as_test_x='
25097 eval sh -c '\''
25098 if test -d "$1"; then
25099 test -d "$1/.";
25100 else
25101 case $1 in #(
25102 -*)set "./$1";;
25103 esac;
25104 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25105 ???[sx]*):;;*)false;;esac;fi
25106 '\'' sh
25107 '
25108 fi
25109 as_executable_p=$as_test_x
25110
25111 # Sed expression to map a string onto a valid CPP name.
25112 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25113
25114 # Sed expression to map a string onto a valid variable name.
25115 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25116
25117
25118 exec 6>&1
25119 ## ----------------------------------- ##
25120 ## Main body of $CONFIG_STATUS script. ##
25121 ## ----------------------------------- ##
25122 _ASEOF
25123 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25124
25125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25126 # Save the log message, to keep $0 and so on meaningful, and to
25127 # report actual input values of CONFIG_FILES etc. instead of their
25128 # values after options handling.
25129 ac_log="
25130 This file was extended by GNU Classpath $as_me 0.98, which was
25131 generated by GNU Autoconf 2.64. Invocation command line was
25132
25133 CONFIG_FILES = $CONFIG_FILES
25134 CONFIG_HEADERS = $CONFIG_HEADERS
25135 CONFIG_LINKS = $CONFIG_LINKS
25136 CONFIG_COMMANDS = $CONFIG_COMMANDS
25137 $ $0 $@
25138
25139 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25140 "
25141
25142 _ACEOF
25143
25144 case $ac_config_files in *"
25145 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25146 esac
25147
25148 case $ac_config_headers in *"
25149 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25150 esac
25151
25152
25153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25154 # Files that config.status was made for.
25155 config_files="$ac_config_files"
25156 config_headers="$ac_config_headers"
25157 config_links="$ac_config_links"
25158 config_commands="$ac_config_commands"
25159
25160 _ACEOF
25161
25162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25163 ac_cs_usage="\
25164 \`$as_me' instantiates files and other configuration actions
25165 from templates according to the current configuration. Unless the files
25166 and actions are specified as TAGs, all are instantiated by default.
25167
25168 Usage: $0 [OPTION]... [TAG]...
25169
25170 -h, --help print this help, then exit
25171 -V, --version print version number and configuration settings, then exit
25172 -q, --quiet, --silent
25173 do not print progress messages
25174 -d, --debug don't remove temporary files
25175 --recheck update $as_me by reconfiguring in the same conditions
25176 --file=FILE[:TEMPLATE]
25177 instantiate the configuration file FILE
25178 --header=FILE[:TEMPLATE]
25179 instantiate the configuration header FILE
25180
25181 Configuration files:
25182 $config_files
25183
25184 Configuration headers:
25185 $config_headers
25186
25187 Configuration links:
25188 $config_links
25189
25190 Configuration commands:
25191 $config_commands
25192
25193 Report bugs to <classpath@gnu.org>.
25194 GNU Classpath home page: <http://www.gnu.org/software/classpath/>.
25195 General help using GNU software: <http://www.gnu.org/gethelp/>."
25196
25197 _ACEOF
25198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25199 ac_cs_version="\\
25200 GNU Classpath config.status 0.98
25201 configured by $0, generated by GNU Autoconf 2.64,
25202 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25203
25204 Copyright (C) 2009 Free Software Foundation, Inc.
25205 This config.status script is free software; the Free Software Foundation
25206 gives unlimited permission to copy, distribute and modify it."
25207
25208 ac_pwd='$ac_pwd'
25209 srcdir='$srcdir'
25210 INSTALL='$INSTALL'
25211 MKDIR_P='$MKDIR_P'
25212 AWK='$AWK'
25213 test -n "\$AWK" || AWK=awk
25214 _ACEOF
25215
25216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25217 # The default lists apply if the user does not specify any file.
25218 ac_need_defaults=:
25219 while test $# != 0
25220 do
25221 case $1 in
25222 --*=*)
25223 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25224 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25225 ac_shift=:
25226 ;;
25227 *)
25228 ac_option=$1
25229 ac_optarg=$2
25230 ac_shift=shift
25231 ;;
25232 esac
25233
25234 case $ac_option in
25235 # Handling of the options.
25236 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25237 ac_cs_recheck=: ;;
25238 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25239 $as_echo "$ac_cs_version"; exit ;;
25240 --debug | --debu | --deb | --de | --d | -d )
25241 debug=: ;;
25242 --file | --fil | --fi | --f )
25243 $ac_shift
25244 case $ac_optarg in
25245 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25246 esac
25247 as_fn_append CONFIG_FILES " '$ac_optarg'"
25248 ac_need_defaults=false;;
25249 --header | --heade | --head | --hea )
25250 $ac_shift
25251 case $ac_optarg in
25252 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25253 esac
25254 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25255 ac_need_defaults=false;;
25256 --he | --h)
25257 # Conflict between --help and --header
25258 as_fn_error "ambiguous option: \`$1'
25259 Try \`$0 --help' for more information.";;
25260 --help | --hel | -h )
25261 $as_echo "$ac_cs_usage"; exit ;;
25262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25263 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25264 ac_cs_silent=: ;;
25265
25266 # This is an error.
25267 -*) as_fn_error "unrecognized option: \`$1'
25268 Try \`$0 --help' for more information." ;;
25269
25270 *) as_fn_append ac_config_targets " $1"
25271 ac_need_defaults=false ;;
25272
25273 esac
25274 shift
25275 done
25276
25277 ac_configure_extra_args=
25278
25279 if $ac_cs_silent; then
25280 exec 6>/dev/null
25281 ac_configure_extra_args="$ac_configure_extra_args --silent"
25282 fi
25283
25284 _ACEOF
25285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25286 if \$ac_cs_recheck; then
25287 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25288 shift
25289 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25290 CONFIG_SHELL='$SHELL'
25291 export CONFIG_SHELL
25292 exec "\$@"
25293 fi
25294
25295 _ACEOF
25296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25297 exec 5>>config.log
25298 {
25299 echo
25300 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25301 ## Running $as_me. ##
25302 _ASBOX
25303 $as_echo "$ac_log"
25304 } >&5
25305
25306 _ACEOF
25307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25308 #
25309 # INIT-COMMANDS
25310 #
25311
25312 srcdir="$srcdir"
25313 host="$host"
25314 target="$target"
25315 with_multisubdir="$with_multisubdir"
25316 with_multisrctop="$with_multisrctop"
25317 with_target_subdir="$with_target_subdir"
25318 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25319 multi_basedir="$multi_basedir"
25320 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25321 CC="$CC"
25322 CXX="$CXX"
25323 GFORTRAN="$GFORTRAN"
25324 GCJ="$GCJ"
25325 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25326
25327
25328 # The HP-UX ksh and POSIX shell print the target directory to stdout
25329 # if CDPATH is set.
25330 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25331
25332 sed_quote_subst='$sed_quote_subst'
25333 double_quote_subst='$double_quote_subst'
25334 delay_variable_subst='$delay_variable_subst'
25335 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25336 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25337 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25338 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25339 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25340 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25341 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25342 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25343 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25344 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25345 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25346 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25347 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25348 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25349 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25350 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25351 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25352 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25353 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25354 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25355 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25356 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25357 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25358 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25359 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25360 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25361 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25362 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25363 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25364 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25365 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25366 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25367 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25368 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25369 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25370 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25371 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25372 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25373 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25374 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25375 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25376 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25377 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25378 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25379 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25380 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25381 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25382 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25383 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"`'
25384 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25385 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25386 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25387 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25388 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25389 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25390 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25391 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25392 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25393 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25394 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25395 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25396 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25397 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25398 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25399 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25400 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25401 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25402 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25403 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25404 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25405 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25406 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25407 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25408 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25409 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25410 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25411 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25412 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25413 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25414 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25415 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25416 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25417 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25418 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25419 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25420 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25421 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25422 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25423 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25424 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25425 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25426 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25427 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25428 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25429 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25430 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25431 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25432 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25433 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25434 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25435 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25436 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25437 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25438 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25439 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25440 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25441 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25442 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25443 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25444 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25445 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25446 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25447 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25448 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25449 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25450 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25451 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25452 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25453 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25454 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25455 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25456 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25457 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25458 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25459 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25460 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25461 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25462 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25463 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25464 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25465 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25466 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25467 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25468 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25469 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25470 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25471 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25472 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25473 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25474 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25475 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25476 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25477 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25478 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25479 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25480 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25481 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25482 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25483 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25484 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25485 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25486 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25487 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25488 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25489 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25490 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25491 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25492 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25493 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25494 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25495 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25496 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25497 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25498 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25499 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25500 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25501 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25502 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25503 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25504 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25505 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25506 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25507 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25508 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25509 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25510
25511 LTCC='$LTCC'
25512 LTCFLAGS='$LTCFLAGS'
25513 compiler='$compiler_DEFAULT'
25514
25515 # A function that is used when there is no print builtin or printf.
25516 func_fallback_echo ()
25517 {
25518 eval 'cat <<_LTECHO_EOF
25519 \$1
25520 _LTECHO_EOF'
25521 }
25522
25523 # Quote evaled strings.
25524 for var in SHELL \
25525 ECHO \
25526 SED \
25527 GREP \
25528 EGREP \
25529 FGREP \
25530 LD \
25531 NM \
25532 LN_S \
25533 lt_SP2NL \
25534 lt_NL2SP \
25535 reload_flag \
25536 OBJDUMP \
25537 deplibs_check_method \
25538 file_magic_cmd \
25539 AR \
25540 AR_FLAGS \
25541 STRIP \
25542 RANLIB \
25543 CC \
25544 CFLAGS \
25545 compiler \
25546 lt_cv_sys_global_symbol_pipe \
25547 lt_cv_sys_global_symbol_to_cdecl \
25548 lt_cv_sys_global_symbol_to_c_name_address \
25549 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25550 lt_prog_compiler_no_builtin_flag \
25551 lt_prog_compiler_wl \
25552 lt_prog_compiler_pic \
25553 lt_prog_compiler_static \
25554 lt_cv_prog_compiler_c_o \
25555 need_locks \
25556 DSYMUTIL \
25557 NMEDIT \
25558 LIPO \
25559 OTOOL \
25560 OTOOL64 \
25561 shrext_cmds \
25562 export_dynamic_flag_spec \
25563 whole_archive_flag_spec \
25564 compiler_needs_object \
25565 with_gnu_ld \
25566 allow_undefined_flag \
25567 no_undefined_flag \
25568 hardcode_libdir_flag_spec \
25569 hardcode_libdir_flag_spec_ld \
25570 hardcode_libdir_separator \
25571 fix_srcfile_path \
25572 exclude_expsyms \
25573 include_expsyms \
25574 file_list_spec \
25575 variables_saved_for_relink \
25576 libname_spec \
25577 library_names_spec \
25578 soname_spec \
25579 install_override_mode \
25580 finish_eval \
25581 old_striplib \
25582 striplib \
25583 compiler_lib_search_dirs \
25584 predep_objects \
25585 postdep_objects \
25586 predeps \
25587 postdeps \
25588 compiler_lib_search_path \
25589 LD_CXX \
25590 reload_flag_CXX \
25591 compiler_CXX \
25592 lt_prog_compiler_no_builtin_flag_CXX \
25593 lt_prog_compiler_wl_CXX \
25594 lt_prog_compiler_pic_CXX \
25595 lt_prog_compiler_static_CXX \
25596 lt_cv_prog_compiler_c_o_CXX \
25597 export_dynamic_flag_spec_CXX \
25598 whole_archive_flag_spec_CXX \
25599 compiler_needs_object_CXX \
25600 with_gnu_ld_CXX \
25601 allow_undefined_flag_CXX \
25602 no_undefined_flag_CXX \
25603 hardcode_libdir_flag_spec_CXX \
25604 hardcode_libdir_flag_spec_ld_CXX \
25605 hardcode_libdir_separator_CXX \
25606 fix_srcfile_path_CXX \
25607 exclude_expsyms_CXX \
25608 include_expsyms_CXX \
25609 file_list_spec_CXX \
25610 compiler_lib_search_dirs_CXX \
25611 predep_objects_CXX \
25612 postdep_objects_CXX \
25613 predeps_CXX \
25614 postdeps_CXX \
25615 compiler_lib_search_path_CXX; do
25616 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25617 *[\\\\\\\`\\"\\\$]*)
25618 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25619 ;;
25620 *)
25621 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25622 ;;
25623 esac
25624 done
25625
25626 # Double-quote double-evaled strings.
25627 for var in reload_cmds \
25628 old_postinstall_cmds \
25629 old_postuninstall_cmds \
25630 old_archive_cmds \
25631 extract_expsyms_cmds \
25632 old_archive_from_new_cmds \
25633 old_archive_from_expsyms_cmds \
25634 archive_cmds \
25635 archive_expsym_cmds \
25636 module_cmds \
25637 module_expsym_cmds \
25638 export_symbols_cmds \
25639 prelink_cmds \
25640 postinstall_cmds \
25641 postuninstall_cmds \
25642 finish_cmds \
25643 sys_lib_search_path_spec \
25644 sys_lib_dlsearch_path_spec \
25645 reload_cmds_CXX \
25646 old_archive_cmds_CXX \
25647 old_archive_from_new_cmds_CXX \
25648 old_archive_from_expsyms_cmds_CXX \
25649 archive_cmds_CXX \
25650 archive_expsym_cmds_CXX \
25651 module_cmds_CXX \
25652 module_expsym_cmds_CXX \
25653 export_symbols_cmds_CXX \
25654 prelink_cmds_CXX; do
25655 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25656 *[\\\\\\\`\\"\\\$]*)
25657 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25658 ;;
25659 *)
25660 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25661 ;;
25662 esac
25663 done
25664
25665 ac_aux_dir='$ac_aux_dir'
25666 xsi_shell='$xsi_shell'
25667 lt_shell_append='$lt_shell_append'
25668
25669 # See if we are running on zsh, and set the options which allow our
25670 # commands through without removal of \ escapes INIT.
25671 if test -n "\${ZSH_VERSION+set}" ; then
25672 setopt NO_GLOB_SUBST
25673 fi
25674
25675
25676 PACKAGE='$PACKAGE'
25677 VERSION='$VERSION'
25678 TIMESTAMP='$TIMESTAMP'
25679 RM='$RM'
25680 ofile='$ofile'
25681
25682
25683
25684
25685
25686 # variables for create stdint.h replacement
25687 PACKAGE="$PACKAGE"
25688 VERSION="$VERSION"
25689 ac_stdint_h="$ac_stdint_h"
25690 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
25691 ac_cv_stdint_message="$ac_cv_stdint_message"
25692 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
25693 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
25694 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
25695 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
25696 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
25697 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
25698 ac_cv_char_data_model="$ac_cv_char_data_model"
25699 ac_cv_long_data_model="$ac_cv_long_data_model"
25700 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
25701 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
25702 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
25703
25704
25705 _ACEOF
25706
25707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25708
25709 # Handling of arguments.
25710 for ac_config_target in $ac_config_targets
25711 do
25712 case $ac_config_target in
25713 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25714 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25715 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25716 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25717 "lib/mkcollections.pl") CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
25718 "mkcollections.pl") CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
25719 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
25720 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
25721 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25722 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25723 "doc/api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
25724 "external/Makefile") CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
25725 "external/sax/Makefile") CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
25726 "external/w3c_dom/Makefile") CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
25727 "external/relaxngDatatype/Makefile") CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
25728 "external/jsr166/Makefile") CONFIG_FILES="$CONFIG_FILES external/jsr166/Makefile" ;;
25729 "gnu/classpath/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
25730 "gnu/java/security/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/java/security/Configuration.java" ;;
25731 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25732 "native/Makefile") CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
25733 "native/fdlibm/Makefile") CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
25734 "native/jawt/Makefile") CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
25735 "native/jni/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
25736 "native/jni/classpath/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
25737 "native/jni/java-io/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
25738 "native/jni/java-lang/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
25739 "native/jni/java-math/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-math/Makefile" ;;
25740 "native/jni/java-net/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
25741 "native/jni/java-nio/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
25742 "native/jni/java-util/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
25743 "native/jni/gtk-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
25744 "native/jni/gconf-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gconf-peer/Makefile" ;;
25745 "native/jni/gstreamer-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gstreamer-peer/Makefile" ;;
25746 "native/jni/qt-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
25747 "native/jni/xmlj/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
25748 "native/jni/midi-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
25749 "native/jni/midi-dssi/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
25750 "native/jni/native-lib/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/native-lib/Makefile" ;;
25751 "native/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES native/plugin/Makefile" ;;
25752 "resource/Makefile") CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
25753 "resource/META-INF/services/java.util.prefs.PreferencesFactory") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/java.util.prefs.PreferencesFactory" ;;
25754 "resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader" ;;
25755 "resource/META-INF/services/javax.sound.sampled.spi.MixerProvider") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.MixerProvider" ;;
25756 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
25757 "scripts/classpath.spec") CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
25758 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25759 "lib/gen-classlist.sh") CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
25760 "lib/copy-vmresources.sh") CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
25761 "scripts/check_jni_methods.sh") CONFIG_FILES="$CONFIG_FILES scripts/check_jni_methods.sh" ;;
25762 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
25763 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
25764 "examples/Makefile.jawt") CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
25765 "examples/Makefile.java2d") CONFIG_FILES="$CONFIG_FILES examples/Makefile.java2d" ;;
25766 "tools/gappletviewer") CONFIG_FILES="$CONFIG_FILES tools/gappletviewer" ;;
25767 "tools/gjarsigner") CONFIG_FILES="$CONFIG_FILES tools/gjarsigner" ;;
25768 "tools/gkeytool") CONFIG_FILES="$CONFIG_FILES tools/gkeytool" ;;
25769 "tools/gjar") CONFIG_FILES="$CONFIG_FILES tools/gjar" ;;
25770 "tools/gnative2ascii") CONFIG_FILES="$CONFIG_FILES tools/gnative2ascii" ;;
25771 "tools/gserialver") CONFIG_FILES="$CONFIG_FILES tools/gserialver" ;;
25772 "tools/grmiregistry") CONFIG_FILES="$CONFIG_FILES tools/grmiregistry" ;;
25773 "tools/gtnameserv") CONFIG_FILES="$CONFIG_FILES tools/gtnameserv" ;;
25774 "tools/gorbd") CONFIG_FILES="$CONFIG_FILES tools/gorbd" ;;
25775 "tools/grmid") CONFIG_FILES="$CONFIG_FILES tools/grmid" ;;
25776 "tools/grmic") CONFIG_FILES="$CONFIG_FILES tools/grmic" ;;
25777 "tools/gjavah") CONFIG_FILES="$CONFIG_FILES tools/gjavah" ;;
25778 "gappletviewer") CONFIG_COMMANDS="$CONFIG_COMMANDS gappletviewer" ;;
25779 "gjarsigner") CONFIG_COMMANDS="$CONFIG_COMMANDS gjarsigner" ;;
25780 "gkeytool") CONFIG_COMMANDS="$CONFIG_COMMANDS gkeytool" ;;
25781 "gjar") CONFIG_COMMANDS="$CONFIG_COMMANDS gjar" ;;
25782 "gnative2ascii") CONFIG_COMMANDS="$CONFIG_COMMANDS gnative2ascii" ;;
25783 "gserialver") CONFIG_COMMANDS="$CONFIG_COMMANDS gserialver" ;;
25784 "grmiregistry") CONFIG_COMMANDS="$CONFIG_COMMANDS grmiregistry" ;;
25785 "gtnameserv") CONFIG_COMMANDS="$CONFIG_COMMANDS gtnameserv" ;;
25786 "gorbd") CONFIG_COMMANDS="$CONFIG_COMMANDS gorbd" ;;
25787 "grmid") CONFIG_COMMANDS="$CONFIG_COMMANDS grmid" ;;
25788 "grmic") CONFIG_COMMANDS="$CONFIG_COMMANDS grmic" ;;
25789 "gjavah") CONFIG_COMMANDS="$CONFIG_COMMANDS gjavah" ;;
25790 "tools/gjdoc") CONFIG_FILES="$CONFIG_FILES tools/gjdoc" ;;
25791 "gjdoc") CONFIG_COMMANDS="$CONFIG_COMMANDS gjdoc" ;;
25792 "gen-classlist") CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
25793 "copy-vmresources") CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
25794
25795 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25796 esac
25797 done
25798
25799
25800 # If the user did not use the arguments to specify the items to instantiate,
25801 # then the envvar interface is used. Set only those that are not.
25802 # We use the long form for the default assignment because of an extremely
25803 # bizarre bug on SunOS 4.1.3.
25804 if $ac_need_defaults; then
25805 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25806 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25807 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25808 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25809 fi
25810
25811 # Have a temporary directory for convenience. Make it in the build tree
25812 # simply because there is no reason against having it here, and in addition,
25813 # creating and moving files from /tmp can sometimes cause problems.
25814 # Hook for its removal unless debugging.
25815 # Note that there is a small window in which the directory will not be cleaned:
25816 # after its creation but before its name has been assigned to `$tmp'.
25817 $debug ||
25818 {
25819 tmp=
25820 trap 'exit_status=$?
25821 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25822 ' 0
25823 trap 'as_fn_exit 1' 1 2 13 15
25824 }
25825 # Create a (secure) tmp directory for tmp files.
25826
25827 {
25828 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25829 test -n "$tmp" && test -d "$tmp"
25830 } ||
25831 {
25832 tmp=./conf$$-$RANDOM
25833 (umask 077 && mkdir "$tmp")
25834 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25835
25836 # Set up the scripts for CONFIG_FILES section.
25837 # No need to generate them if there are no CONFIG_FILES.
25838 # This happens for instance with `./config.status config.h'.
25839 if test -n "$CONFIG_FILES"; then
25840
25841
25842 ac_cr=`echo X | tr X '\015'`
25843 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25844 # But we know of no other shell where ac_cr would be empty at this
25845 # point, so we can use a bashism as a fallback.
25846 if test "x$ac_cr" = x; then
25847 eval ac_cr=\$\'\\r\'
25848 fi
25849 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25850 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25851 ac_cs_awk_cr='\r'
25852 else
25853 ac_cs_awk_cr=$ac_cr
25854 fi
25855
25856 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25857 _ACEOF
25858
25859
25860 {
25861 echo "cat >conf$$subs.awk <<_ACEOF" &&
25862 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25863 echo "_ACEOF"
25864 } >conf$$subs.sh ||
25865 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25866 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25867 ac_delim='%!_!# '
25868 for ac_last_try in false false false false false :; do
25869 . ./conf$$subs.sh ||
25870 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25871
25872 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25873 if test $ac_delim_n = $ac_delim_num; then
25874 break
25875 elif $ac_last_try; then
25876 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25877 else
25878 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25879 fi
25880 done
25881 rm -f conf$$subs.sh
25882
25883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25884 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25885 _ACEOF
25886 sed -n '
25887 h
25888 s/^/S["/; s/!.*/"]=/
25889 p
25890 g
25891 s/^[^!]*!//
25892 :repl
25893 t repl
25894 s/'"$ac_delim"'$//
25895 t delim
25896 :nl
25897 h
25898 s/\(.\{148\}\).*/\1/
25899 t more1
25900 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25901 p
25902 n
25903 b repl
25904 :more1
25905 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25906 p
25907 g
25908 s/.\{148\}//
25909 t nl
25910 :delim
25911 h
25912 s/\(.\{148\}\).*/\1/
25913 t more2
25914 s/["\\]/\\&/g; s/^/"/; s/$/"/
25915 p
25916 b
25917 :more2
25918 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25919 p
25920 g
25921 s/.\{148\}//
25922 t delim
25923 ' <conf$$subs.awk | sed '
25924 /^[^""]/{
25925 N
25926 s/\n//
25927 }
25928 ' >>$CONFIG_STATUS || ac_write_fail=1
25929 rm -f conf$$subs.awk
25930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25931 _ACAWK
25932 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25933 for (key in S) S_is_set[key] = 1
25934 FS = "\a"
25935
25936 }
25937 {
25938 line = $ 0
25939 nfields = split(line, field, "@")
25940 substed = 0
25941 len = length(field[1])
25942 for (i = 2; i < nfields; i++) {
25943 key = field[i]
25944 keylen = length(key)
25945 if (S_is_set[key]) {
25946 value = S[key]
25947 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25948 len += length(value) + length(field[++i])
25949 substed = 1
25950 } else
25951 len += 1 + keylen
25952 }
25953
25954 print line
25955 }
25956
25957 _ACAWK
25958 _ACEOF
25959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25960 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25961 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25962 else
25963 cat
25964 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25965 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25966 _ACEOF
25967
25968 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25969 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25970 # trailing colons and then remove the whole line if VPATH becomes empty
25971 # (actually we leave an empty line to preserve line numbers).
25972 if test "x$srcdir" = x.; then
25973 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25974 s/:*\$(srcdir):*/:/
25975 s/:*\${srcdir}:*/:/
25976 s/:*@srcdir@:*/:/
25977 s/^\([^=]*=[ ]*\):*/\1/
25978 s/:*$//
25979 s/^[^=]*=[ ]*$//
25980 }'
25981 fi
25982
25983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25984 fi # test -n "$CONFIG_FILES"
25985
25986 # Set up the scripts for CONFIG_HEADERS section.
25987 # No need to generate them if there are no CONFIG_HEADERS.
25988 # This happens for instance with `./config.status Makefile'.
25989 if test -n "$CONFIG_HEADERS"; then
25990 cat >"$tmp/defines.awk" <<\_ACAWK ||
25991 BEGIN {
25992 _ACEOF
25993
25994 # Transform confdefs.h into an awk script `defines.awk', embedded as
25995 # here-document in config.status, that substitutes the proper values into
25996 # config.h.in to produce config.h.
25997
25998 # Create a delimiter string that does not exist in confdefs.h, to ease
25999 # handling of long lines.
26000 ac_delim='%!_!# '
26001 for ac_last_try in false false :; do
26002 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26003 if test -z "$ac_t"; then
26004 break
26005 elif $ac_last_try; then
26006 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26007 else
26008 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26009 fi
26010 done
26011
26012 # For the awk script, D is an array of macro values keyed by name,
26013 # likewise P contains macro parameters if any. Preserve backslash
26014 # newline sequences.
26015
26016 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26017 sed -n '
26018 s/.\{148\}/&'"$ac_delim"'/g
26019 t rset
26020 :rset
26021 s/^[ ]*#[ ]*define[ ][ ]*/ /
26022 t def
26023 d
26024 :def
26025 s/\\$//
26026 t bsnl
26027 s/["\\]/\\&/g
26028 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26029 D["\1"]=" \3"/p
26030 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26031 d
26032 :bsnl
26033 s/["\\]/\\&/g
26034 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26035 D["\1"]=" \3\\\\\\n"\\/p
26036 t cont
26037 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26038 t cont
26039 d
26040 :cont
26041 n
26042 s/.\{148\}/&'"$ac_delim"'/g
26043 t clear
26044 :clear
26045 s/\\$//
26046 t bsnlc
26047 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26048 d
26049 :bsnlc
26050 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26051 b cont
26052 ' <confdefs.h | sed '
26053 s/'"$ac_delim"'/"\\\
26054 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26055
26056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26057 for (key in D) D_is_set[key] = 1
26058 FS = "\a"
26059 }
26060 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26061 line = \$ 0
26062 split(line, arg, " ")
26063 if (arg[1] == "#") {
26064 defundef = arg[2]
26065 mac1 = arg[3]
26066 } else {
26067 defundef = substr(arg[1], 2)
26068 mac1 = arg[2]
26069 }
26070 split(mac1, mac2, "(") #)
26071 macro = mac2[1]
26072 prefix = substr(line, 1, index(line, defundef) - 1)
26073 if (D_is_set[macro]) {
26074 # Preserve the white space surrounding the "#".
26075 print prefix "define", macro P[macro] D[macro]
26076 next
26077 } else {
26078 # Replace #undef with comments. This is necessary, for example,
26079 # in the case of _POSIX_SOURCE, which is predefined and required
26080 # on some systems where configure will not decide to define it.
26081 if (defundef == "undef") {
26082 print "/*", prefix defundef, macro, "*/"
26083 next
26084 }
26085 }
26086 }
26087 { print }
26088 _ACAWK
26089 _ACEOF
26090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26091 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26092 fi # test -n "$CONFIG_HEADERS"
26093
26094
26095 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26096 shift
26097 for ac_tag
26098 do
26099 case $ac_tag in
26100 :[FHLC]) ac_mode=$ac_tag; continue;;
26101 esac
26102 case $ac_mode$ac_tag in
26103 :[FHL]*:*);;
26104 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26105 :[FH]-) ac_tag=-:-;;
26106 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26107 esac
26108 ac_save_IFS=$IFS
26109 IFS=:
26110 set x $ac_tag
26111 IFS=$ac_save_IFS
26112 shift
26113 ac_file=$1
26114 shift
26115
26116 case $ac_mode in
26117 :L) ac_source=$1;;
26118 :[FH])
26119 ac_file_inputs=
26120 for ac_f
26121 do
26122 case $ac_f in
26123 -) ac_f="$tmp/stdin";;
26124 *) # Look for the file first in the build tree, then in the source tree
26125 # (if the path is not absolute). The absolute path cannot be DOS-style,
26126 # because $ac_f cannot contain `:'.
26127 test -f "$ac_f" ||
26128 case $ac_f in
26129 [\\/$]*) false;;
26130 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26131 esac ||
26132 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26133 esac
26134 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26135 as_fn_append ac_file_inputs " '$ac_f'"
26136 done
26137
26138 # Let's still pretend it is `configure' which instantiates (i.e., don't
26139 # use $as_me), people would be surprised to read:
26140 # /* config.h. Generated by config.status. */
26141 configure_input='Generated from '`
26142 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26143 `' by configure.'
26144 if test x"$ac_file" != x-; then
26145 configure_input="$ac_file. $configure_input"
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26147 $as_echo "$as_me: creating $ac_file" >&6;}
26148 fi
26149 # Neutralize special characters interpreted by sed in replacement strings.
26150 case $configure_input in #(
26151 *\&* | *\|* | *\\* )
26152 ac_sed_conf_input=`$as_echo "$configure_input" |
26153 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26154 *) ac_sed_conf_input=$configure_input;;
26155 esac
26156
26157 case $ac_tag in
26158 *:-:* | *:-) cat >"$tmp/stdin" \
26159 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26160 esac
26161 ;;
26162 esac
26163
26164 ac_dir=`$as_dirname -- "$ac_file" ||
26165 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26166 X"$ac_file" : 'X\(//\)[^/]' \| \
26167 X"$ac_file" : 'X\(//\)$' \| \
26168 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26169 $as_echo X"$ac_file" |
26170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26171 s//\1/
26172 q
26173 }
26174 /^X\(\/\/\)[^/].*/{
26175 s//\1/
26176 q
26177 }
26178 /^X\(\/\/\)$/{
26179 s//\1/
26180 q
26181 }
26182 /^X\(\/\).*/{
26183 s//\1/
26184 q
26185 }
26186 s/.*/./; q'`
26187 as_dir="$ac_dir"; as_fn_mkdir_p
26188 ac_builddir=.
26189
26190 case "$ac_dir" in
26191 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26192 *)
26193 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26194 # A ".." for each directory in $ac_dir_suffix.
26195 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26196 case $ac_top_builddir_sub in
26197 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26198 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26199 esac ;;
26200 esac
26201 ac_abs_top_builddir=$ac_pwd
26202 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26203 # for backward compatibility:
26204 ac_top_builddir=$ac_top_build_prefix
26205
26206 case $srcdir in
26207 .) # We are building in place.
26208 ac_srcdir=.
26209 ac_top_srcdir=$ac_top_builddir_sub
26210 ac_abs_top_srcdir=$ac_pwd ;;
26211 [\\/]* | ?:[\\/]* ) # Absolute name.
26212 ac_srcdir=$srcdir$ac_dir_suffix;
26213 ac_top_srcdir=$srcdir
26214 ac_abs_top_srcdir=$srcdir ;;
26215 *) # Relative name.
26216 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26217 ac_top_srcdir=$ac_top_build_prefix$srcdir
26218 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26219 esac
26220 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26221
26222
26223 case $ac_mode in
26224 :F)
26225 #
26226 # CONFIG_FILE
26227 #
26228
26229 case $INSTALL in
26230 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26231 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26232 esac
26233 ac_MKDIR_P=$MKDIR_P
26234 case $MKDIR_P in
26235 [\\/$]* | ?:[\\/]* ) ;;
26236 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26237 esac
26238 _ACEOF
26239
26240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26241 # If the template does not know about datarootdir, expand it.
26242 # FIXME: This hack should be removed a few years after 2.60.
26243 ac_datarootdir_hack=; ac_datarootdir_seen=
26244 ac_sed_dataroot='
26245 /datarootdir/ {
26246 p
26247 q
26248 }
26249 /@datadir@/p
26250 /@docdir@/p
26251 /@infodir@/p
26252 /@localedir@/p
26253 /@mandir@/p'
26254 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26255 *datarootdir*) ac_datarootdir_seen=yes;;
26256 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26258 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26259 _ACEOF
26260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26261 ac_datarootdir_hack='
26262 s&@datadir@&$datadir&g
26263 s&@docdir@&$docdir&g
26264 s&@infodir@&$infodir&g
26265 s&@localedir@&$localedir&g
26266 s&@mandir@&$mandir&g
26267 s&\\\${datarootdir}&$datarootdir&g' ;;
26268 esac
26269 _ACEOF
26270
26271 # Neutralize VPATH when `$srcdir' = `.'.
26272 # Shell code in configure.ac might set extrasub.
26273 # FIXME: do we really want to maintain this feature?
26274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26275 ac_sed_extra="$ac_vpsub
26276 $extrasub
26277 _ACEOF
26278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26279 :t
26280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26281 s|@configure_input@|$ac_sed_conf_input|;t t
26282 s&@top_builddir@&$ac_top_builddir_sub&;t t
26283 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26284 s&@srcdir@&$ac_srcdir&;t t
26285 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26286 s&@top_srcdir@&$ac_top_srcdir&;t t
26287 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26288 s&@builddir@&$ac_builddir&;t t
26289 s&@abs_builddir@&$ac_abs_builddir&;t t
26290 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26291 s&@INSTALL@&$ac_INSTALL&;t t
26292 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26293 $ac_datarootdir_hack
26294 "
26295 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26296 || as_fn_error "could not create $ac_file" "$LINENO" 5
26297
26298 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26299 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26300 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26302 which seems to be undefined. Please make sure it is defined." >&5
26303 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26304 which seems to be undefined. Please make sure it is defined." >&2;}
26305
26306 rm -f "$tmp/stdin"
26307 case $ac_file in
26308 -) cat "$tmp/out" && rm -f "$tmp/out";;
26309 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26310 esac \
26311 || as_fn_error "could not create $ac_file" "$LINENO" 5
26312 ;;
26313 :H)
26314 #
26315 # CONFIG_HEADER
26316 #
26317 if test x"$ac_file" != x-; then
26318 {
26319 $as_echo "/* $configure_input */" \
26320 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26321 } >"$tmp/config.h" \
26322 || as_fn_error "could not create $ac_file" "$LINENO" 5
26323 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26324 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26325 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26326 else
26327 rm -f "$ac_file"
26328 mv "$tmp/config.h" "$ac_file" \
26329 || as_fn_error "could not create $ac_file" "$LINENO" 5
26330 fi
26331 else
26332 $as_echo "/* $configure_input */" \
26333 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26334 || as_fn_error "could not create -" "$LINENO" 5
26335 fi
26336 # Compute "$ac_file"'s index in $config_headers.
26337 _am_arg="$ac_file"
26338 _am_stamp_count=1
26339 for _am_header in $config_headers :; do
26340 case $_am_header in
26341 $_am_arg | $_am_arg:* )
26342 break ;;
26343 * )
26344 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26345 esac
26346 done
26347 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26348 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26349 X"$_am_arg" : 'X\(//\)[^/]' \| \
26350 X"$_am_arg" : 'X\(//\)$' \| \
26351 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26352 $as_echo X"$_am_arg" |
26353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26354 s//\1/
26355 q
26356 }
26357 /^X\(\/\/\)[^/].*/{
26358 s//\1/
26359 q
26360 }
26361 /^X\(\/\/\)$/{
26362 s//\1/
26363 q
26364 }
26365 /^X\(\/\).*/{
26366 s//\1/
26367 q
26368 }
26369 s/.*/./; q'`/stamp-h$_am_stamp_count
26370 ;;
26371 :L)
26372 #
26373 # CONFIG_LINK
26374 #
26375
26376 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26377 :
26378 else
26379 # Prefer the file from the source tree if names are identical.
26380 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26381 ac_source=$srcdir/$ac_source
26382 fi
26383
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26385 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26386
26387 if test ! -r "$ac_source"; then
26388 as_fn_error "$ac_source: file not found" "$LINENO" 5
26389 fi
26390 rm -f "$ac_file"
26391
26392 # Try a relative symlink, then a hard link, then a copy.
26393 case $srcdir in
26394 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26395 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26396 esac
26397 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26398 ln "$ac_source" "$ac_file" 2>/dev/null ||
26399 cp -p "$ac_source" "$ac_file" ||
26400 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26401 fi
26402 ;;
26403 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26404 $as_echo "$as_me: executing $ac_file commands" >&6;}
26405 ;;
26406 esac
26407
26408
26409 case $ac_file$ac_mode in
26410 "default-1":C)
26411 # Only add multilib support code if we just rebuilt the top-level
26412 # Makefile.
26413 case " $CONFIG_FILES " in
26414 *" Makefile "*)
26415 ac_file=Makefile . ${multi_basedir}/config-ml.in
26416 ;;
26417 esac ;;
26418 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26419 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26420 # are listed without --file. Let's play safe and only enable the eval
26421 # if we detect the quoting.
26422 case $CONFIG_FILES in
26423 *\'*) eval set x "$CONFIG_FILES" ;;
26424 *) set x $CONFIG_FILES ;;
26425 esac
26426 shift
26427 for mf
26428 do
26429 # Strip MF so we end up with the name of the file.
26430 mf=`echo "$mf" | sed -e 's/:.*$//'`
26431 # Check whether this is an Automake generated Makefile or not.
26432 # We used to match only the files named `Makefile.in', but
26433 # some people rename them; so instead we look at the file content.
26434 # Grep'ing the first line is not enough: some people post-process
26435 # each Makefile.in and add a new line on top of each file to say so.
26436 # Grep'ing the whole file is not good either: AIX grep has a line
26437 # limit of 2048, but all sed's we know have understand at least 4000.
26438 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26439 dirpart=`$as_dirname -- "$mf" ||
26440 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26441 X"$mf" : 'X\(//\)[^/]' \| \
26442 X"$mf" : 'X\(//\)$' \| \
26443 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26444 $as_echo X"$mf" |
26445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26446 s//\1/
26447 q
26448 }
26449 /^X\(\/\/\)[^/].*/{
26450 s//\1/
26451 q
26452 }
26453 /^X\(\/\/\)$/{
26454 s//\1/
26455 q
26456 }
26457 /^X\(\/\).*/{
26458 s//\1/
26459 q
26460 }
26461 s/.*/./; q'`
26462 else
26463 continue
26464 fi
26465 # Extract the definition of DEPDIR, am__include, and am__quote
26466 # from the Makefile without running `make'.
26467 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26468 test -z "$DEPDIR" && continue
26469 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26470 test -z "am__include" && continue
26471 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26472 # When using ansi2knr, U may be empty or an underscore; expand it
26473 U=`sed -n 's/^U = //p' < "$mf"`
26474 # Find all dependency output files, they are included files with
26475 # $(DEPDIR) in their names. We invoke sed twice because it is the
26476 # simplest approach to changing $(DEPDIR) to its actual value in the
26477 # expansion.
26478 for file in `sed -n "
26479 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26480 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26481 # Make sure the directory exists.
26482 test -f "$dirpart/$file" && continue
26483 fdir=`$as_dirname -- "$file" ||
26484 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26485 X"$file" : 'X\(//\)[^/]' \| \
26486 X"$file" : 'X\(//\)$' \| \
26487 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26488 $as_echo X"$file" |
26489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26490 s//\1/
26491 q
26492 }
26493 /^X\(\/\/\)[^/].*/{
26494 s//\1/
26495 q
26496 }
26497 /^X\(\/\/\)$/{
26498 s//\1/
26499 q
26500 }
26501 /^X\(\/\).*/{
26502 s//\1/
26503 q
26504 }
26505 s/.*/./; q'`
26506 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26507 # echo "creating $dirpart/$file"
26508 echo '# dummy' > "$dirpart/$file"
26509 done
26510 done
26511 }
26512 ;;
26513 "libtool":C)
26514
26515 # See if we are running on zsh, and set the options which allow our
26516 # commands through without removal of \ escapes.
26517 if test -n "${ZSH_VERSION+set}" ; then
26518 setopt NO_GLOB_SUBST
26519 fi
26520
26521 cfgfile="${ofile}T"
26522 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26523 $RM "$cfgfile"
26524
26525 cat <<_LT_EOF >> "$cfgfile"
26526 #! $SHELL
26527
26528 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26529 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26530 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26531 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26532 #
26533 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26534 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
26535 # Written by Gordon Matzigkeit, 1996
26536 #
26537 # This file is part of GNU Libtool.
26538 #
26539 # GNU Libtool is free software; you can redistribute it and/or
26540 # modify it under the terms of the GNU General Public License as
26541 # published by the Free Software Foundation; either version 2 of
26542 # the License, or (at your option) any later version.
26543 #
26544 # As a special exception to the GNU General Public License,
26545 # if you distribute this file as part of a program or library that
26546 # is built using GNU Libtool, you may include this file under the
26547 # same distribution terms that you use for the rest of that program.
26548 #
26549 # GNU Libtool is distributed in the hope that it will be useful,
26550 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26551 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26552 # GNU General Public License for more details.
26553 #
26554 # You should have received a copy of the GNU General Public License
26555 # along with GNU Libtool; see the file COPYING. If not, a copy
26556 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26557 # obtained by writing to the Free Software Foundation, Inc.,
26558 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26559
26560
26561 # The names of the tagged configurations supported by this script.
26562 available_tags="CXX "
26563
26564 # ### BEGIN LIBTOOL CONFIG
26565
26566 # Whether or not to build static libraries.
26567 build_old_libs=$enable_static
26568
26569 # Which release of libtool.m4 was used?
26570 macro_version=$macro_version
26571 macro_revision=$macro_revision
26572
26573 # Whether or not to build shared libraries.
26574 build_libtool_libs=$enable_shared
26575
26576 # What type of objects to build.
26577 pic_mode=$pic_mode
26578
26579 # Whether or not to optimize for fast installation.
26580 fast_install=$enable_fast_install
26581
26582 # Shell to use when invoking shell scripts.
26583 SHELL=$lt_SHELL
26584
26585 # An echo program that protects backslashes.
26586 ECHO=$lt_ECHO
26587
26588 # The host system.
26589 host_alias=$host_alias
26590 host=$host
26591 host_os=$host_os
26592
26593 # The build system.
26594 build_alias=$build_alias
26595 build=$build
26596 build_os=$build_os
26597
26598 # A sed program that does not truncate output.
26599 SED=$lt_SED
26600
26601 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26602 Xsed="\$SED -e 1s/^X//"
26603
26604 # A grep program that handles long lines.
26605 GREP=$lt_GREP
26606
26607 # An ERE matcher.
26608 EGREP=$lt_EGREP
26609
26610 # A literal string matcher.
26611 FGREP=$lt_FGREP
26612
26613 # A BSD- or MS-compatible name lister.
26614 NM=$lt_NM
26615
26616 # Whether we need soft or hard links.
26617 LN_S=$lt_LN_S
26618
26619 # What is the maximum length of a command?
26620 max_cmd_len=$max_cmd_len
26621
26622 # Object file suffix (normally "o").
26623 objext=$ac_objext
26624
26625 # Executable file suffix (normally "").
26626 exeext=$exeext
26627
26628 # whether the shell understands "unset".
26629 lt_unset=$lt_unset
26630
26631 # turn spaces into newlines.
26632 SP2NL=$lt_lt_SP2NL
26633
26634 # turn newlines into spaces.
26635 NL2SP=$lt_lt_NL2SP
26636
26637 # An object symbol dumper.
26638 OBJDUMP=$lt_OBJDUMP
26639
26640 # Method to check whether dependent libraries are shared objects.
26641 deplibs_check_method=$lt_deplibs_check_method
26642
26643 # Command to use when deplibs_check_method == "file_magic".
26644 file_magic_cmd=$lt_file_magic_cmd
26645
26646 # The archiver.
26647 AR=$lt_AR
26648 AR_FLAGS=$lt_AR_FLAGS
26649
26650 # A symbol stripping program.
26651 STRIP=$lt_STRIP
26652
26653 # Commands used to install an old-style archive.
26654 RANLIB=$lt_RANLIB
26655 old_postinstall_cmds=$lt_old_postinstall_cmds
26656 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26657
26658 # Whether to use a lock for old archive extraction.
26659 lock_old_archive_extraction=$lock_old_archive_extraction
26660
26661 # A C compiler.
26662 LTCC=$lt_CC
26663
26664 # LTCC compiler flags.
26665 LTCFLAGS=$lt_CFLAGS
26666
26667 # Take the output of nm and produce a listing of raw symbols and C names.
26668 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26669
26670 # Transform the output of nm in a proper C declaration.
26671 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26672
26673 # Transform the output of nm in a C name address pair.
26674 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26675
26676 # Transform the output of nm in a C name address pair when lib prefix is needed.
26677 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26678
26679 # The name of the directory that contains temporary libtool files.
26680 objdir=$objdir
26681
26682 # Used to examine libraries when file_magic_cmd begins with "file".
26683 MAGIC_CMD=$MAGIC_CMD
26684
26685 # Must we lock files when doing compilation?
26686 need_locks=$lt_need_locks
26687
26688 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26689 DSYMUTIL=$lt_DSYMUTIL
26690
26691 # Tool to change global to local symbols on Mac OS X.
26692 NMEDIT=$lt_NMEDIT
26693
26694 # Tool to manipulate fat objects and archives on Mac OS X.
26695 LIPO=$lt_LIPO
26696
26697 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26698 OTOOL=$lt_OTOOL
26699
26700 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26701 OTOOL64=$lt_OTOOL64
26702
26703 # Old archive suffix (normally "a").
26704 libext=$libext
26705
26706 # Shared library suffix (normally ".so").
26707 shrext_cmds=$lt_shrext_cmds
26708
26709 # The commands to extract the exported symbol list from a shared archive.
26710 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26711
26712 # Variables whose values should be saved in libtool wrapper scripts and
26713 # restored at link time.
26714 variables_saved_for_relink=$lt_variables_saved_for_relink
26715
26716 # Do we need the "lib" prefix for modules?
26717 need_lib_prefix=$need_lib_prefix
26718
26719 # Do we need a version for libraries?
26720 need_version=$need_version
26721
26722 # Library versioning type.
26723 version_type=$version_type
26724
26725 # Shared library runtime path variable.
26726 runpath_var=$runpath_var
26727
26728 # Shared library path variable.
26729 shlibpath_var=$shlibpath_var
26730
26731 # Is shlibpath searched before the hard-coded library search path?
26732 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26733
26734 # Format of library name prefix.
26735 libname_spec=$lt_libname_spec
26736
26737 # List of archive names. First name is the real one, the rest are links.
26738 # The last name is the one that the linker finds with -lNAME
26739 library_names_spec=$lt_library_names_spec
26740
26741 # The coded name of the library, if different from the real name.
26742 soname_spec=$lt_soname_spec
26743
26744 # Permission mode override for installation of shared libraries.
26745 install_override_mode=$lt_install_override_mode
26746
26747 # Command to use after installation of a shared archive.
26748 postinstall_cmds=$lt_postinstall_cmds
26749
26750 # Command to use after uninstallation of a shared archive.
26751 postuninstall_cmds=$lt_postuninstall_cmds
26752
26753 # Commands used to finish a libtool library installation in a directory.
26754 finish_cmds=$lt_finish_cmds
26755
26756 # As "finish_cmds", except a single script fragment to be evaled but
26757 # not shown.
26758 finish_eval=$lt_finish_eval
26759
26760 # Whether we should hardcode library paths into libraries.
26761 hardcode_into_libs=$hardcode_into_libs
26762
26763 # Compile-time system search path for libraries.
26764 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26765
26766 # Run-time system search path for libraries.
26767 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26768
26769 # Whether dlopen is supported.
26770 dlopen_support=$enable_dlopen
26771
26772 # Whether dlopen of programs is supported.
26773 dlopen_self=$enable_dlopen_self
26774
26775 # Whether dlopen of statically linked programs is supported.
26776 dlopen_self_static=$enable_dlopen_self_static
26777
26778 # Commands to strip libraries.
26779 old_striplib=$lt_old_striplib
26780 striplib=$lt_striplib
26781
26782
26783 # The linker used to build libraries.
26784 LD=$lt_LD
26785
26786 # How to create reloadable object files.
26787 reload_flag=$lt_reload_flag
26788 reload_cmds=$lt_reload_cmds
26789
26790 # Commands used to build an old-style archive.
26791 old_archive_cmds=$lt_old_archive_cmds
26792
26793 # A language specific compiler.
26794 CC=$lt_compiler
26795
26796 # Is the compiler the GNU compiler?
26797 with_gcc=$GCC
26798
26799 # Compiler flag to turn off builtin functions.
26800 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26801
26802 # How to pass a linker flag through the compiler.
26803 wl=$lt_lt_prog_compiler_wl
26804
26805 # Additional compiler flags for building library objects.
26806 pic_flag=$lt_lt_prog_compiler_pic
26807
26808 # Compiler flag to prevent dynamic linking.
26809 link_static_flag=$lt_lt_prog_compiler_static
26810
26811 # Does compiler simultaneously support -c and -o options?
26812 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26813
26814 # Whether or not to add -lc for building shared libraries.
26815 build_libtool_need_lc=$archive_cmds_need_lc
26816
26817 # Whether or not to disallow shared libs when runtime libs are static.
26818 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26819
26820 # Compiler flag to allow reflexive dlopens.
26821 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26822
26823 # Compiler flag to generate shared objects directly from archives.
26824 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26825
26826 # Whether the compiler copes with passing no objects directly.
26827 compiler_needs_object=$lt_compiler_needs_object
26828
26829 # Create an old-style archive from a shared archive.
26830 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26831
26832 # Create a temporary old-style archive to link instead of a shared archive.
26833 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26834
26835 # Commands used to build a shared archive.
26836 archive_cmds=$lt_archive_cmds
26837 archive_expsym_cmds=$lt_archive_expsym_cmds
26838
26839 # Commands used to build a loadable module if different from building
26840 # a shared archive.
26841 module_cmds=$lt_module_cmds
26842 module_expsym_cmds=$lt_module_expsym_cmds
26843
26844 # Whether we are building with GNU ld or not.
26845 with_gnu_ld=$lt_with_gnu_ld
26846
26847 # Flag that allows shared libraries with undefined symbols to be built.
26848 allow_undefined_flag=$lt_allow_undefined_flag
26849
26850 # Flag that enforces no undefined symbols.
26851 no_undefined_flag=$lt_no_undefined_flag
26852
26853 # Flag to hardcode \$libdir into a binary during linking.
26854 # This must work even if \$libdir does not exist
26855 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26856
26857 # If ld is used when linking, flag to hardcode \$libdir into a binary
26858 # during linking. This must work even if \$libdir does not exist.
26859 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26860
26861 # Whether we need a single "-rpath" flag with a separated argument.
26862 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26863
26864 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26865 # DIR into the resulting binary.
26866 hardcode_direct=$hardcode_direct
26867
26868 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26869 # DIR into the resulting binary and the resulting library dependency is
26870 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26871 # library is relocated.
26872 hardcode_direct_absolute=$hardcode_direct_absolute
26873
26874 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26875 # into the resulting binary.
26876 hardcode_minus_L=$hardcode_minus_L
26877
26878 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26879 # into the resulting binary.
26880 hardcode_shlibpath_var=$hardcode_shlibpath_var
26881
26882 # Set to "yes" if building a shared library automatically hardcodes DIR
26883 # into the library and all subsequent libraries and executables linked
26884 # against it.
26885 hardcode_automatic=$hardcode_automatic
26886
26887 # Set to yes if linker adds runtime paths of dependent libraries
26888 # to runtime path list.
26889 inherit_rpath=$inherit_rpath
26890
26891 # Whether libtool must link a program against all its dependency libraries.
26892 link_all_deplibs=$link_all_deplibs
26893
26894 # Fix the shell variable \$srcfile for the compiler.
26895 fix_srcfile_path=$lt_fix_srcfile_path
26896
26897 # Set to "yes" if exported symbols are required.
26898 always_export_symbols=$always_export_symbols
26899
26900 # The commands to list exported symbols.
26901 export_symbols_cmds=$lt_export_symbols_cmds
26902
26903 # Symbols that should not be listed in the preloaded symbols.
26904 exclude_expsyms=$lt_exclude_expsyms
26905
26906 # Symbols that must always be exported.
26907 include_expsyms=$lt_include_expsyms
26908
26909 # Commands necessary for linking programs (against libraries) with templates.
26910 prelink_cmds=$lt_prelink_cmds
26911
26912 # Specify filename containing input files.
26913 file_list_spec=$lt_file_list_spec
26914
26915 # How to hardcode a shared library path into an executable.
26916 hardcode_action=$hardcode_action
26917
26918 # The directories searched by this compiler when creating a shared library.
26919 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26920
26921 # Dependencies to place before and after the objects being linked to
26922 # create a shared library.
26923 predep_objects=$lt_predep_objects
26924 postdep_objects=$lt_postdep_objects
26925 predeps=$lt_predeps
26926 postdeps=$lt_postdeps
26927
26928 # The library search path used internally by the compiler when linking
26929 # a shared library.
26930 compiler_lib_search_path=$lt_compiler_lib_search_path
26931
26932 # ### END LIBTOOL CONFIG
26933
26934 _LT_EOF
26935
26936 case $host_os in
26937 aix3*)
26938 cat <<\_LT_EOF >> "$cfgfile"
26939 # AIX sometimes has problems with the GCC collect2 program. For some
26940 # reason, if we set the COLLECT_NAMES environment variable, the problems
26941 # vanish in a puff of smoke.
26942 if test "X${COLLECT_NAMES+set}" != Xset; then
26943 COLLECT_NAMES=
26944 export COLLECT_NAMES
26945 fi
26946 _LT_EOF
26947 ;;
26948 esac
26949
26950
26951 ltmain="$ac_aux_dir/ltmain.sh"
26952
26953
26954 # We use sed instead of cat because bash on DJGPP gets confused if
26955 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26956 # text mode, it properly converts lines to CR/LF. This bash problem
26957 # is reportedly fixed, but why not run on old versions too?
26958 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
26959 || (rm -f "$cfgfile"; exit 1)
26960
26961 case $xsi_shell in
26962 yes)
26963 cat << \_LT_EOF >> "$cfgfile"
26964
26965 # func_dirname file append nondir_replacement
26966 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
26967 # otherwise set result to NONDIR_REPLACEMENT.
26968 func_dirname ()
26969 {
26970 case ${1} in
26971 */*) func_dirname_result="${1%/*}${2}" ;;
26972 * ) func_dirname_result="${3}" ;;
26973 esac
26974 }
26975
26976 # func_basename file
26977 func_basename ()
26978 {
26979 func_basename_result="${1##*/}"
26980 }
26981
26982 # func_dirname_and_basename file append nondir_replacement
26983 # perform func_basename and func_dirname in a single function
26984 # call:
26985 # dirname: Compute the dirname of FILE. If nonempty,
26986 # add APPEND to the result, otherwise set result
26987 # to NONDIR_REPLACEMENT.
26988 # value returned in "$func_dirname_result"
26989 # basename: Compute filename of FILE.
26990 # value retuned in "$func_basename_result"
26991 # Implementation must be kept synchronized with func_dirname
26992 # and func_basename. For efficiency, we do not delegate to
26993 # those functions but instead duplicate the functionality here.
26994 func_dirname_and_basename ()
26995 {
26996 case ${1} in
26997 */*) func_dirname_result="${1%/*}${2}" ;;
26998 * ) func_dirname_result="${3}" ;;
26999 esac
27000 func_basename_result="${1##*/}"
27001 }
27002
27003 # func_stripname prefix suffix name
27004 # strip PREFIX and SUFFIX off of NAME.
27005 # PREFIX and SUFFIX must not contain globbing or regex special
27006 # characters, hashes, percent signs, but SUFFIX may contain a leading
27007 # dot (in which case that matches only a dot).
27008 func_stripname ()
27009 {
27010 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27011 # positional parameters, so assign one to ordinary parameter first.
27012 func_stripname_result=${3}
27013 func_stripname_result=${func_stripname_result#"${1}"}
27014 func_stripname_result=${func_stripname_result%"${2}"}
27015 }
27016
27017 # func_opt_split
27018 func_opt_split ()
27019 {
27020 func_opt_split_opt=${1%%=*}
27021 func_opt_split_arg=${1#*=}
27022 }
27023
27024 # func_lo2o object
27025 func_lo2o ()
27026 {
27027 case ${1} in
27028 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27029 *) func_lo2o_result=${1} ;;
27030 esac
27031 }
27032
27033 # func_xform libobj-or-source
27034 func_xform ()
27035 {
27036 func_xform_result=${1%.*}.lo
27037 }
27038
27039 # func_arith arithmetic-term...
27040 func_arith ()
27041 {
27042 func_arith_result=$(( $* ))
27043 }
27044
27045 # func_len string
27046 # STRING may not start with a hyphen.
27047 func_len ()
27048 {
27049 func_len_result=${#1}
27050 }
27051
27052 _LT_EOF
27053 ;;
27054 *) # Bourne compatible functions.
27055 cat << \_LT_EOF >> "$cfgfile"
27056
27057 # func_dirname file append nondir_replacement
27058 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27059 # otherwise set result to NONDIR_REPLACEMENT.
27060 func_dirname ()
27061 {
27062 # Extract subdirectory from the argument.
27063 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27064 if test "X$func_dirname_result" = "X${1}"; then
27065 func_dirname_result="${3}"
27066 else
27067 func_dirname_result="$func_dirname_result${2}"
27068 fi
27069 }
27070
27071 # func_basename file
27072 func_basename ()
27073 {
27074 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27075 }
27076
27077
27078 # func_stripname prefix suffix name
27079 # strip PREFIX and SUFFIX off of NAME.
27080 # PREFIX and SUFFIX must not contain globbing or regex special
27081 # characters, hashes, percent signs, but SUFFIX may contain a leading
27082 # dot (in which case that matches only a dot).
27083 # func_strip_suffix prefix name
27084 func_stripname ()
27085 {
27086 case ${2} in
27087 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27088 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27089 esac
27090 }
27091
27092 # sed scripts:
27093 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27094 my_sed_long_arg='1s/^-[^=]*=//'
27095
27096 # func_opt_split
27097 func_opt_split ()
27098 {
27099 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27100 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27101 }
27102
27103 # func_lo2o object
27104 func_lo2o ()
27105 {
27106 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27107 }
27108
27109 # func_xform libobj-or-source
27110 func_xform ()
27111 {
27112 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27113 }
27114
27115 # func_arith arithmetic-term...
27116 func_arith ()
27117 {
27118 func_arith_result=`expr "$@"`
27119 }
27120
27121 # func_len string
27122 # STRING may not start with a hyphen.
27123 func_len ()
27124 {
27125 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27126 }
27127
27128 _LT_EOF
27129 esac
27130
27131 case $lt_shell_append in
27132 yes)
27133 cat << \_LT_EOF >> "$cfgfile"
27134
27135 # func_append var value
27136 # Append VALUE to the end of shell variable VAR.
27137 func_append ()
27138 {
27139 eval "$1+=\$2"
27140 }
27141 _LT_EOF
27142 ;;
27143 *)
27144 cat << \_LT_EOF >> "$cfgfile"
27145
27146 # func_append var value
27147 # Append VALUE to the end of shell variable VAR.
27148 func_append ()
27149 {
27150 eval "$1=\$$1\$2"
27151 }
27152
27153 _LT_EOF
27154 ;;
27155 esac
27156
27157
27158 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27159 || (rm -f "$cfgfile"; exit 1)
27160
27161 mv -f "$cfgfile" "$ofile" ||
27162 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27163 chmod +x "$ofile"
27164
27165
27166 cat <<_LT_EOF >> "$ofile"
27167
27168 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27169
27170 # The linker used to build libraries.
27171 LD=$lt_LD_CXX
27172
27173 # How to create reloadable object files.
27174 reload_flag=$lt_reload_flag_CXX
27175 reload_cmds=$lt_reload_cmds_CXX
27176
27177 # Commands used to build an old-style archive.
27178 old_archive_cmds=$lt_old_archive_cmds_CXX
27179
27180 # A language specific compiler.
27181 CC=$lt_compiler_CXX
27182
27183 # Is the compiler the GNU compiler?
27184 with_gcc=$GCC_CXX
27185
27186 # Compiler flag to turn off builtin functions.
27187 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27188
27189 # How to pass a linker flag through the compiler.
27190 wl=$lt_lt_prog_compiler_wl_CXX
27191
27192 # Additional compiler flags for building library objects.
27193 pic_flag=$lt_lt_prog_compiler_pic_CXX
27194
27195 # Compiler flag to prevent dynamic linking.
27196 link_static_flag=$lt_lt_prog_compiler_static_CXX
27197
27198 # Does compiler simultaneously support -c and -o options?
27199 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27200
27201 # Whether or not to add -lc for building shared libraries.
27202 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27203
27204 # Whether or not to disallow shared libs when runtime libs are static.
27205 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27206
27207 # Compiler flag to allow reflexive dlopens.
27208 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27209
27210 # Compiler flag to generate shared objects directly from archives.
27211 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27212
27213 # Whether the compiler copes with passing no objects directly.
27214 compiler_needs_object=$lt_compiler_needs_object_CXX
27215
27216 # Create an old-style archive from a shared archive.
27217 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27218
27219 # Create a temporary old-style archive to link instead of a shared archive.
27220 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27221
27222 # Commands used to build a shared archive.
27223 archive_cmds=$lt_archive_cmds_CXX
27224 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27225
27226 # Commands used to build a loadable module if different from building
27227 # a shared archive.
27228 module_cmds=$lt_module_cmds_CXX
27229 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27230
27231 # Whether we are building with GNU ld or not.
27232 with_gnu_ld=$lt_with_gnu_ld_CXX
27233
27234 # Flag that allows shared libraries with undefined symbols to be built.
27235 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27236
27237 # Flag that enforces no undefined symbols.
27238 no_undefined_flag=$lt_no_undefined_flag_CXX
27239
27240 # Flag to hardcode \$libdir into a binary during linking.
27241 # This must work even if \$libdir does not exist
27242 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27243
27244 # If ld is used when linking, flag to hardcode \$libdir into a binary
27245 # during linking. This must work even if \$libdir does not exist.
27246 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27247
27248 # Whether we need a single "-rpath" flag with a separated argument.
27249 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27250
27251 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27252 # DIR into the resulting binary.
27253 hardcode_direct=$hardcode_direct_CXX
27254
27255 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27256 # DIR into the resulting binary and the resulting library dependency is
27257 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27258 # library is relocated.
27259 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27260
27261 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27262 # into the resulting binary.
27263 hardcode_minus_L=$hardcode_minus_L_CXX
27264
27265 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27266 # into the resulting binary.
27267 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27268
27269 # Set to "yes" if building a shared library automatically hardcodes DIR
27270 # into the library and all subsequent libraries and executables linked
27271 # against it.
27272 hardcode_automatic=$hardcode_automatic_CXX
27273
27274 # Set to yes if linker adds runtime paths of dependent libraries
27275 # to runtime path list.
27276 inherit_rpath=$inherit_rpath_CXX
27277
27278 # Whether libtool must link a program against all its dependency libraries.
27279 link_all_deplibs=$link_all_deplibs_CXX
27280
27281 # Fix the shell variable \$srcfile for the compiler.
27282 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27283
27284 # Set to "yes" if exported symbols are required.
27285 always_export_symbols=$always_export_symbols_CXX
27286
27287 # The commands to list exported symbols.
27288 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27289
27290 # Symbols that should not be listed in the preloaded symbols.
27291 exclude_expsyms=$lt_exclude_expsyms_CXX
27292
27293 # Symbols that must always be exported.
27294 include_expsyms=$lt_include_expsyms_CXX
27295
27296 # Commands necessary for linking programs (against libraries) with templates.
27297 prelink_cmds=$lt_prelink_cmds_CXX
27298
27299 # Specify filename containing input files.
27300 file_list_spec=$lt_file_list_spec_CXX
27301
27302 # How to hardcode a shared library path into an executable.
27303 hardcode_action=$hardcode_action_CXX
27304
27305 # The directories searched by this compiler when creating a shared library.
27306 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27307
27308 # Dependencies to place before and after the objects being linked to
27309 # create a shared library.
27310 predep_objects=$lt_predep_objects_CXX
27311 postdep_objects=$lt_postdep_objects_CXX
27312 predeps=$lt_predeps_CXX
27313 postdeps=$lt_postdeps_CXX
27314
27315 # The library search path used internally by the compiler when linking
27316 # a shared library.
27317 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27318
27319 # ### END LIBTOOL TAG CONFIG: CXX
27320 _LT_EOF
27321
27322 ;;
27323 "mkcollections.pl":C) chmod 755 lib/mkcollections.pl ;;
27324 "$ac_stdint_h":C)
27325 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
27326 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
27327 ac_stdint=$tmp/_stdint.h
27328
27329 echo "#ifndef" $_ac_stdint_h >$ac_stdint
27330 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
27331 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
27332 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
27333 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
27334 if test "_$ac_cv_header_stdint_t" != "_" ; then
27335 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
27336 echo "#include <stdint.h>" >>$ac_stdint
27337 echo "#endif" >>$ac_stdint
27338 echo "#endif" >>$ac_stdint
27339 else
27340
27341 cat >>$ac_stdint <<STDINT_EOF
27342
27343 /* ................... shortcircuit part ........................... */
27344
27345 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
27346 #include <stdint.h>
27347 #else
27348 #include <stddef.h>
27349
27350 /* .................... configured part ............................ */
27351
27352 STDINT_EOF
27353
27354 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
27355 if test "_$ac_cv_header_stdint_x" != "_" ; then
27356 ac_header="$ac_cv_header_stdint_x"
27357 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
27358 else
27359 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
27360 fi
27361
27362 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
27363 if test "_$ac_cv_header_stdint_o" != "_" ; then
27364 ac_header="$ac_cv_header_stdint_o"
27365 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
27366 else
27367 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
27368 fi
27369
27370 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
27371 if test "_$ac_cv_header_stdint_u" != "_" ; then
27372 ac_header="$ac_cv_header_stdint_u"
27373 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
27374 else
27375 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
27376 fi
27377
27378 echo "" >>$ac_stdint
27379
27380 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
27381 echo "#include <$ac_header>" >>$ac_stdint
27382 echo "" >>$ac_stdint
27383 fi fi
27384
27385 echo "/* which 64bit typedef has been found */" >>$ac_stdint
27386 if test "$ac_cv_type_uint64_t" = "yes" ; then
27387 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
27388 else
27389 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
27390 fi
27391 if test "$ac_cv_type_u_int64_t" = "yes" ; then
27392 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
27393 else
27394 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
27395 fi
27396 echo "" >>$ac_stdint
27397
27398 echo "/* which type model has been detected */" >>$ac_stdint
27399 if test "_$ac_cv_char_data_model" != "_" ; then
27400 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
27401 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
27402 else
27403 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
27404 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
27405 fi
27406 echo "" >>$ac_stdint
27407
27408 echo "/* whether int_least types were detected */" >>$ac_stdint
27409 if test "$ac_cv_type_int_least32_t" = "yes"; then
27410 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
27411 else
27412 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
27413 fi
27414 echo "/* whether int_fast types were detected */" >>$ac_stdint
27415 if test "$ac_cv_type_int_fast32_t" = "yes"; then
27416 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
27417 else
27418 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
27419 fi
27420 echo "/* whether intmax_t type was detected */" >>$ac_stdint
27421 if test "$ac_cv_type_intmax_t" = "yes"; then
27422 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
27423 else
27424 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
27425 fi
27426 echo "" >>$ac_stdint
27427
27428 cat >>$ac_stdint <<STDINT_EOF
27429 /* .................... detections part ............................ */
27430
27431 /* whether we need to define bitspecific types from compiler base types */
27432 #ifndef _STDINT_HEADER_INTPTR
27433 #ifndef _STDINT_HEADER_UINT32
27434 #ifndef _STDINT_HEADER_U_INT32
27435 #define _STDINT_NEED_INT_MODEL_T
27436 #else
27437 #define _STDINT_HAVE_U_INT_TYPES
27438 #endif
27439 #endif
27440 #endif
27441
27442 #ifdef _STDINT_HAVE_U_INT_TYPES
27443 #undef _STDINT_NEED_INT_MODEL_T
27444 #endif
27445
27446 #ifdef _STDINT_CHAR_MODEL
27447 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
27448 #ifndef _STDINT_BYTE_MODEL
27449 #define _STDINT_BYTE_MODEL 12
27450 #endif
27451 #endif
27452 #endif
27453
27454 #ifndef _STDINT_HAVE_INT_LEAST32_T
27455 #define _STDINT_NEED_INT_LEAST_T
27456 #endif
27457
27458 #ifndef _STDINT_HAVE_INT_FAST32_T
27459 #define _STDINT_NEED_INT_FAST_T
27460 #endif
27461
27462 #ifndef _STDINT_HEADER_INTPTR
27463 #define _STDINT_NEED_INTPTR_T
27464 #ifndef _STDINT_HAVE_INTMAX_T
27465 #define _STDINT_NEED_INTMAX_T
27466 #endif
27467 #endif
27468
27469
27470 /* .................... definition part ............................ */
27471
27472 /* some system headers have good uint64_t */
27473 #ifndef _HAVE_UINT64_T
27474 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
27475 #define _HAVE_UINT64_T
27476 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
27477 #define _HAVE_UINT64_T
27478 typedef u_int64_t uint64_t;
27479 #endif
27480 #endif
27481
27482 #ifndef _HAVE_UINT64_T
27483 /* .. here are some common heuristics using compiler runtime specifics */
27484 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
27485 #define _HAVE_UINT64_T
27486 #define _HAVE_LONGLONG_UINT64_T
27487 typedef long long int64_t;
27488 typedef unsigned long long uint64_t;
27489
27490 #elif !defined __STRICT_ANSI__
27491 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
27492 #define _HAVE_UINT64_T
27493 typedef __int64 int64_t;
27494 typedef unsigned __int64 uint64_t;
27495
27496 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
27497 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
27498 #if !defined _NO_LONGLONG
27499 #define _HAVE_UINT64_T
27500 #define _HAVE_LONGLONG_UINT64_T
27501 typedef long long int64_t;
27502 typedef unsigned long long uint64_t;
27503 #endif
27504
27505 #elif defined __alpha || (defined __mips && defined _ABIN32)
27506 #if !defined _NO_LONGLONG
27507 typedef long int64_t;
27508 typedef unsigned long uint64_t;
27509 #endif
27510 /* compiler/cpu type to define int64_t */
27511 #endif
27512 #endif
27513 #endif
27514
27515 #if defined _STDINT_HAVE_U_INT_TYPES
27516 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
27517 typedef u_int8_t uint8_t;
27518 typedef u_int16_t uint16_t;
27519 typedef u_int32_t uint32_t;
27520
27521 /* glibc compatibility */
27522 #ifndef __int8_t_defined
27523 #define __int8_t_defined
27524 #endif
27525 #endif
27526
27527 #ifdef _STDINT_NEED_INT_MODEL_T
27528 /* we must guess all the basic types. Apart from byte-adressable system, */
27529 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
27530 /* (btw, those nibble-addressable systems are way off, or so we assume) */
27531
27532
27533 #if defined _STDINT_BYTE_MODEL
27534 #if _STDINT_LONG_MODEL+0 == 242
27535 /* 2:4:2 = IP16 = a normal 16-bit system */
27536 typedef unsigned char uint8_t;
27537 typedef unsigned short uint16_t;
27538 typedef unsigned long uint32_t;
27539 #ifndef __int8_t_defined
27540 #define __int8_t_defined
27541 typedef char int8_t;
27542 typedef short int16_t;
27543 typedef long int32_t;
27544 #endif
27545 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
27546 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
27547 /* 4:4:4 = ILP32 = a normal 32-bit system */
27548 typedef unsigned char uint8_t;
27549 typedef unsigned short uint16_t;
27550 typedef unsigned int uint32_t;
27551 #ifndef __int8_t_defined
27552 #define __int8_t_defined
27553 typedef char int8_t;
27554 typedef short int16_t;
27555 typedef int int32_t;
27556 #endif
27557 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
27558 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
27559 /* 4:8:8 = LP64 = a normal 64-bit system */
27560 typedef unsigned char uint8_t;
27561 typedef unsigned short uint16_t;
27562 typedef unsigned int uint32_t;
27563 #ifndef __int8_t_defined
27564 #define __int8_t_defined
27565 typedef char int8_t;
27566 typedef short int16_t;
27567 typedef int int32_t;
27568 #endif
27569 /* this system has a "long" of 64bit */
27570 #ifndef _HAVE_UINT64_T
27571 #define _HAVE_UINT64_T
27572 typedef unsigned long uint64_t;
27573 typedef long int64_t;
27574 #endif
27575 #elif _STDINT_LONG_MODEL+0 == 448
27576 /* LLP64 a 64-bit system derived from a 32-bit system */
27577 typedef unsigned char uint8_t;
27578 typedef unsigned short uint16_t;
27579 typedef unsigned int uint32_t;
27580 #ifndef __int8_t_defined
27581 #define __int8_t_defined
27582 typedef char int8_t;
27583 typedef short int16_t;
27584 typedef int int32_t;
27585 #endif
27586 /* assuming the system has a "long long" */
27587 #ifndef _HAVE_UINT64_T
27588 #define _HAVE_UINT64_T
27589 #define _HAVE_LONGLONG_UINT64_T
27590 typedef unsigned long long uint64_t;
27591 typedef long long int64_t;
27592 #endif
27593 #else
27594 #define _STDINT_NO_INT32_T
27595 #endif
27596 #else
27597 #define _STDINT_NO_INT8_T
27598 #define _STDINT_NO_INT32_T
27599 #endif
27600 #endif
27601
27602 /*
27603 * quote from SunOS-5.8 sys/inttypes.h:
27604 * Use at your own risk. As of February 1996, the committee is squarely
27605 * behind the fixed sized types; the "least" and "fast" types are still being
27606 * discussed. The probability that the "fast" types may be removed before
27607 * the standard is finalized is high enough that they are not currently
27608 * implemented.
27609 */
27610
27611 #if defined _STDINT_NEED_INT_LEAST_T
27612 typedef int8_t int_least8_t;
27613 typedef int16_t int_least16_t;
27614 typedef int32_t int_least32_t;
27615 #ifdef _HAVE_UINT64_T
27616 typedef int64_t int_least64_t;
27617 #endif
27618
27619 typedef uint8_t uint_least8_t;
27620 typedef uint16_t uint_least16_t;
27621 typedef uint32_t uint_least32_t;
27622 #ifdef _HAVE_UINT64_T
27623 typedef uint64_t uint_least64_t;
27624 #endif
27625 /* least types */
27626 #endif
27627
27628 #if defined _STDINT_NEED_INT_FAST_T
27629 typedef int8_t int_fast8_t;
27630 typedef int int_fast16_t;
27631 typedef int32_t int_fast32_t;
27632 #ifdef _HAVE_UINT64_T
27633 typedef int64_t int_fast64_t;
27634 #endif
27635
27636 typedef uint8_t uint_fast8_t;
27637 typedef unsigned uint_fast16_t;
27638 typedef uint32_t uint_fast32_t;
27639 #ifdef _HAVE_UINT64_T
27640 typedef uint64_t uint_fast64_t;
27641 #endif
27642 /* fast types */
27643 #endif
27644
27645 #ifdef _STDINT_NEED_INTMAX_T
27646 #ifdef _HAVE_UINT64_T
27647 typedef int64_t intmax_t;
27648 typedef uint64_t uintmax_t;
27649 #else
27650 typedef long intmax_t;
27651 typedef unsigned long uintmax_t;
27652 #endif
27653 #endif
27654
27655 #ifdef _STDINT_NEED_INTPTR_T
27656 #ifndef __intptr_t_defined
27657 #define __intptr_t_defined
27658 /* we encourage using "long" to store pointer values, never use "int" ! */
27659 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
27660 typedef unsigned int uintptr_t;
27661 typedef int intptr_t;
27662 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
27663 typedef unsigned long uintptr_t;
27664 typedef long intptr_t;
27665 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
27666 typedef uint64_t uintptr_t;
27667 typedef int64_t intptr_t;
27668 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
27669 typedef unsigned long uintptr_t;
27670 typedef long intptr_t;
27671 #endif
27672 #endif
27673 #endif
27674
27675 /* The ISO C99 standard specifies that in C++ implementations these
27676 should only be defined if explicitly requested. */
27677 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
27678 #ifndef UINT32_C
27679
27680 /* Signed. */
27681 # define INT8_C(c) c
27682 # define INT16_C(c) c
27683 # define INT32_C(c) c
27684 # ifdef _HAVE_LONGLONG_UINT64_T
27685 # define INT64_C(c) c ## L
27686 # else
27687 # define INT64_C(c) c ## LL
27688 # endif
27689
27690 /* Unsigned. */
27691 # define UINT8_C(c) c ## U
27692 # define UINT16_C(c) c ## U
27693 # define UINT32_C(c) c ## U
27694 # ifdef _HAVE_LONGLONG_UINT64_T
27695 # define UINT64_C(c) c ## UL
27696 # else
27697 # define UINT64_C(c) c ## ULL
27698 # endif
27699
27700 /* Maximal type. */
27701 # ifdef _HAVE_LONGLONG_UINT64_T
27702 # define INTMAX_C(c) c ## L
27703 # define UINTMAX_C(c) c ## UL
27704 # else
27705 # define INTMAX_C(c) c ## LL
27706 # define UINTMAX_C(c) c ## ULL
27707 # endif
27708
27709 /* literalnumbers */
27710 #endif
27711 #endif
27712
27713 /* These limits are merily those of a two complement byte-oriented system */
27714
27715 /* Minimum of signed integral types. */
27716 #ifndef INT8_MIN
27717 # define INT8_MIN (-128)
27718 #endif
27719 #ifndef INT16_MIN
27720 # define INT16_MIN (-32767-1)
27721 #endif
27722 #ifndef INT32_MIN
27723 # define INT32_MIN (-2147483647-1)
27724 #endif
27725 #ifndef INT64_MIN
27726 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
27727 #endif
27728
27729 /* Maximum of signed integral types. */
27730 #ifndef INT8_MAX
27731 # define INT8_MAX (127)
27732 #endif
27733 #ifndef INT16_MAX
27734 # define INT16_MAX (32767)
27735 #endif
27736 #ifndef INT32_MAX
27737 # define INT32_MAX (2147483647)
27738 #endif
27739 #ifndef INT64_MAX
27740 # define INT64_MAX (__INT64_C(9223372036854775807))
27741 #endif
27742
27743 /* Maximum of unsigned integral types. */
27744 #ifndef UINT8_MAX
27745 # define UINT8_MAX (255)
27746 #endif
27747 #ifndef UINT16_MAX
27748 # define UINT16_MAX (65535)
27749 #endif
27750 #ifndef UINT32_MAX
27751 # define UINT32_MAX (4294967295U)
27752 #endif
27753 #ifndef UINT64_MAX
27754 # define UINT64_MAX (__UINT64_C(18446744073709551615))
27755 #endif
27756
27757 /* Minimum of signed integral types having a minimum size. */
27758 # define INT_LEAST8_MIN INT8_MIN
27759 # define INT_LEAST16_MIN INT16_MIN
27760 # define INT_LEAST32_MIN INT32_MIN
27761 # define INT_LEAST64_MIN INT64_MIN
27762 /* Maximum of signed integral types having a minimum size. */
27763 # define INT_LEAST8_MAX INT8_MAX
27764 # define INT_LEAST16_MAX INT16_MAX
27765 # define INT_LEAST32_MAX INT32_MAX
27766 # define INT_LEAST64_MAX INT64_MAX
27767
27768 /* Maximum of unsigned integral types having a minimum size. */
27769 # define UINT_LEAST8_MAX UINT8_MAX
27770 # define UINT_LEAST16_MAX UINT16_MAX
27771 # define UINT_LEAST32_MAX UINT32_MAX
27772 # define UINT_LEAST64_MAX UINT64_MAX
27773
27774 /* shortcircuit*/
27775 #endif
27776 /* once */
27777 #endif
27778 #endif
27779 STDINT_EOF
27780 fi
27781 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
27783 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
27784 else
27785 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
27786 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27787 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
27788 X"$ac_stdint_h" : 'X\(//\)$' \| \
27789 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
27790 $as_echo X"$ac_stdint_h" |
27791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27792 s//\1/
27793 q
27794 }
27795 /^X\(\/\/\)[^/].*/{
27796 s//\1/
27797 q
27798 }
27799 /^X\(\/\/\)$/{
27800 s//\1/
27801 q
27802 }
27803 /^X\(\/\).*/{
27804 s//\1/
27805 q
27806 }
27807 s/.*/./; q'`
27808 as_dir="$ac_dir"; as_fn_mkdir_p
27809 rm -f $ac_stdint_h
27810 mv $ac_stdint $ac_stdint_h
27811 fi
27812 ;;
27813 "gappletviewer":C) chmod 755 tools/gappletviewer ;;
27814 "gjarsigner":C) chmod 755 tools/gjarsigner ;;
27815 "gkeytool":C) chmod 755 tools/gkeytool ;;
27816 "gjar":C) chmod 755 tools/gjar ;;
27817 "gnative2ascii":C) chmod 755 tools/gnative2ascii ;;
27818 "gserialver":C) chmod 755 tools/gserialver ;;
27819 "grmiregistry":C) chmod 755 tools/grmiregistry ;;
27820 "gtnameserv":C) chmod 755 tools/gtnameserv ;;
27821 "gorbd":C) chmod 755 tools/gorbd ;;
27822 "grmid":C) chmod 755 tools/grmid ;;
27823 "grmic":C) chmod 755 tools/grmic ;;
27824 "gjavah":C) chmod 755 tools/gjavah ;;
27825 "gjdoc":C) chmod 755 tools/gjdoc ;;
27826 "gen-classlist":C) chmod 755 lib/gen-classlist.sh ;;
27827 "copy-vmresources":C) chmod 755 lib/copy-vmresources.sh ;;
27828
27829 esac
27830 done # for ac_tag
27831
27832
27833 as_fn_exit 0
27834 _ACEOF
27835 ac_clean_files=$ac_clean_files_save
27836
27837 test $ac_write_fail = 0 ||
27838 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27839
27840
27841 # configure is writing to config.log, and then calls config.status.
27842 # config.status does its own redirection, appending to config.log.
27843 # Unfortunately, on DOS this fails, as config.log is still kept open
27844 # by configure, so config.status won't be able to write to it; its
27845 # output is simply discarded. So we exec the FD to /dev/null,
27846 # effectively closing config.log, so it can be properly (re)opened and
27847 # appended to by config.status. When coming back to configure, we
27848 # need to make the FD available again.
27849 if test "$no_create" != yes; then
27850 ac_cs_success=:
27851 ac_config_status_args=
27852 test "$silent" = yes &&
27853 ac_config_status_args="$ac_config_status_args --quiet"
27854 exec 5>/dev/null
27855 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27856 exec 5>>config.log
27857 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27858 # would make configure fail if this is the last instruction.
27859 $ac_cs_success || as_fn_exit $?
27860 fi
27861 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27863 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27864 fi
27865
27866
27867 # Create standard.omit based on decisions we just made.
27868 cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
27869 if test x$use_escher != xtrue; then
27870 echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit
27871 fi