Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for Redland librdf RDF API Library 1.0.17.
5 #
6 # Report bugs to <http://bugs.librdf.org/>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
91
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177 esac
178 fi
179 "
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194 exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
215 fi
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
227 /*)
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
236 fi
237 fi
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
247
248
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$0: Please tell [email protected] and
279 $0: http://bugs.librdf.org/ about your system, including
280 $0: any error possibly output before this message. Then
281 $0: install a modern shell, or manually run the script
282 $0: under such a shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 lt_ltdl_dir='libltdl'
569
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 lt_dlopen_dir="$lt_ltdl_dir"
573
574
575 test -n "$DJDIR" || exec 7<&0 </dev/null
576 exec 6>&1
577
578 # Name of the host.
579 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583 #
584 # Initializations.
585 #
586 ac_default_prefix=/usr/local
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594
595 # Identity of this package.
596 PACKAGE_NAME='Redland librdf RDF API Library'
597 PACKAGE_TARNAME='redland'
598 PACKAGE_VERSION='1.0.17'
599 PACKAGE_STRING='Redland librdf RDF API Library 1.0.17'
600 PACKAGE_BUGREPORT='http://bugs.librdf.org/'
601 PACKAGE_URL=''
602
603 ac_unique_file="src/rdf_node.c"
604 # Factoring default headers for most tests.
605 ac_includes_default="\
606 #include <stdio.h>
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
609 #endif
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
612 #endif
613 #ifdef STDC_HEADERS
614 # include <stdlib.h>
615 # include <stddef.h>
616 #else
617 # ifdef HAVE_STDLIB_H
618 # include <stdlib.h>
619 # endif
620 #endif
621 #ifdef HAVE_STRING_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 # include <memory.h>
624 # endif
625 # include <string.h>
626 #endif
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
629 #endif
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
632 #endif
633 #ifdef HAVE_STDINT_H
634 # include <stdint.h>
635 #endif
636 #ifdef HAVE_UNISTD_H
637 # include <unistd.h>
638 #endif"
639
640 enable_option_checking=no
641 ac_subst_vars='ltdl_LTLIBOBJS
642 ltdl_LIBOBJS
643 am__EXEEXT_FALSE
644 am__EXEEXT_TRUE
645 LTLIBOBJS
646 LIBOBJS
647 GTK_DOC_USE_REBASE_FALSE
648 GTK_DOC_USE_REBASE_TRUE
649 GTK_DOC_USE_LIBTOOL_FALSE
650 GTK_DOC_USE_LIBTOOL_TRUE
651 GTK_DOC_BUILD_PDF_FALSE
652 GTK_DOC_BUILD_PDF_TRUE
653 GTK_DOC_BUILD_HTML_FALSE
654 GTK_DOC_BUILD_HTML_TRUE
655 ENABLE_GTK_DOC_FALSE
656 ENABLE_GTK_DOC_TRUE
657 GTKDOC_DEPS_LIBS
658 GTKDOC_DEPS_CFLAGS
659 HTML_DIR
660 GTKDOC_MKPDF
661 GTKDOC_REBASE
662 GTKDOC_CHECK
663 AM_BACKSLASH
664 AM_DEFAULT_VERBOSITY
665 AM_DEFAULT_V
666 AM_V
667 abs_top_builddir
668 abs_top_srcdir
669 RECHO_C
670 RECHO_N
671 MEM_LIBS
672 MEM
673 LIBRDF_PKGCONFIG_PRIVATE_LIBS
674 LIBRDF_LIBTOOLLIBS
675 LIBRDF_LDFLAGS
676 LIBRDF_CPPFLAGS
677 LIBRDF_INTERNAL_DEPS
678 LIBRDF_INTERNAL_LIBS
679 LIBRDF_INTERNAL_CPPFLAGS
680 LIBRDF_DIRECT_LIBS
681 LIBRDF_EXTERNAL_LIBS
682 LIBRDF_EXTERNAL_CPPFLAGS
683 DIGEST_SRCS
684 DIGEST_OBJS
685 MODULAR_LIBRDF_FALSE
686 MODULAR_LIBRDF_TRUE
687 VIRTUOSO_LIBS
688 VIRTUOSO_CPPFLAGS
689 POSTGRESQL_LIBS
690 POSTGRESQL_CPPFLAGS
691 TSTORE_LIBS
692 TSTORE_CPPFLAGS
693 MYSQL_LIBS
694 MYSQL_CPPFLAGS
695 STORAGE_VIRTUOSO_FALSE
696 STORAGE_VIRTUOSO_TRUE
697 STORAGE_POSTGRESQL_FALSE
698 STORAGE_POSTGRESQL_TRUE
699 STORAGE_TSTORE_FALSE
700 STORAGE_TSTORE_TRUE
701 STORAGE_SQLITE_FALSE
702 STORAGE_SQLITE_TRUE
703 STORAGE_MYSQL_FALSE
704 STORAGE_MYSQL_TRUE
705 STORAGE_MEMORY_FALSE
706 STORAGE_MEMORY_TRUE
707 STORAGE_TREES_FALSE
708 STORAGE_TREES_TRUE
709 STORAGE_HASHES_FALSE
710 STORAGE_HASHES_TRUE
711 STORAGE_FILE_FALSE
712 STORAGE_FILE_TRUE
713 ODBC_LIBS
714 ODBC_CFLAGS
715 IODBC_CONFIG
716 PG_CONFIG
717 SQLITE_LIBS
718 SQLITE_CFLAGS
719 MYSQL_CONFIG
720 TSTORE_CONFIG
721 REDLAND_MODULE_PATH
722 HASH_SRCS
723 HASH_OBJS
724 HAVE_RAPTOR2_API
725 RAPTOR_MIN_VERSION
726 RAPTOR2_LIBS
727 RAPTOR2_CFLAGS
728 RASQAL_LIBS
729 RASQAL_CFLAGS
730 RASQAL_MAX_VERSION
731 RASQAL_MIN_VERSION
732 GETOPT_FALSE
733 GETOPT_TRUE
734 MEMCMP_FALSE
735 MEMCMP_TRUE
736 RECHO
737 PKG_CONFIG_LIBDIR
738 PKG_CONFIG_PATH
739 PKG_CONFIG
740 PERL
741 TAR
742 LTDLOPEN
743 LT_CONFIG_H
744 subdirs
745 CONVENIENCE_LTDL_FALSE
746 CONVENIENCE_LTDL_TRUE
747 INSTALL_LTDL_FALSE
748 INSTALL_LTDL_TRUE
749 ARGZ_H
750 sys_symbol_underscore
751 LIBADD_DL
752 LT_DLPREOPEN
753 LIBADD_DLD_LINK
754 LIBADD_SHL_LOAD
755 LIBADD_DLOPEN
756 LT_DLLOADERS
757 INCLTDL
758 LTDLINCL
759 LTDLDEPS
760 LIBLTDL
761 CPP
762 OTOOL64
763 OTOOL
764 LIPO
765 NMEDIT
766 DSYMUTIL
767 MANIFEST_TOOL
768 RANLIB
769 DLLTOOL
770 OBJDUMP
771 NM
772 ac_ct_DUMPBIN
773 DUMPBIN
774 LD
775 FGREP
776 EGREP
777 GREP
778 SED
779 LIBTOOL
780 LN_S
781 am__fastdepCC_FALSE
782 am__fastdepCC_TRUE
783 CCDEPMODE
784 am__nodep
785 AMDEPBACKSLASH
786 AMDEP_FALSE
787 AMDEP_TRUE
788 am__quote
789 am__include
790 DEPDIR
791 OBJEXT
792 EXEEXT
793 ac_ct_CC
794 CPPFLAGS
795 LDFLAGS
796 CFLAGS
797 CC
798 ac_ct_AR
799 AR
800 LIBRDF_LIBTOOL_VERSION
801 LIBRDF_VERSION_DECIMAL
802 LIBRDF_VERSION_RELEASE
803 LIBRDF_VERSION_MINOR
804 LIBRDF_VERSION_MAJOR
805 host_os
806 host_vendor
807 host_cpu
808 host
809 build_os
810 build_vendor
811 build_cpu
812 build
813 MAINT
814 MAINTAINER_MODE_FALSE
815 MAINTAINER_MODE_TRUE
816 am__untar
817 am__tar
818 AMTAR
819 am__leading_dot
820 SET_MAKE
821 AWK
822 mkdir_p
823 MKDIR_P
824 INSTALL_STRIP_PROGRAM
825 STRIP
826 install_sh
827 MAKEINFO
828 AUTOHEADER
829 AUTOMAKE
830 AUTOCONF
831 ACLOCAL
832 VERSION
833 PACKAGE
834 CYGPATH_W
835 am__isrc
836 INSTALL_DATA
837 INSTALL_SCRIPT
838 INSTALL_PROGRAM
839 target_alias
840 host_alias
841 build_alias
842 LIBS
843 ECHO_T
844 ECHO_N
845 ECHO_C
846 DEFS
847 mandir
848 localedir
849 libdir
850 psdir
851 pdfdir
852 dvidir
853 htmldir
854 infodir
855 docdir
856 oldincludedir
857 includedir
858 localstatedir
859 sharedstatedir
860 sysconfdir
861 datadir
862 datarootdir
863 libexecdir
864 sbindir
865 bindir
866 program_transform_name
867 prefix
868 exec_prefix
869 PACKAGE_URL
870 PACKAGE_BUGREPORT
871 PACKAGE_STRING
872 PACKAGE_VERSION
873 PACKAGE_TARNAME
874 PACKAGE_NAME
875 PATH_SEPARATOR
876 SHELL'
877 ac_subst_files=''
878 ac_user_opts='
879 enable_option_checking
880 enable_maintainer_mode
881 enable_dependency_tracking
882 enable_shared
883 enable_static
884 with_pic
885 enable_fast_install
886 with_gnu_ld
887 with_sysroot
888 enable_libtool_lock
889 with_included_ltdl
890 with_ltdl_include
891 with_ltdl_lib
892 enable_ltdl_install
893 enable_release
894 enable_modular
895 with_bdb
896 with_bdb_lib
897 with_bdb_include
898 with_bdb_dbname
899 enable_digests
900 with_module_path
901 with_threestore
902 with_mysql
903 with_sqlite
904 with_postgresql
905 with_virtuoso
906 with_iodbc
907 with_unixodbc
908 with_datadirect
909 with_odbc_include
910 with_odbc_lib
911 enable_storages
912 with_threads
913 enable_assertions
914 enable_assert_messages
915 enable_debug
916 enable_silent_rules
917 with_html_dir
918 enable_gtk_doc
919 enable_gtk_doc_html
920 enable_gtk_doc_pdf
921 '
922 ac_precious_vars='build_alias
923 host_alias
924 target_alias
925 CC
926 CFLAGS
927 LDFLAGS
928 LIBS
929 CPPFLAGS
930 CPP
931 PKG_CONFIG
932 PKG_CONFIG_PATH
933 PKG_CONFIG_LIBDIR
934 RASQAL_CFLAGS
935 RASQAL_LIBS
936 RAPTOR2_CFLAGS
937 RAPTOR2_LIBS
938 SQLITE_CFLAGS
939 SQLITE_LIBS
940 GTKDOC_DEPS_CFLAGS
941 GTKDOC_DEPS_LIBS'
942 ac_subdirs_all='libltdl'
943
944 # Initialize some variables set by options.
945 ac_init_help=
946 ac_init_version=false
947 ac_unrecognized_opts=
948 ac_unrecognized_sep=
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
951 cache_file=/dev/null
952 exec_prefix=NONE
953 no_create=
954 no_recursion=
955 prefix=NONE
956 program_prefix=NONE
957 program_suffix=NONE
958 program_transform_name=s,x,x,
959 silent=
960 site=
961 srcdir=
962 verbose=
963 x_includes=NONE
964 x_libraries=NONE
965
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir='${exec_prefix}/bin'
973 sbindir='${exec_prefix}/sbin'
974 libexecdir='${exec_prefix}/libexec'
975 datarootdir='${prefix}/share'
976 datadir='${datarootdir}'
977 sysconfdir='${prefix}/etc'
978 sharedstatedir='${prefix}/com'
979 localstatedir='${prefix}/var'
980 includedir='${prefix}/include'
981 oldincludedir='/usr/include'
982 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
983 infodir='${datarootdir}/info'
984 htmldir='${docdir}'
985 dvidir='${docdir}'
986 pdfdir='${docdir}'
987 psdir='${docdir}'
988 libdir='${exec_prefix}/lib'
989 localedir='${datarootdir}/locale'
990 mandir='${datarootdir}/man'
991
992 ac_prev=
993 ac_dashdash=
994 for ac_option
995 do
996 # If the previous option needs an argument, assign it.
997 if test -n "$ac_prev"; then
998 eval $ac_prev=\$ac_option
999 ac_prev=
1000 continue
1001 fi
1002
1003 case $ac_option in
1004 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005 *=) ac_optarg= ;;
1006 *) ac_optarg=yes ;;
1007 esac
1008
1009 # Accept the important Cygnus configure options, so we can diagnose typos.
1010
1011 case $ac_dashdash$ac_option in
1012 --)
1013 ac_dashdash=yes ;;
1014
1015 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016 ac_prev=bindir ;;
1017 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018 bindir=$ac_optarg ;;
1019
1020 -build | --build | --buil | --bui | --bu)
1021 ac_prev=build_alias ;;
1022 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023 build_alias=$ac_optarg ;;
1024
1025 -cache-file | --cache-file | --cache-fil | --cache-fi \
1026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027 ac_prev=cache_file ;;
1028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030 cache_file=$ac_optarg ;;
1031
1032 --config-cache | -C)
1033 cache_file=config.cache ;;
1034
1035 -datadir | --datadir | --datadi | --datad)
1036 ac_prev=datadir ;;
1037 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1038 datadir=$ac_optarg ;;
1039
1040 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041 | --dataroo | --dataro | --datar)
1042 ac_prev=datarootdir ;;
1043 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045 datarootdir=$ac_optarg ;;
1046
1047 -disable-* | --disable-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error $? "invalid feature name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1055 *"
1056 "enable_$ac_useropt"
1057 "*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1060 esac
1061 eval enable_$ac_useropt=no ;;
1062
1063 -docdir | --docdir | --docdi | --doc | --do)
1064 ac_prev=docdir ;;
1065 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1066 docdir=$ac_optarg ;;
1067
1068 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1069 ac_prev=dvidir ;;
1070 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1071 dvidir=$ac_optarg ;;
1072
1073 -enable-* | --enable-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error $? "invalid feature name: $ac_useropt"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1081 *"
1082 "enable_$ac_useropt"
1083 "*) ;;
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1086 esac
1087 eval enable_$ac_useropt=\$ac_optarg ;;
1088
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1097
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1100 with_gas=yes ;;
1101
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1108
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1113
1114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 ac_prev=htmldir ;;
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 | --ht=*)
1118 htmldir=$ac_optarg ;;
1119
1120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1126
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 ac_prev=infodir ;;
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1131
1132 -libdir | --libdir | --libdi | --libd)
1133 ac_prev=libdir ;;
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1136
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1143
1144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1148
1149 -localstatedir | --localstatedir | --localstatedi | --localstated \
1150 | --localstate | --localstat | --localsta | --localst | --locals)
1151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154 localstatedir=$ac_optarg ;;
1155
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 ac_prev=mandir ;;
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1160
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1163 with_fp=no ;;
1164
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1167 no_create=yes ;;
1168
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 no_recursion=yes ;;
1172
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1181
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 ac_prev=prefix ;;
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1186
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1193
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1200
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1217
1218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 ac_prev=pdfdir ;;
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1222
1223 -psdir | --psdir | --psdi | --psd | --ps)
1224 ac_prev=psdir ;;
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 psdir=$ac_optarg ;;
1227
1228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1230 silent=yes ;;
1231
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 ac_prev=sbindir ;;
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 | --sbi=* | --sb=*)
1236 sbindir=$ac_optarg ;;
1237
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1241 | --sha | --sh)
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 | --sha=* | --sh=*)
1247 sharedstatedir=$ac_optarg ;;
1248
1249 -site | --site | --sit)
1250 ac_prev=site ;;
1251 -site=* | --site=* | --sit=*)
1252 site=$ac_optarg ;;
1253
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 ac_prev=srcdir ;;
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1258
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1265
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1270
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 verbose=yes ;;
1273
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1276
1277 -with-* | --with-*)
1278 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281 as_fn_error $? "invalid package name: $ac_useropt"
1282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1285 *"
1286 "with_$ac_useropt"
1287 "*) ;;
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1290 esac
1291 eval with_$ac_useropt=\$ac_optarg ;;
1292
1293 -without-* | --without-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297 as_fn_error $? "invalid package name: $ac_useropt"
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1301 *"
1302 "with_$ac_useropt"
1303 "*) ;;
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1306 esac
1307 eval with_$ac_useropt=no ;;
1308
1309 --x)
1310 # Obsolete; use --with-x.
1311 with_x=yes ;;
1312
1313 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314 | --x-incl | --x-inc | --x-in | --x-i)
1315 ac_prev=x_includes ;;
1316 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318 x_includes=$ac_optarg ;;
1319
1320 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322 ac_prev=x_libraries ;;
1323 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325 x_libraries=$ac_optarg ;;
1326
1327 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1328 Try \`$0 --help' for more information"
1329 ;;
1330
1331 *=*)
1332 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333 # Reject names that are not valid shell variable names.
1334 case $ac_envvar in #(
1335 '' | [0-9]* | *[!_$as_cr_alnum]* )
1336 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1337 esac
1338 eval $ac_envvar=\$ac_optarg
1339 export $ac_envvar ;;
1340
1341 *)
1342 # FIXME: should be removed in autoconf 3.0.
1343 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1347 ;;
1348
1349 esac
1350 done
1351
1352 if test -n "$ac_prev"; then
1353 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354 as_fn_error $? "missing argument to $ac_option"
1355 fi
1356
1357 if test -n "$ac_unrecognized_opts"; then
1358 case $enable_option_checking in
1359 no) ;;
1360 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1361 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1362 esac
1363 fi
1364
1365 # Check all directory arguments for consistency.
1366 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367 datadir sysconfdir sharedstatedir localstatedir includedir \
1368 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369 libdir localedir mandir
1370 do
1371 eval ac_val=\$$ac_var
1372 # Remove trailing slashes.
1373 case $ac_val in
1374 */ )
1375 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1376 eval $ac_var=\$ac_val;;
1377 esac
1378 # Be sure to have absolute directory names.
1379 case $ac_val in
1380 [\\/$]* | ?:[\\/]* ) continue;;
1381 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1382 esac
1383 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1384 done
1385
1386 # There might be people who depend on the old broken behavior: `$host'
1387 # used to hold the argument of --host etc.
1388 # FIXME: To remove some day.
1389 build=$build_alias
1390 host=$host_alias
1391 target=$target_alias
1392
1393 # FIXME: To remove some day.
1394 if test "x$host_alias" != x; then
1395 if test "x$build_alias" = x; then
1396 cross_compiling=maybe
1397 elif test "x$build_alias" != "x$host_alias"; then
1398 cross_compiling=yes
1399 fi
1400 fi
1401
1402 ac_tool_prefix=
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404
1405 test "$silent" = yes && exec 6>/dev/null
1406
1407
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411 as_fn_error $? "working directory cannot be determined"
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413 as_fn_error $? "pwd does not report name of working directory"
1414
1415
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418 ac_srcdir_defaulted=yes
1419 # Try the directory containing this script, then the parent directory.
1420 ac_confdir=`$as_dirname -- "$as_myself" ||
1421 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422 X"$as_myself" : 'X\(//\)[^/]' \| \
1423 X"$as_myself" : 'X\(//\)$' \| \
1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425 $as_echo X"$as_myself" |
1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427 s//\1/
1428 q
1429 }
1430 /^X\(\/\/\)[^/].*/{
1431 s//\1/
1432 q
1433 }
1434 /^X\(\/\/\)$/{
1435 s//\1/
1436 q
1437 }
1438 /^X\(\/\).*/{
1439 s//\1/
1440 q
1441 }
1442 s/.*/./; q'`
1443 srcdir=$ac_confdir
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445 srcdir=..
1446 fi
1447 else
1448 ac_srcdir_defaulted=no
1449 fi
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1452 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1453 fi
1454 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 ac_abs_confdir=`(
1456 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1457 pwd)`
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 srcdir=.
1461 fi
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1465 case $srcdir in
1466 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 esac
1468 for ac_var in $ac_precious_vars; do
1469 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_env_${ac_var}_value=\$${ac_var}
1471 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 done
1474
1475 #
1476 # Report the --help message.
1477 #
1478 if test "$ac_init_help" = "long"; then
1479 # Omit some internal or obsolete options to make the list less imposing.
1480 # This message is too long to be a string in the A/UX 3.1 sh.
1481 cat <<_ACEOF
1482 \`configure' configures Redland librdf RDF API Library 1.0.17 to adapt to many kinds of systems.
1483
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1485
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE. See below for descriptions of some of the useful variables.
1488
1489 Defaults for the options are specified in brackets.
1490
1491 Configuration:
1492 -h, --help display this help and exit
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 -q, --quiet, --silent do not print \`checking ...' messages
1497 --cache-file=FILE cache test results in FILE [disabled]
1498 -C, --config-cache alias for \`--cache-file=config.cache'
1499 -n, --no-create do not create output files
1500 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501
1502 Installation directories:
1503 --prefix=PREFIX install architecture-independent files in PREFIX
1504 [$ac_default_prefix]
1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 [PREFIX]
1507
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1512
1513 For better control, use the options below.
1514
1515 Fine tuning of the installation directories:
1516 --bindir=DIR user executables [EPREFIX/bin]
1517 --sbindir=DIR system admin executables [EPREFIX/sbin]
1518 --libexecdir=DIR program executables [EPREFIX/libexec]
1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/redland]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1535 _ACEOF
1536
1537 cat <<\_ACEOF
1538
1539 Program names:
1540 --program-prefix=PREFIX prepend PREFIX to installed program names
1541 --program-suffix=SUFFIX append SUFFIX to installed program names
1542 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1543
1544 System types:
1545 --build=BUILD configure for building on BUILD [guessed]
1546 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547 _ACEOF
1548 fi
1549
1550 if test -n "$ac_init_help"; then
1551 case $ac_init_help in
1552 short | recursive ) echo "Configuration of Redland librdf RDF API Library 1.0.17:";;
1553 esac
1554 cat <<\_ACEOF
1555
1556 Optional Features:
1557 --disable-option-checking ignore unrecognized --enable/--with options
1558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1560 --enable-maintainer-mode enable make rules and dependencies not useful
1561 (and sometimes confusing) to the casual installer
1562 --disable-dependency-tracking speeds up one-time build
1563 --enable-dependency-tracking do not reject slow dependency extractors
1564 --enable-shared[=PKGS] build shared libraries [default=yes]
1565 --enable-static[=PKGS] build static libraries [default=yes]
1566 --enable-fast-install[=PKGS]
1567 optimize for fast installation [default=yes]
1568 --disable-libtool-lock avoid locking (might break parallel builds)
1569 --enable-ltdl-install install libltdl
1570 --enable-release Turn on optimizations (for maintainer).
1571 --disable-modular Build storage backends into librdf library.
1572 --enable-digests=LIST Use digests (default=md5 sha1 ripemd160)
1573 --enable-storages=LIST Use storages (default=all)
1574 --enable-assertions Perform run time assertion checks (default yes).
1575 --enable-assert-messages Print run time assertion check failure messages (default yes).
1576 --enable-debug Enable debug messages (default no).
1577 --enable-silent-rules less verbose build output (undo: `make V=1')
1578 --disable-silent-rules verbose build output (undo: `make V=0')
1579 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1580 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1581 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1582
1583 Optional Packages:
1584 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1585 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1586 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1587 both]
1588 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1589 --with-sysroot=DIR Search for dependent libraries within DIR
1590 (or the compiler's sysroot if not specified).
1591 --with-included-ltdl use the GNU ltdl sources included here
1592 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1593 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1594 --with-bdb=DIR Oracle Berkeley DB install area (default=/usr)
1595 --with-bdb-lib=DIR Oracle Berkeley DB lib directory (default=/usr/lib)
1596 --with-bdb-include=DIR Oracle Berkeley DB include directory (default=/usr/include)
1597 --with-bdb-dbname=NAME Oracle Berkeley DB library name (auto)
1598 --with-module-path=PATH Default search path for modules (default=/usr/local/lib/redland:${libdir}/redland
1599 --with-threestore(=CONFIG|yes|no) Location of 3store-config (default=auto)
1600 --with-mysql(=CONFIG|yes|no) Location of MySQL 3/4 mysql_config (default=auto)
1601 --with-sqlite(=yes|no) Enable SQLite store (default=auto)
1602 --with-postgresql(=CONFIG|yes|no) Location of pg_config (default=auto)
1603 --with-virtuoso(=yes|no) Enable Virtuoso RDF store (default=auto)
1604 --with-iodbc(=DIR) Select iODBC support
1605 DIR is the iODBC base install directory
1606 (default=/usr/local)
1607
1608 --with-unixodbc(=DIR) Select UnixODBC support
1609 DIR is the UnixODBC base install directory
1610 (default=/usr/local)
1611
1612 --with-datadirect(=DIR) Select DataDirect support
1613 DIR is the DataDirect base install directory
1614 (default=/usr/local)
1615
1616 --with-odbc-inc=DIR Specify custom ODBC include directory
1617 (default=/usr/local/include)
1618
1619 --with-odbc-lib=DIR Specify custom ODBC lib directory
1620 (default=/usr/local/lib)
1621 --with-threads With POSIX thread support (default=no)
1622 --with-html-dir=PATH path to installed docs
1623
1624 Some influential environment variables:
1625 CC C compiler command
1626 CFLAGS C compiler flags
1627 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1628 nonstandard directory <lib dir>
1629 LIBS libraries to pass to the linker, e.g. -l<library>
1630 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1631 you have headers in a nonstandard directory <include dir>
1632 CPP C preprocessor
1633 PKG_CONFIG path to pkg-config utility
1634 PKG_CONFIG_PATH
1635 directories to add to pkg-config's search path
1636 PKG_CONFIG_LIBDIR
1637 path overriding pkg-config's built-in search path
1638 RASQAL_CFLAGS
1639 C compiler flags for RASQAL, overriding pkg-config
1640 RASQAL_LIBS linker flags for RASQAL, overriding pkg-config
1641 RAPTOR2_CFLAGS
1642 C compiler flags for RAPTOR2, overriding pkg-config
1643 RAPTOR2_LIBS
1644 linker flags for RAPTOR2, overriding pkg-config
1645 SQLITE_CFLAGS
1646 C compiler flags for SQLITE, overriding pkg-config
1647 SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1648 GTKDOC_DEPS_CFLAGS
1649 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1650 GTKDOC_DEPS_LIBS
1651 linker flags for GTKDOC_DEPS, overriding pkg-config
1652
1653 Use these variables to override the choices made by `configure' or to help
1654 it to find libraries and programs with nonstandard names/locations.
1655
1656 Report bugs to <http://bugs.librdf.org/>.
1657 _ACEOF
1658 ac_status=$?
1659 fi
1660
1661 if test "$ac_init_help" = "recursive"; then
1662 # If there are subdirs, report their specific --help.
1663 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1664 test -d "$ac_dir" ||
1665 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1666 continue
1667 ac_builddir=.
1668
1669 case "$ac_dir" in
1670 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1671 *)
1672 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1673 # A ".." for each directory in $ac_dir_suffix.
1674 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1675 case $ac_top_builddir_sub in
1676 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1677 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1678 esac ;;
1679 esac
1680 ac_abs_top_builddir=$ac_pwd
1681 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1682 # for backward compatibility:
1683 ac_top_builddir=$ac_top_build_prefix
1684
1685 case $srcdir in
1686 .) # We are building in place.
1687 ac_srcdir=.
1688 ac_top_srcdir=$ac_top_builddir_sub
1689 ac_abs_top_srcdir=$ac_pwd ;;
1690 [\\/]* | ?:[\\/]* ) # Absolute name.
1691 ac_srcdir=$srcdir$ac_dir_suffix;
1692 ac_top_srcdir=$srcdir
1693 ac_abs_top_srcdir=$srcdir ;;
1694 *) # Relative name.
1695 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1696 ac_top_srcdir=$ac_top_build_prefix$srcdir
1697 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1698 esac
1699 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1700
1701 cd "$ac_dir" || { ac_status=$?; continue; }
1702 # Check for guested configure.
1703 if test -f "$ac_srcdir/configure.gnu"; then
1704 echo &&
1705 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1706 elif test -f "$ac_srcdir/configure"; then
1707 echo &&
1708 $SHELL "$ac_srcdir/configure" --help=recursive
1709 else
1710 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1711 fi || ac_status=$?
1712 cd "$ac_pwd" || { ac_status=$?; break; }
1713 done
1714 fi
1715
1716 test -n "$ac_init_help" && exit $ac_status
1717 if $ac_init_version; then
1718 cat <<\_ACEOF
1719 Redland librdf RDF API Library configure 1.0.17
1720 generated by GNU Autoconf 2.69
1721
1722 Copyright (C) 2012 Free Software Foundation, Inc.
1723 This configure script is free software; the Free Software Foundation
1724 gives unlimited permission to copy, distribute and modify it.
1725 _ACEOF
1726 exit
1727 fi
1728
1729 ## ------------------------ ##
1730 ## Autoconf initialization. ##
1731 ## ------------------------ ##
1732
1733 # ac_fn_c_try_compile LINENO
1734 # --------------------------
1735 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_compile ()
1737 {
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 rm -f conftest.$ac_objext
1740 if { { ac_try="$ac_compile"
1741 case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_compile") 2>conftest.err
1748 ac_status=$?
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1753 fi
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && {
1756 test -z "$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 } && test -s conftest.$ac_objext; then :
1759 ac_retval=0
1760 else
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1763
1764 ac_retval=1
1765 fi
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1768
1769 } # ac_fn_c_try_compile
1770
1771 # ac_fn_c_try_link LINENO
1772 # -----------------------
1773 # Try to link conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_c_try_link ()
1775 {
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 rm -f conftest.$ac_objext conftest$ac_exeext
1778 if { { ac_try="$ac_link"
1779 case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>conftest.err
1786 ac_status=$?
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1791 fi
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest$ac_exeext && {
1797 test "$cross_compiling" = yes ||
1798 test -x conftest$ac_exeext
1799 }; 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 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1808 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1809 # interfere with the next link command; also delete a directory that is
1810 # left behind by Apple's compiler. We do this before executing the actions.
1811 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 as_fn_set_status $ac_retval
1814
1815 } # ac_fn_c_try_link
1816
1817 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1818 # -------------------------------------------------------
1819 # Tests whether HEADER exists and can be compiled using the include files in
1820 # INCLUDES, setting the cache variable VAR accordingly.
1821 ac_fn_c_check_header_compile ()
1822 {
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1828 else
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1831 $4
1832 #include <$2>
1833 _ACEOF
1834 if ac_fn_c_try_compile "$LINENO"; then :
1835 eval "$3=yes"
1836 else
1837 eval "$3=no"
1838 fi
1839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840 fi
1841 eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845
1846 } # ac_fn_c_check_header_compile
1847
1848 # ac_fn_c_try_cpp LINENO
1849 # ----------------------
1850 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_c_try_cpp ()
1852 {
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if { { ac_try="$ac_cpp conftest.$ac_ext"
1855 case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1867 fi
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } > conftest.i && {
1870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1871 test ! -s conftest.err
1872 }; then :
1873 ac_retval=0
1874 else
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 ac_retval=1
1879 fi
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 as_fn_set_status $ac_retval
1882
1883 } # ac_fn_c_try_cpp
1884
1885 # ac_fn_c_try_run LINENO
1886 # ----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1888 # that executables *can* be run.
1889 ac_fn_c_try_run ()
1890 {
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 if { { ac_try="$ac_link"
1893 case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_link") 2>&5
1900 ac_status=$?
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1903 { { case "(($ac_try" in
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_try") 2>&5
1910 ac_status=$?
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; }; }; then :
1913 ac_retval=0
1914 else
1915 $as_echo "$as_me: program exited with status $ac_status" >&5
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1918
1919 ac_retval=$ac_status
1920 fi
1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 as_fn_set_status $ac_retval
1924
1925 } # ac_fn_c_try_run
1926
1927 # ac_fn_c_check_func LINENO FUNC VAR
1928 # ----------------------------------
1929 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1930 ac_fn_c_check_func ()
1931 {
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934 $as_echo_n "checking for $2... " >&6; }
1935 if eval \${$3+:} false; then :
1936 $as_echo_n "(cached) " >&6
1937 else
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1942 #define $2 innocuous_$2
1943
1944 /* System header to define __stub macros and hopefully few prototypes,
1945 which can conflict with char $2 (); below.
1946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1947 <limits.h> exists even on freestanding compilers. */
1948
1949 #ifdef __STDC__
1950 # include <limits.h>
1951 #else
1952 # include <assert.h>
1953 #endif
1954
1955 #undef $2
1956
1957 /* Override any GCC internal prototype to avoid an error.
1958 Use char because int might match the return type of a GCC
1959 builtin and then its argument prototype would still apply. */
1960 #ifdef __cplusplus
1961 extern "C"
1962 #endif
1963 char $2 ();
1964 /* The GNU C library defines this for functions which it implements
1965 to always fail with ENOSYS. Some functions are actually named
1966 something starting with __ and the normal name is an alias. */
1967 #if defined __stub_$2 || defined __stub___$2
1968 choke me
1969 #endif
1970
1971 int
1972 main ()
1973 {
1974 return $2 ();
1975 ;
1976 return 0;
1977 }
1978 _ACEOF
1979 if ac_fn_c_try_link "$LINENO"; then :
1980 eval "$3=yes"
1981 else
1982 eval "$3=no"
1983 fi
1984 rm -f core conftest.err conftest.$ac_objext \
1985 conftest$ac_exeext conftest.$ac_ext
1986 fi
1987 eval ac_res=\$$3
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991
1992 } # ac_fn_c_check_func
1993
1994 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1995 # ---------------------------------------------
1996 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1997 # accordingly.
1998 ac_fn_c_check_decl ()
1999 {
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 as_decl_name=`echo $2|sed 's/ *(.*//'`
2002 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2004 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2005 if eval \${$3+:} false; then :
2006 $as_echo_n "(cached) " >&6
2007 else
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2010 $4
2011 int
2012 main ()
2013 {
2014 #ifndef $as_decl_name
2015 #ifdef __cplusplus
2016 (void) $as_decl_use;
2017 #else
2018 (void) $as_decl_name;
2019 #endif
2020 #endif
2021
2022 ;
2023 return 0;
2024 }
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 eval "$3=yes"
2028 else
2029 eval "$3=no"
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 fi
2033 eval ac_res=\$$3
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037
2038 } # ac_fn_c_check_decl
2039
2040 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2041 # -------------------------------------------
2042 # Tests whether TYPE exists after having included INCLUDES, setting cache
2043 # variable VAR accordingly.
2044 ac_fn_c_check_type ()
2045 {
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if eval \${$3+:} false; then :
2050 $as_echo_n "(cached) " >&6
2051 else
2052 eval "$3=no"
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2055 $4
2056 int
2057 main ()
2058 {
2059 if (sizeof ($2))
2060 return 0;
2061 ;
2062 return 0;
2063 }
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"; then :
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2068 $4
2069 int
2070 main ()
2071 {
2072 if (sizeof (($2)))
2073 return 0;
2074 ;
2075 return 0;
2076 }
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079
2080 else
2081 eval "$3=yes"
2082 fi
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 fi
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 fi
2087 eval ac_res=\$$3
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089 $as_echo "$ac_res" >&6; }
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091
2092 } # ac_fn_c_check_type
2093
2094 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2095 # --------------------------------------------
2096 # Tries to find the compile-time value of EXPR in a program that includes
2097 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2098 # computed
2099 ac_fn_c_compute_int ()
2100 {
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102 if test "$cross_compiling" = yes; then
2103 # Depending upon the size, compute the lo and hi bounds.
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2106 $4
2107 int
2108 main ()
2109 {
2110 static int test_array [1 - 2 * !(($2) >= 0)];
2111 test_array [0] = 0;
2112 return test_array [0];
2113
2114 ;
2115 return 0;
2116 }
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119 ac_lo=0 ac_mid=0
2120 while :; do
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2123 $4
2124 int
2125 main ()
2126 {
2127 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2128 test_array [0] = 0;
2129 return test_array [0];
2130
2131 ;
2132 return 0;
2133 }
2134 _ACEOF
2135 if ac_fn_c_try_compile "$LINENO"; then :
2136 ac_hi=$ac_mid; break
2137 else
2138 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2139 if test $ac_lo -le $ac_mid; then
2140 ac_lo= ac_hi=
2141 break
2142 fi
2143 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 done
2147 else
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2150 $4
2151 int
2152 main ()
2153 {
2154 static int test_array [1 - 2 * !(($2) < 0)];
2155 test_array [0] = 0;
2156 return test_array [0];
2157
2158 ;
2159 return 0;
2160 }
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163 ac_hi=-1 ac_mid=-1
2164 while :; do
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2167 $4
2168 int
2169 main ()
2170 {
2171 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2172 test_array [0] = 0;
2173 return test_array [0];
2174
2175 ;
2176 return 0;
2177 }
2178 _ACEOF
2179 if ac_fn_c_try_compile "$LINENO"; then :
2180 ac_lo=$ac_mid; break
2181 else
2182 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2183 if test $ac_mid -le $ac_hi; then
2184 ac_lo= ac_hi=
2185 break
2186 fi
2187 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2188 fi
2189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 done
2191 else
2192 ac_lo= ac_hi=
2193 fi
2194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195 fi
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 # Binary search between lo and hi bounds.
2198 while test "x$ac_lo" != "x$ac_hi"; do
2199 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2202 $4
2203 int
2204 main ()
2205 {
2206 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2207 test_array [0] = 0;
2208 return test_array [0];
2209
2210 ;
2211 return 0;
2212 }
2213 _ACEOF
2214 if ac_fn_c_try_compile "$LINENO"; then :
2215 ac_hi=$ac_mid
2216 else
2217 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2218 fi
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 done
2221 case $ac_lo in #((
2222 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2223 '') ac_retval=1 ;;
2224 esac
2225 else
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2228 $4
2229 static long int longval () { return $2; }
2230 static unsigned long int ulongval () { return $2; }
2231 #include <stdio.h>
2232 #include <stdlib.h>
2233 int
2234 main ()
2235 {
2236
2237 FILE *f = fopen ("conftest.val", "w");
2238 if (! f)
2239 return 1;
2240 if (($2) < 0)
2241 {
2242 long int i = longval ();
2243 if (i != ($2))
2244 return 1;
2245 fprintf (f, "%ld", i);
2246 }
2247 else
2248 {
2249 unsigned long int i = ulongval ();
2250 if (i != ($2))
2251 return 1;
2252 fprintf (f, "%lu", i);
2253 }
2254 /* Do not output a trailing newline, as this causes \r\n confusion
2255 on some platforms. */
2256 return ferror (f) || fclose (f) != 0;
2257
2258 ;
2259 return 0;
2260 }
2261 _ACEOF
2262 if ac_fn_c_try_run "$LINENO"; then :
2263 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2264 else
2265 ac_retval=1
2266 fi
2267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2268 conftest.$ac_objext conftest.beam conftest.$ac_ext
2269 rm -f conftest.val
2270
2271 fi
2272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273 as_fn_set_status $ac_retval
2274
2275 } # ac_fn_c_compute_int
2276
2277 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2278 # -------------------------------------------------------
2279 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2280 # the include files in INCLUDES and setting the cache variable VAR
2281 # accordingly.
2282 ac_fn_c_check_header_mongrel ()
2283 {
2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285 if eval \${$3+:} false; then :
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2287 $as_echo_n "checking for $2... " >&6; }
2288 if eval \${$3+:} false; then :
2289 $as_echo_n "(cached) " >&6
2290 fi
2291 eval ac_res=\$$3
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 $as_echo "$ac_res" >&6; }
2294 else
2295 # Is the header compilable?
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2297 $as_echo_n "checking $2 usability... " >&6; }
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2300 $4
2301 #include <$2>
2302 _ACEOF
2303 if ac_fn_c_try_compile "$LINENO"; then :
2304 ac_header_compiler=yes
2305 else
2306 ac_header_compiler=no
2307 fi
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2310 $as_echo "$ac_header_compiler" >&6; }
2311
2312 # Is the header present?
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2314 $as_echo_n "checking $2 presence... " >&6; }
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2317 #include <$2>
2318 _ACEOF
2319 if ac_fn_c_try_cpp "$LINENO"; then :
2320 ac_header_preproc=yes
2321 else
2322 ac_header_preproc=no
2323 fi
2324 rm -f conftest.err conftest.i conftest.$ac_ext
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2326 $as_echo "$ac_header_preproc" >&6; }
2327
2328 # So? What about this header?
2329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2330 yes:no: )
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2332 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2334 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2335 ;;
2336 no:yes:* )
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2338 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2340 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2342 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2344 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2346 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2347 ( $as_echo "## -------------------------------------- ##
2348 ## Report this to http://bugs.librdf.org/ ##
2349 ## -------------------------------------- ##"
2350 ) | sed "s/^/$as_me: WARNING: /" >&2
2351 ;;
2352 esac
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2354 $as_echo_n "checking for $2... " >&6; }
2355 if eval \${$3+:} false; then :
2356 $as_echo_n "(cached) " >&6
2357 else
2358 eval "$3=\$ac_header_compiler"
2359 fi
2360 eval ac_res=\$$3
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2362 $as_echo "$ac_res" >&6; }
2363 fi
2364 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2365
2366 } # ac_fn_c_check_header_mongrel
2367 cat >config.log <<_ACEOF
2368 This file contains any messages produced by compilers while
2369 running configure, to aid debugging if configure makes a mistake.
2370
2371 It was created by Redland librdf RDF API Library $as_me 1.0.17, which was
2372 generated by GNU Autoconf 2.69. Invocation command line was
2373
2374 $ $0 $@
2375
2376 _ACEOF
2377 exec 5>>config.log
2378 {
2379 cat <<_ASUNAME
2380 ## --------- ##
2381 ## Platform. ##
2382 ## --------- ##
2383
2384 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2385 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2386 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2387 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2388 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2389
2390 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2391 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2392
2393 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2394 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2395 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2396 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2397 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2398 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2399 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2400
2401 _ASUNAME
2402
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 $as_echo "PATH: $as_dir"
2409 done
2410 IFS=$as_save_IFS
2411
2412 } >&5
2413
2414 cat >&5 <<_ACEOF
2415
2416
2417 ## ----------- ##
2418 ## Core tests. ##
2419 ## ----------- ##
2420
2421 _ACEOF
2422
2423
2424 # Keep a trace of the command line.
2425 # Strip out --no-create and --no-recursion so they do not pile up.
2426 # Strip out --silent because we don't want to record it for future runs.
2427 # Also quote any args containing shell meta-characters.
2428 # Make two passes to allow for proper duplicate-argument suppression.
2429 ac_configure_args=
2430 ac_configure_args0=
2431 ac_configure_args1=
2432 ac_must_keep_next=false
2433 for ac_pass in 1 2
2434 do
2435 for ac_arg
2436 do
2437 case $ac_arg in
2438 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2440 | -silent | --silent | --silen | --sile | --sil)
2441 continue ;;
2442 *\'*)
2443 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2444 esac
2445 case $ac_pass in
2446 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2447 2)
2448 as_fn_append ac_configure_args1 " '$ac_arg'"
2449 if test $ac_must_keep_next = true; then
2450 ac_must_keep_next=false # Got value, back to normal.
2451 else
2452 case $ac_arg in
2453 *=* | --config-cache | -C | -disable-* | --disable-* \
2454 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2455 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2456 | -with-* | --with-* | -without-* | --without-* | --x)
2457 case "$ac_configure_args0 " in
2458 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2459 esac
2460 ;;
2461 -* ) ac_must_keep_next=true ;;
2462 esac
2463 fi
2464 as_fn_append ac_configure_args " '$ac_arg'"
2465 ;;
2466 esac
2467 done
2468 done
2469 { ac_configure_args0=; unset ac_configure_args0;}
2470 { ac_configure_args1=; unset ac_configure_args1;}
2471
2472 # When interrupted or exit'd, cleanup temporary files, and complete
2473 # config.log. We remove comments because anyway the quotes in there
2474 # would cause problems or look ugly.
2475 # WARNING: Use '\'' to represent an apostrophe within the trap.
2476 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2477 trap 'exit_status=$?
2478 # Save into config.log some information that might help in debugging.
2479 {
2480 echo
2481
2482 $as_echo "## ---------------- ##
2483 ## Cache variables. ##
2484 ## ---------------- ##"
2485 echo
2486 # The following way of writing the cache mishandles newlines in values,
2487 (
2488 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2489 eval ac_val=\$$ac_var
2490 case $ac_val in #(
2491 *${as_nl}*)
2492 case $ac_var in #(
2493 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2494 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2495 esac
2496 case $ac_var in #(
2497 _ | IFS | as_nl) ;; #(
2498 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2499 *) { eval $ac_var=; unset $ac_var;} ;;
2500 esac ;;
2501 esac
2502 done
2503 (set) 2>&1 |
2504 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2505 *${as_nl}ac_space=\ *)
2506 sed -n \
2507 "s/'\''/'\''\\\\'\'''\''/g;
2508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2509 ;; #(
2510 *)
2511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2512 ;;
2513 esac |
2514 sort
2515 )
2516 echo
2517
2518 $as_echo "## ----------------- ##
2519 ## Output variables. ##
2520 ## ----------------- ##"
2521 echo
2522 for ac_var in $ac_subst_vars
2523 do
2524 eval ac_val=\$$ac_var
2525 case $ac_val in
2526 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2527 esac
2528 $as_echo "$ac_var='\''$ac_val'\''"
2529 done | sort
2530 echo
2531
2532 if test -n "$ac_subst_files"; then
2533 $as_echo "## ------------------- ##
2534 ## File substitutions. ##
2535 ## ------------------- ##"
2536 echo
2537 for ac_var in $ac_subst_files
2538 do
2539 eval ac_val=\$$ac_var
2540 case $ac_val in
2541 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2542 esac
2543 $as_echo "$ac_var='\''$ac_val'\''"
2544 done | sort
2545 echo
2546 fi
2547
2548 if test -s confdefs.h; then
2549 $as_echo "## ----------- ##
2550 ## confdefs.h. ##
2551 ## ----------- ##"
2552 echo
2553 cat confdefs.h
2554 echo
2555 fi
2556 test "$ac_signal" != 0 &&
2557 $as_echo "$as_me: caught signal $ac_signal"
2558 $as_echo "$as_me: exit $exit_status"
2559 } >&5
2560 rm -f core *.core core.conftest.* &&
2561 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2562 exit $exit_status
2563 ' 0
2564 for ac_signal in 1 2 13 15; do
2565 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2566 done
2567 ac_signal=0
2568
2569 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2570 rm -f -r conftest* confdefs.h
2571
2572 $as_echo "/* confdefs.h */" > confdefs.h
2573
2574 # Predefined preprocessor variables.
2575
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_NAME "$PACKAGE_NAME"
2578 _ACEOF
2579
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2582 _ACEOF
2583
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2586 _ACEOF
2587
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_STRING "$PACKAGE_STRING"
2590 _ACEOF
2591
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2594 _ACEOF
2595
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE_URL "$PACKAGE_URL"
2598 _ACEOF
2599
2600
2601 # Let the site file select an alternate cache file if it wants to.
2602 # Prefer an explicitly selected file to automatically selected ones.
2603 ac_site_file1=NONE
2604 ac_site_file2=NONE
2605 if test -n "$CONFIG_SITE"; then
2606 # We do not want a PATH search for config.site.
2607 case $CONFIG_SITE in #((
2608 -*) ac_site_file1=./$CONFIG_SITE;;
2609 */*) ac_site_file1=$CONFIG_SITE;;
2610 *) ac_site_file1=./$CONFIG_SITE;;
2611 esac
2612 elif test "x$prefix" != xNONE; then
2613 ac_site_file1=$prefix/share/config.site
2614 ac_site_file2=$prefix/etc/config.site
2615 else
2616 ac_site_file1=$ac_default_prefix/share/config.site
2617 ac_site_file2=$ac_default_prefix/etc/config.site
2618 fi
2619 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2620 do
2621 test "x$ac_site_file" = xNONE && continue
2622 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2624 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2625 sed 's/^/| /' "$ac_site_file" >&5
2626 . "$ac_site_file" \
2627 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629 as_fn_error $? "failed to load site script $ac_site_file
2630 See \`config.log' for more details" "$LINENO" 5; }
2631 fi
2632 done
2633
2634 if test -r "$cache_file"; then
2635 # Some versions of bash will fail to source /dev/null (special files
2636 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2637 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2639 $as_echo "$as_me: loading cache $cache_file" >&6;}
2640 case $cache_file in
2641 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2642 *) . "./$cache_file";;
2643 esac
2644 fi
2645 else
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2647 $as_echo "$as_me: creating cache $cache_file" >&6;}
2648 >$cache_file
2649 fi
2650
2651 # Check that the precious variables saved in the cache have kept the same
2652 # value.
2653 ac_cache_corrupted=false
2654 for ac_var in $ac_precious_vars; do
2655 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2656 eval ac_new_set=\$ac_env_${ac_var}_set
2657 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2658 eval ac_new_val=\$ac_env_${ac_var}_value
2659 case $ac_old_set,$ac_new_set in
2660 set,)
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2662 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2663 ac_cache_corrupted=: ;;
2664 ,set)
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2666 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2667 ac_cache_corrupted=: ;;
2668 ,);;
2669 *)
2670 if test "x$ac_old_val" != "x$ac_new_val"; then
2671 # differences in whitespace do not lead to failure.
2672 ac_old_val_w=`echo x $ac_old_val`
2673 ac_new_val_w=`echo x $ac_new_val`
2674 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2676 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2677 ac_cache_corrupted=:
2678 else
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2680 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2681 eval $ac_var=\$ac_old_val
2682 fi
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2684 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2686 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2687 fi;;
2688 esac
2689 # Pass precious variables to config.status.
2690 if test "$ac_new_set" = set; then
2691 case $ac_new_val in
2692 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2693 *) ac_arg=$ac_var=$ac_new_val ;;
2694 esac
2695 case " $ac_configure_args " in
2696 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2697 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2698 esac
2699 fi
2700 done
2701 if $ac_cache_corrupted; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2705 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2706 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2707 fi
2708 ## -------------------- ##
2709 ## Main body of script. ##
2710 ## -------------------- ##
2711
2712 ac_ext=c
2713 ac_cpp='$CPP $CPPFLAGS'
2714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2717
2718
2719
2720
2721 ac_config_headers="$ac_config_headers src/rdf_config.h"
2722
2723 ac_aux_dir=
2724 for ac_dir in build "$srcdir"/build; do
2725 if test -f "$ac_dir/install-sh"; then
2726 ac_aux_dir=$ac_dir
2727 ac_install_sh="$ac_aux_dir/install-sh -c"
2728 break
2729 elif test -f "$ac_dir/install.sh"; then
2730 ac_aux_dir=$ac_dir
2731 ac_install_sh="$ac_aux_dir/install.sh -c"
2732 break
2733 elif test -f "$ac_dir/shtool"; then
2734 ac_aux_dir=$ac_dir
2735 ac_install_sh="$ac_aux_dir/shtool install -c"
2736 break
2737 fi
2738 done
2739 if test -z "$ac_aux_dir"; then
2740 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2741 fi
2742
2743 # These three variables are undocumented and unsupported,
2744 # and are intended to be withdrawn in a future Autoconf release.
2745 # They can cause serious problems if a builder's source tree is in a directory
2746 # whose full name contains unusual characters.
2747 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2748 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2749 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2750
2751
2752
2753 am__api_version='1.11'
2754
2755 # Find a good install program. We prefer a C program (faster),
2756 # so one script is as good as another. But avoid the broken or
2757 # incompatible versions:
2758 # SysV /etc/install, /usr/sbin/install
2759 # SunOS /usr/etc/install
2760 # IRIX /sbin/install
2761 # AIX /bin/install
2762 # AmigaOS /C/install, which installs bootblocks on floppy discs
2763 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2764 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2765 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2766 # OS/2's system install, which has a completely different semantic
2767 # ./install, which can be erroneously created by make from ./install.sh.
2768 # Reject install programs that cannot install multiple files.
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2770 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2771 if test -z "$INSTALL"; then
2772 if ${ac_cv_path_install+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2777 do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 # Account for people who put trailing slashes in PATH elements.
2781 case $as_dir/ in #((
2782 ./ | .// | /[cC]/* | \
2783 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2784 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2785 /usr/ucb/* ) ;;
2786 *)
2787 # OSF1 and SCO ODT 3.0 have their own names for install.
2788 # Don't use installbsd from OSF since it installs stuff as root
2789 # by default.
2790 for ac_prog in ginstall scoinst install; do
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2793 if test $ac_prog = install &&
2794 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2795 # AIX install. It has an incompatible calling convention.
2796 :
2797 elif test $ac_prog = install &&
2798 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2799 # program-specific install script used by HP pwplus--don't use.
2800 :
2801 else
2802 rm -rf conftest.one conftest.two conftest.dir
2803 echo one > conftest.one
2804 echo two > conftest.two
2805 mkdir conftest.dir
2806 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2807 test -s conftest.one && test -s conftest.two &&
2808 test -s conftest.dir/conftest.one &&
2809 test -s conftest.dir/conftest.two
2810 then
2811 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2812 break 3
2813 fi
2814 fi
2815 fi
2816 done
2817 done
2818 ;;
2819 esac
2820
2821 done
2822 IFS=$as_save_IFS
2823
2824 rm -rf conftest.one conftest.two conftest.dir
2825
2826 fi
2827 if test "${ac_cv_path_install+set}" = set; then
2828 INSTALL=$ac_cv_path_install
2829 else
2830 # As a last resort, use the slow shell script. Don't cache a
2831 # value for INSTALL within a source directory, because that will
2832 # break other packages using the cache if that directory is
2833 # removed, or if the value is a relative name.
2834 INSTALL=$ac_install_sh
2835 fi
2836 fi
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2838 $as_echo "$INSTALL" >&6; }
2839
2840 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2841 # It thinks the first close brace ends the variable substitution.
2842 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2843
2844 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2845
2846 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2847
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2849 $as_echo_n "checking whether build environment is sane... " >&6; }
2850 # Just in case
2851 sleep 1
2852 echo timestamp > conftest.file
2853 # Reject unsafe characters in $srcdir or the absolute working directory
2854 # name. Accept space and tab only in the latter.
2855 am_lf='
2856 '
2857 case `pwd` in
2858 *[\\\"\#\$\&\'\`$am_lf]*)
2859 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2860 esac
2861 case $srcdir in
2862 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2863 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2864 esac
2865
2866 # Do `set' in a subshell so we don't clobber the current shell's
2867 # arguments. Must try -L first in case configure is actually a
2868 # symlink; some systems play weird games with the mod time of symlinks
2869 # (eg FreeBSD returns the mod time of the symlink's containing
2870 # directory).
2871 if (
2872 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2873 if test "$*" = "X"; then
2874 # -L didn't work.
2875 set X `ls -t "$srcdir/configure" conftest.file`
2876 fi
2877 rm -f conftest.file
2878 if test "$*" != "X $srcdir/configure conftest.file" \
2879 && test "$*" != "X conftest.file $srcdir/configure"; then
2880
2881 # If neither matched, then we have a broken ls. This can happen
2882 # if, for instance, CONFIG_SHELL is bash and it inherits a
2883 # broken ls alias from the environment. This has actually
2884 # happened. Such a system could not be considered "sane".
2885 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2886 alias in your environment" "$LINENO" 5
2887 fi
2888
2889 test "$2" = conftest.file
2890 )
2891 then
2892 # Ok.
2893 :
2894 else
2895 as_fn_error $? "newly created file is older than distributed files!
2896 Check your system clock" "$LINENO" 5
2897 fi
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2899 $as_echo "yes" >&6; }
2900 test "$program_prefix" != NONE &&
2901 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2902 # Use a double $ so make ignores it.
2903 test "$program_suffix" != NONE &&
2904 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2905 # Double any \ or $.
2906 # By default was `s,x,x', remove it if useless.
2907 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2908 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2909
2910 # expand $ac_aux_dir to an absolute path
2911 am_aux_dir=`cd $ac_aux_dir && pwd`
2912
2913 if test x"${MISSING+set}" != xset; then
2914 case $am_aux_dir in
2915 *\ * | *\ *)
2916 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2917 *)
2918 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2919 esac
2920 fi
2921 # Use eval to expand $SHELL
2922 if eval "$MISSING --run true"; then
2923 am_missing_run="$MISSING --run "
2924 else
2925 am_missing_run=
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2927 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2928 fi
2929
2930 if test x"${install_sh}" != xset; then
2931 case $am_aux_dir in
2932 *\ * | *\ *)
2933 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2934 *)
2935 install_sh="\${SHELL} $am_aux_dir/install-sh"
2936 esac
2937 fi
2938
2939 # Installed binaries are usually stripped using `strip' when the user
2940 # run `make install-strip'. However `strip' might not be the right
2941 # tool to use in cross-compilation environments, therefore Automake
2942 # will honor the `STRIP' environment variable to overrule this program.
2943 if test "$cross_compiling" != no; then
2944 if test -n "$ac_tool_prefix"; then
2945 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2946 set dummy ${ac_tool_prefix}strip; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if ${ac_cv_prog_STRIP+:} false; then :
2950 $as_echo_n "(cached) " >&6
2951 else
2952 if test -n "$STRIP"; then
2953 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 break 2
2965 fi
2966 done
2967 done
2968 IFS=$as_save_IFS
2969
2970 fi
2971 fi
2972 STRIP=$ac_cv_prog_STRIP
2973 if test -n "$STRIP"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2975 $as_echo "$STRIP" >&6; }
2976 else
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2979 fi
2980
2981
2982 fi
2983 if test -z "$ac_cv_prog_STRIP"; then
2984 ac_ct_STRIP=$STRIP
2985 # Extract the first word of "strip", so it can be a program name with args.
2986 set dummy strip; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 if test -n "$ac_ct_STRIP"; then
2993 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_ac_ct_STRIP="strip"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3005 fi
3006 done
3007 done
3008 IFS=$as_save_IFS
3009
3010 fi
3011 fi
3012 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3013 if test -n "$ac_ct_STRIP"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3015 $as_echo "$ac_ct_STRIP" >&6; }
3016 else
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 fi
3020
3021 if test "x$ac_ct_STRIP" = x; then
3022 STRIP=":"
3023 else
3024 case $cross_compiling:$ac_tool_warned in
3025 yes:)
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3028 ac_tool_warned=yes ;;
3029 esac
3030 STRIP=$ac_ct_STRIP
3031 fi
3032 else
3033 STRIP="$ac_cv_prog_STRIP"
3034 fi
3035
3036 fi
3037 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3038
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3040 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3041 if test -z "$MKDIR_P"; then
3042 if ${ac_cv_path_mkdir+:} false; then :
3043 $as_echo_n "(cached) " >&6
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3047 do
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
3050 for ac_prog in mkdir gmkdir; do
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3053 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3054 'mkdir (GNU coreutils) '* | \
3055 'mkdir (coreutils) '* | \
3056 'mkdir (fileutils) '4.1*)
3057 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3058 break 3;;
3059 esac
3060 done
3061 done
3062 done
3063 IFS=$as_save_IFS
3064
3065 fi
3066
3067 test -d ./--version && rmdir ./--version
3068 if test "${ac_cv_path_mkdir+set}" = set; then
3069 MKDIR_P="$ac_cv_path_mkdir -p"
3070 else
3071 # As a last resort, use the slow shell script. Don't cache a
3072 # value for MKDIR_P within a source directory, because that will
3073 # break other packages using the cache if that directory is
3074 # removed, or if the value is a relative name.
3075 MKDIR_P="$ac_install_sh -d"
3076 fi
3077 fi
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3079 $as_echo "$MKDIR_P" >&6; }
3080
3081 mkdir_p="$MKDIR_P"
3082 case $mkdir_p in
3083 [\\/$]* | ?:[\\/]*) ;;
3084 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3085 esac
3086
3087 for ac_prog in gawk mawk nawk awk
3088 do
3089 # Extract the first word of "$ac_prog", so it can be a program name with args.
3090 set dummy $ac_prog; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if ${ac_cv_prog_AWK+:} false; then :
3094 $as_echo_n "(cached) " >&6
3095 else
3096 if test -n "$AWK"; then
3097 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106 ac_cv_prog_AWK="$ac_prog"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 break 2
3109 fi
3110 done
3111 done
3112 IFS=$as_save_IFS
3113
3114 fi
3115 fi
3116 AWK=$ac_cv_prog_AWK
3117 if test -n "$AWK"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3119 $as_echo "$AWK" >&6; }
3120 else
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3123 fi
3124
3125
3126 test -n "$AWK" && break
3127 done
3128
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3130 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3131 set x ${MAKE-make}
3132 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3133 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3134 $as_echo_n "(cached) " >&6
3135 else
3136 cat >conftest.make <<\_ACEOF
3137 SHELL = /bin/sh
3138 all:
3139 @echo '@@@%%%=$(MAKE)=@@@%%%'
3140 _ACEOF
3141 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3142 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3143 *@@@%%%=?*=@@@%%%*)
3144 eval ac_cv_prog_make_${ac_make}_set=yes;;
3145 *)
3146 eval ac_cv_prog_make_${ac_make}_set=no;;
3147 esac
3148 rm -f conftest.make
3149 fi
3150 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3152 $as_echo "yes" >&6; }
3153 SET_MAKE=
3154 else
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3157 SET_MAKE="MAKE=${MAKE-make}"
3158 fi
3159
3160 rm -rf .tst 2>/dev/null
3161 mkdir .tst 2>/dev/null
3162 if test -d .tst; then
3163 am__leading_dot=.
3164 else
3165 am__leading_dot=_
3166 fi
3167 rmdir .tst 2>/dev/null
3168
3169 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3170 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3171 # is not polluted with repeated "-I."
3172 am__isrc=' -I$(srcdir)'
3173 # test to see if srcdir already configured
3174 if test -f $srcdir/config.status; then
3175 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3176 fi
3177 fi
3178
3179 # test whether we have cygpath
3180 if test -z "$CYGPATH_W"; then
3181 if (cygpath --version) >/dev/null 2>/dev/null; then
3182 CYGPATH_W='cygpath -w'
3183 else
3184 CYGPATH_W=echo
3185 fi
3186 fi
3187
3188
3189 # Define the identity of the package.
3190 PACKAGE='redland'
3191 VERSION='1.0.17'
3192
3193
3194 cat >>confdefs.h <<_ACEOF
3195 #define PACKAGE "$PACKAGE"
3196 _ACEOF
3197
3198
3199 cat >>confdefs.h <<_ACEOF
3200 #define VERSION "$VERSION"
3201 _ACEOF
3202
3203 # Some tools Automake needs.
3204
3205 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3206
3207
3208 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3209
3210
3211 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3212
3213
3214 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3215
3216
3217 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3218
3219 # We need awk for the "check" target. The system "awk" is bad on
3220 # some platforms.
3221 # Always define AMTAR for backward compatibility. Yes, it's still used
3222 # in the wild :-( We should find a proper way to deprecate it ...
3223 AMTAR='$${TAR-tar}'
3224
3225 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3226
3227
3228
3229
3230
3231
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3233 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3234 # Check whether --enable-maintainer-mode was given.
3235 if test "${enable_maintainer_mode+set}" = set; then :
3236 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3237 else
3238 USE_MAINTAINER_MODE=no
3239 fi
3240
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3242 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3243 if test $USE_MAINTAINER_MODE = yes; then
3244 MAINTAINER_MODE_TRUE=
3245 MAINTAINER_MODE_FALSE='#'
3246 else
3247 MAINTAINER_MODE_TRUE='#'
3248 MAINTAINER_MODE_FALSE=
3249 fi
3250
3251 MAINT=$MAINTAINER_MODE_TRUE
3252
3253
3254
3255 # Make sure we can run config.sub.
3256 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3257 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3258
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3260 $as_echo_n "checking build system type... " >&6; }
3261 if ${ac_cv_build+:} false; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 ac_build_alias=$build_alias
3265 test "x$ac_build_alias" = x &&
3266 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3267 test "x$ac_build_alias" = x &&
3268 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3269 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3270 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3271
3272 fi
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3274 $as_echo "$ac_cv_build" >&6; }
3275 case $ac_cv_build in
3276 *-*-*) ;;
3277 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3278 esac
3279 build=$ac_cv_build
3280 ac_save_IFS=$IFS; IFS='-'
3281 set x $ac_cv_build
3282 shift
3283 build_cpu=$1
3284 build_vendor=$2
3285 shift; shift
3286 # Remember, the first character of IFS is used to create $*,
3287 # except with old shells:
3288 build_os=$*
3289 IFS=$ac_save_IFS
3290 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3291
3292
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3294 $as_echo_n "checking host system type... " >&6; }
3295 if ${ac_cv_host+:} false; then :
3296 $as_echo_n "(cached) " >&6
3297 else
3298 if test "x$host_alias" = x; then
3299 ac_cv_host=$ac_cv_build
3300 else
3301 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3302 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3303 fi
3304
3305 fi
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3307 $as_echo "$ac_cv_host" >&6; }
3308 case $ac_cv_host in
3309 *-*-*) ;;
3310 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3311 esac
3312 host=$ac_cv_host
3313 ac_save_IFS=$IFS; IFS='-'
3314 set x $ac_cv_host
3315 shift
3316 host_cpu=$1
3317 host_vendor=$2
3318 shift; shift
3319 # Remember, the first character of IFS is used to create $*,
3320 # except with old shells:
3321 host_os=$*
3322 IFS=$ac_save_IFS
3323 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3324
3325
3326
3327
3328 version_major=`echo $VERSION | sed -e 's/^\([^\.]*\)\.\([^\.]*\)\.\(.*\)$/\1/'`
3329 version_minor=`echo $VERSION | sed -e 's/^\([^\.]*\)\.\([^\.]*\)\.\(.*\)$/\2/'`
3330 version_release=`echo $VERSION | sed -e 's/^\([^\.]*\)\.\([^\.]*\)\.\(.*\)$/\3/'`
3331
3332 version_decimal=`expr $version_major \* 10000 + $version_minor \* 100 + $version_release`
3333
3334
3335 cat >>confdefs.h <<_ACEOF
3336 #define LIBRDF_VERSION_MAJOR $version_major
3337 _ACEOF
3338
3339
3340 cat >>confdefs.h <<_ACEOF
3341 #define LIBRDF_VERSION_MINOR $version_minor
3342 _ACEOF
3343
3344
3345 cat >>confdefs.h <<_ACEOF
3346 #define LIBRDF_VERSION_RELEASE $version_release
3347 _ACEOF
3348
3349
3350 cat >>confdefs.h <<_ACEOF
3351 #define LIBRDF_VERSION_DECIMAL $version_decimal
3352 _ACEOF
3353
3354
3355 # for redland-config.in
3356 LIBRDF_VERSION_MAJOR=$version_major
3357 LIBRDF_VERSION_MINOR=$version_minor
3358 LIBRDF_VERSION_RELEASE=$version_release
3359 LIBRDF_VERSION_DECIMAL=$version_decimal
3360
3361
3362
3363
3364
3365
3366 # Libtool versioning
3367 #
3368 # CURRENT
3369 # The most recent interface number that this library implements.
3370 #
3371 # REVISION
3372 # The implementation number of the CURRENT interface.
3373 #
3374 # AGE
3375 # The difference between the newest and oldest interfaces that this
3376 # library implements. In other words, the library implements all the
3377 # interface numbers in the range from number `CURRENT - AGE' to
3378 # `CURRENT'.
3379 #
3380 # Rules:
3381 # 1. Start with version information of `0:0:0' for each libtool library.
3382 #
3383 # 2. Update the version information only immediately before a public
3384 # release of your software. More frequent updates are unnecessary,
3385 # and only guarantee that the current interface number gets larger
3386 # faster.
3387 #
3388 # 3. If the library source code has changed at all since the last
3389 # update, then increment REVISION (`C:R:A' becomes `C:r+1:A').
3390 #
3391 # 4. If any interfaces have been added, removed, or changed since the
3392 # last update, increment CURRENT, and set REVISION to 0.
3393 #
3394 # 5. If any interfaces have been added since the last public release,
3395 # then increment AGE.
3396 #
3397 # 6. If any interfaces have been removed since the last public release,
3398 # then set AGE to 0.
3399 #
3400 # syntax: CURRENT[:REVISION[:AGE]]
3401 LIBRDF_LIBTOOL_VERSION=0:0:0
3402
3403
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3405 $as_echo_n "checking whether build environment is sane... " >&6; }
3406 # Just in case
3407 sleep 1
3408 echo timestamp > conftest.file
3409 # Reject unsafe characters in $srcdir or the absolute working directory
3410 # name. Accept space and tab only in the latter.
3411 am_lf='
3412 '
3413 case `pwd` in
3414 *[\\\"\#\$\&\'\`$am_lf]*)
3415 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3416 esac
3417 case $srcdir in
3418 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3419 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3420 esac
3421
3422 # Do `set' in a subshell so we don't clobber the current shell's
3423 # arguments. Must try -L first in case configure is actually a
3424 # symlink; some systems play weird games with the mod time of symlinks
3425 # (eg FreeBSD returns the mod time of the symlink's containing
3426 # directory).
3427 if (
3428 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3429 if test "$*" = "X"; then
3430 # -L didn't work.
3431 set X `ls -t "$srcdir/configure" conftest.file`
3432 fi
3433 rm -f conftest.file
3434 if test "$*" != "X $srcdir/configure conftest.file" \
3435 && test "$*" != "X conftest.file $srcdir/configure"; then
3436
3437 # If neither matched, then we have a broken ls. This can happen
3438 # if, for instance, CONFIG_SHELL is bash and it inherits a
3439 # broken ls alias from the environment. This has actually
3440 # happened. Such a system could not be considered "sane".
3441 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3442 alias in your environment" "$LINENO" 5
3443 fi
3444
3445 test "$2" = conftest.file
3446 )
3447 then
3448 # Ok.
3449 :
3450 else
3451 as_fn_error $? "newly created file is older than distributed files!
3452 Check your system clock" "$LINENO" 5
3453 fi
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3455 $as_echo "yes" >&6; }
3456 DEPDIR="${am__leading_dot}deps"
3457
3458 ac_config_commands="$ac_config_commands depfiles"
3459
3460
3461 am_make=${MAKE-make}
3462 cat > confinc << 'END'
3463 am__doit:
3464 @echo this is the am__doit target
3465 .PHONY: am__doit
3466 END
3467 # If we don't find an include directive, just comment out the code.
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3469 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3470 am__include="#"
3471 am__quote=
3472 _am_result=none
3473 # First try GNU make style include.
3474 echo "include confinc" > confmf
3475 # Ignore all kinds of additional output from `make'.
3476 case `$am_make -s -f confmf 2> /dev/null` in #(
3477 *the\ am__doit\ target*)
3478 am__include=include
3479 am__quote=
3480 _am_result=GNU
3481 ;;
3482 esac
3483 # Now try BSD make style include.
3484 if test "$am__include" = "#"; then
3485 echo '.include "confinc"' > confmf
3486 case `$am_make -s -f confmf 2> /dev/null` in #(
3487 *the\ am__doit\ target*)
3488 am__include=.include
3489 am__quote="\""
3490 _am_result=BSD
3491 ;;
3492 esac
3493 fi
3494
3495
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3497 $as_echo "$_am_result" >&6; }
3498 rm -f confinc confmf
3499
3500 # Check whether --enable-dependency-tracking was given.
3501 if test "${enable_dependency_tracking+set}" = set; then :
3502 enableval=$enable_dependency_tracking;
3503 fi
3504
3505 if test "x$enable_dependency_tracking" != xno; then
3506 am_depcomp="$ac_aux_dir/depcomp"
3507 AMDEPBACKSLASH='\'
3508 am__nodep='_no'
3509 fi
3510 if test "x$enable_dependency_tracking" != xno; then
3511 AMDEP_TRUE=
3512 AMDEP_FALSE='#'
3513 else
3514 AMDEP_TRUE='#'
3515 AMDEP_FALSE=
3516 fi
3517
3518
3519 ac_ext=c
3520 ac_cpp='$CPP $CPPFLAGS'
3521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3524 if test -n "$ac_tool_prefix"; then
3525 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528 $as_echo_n "checking for $ac_word... " >&6; }
3529 if ${ac_cv_prog_CC+:} false; then :
3530 $as_echo_n "(cached) " >&6
3531 else
3532 if test -n "$CC"; then
3533 ac_cv_prog_CC="$CC" # Let the user override the test.
3534 else
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3537 do
3538 IFS=$as_save_IFS
3539 test -z "$as_dir" && as_dir=.
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 break 2
3545 fi
3546 done
3547 done
3548 IFS=$as_save_IFS
3549
3550 fi
3551 fi
3552 CC=$ac_cv_prog_CC
3553 if test -n "$CC"; then
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555 $as_echo "$CC" >&6; }
3556 else
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3559 fi
3560
3561
3562 fi
3563 if test -z "$ac_cv_prog_CC"; then
3564 ac_ct_CC=$CC
3565 # Extract the first word of "gcc", so it can be a program name with args.
3566 set dummy gcc; ac_word=$2
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568 $as_echo_n "checking for $ac_word... " >&6; }
3569 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3570 $as_echo_n "(cached) " >&6
3571 else
3572 if test -n "$ac_ct_CC"; then
3573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3574 else
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH
3577 do
3578 IFS=$as_save_IFS
3579 test -z "$as_dir" && as_dir=.
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3582 ac_cv_prog_ac_ct_CC="gcc"
3583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3584 break 2
3585 fi
3586 done
3587 done
3588 IFS=$as_save_IFS
3589
3590 fi
3591 fi
3592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3593 if test -n "$ac_ct_CC"; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3595 $as_echo "$ac_ct_CC" >&6; }
3596 else
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 $as_echo "no" >&6; }
3599 fi
3600
3601 if test "x$ac_ct_CC" = x; then
3602 CC=""
3603 else
3604 case $cross_compiling:$ac_tool_warned in
3605 yes:)
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3608 ac_tool_warned=yes ;;
3609 esac
3610 CC=$ac_ct_CC
3611 fi
3612 else
3613 CC="$ac_cv_prog_CC"
3614 fi
3615
3616 if test -z "$CC"; then
3617 if test -n "$ac_tool_prefix"; then
3618 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3619 set dummy ${ac_tool_prefix}cc; ac_word=$2
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621 $as_echo_n "checking for $ac_word... " >&6; }
3622 if ${ac_cv_prog_CC+:} false; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 if test -n "$CC"; then
3626 ac_cv_prog_CC="$CC" # Let the user override the test.
3627 else
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH
3630 do
3631 IFS=$as_save_IFS
3632 test -z "$as_dir" && as_dir=.
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3635 ac_cv_prog_CC="${ac_tool_prefix}cc"
3636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 break 2
3638 fi
3639 done
3640 done
3641 IFS=$as_save_IFS
3642
3643 fi
3644 fi
3645 CC=$ac_cv_prog_CC
3646 if test -n "$CC"; then
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3648 $as_echo "$CC" >&6; }
3649 else
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3652 fi
3653
3654
3655 fi
3656 fi
3657 if test -z "$CC"; then
3658 # Extract the first word of "cc", so it can be a program name with args.
3659 set dummy cc; ac_word=$2
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3661 $as_echo_n "checking for $ac_word... " >&6; }
3662 if ${ac_cv_prog_CC+:} false; then :
3663 $as_echo_n "(cached) " >&6
3664 else
3665 if test -n "$CC"; then
3666 ac_cv_prog_CC="$CC" # Let the user override the test.
3667 else
3668 ac_prog_rejected=no
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH
3671 do
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3676 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3677 ac_prog_rejected=yes
3678 continue
3679 fi
3680 ac_cv_prog_CC="cc"
3681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3682 break 2
3683 fi
3684 done
3685 done
3686 IFS=$as_save_IFS
3687
3688 if test $ac_prog_rejected = yes; then
3689 # We found a bogon in the path, so make sure we never use it.
3690 set dummy $ac_cv_prog_CC
3691 shift
3692 if test $# != 0; then
3693 # We chose a different compiler from the bogus one.
3694 # However, it has the same basename, so the bogon will be chosen
3695 # first if we set CC to just the basename; use the full file name.
3696 shift
3697 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3698 fi
3699 fi
3700 fi
3701 fi
3702 CC=$ac_cv_prog_CC
3703 if test -n "$CC"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3705 $as_echo "$CC" >&6; }
3706 else
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3709 fi
3710
3711
3712 fi
3713 if test -z "$CC"; then
3714 if test -n "$ac_tool_prefix"; then
3715 for ac_prog in cl.exe
3716 do
3717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3718 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if ${ac_cv_prog_CC+:} false; then :
3722 $as_echo_n "(cached) " >&6
3723 else
3724 if test -n "$CC"; then
3725 ac_cv_prog_CC="$CC" # Let the user override the test.
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3729 do
3730 IFS=$as_save_IFS
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3734 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 break 2
3737 fi
3738 done
3739 done
3740 IFS=$as_save_IFS
3741
3742 fi
3743 fi
3744 CC=$ac_cv_prog_CC
3745 if test -n "$CC"; then
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3747 $as_echo "$CC" >&6; }
3748 else
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 $as_echo "no" >&6; }
3751 fi
3752
3753
3754 test -n "$CC" && break
3755 done
3756 fi
3757 if test -z "$CC"; then
3758 ac_ct_CC=$CC
3759 for ac_prog in cl.exe
3760 do
3761 # Extract the first word of "$ac_prog", so it can be a program name with args.
3762 set dummy $ac_prog; ac_word=$2
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3764 $as_echo_n "checking for $ac_word... " >&6; }
3765 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 if test -n "$ac_ct_CC"; then
3769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3773 do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778 ac_cv_prog_ac_ct_CC="$ac_prog"
3779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 break 2
3781 fi
3782 done
3783 done
3784 IFS=$as_save_IFS
3785
3786 fi
3787 fi
3788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3789 if test -n "$ac_ct_CC"; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3791 $as_echo "$ac_ct_CC" >&6; }
3792 else
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3795 fi
3796
3797
3798 test -n "$ac_ct_CC" && break
3799 done
3800
3801 if test "x$ac_ct_CC" = x; then
3802 CC=""
3803 else
3804 case $cross_compiling:$ac_tool_warned in
3805 yes:)
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3808 ac_tool_warned=yes ;;
3809 esac
3810 CC=$ac_ct_CC
3811 fi
3812 fi
3813
3814 fi
3815
3816
3817 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error $? "no acceptable C compiler found in \$PATH
3820 See \`config.log' for more details" "$LINENO" 5; }
3821
3822 # Provide some information about the compiler.
3823 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3824 set X $ac_compile
3825 ac_compiler=$2
3826 for ac_option in --version -v -V -qversion; do
3827 { { ac_try="$ac_compiler $ac_option >&5"
3828 case "(($ac_try" in
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3831 esac
3832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833 $as_echo "$ac_try_echo"; } >&5
3834 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3835 ac_status=$?
3836 if test -s conftest.err; then
3837 sed '10a\
3838 ... rest of stderr output deleted ...
3839 10q' conftest.err >conftest.er1
3840 cat conftest.er1 >&5
3841 fi
3842 rm -f conftest.er1 conftest.err
3843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844 test $ac_status = 0; }
3845 done
3846
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3849
3850 int
3851 main ()
3852 {
3853
3854 ;
3855 return 0;
3856 }
3857 _ACEOF
3858 ac_clean_files_save=$ac_clean_files
3859 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3860 # Try to create an executable without -o first, disregard a.out.
3861 # It will help us diagnose broken compilers, and finding out an intuition
3862 # of exeext.
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3864 $as_echo_n "checking whether the C compiler works... " >&6; }
3865 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3866
3867 # The possible output files:
3868 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3869
3870 ac_rmfiles=
3871 for ac_file in $ac_files
3872 do
3873 case $ac_file in
3874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3875 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3876 esac
3877 done
3878 rm -f $ac_rmfiles
3879
3880 if { { ac_try="$ac_link_default"
3881 case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886 $as_echo "$ac_try_echo"; } >&5
3887 (eval "$ac_link_default") 2>&5
3888 ac_status=$?
3889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890 test $ac_status = 0; }; then :
3891 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3892 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3893 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3894 # so that the user can short-circuit this test for compilers unknown to
3895 # Autoconf.
3896 for ac_file in $ac_files ''
3897 do
3898 test -f "$ac_file" || continue
3899 case $ac_file in
3900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3901 ;;
3902 [ab].out )
3903 # We found the default executable, but exeext='' is most
3904 # certainly right.
3905 break;;
3906 *.* )
3907 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3908 then :; else
3909 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3910 fi
3911 # We set ac_cv_exeext here because the later test for it is not
3912 # safe: cross compilers may not add the suffix if given an `-o'
3913 # argument, so we may need to know it at that point already.
3914 # Even if this section looks crufty: it has the advantage of
3915 # actually working.
3916 break;;
3917 * )
3918 break;;
3919 esac
3920 done
3921 test "$ac_cv_exeext" = no && ac_cv_exeext=
3922
3923 else
3924 ac_file=''
3925 fi
3926 if test -z "$ac_file"; then :
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 $as_echo "no" >&6; }
3929 $as_echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3931
3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934 as_fn_error 77 "C compiler cannot create executables
3935 See \`config.log' for more details" "$LINENO" 5; }
3936 else
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3938 $as_echo "yes" >&6; }
3939 fi
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3941 $as_echo_n "checking for C compiler default output file name... " >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3943 $as_echo "$ac_file" >&6; }
3944 ac_exeext=$ac_cv_exeext
3945
3946 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3947 ac_clean_files=$ac_clean_files_save
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3949 $as_echo_n "checking for suffix of executables... " >&6; }
3950 if { { ac_try="$ac_link"
3951 case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954 esac
3955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3956 $as_echo "$ac_try_echo"; } >&5
3957 (eval "$ac_link") 2>&5
3958 ac_status=$?
3959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3960 test $ac_status = 0; }; then :
3961 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3962 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3963 # work properly (i.e., refer to `conftest.exe'), while it won't with
3964 # `rm'.
3965 for ac_file in conftest.exe conftest conftest.*; do
3966 test -f "$ac_file" || continue
3967 case $ac_file in
3968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3969 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3970 break;;
3971 * ) break;;
3972 esac
3973 done
3974 else
3975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3977 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3978 See \`config.log' for more details" "$LINENO" 5; }
3979 fi
3980 rm -f conftest conftest$ac_cv_exeext
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3982 $as_echo "$ac_cv_exeext" >&6; }
3983
3984 rm -f conftest.$ac_ext
3985 EXEEXT=$ac_cv_exeext
3986 ac_exeext=$EXEEXT
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3989 #include <stdio.h>
3990 int
3991 main ()
3992 {
3993 FILE *f = fopen ("conftest.out", "w");
3994 return ferror (f) || fclose (f) != 0;
3995
3996 ;
3997 return 0;
3998 }
3999 _ACEOF
4000 ac_clean_files="$ac_clean_files conftest.out"
4001 # Check that the compiler produces executables we can run. If not, either
4002 # the compiler is broken, or we cross compile.
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4004 $as_echo_n "checking whether we are cross compiling... " >&6; }
4005 if test "$cross_compiling" != yes; then
4006 { { ac_try="$ac_link"
4007 case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010 esac
4011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012 $as_echo "$ac_try_echo"; } >&5
4013 (eval "$ac_link") 2>&5
4014 ac_status=$?
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }
4017 if { ac_try='./conftest$ac_cv_exeext'
4018 { { case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4021 esac
4022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4023 $as_echo "$ac_try_echo"; } >&5
4024 (eval "$ac_try") 2>&5
4025 ac_status=$?
4026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4027 test $ac_status = 0; }; }; then
4028 cross_compiling=no
4029 else
4030 if test "$cross_compiling" = maybe; then
4031 cross_compiling=yes
4032 else
4033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4035 as_fn_error $? "cannot run C compiled programs.
4036 If you meant to cross compile, use \`--host'.
4037 See \`config.log' for more details" "$LINENO" 5; }
4038 fi
4039 fi
4040 fi
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4042 $as_echo "$cross_compiling" >&6; }
4043
4044 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4045 ac_clean_files=$ac_clean_files_save
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4047 $as_echo_n "checking for suffix of object files... " >&6; }
4048 if ${ac_cv_objext+:} false; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4053
4054 int
4055 main ()
4056 {
4057
4058 ;
4059 return 0;
4060 }
4061 _ACEOF
4062 rm -f conftest.o conftest.obj
4063 if { { ac_try="$ac_compile"
4064 case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067 esac
4068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4069 $as_echo "$ac_try_echo"; } >&5
4070 (eval "$ac_compile") 2>&5
4071 ac_status=$?
4072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4073 test $ac_status = 0; }; then :
4074 for ac_file in conftest.o conftest.obj conftest.*; do
4075 test -f "$ac_file" || continue;
4076 case $ac_file in
4077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4078 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4079 break;;
4080 esac
4081 done
4082 else
4083 $as_echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4085
4086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4088 as_fn_error $? "cannot compute suffix of object files: cannot compile
4089 See \`config.log' for more details" "$LINENO" 5; }
4090 fi
4091 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4092 fi
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4094 $as_echo "$ac_cv_objext" >&6; }
4095 OBJEXT=$ac_cv_objext
4096 ac_objext=$OBJEXT
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4098 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4099 if ${ac_cv_c_compiler_gnu+:} false; then :
4100 $as_echo_n "(cached) " >&6
4101 else
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104
4105 int
4106 main ()
4107 {
4108 #ifndef __GNUC__
4109 choke me
4110 #endif
4111
4112 ;
4113 return 0;
4114 }
4115 _ACEOF
4116 if ac_fn_c_try_compile "$LINENO"; then :
4117 ac_compiler_gnu=yes
4118 else
4119 ac_compiler_gnu=no
4120 fi
4121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4122 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4123
4124 fi
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4126 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4127 if test $ac_compiler_gnu = yes; then
4128 GCC=yes
4129 else
4130 GCC=
4131 fi
4132 ac_test_CFLAGS=${CFLAGS+set}
4133 ac_save_CFLAGS=$CFLAGS
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4135 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4136 if ${ac_cv_prog_cc_g+:} false; then :
4137 $as_echo_n "(cached) " >&6
4138 else
4139 ac_save_c_werror_flag=$ac_c_werror_flag
4140 ac_c_werror_flag=yes
4141 ac_cv_prog_cc_g=no
4142 CFLAGS="-g"
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4145
4146 int
4147 main ()
4148 {
4149
4150 ;
4151 return 0;
4152 }
4153 _ACEOF
4154 if ac_fn_c_try_compile "$LINENO"; then :
4155 ac_cv_prog_cc_g=yes
4156 else
4157 CFLAGS=""
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4160
4161 int
4162 main ()
4163 {
4164
4165 ;
4166 return 0;
4167 }
4168 _ACEOF
4169 if ac_fn_c_try_compile "$LINENO"; then :
4170
4171 else
4172 ac_c_werror_flag=$ac_save_c_werror_flag
4173 CFLAGS="-g"
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4176
4177 int
4178 main ()
4179 {
4180
4181 ;
4182 return 0;
4183 }
4184 _ACEOF
4185 if ac_fn_c_try_compile "$LINENO"; then :
4186 ac_cv_prog_cc_g=yes
4187 fi
4188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189 fi
4190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191 fi
4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 ac_c_werror_flag=$ac_save_c_werror_flag
4194 fi
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4196 $as_echo "$ac_cv_prog_cc_g" >&6; }
4197 if test "$ac_test_CFLAGS" = set; then
4198 CFLAGS=$ac_save_CFLAGS
4199 elif test $ac_cv_prog_cc_g = yes; then
4200 if test "$GCC" = yes; then
4201 CFLAGS="-g -O2"
4202 else
4203 CFLAGS="-g"
4204 fi
4205 else
4206 if test "$GCC" = yes; then
4207 CFLAGS="-O2"
4208 else
4209 CFLAGS=
4210 fi
4211 fi
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4213 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4214 if ${ac_cv_prog_cc_c89+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 ac_cv_prog_cc_c89=no
4218 ac_save_CC=$CC
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4221 #include <stdarg.h>
4222 #include <stdio.h>
4223 struct stat;
4224 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4225 struct buf { int x; };
4226 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4227 static char *e (p, i)
4228 char **p;
4229 int i;
4230 {
4231 return p[i];
4232 }
4233 static char *f (char * (*g) (char **, int), char **p, ...)
4234 {
4235 char *s;
4236 va_list v;
4237 va_start (v,p);
4238 s = g (p, va_arg (v,int));
4239 va_end (v);
4240 return s;
4241 }
4242
4243 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4244 function prototypes and stuff, but not '\xHH' hex character constants.
4245 These don't provoke an error unfortunately, instead are silently treated
4246 as 'x'. The following induces an error, until -std is added to get
4247 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4248 array size at least. It's necessary to write '\x00'==0 to get something
4249 that's true only with -std. */
4250 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4251
4252 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4253 inside strings and character constants. */
4254 #define FOO(x) 'x'
4255 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4256
4257 int test (int i, double x);
4258 struct s1 {int (*f) (int a);};
4259 struct s2 {int (*f) (double a);};
4260 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4261 int argc;
4262 char **argv;
4263 int
4264 main ()
4265 {
4266 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4267 ;
4268 return 0;
4269 }
4270 _ACEOF
4271 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4272 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4273 do
4274 CC="$ac_save_CC $ac_arg"
4275 if ac_fn_c_try_compile "$LINENO"; then :
4276 ac_cv_prog_cc_c89=$ac_arg
4277 fi
4278 rm -f core conftest.err conftest.$ac_objext
4279 test "x$ac_cv_prog_cc_c89" != "xno" && break
4280 done
4281 rm -f conftest.$ac_ext
4282 CC=$ac_save_CC
4283
4284 fi
4285 # AC_CACHE_VAL
4286 case "x$ac_cv_prog_cc_c89" in
4287 x)
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4289 $as_echo "none needed" >&6; } ;;
4290 xno)
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4292 $as_echo "unsupported" >&6; } ;;
4293 *)
4294 CC="$CC $ac_cv_prog_cc_c89"
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4296 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4297 esac
4298 if test "x$ac_cv_prog_cc_c89" != xno; then :
4299
4300 fi
4301
4302 ac_ext=c
4303 ac_cpp='$CPP $CPPFLAGS'
4304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307
4308 depcc="$CC" am_compiler_list=
4309
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4311 $as_echo_n "checking dependency style of $depcc... " >&6; }
4312 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4316 # We make a subdir and do the tests there. Otherwise we can end up
4317 # making bogus files that we don't know about and never remove. For
4318 # instance it was reported that on HP-UX the gcc test will end up
4319 # making a dummy file named `D' -- because `-MD' means `put the output
4320 # in D'.
4321 rm -rf conftest.dir
4322 mkdir conftest.dir
4323 # Copy depcomp to subdir because otherwise we won't find it if we're
4324 # using a relative directory.
4325 cp "$am_depcomp" conftest.dir
4326 cd conftest.dir
4327 # We will build objects and dependencies in a subdirectory because
4328 # it helps to detect inapplicable dependency modes. For instance
4329 # both Tru64's cc and ICC support -MD to output dependencies as a
4330 # side effect of compilation, but ICC will put the dependencies in
4331 # the current directory while Tru64 will put them in the object
4332 # directory.
4333 mkdir sub
4334
4335 am_cv_CC_dependencies_compiler_type=none
4336 if test "$am_compiler_list" = ""; then
4337 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4338 fi
4339 am__universal=false
4340 case " $depcc " in #(
4341 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4342 esac
4343
4344 for depmode in $am_compiler_list; do
4345 # Setup a source with many dependencies, because some compilers
4346 # like to wrap large dependency lists on column 80 (with \), and
4347 # we should not choose a depcomp mode which is confused by this.
4348 #
4349 # We need to recreate these files for each test, as the compiler may
4350 # overwrite some of them when testing with obscure command lines.
4351 # This happens at least with the AIX C compiler.
4352 : > sub/conftest.c
4353 for i in 1 2 3 4 5 6; do
4354 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4355 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4356 # Solaris 8's {/usr,}/bin/sh.
4357 touch sub/conftst$i.h
4358 done
4359 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4360
4361 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4362 # mode. It turns out that the SunPro C++ compiler does not properly
4363 # handle `-M -o', and we need to detect this. Also, some Intel
4364 # versions had trouble with output in subdirs
4365 am__obj=sub/conftest.${OBJEXT-o}
4366 am__minus_obj="-o $am__obj"
4367 case $depmode in
4368 gcc)
4369 # This depmode causes a compiler race in universal mode.
4370 test "$am__universal" = false || continue
4371 ;;
4372 nosideeffect)
4373 # after this tag, mechanisms are not by side-effect, so they'll
4374 # only be used when explicitly requested
4375 if test "x$enable_dependency_tracking" = xyes; then
4376 continue
4377 else
4378 break
4379 fi
4380 ;;
4381 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4382 # This compiler won't grok `-c -o', but also, the minuso test has
4383 # not run yet. These depmodes are late enough in the game, and
4384 # so weak that their functioning should not be impacted.
4385 am__obj=conftest.${OBJEXT-o}
4386 am__minus_obj=
4387 ;;
4388 none) break ;;
4389 esac
4390 if depmode=$depmode \
4391 source=sub/conftest.c object=$am__obj \
4392 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4393 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4394 >/dev/null 2>conftest.err &&
4395 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4396 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4397 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4398 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4399 # icc doesn't choke on unknown options, it will just issue warnings
4400 # or remarks (even with -Werror). So we grep stderr for any message
4401 # that says an option was ignored or not supported.
4402 # When given -MP, icc 7.0 and 7.1 complain thusly:
4403 # icc: Command line warning: ignoring option '-M'; no argument required
4404 # The diagnosis changed in icc 8.0:
4405 # icc: Command line remark: option '-MP' not supported
4406 if (grep 'ignoring option' conftest.err ||
4407 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4408 am_cv_CC_dependencies_compiler_type=$depmode
4409 break
4410 fi
4411 fi
4412 done
4413
4414 cd ..
4415 rm -rf conftest.dir
4416 else
4417 am_cv_CC_dependencies_compiler_type=none
4418 fi
4419
4420 fi
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4422 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4423 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4424
4425 if
4426 test "x$enable_dependency_tracking" != xno \
4427 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4428 am__fastdepCC_TRUE=
4429 am__fastdepCC_FALSE='#'
4430 else
4431 am__fastdepCC_TRUE='#'
4432 am__fastdepCC_FALSE=
4433 fi
4434
4435
4436
4437 if test -n "$ac_tool_prefix"; then
4438 for ac_prog in ar lib "link -lib"
4439 do
4440 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4441 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443 $as_echo_n "checking for $ac_word... " >&6; }
4444 if ${ac_cv_prog_AR+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 if test -n "$AR"; then
4448 ac_cv_prog_AR="$AR" # Let the user override the test.
4449 else
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4452 do
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4457 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 break 2
4460 fi
4461 done
4462 done
4463 IFS=$as_save_IFS
4464
4465 fi
4466 fi
4467 AR=$ac_cv_prog_AR
4468 if test -n "$AR"; then
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4470 $as_echo "$AR" >&6; }
4471 else
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473 $as_echo "no" >&6; }
4474 fi
4475
4476
4477 test -n "$AR" && break
4478 done
4479 fi
4480 if test -z "$AR"; then
4481 ac_ct_AR=$AR
4482 for ac_prog in ar lib "link -lib"
4483 do
4484 # Extract the first word of "$ac_prog", so it can be a program name with args.
4485 set dummy $ac_prog; ac_word=$2
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487 $as_echo_n "checking for $ac_word... " >&6; }
4488 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4489 $as_echo_n "(cached) " >&6
4490 else
4491 if test -n "$ac_ct_AR"; then
4492 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4493 else
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH
4496 do
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4501 ac_cv_prog_ac_ct_AR="$ac_prog"
4502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4504 fi
4505 done
4506 done
4507 IFS=$as_save_IFS
4508
4509 fi
4510 fi
4511 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4512 if test -n "$ac_ct_AR"; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4514 $as_echo "$ac_ct_AR" >&6; }
4515 else
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517 $as_echo "no" >&6; }
4518 fi
4519
4520
4521 test -n "$ac_ct_AR" && break
4522 done
4523
4524 if test "x$ac_ct_AR" = x; then
4525 AR="false"
4526 else
4527 case $cross_compiling:$ac_tool_warned in
4528 yes:)
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4531 ac_tool_warned=yes ;;
4532 esac
4533 AR=$ac_ct_AR
4534 fi
4535 fi
4536
4537 : ${AR=ar}
4538
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4540 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4541 if ${am_cv_ar_interface+:} false; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544 am_cv_ar_interface=ar
4545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4546 /* end confdefs.h. */
4547 int some_variable = 0;
4548 _ACEOF
4549 if ac_fn_c_try_compile "$LINENO"; then :
4550 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4552 (eval $am_ar_try) 2>&5
4553 ac_status=$?
4554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4555 test $ac_status = 0; }
4556 if test "$ac_status" -eq 0; then
4557 am_cv_ar_interface=ar
4558 else
4559 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4561 (eval $am_ar_try) 2>&5
4562 ac_status=$?
4563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4564 test $ac_status = 0; }
4565 if test "$ac_status" -eq 0; then
4566 am_cv_ar_interface=lib
4567 else
4568 am_cv_ar_interface=unknown
4569 fi
4570 fi
4571 rm -f conftest.lib libconftest.a
4572
4573 fi
4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575
4576 fi
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4578 $as_echo "$am_cv_ar_interface" >&6; }
4579
4580 case $am_cv_ar_interface in
4581 ar)
4582 ;;
4583 lib)
4584 # Microsoft lib, so override with the ar-lib wrapper script.
4585 # FIXME: It is wrong to rewrite AR.
4586 # But if we don't then we get into trouble of one sort or another.
4587 # A longer-term fix would be to have automake use am__AR in this case,
4588 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4589 # similar.
4590 AR="$am_aux_dir/ar-lib $AR"
4591 ;;
4592 unknown)
4593 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4594 ;;
4595 esac
4596
4597 ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602 if test -n "$ac_tool_prefix"; then
4603 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4604 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if ${ac_cv_prog_CC+:} false; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 if test -n "$CC"; then
4611 ac_cv_prog_CC="$CC" # Let the user override the test.
4612 else
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4615 do
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4620 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 break 2
4623 fi
4624 done
4625 done
4626 IFS=$as_save_IFS
4627
4628 fi
4629 fi
4630 CC=$ac_cv_prog_CC
4631 if test -n "$CC"; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4633 $as_echo "$CC" >&6; }
4634 else
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 $as_echo "no" >&6; }
4637 fi
4638
4639
4640 fi
4641 if test -z "$ac_cv_prog_CC"; then
4642 ac_ct_CC=$CC
4643 # Extract the first word of "gcc", so it can be a program name with args.
4644 set dummy gcc; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 if test -n "$ac_ct_CC"; then
4651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660 ac_cv_prog_ac_ct_CC="gcc"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4663 fi
4664 done
4665 done
4666 IFS=$as_save_IFS
4667
4668 fi
4669 fi
4670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4671 if test -n "$ac_ct_CC"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4673 $as_echo "$ac_ct_CC" >&6; }
4674 else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678
4679 if test "x$ac_ct_CC" = x; then
4680 CC=""
4681 else
4682 case $cross_compiling:$ac_tool_warned in
4683 yes:)
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686 ac_tool_warned=yes ;;
4687 esac
4688 CC=$ac_ct_CC
4689 fi
4690 else
4691 CC="$ac_cv_prog_CC"
4692 fi
4693
4694 if test -z "$CC"; then
4695 if test -n "$ac_tool_prefix"; then
4696 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4697 set dummy ${ac_tool_prefix}cc; ac_word=$2
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if ${ac_cv_prog_CC+:} false; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 if test -n "$CC"; then
4704 ac_cv_prog_CC="$CC" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713 ac_cv_prog_CC="${ac_tool_prefix}cc"
4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4716 fi
4717 done
4718 done
4719 IFS=$as_save_IFS
4720
4721 fi
4722 fi
4723 CC=$ac_cv_prog_CC
4724 if test -n "$CC"; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4726 $as_echo "$CC" >&6; }
4727 else
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4730 fi
4731
4732
4733 fi
4734 fi
4735 if test -z "$CC"; then
4736 # Extract the first word of "cc", so it can be a program name with args.
4737 set dummy cc; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if ${ac_cv_prog_CC+:} false; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 if test -n "$CC"; then
4744 ac_cv_prog_CC="$CC" # Let the user override the test.
4745 else
4746 ac_prog_rejected=no
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH
4749 do
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4754 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4755 ac_prog_rejected=yes
4756 continue
4757 fi
4758 ac_cv_prog_CC="cc"
4759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 break 2
4761 fi
4762 done
4763 done
4764 IFS=$as_save_IFS
4765
4766 if test $ac_prog_rejected = yes; then
4767 # We found a bogon in the path, so make sure we never use it.
4768 set dummy $ac_cv_prog_CC
4769 shift
4770 if test $# != 0; then
4771 # We chose a different compiler from the bogus one.
4772 # However, it has the same basename, so the bogon will be chosen
4773 # first if we set CC to just the basename; use the full file name.
4774 shift
4775 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4776 fi
4777 fi
4778 fi
4779 fi
4780 CC=$ac_cv_prog_CC
4781 if test -n "$CC"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4783 $as_echo "$CC" >&6; }
4784 else
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4787 fi
4788
4789
4790 fi
4791 if test -z "$CC"; then
4792 if test -n "$ac_tool_prefix"; then
4793 for ac_prog in cl.exe
4794 do
4795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798 $as_echo_n "checking for $ac_word... " >&6; }
4799 if ${ac_cv_prog_CC+:} false; then :
4800 $as_echo_n "(cached) " >&6
4801 else
4802 if test -n "$CC"; then
4803 ac_cv_prog_CC="$CC" # Let the user override the test.
4804 else
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4807 do
4808 IFS=$as_save_IFS
4809 test -z "$as_dir" && as_dir=.
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4812 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 break 2
4815 fi
4816 done
4817 done
4818 IFS=$as_save_IFS
4819
4820 fi
4821 fi
4822 CC=$ac_cv_prog_CC
4823 if test -n "$CC"; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4825 $as_echo "$CC" >&6; }
4826 else
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 $as_echo "no" >&6; }
4829 fi
4830
4831
4832 test -n "$CC" && break
4833 done
4834 fi
4835 if test -z "$CC"; then
4836 ac_ct_CC=$CC
4837 for ac_prog in cl.exe
4838 do
4839 # Extract the first word of "$ac_prog", so it can be a program name with args.
4840 set dummy $ac_prog; ac_word=$2
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4842 $as_echo_n "checking for $ac_word... " >&6; }
4843 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4844 $as_echo_n "(cached) " >&6
4845 else
4846 if test -n "$ac_ct_CC"; then
4847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4848 else
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH
4851 do
4852 IFS=$as_save_IFS
4853 test -z "$as_dir" && as_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4856 ac_cv_prog_ac_ct_CC="$ac_prog"
4857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4858 break 2
4859 fi
4860 done
4861 done
4862 IFS=$as_save_IFS
4863
4864 fi
4865 fi
4866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4867 if test -n "$ac_ct_CC"; then
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4869 $as_echo "$ac_ct_CC" >&6; }
4870 else
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4873 fi
4874
4875
4876 test -n "$ac_ct_CC" && break
4877 done
4878
4879 if test "x$ac_ct_CC" = x; then
4880 CC=""
4881 else
4882 case $cross_compiling:$ac_tool_warned in
4883 yes:)
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4886 ac_tool_warned=yes ;;
4887 esac
4888 CC=$ac_ct_CC
4889 fi
4890 fi
4891
4892 fi
4893
4894
4895 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4897 as_fn_error $? "no acceptable C compiler found in \$PATH
4898 See \`config.log' for more details" "$LINENO" 5; }
4899
4900 # Provide some information about the compiler.
4901 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4902 set X $ac_compile
4903 ac_compiler=$2
4904 for ac_option in --version -v -V -qversion; do
4905 { { ac_try="$ac_compiler $ac_option >&5"
4906 case "(($ac_try" in
4907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908 *) ac_try_echo=$ac_try;;
4909 esac
4910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4911 $as_echo "$ac_try_echo"; } >&5
4912 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4913 ac_status=$?
4914 if test -s conftest.err; then
4915 sed '10a\
4916 ... rest of stderr output deleted ...
4917 10q' conftest.err >conftest.er1
4918 cat conftest.er1 >&5
4919 fi
4920 rm -f conftest.er1 conftest.err
4921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4922 test $ac_status = 0; }
4923 done
4924
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4926 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4927 if ${ac_cv_c_compiler_gnu+:} false; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4932
4933 int
4934 main ()
4935 {
4936 #ifndef __GNUC__
4937 choke me
4938 #endif
4939
4940 ;
4941 return 0;
4942 }
4943 _ACEOF
4944 if ac_fn_c_try_compile "$LINENO"; then :
4945 ac_compiler_gnu=yes
4946 else
4947 ac_compiler_gnu=no
4948 fi
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4951
4952 fi
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4954 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4955 if test $ac_compiler_gnu = yes; then
4956 GCC=yes
4957 else
4958 GCC=
4959 fi
4960 ac_test_CFLAGS=${CFLAGS+set}
4961 ac_save_CFLAGS=$CFLAGS
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4963 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4964 if ${ac_cv_prog_cc_g+:} false; then :
4965 $as_echo_n "(cached) " >&6
4966 else
4967 ac_save_c_werror_flag=$ac_c_werror_flag
4968 ac_c_werror_flag=yes
4969 ac_cv_prog_cc_g=no
4970 CFLAGS="-g"
4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4973
4974 int
4975 main ()
4976 {
4977
4978 ;
4979 return 0;
4980 }
4981 _ACEOF
4982 if ac_fn_c_try_compile "$LINENO"; then :
4983 ac_cv_prog_cc_g=yes
4984 else
4985 CFLAGS=""
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988
4989 int
4990 main ()
4991 {
4992
4993 ;
4994 return 0;
4995 }
4996 _ACEOF
4997 if ac_fn_c_try_compile "$LINENO"; then :
4998
4999 else
5000 ac_c_werror_flag=$ac_save_c_werror_flag
5001 CFLAGS="-g"
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5004
5005 int
5006 main ()
5007 {
5008
5009 ;
5010 return 0;
5011 }
5012 _ACEOF
5013 if ac_fn_c_try_compile "$LINENO"; then :
5014 ac_cv_prog_cc_g=yes
5015 fi
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 fi
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 fi
5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021 ac_c_werror_flag=$ac_save_c_werror_flag
5022 fi
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5024 $as_echo "$ac_cv_prog_cc_g" >&6; }
5025 if test "$ac_test_CFLAGS" = set; then
5026 CFLAGS=$ac_save_CFLAGS
5027 elif test $ac_cv_prog_cc_g = yes; then
5028 if test "$GCC" = yes; then
5029 CFLAGS="-g -O2"
5030 else
5031 CFLAGS="-g"
5032 fi
5033 else
5034 if test "$GCC" = yes; then
5035 CFLAGS="-O2"
5036 else
5037 CFLAGS=
5038 fi
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5041 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5042 if ${ac_cv_prog_cc_c89+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 ac_cv_prog_cc_c89=no
5046 ac_save_CC=$CC
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5049 #include <stdarg.h>
5050 #include <stdio.h>
5051 struct stat;
5052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5053 struct buf { int x; };
5054 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5055 static char *e (p, i)
5056 char **p;
5057 int i;
5058 {
5059 return p[i];
5060 }
5061 static char *f (char * (*g) (char **, int), char **p, ...)
5062 {
5063 char *s;
5064 va_list v;
5065 va_start (v,p);
5066 s = g (p, va_arg (v,int));
5067 va_end (v);
5068 return s;
5069 }
5070
5071 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5072 function prototypes and stuff, but not '\xHH' hex character constants.
5073 These don't provoke an error unfortunately, instead are silently treated
5074 as 'x'. The following induces an error, until -std is added to get
5075 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5076 array size at least. It's necessary to write '\x00'==0 to get something
5077 that's true only with -std. */
5078 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5079
5080 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5081 inside strings and character constants. */
5082 #define FOO(x) 'x'
5083 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5084
5085 int test (int i, double x);
5086 struct s1 {int (*f) (int a);};
5087 struct s2 {int (*f) (double a);};
5088 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5089 int argc;
5090 char **argv;
5091 int
5092 main ()
5093 {
5094 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5095 ;
5096 return 0;
5097 }
5098 _ACEOF
5099 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5100 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5101 do
5102 CC="$ac_save_CC $ac_arg"
5103 if ac_fn_c_try_compile "$LINENO"; then :
5104 ac_cv_prog_cc_c89=$ac_arg
5105 fi
5106 rm -f core conftest.err conftest.$ac_objext
5107 test "x$ac_cv_prog_cc_c89" != "xno" && break
5108 done
5109 rm -f conftest.$ac_ext
5110 CC=$ac_save_CC
5111
5112 fi
5113 # AC_CACHE_VAL
5114 case "x$ac_cv_prog_cc_c89" in
5115 x)
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5117 $as_echo "none needed" >&6; } ;;
5118 xno)
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5120 $as_echo "unsupported" >&6; } ;;
5121 *)
5122 CC="$CC $ac_cv_prog_cc_c89"
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5124 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5125 esac
5126 if test "x$ac_cv_prog_cc_c89" != xno; then :
5127
5128 fi
5129
5130 ac_ext=c
5131 ac_cpp='$CPP $CPPFLAGS'
5132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5135
5136 depcc="$CC" am_compiler_list=
5137
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5139 $as_echo_n "checking dependency style of $depcc... " >&6; }
5140 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5144 # We make a subdir and do the tests there. Otherwise we can end up
5145 # making bogus files that we don't know about and never remove. For
5146 # instance it was reported that on HP-UX the gcc test will end up
5147 # making a dummy file named `D' -- because `-MD' means `put the output
5148 # in D'.
5149 rm -rf conftest.dir
5150 mkdir conftest.dir
5151 # Copy depcomp to subdir because otherwise we won't find it if we're
5152 # using a relative directory.
5153 cp "$am_depcomp" conftest.dir
5154 cd conftest.dir
5155 # We will build objects and dependencies in a subdirectory because
5156 # it helps to detect inapplicable dependency modes. For instance
5157 # both Tru64's cc and ICC support -MD to output dependencies as a
5158 # side effect of compilation, but ICC will put the dependencies in
5159 # the current directory while Tru64 will put them in the object
5160 # directory.
5161 mkdir sub
5162
5163 am_cv_CC_dependencies_compiler_type=none
5164 if test "$am_compiler_list" = ""; then
5165 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5166 fi
5167 am__universal=false
5168 case " $depcc " in #(
5169 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5170 esac
5171
5172 for depmode in $am_compiler_list; do
5173 # Setup a source with many dependencies, because some compilers
5174 # like to wrap large dependency lists on column 80 (with \), and
5175 # we should not choose a depcomp mode which is confused by this.
5176 #
5177 # We need to recreate these files for each test, as the compiler may
5178 # overwrite some of them when testing with obscure command lines.
5179 # This happens at least with the AIX C compiler.
5180 : > sub/conftest.c
5181 for i in 1 2 3 4 5 6; do
5182 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5183 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5184 # Solaris 8's {/usr,}/bin/sh.
5185 touch sub/conftst$i.h
5186 done
5187 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5188
5189 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5190 # mode. It turns out that the SunPro C++ compiler does not properly
5191 # handle `-M -o', and we need to detect this. Also, some Intel
5192 # versions had trouble with output in subdirs
5193 am__obj=sub/conftest.${OBJEXT-o}
5194 am__minus_obj="-o $am__obj"
5195 case $depmode in
5196 gcc)
5197 # This depmode causes a compiler race in universal mode.
5198 test "$am__universal" = false || continue
5199 ;;
5200 nosideeffect)
5201 # after this tag, mechanisms are not by side-effect, so they'll
5202 # only be used when explicitly requested
5203 if test "x$enable_dependency_tracking" = xyes; then
5204 continue
5205 else
5206 break
5207 fi
5208 ;;
5209 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5210 # This compiler won't grok `-c -o', but also, the minuso test has
5211 # not run yet. These depmodes are late enough in the game, and
5212 # so weak that their functioning should not be impacted.
5213 am__obj=conftest.${OBJEXT-o}
5214 am__minus_obj=
5215 ;;
5216 none) break ;;
5217 esac
5218 if depmode=$depmode \
5219 source=sub/conftest.c object=$am__obj \
5220 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5221 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5222 >/dev/null 2>conftest.err &&
5223 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5224 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5225 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5226 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5227 # icc doesn't choke on unknown options, it will just issue warnings
5228 # or remarks (even with -Werror). So we grep stderr for any message
5229 # that says an option was ignored or not supported.
5230 # When given -MP, icc 7.0 and 7.1 complain thusly:
5231 # icc: Command line warning: ignoring option '-M'; no argument required
5232 # The diagnosis changed in icc 8.0:
5233 # icc: Command line remark: option '-MP' not supported
5234 if (grep 'ignoring option' conftest.err ||
5235 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5236 am_cv_CC_dependencies_compiler_type=$depmode
5237 break
5238 fi
5239 fi
5240 done
5241
5242 cd ..
5243 rm -rf conftest.dir
5244 else
5245 am_cv_CC_dependencies_compiler_type=none
5246 fi
5247
5248 fi
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5250 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5251 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5252
5253 if
5254 test "x$enable_dependency_tracking" != xno \
5255 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5256 am__fastdepCC_TRUE=
5257 am__fastdepCC_FALSE='#'
5258 else
5259 am__fastdepCC_TRUE='#'
5260 am__fastdepCC_FALSE=
5261 fi
5262
5263
5264 if test "x$CC" != xcc; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5266 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5267 else
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5269 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5270 fi
5271 set dummy $CC; ac_cc=`$as_echo "$2" |
5272 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5273 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5274 $as_echo_n "(cached) " >&6
5275 else
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278
5279 int
5280 main ()
5281 {
5282
5283 ;
5284 return 0;
5285 }
5286 _ACEOF
5287 # Make sure it works both with $CC and with simple cc.
5288 # We do the test twice because some compilers refuse to overwrite an
5289 # existing .o file with -o, though they will create one.
5290 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5291 rm -f conftest2.*
5292 if { { case "(($ac_try" in
5293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294 *) ac_try_echo=$ac_try;;
5295 esac
5296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5297 $as_echo "$ac_try_echo"; } >&5
5298 (eval "$ac_try") 2>&5
5299 ac_status=$?
5300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5301 test $ac_status = 0; } &&
5302 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304 *) ac_try_echo=$ac_try;;
5305 esac
5306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5307 $as_echo "$ac_try_echo"; } >&5
5308 (eval "$ac_try") 2>&5
5309 ac_status=$?
5310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5311 test $ac_status = 0; };
5312 then
5313 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5314 if test "x$CC" != xcc; then
5315 # Test first that cc exists at all.
5316 if { ac_try='cc -c conftest.$ac_ext >&5'
5317 { { case "(($ac_try" in
5318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319 *) ac_try_echo=$ac_try;;
5320 esac
5321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5322 $as_echo "$ac_try_echo"; } >&5
5323 (eval "$ac_try") 2>&5
5324 ac_status=$?
5325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5326 test $ac_status = 0; }; }; then
5327 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5328 rm -f conftest2.*
5329 if { { case "(($ac_try" in
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5332 esac
5333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5334 $as_echo "$ac_try_echo"; } >&5
5335 (eval "$ac_try") 2>&5
5336 ac_status=$?
5337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5338 test $ac_status = 0; } &&
5339 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5342 esac
5343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5344 $as_echo "$ac_try_echo"; } >&5
5345 (eval "$ac_try") 2>&5
5346 ac_status=$?
5347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5348 test $ac_status = 0; };
5349 then
5350 # cc works too.
5351 :
5352 else
5353 # cc exists but doesn't like -o.
5354 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5355 fi
5356 fi
5357 fi
5358 else
5359 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5360 fi
5361 rm -f core conftest*
5362
5363 fi
5364 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5366 $as_echo "yes" >&6; }
5367 else
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5370
5371 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5372
5373 fi
5374
5375 # FIXME: we rely on the cache variable name because
5376 # there is no other way.
5377 set dummy $CC
5378 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5379 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5380 if test "$am_t" != yes; then
5381 # Losing compiler, so override with the script.
5382 # FIXME: It is wrong to rewrite CC.
5383 # But if we don't then we get into trouble of one sort or another.
5384 # A longer-term fix would be to have automake use am__CC in this case,
5385 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5386 CC="$am_aux_dir/compile $CC"
5387 fi
5388
5389
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is clang" >&5
5391 $as_echo_n "checking whether $CC is clang... " >&6; }
5392 CC_IS_CLANG=no
5393 if $CC 2>&1 | grep clang >/dev/null 2>&1; then
5394 CC_IS_CLANG=yes
5395 else
5396 :
5397 fi
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_IS_CLANG" >&5
5399 $as_echo "$CC_IS_CLANG" >&6; }
5400
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5402 $as_echo_n "checking whether ln -s works... " >&6; }
5403 LN_S=$as_ln_s
5404 if test "$LN_S" = "ln -s"; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5406 $as_echo "yes" >&6; }
5407 else
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5409 $as_echo "no, using $LN_S" >&6; }
5410 fi
5411
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5413 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5414 set x ${MAKE-make}
5415 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5416 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 cat >conftest.make <<\_ACEOF
5420 SHELL = /bin/sh
5421 all:
5422 @echo '@@@%%%=$(MAKE)=@@@%%%'
5423 _ACEOF
5424 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5425 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5426 *@@@%%%=?*=@@@%%%*)
5427 eval ac_cv_prog_make_${ac_make}_set=yes;;
5428 *)
5429 eval ac_cv_prog_make_${ac_make}_set=no;;
5430 esac
5431 rm -f conftest.make
5432 fi
5433 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5435 $as_echo "yes" >&6; }
5436 SET_MAKE=
5437 else
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5440 SET_MAKE="MAKE=${MAKE-make}"
5441 fi
5442
5443
5444
5445
5446
5447
5448
5449 # Libtool and LTDL initialising
5450
5451
5452
5453
5454
5455
5456
5457 case `pwd` in
5458 *\ * | *\ *)
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5460 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5461 esac
5462
5463
5464
5465 macro_version='2.4.2'
5466 macro_revision='1.3337'
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480 ltmain="$ac_aux_dir/ltmain.sh"
5481
5482 # Backslashify metacharacters that are still active within
5483 # double-quoted strings.
5484 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5485
5486 # Same as above, but do not quote variable references.
5487 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5488
5489 # Sed substitution to delay expansion of an escaped shell variable in a
5490 # double_quote_subst'ed string.
5491 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5492
5493 # Sed substitution to delay expansion of an escaped single quote.
5494 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5495
5496 # Sed substitution to avoid accidental globbing in evaled expressions
5497 no_glob_subst='s/\*/\\\*/g'
5498
5499 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5500 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5501 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5502
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5504 $as_echo_n "checking how to print strings... " >&6; }
5505 # Test print first, because it will be a builtin if present.
5506 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5507 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5508 ECHO='print -r --'
5509 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5510 ECHO='printf %s\n'
5511 else
5512 # Use this function as a fallback that always works.
5513 func_fallback_echo ()
5514 {
5515 eval 'cat <<_LTECHO_EOF
5516 $1
5517 _LTECHO_EOF'
5518 }
5519 ECHO='func_fallback_echo'
5520 fi
5521
5522 # func_echo_all arg...
5523 # Invoke $ECHO with all args, space-separated.
5524 func_echo_all ()
5525 {
5526 $ECHO ""
5527 }
5528
5529 case "$ECHO" in
5530 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5531 $as_echo "printf" >&6; } ;;
5532 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5533 $as_echo "print -r" >&6; } ;;
5534 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5535 $as_echo "cat" >&6; } ;;
5536 esac
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5552 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5553 if ${ac_cv_path_SED+:} false; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5557 for ac_i in 1 2 3 4 5 6 7; do
5558 ac_script="$ac_script$as_nl$ac_script"
5559 done
5560 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5561 { ac_script=; unset ac_script;}
5562 if test -z "$SED"; then
5563 ac_path_SED_found=false
5564 # Loop through the user's path and test for each of PROGNAME-LIST
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5567 do
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
5570 for ac_prog in sed gsed; do
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5573 as_fn_executable_p "$ac_path_SED" || continue
5574 # Check for GNU ac_path_SED and select it if it is found.
5575 # Check for GNU $ac_path_SED
5576 case `"$ac_path_SED" --version 2>&1` in
5577 *GNU*)
5578 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5579 *)
5580 ac_count=0
5581 $as_echo_n 0123456789 >"conftest.in"
5582 while :
5583 do
5584 cat "conftest.in" "conftest.in" >"conftest.tmp"
5585 mv "conftest.tmp" "conftest.in"
5586 cp "conftest.in" "conftest.nl"
5587 $as_echo '' >> "conftest.nl"
5588 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5589 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5590 as_fn_arith $ac_count + 1 && ac_count=$as_val
5591 if test $ac_count -gt ${ac_path_SED_max-0}; then
5592 # Best one so far, save it but keep looking for a better one
5593 ac_cv_path_SED="$ac_path_SED"
5594 ac_path_SED_max=$ac_count
5595 fi
5596 # 10*(2^10) chars as input seems more than enough
5597 test $ac_count -gt 10 && break
5598 done
5599 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5600 esac
5601
5602 $ac_path_SED_found && break 3
5603 done
5604 done
5605 done
5606 IFS=$as_save_IFS
5607 if test -z "$ac_cv_path_SED"; then
5608 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5609 fi
5610 else
5611 ac_cv_path_SED=$SED
5612 fi
5613
5614 fi
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5616 $as_echo "$ac_cv_path_SED" >&6; }
5617 SED="$ac_cv_path_SED"
5618 rm -f conftest.sed
5619
5620 test -z "$SED" && SED=sed
5621 Xsed="$SED -e 1s/^X//"
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5634 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5635 if ${ac_cv_path_GREP+:} false; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 if test -z "$GREP"; then
5639 ac_path_GREP_found=false
5640 # Loop through the user's path and test for each of PROGNAME-LIST
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5643 do
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_prog in grep ggrep; do
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5649 as_fn_executable_p "$ac_path_GREP" || continue
5650 # Check for GNU ac_path_GREP and select it if it is found.
5651 # Check for GNU $ac_path_GREP
5652 case `"$ac_path_GREP" --version 2>&1` in
5653 *GNU*)
5654 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5655 *)
5656 ac_count=0
5657 $as_echo_n 0123456789 >"conftest.in"
5658 while :
5659 do
5660 cat "conftest.in" "conftest.in" >"conftest.tmp"
5661 mv "conftest.tmp" "conftest.in"
5662 cp "conftest.in" "conftest.nl"
5663 $as_echo 'GREP' >> "conftest.nl"
5664 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5666 as_fn_arith $ac_count + 1 && ac_count=$as_val
5667 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5668 # Best one so far, save it but keep looking for a better one
5669 ac_cv_path_GREP="$ac_path_GREP"
5670 ac_path_GREP_max=$ac_count
5671 fi
5672 # 10*(2^10) chars as input seems more than enough
5673 test $ac_count -gt 10 && break
5674 done
5675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5676 esac
5677
5678 $ac_path_GREP_found && break 3
5679 done
5680 done
5681 done
5682 IFS=$as_save_IFS
5683 if test -z "$ac_cv_path_GREP"; then
5684 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5685 fi
5686 else
5687 ac_cv_path_GREP=$GREP
5688 fi
5689
5690 fi
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5692 $as_echo "$ac_cv_path_GREP" >&6; }
5693 GREP="$ac_cv_path_GREP"
5694
5695
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5697 $as_echo_n "checking for egrep... " >&6; }
5698 if ${ac_cv_path_EGREP+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5702 then ac_cv_path_EGREP="$GREP -E"
5703 else
5704 if test -z "$EGREP"; then
5705 ac_path_EGREP_found=false
5706 # Loop through the user's path and test for each of PROGNAME-LIST
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5709 do
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
5712 for ac_prog in egrep; do
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5715 as_fn_executable_p "$ac_path_EGREP" || continue
5716 # Check for GNU ac_path_EGREP and select it if it is found.
5717 # Check for GNU $ac_path_EGREP
5718 case `"$ac_path_EGREP" --version 2>&1` in
5719 *GNU*)
5720 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5721 *)
5722 ac_count=0
5723 $as_echo_n 0123456789 >"conftest.in"
5724 while :
5725 do
5726 cat "conftest.in" "conftest.in" >"conftest.tmp"
5727 mv "conftest.tmp" "conftest.in"
5728 cp "conftest.in" "conftest.nl"
5729 $as_echo 'EGREP' >> "conftest.nl"
5730 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5732 as_fn_arith $ac_count + 1 && ac_count=$as_val
5733 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5734 # Best one so far, save it but keep looking for a better one
5735 ac_cv_path_EGREP="$ac_path_EGREP"
5736 ac_path_EGREP_max=$ac_count
5737 fi
5738 # 10*(2^10) chars as input seems more than enough
5739 test $ac_count -gt 10 && break
5740 done
5741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5742 esac
5743
5744 $ac_path_EGREP_found && break 3
5745 done
5746 done
5747 done
5748 IFS=$as_save_IFS
5749 if test -z "$ac_cv_path_EGREP"; then
5750 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5751 fi
5752 else
5753 ac_cv_path_EGREP=$EGREP
5754 fi
5755
5756 fi
5757 fi
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5759 $as_echo "$ac_cv_path_EGREP" >&6; }
5760 EGREP="$ac_cv_path_EGREP"
5761
5762
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5764 $as_echo_n "checking for fgrep... " >&6; }
5765 if ${ac_cv_path_FGREP+:} false; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5769 then ac_cv_path_FGREP="$GREP -F"
5770 else
5771 if test -z "$FGREP"; then
5772 ac_path_FGREP_found=false
5773 # Loop through the user's path and test for each of PROGNAME-LIST
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5776 do
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_prog in fgrep; do
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5782 as_fn_executable_p "$ac_path_FGREP" || continue
5783 # Check for GNU ac_path_FGREP and select it if it is found.
5784 # Check for GNU $ac_path_FGREP
5785 case `"$ac_path_FGREP" --version 2>&1` in
5786 *GNU*)
5787 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5788 *)
5789 ac_count=0
5790 $as_echo_n 0123456789 >"conftest.in"
5791 while :
5792 do
5793 cat "conftest.in" "conftest.in" >"conftest.tmp"
5794 mv "conftest.tmp" "conftest.in"
5795 cp "conftest.in" "conftest.nl"
5796 $as_echo 'FGREP' >> "conftest.nl"
5797 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5798 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5799 as_fn_arith $ac_count + 1 && ac_count=$as_val
5800 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5801 # Best one so far, save it but keep looking for a better one
5802 ac_cv_path_FGREP="$ac_path_FGREP"
5803 ac_path_FGREP_max=$ac_count
5804 fi
5805 # 10*(2^10) chars as input seems more than enough
5806 test $ac_count -gt 10 && break
5807 done
5808 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5809 esac
5810
5811 $ac_path_FGREP_found && break 3
5812 done
5813 done
5814 done
5815 IFS=$as_save_IFS
5816 if test -z "$ac_cv_path_FGREP"; then
5817 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5818 fi
5819 else
5820 ac_cv_path_FGREP=$FGREP
5821 fi
5822
5823 fi
5824 fi
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5826 $as_echo "$ac_cv_path_FGREP" >&6; }
5827 FGREP="$ac_cv_path_FGREP"
5828
5829
5830 test -z "$GREP" && GREP=grep
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850 # Check whether --with-gnu-ld was given.
5851 if test "${with_gnu_ld+set}" = set; then :
5852 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5853 else
5854 with_gnu_ld=no
5855 fi
5856
5857 ac_prog=ld
5858 if test "$GCC" = yes; then
5859 # Check if gcc -print-prog-name=ld gives a path.
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5861 $as_echo_n "checking for ld used by $CC... " >&6; }
5862 case $host in
5863 *-*-mingw*)
5864 # gcc leaves a trailing carriage return which upsets mingw
5865 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5866 *)
5867 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5868 esac
5869 case $ac_prog in
5870 # Accept absolute paths.
5871 [\\/]* | ?:[\\/]*)
5872 re_direlt='/[^/][^/]*/\.\./'
5873 # Canonicalize the pathname of ld
5874 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5875 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5876 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5877 done
5878 test -z "$LD" && LD="$ac_prog"
5879 ;;
5880 "")
5881 # If it fails, then pretend we aren't using GCC.
5882 ac_prog=ld
5883 ;;
5884 *)
5885 # If it is relative, then search for the first ld in PATH.
5886 with_gnu_ld=unknown
5887 ;;
5888 esac
5889 elif test "$with_gnu_ld" = yes; then
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5891 $as_echo_n "checking for GNU ld... " >&6; }
5892 else
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5894 $as_echo_n "checking for non-GNU ld... " >&6; }
5895 fi
5896 if ${lt_cv_path_LD+:} false; then :
5897 $as_echo_n "(cached) " >&6
5898 else
5899 if test -z "$LD"; then
5900 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5901 for ac_dir in $PATH; do
5902 IFS="$lt_save_ifs"
5903 test -z "$ac_dir" && ac_dir=.
5904 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5905 lt_cv_path_LD="$ac_dir/$ac_prog"
5906 # Check to see if the program is GNU ld. I'd rather use --version,
5907 # but apparently some variants of GNU ld only accept -v.
5908 # Break only if it was the GNU/non-GNU ld that we prefer.
5909 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5910 *GNU* | *'with BFD'*)
5911 test "$with_gnu_ld" != no && break
5912 ;;
5913 *)
5914 test "$with_gnu_ld" != yes && break
5915 ;;
5916 esac
5917 fi
5918 done
5919 IFS="$lt_save_ifs"
5920 else
5921 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5922 fi
5923 fi
5924
5925 LD="$lt_cv_path_LD"
5926 if test -n "$LD"; then
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5928 $as_echo "$LD" >&6; }
5929 else
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931 $as_echo "no" >&6; }
5932 fi
5933 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5935 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5936 if ${lt_cv_prog_gnu_ld+:} false; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5940 case `$LD -v 2>&1 </dev/null` in
5941 *GNU* | *'with BFD'*)
5942 lt_cv_prog_gnu_ld=yes
5943 ;;
5944 *)
5945 lt_cv_prog_gnu_ld=no
5946 ;;
5947 esac
5948 fi
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5950 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5951 with_gnu_ld=$lt_cv_prog_gnu_ld
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5962 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5963 if ${lt_cv_path_NM+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 if test -n "$NM"; then
5967 # Let the user override the test.
5968 lt_cv_path_NM="$NM"
5969 else
5970 lt_nm_to_check="${ac_tool_prefix}nm"
5971 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5972 lt_nm_to_check="$lt_nm_to_check nm"
5973 fi
5974 for lt_tmp_nm in $lt_nm_to_check; do
5975 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5976 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5977 IFS="$lt_save_ifs"
5978 test -z "$ac_dir" && ac_dir=.
5979 tmp_nm="$ac_dir/$lt_tmp_nm"
5980 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5981 # Check to see if the nm accepts a BSD-compat flag.
5982 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5983 # nm: unknown option "B" ignored
5984 # Tru64's nm complains that /dev/null is an invalid object file
5985 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5986 */dev/null* | *'Invalid file or object type'*)
5987 lt_cv_path_NM="$tmp_nm -B"
5988 break
5989 ;;
5990 *)
5991 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5992 */dev/null*)
5993 lt_cv_path_NM="$tmp_nm -p"
5994 break
5995 ;;
5996 *)
5997 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5998 continue # so that we can try to find one that supports BSD flags
5999 ;;
6000 esac
6001 ;;
6002 esac
6003 fi
6004 done
6005 IFS="$lt_save_ifs"
6006 done
6007 : ${lt_cv_path_NM=no}
6008 fi
6009 fi
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6011 $as_echo "$lt_cv_path_NM" >&6; }
6012 if test "$lt_cv_path_NM" != "no"; then
6013 NM="$lt_cv_path_NM"
6014 else
6015 # Didn't find any BSD compatible name lister, look for dumpbin.
6016 if test -n "$DUMPBIN"; then :
6017 # Let the user override the test.
6018 else
6019 if test -n "$ac_tool_prefix"; then
6020 for ac_prog in dumpbin "link -dump"
6021 do
6022 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6023 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025 $as_echo_n "checking for $ac_word... " >&6; }
6026 if ${ac_cv_prog_DUMPBIN+:} false; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 if test -n "$DUMPBIN"; then
6030 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6031 else
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 for as_dir in $PATH
6034 do
6035 IFS=$as_save_IFS
6036 test -z "$as_dir" && as_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6039 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 break 2
6042 fi
6043 done
6044 done
6045 IFS=$as_save_IFS
6046
6047 fi
6048 fi
6049 DUMPBIN=$ac_cv_prog_DUMPBIN
6050 if test -n "$DUMPBIN"; then
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6052 $as_echo "$DUMPBIN" >&6; }
6053 else
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055 $as_echo "no" >&6; }
6056 fi
6057
6058
6059 test -n "$DUMPBIN" && break
6060 done
6061 fi
6062 if test -z "$DUMPBIN"; then
6063 ac_ct_DUMPBIN=$DUMPBIN
6064 for ac_prog in dumpbin "link -dump"
6065 do
6066 # Extract the first word of "$ac_prog", so it can be a program name with args.
6067 set dummy $ac_prog; ac_word=$2
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069 $as_echo_n "checking for $ac_word... " >&6; }
6070 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 if test -n "$ac_ct_DUMPBIN"; then
6074 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6075 else
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH
6078 do
6079 IFS=$as_save_IFS
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085 break 2
6086 fi
6087 done
6088 done
6089 IFS=$as_save_IFS
6090
6091 fi
6092 fi
6093 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6094 if test -n "$ac_ct_DUMPBIN"; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6096 $as_echo "$ac_ct_DUMPBIN" >&6; }
6097 else
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099 $as_echo "no" >&6; }
6100 fi
6101
6102
6103 test -n "$ac_ct_DUMPBIN" && break
6104 done
6105
6106 if test "x$ac_ct_DUMPBIN" = x; then
6107 DUMPBIN=":"
6108 else
6109 case $cross_compiling:$ac_tool_warned in
6110 yes:)
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6113 ac_tool_warned=yes ;;
6114 esac
6115 DUMPBIN=$ac_ct_DUMPBIN
6116 fi
6117 fi
6118
6119 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6120 *COFF*)
6121 DUMPBIN="$DUMPBIN -symbols"
6122 ;;
6123 *)
6124 DUMPBIN=:
6125 ;;
6126 esac
6127 fi
6128
6129 if test "$DUMPBIN" != ":"; then
6130 NM="$DUMPBIN"
6131 fi
6132 fi
6133 test -z "$NM" && NM=nm
6134
6135
6136
6137
6138
6139
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6141 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6142 if ${lt_cv_nm_interface+:} false; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 lt_cv_nm_interface="BSD nm"
6146 echo "int some_variable = 0;" > conftest.$ac_ext
6147 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6148 (eval "$ac_compile" 2>conftest.err)
6149 cat conftest.err >&5
6150 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6151 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6152 cat conftest.err >&5
6153 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6154 cat conftest.out >&5
6155 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6156 lt_cv_nm_interface="MS dumpbin"
6157 fi
6158 rm -f conftest*
6159 fi
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6161 $as_echo "$lt_cv_nm_interface" >&6; }
6162
6163 # find the maximum length of command line arguments
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6165 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6166 if ${lt_cv_sys_max_cmd_len+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 i=0
6170 teststring="ABCD"
6171
6172 case $build_os in
6173 msdosdjgpp*)
6174 # On DJGPP, this test can blow up pretty badly due to problems in libc
6175 # (any single argument exceeding 2000 bytes causes a buffer overrun
6176 # during glob expansion). Even if it were fixed, the result of this
6177 # check would be larger than it should be.
6178 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6179 ;;
6180
6181 gnu*)
6182 # Under GNU Hurd, this test is not required because there is
6183 # no limit to the length of command line arguments.
6184 # Libtool will interpret -1 as no limit whatsoever
6185 lt_cv_sys_max_cmd_len=-1;
6186 ;;
6187
6188 cygwin* | mingw* | cegcc*)
6189 # On Win9x/ME, this test blows up -- it succeeds, but takes
6190 # about 5 minutes as the teststring grows exponentially.
6191 # Worse, since 9x/ME are not pre-emptively multitasking,
6192 # you end up with a "frozen" computer, even though with patience
6193 # the test eventually succeeds (with a max line length of 256k).
6194 # Instead, let's just punt: use the minimum linelength reported by
6195 # all of the supported platforms: 8192 (on NT/2K/XP).
6196 lt_cv_sys_max_cmd_len=8192;
6197 ;;
6198
6199 mint*)
6200 # On MiNT this can take a long time and run out of memory.
6201 lt_cv_sys_max_cmd_len=8192;
6202 ;;
6203
6204 amigaos*)
6205 # On AmigaOS with pdksh, this test takes hours, literally.
6206 # So we just punt and use a minimum line length of 8192.
6207 lt_cv_sys_max_cmd_len=8192;
6208 ;;
6209
6210 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6211 # This has been around since 386BSD, at least. Likely further.
6212 if test -x /sbin/sysctl; then
6213 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6214 elif test -x /usr/sbin/sysctl; then
6215 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6216 else
6217 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6218 fi
6219 # And add a safety zone
6220 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6222 ;;
6223
6224 interix*)
6225 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6226 lt_cv_sys_max_cmd_len=196608
6227 ;;
6228
6229 os2*)
6230 # The test takes a long time on OS/2.
6231 lt_cv_sys_max_cmd_len=8192
6232 ;;
6233
6234 osf*)
6235 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6236 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6237 # nice to cause kernel panics so lets avoid the loop below.
6238 # First set a reasonable default.
6239 lt_cv_sys_max_cmd_len=16384
6240 #
6241 if test -x /sbin/sysconfig; then
6242 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6243 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6244 esac
6245 fi
6246 ;;
6247 sco3.2v5*)
6248 lt_cv_sys_max_cmd_len=102400
6249 ;;
6250 sysv5* | sco5v6* | sysv4.2uw2*)
6251 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6252 if test -n "$kargmax"; then
6253 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6254 else
6255 lt_cv_sys_max_cmd_len=32768
6256 fi
6257 ;;
6258 *)
6259 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6260 if test -n "$lt_cv_sys_max_cmd_len"; then
6261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6263 else
6264 # Make teststring a little bigger before we do anything with it.
6265 # a 1K string should be a reasonable start.
6266 for i in 1 2 3 4 5 6 7 8 ; do
6267 teststring=$teststring$teststring
6268 done
6269 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6270 # If test is not a shell built-in, we'll probably end up computing a
6271 # maximum length that is only half of the actual maximum length, but
6272 # we can't tell.
6273 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6274 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6275 test $i != 17 # 1/2 MB should be enough
6276 do
6277 i=`expr $i + 1`
6278 teststring=$teststring$teststring
6279 done
6280 # Only check the string length outside the loop.
6281 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6282 teststring=
6283 # Add a significant safety factor because C++ compilers can tack on
6284 # massive amounts of additional arguments before passing them to the
6285 # linker. It appears as though 1/2 is a usable value.
6286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6287 fi
6288 ;;
6289 esac
6290
6291 fi
6292
6293 if test -n $lt_cv_sys_max_cmd_len ; then
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6295 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6296 else
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6298 $as_echo "none" >&6; }
6299 fi
6300 max_cmd_len=$lt_cv_sys_max_cmd_len
6301
6302
6303
6304
6305
6306
6307 : ${CP="cp -f"}
6308 : ${MV="mv -f"}
6309 : ${RM="rm -f"}
6310
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6312 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6313 # Try some XSI features
6314 xsi_shell=no
6315 ( _lt_dummy="a/b/c"
6316 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6317 = c,a/b,b/c, \
6318 && eval 'test $(( 1 + 1 )) -eq 2 \
6319 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6320 && xsi_shell=yes
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6322 $as_echo "$xsi_shell" >&6; }
6323
6324
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6326 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6327 lt_shell_append=no
6328 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6329 >/dev/null 2>&1 \
6330 && lt_shell_append=yes
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6332 $as_echo "$lt_shell_append" >&6; }
6333
6334
6335 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6336 lt_unset=unset
6337 else
6338 lt_unset=false
6339 fi
6340
6341
6342
6343
6344
6345 # test EBCDIC or ASCII
6346 case `echo X|tr X '\101'` in
6347 A) # ASCII based system
6348 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6349 lt_SP2NL='tr \040 \012'
6350 lt_NL2SP='tr \015\012 \040\040'
6351 ;;
6352 *) # EBCDIC based system
6353 lt_SP2NL='tr \100 \n'
6354 lt_NL2SP='tr \r\n \100\100'
6355 ;;
6356 esac
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6367 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6368 if ${lt_cv_to_host_file_cmd+:} false; then :
6369 $as_echo_n "(cached) " >&6
6370 else
6371 case $host in
6372 *-*-mingw* )
6373 case $build in
6374 *-*-mingw* ) # actually msys
6375 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6376 ;;
6377 *-*-cygwin* )
6378 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6379 ;;
6380 * ) # otherwise, assume *nix
6381 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6382 ;;
6383 esac
6384 ;;
6385 *-*-cygwin* )
6386 case $build in
6387 *-*-mingw* ) # actually msys
6388 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6389 ;;
6390 *-*-cygwin* )
6391 lt_cv_to_host_file_cmd=func_convert_file_noop
6392 ;;
6393 * ) # otherwise, assume *nix
6394 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6395 ;;
6396 esac
6397 ;;
6398 * ) # unhandled hosts (and "normal" native builds)
6399 lt_cv_to_host_file_cmd=func_convert_file_noop
6400 ;;
6401 esac
6402
6403 fi
6404
6405 to_host_file_cmd=$lt_cv_to_host_file_cmd
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6407 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6408
6409
6410
6411
6412
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6414 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6415 if ${lt_cv_to_tool_file_cmd+:} false; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418 #assume ordinary cross tools, or native build.
6419 lt_cv_to_tool_file_cmd=func_convert_file_noop
6420 case $host in
6421 *-*-mingw* )
6422 case $build in
6423 *-*-mingw* ) # actually msys
6424 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6425 ;;
6426 esac
6427 ;;
6428 esac
6429
6430 fi
6431
6432 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6434 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6435
6436
6437
6438
6439
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6441 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6442 if ${lt_cv_ld_reload_flag+:} false; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 lt_cv_ld_reload_flag='-r'
6446 fi
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6448 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6449 reload_flag=$lt_cv_ld_reload_flag
6450 case $reload_flag in
6451 "" | " "*) ;;
6452 *) reload_flag=" $reload_flag" ;;
6453 esac
6454 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6455 case $host_os in
6456 cygwin* | mingw* | pw32* | cegcc*)
6457 if test "$GCC" != yes; then
6458 reload_cmds=false
6459 fi
6460 ;;
6461 darwin*)
6462 if test "$GCC" = yes; then
6463 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6464 else
6465 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6466 fi
6467 ;;
6468 esac
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478 if test -n "$ac_tool_prefix"; then
6479 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6480 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if ${ac_cv_prog_OBJDUMP+:} false; then :
6484 $as_echo_n "(cached) " >&6
6485 else
6486 if test -n "$OBJDUMP"; then
6487 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6488 else
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6491 do
6492 IFS=$as_save_IFS
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6496 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 break 2
6499 fi
6500 done
6501 done
6502 IFS=$as_save_IFS
6503
6504 fi
6505 fi
6506 OBJDUMP=$ac_cv_prog_OBJDUMP
6507 if test -n "$OBJDUMP"; then
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6509 $as_echo "$OBJDUMP" >&6; }
6510 else
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 $as_echo "no" >&6; }
6513 fi
6514
6515
6516 fi
6517 if test -z "$ac_cv_prog_OBJDUMP"; then
6518 ac_ct_OBJDUMP=$OBJDUMP
6519 # Extract the first word of "objdump", so it can be a program name with args.
6520 set dummy objdump; ac_word=$2
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6524 $as_echo_n "(cached) " >&6
6525 else
6526 if test -n "$ac_ct_OBJDUMP"; then
6527 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6528 else
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6531 do
6532 IFS=$as_save_IFS
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6536 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 break 2
6539 fi
6540 done
6541 done
6542 IFS=$as_save_IFS
6543
6544 fi
6545 fi
6546 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6547 if test -n "$ac_ct_OBJDUMP"; then
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6549 $as_echo "$ac_ct_OBJDUMP" >&6; }
6550 else
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552 $as_echo "no" >&6; }
6553 fi
6554
6555 if test "x$ac_ct_OBJDUMP" = x; then
6556 OBJDUMP="false"
6557 else
6558 case $cross_compiling:$ac_tool_warned in
6559 yes:)
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6562 ac_tool_warned=yes ;;
6563 esac
6564 OBJDUMP=$ac_ct_OBJDUMP
6565 fi
6566 else
6567 OBJDUMP="$ac_cv_prog_OBJDUMP"
6568 fi
6569
6570 test -z "$OBJDUMP" && OBJDUMP=objdump
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6581 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6582 if ${lt_cv_deplibs_check_method+:} false; then :
6583 $as_echo_n "(cached) " >&6
6584 else
6585 lt_cv_file_magic_cmd='$MAGIC_CMD'
6586 lt_cv_file_magic_test_file=
6587 lt_cv_deplibs_check_method='unknown'
6588 # Need to set the preceding variable on all platforms that support
6589 # interlibrary dependencies.
6590 # 'none' -- dependencies not supported.
6591 # `unknown' -- same as none, but documents that we really don't know.
6592 # 'pass_all' -- all dependencies passed with no checks.
6593 # 'test_compile' -- check by making test program.
6594 # 'file_magic [[regex]]' -- check by looking for files in library path
6595 # which responds to the $file_magic_cmd with a given extended regex.
6596 # If you have `file' or equivalent on your system and you're not sure
6597 # whether `pass_all' will *always* work, you probably want this one.
6598
6599 case $host_os in
6600 aix[4-9]*)
6601 lt_cv_deplibs_check_method=pass_all
6602 ;;
6603
6604 beos*)
6605 lt_cv_deplibs_check_method=pass_all
6606 ;;
6607
6608 bsdi[45]*)
6609 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6610 lt_cv_file_magic_cmd='/usr/bin/file -L'
6611 lt_cv_file_magic_test_file=/shlib/libc.so
6612 ;;
6613
6614 cygwin*)
6615 # func_win32_libid is a shell function defined in ltmain.sh
6616 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6617 lt_cv_file_magic_cmd='func_win32_libid'
6618 ;;
6619
6620 mingw* | pw32*)
6621 # Base MSYS/MinGW do not provide the 'file' command needed by
6622 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6623 # unless we find 'file', for example because we are cross-compiling.
6624 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6625 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6626 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6627 lt_cv_file_magic_cmd='func_win32_libid'
6628 else
6629 # Keep this pattern in sync with the one in func_win32_libid.
6630 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6631 lt_cv_file_magic_cmd='$OBJDUMP -f'
6632 fi
6633 ;;
6634
6635 cegcc*)
6636 # use the weaker test based on 'objdump'. See mingw*.
6637 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6638 lt_cv_file_magic_cmd='$OBJDUMP -f'
6639 ;;
6640
6641 darwin* | rhapsody*)
6642 lt_cv_deplibs_check_method=pass_all
6643 ;;
6644
6645 freebsd* | dragonfly*)
6646 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6647 case $host_cpu in
6648 i*86 )
6649 # Not sure whether the presence of OpenBSD here was a mistake.
6650 # Let's accept both of them until this is cleared up.
6651 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6652 lt_cv_file_magic_cmd=/usr/bin/file
6653 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6654 ;;
6655 esac
6656 else
6657 lt_cv_deplibs_check_method=pass_all
6658 fi
6659 ;;
6660
6661 haiku*)
6662 lt_cv_deplibs_check_method=pass_all
6663 ;;
6664
6665 hpux10.20* | hpux11*)
6666 lt_cv_file_magic_cmd=/usr/bin/file
6667 case $host_cpu in
6668 ia64*)
6669 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6670 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6671 ;;
6672 hppa*64*)
6673 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]'
6674 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6675 ;;
6676 *)
6677 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6678 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6679 ;;
6680 esac
6681 ;;
6682
6683 interix[3-9]*)
6684 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6686 ;;
6687
6688 irix5* | irix6* | nonstopux*)
6689 case $LD in
6690 *-32|*"-32 ") libmagic=32-bit;;
6691 *-n32|*"-n32 ") libmagic=N32;;
6692 *-64|*"-64 ") libmagic=64-bit;;
6693 *) libmagic=never-match;;
6694 esac
6695 lt_cv_deplibs_check_method=pass_all
6696 ;;
6697
6698 # This must be glibc/ELF.
6699 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6700 lt_cv_deplibs_check_method=pass_all
6701 ;;
6702
6703 netbsd* | netbsdelf*-gnu)
6704 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6705 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6706 else
6707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6708 fi
6709 ;;
6710
6711 newos6*)
6712 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6713 lt_cv_file_magic_cmd=/usr/bin/file
6714 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6715 ;;
6716
6717 *nto* | *qnx*)
6718 lt_cv_deplibs_check_method=pass_all
6719 ;;
6720
6721 openbsd*)
6722 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6724 else
6725 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6726 fi
6727 ;;
6728
6729 osf3* | osf4* | osf5*)
6730 lt_cv_deplibs_check_method=pass_all
6731 ;;
6732
6733 rdos*)
6734 lt_cv_deplibs_check_method=pass_all
6735 ;;
6736
6737 solaris*)
6738 lt_cv_deplibs_check_method=pass_all
6739 ;;
6740
6741 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6742 lt_cv_deplibs_check_method=pass_all
6743 ;;
6744
6745 sysv4 | sysv4.3*)
6746 case $host_vendor in
6747 motorola)
6748 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]'
6749 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6750 ;;
6751 ncr)
6752 lt_cv_deplibs_check_method=pass_all
6753 ;;
6754 sequent)
6755 lt_cv_file_magic_cmd='/bin/file'
6756 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6757 ;;
6758 sni)
6759 lt_cv_file_magic_cmd='/bin/file'
6760 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6761 lt_cv_file_magic_test_file=/lib/libc.so
6762 ;;
6763 siemens)
6764 lt_cv_deplibs_check_method=pass_all
6765 ;;
6766 pc)
6767 lt_cv_deplibs_check_method=pass_all
6768 ;;
6769 esac
6770 ;;
6771
6772 tpf*)
6773 lt_cv_deplibs_check_method=pass_all
6774 ;;
6775 esac
6776
6777 fi
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6779 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6780
6781 file_magic_glob=
6782 want_nocaseglob=no
6783 if test "$build" = "$host"; then
6784 case $host_os in
6785 mingw* | pw32*)
6786 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6787 want_nocaseglob=yes
6788 else
6789 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6790 fi
6791 ;;
6792 esac
6793 fi
6794
6795 file_magic_cmd=$lt_cv_file_magic_cmd
6796 deplibs_check_method=$lt_cv_deplibs_check_method
6797 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820 if test -n "$ac_tool_prefix"; then
6821 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6822 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_prog_DLLTOOL+:} false; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 if test -n "$DLLTOOL"; then
6829 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 break 2
6841 fi
6842 done
6843 done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 DLLTOOL=$ac_cv_prog_DLLTOOL
6849 if test -n "$DLLTOOL"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6851 $as_echo "$DLLTOOL" >&6; }
6852 else
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6855 fi
6856
6857
6858 fi
6859 if test -z "$ac_cv_prog_DLLTOOL"; then
6860 ac_ct_DLLTOOL=$DLLTOOL
6861 # Extract the first word of "dlltool", so it can be a program name with args.
6862 set dummy dlltool; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 $as_echo_n "checking for $ac_word... " >&6; }
6865 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6866 $as_echo_n "(cached) " >&6
6867 else
6868 if test -n "$ac_ct_DLLTOOL"; then
6869 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874 IFS=$as_save_IFS
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 break 2
6881 fi
6882 done
6883 done
6884 IFS=$as_save_IFS
6885
6886 fi
6887 fi
6888 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6889 if test -n "$ac_ct_DLLTOOL"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6891 $as_echo "$ac_ct_DLLTOOL" >&6; }
6892 else
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6895 fi
6896
6897 if test "x$ac_ct_DLLTOOL" = x; then
6898 DLLTOOL="false"
6899 else
6900 case $cross_compiling:$ac_tool_warned in
6901 yes:)
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6904 ac_tool_warned=yes ;;
6905 esac
6906 DLLTOOL=$ac_ct_DLLTOOL
6907 fi
6908 else
6909 DLLTOOL="$ac_cv_prog_DLLTOOL"
6910 fi
6911
6912 test -z "$DLLTOOL" && DLLTOOL=dlltool
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6924 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6925 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 lt_cv_sharedlib_from_linklib_cmd='unknown'
6929
6930 case $host_os in
6931 cygwin* | mingw* | pw32* | cegcc*)
6932 # two different shell functions defined in ltmain.sh
6933 # decide which to use based on capabilities of $DLLTOOL
6934 case `$DLLTOOL --help 2>&1` in
6935 *--identify-strict*)
6936 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6937 ;;
6938 *)
6939 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6940 ;;
6941 esac
6942 ;;
6943 *)
6944 # fallback: assume linklib IS sharedlib
6945 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6946 ;;
6947 esac
6948
6949 fi
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6951 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6952 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6953 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6954
6955
6956
6957
6958
6959
6960
6961 if test -n "$ac_tool_prefix"; then
6962 for ac_prog in ar
6963 do
6964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if ${ac_cv_prog_AR+:} false; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971 if test -n "$AR"; then
6972 ac_cv_prog_AR="$AR" # Let the user override the test.
6973 else
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6976 do
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6981 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6984 fi
6985 done
6986 done
6987 IFS=$as_save_IFS
6988
6989 fi
6990 fi
6991 AR=$ac_cv_prog_AR
6992 if test -n "$AR"; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6994 $as_echo "$AR" >&6; }
6995 else
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997 $as_echo "no" >&6; }
6998 fi
6999
7000
7001 test -n "$AR" && break
7002 done
7003 fi
7004 if test -z "$AR"; then
7005 ac_ct_AR=$AR
7006 for ac_prog in ar
7007 do
7008 # Extract the first word of "$ac_prog", so it can be a program name with args.
7009 set dummy $ac_prog; ac_word=$2
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011 $as_echo_n "checking for $ac_word... " >&6; }
7012 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7013 $as_echo_n "(cached) " >&6
7014 else
7015 if test -n "$ac_ct_AR"; then
7016 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7017 else
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 for as_dir in $PATH
7020 do
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7025 ac_cv_prog_ac_ct_AR="$ac_prog"
7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7028 fi
7029 done
7030 done
7031 IFS=$as_save_IFS
7032
7033 fi
7034 fi
7035 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7036 if test -n "$ac_ct_AR"; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7038 $as_echo "$ac_ct_AR" >&6; }
7039 else
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 $as_echo "no" >&6; }
7042 fi
7043
7044
7045 test -n "$ac_ct_AR" && break
7046 done
7047
7048 if test "x$ac_ct_AR" = x; then
7049 AR="false"
7050 else
7051 case $cross_compiling:$ac_tool_warned in
7052 yes:)
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7055 ac_tool_warned=yes ;;
7056 esac
7057 AR=$ac_ct_AR
7058 fi
7059 fi
7060
7061 : ${AR=ar}
7062 : ${AR_FLAGS=cru}
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7075 $as_echo_n "checking for archiver @FILE support... " >&6; }
7076 if ${lt_cv_ar_at_file+:} false; then :
7077 $as_echo_n "(cached) " >&6
7078 else
7079 lt_cv_ar_at_file=no
7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7082
7083 int
7084 main ()
7085 {
7086
7087 ;
7088 return 0;
7089 }
7090 _ACEOF
7091 if ac_fn_c_try_compile "$LINENO"; then :
7092 echo conftest.$ac_objext > conftest.lst
7093 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7095 (eval $lt_ar_try) 2>&5
7096 ac_status=$?
7097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7098 test $ac_status = 0; }
7099 if test "$ac_status" -eq 0; then
7100 # Ensure the archiver fails upon bogus file names.
7101 rm -f conftest.$ac_objext libconftest.a
7102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7103 (eval $lt_ar_try) 2>&5
7104 ac_status=$?
7105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7106 test $ac_status = 0; }
7107 if test "$ac_status" -ne 0; then
7108 lt_cv_ar_at_file=@
7109 fi
7110 fi
7111 rm -f conftest.* libconftest.a
7112
7113 fi
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115
7116 fi
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7118 $as_echo "$lt_cv_ar_at_file" >&6; }
7119
7120 if test "x$lt_cv_ar_at_file" = xno; then
7121 archiver_list_spec=
7122 else
7123 archiver_list_spec=$lt_cv_ar_at_file
7124 fi
7125
7126
7127
7128
7129
7130
7131
7132 if test -n "$ac_tool_prefix"; then
7133 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7134 set dummy ${ac_tool_prefix}strip; 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 ${ac_cv_prog_STRIP+:} false; then :
7138 $as_echo_n "(cached) " >&6
7139 else
7140 if test -n "$STRIP"; then
7141 ac_cv_prog_STRIP="$STRIP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7150 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
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 STRIP=$ac_cv_prog_STRIP
7161 if test -n "$STRIP"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7163 $as_echo "$STRIP" >&6; }
7164 else
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }
7167 fi
7168
7169
7170 fi
7171 if test -z "$ac_cv_prog_STRIP"; then
7172 ac_ct_STRIP=$STRIP
7173 # Extract the first word of "strip", so it can be a program name with args.
7174 set dummy strip; ac_word=$2
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176 $as_echo_n "checking for $ac_word... " >&6; }
7177 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7178 $as_echo_n "(cached) " >&6
7179 else
7180 if test -n "$ac_ct_STRIP"; then
7181 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7182 else
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7185 do
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190 ac_cv_prog_ac_ct_STRIP="strip"
7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 break 2
7193 fi
7194 done
7195 done
7196 IFS=$as_save_IFS
7197
7198 fi
7199 fi
7200 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7201 if test -n "$ac_ct_STRIP"; then
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7203 $as_echo "$ac_ct_STRIP" >&6; }
7204 else
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206 $as_echo "no" >&6; }
7207 fi
7208
7209 if test "x$ac_ct_STRIP" = x; then
7210 STRIP=":"
7211 else
7212 case $cross_compiling:$ac_tool_warned in
7213 yes:)
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7216 ac_tool_warned=yes ;;
7217 esac
7218 STRIP=$ac_ct_STRIP
7219 fi
7220 else
7221 STRIP="$ac_cv_prog_STRIP"
7222 fi
7223
7224 test -z "$STRIP" && STRIP=:
7225
7226
7227
7228
7229
7230
7231 if test -n "$ac_tool_prefix"; then
7232 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7233 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235 $as_echo_n "checking for $ac_word... " >&6; }
7236 if ${ac_cv_prog_RANLIB+:} false; then :
7237 $as_echo_n "(cached) " >&6
7238 else
7239 if test -n "$RANLIB"; then
7240 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7241 else
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 for as_dir in $PATH
7244 do
7245 IFS=$as_save_IFS
7246 test -z "$as_dir" && as_dir=.
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7249 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 break 2
7252 fi
7253 done
7254 done
7255 IFS=$as_save_IFS
7256
7257 fi
7258 fi
7259 RANLIB=$ac_cv_prog_RANLIB
7260 if test -n "$RANLIB"; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7262 $as_echo "$RANLIB" >&6; }
7263 else
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265 $as_echo "no" >&6; }
7266 fi
7267
7268
7269 fi
7270 if test -z "$ac_cv_prog_RANLIB"; then
7271 ac_ct_RANLIB=$RANLIB
7272 # Extract the first word of "ranlib", so it can be a program name with args.
7273 set dummy ranlib; ac_word=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279 if test -n "$ac_ct_RANLIB"; then
7280 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7281 else
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7284 do
7285 IFS=$as_save_IFS
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289 ac_cv_prog_ac_ct_RANLIB="ranlib"
7290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 break 2
7292 fi
7293 done
7294 done
7295 IFS=$as_save_IFS
7296
7297 fi
7298 fi
7299 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7300 if test -n "$ac_ct_RANLIB"; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7302 $as_echo "$ac_ct_RANLIB" >&6; }
7303 else
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7306 fi
7307
7308 if test "x$ac_ct_RANLIB" = x; then
7309 RANLIB=":"
7310 else
7311 case $cross_compiling:$ac_tool_warned in
7312 yes:)
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7315 ac_tool_warned=yes ;;
7316 esac
7317 RANLIB=$ac_ct_RANLIB
7318 fi
7319 else
7320 RANLIB="$ac_cv_prog_RANLIB"
7321 fi
7322
7323 test -z "$RANLIB" && RANLIB=:
7324
7325
7326
7327
7328
7329
7330 # Determine commands to create old-style static archives.
7331 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7332 old_postinstall_cmds='chmod 644 $oldlib'
7333 old_postuninstall_cmds=
7334
7335 if test -n "$RANLIB"; then
7336 case $host_os in
7337 openbsd*)
7338 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7339 ;;
7340 *)
7341 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7342 ;;
7343 esac
7344 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7345 fi
7346
7347 case $host_os in
7348 darwin*)
7349 lock_old_archive_extraction=yes ;;
7350 *)
7351 lock_old_archive_extraction=no ;;
7352 esac
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392 # If no C compiler was specified, use CC.
7393 LTCC=${LTCC-"$CC"}
7394
7395 # If no C compiler flags were specified, use CFLAGS.
7396 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7397
7398 # Allow CC to be a program name with arguments.
7399 compiler=$CC
7400
7401
7402 # Check for command to grab the raw symbol name followed by C symbol from nm.
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7404 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7405 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408
7409 # These are sane defaults that work on at least a few old systems.
7410 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7411
7412 # Character class describing NM global symbol codes.
7413 symcode='[BCDEGRST]'
7414
7415 # Regexp to match symbols that can be accessed directly from C.
7416 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7417
7418 # Define system-specific variables.
7419 case $host_os in
7420 aix*)
7421 symcode='[BCDT]'
7422 ;;
7423 cygwin* | mingw* | pw32* | cegcc*)
7424 symcode='[ABCDGISTW]'
7425 ;;
7426 hpux*)
7427 if test "$host_cpu" = ia64; then
7428 symcode='[ABCDEGRST]'
7429 fi
7430 ;;
7431 irix* | nonstopux*)
7432 symcode='[BCDEGRST]'
7433 ;;
7434 osf*)
7435 symcode='[BCDEGQRST]'
7436 ;;
7437 solaris*)
7438 symcode='[BDRT]'
7439 ;;
7440 sco3.2v5*)
7441 symcode='[DT]'
7442 ;;
7443 sysv4.2uw2*)
7444 symcode='[DT]'
7445 ;;
7446 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7447 symcode='[ABDT]'
7448 ;;
7449 sysv4)
7450 symcode='[DFNSTU]'
7451 ;;
7452 esac
7453
7454 # If we're using GNU nm, then use its standard symbol codes.
7455 case `$NM -V 2>&1` in
7456 *GNU* | *'with BFD'*)
7457 symcode='[ABCDGIRSTW]' ;;
7458 esac
7459
7460 # Transform an extracted symbol line into a proper C declaration.
7461 # Some systems (esp. on ia64) link data and code symbols differently,
7462 # so use this general approach.
7463 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7464
7465 # Transform an extracted symbol line into symbol name and symbol address
7466 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7467 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'"
7468
7469 # Handle CRLF in mingw tool chain
7470 opt_cr=
7471 case $build_os in
7472 mingw*)
7473 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7474 ;;
7475 esac
7476
7477 # Try without a prefix underscore, then with it.
7478 for ac_symprfx in "" "_"; do
7479
7480 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7481 symxfrm="\\1 $ac_symprfx\\2 \\2"
7482
7483 # Write the raw and C identifiers.
7484 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7485 # Fake it for dumpbin and say T for any non-static function
7486 # and D for any global variable.
7487 # Also find C++ and __fastcall symbols from MSVC++,
7488 # which start with @ or ?.
7489 lt_cv_sys_global_symbol_pipe="$AWK '"\
7490 " {last_section=section; section=\$ 3};"\
7491 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7492 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7493 " \$ 0!~/External *\|/{next};"\
7494 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7495 " {if(hide[section]) next};"\
7496 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7497 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7498 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7499 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7500 " ' prfx=^$ac_symprfx"
7501 else
7502 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7503 fi
7504 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7505
7506 # Check to see that the pipe works correctly.
7507 pipe_works=no
7508
7509 rm -f conftest*
7510 cat > conftest.$ac_ext <<_LT_EOF
7511 #ifdef __cplusplus
7512 extern "C" {
7513 #endif
7514 char nm_test_var;
7515 void nm_test_func(void);
7516 void nm_test_func(void){}
7517 #ifdef __cplusplus
7518 }
7519 #endif
7520 int main(){nm_test_var='a';nm_test_func();return(0);}
7521 _LT_EOF
7522
7523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7524 (eval $ac_compile) 2>&5
7525 ac_status=$?
7526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7527 test $ac_status = 0; }; then
7528 # Now try to grab the symbols.
7529 nlist=conftest.nm
7530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7531 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7532 ac_status=$?
7533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7534 test $ac_status = 0; } && test -s "$nlist"; then
7535 # Try sorting and uniquifying the output.
7536 if sort "$nlist" | uniq > "$nlist"T; then
7537 mv -f "$nlist"T "$nlist"
7538 else
7539 rm -f "$nlist"T
7540 fi
7541
7542 # Make sure that we snagged all the symbols we need.
7543 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7544 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7545 cat <<_LT_EOF > conftest.$ac_ext
7546 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7547 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7548 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7549 relocations are performed -- see ld's documentation on pseudo-relocs. */
7550 # define LT_DLSYM_CONST
7551 #elif defined(__osf__)
7552 /* This system does not cope well with relocations in const data. */
7553 # define LT_DLSYM_CONST
7554 #else
7555 # define LT_DLSYM_CONST const
7556 #endif
7557
7558 #ifdef __cplusplus
7559 extern "C" {
7560 #endif
7561
7562 _LT_EOF
7563 # Now generate the symbol file.
7564 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7565
7566 cat <<_LT_EOF >> conftest.$ac_ext
7567
7568 /* The mapping between symbol names and symbols. */
7569 LT_DLSYM_CONST struct {
7570 const char *name;
7571 void *address;
7572 }
7573 lt__PROGRAM__LTX_preloaded_symbols[] =
7574 {
7575 { "@PROGRAM@", (void *) 0 },
7576 _LT_EOF
7577 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7578 cat <<\_LT_EOF >> conftest.$ac_ext
7579 {0, (void *) 0}
7580 };
7581
7582 /* This works around a problem in FreeBSD linker */
7583 #ifdef FREEBSD_WORKAROUND
7584 static const void *lt_preloaded_setup() {
7585 return lt__PROGRAM__LTX_preloaded_symbols;
7586 }
7587 #endif
7588
7589 #ifdef __cplusplus
7590 }
7591 #endif
7592 _LT_EOF
7593 # Now try linking the two files.
7594 mv conftest.$ac_objext conftstm.$ac_objext
7595 lt_globsym_save_LIBS=$LIBS
7596 lt_globsym_save_CFLAGS=$CFLAGS
7597 LIBS="conftstm.$ac_objext"
7598 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7600 (eval $ac_link) 2>&5
7601 ac_status=$?
7602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7603 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7604 pipe_works=yes
7605 fi
7606 LIBS=$lt_globsym_save_LIBS
7607 CFLAGS=$lt_globsym_save_CFLAGS
7608 else
7609 echo "cannot find nm_test_func in $nlist" >&5
7610 fi
7611 else
7612 echo "cannot find nm_test_var in $nlist" >&5
7613 fi
7614 else
7615 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7616 fi
7617 else
7618 echo "$progname: failed program was:" >&5
7619 cat conftest.$ac_ext >&5
7620 fi
7621 rm -rf conftest* conftst*
7622
7623 # Do not use the global_symbol_pipe unless it works.
7624 if test "$pipe_works" = yes; then
7625 break
7626 else
7627 lt_cv_sys_global_symbol_pipe=
7628 fi
7629 done
7630
7631 fi
7632
7633 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7634 lt_cv_sys_global_symbol_to_cdecl=
7635 fi
7636 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7638 $as_echo "failed" >&6; }
7639 else
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7641 $as_echo "ok" >&6; }
7642 fi
7643
7644 # Response file support.
7645 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7646 nm_file_list_spec='@'
7647 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7648 nm_file_list_spec='@'
7649 fi
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7678 $as_echo_n "checking for sysroot... " >&6; }
7679
7680 # Check whether --with-sysroot was given.
7681 if test "${with_sysroot+set}" = set; then :
7682 withval=$with_sysroot;
7683 else
7684 with_sysroot=no
7685 fi
7686
7687
7688 lt_sysroot=
7689 case ${with_sysroot} in #(
7690 yes)
7691 if test "$GCC" = yes; then
7692 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7693 fi
7694 ;; #(
7695 /*)
7696 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7697 ;; #(
7698 no|'')
7699 ;; #(
7700 *)
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7702 $as_echo "${with_sysroot}" >&6; }
7703 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7704 ;;
7705 esac
7706
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7708 $as_echo "${lt_sysroot:-no}" >&6; }
7709
7710
7711
7712
7713
7714 # Check whether --enable-libtool-lock was given.
7715 if test "${enable_libtool_lock+set}" = set; then :
7716 enableval=$enable_libtool_lock;
7717 fi
7718
7719 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7720
7721 # Some flags need to be propagated to the compiler or linker for good
7722 # libtool support.
7723 case $host in
7724 ia64-*-hpux*)
7725 # Find out which ABI we are using.
7726 echo 'int i;' > conftest.$ac_ext
7727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7728 (eval $ac_compile) 2>&5
7729 ac_status=$?
7730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7731 test $ac_status = 0; }; then
7732 case `/usr/bin/file conftest.$ac_objext` in
7733 *ELF-32*)
7734 HPUX_IA64_MODE="32"
7735 ;;
7736 *ELF-64*)
7737 HPUX_IA64_MODE="64"
7738 ;;
7739 esac
7740 fi
7741 rm -rf conftest*
7742 ;;
7743 *-*-irix6*)
7744 # Find out which ABI we are using.
7745 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7747 (eval $ac_compile) 2>&5
7748 ac_status=$?
7749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7750 test $ac_status = 0; }; then
7751 if test "$lt_cv_prog_gnu_ld" = yes; then
7752 case `/usr/bin/file conftest.$ac_objext` in
7753 *32-bit*)
7754 LD="${LD-ld} -melf32bsmip"
7755 ;;
7756 *N32*)
7757 LD="${LD-ld} -melf32bmipn32"
7758 ;;
7759 *64-bit*)
7760 LD="${LD-ld} -melf64bmip"
7761 ;;
7762 esac
7763 else
7764 case `/usr/bin/file conftest.$ac_objext` in
7765 *32-bit*)
7766 LD="${LD-ld} -32"
7767 ;;
7768 *N32*)
7769 LD="${LD-ld} -n32"
7770 ;;
7771 *64-bit*)
7772 LD="${LD-ld} -64"
7773 ;;
7774 esac
7775 fi
7776 fi
7777 rm -rf conftest*
7778 ;;
7779
7780 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7781 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7782 # Find out which ABI we are using.
7783 echo 'int i;' > conftest.$ac_ext
7784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7785 (eval $ac_compile) 2>&5
7786 ac_status=$?
7787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7788 test $ac_status = 0; }; then
7789 case `/usr/bin/file conftest.o` in
7790 *32-bit*)
7791 case $host in
7792 x86_64-*kfreebsd*-gnu)
7793 LD="${LD-ld} -m elf_i386_fbsd"
7794 ;;
7795 x86_64-*linux*)
7796 LD="${LD-ld} -m elf_i386"
7797 ;;
7798 ppc64-*linux*|powerpc64-*linux*)
7799 LD="${LD-ld} -m elf32ppclinux"
7800 ;;
7801 s390x-*linux*)
7802 LD="${LD-ld} -m elf_s390"
7803 ;;
7804 sparc64-*linux*)
7805 LD="${LD-ld} -m elf32_sparc"
7806 ;;
7807 esac
7808 ;;
7809 *64-bit*)
7810 case $host in
7811 x86_64-*kfreebsd*-gnu)
7812 LD="${LD-ld} -m elf_x86_64_fbsd"
7813 ;;
7814 x86_64-*linux*)
7815 LD="${LD-ld} -m elf_x86_64"
7816 ;;
7817 ppc*-*linux*|powerpc*-*linux*)
7818 LD="${LD-ld} -m elf64ppc"
7819 ;;
7820 s390*-*linux*|s390*-*tpf*)
7821 LD="${LD-ld} -m elf64_s390"
7822 ;;
7823 sparc*-*linux*)
7824 LD="${LD-ld} -m elf64_sparc"
7825 ;;
7826 esac
7827 ;;
7828 esac
7829 fi
7830 rm -rf conftest*
7831 ;;
7832
7833 *-*-sco3.2v5*)
7834 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7835 SAVE_CFLAGS="$CFLAGS"
7836 CFLAGS="$CFLAGS -belf"
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7838 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7839 if ${lt_cv_cc_needs_belf+:} false; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 ac_ext=c
7843 ac_cpp='$CPP $CPPFLAGS'
7844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7847
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7850
7851 int
7852 main ()
7853 {
7854
7855 ;
7856 return 0;
7857 }
7858 _ACEOF
7859 if ac_fn_c_try_link "$LINENO"; then :
7860 lt_cv_cc_needs_belf=yes
7861 else
7862 lt_cv_cc_needs_belf=no
7863 fi
7864 rm -f core conftest.err conftest.$ac_objext \
7865 conftest$ac_exeext conftest.$ac_ext
7866 ac_ext=c
7867 ac_cpp='$CPP $CPPFLAGS'
7868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7871
7872 fi
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7874 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7875 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7876 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7877 CFLAGS="$SAVE_CFLAGS"
7878 fi
7879 ;;
7880 *-*solaris*)
7881 # Find out which ABI we are using.
7882 echo 'int i;' > conftest.$ac_ext
7883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7884 (eval $ac_compile) 2>&5
7885 ac_status=$?
7886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7887 test $ac_status = 0; }; then
7888 case `/usr/bin/file conftest.o` in
7889 *64-bit*)
7890 case $lt_cv_prog_gnu_ld in
7891 yes*)
7892 case $host in
7893 i?86-*-solaris*)
7894 LD="${LD-ld} -m elf_x86_64"
7895 ;;
7896 sparc*-*-solaris*)
7897 LD="${LD-ld} -m elf64_sparc"
7898 ;;
7899 esac
7900 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7901 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7902 LD="${LD-ld}_sol2"
7903 fi
7904 ;;
7905 *)
7906 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7907 LD="${LD-ld} -64"
7908 fi
7909 ;;
7910 esac
7911 ;;
7912 esac
7913 fi
7914 rm -rf conftest*
7915 ;;
7916 esac
7917
7918 need_locks="$enable_libtool_lock"
7919
7920 if test -n "$ac_tool_prefix"; then
7921 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7922 set dummy ${ac_tool_prefix}mt; ac_word=$2
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924 $as_echo_n "checking for $ac_word... " >&6; }
7925 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7926 $as_echo_n "(cached) " >&6
7927 else
7928 if test -n "$MANIFEST_TOOL"; then
7929 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7930 else
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 for as_dir in $PATH
7933 do
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7938 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 break 2
7941 fi
7942 done
7943 done
7944 IFS=$as_save_IFS
7945
7946 fi
7947 fi
7948 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7949 if test -n "$MANIFEST_TOOL"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7951 $as_echo "$MANIFEST_TOOL" >&6; }
7952 else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7955 fi
7956
7957
7958 fi
7959 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7960 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7961 # Extract the first word of "mt", so it can be a program name with args.
7962 set dummy mt; ac_word=$2
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 $as_echo_n "checking for $ac_word... " >&6; }
7965 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968 if test -n "$ac_ct_MANIFEST_TOOL"; then
7969 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7970 else
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7973 do
7974 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7978 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 break 2
7981 fi
7982 done
7983 done
7984 IFS=$as_save_IFS
7985
7986 fi
7987 fi
7988 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7989 if test -n "$ac_ct_MANIFEST_TOOL"; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7991 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7992 else
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 $as_echo "no" >&6; }
7995 fi
7996
7997 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7998 MANIFEST_TOOL=":"
7999 else
8000 case $cross_compiling:$ac_tool_warned in
8001 yes:)
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8004 ac_tool_warned=yes ;;
8005 esac
8006 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8007 fi
8008 else
8009 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8010 fi
8011
8012 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8014 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8015 if ${lt_cv_path_mainfest_tool+:} false; then :
8016 $as_echo_n "(cached) " >&6
8017 else
8018 lt_cv_path_mainfest_tool=no
8019 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8020 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8021 cat conftest.err >&5
8022 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8023 lt_cv_path_mainfest_tool=yes
8024 fi
8025 rm -f conftest*
8026 fi
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8028 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8029 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8030 MANIFEST_TOOL=:
8031 fi
8032
8033
8034
8035
8036
8037
8038 case $host_os in
8039 rhapsody* | darwin*)
8040 if test -n "$ac_tool_prefix"; then
8041 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8042 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044 $as_echo_n "checking for $ac_word... " >&6; }
8045 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8046 $as_echo_n "(cached) " >&6
8047 else
8048 if test -n "$DSYMUTIL"; then
8049 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8050 else
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 for as_dir in $PATH
8053 do
8054 IFS=$as_save_IFS
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8058 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 break 2
8061 fi
8062 done
8063 done
8064 IFS=$as_save_IFS
8065
8066 fi
8067 fi
8068 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8069 if test -n "$DSYMUTIL"; then
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8071 $as_echo "$DSYMUTIL" >&6; }
8072 else
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074 $as_echo "no" >&6; }
8075 fi
8076
8077
8078 fi
8079 if test -z "$ac_cv_prog_DSYMUTIL"; then
8080 ac_ct_DSYMUTIL=$DSYMUTIL
8081 # Extract the first word of "dsymutil", so it can be a program name with args.
8082 set dummy dsymutil; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 if test -n "$ac_ct_DSYMUTIL"; then
8089 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8090 else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8093 do
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8098 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 break 2
8101 fi
8102 done
8103 done
8104 IFS=$as_save_IFS
8105
8106 fi
8107 fi
8108 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8109 if test -n "$ac_ct_DSYMUTIL"; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8111 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8112 else
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8115 fi
8116
8117 if test "x$ac_ct_DSYMUTIL" = x; then
8118 DSYMUTIL=":"
8119 else
8120 case $cross_compiling:$ac_tool_warned in
8121 yes:)
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8124 ac_tool_warned=yes ;;
8125 esac
8126 DSYMUTIL=$ac_ct_DSYMUTIL
8127 fi
8128 else
8129 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8130 fi
8131
8132 if test -n "$ac_tool_prefix"; then
8133 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8134 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8136 $as_echo_n "checking for $ac_word... " >&6; }
8137 if ${ac_cv_prog_NMEDIT+:} false; then :
8138 $as_echo_n "(cached) " >&6
8139 else
8140 if test -n "$NMEDIT"; then
8141 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8142 else
8143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 for as_dir in $PATH
8145 do
8146 IFS=$as_save_IFS
8147 test -z "$as_dir" && as_dir=.
8148 for ac_exec_ext in '' $ac_executable_extensions; do
8149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8150 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8152 break 2
8153 fi
8154 done
8155 done
8156 IFS=$as_save_IFS
8157
8158 fi
8159 fi
8160 NMEDIT=$ac_cv_prog_NMEDIT
8161 if test -n "$NMEDIT"; then
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8163 $as_echo "$NMEDIT" >&6; }
8164 else
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8166 $as_echo "no" >&6; }
8167 fi
8168
8169
8170 fi
8171 if test -z "$ac_cv_prog_NMEDIT"; then
8172 ac_ct_NMEDIT=$NMEDIT
8173 # Extract the first word of "nmedit", so it can be a program name with args.
8174 set dummy nmedit; ac_word=$2
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176 $as_echo_n "checking for $ac_word... " >&6; }
8177 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8178 $as_echo_n "(cached) " >&6
8179 else
8180 if test -n "$ac_ct_NMEDIT"; then
8181 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8182 else
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 for as_dir in $PATH
8185 do
8186 IFS=$as_save_IFS
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8190 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192 break 2
8193 fi
8194 done
8195 done
8196 IFS=$as_save_IFS
8197
8198 fi
8199 fi
8200 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8201 if test -n "$ac_ct_NMEDIT"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8203 $as_echo "$ac_ct_NMEDIT" >&6; }
8204 else
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8207 fi
8208
8209 if test "x$ac_ct_NMEDIT" = x; then
8210 NMEDIT=":"
8211 else
8212 case $cross_compiling:$ac_tool_warned in
8213 yes:)
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8216 ac_tool_warned=yes ;;
8217 esac
8218 NMEDIT=$ac_ct_NMEDIT
8219 fi
8220 else
8221 NMEDIT="$ac_cv_prog_NMEDIT"
8222 fi
8223
8224 if test -n "$ac_tool_prefix"; then
8225 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8226 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228 $as_echo_n "checking for $ac_word... " >&6; }
8229 if ${ac_cv_prog_LIPO+:} false; then :
8230 $as_echo_n "(cached) " >&6
8231 else
8232 if test -n "$LIPO"; then
8233 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8234 else
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236 for as_dir in $PATH
8237 do
8238 IFS=$as_save_IFS
8239 test -z "$as_dir" && as_dir=.
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8242 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8244 break 2
8245 fi
8246 done
8247 done
8248 IFS=$as_save_IFS
8249
8250 fi
8251 fi
8252 LIPO=$ac_cv_prog_LIPO
8253 if test -n "$LIPO"; then
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8255 $as_echo "$LIPO" >&6; }
8256 else
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8259 fi
8260
8261
8262 fi
8263 if test -z "$ac_cv_prog_LIPO"; then
8264 ac_ct_LIPO=$LIPO
8265 # Extract the first word of "lipo", so it can be a program name with args.
8266 set dummy lipo; ac_word=$2
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8268 $as_echo_n "checking for $ac_word... " >&6; }
8269 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8270 $as_echo_n "(cached) " >&6
8271 else
8272 if test -n "$ac_ct_LIPO"; then
8273 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8274 else
8275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276 for as_dir in $PATH
8277 do
8278 IFS=$as_save_IFS
8279 test -z "$as_dir" && as_dir=.
8280 for ac_exec_ext in '' $ac_executable_extensions; do
8281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8282 ac_cv_prog_ac_ct_LIPO="lipo"
8283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8284 break 2
8285 fi
8286 done
8287 done
8288 IFS=$as_save_IFS
8289
8290 fi
8291 fi
8292 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8293 if test -n "$ac_ct_LIPO"; then
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8295 $as_echo "$ac_ct_LIPO" >&6; }
8296 else
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298 $as_echo "no" >&6; }
8299 fi
8300
8301 if test "x$ac_ct_LIPO" = x; then
8302 LIPO=":"
8303 else
8304 case $cross_compiling:$ac_tool_warned in
8305 yes:)
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8308 ac_tool_warned=yes ;;
8309 esac
8310 LIPO=$ac_ct_LIPO
8311 fi
8312 else
8313 LIPO="$ac_cv_prog_LIPO"
8314 fi
8315
8316 if test -n "$ac_tool_prefix"; then
8317 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8318 set dummy ${ac_tool_prefix}otool; ac_word=$2
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8320 $as_echo_n "checking for $ac_word... " >&6; }
8321 if ${ac_cv_prog_OTOOL+:} false; then :
8322 $as_echo_n "(cached) " >&6
8323 else
8324 if test -n "$OTOOL"; then
8325 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8326 else
8327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328 for as_dir in $PATH
8329 do
8330 IFS=$as_save_IFS
8331 test -z "$as_dir" && as_dir=.
8332 for ac_exec_ext in '' $ac_executable_extensions; do
8333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8334 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8336 break 2
8337 fi
8338 done
8339 done
8340 IFS=$as_save_IFS
8341
8342 fi
8343 fi
8344 OTOOL=$ac_cv_prog_OTOOL
8345 if test -n "$OTOOL"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8347 $as_echo "$OTOOL" >&6; }
8348 else
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 $as_echo "no" >&6; }
8351 fi
8352
8353
8354 fi
8355 if test -z "$ac_cv_prog_OTOOL"; then
8356 ac_ct_OTOOL=$OTOOL
8357 # Extract the first word of "otool", so it can be a program name with args.
8358 set dummy otool; ac_word=$2
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8360 $as_echo_n "checking for $ac_word... " >&6; }
8361 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8362 $as_echo_n "(cached) " >&6
8363 else
8364 if test -n "$ac_ct_OTOOL"; then
8365 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8366 else
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 for as_dir in $PATH
8369 do
8370 IFS=$as_save_IFS
8371 test -z "$as_dir" && as_dir=.
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8374 ac_cv_prog_ac_ct_OTOOL="otool"
8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8376 break 2
8377 fi
8378 done
8379 done
8380 IFS=$as_save_IFS
8381
8382 fi
8383 fi
8384 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8385 if test -n "$ac_ct_OTOOL"; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8387 $as_echo "$ac_ct_OTOOL" >&6; }
8388 else
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8391 fi
8392
8393 if test "x$ac_ct_OTOOL" = x; then
8394 OTOOL=":"
8395 else
8396 case $cross_compiling:$ac_tool_warned in
8397 yes:)
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8400 ac_tool_warned=yes ;;
8401 esac
8402 OTOOL=$ac_ct_OTOOL
8403 fi
8404 else
8405 OTOOL="$ac_cv_prog_OTOOL"
8406 fi
8407
8408 if test -n "$ac_tool_prefix"; then
8409 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8410 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412 $as_echo_n "checking for $ac_word... " >&6; }
8413 if ${ac_cv_prog_OTOOL64+:} false; then :
8414 $as_echo_n "(cached) " >&6
8415 else
8416 if test -n "$OTOOL64"; then
8417 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8418 else
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 for as_dir in $PATH
8421 do
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8426 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 break 2
8429 fi
8430 done
8431 done
8432 IFS=$as_save_IFS
8433
8434 fi
8435 fi
8436 OTOOL64=$ac_cv_prog_OTOOL64
8437 if test -n "$OTOOL64"; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8439 $as_echo "$OTOOL64" >&6; }
8440 else
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442 $as_echo "no" >&6; }
8443 fi
8444
8445
8446 fi
8447 if test -z "$ac_cv_prog_OTOOL64"; then
8448 ac_ct_OTOOL64=$OTOOL64
8449 # Extract the first word of "otool64", so it can be a program name with args.
8450 set dummy otool64; ac_word=$2
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8452 $as_echo_n "checking for $ac_word... " >&6; }
8453 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8454 $as_echo_n "(cached) " >&6
8455 else
8456 if test -n "$ac_ct_OTOOL64"; then
8457 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8458 else
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 for as_dir in $PATH
8461 do
8462 IFS=$as_save_IFS
8463 test -z "$as_dir" && as_dir=.
8464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8466 ac_cv_prog_ac_ct_OTOOL64="otool64"
8467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 break 2
8469 fi
8470 done
8471 done
8472 IFS=$as_save_IFS
8473
8474 fi
8475 fi
8476 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8477 if test -n "$ac_ct_OTOOL64"; then
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8479 $as_echo "$ac_ct_OTOOL64" >&6; }
8480 else
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8482 $as_echo "no" >&6; }
8483 fi
8484
8485 if test "x$ac_ct_OTOOL64" = x; then
8486 OTOOL64=":"
8487 else
8488 case $cross_compiling:$ac_tool_warned in
8489 yes:)
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8492 ac_tool_warned=yes ;;
8493 esac
8494 OTOOL64=$ac_ct_OTOOL64
8495 fi
8496 else
8497 OTOOL64="$ac_cv_prog_OTOOL64"
8498 fi
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8527 $as_echo_n "checking for -single_module linker flag... " >&6; }
8528 if ${lt_cv_apple_cc_single_mod+:} false; then :
8529 $as_echo_n "(cached) " >&6
8530 else
8531 lt_cv_apple_cc_single_mod=no
8532 if test -z "${LT_MULTI_MODULE}"; then
8533 # By default we will add the -single_module flag. You can override
8534 # by either setting the environment variable LT_MULTI_MODULE
8535 # non-empty at configure time, or by adding -multi_module to the
8536 # link flags.
8537 rm -rf libconftest.dylib*
8538 echo "int foo(void){return 1;}" > conftest.c
8539 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8540 -dynamiclib -Wl,-single_module conftest.c" >&5
8541 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8542 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8543 _lt_result=$?
8544 # If there is a non-empty error log, and "single_module"
8545 # appears in it, assume the flag caused a linker warning
8546 if test -s conftest.err && $GREP single_module conftest.err; then
8547 cat conftest.err >&5
8548 # Otherwise, if the output was created with a 0 exit code from
8549 # the compiler, it worked.
8550 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8551 lt_cv_apple_cc_single_mod=yes
8552 else
8553 cat conftest.err >&5
8554 fi
8555 rm -rf libconftest.dylib*
8556 rm -f conftest.*
8557 fi
8558 fi
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8560 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8561
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8563 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8564 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8565 $as_echo_n "(cached) " >&6
8566 else
8567 lt_cv_ld_exported_symbols_list=no
8568 save_LDFLAGS=$LDFLAGS
8569 echo "_main" > conftest.sym
8570 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572 /* end confdefs.h. */
8573
8574 int
8575 main ()
8576 {
8577
8578 ;
8579 return 0;
8580 }
8581 _ACEOF
8582 if ac_fn_c_try_link "$LINENO"; then :
8583 lt_cv_ld_exported_symbols_list=yes
8584 else
8585 lt_cv_ld_exported_symbols_list=no
8586 fi
8587 rm -f core conftest.err conftest.$ac_objext \
8588 conftest$ac_exeext conftest.$ac_ext
8589 LDFLAGS="$save_LDFLAGS"
8590
8591 fi
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8593 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8594
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8596 $as_echo_n "checking for -force_load linker flag... " >&6; }
8597 if ${lt_cv_ld_force_load+:} false; then :
8598 $as_echo_n "(cached) " >&6
8599 else
8600 lt_cv_ld_force_load=no
8601 cat > conftest.c << _LT_EOF
8602 int forced_loaded() { return 2;}
8603 _LT_EOF
8604 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8605 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8606 echo "$AR cru libconftest.a conftest.o" >&5
8607 $AR cru libconftest.a conftest.o 2>&5
8608 echo "$RANLIB libconftest.a" >&5
8609 $RANLIB libconftest.a 2>&5
8610 cat > conftest.c << _LT_EOF
8611 int main() { return 0;}
8612 _LT_EOF
8613 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8614 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8615 _lt_result=$?
8616 if test -s conftest.err && $GREP force_load conftest.err; then
8617 cat conftest.err >&5
8618 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8619 lt_cv_ld_force_load=yes
8620 else
8621 cat conftest.err >&5
8622 fi
8623 rm -f conftest.err libconftest.a conftest conftest.c
8624 rm -rf conftest.dSYM
8625
8626 fi
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8628 $as_echo "$lt_cv_ld_force_load" >&6; }
8629 case $host_os in
8630 rhapsody* | darwin1.[012])
8631 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8632 darwin1.*)
8633 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8634 darwin*) # darwin 5.x on
8635 # if running on 10.5 or later, the deployment target defaults
8636 # to the OS version, if on x86, and 10.4, the deployment
8637 # target defaults to 10.4. Don't you love it?
8638 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8639 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8640 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8641 10.[012]*)
8642 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8643 10.*)
8644 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8645 esac
8646 ;;
8647 esac
8648 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8649 _lt_dar_single_mod='$single_module'
8650 fi
8651 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8652 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8653 else
8654 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8655 fi
8656 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8657 _lt_dsymutil='~$DSYMUTIL $lib || :'
8658 else
8659 _lt_dsymutil=
8660 fi
8661 ;;
8662 esac
8663
8664 ac_ext=c
8665 ac_cpp='$CPP $CPPFLAGS'
8666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8670 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8671 # On Suns, sometimes $CPP names a directory.
8672 if test -n "$CPP" && test -d "$CPP"; then
8673 CPP=
8674 fi
8675 if test -z "$CPP"; then
8676 if ${ac_cv_prog_CPP+:} false; then :
8677 $as_echo_n "(cached) " >&6
8678 else
8679 # Double quotes because CPP needs to be expanded
8680 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8681 do
8682 ac_preproc_ok=false
8683 for ac_c_preproc_warn_flag in '' yes
8684 do
8685 # Use a header file that comes with gcc, so configuring glibc
8686 # with a fresh cross-compiler works.
8687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8688 # <limits.h> exists even on freestanding compilers.
8689 # On the NeXT, cc -E runs the code through the compiler's parser,
8690 # not just through cpp. "Syntax error" is here to catch this case.
8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h. */
8693 #ifdef __STDC__
8694 # include <limits.h>
8695 #else
8696 # include <assert.h>
8697 #endif
8698 Syntax error
8699 _ACEOF
8700 if ac_fn_c_try_cpp "$LINENO"; then :
8701
8702 else
8703 # Broken: fails on valid input.
8704 continue
8705 fi
8706 rm -f conftest.err conftest.i conftest.$ac_ext
8707
8708 # OK, works on sane cases. Now check whether nonexistent headers
8709 # can be detected and how.
8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711 /* end confdefs.h. */
8712 #include <ac_nonexistent.h>
8713 _ACEOF
8714 if ac_fn_c_try_cpp "$LINENO"; then :
8715 # Broken: success on invalid input.
8716 continue
8717 else
8718 # Passes both tests.
8719 ac_preproc_ok=:
8720 break
8721 fi
8722 rm -f conftest.err conftest.i conftest.$ac_ext
8723
8724 done
8725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8726 rm -f conftest.i conftest.err conftest.$ac_ext
8727 if $ac_preproc_ok; then :
8728 break
8729 fi
8730
8731 done
8732 ac_cv_prog_CPP=$CPP
8733
8734 fi
8735 CPP=$ac_cv_prog_CPP
8736 else
8737 ac_cv_prog_CPP=$CPP
8738 fi
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8740 $as_echo "$CPP" >&6; }
8741 ac_preproc_ok=false
8742 for ac_c_preproc_warn_flag in '' yes
8743 do
8744 # Use a header file that comes with gcc, so configuring glibc
8745 # with a fresh cross-compiler works.
8746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8747 # <limits.h> exists even on freestanding compilers.
8748 # On the NeXT, cc -E runs the code through the compiler's parser,
8749 # not just through cpp. "Syntax error" is here to catch this case.
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8752 #ifdef __STDC__
8753 # include <limits.h>
8754 #else
8755 # include <assert.h>
8756 #endif
8757 Syntax error
8758 _ACEOF
8759 if ac_fn_c_try_cpp "$LINENO"; then :
8760
8761 else
8762 # Broken: fails on valid input.
8763 continue
8764 fi
8765 rm -f conftest.err conftest.i conftest.$ac_ext
8766
8767 # OK, works on sane cases. Now check whether nonexistent headers
8768 # can be detected and how.
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771 #include <ac_nonexistent.h>
8772 _ACEOF
8773 if ac_fn_c_try_cpp "$LINENO"; then :
8774 # Broken: success on invalid input.
8775 continue
8776 else
8777 # Passes both tests.
8778 ac_preproc_ok=:
8779 break
8780 fi
8781 rm -f conftest.err conftest.i conftest.$ac_ext
8782
8783 done
8784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8785 rm -f conftest.i conftest.err conftest.$ac_ext
8786 if $ac_preproc_ok; then :
8787
8788 else
8789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8791 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8792 See \`config.log' for more details" "$LINENO" 5; }
8793 fi
8794
8795 ac_ext=c
8796 ac_cpp='$CPP $CPPFLAGS'
8797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8800
8801
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8803 $as_echo_n "checking for ANSI C header files... " >&6; }
8804 if ${ac_cv_header_stdc+:} false; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h. */
8809 #include <stdlib.h>
8810 #include <stdarg.h>
8811 #include <string.h>
8812 #include <float.h>
8813
8814 int
8815 main ()
8816 {
8817
8818 ;
8819 return 0;
8820 }
8821 _ACEOF
8822 if ac_fn_c_try_compile "$LINENO"; then :
8823 ac_cv_header_stdc=yes
8824 else
8825 ac_cv_header_stdc=no
8826 fi
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828
8829 if test $ac_cv_header_stdc = yes; then
8830 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8833 #include <string.h>
8834
8835 _ACEOF
8836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8837 $EGREP "memchr" >/dev/null 2>&1; then :
8838
8839 else
8840 ac_cv_header_stdc=no
8841 fi
8842 rm -f conftest*
8843
8844 fi
8845
8846 if test $ac_cv_header_stdc = yes; then
8847 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849 /* end confdefs.h. */
8850 #include <stdlib.h>
8851
8852 _ACEOF
8853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8854 $EGREP "free" >/dev/null 2>&1; then :
8855
8856 else
8857 ac_cv_header_stdc=no
8858 fi
8859 rm -f conftest*
8860
8861 fi
8862
8863 if test $ac_cv_header_stdc = yes; then
8864 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8865 if test "$cross_compiling" = yes; then :
8866 :
8867 else
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8870 #include <ctype.h>
8871 #include <stdlib.h>
8872 #if ((' ' & 0x0FF) == 0x020)
8873 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8874 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8875 #else
8876 # define ISLOWER(c) \
8877 (('a' <= (c) && (c) <= 'i') \
8878 || ('j' <= (c) && (c) <= 'r') \
8879 || ('s' <= (c) && (c) <= 'z'))
8880 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8881 #endif
8882
8883 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8884 int
8885 main ()
8886 {
8887 int i;
8888 for (i = 0; i < 256; i++)
8889 if (XOR (islower (i), ISLOWER (i))
8890 || toupper (i) != TOUPPER (i))
8891 return 2;
8892 return 0;
8893 }
8894 _ACEOF
8895 if ac_fn_c_try_run "$LINENO"; then :
8896
8897 else
8898 ac_cv_header_stdc=no
8899 fi
8900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8901 conftest.$ac_objext conftest.beam conftest.$ac_ext
8902 fi
8903
8904 fi
8905 fi
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8907 $as_echo "$ac_cv_header_stdc" >&6; }
8908 if test $ac_cv_header_stdc = yes; then
8909
8910 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8911
8912 fi
8913
8914 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8915 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8916 inttypes.h stdint.h unistd.h
8917 do :
8918 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8919 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8920 "
8921 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8922 cat >>confdefs.h <<_ACEOF
8923 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8924 _ACEOF
8925
8926 fi
8927
8928 done
8929
8930
8931 for ac_header in dlfcn.h
8932 do :
8933 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8934 "
8935 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8936 cat >>confdefs.h <<_ACEOF
8937 #define HAVE_DLFCN_H 1
8938 _ACEOF
8939
8940 fi
8941
8942 done
8943
8944
8945
8946
8947
8948 # Set options
8949 enable_dlopen=yes
8950
8951
8952
8953
8954 enable_win32_dll=no
8955
8956
8957 # Check whether --enable-shared was given.
8958 if test "${enable_shared+set}" = set; then :
8959 enableval=$enable_shared; p=${PACKAGE-default}
8960 case $enableval in
8961 yes) enable_shared=yes ;;
8962 no) enable_shared=no ;;
8963 *)
8964 enable_shared=no
8965 # Look at the argument we got. We use all the common list separators.
8966 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8967 for pkg in $enableval; do
8968 IFS="$lt_save_ifs"
8969 if test "X$pkg" = "X$p"; then
8970 enable_shared=yes
8971 fi
8972 done
8973 IFS="$lt_save_ifs"
8974 ;;
8975 esac
8976 else
8977 enable_shared=yes
8978 fi
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988 # Check whether --enable-static was given.
8989 if test "${enable_static+set}" = set; then :
8990 enableval=$enable_static; p=${PACKAGE-default}
8991 case $enableval in
8992 yes) enable_static=yes ;;
8993 no) enable_static=no ;;
8994 *)
8995 enable_static=no
8996 # Look at the argument we got. We use all the common list separators.
8997 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8998 for pkg in $enableval; do
8999 IFS="$lt_save_ifs"
9000 if test "X$pkg" = "X$p"; then
9001 enable_static=yes
9002 fi
9003 done
9004 IFS="$lt_save_ifs"
9005 ;;
9006 esac
9007 else
9008 enable_static=yes
9009 fi
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020 # Check whether --with-pic was given.
9021 if test "${with_pic+set}" = set; then :
9022 withval=$with_pic; lt_p=${PACKAGE-default}
9023 case $withval in
9024 yes|no) pic_mode=$withval ;;
9025 *)
9026 pic_mode=default
9027 # Look at the argument we got. We use all the common list separators.
9028 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9029 for lt_pkg in $withval; do
9030 IFS="$lt_save_ifs"
9031 if test "X$lt_pkg" = "X$lt_p"; then
9032 pic_mode=yes
9033 fi
9034 done
9035 IFS="$lt_save_ifs"
9036 ;;
9037 esac
9038 else
9039 pic_mode=default
9040 fi
9041
9042
9043 test -z "$pic_mode" && pic_mode=default
9044
9045
9046
9047
9048
9049
9050
9051 # Check whether --enable-fast-install was given.
9052 if test "${enable_fast_install+set}" = set; then :
9053 enableval=$enable_fast_install; p=${PACKAGE-default}
9054 case $enableval in
9055 yes) enable_fast_install=yes ;;
9056 no) enable_fast_install=no ;;
9057 *)
9058 enable_fast_install=no
9059 # Look at the argument we got. We use all the common list separators.
9060 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9061 for pkg in $enableval; do
9062 IFS="$lt_save_ifs"
9063 if test "X$pkg" = "X$p"; then
9064 enable_fast_install=yes
9065 fi
9066 done
9067 IFS="$lt_save_ifs"
9068 ;;
9069 esac
9070 else
9071 enable_fast_install=yes
9072 fi
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084 # This can be used to rebuild libtool when needed
9085 LIBTOOL_DEPS="$ltmain"
9086
9087 # Always use our own libtool.
9088 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119 test -z "$LN_S" && LN_S="ln -s"
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134 if test -n "${ZSH_VERSION+set}" ; then
9135 setopt NO_GLOB_SUBST
9136 fi
9137
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9139 $as_echo_n "checking for objdir... " >&6; }
9140 if ${lt_cv_objdir+:} false; then :
9141 $as_echo_n "(cached) " >&6
9142 else
9143 rm -f .libs 2>/dev/null
9144 mkdir .libs 2>/dev/null
9145 if test -d .libs; then
9146 lt_cv_objdir=.libs
9147 else
9148 # MS-DOS does not allow filenames that begin with a dot.
9149 lt_cv_objdir=_libs
9150 fi
9151 rmdir .libs 2>/dev/null
9152 fi
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9154 $as_echo "$lt_cv_objdir" >&6; }
9155 objdir=$lt_cv_objdir
9156
9157
9158
9159
9160
9161 cat >>confdefs.h <<_ACEOF
9162 #define LT_OBJDIR "$lt_cv_objdir/"
9163 _ACEOF
9164
9165
9166
9167
9168 case $host_os in
9169 aix3*)
9170 # AIX sometimes has problems with the GCC collect2 program. For some
9171 # reason, if we set the COLLECT_NAMES environment variable, the problems
9172 # vanish in a puff of smoke.
9173 if test "X${COLLECT_NAMES+set}" != Xset; then
9174 COLLECT_NAMES=
9175 export COLLECT_NAMES
9176 fi
9177 ;;
9178 esac
9179
9180 # Global variables:
9181 ofile=libtool
9182 can_build_shared=yes
9183
9184 # All known linkers require a `.a' archive for static linking (except MSVC,
9185 # which needs '.lib').
9186 libext=a
9187
9188 with_gnu_ld="$lt_cv_prog_gnu_ld"
9189
9190 old_CC="$CC"
9191 old_CFLAGS="$CFLAGS"
9192
9193 # Set sane defaults for various variables
9194 test -z "$CC" && CC=cc
9195 test -z "$LTCC" && LTCC=$CC
9196 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9197 test -z "$LD" && LD=ld
9198 test -z "$ac_objext" && ac_objext=o
9199
9200 for cc_temp in $compiler""; do
9201 case $cc_temp in
9202 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9203 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9204 \-*) ;;
9205 *) break;;
9206 esac
9207 done
9208 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9209
9210
9211 # Only perform the check for file, if the check method requires it
9212 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9213 case $deplibs_check_method in
9214 file_magic*)
9215 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9217 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9218 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9219 $as_echo_n "(cached) " >&6
9220 else
9221 case $MAGIC_CMD in
9222 [\\/*] | ?:[\\/]*)
9223 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9224 ;;
9225 *)
9226 lt_save_MAGIC_CMD="$MAGIC_CMD"
9227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9228 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9229 for ac_dir in $ac_dummy; do
9230 IFS="$lt_save_ifs"
9231 test -z "$ac_dir" && ac_dir=.
9232 if test -f $ac_dir/${ac_tool_prefix}file; then
9233 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9234 if test -n "$file_magic_test_file"; then
9235 case $deplibs_check_method in
9236 "file_magic "*)
9237 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9238 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9239 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9240 $EGREP "$file_magic_regex" > /dev/null; then
9241 :
9242 else
9243 cat <<_LT_EOF 1>&2
9244
9245 *** Warning: the command libtool uses to detect shared libraries,
9246 *** $file_magic_cmd, produces output that libtool cannot recognize.
9247 *** The result is that libtool may fail to recognize shared libraries
9248 *** as such. This will affect the creation of libtool libraries that
9249 *** depend on shared libraries, but programs linked with such libtool
9250 *** libraries will work regardless of this problem. Nevertheless, you
9251 *** may want to report the problem to your system manager and/or to
9252 *** [email protected]
9253
9254 _LT_EOF
9255 fi ;;
9256 esac
9257 fi
9258 break
9259 fi
9260 done
9261 IFS="$lt_save_ifs"
9262 MAGIC_CMD="$lt_save_MAGIC_CMD"
9263 ;;
9264 esac
9265 fi
9266
9267 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9268 if test -n "$MAGIC_CMD"; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9270 $as_echo "$MAGIC_CMD" >&6; }
9271 else
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 $as_echo "no" >&6; }
9274 fi
9275
9276
9277
9278
9279
9280 if test -z "$lt_cv_path_MAGIC_CMD"; then
9281 if test -n "$ac_tool_prefix"; then
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9283 $as_echo_n "checking for file... " >&6; }
9284 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 case $MAGIC_CMD in
9288 [\\/*] | ?:[\\/]*)
9289 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9290 ;;
9291 *)
9292 lt_save_MAGIC_CMD="$MAGIC_CMD"
9293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9294 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9295 for ac_dir in $ac_dummy; do
9296 IFS="$lt_save_ifs"
9297 test -z "$ac_dir" && ac_dir=.
9298 if test -f $ac_dir/file; then
9299 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9300 if test -n "$file_magic_test_file"; then
9301 case $deplibs_check_method in
9302 "file_magic "*)
9303 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9305 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9306 $EGREP "$file_magic_regex" > /dev/null; then
9307 :
9308 else
9309 cat <<_LT_EOF 1>&2
9310
9311 *** Warning: the command libtool uses to detect shared libraries,
9312 *** $file_magic_cmd, produces output that libtool cannot recognize.
9313 *** The result is that libtool may fail to recognize shared libraries
9314 *** as such. This will affect the creation of libtool libraries that
9315 *** depend on shared libraries, but programs linked with such libtool
9316 *** libraries will work regardless of this problem. Nevertheless, you
9317 *** may want to report the problem to your system manager and/or to
9318 *** [email protected]
9319
9320 _LT_EOF
9321 fi ;;
9322 esac
9323 fi
9324 break
9325 fi
9326 done
9327 IFS="$lt_save_ifs"
9328 MAGIC_CMD="$lt_save_MAGIC_CMD"
9329 ;;
9330 esac
9331 fi
9332
9333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9334 if test -n "$MAGIC_CMD"; then
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9336 $as_echo "$MAGIC_CMD" >&6; }
9337 else
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9339 $as_echo "no" >&6; }
9340 fi
9341
9342
9343 else
9344 MAGIC_CMD=:
9345 fi
9346 fi
9347
9348 fi
9349 ;;
9350 esac
9351
9352 # Use C for the default configuration in the libtool script
9353
9354 lt_save_CC="$CC"
9355 ac_ext=c
9356 ac_cpp='$CPP $CPPFLAGS'
9357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9360
9361
9362 # Source file extension for C test sources.
9363 ac_ext=c
9364
9365 # Object file extension for compiled C test sources.
9366 objext=o
9367 objext=$objext
9368
9369 # Code to be used in simple compile tests
9370 lt_simple_compile_test_code="int some_variable = 0;"
9371
9372 # Code to be used in simple link tests
9373 lt_simple_link_test_code='int main(){return(0);}'
9374
9375
9376
9377
9378
9379
9380
9381 # If no C compiler was specified, use CC.
9382 LTCC=${LTCC-"$CC"}
9383
9384 # If no C compiler flags were specified, use CFLAGS.
9385 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9386
9387 # Allow CC to be a program name with arguments.
9388 compiler=$CC
9389
9390 # Save the default compiler, since it gets overwritten when the other
9391 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9392 compiler_DEFAULT=$CC
9393
9394 # save warnings/boilerplate of simple test code
9395 ac_outfile=conftest.$ac_objext
9396 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9397 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9398 _lt_compiler_boilerplate=`cat conftest.err`
9399 $RM conftest*
9400
9401 ac_outfile=conftest.$ac_objext
9402 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9403 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9404 _lt_linker_boilerplate=`cat conftest.err`
9405 $RM -r conftest*
9406
9407
9408 if test -n "$compiler"; then
9409
9410 lt_prog_compiler_no_builtin_flag=
9411
9412 if test "$GCC" = yes; then
9413 case $cc_basename in
9414 nvcc*)
9415 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9416 *)
9417 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9418 esac
9419
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9421 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9422 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9423 $as_echo_n "(cached) " >&6
9424 else
9425 lt_cv_prog_compiler_rtti_exceptions=no
9426 ac_outfile=conftest.$ac_objext
9427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9428 lt_compiler_flag="-fno-rtti -fno-exceptions"
9429 # Insert the option either (1) after the last *FLAGS variable, or
9430 # (2) before a word containing "conftest.", or (3) at the end.
9431 # Note that $ac_compile itself does not contain backslashes and begins
9432 # with a dollar sign (not a hyphen), so the echo should work correctly.
9433 # The option is referenced via a variable to avoid confusing sed.
9434 lt_compile=`echo "$ac_compile" | $SED \
9435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9437 -e 's:$: $lt_compiler_flag:'`
9438 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9439 (eval "$lt_compile" 2>conftest.err)
9440 ac_status=$?
9441 cat conftest.err >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 if (exit $ac_status) && test -s "$ac_outfile"; then
9444 # The compiler can only warn and ignore the option if not recognized
9445 # So say no if there are warnings other than the usual output.
9446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9448 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9449 lt_cv_prog_compiler_rtti_exceptions=yes
9450 fi
9451 fi
9452 $RM conftest*
9453
9454 fi
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9456 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9457
9458 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9459 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9460 else
9461 :
9462 fi
9463
9464 fi
9465
9466
9467
9468
9469
9470
9471 lt_prog_compiler_wl=
9472 lt_prog_compiler_pic=
9473 lt_prog_compiler_static=
9474
9475
9476 if test "$GCC" = yes; then
9477 lt_prog_compiler_wl='-Wl,'
9478 lt_prog_compiler_static='-static'
9479
9480 case $host_os in
9481 aix*)
9482 # All AIX code is PIC.
9483 if test "$host_cpu" = ia64; then
9484 # AIX 5 now supports IA64 processor
9485 lt_prog_compiler_static='-Bstatic'
9486 fi
9487 ;;
9488
9489 amigaos*)
9490 case $host_cpu in
9491 powerpc)
9492 # see comment about AmigaOS4 .so support
9493 lt_prog_compiler_pic='-fPIC'
9494 ;;
9495 m68k)
9496 # FIXME: we need at least 68020 code to build shared libraries, but
9497 # adding the `-m68020' flag to GCC prevents building anything better,
9498 # like `-m68040'.
9499 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9500 ;;
9501 esac
9502 ;;
9503
9504 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9505 # PIC is the default for these OSes.
9506 ;;
9507
9508 mingw* | cygwin* | pw32* | os2* | cegcc*)
9509 # This hack is so that the source file can tell whether it is being
9510 # built for inclusion in a dll (and should export symbols for example).
9511 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9512 # (--disable-auto-import) libraries
9513 lt_prog_compiler_pic='-DDLL_EXPORT'
9514 ;;
9515
9516 darwin* | rhapsody*)
9517 # PIC is the default on this platform
9518 # Common symbols not allowed in MH_DYLIB files
9519 lt_prog_compiler_pic='-fno-common'
9520 ;;
9521
9522 haiku*)
9523 # PIC is the default for Haiku.
9524 # The "-static" flag exists, but is broken.
9525 lt_prog_compiler_static=
9526 ;;
9527
9528 hpux*)
9529 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9530 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9531 # sets the default TLS model and affects inlining.
9532 case $host_cpu in
9533 hppa*64*)
9534 # +Z the default
9535 ;;
9536 *)
9537 lt_prog_compiler_pic='-fPIC'
9538 ;;
9539 esac
9540 ;;
9541
9542 interix[3-9]*)
9543 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9544 # Instead, we relocate shared libraries at runtime.
9545 ;;
9546
9547 msdosdjgpp*)
9548 # Just because we use GCC doesn't mean we suddenly get shared libraries
9549 # on systems that don't support them.
9550 lt_prog_compiler_can_build_shared=no
9551 enable_shared=no
9552 ;;
9553
9554 *nto* | *qnx*)
9555 # QNX uses GNU C++, but need to define -shared option too, otherwise
9556 # it will coredump.
9557 lt_prog_compiler_pic='-fPIC -shared'
9558 ;;
9559
9560 sysv4*MP*)
9561 if test -d /usr/nec; then
9562 lt_prog_compiler_pic=-Kconform_pic
9563 fi
9564 ;;
9565
9566 *)
9567 lt_prog_compiler_pic='-fPIC'
9568 ;;
9569 esac
9570
9571 case $cc_basename in
9572 nvcc*) # Cuda Compiler Driver 2.2
9573 lt_prog_compiler_wl='-Xlinker '
9574 if test -n "$lt_prog_compiler_pic"; then
9575 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9576 fi
9577 ;;
9578 esac
9579 else
9580 # PORTME Check for flag to pass linker flags through the system compiler.
9581 case $host_os in
9582 aix*)
9583 lt_prog_compiler_wl='-Wl,'
9584 if test "$host_cpu" = ia64; then
9585 # AIX 5 now supports IA64 processor
9586 lt_prog_compiler_static='-Bstatic'
9587 else
9588 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9589 fi
9590 ;;
9591
9592 mingw* | cygwin* | pw32* | os2* | cegcc*)
9593 # This hack is so that the source file can tell whether it is being
9594 # built for inclusion in a dll (and should export symbols for example).
9595 lt_prog_compiler_pic='-DDLL_EXPORT'
9596 ;;
9597
9598 hpux9* | hpux10* | hpux11*)
9599 lt_prog_compiler_wl='-Wl,'
9600 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9601 # not for PA HP-UX.
9602 case $host_cpu in
9603 hppa*64*|ia64*)
9604 # +Z the default
9605 ;;
9606 *)
9607 lt_prog_compiler_pic='+Z'
9608 ;;
9609 esac
9610 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9611 lt_prog_compiler_static='${wl}-a ${wl}archive'
9612 ;;
9613
9614 irix5* | irix6* | nonstopux*)
9615 lt_prog_compiler_wl='-Wl,'
9616 # PIC (with -KPIC) is the default.
9617 lt_prog_compiler_static='-non_shared'
9618 ;;
9619
9620 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9621 case $cc_basename in
9622 # old Intel for x86_64 which still supported -KPIC.
9623 ecc*)
9624 lt_prog_compiler_wl='-Wl,'
9625 lt_prog_compiler_pic='-KPIC'
9626 lt_prog_compiler_static='-static'
9627 ;;
9628 # icc used to be incompatible with GCC.
9629 # ICC 10 doesn't accept -KPIC any more.
9630 icc* | ifort*)
9631 lt_prog_compiler_wl='-Wl,'
9632 lt_prog_compiler_pic='-fPIC'
9633 lt_prog_compiler_static='-static'
9634 ;;
9635 # Lahey Fortran 8.1.
9636 lf95*)
9637 lt_prog_compiler_wl='-Wl,'
9638 lt_prog_compiler_pic='--shared'
9639 lt_prog_compiler_static='--static'
9640 ;;
9641 nagfor*)
9642 # NAG Fortran compiler
9643 lt_prog_compiler_wl='-Wl,-Wl,,'
9644 lt_prog_compiler_pic='-PIC'
9645 lt_prog_compiler_static='-Bstatic'
9646 ;;
9647 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9648 # Portland Group compilers (*not* the Pentium gcc compiler,
9649 # which looks to be a dead project)
9650 lt_prog_compiler_wl='-Wl,'
9651 lt_prog_compiler_pic='-fpic'
9652 lt_prog_compiler_static='-Bstatic'
9653 ;;
9654 ccc*)
9655 lt_prog_compiler_wl='-Wl,'
9656 # All Alpha code is PIC.
9657 lt_prog_compiler_static='-non_shared'
9658 ;;
9659 xl* | bgxl* | bgf* | mpixl*)
9660 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9661 lt_prog_compiler_wl='-Wl,'
9662 lt_prog_compiler_pic='-qpic'
9663 lt_prog_compiler_static='-qstaticlink'
9664 ;;
9665 *)
9666 case `$CC -V 2>&1 | sed 5q` in
9667 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9668 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9669 lt_prog_compiler_pic='-KPIC'
9670 lt_prog_compiler_static='-Bstatic'
9671 lt_prog_compiler_wl=''
9672 ;;
9673 *Sun\ F* | *Sun*Fortran*)
9674 lt_prog_compiler_pic='-KPIC'
9675 lt_prog_compiler_static='-Bstatic'
9676 lt_prog_compiler_wl='-Qoption ld '
9677 ;;
9678 *Sun\ C*)
9679 # Sun C 5.9
9680 lt_prog_compiler_pic='-KPIC'
9681 lt_prog_compiler_static='-Bstatic'
9682 lt_prog_compiler_wl='-Wl,'
9683 ;;
9684 *Intel*\ [CF]*Compiler*)
9685 lt_prog_compiler_wl='-Wl,'
9686 lt_prog_compiler_pic='-fPIC'
9687 lt_prog_compiler_static='-static'
9688 ;;
9689 *Portland\ Group*)
9690 lt_prog_compiler_wl='-Wl,'
9691 lt_prog_compiler_pic='-fpic'
9692 lt_prog_compiler_static='-Bstatic'
9693 ;;
9694 esac
9695 ;;
9696 esac
9697 ;;
9698
9699 newsos6)
9700 lt_prog_compiler_pic='-KPIC'
9701 lt_prog_compiler_static='-Bstatic'
9702 ;;
9703
9704 *nto* | *qnx*)
9705 # QNX uses GNU C++, but need to define -shared option too, otherwise
9706 # it will coredump.
9707 lt_prog_compiler_pic='-fPIC -shared'
9708 ;;
9709
9710 osf3* | osf4* | osf5*)
9711 lt_prog_compiler_wl='-Wl,'
9712 # All OSF/1 code is PIC.
9713 lt_prog_compiler_static='-non_shared'
9714 ;;
9715
9716 rdos*)
9717 lt_prog_compiler_static='-non_shared'
9718 ;;
9719
9720 solaris*)
9721 lt_prog_compiler_pic='-KPIC'
9722 lt_prog_compiler_static='-Bstatic'
9723 case $cc_basename in
9724 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9725 lt_prog_compiler_wl='-Qoption ld ';;
9726 *)
9727 lt_prog_compiler_wl='-Wl,';;
9728 esac
9729 ;;
9730
9731 sunos4*)
9732 lt_prog_compiler_wl='-Qoption ld '
9733 lt_prog_compiler_pic='-PIC'
9734 lt_prog_compiler_static='-Bstatic'
9735 ;;
9736
9737 sysv4 | sysv4.2uw2* | sysv4.3*)
9738 lt_prog_compiler_wl='-Wl,'
9739 lt_prog_compiler_pic='-KPIC'
9740 lt_prog_compiler_static='-Bstatic'
9741 ;;
9742
9743 sysv4*MP*)
9744 if test -d /usr/nec ;then
9745 lt_prog_compiler_pic='-Kconform_pic'
9746 lt_prog_compiler_static='-Bstatic'
9747 fi
9748 ;;
9749
9750 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9751 lt_prog_compiler_wl='-Wl,'
9752 lt_prog_compiler_pic='-KPIC'
9753 lt_prog_compiler_static='-Bstatic'
9754 ;;
9755
9756 unicos*)
9757 lt_prog_compiler_wl='-Wl,'
9758 lt_prog_compiler_can_build_shared=no
9759 ;;
9760
9761 uts4*)
9762 lt_prog_compiler_pic='-pic'
9763 lt_prog_compiler_static='-Bstatic'
9764 ;;
9765
9766 *)
9767 lt_prog_compiler_can_build_shared=no
9768 ;;
9769 esac
9770 fi
9771
9772 case $host_os in
9773 # For platforms which do not support PIC, -DPIC is meaningless:
9774 *djgpp*)
9775 lt_prog_compiler_pic=
9776 ;;
9777 *)
9778 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9779 ;;
9780 esac
9781
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9783 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9784 if ${lt_cv_prog_compiler_pic+:} false; then :
9785 $as_echo_n "(cached) " >&6
9786 else
9787 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9788 fi
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9790 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9791 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9792
9793 #
9794 # Check to make sure the PIC flag actually works.
9795 #
9796 if test -n "$lt_prog_compiler_pic"; then
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9798 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9799 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9800 $as_echo_n "(cached) " >&6
9801 else
9802 lt_cv_prog_compiler_pic_works=no
9803 ac_outfile=conftest.$ac_objext
9804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9805 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9806 # Insert the option either (1) after the last *FLAGS variable, or
9807 # (2) before a word containing "conftest.", or (3) at the end.
9808 # Note that $ac_compile itself does not contain backslashes and begins
9809 # with a dollar sign (not a hyphen), so the echo should work correctly.
9810 # The option is referenced via a variable to avoid confusing sed.
9811 lt_compile=`echo "$ac_compile" | $SED \
9812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9814 -e 's:$: $lt_compiler_flag:'`
9815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9816 (eval "$lt_compile" 2>conftest.err)
9817 ac_status=$?
9818 cat conftest.err >&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 if (exit $ac_status) && test -s "$ac_outfile"; then
9821 # The compiler can only warn and ignore the option if not recognized
9822 # So say no if there are warnings other than the usual output.
9823 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9825 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9826 lt_cv_prog_compiler_pic_works=yes
9827 fi
9828 fi
9829 $RM conftest*
9830
9831 fi
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9833 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9834
9835 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9836 case $lt_prog_compiler_pic in
9837 "" | " "*) ;;
9838 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9839 esac
9840 else
9841 lt_prog_compiler_pic=
9842 lt_prog_compiler_can_build_shared=no
9843 fi
9844
9845 fi
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857 #
9858 # Check to make sure the static flag actually works.
9859 #
9860 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9862 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9863 if ${lt_cv_prog_compiler_static_works+:} false; then :
9864 $as_echo_n "(cached) " >&6
9865 else
9866 lt_cv_prog_compiler_static_works=no
9867 save_LDFLAGS="$LDFLAGS"
9868 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9869 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9870 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9871 # The linker can only warn and ignore the option if not recognized
9872 # So say no if there are warnings
9873 if test -s conftest.err; then
9874 # Append any errors to the config.log.
9875 cat conftest.err 1>&5
9876 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9878 if diff conftest.exp conftest.er2 >/dev/null; then
9879 lt_cv_prog_compiler_static_works=yes
9880 fi
9881 else
9882 lt_cv_prog_compiler_static_works=yes
9883 fi
9884 fi
9885 $RM -r conftest*
9886 LDFLAGS="$save_LDFLAGS"
9887
9888 fi
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9890 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9891
9892 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9893 :
9894 else
9895 lt_prog_compiler_static=
9896 fi
9897
9898
9899
9900
9901
9902
9903
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9905 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9906 if ${lt_cv_prog_compiler_c_o+:} false; then :
9907 $as_echo_n "(cached) " >&6
9908 else
9909 lt_cv_prog_compiler_c_o=no
9910 $RM -r conftest 2>/dev/null
9911 mkdir conftest
9912 cd conftest
9913 mkdir out
9914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9915
9916 lt_compiler_flag="-o out/conftest2.$ac_objext"
9917 # Insert the option either (1) after the last *FLAGS variable, or
9918 # (2) before a word containing "conftest.", or (3) at the end.
9919 # Note that $ac_compile itself does not contain backslashes and begins
9920 # with a dollar sign (not a hyphen), so the echo should work correctly.
9921 lt_compile=`echo "$ac_compile" | $SED \
9922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9924 -e 's:$: $lt_compiler_flag:'`
9925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9926 (eval "$lt_compile" 2>out/conftest.err)
9927 ac_status=$?
9928 cat out/conftest.err >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9931 then
9932 # The compiler can only warn and ignore the option if not recognized
9933 # So say no if there are warnings
9934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9935 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9936 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9937 lt_cv_prog_compiler_c_o=yes
9938 fi
9939 fi
9940 chmod u+w . 2>&5
9941 $RM conftest*
9942 # SGI C++ compiler will create directory out/ii_files/ for
9943 # template instantiation
9944 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9945 $RM out/* && rmdir out
9946 cd ..
9947 $RM -r conftest
9948 $RM conftest*
9949
9950 fi
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9952 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9953
9954
9955
9956
9957
9958
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9960 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9961 if ${lt_cv_prog_compiler_c_o+:} false; then :
9962 $as_echo_n "(cached) " >&6
9963 else
9964 lt_cv_prog_compiler_c_o=no
9965 $RM -r conftest 2>/dev/null
9966 mkdir conftest
9967 cd conftest
9968 mkdir out
9969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9970
9971 lt_compiler_flag="-o out/conftest2.$ac_objext"
9972 # Insert the option either (1) after the last *FLAGS variable, or
9973 # (2) before a word containing "conftest.", or (3) at the end.
9974 # Note that $ac_compile itself does not contain backslashes and begins
9975 # with a dollar sign (not a hyphen), so the echo should work correctly.
9976 lt_compile=`echo "$ac_compile" | $SED \
9977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9979 -e 's:$: $lt_compiler_flag:'`
9980 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9981 (eval "$lt_compile" 2>out/conftest.err)
9982 ac_status=$?
9983 cat out/conftest.err >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9986 then
9987 # The compiler can only warn and ignore the option if not recognized
9988 # So say no if there are warnings
9989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9990 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9991 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9992 lt_cv_prog_compiler_c_o=yes
9993 fi
9994 fi
9995 chmod u+w . 2>&5
9996 $RM conftest*
9997 # SGI C++ compiler will create directory out/ii_files/ for
9998 # template instantiation
9999 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10000 $RM out/* && rmdir out
10001 cd ..
10002 $RM -r conftest
10003 $RM conftest*
10004
10005 fi
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10007 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10008
10009
10010
10011
10012 hard_links="nottested"
10013 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10014 # do not overwrite the value of need_locks provided by the user
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10016 $as_echo_n "checking if we can lock with hard links... " >&6; }
10017 hard_links=yes
10018 $RM conftest*
10019 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10020 touch conftest.a
10021 ln conftest.a conftest.b 2>&5 || hard_links=no
10022 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10024 $as_echo "$hard_links" >&6; }
10025 if test "$hard_links" = no; then
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10027 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10028 need_locks=warn
10029 fi
10030 else
10031 need_locks=no
10032 fi
10033
10034
10035
10036
10037
10038
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10040 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10041
10042 runpath_var=
10043 allow_undefined_flag=
10044 always_export_symbols=no
10045 archive_cmds=
10046 archive_expsym_cmds=
10047 compiler_needs_object=no
10048 enable_shared_with_static_runtimes=no
10049 export_dynamic_flag_spec=
10050 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10051 hardcode_automatic=no
10052 hardcode_direct=no
10053 hardcode_direct_absolute=no
10054 hardcode_libdir_flag_spec=
10055 hardcode_libdir_separator=
10056 hardcode_minus_L=no
10057 hardcode_shlibpath_var=unsupported
10058 inherit_rpath=no
10059 link_all_deplibs=unknown
10060 module_cmds=
10061 module_expsym_cmds=
10062 old_archive_from_new_cmds=
10063 old_archive_from_expsyms_cmds=
10064 thread_safe_flag_spec=
10065 whole_archive_flag_spec=
10066 # include_expsyms should be a list of space-separated symbols to be *always*
10067 # included in the symbol list
10068 include_expsyms=
10069 # exclude_expsyms can be an extended regexp of symbols to exclude
10070 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10071 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10072 # as well as any symbol that contains `d'.
10073 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10074 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10075 # platforms (ab)use it in PIC code, but their linkers get confused if
10076 # the symbol is explicitly referenced. Since portable code cannot
10077 # rely on this symbol name, it's probably fine to never include it in
10078 # preloaded symbol tables.
10079 # Exclude shared library initialization/finalization symbols.
10080 extract_expsyms_cmds=
10081
10082 case $host_os in
10083 cygwin* | mingw* | pw32* | cegcc*)
10084 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10085 # When not using gcc, we currently assume that we are using
10086 # Microsoft Visual C++.
10087 if test "$GCC" != yes; then
10088 with_gnu_ld=no
10089 fi
10090 ;;
10091 interix*)
10092 # we just hope/assume this is gcc and not c89 (= MSVC++)
10093 with_gnu_ld=yes
10094 ;;
10095 openbsd*)
10096 with_gnu_ld=no
10097 ;;
10098 linux* | k*bsd*-gnu | gnu*)
10099 link_all_deplibs=no
10100 ;;
10101 esac
10102
10103 ld_shlibs=yes
10104
10105 # On some targets, GNU ld is compatible enough with the native linker
10106 # that we're better off using the native interface for both.
10107 lt_use_gnu_ld_interface=no
10108 if test "$with_gnu_ld" = yes; then
10109 case $host_os in
10110 aix*)
10111 # The AIX port of GNU ld has always aspired to compatibility
10112 # with the native linker. However, as the warning in the GNU ld
10113 # block says, versions before 2.19.5* couldn't really create working
10114 # shared libraries, regardless of the interface used.
10115 case `$LD -v 2>&1` in
10116 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10117 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10118 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10119 *)
10120 lt_use_gnu_ld_interface=yes
10121 ;;
10122 esac
10123 ;;
10124 *)
10125 lt_use_gnu_ld_interface=yes
10126 ;;
10127 esac
10128 fi
10129
10130 if test "$lt_use_gnu_ld_interface" = yes; then
10131 # If archive_cmds runs LD, not CC, wlarc should be empty
10132 wlarc='${wl}'
10133
10134 # Set some defaults for GNU ld with shared library support. These
10135 # are reset later if shared libraries are not supported. Putting them
10136 # here allows them to be overridden if necessary.
10137 runpath_var=LD_RUN_PATH
10138 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10139 export_dynamic_flag_spec='${wl}--export-dynamic'
10140 # ancient GNU ld didn't support --whole-archive et. al.
10141 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10142 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10143 else
10144 whole_archive_flag_spec=
10145 fi
10146 supports_anon_versioning=no
10147 case `$LD -v 2>&1` in
10148 *GNU\ gold*) supports_anon_versioning=yes ;;
10149 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10150 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10151 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10152 *\ 2.11.*) ;; # other 2.11 versions
10153 *) supports_anon_versioning=yes ;;
10154 esac
10155
10156 # See if GNU ld supports shared libraries.
10157 case $host_os in
10158 aix[3-9]*)
10159 # On AIX/PPC, the GNU linker is very broken
10160 if test "$host_cpu" != ia64; then
10161 ld_shlibs=no
10162 cat <<_LT_EOF 1>&2
10163
10164 *** Warning: the GNU linker, at least up to release 2.19, is reported
10165 *** to be unable to reliably create shared libraries on AIX.
10166 *** Therefore, libtool is disabling shared libraries support. If you
10167 *** really care for shared libraries, you may want to install binutils
10168 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10169 *** You will then need to restart the configuration process.
10170
10171 _LT_EOF
10172 fi
10173 ;;
10174
10175 amigaos*)
10176 case $host_cpu in
10177 powerpc)
10178 # see comment about AmigaOS4 .so support
10179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10180 archive_expsym_cmds=''
10181 ;;
10182 m68k)
10183 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)'
10184 hardcode_libdir_flag_spec='-L$libdir'
10185 hardcode_minus_L=yes
10186 ;;
10187 esac
10188 ;;
10189
10190 beos*)
10191 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10192 allow_undefined_flag=unsupported
10193 # Joseph Beckenbach <[email protected]> says some releases of gcc
10194 # support --undefined. This deserves some investigation. FIXME
10195 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10196 else
10197 ld_shlibs=no
10198 fi
10199 ;;
10200
10201 cygwin* | mingw* | pw32* | cegcc*)
10202 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10203 # as there is no search path for DLLs.
10204 hardcode_libdir_flag_spec='-L$libdir'
10205 export_dynamic_flag_spec='${wl}--export-all-symbols'
10206 allow_undefined_flag=unsupported
10207 always_export_symbols=no
10208 enable_shared_with_static_runtimes=yes
10209 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10210 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10211
10212 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10214 # If the export-symbols file already is a .def file (1st line
10215 # is EXPORTS), use it as is; otherwise, prepend...
10216 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10217 cp $export_symbols $output_objdir/$soname.def;
10218 else
10219 echo EXPORTS > $output_objdir/$soname.def;
10220 cat $export_symbols >> $output_objdir/$soname.def;
10221 fi~
10222 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10223 else
10224 ld_shlibs=no
10225 fi
10226 ;;
10227
10228 haiku*)
10229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10230 link_all_deplibs=yes
10231 ;;
10232
10233 interix[3-9]*)
10234 hardcode_direct=no
10235 hardcode_shlibpath_var=no
10236 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10237 export_dynamic_flag_spec='${wl}-E'
10238 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10239 # Instead, shared libraries are loaded at an image base (0x10000000 by
10240 # default) and relocated if they conflict, which is a slow very memory
10241 # consuming and fragmenting process. To avoid this, we pick a random,
10242 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10243 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10244 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10245 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'
10246 ;;
10247
10248 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10249 tmp_diet=no
10250 if test "$host_os" = linux-dietlibc; then
10251 case $cc_basename in
10252 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10253 esac
10254 fi
10255 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10256 && test "$tmp_diet" = no
10257 then
10258 tmp_addflag=' $pic_flag'
10259 tmp_sharedflag='-shared'
10260 case $cc_basename,$host_cpu in
10261 pgcc*) # Portland Group C compiler
10262 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'
10263 tmp_addflag=' $pic_flag'
10264 ;;
10265 pgf77* | pgf90* | pgf95* | pgfortran*)
10266 # Portland Group f77 and f90 compilers
10267 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'
10268 tmp_addflag=' $pic_flag -Mnomain' ;;
10269 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10270 tmp_addflag=' -i_dynamic' ;;
10271 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10272 tmp_addflag=' -i_dynamic -nofor_main' ;;
10273 ifc* | ifort*) # Intel Fortran compiler
10274 tmp_addflag=' -nofor_main' ;;
10275 lf95*) # Lahey Fortran 8.1
10276 whole_archive_flag_spec=
10277 tmp_sharedflag='--shared' ;;
10278 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10279 tmp_sharedflag='-qmkshrobj'
10280 tmp_addflag= ;;
10281 nvcc*) # Cuda Compiler Driver 2.2
10282 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'
10283 compiler_needs_object=yes
10284 ;;
10285 esac
10286 case `$CC -V 2>&1 | sed 5q` in
10287 *Sun\ C*) # Sun C 5.9
10288 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'
10289 compiler_needs_object=yes
10290 tmp_sharedflag='-G' ;;
10291 *Sun\ F*) # Sun Fortran 8.3
10292 tmp_sharedflag='-G' ;;
10293 esac
10294 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10295
10296 if test "x$supports_anon_versioning" = xyes; then
10297 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10298 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10299 echo "local: *; };" >> $output_objdir/$libname.ver~
10300 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10301 fi
10302
10303 case $cc_basename in
10304 xlf* | bgf* | bgxlf* | mpixlf*)
10305 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10306 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10307 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10308 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10309 if test "x$supports_anon_versioning" = xyes; then
10310 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10311 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10312 echo "local: *; };" >> $output_objdir/$libname.ver~
10313 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10314 fi
10315 ;;
10316 esac
10317 else
10318 ld_shlibs=no
10319 fi
10320 ;;
10321
10322 netbsd* | netbsdelf*-gnu)
10323 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10324 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10325 wlarc=
10326 else
10327 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10328 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10329 fi
10330 ;;
10331
10332 solaris*)
10333 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10334 ld_shlibs=no
10335 cat <<_LT_EOF 1>&2
10336
10337 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10338 *** create shared libraries on Solaris systems. Therefore, libtool
10339 *** is disabling shared libraries support. We urge you to upgrade GNU
10340 *** binutils to release 2.9.1 or newer. Another option is to modify
10341 *** your PATH or compiler configuration so that the native linker is
10342 *** used, and then restart.
10343
10344 _LT_EOF
10345 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10346 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10347 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10348 else
10349 ld_shlibs=no
10350 fi
10351 ;;
10352
10353 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10354 case `$LD -v 2>&1` in
10355 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10356 ld_shlibs=no
10357 cat <<_LT_EOF 1>&2
10358
10359 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10360 *** reliably create shared libraries on SCO systems. Therefore, libtool
10361 *** is disabling shared libraries support. We urge you to upgrade GNU
10362 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10363 *** your PATH or compiler configuration so that the native linker is
10364 *** used, and then restart.
10365
10366 _LT_EOF
10367 ;;
10368 *)
10369 # For security reasons, it is highly recommended that you always
10370 # use absolute paths for naming shared libraries, and exclude the
10371 # DT_RUNPATH tag from executables and libraries. But doing so
10372 # requires that you compile everything twice, which is a pain.
10373 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10374 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10376 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10377 else
10378 ld_shlibs=no
10379 fi
10380 ;;
10381 esac
10382 ;;
10383
10384 sunos4*)
10385 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10386 wlarc=
10387 hardcode_direct=yes
10388 hardcode_shlibpath_var=no
10389 ;;
10390
10391 *)
10392 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10393 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10394 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10395 else
10396 ld_shlibs=no
10397 fi
10398 ;;
10399 esac
10400
10401 if test "$ld_shlibs" = no; then
10402 runpath_var=
10403 hardcode_libdir_flag_spec=
10404 export_dynamic_flag_spec=
10405 whole_archive_flag_spec=
10406 fi
10407 else
10408 # PORTME fill in a description of your system's linker (not GNU ld)
10409 case $host_os in
10410 aix3*)
10411 allow_undefined_flag=unsupported
10412 always_export_symbols=yes
10413 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'
10414 # Note: this linker hardcodes the directories in LIBPATH if there
10415 # are no directories specified by -L.
10416 hardcode_minus_L=yes
10417 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10418 # Neither direct hardcoding nor static linking is supported with a
10419 # broken collect2.
10420 hardcode_direct=unsupported
10421 fi
10422 ;;
10423
10424 aix[4-9]*)
10425 if test "$host_cpu" = ia64; then
10426 # On IA64, the linker does run time linking by default, so we don't
10427 # have to do anything special.
10428 aix_use_runtimelinking=no
10429 exp_sym_flag='-Bexport'
10430 no_entry_flag=""
10431 else
10432 # If we're using GNU nm, then we don't want the "-C" option.
10433 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10434 # Also, AIX nm treats weak defined symbols like other global
10435 # defined symbols, whereas GNU nm marks them as "W".
10436 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10437 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'
10438 else
10439 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'
10440 fi
10441 aix_use_runtimelinking=no
10442
10443 # Test if we are trying to use run time linking or normal
10444 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10445 # need to do runtime linking.
10446 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10447 for ld_flag in $LDFLAGS; do
10448 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10449 aix_use_runtimelinking=yes
10450 break
10451 fi
10452 done
10453 ;;
10454 esac
10455
10456 exp_sym_flag='-bexport'
10457 no_entry_flag='-bnoentry'
10458 fi
10459
10460 # When large executables or shared objects are built, AIX ld can
10461 # have problems creating the table of contents. If linking a library
10462 # or program results in "error TOC overflow" add -mminimal-toc to
10463 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10464 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10465
10466 archive_cmds=''
10467 hardcode_direct=yes
10468 hardcode_direct_absolute=yes
10469 hardcode_libdir_separator=':'
10470 link_all_deplibs=yes
10471 file_list_spec='${wl}-f,'
10472
10473 if test "$GCC" = yes; then
10474 case $host_os in aix4.[012]|aix4.[012].*)
10475 # We only want to do this on AIX 4.2 and lower, the check
10476 # below for broken collect2 doesn't work under 4.3+
10477 collect2name=`${CC} -print-prog-name=collect2`
10478 if test -f "$collect2name" &&
10479 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10480 then
10481 # We have reworked collect2
10482 :
10483 else
10484 # We have old collect2
10485 hardcode_direct=unsupported
10486 # It fails to find uninstalled libraries when the uninstalled
10487 # path is not listed in the libpath. Setting hardcode_minus_L
10488 # to unsupported forces relinking
10489 hardcode_minus_L=yes
10490 hardcode_libdir_flag_spec='-L$libdir'
10491 hardcode_libdir_separator=
10492 fi
10493 ;;
10494 esac
10495 shared_flag='-shared'
10496 if test "$aix_use_runtimelinking" = yes; then
10497 shared_flag="$shared_flag "'${wl}-G'
10498 fi
10499 link_all_deplibs=no
10500 else
10501 # not using gcc
10502 if test "$host_cpu" = ia64; then
10503 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10504 # chokes on -Wl,-G. The following line is correct:
10505 shared_flag='-G'
10506 else
10507 if test "$aix_use_runtimelinking" = yes; then
10508 shared_flag='${wl}-G'
10509 else
10510 shared_flag='${wl}-bM:SRE'
10511 fi
10512 fi
10513 fi
10514
10515 export_dynamic_flag_spec='${wl}-bexpall'
10516 # It seems that -bexpall does not export symbols beginning with
10517 # underscore (_), so it is better to generate a list of symbols to export.
10518 always_export_symbols=yes
10519 if test "$aix_use_runtimelinking" = yes; then
10520 # Warning - without using the other runtime loading flags (-brtl),
10521 # -berok will link without error, but may produce a broken library.
10522 allow_undefined_flag='-berok'
10523 # Determine the default libpath from the value encoded in an
10524 # empty executable.
10525 if test "${lt_cv_aix_libpath+set}" = set; then
10526 aix_libpath=$lt_cv_aix_libpath
10527 else
10528 if ${lt_cv_aix_libpath_+:} false; then :
10529 $as_echo_n "(cached) " >&6
10530 else
10531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532 /* end confdefs.h. */
10533
10534 int
10535 main ()
10536 {
10537
10538 ;
10539 return 0;
10540 }
10541 _ACEOF
10542 if ac_fn_c_try_link "$LINENO"; then :
10543
10544 lt_aix_libpath_sed='
10545 /Import File Strings/,/^$/ {
10546 /^0/ {
10547 s/^0 *\([^ ]*\) *$/\1/
10548 p
10549 }
10550 }'
10551 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10552 # Check for a 64-bit object if we didn't find anything.
10553 if test -z "$lt_cv_aix_libpath_"; then
10554 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10555 fi
10556 fi
10557 rm -f core conftest.err conftest.$ac_objext \
10558 conftest$ac_exeext conftest.$ac_ext
10559 if test -z "$lt_cv_aix_libpath_"; then
10560 lt_cv_aix_libpath_="/usr/lib:/lib"
10561 fi
10562
10563 fi
10564
10565 aix_libpath=$lt_cv_aix_libpath_
10566 fi
10567
10568 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10569 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"
10570 else
10571 if test "$host_cpu" = ia64; then
10572 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10573 allow_undefined_flag="-z nodefs"
10574 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"
10575 else
10576 # Determine the default libpath from the value encoded in an
10577 # empty executable.
10578 if test "${lt_cv_aix_libpath+set}" = set; then
10579 aix_libpath=$lt_cv_aix_libpath
10580 else
10581 if ${lt_cv_aix_libpath_+:} false; then :
10582 $as_echo_n "(cached) " >&6
10583 else
10584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585 /* end confdefs.h. */
10586
10587 int
10588 main ()
10589 {
10590
10591 ;
10592 return 0;
10593 }
10594 _ACEOF
10595 if ac_fn_c_try_link "$LINENO"; then :
10596
10597 lt_aix_libpath_sed='
10598 /Import File Strings/,/^$/ {
10599 /^0/ {
10600 s/^0 *\([^ ]*\) *$/\1/
10601 p
10602 }
10603 }'
10604 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10605 # Check for a 64-bit object if we didn't find anything.
10606 if test -z "$lt_cv_aix_libpath_"; then
10607 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10608 fi
10609 fi
10610 rm -f core conftest.err conftest.$ac_objext \
10611 conftest$ac_exeext conftest.$ac_ext
10612 if test -z "$lt_cv_aix_libpath_"; then
10613 lt_cv_aix_libpath_="/usr/lib:/lib"
10614 fi
10615
10616 fi
10617
10618 aix_libpath=$lt_cv_aix_libpath_
10619 fi
10620
10621 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10622 # Warning - without using the other run time loading flags,
10623 # -berok will link without error, but may produce a broken library.
10624 no_undefined_flag=' ${wl}-bernotok'
10625 allow_undefined_flag=' ${wl}-berok'
10626 if test "$with_gnu_ld" = yes; then
10627 # We only use this code for GNU lds that support --whole-archive.
10628 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10629 else
10630 # Exported symbols can be pulled into shared objects from archives
10631 whole_archive_flag_spec='$convenience'
10632 fi
10633 archive_cmds_need_lc=yes
10634 # This is similar to how AIX traditionally builds its shared libraries.
10635 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'
10636 fi
10637 fi
10638 ;;
10639
10640 amigaos*)
10641 case $host_cpu in
10642 powerpc)
10643 # see comment about AmigaOS4 .so support
10644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10645 archive_expsym_cmds=''
10646 ;;
10647 m68k)
10648 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)'
10649 hardcode_libdir_flag_spec='-L$libdir'
10650 hardcode_minus_L=yes
10651 ;;
10652 esac
10653 ;;
10654
10655 bsdi[45]*)
10656 export_dynamic_flag_spec=-rdynamic
10657 ;;
10658
10659 cygwin* | mingw* | pw32* | cegcc*)
10660 # When not using gcc, we currently assume that we are using
10661 # Microsoft Visual C++.
10662 # hardcode_libdir_flag_spec is actually meaningless, as there is
10663 # no search path for DLLs.
10664 case $cc_basename in
10665 cl*)
10666 # Native MSVC
10667 hardcode_libdir_flag_spec=' '
10668 allow_undefined_flag=unsupported
10669 always_export_symbols=yes
10670 file_list_spec='@'
10671 # Tell ltmain to make .lib files, not .a files.
10672 libext=lib
10673 # Tell ltmain to make .dll files, not .so files.
10674 shrext_cmds=".dll"
10675 # FIXME: Setting linknames here is a bad hack.
10676 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10677 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10678 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10679 else
10680 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10681 fi~
10682 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10683 linknames='
10684 # The linker will not automatically build a static lib if we build a DLL.
10685 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10686 enable_shared_with_static_runtimes=yes
10687 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10688 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10689 # Don't use ranlib
10690 old_postinstall_cmds='chmod 644 $oldlib'
10691 postlink_cmds='lt_outputfile="@OUTPUT@"~
10692 lt_tool_outputfile="@TOOL_OUTPUT@"~
10693 case $lt_outputfile in
10694 *.exe|*.EXE) ;;
10695 *)
10696 lt_outputfile="$lt_outputfile.exe"
10697 lt_tool_outputfile="$lt_tool_outputfile.exe"
10698 ;;
10699 esac~
10700 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10701 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10702 $RM "$lt_outputfile.manifest";
10703 fi'
10704 ;;
10705 *)
10706 # Assume MSVC wrapper
10707 hardcode_libdir_flag_spec=' '
10708 allow_undefined_flag=unsupported
10709 # Tell ltmain to make .lib files, not .a files.
10710 libext=lib
10711 # Tell ltmain to make .dll files, not .so files.
10712 shrext_cmds=".dll"
10713 # FIXME: Setting linknames here is a bad hack.
10714 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10715 # The linker will automatically build a .lib file if we build a DLL.
10716 old_archive_from_new_cmds='true'
10717 # FIXME: Should let the user specify the lib program.
10718 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10719 enable_shared_with_static_runtimes=yes
10720 ;;
10721 esac
10722 ;;
10723
10724 darwin* | rhapsody*)
10725
10726
10727 archive_cmds_need_lc=no
10728 hardcode_direct=no
10729 hardcode_automatic=yes
10730 hardcode_shlibpath_var=unsupported
10731 if test "$lt_cv_ld_force_load" = "yes"; then
10732 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\"`'
10733
10734 else
10735 whole_archive_flag_spec=''
10736 fi
10737 link_all_deplibs=yes
10738 allow_undefined_flag="$_lt_dar_allow_undefined"
10739 case $cc_basename in
10740 ifort*) _lt_dar_can_shared=yes ;;
10741 *) _lt_dar_can_shared=$GCC ;;
10742 esac
10743 if test "$_lt_dar_can_shared" = "yes"; then
10744 output_verbose_link_cmd=func_echo_all
10745 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10746 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10747 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}"
10748 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}"
10749
10750 else
10751 ld_shlibs=no
10752 fi
10753
10754 ;;
10755
10756 dgux*)
10757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10758 hardcode_libdir_flag_spec='-L$libdir'
10759 hardcode_shlibpath_var=no
10760 ;;
10761
10762 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10763 # support. Future versions do this automatically, but an explicit c++rt0.o
10764 # does not break anything, and helps significantly (at the cost of a little
10765 # extra space).
10766 freebsd2.2*)
10767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10768 hardcode_libdir_flag_spec='-R$libdir'
10769 hardcode_direct=yes
10770 hardcode_shlibpath_var=no
10771 ;;
10772
10773 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10774 freebsd2.*)
10775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10776 hardcode_direct=yes
10777 hardcode_minus_L=yes
10778 hardcode_shlibpath_var=no
10779 ;;
10780
10781 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10782 freebsd* | dragonfly*)
10783 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10784 hardcode_libdir_flag_spec='-R$libdir'
10785 hardcode_direct=yes
10786 hardcode_shlibpath_var=no
10787 ;;
10788
10789 hpux9*)
10790 if test "$GCC" = yes; then
10791 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10792 else
10793 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'
10794 fi
10795 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10796 hardcode_libdir_separator=:
10797 hardcode_direct=yes
10798
10799 # hardcode_minus_L: Not really in the search PATH,
10800 # but as the default location of the library.
10801 hardcode_minus_L=yes
10802 export_dynamic_flag_spec='${wl}-E'
10803 ;;
10804
10805 hpux10*)
10806 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10807 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10808 else
10809 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10810 fi
10811 if test "$with_gnu_ld" = no; then
10812 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10813 hardcode_libdir_separator=:
10814 hardcode_direct=yes
10815 hardcode_direct_absolute=yes
10816 export_dynamic_flag_spec='${wl}-E'
10817 # hardcode_minus_L: Not really in the search PATH,
10818 # but as the default location of the library.
10819 hardcode_minus_L=yes
10820 fi
10821 ;;
10822
10823 hpux11*)
10824 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10825 case $host_cpu in
10826 hppa*64*)
10827 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10828 ;;
10829 ia64*)
10830 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10831 ;;
10832 *)
10833 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10834 ;;
10835 esac
10836 else
10837 case $host_cpu in
10838 hppa*64*)
10839 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10840 ;;
10841 ia64*)
10842 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10843 ;;
10844 *)
10845
10846 # Older versions of the 11.00 compiler do not understand -b yet
10847 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10849 $as_echo_n "checking if $CC understands -b... " >&6; }
10850 if ${lt_cv_prog_compiler__b+:} false; then :
10851 $as_echo_n "(cached) " >&6
10852 else
10853 lt_cv_prog_compiler__b=no
10854 save_LDFLAGS="$LDFLAGS"
10855 LDFLAGS="$LDFLAGS -b"
10856 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10857 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10858 # The linker can only warn and ignore the option if not recognized
10859 # So say no if there are warnings
10860 if test -s conftest.err; then
10861 # Append any errors to the config.log.
10862 cat conftest.err 1>&5
10863 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10864 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10865 if diff conftest.exp conftest.er2 >/dev/null; then
10866 lt_cv_prog_compiler__b=yes
10867 fi
10868 else
10869 lt_cv_prog_compiler__b=yes
10870 fi
10871 fi
10872 $RM -r conftest*
10873 LDFLAGS="$save_LDFLAGS"
10874
10875 fi
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10877 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10878
10879 if test x"$lt_cv_prog_compiler__b" = xyes; then
10880 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10881 else
10882 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10883 fi
10884
10885 ;;
10886 esac
10887 fi
10888 if test "$with_gnu_ld" = no; then
10889 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10890 hardcode_libdir_separator=:
10891
10892 case $host_cpu in
10893 hppa*64*|ia64*)
10894 hardcode_direct=no
10895 hardcode_shlibpath_var=no
10896 ;;
10897 *)
10898 hardcode_direct=yes
10899 hardcode_direct_absolute=yes
10900 export_dynamic_flag_spec='${wl}-E'
10901
10902 # hardcode_minus_L: Not really in the search PATH,
10903 # but as the default location of the library.
10904 hardcode_minus_L=yes
10905 ;;
10906 esac
10907 fi
10908 ;;
10909
10910 irix5* | irix6* | nonstopux*)
10911 if test "$GCC" = yes; then
10912 archive_cmds='$CC -shared $pic_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'
10913 # Try to use the -exported_symbol ld option, if it does not
10914 # work, assume that -exports_file does not work either and
10915 # implicitly export all symbols.
10916 # This should be the same for all languages, so no per-tag cache variable.
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10918 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10919 if ${lt_cv_irix_exported_symbol+:} false; then :
10920 $as_echo_n "(cached) " >&6
10921 else
10922 save_LDFLAGS="$LDFLAGS"
10923 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925 /* end confdefs.h. */
10926 int foo (void) { return 0; }
10927 _ACEOF
10928 if ac_fn_c_try_link "$LINENO"; then :
10929 lt_cv_irix_exported_symbol=yes
10930 else
10931 lt_cv_irix_exported_symbol=no
10932 fi
10933 rm -f core conftest.err conftest.$ac_objext \
10934 conftest$ac_exeext conftest.$ac_ext
10935 LDFLAGS="$save_LDFLAGS"
10936 fi
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10938 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10939 if test "$lt_cv_irix_exported_symbol" = yes; then
10940 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
10941 fi
10942 else
10943 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'
10944 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'
10945 fi
10946 archive_cmds_need_lc='no'
10947 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10948 hardcode_libdir_separator=:
10949 inherit_rpath=yes
10950 link_all_deplibs=yes
10951 ;;
10952
10953 netbsd* | netbsdelf*-gnu)
10954 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10955 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10956 else
10957 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10958 fi
10959 hardcode_libdir_flag_spec='-R$libdir'
10960 hardcode_direct=yes
10961 hardcode_shlibpath_var=no
10962 ;;
10963
10964 newsos6)
10965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10966 hardcode_direct=yes
10967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10968 hardcode_libdir_separator=:
10969 hardcode_shlibpath_var=no
10970 ;;
10971
10972 *nto* | *qnx*)
10973 ;;
10974
10975 openbsd*)
10976 if test -f /usr/libexec/ld.so; then
10977 hardcode_direct=yes
10978 hardcode_shlibpath_var=no
10979 hardcode_direct_absolute=yes
10980 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10981 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10982 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10983 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10984 export_dynamic_flag_spec='${wl}-E'
10985 else
10986 case $host_os in
10987 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10988 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10989 hardcode_libdir_flag_spec='-R$libdir'
10990 ;;
10991 *)
10992 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10993 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10994 ;;
10995 esac
10996 fi
10997 else
10998 ld_shlibs=no
10999 fi
11000 ;;
11001
11002 os2*)
11003 hardcode_libdir_flag_spec='-L$libdir'
11004 hardcode_minus_L=yes
11005 allow_undefined_flag=unsupported
11006 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'
11007 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11008 ;;
11009
11010 osf3*)
11011 if test "$GCC" = yes; then
11012 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11013 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'
11014 else
11015 allow_undefined_flag=' -expect_unresolved \*'
11016 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'
11017 fi
11018 archive_cmds_need_lc='no'
11019 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11020 hardcode_libdir_separator=:
11021 ;;
11022
11023 osf4* | osf5*) # as osf3* with the addition of -msym flag
11024 if test "$GCC" = yes; then
11025 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11026 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
11027 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11028 else
11029 allow_undefined_flag=' -expect_unresolved \*'
11030 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'
11031 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~
11032 $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'
11033
11034 # Both c and cxx compiler support -rpath directly
11035 hardcode_libdir_flag_spec='-rpath $libdir'
11036 fi
11037 archive_cmds_need_lc='no'
11038 hardcode_libdir_separator=:
11039 ;;
11040
11041 solaris*)
11042 no_undefined_flag=' -z defs'
11043 if test "$GCC" = yes; then
11044 wlarc='${wl}'
11045 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11046 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11047 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11048 else
11049 case `$CC -V 2>&1` in
11050 *"Compilers 5.0"*)
11051 wlarc=''
11052 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11053 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11054 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11055 ;;
11056 *)
11057 wlarc='${wl}'
11058 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11059 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11060 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11061 ;;
11062 esac
11063 fi
11064 hardcode_libdir_flag_spec='-R$libdir'
11065 hardcode_shlibpath_var=no
11066 case $host_os in
11067 solaris2.[0-5] | solaris2.[0-5].*) ;;
11068 *)
11069 # The compiler driver will combine and reorder linker options,
11070 # but understands `-z linker_flag'. GCC discards it without `$wl',
11071 # but is careful enough not to reorder.
11072 # Supported since Solaris 2.6 (maybe 2.5.1?)
11073 if test "$GCC" = yes; then
11074 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11075 else
11076 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11077 fi
11078 ;;
11079 esac
11080 link_all_deplibs=yes
11081 ;;
11082
11083 sunos4*)
11084 if test "x$host_vendor" = xsequent; then
11085 # Use $CC to link under sequent, because it throws in some extra .o
11086 # files that make .init and .fini sections work.
11087 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11088 else
11089 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11090 fi
11091 hardcode_libdir_flag_spec='-L$libdir'
11092 hardcode_direct=yes
11093 hardcode_minus_L=yes
11094 hardcode_shlibpath_var=no
11095 ;;
11096
11097 sysv4)
11098 case $host_vendor in
11099 sni)
11100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11101 hardcode_direct=yes # is this really true???
11102 ;;
11103 siemens)
11104 ## LD is ld it makes a PLAMLIB
11105 ## CC just makes a GrossModule.
11106 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11107 reload_cmds='$CC -r -o $output$reload_objs'
11108 hardcode_direct=no
11109 ;;
11110 motorola)
11111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11112 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11113 ;;
11114 esac
11115 runpath_var='LD_RUN_PATH'
11116 hardcode_shlibpath_var=no
11117 ;;
11118
11119 sysv4.3*)
11120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11121 hardcode_shlibpath_var=no
11122 export_dynamic_flag_spec='-Bexport'
11123 ;;
11124
11125 sysv4*MP*)
11126 if test -d /usr/nec; then
11127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11128 hardcode_shlibpath_var=no
11129 runpath_var=LD_RUN_PATH
11130 hardcode_runpath_var=yes
11131 ld_shlibs=yes
11132 fi
11133 ;;
11134
11135 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11136 no_undefined_flag='${wl}-z,text'
11137 archive_cmds_need_lc=no
11138 hardcode_shlibpath_var=no
11139 runpath_var='LD_RUN_PATH'
11140
11141 if test "$GCC" = yes; then
11142 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11143 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11144 else
11145 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11146 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11147 fi
11148 ;;
11149
11150 sysv5* | sco3.2v5* | sco5v6*)
11151 # Note: We can NOT use -z defs as we might desire, because we do not
11152 # link with -lc, and that would cause any symbols used from libc to
11153 # always be unresolved, which means just about no library would
11154 # ever link correctly. If we're not using GNU ld we use -z text
11155 # though, which does catch some bad symbols but isn't as heavy-handed
11156 # as -z defs.
11157 no_undefined_flag='${wl}-z,text'
11158 allow_undefined_flag='${wl}-z,nodefs'
11159 archive_cmds_need_lc=no
11160 hardcode_shlibpath_var=no
11161 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11162 hardcode_libdir_separator=':'
11163 link_all_deplibs=yes
11164 export_dynamic_flag_spec='${wl}-Bexport'
11165 runpath_var='LD_RUN_PATH'
11166
11167 if test "$GCC" = yes; then
11168 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11169 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11170 else
11171 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11172 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11173 fi
11174 ;;
11175
11176 uts4*)
11177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11178 hardcode_libdir_flag_spec='-L$libdir'
11179 hardcode_shlibpath_var=no
11180 ;;
11181
11182 *)
11183 ld_shlibs=no
11184 ;;
11185 esac
11186
11187 if test x$host_vendor = xsni; then
11188 case $host in
11189 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11190 export_dynamic_flag_spec='${wl}-Blargedynsym'
11191 ;;
11192 esac
11193 fi
11194 fi
11195
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11197 $as_echo "$ld_shlibs" >&6; }
11198 test "$ld_shlibs" = no && can_build_shared=no
11199
11200 with_gnu_ld=$with_gnu_ld
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216 #
11217 # Do we need to explicitly link libc?
11218 #
11219 case "x$archive_cmds_need_lc" in
11220 x|xyes)
11221 # Assume -lc should be added
11222 archive_cmds_need_lc=yes
11223
11224 if test "$enable_shared" = yes && test "$GCC" = yes; then
11225 case $archive_cmds in
11226 *'~'*)
11227 # FIXME: we may have to deal with multi-command sequences.
11228 ;;
11229 '$CC '*)
11230 # Test whether the compiler implicitly links with -lc since on some
11231 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11232 # to ld, don't add -lc before -lgcc.
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11234 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11235 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11236 $as_echo_n "(cached) " >&6
11237 else
11238 $RM conftest*
11239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11240
11241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11242 (eval $ac_compile) 2>&5
11243 ac_status=$?
11244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11245 test $ac_status = 0; } 2>conftest.err; then
11246 soname=conftest
11247 lib=conftest
11248 libobjs=conftest.$ac_objext
11249 deplibs=
11250 wl=$lt_prog_compiler_wl
11251 pic_flag=$lt_prog_compiler_pic
11252 compiler_flags=-v
11253 linker_flags=-v
11254 verstring=
11255 output_objdir=.
11256 libname=conftest
11257 lt_save_allow_undefined_flag=$allow_undefined_flag
11258 allow_undefined_flag=
11259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11260 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11261 ac_status=$?
11262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11263 test $ac_status = 0; }
11264 then
11265 lt_cv_archive_cmds_need_lc=no
11266 else
11267 lt_cv_archive_cmds_need_lc=yes
11268 fi
11269 allow_undefined_flag=$lt_save_allow_undefined_flag
11270 else
11271 cat conftest.err 1>&5
11272 fi
11273 $RM conftest*
11274
11275 fi
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11277 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11278 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11279 ;;
11280 esac
11281 fi
11282 ;;
11283 esac
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11437 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11438
11439 if test "$GCC" = yes; then
11440 case $host_os in
11441 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11442 *) lt_awk_arg="/^libraries:/" ;;
11443 esac
11444 case $host_os in
11445 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11446 *) lt_sed_strip_eq="s,=/,/,g" ;;
11447 esac
11448 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11449 case $lt_search_path_spec in
11450 *\;*)
11451 # if the path contains ";" then we assume it to be the separator
11452 # otherwise default to the standard path separator (i.e. ":") - it is
11453 # assumed that no part of a normal pathname contains ";" but that should
11454 # okay in the real world where ";" in dirpaths is itself problematic.
11455 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11456 ;;
11457 *)
11458 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11459 ;;
11460 esac
11461 # Ok, now we have the path, separated by spaces, we can step through it
11462 # and add multilib dir if necessary.
11463 lt_tmp_lt_search_path_spec=
11464 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11465 for lt_sys_path in $lt_search_path_spec; do
11466 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11467 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11468 else
11469 test -d "$lt_sys_path" && \
11470 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11471 fi
11472 done
11473 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11474 BEGIN {RS=" "; FS="/|\n";} {
11475 lt_foo="";
11476 lt_count=0;
11477 for (lt_i = NF; lt_i > 0; lt_i--) {
11478 if ($lt_i != "" && $lt_i != ".") {
11479 if ($lt_i == "..") {
11480 lt_count++;
11481 } else {
11482 if (lt_count == 0) {
11483 lt_foo="/" $lt_i lt_foo;
11484 } else {
11485 lt_count--;
11486 }
11487 }
11488 }
11489 }
11490 if (lt_foo != "") { lt_freq[lt_foo]++; }
11491 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11492 }'`
11493 # AWK program above erroneously prepends '/' to C:/dos/paths
11494 # for these hosts.
11495 case $host_os in
11496 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11497 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11498 esac
11499 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11500 else
11501 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11502 fi
11503 library_names_spec=
11504 libname_spec='lib$name'
11505 soname_spec=
11506 shrext_cmds=".so"
11507 postinstall_cmds=
11508 postuninstall_cmds=
11509 finish_cmds=
11510 finish_eval=
11511 shlibpath_var=
11512 shlibpath_overrides_runpath=unknown
11513 version_type=none
11514 dynamic_linker="$host_os ld.so"
11515 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11516 need_lib_prefix=unknown
11517 hardcode_into_libs=no
11518
11519 # when you set need_version to no, make sure it does not cause -set_version
11520 # flags to be left without arguments
11521 need_version=unknown
11522
11523 case $host_os in
11524 aix3*)
11525 version_type=linux # correct to gnu/linux during the next big refactor
11526 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11527 shlibpath_var=LIBPATH
11528
11529 # AIX 3 has no versioning support, so we append a major version to the name.
11530 soname_spec='${libname}${release}${shared_ext}$major'
11531 ;;
11532
11533 aix[4-9]*)
11534 version_type=linux # correct to gnu/linux during the next big refactor
11535 need_lib_prefix=no
11536 need_version=no
11537 hardcode_into_libs=yes
11538 if test "$host_cpu" = ia64; then
11539 # AIX 5 supports IA64
11540 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11541 shlibpath_var=LD_LIBRARY_PATH
11542 else
11543 # With GCC up to 2.95.x, collect2 would create an import file
11544 # for dependence libraries. The import file would start with
11545 # the line `#! .'. This would cause the generated library to
11546 # depend on `.', always an invalid library. This was fixed in
11547 # development snapshots of GCC prior to 3.0.
11548 case $host_os in
11549 aix4 | aix4.[01] | aix4.[01].*)
11550 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11551 echo ' yes '
11552 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11553 :
11554 else
11555 can_build_shared=no
11556 fi
11557 ;;
11558 esac
11559 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11560 # soname into executable. Probably we can add versioning support to
11561 # collect2, so additional links can be useful in future.
11562 if test "$aix_use_runtimelinking" = yes; then
11563 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11564 # instead of lib<name>.a to let people know that these are not
11565 # typical AIX shared libraries.
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11567 else
11568 # We preserve .a as extension for shared libraries through AIX4.2
11569 # and later when we are not doing run time linking.
11570 library_names_spec='${libname}${release}.a $libname.a'
11571 soname_spec='${libname}${release}${shared_ext}$major'
11572 fi
11573 shlibpath_var=LIBPATH
11574 fi
11575 ;;
11576
11577 amigaos*)
11578 case $host_cpu in
11579 powerpc)
11580 # Since July 2007 AmigaOS4 officially supports .so libraries.
11581 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11583 ;;
11584 m68k)
11585 library_names_spec='$libname.ixlibrary $libname.a'
11586 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11587 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'
11588 ;;
11589 esac
11590 ;;
11591
11592 beos*)
11593 library_names_spec='${libname}${shared_ext}'
11594 dynamic_linker="$host_os ld.so"
11595 shlibpath_var=LIBRARY_PATH
11596 ;;
11597
11598 bsdi[45]*)
11599 version_type=linux # correct to gnu/linux during the next big refactor
11600 need_version=no
11601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11602 soname_spec='${libname}${release}${shared_ext}$major'
11603 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11604 shlibpath_var=LD_LIBRARY_PATH
11605 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11606 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11607 # the default ld.so.conf also contains /usr/contrib/lib and
11608 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11609 # libtool to hard-code these into programs
11610 ;;
11611
11612 cygwin* | mingw* | pw32* | cegcc*)
11613 version_type=windows
11614 shrext_cmds=".dll"
11615 need_version=no
11616 need_lib_prefix=no
11617
11618 case $GCC,$cc_basename in
11619 yes,*)
11620 # gcc
11621 library_names_spec='$libname.dll.a'
11622 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11623 postinstall_cmds='base_file=`basename \${file}`~
11624 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11625 dldir=$destdir/`dirname \$dlpath`~
11626 test -d \$dldir || mkdir -p \$dldir~
11627 $install_prog $dir/$dlname \$dldir/$dlname~
11628 chmod a+x \$dldir/$dlname~
11629 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11630 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11631 fi'
11632 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11633 dlpath=$dir/\$dldll~
11634 $RM \$dlpath'
11635 shlibpath_overrides_runpath=yes
11636
11637 case $host_os in
11638 cygwin*)
11639 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11640 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11641
11642 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11643 ;;
11644 mingw* | cegcc*)
11645 # MinGW DLLs use traditional 'lib' prefix
11646 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11647 ;;
11648 pw32*)
11649 # pw32 DLLs use 'pw' prefix rather than 'lib'
11650 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11651 ;;
11652 esac
11653 dynamic_linker='Win32 ld.exe'
11654 ;;
11655
11656 *,cl*)
11657 # Native MSVC
11658 libname_spec='$name'
11659 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11660 library_names_spec='${libname}.dll.lib'
11661
11662 case $build_os in
11663 mingw*)
11664 sys_lib_search_path_spec=
11665 lt_save_ifs=$IFS
11666 IFS=';'
11667 for lt_path in $LIB
11668 do
11669 IFS=$lt_save_ifs
11670 # Let DOS variable expansion print the short 8.3 style file name.
11671 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11672 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11673 done
11674 IFS=$lt_save_ifs
11675 # Convert to MSYS style.
11676 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11677 ;;
11678 cygwin*)
11679 # Convert to unix form, then to dos form, then back to unix form
11680 # but this time dos style (no spaces!) so that the unix form looks
11681 # like /cygdrive/c/PROGRA~1:/cygdr...
11682 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11683 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11684 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11685 ;;
11686 *)
11687 sys_lib_search_path_spec="$LIB"
11688 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11689 # It is most probably a Windows format PATH.
11690 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11691 else
11692 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11693 fi
11694 # FIXME: find the short name or the path components, as spaces are
11695 # common. (e.g. "Program Files" -> "PROGRA~1")
11696 ;;
11697 esac
11698
11699 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11700 postinstall_cmds='base_file=`basename \${file}`~
11701 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11702 dldir=$destdir/`dirname \$dlpath`~
11703 test -d \$dldir || mkdir -p \$dldir~
11704 $install_prog $dir/$dlname \$dldir/$dlname'
11705 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11706 dlpath=$dir/\$dldll~
11707 $RM \$dlpath'
11708 shlibpath_overrides_runpath=yes
11709 dynamic_linker='Win32 link.exe'
11710 ;;
11711
11712 *)
11713 # Assume MSVC wrapper
11714 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11715 dynamic_linker='Win32 ld.exe'
11716 ;;
11717 esac
11718 # FIXME: first we should search . and the directory the executable is in
11719 shlibpath_var=PATH
11720 ;;
11721
11722 darwin* | rhapsody*)
11723 dynamic_linker="$host_os dyld"
11724 version_type=darwin
11725 need_lib_prefix=no
11726 need_version=no
11727 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11728 soname_spec='${libname}${release}${major}$shared_ext'
11729 shlibpath_overrides_runpath=yes
11730 shlibpath_var=DYLD_LIBRARY_PATH
11731 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11732
11733 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11734 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11735 ;;
11736
11737 dgux*)
11738 version_type=linux # correct to gnu/linux during the next big refactor
11739 need_lib_prefix=no
11740 need_version=no
11741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11742 soname_spec='${libname}${release}${shared_ext}$major'
11743 shlibpath_var=LD_LIBRARY_PATH
11744 ;;
11745
11746 freebsd* | dragonfly*)
11747 # DragonFly does not have aout. When/if they implement a new
11748 # versioning mechanism, adjust this.
11749 if test -x /usr/bin/objformat; then
11750 objformat=`/usr/bin/objformat`
11751 else
11752 case $host_os in
11753 freebsd[23].*) objformat=aout ;;
11754 *) objformat=elf ;;
11755 esac
11756 fi
11757 version_type=freebsd-$objformat
11758 case $version_type in
11759 freebsd-elf*)
11760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11761 need_version=no
11762 need_lib_prefix=no
11763 ;;
11764 freebsd-*)
11765 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11766 need_version=yes
11767 ;;
11768 esac
11769 shlibpath_var=LD_LIBRARY_PATH
11770 case $host_os in
11771 freebsd2.*)
11772 shlibpath_overrides_runpath=yes
11773 ;;
11774 freebsd3.[01]* | freebsdelf3.[01]*)
11775 shlibpath_overrides_runpath=yes
11776 hardcode_into_libs=yes
11777 ;;
11778 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11779 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11780 shlibpath_overrides_runpath=no
11781 hardcode_into_libs=yes
11782 ;;
11783 *) # from 4.6 on, and DragonFly
11784 shlibpath_overrides_runpath=yes
11785 hardcode_into_libs=yes
11786 ;;
11787 esac
11788 ;;
11789
11790 haiku*)
11791 version_type=linux # correct to gnu/linux during the next big refactor
11792 need_lib_prefix=no
11793 need_version=no
11794 dynamic_linker="$host_os runtime_loader"
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11796 soname_spec='${libname}${release}${shared_ext}$major'
11797 shlibpath_var=LIBRARY_PATH
11798 shlibpath_overrides_runpath=yes
11799 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11800 hardcode_into_libs=yes
11801 ;;
11802
11803 hpux9* | hpux10* | hpux11*)
11804 # Give a soname corresponding to the major version so that dld.sl refuses to
11805 # link against other versions.
11806 version_type=sunos
11807 need_lib_prefix=no
11808 need_version=no
11809 case $host_cpu in
11810 ia64*)
11811 shrext_cmds='.so'
11812 hardcode_into_libs=yes
11813 dynamic_linker="$host_os dld.so"
11814 shlibpath_var=LD_LIBRARY_PATH
11815 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11817 soname_spec='${libname}${release}${shared_ext}$major'
11818 if test "X$HPUX_IA64_MODE" = X32; then
11819 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11820 else
11821 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11822 fi
11823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11824 ;;
11825 hppa*64*)
11826 shrext_cmds='.sl'
11827 hardcode_into_libs=yes
11828 dynamic_linker="$host_os dld.sl"
11829 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11832 soname_spec='${libname}${release}${shared_ext}$major'
11833 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11835 ;;
11836 *)
11837 shrext_cmds='.sl'
11838 dynamic_linker="$host_os dld.sl"
11839 shlibpath_var=SHLIB_PATH
11840 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11842 soname_spec='${libname}${release}${shared_ext}$major'
11843 ;;
11844 esac
11845 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11846 postinstall_cmds='chmod 555 $lib'
11847 # or fails outright, so override atomically:
11848 install_override_mode=555
11849 ;;
11850
11851 interix[3-9]*)
11852 version_type=linux # correct to gnu/linux during the next big refactor
11853 need_lib_prefix=no
11854 need_version=no
11855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11856 soname_spec='${libname}${release}${shared_ext}$major'
11857 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11858 shlibpath_var=LD_LIBRARY_PATH
11859 shlibpath_overrides_runpath=no
11860 hardcode_into_libs=yes
11861 ;;
11862
11863 irix5* | irix6* | nonstopux*)
11864 case $host_os in
11865 nonstopux*) version_type=nonstopux ;;
11866 *)
11867 if test "$lt_cv_prog_gnu_ld" = yes; then
11868 version_type=linux # correct to gnu/linux during the next big refactor
11869 else
11870 version_type=irix
11871 fi ;;
11872 esac
11873 need_lib_prefix=no
11874 need_version=no
11875 soname_spec='${libname}${release}${shared_ext}$major'
11876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11877 case $host_os in
11878 irix5* | nonstopux*)
11879 libsuff= shlibsuff=
11880 ;;
11881 *)
11882 case $LD in # libtool.m4 will add one of these switches to LD
11883 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11884 libsuff= shlibsuff= libmagic=32-bit;;
11885 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11886 libsuff=32 shlibsuff=N32 libmagic=N32;;
11887 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11888 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11889 *) libsuff= shlibsuff= libmagic=never-match;;
11890 esac
11891 ;;
11892 esac
11893 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11894 shlibpath_overrides_runpath=no
11895 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11896 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11897 hardcode_into_libs=yes
11898 ;;
11899
11900 # No shared lib support for Linux oldld, aout, or coff.
11901 linux*oldld* | linux*aout* | linux*coff*)
11902 dynamic_linker=no
11903 ;;
11904
11905 # This must be glibc/ELF.
11906 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11907 version_type=linux # correct to gnu/linux during the next big refactor
11908 need_lib_prefix=no
11909 need_version=no
11910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11911 soname_spec='${libname}${release}${shared_ext}$major'
11912 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11913 shlibpath_var=LD_LIBRARY_PATH
11914 shlibpath_overrides_runpath=no
11915
11916 # Some binutils ld are patched to set DT_RUNPATH
11917 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11918 $as_echo_n "(cached) " >&6
11919 else
11920 lt_cv_shlibpath_overrides_runpath=no
11921 save_LDFLAGS=$LDFLAGS
11922 save_libdir=$libdir
11923 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11924 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11926 /* end confdefs.h. */
11927
11928 int
11929 main ()
11930 {
11931
11932 ;
11933 return 0;
11934 }
11935 _ACEOF
11936 if ac_fn_c_try_link "$LINENO"; then :
11937 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11938 lt_cv_shlibpath_overrides_runpath=yes
11939 fi
11940 fi
11941 rm -f core conftest.err conftest.$ac_objext \
11942 conftest$ac_exeext conftest.$ac_ext
11943 LDFLAGS=$save_LDFLAGS
11944 libdir=$save_libdir
11945
11946 fi
11947
11948 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11949
11950 # This implies no fast_install, which is unacceptable.
11951 # Some rework will be needed to allow for fast_install
11952 # before this can be enabled.
11953 hardcode_into_libs=yes
11954
11955 # Append ld.so.conf contents to the search path
11956 if test -f /etc/ld.so.conf; then
11957 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' ' '`
11958 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11959 fi
11960
11961 # We used to test for /lib/ld.so.1 and disable shared libraries on
11962 # powerpc, because MkLinux only supported shared libraries with the
11963 # GNU dynamic linker. Since this was broken with cross compilers,
11964 # most powerpc-linux boxes support dynamic linking these days and
11965 # people can always --disable-shared, the test was removed, and we
11966 # assume the GNU/Linux dynamic linker is in use.
11967 dynamic_linker='GNU/Linux ld.so'
11968 ;;
11969
11970 netbsdelf*-gnu)
11971 version_type=linux
11972 need_lib_prefix=no
11973 need_version=no
11974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11975 soname_spec='${libname}${release}${shared_ext}$major'
11976 shlibpath_var=LD_LIBRARY_PATH
11977 shlibpath_overrides_runpath=no
11978 hardcode_into_libs=yes
11979 dynamic_linker='NetBSD ld.elf_so'
11980 ;;
11981
11982 netbsd*)
11983 version_type=sunos
11984 need_lib_prefix=no
11985 need_version=no
11986 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11989 dynamic_linker='NetBSD (a.out) ld.so'
11990 else
11991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11992 soname_spec='${libname}${release}${shared_ext}$major'
11993 dynamic_linker='NetBSD ld.elf_so'
11994 fi
11995 shlibpath_var=LD_LIBRARY_PATH
11996 shlibpath_overrides_runpath=yes
11997 hardcode_into_libs=yes
11998 ;;
11999
12000 newsos6)
12001 version_type=linux # correct to gnu/linux during the next big refactor
12002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12003 shlibpath_var=LD_LIBRARY_PATH
12004 shlibpath_overrides_runpath=yes
12005 ;;
12006
12007 *nto* | *qnx*)
12008 version_type=qnx
12009 need_lib_prefix=no
12010 need_version=no
12011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12012 soname_spec='${libname}${release}${shared_ext}$major'
12013 shlibpath_var=LD_LIBRARY_PATH
12014 shlibpath_overrides_runpath=no
12015 hardcode_into_libs=yes
12016 dynamic_linker='ldqnx.so'
12017 ;;
12018
12019 openbsd*)
12020 version_type=sunos
12021 sys_lib_dlsearch_path_spec="/usr/lib"
12022 need_lib_prefix=no
12023 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12024 case $host_os in
12025 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12026 *) need_version=no ;;
12027 esac
12028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12030 shlibpath_var=LD_LIBRARY_PATH
12031 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12032 case $host_os in
12033 openbsd2.[89] | openbsd2.[89].*)
12034 shlibpath_overrides_runpath=no
12035 ;;
12036 *)
12037 shlibpath_overrides_runpath=yes
12038 ;;
12039 esac
12040 else
12041 shlibpath_overrides_runpath=yes
12042 fi
12043 ;;
12044
12045 os2*)
12046 libname_spec='$name'
12047 shrext_cmds=".dll"
12048 need_lib_prefix=no
12049 library_names_spec='$libname${shared_ext} $libname.a'
12050 dynamic_linker='OS/2 ld.exe'
12051 shlibpath_var=LIBPATH
12052 ;;
12053
12054 osf3* | osf4* | osf5*)
12055 version_type=osf
12056 need_lib_prefix=no
12057 need_version=no
12058 soname_spec='${libname}${release}${shared_ext}$major'
12059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12060 shlibpath_var=LD_LIBRARY_PATH
12061 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12062 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12063 ;;
12064
12065 rdos*)
12066 dynamic_linker=no
12067 ;;
12068
12069 solaris*)
12070 version_type=linux # correct to gnu/linux during the next big refactor
12071 need_lib_prefix=no
12072 need_version=no
12073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12074 soname_spec='${libname}${release}${shared_ext}$major'
12075 shlibpath_var=LD_LIBRARY_PATH
12076 shlibpath_overrides_runpath=yes
12077 hardcode_into_libs=yes
12078 # ldd complains unless libraries are executable
12079 postinstall_cmds='chmod +x $lib'
12080 ;;
12081
12082 sunos4*)
12083 version_type=sunos
12084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12085 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12086 shlibpath_var=LD_LIBRARY_PATH
12087 shlibpath_overrides_runpath=yes
12088 if test "$with_gnu_ld" = yes; then
12089 need_lib_prefix=no
12090 fi
12091 need_version=yes
12092 ;;
12093
12094 sysv4 | sysv4.3*)
12095 version_type=linux # correct to gnu/linux during the next big refactor
12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097 soname_spec='${libname}${release}${shared_ext}$major'
12098 shlibpath_var=LD_LIBRARY_PATH
12099 case $host_vendor in
12100 sni)
12101 shlibpath_overrides_runpath=no
12102 need_lib_prefix=no
12103 runpath_var=LD_RUN_PATH
12104 ;;
12105 siemens)
12106 need_lib_prefix=no
12107 ;;
12108 motorola)
12109 need_lib_prefix=no
12110 need_version=no
12111 shlibpath_overrides_runpath=no
12112 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12113 ;;
12114 esac
12115 ;;
12116
12117 sysv4*MP*)
12118 if test -d /usr/nec ;then
12119 version_type=linux # correct to gnu/linux during the next big refactor
12120 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12121 soname_spec='$libname${shared_ext}.$major'
12122 shlibpath_var=LD_LIBRARY_PATH
12123 fi
12124 ;;
12125
12126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12127 version_type=freebsd-elf
12128 need_lib_prefix=no
12129 need_version=no
12130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12131 soname_spec='${libname}${release}${shared_ext}$major'
12132 shlibpath_var=LD_LIBRARY_PATH
12133 shlibpath_overrides_runpath=yes
12134 hardcode_into_libs=yes
12135 if test "$with_gnu_ld" = yes; then
12136 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12137 else
12138 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12139 case $host_os in
12140 sco3.2v5*)
12141 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12142 ;;
12143 esac
12144 fi
12145 sys_lib_dlsearch_path_spec='/usr/lib'
12146 ;;
12147
12148 tpf*)
12149 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12150 version_type=linux # correct to gnu/linux during the next big refactor
12151 need_lib_prefix=no
12152 need_version=no
12153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12154 shlibpath_var=LD_LIBRARY_PATH
12155 shlibpath_overrides_runpath=no
12156 hardcode_into_libs=yes
12157 ;;
12158
12159 uts4*)
12160 version_type=linux # correct to gnu/linux during the next big refactor
12161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12162 soname_spec='${libname}${release}${shared_ext}$major'
12163 shlibpath_var=LD_LIBRARY_PATH
12164 ;;
12165
12166 *)
12167 dynamic_linker=no
12168 ;;
12169 esac
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12171 $as_echo "$dynamic_linker" >&6; }
12172 test "$dynamic_linker" = no && can_build_shared=no
12173
12174 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12175 if test "$GCC" = yes; then
12176 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12177 fi
12178
12179 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12180 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12181 fi
12182 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12183 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12184 fi
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12278 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12279 hardcode_action=
12280 if test -n "$hardcode_libdir_flag_spec" ||
12281 test -n "$runpath_var" ||
12282 test "X$hardcode_automatic" = "Xyes" ; then
12283
12284 # We can hardcode non-existent directories.
12285 if test "$hardcode_direct" != no &&
12286 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12287 # have to relink, otherwise we might link with an installed library
12288 # when we should be linking with a yet-to-be-installed one
12289 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12290 test "$hardcode_minus_L" != no; then
12291 # Linking always hardcodes the temporary library directory.
12292 hardcode_action=relink
12293 else
12294 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12295 hardcode_action=immediate
12296 fi
12297 else
12298 # We cannot hardcode anything, or else we can only hardcode existing
12299 # directories.
12300 hardcode_action=unsupported
12301 fi
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12303 $as_echo "$hardcode_action" >&6; }
12304
12305 if test "$hardcode_action" = relink ||
12306 test "$inherit_rpath" = yes; then
12307 # Fast installation is not supported
12308 enable_fast_install=no
12309 elif test "$shlibpath_overrides_runpath" = yes ||
12310 test "$enable_shared" = no; then
12311 # Fast installation is not necessary
12312 enable_fast_install=needless
12313 fi
12314
12315
12316
12317
12318
12319
12320 if test "x$enable_dlopen" != xyes; then
12321 enable_dlopen=unknown
12322 enable_dlopen_self=unknown
12323 enable_dlopen_self_static=unknown
12324 else
12325 lt_cv_dlopen=no
12326 lt_cv_dlopen_libs=
12327
12328 case $host_os in
12329 beos*)
12330 lt_cv_dlopen="load_add_on"
12331 lt_cv_dlopen_libs=
12332 lt_cv_dlopen_self=yes
12333 ;;
12334
12335 mingw* | pw32* | cegcc*)
12336 lt_cv_dlopen="LoadLibrary"
12337 lt_cv_dlopen_libs=
12338 ;;
12339
12340 cygwin*)
12341 lt_cv_dlopen="dlopen"
12342 lt_cv_dlopen_libs=
12343 ;;
12344
12345 darwin*)
12346 # if libdl is installed we need to link against it
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12348 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12349 if ${ac_cv_lib_dl_dlopen+:} false; then :
12350 $as_echo_n "(cached) " >&6
12351 else
12352 ac_check_lib_save_LIBS=$LIBS
12353 LIBS="-ldl $LIBS"
12354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12355 /* end confdefs.h. */
12356
12357 /* Override any GCC internal prototype to avoid an error.
12358 Use char because int might match the return type of a GCC
12359 builtin and then its argument prototype would still apply. */
12360 #ifdef __cplusplus
12361 extern "C"
12362 #endif
12363 char dlopen ();
12364 int
12365 main ()
12366 {
12367 return dlopen ();
12368 ;
12369 return 0;
12370 }
12371 _ACEOF
12372 if ac_fn_c_try_link "$LINENO"; then :
12373 ac_cv_lib_dl_dlopen=yes
12374 else
12375 ac_cv_lib_dl_dlopen=no
12376 fi
12377 rm -f core conftest.err conftest.$ac_objext \
12378 conftest$ac_exeext conftest.$ac_ext
12379 LIBS=$ac_check_lib_save_LIBS
12380 fi
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12382 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12383 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12384 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12385 else
12386
12387 lt_cv_dlopen="dyld"
12388 lt_cv_dlopen_libs=
12389 lt_cv_dlopen_self=yes
12390
12391 fi
12392
12393 ;;
12394
12395 *)
12396 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12397 if test "x$ac_cv_func_shl_load" = xyes; then :
12398 lt_cv_dlopen="shl_load"
12399 else
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12401 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12402 if ${ac_cv_lib_dld_shl_load+:} false; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 ac_check_lib_save_LIBS=$LIBS
12406 LIBS="-ldld $LIBS"
12407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12409
12410 /* Override any GCC internal prototype to avoid an error.
12411 Use char because int might match the return type of a GCC
12412 builtin and then its argument prototype would still apply. */
12413 #ifdef __cplusplus
12414 extern "C"
12415 #endif
12416 char shl_load ();
12417 int
12418 main ()
12419 {
12420 return shl_load ();
12421 ;
12422 return 0;
12423 }
12424 _ACEOF
12425 if ac_fn_c_try_link "$LINENO"; then :
12426 ac_cv_lib_dld_shl_load=yes
12427 else
12428 ac_cv_lib_dld_shl_load=no
12429 fi
12430 rm -f core conftest.err conftest.$ac_objext \
12431 conftest$ac_exeext conftest.$ac_ext
12432 LIBS=$ac_check_lib_save_LIBS
12433 fi
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12435 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12436 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12437 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12438 else
12439 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12440 if test "x$ac_cv_func_dlopen" = xyes; then :
12441 lt_cv_dlopen="dlopen"
12442 else
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12444 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12445 if ${ac_cv_lib_dl_dlopen+:} false; then :
12446 $as_echo_n "(cached) " >&6
12447 else
12448 ac_check_lib_save_LIBS=$LIBS
12449 LIBS="-ldl $LIBS"
12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h. */
12452
12453 /* Override any GCC internal prototype to avoid an error.
12454 Use char because int might match the return type of a GCC
12455 builtin and then its argument prototype would still apply. */
12456 #ifdef __cplusplus
12457 extern "C"
12458 #endif
12459 char dlopen ();
12460 int
12461 main ()
12462 {
12463 return dlopen ();
12464 ;
12465 return 0;
12466 }
12467 _ACEOF
12468 if ac_fn_c_try_link "$LINENO"; then :
12469 ac_cv_lib_dl_dlopen=yes
12470 else
12471 ac_cv_lib_dl_dlopen=no
12472 fi
12473 rm -f core conftest.err conftest.$ac_objext \
12474 conftest$ac_exeext conftest.$ac_ext
12475 LIBS=$ac_check_lib_save_LIBS
12476 fi
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12478 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12479 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12480 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12481 else
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12483 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12484 if ${ac_cv_lib_svld_dlopen+:} false; then :
12485 $as_echo_n "(cached) " >&6
12486 else
12487 ac_check_lib_save_LIBS=$LIBS
12488 LIBS="-lsvld $LIBS"
12489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12490 /* end confdefs.h. */
12491
12492 /* Override any GCC internal prototype to avoid an error.
12493 Use char because int might match the return type of a GCC
12494 builtin and then its argument prototype would still apply. */
12495 #ifdef __cplusplus
12496 extern "C"
12497 #endif
12498 char dlopen ();
12499 int
12500 main ()
12501 {
12502 return dlopen ();
12503 ;
12504 return 0;
12505 }
12506 _ACEOF
12507 if ac_fn_c_try_link "$LINENO"; then :
12508 ac_cv_lib_svld_dlopen=yes
12509 else
12510 ac_cv_lib_svld_dlopen=no
12511 fi
12512 rm -f core conftest.err conftest.$ac_objext \
12513 conftest$ac_exeext conftest.$ac_ext
12514 LIBS=$ac_check_lib_save_LIBS
12515 fi
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12517 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12518 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12519 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12520 else
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12522 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12523 if ${ac_cv_lib_dld_dld_link+:} false; then :
12524 $as_echo_n "(cached) " >&6
12525 else
12526 ac_check_lib_save_LIBS=$LIBS
12527 LIBS="-ldld $LIBS"
12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12530
12531 /* Override any GCC internal prototype to avoid an error.
12532 Use char because int might match the return type of a GCC
12533 builtin and then its argument prototype would still apply. */
12534 #ifdef __cplusplus
12535 extern "C"
12536 #endif
12537 char dld_link ();
12538 int
12539 main ()
12540 {
12541 return dld_link ();
12542 ;
12543 return 0;
12544 }
12545 _ACEOF
12546 if ac_fn_c_try_link "$LINENO"; then :
12547 ac_cv_lib_dld_dld_link=yes
12548 else
12549 ac_cv_lib_dld_dld_link=no
12550 fi
12551 rm -f core conftest.err conftest.$ac_objext \
12552 conftest$ac_exeext conftest.$ac_ext
12553 LIBS=$ac_check_lib_save_LIBS
12554 fi
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12556 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12557 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12558 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12559 fi
12560
12561
12562 fi
12563
12564
12565 fi
12566
12567
12568 fi
12569
12570
12571 fi
12572
12573
12574 fi
12575
12576 ;;
12577 esac
12578
12579 if test "x$lt_cv_dlopen" != xno; then
12580 enable_dlopen=yes
12581 else
12582 enable_dlopen=no
12583 fi
12584
12585 case $lt_cv_dlopen in
12586 dlopen)
12587 save_CPPFLAGS="$CPPFLAGS"
12588 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12589
12590 save_LDFLAGS="$LDFLAGS"
12591 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12592
12593 save_LIBS="$LIBS"
12594 LIBS="$lt_cv_dlopen_libs $LIBS"
12595
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12597 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12598 if ${lt_cv_dlopen_self+:} false; then :
12599 $as_echo_n "(cached) " >&6
12600 else
12601 if test "$cross_compiling" = yes; then :
12602 lt_cv_dlopen_self=cross
12603 else
12604 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12605 lt_status=$lt_dlunknown
12606 cat > conftest.$ac_ext <<_LT_EOF
12607 #line $LINENO "configure"
12608 #include "confdefs.h"
12609
12610 #if HAVE_DLFCN_H
12611 #include <dlfcn.h>
12612 #endif
12613
12614 #include <stdio.h>
12615
12616 #ifdef RTLD_GLOBAL
12617 # define LT_DLGLOBAL RTLD_GLOBAL
12618 #else
12619 # ifdef DL_GLOBAL
12620 # define LT_DLGLOBAL DL_GLOBAL
12621 # else
12622 # define LT_DLGLOBAL 0
12623 # endif
12624 #endif
12625
12626 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12627 find out it does not work in some platform. */
12628 #ifndef LT_DLLAZY_OR_NOW
12629 # ifdef RTLD_LAZY
12630 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12631 # else
12632 # ifdef DL_LAZY
12633 # define LT_DLLAZY_OR_NOW DL_LAZY
12634 # else
12635 # ifdef RTLD_NOW
12636 # define LT_DLLAZY_OR_NOW RTLD_NOW
12637 # else
12638 # ifdef DL_NOW
12639 # define LT_DLLAZY_OR_NOW DL_NOW
12640 # else
12641 # define LT_DLLAZY_OR_NOW 0
12642 # endif
12643 # endif
12644 # endif
12645 # endif
12646 #endif
12647
12648 /* When -fvisbility=hidden is used, assume the code has been annotated
12649 correspondingly for the symbols needed. */
12650 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12651 int fnord () __attribute__((visibility("default")));
12652 #endif
12653
12654 int fnord () { return 42; }
12655 int main ()
12656 {
12657 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12658 int status = $lt_dlunknown;
12659
12660 if (self)
12661 {
12662 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12663 else
12664 {
12665 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12666 else puts (dlerror ());
12667 }
12668 /* dlclose (self); */
12669 }
12670 else
12671 puts (dlerror ());
12672
12673 return status;
12674 }
12675 _LT_EOF
12676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12677 (eval $ac_link) 2>&5
12678 ac_status=$?
12679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12680 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12681 (./conftest; exit; ) >&5 2>/dev/null
12682 lt_status=$?
12683 case x$lt_status in
12684 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12685 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12686 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12687 esac
12688 else :
12689 # compilation failed
12690 lt_cv_dlopen_self=no
12691 fi
12692 fi
12693 rm -fr conftest*
12694
12695
12696 fi
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12698 $as_echo "$lt_cv_dlopen_self" >&6; }
12699
12700 if test "x$lt_cv_dlopen_self" = xyes; then
12701 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12703 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12704 if ${lt_cv_dlopen_self_static+:} false; then :
12705 $as_echo_n "(cached) " >&6
12706 else
12707 if test "$cross_compiling" = yes; then :
12708 lt_cv_dlopen_self_static=cross
12709 else
12710 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12711 lt_status=$lt_dlunknown
12712 cat > conftest.$ac_ext <<_LT_EOF
12713 #line $LINENO "configure"
12714 #include "confdefs.h"
12715
12716 #if HAVE_DLFCN_H
12717 #include <dlfcn.h>
12718 #endif
12719
12720 #include <stdio.h>
12721
12722 #ifdef RTLD_GLOBAL
12723 # define LT_DLGLOBAL RTLD_GLOBAL
12724 #else
12725 # ifdef DL_GLOBAL
12726 # define LT_DLGLOBAL DL_GLOBAL
12727 # else
12728 # define LT_DLGLOBAL 0
12729 # endif
12730 #endif
12731
12732 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12733 find out it does not work in some platform. */
12734 #ifndef LT_DLLAZY_OR_NOW
12735 # ifdef RTLD_LAZY
12736 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12737 # else
12738 # ifdef DL_LAZY
12739 # define LT_DLLAZY_OR_NOW DL_LAZY
12740 # else
12741 # ifdef RTLD_NOW
12742 # define LT_DLLAZY_OR_NOW RTLD_NOW
12743 # else
12744 # ifdef DL_NOW
12745 # define LT_DLLAZY_OR_NOW DL_NOW
12746 # else
12747 # define LT_DLLAZY_OR_NOW 0
12748 # endif
12749 # endif
12750 # endif
12751 # endif
12752 #endif
12753
12754 /* When -fvisbility=hidden is used, assume the code has been annotated
12755 correspondingly for the symbols needed. */
12756 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12757 int fnord () __attribute__((visibility("default")));
12758 #endif
12759
12760 int fnord () { return 42; }
12761 int main ()
12762 {
12763 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12764 int status = $lt_dlunknown;
12765
12766 if (self)
12767 {
12768 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12769 else
12770 {
12771 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12772 else puts (dlerror ());
12773 }
12774 /* dlclose (self); */
12775 }
12776 else
12777 puts (dlerror ());
12778
12779 return status;
12780 }
12781 _LT_EOF
12782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12783 (eval $ac_link) 2>&5
12784 ac_status=$?
12785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12786 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12787 (./conftest; exit; ) >&5 2>/dev/null
12788 lt_status=$?
12789 case x$lt_status in
12790 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12791 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12792 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12793 esac
12794 else :
12795 # compilation failed
12796 lt_cv_dlopen_self_static=no
12797 fi
12798 fi
12799 rm -fr conftest*
12800
12801
12802 fi
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12804 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12805 fi
12806
12807 CPPFLAGS="$save_CPPFLAGS"
12808 LDFLAGS="$save_LDFLAGS"
12809 LIBS="$save_LIBS"
12810 ;;
12811 esac
12812
12813 case $lt_cv_dlopen_self in
12814 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12815 *) enable_dlopen_self=unknown ;;
12816 esac
12817
12818 case $lt_cv_dlopen_self_static in
12819 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12820 *) enable_dlopen_self_static=unknown ;;
12821 esac
12822 fi
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840 striplib=
12841 old_striplib=
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12843 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12844 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12845 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12846 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12848 $as_echo "yes" >&6; }
12849 else
12850 # FIXME - insert some real tests, host_os isn't really good enough
12851 case $host_os in
12852 darwin*)
12853 if test -n "$STRIP" ; then
12854 striplib="$STRIP -x"
12855 old_striplib="$STRIP -S"
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12857 $as_echo "yes" >&6; }
12858 else
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860 $as_echo "no" >&6; }
12861 fi
12862 ;;
12863 *)
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865 $as_echo "no" >&6; }
12866 ;;
12867 esac
12868 fi
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881 # Report which library types will actually be built
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12883 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12885 $as_echo "$can_build_shared" >&6; }
12886
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12888 $as_echo_n "checking whether to build shared libraries... " >&6; }
12889 test "$can_build_shared" = "no" && enable_shared=no
12890
12891 # On AIX, shared libraries and static libraries use the same namespace, and
12892 # are all built from PIC.
12893 case $host_os in
12894 aix3*)
12895 test "$enable_shared" = yes && enable_static=no
12896 if test -n "$RANLIB"; then
12897 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12898 postinstall_cmds='$RANLIB $lib'
12899 fi
12900 ;;
12901
12902 aix[4-9]*)
12903 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12904 test "$enable_shared" = yes && enable_static=no
12905 fi
12906 ;;
12907 esac
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12909 $as_echo "$enable_shared" >&6; }
12910
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12912 $as_echo_n "checking whether to build static libraries... " >&6; }
12913 # Make sure either enable_shared or enable_static is yes.
12914 test "$enable_shared" = yes || enable_static=yes
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12916 $as_echo "$enable_static" >&6; }
12917
12918
12919
12920
12921 fi
12922 ac_ext=c
12923 ac_cpp='$CPP $CPPFLAGS'
12924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12927
12928 CC="$lt_save_CC"
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944 ac_config_commands="$ac_config_commands libtool"
12945
12946
12947
12948
12949 # Only expand once:
12950
12951
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12953 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12954 if ${libltdl_cv_shlibext+:} false; then :
12955 $as_echo_n "(cached) " >&6
12956 else
12957
12958 module=yes
12959 eval libltdl_cv_shlibext=$shrext_cmds
12960 module=no
12961 eval libltdl_cv_shrext=$shrext_cmds
12962
12963 fi
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
12965 $as_echo "$libltdl_cv_shlibext" >&6; }
12966 if test -n "$libltdl_cv_shlibext"; then
12967
12968 cat >>confdefs.h <<_ACEOF
12969 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
12970 _ACEOF
12971
12972 fi
12973 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
12974
12975 cat >>confdefs.h <<_ACEOF
12976 #define LT_SHARED_EXT "$libltdl_cv_shrext"
12977 _ACEOF
12978
12979 fi
12980
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12982 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12983 if ${lt_cv_module_path_var+:} false; then :
12984 $as_echo_n "(cached) " >&6
12985 else
12986 lt_cv_module_path_var="$shlibpath_var"
12987 fi
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12989 $as_echo "$lt_cv_module_path_var" >&6; }
12990 if test -n "$lt_cv_module_path_var"; then
12991
12992 cat >>confdefs.h <<_ACEOF
12993 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12994 _ACEOF
12995
12996 fi
12997
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12999 $as_echo_n "checking for the default library search path... " >&6; }
13000 if ${lt_cv_sys_dlsearch_path+:} false; then :
13001 $as_echo_n "(cached) " >&6
13002 else
13003 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
13004 fi
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
13006 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
13007 if test -n "$lt_cv_sys_dlsearch_path"; then
13008 sys_dlsearch_path=
13009 for dir in $lt_cv_sys_dlsearch_path; do
13010 if test -z "$sys_dlsearch_path"; then
13011 sys_dlsearch_path="$dir"
13012 else
13013 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
13014 fi
13015 done
13016
13017 cat >>confdefs.h <<_ACEOF
13018 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
13019 _ACEOF
13020
13021 fi
13022
13023
13024 LT_DLLOADERS=
13025
13026
13027 ac_ext=c
13028 ac_cpp='$CPP $CPPFLAGS'
13029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13032
13033
13034 LIBADD_DLOPEN=
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13036 $as_echo_n "checking for library containing dlopen... " >&6; }
13037 if ${ac_cv_search_dlopen+:} false; then :
13038 $as_echo_n "(cached) " >&6
13039 else
13040 ac_func_search_save_LIBS=$LIBS
13041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13042 /* end confdefs.h. */
13043
13044 /* Override any GCC internal prototype to avoid an error.
13045 Use char because int might match the return type of a GCC
13046 builtin and then its argument prototype would still apply. */
13047 #ifdef __cplusplus
13048 extern "C"
13049 #endif
13050 char dlopen ();
13051 int
13052 main ()
13053 {
13054 return dlopen ();
13055 ;
13056 return 0;
13057 }
13058 _ACEOF
13059 for ac_lib in '' dl; do
13060 if test -z "$ac_lib"; then
13061 ac_res="none required"
13062 else
13063 ac_res=-l$ac_lib
13064 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13065 fi
13066 if ac_fn_c_try_link "$LINENO"; then :
13067 ac_cv_search_dlopen=$ac_res
13068 fi
13069 rm -f core conftest.err conftest.$ac_objext \
13070 conftest$ac_exeext
13071 if ${ac_cv_search_dlopen+:} false; then :
13072 break
13073 fi
13074 done
13075 if ${ac_cv_search_dlopen+:} false; then :
13076
13077 else
13078 ac_cv_search_dlopen=no
13079 fi
13080 rm conftest.$ac_ext
13081 LIBS=$ac_func_search_save_LIBS
13082 fi
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13084 $as_echo "$ac_cv_search_dlopen" >&6; }
13085 ac_res=$ac_cv_search_dlopen
13086 if test "$ac_res" != no; then :
13087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13088
13089 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
13090
13091 if test "$ac_cv_search_dlopen" != "none required" ; then
13092 LIBADD_DLOPEN="-ldl"
13093 fi
13094 libltdl_cv_lib_dl_dlopen="yes"
13095 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
13096 else
13097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098 /* end confdefs.h. */
13099 #if HAVE_DLFCN_H
13100 # include <dlfcn.h>
13101 #endif
13102
13103 int
13104 main ()
13105 {
13106 dlopen(0, 0);
13107 ;
13108 return 0;
13109 }
13110 _ACEOF
13111 if ac_fn_c_try_link "$LINENO"; then :
13112
13113 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
13114
13115 libltdl_cv_func_dlopen="yes"
13116 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
13117 else
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13119 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13120 if ${ac_cv_lib_svld_dlopen+:} false; then :
13121 $as_echo_n "(cached) " >&6
13122 else
13123 ac_check_lib_save_LIBS=$LIBS
13124 LIBS="-lsvld $LIBS"
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13127
13128 /* Override any GCC internal prototype to avoid an error.
13129 Use char because int might match the return type of a GCC
13130 builtin and then its argument prototype would still apply. */
13131 #ifdef __cplusplus
13132 extern "C"
13133 #endif
13134 char dlopen ();
13135 int
13136 main ()
13137 {
13138 return dlopen ();
13139 ;
13140 return 0;
13141 }
13142 _ACEOF
13143 if ac_fn_c_try_link "$LINENO"; then :
13144 ac_cv_lib_svld_dlopen=yes
13145 else
13146 ac_cv_lib_svld_dlopen=no
13147 fi
13148 rm -f core conftest.err conftest.$ac_objext \
13149 conftest$ac_exeext conftest.$ac_ext
13150 LIBS=$ac_check_lib_save_LIBS
13151 fi
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13153 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13154 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13155
13156 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
13157
13158 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
13159 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
13160 fi
13161
13162 fi
13163 rm -f core conftest.err conftest.$ac_objext \
13164 conftest$ac_exeext conftest.$ac_ext
13165 fi
13166
13167 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
13168 then
13169 lt_save_LIBS="$LIBS"
13170 LIBS="$LIBS $LIBADD_DLOPEN"
13171 for ac_func in dlerror
13172 do :
13173 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
13174 if test "x$ac_cv_func_dlerror" = xyes; then :
13175 cat >>confdefs.h <<_ACEOF
13176 #define HAVE_DLERROR 1
13177 _ACEOF
13178
13179 fi
13180 done
13181
13182 LIBS="$lt_save_LIBS"
13183 fi
13184
13185
13186 LIBADD_SHL_LOAD=
13187 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13188 if test "x$ac_cv_func_shl_load" = xyes; then :
13189
13190 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
13191
13192 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
13193 else
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13195 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13196 if ${ac_cv_lib_dld_shl_load+:} false; then :
13197 $as_echo_n "(cached) " >&6
13198 else
13199 ac_check_lib_save_LIBS=$LIBS
13200 LIBS="-ldld $LIBS"
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13203
13204 /* Override any GCC internal prototype to avoid an error.
13205 Use char because int might match the return type of a GCC
13206 builtin and then its argument prototype would still apply. */
13207 #ifdef __cplusplus
13208 extern "C"
13209 #endif
13210 char shl_load ();
13211 int
13212 main ()
13213 {
13214 return shl_load ();
13215 ;
13216 return 0;
13217 }
13218 _ACEOF
13219 if ac_fn_c_try_link "$LINENO"; then :
13220 ac_cv_lib_dld_shl_load=yes
13221 else
13222 ac_cv_lib_dld_shl_load=no
13223 fi
13224 rm -f core conftest.err conftest.$ac_objext \
13225 conftest$ac_exeext conftest.$ac_ext
13226 LIBS=$ac_check_lib_save_LIBS
13227 fi
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13229 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13230 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13231
13232 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
13233
13234 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
13235 LIBADD_SHL_LOAD="-ldld"
13236 fi
13237
13238 fi
13239
13240
13241
13242 case $host_os in
13243 darwin[1567].*)
13244 # We only want this for pre-Mac OS X 10.4.
13245 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
13246 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
13247
13248 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
13249
13250 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
13251 fi
13252
13253 ;;
13254 beos*)
13255 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
13256 ;;
13257 cygwin* | mingw* | os2* | pw32*)
13258 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
13259 "
13260 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
13261 ac_have_decl=1
13262 else
13263 ac_have_decl=0
13264 fi
13265
13266 cat >>confdefs.h <<_ACEOF
13267 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
13268 _ACEOF
13269
13270 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
13271 ;;
13272 esac
13273
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13275 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13276 if ${ac_cv_lib_dld_dld_link+:} false; then :
13277 $as_echo_n "(cached) " >&6
13278 else
13279 ac_check_lib_save_LIBS=$LIBS
13280 LIBS="-ldld $LIBS"
13281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13282 /* end confdefs.h. */
13283
13284 /* Override any GCC internal prototype to avoid an error.
13285 Use char because int might match the return type of a GCC
13286 builtin and then its argument prototype would still apply. */
13287 #ifdef __cplusplus
13288 extern "C"
13289 #endif
13290 char dld_link ();
13291 int
13292 main ()
13293 {
13294 return dld_link ();
13295 ;
13296 return 0;
13297 }
13298 _ACEOF
13299 if ac_fn_c_try_link "$LINENO"; then :
13300 ac_cv_lib_dld_dld_link=yes
13301 else
13302 ac_cv_lib_dld_dld_link=no
13303 fi
13304 rm -f core conftest.err conftest.$ac_objext \
13305 conftest$ac_exeext conftest.$ac_ext
13306 LIBS=$ac_check_lib_save_LIBS
13307 fi
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13309 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13310 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13311
13312 $as_echo "#define HAVE_DLD 1" >>confdefs.h
13313
13314 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
13315 fi
13316
13317
13318
13319
13320 LT_DLPREOPEN=
13321 if test -n "$LT_DLLOADERS"
13322 then
13323 for lt_loader in $LT_DLLOADERS; do
13324 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
13325 done
13326
13327 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
13328
13329 fi
13330
13331
13332 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
13333
13334
13335 ac_ext=c
13336 ac_cpp='$CPP $CPPFLAGS'
13337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13340
13341
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
13343 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
13344 if ${lt_cv_sys_symbol_underscore+:} false; then :
13345 $as_echo_n "(cached) " >&6
13346 else
13347 lt_cv_sys_symbol_underscore=no
13348 cat > conftest.$ac_ext <<_LT_EOF
13349 void nm_test_func(){}
13350 int main(){nm_test_func;return 0;}
13351 _LT_EOF
13352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13353 (eval $ac_compile) 2>&5
13354 ac_status=$?
13355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13356 test $ac_status = 0; }; then
13357 # Now try to grab the symbols.
13358 ac_nlist=conftest.nm
13359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
13360 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
13361 ac_status=$?
13362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13363 test $ac_status = 0; } && test -s "$ac_nlist"; then
13364 # See whether the symbols have a leading underscore.
13365 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
13366 lt_cv_sys_symbol_underscore=yes
13367 else
13368 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
13369 :
13370 else
13371 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
13372 fi
13373 fi
13374 else
13375 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
13376 fi
13377 else
13378 echo "configure: failed program was:" >&5
13379 cat conftest.c >&5
13380 fi
13381 rm -rf conftest*
13382
13383 fi
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
13385 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
13386 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
13387
13388
13389 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
13390 if test x"$libltdl_cv_func_dlopen" = xyes ||
13391 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
13393 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
13394 if ${libltdl_cv_need_uscore+:} false; then :
13395 $as_echo_n "(cached) " >&6
13396 else
13397 libltdl_cv_need_uscore=unknown
13398 save_LIBS="$LIBS"
13399 LIBS="$LIBS $LIBADD_DLOPEN"
13400 if test "$cross_compiling" = yes; then :
13401 libltdl_cv_need_uscore=cross
13402 else
13403 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13404 lt_status=$lt_dlunknown
13405 cat > conftest.$ac_ext <<_LT_EOF
13406 #line $LINENO "configure"
13407 #include "confdefs.h"
13408
13409 #if HAVE_DLFCN_H
13410 #include <dlfcn.h>
13411 #endif
13412
13413 #include <stdio.h>
13414
13415 #ifdef RTLD_GLOBAL
13416 # define LT_DLGLOBAL RTLD_GLOBAL
13417 #else
13418 # ifdef DL_GLOBAL
13419 # define LT_DLGLOBAL DL_GLOBAL
13420 # else
13421 # define LT_DLGLOBAL 0
13422 # endif
13423 #endif
13424
13425 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13426 find out it does not work in some platform. */
13427 #ifndef LT_DLLAZY_OR_NOW
13428 # ifdef RTLD_LAZY
13429 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13430 # else
13431 # ifdef DL_LAZY
13432 # define LT_DLLAZY_OR_NOW DL_LAZY
13433 # else
13434 # ifdef RTLD_NOW
13435 # define LT_DLLAZY_OR_NOW RTLD_NOW
13436 # else
13437 # ifdef DL_NOW
13438 # define LT_DLLAZY_OR_NOW DL_NOW
13439 # else
13440 # define LT_DLLAZY_OR_NOW 0
13441 # endif
13442 # endif
13443 # endif
13444 # endif
13445 #endif
13446
13447 /* When -fvisbility=hidden is used, assume the code has been annotated
13448 correspondingly for the symbols needed. */
13449 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13450 int fnord () __attribute__((visibility("default")));
13451 #endif
13452
13453 int fnord () { return 42; }
13454 int main ()
13455 {
13456 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13457 int status = $lt_dlunknown;
13458
13459 if (self)
13460 {
13461 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13462 else
13463 {
13464 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13465 else puts (dlerror ());
13466 }
13467 /* dlclose (self); */
13468 }
13469 else
13470 puts (dlerror ());
13471
13472 return status;
13473 }
13474 _LT_EOF
13475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13476 (eval $ac_link) 2>&5
13477 ac_status=$?
13478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13479 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13480 (./conftest; exit; ) >&5 2>/dev/null
13481 lt_status=$?
13482 case x$lt_status in
13483 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
13484 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
13485 x$lt_dlunknown|x*) ;;
13486 esac
13487 else :
13488 # compilation failed
13489
13490 fi
13491 fi
13492 rm -fr conftest*
13493
13494 LIBS="$save_LIBS"
13495
13496 fi
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
13498 $as_echo "$libltdl_cv_need_uscore" >&6; }
13499 fi
13500 fi
13501
13502 if test x"$libltdl_cv_need_uscore" = xyes; then
13503
13504 $as_echo "#define NEED_USCORE 1" >>confdefs.h
13505
13506 fi
13507
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
13509 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
13510 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
13511 $as_echo_n "(cached) " >&6
13512 else
13513 # PORTME does your system automatically load deplibs for dlopen?
13514 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
13515 # For now, we just catch OSes we know something about -- in the
13516 # future, we'll try test this programmatically.
13517 lt_cv_sys_dlopen_deplibs=unknown
13518 case $host_os in
13519 aix3*|aix4.1.*|aix4.2.*)
13520 # Unknown whether this is true for these versions of AIX, but
13521 # we want this `case' here to explicitly catch those versions.
13522 lt_cv_sys_dlopen_deplibs=unknown
13523 ;;
13524 aix[4-9]*)
13525 lt_cv_sys_dlopen_deplibs=yes
13526 ;;
13527 amigaos*)
13528 case $host_cpu in
13529 powerpc)
13530 lt_cv_sys_dlopen_deplibs=no
13531 ;;
13532 esac
13533 ;;
13534 darwin*)
13535 # Assuming the user has installed a libdl from somewhere, this is true
13536 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
13537 lt_cv_sys_dlopen_deplibs=yes
13538 ;;
13539 freebsd* | dragonfly*)
13540 lt_cv_sys_dlopen_deplibs=yes
13541 ;;
13542 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
13543 # GNU and its variants, using gnu ld.so (Glibc)
13544 lt_cv_sys_dlopen_deplibs=yes
13545 ;;
13546 hpux10*|hpux11*)
13547 lt_cv_sys_dlopen_deplibs=yes
13548 ;;
13549 interix*)
13550 lt_cv_sys_dlopen_deplibs=yes
13551 ;;
13552 irix[12345]*|irix6.[01]*)
13553 # Catch all versions of IRIX before 6.2, and indicate that we don't
13554 # know how it worked for any of those versions.
13555 lt_cv_sys_dlopen_deplibs=unknown
13556 ;;
13557 irix*)
13558 # The case above catches anything before 6.2, and it's known that
13559 # at 6.2 and later dlopen does load deplibs.
13560 lt_cv_sys_dlopen_deplibs=yes
13561 ;;
13562 netbsd* | netbsdelf*-gnu)
13563 lt_cv_sys_dlopen_deplibs=yes
13564 ;;
13565 openbsd*)
13566 lt_cv_sys_dlopen_deplibs=yes
13567 ;;
13568 osf[1234]*)
13569 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
13570 # it did *not* use an RPATH in a shared library to find objects the
13571 # library depends on, so we explicitly say `no'.
13572 lt_cv_sys_dlopen_deplibs=no
13573 ;;
13574 osf5.0|osf5.0a|osf5.1)
13575 # dlopen *does* load deplibs and with the right loader patch applied
13576 # it even uses RPATH in a shared library to search for shared objects
13577 # that the library depends on, but there's no easy way to know if that
13578 # patch is installed. Since this is the case, all we can really
13579 # say is unknown -- it depends on the patch being installed. If
13580 # it is, this changes to `yes'. Without it, it would be `no'.
13581 lt_cv_sys_dlopen_deplibs=unknown
13582 ;;
13583 osf*)
13584 # the two cases above should catch all versions of osf <= 5.1. Read
13585 # the comments above for what we know about them.
13586 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
13587 # is used to find them so we can finally say `yes'.
13588 lt_cv_sys_dlopen_deplibs=yes
13589 ;;
13590 qnx*)
13591 lt_cv_sys_dlopen_deplibs=yes
13592 ;;
13593 solaris*)
13594 lt_cv_sys_dlopen_deplibs=yes
13595 ;;
13596 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13597 libltdl_cv_sys_dlopen_deplibs=yes
13598 ;;
13599 esac
13600
13601 fi
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
13603 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
13604 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
13605
13606 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
13607
13608 fi
13609
13610 :
13611
13612 for ac_header in argz.h
13613 do :
13614 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
13615 "
13616 if test "x$ac_cv_header_argz_h" = xyes; then :
13617 cat >>confdefs.h <<_ACEOF
13618 #define HAVE_ARGZ_H 1
13619 _ACEOF
13620
13621 fi
13622
13623 done
13624
13625
13626 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
13627 # include <argz.h>
13628 #endif
13629 "
13630 if test "x$ac_cv_type_error_t" = xyes; then :
13631
13632 cat >>confdefs.h <<_ACEOF
13633 #define HAVE_ERROR_T 1
13634 _ACEOF
13635
13636
13637 else
13638
13639 $as_echo "#define error_t int" >>confdefs.h
13640
13641
13642 $as_echo "#define __error_t_defined 1" >>confdefs.h
13643
13644 fi
13645
13646
13647 ARGZ_H=
13648 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
13649 argz_next argz_stringify
13650 do :
13651 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13652 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13653 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13654 cat >>confdefs.h <<_ACEOF
13655 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13656 _ACEOF
13657
13658 else
13659 ARGZ_H=argz.h;
13660
13661 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13662
13663 fi
13664 done
13665
13666
13667 if test -z "$ARGZ_H"; then :
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
13669 $as_echo_n "checking if argz actually works... " >&6; }
13670 if ${lt_cv_sys_argz_works+:} false; then :
13671 $as_echo_n "(cached) " >&6
13672 else
13673 case $host_os in #(
13674 *cygwin*)
13675 lt_cv_sys_argz_works=no
13676 if test "$cross_compiling" != no; then
13677 lt_cv_sys_argz_works="guessing no"
13678 else
13679 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
13680 save_IFS=$IFS
13681 IFS=-.
13682 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
13683 IFS=$save_IFS
13684 lt_os_major=${2-0}
13685 lt_os_minor=${3-0}
13686 lt_os_micro=${4-0}
13687 if test "$lt_os_major" -gt 1 \
13688 || { test "$lt_os_major" -eq 1 \
13689 && { test "$lt_os_minor" -gt 5 \
13690 || { test "$lt_os_minor" -eq 5 \
13691 && test "$lt_os_micro" -gt 24; }; }; }; then
13692 lt_cv_sys_argz_works=yes
13693 fi
13694 fi
13695 ;; #(
13696 *) lt_cv_sys_argz_works=yes ;;
13697 esac
13698 fi
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
13700 $as_echo "$lt_cv_sys_argz_works" >&6; }
13701 if test "$lt_cv_sys_argz_works" = yes; then :
13702
13703 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
13704
13705 else
13706 ARGZ_H=argz.h
13707
13708
13709 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13710
13711 fi
13712 fi
13713
13714
13715
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
13717 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
13718 if ${libltdl_cv_preloaded_symbols+:} false; then :
13719 $as_echo_n "(cached) " >&6
13720 else
13721 if test -n "$lt_cv_sys_global_symbol_pipe"; then
13722 libltdl_cv_preloaded_symbols=yes
13723 else
13724 libltdl_cv_preloaded_symbols=no
13725 fi
13726
13727 fi
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
13729 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
13730 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
13731
13732 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
13733
13734 fi
13735
13736
13737
13738 # Set options
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751 # Check whether --with-included_ltdl was given.
13752 if test "${with_included_ltdl+set}" = set; then :
13753 withval=$with_included_ltdl;
13754 fi
13755
13756
13757 if test "x$with_included_ltdl" != xyes; then
13758 # We are not being forced to use the included libltdl sources, so
13759 # decide whether there is a useful installed version we can use.
13760 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
13761
13762 "
13763 if test "x$ac_cv_header_ltdl_h" = xyes; then :
13764 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
13765 #include <ltdl.h>
13766 "
13767 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
13769 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
13770 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
13771 $as_echo_n "(cached) " >&6
13772 else
13773 ac_check_lib_save_LIBS=$LIBS
13774 LIBS="-lltdl $LIBS"
13775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776 /* end confdefs.h. */
13777
13778 /* Override any GCC internal prototype to avoid an error.
13779 Use char because int might match the return type of a GCC
13780 builtin and then its argument prototype would still apply. */
13781 #ifdef __cplusplus
13782 extern "C"
13783 #endif
13784 char lt_dladvise_preload ();
13785 int
13786 main ()
13787 {
13788 return lt_dladvise_preload ();
13789 ;
13790 return 0;
13791 }
13792 _ACEOF
13793 if ac_fn_c_try_link "$LINENO"; then :
13794 ac_cv_lib_ltdl_lt_dladvise_preload=yes
13795 else
13796 ac_cv_lib_ltdl_lt_dladvise_preload=no
13797 fi
13798 rm -f core conftest.err conftest.$ac_objext \
13799 conftest$ac_exeext conftest.$ac_ext
13800 LIBS=$ac_check_lib_save_LIBS
13801 fi
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
13803 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
13804 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
13805 with_included_ltdl=no
13806 else
13807 with_included_ltdl=yes
13808 fi
13809
13810 else
13811 with_included_ltdl=yes
13812 fi
13813
13814 else
13815 with_included_ltdl=yes
13816 fi
13817
13818
13819 fi
13820
13821
13822
13823
13824 # Check whether --with-ltdl_include was given.
13825 if test "${with_ltdl_include+set}" = set; then :
13826 withval=$with_ltdl_include;
13827 fi
13828
13829
13830 if test -n "$with_ltdl_include"; then
13831 if test -f "$with_ltdl_include/ltdl.h"; then :
13832 else
13833 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
13834 fi
13835 else
13836 with_ltdl_include=no
13837 fi
13838
13839
13840 # Check whether --with-ltdl_lib was given.
13841 if test "${with_ltdl_lib+set}" = set; then :
13842 withval=$with_ltdl_lib;
13843 fi
13844
13845
13846 if test -n "$with_ltdl_lib"; then
13847 if test -f "$with_ltdl_lib/libltdl.la"; then :
13848 else
13849 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
13850 fi
13851 else
13852 with_ltdl_lib=no
13853 fi
13854
13855 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
13856 ,yes,no,no,)
13857 case $enable_ltdl_convenience in
13858 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
13859 "") enable_ltdl_convenience=yes
13860 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13861 esac
13862 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13863 LTDLDEPS=$LIBLTDL
13864 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13865
13866
13867
13868
13869
13870 # For backwards non-gettext consistent compatibility...
13871 INCLTDL="$LTDLINCL"
13872
13873
13874 ;;
13875 ,no,no,no,)
13876 # If the included ltdl is not to be used, then use the
13877 # preinstalled libltdl we found.
13878
13879 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
13880
13881 LIBLTDL=-lltdl
13882 LTDLDEPS=
13883 LTDLINCL=
13884 ;;
13885 ,no*,no,*)
13886 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
13887 ;;
13888 *) with_included_ltdl=no
13889 LIBLTDL="-L$with_ltdl_lib -lltdl"
13890 LTDLDEPS=
13891 LTDLINCL="-I$with_ltdl_include"
13892 ;;
13893 esac
13894 INCLTDL="$LTDLINCL"
13895
13896 # Report our decision...
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
13898 $as_echo_n "checking where to find libltdl headers... " >&6; }
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
13900 $as_echo "$LTDLINCL" >&6; }
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
13902 $as_echo_n "checking where to find libltdl library... " >&6; }
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
13904 $as_echo "$LIBLTDL" >&6; }
13905
13906
13907
13908 # Check whether --enable-ltdl-install was given.
13909 if test "${enable_ltdl_install+set}" = set; then :
13910 enableval=$enable_ltdl_install;
13911 fi
13912
13913
13914 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13915 *yes*) ;;
13916 *) enable_ltdl_convenience=yes ;;
13917 esac
13918
13919 if test x"${enable_ltdl_install-no}" != xno; then
13920 INSTALL_LTDL_TRUE=
13921 INSTALL_LTDL_FALSE='#'
13922 else
13923 INSTALL_LTDL_TRUE='#'
13924 INSTALL_LTDL_FALSE=
13925 fi
13926
13927 if test x"${enable_ltdl_convenience-no}" != xno; then
13928 CONVENIENCE_LTDL_TRUE=
13929 CONVENIENCE_LTDL_FALSE='#'
13930 else
13931 CONVENIENCE_LTDL_TRUE='#'
13932 CONVENIENCE_LTDL_FALSE=
13933 fi
13934
13935
13936
13937 subdirs="$subdirs libltdl"
13938
13939
13940
13941
13942 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
13943 # the user used. This is so that ltdl.h can pick up the parent projects
13944 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
13945 # definitions required by ltdl.c.
13946 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
13947
13948
13949
13950 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
13951 do :
13952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13953 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13954 "
13955 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13956 cat >>confdefs.h <<_ACEOF
13957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13958 _ACEOF
13959
13960 fi
13961
13962 done
13963
13964
13965 for ac_func in closedir opendir readdir
13966 do :
13967 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13968 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13969 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13970 cat >>confdefs.h <<_ACEOF
13971 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13972 _ACEOF
13973
13974 else
13975
13976
13977 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
13978
13979 fi
13980 done
13981
13982 for ac_func in strlcat strlcpy
13983 do :
13984 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13985 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13986 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13987 cat >>confdefs.h <<_ACEOF
13988 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13989 _ACEOF
13990
13991 else
13992
13993
13994 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
13995
13996 fi
13997 done
13998
13999
14000
14001 cat >>confdefs.h <<_ACEOF
14002 #define LT_LIBEXT "$libext"
14003 _ACEOF
14004
14005
14006 name=
14007 eval "lt_libprefix=\"$libname_spec\""
14008
14009 cat >>confdefs.h <<_ACEOF
14010 #define LT_LIBPREFIX "$lt_libprefix"
14011 _ACEOF
14012
14013
14014 name=ltdl
14015 eval "LTDLOPEN=\"$libname_spec\""
14016
14017
14018
14019
14020
14021
14022
14023
14024 # Only expand once:
14025
14026
14027
14028 # Find a tar command for 'make dist'
14029 for ac_prog in gnutar gtar tar
14030 do
14031 # Extract the first word of "$ac_prog", so it can be a program name with args.
14032 set dummy $ac_prog; ac_word=$2
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14034 $as_echo_n "checking for $ac_word... " >&6; }
14035 if ${ac_cv_prog_TAR+:} false; then :
14036 $as_echo_n "(cached) " >&6
14037 else
14038 if test -n "$TAR"; then
14039 ac_cv_prog_TAR="$TAR" # Let the user override the test.
14040 else
14041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14042 for as_dir in $PATH
14043 do
14044 IFS=$as_save_IFS
14045 test -z "$as_dir" && as_dir=.
14046 for ac_exec_ext in '' $ac_executable_extensions; do
14047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14048 ac_cv_prog_TAR="$ac_prog"
14049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14050 break 2
14051 fi
14052 done
14053 done
14054 IFS=$as_save_IFS
14055
14056 fi
14057 fi
14058 TAR=$ac_cv_prog_TAR
14059 if test -n "$TAR"; then
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
14061 $as_echo "$TAR" >&6; }
14062 else
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14064 $as_echo "no" >&6; }
14065 fi
14066
14067
14068 test -n "$TAR" && break
14069 done
14070
14071
14072 for ac_prog in perl
14073 do
14074 # Extract the first word of "$ac_prog", so it can be a program name with args.
14075 set dummy $ac_prog; ac_word=$2
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14077 $as_echo_n "checking for $ac_word... " >&6; }
14078 if ${ac_cv_prog_PERL+:} false; then :
14079 $as_echo_n "(cached) " >&6
14080 else
14081 if test -n "$PERL"; then
14082 ac_cv_prog_PERL="$PERL" # Let the user override the test.
14083 else
14084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14085 for as_dir in $PATH
14086 do
14087 IFS=$as_save_IFS
14088 test -z "$as_dir" && as_dir=.
14089 for ac_exec_ext in '' $ac_executable_extensions; do
14090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14091 ac_cv_prog_PERL="$ac_prog"
14092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14093 break 2
14094 fi
14095 done
14096 done
14097 IFS=$as_save_IFS
14098
14099 fi
14100 fi
14101 PERL=$ac_cv_prog_PERL
14102 if test -n "$PERL"; then
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
14104 $as_echo "$PERL" >&6; }
14105 else
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14107 $as_echo "no" >&6; }
14108 fi
14109
14110
14111 test -n "$PERL" && break
14112 done
14113
14114 # Gnome
14115
14116
14117
14118
14119
14120
14121
14122 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14123 if test -n "$ac_tool_prefix"; then
14124 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14125 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14127 $as_echo_n "checking for $ac_word... " >&6; }
14128 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14129 $as_echo_n "(cached) " >&6
14130 else
14131 case $PKG_CONFIG in
14132 [\\/]* | ?:[\\/]*)
14133 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14134 ;;
14135 *)
14136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14137 for as_dir in $PATH
14138 do
14139 IFS=$as_save_IFS
14140 test -z "$as_dir" && as_dir=.
14141 for ac_exec_ext in '' $ac_executable_extensions; do
14142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14143 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14145 break 2
14146 fi
14147 done
14148 done
14149 IFS=$as_save_IFS
14150
14151 ;;
14152 esac
14153 fi
14154 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14155 if test -n "$PKG_CONFIG"; then
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14157 $as_echo "$PKG_CONFIG" >&6; }
14158 else
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14160 $as_echo "no" >&6; }
14161 fi
14162
14163
14164 fi
14165 if test -z "$ac_cv_path_PKG_CONFIG"; then
14166 ac_pt_PKG_CONFIG=$PKG_CONFIG
14167 # Extract the first word of "pkg-config", so it can be a program name with args.
14168 set dummy pkg-config; ac_word=$2
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14170 $as_echo_n "checking for $ac_word... " >&6; }
14171 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14172 $as_echo_n "(cached) " >&6
14173 else
14174 case $ac_pt_PKG_CONFIG in
14175 [\\/]* | ?:[\\/]*)
14176 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14177 ;;
14178 *)
14179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14180 for as_dir in $PATH
14181 do
14182 IFS=$as_save_IFS
14183 test -z "$as_dir" && as_dir=.
14184 for ac_exec_ext in '' $ac_executable_extensions; do
14185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14186 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14188 break 2
14189 fi
14190 done
14191 done
14192 IFS=$as_save_IFS
14193
14194 ;;
14195 esac
14196 fi
14197 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14198 if test -n "$ac_pt_PKG_CONFIG"; then
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14200 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14201 else
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14203 $as_echo "no" >&6; }
14204 fi
14205
14206 if test "x$ac_pt_PKG_CONFIG" = x; then
14207 PKG_CONFIG=""
14208 else
14209 case $cross_compiling:$ac_tool_warned in
14210 yes:)
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14213 ac_tool_warned=yes ;;
14214 esac
14215 PKG_CONFIG=$ac_pt_PKG_CONFIG
14216 fi
14217 else
14218 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14219 fi
14220
14221 fi
14222 if test -n "$PKG_CONFIG"; then
14223 _pkg_min_version=0.9.0
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14225 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14226 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14228 $as_echo "yes" >&6; }
14229 else
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14231 $as_echo "no" >&6; }
14232 PKG_CONFIG=""
14233 fi
14234 fi
14235
14236
14237
14238 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
14239
14240
14241 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
14242
14243
14244 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
14245
14246
14247 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
14248
14249
14250 for ac_prog in echo
14251 do
14252 # Extract the first word of "$ac_prog", so it can be a program name with args.
14253 set dummy $ac_prog; ac_word=$2
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14255 $as_echo_n "checking for $ac_word... " >&6; }
14256 if ${ac_cv_prog_RECHO+:} false; then :
14257 $as_echo_n "(cached) " >&6
14258 else
14259 if test -n "$RECHO"; then
14260 ac_cv_prog_RECHO="$RECHO" # Let the user override the test.
14261 else
14262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14263 for as_dir in $PATH
14264 do
14265 IFS=$as_save_IFS
14266 test -z "$as_dir" && as_dir=.
14267 for ac_exec_ext in '' $ac_executable_extensions; do
14268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14269 ac_cv_prog_RECHO="$ac_prog"
14270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14271 break 2
14272 fi
14273 done
14274 done
14275 IFS=$as_save_IFS
14276
14277 fi
14278 fi
14279 RECHO=$ac_cv_prog_RECHO
14280 if test -n "$RECHO"; then
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RECHO" >&5
14282 $as_echo "$RECHO" >&6; }
14283 else
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14285 $as_echo "no" >&6; }
14286 fi
14287
14288
14289 test -n "$RECHO" && break
14290 done
14291
14292 RECHO_C=
14293 RECHO_N=
14294 case `$RECHO -n x` in
14295 -n*)
14296 case `$RECHO 'xy\c'` in
14297 *c*)
14298 ;;
14299 xy)
14300 RECHO_C='\c'
14301 ;;
14302 esac;;
14303 *)
14304 RECHO_N='-n'
14305 ;;
14306 esac
14307
14308
14309 release_version=no
14310 # Check whether --enable-release was given.
14311 if test "${enable_release+set}" = set; then :
14312 enableval=$enable_release; \
14313 if test "$enableval" = "yes"; then \
14314 release_version=yes
14315 fi;
14316 fi
14317
14318
14319 modular=yes
14320 # Check whether --enable-modular was given.
14321 if test "${enable_modular+set}" = set; then :
14322 enableval=$enable_modular; \
14323 if test "$enableval" = "no"; then \
14324 modular=no
14325 fi;
14326 fi
14327
14328
14329
14330
14331
14332 # GCC warning options
14333 # http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
14334 #
14335 # Too noisy:
14336 # -Wconversion:
14337 # -Wformat-nonliteral : variables for format strings
14338 # -Wno-system-headers : not debugging system
14339 # -Wunused-parameter : variables can be marked __attribute__('unused')
14340 #
14341 # Apple gcc specific (probably): -Wshorten-64-to-32
14342 possible_warnings="\
14343 -Wall \
14344 -Wc++-compat \
14345 -Wextra \
14346 -Wunused \
14347 \
14348 -Waggregate-return \
14349 -Wbad-function-cast \
14350 -Wcast-align \
14351 -Wdeclaration-after-statement \
14352 -Wdisabled-optimization \
14353 -Wdiv-by-zero \
14354 -Wendif-labels \
14355 -Werror-implicit-function-declaration \
14356 -Wfloat-equal \
14357 -Wformat-security \
14358 -Wframe-larger-than=4096 \
14359 -Winit-self \
14360 -Winline \
14361 -Wmissing-declarations \
14362 -Wmissing-field-initializers \
14363 -Wmissing-format-attribute \
14364 -Wmissing-noreturn \
14365 -Wmissing-prototypes \
14366 -Wnested-externs \
14367 -Wold-style-definition \
14368 -Wpacked \
14369 -Wpointer-arith \
14370 -Wredundant-decls \
14371 -Wshadow \
14372 -Wsign-compare \
14373 -Wsign-conversion \
14374 -Wstrict-prototypes \
14375 -Wswitch-enum \
14376 -Wundef \
14377 -Wunsafe-loop-optimizations \
14378 -Wwrite-strings \
14379 \
14380 -Wshorten-64-to-32
14381 \
14382 -Wno-conversion \
14383 -Wno-format-nonliteral \
14384 -Wno-system-headers \
14385 -Wno-unused-parameter \
14386 "
14387
14388 warning_cflags=
14389 if test "$USE_MAINTAINER_MODE" = yes; then
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported $CC warning flags" >&5
14391 $as_echo_n "checking for supported $CC warning flags... " >&6; }
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $warning_cflags" >&5
14393 $as_echo "$warning_cflags" >&6; }
14394 for warning in $possible_warnings; do
14395
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $warning" >&5
14397 $as_echo_n "checking whether $CC supports $warning... " >&6; }
14398 redland_save_CFLAGS="$CFLAGS"
14399 if test $CC_IS_CLANG = yes; then
14400 # Make unknown warnings into errors for clang so the test below works
14401 CFLAGS="-Werror $CFLAGS"
14402 fi
14403 CFLAGS="$CFLAGS $warning"
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14406
14407 _ACEOF
14408 if ac_fn_c_try_compile "$LINENO"; then :
14409 redland_cc_flag=yes
14410 else
14411 redland_cc_flag=no
14412 fi
14413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14414 CFLAGS="$redland_save_CFLAGS"
14415 if test "X$redland_cc_flag" = "Xyes"; then
14416 warning_cflags="$warning_cflags $warning"
14417 else
14418 :
14419 fi
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $redland_cc_flag" >&5
14421 $as_echo "$redland_cc_flag" >&6; }
14422
14423 done
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC supports warning flags" >&5
14425 $as_echo_n "checking $CC supports warning flags... " >&6; }
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $warning_cflags" >&5
14427 $as_echo "$warning_cflags" >&6; }
14428 fi
14429
14430 MAINTAINER_CPPFLAGS="$warning_cflags"
14431
14432
14433 # Externally linked libraries - appear in redland-config
14434 # -Dfoo -Idir
14435 LIBRDF_CPPFLAGS=$CPPFLAGS
14436 # -Ldir
14437 LIBRDF_LDFLAGS=$LDFLAGS
14438 # -llib
14439 LIBRDF_LIBS=$LIBS
14440
14441 # Internally linked libraries - never given to users
14442 # -Dfoo -Idir
14443 LIBRDF_INTERNAL_CPPFLAGS=
14444 # -Ldir -llib
14445 LIBRDF_INTERNAL_LIBS=
14446 # Internal dependencies like libltdl when built locally
14447 LIBRDF_INTERNAL_DEPS=
14448
14449 # Libraries linked externally also may be internal - presently just
14450 # raptor and rasqal but in future may include others
14451 # Currently only substituted into redland-src-config.
14452 # -Dfoo -Idir
14453 LIBRDF_EXTERNAL_CPPFLAGS=
14454 # -Ldir -llib
14455 LIBRDF_EXTERNAL_LIBS=
14456
14457 # do these first because somehow they get messed up by bdb checks
14458 ac_fn_c_check_type "$LINENO" "byte" "ac_cv_type_byte" "$ac_includes_default"
14459 if test "x$ac_cv_type_byte" = xyes; then :
14460
14461 cat >>confdefs.h <<_ACEOF
14462 #define HAVE_BYTE 1
14463 _ACEOF
14464
14465
14466 fi
14467
14468 ac_fn_c_check_type "$LINENO" "u32" "ac_cv_type_u32" "$ac_includes_default"
14469 if test "x$ac_cv_type_u32" = xyes; then :
14470
14471 cat >>confdefs.h <<_ACEOF
14472 #define HAVE_U32 1
14473 _ACEOF
14474
14475
14476 fi
14477
14478 ac_fn_c_check_type "$LINENO" "u64" "ac_cv_type_u64" "$ac_includes_default"
14479 if test "x$ac_cv_type_u64" = xyes; then :
14480
14481 cat >>confdefs.h <<_ACEOF
14482 #define HAVE_U64 1
14483 _ACEOF
14484
14485
14486 fi
14487
14488
14489 # The cast to long int works around a bug in the HP C Compiler
14490 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14491 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14492 # This bug is HP SR number 8606223364.
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char" >&5
14494 $as_echo_n "checking size of unsigned char... " >&6; }
14495 if ${ac_cv_sizeof_unsigned_char+:} false; then :
14496 $as_echo_n "(cached) " >&6
14497 else
14498 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char))" "ac_cv_sizeof_unsigned_char" "$ac_includes_default"; then :
14499
14500 else
14501 if test "$ac_cv_type_unsigned_char" = yes; then
14502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14504 as_fn_error 77 "cannot compute sizeof (unsigned char)
14505 See \`config.log' for more details" "$LINENO" 5; }
14506 else
14507 ac_cv_sizeof_unsigned_char=0
14508 fi
14509 fi
14510
14511 fi
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char" >&5
14513 $as_echo "$ac_cv_sizeof_unsigned_char" >&6; }
14514
14515
14516
14517 cat >>confdefs.h <<_ACEOF
14518 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
14519 _ACEOF
14520
14521
14522 # The cast to long int works around a bug in the HP C Compiler
14523 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14524 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14525 # This bug is HP SR number 8606223364.
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14527 $as_echo_n "checking size of unsigned int... " >&6; }
14528 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14529 $as_echo_n "(cached) " >&6
14530 else
14531 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
14532
14533 else
14534 if test "$ac_cv_type_unsigned_int" = yes; then
14535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14537 as_fn_error 77 "cannot compute sizeof (unsigned int)
14538 See \`config.log' for more details" "$LINENO" 5; }
14539 else
14540 ac_cv_sizeof_unsigned_int=0
14541 fi
14542 fi
14543
14544 fi
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14546 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14547
14548
14549
14550 cat >>confdefs.h <<_ACEOF
14551 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14552 _ACEOF
14553
14554
14555 # The cast to long int works around a bug in the HP C Compiler
14556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14558 # This bug is HP SR number 8606223364.
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14560 $as_echo_n "checking size of unsigned long... " >&6; }
14561 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14562 $as_echo_n "(cached) " >&6
14563 else
14564 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
14565
14566 else
14567 if test "$ac_cv_type_unsigned_long" = yes; then
14568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14570 as_fn_error 77 "cannot compute sizeof (unsigned long)
14571 See \`config.log' for more details" "$LINENO" 5; }
14572 else
14573 ac_cv_sizeof_unsigned_long=0
14574 fi
14575 fi
14576
14577 fi
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14579 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14580
14581
14582
14583 cat >>confdefs.h <<_ACEOF
14584 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14585 _ACEOF
14586
14587
14588 # The cast to long int works around a bug in the HP C Compiler
14589 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14590 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14591 # This bug is HP SR number 8606223364.
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
14593 $as_echo_n "checking size of unsigned long long... " >&6; }
14594 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
14595 $as_echo_n "(cached) " >&6
14596 else
14597 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
14598
14599 else
14600 if test "$ac_cv_type_unsigned_long_long" = yes; then
14601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14603 as_fn_error 77 "cannot compute sizeof (unsigned long long)
14604 See \`config.log' for more details" "$LINENO" 5; }
14605 else
14606 ac_cv_sizeof_unsigned_long_long=0
14607 fi
14608 fi
14609
14610 fi
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
14612 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
14613
14614
14615
14616 cat >>confdefs.h <<_ACEOF
14617 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
14618 _ACEOF
14619
14620
14621
14622
14623
14624
14625 # Check whether --with-bdb was given.
14626 if test "${with_bdb+set}" = set; then :
14627 withval=$with_bdb; bdb_prefix="$withval"
14628 else
14629 bdb_prefix="none"
14630 fi
14631
14632
14633 # Check whether --with-bdb_lib was given.
14634 if test "${with_bdb_lib+set}" = set; then :
14635 withval=$with_bdb_lib; bdb_lib_dir="$withval"
14636 else
14637 bdb_lib_dir="none"
14638 fi
14639
14640
14641 # Check whether --with-bdb_include was given.
14642 if test "${with_bdb_include+set}" = set; then :
14643 withval=$with_bdb_include; bdb_include_dir="$withval"
14644 else
14645 bdb_include_dir="none"
14646 fi
14647
14648
14649 # Check whether --with-bdb_dbname was given.
14650 if test "${with_bdb_dbname+set}" = set; then :
14651 withval=$with_bdb_dbname; bdb_dbname="$withval"
14652 else
14653 bdb_dbname="none"
14654 fi
14655
14656
14657 bdb_version=unknown
14658 bdb_available=Missing
14659
14660 # debian multiarch
14661 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null`
14662
14663 if test "x$bdb_prefix" != "xno" ; then
14664
14665 if test "x$bdb_prefix" = "xyes" ; then
14666 bdb_prefix="none"
14667 fi
14668
14669 # Only prefix given - set lib and include
14670 if test "X$bdb_prefix" != "Xnone" -a "X$bdb_lib_dir" = "Xnone" -a "X$bdb_include_dir" = "Xnone" ; then
14671 bdb_lib_dir="$bdb_prefix/lib"
14672 bdb_include_dir="$bdb_prefix/include"
14673 fi
14674
14675 # Nothing given - search
14676 if test "X$bdb_prefix" = "Xnone" -a "X$bdb_lib_dir" = "Xnone" -a "X$bdb_include_dir" = "Xnone" -a "X$bdb_dbname" = "Xnone" ; then
14677 bdb_prefix="/usr"
14678 bdb_lib_dir="/usr/lib"
14679 bdb_include_dir="/usr/include"
14680
14681 extraprefix=
14682 # OSX fink area added if found and /sw/bin is in the PATH
14683 if test -d /sw/include -a -d /sw/lib ; then
14684 if echo $PATH |grep /sw/bin >/dev/null; then
14685 extraprefix=/sw
14686 fi
14687 fi
14688
14689 # Sigh! And this still might not be good enough.
14690 for bdbc_version in 5.3 5.2 5.1 5.0 4.9 4.8 4.7 4.6 4.5 4.4 4.3 4.2 4.1 4.0 4 3.3 3.2 3.1 3 2; do
14691 bdbc_major=`echo $bdbc_version | sed -e 's/^\(.\).*$/\1/'`;
14692 bdbc_version2=`echo $bdbc_version | sed -e 's/^\(.\).\(.\)$/\1\2/'`
14693
14694 for bdbc_prefix in $extraprefix /usr/local/BerkeleyDB.$bdbc_version /usr/local /opt/local /usr; do
14695 bdbc_libdir=$bdbc_prefix/lib
14696
14697 for bdbc_incdir in $bdbc_prefix/include/db$bdbc_version $bdbc_prefix/include/db$bdbc_version2 $bdbc_prefix/include/db$bdbc_major $bdbc_prefix/include ; do
14698 if test -r $bdbc_incdir/db.h ; then
14699 header_bdbc_version=`sed -ne 's/^.*DB_VERSION_STRING.*Berkeley DB \(...\).*/\1/p' $bdbc_incdir/db.h`
14700 if test "X$header_bdbc_version" = "X$bdbc_version" ; then
14701 for bdbc_name in db-$bdbc_version db$bdbc_version db-$bdbc_version2 db$bdbc_version2; do
14702 bdbc_libdir_multiarch=
14703 if test "X$multiarch" != X; then
14704 bdbc_libdir_multiarch=$bdbc_libdir/$multiarch
14705 fi
14706 for bdbc_libdir2 in $bdbc_libdir_multiarch $bdbc_libdir $bdbc_libdir/db$bdbc_version $bdbc_libdir/db$bdbc_version2; do
14707 if test -r $bdbc_libdir2/lib$bdbc_name.a -o -r $bdbc_libdir2/lib$bdbc_name.so -o -r $bdbc_libdir2/lib$bdbc_name.dylib; then
14708 bdb_version=$bdbc_version
14709 bdb_prefix=$bdbc_prefix
14710 bdb_include_dir=$bdbc_incdir
14711 bdb_lib_dir=$bdbc_libdir2
14712 bdb_dbname=$bdbc_name
14713 break 5
14714 fi
14715 done
14716 done
14717 fi
14718 fi
14719
14720 done
14721 done
14722 done
14723
14724 fi
14725
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Berkeley DB (BDB) version" >&5
14727 $as_echo_n "checking Oracle Berkeley DB (BDB) version... " >&6; }
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bdb_version" >&5
14729 $as_echo "$bdb_version" >&6; }
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking location of BDB libs" >&5
14731 $as_echo_n "checking location of BDB libs... " >&6; }
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bdb_lib_dir" >&5
14733 $as_echo "$bdb_lib_dir" >&6; }
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking location of BDB includes" >&5
14735 $as_echo_n "checking location of BDB includes... " >&6; }
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bdb_include_dir" >&5
14737 $as_echo "$bdb_include_dir" >&6; }
14738
14739 if test "$bdb_prefix" != no; then
14740 nLDFLAGS=$LDFLAGS
14741 nCPPFLAGS=
14742
14743 if test "$bdb_lib_dir" != /usr/lib; then
14744 nLDFLAGS="-L$bdb_lib_dir";
14745 fi
14746
14747 if test "$bdb_dbname" = none; then
14748 # Yuck, yuck, yuck - can't they create a bdb-config program like GNOME?
14749 bdb_dbname=`cd $bdb_lib_dir; ls -1 libdb[-0-9.]*.a libdb[-0-9.]*.{so,dylib}* 2>/dev/null | sed -e 's/^lib//' -e 's/\.a$//' -e 's/\.so.*$//' -e 's/\.dylib.*$//' | head -1`
14750 if test "X$bdb_dbname" = X; then
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find the BDB library name from the files in $bdb_lib_dir" >&5
14752 $as_echo "$as_me: WARNING: Cannot find the BDB library name from the files in $bdb_lib_dir" >&2;}
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Assuming it is 'db' and will link like -ldb" >&5
14754 $as_echo "$as_me: WARNING: Assuming it is 'db' and will link like -ldb" >&2;}
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-bdb-dbname=NAME if this is wrong" >&5
14756 $as_echo "$as_me: WARNING: Use --with-bdb-dbname=NAME if this is wrong" >&2;}
14757 bdb_dbname=db
14758 fi
14759 fi
14760
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking name of BDB library" >&5
14762 $as_echo_n "checking name of BDB library... " >&6; }
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bdb_dbname" >&5
14764 $as_echo "$bdb_dbname" >&6; }
14765
14766 if test "$bdb_include_dir" != /usr/include; then
14767 nCPPFLAGS="-I$bdb_include_dir";
14768 fi
14769
14770 LDFLAGS="$nLDFLAGS $LDFLAGS"
14771 CPPFLAGS="$nCPPFLAGS $CPPFLAGS"
14772 LIBS="-l$bdb_dbname $LIBS"
14773
14774 for ac_header in db.h
14775 do :
14776 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
14777 if test "x$ac_cv_header_db_h" = xyes; then :
14778 cat >>confdefs.h <<_ACEOF
14779 #define HAVE_DB_H 1
14780 _ACEOF
14781
14782 fi
14783
14784 done
14785
14786 have_libdb=no
14787 if test "$ac_cv_header_db_h" = yes ; then
14788
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BDB V1 dbopen" >&5
14790 $as_echo_n "checking for BDB V1 dbopen... " >&6; }
14791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792 /* end confdefs.h. */
14793 #include <stdio.h>
14794 #include <db.h>
14795 int
14796 main ()
14797 {
14798 dbopen(NULL, 0, 0, DB_BTREE, NULL);
14799 ;
14800 return 0;
14801 }
14802 _ACEOF
14803 if ac_fn_c_try_link "$LINENO"; then :
14804
14805 $as_echo "#define HAVE_DBOPEN 1" >>confdefs.h
14806
14807 if test $have_libdb = no; then
14808 bdb_available="Version 1.x - not supported"
14809 have_libdb=no
14810 fi
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14812 $as_echo "yes" >&6; }
14813 else
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14815 $as_echo "no" >&6; }
14816 fi
14817 rm -f core conftest.err conftest.$ac_objext \
14818 conftest$ac_exeext conftest.$ac_ext
14819
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BDB V2 db_open" >&5
14821 $as_echo_n "checking for BDB V2 db_open... " >&6; }
14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h. */
14824 #include <stdio.h>
14825 #include <db.h>
14826 int
14827 main ()
14828 {
14829 db_open(NULL, DB_BTREE, 0, 0, NULL, NULL, NULL);
14830 ;
14831 return 0;
14832 }
14833 _ACEOF
14834 if ac_fn_c_try_link "$LINENO"; then :
14835
14836 $as_echo "#define HAVE_DB_OPEN 1" >>confdefs.h
14837
14838 have_libdb=yes
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14840 $as_echo "yes" >&6; }
14841 else
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14843 $as_echo "no" >&6; }
14844 fi
14845 rm -f core conftest.err conftest.$ac_objext \
14846 conftest$ac_exeext conftest.$ac_ext
14847
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BDB V3/V4.x db_create" >&5
14849 $as_echo_n "checking for BDB V3/V4.x db_create... " >&6; }
14850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14851 /* end confdefs.h. */
14852 #include <stdio.h>
14853 #include <db.h>
14854 int
14855 main ()
14856 {
14857 db_create(NULL, NULL, 0);
14858 ;
14859 return 0;
14860 }
14861 _ACEOF
14862 if ac_fn_c_try_link "$LINENO"; then :
14863
14864 $as_echo "#define HAVE_DB_CREATE 1" >>confdefs.h
14865
14866 have_libdb=yes
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14868 $as_echo "yes" >&6; }
14869 else
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14871 $as_echo "no" >&6; }
14872 fi
14873 rm -f core conftest.err conftest.$ac_objext \
14874 conftest$ac_exeext conftest.$ac_ext
14875
14876 have_bdb_open_7_args=no
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BDB V4.1+ DB->open with 7 arguments" >&5
14878 $as_echo_n "checking for BDB V4.1+ DB->open with 7 arguments... " >&6; }
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h. */
14881 #include <stdio.h>
14882 #include <db.h>
14883 int
14884 main ()
14885 {
14886 DB *bdb; bdb->open(bdb, NULL, NULL, NULL, DB_BTREE, 0, 0);
14887 ;
14888 return 0;
14889 }
14890 _ACEOF
14891 if ac_fn_c_try_link "$LINENO"; then :
14892
14893 $as_echo "#define HAVE_BDB_OPEN_7_ARGS 1" >>confdefs.h
14894
14895 have_libdb=yes
14896 have_bdb_open_7_args=yes
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14898 $as_echo "yes" >&6; }
14899 else
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14901 $as_echo "no" >&6; }
14902 fi
14903 rm -f core conftest.err conftest.$ac_objext \
14904 conftest$ac_exeext conftest.$ac_ext
14905
14906 if test "X$have_bdb_open_7_args" = Xno; then
14907 # Cannot have 6 args if 7 args worked
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BDB V4.0 DB->open with 6 arguments" >&5
14909 $as_echo_n "checking for BDB V4.0 DB->open with 6 arguments... " >&6; }
14910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14911 /* end confdefs.h. */
14912 #include <stdio.h>
14913 #include <db.h>
14914 int
14915 main ()
14916 {
14917 DB *bdb; bdb->open(bdb, NULL, NULL, DB_BTREE, 0, 0);
14918 ;
14919 return 0;
14920 }
14921 _ACEOF
14922 if ac_fn_c_try_link "$LINENO"; then :
14923
14924 $as_echo "#define HAVE_BDB_OPEN_6_ARGS 1" >>confdefs.h
14925
14926 have_libdb=yes
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14928 $as_echo "yes" >&6; }
14929 else
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14931 $as_echo "no" >&6; }
14932 fi
14933 rm -f core conftest.err conftest.$ac_objext \
14934 conftest$ac_exeext conftest.$ac_ext
14935 fi
14936
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BDB DB->close with 2 arguments" >&5
14938 $as_echo_n "checking for BDB DB->close with 2 arguments... " >&6; }
14939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940 /* end confdefs.h. */
14941 #include <stdio.h>
14942 #include <db.h>
14943 int
14944 main ()
14945 {
14946 DB *bdb; bdb->close(bdb, 0);
14947 ;
14948 return 0;
14949 }
14950 _ACEOF
14951 if ac_fn_c_try_link "$LINENO"; then :
14952
14953 $as_echo "#define HAVE_BDB_CLOSE_2_ARGS 1" >>confdefs.h
14954
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14956 $as_echo "yes" >&6; }
14957 else
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14959 $as_echo "no" >&6; }
14960 fi
14961 rm -f core conftest.err conftest.$ac_objext \
14962 conftest$ac_exeext conftest.$ac_ext
14963
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BDB DB->fd with 2 arguments" >&5
14965 $as_echo_n "checking for BDB DB->fd with 2 arguments... " >&6; }
14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14968 #include <stdio.h>
14969 #include <db.h>
14970 int
14971 main ()
14972 {
14973 DB *bdb; bdb->fd(bdb, 0);
14974 ;
14975 return 0;
14976 }
14977 _ACEOF
14978 if ac_fn_c_try_link "$LINENO"; then :
14979
14980 $as_echo "#define HAVE_BDB_FD_2_ARGS 1" >>confdefs.h
14981
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14983 $as_echo "yes" >&6; }
14984 else
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14986 $as_echo "no" >&6; }
14987 fi
14988 rm -f core conftest.err conftest.$ac_objext \
14989 conftest$ac_exeext conftest.$ac_ext
14990
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BDB DB->set_flags" >&5
14992 $as_echo_n "checking for BDB DB->set_flags... " >&6; }
14993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h. */
14995 #include <stdio.h>
14996 #include <db.h>
14997 int
14998 main ()
14999 {
15000 DB *bdb; bdb->set_flags(bdb, 0);
15001 ;
15002 return 0;
15003 }
15004 _ACEOF
15005 if ac_fn_c_try_link "$LINENO"; then :
15006
15007 $as_echo "#define HAVE_BDB_SET_FLAGS 1" >>confdefs.h
15008
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15010 $as_echo "yes" >&6; }
15011 else
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15013 $as_echo "no" >&6; }
15014 fi
15015 rm -f core conftest.err conftest.$ac_objext \
15016 conftest$ac_exeext conftest.$ac_ext
15017
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DB_TXN defined in db.h" >&5
15019 $as_echo_n "checking whether DB_TXN defined in db.h... " >&6; }
15020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021 /* end confdefs.h. */
15022 #include <stdio.h>
15023 #include <db.h>
15024 int
15025 main ()
15026 {
15027 DB_TXN* ptr=(DB_TXN*)NULL
15028 ;
15029 return 0;
15030 }
15031 _ACEOF
15032 if ac_fn_c_try_link "$LINENO"; then :
15033
15034 $as_echo "#define HAVE_BDB_DB_TXN 1" >>confdefs.h
15035
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15037 $as_echo "yes" >&6; }
15038 else
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15040 $as_echo "no" >&6; }
15041 fi
15042 rm -f core conftest.err conftest.$ac_objext \
15043 conftest$ac_exeext conftest.$ac_ext
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DBC defined in db.h" >&5
15045 $as_echo_n "checking whether DBC defined in db.h... " >&6; }
15046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15047 /* end confdefs.h. */
15048 #include <db.h>
15049 int
15050 main ()
15051 {
15052 size_t len=sizeof(DBC)
15053 ;
15054 return 0;
15055 }
15056 _ACEOF
15057 if ac_fn_c_try_link "$LINENO"; then :
15058
15059 $as_echo "#define HAVE_BDB_CURSOR 1" >>confdefs.h
15060
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15062 $as_echo "yes" >&6; }
15063 else
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15065 $as_echo "no" >&6; }
15066 fi
15067 rm -f core conftest.err conftest.$ac_objext \
15068 conftest$ac_exeext conftest.$ac_ext
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to db_cursor" >&5
15070 $as_echo_n "checking number of arguments to db_cursor... " >&6; }
15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072 /* end confdefs.h. */
15073 #include <stdio.h>
15074 #include <db.h>
15075 int
15076 main ()
15077 {
15078 DB* db; db->cursor(db, NULL, NULL, 0);
15079 ;
15080 return 0;
15081 }
15082 _ACEOF
15083 if ac_fn_c_try_link "$LINENO"; then :
15084
15085 $as_echo "#define HAVE_BDB_CURSOR_4_ARGS 1" >>confdefs.h
15086
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4" >&5
15088 $as_echo "4" >&6; }
15089 else
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
15091 $as_echo "3" >&6; }
15092 fi
15093 rm -f core conftest.err conftest.$ac_objext \
15094 conftest$ac_exeext conftest.$ac_ext
15095 fi
15096
15097 if test "X$have_libdb" = Xyes; then
15098 bdb_available="Version $bdb_version (library $bdb_dbname in $bdb_lib_dir)"
15099 LIBRDF_LIBS="$LIBRDF_LIBS $nLDFLAGS -l$bdb_dbname"
15100 LIBRDF_CPPFLAGS="$LIBRDF_CPPFLAGS $nCPPFLAGS"
15101 fi
15102
15103 fi
15104
15105 fi
15106
15107 CPPFLAGS="$LIBRDF_CPPFLAGS"
15108 LDFLAGS="$LIBRDF_LDFLAGS"
15109 LIBS="$LIBRDF_LIBS"
15110
15111
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15113 $as_echo_n "checking for ANSI C header files... " >&6; }
15114 if ${ac_cv_header_stdc+:} false; then :
15115 $as_echo_n "(cached) " >&6
15116 else
15117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118 /* end confdefs.h. */
15119 #include <stdlib.h>
15120 #include <stdarg.h>
15121 #include <string.h>
15122 #include <float.h>
15123
15124 int
15125 main ()
15126 {
15127
15128 ;
15129 return 0;
15130 }
15131 _ACEOF
15132 if ac_fn_c_try_compile "$LINENO"; then :
15133 ac_cv_header_stdc=yes
15134 else
15135 ac_cv_header_stdc=no
15136 fi
15137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15138
15139 if test $ac_cv_header_stdc = yes; then
15140 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15142 /* end confdefs.h. */
15143 #include <string.h>
15144
15145 _ACEOF
15146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15147 $EGREP "memchr" >/dev/null 2>&1; then :
15148
15149 else
15150 ac_cv_header_stdc=no
15151 fi
15152 rm -f conftest*
15153
15154 fi
15155
15156 if test $ac_cv_header_stdc = yes; then
15157 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159 /* end confdefs.h. */
15160 #include <stdlib.h>
15161
15162 _ACEOF
15163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15164 $EGREP "free" >/dev/null 2>&1; then :
15165
15166 else
15167 ac_cv_header_stdc=no
15168 fi
15169 rm -f conftest*
15170
15171 fi
15172
15173 if test $ac_cv_header_stdc = yes; then
15174 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15175 if test "$cross_compiling" = yes; then :
15176 :
15177 else
15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h. */
15180 #include <ctype.h>
15181 #include <stdlib.h>
15182 #if ((' ' & 0x0FF) == 0x020)
15183 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15184 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15185 #else
15186 # define ISLOWER(c) \
15187 (('a' <= (c) && (c) <= 'i') \
15188 || ('j' <= (c) && (c) <= 'r') \
15189 || ('s' <= (c) && (c) <= 'z'))
15190 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15191 #endif
15192
15193 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15194 int
15195 main ()
15196 {
15197 int i;
15198 for (i = 0; i < 256; i++)
15199 if (XOR (islower (i), ISLOWER (i))
15200 || toupper (i) != TOUPPER (i))
15201 return 2;
15202 return 0;
15203 }
15204 _ACEOF
15205 if ac_fn_c_try_run "$LINENO"; then :
15206
15207 else
15208 ac_cv_header_stdc=no
15209 fi
15210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15211 conftest.$ac_objext conftest.beam conftest.$ac_ext
15212 fi
15213
15214 fi
15215 fi
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15217 $as_echo "$ac_cv_header_stdc" >&6; }
15218 if test $ac_cv_header_stdc = yes; then
15219
15220 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15221
15222 fi
15223
15224 for ac_header in errno.h stdlib.h unistd.h string.h fcntl.h time.h sys/time.h sys/stat.h getopt.h stddef.h
15225 do :
15226 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15227 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15228 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15229 cat >>confdefs.h <<_ACEOF
15230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15231 _ACEOF
15232
15233 fi
15234
15235 done
15236
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15238 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15239 if ${ac_cv_header_time+:} false; then :
15240 $as_echo_n "(cached) " >&6
15241 else
15242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15243 /* end confdefs.h. */
15244 #include <sys/types.h>
15245 #include <sys/time.h>
15246 #include <time.h>
15247
15248 int
15249 main ()
15250 {
15251 if ((struct tm *) 0)
15252 return 0;
15253 ;
15254 return 0;
15255 }
15256 _ACEOF
15257 if ac_fn_c_try_compile "$LINENO"; then :
15258 ac_cv_header_time=yes
15259 else
15260 ac_cv_header_time=no
15261 fi
15262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15263 fi
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15265 $as_echo "$ac_cv_header_time" >&6; }
15266 if test $ac_cv_header_time = yes; then
15267
15268 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15269
15270 fi
15271
15272
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15274 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15275 if ${ac_cv_c_const+:} false; then :
15276 $as_echo_n "(cached) " >&6
15277 else
15278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279 /* end confdefs.h. */
15280
15281 int
15282 main ()
15283 {
15284
15285 #ifndef __cplusplus
15286 /* Ultrix mips cc rejects this sort of thing. */
15287 typedef int charset[2];
15288 const charset cs = { 0, 0 };
15289 /* SunOS 4.1.1 cc rejects this. */
15290 char const *const *pcpcc;
15291 char **ppc;
15292 /* NEC SVR4.0.2 mips cc rejects this. */
15293 struct point {int x, y;};
15294 static struct point const zero = {0,0};
15295 /* AIX XL C 1.02.0.0 rejects this.
15296 It does not let you subtract one const X* pointer from another in
15297 an arm of an if-expression whose if-part is not a constant
15298 expression */
15299 const char *g = "string";
15300 pcpcc = &g + (g ? g-g : 0);
15301 /* HPUX 7.0 cc rejects these. */
15302 ++pcpcc;
15303 ppc = (char**) pcpcc;
15304 pcpcc = (char const *const *) ppc;
15305 { /* SCO 3.2v4 cc rejects this sort of thing. */
15306 char tx;
15307 char *t = &tx;
15308 char const *s = 0 ? (char *) 0 : (char const *) 0;
15309
15310 *t++ = 0;
15311 if (s) return 0;
15312 }
15313 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15314 int x[] = {25, 17};
15315 const int *foo = &x[0];
15316 ++foo;
15317 }
15318 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15319 typedef const int *iptr;
15320 iptr p = 0;
15321 ++p;
15322 }
15323 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15324 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15325 struct s { int j; const int *ap[3]; } bx;
15326 struct s *b = &bx; b->j = 5;
15327 }
15328 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15329 const int foo = 10;
15330 if (!foo) return 0;
15331 }
15332 return !cs[0] && !zero.x;
15333 #endif
15334
15335 ;
15336 return 0;
15337 }
15338 _ACEOF
15339 if ac_fn_c_try_compile "$LINENO"; then :
15340 ac_cv_c_const=yes
15341 else
15342 ac_cv_c_const=no
15343 fi
15344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15345 fi
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15347 $as_echo "$ac_cv_c_const" >&6; }
15348 if test $ac_cv_c_const = no; then
15349
15350 $as_echo "#define const /**/" >>confdefs.h
15351
15352 fi
15353
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15355 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15356 if ${ac_cv_c_bigendian+:} false; then :
15357 $as_echo_n "(cached) " >&6
15358 else
15359 ac_cv_c_bigendian=unknown
15360 # See if we're dealing with a universal compiler.
15361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h. */
15363 #ifndef __APPLE_CC__
15364 not a universal capable compiler
15365 #endif
15366 typedef int dummy;
15367
15368 _ACEOF
15369 if ac_fn_c_try_compile "$LINENO"; then :
15370
15371 # Check for potential -arch flags. It is not universal unless
15372 # there are at least two -arch flags with different values.
15373 ac_arch=
15374 ac_prev=
15375 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15376 if test -n "$ac_prev"; then
15377 case $ac_word in
15378 i?86 | x86_64 | ppc | ppc64)
15379 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15380 ac_arch=$ac_word
15381 else
15382 ac_cv_c_bigendian=universal
15383 break
15384 fi
15385 ;;
15386 esac
15387 ac_prev=
15388 elif test "x$ac_word" = "x-arch"; then
15389 ac_prev=arch
15390 fi
15391 done
15392 fi
15393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15394 if test $ac_cv_c_bigendian = unknown; then
15395 # See if sys/param.h defines the BYTE_ORDER macro.
15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h. */
15398 #include <sys/types.h>
15399 #include <sys/param.h>
15400
15401 int
15402 main ()
15403 {
15404 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15405 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15406 && LITTLE_ENDIAN)
15407 bogus endian macros
15408 #endif
15409
15410 ;
15411 return 0;
15412 }
15413 _ACEOF
15414 if ac_fn_c_try_compile "$LINENO"; then :
15415 # It does; now see whether it defined to BIG_ENDIAN or not.
15416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15417 /* end confdefs.h. */
15418 #include <sys/types.h>
15419 #include <sys/param.h>
15420
15421 int
15422 main ()
15423 {
15424 #if BYTE_ORDER != BIG_ENDIAN
15425 not big endian
15426 #endif
15427
15428 ;
15429 return 0;
15430 }
15431 _ACEOF
15432 if ac_fn_c_try_compile "$LINENO"; then :
15433 ac_cv_c_bigendian=yes
15434 else
15435 ac_cv_c_bigendian=no
15436 fi
15437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15438 fi
15439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15440 fi
15441 if test $ac_cv_c_bigendian = unknown; then
15442 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15444 /* end confdefs.h. */
15445 #include <limits.h>
15446
15447 int
15448 main ()
15449 {
15450 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15451 bogus endian macros
15452 #endif
15453
15454 ;
15455 return 0;
15456 }
15457 _ACEOF
15458 if ac_fn_c_try_compile "$LINENO"; then :
15459 # It does; now see whether it defined to _BIG_ENDIAN or not.
15460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15461 /* end confdefs.h. */
15462 #include <limits.h>
15463
15464 int
15465 main ()
15466 {
15467 #ifndef _BIG_ENDIAN
15468 not big endian
15469 #endif
15470
15471 ;
15472 return 0;
15473 }
15474 _ACEOF
15475 if ac_fn_c_try_compile "$LINENO"; then :
15476 ac_cv_c_bigendian=yes
15477 else
15478 ac_cv_c_bigendian=no
15479 fi
15480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15481 fi
15482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15483 fi
15484 if test $ac_cv_c_bigendian = unknown; then
15485 # Compile a test program.
15486 if test "$cross_compiling" = yes; then :
15487 # Try to guess by grepping values from an object file.
15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h. */
15490 short int ascii_mm[] =
15491 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15492 short int ascii_ii[] =
15493 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15494 int use_ascii (int i) {
15495 return ascii_mm[i] + ascii_ii[i];
15496 }
15497 short int ebcdic_ii[] =
15498 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15499 short int ebcdic_mm[] =
15500 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15501 int use_ebcdic (int i) {
15502 return ebcdic_mm[i] + ebcdic_ii[i];
15503 }
15504 extern int foo;
15505
15506 int
15507 main ()
15508 {
15509 return use_ascii (foo) == use_ebcdic (foo);
15510 ;
15511 return 0;
15512 }
15513 _ACEOF
15514 if ac_fn_c_try_compile "$LINENO"; then :
15515 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15516 ac_cv_c_bigendian=yes
15517 fi
15518 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15519 if test "$ac_cv_c_bigendian" = unknown; then
15520 ac_cv_c_bigendian=no
15521 else
15522 # finding both strings is unlikely to happen, but who knows?
15523 ac_cv_c_bigendian=unknown
15524 fi
15525 fi
15526 fi
15527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15528 else
15529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530 /* end confdefs.h. */
15531 $ac_includes_default
15532 int
15533 main ()
15534 {
15535
15536 /* Are we little or big endian? From Harbison&Steele. */
15537 union
15538 {
15539 long int l;
15540 char c[sizeof (long int)];
15541 } u;
15542 u.l = 1;
15543 return u.c[sizeof (long int) - 1] == 1;
15544
15545 ;
15546 return 0;
15547 }
15548 _ACEOF
15549 if ac_fn_c_try_run "$LINENO"; then :
15550 ac_cv_c_bigendian=no
15551 else
15552 ac_cv_c_bigendian=yes
15553 fi
15554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15555 conftest.$ac_objext conftest.beam conftest.$ac_ext
15556 fi
15557
15558 fi
15559 fi
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15561 $as_echo "$ac_cv_c_bigendian" >&6; }
15562 case $ac_cv_c_bigendian in #(
15563 yes)
15564 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15565 ;; #(
15566 no)
15567 ;; #(
15568 universal)
15569
15570 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15571
15572 ;; #(
15573 *)
15574 as_fn_error $? "unknown endianness
15575 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15576 esac
15577
15578
15579 for ac_func in getopt getopt_long memcmp mkstemp mktemp tmpnam gettimeofday getenv
15580 do :
15581 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15582 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15583 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15584 cat >>confdefs.h <<_ACEOF
15585 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15586 _ACEOF
15587
15588 fi
15589 done
15590
15591
15592 if test $ac_cv_func_memcmp = no; then
15593 MEMCMP_TRUE=
15594 MEMCMP_FALSE='#'
15595 else
15596 MEMCMP_TRUE='#'
15597 MEMCMP_FALSE=
15598 fi
15599
15600 if test $ac_cv_func_getopt = no -a $ac_cv_func_getopt_long = no; then
15601 GETOPT_TRUE=
15602 GETOPT_FALSE='#'
15603 else
15604 GETOPT_TRUE='#'
15605 GETOPT_FALSE=
15606 fi
15607
15608
15609
15610 CPPFLAGS="$LIBRDF_CPPFLAGS"
15611 LDFLAGS="$LIBRDF_LDFLAGS"
15612 LIBS="$LIBRDF_LIBS"
15613
15614
15615 parser_modules=raptor
15616 rdf_parsers_available=
15617
15618 # Check for rasqal before raptor so that we can see if rasqal was already
15619 # built with raptor2 and can then enforce raptor2 is required
15620
15621 RASQAL_MIN_VERSION=0.9.25
15622 RASQAL_MAX_VERSION=0.9.99
15623
15624
15625
15626 pkg_failed=no
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RASQAL" >&5
15628 $as_echo_n "checking for RASQAL... " >&6; }
15629
15630 if test -n "$RASQAL_CFLAGS"; then
15631 pkg_cv_RASQAL_CFLAGS="$RASQAL_CFLAGS"
15632 elif test -n "$PKG_CONFIG"; then
15633 if test -n "$PKG_CONFIG" && \
15634 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"rasqal >= \$RASQAL_MIN_VERSION rasqal <= \$RASQAL_MAX_VERSION\""; } >&5
15635 ($PKG_CONFIG --exists --print-errors "rasqal >= $RASQAL_MIN_VERSION rasqal <= $RASQAL_MAX_VERSION") 2>&5
15636 ac_status=$?
15637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15638 test $ac_status = 0; }; then
15639 pkg_cv_RASQAL_CFLAGS=`$PKG_CONFIG --cflags "rasqal >= $RASQAL_MIN_VERSION rasqal <= $RASQAL_MAX_VERSION" 2>/dev/null`
15640 test "x$?" != "x0" && pkg_failed=yes
15641 else
15642 pkg_failed=yes
15643 fi
15644 else
15645 pkg_failed=untried
15646 fi
15647 if test -n "$RASQAL_LIBS"; then
15648 pkg_cv_RASQAL_LIBS="$RASQAL_LIBS"
15649 elif test -n "$PKG_CONFIG"; then
15650 if test -n "$PKG_CONFIG" && \
15651 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"rasqal >= \$RASQAL_MIN_VERSION rasqal <= \$RASQAL_MAX_VERSION\""; } >&5
15652 ($PKG_CONFIG --exists --print-errors "rasqal >= $RASQAL_MIN_VERSION rasqal <= $RASQAL_MAX_VERSION") 2>&5
15653 ac_status=$?
15654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15655 test $ac_status = 0; }; then
15656 pkg_cv_RASQAL_LIBS=`$PKG_CONFIG --libs "rasqal >= $RASQAL_MIN_VERSION rasqal <= $RASQAL_MAX_VERSION" 2>/dev/null`
15657 test "x$?" != "x0" && pkg_failed=yes
15658 else
15659 pkg_failed=yes
15660 fi
15661 else
15662 pkg_failed=untried
15663 fi
15664
15665
15666
15667 if test $pkg_failed = yes; then
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15669 $as_echo "no" >&6; }
15670
15671 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15672 _pkg_short_errors_supported=yes
15673 else
15674 _pkg_short_errors_supported=no
15675 fi
15676 if test $_pkg_short_errors_supported = yes; then
15677 RASQAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "rasqal >= $RASQAL_MIN_VERSION rasqal <= $RASQAL_MAX_VERSION" 2>&1`
15678 else
15679 RASQAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "rasqal >= $RASQAL_MIN_VERSION rasqal <= $RASQAL_MAX_VERSION" 2>&1`
15680 fi
15681 # Put the nasty error message in config.log where it belongs
15682 echo "$RASQAL_PKG_ERRORS" >&5
15683
15684
15685 as_fn_error $? "Rasqal is not installed or too old - see http://librdf.org/rasqal/ to get a version in range $RASQAL_MIN_VERSION to $RASQAL_MAX_VERSION" "$LINENO" 5
15686
15687 elif test $pkg_failed = untried; then
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15689 $as_echo "no" >&6; }
15690
15691 as_fn_error $? "Rasqal is not installed or too old - see http://librdf.org/rasqal/ to get a version in range $RASQAL_MIN_VERSION to $RASQAL_MAX_VERSION" "$LINENO" 5
15692
15693 else
15694 RASQAL_CFLAGS=$pkg_cv_RASQAL_CFLAGS
15695 RASQAL_LIBS=$pkg_cv_RASQAL_LIBS
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15697 $as_echo "yes" >&6; }
15698
15699 RASQAL_VERSION=`$PKG_CONFIG rasqal --modversion 2>/dev/null`
15700
15701 fi
15702
15703 LIBRDF_EXTERNAL_CPPFLAGS="$RASQAL_CFLAGS $LIBRDF_EXTERNAL_CPPFLAGS"
15704 LIBRDF_EXTERNAL_LIBS="$RASQAL_LIBS $LIBRDF_EXTERNAL_LIBS"
15705
15706 rdf_query="rasqal(system $RASQAL_VERSION)"
15707
15708
15709 # Check for raptor
15710 RAPTOR_MIN_VERSION=2.0.7
15711
15712
15713 pkg_failed=no
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAPTOR2" >&5
15715 $as_echo_n "checking for RAPTOR2... " >&6; }
15716
15717 if test -n "$RAPTOR2_CFLAGS"; then
15718 pkg_cv_RAPTOR2_CFLAGS="$RAPTOR2_CFLAGS"
15719 elif test -n "$PKG_CONFIG"; then
15720 if test -n "$PKG_CONFIG" && \
15721 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raptor2 >= \$RAPTOR_MIN_VERSION\""; } >&5
15722 ($PKG_CONFIG --exists --print-errors "raptor2 >= $RAPTOR_MIN_VERSION") 2>&5
15723 ac_status=$?
15724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15725 test $ac_status = 0; }; then
15726 pkg_cv_RAPTOR2_CFLAGS=`$PKG_CONFIG --cflags "raptor2 >= $RAPTOR_MIN_VERSION" 2>/dev/null`
15727 test "x$?" != "x0" && pkg_failed=yes
15728 else
15729 pkg_failed=yes
15730 fi
15731 else
15732 pkg_failed=untried
15733 fi
15734 if test -n "$RAPTOR2_LIBS"; then
15735 pkg_cv_RAPTOR2_LIBS="$RAPTOR2_LIBS"
15736 elif test -n "$PKG_CONFIG"; then
15737 if test -n "$PKG_CONFIG" && \
15738 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raptor2 >= \$RAPTOR_MIN_VERSION\""; } >&5
15739 ($PKG_CONFIG --exists --print-errors "raptor2 >= $RAPTOR_MIN_VERSION") 2>&5
15740 ac_status=$?
15741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15742 test $ac_status = 0; }; then
15743 pkg_cv_RAPTOR2_LIBS=`$PKG_CONFIG --libs "raptor2 >= $RAPTOR_MIN_VERSION" 2>/dev/null`
15744 test "x$?" != "x0" && pkg_failed=yes
15745 else
15746 pkg_failed=yes
15747 fi
15748 else
15749 pkg_failed=untried
15750 fi
15751
15752
15753
15754 if test $pkg_failed = yes; then
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15756 $as_echo "no" >&6; }
15757
15758 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15759 _pkg_short_errors_supported=yes
15760 else
15761 _pkg_short_errors_supported=no
15762 fi
15763 if test $_pkg_short_errors_supported = yes; then
15764 RAPTOR2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "raptor2 >= $RAPTOR_MIN_VERSION" 2>&1`
15765 else
15766 RAPTOR2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "raptor2 >= $RAPTOR_MIN_VERSION" 2>&1`
15767 fi
15768 # Put the nasty error message in config.log where it belongs
15769 echo "$RAPTOR2_PKG_ERRORS" >&5
15770
15771
15772 as_fn_error $? "Raptor2 is not installed or too old - see http://librdf.org/raptor/ to get version $RAPTOR_MIN_VERSION or newer" "$LINENO" 5
15773
15774 elif test $pkg_failed = untried; then
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15776 $as_echo "no" >&6; }
15777
15778 as_fn_error $? "Raptor2 is not installed or too old - see http://librdf.org/raptor/ to get version $RAPTOR_MIN_VERSION or newer" "$LINENO" 5
15779
15780 else
15781 RAPTOR2_CFLAGS=$pkg_cv_RAPTOR2_CFLAGS
15782 RAPTOR2_LIBS=$pkg_cv_RAPTOR2_LIBS
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15784 $as_echo "yes" >&6; }
15785
15786 RAPTOR_VERSION=`$PKG_CONFIG raptor2 --modversion 2>/dev/null`
15787
15788 fi
15789
15790 LIBRDF_DIRECT_LIBS="$LIBRDF_DIRECT_LIBS $RAPTOR2_LIBS"
15791 LIBRDF_DIRECT_LIBS="$LIBRDF_DIRECT_LIBS $RASQAL_LIBS"
15792
15793 LIBRDF_EXTERNAL_CPPFLAGS="$RAPTOR2_CFLAGS $LIBRDF_EXTERNAL_CPPFLAGS"
15794 LIBRDF_EXTERNAL_LIBS="$LIBRDF_DIRECT_LIBS $LIBRDF_EXTERNAL_LIBS"
15795
15796 rdf_parsers_available="$parser_available raptor(system $RAPTOR_VERSION)"
15797
15798
15799
15800 HAVE_RAPTOR2_API=1
15801
15802
15803
15804 digest_modules="md5 sha1 ripemd160"
15805
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking digests wanted" >&5
15807 $as_echo_n "checking digests wanted... " >&6; }
15808 # Check whether --enable-digests was given.
15809 if test "${enable_digests+set}" = set; then :
15810 enableval=$enable_digests; digest_modules="$enableval"
15811 fi
15812
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $digest_modules" >&5
15814 $as_echo "$digest_modules" >&6; }
15815
15816 DIGEST_OBJS=
15817 DIGEST_SRCS=
15818
15819 digest_modules_available=
15820
15821
15822 HASH_OBJS=
15823 HASH_SRCS=
15824
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdb hash support" >&5
15826 $as_echo_n "checking for bdb hash support... " >&6; }
15827 if test "$have_libdb" = yes; then
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15829 $as_echo "yes" >&6; }
15830
15831 $as_echo "#define HAVE_BDB_HASH 1" >>confdefs.h
15832
15833 HASH_OBJS="$HASH_OBJS rdf_hash_bdb.lo"
15834 HASH_SRCS="$HASH_SRCS rdf_hash_bdb.c"
15835 else
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15837 $as_echo "no" >&6; }
15838 fi
15839
15840
15841
15842
15843
15844
15845 persistent_storages="/file/tstore/mysql/sqlite/"
15846 persistent_store=no
15847 all_storages="memory file hashes trees mysql sqlite tstore postgresql virtuoso"
15848 always_available_storages="memory file hashes trees"
15849
15850 for storage in $all_storages; do
15851 eval $storage'_storage_available=no'
15852 eval $storage'_storage=no'
15853 done
15854 for storage in $always_available_storages; do
15855 eval $storage'_storage_available=yes'
15856 eval $storage'_storage=yes'
15857 done
15858
15859 REDLAND_MODULE_PATH=""
15860
15861 # Check whether --with-module-path was given.
15862 if test "${with_module_path+set}" = set; then :
15863 withval=$with_module_path; REDLAND_MODULE_PATH="$witheval"
15864 fi
15865
15866 if test "x$REDLAND_MODULE_PATH" = "x"; then
15867 REDLAND_MODULE_PATH=$libdir"/redland"
15868 if test "x$prefix" != "xNONE"; then
15869 REDLAND_MODULE_PATH="/usr/local/lib/redland:"$REDLAND_MODULE_PATH
15870 fi
15871 fi
15872
15873
15874 storages_available="memory file hashes(memory) trees"
15875 if test "x$have_libdb" = xyes; then
15876 storages_available="$storages_available hashes(bdb $bdb_version)"
15877 fi
15878
15879
15880 # Check whether --with-threestore was given.
15881 if test "${with_threestore+set}" = set; then :
15882 withval=$with_threestore; tstore_config="$withval"
15883 else
15884 tstore_config=""
15885 fi
15886
15887 if test "X$tstore_config" != "Xno"; then
15888 if test "X$tstore_config" != "Xyes" ; then
15889 TSTORE_CONFIG=$tstore_config
15890 fi
15891 tstore_config=yes
15892 fi
15893 if test $tstore_config = yes -a "X$TSTORE_CONFIG" = "X" ; then
15894 for ac_prog in 3store-config
15895 do
15896 # Extract the first word of "$ac_prog", so it can be a program name with args.
15897 set dummy $ac_prog; ac_word=$2
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15899 $as_echo_n "checking for $ac_word... " >&6; }
15900 if ${ac_cv_prog_TSTORE_CONFIG+:} false; then :
15901 $as_echo_n "(cached) " >&6
15902 else
15903 if test -n "$TSTORE_CONFIG"; then
15904 ac_cv_prog_TSTORE_CONFIG="$TSTORE_CONFIG" # Let the user override the test.
15905 else
15906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15907 for as_dir in $PATH
15908 do
15909 IFS=$as_save_IFS
15910 test -z "$as_dir" && as_dir=.
15911 for ac_exec_ext in '' $ac_executable_extensions; do
15912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15913 ac_cv_prog_TSTORE_CONFIG="$ac_prog"
15914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15915 break 2
15916 fi
15917 done
15918 done
15919 IFS=$as_save_IFS
15920
15921 fi
15922 fi
15923 TSTORE_CONFIG=$ac_cv_prog_TSTORE_CONFIG
15924 if test -n "$TSTORE_CONFIG"; then
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TSTORE_CONFIG" >&5
15926 $as_echo "$TSTORE_CONFIG" >&6; }
15927 else
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15929 $as_echo "no" >&6; }
15930 fi
15931
15932
15933 test -n "$TSTORE_CONFIG" && break
15934 done
15935
15936 fi
15937
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3store library" >&5
15939 $as_echo_n "checking for 3store library... " >&6; }
15940 if test "X$TSTORE_CONFIG" != X -a "X$PKG_CONFIG" != X ; then
15941 tstore_version=`$TSTORE_CONFIG --version`
15942
15943 storages_available="$storages_available 3store($tstore_version)"
15944 tstore_storage_available=yes
15945
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - version $tstore_version" >&5
15947 $as_echo "yes - version $tstore_version" >&6; }
15948 else
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15950 $as_echo "no" >&6; }
15951 fi
15952
15953
15954
15955 # Check whether --with-mysql was given.
15956 if test "${with_mysql+set}" = set; then :
15957 withval=$with_mysql; mysql_config="$withval"
15958 else
15959 mysql_config=""
15960 fi
15961
15962 if test "X$mysql_config" != "Xno"; then
15963 if test "X$mysql_config" != "Xyes" ; then
15964 MYSQL_CONFIG=$mysql_config
15965 fi
15966 mysql_config=yes
15967 fi
15968 if test $mysql_config = yes -a "X$MYSQL_CONFIG" = "X" ; then
15969 for ac_prog in mysql_config
15970 do
15971 # Extract the first word of "$ac_prog", so it can be a program name with args.
15972 set dummy $ac_prog; ac_word=$2
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15974 $as_echo_n "checking for $ac_word... " >&6; }
15975 if ${ac_cv_prog_MYSQL_CONFIG+:} false; then :
15976 $as_echo_n "(cached) " >&6
15977 else
15978 if test -n "$MYSQL_CONFIG"; then
15979 ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
15980 else
15981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15982 for as_dir in $PATH
15983 do
15984 IFS=$as_save_IFS
15985 test -z "$as_dir" && as_dir=.
15986 for ac_exec_ext in '' $ac_executable_extensions; do
15987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15988 ac_cv_prog_MYSQL_CONFIG="$ac_prog"
15989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15990 break 2
15991 fi
15992 done
15993 done
15994 IFS=$as_save_IFS
15995
15996 fi
15997 fi
15998 MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
15999 if test -n "$MYSQL_CONFIG"; then
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
16001 $as_echo "$MYSQL_CONFIG" >&6; }
16002 else
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16004 $as_echo "no" >&6; }
16005 fi
16006
16007
16008 test -n "$MYSQL_CONFIG" && break
16009 done
16010
16011 fi
16012
16013 libmysql_min_version=3.23.56
16014 # Also tested on 4.0.14
16015
16016 mysql_cflags=
16017 mysql_libs=
16018 if test "X$MYSQL_CONFIG" != X; then
16019 mysql_libs=`$MYSQL_CONFIG --libs | sed -e "s/'//g"`
16020 # Stop the MySQL config program adding -Os or -O<n> options to CFLAGS
16021 mysql_cflags=`$MYSQL_CONFIG --cflags | sed -e "s/'//g" -e "s/[ \t]-O[A-Za-z0-9]*/ /" `
16022
16023 LIBS="$LIBRDF_LIBS $mysql_libs"
16024 CPPFLAGS="$LIBRDF_CPPFLAGS $mysql_cflags"
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql library" >&5
16026 $as_echo_n "checking for mysql library... " >&6; }
16027 LIBMYSQL_VERSION=`$MYSQL_CONFIG --version`
16028 libmysql_version_dec=`echo $LIBMYSQL_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
16029 libmysql_min_version_dec=`echo $libmysql_min_version | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - version $LIBMYSQL_VERSION" >&5
16031 $as_echo "yes - version $LIBMYSQL_VERSION" >&6; }
16032 if test $libmysql_version_dec -lt $libmysql_min_version_dec; then
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using libmysql $LIBMYSQL_VERSION is unsupported - $libmysql_min_version or newer recommended." >&5
16034 $as_echo "$as_me: WARNING: Using libmysql $LIBMYSQL_VERSION is unsupported - $libmysql_min_version or newer recommended." >&2;}
16035 else
16036 storages_available="$storages_available mysql($LIBMYSQL_VERSION)"
16037 mysql_storage_available=yes
16038 fi
16039
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MYSQL_OPT_RECONNECT is declared" >&5
16041 $as_echo_n "checking whether MYSQL_OPT_RECONNECT is declared... " >&6; }
16042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16043 /* end confdefs.h. */
16044 #include <mysql.h>
16045 int x=MYSQL_OPT_RECONNECT;
16046 _ACEOF
16047 if ac_fn_c_try_compile "$LINENO"; then :
16048
16049 $as_echo "#define HAVE_MYSQL_OPT_RECONNECT 1" >>confdefs.h
16050
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16052 $as_echo "yes" >&6; }
16053 else
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16055 $as_echo "no" >&6; }
16056 fi
16057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16058
16059 LIBS="$LIBRDF_LIBS"
16060 CPPFLAGS="$LIBRDF_CPPFLAGS"
16061 fi
16062
16063
16064
16065
16066 # Check whether --with-sqlite was given.
16067 if test "${with_sqlite+set}" = set; then :
16068 withval=$with_sqlite; with_sqlite="$withval"
16069 else
16070 with_sqlite="auto"
16071 fi
16072
16073
16074 if test "X$with_sqlite" != Xno; then
16075
16076 pkg_failed=no
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
16078 $as_echo_n "checking for SQLITE... " >&6; }
16079
16080 if test -n "$SQLITE_CFLAGS"; then
16081 pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
16082 elif test -n "$PKG_CONFIG"; then
16083 if test -n "$PKG_CONFIG" && \
16084 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
16085 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
16086 ac_status=$?
16087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16088 test $ac_status = 0; }; then
16089 pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
16090 test "x$?" != "x0" && pkg_failed=yes
16091 else
16092 pkg_failed=yes
16093 fi
16094 else
16095 pkg_failed=untried
16096 fi
16097 if test -n "$SQLITE_LIBS"; then
16098 pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
16099 elif test -n "$PKG_CONFIG"; then
16100 if test -n "$PKG_CONFIG" && \
16101 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
16102 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
16103 ac_status=$?
16104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16105 test $ac_status = 0; }; then
16106 pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
16107 test "x$?" != "x0" && pkg_failed=yes
16108 else
16109 pkg_failed=yes
16110 fi
16111 else
16112 pkg_failed=untried
16113 fi
16114
16115
16116
16117 if test $pkg_failed = yes; then
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16119 $as_echo "no" >&6; }
16120
16121 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16122 _pkg_short_errors_supported=yes
16123 else
16124 _pkg_short_errors_supported=no
16125 fi
16126 if test $_pkg_short_errors_supported = yes; then
16127 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
16128 else
16129 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
16130 fi
16131 # Put the nasty error message in config.log where it belongs
16132 echo "$SQLITE_PKG_ERRORS" >&5
16133
16134 with_sqlite=no
16135 elif test $pkg_failed = untried; then
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16137 $as_echo "no" >&6; }
16138 with_sqlite=no
16139 else
16140 SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
16141 SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16143 $as_echo "yes" >&6; }
16144
16145 SQLITE_VERSION=`$PKG_CONFIG sqlite3 --modversion`
16146 with_sqlite=yes
16147
16148 fi
16149 fi
16150
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking using sqlite library" >&5
16152 $as_echo_n "checking using sqlite library... " >&6; }
16153 if test "X$with_sqlite" != Xno ; then
16154 storages_available="$storages_available sqlite($SQLITE_VERSION)"
16155 sqlite_storage_available=yes
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - version $SQLITE_VERSION" >&5
16157 $as_echo "yes - version $SQLITE_VERSION" >&6; }
16158
16159 CPPFLAGS="$LIBRDF_CPPFLAGS $SQLITE_CFLAGS"
16160 for ac_header in sqlite3.h sqlite.h
16161 do :
16162 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16163 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16164 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16165 cat >>confdefs.h <<_ACEOF
16166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16167 _ACEOF
16168
16169 fi
16170
16171 done
16172
16173 CPPFLAGS="$LIBRDF_CPPFLAGS"
16174 else
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16176 $as_echo "no" >&6; }
16177 fi
16178
16179
16180 # Check whether --with-postgresql was given.
16181 if test "${with_postgresql+set}" = set; then :
16182 withval=$with_postgresql; pg_config="$withval"
16183 else
16184 postgresql_config=""
16185 fi
16186
16187 if test "X$pg_config" != "Xno"; then
16188 if test "X$pg_config" != "Xyes" ; then
16189 PG_CONFIG=$pg_config
16190 fi
16191 pg_config=yes
16192 fi
16193 if test $pg_config = yes -a "X$PG_CONFIG" = "X" ; then
16194 for ac_prog in pg_config
16195 do
16196 # Extract the first word of "$ac_prog", so it can be a program name with args.
16197 set dummy $ac_prog; ac_word=$2
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16199 $as_echo_n "checking for $ac_word... " >&6; }
16200 if ${ac_cv_prog_PG_CONFIG+:} false; then :
16201 $as_echo_n "(cached) " >&6
16202 else
16203 if test -n "$PG_CONFIG"; then
16204 ac_cv_prog_PG_CONFIG="$PG_CONFIG" # Let the user override the test.
16205 else
16206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16207 for as_dir in $PATH
16208 do
16209 IFS=$as_save_IFS
16210 test -z "$as_dir" && as_dir=.
16211 for ac_exec_ext in '' $ac_executable_extensions; do
16212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16213 ac_cv_prog_PG_CONFIG="$ac_prog"
16214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16215 break 2
16216 fi
16217 done
16218 done
16219 IFS=$as_save_IFS
16220
16221 fi
16222 fi
16223 PG_CONFIG=$ac_cv_prog_PG_CONFIG
16224 if test -n "$PG_CONFIG"; then
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
16226 $as_echo "$PG_CONFIG" >&6; }
16227 else
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16229 $as_echo "no" >&6; }
16230 fi
16231
16232
16233 test -n "$PG_CONFIG" && break
16234 done
16235
16236 fi
16237
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for postgresql library" >&5
16239 $as_echo_n "checking for postgresql library... " >&6; }
16240 if test "X$PG_CONFIG" != X ; then
16241 postgresql_version=`$PG_CONFIG --version | sed -e 's/^.* //'`
16242 storages_available="$storages_available postgresql($postgresql_version)"
16243 postgresql_storage_available=yes
16244
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - version $postgresql_version" >&5
16246 $as_echo "yes - version $postgresql_version" >&6; }
16247
16248 CPPFLAGS="$LIBRDF_CPPFLAGS -I`$PG_CONFIG --includedir`"
16249 for ac_header in libpq-fe.h
16250 do :
16251 ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
16252 if test "x$ac_cv_header_libpq_fe_h" = xyes; then :
16253 cat >>confdefs.h <<_ACEOF
16254 #define HAVE_LIBPQ_FE_H 1
16255 _ACEOF
16256
16257 fi
16258
16259 done
16260
16261 CPPFLAGS="$LIBRDF_CPPFLAGS"
16262
16263 LIBS="$LIBRDF_LIBS -L`$PG_CONFIG --libdir` -lpq"
16264 else
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16266 $as_echo "no" >&6; }
16267 fi
16268
16269
16270 ##########################################################################
16271 # #
16272 # OpenLink Virtuoso storage support #
16273 # #
16274 ##########################################################################
16275
16276
16277 # Check whether --with-virtuoso was given.
16278 if test "${with_virtuoso+set}" = set; then :
16279 withval=$with_virtuoso; with_virtuoso="$withval"
16280 else
16281 with_virtuoso="auto"
16282 fi
16283
16284
16285 ##
16286 ## Checkout ODBC situation
16287 ##
16288
16289 #
16290 # Initialize variables
16291 #
16292 found_odbc=no
16293 ODBC_CFLAGS=
16294 ODBC_LIBS=
16295
16296
16297 #
16298 # Check for iODBC support
16299 #
16300 if test "$found_odbc" = "no"
16301 then
16302
16303 # Check whether --with-iodbc was given.
16304 if test "${with_iodbc+set}" = set; then :
16305 withval=$with_iodbc;
16306 if test "$withval" = "yes"
16307 then
16308 withval=/usr/local
16309 fi
16310
16311 PATH_IODBC="$withval/bin:$PATH"
16312 # Extract the first word of "iodbc-config", so it can be a program name with args.
16313 set dummy iodbc-config; ac_word=$2
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16315 $as_echo_n "checking for $ac_word... " >&6; }
16316 if ${ac_cv_path_IODBC_CONFIG+:} false; then :
16317 $as_echo_n "(cached) " >&6
16318 else
16319 case $IODBC_CONFIG in
16320 [\\/]* | ?:[\\/]*)
16321 ac_cv_path_IODBC_CONFIG="$IODBC_CONFIG" # Let the user override the test with a path.
16322 ;;
16323 *)
16324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16325 for as_dir in $PATH_IODBC
16326 do
16327 IFS=$as_save_IFS
16328 test -z "$as_dir" && as_dir=.
16329 for ac_exec_ext in '' $ac_executable_extensions; do
16330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16331 ac_cv_path_IODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16333 break 2
16334 fi
16335 done
16336 done
16337 IFS=$as_save_IFS
16338
16339 test -z "$ac_cv_path_IODBC_CONFIG" && ac_cv_path_IODBC_CONFIG="no"
16340 ;;
16341 esac
16342 fi
16343 IODBC_CONFIG=$ac_cv_path_IODBC_CONFIG
16344 if test -n "$IODBC_CONFIG"; then
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IODBC_CONFIG" >&5
16346 $as_echo "$IODBC_CONFIG" >&6; }
16347 else
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16349 $as_echo "no" >&6; }
16350 fi
16351
16352
16353
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iODBC support" >&5
16355 $as_echo_n "checking for iODBC support... " >&6; }
16356 if test -f "$withval/lib/libiodbc.dylib"
16357 then
16358 found_odbc=iODBC # Mac OS X
16359 ODBC_CFLAGS="-I$withval/include"
16360 ODBC_LIBS="-L$withval/lib -liodbc"
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16362 $as_echo "yes" >&6; }
16363 elif test -x "$IODBC_CONFIG"
16364 then
16365 found_odbc=iODBC
16366 ODBC_CFLAGS=`$IODBC_CONFIG --cflags`
16367 ODBC_LIBS=`$IODBC_CONFIG --libs`
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16369 $as_echo "yes" >&6; }
16370 elif test -f "$withval/lib/libiodbc.a"
16371 then
16372 found_odbc=iODBC
16373 ODBC_CFLAGS="-I$withval/include"
16374 ODBC_LIBS="-L$withval/lib -liodbc"
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16376 $as_echo "yes" >&6; }
16377 else
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16379 $as_echo "no" >&6; }
16380 fi
16381
16382 fi
16383
16384 fi
16385
16386
16387 #
16388 # Check for UnixODBC support
16389 #
16390 if test "$found_odbc" = "no"
16391 then
16392
16393 # Check whether --with-unixodbc was given.
16394 if test "${with_unixodbc+set}" = set; then :
16395 withval=$with_unixodbc;
16396 if test "$withval" = "yes"
16397 then
16398 withval=/usr/local
16399 fi
16400
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UnixODBC support" >&5
16402 $as_echo_n "checking for UnixODBC support... " >&6; }
16403 if test -f "$withval/lib/libodbc.a"
16404 then
16405 found_odbc=unixODBC
16406 ODBC_CFLAGS="-I$withval/include"
16407 ODBC_LIBS="-L$withval/lib -lodbc"
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16409 $as_echo "yes" >&6; }
16410 else
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16412 $as_echo "no" >&6; }
16413 fi
16414
16415 fi
16416
16417 fi
16418
16419
16420 #
16421 # Check for DataDirect support
16422 #
16423 if test "$found_odbc" = "no"
16424 then
16425
16426 # Check whether --with-datadirect was given.
16427 if test "${with_datadirect+set}" = set; then :
16428 withval=$with_datadirect;
16429 if test "$withval" = "yes"
16430 then
16431 withval=/usr/local
16432 fi
16433
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DataDirect support" >&5
16435 $as_echo_n "checking for DataDirect support... " >&6; }
16436 if test -f "$withval/lib/libodbc.a"
16437 then
16438 found_odbc=DataDirect
16439 ODBC_CFLAGS="-I$withval/include"
16440 ODBC_LIBS="-L$withval/lib -lodbc"
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16442 $as_echo "yes" >&6; }
16443 else
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16445 $as_echo "no" >&6; }
16446 fi
16447
16448 fi
16449
16450 fi
16451
16452
16453 #
16454 # Check for custom ODBC support
16455 #
16456 if test "$found_odbc" = "no"
16457 then
16458
16459 # Check whether --with-odbc-include was given.
16460 if test "${with_odbc_include+set}" = set; then :
16461 withval=$with_odbc_include;
16462 if test "$withval" = "yes"
16463 then
16464 withval=/usr/local/include
16465 fi
16466
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sql.h" >&5
16468 $as_echo_n "checking for sql.h... " >&6; }
16469 if test -f "$withval/sql.h"
16470 then
16471 ODBC_CFLAGS="-I$withval"
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16473 $as_echo "yes" >&6; }
16474 else
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16476 $as_echo "no" >&6; }
16477 fi
16478
16479 fi
16480
16481
16482
16483
16484 # Check whether --with-odbc-lib was given.
16485 if test "${with_odbc_lib+set}" = set; then :
16486 withval=$with_odbc_lib;
16487 if test "$withval" = "yes"
16488 then
16489 withval=/usr/local/lib
16490 fi
16491
16492 ac_save_LDFLAGS=$LDFLAGS
16493 test -n "$withval" && LDFLAGS="$LDFLAGS -L$withval"
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -liodbc" >&5
16495 $as_echo_n "checking for SQLConnect in -liodbc... " >&6; }
16496 if ${ac_cv_lib_iodbc_SQLConnect+:} false; then :
16497 $as_echo_n "(cached) " >&6
16498 else
16499 ac_check_lib_save_LIBS=$LIBS
16500 LIBS="-liodbc $LIBS"
16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502 /* end confdefs.h. */
16503
16504 /* Override any GCC internal prototype to avoid an error.
16505 Use char because int might match the return type of a GCC
16506 builtin and then its argument prototype would still apply. */
16507 #ifdef __cplusplus
16508 extern "C"
16509 #endif
16510 char SQLConnect ();
16511 int
16512 main ()
16513 {
16514 return SQLConnect ();
16515 ;
16516 return 0;
16517 }
16518 _ACEOF
16519 if ac_fn_c_try_link "$LINENO"; then :
16520 ac_cv_lib_iodbc_SQLConnect=yes
16521 else
16522 ac_cv_lib_iodbc_SQLConnect=no
16523 fi
16524 rm -f core conftest.err conftest.$ac_objext \
16525 conftest$ac_exeext conftest.$ac_ext
16526 LIBS=$ac_check_lib_save_LIBS
16527 fi
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iodbc_SQLConnect" >&5
16529 $as_echo "$ac_cv_lib_iodbc_SQLConnect" >&6; }
16530 if test "x$ac_cv_lib_iodbc_SQLConnect" = xyes; then :
16531
16532 ODBC_LIBS="-L$withval -liodbc"; found_odbc=iODBC
16533
16534 else
16535
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
16537 $as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
16538 if ${ac_cv_lib_odbc_SQLConnect+:} false; then :
16539 $as_echo_n "(cached) " >&6
16540 else
16541 ac_check_lib_save_LIBS=$LIBS
16542 LIBS="-lodbc $LIBS"
16543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16544 /* end confdefs.h. */
16545
16546 /* Override any GCC internal prototype to avoid an error.
16547 Use char because int might match the return type of a GCC
16548 builtin and then its argument prototype would still apply. */
16549 #ifdef __cplusplus
16550 extern "C"
16551 #endif
16552 char SQLConnect ();
16553 int
16554 main ()
16555 {
16556 return SQLConnect ();
16557 ;
16558 return 0;
16559 }
16560 _ACEOF
16561 if ac_fn_c_try_link "$LINENO"; then :
16562 ac_cv_lib_odbc_SQLConnect=yes
16563 else
16564 ac_cv_lib_odbc_SQLConnect=no
16565 fi
16566 rm -f core conftest.err conftest.$ac_objext \
16567 conftest$ac_exeext conftest.$ac_ext
16568 LIBS=$ac_check_lib_save_LIBS
16569 fi
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
16571 $as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
16572 if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then :
16573
16574 ODBC_LIBS="-L$withval -lodbc"; found_odbc=ODBC
16575
16576 fi
16577
16578
16579 fi
16580
16581 LDFLAGS=$ac_save_LDFLAGS
16582
16583 fi
16584
16585 fi
16586
16587
16588 #
16589 # Maybe the libraries are in some default directory
16590 #
16591 if test "$found_odbc" = "no"
16592 then
16593 # Extract the first word of "iodbc-config", so it can be a program name with args.
16594 set dummy iodbc-config; ac_word=$2
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16596 $as_echo_n "checking for $ac_word... " >&6; }
16597 if ${ac_cv_path_IODBC_CONFIG+:} false; then :
16598 $as_echo_n "(cached) " >&6
16599 else
16600 case $IODBC_CONFIG in
16601 [\\/]* | ?:[\\/]*)
16602 ac_cv_path_IODBC_CONFIG="$IODBC_CONFIG" # Let the user override the test with a path.
16603 ;;
16604 *)
16605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16606 for as_dir in $PATH
16607 do
16608 IFS=$as_save_IFS
16609 test -z "$as_dir" && as_dir=.
16610 for ac_exec_ext in '' $ac_executable_extensions; do
16611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16612 ac_cv_path_IODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16614 break 2
16615 fi
16616 done
16617 done
16618 IFS=$as_save_IFS
16619
16620 test -z "$ac_cv_path_IODBC_CONFIG" && ac_cv_path_IODBC_CONFIG="no"
16621 ;;
16622 esac
16623 fi
16624 IODBC_CONFIG=$ac_cv_path_IODBC_CONFIG
16625 if test -n "$IODBC_CONFIG"; then
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IODBC_CONFIG" >&5
16627 $as_echo "$IODBC_CONFIG" >&6; }
16628 else
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16630 $as_echo "no" >&6; }
16631 fi
16632
16633
16634
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iODBC support" >&5
16636 $as_echo_n "checking for iODBC support... " >&6; }
16637 if test -x "$IODBC_CONFIG"
16638 then
16639 found_odbc=iODBC
16640 ODBC_CFLAGS=`$IODBC_CONFIG --cflags`
16641 ODBC_LIBS=`$IODBC_CONFIG --libs`
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16643 $as_echo "yes" >&6; }
16644 fi
16645 fi
16646
16647
16648 #
16649 # Maybe the libraries are in some default directory
16650 #
16651 if test "$found_odbc" = "no"
16652 then
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -liodbc" >&5
16654 $as_echo_n "checking for SQLConnect in -liodbc... " >&6; }
16655 if ${ac_cv_lib_iodbc_SQLConnect+:} false; then :
16656 $as_echo_n "(cached) " >&6
16657 else
16658 ac_check_lib_save_LIBS=$LIBS
16659 LIBS="-liodbc $LIBS"
16660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16661 /* end confdefs.h. */
16662
16663 /* Override any GCC internal prototype to avoid an error.
16664 Use char because int might match the return type of a GCC
16665 builtin and then its argument prototype would still apply. */
16666 #ifdef __cplusplus
16667 extern "C"
16668 #endif
16669 char SQLConnect ();
16670 int
16671 main ()
16672 {
16673 return SQLConnect ();
16674 ;
16675 return 0;
16676 }
16677 _ACEOF
16678 if ac_fn_c_try_link "$LINENO"; then :
16679 ac_cv_lib_iodbc_SQLConnect=yes
16680 else
16681 ac_cv_lib_iodbc_SQLConnect=no
16682 fi
16683 rm -f core conftest.err conftest.$ac_objext \
16684 conftest$ac_exeext conftest.$ac_ext
16685 LIBS=$ac_check_lib_save_LIBS
16686 fi
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iodbc_SQLConnect" >&5
16688 $as_echo "$ac_cv_lib_iodbc_SQLConnect" >&6; }
16689 if test "x$ac_cv_lib_iodbc_SQLConnect" = xyes; then :
16690
16691 ODBC_LIBS="-liodbc"; found_odbc=iODBC
16692
16693 else
16694
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
16696 $as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
16697 if ${ac_cv_lib_odbc_SQLConnect+:} false; then :
16698 $as_echo_n "(cached) " >&6
16699 else
16700 ac_check_lib_save_LIBS=$LIBS
16701 LIBS="-lodbc $LIBS"
16702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16703 /* end confdefs.h. */
16704
16705 /* Override any GCC internal prototype to avoid an error.
16706 Use char because int might match the return type of a GCC
16707 builtin and then its argument prototype would still apply. */
16708 #ifdef __cplusplus
16709 extern "C"
16710 #endif
16711 char SQLConnect ();
16712 int
16713 main ()
16714 {
16715 return SQLConnect ();
16716 ;
16717 return 0;
16718 }
16719 _ACEOF
16720 if ac_fn_c_try_link "$LINENO"; then :
16721 ac_cv_lib_odbc_SQLConnect=yes
16722 else
16723 ac_cv_lib_odbc_SQLConnect=no
16724 fi
16725 rm -f core conftest.err conftest.$ac_objext \
16726 conftest$ac_exeext conftest.$ac_ext
16727 LIBS=$ac_check_lib_save_LIBS
16728 fi
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
16730 $as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
16731 if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then :
16732
16733 ODBC_LIBS="-lodbc"; found_odbc=ODBC
16734
16735 fi
16736
16737
16738 fi
16739
16740 fi
16741
16742
16743 #
16744 # Expand our compile flags
16745 #
16746
16747
16748
16749 #
16750 # Check if SQLLEN, SQLULEN, SQLBIGINT, SQLUBIGINT are defined
16751 #
16752 save_CPPFLAGS="$CPPFLAGS"
16753 CPPFLAGS="$CPPFLAGS $ODBC_CFLAGS"
16754 ac_fn_c_check_type "$LINENO" "SQLLEN" "ac_cv_type_SQLLEN" "
16755 #include <sql.h>
16756 #include <sqlext.h>
16757 #include <sqltypes.h>
16758
16759 "
16760 if test "x$ac_cv_type_SQLLEN" = xyes; then :
16761
16762 else
16763
16764 $as_echo "#define SQLLEN SQLINTEGER" >>confdefs.h
16765
16766
16767 $as_echo "#define SQLULEN SQLUINTEGER" >>confdefs.h
16768
16769 fi
16770
16771
16772
16773 if test "x$with_virtuoso" != "xno"
16774 then
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking virtuoso storage dependencies" >&5
16776 $as_echo_n "checking virtuoso storage dependencies... " >&6; }
16777
16778 if test "$found_odbc" = "no"
16779 then
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16781 $as_echo "no" >&6; }
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabled virtuoso storage:" >&5
16783 $as_echo "$as_me: WARNING: Disabled virtuoso storage:" >&2;}
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find ODBC header files and/or libraries" >&5
16785 $as_echo "$as_me: WARNING: could not find ODBC header files and/or libraries" >&2;}
16786 virtuoso_storage_available=no
16787 else
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16789 $as_echo "yes" >&6; }
16790 storages_available="$storages_available virtuoso"
16791 virtuoso_storage_available=yes
16792 fi
16793
16794 fi
16795
16796 CPPFLAGS="$save_CPPFLAGS"
16797
16798 ##########################################################################
16799 # #
16800 # OpenLink Virtuoso storage support ***END*** #
16801 # #
16802 ##########################################################################
16803
16804
16805
16806
16807 # This is needed because autoheader can't work out which computed
16808 # symbols must be pulled from acconfig.h into config.h.in
16809 if test "x" = "y"; then
16810
16811 $as_echo "#define STORAGE_FILE 1" >>confdefs.h
16812
16813
16814 $as_echo "#define STORAGE_HASHES 1" >>confdefs.h
16815
16816
16817 $as_echo "#define STORAGE_TREES 1" >>confdefs.h
16818
16819
16820 $as_echo "#define STORAGE_MEMORY 1" >>confdefs.h
16821
16822
16823 $as_echo "#define STORAGE_MYSQL 1" >>confdefs.h
16824
16825
16826 $as_echo "#define STORAGE_SQLITE 1" >>confdefs.h
16827
16828
16829 $as_echo "#define STORAGE_TSTORE 1" >>confdefs.h
16830
16831
16832 $as_echo "#define STORAGE_POSTGRESQL 1" >>confdefs.h
16833
16834
16835 $as_echo "#define STORAGE_VIRTUOSO 1" >>confdefs.h
16836
16837 fi
16838
16839
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking storages required" >&5
16841 $as_echo_n "checking storages required... " >&6; }
16842 # Check whether --enable-storages was given.
16843 if test "${enable_storages+set}" = set; then :
16844 enableval=$enable_storages; storages="$enableval"
16845 fi
16846
16847 if test "X$storages" = Xall -o "X$storages" = X; then
16848 storages="$all_storages"
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: all" >&5
16850 $as_echo "all" >&6; }
16851 else
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $storages" >&5
16853 $as_echo "$storages" >&6; }
16854 fi
16855
16856 if echo $storages | grep memory >/dev/null; then
16857 :
16858 else
16859 storages="memory $storages"
16860 fi
16861
16862 for storage in $storages; do
16863 if eval test \$$storage'_storage_available' = yes; then
16864 eval $storage'_storage=yes'
16865 NAME=`echo $storage | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16866 n=STORAGE_${NAME}
16867 cat >>confdefs.h <<_ACEOF
16868 #define $n 1
16869 _ACEOF
16870
16871 storages_enabled="$storages_enabled $storage"
16872
16873 if echo $persistent_storages | grep "/$storage/" >/dev/null; then
16874 persistent_store=yes
16875 fi
16876 fi
16877
16878 done
16879
16880 if test $file_storage = yes; then
16881 STORAGE_FILE_TRUE=
16882 STORAGE_FILE_FALSE='#'
16883 else
16884 STORAGE_FILE_TRUE='#'
16885 STORAGE_FILE_FALSE=
16886 fi
16887
16888 if test $hashes_storage = yes; then
16889 STORAGE_HASHES_TRUE=
16890 STORAGE_HASHES_FALSE='#'
16891 else
16892 STORAGE_HASHES_TRUE='#'
16893 STORAGE_HASHES_FALSE=
16894 fi
16895
16896 if test $trees_storage = yes; then
16897 STORAGE_TREES_TRUE=
16898 STORAGE_TREES_FALSE='#'
16899 else
16900 STORAGE_TREES_TRUE='#'
16901 STORAGE_TREES_FALSE=
16902 fi
16903
16904 if test $memory_storage = yes; then
16905 STORAGE_MEMORY_TRUE=
16906 STORAGE_MEMORY_FALSE='#'
16907 else
16908 STORAGE_MEMORY_TRUE='#'
16909 STORAGE_MEMORY_FALSE=
16910 fi
16911
16912 if test $mysql_storage = yes; then
16913 STORAGE_MYSQL_TRUE=
16914 STORAGE_MYSQL_FALSE='#'
16915 else
16916 STORAGE_MYSQL_TRUE='#'
16917 STORAGE_MYSQL_FALSE=
16918 fi
16919
16920 if test $sqlite_storage = yes; then
16921 STORAGE_SQLITE_TRUE=
16922 STORAGE_SQLITE_FALSE='#'
16923 else
16924 STORAGE_SQLITE_TRUE='#'
16925 STORAGE_SQLITE_FALSE=
16926 fi
16927
16928 if test $tstore_storage = yes; then
16929 STORAGE_TSTORE_TRUE=
16930 STORAGE_TSTORE_FALSE='#'
16931 else
16932 STORAGE_TSTORE_TRUE='#'
16933 STORAGE_TSTORE_FALSE=
16934 fi
16935
16936 if test $postgresql_storage = yes; then
16937 STORAGE_POSTGRESQL_TRUE=
16938 STORAGE_POSTGRESQL_FALSE='#'
16939 else
16940 STORAGE_POSTGRESQL_TRUE='#'
16941 STORAGE_POSTGRESQL_FALSE=
16942 fi
16943
16944 if test $virtuoso_storage = yes; then
16945 STORAGE_VIRTUOSO_TRUE=
16946 STORAGE_VIRTUOSO_FALSE='#'
16947 else
16948 STORAGE_VIRTUOSO_TRUE='#'
16949 STORAGE_VIRTUOSO_FALSE=
16950 fi
16951
16952
16953 if test $mysql_storage = yes; then
16954 MYSQL_CPPFLAGS=`$MYSQL_CONFIG --cflags | sed -e "s/'//g" -e "s/-OA-Za-z0-9*//" `
16955 MYSQL_LIBS="$LIBRDF_LIBS $mysql_libs"
16956 fi
16957 if test $tstore_storage = yes; then
16958 TSTORE_CPPFLAGS="`$TSTORE_CONFIG --cflags` `$PKG_CONFIG glib --cflags`"
16959 TSTORE_LIBS="`$TSTORE_CONFIG --libs` `$PKG_CONFIG glib --libs`"
16960 fi
16961 if test $postgresql_storage = yes; then
16962 POSTGRESQL_CPPFLAGS="-I`$PG_CONFIG --includedir`"
16963 POSTGRESQL_LIBS="-L`$PG_CONFIG --libdir` -lpq"
16964 fi
16965 if test $virtuoso_storage = yes; then
16966 VIRTUOSO_CPPFLAGS="$ODBC_CFLAGS"
16967 VIRTUOSO_LIBS="$ODBC_LIBS"
16968 fi
16969
16970
16971 if test "$persistent_store" = no; then
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No persistant storage is available or enabled" >&5
16973 $as_echo "$as_me: WARNING: No persistant storage is available or enabled" >&2;}
16974 fi
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988 if test "$modular" = yes; then
16989 LIBRDF_INTERNAL_CPPFLAGS="$LIBRDF_INTERNAL_CPPFLAGS $INCLTDL"
16990 LIBRDF_INTERNAL_LIBS="$LIBRDF_INTERNAL_LIBS $LIBLTDL"
16991 LIBRDF_INTERNAL_DEPS="$LIBRDF_INTERNAL_DEPS $LTDLDEPS"
16992
16993 $as_echo "#define MODULAR_LIBRDF 1" >>confdefs.h
16994
16995 else
16996 LIBRDF_CPPFLAGS="$LIBRDF_CPPFLAGS $MYSQL_CPPFLAGS $SQLITE_CFLAGS $TSTORE_CPPFLAGS $POSTGRESQL_CPPFLAGS $VIRTUOSO_CPPFLAGS"
16997 LIBRDF_LIBS="$LIBRDF_LIBS $MYSQL_LIBS $SQLITE_LIBS $TSTORE_LIBS $POSTGRESQL_LIBS $VIRTUOSO_LIBS"
16998 fi
16999
17000 if test $modular = yes; then
17001 MODULAR_LIBRDF_TRUE=
17002 MODULAR_LIBRDF_FALSE='#'
17003 else
17004 MODULAR_LIBRDF_TRUE='#'
17005 MODULAR_LIBRDF_FALSE=
17006 fi
17007
17008
17009 CPPFLAGS="$LIBRDF_CPPFLAGS"
17010 LDFLAGS="$LIBRDF_LDFLAGS"
17011 LIBS="$LIBRDF_LIBS"
17012
17013
17014
17015
17016 # Check whether --with-threads was given.
17017 if test "${with_threads+set}" = set; then :
17018 withval=$with_threads; with_threads="$withval"
17019 else
17020 with_threads="no"
17021 fi
17022
17023
17024 for ac_header in pthread.h
17025 do :
17026 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
17027 if test "x$ac_cv_header_pthread_h" = xyes; then :
17028 cat >>confdefs.h <<_ACEOF
17029 #define HAVE_PTHREAD_H 1
17030 _ACEOF
17031
17032 fi
17033
17034 done
17035
17036
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if POSIX threads should be used" >&5
17038 $as_echo_n "checking if POSIX threads should be used... " >&6; }
17039 if test $with_threads = "yes" ; then
17040
17041 if test "$ac_cv_header_pthread_h" = yes ; then
17042
17043 $as_echo "#define WITH_THREADS 1" >>confdefs.h
17044
17045 LIBRDF_LIBS="$LIBRDF_LIBS -lpthread"
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17047 $as_echo "yes" >&6; }
17048 else
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17050 $as_echo "no" >&6; }
17051 fi
17052 else
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17054 $as_echo "no" >&6; }
17055 fi
17056
17057 LIBS=$LIBRDF_LIBS
17058
17059
17060 # Maybe add some local digest modules
17061 for module in $digest_modules; do
17062 module_u=`echo $module | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local $module digest module" >&5
17064 $as_echo_n "checking for local $module digest module... " >&6; }
17065 base=rdf_digest_$module
17066 if test -r $srcdir/src/$base.c; then
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17068 $as_echo "yes" >&6; }
17069
17070 n=HAVE_LOCAL_${module_u}_DIGEST
17071 cat >>confdefs.h <<_ACEOF
17072 #define $n 1
17073 _ACEOF
17074
17075
17076 DIGEST_OBJS="$DIGEST_OBJS $base.lo"
17077 DIGEST_SRCS="$DIGEST_SRCS $base.c"
17078 digest_modules_available="$digest_modules_available $module"
17079 else
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17081 $as_echo "no" >&6; }
17082 fi
17083 done
17084
17085
17086
17087
17088 # This is needed because autoheader can't work out which computed
17089 # symbols must be pulled from acconfig.h into config.h.in
17090 if test "x" = "y"; then
17091
17092 $as_echo "#define HAVE_LOCAL_MD5_DIGEST 1" >>confdefs.h
17093
17094
17095 $as_echo "#define HAVE_LOCAL_SHA1_DIGEST 1" >>confdefs.h
17096
17097
17098 $as_echo "#define HAVE_LOCAL_RIPEMD160_DIGEST 1" >>confdefs.h
17099
17100 fi
17101
17102
17103
17104 #LIBRDF_EXTERNAL_CPPFLAGS="$LIBRDF_EXTERNAL_CPPFLAGS $LIBRDF_CPPFLAGS"
17105 LIBRDF_EXTERNAL_LIBS="$LIBRDF_EXTERNAL_LIBS $LIBRDF_LIBS"
17106
17107 # Everything except things with .pc files (raptor and rasqal)
17108 # 3store uses it but is optional and thus tricky to specify this way
17109 LIBRDF_PKGCONFIG_PRIVATE_LIBS=`echo $LIBRDF_LIBS | sed -e 's, ..top_build_prefix.libltdl/libltdlc.la, ,'`
17110
17111 # Make final changes to cflags
17112 CFLAGS="-DLIBRDF_INTERNAL=1 $CFLAGS"
17113
17114 assert=yes
17115 # Check whether --enable-assertions was given.
17116 if test "${enable_assertions+set}" = set; then :
17117 enableval=$enable_assertions; assert=$enableval
17118 fi
17119
17120 if test "$assert" = "yes"; then
17121
17122 $as_echo "#define LIBRDF_ASSERT 1" >>confdefs.h
17123
17124 fi
17125
17126 assert_messages=yes
17127 # Check whether --enable-assert-messages was given.
17128 if test "${enable_assert_messages+set}" = set; then :
17129 enableval=$enable_assert_messages; assert_messages=$enableval
17130 fi
17131
17132 if test "$assert_messages" = "yes"; then
17133
17134 $as_echo "#define LIBRDF_ASSERT_MESSAGES 1" >>confdefs.h
17135
17136 fi
17137
17138 debug_messages=no
17139
17140 # Check whether --enable-debug was given.
17141 if test "${enable_debug+set}" = set; then :
17142 enableval=$enable_debug; debug_messages=$enableval
17143 fi
17144
17145 if test "$debug_messages" = "yes"; then
17146 LIBRDF_CPPFLAGS="-g -DLIBRDF_DEBUG=1 $LIBRDF_CPPFLAGS"
17147 fi
17148
17149 if test "$USE_MAINTAINER_MODE" = yes; then
17150 CPPFLAGS="$MAINTAINER_CPPFLAGS $CPPFLAGS"
17151 fi
17152
17153 if test "$USE_MAINTAINER_MODE" = yes -a $release_version = no; then
17154 CFLAGS=`echo $CFLAGS | sed -e "s/-O[A-Za-z0-9]*//"`
17155 CXXFLAGS=`echo $CXXFLAGS | sed -e "s/-O[A-Za-z0-9]*//"`
17156 LIBRDF_CPPFLAGS=`echo $LIBRDF_CPPFLAGS | sed -e "s/-O[A-Za-z0-9]*//"`
17157 LIBRDF_EXTERNAL_CPPFLAGS=`echo $LIBRDF_EXTERNAL_CPPFLAGS | sed -e "s/-O[A-Za-z0-9]*//"`
17158 LIBRDF_INTERNAL_CPPFLAGS=`echo $LIBRDF_INTERNAL_CPPFLAGS | sed -e "s/-O[A-Za-z0-9]*//"`
17159 fi
17160
17161
17162 LIBS="$LIBS"
17163 CPPFLAGS="$CPPFLAGS"
17164 LDFLAGS="$LDFLAGS"
17165
17166 LIBRDF_LIBTOOLLIBS=librdf.la
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188 abs_top_srcdir=`cd $srcdir; pwd`
17189
17190 abs_top_builddir=`pwd`
17191
17192
17193 # Check whether --enable-silent-rules was given.
17194 if test "${enable_silent_rules+set}" = set; then :
17195 enableval=$enable_silent_rules;
17196 fi
17197
17198 case $enable_silent_rules in
17199 yes) AM_DEFAULT_VERBOSITY=0;;
17200 no) AM_DEFAULT_VERBOSITY=1;;
17201 *) AM_DEFAULT_VERBOSITY=1;;
17202 esac
17203 am_make=${MAKE-make}
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17205 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17206 if ${am_cv_make_support_nested_variables+:} false; then :
17207 $as_echo_n "(cached) " >&6
17208 else
17209 if $as_echo 'TRUE=$(BAR$(V))
17210 BAR0=false
17211 BAR1=true
17212 V=1
17213 am__doit:
17214 @$(TRUE)
17215 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17216 am_cv_make_support_nested_variables=yes
17217 else
17218 am_cv_make_support_nested_variables=no
17219 fi
17220 fi
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17222 $as_echo "$am_cv_make_support_nested_variables" >&6; }
17223 if test $am_cv_make_support_nested_variables = yes; then
17224 AM_V='$(V)'
17225 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17226 else
17227 AM_V=$AM_DEFAULT_VERBOSITY
17228 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17229 fi
17230 AM_BACKSLASH='\'
17231
17232
17233 ac_config_files="$ac_config_files Makefile redland.rdf docs/Makefile docs/version.xml examples/Makefile scripts/Makefile src/Makefile src/librdf.h src/redland.spec src/win32_rdf_config.h src/win32/Makefile utils/Makefile demos/Makefile data/Makefile redland.pc"
17234
17235 ac_config_files="$ac_config_files redland-config"
17236
17237 ac_config_files="$ac_config_files redland-src-config"
17238
17239
17240
17241
17242
17243 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
17244 set dummy gtkdoc-check; ac_word=$2
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17246 $as_echo_n "checking for $ac_word... " >&6; }
17247 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
17248 $as_echo_n "(cached) " >&6
17249 else
17250 case $GTKDOC_CHECK in
17251 [\\/]* | ?:[\\/]*)
17252 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
17253 ;;
17254 *)
17255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17256 for as_dir in $PATH
17257 do
17258 IFS=$as_save_IFS
17259 test -z "$as_dir" && as_dir=.
17260 for ac_exec_ext in '' $ac_executable_extensions; do
17261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17262 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
17263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17264 break 2
17265 fi
17266 done
17267 done
17268 IFS=$as_save_IFS
17269
17270 ;;
17271 esac
17272 fi
17273 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
17274 if test -n "$GTKDOC_CHECK"; then
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
17276 $as_echo "$GTKDOC_CHECK" >&6; }
17277 else
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17279 $as_echo "no" >&6; }
17280 fi
17281
17282
17283 for ac_prog in gtkdoc-rebase
17284 do
17285 # Extract the first word of "$ac_prog", so it can be a program name with args.
17286 set dummy $ac_prog; ac_word=$2
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17288 $as_echo_n "checking for $ac_word... " >&6; }
17289 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
17290 $as_echo_n "(cached) " >&6
17291 else
17292 case $GTKDOC_REBASE in
17293 [\\/]* | ?:[\\/]*)
17294 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
17295 ;;
17296 *)
17297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17298 for as_dir in $PATH
17299 do
17300 IFS=$as_save_IFS
17301 test -z "$as_dir" && as_dir=.
17302 for ac_exec_ext in '' $ac_executable_extensions; do
17303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17304 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
17305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17306 break 2
17307 fi
17308 done
17309 done
17310 IFS=$as_save_IFS
17311
17312 ;;
17313 esac
17314 fi
17315 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
17316 if test -n "$GTKDOC_REBASE"; then
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
17318 $as_echo "$GTKDOC_REBASE" >&6; }
17319 else
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17321 $as_echo "no" >&6; }
17322 fi
17323
17324
17325 test -n "$GTKDOC_REBASE" && break
17326 done
17327 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
17328
17329 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
17330 set dummy gtkdoc-mkpdf; ac_word=$2
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17332 $as_echo_n "checking for $ac_word... " >&6; }
17333 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
17334 $as_echo_n "(cached) " >&6
17335 else
17336 case $GTKDOC_MKPDF in
17337 [\\/]* | ?:[\\/]*)
17338 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
17339 ;;
17340 *)
17341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17342 for as_dir in $PATH
17343 do
17344 IFS=$as_save_IFS
17345 test -z "$as_dir" && as_dir=.
17346 for ac_exec_ext in '' $ac_executable_extensions; do
17347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17348 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
17349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17350 break 2
17351 fi
17352 done
17353 done
17354 IFS=$as_save_IFS
17355
17356 ;;
17357 esac
17358 fi
17359 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
17360 if test -n "$GTKDOC_MKPDF"; then
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
17362 $as_echo "$GTKDOC_MKPDF" >&6; }
17363 else
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17365 $as_echo "no" >&6; }
17366 fi
17367
17368
17369
17370
17371 # Check whether --with-html-dir was given.
17372 if test "${with_html_dir+set}" = set; then :
17373 withval=$with_html_dir;
17374 else
17375 with_html_dir='${datadir}/gtk-doc/html'
17376 fi
17377
17378 HTML_DIR="$with_html_dir"
17379
17380
17381 # Check whether --enable-gtk-doc was given.
17382 if test "${enable_gtk_doc+set}" = set; then :
17383 enableval=$enable_gtk_doc;
17384 else
17385 enable_gtk_doc=no
17386 fi
17387
17388
17389 if test x$enable_gtk_doc = xyes; then
17390 if test -n "$PKG_CONFIG" && \
17391 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.3\""; } >&5
17392 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.3") 2>&5
17393 ac_status=$?
17394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17395 test $ac_status = 0; }; then
17396 :
17397 else
17398 as_fn_error $? "You need to have gtk-doc >= 1.3 installed to build $PACKAGE_NAME" "$LINENO" 5
17399 fi
17400 if test "x$PACKAGE_NAME" != "xglib"; then
17401
17402 pkg_failed=no
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
17404 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
17405
17406 if test -n "$GTKDOC_DEPS_CFLAGS"; then
17407 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
17408 elif test -n "$PKG_CONFIG"; then
17409 if test -n "$PKG_CONFIG" && \
17410 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
17411 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
17412 ac_status=$?
17413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17414 test $ac_status = 0; }; then
17415 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
17416 test "x$?" != "x0" && pkg_failed=yes
17417 else
17418 pkg_failed=yes
17419 fi
17420 else
17421 pkg_failed=untried
17422 fi
17423 if test -n "$GTKDOC_DEPS_LIBS"; then
17424 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
17425 elif test -n "$PKG_CONFIG"; then
17426 if test -n "$PKG_CONFIG" && \
17427 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
17428 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
17429 ac_status=$?
17430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17431 test $ac_status = 0; }; then
17432 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
17433 test "x$?" != "x0" && pkg_failed=yes
17434 else
17435 pkg_failed=yes
17436 fi
17437 else
17438 pkg_failed=untried
17439 fi
17440
17441
17442
17443 if test $pkg_failed = yes; then
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17445 $as_echo "no" >&6; }
17446
17447 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17448 _pkg_short_errors_supported=yes
17449 else
17450 _pkg_short_errors_supported=no
17451 fi
17452 if test $_pkg_short_errors_supported = yes; then
17453 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
17454 else
17455 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
17456 fi
17457 # Put the nasty error message in config.log where it belongs
17458 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
17459
17460 as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0) were not met:
17461
17462 $GTKDOC_DEPS_PKG_ERRORS
17463
17464 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17465 installed software in a non-standard prefix.
17466
17467 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
17468 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
17469 See the pkg-config man page for more details." "$LINENO" 5
17470 elif test $pkg_failed = untried; then
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17472 $as_echo "no" >&6; }
17473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17475 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17476 is in your PATH or set the PKG_CONFIG environment variable to the full
17477 path to pkg-config.
17478
17479 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
17480 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
17481 See the pkg-config man page for more details.
17482
17483 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17484 See \`config.log' for more details" "$LINENO" 5; }
17485 else
17486 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
17487 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17489 $as_echo "yes" >&6; }
17490
17491 fi
17492 fi
17493 fi
17494
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
17496 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
17498 $as_echo "$enable_gtk_doc" >&6; }
17499
17500 # Check whether --enable-gtk-doc-html was given.
17501 if test "${enable_gtk_doc_html+set}" = set; then :
17502 enableval=$enable_gtk_doc_html;
17503 else
17504 enable_gtk_doc_html=yes
17505 fi
17506
17507 # Check whether --enable-gtk-doc-pdf was given.
17508 if test "${enable_gtk_doc_pdf+set}" = set; then :
17509 enableval=$enable_gtk_doc_pdf;
17510 else
17511 enable_gtk_doc_pdf=no
17512 fi
17513
17514
17515 if test -z "$GTKDOC_MKPDF"; then
17516 enable_gtk_doc_pdf=no
17517 fi
17518
17519
17520 if test x$enable_gtk_doc = xyes; then
17521 ENABLE_GTK_DOC_TRUE=
17522 ENABLE_GTK_DOC_FALSE='#'
17523 else
17524 ENABLE_GTK_DOC_TRUE='#'
17525 ENABLE_GTK_DOC_FALSE=
17526 fi
17527
17528 if test x$enable_gtk_doc_html = xyes; then
17529 GTK_DOC_BUILD_HTML_TRUE=
17530 GTK_DOC_BUILD_HTML_FALSE='#'
17531 else
17532 GTK_DOC_BUILD_HTML_TRUE='#'
17533 GTK_DOC_BUILD_HTML_FALSE=
17534 fi
17535
17536 if test x$enable_gtk_doc_pdf = xyes; then
17537 GTK_DOC_BUILD_PDF_TRUE=
17538 GTK_DOC_BUILD_PDF_FALSE='#'
17539 else
17540 GTK_DOC_BUILD_PDF_TRUE='#'
17541 GTK_DOC_BUILD_PDF_FALSE=
17542 fi
17543
17544 if test -n "$LIBTOOL"; then
17545 GTK_DOC_USE_LIBTOOL_TRUE=
17546 GTK_DOC_USE_LIBTOOL_FALSE='#'
17547 else
17548 GTK_DOC_USE_LIBTOOL_TRUE='#'
17549 GTK_DOC_USE_LIBTOOL_FALSE=
17550 fi
17551
17552 if test -n "$GTKDOC_REBASE"; then
17553 GTK_DOC_USE_REBASE_TRUE=
17554 GTK_DOC_USE_REBASE_FALSE='#'
17555 else
17556 GTK_DOC_USE_REBASE_TRUE='#'
17557 GTK_DOC_USE_REBASE_FALSE=
17558 fi
17559
17560
17561
17562 cat >confcache <<\_ACEOF
17563 # This file is a shell script that caches the results of configure
17564 # tests run on this system so they can be shared between configure
17565 # scripts and configure runs, see configure's option --config-cache.
17566 # It is not useful on other systems. If it contains results you don't
17567 # want to keep, you may remove or edit it.
17568 #
17569 # config.status only pays attention to the cache file if you give it
17570 # the --recheck option to rerun configure.
17571 #
17572 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17573 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17574 # following values.
17575
17576 _ACEOF
17577
17578 # The following way of writing the cache mishandles newlines in values,
17579 # but we know of no workaround that is simple, portable, and efficient.
17580 # So, we kill variables containing newlines.
17581 # Ultrix sh set writes to stderr and can't be redirected directly,
17582 # and sets the high bit in the cache file unless we assign to the vars.
17583 (
17584 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17585 eval ac_val=\$$ac_var
17586 case $ac_val in #(
17587 *${as_nl}*)
17588 case $ac_var in #(
17589 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17590 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17591 esac
17592 case $ac_var in #(
17593 _ | IFS | as_nl) ;; #(
17594 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17595 *) { eval $ac_var=; unset $ac_var;} ;;
17596 esac ;;
17597 esac
17598 done
17599
17600 (set) 2>&1 |
17601 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17602 *${as_nl}ac_space=\ *)
17603 # `set' does not quote correctly, so add quotes: double-quote
17604 # substitution turns \\\\ into \\, and sed turns \\ into \.
17605 sed -n \
17606 "s/'/'\\\\''/g;
17607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17608 ;; #(
17609 *)
17610 # `set' quotes correctly as required by POSIX, so do not add quotes.
17611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17612 ;;
17613 esac |
17614 sort
17615 ) |
17616 sed '
17617 /^ac_cv_env_/b end
17618 t clear
17619 :clear
17620 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17621 t end
17622 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17623 :end' >>confcache
17624 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17625 if test -w "$cache_file"; then
17626 if test "x$cache_file" != "x/dev/null"; then
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17628 $as_echo "$as_me: updating cache $cache_file" >&6;}
17629 if test ! -f "$cache_file" || test -h "$cache_file"; then
17630 cat confcache >"$cache_file"
17631 else
17632 case $cache_file in #(
17633 */* | ?:*)
17634 mv -f confcache "$cache_file"$$ &&
17635 mv -f "$cache_file"$$ "$cache_file" ;; #(
17636 *)
17637 mv -f confcache "$cache_file" ;;
17638 esac
17639 fi
17640 fi
17641 else
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17643 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17644 fi
17645 fi
17646 rm -f confcache
17647
17648 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17649 # Let make expand exec_prefix.
17650 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17651
17652 DEFS=-DHAVE_CONFIG_H
17653
17654 ac_libobjs=
17655 ac_ltlibobjs=
17656 U=
17657 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17658 # 1. Remove the extension, and $U if already installed.
17659 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17660 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17661 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17662 # will be set to the directory where LIBOBJS objects are built.
17663 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17664 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17665 done
17666 LIBOBJS=$ac_libobjs
17667
17668 LTLIBOBJS=$ac_ltlibobjs
17669
17670
17671 if test -n "$EXEEXT"; then
17672 am__EXEEXT_TRUE=
17673 am__EXEEXT_FALSE='#'
17674 else
17675 am__EXEEXT_TRUE='#'
17676 am__EXEEXT_FALSE=
17677 fi
17678
17679 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17680 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17682 fi
17683 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17684 as_fn_error $? "conditional \"AMDEP\" was never defined.
17685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17686 fi
17687 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17688 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17690 fi
17691 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17692 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17694 fi
17695 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
17696 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
17697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17698 fi
17699 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
17700 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
17701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17702 fi
17703 LT_CONFIG_H=src/rdf_config.h
17704
17705 _ltdl_libobjs=
17706 _ltdl_ltlibobjs=
17707 if test -n "$_LT_LIBOBJS"; then
17708 # Remove the extension.
17709 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
17710 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
17711 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
17712 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
17713 done
17714 fi
17715 ltdl_LIBOBJS=$_ltdl_libobjs
17716
17717 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
17718
17719
17720
17721 if test -z "${MEMCMP_TRUE}" && test -z "${MEMCMP_FALSE}"; then
17722 as_fn_error $? "conditional \"MEMCMP\" was never defined.
17723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17724 fi
17725 if test -z "${GETOPT_TRUE}" && test -z "${GETOPT_FALSE}"; then
17726 as_fn_error $? "conditional \"GETOPT\" was never defined.
17727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17728 fi
17729 if test -z "${STORAGE_FILE_TRUE}" && test -z "${STORAGE_FILE_FALSE}"; then
17730 as_fn_error $? "conditional \"STORAGE_FILE\" was never defined.
17731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17732 fi
17733 if test -z "${STORAGE_HASHES_TRUE}" && test -z "${STORAGE_HASHES_FALSE}"; then
17734 as_fn_error $? "conditional \"STORAGE_HASHES\" was never defined.
17735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17736 fi
17737 if test -z "${STORAGE_TREES_TRUE}" && test -z "${STORAGE_TREES_FALSE}"; then
17738 as_fn_error $? "conditional \"STORAGE_TREES\" was never defined.
17739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17740 fi
17741 if test -z "${STORAGE_MEMORY_TRUE}" && test -z "${STORAGE_MEMORY_FALSE}"; then
17742 as_fn_error $? "conditional \"STORAGE_MEMORY\" was never defined.
17743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17744 fi
17745 if test -z "${STORAGE_MYSQL_TRUE}" && test -z "${STORAGE_MYSQL_FALSE}"; then
17746 as_fn_error $? "conditional \"STORAGE_MYSQL\" was never defined.
17747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17748 fi
17749 if test -z "${STORAGE_SQLITE_TRUE}" && test -z "${STORAGE_SQLITE_FALSE}"; then
17750 as_fn_error $? "conditional \"STORAGE_SQLITE\" was never defined.
17751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17752 fi
17753 if test -z "${STORAGE_TSTORE_TRUE}" && test -z "${STORAGE_TSTORE_FALSE}"; then
17754 as_fn_error $? "conditional \"STORAGE_TSTORE\" was never defined.
17755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17756 fi
17757 if test -z "${STORAGE_POSTGRESQL_TRUE}" && test -z "${STORAGE_POSTGRESQL_FALSE}"; then
17758 as_fn_error $? "conditional \"STORAGE_POSTGRESQL\" was never defined.
17759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17760 fi
17761 if test -z "${STORAGE_VIRTUOSO_TRUE}" && test -z "${STORAGE_VIRTUOSO_FALSE}"; then
17762 as_fn_error $? "conditional \"STORAGE_VIRTUOSO\" was never defined.
17763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17764 fi
17765 if test -z "${MODULAR_LIBRDF_TRUE}" && test -z "${MODULAR_LIBRDF_FALSE}"; then
17766 as_fn_error $? "conditional \"MODULAR_LIBRDF\" was never defined.
17767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17768 fi
17769 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
17770 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
17771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17772 fi
17773 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
17774 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
17775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17776 fi
17777 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
17778 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
17779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17780 fi
17781 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
17782 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
17783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17784 fi
17785 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
17786 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
17787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17788 fi
17789
17790 : "${CONFIG_STATUS=./config.status}"
17791 ac_write_fail=0
17792 ac_clean_files_save=$ac_clean_files
17793 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17795 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17796 as_write_fail=0
17797 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17798 #! $SHELL
17799 # Generated by $as_me.
17800 # Run this file to recreate the current configuration.
17801 # Compiler output produced by configure, useful for debugging
17802 # configure, is in config.log if it exists.
17803
17804 debug=false
17805 ac_cs_recheck=false
17806 ac_cs_silent=false
17807
17808 SHELL=\${CONFIG_SHELL-$SHELL}
17809 export SHELL
17810 _ASEOF
17811 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17812 ## -------------------- ##
17813 ## M4sh Initialization. ##
17814 ## -------------------- ##
17815
17816 # Be more Bourne compatible
17817 DUALCASE=1; export DUALCASE # for MKS sh
17818 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17819 emulate sh
17820 NULLCMD=:
17821 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17822 # is contrary to our usage. Disable this feature.
17823 alias -g '${1+"$@"}'='"$@"'
17824 setopt NO_GLOB_SUBST
17825 else
17826 case `(set -o) 2>/dev/null` in #(
17827 *posix*) :
17828 set -o posix ;; #(
17829 *) :
17830 ;;
17831 esac
17832 fi
17833
17834
17835 as_nl='
17836 '
17837 export as_nl
17838 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17839 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17840 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17841 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17842 # Prefer a ksh shell builtin over an external printf program on Solaris,
17843 # but without wasting forks for bash or zsh.
17844 if test -z "$BASH_VERSION$ZSH_VERSION" \
17845 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17846 as_echo='print -r --'
17847 as_echo_n='print -rn --'
17848 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17849 as_echo='printf %s\n'
17850 as_echo_n='printf %s'
17851 else
17852 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17853 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17854 as_echo_n='/usr/ucb/echo -n'
17855 else
17856 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17857 as_echo_n_body='eval
17858 arg=$1;
17859 case $arg in #(
17860 *"$as_nl"*)
17861 expr "X$arg" : "X\\(.*\\)$as_nl";
17862 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17863 esac;
17864 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17865 '
17866 export as_echo_n_body
17867 as_echo_n='sh -c $as_echo_n_body as_echo'
17868 fi
17869 export as_echo_body
17870 as_echo='sh -c $as_echo_body as_echo'
17871 fi
17872
17873 # The user is always right.
17874 if test "${PATH_SEPARATOR+set}" != set; then
17875 PATH_SEPARATOR=:
17876 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17877 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17878 PATH_SEPARATOR=';'
17879 }
17880 fi
17881
17882
17883 # IFS
17884 # We need space, tab and new line, in precisely that order. Quoting is
17885 # there to prevent editors from complaining about space-tab.
17886 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17887 # splitting by setting IFS to empty value.)
17888 IFS=" "" $as_nl"
17889
17890 # Find who we are. Look in the path if we contain no directory separator.
17891 as_myself=
17892 case $0 in #((
17893 *[\\/]* ) as_myself=$0 ;;
17894 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17895 for as_dir in $PATH
17896 do
17897 IFS=$as_save_IFS
17898 test -z "$as_dir" && as_dir=.
17899 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17900 done
17901 IFS=$as_save_IFS
17902
17903 ;;
17904 esac
17905 # We did not find ourselves, most probably we were run as `sh COMMAND'
17906 # in which case we are not to be found in the path.
17907 if test "x$as_myself" = x; then
17908 as_myself=$0
17909 fi
17910 if test ! -f "$as_myself"; then
17911 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17912 exit 1
17913 fi
17914
17915 # Unset variables that we do not need and which cause bugs (e.g. in
17916 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17917 # suppresses any "Segmentation fault" message there. '((' could
17918 # trigger a bug in pdksh 5.2.14.
17919 for as_var in BASH_ENV ENV MAIL MAILPATH
17920 do eval test x\${$as_var+set} = xset \
17921 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17922 done
17923 PS1='$ '
17924 PS2='> '
17925 PS4='+ '
17926
17927 # NLS nuisances.
17928 LC_ALL=C
17929 export LC_ALL
17930 LANGUAGE=C
17931 export LANGUAGE
17932
17933 # CDPATH.
17934 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17935
17936
17937 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17938 # ----------------------------------------
17939 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17940 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17941 # script with STATUS, using 1 if that was 0.
17942 as_fn_error ()
17943 {
17944 as_status=$1; test $as_status -eq 0 && as_status=1
17945 if test "$4"; then
17946 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17947 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17948 fi
17949 $as_echo "$as_me: error: $2" >&2
17950 as_fn_exit $as_status
17951 } # as_fn_error
17952
17953
17954 # as_fn_set_status STATUS
17955 # -----------------------
17956 # Set $? to STATUS, without forking.
17957 as_fn_set_status ()
17958 {
17959 return $1
17960 } # as_fn_set_status
17961
17962 # as_fn_exit STATUS
17963 # -----------------
17964 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17965 as_fn_exit ()
17966 {
17967 set +e
17968 as_fn_set_status $1
17969 exit $1
17970 } # as_fn_exit
17971
17972 # as_fn_unset VAR
17973 # ---------------
17974 # Portably unset VAR.
17975 as_fn_unset ()
17976 {
17977 { eval $1=; unset $1;}
17978 }
17979 as_unset=as_fn_unset
17980 # as_fn_append VAR VALUE
17981 # ----------------------
17982 # Append the text in VALUE to the end of the definition contained in VAR. Take
17983 # advantage of any shell optimizations that allow amortized linear growth over
17984 # repeated appends, instead of the typical quadratic growth present in naive
17985 # implementations.
17986 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17987 eval 'as_fn_append ()
17988 {
17989 eval $1+=\$2
17990 }'
17991 else
17992 as_fn_append ()
17993 {
17994 eval $1=\$$1\$2
17995 }
17996 fi # as_fn_append
17997
17998 # as_fn_arith ARG...
17999 # ------------------
18000 # Perform arithmetic evaluation on the ARGs, and store the result in the
18001 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18002 # must be portable across $(()) and expr.
18003 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18004 eval 'as_fn_arith ()
18005 {
18006 as_val=$(( $* ))
18007 }'
18008 else
18009 as_fn_arith ()
18010 {
18011 as_val=`expr "$@" || test $? -eq 1`
18012 }
18013 fi # as_fn_arith
18014
18015
18016 if expr a : '\(a\)' >/dev/null 2>&1 &&
18017 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18018 as_expr=expr
18019 else
18020 as_expr=false
18021 fi
18022
18023 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18024 as_basename=basename
18025 else
18026 as_basename=false
18027 fi
18028
18029 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18030 as_dirname=dirname
18031 else
18032 as_dirname=false
18033 fi
18034
18035 as_me=`$as_basename -- "$0" ||
18036 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18037 X"$0" : 'X\(//\)$' \| \
18038 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18039 $as_echo X/"$0" |
18040 sed '/^.*\/\([^/][^/]*\)\/*$/{
18041 s//\1/
18042 q
18043 }
18044 /^X\/\(\/\/\)$/{
18045 s//\1/
18046 q
18047 }
18048 /^X\/\(\/\).*/{
18049 s//\1/
18050 q
18051 }
18052 s/.*/./; q'`
18053
18054 # Avoid depending upon Character Ranges.
18055 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18056 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18057 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18058 as_cr_digits='0123456789'
18059 as_cr_alnum=$as_cr_Letters$as_cr_digits
18060
18061 ECHO_C= ECHO_N= ECHO_T=
18062 case `echo -n x` in #(((((
18063 -n*)
18064 case `echo 'xy\c'` in
18065 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18066 xy) ECHO_C='\c';;
18067 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18068 ECHO_T=' ';;
18069 esac;;
18070 *)
18071 ECHO_N='-n';;
18072 esac
18073
18074 rm -f conf$$ conf$$.exe conf$$.file
18075 if test -d conf$$.dir; then
18076 rm -f conf$$.dir/conf$$.file
18077 else
18078 rm -f conf$$.dir
18079 mkdir conf$$.dir 2>/dev/null
18080 fi
18081 if (echo >conf$$.file) 2>/dev/null; then
18082 if ln -s conf$$.file conf$$ 2>/dev/null; then
18083 as_ln_s='ln -s'
18084 # ... but there are two gotchas:
18085 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18086 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18087 # In both cases, we have to default to `cp -pR'.
18088 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18089 as_ln_s='cp -pR'
18090 elif ln conf$$.file conf$$ 2>/dev/null; then
18091 as_ln_s=ln
18092 else
18093 as_ln_s='cp -pR'
18094 fi
18095 else
18096 as_ln_s='cp -pR'
18097 fi
18098 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18099 rmdir conf$$.dir 2>/dev/null
18100
18101
18102 # as_fn_mkdir_p
18103 # -------------
18104 # Create "$as_dir" as a directory, including parents if necessary.
18105 as_fn_mkdir_p ()
18106 {
18107
18108 case $as_dir in #(
18109 -*) as_dir=./$as_dir;;
18110 esac
18111 test -d "$as_dir" || eval $as_mkdir_p || {
18112 as_dirs=
18113 while :; do
18114 case $as_dir in #(
18115 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18116 *) as_qdir=$as_dir;;
18117 esac
18118 as_dirs="'$as_qdir' $as_dirs"
18119 as_dir=`$as_dirname -- "$as_dir" ||
18120 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18121 X"$as_dir" : 'X\(//\)[^/]' \| \
18122 X"$as_dir" : 'X\(//\)$' \| \
18123 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18124 $as_echo X"$as_dir" |
18125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18126 s//\1/
18127 q
18128 }
18129 /^X\(\/\/\)[^/].*/{
18130 s//\1/
18131 q
18132 }
18133 /^X\(\/\/\)$/{
18134 s//\1/
18135 q
18136 }
18137 /^X\(\/\).*/{
18138 s//\1/
18139 q
18140 }
18141 s/.*/./; q'`
18142 test -d "$as_dir" && break
18143 done
18144 test -z "$as_dirs" || eval "mkdir $as_dirs"
18145 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18146
18147
18148 } # as_fn_mkdir_p
18149 if mkdir -p . 2>/dev/null; then
18150 as_mkdir_p='mkdir -p "$as_dir"'
18151 else
18152 test -d ./-p && rmdir ./-p
18153 as_mkdir_p=false
18154 fi
18155
18156
18157 # as_fn_executable_p FILE
18158 # -----------------------
18159 # Test if FILE is an executable regular file.
18160 as_fn_executable_p ()
18161 {
18162 test -f "$1" && test -x "$1"
18163 } # as_fn_executable_p
18164 as_test_x='test -x'
18165 as_executable_p=as_fn_executable_p
18166
18167 # Sed expression to map a string onto a valid CPP name.
18168 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18169
18170 # Sed expression to map a string onto a valid variable name.
18171 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18172
18173
18174 exec 6>&1
18175 ## ----------------------------------- ##
18176 ## Main body of $CONFIG_STATUS script. ##
18177 ## ----------------------------------- ##
18178 _ASEOF
18179 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18180
18181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18182 # Save the log message, to keep $0 and so on meaningful, and to
18183 # report actual input values of CONFIG_FILES etc. instead of their
18184 # values after options handling.
18185 ac_log="
18186 This file was extended by Redland librdf RDF API Library $as_me 1.0.17, which was
18187 generated by GNU Autoconf 2.69. Invocation command line was
18188
18189 CONFIG_FILES = $CONFIG_FILES
18190 CONFIG_HEADERS = $CONFIG_HEADERS
18191 CONFIG_LINKS = $CONFIG_LINKS
18192 CONFIG_COMMANDS = $CONFIG_COMMANDS
18193 $ $0 $@
18194
18195 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18196 "
18197
18198 _ACEOF
18199
18200 case $ac_config_files in *"
18201 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18202 esac
18203
18204 case $ac_config_headers in *"
18205 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18206 esac
18207
18208
18209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18210 # Files that config.status was made for.
18211 config_files="$ac_config_files"
18212 config_headers="$ac_config_headers"
18213 config_commands="$ac_config_commands"
18214
18215 _ACEOF
18216
18217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18218 ac_cs_usage="\
18219 \`$as_me' instantiates files and other configuration actions
18220 from templates according to the current configuration. Unless the files
18221 and actions are specified as TAGs, all are instantiated by default.
18222
18223 Usage: $0 [OPTION]... [TAG]...
18224
18225 -h, --help print this help, then exit
18226 -V, --version print version number and configuration settings, then exit
18227 --config print configuration, then exit
18228 -q, --quiet, --silent
18229 do not print progress messages
18230 -d, --debug don't remove temporary files
18231 --recheck update $as_me by reconfiguring in the same conditions
18232 --file=FILE[:TEMPLATE]
18233 instantiate the configuration file FILE
18234 --header=FILE[:TEMPLATE]
18235 instantiate the configuration header FILE
18236
18237 Configuration files:
18238 $config_files
18239
18240 Configuration headers:
18241 $config_headers
18242
18243 Configuration commands:
18244 $config_commands
18245
18246 Report bugs to <http://bugs.librdf.org/>."
18247
18248 _ACEOF
18249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18250 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18251 ac_cs_version="\\
18252 Redland librdf RDF API Library config.status 1.0.17
18253 configured by $0, generated by GNU Autoconf 2.69,
18254 with options \\"\$ac_cs_config\\"
18255
18256 Copyright (C) 2012 Free Software Foundation, Inc.
18257 This config.status script is free software; the Free Software Foundation
18258 gives unlimited permission to copy, distribute and modify it."
18259
18260 ac_pwd='$ac_pwd'
18261 srcdir='$srcdir'
18262 INSTALL='$INSTALL'
18263 MKDIR_P='$MKDIR_P'
18264 AWK='$AWK'
18265 test -n "\$AWK" || AWK=awk
18266 _ACEOF
18267
18268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18269 # The default lists apply if the user does not specify any file.
18270 ac_need_defaults=:
18271 while test $# != 0
18272 do
18273 case $1 in
18274 --*=?*)
18275 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18276 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18277 ac_shift=:
18278 ;;
18279 --*=)
18280 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18281 ac_optarg=
18282 ac_shift=:
18283 ;;
18284 *)
18285 ac_option=$1
18286 ac_optarg=$2
18287 ac_shift=shift
18288 ;;
18289 esac
18290
18291 case $ac_option in
18292 # Handling of the options.
18293 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18294 ac_cs_recheck=: ;;
18295 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18296 $as_echo "$ac_cs_version"; exit ;;
18297 --config | --confi | --conf | --con | --co | --c )
18298 $as_echo "$ac_cs_config"; exit ;;
18299 --debug | --debu | --deb | --de | --d | -d )
18300 debug=: ;;
18301 --file | --fil | --fi | --f )
18302 $ac_shift
18303 case $ac_optarg in
18304 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18305 '') as_fn_error $? "missing file argument" ;;
18306 esac
18307 as_fn_append CONFIG_FILES " '$ac_optarg'"
18308 ac_need_defaults=false;;
18309 --header | --heade | --head | --hea )
18310 $ac_shift
18311 case $ac_optarg in
18312 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18313 esac
18314 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18315 ac_need_defaults=false;;
18316 --he | --h)
18317 # Conflict between --help and --header
18318 as_fn_error $? "ambiguous option: \`$1'
18319 Try \`$0 --help' for more information.";;
18320 --help | --hel | -h )
18321 $as_echo "$ac_cs_usage"; exit ;;
18322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18323 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18324 ac_cs_silent=: ;;
18325
18326 # This is an error.
18327 -*) as_fn_error $? "unrecognized option: \`$1'
18328 Try \`$0 --help' for more information." ;;
18329
18330 *) as_fn_append ac_config_targets " $1"
18331 ac_need_defaults=false ;;
18332
18333 esac
18334 shift
18335 done
18336
18337 ac_configure_extra_args=
18338
18339 if $ac_cs_silent; then
18340 exec 6>/dev/null
18341 ac_configure_extra_args="$ac_configure_extra_args --silent"
18342 fi
18343
18344 _ACEOF
18345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18346 if \$ac_cs_recheck; then
18347 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18348 shift
18349 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18350 CONFIG_SHELL='$SHELL'
18351 export CONFIG_SHELL
18352 exec "\$@"
18353 fi
18354
18355 _ACEOF
18356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18357 exec 5>>config.log
18358 {
18359 echo
18360 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18361 ## Running $as_me. ##
18362 _ASBOX
18363 $as_echo "$ac_log"
18364 } >&5
18365
18366 _ACEOF
18367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18368 #
18369 # INIT-COMMANDS
18370 #
18371 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18372
18373
18374 # The HP-UX ksh and POSIX shell print the target directory to stdout
18375 # if CDPATH is set.
18376 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18377
18378 sed_quote_subst='$sed_quote_subst'
18379 double_quote_subst='$double_quote_subst'
18380 delay_variable_subst='$delay_variable_subst'
18381 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18382 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18383 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18384 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18385 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18386 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18387 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18388 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18389 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18390 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18391 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18392 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18393 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18394 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18395 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18396 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18397 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18398 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18399 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18400 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18401 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18402 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18403 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18404 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18405 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18406 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18407 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18408 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18409 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18410 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18411 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18412 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18413 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18414 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18415 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18416 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18417 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18418 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18419 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18420 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18421 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18422 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18423 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18424 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18425 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18426 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18427 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18428 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18429 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18430 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18431 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18432 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18433 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18434 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18435 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18436 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18437 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"`'
18438 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18439 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18440 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18441 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18442 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18443 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18444 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18445 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18446 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18447 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18448 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18449 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18450 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18451 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18452 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18453 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18454 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18455 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18456 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18457 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18458 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18459 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18460 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18461 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18462 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18463 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18464 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18465 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18466 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18467 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18468 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18469 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18470 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18471 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18472 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18473 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18474 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18475 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18476 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18477 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18478 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18479 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18480 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18481 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18482 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18483 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18484 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18485 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18486 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18487 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18488 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18489 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18490 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18491 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18492 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18493 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18494 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18495 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18496 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18497 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18498 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18499 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18500 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18501 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18502 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18503 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18504 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18505 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18506 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18507 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18508 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18509 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18510 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18511
18512 LTCC='$LTCC'
18513 LTCFLAGS='$LTCFLAGS'
18514 compiler='$compiler_DEFAULT'
18515
18516 # A function that is used when there is no print builtin or printf.
18517 func_fallback_echo ()
18518 {
18519 eval 'cat <<_LTECHO_EOF
18520 \$1
18521 _LTECHO_EOF'
18522 }
18523
18524 # Quote evaled strings.
18525 for var in SHELL \
18526 ECHO \
18527 PATH_SEPARATOR \
18528 SED \
18529 GREP \
18530 EGREP \
18531 FGREP \
18532 LD \
18533 NM \
18534 LN_S \
18535 lt_SP2NL \
18536 lt_NL2SP \
18537 reload_flag \
18538 OBJDUMP \
18539 deplibs_check_method \
18540 file_magic_cmd \
18541 file_magic_glob \
18542 want_nocaseglob \
18543 DLLTOOL \
18544 sharedlib_from_linklib_cmd \
18545 AR \
18546 AR_FLAGS \
18547 archiver_list_spec \
18548 STRIP \
18549 RANLIB \
18550 CC \
18551 CFLAGS \
18552 compiler \
18553 lt_cv_sys_global_symbol_pipe \
18554 lt_cv_sys_global_symbol_to_cdecl \
18555 lt_cv_sys_global_symbol_to_c_name_address \
18556 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18557 nm_file_list_spec \
18558 lt_prog_compiler_no_builtin_flag \
18559 lt_prog_compiler_pic \
18560 lt_prog_compiler_wl \
18561 lt_prog_compiler_static \
18562 lt_cv_prog_compiler_c_o \
18563 need_locks \
18564 MANIFEST_TOOL \
18565 DSYMUTIL \
18566 NMEDIT \
18567 LIPO \
18568 OTOOL \
18569 OTOOL64 \
18570 shrext_cmds \
18571 export_dynamic_flag_spec \
18572 whole_archive_flag_spec \
18573 compiler_needs_object \
18574 with_gnu_ld \
18575 allow_undefined_flag \
18576 no_undefined_flag \
18577 hardcode_libdir_flag_spec \
18578 hardcode_libdir_separator \
18579 exclude_expsyms \
18580 include_expsyms \
18581 file_list_spec \
18582 variables_saved_for_relink \
18583 libname_spec \
18584 library_names_spec \
18585 soname_spec \
18586 install_override_mode \
18587 finish_eval \
18588 old_striplib \
18589 striplib; do
18590 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18591 *[\\\\\\\`\\"\\\$]*)
18592 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18593 ;;
18594 *)
18595 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18596 ;;
18597 esac
18598 done
18599
18600 # Double-quote double-evaled strings.
18601 for var in reload_cmds \
18602 old_postinstall_cmds \
18603 old_postuninstall_cmds \
18604 old_archive_cmds \
18605 extract_expsyms_cmds \
18606 old_archive_from_new_cmds \
18607 old_archive_from_expsyms_cmds \
18608 archive_cmds \
18609 archive_expsym_cmds \
18610 module_cmds \
18611 module_expsym_cmds \
18612 export_symbols_cmds \
18613 prelink_cmds \
18614 postlink_cmds \
18615 postinstall_cmds \
18616 postuninstall_cmds \
18617 finish_cmds \
18618 sys_lib_search_path_spec \
18619 sys_lib_dlsearch_path_spec; do
18620 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18621 *[\\\\\\\`\\"\\\$]*)
18622 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18623 ;;
18624 *)
18625 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18626 ;;
18627 esac
18628 done
18629
18630 ac_aux_dir='$ac_aux_dir'
18631 xsi_shell='$xsi_shell'
18632 lt_shell_append='$lt_shell_append'
18633
18634 # See if we are running on zsh, and set the options which allow our
18635 # commands through without removal of \ escapes INIT.
18636 if test -n "\${ZSH_VERSION+set}" ; then
18637 setopt NO_GLOB_SUBST
18638 fi
18639
18640
18641 PACKAGE='$PACKAGE'
18642 VERSION='$VERSION'
18643 TIMESTAMP='$TIMESTAMP'
18644 RM='$RM'
18645 ofile='$ofile'
18646
18647
18648
18649
18650 _ACEOF
18651
18652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18653
18654 # Handling of arguments.
18655 for ac_config_target in $ac_config_targets
18656 do
18657 case $ac_config_target in
18658 "src/rdf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/rdf_config.h" ;;
18659 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18660 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18661 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18662 "redland.rdf") CONFIG_FILES="$CONFIG_FILES redland.rdf" ;;
18663 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
18664 "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
18665 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
18666 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18667 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18668 "src/librdf.h") CONFIG_FILES="$CONFIG_FILES src/librdf.h" ;;
18669 "src/redland.spec") CONFIG_FILES="$CONFIG_FILES src/redland.spec" ;;
18670 "src/win32_rdf_config.h") CONFIG_FILES="$CONFIG_FILES src/win32_rdf_config.h" ;;
18671 "src/win32/Makefile") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
18672 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
18673 "demos/Makefile") CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
18674 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
18675 "redland.pc") CONFIG_FILES="$CONFIG_FILES redland.pc" ;;
18676 "redland-config") CONFIG_FILES="$CONFIG_FILES redland-config" ;;
18677 "redland-src-config") CONFIG_FILES="$CONFIG_FILES redland-src-config" ;;
18678
18679 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18680 esac
18681 done
18682
18683
18684 # If the user did not use the arguments to specify the items to instantiate,
18685 # then the envvar interface is used. Set only those that are not.
18686 # We use the long form for the default assignment because of an extremely
18687 # bizarre bug on SunOS 4.1.3.
18688 if $ac_need_defaults; then
18689 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18690 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18691 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18692 fi
18693
18694 # Have a temporary directory for convenience. Make it in the build tree
18695 # simply because there is no reason against having it here, and in addition,
18696 # creating and moving files from /tmp can sometimes cause problems.
18697 # Hook for its removal unless debugging.
18698 # Note that there is a small window in which the directory will not be cleaned:
18699 # after its creation but before its name has been assigned to `$tmp'.
18700 $debug ||
18701 {
18702 tmp= ac_tmp=
18703 trap 'exit_status=$?
18704 : "${ac_tmp:=$tmp}"
18705 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18706 ' 0
18707 trap 'as_fn_exit 1' 1 2 13 15
18708 }
18709 # Create a (secure) tmp directory for tmp files.
18710
18711 {
18712 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18713 test -d "$tmp"
18714 } ||
18715 {
18716 tmp=./conf$$-$RANDOM
18717 (umask 077 && mkdir "$tmp")
18718 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18719 ac_tmp=$tmp
18720
18721 # Set up the scripts for CONFIG_FILES section.
18722 # No need to generate them if there are no CONFIG_FILES.
18723 # This happens for instance with `./config.status config.h'.
18724 if test -n "$CONFIG_FILES"; then
18725
18726
18727 ac_cr=`echo X | tr X '\015'`
18728 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18729 # But we know of no other shell where ac_cr would be empty at this
18730 # point, so we can use a bashism as a fallback.
18731 if test "x$ac_cr" = x; then
18732 eval ac_cr=\$\'\\r\'
18733 fi
18734 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18735 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18736 ac_cs_awk_cr='\\r'
18737 else
18738 ac_cs_awk_cr=$ac_cr
18739 fi
18740
18741 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18742 _ACEOF
18743
18744
18745 {
18746 echo "cat >conf$$subs.awk <<_ACEOF" &&
18747 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18748 echo "_ACEOF"
18749 } >conf$$subs.sh ||
18750 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18751 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18752 ac_delim='%!_!# '
18753 for ac_last_try in false false false false false :; do
18754 . ./conf$$subs.sh ||
18755 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18756
18757 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18758 if test $ac_delim_n = $ac_delim_num; then
18759 break
18760 elif $ac_last_try; then
18761 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18762 else
18763 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18764 fi
18765 done
18766 rm -f conf$$subs.sh
18767
18768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18769 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18770 _ACEOF
18771 sed -n '
18772 h
18773 s/^/S["/; s/!.*/"]=/
18774 p
18775 g
18776 s/^[^!]*!//
18777 :repl
18778 t repl
18779 s/'"$ac_delim"'$//
18780 t delim
18781 :nl
18782 h
18783 s/\(.\{148\}\)..*/\1/
18784 t more1
18785 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18786 p
18787 n
18788 b repl
18789 :more1
18790 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18791 p
18792 g
18793 s/.\{148\}//
18794 t nl
18795 :delim
18796 h
18797 s/\(.\{148\}\)..*/\1/
18798 t more2
18799 s/["\\]/\\&/g; s/^/"/; s/$/"/
18800 p
18801 b
18802 :more2
18803 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18804 p
18805 g
18806 s/.\{148\}//
18807 t delim
18808 ' <conf$$subs.awk | sed '
18809 /^[^""]/{
18810 N
18811 s/\n//
18812 }
18813 ' >>$CONFIG_STATUS || ac_write_fail=1
18814 rm -f conf$$subs.awk
18815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18816 _ACAWK
18817 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18818 for (key in S) S_is_set[key] = 1
18819 FS = ""
18820
18821 }
18822 {
18823 line = $ 0
18824 nfields = split(line, field, "@")
18825 substed = 0
18826 len = length(field[1])
18827 for (i = 2; i < nfields; i++) {
18828 key = field[i]
18829 keylen = length(key)
18830 if (S_is_set[key]) {
18831 value = S[key]
18832 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18833 len += length(value) + length(field[++i])
18834 substed = 1
18835 } else
18836 len += 1 + keylen
18837 }
18838
18839 print line
18840 }
18841
18842 _ACAWK
18843 _ACEOF
18844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18845 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18846 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18847 else
18848 cat
18849 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18850 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18851 _ACEOF
18852
18853 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18854 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18855 # trailing colons and then remove the whole line if VPATH becomes empty
18856 # (actually we leave an empty line to preserve line numbers).
18857 if test "x$srcdir" = x.; then
18858 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18859 h
18860 s///
18861 s/^/:/
18862 s/[ ]*$/:/
18863 s/:\$(srcdir):/:/g
18864 s/:\${srcdir}:/:/g
18865 s/:@srcdir@:/:/g
18866 s/^:*//
18867 s/:*$//
18868 x
18869 s/\(=[ ]*\).*/\1/
18870 G
18871 s/\n//
18872 s/^[^=]*=[ ]*$//
18873 }'
18874 fi
18875
18876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18877 fi # test -n "$CONFIG_FILES"
18878
18879 # Set up the scripts for CONFIG_HEADERS section.
18880 # No need to generate them if there are no CONFIG_HEADERS.
18881 # This happens for instance with `./config.status Makefile'.
18882 if test -n "$CONFIG_HEADERS"; then
18883 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18884 BEGIN {
18885 _ACEOF
18886
18887 # Transform confdefs.h into an awk script `defines.awk', embedded as
18888 # here-document in config.status, that substitutes the proper values into
18889 # config.h.in to produce config.h.
18890
18891 # Create a delimiter string that does not exist in confdefs.h, to ease
18892 # handling of long lines.
18893 ac_delim='%!_!# '
18894 for ac_last_try in false false :; do
18895 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18896 if test -z "$ac_tt"; then
18897 break
18898 elif $ac_last_try; then
18899 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18900 else
18901 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18902 fi
18903 done
18904
18905 # For the awk script, D is an array of macro values keyed by name,
18906 # likewise P contains macro parameters if any. Preserve backslash
18907 # newline sequences.
18908
18909 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18910 sed -n '
18911 s/.\{148\}/&'"$ac_delim"'/g
18912 t rset
18913 :rset
18914 s/^[ ]*#[ ]*define[ ][ ]*/ /
18915 t def
18916 d
18917 :def
18918 s/\\$//
18919 t bsnl
18920 s/["\\]/\\&/g
18921 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18922 D["\1"]=" \3"/p
18923 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18924 d
18925 :bsnl
18926 s/["\\]/\\&/g
18927 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18928 D["\1"]=" \3\\\\\\n"\\/p
18929 t cont
18930 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18931 t cont
18932 d
18933 :cont
18934 n
18935 s/.\{148\}/&'"$ac_delim"'/g
18936 t clear
18937 :clear
18938 s/\\$//
18939 t bsnlc
18940 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18941 d
18942 :bsnlc
18943 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18944 b cont
18945 ' <confdefs.h | sed '
18946 s/'"$ac_delim"'/"\\\
18947 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18948
18949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18950 for (key in D) D_is_set[key] = 1
18951 FS = ""
18952 }
18953 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18954 line = \$ 0
18955 split(line, arg, " ")
18956 if (arg[1] == "#") {
18957 defundef = arg[2]
18958 mac1 = arg[3]
18959 } else {
18960 defundef = substr(arg[1], 2)
18961 mac1 = arg[2]
18962 }
18963 split(mac1, mac2, "(") #)
18964 macro = mac2[1]
18965 prefix = substr(line, 1, index(line, defundef) - 1)
18966 if (D_is_set[macro]) {
18967 # Preserve the white space surrounding the "#".
18968 print prefix "define", macro P[macro] D[macro]
18969 next
18970 } else {
18971 # Replace #undef with comments. This is necessary, for example,
18972 # in the case of _POSIX_SOURCE, which is predefined and required
18973 # on some systems where configure will not decide to define it.
18974 if (defundef == "undef") {
18975 print "/*", prefix defundef, macro, "*/"
18976 next
18977 }
18978 }
18979 }
18980 { print }
18981 _ACAWK
18982 _ACEOF
18983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18984 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18985 fi # test -n "$CONFIG_HEADERS"
18986
18987
18988 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18989 shift
18990 for ac_tag
18991 do
18992 case $ac_tag in
18993 :[FHLC]) ac_mode=$ac_tag; continue;;
18994 esac
18995 case $ac_mode$ac_tag in
18996 :[FHL]*:*);;
18997 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18998 :[FH]-) ac_tag=-:-;;
18999 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19000 esac
19001 ac_save_IFS=$IFS
19002 IFS=:
19003 set x $ac_tag
19004 IFS=$ac_save_IFS
19005 shift
19006 ac_file=$1
19007 shift
19008
19009 case $ac_mode in
19010 :L) ac_source=$1;;
19011 :[FH])
19012 ac_file_inputs=
19013 for ac_f
19014 do
19015 case $ac_f in
19016 -) ac_f="$ac_tmp/stdin";;
19017 *) # Look for the file first in the build tree, then in the source tree
19018 # (if the path is not absolute). The absolute path cannot be DOS-style,
19019 # because $ac_f cannot contain `:'.
19020 test -f "$ac_f" ||
19021 case $ac_f in
19022 [\\/$]*) false;;
19023 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19024 esac ||
19025 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19026 esac
19027 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19028 as_fn_append ac_file_inputs " '$ac_f'"
19029 done
19030
19031 # Let's still pretend it is `configure' which instantiates (i.e., don't
19032 # use $as_me), people would be surprised to read:
19033 # /* config.h. Generated by config.status. */
19034 configure_input='Generated from '`
19035 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19036 `' by configure.'
19037 if test x"$ac_file" != x-; then
19038 configure_input="$ac_file. $configure_input"
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19040 $as_echo "$as_me: creating $ac_file" >&6;}
19041 fi
19042 # Neutralize special characters interpreted by sed in replacement strings.
19043 case $configure_input in #(
19044 *\&* | *\|* | *\\* )
19045 ac_sed_conf_input=`$as_echo "$configure_input" |
19046 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19047 *) ac_sed_conf_input=$configure_input;;
19048 esac
19049
19050 case $ac_tag in
19051 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19052 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19053 esac
19054 ;;
19055 esac
19056
19057 ac_dir=`$as_dirname -- "$ac_file" ||
19058 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19059 X"$ac_file" : 'X\(//\)[^/]' \| \
19060 X"$ac_file" : 'X\(//\)$' \| \
19061 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19062 $as_echo X"$ac_file" |
19063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19064 s//\1/
19065 q
19066 }
19067 /^X\(\/\/\)[^/].*/{
19068 s//\1/
19069 q
19070 }
19071 /^X\(\/\/\)$/{
19072 s//\1/
19073 q
19074 }
19075 /^X\(\/\).*/{
19076 s//\1/
19077 q
19078 }
19079 s/.*/./; q'`
19080 as_dir="$ac_dir"; as_fn_mkdir_p
19081 ac_builddir=.
19082
19083 case "$ac_dir" in
19084 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19085 *)
19086 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19087 # A ".." for each directory in $ac_dir_suffix.
19088 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19089 case $ac_top_builddir_sub in
19090 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19091 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19092 esac ;;
19093 esac
19094 ac_abs_top_builddir=$ac_pwd
19095 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19096 # for backward compatibility:
19097 ac_top_builddir=$ac_top_build_prefix
19098
19099 case $srcdir in
19100 .) # We are building in place.
19101 ac_srcdir=.
19102 ac_top_srcdir=$ac_top_builddir_sub
19103 ac_abs_top_srcdir=$ac_pwd ;;
19104 [\\/]* | ?:[\\/]* ) # Absolute name.
19105 ac_srcdir=$srcdir$ac_dir_suffix;
19106 ac_top_srcdir=$srcdir
19107 ac_abs_top_srcdir=$srcdir ;;
19108 *) # Relative name.
19109 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19110 ac_top_srcdir=$ac_top_build_prefix$srcdir
19111 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19112 esac
19113 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19114
19115
19116 case $ac_mode in
19117 :F)
19118 #
19119 # CONFIG_FILE
19120 #
19121
19122 case $INSTALL in
19123 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19124 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19125 esac
19126 ac_MKDIR_P=$MKDIR_P
19127 case $MKDIR_P in
19128 [\\/$]* | ?:[\\/]* ) ;;
19129 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19130 esac
19131 _ACEOF
19132
19133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19134 # If the template does not know about datarootdir, expand it.
19135 # FIXME: This hack should be removed a few years after 2.60.
19136 ac_datarootdir_hack=; ac_datarootdir_seen=
19137 ac_sed_dataroot='
19138 /datarootdir/ {
19139 p
19140 q
19141 }
19142 /@datadir@/p
19143 /@docdir@/p
19144 /@infodir@/p
19145 /@localedir@/p
19146 /@mandir@/p'
19147 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19148 *datarootdir*) ac_datarootdir_seen=yes;;
19149 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19151 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19152 _ACEOF
19153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19154 ac_datarootdir_hack='
19155 s&@datadir@&$datadir&g
19156 s&@docdir@&$docdir&g
19157 s&@infodir@&$infodir&g
19158 s&@localedir@&$localedir&g
19159 s&@mandir@&$mandir&g
19160 s&\\\${datarootdir}&$datarootdir&g' ;;
19161 esac
19162 _ACEOF
19163
19164 # Neutralize VPATH when `$srcdir' = `.'.
19165 # Shell code in configure.ac might set extrasub.
19166 # FIXME: do we really want to maintain this feature?
19167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19168 ac_sed_extra="$ac_vpsub
19169 $extrasub
19170 _ACEOF
19171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19172 :t
19173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19174 s|@configure_input@|$ac_sed_conf_input|;t t
19175 s&@top_builddir@&$ac_top_builddir_sub&;t t
19176 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19177 s&@srcdir@&$ac_srcdir&;t t
19178 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19179 s&@top_srcdir@&$ac_top_srcdir&;t t
19180 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19181 s&@builddir@&$ac_builddir&;t t
19182 s&@abs_builddir@&$ac_abs_builddir&;t t
19183 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19184 s&@INSTALL@&$ac_INSTALL&;t t
19185 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19186 $ac_datarootdir_hack
19187 "
19188 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19189 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19190
19191 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19192 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19193 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19194 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19196 which seems to be undefined. Please make sure it is defined" >&5
19197 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19198 which seems to be undefined. Please make sure it is defined" >&2;}
19199
19200 rm -f "$ac_tmp/stdin"
19201 case $ac_file in
19202 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19203 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19204 esac \
19205 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19206 ;;
19207 :H)
19208 #
19209 # CONFIG_HEADER
19210 #
19211 if test x"$ac_file" != x-; then
19212 {
19213 $as_echo "/* $configure_input */" \
19214 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19215 } >"$ac_tmp/config.h" \
19216 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19217 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19219 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19220 else
19221 rm -f "$ac_file"
19222 mv "$ac_tmp/config.h" "$ac_file" \
19223 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19224 fi
19225 else
19226 $as_echo "/* $configure_input */" \
19227 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19228 || as_fn_error $? "could not create -" "$LINENO" 5
19229 fi
19230 # Compute "$ac_file"'s index in $config_headers.
19231 _am_arg="$ac_file"
19232 _am_stamp_count=1
19233 for _am_header in $config_headers :; do
19234 case $_am_header in
19235 $_am_arg | $_am_arg:* )
19236 break ;;
19237 * )
19238 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19239 esac
19240 done
19241 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19242 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19243 X"$_am_arg" : 'X\(//\)[^/]' \| \
19244 X"$_am_arg" : 'X\(//\)$' \| \
19245 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19246 $as_echo X"$_am_arg" |
19247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19248 s//\1/
19249 q
19250 }
19251 /^X\(\/\/\)[^/].*/{
19252 s//\1/
19253 q
19254 }
19255 /^X\(\/\/\)$/{
19256 s//\1/
19257 q
19258 }
19259 /^X\(\/\).*/{
19260 s//\1/
19261 q
19262 }
19263 s/.*/./; q'`/stamp-h$_am_stamp_count
19264 ;;
19265
19266 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19267 $as_echo "$as_me: executing $ac_file commands" >&6;}
19268 ;;
19269 esac
19270
19271
19272 case $ac_file$ac_mode in
19273 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19274 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19275 # are listed without --file. Let's play safe and only enable the eval
19276 # if we detect the quoting.
19277 case $CONFIG_FILES in
19278 *\'*) eval set x "$CONFIG_FILES" ;;
19279 *) set x $CONFIG_FILES ;;
19280 esac
19281 shift
19282 for mf
19283 do
19284 # Strip MF so we end up with the name of the file.
19285 mf=`echo "$mf" | sed -e 's/:.*$//'`
19286 # Check whether this is an Automake generated Makefile or not.
19287 # We used to match only the files named `Makefile.in', but
19288 # some people rename them; so instead we look at the file content.
19289 # Grep'ing the first line is not enough: some people post-process
19290 # each Makefile.in and add a new line on top of each file to say so.
19291 # Grep'ing the whole file is not good either: AIX grep has a line
19292 # limit of 2048, but all sed's we know have understand at least 4000.
19293 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19294 dirpart=`$as_dirname -- "$mf" ||
19295 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19296 X"$mf" : 'X\(//\)[^/]' \| \
19297 X"$mf" : 'X\(//\)$' \| \
19298 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19299 $as_echo X"$mf" |
19300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19301 s//\1/
19302 q
19303 }
19304 /^X\(\/\/\)[^/].*/{
19305 s//\1/
19306 q
19307 }
19308 /^X\(\/\/\)$/{
19309 s//\1/
19310 q
19311 }
19312 /^X\(\/\).*/{
19313 s//\1/
19314 q
19315 }
19316 s/.*/./; q'`
19317 else
19318 continue
19319 fi
19320 # Extract the definition of DEPDIR, am__include, and am__quote
19321 # from the Makefile without running `make'.
19322 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19323 test -z "$DEPDIR" && continue
19324 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19325 test -z "am__include" && continue
19326 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19327 # When using ansi2knr, U may be empty or an underscore; expand it
19328 U=`sed -n 's/^U = //p' < "$mf"`
19329 # Find all dependency output files, they are included files with
19330 # $(DEPDIR) in their names. We invoke sed twice because it is the
19331 # simplest approach to changing $(DEPDIR) to its actual value in the
19332 # expansion.
19333 for file in `sed -n "
19334 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19335 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19336 # Make sure the directory exists.
19337 test -f "$dirpart/$file" && continue
19338 fdir=`$as_dirname -- "$file" ||
19339 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19340 X"$file" : 'X\(//\)[^/]' \| \
19341 X"$file" : 'X\(//\)$' \| \
19342 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19343 $as_echo X"$file" |
19344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19345 s//\1/
19346 q
19347 }
19348 /^X\(\/\/\)[^/].*/{
19349 s//\1/
19350 q
19351 }
19352 /^X\(\/\/\)$/{
19353 s//\1/
19354 q
19355 }
19356 /^X\(\/\).*/{
19357 s//\1/
19358 q
19359 }
19360 s/.*/./; q'`
19361 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19362 # echo "creating $dirpart/$file"
19363 echo '# dummy' > "$dirpart/$file"
19364 done
19365 done
19366 }
19367 ;;
19368 "libtool":C)
19369
19370 # See if we are running on zsh, and set the options which allow our
19371 # commands through without removal of \ escapes.
19372 if test -n "${ZSH_VERSION+set}" ; then
19373 setopt NO_GLOB_SUBST
19374 fi
19375
19376 cfgfile="${ofile}T"
19377 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19378 $RM "$cfgfile"
19379
19380 cat <<_LT_EOF >> "$cfgfile"
19381 #! $SHELL
19382
19383 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19384 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19385 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19386 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19387 #
19388 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19389 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19390 # Foundation, Inc.
19391 # Written by Gordon Matzigkeit, 1996
19392 #
19393 # This file is part of GNU Libtool.
19394 #
19395 # GNU Libtool is free software; you can redistribute it and/or
19396 # modify it under the terms of the GNU General Public License as
19397 # published by the Free Software Foundation; either version 2 of
19398 # the License, or (at your option) any later version.
19399 #
19400 # As a special exception to the GNU General Public License,
19401 # if you distribute this file as part of a program or library that
19402 # is built using GNU Libtool, you may include this file under the
19403 # same distribution terms that you use for the rest of that program.
19404 #
19405 # GNU Libtool is distributed in the hope that it will be useful,
19406 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19407 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19408 # GNU General Public License for more details.
19409 #
19410 # You should have received a copy of the GNU General Public License
19411 # along with GNU Libtool; see the file COPYING. If not, a copy
19412 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19413 # obtained by writing to the Free Software Foundation, Inc.,
19414 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19415
19416
19417 # The names of the tagged configurations supported by this script.
19418 available_tags=""
19419
19420 # ### BEGIN LIBTOOL CONFIG
19421
19422 # Which release of libtool.m4 was used?
19423 macro_version=$macro_version
19424 macro_revision=$macro_revision
19425
19426 # Whether or not to build shared libraries.
19427 build_libtool_libs=$enable_shared
19428
19429 # Whether or not to build static libraries.
19430 build_old_libs=$enable_static
19431
19432 # What type of objects to build.
19433 pic_mode=$pic_mode
19434
19435 # Whether or not to optimize for fast installation.
19436 fast_install=$enable_fast_install
19437
19438 # Shell to use when invoking shell scripts.
19439 SHELL=$lt_SHELL
19440
19441 # An echo program that protects backslashes.
19442 ECHO=$lt_ECHO
19443
19444 # The PATH separator for the build system.
19445 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19446
19447 # The host system.
19448 host_alias=$host_alias
19449 host=$host
19450 host_os=$host_os
19451
19452 # The build system.
19453 build_alias=$build_alias
19454 build=$build
19455 build_os=$build_os
19456
19457 # A sed program that does not truncate output.
19458 SED=$lt_SED
19459
19460 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19461 Xsed="\$SED -e 1s/^X//"
19462
19463 # A grep program that handles long lines.
19464 GREP=$lt_GREP
19465
19466 # An ERE matcher.
19467 EGREP=$lt_EGREP
19468
19469 # A literal string matcher.
19470 FGREP=$lt_FGREP
19471
19472 # A BSD- or MS-compatible name lister.
19473 NM=$lt_NM
19474
19475 # Whether we need soft or hard links.
19476 LN_S=$lt_LN_S
19477
19478 # What is the maximum length of a command?
19479 max_cmd_len=$max_cmd_len
19480
19481 # Object file suffix (normally "o").
19482 objext=$ac_objext
19483
19484 # Executable file suffix (normally "").
19485 exeext=$exeext
19486
19487 # whether the shell understands "unset".
19488 lt_unset=$lt_unset
19489
19490 # turn spaces into newlines.
19491 SP2NL=$lt_lt_SP2NL
19492
19493 # turn newlines into spaces.
19494 NL2SP=$lt_lt_NL2SP
19495
19496 # convert \$build file names to \$host format.
19497 to_host_file_cmd=$lt_cv_to_host_file_cmd
19498
19499 # convert \$build files to toolchain format.
19500 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19501
19502 # An object symbol dumper.
19503 OBJDUMP=$lt_OBJDUMP
19504
19505 # Method to check whether dependent libraries are shared objects.
19506 deplibs_check_method=$lt_deplibs_check_method
19507
19508 # Command to use when deplibs_check_method = "file_magic".
19509 file_magic_cmd=$lt_file_magic_cmd
19510
19511 # How to find potential files when deplibs_check_method = "file_magic".
19512 file_magic_glob=$lt_file_magic_glob
19513
19514 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19515 want_nocaseglob=$lt_want_nocaseglob
19516
19517 # DLL creation program.
19518 DLLTOOL=$lt_DLLTOOL
19519
19520 # Command to associate shared and link libraries.
19521 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19522
19523 # The archiver.
19524 AR=$lt_AR
19525
19526 # Flags to create an archive.
19527 AR_FLAGS=$lt_AR_FLAGS
19528
19529 # How to feed a file listing to the archiver.
19530 archiver_list_spec=$lt_archiver_list_spec
19531
19532 # A symbol stripping program.
19533 STRIP=$lt_STRIP
19534
19535 # Commands used to install an old-style archive.
19536 RANLIB=$lt_RANLIB
19537 old_postinstall_cmds=$lt_old_postinstall_cmds
19538 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19539
19540 # Whether to use a lock for old archive extraction.
19541 lock_old_archive_extraction=$lock_old_archive_extraction
19542
19543 # A C compiler.
19544 LTCC=$lt_CC
19545
19546 # LTCC compiler flags.
19547 LTCFLAGS=$lt_CFLAGS
19548
19549 # Take the output of nm and produce a listing of raw symbols and C names.
19550 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19551
19552 # Transform the output of nm in a proper C declaration.
19553 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19554
19555 # Transform the output of nm in a C name address pair.
19556 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19557
19558 # Transform the output of nm in a C name address pair when lib prefix is needed.
19559 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19560
19561 # Specify filename containing input files for \$NM.
19562 nm_file_list_spec=$lt_nm_file_list_spec
19563
19564 # The root where to search for dependent libraries,and in which our libraries should be installed.
19565 lt_sysroot=$lt_sysroot
19566
19567 # The name of the directory that contains temporary libtool files.
19568 objdir=$objdir
19569
19570 # Used to examine libraries when file_magic_cmd begins with "file".
19571 MAGIC_CMD=$MAGIC_CMD
19572
19573 # Must we lock files when doing compilation?
19574 need_locks=$lt_need_locks
19575
19576 # Manifest tool.
19577 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19578
19579 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19580 DSYMUTIL=$lt_DSYMUTIL
19581
19582 # Tool to change global to local symbols on Mac OS X.
19583 NMEDIT=$lt_NMEDIT
19584
19585 # Tool to manipulate fat objects and archives on Mac OS X.
19586 LIPO=$lt_LIPO
19587
19588 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19589 OTOOL=$lt_OTOOL
19590
19591 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19592 OTOOL64=$lt_OTOOL64
19593
19594 # Old archive suffix (normally "a").
19595 libext=$libext
19596
19597 # Shared library suffix (normally ".so").
19598 shrext_cmds=$lt_shrext_cmds
19599
19600 # The commands to extract the exported symbol list from a shared archive.
19601 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19602
19603 # Variables whose values should be saved in libtool wrapper scripts and
19604 # restored at link time.
19605 variables_saved_for_relink=$lt_variables_saved_for_relink
19606
19607 # Do we need the "lib" prefix for modules?
19608 need_lib_prefix=$need_lib_prefix
19609
19610 # Do we need a version for libraries?
19611 need_version=$need_version
19612
19613 # Library versioning type.
19614 version_type=$version_type
19615
19616 # Shared library runtime path variable.
19617 runpath_var=$runpath_var
19618
19619 # Shared library path variable.
19620 shlibpath_var=$shlibpath_var
19621
19622 # Is shlibpath searched before the hard-coded library search path?
19623 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19624
19625 # Format of library name prefix.
19626 libname_spec=$lt_libname_spec
19627
19628 # List of archive names. First name is the real one, the rest are links.
19629 # The last name is the one that the linker finds with -lNAME
19630 library_names_spec=$lt_library_names_spec
19631
19632 # The coded name of the library, if different from the real name.
19633 soname_spec=$lt_soname_spec
19634
19635 # Permission mode override for installation of shared libraries.
19636 install_override_mode=$lt_install_override_mode
19637
19638 # Command to use after installation of a shared archive.
19639 postinstall_cmds=$lt_postinstall_cmds
19640
19641 # Command to use after uninstallation of a shared archive.
19642 postuninstall_cmds=$lt_postuninstall_cmds
19643
19644 # Commands used to finish a libtool library installation in a directory.
19645 finish_cmds=$lt_finish_cmds
19646
19647 # As "finish_cmds", except a single script fragment to be evaled but
19648 # not shown.
19649 finish_eval=$lt_finish_eval
19650
19651 # Whether we should hardcode library paths into libraries.
19652 hardcode_into_libs=$hardcode_into_libs
19653
19654 # Compile-time system search path for libraries.
19655 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19656
19657 # Run-time system search path for libraries.
19658 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19659
19660 # Whether dlopen is supported.
19661 dlopen_support=$enable_dlopen
19662
19663 # Whether dlopen of programs is supported.
19664 dlopen_self=$enable_dlopen_self
19665
19666 # Whether dlopen of statically linked programs is supported.
19667 dlopen_self_static=$enable_dlopen_self_static
19668
19669 # Commands to strip libraries.
19670 old_striplib=$lt_old_striplib
19671 striplib=$lt_striplib
19672
19673
19674 # The linker used to build libraries.
19675 LD=$lt_LD
19676
19677 # How to create reloadable object files.
19678 reload_flag=$lt_reload_flag
19679 reload_cmds=$lt_reload_cmds
19680
19681 # Commands used to build an old-style archive.
19682 old_archive_cmds=$lt_old_archive_cmds
19683
19684 # A language specific compiler.
19685 CC=$lt_compiler
19686
19687 # Is the compiler the GNU compiler?
19688 with_gcc=$GCC
19689
19690 # Compiler flag to turn off builtin functions.
19691 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19692
19693 # Additional compiler flags for building library objects.
19694 pic_flag=$lt_lt_prog_compiler_pic
19695
19696 # How to pass a linker flag through the compiler.
19697 wl=$lt_lt_prog_compiler_wl
19698
19699 # Compiler flag to prevent dynamic linking.
19700 link_static_flag=$lt_lt_prog_compiler_static
19701
19702 # Does compiler simultaneously support -c and -o options?
19703 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19704
19705 # Whether or not to add -lc for building shared libraries.
19706 build_libtool_need_lc=$archive_cmds_need_lc
19707
19708 # Whether or not to disallow shared libs when runtime libs are static.
19709 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19710
19711 # Compiler flag to allow reflexive dlopens.
19712 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19713
19714 # Compiler flag to generate shared objects directly from archives.
19715 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19716
19717 # Whether the compiler copes with passing no objects directly.
19718 compiler_needs_object=$lt_compiler_needs_object
19719
19720 # Create an old-style archive from a shared archive.
19721 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19722
19723 # Create a temporary old-style archive to link instead of a shared archive.
19724 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19725
19726 # Commands used to build a shared archive.
19727 archive_cmds=$lt_archive_cmds
19728 archive_expsym_cmds=$lt_archive_expsym_cmds
19729
19730 # Commands used to build a loadable module if different from building
19731 # a shared archive.
19732 module_cmds=$lt_module_cmds
19733 module_expsym_cmds=$lt_module_expsym_cmds
19734
19735 # Whether we are building with GNU ld or not.
19736 with_gnu_ld=$lt_with_gnu_ld
19737
19738 # Flag that allows shared libraries with undefined symbols to be built.
19739 allow_undefined_flag=$lt_allow_undefined_flag
19740
19741 # Flag that enforces no undefined symbols.
19742 no_undefined_flag=$lt_no_undefined_flag
19743
19744 # Flag to hardcode \$libdir into a binary during linking.
19745 # This must work even if \$libdir does not exist
19746 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19747
19748 # Whether we need a single "-rpath" flag with a separated argument.
19749 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19750
19751 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19752 # DIR into the resulting binary.
19753 hardcode_direct=$hardcode_direct
19754
19755 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19756 # DIR into the resulting binary and the resulting library dependency is
19757 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19758 # library is relocated.
19759 hardcode_direct_absolute=$hardcode_direct_absolute
19760
19761 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19762 # into the resulting binary.
19763 hardcode_minus_L=$hardcode_minus_L
19764
19765 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19766 # into the resulting binary.
19767 hardcode_shlibpath_var=$hardcode_shlibpath_var
19768
19769 # Set to "yes" if building a shared library automatically hardcodes DIR
19770 # into the library and all subsequent libraries and executables linked
19771 # against it.
19772 hardcode_automatic=$hardcode_automatic
19773
19774 # Set to yes if linker adds runtime paths of dependent libraries
19775 # to runtime path list.
19776 inherit_rpath=$inherit_rpath
19777
19778 # Whether libtool must link a program against all its dependency libraries.
19779 link_all_deplibs=$link_all_deplibs
19780
19781 # Set to "yes" if exported symbols are required.
19782 always_export_symbols=$always_export_symbols
19783
19784 # The commands to list exported symbols.
19785 export_symbols_cmds=$lt_export_symbols_cmds
19786
19787 # Symbols that should not be listed in the preloaded symbols.
19788 exclude_expsyms=$lt_exclude_expsyms
19789
19790 # Symbols that must always be exported.
19791 include_expsyms=$lt_include_expsyms
19792
19793 # Commands necessary for linking programs (against libraries) with templates.
19794 prelink_cmds=$lt_prelink_cmds
19795
19796 # Commands necessary for finishing linking programs.
19797 postlink_cmds=$lt_postlink_cmds
19798
19799 # Specify filename containing input files.
19800 file_list_spec=$lt_file_list_spec
19801
19802 # How to hardcode a shared library path into an executable.
19803 hardcode_action=$hardcode_action
19804
19805 # ### END LIBTOOL CONFIG
19806
19807 _LT_EOF
19808
19809 case $host_os in
19810 aix3*)
19811 cat <<\_LT_EOF >> "$cfgfile"
19812 # AIX sometimes has problems with the GCC collect2 program. For some
19813 # reason, if we set the COLLECT_NAMES environment variable, the problems
19814 # vanish in a puff of smoke.
19815 if test "X${COLLECT_NAMES+set}" != Xset; then
19816 COLLECT_NAMES=
19817 export COLLECT_NAMES
19818 fi
19819 _LT_EOF
19820 ;;
19821 esac
19822
19823
19824 ltmain="$ac_aux_dir/ltmain.sh"
19825
19826
19827 # We use sed instead of cat because bash on DJGPP gets confused if
19828 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19829 # text mode, it properly converts lines to CR/LF. This bash problem
19830 # is reportedly fixed, but why not run on old versions too?
19831 sed '$q' "$ltmain" >> "$cfgfile" \
19832 || (rm -f "$cfgfile"; exit 1)
19833
19834 if test x"$xsi_shell" = xyes; then
19835 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19836 func_dirname ()\
19837 {\
19838 \ case ${1} in\
19839 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19840 \ * ) func_dirname_result="${3}" ;;\
19841 \ esac\
19842 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19843 && mv -f "$cfgfile.tmp" "$cfgfile" \
19844 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19845 test 0 -eq $? || _lt_function_replace_fail=:
19846
19847
19848 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19849 func_basename ()\
19850 {\
19851 \ func_basename_result="${1##*/}"\
19852 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19853 && mv -f "$cfgfile.tmp" "$cfgfile" \
19854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19855 test 0 -eq $? || _lt_function_replace_fail=:
19856
19857
19858 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19859 func_dirname_and_basename ()\
19860 {\
19861 \ case ${1} in\
19862 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19863 \ * ) func_dirname_result="${3}" ;;\
19864 \ esac\
19865 \ func_basename_result="${1##*/}"\
19866 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19867 && mv -f "$cfgfile.tmp" "$cfgfile" \
19868 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19869 test 0 -eq $? || _lt_function_replace_fail=:
19870
19871
19872 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19873 func_stripname ()\
19874 {\
19875 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19876 \ # positional parameters, so assign one to ordinary parameter first.\
19877 \ func_stripname_result=${3}\
19878 \ func_stripname_result=${func_stripname_result#"${1}"}\
19879 \ func_stripname_result=${func_stripname_result%"${2}"}\
19880 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19881 && mv -f "$cfgfile.tmp" "$cfgfile" \
19882 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19883 test 0 -eq $? || _lt_function_replace_fail=:
19884
19885
19886 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19887 func_split_long_opt ()\
19888 {\
19889 \ func_split_long_opt_name=${1%%=*}\
19890 \ func_split_long_opt_arg=${1#*=}\
19891 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19892 && mv -f "$cfgfile.tmp" "$cfgfile" \
19893 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19894 test 0 -eq $? || _lt_function_replace_fail=:
19895
19896
19897 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19898 func_split_short_opt ()\
19899 {\
19900 \ func_split_short_opt_arg=${1#??}\
19901 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19902 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19903 && mv -f "$cfgfile.tmp" "$cfgfile" \
19904 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19905 test 0 -eq $? || _lt_function_replace_fail=:
19906
19907
19908 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19909 func_lo2o ()\
19910 {\
19911 \ case ${1} in\
19912 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19913 \ *) func_lo2o_result=${1} ;;\
19914 \ esac\
19915 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19916 && mv -f "$cfgfile.tmp" "$cfgfile" \
19917 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19918 test 0 -eq $? || _lt_function_replace_fail=:
19919
19920
19921 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19922 func_xform ()\
19923 {\
19924 func_xform_result=${1%.*}.lo\
19925 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19926 && mv -f "$cfgfile.tmp" "$cfgfile" \
19927 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19928 test 0 -eq $? || _lt_function_replace_fail=:
19929
19930
19931 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19932 func_arith ()\
19933 {\
19934 func_arith_result=$(( $* ))\
19935 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19936 && mv -f "$cfgfile.tmp" "$cfgfile" \
19937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19938 test 0 -eq $? || _lt_function_replace_fail=:
19939
19940
19941 sed -e '/^func_len ()$/,/^} # func_len /c\
19942 func_len ()\
19943 {\
19944 func_len_result=${#1}\
19945 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19946 && mv -f "$cfgfile.tmp" "$cfgfile" \
19947 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19948 test 0 -eq $? || _lt_function_replace_fail=:
19949
19950 fi
19951
19952 if test x"$lt_shell_append" = xyes; then
19953 sed -e '/^func_append ()$/,/^} # func_append /c\
19954 func_append ()\
19955 {\
19956 eval "${1}+=\\${2}"\
19957 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19958 && mv -f "$cfgfile.tmp" "$cfgfile" \
19959 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19960 test 0 -eq $? || _lt_function_replace_fail=:
19961
19962
19963 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19964 func_append_quoted ()\
19965 {\
19966 \ func_quote_for_eval "${2}"\
19967 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19968 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19969 && mv -f "$cfgfile.tmp" "$cfgfile" \
19970 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19971 test 0 -eq $? || _lt_function_replace_fail=:
19972
19973
19974 # Save a `func_append' function call where possible by direct use of '+='
19975 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19976 && mv -f "$cfgfile.tmp" "$cfgfile" \
19977 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19978 test 0 -eq $? || _lt_function_replace_fail=:
19979 else
19980 # Save a `func_append' function call even when '+=' is not available
19981 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19982 && mv -f "$cfgfile.tmp" "$cfgfile" \
19983 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19984 test 0 -eq $? || _lt_function_replace_fail=:
19985 fi
19986
19987 if test x"$_lt_function_replace_fail" = x":"; then
19988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19989 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19990 fi
19991
19992
19993 mv -f "$cfgfile" "$ofile" ||
19994 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19995 chmod +x "$ofile"
19996
19997 ;;
19998 "redland-config":F) chmod +x redland-config ;;
19999 "redland-src-config":F) chmod +x redland-src-config ;;
20000
20001 esac
20002 done # for ac_tag
20003
20004
20005 as_fn_exit 0
20006 _ACEOF
20007 ac_clean_files=$ac_clean_files_save
20008
20009 test $ac_write_fail = 0 ||
20010 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20011
20012
20013 # configure is writing to config.log, and then calls config.status.
20014 # config.status does its own redirection, appending to config.log.
20015 # Unfortunately, on DOS this fails, as config.log is still kept open
20016 # by configure, so config.status won't be able to write to it; its
20017 # output is simply discarded. So we exec the FD to /dev/null,
20018 # effectively closing config.log, so it can be properly (re)opened and
20019 # appended to by config.status. When coming back to configure, we
20020 # need to make the FD available again.
20021 if test "$no_create" != yes; then
20022 ac_cs_success=:
20023 ac_config_status_args=
20024 test "$silent" = yes &&
20025 ac_config_status_args="$ac_config_status_args --quiet"
20026 exec 5>/dev/null
20027 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20028 exec 5>>config.log
20029 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20030 # would make configure fail if this is the last instruction.
20031 $ac_cs_success || as_fn_exit 1
20032 fi
20033
20034 #
20035 # CONFIG_SUBDIRS section.
20036 #
20037 if test "$no_recursion" != yes; then
20038
20039 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
20040 # so they do not pile up.
20041 ac_sub_configure_args=
20042 ac_prev=
20043 eval "set x $ac_configure_args"
20044 shift
20045 for ac_arg
20046 do
20047 if test -n "$ac_prev"; then
20048 ac_prev=
20049 continue
20050 fi
20051 case $ac_arg in
20052 -cache-file | --cache-file | --cache-fil | --cache-fi \
20053 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20054 ac_prev=cache_file ;;
20055 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20056 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20057 | --c=*)
20058 ;;
20059 --config-cache | -C)
20060 ;;
20061 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20062 ac_prev=srcdir ;;
20063 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20064 ;;
20065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20066 ac_prev=prefix ;;
20067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20068 ;;
20069 --disable-option-checking)
20070 ;;
20071 *)
20072 case $ac_arg in
20073 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20074 esac
20075 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
20076 esac
20077 done
20078
20079 # Always prepend --prefix to ensure using the same prefix
20080 # in subdir configurations.
20081 ac_arg="--prefix=$prefix"
20082 case $ac_arg in
20083 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20084 esac
20085 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
20086
20087 # Pass --silent
20088 if test "$silent" = yes; then
20089 ac_sub_configure_args="--silent $ac_sub_configure_args"
20090 fi
20091
20092 # Always prepend --disable-option-checking to silence warnings, since
20093 # different subdirs can have different --enable and --with options.
20094 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
20095
20096 ac_popdir=`pwd`
20097 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20098
20099 # Do not complain, so a configure script can configure whichever
20100 # parts of a large source tree are present.
20101 test -d "$srcdir/$ac_dir" || continue
20102
20103 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20104 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
20105 $as_echo "$ac_msg" >&6
20106 as_dir="$ac_dir"; as_fn_mkdir_p
20107 ac_builddir=.
20108
20109 case "$ac_dir" in
20110 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20111 *)
20112 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20113 # A ".." for each directory in $ac_dir_suffix.
20114 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20115 case $ac_top_builddir_sub in
20116 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20117 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20118 esac ;;
20119 esac
20120 ac_abs_top_builddir=$ac_pwd
20121 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20122 # for backward compatibility:
20123 ac_top_builddir=$ac_top_build_prefix
20124
20125 case $srcdir in
20126 .) # We are building in place.
20127 ac_srcdir=.
20128 ac_top_srcdir=$ac_top_builddir_sub
20129 ac_abs_top_srcdir=$ac_pwd ;;
20130 [\\/]* | ?:[\\/]* ) # Absolute name.
20131 ac_srcdir=$srcdir$ac_dir_suffix;
20132 ac_top_srcdir=$srcdir
20133 ac_abs_top_srcdir=$srcdir ;;
20134 *) # Relative name.
20135 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20136 ac_top_srcdir=$ac_top_build_prefix$srcdir
20137 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20138 esac
20139 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20140
20141
20142 cd "$ac_dir"
20143
20144 # Check for guested configure; otherwise get Cygnus style configure.
20145 if test -f "$ac_srcdir/configure.gnu"; then
20146 ac_sub_configure=$ac_srcdir/configure.gnu
20147 elif test -f "$ac_srcdir/configure"; then
20148 ac_sub_configure=$ac_srcdir/configure
20149 elif test -f "$ac_srcdir/configure.in"; then
20150 # This should be Cygnus configure.
20151 ac_sub_configure=$ac_aux_dir/configure
20152 else
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
20154 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20155 ac_sub_configure=
20156 fi
20157
20158 # The recursion is here.
20159 if test -n "$ac_sub_configure"; then
20160 # Make the cache file name correct relative to the subdirectory.
20161 case $cache_file in
20162 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20163 *) # Relative name.
20164 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20165 esac
20166
20167 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20168 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20169 # The eval makes quoting arguments work.
20170 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20171 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20172 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
20173 fi
20174
20175 cd "$ac_popdir"
20176 done
20177 fi
20178 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20180 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20181 fi
20182
20183
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
20185 Redland build summary:
20186 " >&5
20187 $as_echo "
20188 Redland build summary:
20189 " >&6; }
20190
20191 if test "$modular" = yes; then
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using modular storage backends in $REDLAND_MODULE_PATH" >&5
20193 $as_echo " Using modular storage backends in $REDLAND_MODULE_PATH" >&6; }
20194 else
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using monolithic storage backends" >&5
20196 $as_echo " Using monolithic storage backends" >&6; }
20197 fi
20198
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
20200 Oracle Berkeley DB (BDB) : $bdb_available
20201 Triple stores available : $storages_available
20202 Triple stores enabled :$storages_enabled
20203 RDF parsers :$rdf_parsers_available
20204 RDF query : $rdf_query
20205 Content digests :$digest_modules_available
20206 " >&5
20207 $as_echo "
20208 Oracle Berkeley DB (BDB) : $bdb_available
20209 Triple stores available : $storages_available
20210 Triple stores enabled :$storages_enabled
20211 RDF parsers :$rdf_parsers_available
20212 RDF query : $rdf_query
20213 Content digests :$digest_modules_available
20214 " >&6; }