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 Language bindings 1.0.17.1.
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 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='Redland librdf Language bindings'
593 PACKAGE_TARNAME='redland-bindings'
594 PACKAGE_VERSION='1.0.17.1'
595 PACKAGE_STRING='Redland librdf Language bindings 1.0.17.1'
596 PACKAGE_BUGREPORT='http://bugs.librdf.org/'
597 PACKAGE_URL=''
598
599 ac_unique_file="perl/example.pl"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 abs_top_builddir
641 abs_top_srcdir
642 STANDARD_CFLAGS
643 ECHO
644 MEM_LIBS
645 MEM
646 RASQAL_LDFLAGS
647 RAPTOR_LDFLAGS
648 LIBRDF_LDFLAGS
649 LIBRDF_CPPFLAGS
650 SD
651 REDLAND_SWIG
652 REDLAND_RUN
653 REDLAND_VERSION
654 REDLAND_CONFIG
655 RUBY_VERSION
656 PHP_VERSION
657 RUBY_ARCH_INSTALLDIR
658 RUBY_INSTALLDIR
659 RUBY_SO_SUFFIX
660 RUBY_INCLUDES
661 RUBY_LDFLAGS
662 RUBY_CFLAGS
663 RUBY_PACKAGE
664 PYTHON_VERSION
665 PYTHON_LIB
666 PYTHON_INCLUDES
667 PYTHON_LIBEXT
668 PYTHON_LDFLAGS
669 PERL_MAKEMAKER_ARGS
670 PERL_VERSION
671 PHP_SWIG
672 PHP_SO_SUFFIX
673 PHP_LDFLAGS
674 PHP_CFLAGS
675 PHP_EXTENSION_DIR
676 PHP_INCLUDES
677 PHP_CONFIG
678 LUA_LDFLAGS
679 LUA_CFLAGS
680 SWIG_PYTHON_ARGS
681 PERLMAN3DIR
682 PERLINSTALLSITEARCH
683 PKG_CONFIG
684 SWIG
685 RUBY
686 PHP
687 PERL
688 PYTHON
689 LUA
690 TAR
691 CPP
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 MANIFEST_TOOL
698 RANLIB
699 ac_ct_AR
700 AR
701 DLLTOOL
702 OBJDUMP
703 NM
704 ac_ct_DUMPBIN
705 DUMPBIN
706 LD
707 FGREP
708 EGREP
709 GREP
710 SED
711 LIBTOOL
712 LN_S
713 am__fastdepCC_FALSE
714 am__fastdepCC_TRUE
715 CCDEPMODE
716 am__nodep
717 AMDEPBACKSLASH
718 AMDEP_FALSE
719 AMDEP_TRUE
720 am__quote
721 am__include
722 DEPDIR
723 OBJEXT
724 EXEEXT
725 ac_ct_CC
726 CPPFLAGS
727 LDFLAGS
728 CFLAGS
729 CC
730 host_os
731 host_vendor
732 host_cpu
733 host
734 build_os
735 build_vendor
736 build_cpu
737 build
738 MAINT
739 MAINTAINER_MODE_FALSE
740 MAINTAINER_MODE_TRUE
741 am__untar
742 am__tar
743 AMTAR
744 am__leading_dot
745 SET_MAKE
746 AWK
747 mkdir_p
748 MKDIR_P
749 INSTALL_STRIP_PROGRAM
750 STRIP
751 install_sh
752 MAKEINFO
753 AUTOHEADER
754 AUTOMAKE
755 AUTOCONF
756 ACLOCAL
757 VERSION
758 PACKAGE
759 CYGPATH_W
760 am__isrc
761 INSTALL_DATA
762 INSTALL_SCRIPT
763 INSTALL_PROGRAM
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files=''
803 ac_user_opts='
804 enable_option_checking
805 enable_maintainer_mode
806 enable_dependency_tracking
807 enable_shared
808 enable_static
809 with_pic
810 enable_fast_install
811 with_gnu_ld
812 with_sysroot
813 enable_libtool_lock
814 with_lua
815 with_php_linking
816 with_perl
817 with_perl_makemaker_args
818 with_python
819 with_python_ldflags
820 with_python_libext
821 with_python_get_python_lib_args
822 with_ruby_arch_install_dir_variable
823 with_ruby_arch_install_dir
824 with_ruby_install_dir_variable
825 with_ruby_install_dir
826 with_ruby_linking
827 with_php
828 with_ruby
829 enable_release
830 '
831 ac_precious_vars='build_alias
832 host_alias
833 target_alias
834 CC
835 CFLAGS
836 LDFLAGS
837 LIBS
838 CPPFLAGS
839 CPP
840 PYTHON_LDFLAGS
841 PYTHON_LIBEXT
842 PYTHON_INCLUDES
843 PYTHON_LIB'
844
845
846 # Initialize some variables set by options.
847 ac_init_help=
848 ac_init_version=false
849 ac_unrecognized_opts=
850 ac_unrecognized_sep=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
853 cache_file=/dev/null
854 exec_prefix=NONE
855 no_create=
856 no_recursion=
857 prefix=NONE
858 program_prefix=NONE
859 program_suffix=NONE
860 program_transform_name=s,x,x,
861 silent=
862 site=
863 srcdir=
864 verbose=
865 x_includes=NONE
866 x_libraries=NONE
867
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
885 infodir='${datarootdir}/info'
886 htmldir='${docdir}'
887 dvidir='${docdir}'
888 pdfdir='${docdir}'
889 psdir='${docdir}'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
893
894 ac_prev=
895 ac_dashdash=
896 for ac_option
897 do
898 # If the previous option needs an argument, assign it.
899 if test -n "$ac_prev"; then
900 eval $ac_prev=\$ac_option
901 ac_prev=
902 continue
903 fi
904
905 case $ac_option in
906 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 *=) ac_optarg= ;;
908 *) ac_optarg=yes ;;
909 esac
910
911 # Accept the important Cygnus configure options, so we can diagnose typos.
912
913 case $ac_dashdash$ac_option in
914 --)
915 ac_dashdash=yes ;;
916
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 bindir=$ac_optarg ;;
921
922 -build | --build | --buil | --bui | --bu)
923 ac_prev=build_alias ;;
924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925 build_alias=$ac_optarg ;;
926
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932 cache_file=$ac_optarg ;;
933
934 --config-cache | -C)
935 cache_file=config.cache ;;
936
937 -datadir | --datadir | --datadi | --datad)
938 ac_prev=datadir ;;
939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
940 datadir=$ac_optarg ;;
941
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
948
949 -disable-* | --disable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error $? "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
964
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
969
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
974
975 -enable-* | --enable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error $? "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984 "enable_$ac_useropt"
985 "*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=\$ac_optarg ;;
990
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
999
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1003
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1010
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1015
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1021
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1028
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1033
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1038
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1045
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1050
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1057
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1062
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1066
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1069 no_create=yes ;;
1070
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1074
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1083
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1088
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1095
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1102
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1119
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1124
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1129
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1133
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
1138 sbindir=$ac_optarg ;;
1139
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
1149 sharedstatedir=$ac_optarg ;;
1150
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
1154 site=$ac_optarg ;;
1155
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159 srcdir=$ac_optarg ;;
1160
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166 sysconfdir=$ac_optarg ;;
1167
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1169 ac_prev=target_alias ;;
1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171 target_alias=$ac_optarg ;;
1172
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1175
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
1178
1179 -with-* | --with-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error $? "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=\$ac_optarg ;;
1194
1195 -without-* | --without-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error $? "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1203 *"
1204 "with_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=no ;;
1210
1211 --x)
1212 # Obsolete; use --with-x.
1213 with_x=yes ;;
1214
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220 x_includes=$ac_optarg ;;
1221
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227 x_libraries=$ac_optarg ;;
1228
1229 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information"
1231 ;;
1232
1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1239 esac
1240 eval $ac_envvar=\$ac_optarg
1241 export $ac_envvar ;;
1242
1243 *)
1244 # FIXME: should be removed in autoconf 3.0.
1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1249 ;;
1250
1251 esac
1252 done
1253
1254 if test -n "$ac_prev"; then
1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256 as_fn_error $? "missing argument to $ac_option"
1257 fi
1258
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1261 no) ;;
1262 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264 esac
1265 fi
1266
1267 # Check all directory arguments for consistency.
1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1272 do
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
1281 case $ac_val in
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 esac
1285 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1286 done
1287
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1291 build=$build_alias
1292 host=$host_alias
1293 target=$target_alias
1294
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
1299 elif test "x$build_alias" != "x$host_alias"; then
1300 cross_compiling=yes
1301 fi
1302 fi
1303
1304 ac_tool_prefix=
1305 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306
1307 test "$silent" = yes && exec 6>/dev/null
1308
1309
1310 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1311 ac_ls_di=`ls -di .` &&
1312 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1313 as_fn_error $? "working directory cannot be determined"
1314 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1315 as_fn_error $? "pwd does not report name of working directory"
1316
1317
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320 ac_srcdir_defaulted=yes
1321 # Try the directory containing this script, then the parent directory.
1322 ac_confdir=`$as_dirname -- "$as_myself" ||
1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324 X"$as_myself" : 'X\(//\)[^/]' \| \
1325 X"$as_myself" : 'X\(//\)$' \| \
1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327 $as_echo X"$as_myself" |
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\/\)[^/].*/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)$/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\).*/{
1341 s//\1/
1342 q
1343 }
1344 s/.*/./; q'`
1345 srcdir=$ac_confdir
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 srcdir=..
1348 fi
1349 else
1350 ac_srcdir_defaulted=no
1351 fi
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1355 fi
1356 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1357 ac_abs_confdir=`(
1358 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1359 pwd)`
1360 # When building in place, set srcdir=.
1361 if test "$ac_abs_confdir" = "$ac_pwd"; then
1362 srcdir=.
1363 fi
1364 # Remove unnecessary trailing slashes from srcdir.
1365 # Double slashes in file names in object file debugging info
1366 # mess up M-x gdb in Emacs.
1367 case $srcdir in
1368 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369 esac
1370 for ac_var in $ac_precious_vars; do
1371 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_env_${ac_var}_value=\$${ac_var}
1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375 done
1376
1377 #
1378 # Report the --help message.
1379 #
1380 if test "$ac_init_help" = "long"; then
1381 # Omit some internal or obsolete options to make the list less imposing.
1382 # This message is too long to be a string in the A/UX 3.1 sh.
1383 cat <<_ACEOF
1384 \`configure' configures Redland librdf Language bindings 1.0.17.1 to adapt to many kinds of systems.
1385
1386 Usage: $0 [OPTION]... [VAR=VALUE]...
1387
1388 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389 VAR=VALUE. See below for descriptions of some of the useful variables.
1390
1391 Defaults for the options are specified in brackets.
1392
1393 Configuration:
1394 -h, --help display this help and exit
1395 --help=short display options specific to this package
1396 --help=recursive display the short help of all the included packages
1397 -V, --version display version information and exit
1398 -q, --quiet, --silent do not print \`checking ...' messages
1399 --cache-file=FILE cache test results in FILE [disabled]
1400 -C, --config-cache alias for \`--cache-file=config.cache'
1401 -n, --no-create do not create output files
1402 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403
1404 Installation directories:
1405 --prefix=PREFIX install architecture-independent files in PREFIX
1406 [$ac_default_prefix]
1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1408 [PREFIX]
1409
1410 By default, \`make install' will install all the files in
1411 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1412 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413 for instance \`--prefix=\$HOME'.
1414
1415 For better control, use the options below.
1416
1417 Fine tuning of the installation directories:
1418 --bindir=DIR user executables [EPREFIX/bin]
1419 --sbindir=DIR system admin executables [EPREFIX/sbin]
1420 --libexecdir=DIR program executables [EPREFIX/libexec]
1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root
1433 [DATAROOTDIR/doc/redland-bindings]
1434 --htmldir=DIR html documentation [DOCDIR]
1435 --dvidir=DIR dvi documentation [DOCDIR]
1436 --pdfdir=DIR pdf documentation [DOCDIR]
1437 --psdir=DIR ps documentation [DOCDIR]
1438 _ACEOF
1439
1440 cat <<\_ACEOF
1441
1442 Program names:
1443 --program-prefix=PREFIX prepend PREFIX to installed program names
1444 --program-suffix=SUFFIX append SUFFIX to installed program names
1445 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1446
1447 System types:
1448 --build=BUILD configure for building on BUILD [guessed]
1449 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1450 _ACEOF
1451 fi
1452
1453 if test -n "$ac_init_help"; then
1454 case $ac_init_help in
1455 short | recursive ) echo "Configuration of Redland librdf Language bindings 1.0.17.1:";;
1456 esac
1457 cat <<\_ACEOF
1458
1459 Optional Features:
1460 --disable-option-checking ignore unrecognized --enable/--with options
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --enable-maintainer-mode enable make rules and dependencies not useful
1464 (and sometimes confusing) to the casual installer
1465 --disable-dependency-tracking speeds up one-time build
1466 --enable-dependency-tracking do not reject slow dependency extractors
1467 --enable-shared[=PKGS] build shared libraries [default=yes]
1468 --enable-static[=PKGS] build static libraries [default=yes]
1469 --enable-fast-install[=PKGS]
1470 optimize for fast installation [default=yes]
1471 --disable-libtool-lock avoid locking (might break parallel builds)
1472 --enable-release Turn on optimizations (for maintainer).
1473
1474 Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1478 both]
1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1480 --with-sysroot=DIR Search for dependent libraries within DIR
1481 (or the compiler's sysroot if not specified).
1482 --with-lua(=LUA) Enable the Lua interface
1483 --with-php-linking=TYPE Set PHP module linking type (so, dylib, bundle)
1484 --with-perl(=PERL) Enable the Perl interface
1485 --with-perl-makemaker-options=ARGS Set args for Perl Makefile.PL invocation (default '')
1486 --with-python(=PYTHON) Enable the Python interface
1487 --with-python-ldflags(=FLAGS) Set the Python linker flags
1488 --with-python-libext(=EXT) Python shared library file extension (default .so)
1489 --with-python-get-python-lib-args=ARGS Set args for Python distutils.sysconfig.get_python_lib() function (default '')
1490 --with-ruby-arch-install-dir-variable=NAME Set Ruby arch install directory config variable (default 'archdir')
1491 --with-ruby-arch-install-dir=NAME Set Ruby install directory (default 'auto')
1492 --with-ruby-install-dir-variable=NAME Set Ruby install directory config variable (default 'rubylibdir')
1493 --with-ruby-install-dir=NAME Set Ruby install directory (default 'auto')
1494 --with-ruby-linking=TYPE Set Ruby module linking type (so, dylib, bundle)
1495 --with-php(=PHP) Enable the PHP interface
1496 --with-ruby(=RUBY) Enable the Ruby interface
1497
1498 Some influential environment variables:
1499 CC C compiler command
1500 CFLAGS C compiler flags
1501 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1502 nonstandard directory <lib dir>
1503 LIBS libraries to pass to the linker, e.g. -l<library>
1504 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1505 you have headers in a nonstandard directory <include dir>
1506 CPP C preprocessor
1507 PYTHON_LDFLAGS
1508 Python shared library link lines
1509 PYTHON_LIBEXT
1510 Python shared library file extension
1511 PYTHON_INCLUDES
1512 Install location of python includes
1513 PYTHON_LIB Install location of python libraries
1514
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1517
1518 Report bugs to <http://bugs.librdf.org/>.
1519 _ACEOF
1520 ac_status=$?
1521 fi
1522
1523 if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526 test -d "$ac_dir" ||
1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1528 continue
1529 ac_builddir=.
1530
1531 case "$ac_dir" in
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *)
1534 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540 esac ;;
1541 esac
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1546
1547 case $srcdir in
1548 .) # We are building in place.
1549 ac_srcdir=.
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
1553 ac_srcdir=$srcdir$ac_dir_suffix;
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1556 *) # Relative name.
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 esac
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure" --help=recursive
1571 else
1572 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573 fi || ac_status=$?
1574 cd "$ac_pwd" || { ac_status=$?; break; }
1575 done
1576 fi
1577
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1580 cat <<\_ACEOF
1581 Redland librdf Language bindings configure 1.0.17.1
1582 generated by GNU Autoconf 2.69
1583
1584 Copyright (C) 2012 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1587 _ACEOF
1588 exit
1589 fi
1590
1591 ## ------------------------ ##
1592 ## Autoconf initialization. ##
1593 ## ------------------------ ##
1594
1595 # ac_fn_c_try_compile LINENO
1596 # --------------------------
1597 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_compile ()
1599 {
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext
1602 if { { ac_try="$ac_compile"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_compile") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest.$ac_objext; then :
1621 ac_retval=0
1622 else
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626 ac_retval=1
1627 fi
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1630
1631 } # ac_fn_c_try_compile
1632
1633 # ac_fn_c_try_link LINENO
1634 # -----------------------
1635 # Try to link conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_link ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 rm -f conftest.$ac_objext conftest$ac_exeext
1640 if { { ac_try="$ac_link"
1641 case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_link") 2>conftest.err
1648 ac_status=$?
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1653 fi
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest$ac_exeext && {
1659 test "$cross_compiling" = yes ||
1660 test -x conftest$ac_exeext
1661 }; then :
1662 ac_retval=0
1663 else
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667 ac_retval=1
1668 fi
1669 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1670 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1671 # interfere with the next link command; also delete a directory that is
1672 # left behind by Apple's compiler. We do this before executing the actions.
1673 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
1676
1677 } # ac_fn_c_try_link
1678
1679 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1680 # -------------------------------------------------------
1681 # Tests whether HEADER exists and can be compiled using the include files in
1682 # INCLUDES, setting the cache variable VAR accordingly.
1683 ac_fn_c_check_header_compile ()
1684 {
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if eval \${$3+:} false; then :
1689 $as_echo_n "(cached) " >&6
1690 else
1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h. */
1693 $4
1694 #include <$2>
1695 _ACEOF
1696 if ac_fn_c_try_compile "$LINENO"; then :
1697 eval "$3=yes"
1698 else
1699 eval "$3=no"
1700 fi
1701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1702 fi
1703 eval ac_res=\$$3
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1705 $as_echo "$ac_res" >&6; }
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707
1708 } # ac_fn_c_check_header_compile
1709
1710 # ac_fn_c_try_cpp LINENO
1711 # ----------------------
1712 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_cpp ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_cpp conftest.$ac_ext"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1729 fi
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } > conftest.i && {
1732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=1
1741 fi
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1744
1745 } # ac_fn_c_try_cpp
1746
1747 # ac_fn_c_try_run LINENO
1748 # ----------------------
1749 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1750 # that executables *can* be run.
1751 ac_fn_c_try_run ()
1752 {
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 if { { ac_try="$ac_link"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_link") 2>&5
1762 ac_status=$?
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1765 { { case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_try") 2>&5
1772 ac_status=$?
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; }; }; then :
1775 ac_retval=0
1776 else
1777 $as_echo "$as_me: program exited with status $ac_status" >&5
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781 ac_retval=$ac_status
1782 fi
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status $ac_retval
1786
1787 } # ac_fn_c_try_run
1788
1789 # ac_fn_c_check_func LINENO FUNC VAR
1790 # ----------------------------------
1791 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1792 ac_fn_c_check_func ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if eval \${$3+:} false; then :
1798 $as_echo_n "(cached) " >&6
1799 else
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1804 #define $2 innocuous_$2
1805
1806 /* System header to define __stub macros and hopefully few prototypes,
1807 which can conflict with char $2 (); below.
1808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1809 <limits.h> exists even on freestanding compilers. */
1810
1811 #ifdef __STDC__
1812 # include <limits.h>
1813 #else
1814 # include <assert.h>
1815 #endif
1816
1817 #undef $2
1818
1819 /* Override any GCC internal prototype to avoid an error.
1820 Use char because int might match the return type of a GCC
1821 builtin and then its argument prototype would still apply. */
1822 #ifdef __cplusplus
1823 extern "C"
1824 #endif
1825 char $2 ();
1826 /* The GNU C library defines this for functions which it implements
1827 to always fail with ENOSYS. Some functions are actually named
1828 something starting with __ and the normal name is an alias. */
1829 #if defined __stub_$2 || defined __stub___$2
1830 choke me
1831 #endif
1832
1833 int
1834 main ()
1835 {
1836 return $2 ();
1837 ;
1838 return 0;
1839 }
1840 _ACEOF
1841 if ac_fn_c_try_link "$LINENO"; then :
1842 eval "$3=yes"
1843 else
1844 eval "$3=no"
1845 fi
1846 rm -f core conftest.err conftest.$ac_objext \
1847 conftest$ac_exeext conftest.$ac_ext
1848 fi
1849 eval ac_res=\$$3
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853
1854 } # ac_fn_c_check_func
1855 cat >config.log <<_ACEOF
1856 This file contains any messages produced by compilers while
1857 running configure, to aid debugging if configure makes a mistake.
1858
1859 It was created by Redland librdf Language bindings $as_me 1.0.17.1, which was
1860 generated by GNU Autoconf 2.69. Invocation command line was
1861
1862 $ $0 $@
1863
1864 _ACEOF
1865 exec 5>>config.log
1866 {
1867 cat <<_ASUNAME
1868 ## --------- ##
1869 ## Platform. ##
1870 ## --------- ##
1871
1872 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1873 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1874 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1875 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1876 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1877
1878 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1879 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1880
1881 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1882 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1883 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1884 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1885 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1886 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1887 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1888
1889 _ASUNAME
1890
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894 IFS=$as_save_IFS
1895 test -z "$as_dir" && as_dir=.
1896 $as_echo "PATH: $as_dir"
1897 done
1898 IFS=$as_save_IFS
1899
1900 } >&5
1901
1902 cat >&5 <<_ACEOF
1903
1904
1905 ## ----------- ##
1906 ## Core tests. ##
1907 ## ----------- ##
1908
1909 _ACEOF
1910
1911
1912 # Keep a trace of the command line.
1913 # Strip out --no-create and --no-recursion so they do not pile up.
1914 # Strip out --silent because we don't want to record it for future runs.
1915 # Also quote any args containing shell meta-characters.
1916 # Make two passes to allow for proper duplicate-argument suppression.
1917 ac_configure_args=
1918 ac_configure_args0=
1919 ac_configure_args1=
1920 ac_must_keep_next=false
1921 for ac_pass in 1 2
1922 do
1923 for ac_arg
1924 do
1925 case $ac_arg in
1926 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1927 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1928 | -silent | --silent | --silen | --sile | --sil)
1929 continue ;;
1930 *\'*)
1931 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1932 esac
1933 case $ac_pass in
1934 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1935 2)
1936 as_fn_append ac_configure_args1 " '$ac_arg'"
1937 if test $ac_must_keep_next = true; then
1938 ac_must_keep_next=false # Got value, back to normal.
1939 else
1940 case $ac_arg in
1941 *=* | --config-cache | -C | -disable-* | --disable-* \
1942 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1943 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1944 | -with-* | --with-* | -without-* | --without-* | --x)
1945 case "$ac_configure_args0 " in
1946 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1947 esac
1948 ;;
1949 -* ) ac_must_keep_next=true ;;
1950 esac
1951 fi
1952 as_fn_append ac_configure_args " '$ac_arg'"
1953 ;;
1954 esac
1955 done
1956 done
1957 { ac_configure_args0=; unset ac_configure_args0;}
1958 { ac_configure_args1=; unset ac_configure_args1;}
1959
1960 # When interrupted or exit'd, cleanup temporary files, and complete
1961 # config.log. We remove comments because anyway the quotes in there
1962 # would cause problems or look ugly.
1963 # WARNING: Use '\'' to represent an apostrophe within the trap.
1964 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1965 trap 'exit_status=$?
1966 # Save into config.log some information that might help in debugging.
1967 {
1968 echo
1969
1970 $as_echo "## ---------------- ##
1971 ## Cache variables. ##
1972 ## ---------------- ##"
1973 echo
1974 # The following way of writing the cache mishandles newlines in values,
1975 (
1976 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1977 eval ac_val=\$$ac_var
1978 case $ac_val in #(
1979 *${as_nl}*)
1980 case $ac_var in #(
1981 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1982 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1983 esac
1984 case $ac_var in #(
1985 _ | IFS | as_nl) ;; #(
1986 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1987 *) { eval $ac_var=; unset $ac_var;} ;;
1988 esac ;;
1989 esac
1990 done
1991 (set) 2>&1 |
1992 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1993 *${as_nl}ac_space=\ *)
1994 sed -n \
1995 "s/'\''/'\''\\\\'\'''\''/g;
1996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1997 ;; #(
1998 *)
1999 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2000 ;;
2001 esac |
2002 sort
2003 )
2004 echo
2005
2006 $as_echo "## ----------------- ##
2007 ## Output variables. ##
2008 ## ----------------- ##"
2009 echo
2010 for ac_var in $ac_subst_vars
2011 do
2012 eval ac_val=\$$ac_var
2013 case $ac_val in
2014 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2015 esac
2016 $as_echo "$ac_var='\''$ac_val'\''"
2017 done | sort
2018 echo
2019
2020 if test -n "$ac_subst_files"; then
2021 $as_echo "## ------------------- ##
2022 ## File substitutions. ##
2023 ## ------------------- ##"
2024 echo
2025 for ac_var in $ac_subst_files
2026 do
2027 eval ac_val=\$$ac_var
2028 case $ac_val in
2029 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2030 esac
2031 $as_echo "$ac_var='\''$ac_val'\''"
2032 done | sort
2033 echo
2034 fi
2035
2036 if test -s confdefs.h; then
2037 $as_echo "## ----------- ##
2038 ## confdefs.h. ##
2039 ## ----------- ##"
2040 echo
2041 cat confdefs.h
2042 echo
2043 fi
2044 test "$ac_signal" != 0 &&
2045 $as_echo "$as_me: caught signal $ac_signal"
2046 $as_echo "$as_me: exit $exit_status"
2047 } >&5
2048 rm -f core *.core core.conftest.* &&
2049 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2050 exit $exit_status
2051 ' 0
2052 for ac_signal in 1 2 13 15; do
2053 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2054 done
2055 ac_signal=0
2056
2057 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2058 rm -f -r conftest* confdefs.h
2059
2060 $as_echo "/* confdefs.h */" > confdefs.h
2061
2062 # Predefined preprocessor variables.
2063
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_NAME "$PACKAGE_NAME"
2066 _ACEOF
2067
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2070 _ACEOF
2071
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2074 _ACEOF
2075
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_STRING "$PACKAGE_STRING"
2078 _ACEOF
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2082 _ACEOF
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_URL "$PACKAGE_URL"
2086 _ACEOF
2087
2088
2089 # Let the site file select an alternate cache file if it wants to.
2090 # Prefer an explicitly selected file to automatically selected ones.
2091 ac_site_file1=NONE
2092 ac_site_file2=NONE
2093 if test -n "$CONFIG_SITE"; then
2094 # We do not want a PATH search for config.site.
2095 case $CONFIG_SITE in #((
2096 -*) ac_site_file1=./$CONFIG_SITE;;
2097 */*) ac_site_file1=$CONFIG_SITE;;
2098 *) ac_site_file1=./$CONFIG_SITE;;
2099 esac
2100 elif test "x$prefix" != xNONE; then
2101 ac_site_file1=$prefix/share/config.site
2102 ac_site_file2=$prefix/etc/config.site
2103 else
2104 ac_site_file1=$ac_default_prefix/share/config.site
2105 ac_site_file2=$ac_default_prefix/etc/config.site
2106 fi
2107 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2108 do
2109 test "x$ac_site_file" = xNONE && continue
2110 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2112 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2113 sed 's/^/| /' "$ac_site_file" >&5
2114 . "$ac_site_file" \
2115 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2117 as_fn_error $? "failed to load site script $ac_site_file
2118 See \`config.log' for more details" "$LINENO" 5; }
2119 fi
2120 done
2121
2122 if test -r "$cache_file"; then
2123 # Some versions of bash will fail to source /dev/null (special files
2124 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2125 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2127 $as_echo "$as_me: loading cache $cache_file" >&6;}
2128 case $cache_file in
2129 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2130 *) . "./$cache_file";;
2131 esac
2132 fi
2133 else
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2135 $as_echo "$as_me: creating cache $cache_file" >&6;}
2136 >$cache_file
2137 fi
2138
2139 # Check that the precious variables saved in the cache have kept the same
2140 # value.
2141 ac_cache_corrupted=false
2142 for ac_var in $ac_precious_vars; do
2143 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2144 eval ac_new_set=\$ac_env_${ac_var}_set
2145 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2146 eval ac_new_val=\$ac_env_${ac_var}_value
2147 case $ac_old_set,$ac_new_set in
2148 set,)
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2150 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2151 ac_cache_corrupted=: ;;
2152 ,set)
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2154 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2155 ac_cache_corrupted=: ;;
2156 ,);;
2157 *)
2158 if test "x$ac_old_val" != "x$ac_new_val"; then
2159 # differences in whitespace do not lead to failure.
2160 ac_old_val_w=`echo x $ac_old_val`
2161 ac_new_val_w=`echo x $ac_new_val`
2162 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2164 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2165 ac_cache_corrupted=:
2166 else
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2168 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2169 eval $ac_var=\$ac_old_val
2170 fi
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2172 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2174 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2175 fi;;
2176 esac
2177 # Pass precious variables to config.status.
2178 if test "$ac_new_set" = set; then
2179 case $ac_new_val in
2180 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2181 *) ac_arg=$ac_var=$ac_new_val ;;
2182 esac
2183 case " $ac_configure_args " in
2184 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2185 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2186 esac
2187 fi
2188 done
2189 if $ac_cache_corrupted; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2193 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2194 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2195 fi
2196 ## -------------------- ##
2197 ## Main body of script. ##
2198 ## -------------------- ##
2199
2200 ac_ext=c
2201 ac_cpp='$CPP $CPPFLAGS'
2202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2205
2206
2207
2208
2209 ac_config_headers="$ac_config_headers bindings_config.h"
2210
2211 ac_aux_dir=
2212 for ac_dir in build "$srcdir"/build; do
2213 if test -f "$ac_dir/install-sh"; then
2214 ac_aux_dir=$ac_dir
2215 ac_install_sh="$ac_aux_dir/install-sh -c"
2216 break
2217 elif test -f "$ac_dir/install.sh"; then
2218 ac_aux_dir=$ac_dir
2219 ac_install_sh="$ac_aux_dir/install.sh -c"
2220 break
2221 elif test -f "$ac_dir/shtool"; then
2222 ac_aux_dir=$ac_dir
2223 ac_install_sh="$ac_aux_dir/shtool install -c"
2224 break
2225 fi
2226 done
2227 if test -z "$ac_aux_dir"; then
2228 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2229 fi
2230
2231 # These three variables are undocumented and unsupported,
2232 # and are intended to be withdrawn in a future Autoconf release.
2233 # They can cause serious problems if a builder's source tree is in a directory
2234 # whose full name contains unusual characters.
2235 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2236 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2237 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2238
2239
2240
2241 am__api_version='1.11'
2242
2243 # Find a good install program. We prefer a C program (faster),
2244 # so one script is as good as another. But avoid the broken or
2245 # incompatible versions:
2246 # SysV /etc/install, /usr/sbin/install
2247 # SunOS /usr/etc/install
2248 # IRIX /sbin/install
2249 # AIX /bin/install
2250 # AmigaOS /C/install, which installs bootblocks on floppy discs
2251 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2252 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2253 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2254 # OS/2's system install, which has a completely different semantic
2255 # ./install, which can be erroneously created by make from ./install.sh.
2256 # Reject install programs that cannot install multiple files.
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2258 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2259 if test -z "$INSTALL"; then
2260 if ${ac_cv_path_install+:} false; then :
2261 $as_echo_n "(cached) " >&6
2262 else
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 for as_dir in $PATH
2265 do
2266 IFS=$as_save_IFS
2267 test -z "$as_dir" && as_dir=.
2268 # Account for people who put trailing slashes in PATH elements.
2269 case $as_dir/ in #((
2270 ./ | .// | /[cC]/* | \
2271 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2272 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2273 /usr/ucb/* ) ;;
2274 *)
2275 # OSF1 and SCO ODT 3.0 have their own names for install.
2276 # Don't use installbsd from OSF since it installs stuff as root
2277 # by default.
2278 for ac_prog in ginstall scoinst install; do
2279 for ac_exec_ext in '' $ac_executable_extensions; do
2280 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2281 if test $ac_prog = install &&
2282 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2283 # AIX install. It has an incompatible calling convention.
2284 :
2285 elif test $ac_prog = install &&
2286 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2287 # program-specific install script used by HP pwplus--don't use.
2288 :
2289 else
2290 rm -rf conftest.one conftest.two conftest.dir
2291 echo one > conftest.one
2292 echo two > conftest.two
2293 mkdir conftest.dir
2294 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2295 test -s conftest.one && test -s conftest.two &&
2296 test -s conftest.dir/conftest.one &&
2297 test -s conftest.dir/conftest.two
2298 then
2299 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2300 break 3
2301 fi
2302 fi
2303 fi
2304 done
2305 done
2306 ;;
2307 esac
2308
2309 done
2310 IFS=$as_save_IFS
2311
2312 rm -rf conftest.one conftest.two conftest.dir
2313
2314 fi
2315 if test "${ac_cv_path_install+set}" = set; then
2316 INSTALL=$ac_cv_path_install
2317 else
2318 # As a last resort, use the slow shell script. Don't cache a
2319 # value for INSTALL within a source directory, because that will
2320 # break other packages using the cache if that directory is
2321 # removed, or if the value is a relative name.
2322 INSTALL=$ac_install_sh
2323 fi
2324 fi
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2326 $as_echo "$INSTALL" >&6; }
2327
2328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2329 # It thinks the first close brace ends the variable substitution.
2330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2331
2332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2333
2334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2335
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2337 $as_echo_n "checking whether build environment is sane... " >&6; }
2338 # Just in case
2339 sleep 1
2340 echo timestamp > conftest.file
2341 # Reject unsafe characters in $srcdir or the absolute working directory
2342 # name. Accept space and tab only in the latter.
2343 am_lf='
2344 '
2345 case `pwd` in
2346 *[\\\"\#\$\&\'\`$am_lf]*)
2347 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2348 esac
2349 case $srcdir in
2350 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2351 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2352 esac
2353
2354 # Do `set' in a subshell so we don't clobber the current shell's
2355 # arguments. Must try -L first in case configure is actually a
2356 # symlink; some systems play weird games with the mod time of symlinks
2357 # (eg FreeBSD returns the mod time of the symlink's containing
2358 # directory).
2359 if (
2360 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2361 if test "$*" = "X"; then
2362 # -L didn't work.
2363 set X `ls -t "$srcdir/configure" conftest.file`
2364 fi
2365 rm -f conftest.file
2366 if test "$*" != "X $srcdir/configure conftest.file" \
2367 && test "$*" != "X conftest.file $srcdir/configure"; then
2368
2369 # If neither matched, then we have a broken ls. This can happen
2370 # if, for instance, CONFIG_SHELL is bash and it inherits a
2371 # broken ls alias from the environment. This has actually
2372 # happened. Such a system could not be considered "sane".
2373 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2374 alias in your environment" "$LINENO" 5
2375 fi
2376
2377 test "$2" = conftest.file
2378 )
2379 then
2380 # Ok.
2381 :
2382 else
2383 as_fn_error $? "newly created file is older than distributed files!
2384 Check your system clock" "$LINENO" 5
2385 fi
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2387 $as_echo "yes" >&6; }
2388 test "$program_prefix" != NONE &&
2389 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2390 # Use a double $ so make ignores it.
2391 test "$program_suffix" != NONE &&
2392 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2393 # Double any \ or $.
2394 # By default was `s,x,x', remove it if useless.
2395 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2396 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2397
2398 # expand $ac_aux_dir to an absolute path
2399 am_aux_dir=`cd $ac_aux_dir && pwd`
2400
2401 if test x"${MISSING+set}" != xset; then
2402 case $am_aux_dir in
2403 *\ * | *\ *)
2404 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2405 *)
2406 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2407 esac
2408 fi
2409 # Use eval to expand $SHELL
2410 if eval "$MISSING --run true"; then
2411 am_missing_run="$MISSING --run "
2412 else
2413 am_missing_run=
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2415 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2416 fi
2417
2418 if test x"${install_sh}" != xset; then
2419 case $am_aux_dir in
2420 *\ * | *\ *)
2421 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2422 *)
2423 install_sh="\${SHELL} $am_aux_dir/install-sh"
2424 esac
2425 fi
2426
2427 # Installed binaries are usually stripped using `strip' when the user
2428 # run `make install-strip'. However `strip' might not be the right
2429 # tool to use in cross-compilation environments, therefore Automake
2430 # will honor the `STRIP' environment variable to overrule this program.
2431 if test "$cross_compiling" != no; then
2432 if test -n "$ac_tool_prefix"; then
2433 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2434 set dummy ${ac_tool_prefix}strip; ac_word=$2
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2436 $as_echo_n "checking for $ac_word... " >&6; }
2437 if ${ac_cv_prog_STRIP+:} false; then :
2438 $as_echo_n "(cached) " >&6
2439 else
2440 if test -n "$STRIP"; then
2441 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2445 do
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2450 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 break 2
2453 fi
2454 done
2455 done
2456 IFS=$as_save_IFS
2457
2458 fi
2459 fi
2460 STRIP=$ac_cv_prog_STRIP
2461 if test -n "$STRIP"; then
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2463 $as_echo "$STRIP" >&6; }
2464 else
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2466 $as_echo "no" >&6; }
2467 fi
2468
2469
2470 fi
2471 if test -z "$ac_cv_prog_STRIP"; then
2472 ac_ct_STRIP=$STRIP
2473 # Extract the first word of "strip", so it can be a program name with args.
2474 set dummy strip; ac_word=$2
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2476 $as_echo_n "checking for $ac_word... " >&6; }
2477 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2478 $as_echo_n "(cached) " >&6
2479 else
2480 if test -n "$ac_ct_STRIP"; then
2481 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2485 do
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2490 ac_cv_prog_ac_ct_STRIP="strip"
2491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2493 fi
2494 done
2495 done
2496 IFS=$as_save_IFS
2497
2498 fi
2499 fi
2500 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2501 if test -n "$ac_ct_STRIP"; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2503 $as_echo "$ac_ct_STRIP" >&6; }
2504 else
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2506 $as_echo "no" >&6; }
2507 fi
2508
2509 if test "x$ac_ct_STRIP" = x; then
2510 STRIP=":"
2511 else
2512 case $cross_compiling:$ac_tool_warned in
2513 yes:)
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2516 ac_tool_warned=yes ;;
2517 esac
2518 STRIP=$ac_ct_STRIP
2519 fi
2520 else
2521 STRIP="$ac_cv_prog_STRIP"
2522 fi
2523
2524 fi
2525 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2526
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2528 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2529 if test -z "$MKDIR_P"; then
2530 if ${ac_cv_path_mkdir+:} false; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2535 do
2536 IFS=$as_save_IFS
2537 test -z "$as_dir" && as_dir=.
2538 for ac_prog in mkdir gmkdir; do
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2541 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2542 'mkdir (GNU coreutils) '* | \
2543 'mkdir (coreutils) '* | \
2544 'mkdir (fileutils) '4.1*)
2545 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2546 break 3;;
2547 esac
2548 done
2549 done
2550 done
2551 IFS=$as_save_IFS
2552
2553 fi
2554
2555 test -d ./--version && rmdir ./--version
2556 if test "${ac_cv_path_mkdir+set}" = set; then
2557 MKDIR_P="$ac_cv_path_mkdir -p"
2558 else
2559 # As a last resort, use the slow shell script. Don't cache a
2560 # value for MKDIR_P within a source directory, because that will
2561 # break other packages using the cache if that directory is
2562 # removed, or if the value is a relative name.
2563 MKDIR_P="$ac_install_sh -d"
2564 fi
2565 fi
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2567 $as_echo "$MKDIR_P" >&6; }
2568
2569 mkdir_p="$MKDIR_P"
2570 case $mkdir_p in
2571 [\\/$]* | ?:[\\/]*) ;;
2572 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2573 esac
2574
2575 for ac_prog in gawk mawk nawk awk
2576 do
2577 # Extract the first word of "$ac_prog", so it can be a program name with args.
2578 set dummy $ac_prog; ac_word=$2
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580 $as_echo_n "checking for $ac_word... " >&6; }
2581 if ${ac_cv_prog_AWK+:} false; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 if test -n "$AWK"; then
2585 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594 ac_cv_prog_AWK="$ac_prog"
2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2597 fi
2598 done
2599 done
2600 IFS=$as_save_IFS
2601
2602 fi
2603 fi
2604 AWK=$ac_cv_prog_AWK
2605 if test -n "$AWK"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2607 $as_echo "$AWK" >&6; }
2608 else
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2611 fi
2612
2613
2614 test -n "$AWK" && break
2615 done
2616
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2618 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2619 set x ${MAKE-make}
2620 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2621 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 cat >conftest.make <<\_ACEOF
2625 SHELL = /bin/sh
2626 all:
2627 @echo '@@@%%%=$(MAKE)=@@@%%%'
2628 _ACEOF
2629 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2630 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2631 *@@@%%%=?*=@@@%%%*)
2632 eval ac_cv_prog_make_${ac_make}_set=yes;;
2633 *)
2634 eval ac_cv_prog_make_${ac_make}_set=no;;
2635 esac
2636 rm -f conftest.make
2637 fi
2638 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2640 $as_echo "yes" >&6; }
2641 SET_MAKE=
2642 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2645 SET_MAKE="MAKE=${MAKE-make}"
2646 fi
2647
2648 rm -rf .tst 2>/dev/null
2649 mkdir .tst 2>/dev/null
2650 if test -d .tst; then
2651 am__leading_dot=.
2652 else
2653 am__leading_dot=_
2654 fi
2655 rmdir .tst 2>/dev/null
2656
2657 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2658 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2659 # is not polluted with repeated "-I."
2660 am__isrc=' -I$(srcdir)'
2661 # test to see if srcdir already configured
2662 if test -f $srcdir/config.status; then
2663 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2664 fi
2665 fi
2666
2667 # test whether we have cygpath
2668 if test -z "$CYGPATH_W"; then
2669 if (cygpath --version) >/dev/null 2>/dev/null; then
2670 CYGPATH_W='cygpath -w'
2671 else
2672 CYGPATH_W=echo
2673 fi
2674 fi
2675
2676
2677 # Define the identity of the package.
2678 PACKAGE='redland-bindings'
2679 VERSION='1.0.17.1'
2680
2681
2682 cat >>confdefs.h <<_ACEOF
2683 #define PACKAGE "$PACKAGE"
2684 _ACEOF
2685
2686
2687 cat >>confdefs.h <<_ACEOF
2688 #define VERSION "$VERSION"
2689 _ACEOF
2690
2691 # Some tools Automake needs.
2692
2693 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2694
2695
2696 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2697
2698
2699 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2700
2701
2702 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2703
2704
2705 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2706
2707 # We need awk for the "check" target. The system "awk" is bad on
2708 # some platforms.
2709 # Always define AMTAR for backward compatibility. Yes, it's still used
2710 # in the wild :-( We should find a proper way to deprecate it ...
2711 AMTAR='$${TAR-tar}'
2712
2713 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2714
2715
2716
2717
2718
2719
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2721 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2722 # Check whether --enable-maintainer-mode was given.
2723 if test "${enable_maintainer_mode+set}" = set; then :
2724 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2725 else
2726 USE_MAINTAINER_MODE=no
2727 fi
2728
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2730 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2731 if test $USE_MAINTAINER_MODE = yes; then
2732 MAINTAINER_MODE_TRUE=
2733 MAINTAINER_MODE_FALSE='#'
2734 else
2735 MAINTAINER_MODE_TRUE='#'
2736 MAINTAINER_MODE_FALSE=
2737 fi
2738
2739 MAINT=$MAINTAINER_MODE_TRUE
2740
2741
2742
2743 MIN_REDLAND_VERSION=1.0.15
2744
2745 # Make sure we can run config.sub.
2746 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2747 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2748
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2750 $as_echo_n "checking build system type... " >&6; }
2751 if ${ac_cv_build+:} false; then :
2752 $as_echo_n "(cached) " >&6
2753 else
2754 ac_build_alias=$build_alias
2755 test "x$ac_build_alias" = x &&
2756 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2757 test "x$ac_build_alias" = x &&
2758 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2759 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2760 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2761
2762 fi
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2764 $as_echo "$ac_cv_build" >&6; }
2765 case $ac_cv_build in
2766 *-*-*) ;;
2767 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2768 esac
2769 build=$ac_cv_build
2770 ac_save_IFS=$IFS; IFS='-'
2771 set x $ac_cv_build
2772 shift
2773 build_cpu=$1
2774 build_vendor=$2
2775 shift; shift
2776 # Remember, the first character of IFS is used to create $*,
2777 # except with old shells:
2778 build_os=$*
2779 IFS=$ac_save_IFS
2780 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2781
2782
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2784 $as_echo_n "checking host system type... " >&6; }
2785 if ${ac_cv_host+:} false; then :
2786 $as_echo_n "(cached) " >&6
2787 else
2788 if test "x$host_alias" = x; then
2789 ac_cv_host=$ac_cv_build
2790 else
2791 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2792 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2793 fi
2794
2795 fi
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2797 $as_echo "$ac_cv_host" >&6; }
2798 case $ac_cv_host in
2799 *-*-*) ;;
2800 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2801 esac
2802 host=$ac_cv_host
2803 ac_save_IFS=$IFS; IFS='-'
2804 set x $ac_cv_host
2805 shift
2806 host_cpu=$1
2807 host_vendor=$2
2808 shift; shift
2809 # Remember, the first character of IFS is used to create $*,
2810 # except with old shells:
2811 host_os=$*
2812 IFS=$ac_save_IFS
2813 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2814
2815
2816
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2818 $as_echo_n "checking whether build environment is sane... " >&6; }
2819 # Just in case
2820 sleep 1
2821 echo timestamp > conftest.file
2822 # Reject unsafe characters in $srcdir or the absolute working directory
2823 # name. Accept space and tab only in the latter.
2824 am_lf='
2825 '
2826 case `pwd` in
2827 *[\\\"\#\$\&\'\`$am_lf]*)
2828 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2829 esac
2830 case $srcdir in
2831 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2832 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2833 esac
2834
2835 # Do `set' in a subshell so we don't clobber the current shell's
2836 # arguments. Must try -L first in case configure is actually a
2837 # symlink; some systems play weird games with the mod time of symlinks
2838 # (eg FreeBSD returns the mod time of the symlink's containing
2839 # directory).
2840 if (
2841 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2842 if test "$*" = "X"; then
2843 # -L didn't work.
2844 set X `ls -t "$srcdir/configure" conftest.file`
2845 fi
2846 rm -f conftest.file
2847 if test "$*" != "X $srcdir/configure conftest.file" \
2848 && test "$*" != "X conftest.file $srcdir/configure"; then
2849
2850 # If neither matched, then we have a broken ls. This can happen
2851 # if, for instance, CONFIG_SHELL is bash and it inherits a
2852 # broken ls alias from the environment. This has actually
2853 # happened. Such a system could not be considered "sane".
2854 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2855 alias in your environment" "$LINENO" 5
2856 fi
2857
2858 test "$2" = conftest.file
2859 )
2860 then
2861 # Ok.
2862 :
2863 else
2864 as_fn_error $? "newly created file is older than distributed files!
2865 Check your system clock" "$LINENO" 5
2866 fi
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2868 $as_echo "yes" >&6; }
2869 ac_ext=c
2870 ac_cpp='$CPP $CPPFLAGS'
2871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2874 if test -n "$ac_tool_prefix"; then
2875 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2876 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if ${ac_cv_prog_CC+:} false; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 if test -n "$CC"; then
2883 ac_cv_prog_CC="$CC" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 CC=$ac_cv_prog_CC
2903 if test -n "$CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905 $as_echo "$CC" >&6; }
2906 else
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2909 fi
2910
2911
2912 fi
2913 if test -z "$ac_cv_prog_CC"; then
2914 ac_ct_CC=$CC
2915 # Extract the first word of "gcc", so it can be a program name with args.
2916 set dummy gcc; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 if test -n "$ac_ct_CC"; then
2923 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932 ac_cv_prog_ac_ct_CC="gcc"
2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936 done
2937 done
2938 IFS=$as_save_IFS
2939
2940 fi
2941 fi
2942 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2943 if test -n "$ac_ct_CC"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2945 $as_echo "$ac_ct_CC" >&6; }
2946 else
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2949 fi
2950
2951 if test "x$ac_ct_CC" = x; then
2952 CC=""
2953 else
2954 case $cross_compiling:$ac_tool_warned in
2955 yes:)
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2958 ac_tool_warned=yes ;;
2959 esac
2960 CC=$ac_ct_CC
2961 fi
2962 else
2963 CC="$ac_cv_prog_CC"
2964 fi
2965
2966 if test -z "$CC"; then
2967 if test -n "$ac_tool_prefix"; then
2968 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2969 set dummy ${ac_tool_prefix}cc; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if ${ac_cv_prog_CC+:} false; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985 ac_cv_prog_CC="${ac_tool_prefix}cc"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989 done
2990 done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 CC=$ac_cv_prog_CC
2996 if test -n "$CC"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998 $as_echo "$CC" >&6; }
2999 else
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 fi
3003
3004
3005 fi
3006 fi
3007 if test -z "$CC"; then
3008 # Extract the first word of "cc", so it can be a program name with args.
3009 set dummy cc; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if ${ac_cv_prog_CC+:} false; then :
3013 $as_echo_n "(cached) " >&6
3014 else
3015 if test -n "$CC"; then
3016 ac_cv_prog_CC="$CC" # Let the user override the test.
3017 else
3018 ac_prog_rejected=no
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3021 do
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3027 ac_prog_rejected=yes
3028 continue
3029 fi
3030 ac_cv_prog_CC="cc"
3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 break 2
3033 fi
3034 done
3035 done
3036 IFS=$as_save_IFS
3037
3038 if test $ac_prog_rejected = yes; then
3039 # We found a bogon in the path, so make sure we never use it.
3040 set dummy $ac_cv_prog_CC
3041 shift
3042 if test $# != 0; then
3043 # We chose a different compiler from the bogus one.
3044 # However, it has the same basename, so the bogon will be chosen
3045 # first if we set CC to just the basename; use the full file name.
3046 shift
3047 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3048 fi
3049 fi
3050 fi
3051 fi
3052 CC=$ac_cv_prog_CC
3053 if test -n "$CC"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3055 $as_echo "$CC" >&6; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061
3062 fi
3063 if test -z "$CC"; then
3064 if test -n "$ac_tool_prefix"; then
3065 for ac_prog in cl.exe
3066 do
3067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if ${ac_cv_prog_CC+:} false; then :
3072 $as_echo_n "(cached) " >&6
3073 else
3074 if test -n "$CC"; then
3075 ac_cv_prog_CC="$CC" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 break 2
3087 fi
3088 done
3089 done
3090 IFS=$as_save_IFS
3091
3092 fi
3093 fi
3094 CC=$ac_cv_prog_CC
3095 if test -n "$CC"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3097 $as_echo "$CC" >&6; }
3098 else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3101 fi
3102
3103
3104 test -n "$CC" && break
3105 done
3106 fi
3107 if test -z "$CC"; then
3108 ac_ct_CC=$CC
3109 for ac_prog in cl.exe
3110 do
3111 # Extract the first word of "$ac_prog", so it can be a program name with args.
3112 set dummy $ac_prog; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 if test -n "$ac_ct_CC"; then
3119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124 IFS=$as_save_IFS
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128 ac_cv_prog_ac_ct_CC="$ac_prog"
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 break 2
3131 fi
3132 done
3133 done
3134 IFS=$as_save_IFS
3135
3136 fi
3137 fi
3138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3139 if test -n "$ac_ct_CC"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3141 $as_echo "$ac_ct_CC" >&6; }
3142 else
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3145 fi
3146
3147
3148 test -n "$ac_ct_CC" && break
3149 done
3150
3151 if test "x$ac_ct_CC" = x; then
3152 CC=""
3153 else
3154 case $cross_compiling:$ac_tool_warned in
3155 yes:)
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3158 ac_tool_warned=yes ;;
3159 esac
3160 CC=$ac_ct_CC
3161 fi
3162 fi
3163
3164 fi
3165
3166
3167 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169 as_fn_error $? "no acceptable C compiler found in \$PATH
3170 See \`config.log' for more details" "$LINENO" 5; }
3171
3172 # Provide some information about the compiler.
3173 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3174 set X $ac_compile
3175 ac_compiler=$2
3176 for ac_option in --version -v -V -qversion; do
3177 { { ac_try="$ac_compiler $ac_option >&5"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3185 ac_status=$?
3186 if test -s conftest.err; then
3187 sed '10a\
3188 ... rest of stderr output deleted ...
3189 10q' conftest.err >conftest.er1
3190 cat conftest.er1 >&5
3191 fi
3192 rm -f conftest.er1 conftest.err
3193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194 test $ac_status = 0; }
3195 done
3196
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198 /* end confdefs.h. */
3199
3200 int
3201 main ()
3202 {
3203
3204 ;
3205 return 0;
3206 }
3207 _ACEOF
3208 ac_clean_files_save=$ac_clean_files
3209 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3210 # Try to create an executable without -o first, disregard a.out.
3211 # It will help us diagnose broken compilers, and finding out an intuition
3212 # of exeext.
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3214 $as_echo_n "checking whether the C compiler works... " >&6; }
3215 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3216
3217 # The possible output files:
3218 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3219
3220 ac_rmfiles=
3221 for ac_file in $ac_files
3222 do
3223 case $ac_file in
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3225 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3226 esac
3227 done
3228 rm -f $ac_rmfiles
3229
3230 if { { ac_try="$ac_link_default"
3231 case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234 esac
3235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236 $as_echo "$ac_try_echo"; } >&5
3237 (eval "$ac_link_default") 2>&5
3238 ac_status=$?
3239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240 test $ac_status = 0; }; then :
3241 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3242 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3243 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3244 # so that the user can short-circuit this test for compilers unknown to
3245 # Autoconf.
3246 for ac_file in $ac_files ''
3247 do
3248 test -f "$ac_file" || continue
3249 case $ac_file in
3250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3251 ;;
3252 [ab].out )
3253 # We found the default executable, but exeext='' is most
3254 # certainly right.
3255 break;;
3256 *.* )
3257 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3258 then :; else
3259 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3260 fi
3261 # We set ac_cv_exeext here because the later test for it is not
3262 # safe: cross compilers may not add the suffix if given an `-o'
3263 # argument, so we may need to know it at that point already.
3264 # Even if this section looks crufty: it has the advantage of
3265 # actually working.
3266 break;;
3267 * )
3268 break;;
3269 esac
3270 done
3271 test "$ac_cv_exeext" = no && ac_cv_exeext=
3272
3273 else
3274 ac_file=''
3275 fi
3276 if test -z "$ac_file"; then :
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3279 $as_echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3281
3282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284 as_fn_error 77 "C compiler cannot create executables
3285 See \`config.log' for more details" "$LINENO" 5; }
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3288 $as_echo "yes" >&6; }
3289 fi
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3291 $as_echo_n "checking for C compiler default output file name... " >&6; }
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3293 $as_echo "$ac_file" >&6; }
3294 ac_exeext=$ac_cv_exeext
3295
3296 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3297 ac_clean_files=$ac_clean_files_save
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3299 $as_echo_n "checking for suffix of executables... " >&6; }
3300 if { { ac_try="$ac_link"
3301 case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3304 esac
3305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306 $as_echo "$ac_try_echo"; } >&5
3307 (eval "$ac_link") 2>&5
3308 ac_status=$?
3309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310 test $ac_status = 0; }; then :
3311 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3312 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3313 # work properly (i.e., refer to `conftest.exe'), while it won't with
3314 # `rm'.
3315 for ac_file in conftest.exe conftest conftest.*; do
3316 test -f "$ac_file" || continue
3317 case $ac_file in
3318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3319 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3320 break;;
3321 * ) break;;
3322 esac
3323 done
3324 else
3325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3328 See \`config.log' for more details" "$LINENO" 5; }
3329 fi
3330 rm -f conftest conftest$ac_cv_exeext
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3332 $as_echo "$ac_cv_exeext" >&6; }
3333
3334 rm -f conftest.$ac_ext
3335 EXEEXT=$ac_cv_exeext
3336 ac_exeext=$EXEEXT
3337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338 /* end confdefs.h. */
3339 #include <stdio.h>
3340 int
3341 main ()
3342 {
3343 FILE *f = fopen ("conftest.out", "w");
3344 return ferror (f) || fclose (f) != 0;
3345
3346 ;
3347 return 0;
3348 }
3349 _ACEOF
3350 ac_clean_files="$ac_clean_files conftest.out"
3351 # Check that the compiler produces executables we can run. If not, either
3352 # the compiler is broken, or we cross compile.
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3354 $as_echo_n "checking whether we are cross compiling... " >&6; }
3355 if test "$cross_compiling" != yes; then
3356 { { ac_try="$ac_link"
3357 case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363 (eval "$ac_link") 2>&5
3364 ac_status=$?
3365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366 test $ac_status = 0; }
3367 if { ac_try='./conftest$ac_cv_exeext'
3368 { { case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3371 esac
3372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3373 $as_echo "$ac_try_echo"; } >&5
3374 (eval "$ac_try") 2>&5
3375 ac_status=$?
3376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3377 test $ac_status = 0; }; }; then
3378 cross_compiling=no
3379 else
3380 if test "$cross_compiling" = maybe; then
3381 cross_compiling=yes
3382 else
3383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385 as_fn_error $? "cannot run C compiled programs.
3386 If you meant to cross compile, use \`--host'.
3387 See \`config.log' for more details" "$LINENO" 5; }
3388 fi
3389 fi
3390 fi
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3392 $as_echo "$cross_compiling" >&6; }
3393
3394 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3395 ac_clean_files=$ac_clean_files_save
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3397 $as_echo_n "checking for suffix of object files... " >&6; }
3398 if ${ac_cv_objext+:} false; then :
3399 $as_echo_n "(cached) " >&6
3400 else
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3403
3404 int
3405 main ()
3406 {
3407
3408 ;
3409 return 0;
3410 }
3411 _ACEOF
3412 rm -f conftest.o conftest.obj
3413 if { { ac_try="$ac_compile"
3414 case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417 esac
3418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419 $as_echo "$ac_try_echo"; } >&5
3420 (eval "$ac_compile") 2>&5
3421 ac_status=$?
3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423 test $ac_status = 0; }; then :
3424 for ac_file in conftest.o conftest.obj conftest.*; do
3425 test -f "$ac_file" || continue;
3426 case $ac_file in
3427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3428 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3429 break;;
3430 esac
3431 done
3432 else
3433 $as_echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438 as_fn_error $? "cannot compute suffix of object files: cannot compile
3439 See \`config.log' for more details" "$LINENO" 5; }
3440 fi
3441 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3442 fi
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3444 $as_echo "$ac_cv_objext" >&6; }
3445 OBJEXT=$ac_cv_objext
3446 ac_objext=$OBJEXT
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3448 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3449 if ${ac_cv_c_compiler_gnu+:} false; then :
3450 $as_echo_n "(cached) " >&6
3451 else
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3454
3455 int
3456 main ()
3457 {
3458 #ifndef __GNUC__
3459 choke me
3460 #endif
3461
3462 ;
3463 return 0;
3464 }
3465 _ACEOF
3466 if ac_fn_c_try_compile "$LINENO"; then :
3467 ac_compiler_gnu=yes
3468 else
3469 ac_compiler_gnu=no
3470 fi
3471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3472 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3473
3474 fi
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3476 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3477 if test $ac_compiler_gnu = yes; then
3478 GCC=yes
3479 else
3480 GCC=
3481 fi
3482 ac_test_CFLAGS=${CFLAGS+set}
3483 ac_save_CFLAGS=$CFLAGS
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3485 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3486 if ${ac_cv_prog_cc_g+:} false; then :
3487 $as_echo_n "(cached) " >&6
3488 else
3489 ac_save_c_werror_flag=$ac_c_werror_flag
3490 ac_c_werror_flag=yes
3491 ac_cv_prog_cc_g=no
3492 CFLAGS="-g"
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3495
3496 int
3497 main ()
3498 {
3499
3500 ;
3501 return 0;
3502 }
3503 _ACEOF
3504 if ac_fn_c_try_compile "$LINENO"; then :
3505 ac_cv_prog_cc_g=yes
3506 else
3507 CFLAGS=""
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3510
3511 int
3512 main ()
3513 {
3514
3515 ;
3516 return 0;
3517 }
3518 _ACEOF
3519 if ac_fn_c_try_compile "$LINENO"; then :
3520
3521 else
3522 ac_c_werror_flag=$ac_save_c_werror_flag
3523 CFLAGS="-g"
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3526
3527 int
3528 main ()
3529 {
3530
3531 ;
3532 return 0;
3533 }
3534 _ACEOF
3535 if ac_fn_c_try_compile "$LINENO"; then :
3536 ac_cv_prog_cc_g=yes
3537 fi
3538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539 fi
3540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3541 fi
3542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543 ac_c_werror_flag=$ac_save_c_werror_flag
3544 fi
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3546 $as_echo "$ac_cv_prog_cc_g" >&6; }
3547 if test "$ac_test_CFLAGS" = set; then
3548 CFLAGS=$ac_save_CFLAGS
3549 elif test $ac_cv_prog_cc_g = yes; then
3550 if test "$GCC" = yes; then
3551 CFLAGS="-g -O2"
3552 else
3553 CFLAGS="-g"
3554 fi
3555 else
3556 if test "$GCC" = yes; then
3557 CFLAGS="-O2"
3558 else
3559 CFLAGS=
3560 fi
3561 fi
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3563 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3564 if ${ac_cv_prog_cc_c89+:} false; then :
3565 $as_echo_n "(cached) " >&6
3566 else
3567 ac_cv_prog_cc_c89=no
3568 ac_save_CC=$CC
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3571 #include <stdarg.h>
3572 #include <stdio.h>
3573 struct stat;
3574 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3575 struct buf { int x; };
3576 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3577 static char *e (p, i)
3578 char **p;
3579 int i;
3580 {
3581 return p[i];
3582 }
3583 static char *f (char * (*g) (char **, int), char **p, ...)
3584 {
3585 char *s;
3586 va_list v;
3587 va_start (v,p);
3588 s = g (p, va_arg (v,int));
3589 va_end (v);
3590 return s;
3591 }
3592
3593 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3594 function prototypes and stuff, but not '\xHH' hex character constants.
3595 These don't provoke an error unfortunately, instead are silently treated
3596 as 'x'. The following induces an error, until -std is added to get
3597 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3598 array size at least. It's necessary to write '\x00'==0 to get something
3599 that's true only with -std. */
3600 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3601
3602 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3603 inside strings and character constants. */
3604 #define FOO(x) 'x'
3605 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3606
3607 int test (int i, double x);
3608 struct s1 {int (*f) (int a);};
3609 struct s2 {int (*f) (double a);};
3610 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3611 int argc;
3612 char **argv;
3613 int
3614 main ()
3615 {
3616 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3617 ;
3618 return 0;
3619 }
3620 _ACEOF
3621 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3622 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3623 do
3624 CC="$ac_save_CC $ac_arg"
3625 if ac_fn_c_try_compile "$LINENO"; then :
3626 ac_cv_prog_cc_c89=$ac_arg
3627 fi
3628 rm -f core conftest.err conftest.$ac_objext
3629 test "x$ac_cv_prog_cc_c89" != "xno" && break
3630 done
3631 rm -f conftest.$ac_ext
3632 CC=$ac_save_CC
3633
3634 fi
3635 # AC_CACHE_VAL
3636 case "x$ac_cv_prog_cc_c89" in
3637 x)
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3639 $as_echo "none needed" >&6; } ;;
3640 xno)
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3642 $as_echo "unsupported" >&6; } ;;
3643 *)
3644 CC="$CC $ac_cv_prog_cc_c89"
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3646 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3647 esac
3648 if test "x$ac_cv_prog_cc_c89" != xno; then :
3649
3650 fi
3651
3652 ac_ext=c
3653 ac_cpp='$CPP $CPPFLAGS'
3654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657 DEPDIR="${am__leading_dot}deps"
3658
3659 ac_config_commands="$ac_config_commands depfiles"
3660
3661
3662 am_make=${MAKE-make}
3663 cat > confinc << 'END'
3664 am__doit:
3665 @echo this is the am__doit target
3666 .PHONY: am__doit
3667 END
3668 # If we don't find an include directive, just comment out the code.
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3670 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3671 am__include="#"
3672 am__quote=
3673 _am_result=none
3674 # First try GNU make style include.
3675 echo "include confinc" > confmf
3676 # Ignore all kinds of additional output from `make'.
3677 case `$am_make -s -f confmf 2> /dev/null` in #(
3678 *the\ am__doit\ target*)
3679 am__include=include
3680 am__quote=
3681 _am_result=GNU
3682 ;;
3683 esac
3684 # Now try BSD make style include.
3685 if test "$am__include" = "#"; then
3686 echo '.include "confinc"' > confmf
3687 case `$am_make -s -f confmf 2> /dev/null` in #(
3688 *the\ am__doit\ target*)
3689 am__include=.include
3690 am__quote="\""
3691 _am_result=BSD
3692 ;;
3693 esac
3694 fi
3695
3696
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3698 $as_echo "$_am_result" >&6; }
3699 rm -f confinc confmf
3700
3701 # Check whether --enable-dependency-tracking was given.
3702 if test "${enable_dependency_tracking+set}" = set; then :
3703 enableval=$enable_dependency_tracking;
3704 fi
3705
3706 if test "x$enable_dependency_tracking" != xno; then
3707 am_depcomp="$ac_aux_dir/depcomp"
3708 AMDEPBACKSLASH='\'
3709 am__nodep='_no'
3710 fi
3711 if test "x$enable_dependency_tracking" != xno; then
3712 AMDEP_TRUE=
3713 AMDEP_FALSE='#'
3714 else
3715 AMDEP_TRUE='#'
3716 AMDEP_FALSE=
3717 fi
3718
3719
3720
3721 depcc="$CC" am_compiler_list=
3722
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3724 $as_echo_n "checking dependency style of $depcc... " >&6; }
3725 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3726 $as_echo_n "(cached) " >&6
3727 else
3728 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3729 # We make a subdir and do the tests there. Otherwise we can end up
3730 # making bogus files that we don't know about and never remove. For
3731 # instance it was reported that on HP-UX the gcc test will end up
3732 # making a dummy file named `D' -- because `-MD' means `put the output
3733 # in D'.
3734 rm -rf conftest.dir
3735 mkdir conftest.dir
3736 # Copy depcomp to subdir because otherwise we won't find it if we're
3737 # using a relative directory.
3738 cp "$am_depcomp" conftest.dir
3739 cd conftest.dir
3740 # We will build objects and dependencies in a subdirectory because
3741 # it helps to detect inapplicable dependency modes. For instance
3742 # both Tru64's cc and ICC support -MD to output dependencies as a
3743 # side effect of compilation, but ICC will put the dependencies in
3744 # the current directory while Tru64 will put them in the object
3745 # directory.
3746 mkdir sub
3747
3748 am_cv_CC_dependencies_compiler_type=none
3749 if test "$am_compiler_list" = ""; then
3750 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3751 fi
3752 am__universal=false
3753 case " $depcc " in #(
3754 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3755 esac
3756
3757 for depmode in $am_compiler_list; do
3758 # Setup a source with many dependencies, because some compilers
3759 # like to wrap large dependency lists on column 80 (with \), and
3760 # we should not choose a depcomp mode which is confused by this.
3761 #
3762 # We need to recreate these files for each test, as the compiler may
3763 # overwrite some of them when testing with obscure command lines.
3764 # This happens at least with the AIX C compiler.
3765 : > sub/conftest.c
3766 for i in 1 2 3 4 5 6; do
3767 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3768 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3769 # Solaris 8's {/usr,}/bin/sh.
3770 touch sub/conftst$i.h
3771 done
3772 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3773
3774 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3775 # mode. It turns out that the SunPro C++ compiler does not properly
3776 # handle `-M -o', and we need to detect this. Also, some Intel
3777 # versions had trouble with output in subdirs
3778 am__obj=sub/conftest.${OBJEXT-o}
3779 am__minus_obj="-o $am__obj"
3780 case $depmode in
3781 gcc)
3782 # This depmode causes a compiler race in universal mode.
3783 test "$am__universal" = false || continue
3784 ;;
3785 nosideeffect)
3786 # after this tag, mechanisms are not by side-effect, so they'll
3787 # only be used when explicitly requested
3788 if test "x$enable_dependency_tracking" = xyes; then
3789 continue
3790 else
3791 break
3792 fi
3793 ;;
3794 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3795 # This compiler won't grok `-c -o', but also, the minuso test has
3796 # not run yet. These depmodes are late enough in the game, and
3797 # so weak that their functioning should not be impacted.
3798 am__obj=conftest.${OBJEXT-o}
3799 am__minus_obj=
3800 ;;
3801 none) break ;;
3802 esac
3803 if depmode=$depmode \
3804 source=sub/conftest.c object=$am__obj \
3805 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3806 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3807 >/dev/null 2>conftest.err &&
3808 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3809 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3810 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3811 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3812 # icc doesn't choke on unknown options, it will just issue warnings
3813 # or remarks (even with -Werror). So we grep stderr for any message
3814 # that says an option was ignored or not supported.
3815 # When given -MP, icc 7.0 and 7.1 complain thusly:
3816 # icc: Command line warning: ignoring option '-M'; no argument required
3817 # The diagnosis changed in icc 8.0:
3818 # icc: Command line remark: option '-MP' not supported
3819 if (grep 'ignoring option' conftest.err ||
3820 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3821 am_cv_CC_dependencies_compiler_type=$depmode
3822 break
3823 fi
3824 fi
3825 done
3826
3827 cd ..
3828 rm -rf conftest.dir
3829 else
3830 am_cv_CC_dependencies_compiler_type=none
3831 fi
3832
3833 fi
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3835 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3836 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3837
3838 if
3839 test "x$enable_dependency_tracking" != xno \
3840 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3841 am__fastdepCC_TRUE=
3842 am__fastdepCC_FALSE='#'
3843 else
3844 am__fastdepCC_TRUE='#'
3845 am__fastdepCC_FALSE=
3846 fi
3847
3848
3849 if test "x$CC" != xcc; then
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3851 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3852 else
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3854 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3855 fi
3856 set dummy $CC; ac_cc=`$as_echo "$2" |
3857 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3858 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3863
3864 int
3865 main ()
3866 {
3867
3868 ;
3869 return 0;
3870 }
3871 _ACEOF
3872 # Make sure it works both with $CC and with simple cc.
3873 # We do the test twice because some compilers refuse to overwrite an
3874 # existing .o file with -o, though they will create one.
3875 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3876 rm -f conftest2.*
3877 if { { case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880 esac
3881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3882 $as_echo "$ac_try_echo"; } >&5
3883 (eval "$ac_try") 2>&5
3884 ac_status=$?
3885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3886 test $ac_status = 0; } &&
3887 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3890 esac
3891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3892 $as_echo "$ac_try_echo"; } >&5
3893 (eval "$ac_try") 2>&5
3894 ac_status=$?
3895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3896 test $ac_status = 0; };
3897 then
3898 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3899 if test "x$CC" != xcc; then
3900 # Test first that cc exists at all.
3901 if { ac_try='cc -c conftest.$ac_ext >&5'
3902 { { case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3905 esac
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 $as_echo "$ac_try_echo"; } >&5
3908 (eval "$ac_try") 2>&5
3909 ac_status=$?
3910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911 test $ac_status = 0; }; }; then
3912 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3913 rm -f conftest2.*
3914 if { { case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_try") 2>&5
3921 ac_status=$?
3922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; } &&
3924 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3927 esac
3928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3929 $as_echo "$ac_try_echo"; } >&5
3930 (eval "$ac_try") 2>&5
3931 ac_status=$?
3932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3933 test $ac_status = 0; };
3934 then
3935 # cc works too.
3936 :
3937 else
3938 # cc exists but doesn't like -o.
3939 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3940 fi
3941 fi
3942 fi
3943 else
3944 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3945 fi
3946 rm -f core conftest*
3947
3948 fi
3949 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3951 $as_echo "yes" >&6; }
3952 else
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 $as_echo "no" >&6; }
3955
3956 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3957
3958 fi
3959
3960 # FIXME: we rely on the cache variable name because
3961 # there is no other way.
3962 set dummy $CC
3963 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3964 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3965 if test "$am_t" != yes; then
3966 # Losing compiler, so override with the script.
3967 # FIXME: It is wrong to rewrite CC.
3968 # But if we don't then we get into trouble of one sort or another.
3969 # A longer-term fix would be to have automake use am__CC in this case,
3970 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3971 CC="$am_aux_dir/compile $CC"
3972 fi
3973
3974
3975
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3977 $as_echo_n "checking whether ln -s works... " >&6; }
3978 LN_S=$as_ln_s
3979 if test "$LN_S" = "ln -s"; then
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3981 $as_echo "yes" >&6; }
3982 else
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3984 $as_echo "no, using $LN_S" >&6; }
3985 fi
3986
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3988 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3989 set x ${MAKE-make}
3990 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3991 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 cat >conftest.make <<\_ACEOF
3995 SHELL = /bin/sh
3996 all:
3997 @echo '@@@%%%=$(MAKE)=@@@%%%'
3998 _ACEOF
3999 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4000 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4001 *@@@%%%=?*=@@@%%%*)
4002 eval ac_cv_prog_make_${ac_make}_set=yes;;
4003 *)
4004 eval ac_cv_prog_make_${ac_make}_set=no;;
4005 esac
4006 rm -f conftest.make
4007 fi
4008 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4010 $as_echo "yes" >&6; }
4011 SET_MAKE=
4012 else
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4015 SET_MAKE="MAKE=${MAKE-make}"
4016 fi
4017
4018
4019
4020
4021
4022
4023 case `pwd` in
4024 *\ * | *\ *)
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4026 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4027 esac
4028
4029
4030
4031 macro_version='2.4.2'
4032 macro_revision='1.3337'
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046 ltmain="$ac_aux_dir/ltmain.sh"
4047
4048 # Backslashify metacharacters that are still active within
4049 # double-quoted strings.
4050 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4051
4052 # Same as above, but do not quote variable references.
4053 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4054
4055 # Sed substitution to delay expansion of an escaped shell variable in a
4056 # double_quote_subst'ed string.
4057 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4058
4059 # Sed substitution to delay expansion of an escaped single quote.
4060 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4061
4062 # Sed substitution to avoid accidental globbing in evaled expressions
4063 no_glob_subst='s/\*/\\\*/g'
4064
4065 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4066 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4067 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4068
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4070 $as_echo_n "checking how to print strings... " >&6; }
4071 # Test print first, because it will be a builtin if present.
4072 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4073 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4074 ECHO='print -r --'
4075 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4076 ECHO='printf %s\n'
4077 else
4078 # Use this function as a fallback that always works.
4079 func_fallback_echo ()
4080 {
4081 eval 'cat <<_LTECHO_EOF
4082 $1
4083 _LTECHO_EOF'
4084 }
4085 ECHO='func_fallback_echo'
4086 fi
4087
4088 # func_echo_all arg...
4089 # Invoke $ECHO with all args, space-separated.
4090 func_echo_all ()
4091 {
4092 $ECHO ""
4093 }
4094
4095 case "$ECHO" in
4096 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4097 $as_echo "printf" >&6; } ;;
4098 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4099 $as_echo "print -r" >&6; } ;;
4100 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4101 $as_echo "cat" >&6; } ;;
4102 esac
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4118 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4119 if ${ac_cv_path_SED+:} false; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4123 for ac_i in 1 2 3 4 5 6 7; do
4124 ac_script="$ac_script$as_nl$ac_script"
4125 done
4126 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4127 { ac_script=; unset ac_script;}
4128 if test -z "$SED"; then
4129 ac_path_SED_found=false
4130 # Loop through the user's path and test for each of PROGNAME-LIST
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134 IFS=$as_save_IFS
4135 test -z "$as_dir" && as_dir=.
4136 for ac_prog in sed gsed; do
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4139 as_fn_executable_p "$ac_path_SED" || continue
4140 # Check for GNU ac_path_SED and select it if it is found.
4141 # Check for GNU $ac_path_SED
4142 case `"$ac_path_SED" --version 2>&1` in
4143 *GNU*)
4144 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4145 *)
4146 ac_count=0
4147 $as_echo_n 0123456789 >"conftest.in"
4148 while :
4149 do
4150 cat "conftest.in" "conftest.in" >"conftest.tmp"
4151 mv "conftest.tmp" "conftest.in"
4152 cp "conftest.in" "conftest.nl"
4153 $as_echo '' >> "conftest.nl"
4154 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4155 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4156 as_fn_arith $ac_count + 1 && ac_count=$as_val
4157 if test $ac_count -gt ${ac_path_SED_max-0}; then
4158 # Best one so far, save it but keep looking for a better one
4159 ac_cv_path_SED="$ac_path_SED"
4160 ac_path_SED_max=$ac_count
4161 fi
4162 # 10*(2^10) chars as input seems more than enough
4163 test $ac_count -gt 10 && break
4164 done
4165 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4166 esac
4167
4168 $ac_path_SED_found && break 3
4169 done
4170 done
4171 done
4172 IFS=$as_save_IFS
4173 if test -z "$ac_cv_path_SED"; then
4174 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4175 fi
4176 else
4177 ac_cv_path_SED=$SED
4178 fi
4179
4180 fi
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4182 $as_echo "$ac_cv_path_SED" >&6; }
4183 SED="$ac_cv_path_SED"
4184 rm -f conftest.sed
4185
4186 test -z "$SED" && SED=sed
4187 Xsed="$SED -e 1s/^X//"
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4200 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4201 if ${ac_cv_path_GREP+:} false; then :
4202 $as_echo_n "(cached) " >&6
4203 else
4204 if test -z "$GREP"; then
4205 ac_path_GREP_found=false
4206 # Loop through the user's path and test for each of PROGNAME-LIST
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4209 do
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_prog in grep ggrep; do
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4215 as_fn_executable_p "$ac_path_GREP" || continue
4216 # Check for GNU ac_path_GREP and select it if it is found.
4217 # Check for GNU $ac_path_GREP
4218 case `"$ac_path_GREP" --version 2>&1` in
4219 *GNU*)
4220 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4221 *)
4222 ac_count=0
4223 $as_echo_n 0123456789 >"conftest.in"
4224 while :
4225 do
4226 cat "conftest.in" "conftest.in" >"conftest.tmp"
4227 mv "conftest.tmp" "conftest.in"
4228 cp "conftest.in" "conftest.nl"
4229 $as_echo 'GREP' >> "conftest.nl"
4230 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4232 as_fn_arith $ac_count + 1 && ac_count=$as_val
4233 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4234 # Best one so far, save it but keep looking for a better one
4235 ac_cv_path_GREP="$ac_path_GREP"
4236 ac_path_GREP_max=$ac_count
4237 fi
4238 # 10*(2^10) chars as input seems more than enough
4239 test $ac_count -gt 10 && break
4240 done
4241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4242 esac
4243
4244 $ac_path_GREP_found && break 3
4245 done
4246 done
4247 done
4248 IFS=$as_save_IFS
4249 if test -z "$ac_cv_path_GREP"; then
4250 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4251 fi
4252 else
4253 ac_cv_path_GREP=$GREP
4254 fi
4255
4256 fi
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4258 $as_echo "$ac_cv_path_GREP" >&6; }
4259 GREP="$ac_cv_path_GREP"
4260
4261
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4263 $as_echo_n "checking for egrep... " >&6; }
4264 if ${ac_cv_path_EGREP+:} false; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4268 then ac_cv_path_EGREP="$GREP -E"
4269 else
4270 if test -z "$EGREP"; then
4271 ac_path_EGREP_found=false
4272 # Loop through the user's path and test for each of PROGNAME-LIST
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4275 do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_prog in egrep; do
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4281 as_fn_executable_p "$ac_path_EGREP" || continue
4282 # Check for GNU ac_path_EGREP and select it if it is found.
4283 # Check for GNU $ac_path_EGREP
4284 case `"$ac_path_EGREP" --version 2>&1` in
4285 *GNU*)
4286 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4287 *)
4288 ac_count=0
4289 $as_echo_n 0123456789 >"conftest.in"
4290 while :
4291 do
4292 cat "conftest.in" "conftest.in" >"conftest.tmp"
4293 mv "conftest.tmp" "conftest.in"
4294 cp "conftest.in" "conftest.nl"
4295 $as_echo 'EGREP' >> "conftest.nl"
4296 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4298 as_fn_arith $ac_count + 1 && ac_count=$as_val
4299 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4300 # Best one so far, save it but keep looking for a better one
4301 ac_cv_path_EGREP="$ac_path_EGREP"
4302 ac_path_EGREP_max=$ac_count
4303 fi
4304 # 10*(2^10) chars as input seems more than enough
4305 test $ac_count -gt 10 && break
4306 done
4307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4308 esac
4309
4310 $ac_path_EGREP_found && break 3
4311 done
4312 done
4313 done
4314 IFS=$as_save_IFS
4315 if test -z "$ac_cv_path_EGREP"; then
4316 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4317 fi
4318 else
4319 ac_cv_path_EGREP=$EGREP
4320 fi
4321
4322 fi
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4325 $as_echo "$ac_cv_path_EGREP" >&6; }
4326 EGREP="$ac_cv_path_EGREP"
4327
4328
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4330 $as_echo_n "checking for fgrep... " >&6; }
4331 if ${ac_cv_path_FGREP+:} false; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4335 then ac_cv_path_FGREP="$GREP -F"
4336 else
4337 if test -z "$FGREP"; then
4338 ac_path_FGREP_found=false
4339 # Loop through the user's path and test for each of PROGNAME-LIST
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4342 do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
4345 for ac_prog in fgrep; do
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4348 as_fn_executable_p "$ac_path_FGREP" || continue
4349 # Check for GNU ac_path_FGREP and select it if it is found.
4350 # Check for GNU $ac_path_FGREP
4351 case `"$ac_path_FGREP" --version 2>&1` in
4352 *GNU*)
4353 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4354 *)
4355 ac_count=0
4356 $as_echo_n 0123456789 >"conftest.in"
4357 while :
4358 do
4359 cat "conftest.in" "conftest.in" >"conftest.tmp"
4360 mv "conftest.tmp" "conftest.in"
4361 cp "conftest.in" "conftest.nl"
4362 $as_echo 'FGREP' >> "conftest.nl"
4363 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4365 as_fn_arith $ac_count + 1 && ac_count=$as_val
4366 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4367 # Best one so far, save it but keep looking for a better one
4368 ac_cv_path_FGREP="$ac_path_FGREP"
4369 ac_path_FGREP_max=$ac_count
4370 fi
4371 # 10*(2^10) chars as input seems more than enough
4372 test $ac_count -gt 10 && break
4373 done
4374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4375 esac
4376
4377 $ac_path_FGREP_found && break 3
4378 done
4379 done
4380 done
4381 IFS=$as_save_IFS
4382 if test -z "$ac_cv_path_FGREP"; then
4383 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4384 fi
4385 else
4386 ac_cv_path_FGREP=$FGREP
4387 fi
4388
4389 fi
4390 fi
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4392 $as_echo "$ac_cv_path_FGREP" >&6; }
4393 FGREP="$ac_cv_path_FGREP"
4394
4395
4396 test -z "$GREP" && GREP=grep
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416 # Check whether --with-gnu-ld was given.
4417 if test "${with_gnu_ld+set}" = set; then :
4418 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4419 else
4420 with_gnu_ld=no
4421 fi
4422
4423 ac_prog=ld
4424 if test "$GCC" = yes; then
4425 # Check if gcc -print-prog-name=ld gives a path.
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4427 $as_echo_n "checking for ld used by $CC... " >&6; }
4428 case $host in
4429 *-*-mingw*)
4430 # gcc leaves a trailing carriage return which upsets mingw
4431 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4432 *)
4433 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4434 esac
4435 case $ac_prog in
4436 # Accept absolute paths.
4437 [\\/]* | ?:[\\/]*)
4438 re_direlt='/[^/][^/]*/\.\./'
4439 # Canonicalize the pathname of ld
4440 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4441 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4442 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4443 done
4444 test -z "$LD" && LD="$ac_prog"
4445 ;;
4446 "")
4447 # If it fails, then pretend we aren't using GCC.
4448 ac_prog=ld
4449 ;;
4450 *)
4451 # If it is relative, then search for the first ld in PATH.
4452 with_gnu_ld=unknown
4453 ;;
4454 esac
4455 elif test "$with_gnu_ld" = yes; then
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4457 $as_echo_n "checking for GNU ld... " >&6; }
4458 else
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4460 $as_echo_n "checking for non-GNU ld... " >&6; }
4461 fi
4462 if ${lt_cv_path_LD+:} false; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 if test -z "$LD"; then
4466 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4467 for ac_dir in $PATH; do
4468 IFS="$lt_save_ifs"
4469 test -z "$ac_dir" && ac_dir=.
4470 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4471 lt_cv_path_LD="$ac_dir/$ac_prog"
4472 # Check to see if the program is GNU ld. I'd rather use --version,
4473 # but apparently some variants of GNU ld only accept -v.
4474 # Break only if it was the GNU/non-GNU ld that we prefer.
4475 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4476 *GNU* | *'with BFD'*)
4477 test "$with_gnu_ld" != no && break
4478 ;;
4479 *)
4480 test "$with_gnu_ld" != yes && break
4481 ;;
4482 esac
4483 fi
4484 done
4485 IFS="$lt_save_ifs"
4486 else
4487 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4488 fi
4489 fi
4490
4491 LD="$lt_cv_path_LD"
4492 if test -n "$LD"; then
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4494 $as_echo "$LD" >&6; }
4495 else
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497 $as_echo "no" >&6; }
4498 fi
4499 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4501 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4502 if ${lt_cv_prog_gnu_ld+:} false; then :
4503 $as_echo_n "(cached) " >&6
4504 else
4505 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4506 case `$LD -v 2>&1 </dev/null` in
4507 *GNU* | *'with BFD'*)
4508 lt_cv_prog_gnu_ld=yes
4509 ;;
4510 *)
4511 lt_cv_prog_gnu_ld=no
4512 ;;
4513 esac
4514 fi
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4516 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4517 with_gnu_ld=$lt_cv_prog_gnu_ld
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4528 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4529 if ${lt_cv_path_NM+:} false; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 if test -n "$NM"; then
4533 # Let the user override the test.
4534 lt_cv_path_NM="$NM"
4535 else
4536 lt_nm_to_check="${ac_tool_prefix}nm"
4537 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4538 lt_nm_to_check="$lt_nm_to_check nm"
4539 fi
4540 for lt_tmp_nm in $lt_nm_to_check; do
4541 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4542 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4543 IFS="$lt_save_ifs"
4544 test -z "$ac_dir" && ac_dir=.
4545 tmp_nm="$ac_dir/$lt_tmp_nm"
4546 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4547 # Check to see if the nm accepts a BSD-compat flag.
4548 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4549 # nm: unknown option "B" ignored
4550 # Tru64's nm complains that /dev/null is an invalid object file
4551 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4552 */dev/null* | *'Invalid file or object type'*)
4553 lt_cv_path_NM="$tmp_nm -B"
4554 break
4555 ;;
4556 *)
4557 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4558 */dev/null*)
4559 lt_cv_path_NM="$tmp_nm -p"
4560 break
4561 ;;
4562 *)
4563 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4564 continue # so that we can try to find one that supports BSD flags
4565 ;;
4566 esac
4567 ;;
4568 esac
4569 fi
4570 done
4571 IFS="$lt_save_ifs"
4572 done
4573 : ${lt_cv_path_NM=no}
4574 fi
4575 fi
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4577 $as_echo "$lt_cv_path_NM" >&6; }
4578 if test "$lt_cv_path_NM" != "no"; then
4579 NM="$lt_cv_path_NM"
4580 else
4581 # Didn't find any BSD compatible name lister, look for dumpbin.
4582 if test -n "$DUMPBIN"; then :
4583 # Let the user override the test.
4584 else
4585 if test -n "$ac_tool_prefix"; then
4586 for ac_prog in dumpbin "link -dump"
4587 do
4588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591 $as_echo_n "checking for $ac_word... " >&6; }
4592 if ${ac_cv_prog_DUMPBIN+:} false; then :
4593 $as_echo_n "(cached) " >&6
4594 else
4595 if test -n "$DUMPBIN"; then
4596 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4597 else
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4600 do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4605 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 break 2
4608 fi
4609 done
4610 done
4611 IFS=$as_save_IFS
4612
4613 fi
4614 fi
4615 DUMPBIN=$ac_cv_prog_DUMPBIN
4616 if test -n "$DUMPBIN"; then
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4618 $as_echo "$DUMPBIN" >&6; }
4619 else
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621 $as_echo "no" >&6; }
4622 fi
4623
4624
4625 test -n "$DUMPBIN" && break
4626 done
4627 fi
4628 if test -z "$DUMPBIN"; then
4629 ac_ct_DUMPBIN=$DUMPBIN
4630 for ac_prog in dumpbin "link -dump"
4631 do
4632 # Extract the first word of "$ac_prog", so it can be a program name with args.
4633 set dummy $ac_prog; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 if test -n "$ac_ct_DUMPBIN"; then
4640 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4652 fi
4653 done
4654 done
4655 IFS=$as_save_IFS
4656
4657 fi
4658 fi
4659 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4660 if test -n "$ac_ct_DUMPBIN"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4662 $as_echo "$ac_ct_DUMPBIN" >&6; }
4663 else
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4666 fi
4667
4668
4669 test -n "$ac_ct_DUMPBIN" && break
4670 done
4671
4672 if test "x$ac_ct_DUMPBIN" = x; then
4673 DUMPBIN=":"
4674 else
4675 case $cross_compiling:$ac_tool_warned in
4676 yes:)
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4679 ac_tool_warned=yes ;;
4680 esac
4681 DUMPBIN=$ac_ct_DUMPBIN
4682 fi
4683 fi
4684
4685 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4686 *COFF*)
4687 DUMPBIN="$DUMPBIN -symbols"
4688 ;;
4689 *)
4690 DUMPBIN=:
4691 ;;
4692 esac
4693 fi
4694
4695 if test "$DUMPBIN" != ":"; then
4696 NM="$DUMPBIN"
4697 fi
4698 fi
4699 test -z "$NM" && NM=nm
4700
4701
4702
4703
4704
4705
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4707 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4708 if ${lt_cv_nm_interface+:} false; then :
4709 $as_echo_n "(cached) " >&6
4710 else
4711 lt_cv_nm_interface="BSD nm"
4712 echo "int some_variable = 0;" > conftest.$ac_ext
4713 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4714 (eval "$ac_compile" 2>conftest.err)
4715 cat conftest.err >&5
4716 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4717 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4718 cat conftest.err >&5
4719 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4720 cat conftest.out >&5
4721 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4722 lt_cv_nm_interface="MS dumpbin"
4723 fi
4724 rm -f conftest*
4725 fi
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4727 $as_echo "$lt_cv_nm_interface" >&6; }
4728
4729 # find the maximum length of command line arguments
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4731 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4732 if ${lt_cv_sys_max_cmd_len+:} false; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 i=0
4736 teststring="ABCD"
4737
4738 case $build_os in
4739 msdosdjgpp*)
4740 # On DJGPP, this test can blow up pretty badly due to problems in libc
4741 # (any single argument exceeding 2000 bytes causes a buffer overrun
4742 # during glob expansion). Even if it were fixed, the result of this
4743 # check would be larger than it should be.
4744 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4745 ;;
4746
4747 gnu*)
4748 # Under GNU Hurd, this test is not required because there is
4749 # no limit to the length of command line arguments.
4750 # Libtool will interpret -1 as no limit whatsoever
4751 lt_cv_sys_max_cmd_len=-1;
4752 ;;
4753
4754 cygwin* | mingw* | cegcc*)
4755 # On Win9x/ME, this test blows up -- it succeeds, but takes
4756 # about 5 minutes as the teststring grows exponentially.
4757 # Worse, since 9x/ME are not pre-emptively multitasking,
4758 # you end up with a "frozen" computer, even though with patience
4759 # the test eventually succeeds (with a max line length of 256k).
4760 # Instead, let's just punt: use the minimum linelength reported by
4761 # all of the supported platforms: 8192 (on NT/2K/XP).
4762 lt_cv_sys_max_cmd_len=8192;
4763 ;;
4764
4765 mint*)
4766 # On MiNT this can take a long time and run out of memory.
4767 lt_cv_sys_max_cmd_len=8192;
4768 ;;
4769
4770 amigaos*)
4771 # On AmigaOS with pdksh, this test takes hours, literally.
4772 # So we just punt and use a minimum line length of 8192.
4773 lt_cv_sys_max_cmd_len=8192;
4774 ;;
4775
4776 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4777 # This has been around since 386BSD, at least. Likely further.
4778 if test -x /sbin/sysctl; then
4779 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4780 elif test -x /usr/sbin/sysctl; then
4781 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4782 else
4783 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4784 fi
4785 # And add a safety zone
4786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4788 ;;
4789
4790 interix*)
4791 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4792 lt_cv_sys_max_cmd_len=196608
4793 ;;
4794
4795 os2*)
4796 # The test takes a long time on OS/2.
4797 lt_cv_sys_max_cmd_len=8192
4798 ;;
4799
4800 osf*)
4801 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4802 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4803 # nice to cause kernel panics so lets avoid the loop below.
4804 # First set a reasonable default.
4805 lt_cv_sys_max_cmd_len=16384
4806 #
4807 if test -x /sbin/sysconfig; then
4808 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4809 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4810 esac
4811 fi
4812 ;;
4813 sco3.2v5*)
4814 lt_cv_sys_max_cmd_len=102400
4815 ;;
4816 sysv5* | sco5v6* | sysv4.2uw2*)
4817 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4818 if test -n "$kargmax"; then
4819 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4820 else
4821 lt_cv_sys_max_cmd_len=32768
4822 fi
4823 ;;
4824 *)
4825 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4826 if test -n "$lt_cv_sys_max_cmd_len"; then
4827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4828 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4829 else
4830 # Make teststring a little bigger before we do anything with it.
4831 # a 1K string should be a reasonable start.
4832 for i in 1 2 3 4 5 6 7 8 ; do
4833 teststring=$teststring$teststring
4834 done
4835 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4836 # If test is not a shell built-in, we'll probably end up computing a
4837 # maximum length that is only half of the actual maximum length, but
4838 # we can't tell.
4839 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4840 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4841 test $i != 17 # 1/2 MB should be enough
4842 do
4843 i=`expr $i + 1`
4844 teststring=$teststring$teststring
4845 done
4846 # Only check the string length outside the loop.
4847 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4848 teststring=
4849 # Add a significant safety factor because C++ compilers can tack on
4850 # massive amounts of additional arguments before passing them to the
4851 # linker. It appears as though 1/2 is a usable value.
4852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4853 fi
4854 ;;
4855 esac
4856
4857 fi
4858
4859 if test -n $lt_cv_sys_max_cmd_len ; then
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4861 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4862 else
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4864 $as_echo "none" >&6; }
4865 fi
4866 max_cmd_len=$lt_cv_sys_max_cmd_len
4867
4868
4869
4870
4871
4872
4873 : ${CP="cp -f"}
4874 : ${MV="mv -f"}
4875 : ${RM="rm -f"}
4876
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4878 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4879 # Try some XSI features
4880 xsi_shell=no
4881 ( _lt_dummy="a/b/c"
4882 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4883 = c,a/b,b/c, \
4884 && eval 'test $(( 1 + 1 )) -eq 2 \
4885 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4886 && xsi_shell=yes
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4888 $as_echo "$xsi_shell" >&6; }
4889
4890
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4892 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4893 lt_shell_append=no
4894 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4895 >/dev/null 2>&1 \
4896 && lt_shell_append=yes
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4898 $as_echo "$lt_shell_append" >&6; }
4899
4900
4901 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4902 lt_unset=unset
4903 else
4904 lt_unset=false
4905 fi
4906
4907
4908
4909
4910
4911 # test EBCDIC or ASCII
4912 case `echo X|tr X '\101'` in
4913 A) # ASCII based system
4914 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4915 lt_SP2NL='tr \040 \012'
4916 lt_NL2SP='tr \015\012 \040\040'
4917 ;;
4918 *) # EBCDIC based system
4919 lt_SP2NL='tr \100 \n'
4920 lt_NL2SP='tr \r\n \100\100'
4921 ;;
4922 esac
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4933 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4934 if ${lt_cv_to_host_file_cmd+:} false; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 case $host in
4938 *-*-mingw* )
4939 case $build in
4940 *-*-mingw* ) # actually msys
4941 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4942 ;;
4943 *-*-cygwin* )
4944 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4945 ;;
4946 * ) # otherwise, assume *nix
4947 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4948 ;;
4949 esac
4950 ;;
4951 *-*-cygwin* )
4952 case $build in
4953 *-*-mingw* ) # actually msys
4954 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4955 ;;
4956 *-*-cygwin* )
4957 lt_cv_to_host_file_cmd=func_convert_file_noop
4958 ;;
4959 * ) # otherwise, assume *nix
4960 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4961 ;;
4962 esac
4963 ;;
4964 * ) # unhandled hosts (and "normal" native builds)
4965 lt_cv_to_host_file_cmd=func_convert_file_noop
4966 ;;
4967 esac
4968
4969 fi
4970
4971 to_host_file_cmd=$lt_cv_to_host_file_cmd
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4973 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4974
4975
4976
4977
4978
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4980 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4981 if ${lt_cv_to_tool_file_cmd+:} false; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 #assume ordinary cross tools, or native build.
4985 lt_cv_to_tool_file_cmd=func_convert_file_noop
4986 case $host in
4987 *-*-mingw* )
4988 case $build in
4989 *-*-mingw* ) # actually msys
4990 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4991 ;;
4992 esac
4993 ;;
4994 esac
4995
4996 fi
4997
4998 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5000 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5001
5002
5003
5004
5005
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5007 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5008 if ${lt_cv_ld_reload_flag+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 lt_cv_ld_reload_flag='-r'
5012 fi
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5014 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5015 reload_flag=$lt_cv_ld_reload_flag
5016 case $reload_flag in
5017 "" | " "*) ;;
5018 *) reload_flag=" $reload_flag" ;;
5019 esac
5020 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5021 case $host_os in
5022 cygwin* | mingw* | pw32* | cegcc*)
5023 if test "$GCC" != yes; then
5024 reload_cmds=false
5025 fi
5026 ;;
5027 darwin*)
5028 if test "$GCC" = yes; then
5029 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5030 else
5031 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5032 fi
5033 ;;
5034 esac
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044 if test -n "$ac_tool_prefix"; then
5045 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5046 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if ${ac_cv_prog_OBJDUMP+:} false; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 if test -n "$OBJDUMP"; then
5053 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5057 do
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5062 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5065 fi
5066 done
5067 done
5068 IFS=$as_save_IFS
5069
5070 fi
5071 fi
5072 OBJDUMP=$ac_cv_prog_OBJDUMP
5073 if test -n "$OBJDUMP"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5075 $as_echo "$OBJDUMP" >&6; }
5076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5079 fi
5080
5081
5082 fi
5083 if test -z "$ac_cv_prog_OBJDUMP"; then
5084 ac_ct_OBJDUMP=$OBJDUMP
5085 # Extract the first word of "objdump", so it can be a program name with args.
5086 set dummy objdump; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 if test -n "$ac_ct_OBJDUMP"; then
5093 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5097 do
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5102 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5105 fi
5106 done
5107 done
5108 IFS=$as_save_IFS
5109
5110 fi
5111 fi
5112 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5113 if test -n "$ac_ct_OBJDUMP"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5115 $as_echo "$ac_ct_OBJDUMP" >&6; }
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5119 fi
5120
5121 if test "x$ac_ct_OBJDUMP" = x; then
5122 OBJDUMP="false"
5123 else
5124 case $cross_compiling:$ac_tool_warned in
5125 yes:)
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5128 ac_tool_warned=yes ;;
5129 esac
5130 OBJDUMP=$ac_ct_OBJDUMP
5131 fi
5132 else
5133 OBJDUMP="$ac_cv_prog_OBJDUMP"
5134 fi
5135
5136 test -z "$OBJDUMP" && OBJDUMP=objdump
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5147 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5148 if ${lt_cv_deplibs_check_method+:} false; then :
5149 $as_echo_n "(cached) " >&6
5150 else
5151 lt_cv_file_magic_cmd='$MAGIC_CMD'
5152 lt_cv_file_magic_test_file=
5153 lt_cv_deplibs_check_method='unknown'
5154 # Need to set the preceding variable on all platforms that support
5155 # interlibrary dependencies.
5156 # 'none' -- dependencies not supported.
5157 # `unknown' -- same as none, but documents that we really don't know.
5158 # 'pass_all' -- all dependencies passed with no checks.
5159 # 'test_compile' -- check by making test program.
5160 # 'file_magic [[regex]]' -- check by looking for files in library path
5161 # which responds to the $file_magic_cmd with a given extended regex.
5162 # If you have `file' or equivalent on your system and you're not sure
5163 # whether `pass_all' will *always* work, you probably want this one.
5164
5165 case $host_os in
5166 aix[4-9]*)
5167 lt_cv_deplibs_check_method=pass_all
5168 ;;
5169
5170 beos*)
5171 lt_cv_deplibs_check_method=pass_all
5172 ;;
5173
5174 bsdi[45]*)
5175 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5176 lt_cv_file_magic_cmd='/usr/bin/file -L'
5177 lt_cv_file_magic_test_file=/shlib/libc.so
5178 ;;
5179
5180 cygwin*)
5181 # func_win32_libid is a shell function defined in ltmain.sh
5182 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5183 lt_cv_file_magic_cmd='func_win32_libid'
5184 ;;
5185
5186 mingw* | pw32*)
5187 # Base MSYS/MinGW do not provide the 'file' command needed by
5188 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5189 # unless we find 'file', for example because we are cross-compiling.
5190 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5191 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5192 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5193 lt_cv_file_magic_cmd='func_win32_libid'
5194 else
5195 # Keep this pattern in sync with the one in func_win32_libid.
5196 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5197 lt_cv_file_magic_cmd='$OBJDUMP -f'
5198 fi
5199 ;;
5200
5201 cegcc*)
5202 # use the weaker test based on 'objdump'. See mingw*.
5203 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5204 lt_cv_file_magic_cmd='$OBJDUMP -f'
5205 ;;
5206
5207 darwin* | rhapsody*)
5208 lt_cv_deplibs_check_method=pass_all
5209 ;;
5210
5211 freebsd* | dragonfly*)
5212 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5213 case $host_cpu in
5214 i*86 )
5215 # Not sure whether the presence of OpenBSD here was a mistake.
5216 # Let's accept both of them until this is cleared up.
5217 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5218 lt_cv_file_magic_cmd=/usr/bin/file
5219 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5220 ;;
5221 esac
5222 else
5223 lt_cv_deplibs_check_method=pass_all
5224 fi
5225 ;;
5226
5227 haiku*)
5228 lt_cv_deplibs_check_method=pass_all
5229 ;;
5230
5231 hpux10.20* | hpux11*)
5232 lt_cv_file_magic_cmd=/usr/bin/file
5233 case $host_cpu in
5234 ia64*)
5235 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5236 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5237 ;;
5238 hppa*64*)
5239 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]'
5240 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5241 ;;
5242 *)
5243 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5244 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5245 ;;
5246 esac
5247 ;;
5248
5249 interix[3-9]*)
5250 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5251 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5252 ;;
5253
5254 irix5* | irix6* | nonstopux*)
5255 case $LD in
5256 *-32|*"-32 ") libmagic=32-bit;;
5257 *-n32|*"-n32 ") libmagic=N32;;
5258 *-64|*"-64 ") libmagic=64-bit;;
5259 *) libmagic=never-match;;
5260 esac
5261 lt_cv_deplibs_check_method=pass_all
5262 ;;
5263
5264 # This must be glibc/ELF.
5265 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5266 lt_cv_deplibs_check_method=pass_all
5267 ;;
5268
5269 netbsd* | netbsdelf*-gnu)
5270 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5272 else
5273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5274 fi
5275 ;;
5276
5277 newos6*)
5278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5279 lt_cv_file_magic_cmd=/usr/bin/file
5280 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5281 ;;
5282
5283 *nto* | *qnx*)
5284 lt_cv_deplibs_check_method=pass_all
5285 ;;
5286
5287 openbsd*)
5288 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5290 else
5291 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5292 fi
5293 ;;
5294
5295 osf3* | osf4* | osf5*)
5296 lt_cv_deplibs_check_method=pass_all
5297 ;;
5298
5299 rdos*)
5300 lt_cv_deplibs_check_method=pass_all
5301 ;;
5302
5303 solaris*)
5304 lt_cv_deplibs_check_method=pass_all
5305 ;;
5306
5307 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5308 lt_cv_deplibs_check_method=pass_all
5309 ;;
5310
5311 sysv4 | sysv4.3*)
5312 case $host_vendor in
5313 motorola)
5314 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]'
5315 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5316 ;;
5317 ncr)
5318 lt_cv_deplibs_check_method=pass_all
5319 ;;
5320 sequent)
5321 lt_cv_file_magic_cmd='/bin/file'
5322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5323 ;;
5324 sni)
5325 lt_cv_file_magic_cmd='/bin/file'
5326 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5327 lt_cv_file_magic_test_file=/lib/libc.so
5328 ;;
5329 siemens)
5330 lt_cv_deplibs_check_method=pass_all
5331 ;;
5332 pc)
5333 lt_cv_deplibs_check_method=pass_all
5334 ;;
5335 esac
5336 ;;
5337
5338 tpf*)
5339 lt_cv_deplibs_check_method=pass_all
5340 ;;
5341 esac
5342
5343 fi
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5345 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5346
5347 file_magic_glob=
5348 want_nocaseglob=no
5349 if test "$build" = "$host"; then
5350 case $host_os in
5351 mingw* | pw32*)
5352 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5353 want_nocaseglob=yes
5354 else
5355 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5356 fi
5357 ;;
5358 esac
5359 fi
5360
5361 file_magic_cmd=$lt_cv_file_magic_cmd
5362 deplibs_check_method=$lt_cv_deplibs_check_method
5363 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386 if test -n "$ac_tool_prefix"; then
5387 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5388 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5390 $as_echo_n "checking for $ac_word... " >&6; }
5391 if ${ac_cv_prog_DLLTOOL+:} false; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 if test -n "$DLLTOOL"; then
5395 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5396 else
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5399 do
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5407 fi
5408 done
5409 done
5410 IFS=$as_save_IFS
5411
5412 fi
5413 fi
5414 DLLTOOL=$ac_cv_prog_DLLTOOL
5415 if test -n "$DLLTOOL"; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5417 $as_echo "$DLLTOOL" >&6; }
5418 else
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5421 fi
5422
5423
5424 fi
5425 if test -z "$ac_cv_prog_DLLTOOL"; then
5426 ac_ct_DLLTOOL=$DLLTOOL
5427 # Extract the first word of "dlltool", so it can be a program name with args.
5428 set dummy dlltool; ac_word=$2
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430 $as_echo_n "checking for $ac_word... " >&6; }
5431 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 if test -n "$ac_ct_DLLTOOL"; then
5435 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5436 else
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 for as_dir in $PATH
5439 do
5440 IFS=$as_save_IFS
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5444 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 break 2
5447 fi
5448 done
5449 done
5450 IFS=$as_save_IFS
5451
5452 fi
5453 fi
5454 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5455 if test -n "$ac_ct_DLLTOOL"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5457 $as_echo "$ac_ct_DLLTOOL" >&6; }
5458 else
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5461 fi
5462
5463 if test "x$ac_ct_DLLTOOL" = x; then
5464 DLLTOOL="false"
5465 else
5466 case $cross_compiling:$ac_tool_warned in
5467 yes:)
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5470 ac_tool_warned=yes ;;
5471 esac
5472 DLLTOOL=$ac_ct_DLLTOOL
5473 fi
5474 else
5475 DLLTOOL="$ac_cv_prog_DLLTOOL"
5476 fi
5477
5478 test -z "$DLLTOOL" && DLLTOOL=dlltool
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5490 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5491 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 lt_cv_sharedlib_from_linklib_cmd='unknown'
5495
5496 case $host_os in
5497 cygwin* | mingw* | pw32* | cegcc*)
5498 # two different shell functions defined in ltmain.sh
5499 # decide which to use based on capabilities of $DLLTOOL
5500 case `$DLLTOOL --help 2>&1` in
5501 *--identify-strict*)
5502 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5503 ;;
5504 *)
5505 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5506 ;;
5507 esac
5508 ;;
5509 *)
5510 # fallback: assume linklib IS sharedlib
5511 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5512 ;;
5513 esac
5514
5515 fi
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5517 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5518 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5519 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5520
5521
5522
5523
5524
5525
5526
5527
5528 if test -n "$ac_tool_prefix"; then
5529 for ac_prog in ar
5530 do
5531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_prog_AR+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 if test -n "$AR"; then
5539 ac_cv_prog_AR="$AR" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5543 do
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5551 fi
5552 done
5553 done
5554 IFS=$as_save_IFS
5555
5556 fi
5557 fi
5558 AR=$ac_cv_prog_AR
5559 if test -n "$AR"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5561 $as_echo "$AR" >&6; }
5562 else
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5565 fi
5566
5567
5568 test -n "$AR" && break
5569 done
5570 fi
5571 if test -z "$AR"; then
5572 ac_ct_AR=$AR
5573 for ac_prog in ar
5574 do
5575 # Extract the first word of "$ac_prog", so it can be a program name with args.
5576 set dummy $ac_prog; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 if test -n "$ac_ct_AR"; then
5583 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5587 do
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592 ac_cv_prog_ac_ct_AR="$ac_prog"
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 break 2
5595 fi
5596 done
5597 done
5598 IFS=$as_save_IFS
5599
5600 fi
5601 fi
5602 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5603 if test -n "$ac_ct_AR"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5605 $as_echo "$ac_ct_AR" >&6; }
5606 else
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5609 fi
5610
5611
5612 test -n "$ac_ct_AR" && break
5613 done
5614
5615 if test "x$ac_ct_AR" = x; then
5616 AR="false"
5617 else
5618 case $cross_compiling:$ac_tool_warned in
5619 yes:)
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5622 ac_tool_warned=yes ;;
5623 esac
5624 AR=$ac_ct_AR
5625 fi
5626 fi
5627
5628 : ${AR=ar}
5629 : ${AR_FLAGS=cru}
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5642 $as_echo_n "checking for archiver @FILE support... " >&6; }
5643 if ${lt_cv_ar_at_file+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 lt_cv_ar_at_file=no
5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h. */
5649
5650 int
5651 main ()
5652 {
5653
5654 ;
5655 return 0;
5656 }
5657 _ACEOF
5658 if ac_fn_c_try_compile "$LINENO"; then :
5659 echo conftest.$ac_objext > conftest.lst
5660 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5662 (eval $lt_ar_try) 2>&5
5663 ac_status=$?
5664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5665 test $ac_status = 0; }
5666 if test "$ac_status" -eq 0; then
5667 # Ensure the archiver fails upon bogus file names.
5668 rm -f conftest.$ac_objext libconftest.a
5669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5670 (eval $lt_ar_try) 2>&5
5671 ac_status=$?
5672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5673 test $ac_status = 0; }
5674 if test "$ac_status" -ne 0; then
5675 lt_cv_ar_at_file=@
5676 fi
5677 fi
5678 rm -f conftest.* libconftest.a
5679
5680 fi
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682
5683 fi
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5685 $as_echo "$lt_cv_ar_at_file" >&6; }
5686
5687 if test "x$lt_cv_ar_at_file" = xno; then
5688 archiver_list_spec=
5689 else
5690 archiver_list_spec=$lt_cv_ar_at_file
5691 fi
5692
5693
5694
5695
5696
5697
5698
5699 if test -n "$ac_tool_prefix"; then
5700 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5701 set dummy ${ac_tool_prefix}strip; ac_word=$2
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703 $as_echo_n "checking for $ac_word... " >&6; }
5704 if ${ac_cv_prog_STRIP+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 if test -n "$STRIP"; then
5708 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5709 else
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5712 do
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5720 fi
5721 done
5722 done
5723 IFS=$as_save_IFS
5724
5725 fi
5726 fi
5727 STRIP=$ac_cv_prog_STRIP
5728 if test -n "$STRIP"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5730 $as_echo "$STRIP" >&6; }
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734 fi
5735
5736
5737 fi
5738 if test -z "$ac_cv_prog_STRIP"; then
5739 ac_ct_STRIP=$STRIP
5740 # Extract the first word of "strip", so it can be a program name with args.
5741 set dummy strip; ac_word=$2
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743 $as_echo_n "checking for $ac_word... " >&6; }
5744 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 if test -n "$ac_ct_STRIP"; then
5748 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5749 else
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5752 do
5753 IFS=$as_save_IFS
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757 ac_cv_prog_ac_ct_STRIP="strip"
5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 2
5760 fi
5761 done
5762 done
5763 IFS=$as_save_IFS
5764
5765 fi
5766 fi
5767 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5768 if test -n "$ac_ct_STRIP"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5770 $as_echo "$ac_ct_STRIP" >&6; }
5771 else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5774 fi
5775
5776 if test "x$ac_ct_STRIP" = x; then
5777 STRIP=":"
5778 else
5779 case $cross_compiling:$ac_tool_warned in
5780 yes:)
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5783 ac_tool_warned=yes ;;
5784 esac
5785 STRIP=$ac_ct_STRIP
5786 fi
5787 else
5788 STRIP="$ac_cv_prog_STRIP"
5789 fi
5790
5791 test -z "$STRIP" && STRIP=:
5792
5793
5794
5795
5796
5797
5798 if test -n "$ac_tool_prefix"; then
5799 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5800 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if ${ac_cv_prog_RANLIB+:} false; then :
5804 $as_echo_n "(cached) " >&6
5805 else
5806 if test -n "$RANLIB"; then
5807 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5808 else
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5811 do
5812 IFS=$as_save_IFS
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 break 2
5819 fi
5820 done
5821 done
5822 IFS=$as_save_IFS
5823
5824 fi
5825 fi
5826 RANLIB=$ac_cv_prog_RANLIB
5827 if test -n "$RANLIB"; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5829 $as_echo "$RANLIB" >&6; }
5830 else
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5833 fi
5834
5835
5836 fi
5837 if test -z "$ac_cv_prog_RANLIB"; then
5838 ac_ct_RANLIB=$RANLIB
5839 # Extract the first word of "ranlib", so it can be a program name with args.
5840 set dummy ranlib; ac_word=$2
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5842 $as_echo_n "checking for $ac_word... " >&6; }
5843 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 if test -n "$ac_ct_RANLIB"; then
5847 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5848 else
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH
5851 do
5852 IFS=$as_save_IFS
5853 test -z "$as_dir" && as_dir=.
5854 for ac_exec_ext in '' $ac_executable_extensions; do
5855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5856 ac_cv_prog_ac_ct_RANLIB="ranlib"
5857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5858 break 2
5859 fi
5860 done
5861 done
5862 IFS=$as_save_IFS
5863
5864 fi
5865 fi
5866 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5867 if test -n "$ac_ct_RANLIB"; then
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5869 $as_echo "$ac_ct_RANLIB" >&6; }
5870 else
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872 $as_echo "no" >&6; }
5873 fi
5874
5875 if test "x$ac_ct_RANLIB" = x; then
5876 RANLIB=":"
5877 else
5878 case $cross_compiling:$ac_tool_warned in
5879 yes:)
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5882 ac_tool_warned=yes ;;
5883 esac
5884 RANLIB=$ac_ct_RANLIB
5885 fi
5886 else
5887 RANLIB="$ac_cv_prog_RANLIB"
5888 fi
5889
5890 test -z "$RANLIB" && RANLIB=:
5891
5892
5893
5894
5895
5896
5897 # Determine commands to create old-style static archives.
5898 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5899 old_postinstall_cmds='chmod 644 $oldlib'
5900 old_postuninstall_cmds=
5901
5902 if test -n "$RANLIB"; then
5903 case $host_os in
5904 openbsd*)
5905 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5906 ;;
5907 *)
5908 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5909 ;;
5910 esac
5911 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5912 fi
5913
5914 case $host_os in
5915 darwin*)
5916 lock_old_archive_extraction=yes ;;
5917 *)
5918 lock_old_archive_extraction=no ;;
5919 esac
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959 # If no C compiler was specified, use CC.
5960 LTCC=${LTCC-"$CC"}
5961
5962 # If no C compiler flags were specified, use CFLAGS.
5963 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5964
5965 # Allow CC to be a program name with arguments.
5966 compiler=$CC
5967
5968
5969 # Check for command to grab the raw symbol name followed by C symbol from nm.
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5971 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5972 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975
5976 # These are sane defaults that work on at least a few old systems.
5977 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5978
5979 # Character class describing NM global symbol codes.
5980 symcode='[BCDEGRST]'
5981
5982 # Regexp to match symbols that can be accessed directly from C.
5983 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5984
5985 # Define system-specific variables.
5986 case $host_os in
5987 aix*)
5988 symcode='[BCDT]'
5989 ;;
5990 cygwin* | mingw* | pw32* | cegcc*)
5991 symcode='[ABCDGISTW]'
5992 ;;
5993 hpux*)
5994 if test "$host_cpu" = ia64; then
5995 symcode='[ABCDEGRST]'
5996 fi
5997 ;;
5998 irix* | nonstopux*)
5999 symcode='[BCDEGRST]'
6000 ;;
6001 osf*)
6002 symcode='[BCDEGQRST]'
6003 ;;
6004 solaris*)
6005 symcode='[BDRT]'
6006 ;;
6007 sco3.2v5*)
6008 symcode='[DT]'
6009 ;;
6010 sysv4.2uw2*)
6011 symcode='[DT]'
6012 ;;
6013 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6014 symcode='[ABDT]'
6015 ;;
6016 sysv4)
6017 symcode='[DFNSTU]'
6018 ;;
6019 esac
6020
6021 # If we're using GNU nm, then use its standard symbol codes.
6022 case `$NM -V 2>&1` in
6023 *GNU* | *'with BFD'*)
6024 symcode='[ABCDGIRSTW]' ;;
6025 esac
6026
6027 # Transform an extracted symbol line into a proper C declaration.
6028 # Some systems (esp. on ia64) link data and code symbols differently,
6029 # so use this general approach.
6030 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6031
6032 # Transform an extracted symbol line into symbol name and symbol address
6033 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6034 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'"
6035
6036 # Handle CRLF in mingw tool chain
6037 opt_cr=
6038 case $build_os in
6039 mingw*)
6040 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6041 ;;
6042 esac
6043
6044 # Try without a prefix underscore, then with it.
6045 for ac_symprfx in "" "_"; do
6046
6047 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6048 symxfrm="\\1 $ac_symprfx\\2 \\2"
6049
6050 # Write the raw and C identifiers.
6051 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6052 # Fake it for dumpbin and say T for any non-static function
6053 # and D for any global variable.
6054 # Also find C++ and __fastcall symbols from MSVC++,
6055 # which start with @ or ?.
6056 lt_cv_sys_global_symbol_pipe="$AWK '"\
6057 " {last_section=section; section=\$ 3};"\
6058 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6059 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6060 " \$ 0!~/External *\|/{next};"\
6061 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6062 " {if(hide[section]) next};"\
6063 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6064 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6065 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6066 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6067 " ' prfx=^$ac_symprfx"
6068 else
6069 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6070 fi
6071 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6072
6073 # Check to see that the pipe works correctly.
6074 pipe_works=no
6075
6076 rm -f conftest*
6077 cat > conftest.$ac_ext <<_LT_EOF
6078 #ifdef __cplusplus
6079 extern "C" {
6080 #endif
6081 char nm_test_var;
6082 void nm_test_func(void);
6083 void nm_test_func(void){}
6084 #ifdef __cplusplus
6085 }
6086 #endif
6087 int main(){nm_test_var='a';nm_test_func();return(0);}
6088 _LT_EOF
6089
6090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6091 (eval $ac_compile) 2>&5
6092 ac_status=$?
6093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6094 test $ac_status = 0; }; then
6095 # Now try to grab the symbols.
6096 nlist=conftest.nm
6097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6098 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6099 ac_status=$?
6100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6101 test $ac_status = 0; } && test -s "$nlist"; then
6102 # Try sorting and uniquifying the output.
6103 if sort "$nlist" | uniq > "$nlist"T; then
6104 mv -f "$nlist"T "$nlist"
6105 else
6106 rm -f "$nlist"T
6107 fi
6108
6109 # Make sure that we snagged all the symbols we need.
6110 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6111 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6112 cat <<_LT_EOF > conftest.$ac_ext
6113 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6114 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6115 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6116 relocations are performed -- see ld's documentation on pseudo-relocs. */
6117 # define LT_DLSYM_CONST
6118 #elif defined(__osf__)
6119 /* This system does not cope well with relocations in const data. */
6120 # define LT_DLSYM_CONST
6121 #else
6122 # define LT_DLSYM_CONST const
6123 #endif
6124
6125 #ifdef __cplusplus
6126 extern "C" {
6127 #endif
6128
6129 _LT_EOF
6130 # Now generate the symbol file.
6131 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6132
6133 cat <<_LT_EOF >> conftest.$ac_ext
6134
6135 /* The mapping between symbol names and symbols. */
6136 LT_DLSYM_CONST struct {
6137 const char *name;
6138 void *address;
6139 }
6140 lt__PROGRAM__LTX_preloaded_symbols[] =
6141 {
6142 { "@PROGRAM@", (void *) 0 },
6143 _LT_EOF
6144 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6145 cat <<\_LT_EOF >> conftest.$ac_ext
6146 {0, (void *) 0}
6147 };
6148
6149 /* This works around a problem in FreeBSD linker */
6150 #ifdef FREEBSD_WORKAROUND
6151 static const void *lt_preloaded_setup() {
6152 return lt__PROGRAM__LTX_preloaded_symbols;
6153 }
6154 #endif
6155
6156 #ifdef __cplusplus
6157 }
6158 #endif
6159 _LT_EOF
6160 # Now try linking the two files.
6161 mv conftest.$ac_objext conftstm.$ac_objext
6162 lt_globsym_save_LIBS=$LIBS
6163 lt_globsym_save_CFLAGS=$CFLAGS
6164 LIBS="conftstm.$ac_objext"
6165 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6167 (eval $ac_link) 2>&5
6168 ac_status=$?
6169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6170 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6171 pipe_works=yes
6172 fi
6173 LIBS=$lt_globsym_save_LIBS
6174 CFLAGS=$lt_globsym_save_CFLAGS
6175 else
6176 echo "cannot find nm_test_func in $nlist" >&5
6177 fi
6178 else
6179 echo "cannot find nm_test_var in $nlist" >&5
6180 fi
6181 else
6182 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6183 fi
6184 else
6185 echo "$progname: failed program was:" >&5
6186 cat conftest.$ac_ext >&5
6187 fi
6188 rm -rf conftest* conftst*
6189
6190 # Do not use the global_symbol_pipe unless it works.
6191 if test "$pipe_works" = yes; then
6192 break
6193 else
6194 lt_cv_sys_global_symbol_pipe=
6195 fi
6196 done
6197
6198 fi
6199
6200 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6201 lt_cv_sys_global_symbol_to_cdecl=
6202 fi
6203 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6205 $as_echo "failed" >&6; }
6206 else
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6208 $as_echo "ok" >&6; }
6209 fi
6210
6211 # Response file support.
6212 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6213 nm_file_list_spec='@'
6214 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6215 nm_file_list_spec='@'
6216 fi
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6245 $as_echo_n "checking for sysroot... " >&6; }
6246
6247 # Check whether --with-sysroot was given.
6248 if test "${with_sysroot+set}" = set; then :
6249 withval=$with_sysroot;
6250 else
6251 with_sysroot=no
6252 fi
6253
6254
6255 lt_sysroot=
6256 case ${with_sysroot} in #(
6257 yes)
6258 if test "$GCC" = yes; then
6259 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6260 fi
6261 ;; #(
6262 /*)
6263 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6264 ;; #(
6265 no|'')
6266 ;; #(
6267 *)
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6269 $as_echo "${with_sysroot}" >&6; }
6270 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6271 ;;
6272 esac
6273
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6275 $as_echo "${lt_sysroot:-no}" >&6; }
6276
6277
6278
6279
6280
6281 # Check whether --enable-libtool-lock was given.
6282 if test "${enable_libtool_lock+set}" = set; then :
6283 enableval=$enable_libtool_lock;
6284 fi
6285
6286 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6287
6288 # Some flags need to be propagated to the compiler or linker for good
6289 # libtool support.
6290 case $host in
6291 ia64-*-hpux*)
6292 # Find out which ABI we are using.
6293 echo 'int i;' > conftest.$ac_ext
6294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6295 (eval $ac_compile) 2>&5
6296 ac_status=$?
6297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6298 test $ac_status = 0; }; then
6299 case `/usr/bin/file conftest.$ac_objext` in
6300 *ELF-32*)
6301 HPUX_IA64_MODE="32"
6302 ;;
6303 *ELF-64*)
6304 HPUX_IA64_MODE="64"
6305 ;;
6306 esac
6307 fi
6308 rm -rf conftest*
6309 ;;
6310 *-*-irix6*)
6311 # Find out which ABI we are using.
6312 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6314 (eval $ac_compile) 2>&5
6315 ac_status=$?
6316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6317 test $ac_status = 0; }; then
6318 if test "$lt_cv_prog_gnu_ld" = yes; then
6319 case `/usr/bin/file conftest.$ac_objext` in
6320 *32-bit*)
6321 LD="${LD-ld} -melf32bsmip"
6322 ;;
6323 *N32*)
6324 LD="${LD-ld} -melf32bmipn32"
6325 ;;
6326 *64-bit*)
6327 LD="${LD-ld} -melf64bmip"
6328 ;;
6329 esac
6330 else
6331 case `/usr/bin/file conftest.$ac_objext` in
6332 *32-bit*)
6333 LD="${LD-ld} -32"
6334 ;;
6335 *N32*)
6336 LD="${LD-ld} -n32"
6337 ;;
6338 *64-bit*)
6339 LD="${LD-ld} -64"
6340 ;;
6341 esac
6342 fi
6343 fi
6344 rm -rf conftest*
6345 ;;
6346
6347 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6348 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6349 # Find out which ABI we are using.
6350 echo 'int i;' > conftest.$ac_ext
6351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6352 (eval $ac_compile) 2>&5
6353 ac_status=$?
6354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6355 test $ac_status = 0; }; then
6356 case `/usr/bin/file conftest.o` in
6357 *32-bit*)
6358 case $host in
6359 x86_64-*kfreebsd*-gnu)
6360 LD="${LD-ld} -m elf_i386_fbsd"
6361 ;;
6362 x86_64-*linux*)
6363 LD="${LD-ld} -m elf_i386"
6364 ;;
6365 ppc64-*linux*|powerpc64-*linux*)
6366 LD="${LD-ld} -m elf32ppclinux"
6367 ;;
6368 s390x-*linux*)
6369 LD="${LD-ld} -m elf_s390"
6370 ;;
6371 sparc64-*linux*)
6372 LD="${LD-ld} -m elf32_sparc"
6373 ;;
6374 esac
6375 ;;
6376 *64-bit*)
6377 case $host in
6378 x86_64-*kfreebsd*-gnu)
6379 LD="${LD-ld} -m elf_x86_64_fbsd"
6380 ;;
6381 x86_64-*linux*)
6382 LD="${LD-ld} -m elf_x86_64"
6383 ;;
6384 ppc*-*linux*|powerpc*-*linux*)
6385 LD="${LD-ld} -m elf64ppc"
6386 ;;
6387 s390*-*linux*|s390*-*tpf*)
6388 LD="${LD-ld} -m elf64_s390"
6389 ;;
6390 sparc*-*linux*)
6391 LD="${LD-ld} -m elf64_sparc"
6392 ;;
6393 esac
6394 ;;
6395 esac
6396 fi
6397 rm -rf conftest*
6398 ;;
6399
6400 *-*-sco3.2v5*)
6401 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6402 SAVE_CFLAGS="$CFLAGS"
6403 CFLAGS="$CFLAGS -belf"
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6405 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6406 if ${lt_cv_cc_needs_belf+:} false; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 ac_ext=c
6410 ac_cpp='$CPP $CPPFLAGS'
6411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6414
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6417
6418 int
6419 main ()
6420 {
6421
6422 ;
6423 return 0;
6424 }
6425 _ACEOF
6426 if ac_fn_c_try_link "$LINENO"; then :
6427 lt_cv_cc_needs_belf=yes
6428 else
6429 lt_cv_cc_needs_belf=no
6430 fi
6431 rm -f core conftest.err conftest.$ac_objext \
6432 conftest$ac_exeext conftest.$ac_ext
6433 ac_ext=c
6434 ac_cpp='$CPP $CPPFLAGS'
6435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6438
6439 fi
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6441 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6442 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6443 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6444 CFLAGS="$SAVE_CFLAGS"
6445 fi
6446 ;;
6447 *-*solaris*)
6448 # Find out which ABI we are using.
6449 echo 'int i;' > conftest.$ac_ext
6450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6451 (eval $ac_compile) 2>&5
6452 ac_status=$?
6453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6454 test $ac_status = 0; }; then
6455 case `/usr/bin/file conftest.o` in
6456 *64-bit*)
6457 case $lt_cv_prog_gnu_ld in
6458 yes*)
6459 case $host in
6460 i?86-*-solaris*)
6461 LD="${LD-ld} -m elf_x86_64"
6462 ;;
6463 sparc*-*-solaris*)
6464 LD="${LD-ld} -m elf64_sparc"
6465 ;;
6466 esac
6467 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6468 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6469 LD="${LD-ld}_sol2"
6470 fi
6471 ;;
6472 *)
6473 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6474 LD="${LD-ld} -64"
6475 fi
6476 ;;
6477 esac
6478 ;;
6479 esac
6480 fi
6481 rm -rf conftest*
6482 ;;
6483 esac
6484
6485 need_locks="$enable_libtool_lock"
6486
6487 if test -n "$ac_tool_prefix"; then
6488 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6489 set dummy ${ac_tool_prefix}mt; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6493 $as_echo_n "(cached) " >&6
6494 else
6495 if test -n "$MANIFEST_TOOL"; then
6496 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6500 do
6501 IFS=$as_save_IFS
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6505 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 break 2
6508 fi
6509 done
6510 done
6511 IFS=$as_save_IFS
6512
6513 fi
6514 fi
6515 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6516 if test -n "$MANIFEST_TOOL"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6518 $as_echo "$MANIFEST_TOOL" >&6; }
6519 else
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6522 fi
6523
6524
6525 fi
6526 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6527 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6528 # Extract the first word of "mt", so it can be a program name with args.
6529 set dummy mt; ac_word=$2
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6533 $as_echo_n "(cached) " >&6
6534 else
6535 if test -n "$ac_ct_MANIFEST_TOOL"; then
6536 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6545 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 break 2
6548 fi
6549 done
6550 done
6551 IFS=$as_save_IFS
6552
6553 fi
6554 fi
6555 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6556 if test -n "$ac_ct_MANIFEST_TOOL"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6558 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6559 else
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6562 fi
6563
6564 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6565 MANIFEST_TOOL=":"
6566 else
6567 case $cross_compiling:$ac_tool_warned in
6568 yes:)
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6571 ac_tool_warned=yes ;;
6572 esac
6573 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6574 fi
6575 else
6576 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6577 fi
6578
6579 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6581 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6582 if ${lt_cv_path_mainfest_tool+:} false; then :
6583 $as_echo_n "(cached) " >&6
6584 else
6585 lt_cv_path_mainfest_tool=no
6586 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6587 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6588 cat conftest.err >&5
6589 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6590 lt_cv_path_mainfest_tool=yes
6591 fi
6592 rm -f conftest*
6593 fi
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6595 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6596 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6597 MANIFEST_TOOL=:
6598 fi
6599
6600
6601
6602
6603
6604
6605 case $host_os in
6606 rhapsody* | darwin*)
6607 if test -n "$ac_tool_prefix"; then
6608 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6609 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6613 $as_echo_n "(cached) " >&6
6614 else
6615 if test -n "$DSYMUTIL"; then
6616 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6617 else
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6620 do
6621 IFS=$as_save_IFS
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 break 2
6628 fi
6629 done
6630 done
6631 IFS=$as_save_IFS
6632
6633 fi
6634 fi
6635 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6636 if test -n "$DSYMUTIL"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6638 $as_echo "$DSYMUTIL" >&6; }
6639 else
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641 $as_echo "no" >&6; }
6642 fi
6643
6644
6645 fi
6646 if test -z "$ac_cv_prog_DSYMUTIL"; then
6647 ac_ct_DSYMUTIL=$DSYMUTIL
6648 # Extract the first word of "dsymutil", so it can be a program name with args.
6649 set dummy dsymutil; ac_word=$2
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651 $as_echo_n "checking for $ac_word... " >&6; }
6652 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6653 $as_echo_n "(cached) " >&6
6654 else
6655 if test -n "$ac_ct_DSYMUTIL"; then
6656 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6657 else
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6660 do
6661 IFS=$as_save_IFS
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6665 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 break 2
6668 fi
6669 done
6670 done
6671 IFS=$as_save_IFS
6672
6673 fi
6674 fi
6675 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6676 if test -n "$ac_ct_DSYMUTIL"; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6678 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6679 else
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681 $as_echo "no" >&6; }
6682 fi
6683
6684 if test "x$ac_ct_DSYMUTIL" = x; then
6685 DSYMUTIL=":"
6686 else
6687 case $cross_compiling:$ac_tool_warned in
6688 yes:)
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691 ac_tool_warned=yes ;;
6692 esac
6693 DSYMUTIL=$ac_ct_DSYMUTIL
6694 fi
6695 else
6696 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6697 fi
6698
6699 if test -n "$ac_tool_prefix"; then
6700 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6701 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if ${ac_cv_prog_NMEDIT+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 if test -n "$NMEDIT"; then
6708 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6709 else
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6712 do
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6717 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6720 fi
6721 done
6722 done
6723 IFS=$as_save_IFS
6724
6725 fi
6726 fi
6727 NMEDIT=$ac_cv_prog_NMEDIT
6728 if test -n "$NMEDIT"; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6730 $as_echo "$NMEDIT" >&6; }
6731 else
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733 $as_echo "no" >&6; }
6734 fi
6735
6736
6737 fi
6738 if test -z "$ac_cv_prog_NMEDIT"; then
6739 ac_ct_NMEDIT=$NMEDIT
6740 # Extract the first word of "nmedit", so it can be a program name with args.
6741 set dummy nmedit; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 if test -n "$ac_ct_NMEDIT"; then
6748 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6752 do
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6757 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 break 2
6760 fi
6761 done
6762 done
6763 IFS=$as_save_IFS
6764
6765 fi
6766 fi
6767 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6768 if test -n "$ac_ct_NMEDIT"; then
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6770 $as_echo "$ac_ct_NMEDIT" >&6; }
6771 else
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6774 fi
6775
6776 if test "x$ac_ct_NMEDIT" = x; then
6777 NMEDIT=":"
6778 else
6779 case $cross_compiling:$ac_tool_warned in
6780 yes:)
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6783 ac_tool_warned=yes ;;
6784 esac
6785 NMEDIT=$ac_ct_NMEDIT
6786 fi
6787 else
6788 NMEDIT="$ac_cv_prog_NMEDIT"
6789 fi
6790
6791 if test -n "$ac_tool_prefix"; then
6792 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6793 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795 $as_echo_n "checking for $ac_word... " >&6; }
6796 if ${ac_cv_prog_LIPO+:} false; then :
6797 $as_echo_n "(cached) " >&6
6798 else
6799 if test -n "$LIPO"; then
6800 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6801 else
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6804 do
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6809 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6812 fi
6813 done
6814 done
6815 IFS=$as_save_IFS
6816
6817 fi
6818 fi
6819 LIPO=$ac_cv_prog_LIPO
6820 if test -n "$LIPO"; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6822 $as_echo "$LIPO" >&6; }
6823 else
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825 $as_echo "no" >&6; }
6826 fi
6827
6828
6829 fi
6830 if test -z "$ac_cv_prog_LIPO"; then
6831 ac_ct_LIPO=$LIPO
6832 # Extract the first word of "lipo", so it can be a program name with args.
6833 set dummy lipo; ac_word=$2
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835 $as_echo_n "checking for $ac_word... " >&6; }
6836 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 if test -n "$ac_ct_LIPO"; then
6840 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6841 else
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6844 do
6845 IFS=$as_save_IFS
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6849 ac_cv_prog_ac_ct_LIPO="lipo"
6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 break 2
6852 fi
6853 done
6854 done
6855 IFS=$as_save_IFS
6856
6857 fi
6858 fi
6859 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6860 if test -n "$ac_ct_LIPO"; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6862 $as_echo "$ac_ct_LIPO" >&6; }
6863 else
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 $as_echo "no" >&6; }
6866 fi
6867
6868 if test "x$ac_ct_LIPO" = x; then
6869 LIPO=":"
6870 else
6871 case $cross_compiling:$ac_tool_warned in
6872 yes:)
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6875 ac_tool_warned=yes ;;
6876 esac
6877 LIPO=$ac_ct_LIPO
6878 fi
6879 else
6880 LIPO="$ac_cv_prog_LIPO"
6881 fi
6882
6883 if test -n "$ac_tool_prefix"; then
6884 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6885 set dummy ${ac_tool_prefix}otool; ac_word=$2
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if ${ac_cv_prog_OTOOL+:} false; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 if test -n "$OTOOL"; then
6892 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6896 do
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6901 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905 done
6906 done
6907 IFS=$as_save_IFS
6908
6909 fi
6910 fi
6911 OTOOL=$ac_cv_prog_OTOOL
6912 if test -n "$OTOOL"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6914 $as_echo "$OTOOL" >&6; }
6915 else
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6918 fi
6919
6920
6921 fi
6922 if test -z "$ac_cv_prog_OTOOL"; then
6923 ac_ct_OTOOL=$OTOOL
6924 # Extract the first word of "otool", so it can be a program name with args.
6925 set dummy otool; ac_word=$2
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 if test -n "$ac_ct_OTOOL"; then
6932 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6933 else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6941 ac_cv_prog_ac_ct_OTOOL="otool"
6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6944 fi
6945 done
6946 done
6947 IFS=$as_save_IFS
6948
6949 fi
6950 fi
6951 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6952 if test -n "$ac_ct_OTOOL"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6954 $as_echo "$ac_ct_OTOOL" >&6; }
6955 else
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6958 fi
6959
6960 if test "x$ac_ct_OTOOL" = x; then
6961 OTOOL=":"
6962 else
6963 case $cross_compiling:$ac_tool_warned in
6964 yes:)
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6967 ac_tool_warned=yes ;;
6968 esac
6969 OTOOL=$ac_ct_OTOOL
6970 fi
6971 else
6972 OTOOL="$ac_cv_prog_OTOOL"
6973 fi
6974
6975 if test -n "$ac_tool_prefix"; then
6976 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6977 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if ${ac_cv_prog_OTOOL64+:} false; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 if test -n "$OTOOL64"; then
6984 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6988 do
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6993 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6996 fi
6997 done
6998 done
6999 IFS=$as_save_IFS
7000
7001 fi
7002 fi
7003 OTOOL64=$ac_cv_prog_OTOOL64
7004 if test -n "$OTOOL64"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7006 $as_echo "$OTOOL64" >&6; }
7007 else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7010 fi
7011
7012
7013 fi
7014 if test -z "$ac_cv_prog_OTOOL64"; then
7015 ac_ct_OTOOL64=$OTOOL64
7016 # Extract the first word of "otool64", so it can be a program name with args.
7017 set dummy otool64; ac_word=$2
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019 $as_echo_n "checking for $ac_word... " >&6; }
7020 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 if test -n "$ac_ct_OTOOL64"; then
7024 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7025 else
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 for as_dir in $PATH
7028 do
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7033 ac_cv_prog_ac_ct_OTOOL64="otool64"
7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 break 2
7036 fi
7037 done
7038 done
7039 IFS=$as_save_IFS
7040
7041 fi
7042 fi
7043 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7044 if test -n "$ac_ct_OTOOL64"; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7046 $as_echo "$ac_ct_OTOOL64" >&6; }
7047 else
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049 $as_echo "no" >&6; }
7050 fi
7051
7052 if test "x$ac_ct_OTOOL64" = x; then
7053 OTOOL64=":"
7054 else
7055 case $cross_compiling:$ac_tool_warned in
7056 yes:)
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7059 ac_tool_warned=yes ;;
7060 esac
7061 OTOOL64=$ac_ct_OTOOL64
7062 fi
7063 else
7064 OTOOL64="$ac_cv_prog_OTOOL64"
7065 fi
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7094 $as_echo_n "checking for -single_module linker flag... " >&6; }
7095 if ${lt_cv_apple_cc_single_mod+:} false; then :
7096 $as_echo_n "(cached) " >&6
7097 else
7098 lt_cv_apple_cc_single_mod=no
7099 if test -z "${LT_MULTI_MODULE}"; then
7100 # By default we will add the -single_module flag. You can override
7101 # by either setting the environment variable LT_MULTI_MODULE
7102 # non-empty at configure time, or by adding -multi_module to the
7103 # link flags.
7104 rm -rf libconftest.dylib*
7105 echo "int foo(void){return 1;}" > conftest.c
7106 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7107 -dynamiclib -Wl,-single_module conftest.c" >&5
7108 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7109 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7110 _lt_result=$?
7111 # If there is a non-empty error log, and "single_module"
7112 # appears in it, assume the flag caused a linker warning
7113 if test -s conftest.err && $GREP single_module conftest.err; then
7114 cat conftest.err >&5
7115 # Otherwise, if the output was created with a 0 exit code from
7116 # the compiler, it worked.
7117 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7118 lt_cv_apple_cc_single_mod=yes
7119 else
7120 cat conftest.err >&5
7121 fi
7122 rm -rf libconftest.dylib*
7123 rm -f conftest.*
7124 fi
7125 fi
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7127 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7128
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7130 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7131 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7132 $as_echo_n "(cached) " >&6
7133 else
7134 lt_cv_ld_exported_symbols_list=no
7135 save_LDFLAGS=$LDFLAGS
7136 echo "_main" > conftest.sym
7137 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h. */
7140
7141 int
7142 main ()
7143 {
7144
7145 ;
7146 return 0;
7147 }
7148 _ACEOF
7149 if ac_fn_c_try_link "$LINENO"; then :
7150 lt_cv_ld_exported_symbols_list=yes
7151 else
7152 lt_cv_ld_exported_symbols_list=no
7153 fi
7154 rm -f core conftest.err conftest.$ac_objext \
7155 conftest$ac_exeext conftest.$ac_ext
7156 LDFLAGS="$save_LDFLAGS"
7157
7158 fi
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7160 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7161
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7163 $as_echo_n "checking for -force_load linker flag... " >&6; }
7164 if ${lt_cv_ld_force_load+:} false; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 lt_cv_ld_force_load=no
7168 cat > conftest.c << _LT_EOF
7169 int forced_loaded() { return 2;}
7170 _LT_EOF
7171 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7172 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7173 echo "$AR cru libconftest.a conftest.o" >&5
7174 $AR cru libconftest.a conftest.o 2>&5
7175 echo "$RANLIB libconftest.a" >&5
7176 $RANLIB libconftest.a 2>&5
7177 cat > conftest.c << _LT_EOF
7178 int main() { return 0;}
7179 _LT_EOF
7180 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7181 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7182 _lt_result=$?
7183 if test -s conftest.err && $GREP force_load conftest.err; then
7184 cat conftest.err >&5
7185 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7186 lt_cv_ld_force_load=yes
7187 else
7188 cat conftest.err >&5
7189 fi
7190 rm -f conftest.err libconftest.a conftest conftest.c
7191 rm -rf conftest.dSYM
7192
7193 fi
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7195 $as_echo "$lt_cv_ld_force_load" >&6; }
7196 case $host_os in
7197 rhapsody* | darwin1.[012])
7198 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7199 darwin1.*)
7200 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7201 darwin*) # darwin 5.x on
7202 # if running on 10.5 or later, the deployment target defaults
7203 # to the OS version, if on x86, and 10.4, the deployment
7204 # target defaults to 10.4. Don't you love it?
7205 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7206 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7207 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7208 10.[012]*)
7209 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7210 10.*)
7211 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7212 esac
7213 ;;
7214 esac
7215 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7216 _lt_dar_single_mod='$single_module'
7217 fi
7218 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7219 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7220 else
7221 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7222 fi
7223 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7224 _lt_dsymutil='~$DSYMUTIL $lib || :'
7225 else
7226 _lt_dsymutil=
7227 fi
7228 ;;
7229 esac
7230
7231 ac_ext=c
7232 ac_cpp='$CPP $CPPFLAGS'
7233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7237 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7238 # On Suns, sometimes $CPP names a directory.
7239 if test -n "$CPP" && test -d "$CPP"; then
7240 CPP=
7241 fi
7242 if test -z "$CPP"; then
7243 if ${ac_cv_prog_CPP+:} false; then :
7244 $as_echo_n "(cached) " >&6
7245 else
7246 # Double quotes because CPP needs to be expanded
7247 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7248 do
7249 ac_preproc_ok=false
7250 for ac_c_preproc_warn_flag in '' yes
7251 do
7252 # Use a header file that comes with gcc, so configuring glibc
7253 # with a fresh cross-compiler works.
7254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7255 # <limits.h> exists even on freestanding compilers.
7256 # On the NeXT, cc -E runs the code through the compiler's parser,
7257 # not just through cpp. "Syntax error" is here to catch this case.
7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h. */
7260 #ifdef __STDC__
7261 # include <limits.h>
7262 #else
7263 # include <assert.h>
7264 #endif
7265 Syntax error
7266 _ACEOF
7267 if ac_fn_c_try_cpp "$LINENO"; then :
7268
7269 else
7270 # Broken: fails on valid input.
7271 continue
7272 fi
7273 rm -f conftest.err conftest.i conftest.$ac_ext
7274
7275 # OK, works on sane cases. Now check whether nonexistent headers
7276 # can be detected and how.
7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h. */
7279 #include <ac_nonexistent.h>
7280 _ACEOF
7281 if ac_fn_c_try_cpp "$LINENO"; then :
7282 # Broken: success on invalid input.
7283 continue
7284 else
7285 # Passes both tests.
7286 ac_preproc_ok=:
7287 break
7288 fi
7289 rm -f conftest.err conftest.i conftest.$ac_ext
7290
7291 done
7292 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7293 rm -f conftest.i conftest.err conftest.$ac_ext
7294 if $ac_preproc_ok; then :
7295 break
7296 fi
7297
7298 done
7299 ac_cv_prog_CPP=$CPP
7300
7301 fi
7302 CPP=$ac_cv_prog_CPP
7303 else
7304 ac_cv_prog_CPP=$CPP
7305 fi
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7307 $as_echo "$CPP" >&6; }
7308 ac_preproc_ok=false
7309 for ac_c_preproc_warn_flag in '' yes
7310 do
7311 # Use a header file that comes with gcc, so configuring glibc
7312 # with a fresh cross-compiler works.
7313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7314 # <limits.h> exists even on freestanding compilers.
7315 # On the NeXT, cc -E runs the code through the compiler's parser,
7316 # not just through cpp. "Syntax error" is here to catch this case.
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7319 #ifdef __STDC__
7320 # include <limits.h>
7321 #else
7322 # include <assert.h>
7323 #endif
7324 Syntax error
7325 _ACEOF
7326 if ac_fn_c_try_cpp "$LINENO"; then :
7327
7328 else
7329 # Broken: fails on valid input.
7330 continue
7331 fi
7332 rm -f conftest.err conftest.i conftest.$ac_ext
7333
7334 # OK, works on sane cases. Now check whether nonexistent headers
7335 # can be detected and how.
7336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7337 /* end confdefs.h. */
7338 #include <ac_nonexistent.h>
7339 _ACEOF
7340 if ac_fn_c_try_cpp "$LINENO"; then :
7341 # Broken: success on invalid input.
7342 continue
7343 else
7344 # Passes both tests.
7345 ac_preproc_ok=:
7346 break
7347 fi
7348 rm -f conftest.err conftest.i conftest.$ac_ext
7349
7350 done
7351 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7352 rm -f conftest.i conftest.err conftest.$ac_ext
7353 if $ac_preproc_ok; then :
7354
7355 else
7356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7358 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7359 See \`config.log' for more details" "$LINENO" 5; }
7360 fi
7361
7362 ac_ext=c
7363 ac_cpp='$CPP $CPPFLAGS'
7364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7367
7368
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7370 $as_echo_n "checking for ANSI C header files... " >&6; }
7371 if ${ac_cv_header_stdc+:} false; then :
7372 $as_echo_n "(cached) " >&6
7373 else
7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375 /* end confdefs.h. */
7376 #include <stdlib.h>
7377 #include <stdarg.h>
7378 #include <string.h>
7379 #include <float.h>
7380
7381 int
7382 main ()
7383 {
7384
7385 ;
7386 return 0;
7387 }
7388 _ACEOF
7389 if ac_fn_c_try_compile "$LINENO"; then :
7390 ac_cv_header_stdc=yes
7391 else
7392 ac_cv_header_stdc=no
7393 fi
7394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7395
7396 if test $ac_cv_header_stdc = yes; then
7397 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7400 #include <string.h>
7401
7402 _ACEOF
7403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7404 $EGREP "memchr" >/dev/null 2>&1; then :
7405
7406 else
7407 ac_cv_header_stdc=no
7408 fi
7409 rm -f conftest*
7410
7411 fi
7412
7413 if test $ac_cv_header_stdc = yes; then
7414 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416 /* end confdefs.h. */
7417 #include <stdlib.h>
7418
7419 _ACEOF
7420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7421 $EGREP "free" >/dev/null 2>&1; then :
7422
7423 else
7424 ac_cv_header_stdc=no
7425 fi
7426 rm -f conftest*
7427
7428 fi
7429
7430 if test $ac_cv_header_stdc = yes; then
7431 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7432 if test "$cross_compiling" = yes; then :
7433 :
7434 else
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7437 #include <ctype.h>
7438 #include <stdlib.h>
7439 #if ((' ' & 0x0FF) == 0x020)
7440 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7441 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7442 #else
7443 # define ISLOWER(c) \
7444 (('a' <= (c) && (c) <= 'i') \
7445 || ('j' <= (c) && (c) <= 'r') \
7446 || ('s' <= (c) && (c) <= 'z'))
7447 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7448 #endif
7449
7450 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7451 int
7452 main ()
7453 {
7454 int i;
7455 for (i = 0; i < 256; i++)
7456 if (XOR (islower (i), ISLOWER (i))
7457 || toupper (i) != TOUPPER (i))
7458 return 2;
7459 return 0;
7460 }
7461 _ACEOF
7462 if ac_fn_c_try_run "$LINENO"; then :
7463
7464 else
7465 ac_cv_header_stdc=no
7466 fi
7467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7468 conftest.$ac_objext conftest.beam conftest.$ac_ext
7469 fi
7470
7471 fi
7472 fi
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7474 $as_echo "$ac_cv_header_stdc" >&6; }
7475 if test $ac_cv_header_stdc = yes; then
7476
7477 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7478
7479 fi
7480
7481 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7482 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7483 inttypes.h stdint.h unistd.h
7484 do :
7485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7486 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7487 "
7488 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7489 cat >>confdefs.h <<_ACEOF
7490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7491 _ACEOF
7492
7493 fi
7494
7495 done
7496
7497
7498 for ac_header in dlfcn.h
7499 do :
7500 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7501 "
7502 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7503 cat >>confdefs.h <<_ACEOF
7504 #define HAVE_DLFCN_H 1
7505 _ACEOF
7506
7507 fi
7508
7509 done
7510
7511
7512
7513
7514
7515 # Set options
7516
7517
7518
7519 enable_dlopen=no
7520
7521
7522 enable_win32_dll=no
7523
7524
7525 # Check whether --enable-shared was given.
7526 if test "${enable_shared+set}" = set; then :
7527 enableval=$enable_shared; p=${PACKAGE-default}
7528 case $enableval in
7529 yes) enable_shared=yes ;;
7530 no) enable_shared=no ;;
7531 *)
7532 enable_shared=no
7533 # Look at the argument we got. We use all the common list separators.
7534 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7535 for pkg in $enableval; do
7536 IFS="$lt_save_ifs"
7537 if test "X$pkg" = "X$p"; then
7538 enable_shared=yes
7539 fi
7540 done
7541 IFS="$lt_save_ifs"
7542 ;;
7543 esac
7544 else
7545 enable_shared=yes
7546 fi
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556 # Check whether --enable-static was given.
7557 if test "${enable_static+set}" = set; then :
7558 enableval=$enable_static; p=${PACKAGE-default}
7559 case $enableval in
7560 yes) enable_static=yes ;;
7561 no) enable_static=no ;;
7562 *)
7563 enable_static=no
7564 # Look at the argument we got. We use all the common list separators.
7565 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7566 for pkg in $enableval; do
7567 IFS="$lt_save_ifs"
7568 if test "X$pkg" = "X$p"; then
7569 enable_static=yes
7570 fi
7571 done
7572 IFS="$lt_save_ifs"
7573 ;;
7574 esac
7575 else
7576 enable_static=yes
7577 fi
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588 # Check whether --with-pic was given.
7589 if test "${with_pic+set}" = set; then :
7590 withval=$with_pic; lt_p=${PACKAGE-default}
7591 case $withval in
7592 yes|no) pic_mode=$withval ;;
7593 *)
7594 pic_mode=default
7595 # Look at the argument we got. We use all the common list separators.
7596 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7597 for lt_pkg in $withval; do
7598 IFS="$lt_save_ifs"
7599 if test "X$lt_pkg" = "X$lt_p"; then
7600 pic_mode=yes
7601 fi
7602 done
7603 IFS="$lt_save_ifs"
7604 ;;
7605 esac
7606 else
7607 pic_mode=default
7608 fi
7609
7610
7611 test -z "$pic_mode" && pic_mode=default
7612
7613
7614
7615
7616
7617
7618
7619 # Check whether --enable-fast-install was given.
7620 if test "${enable_fast_install+set}" = set; then :
7621 enableval=$enable_fast_install; p=${PACKAGE-default}
7622 case $enableval in
7623 yes) enable_fast_install=yes ;;
7624 no) enable_fast_install=no ;;
7625 *)
7626 enable_fast_install=no
7627 # Look at the argument we got. We use all the common list separators.
7628 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7629 for pkg in $enableval; do
7630 IFS="$lt_save_ifs"
7631 if test "X$pkg" = "X$p"; then
7632 enable_fast_install=yes
7633 fi
7634 done
7635 IFS="$lt_save_ifs"
7636 ;;
7637 esac
7638 else
7639 enable_fast_install=yes
7640 fi
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652 # This can be used to rebuild libtool when needed
7653 LIBTOOL_DEPS="$ltmain"
7654
7655 # Always use our own libtool.
7656 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687 test -z "$LN_S" && LN_S="ln -s"
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702 if test -n "${ZSH_VERSION+set}" ; then
7703 setopt NO_GLOB_SUBST
7704 fi
7705
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7707 $as_echo_n "checking for objdir... " >&6; }
7708 if ${lt_cv_objdir+:} false; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 rm -f .libs 2>/dev/null
7712 mkdir .libs 2>/dev/null
7713 if test -d .libs; then
7714 lt_cv_objdir=.libs
7715 else
7716 # MS-DOS does not allow filenames that begin with a dot.
7717 lt_cv_objdir=_libs
7718 fi
7719 rmdir .libs 2>/dev/null
7720 fi
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7722 $as_echo "$lt_cv_objdir" >&6; }
7723 objdir=$lt_cv_objdir
7724
7725
7726
7727
7728
7729 cat >>confdefs.h <<_ACEOF
7730 #define LT_OBJDIR "$lt_cv_objdir/"
7731 _ACEOF
7732
7733
7734
7735
7736 case $host_os in
7737 aix3*)
7738 # AIX sometimes has problems with the GCC collect2 program. For some
7739 # reason, if we set the COLLECT_NAMES environment variable, the problems
7740 # vanish in a puff of smoke.
7741 if test "X${COLLECT_NAMES+set}" != Xset; then
7742 COLLECT_NAMES=
7743 export COLLECT_NAMES
7744 fi
7745 ;;
7746 esac
7747
7748 # Global variables:
7749 ofile=libtool
7750 can_build_shared=yes
7751
7752 # All known linkers require a `.a' archive for static linking (except MSVC,
7753 # which needs '.lib').
7754 libext=a
7755
7756 with_gnu_ld="$lt_cv_prog_gnu_ld"
7757
7758 old_CC="$CC"
7759 old_CFLAGS="$CFLAGS"
7760
7761 # Set sane defaults for various variables
7762 test -z "$CC" && CC=cc
7763 test -z "$LTCC" && LTCC=$CC
7764 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7765 test -z "$LD" && LD=ld
7766 test -z "$ac_objext" && ac_objext=o
7767
7768 for cc_temp in $compiler""; do
7769 case $cc_temp in
7770 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7771 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7772 \-*) ;;
7773 *) break;;
7774 esac
7775 done
7776 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7777
7778
7779 # Only perform the check for file, if the check method requires it
7780 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7781 case $deplibs_check_method in
7782 file_magic*)
7783 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7785 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7786 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7787 $as_echo_n "(cached) " >&6
7788 else
7789 case $MAGIC_CMD in
7790 [\\/*] | ?:[\\/]*)
7791 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7792 ;;
7793 *)
7794 lt_save_MAGIC_CMD="$MAGIC_CMD"
7795 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7796 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7797 for ac_dir in $ac_dummy; do
7798 IFS="$lt_save_ifs"
7799 test -z "$ac_dir" && ac_dir=.
7800 if test -f $ac_dir/${ac_tool_prefix}file; then
7801 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7802 if test -n "$file_magic_test_file"; then
7803 case $deplibs_check_method in
7804 "file_magic "*)
7805 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7806 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7807 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7808 $EGREP "$file_magic_regex" > /dev/null; then
7809 :
7810 else
7811 cat <<_LT_EOF 1>&2
7812
7813 *** Warning: the command libtool uses to detect shared libraries,
7814 *** $file_magic_cmd, produces output that libtool cannot recognize.
7815 *** The result is that libtool may fail to recognize shared libraries
7816 *** as such. This will affect the creation of libtool libraries that
7817 *** depend on shared libraries, but programs linked with such libtool
7818 *** libraries will work regardless of this problem. Nevertheless, you
7819 *** may want to report the problem to your system manager and/or to
7820 *** [email protected]
7821
7822 _LT_EOF
7823 fi ;;
7824 esac
7825 fi
7826 break
7827 fi
7828 done
7829 IFS="$lt_save_ifs"
7830 MAGIC_CMD="$lt_save_MAGIC_CMD"
7831 ;;
7832 esac
7833 fi
7834
7835 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7836 if test -n "$MAGIC_CMD"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7838 $as_echo "$MAGIC_CMD" >&6; }
7839 else
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841 $as_echo "no" >&6; }
7842 fi
7843
7844
7845
7846
7847
7848 if test -z "$lt_cv_path_MAGIC_CMD"; then
7849 if test -n "$ac_tool_prefix"; then
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7851 $as_echo_n "checking for file... " >&6; }
7852 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7853 $as_echo_n "(cached) " >&6
7854 else
7855 case $MAGIC_CMD in
7856 [\\/*] | ?:[\\/]*)
7857 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7858 ;;
7859 *)
7860 lt_save_MAGIC_CMD="$MAGIC_CMD"
7861 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7862 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7863 for ac_dir in $ac_dummy; do
7864 IFS="$lt_save_ifs"
7865 test -z "$ac_dir" && ac_dir=.
7866 if test -f $ac_dir/file; then
7867 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7868 if test -n "$file_magic_test_file"; then
7869 case $deplibs_check_method in
7870 "file_magic "*)
7871 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7872 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7873 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7874 $EGREP "$file_magic_regex" > /dev/null; then
7875 :
7876 else
7877 cat <<_LT_EOF 1>&2
7878
7879 *** Warning: the command libtool uses to detect shared libraries,
7880 *** $file_magic_cmd, produces output that libtool cannot recognize.
7881 *** The result is that libtool may fail to recognize shared libraries
7882 *** as such. This will affect the creation of libtool libraries that
7883 *** depend on shared libraries, but programs linked with such libtool
7884 *** libraries will work regardless of this problem. Nevertheless, you
7885 *** may want to report the problem to your system manager and/or to
7886 *** [email protected]
7887
7888 _LT_EOF
7889 fi ;;
7890 esac
7891 fi
7892 break
7893 fi
7894 done
7895 IFS="$lt_save_ifs"
7896 MAGIC_CMD="$lt_save_MAGIC_CMD"
7897 ;;
7898 esac
7899 fi
7900
7901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7902 if test -n "$MAGIC_CMD"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7904 $as_echo "$MAGIC_CMD" >&6; }
7905 else
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7908 fi
7909
7910
7911 else
7912 MAGIC_CMD=:
7913 fi
7914 fi
7915
7916 fi
7917 ;;
7918 esac
7919
7920 # Use C for the default configuration in the libtool script
7921
7922 lt_save_CC="$CC"
7923 ac_ext=c
7924 ac_cpp='$CPP $CPPFLAGS'
7925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7928
7929
7930 # Source file extension for C test sources.
7931 ac_ext=c
7932
7933 # Object file extension for compiled C test sources.
7934 objext=o
7935 objext=$objext
7936
7937 # Code to be used in simple compile tests
7938 lt_simple_compile_test_code="int some_variable = 0;"
7939
7940 # Code to be used in simple link tests
7941 lt_simple_link_test_code='int main(){return(0);}'
7942
7943
7944
7945
7946
7947
7948
7949 # If no C compiler was specified, use CC.
7950 LTCC=${LTCC-"$CC"}
7951
7952 # If no C compiler flags were specified, use CFLAGS.
7953 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7954
7955 # Allow CC to be a program name with arguments.
7956 compiler=$CC
7957
7958 # Save the default compiler, since it gets overwritten when the other
7959 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7960 compiler_DEFAULT=$CC
7961
7962 # save warnings/boilerplate of simple test code
7963 ac_outfile=conftest.$ac_objext
7964 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7965 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7966 _lt_compiler_boilerplate=`cat conftest.err`
7967 $RM conftest*
7968
7969 ac_outfile=conftest.$ac_objext
7970 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7971 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7972 _lt_linker_boilerplate=`cat conftest.err`
7973 $RM -r conftest*
7974
7975
7976 if test -n "$compiler"; then
7977
7978 lt_prog_compiler_no_builtin_flag=
7979
7980 if test "$GCC" = yes; then
7981 case $cc_basename in
7982 nvcc*)
7983 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7984 *)
7985 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7986 esac
7987
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7989 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7990 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7993 lt_cv_prog_compiler_rtti_exceptions=no
7994 ac_outfile=conftest.$ac_objext
7995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7996 lt_compiler_flag="-fno-rtti -fno-exceptions"
7997 # Insert the option either (1) after the last *FLAGS variable, or
7998 # (2) before a word containing "conftest.", or (3) at the end.
7999 # Note that $ac_compile itself does not contain backslashes and begins
8000 # with a dollar sign (not a hyphen), so the echo should work correctly.
8001 # The option is referenced via a variable to avoid confusing sed.
8002 lt_compile=`echo "$ac_compile" | $SED \
8003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8005 -e 's:$: $lt_compiler_flag:'`
8006 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8007 (eval "$lt_compile" 2>conftest.err)
8008 ac_status=$?
8009 cat conftest.err >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 if (exit $ac_status) && test -s "$ac_outfile"; then
8012 # The compiler can only warn and ignore the option if not recognized
8013 # So say no if there are warnings other than the usual output.
8014 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8016 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8017 lt_cv_prog_compiler_rtti_exceptions=yes
8018 fi
8019 fi
8020 $RM conftest*
8021
8022 fi
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8024 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8025
8026 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8027 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8028 else
8029 :
8030 fi
8031
8032 fi
8033
8034
8035
8036
8037
8038
8039 lt_prog_compiler_wl=
8040 lt_prog_compiler_pic=
8041 lt_prog_compiler_static=
8042
8043
8044 if test "$GCC" = yes; then
8045 lt_prog_compiler_wl='-Wl,'
8046 lt_prog_compiler_static='-static'
8047
8048 case $host_os in
8049 aix*)
8050 # All AIX code is PIC.
8051 if test "$host_cpu" = ia64; then
8052 # AIX 5 now supports IA64 processor
8053 lt_prog_compiler_static='-Bstatic'
8054 fi
8055 ;;
8056
8057 amigaos*)
8058 case $host_cpu in
8059 powerpc)
8060 # see comment about AmigaOS4 .so support
8061 lt_prog_compiler_pic='-fPIC'
8062 ;;
8063 m68k)
8064 # FIXME: we need at least 68020 code to build shared libraries, but
8065 # adding the `-m68020' flag to GCC prevents building anything better,
8066 # like `-m68040'.
8067 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8068 ;;
8069 esac
8070 ;;
8071
8072 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8073 # PIC is the default for these OSes.
8074 ;;
8075
8076 mingw* | cygwin* | pw32* | os2* | cegcc*)
8077 # This hack is so that the source file can tell whether it is being
8078 # built for inclusion in a dll (and should export symbols for example).
8079 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8080 # (--disable-auto-import) libraries
8081 lt_prog_compiler_pic='-DDLL_EXPORT'
8082 ;;
8083
8084 darwin* | rhapsody*)
8085 # PIC is the default on this platform
8086 # Common symbols not allowed in MH_DYLIB files
8087 lt_prog_compiler_pic='-fno-common'
8088 ;;
8089
8090 haiku*)
8091 # PIC is the default for Haiku.
8092 # The "-static" flag exists, but is broken.
8093 lt_prog_compiler_static=
8094 ;;
8095
8096 hpux*)
8097 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8098 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8099 # sets the default TLS model and affects inlining.
8100 case $host_cpu in
8101 hppa*64*)
8102 # +Z the default
8103 ;;
8104 *)
8105 lt_prog_compiler_pic='-fPIC'
8106 ;;
8107 esac
8108 ;;
8109
8110 interix[3-9]*)
8111 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8112 # Instead, we relocate shared libraries at runtime.
8113 ;;
8114
8115 msdosdjgpp*)
8116 # Just because we use GCC doesn't mean we suddenly get shared libraries
8117 # on systems that don't support them.
8118 lt_prog_compiler_can_build_shared=no
8119 enable_shared=no
8120 ;;
8121
8122 *nto* | *qnx*)
8123 # QNX uses GNU C++, but need to define -shared option too, otherwise
8124 # it will coredump.
8125 lt_prog_compiler_pic='-fPIC -shared'
8126 ;;
8127
8128 sysv4*MP*)
8129 if test -d /usr/nec; then
8130 lt_prog_compiler_pic=-Kconform_pic
8131 fi
8132 ;;
8133
8134 *)
8135 lt_prog_compiler_pic='-fPIC'
8136 ;;
8137 esac
8138
8139 case $cc_basename in
8140 nvcc*) # Cuda Compiler Driver 2.2
8141 lt_prog_compiler_wl='-Xlinker '
8142 if test -n "$lt_prog_compiler_pic"; then
8143 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8144 fi
8145 ;;
8146 esac
8147 else
8148 # PORTME Check for flag to pass linker flags through the system compiler.
8149 case $host_os in
8150 aix*)
8151 lt_prog_compiler_wl='-Wl,'
8152 if test "$host_cpu" = ia64; then
8153 # AIX 5 now supports IA64 processor
8154 lt_prog_compiler_static='-Bstatic'
8155 else
8156 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8157 fi
8158 ;;
8159
8160 mingw* | cygwin* | pw32* | os2* | cegcc*)
8161 # This hack is so that the source file can tell whether it is being
8162 # built for inclusion in a dll (and should export symbols for example).
8163 lt_prog_compiler_pic='-DDLL_EXPORT'
8164 ;;
8165
8166 hpux9* | hpux10* | hpux11*)
8167 lt_prog_compiler_wl='-Wl,'
8168 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8169 # not for PA HP-UX.
8170 case $host_cpu in
8171 hppa*64*|ia64*)
8172 # +Z the default
8173 ;;
8174 *)
8175 lt_prog_compiler_pic='+Z'
8176 ;;
8177 esac
8178 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8179 lt_prog_compiler_static='${wl}-a ${wl}archive'
8180 ;;
8181
8182 irix5* | irix6* | nonstopux*)
8183 lt_prog_compiler_wl='-Wl,'
8184 # PIC (with -KPIC) is the default.
8185 lt_prog_compiler_static='-non_shared'
8186 ;;
8187
8188 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8189 case $cc_basename in
8190 # old Intel for x86_64 which still supported -KPIC.
8191 ecc*)
8192 lt_prog_compiler_wl='-Wl,'
8193 lt_prog_compiler_pic='-KPIC'
8194 lt_prog_compiler_static='-static'
8195 ;;
8196 # icc used to be incompatible with GCC.
8197 # ICC 10 doesn't accept -KPIC any more.
8198 icc* | ifort*)
8199 lt_prog_compiler_wl='-Wl,'
8200 lt_prog_compiler_pic='-fPIC'
8201 lt_prog_compiler_static='-static'
8202 ;;
8203 # Lahey Fortran 8.1.
8204 lf95*)
8205 lt_prog_compiler_wl='-Wl,'
8206 lt_prog_compiler_pic='--shared'
8207 lt_prog_compiler_static='--static'
8208 ;;
8209 nagfor*)
8210 # NAG Fortran compiler
8211 lt_prog_compiler_wl='-Wl,-Wl,,'
8212 lt_prog_compiler_pic='-PIC'
8213 lt_prog_compiler_static='-Bstatic'
8214 ;;
8215 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8216 # Portland Group compilers (*not* the Pentium gcc compiler,
8217 # which looks to be a dead project)
8218 lt_prog_compiler_wl='-Wl,'
8219 lt_prog_compiler_pic='-fpic'
8220 lt_prog_compiler_static='-Bstatic'
8221 ;;
8222 ccc*)
8223 lt_prog_compiler_wl='-Wl,'
8224 # All Alpha code is PIC.
8225 lt_prog_compiler_static='-non_shared'
8226 ;;
8227 xl* | bgxl* | bgf* | mpixl*)
8228 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8229 lt_prog_compiler_wl='-Wl,'
8230 lt_prog_compiler_pic='-qpic'
8231 lt_prog_compiler_static='-qstaticlink'
8232 ;;
8233 *)
8234 case `$CC -V 2>&1 | sed 5q` in
8235 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8236 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8237 lt_prog_compiler_pic='-KPIC'
8238 lt_prog_compiler_static='-Bstatic'
8239 lt_prog_compiler_wl=''
8240 ;;
8241 *Sun\ F* | *Sun*Fortran*)
8242 lt_prog_compiler_pic='-KPIC'
8243 lt_prog_compiler_static='-Bstatic'
8244 lt_prog_compiler_wl='-Qoption ld '
8245 ;;
8246 *Sun\ C*)
8247 # Sun C 5.9
8248 lt_prog_compiler_pic='-KPIC'
8249 lt_prog_compiler_static='-Bstatic'
8250 lt_prog_compiler_wl='-Wl,'
8251 ;;
8252 *Intel*\ [CF]*Compiler*)
8253 lt_prog_compiler_wl='-Wl,'
8254 lt_prog_compiler_pic='-fPIC'
8255 lt_prog_compiler_static='-static'
8256 ;;
8257 *Portland\ Group*)
8258 lt_prog_compiler_wl='-Wl,'
8259 lt_prog_compiler_pic='-fpic'
8260 lt_prog_compiler_static='-Bstatic'
8261 ;;
8262 esac
8263 ;;
8264 esac
8265 ;;
8266
8267 newsos6)
8268 lt_prog_compiler_pic='-KPIC'
8269 lt_prog_compiler_static='-Bstatic'
8270 ;;
8271
8272 *nto* | *qnx*)
8273 # QNX uses GNU C++, but need to define -shared option too, otherwise
8274 # it will coredump.
8275 lt_prog_compiler_pic='-fPIC -shared'
8276 ;;
8277
8278 osf3* | osf4* | osf5*)
8279 lt_prog_compiler_wl='-Wl,'
8280 # All OSF/1 code is PIC.
8281 lt_prog_compiler_static='-non_shared'
8282 ;;
8283
8284 rdos*)
8285 lt_prog_compiler_static='-non_shared'
8286 ;;
8287
8288 solaris*)
8289 lt_prog_compiler_pic='-KPIC'
8290 lt_prog_compiler_static='-Bstatic'
8291 case $cc_basename in
8292 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8293 lt_prog_compiler_wl='-Qoption ld ';;
8294 *)
8295 lt_prog_compiler_wl='-Wl,';;
8296 esac
8297 ;;
8298
8299 sunos4*)
8300 lt_prog_compiler_wl='-Qoption ld '
8301 lt_prog_compiler_pic='-PIC'
8302 lt_prog_compiler_static='-Bstatic'
8303 ;;
8304
8305 sysv4 | sysv4.2uw2* | sysv4.3*)
8306 lt_prog_compiler_wl='-Wl,'
8307 lt_prog_compiler_pic='-KPIC'
8308 lt_prog_compiler_static='-Bstatic'
8309 ;;
8310
8311 sysv4*MP*)
8312 if test -d /usr/nec ;then
8313 lt_prog_compiler_pic='-Kconform_pic'
8314 lt_prog_compiler_static='-Bstatic'
8315 fi
8316 ;;
8317
8318 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8319 lt_prog_compiler_wl='-Wl,'
8320 lt_prog_compiler_pic='-KPIC'
8321 lt_prog_compiler_static='-Bstatic'
8322 ;;
8323
8324 unicos*)
8325 lt_prog_compiler_wl='-Wl,'
8326 lt_prog_compiler_can_build_shared=no
8327 ;;
8328
8329 uts4*)
8330 lt_prog_compiler_pic='-pic'
8331 lt_prog_compiler_static='-Bstatic'
8332 ;;
8333
8334 *)
8335 lt_prog_compiler_can_build_shared=no
8336 ;;
8337 esac
8338 fi
8339
8340 case $host_os in
8341 # For platforms which do not support PIC, -DPIC is meaningless:
8342 *djgpp*)
8343 lt_prog_compiler_pic=
8344 ;;
8345 *)
8346 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8347 ;;
8348 esac
8349
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8351 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8352 if ${lt_cv_prog_compiler_pic+:} false; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8356 fi
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8358 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8359 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8360
8361 #
8362 # Check to make sure the PIC flag actually works.
8363 #
8364 if test -n "$lt_prog_compiler_pic"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8366 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8367 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 lt_cv_prog_compiler_pic_works=no
8371 ac_outfile=conftest.$ac_objext
8372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8373 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8374 # Insert the option either (1) after the last *FLAGS variable, or
8375 # (2) before a word containing "conftest.", or (3) at the end.
8376 # Note that $ac_compile itself does not contain backslashes and begins
8377 # with a dollar sign (not a hyphen), so the echo should work correctly.
8378 # The option is referenced via a variable to avoid confusing sed.
8379 lt_compile=`echo "$ac_compile" | $SED \
8380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8382 -e 's:$: $lt_compiler_flag:'`
8383 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8384 (eval "$lt_compile" 2>conftest.err)
8385 ac_status=$?
8386 cat conftest.err >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 if (exit $ac_status) && test -s "$ac_outfile"; then
8389 # The compiler can only warn and ignore the option if not recognized
8390 # So say no if there are warnings other than the usual output.
8391 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8392 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8393 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8394 lt_cv_prog_compiler_pic_works=yes
8395 fi
8396 fi
8397 $RM conftest*
8398
8399 fi
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8401 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8402
8403 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8404 case $lt_prog_compiler_pic in
8405 "" | " "*) ;;
8406 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8407 esac
8408 else
8409 lt_prog_compiler_pic=
8410 lt_prog_compiler_can_build_shared=no
8411 fi
8412
8413 fi
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425 #
8426 # Check to make sure the static flag actually works.
8427 #
8428 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8430 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8431 if ${lt_cv_prog_compiler_static_works+:} false; then :
8432 $as_echo_n "(cached) " >&6
8433 else
8434 lt_cv_prog_compiler_static_works=no
8435 save_LDFLAGS="$LDFLAGS"
8436 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8437 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8438 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8439 # The linker can only warn and ignore the option if not recognized
8440 # So say no if there are warnings
8441 if test -s conftest.err; then
8442 # Append any errors to the config.log.
8443 cat conftest.err 1>&5
8444 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8445 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8446 if diff conftest.exp conftest.er2 >/dev/null; then
8447 lt_cv_prog_compiler_static_works=yes
8448 fi
8449 else
8450 lt_cv_prog_compiler_static_works=yes
8451 fi
8452 fi
8453 $RM -r conftest*
8454 LDFLAGS="$save_LDFLAGS"
8455
8456 fi
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8458 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8459
8460 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8461 :
8462 else
8463 lt_prog_compiler_static=
8464 fi
8465
8466
8467
8468
8469
8470
8471
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8473 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8474 if ${lt_cv_prog_compiler_c_o+:} false; then :
8475 $as_echo_n "(cached) " >&6
8476 else
8477 lt_cv_prog_compiler_c_o=no
8478 $RM -r conftest 2>/dev/null
8479 mkdir conftest
8480 cd conftest
8481 mkdir out
8482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8483
8484 lt_compiler_flag="-o out/conftest2.$ac_objext"
8485 # Insert the option either (1) after the last *FLAGS variable, or
8486 # (2) before a word containing "conftest.", or (3) at the end.
8487 # Note that $ac_compile itself does not contain backslashes and begins
8488 # with a dollar sign (not a hyphen), so the echo should work correctly.
8489 lt_compile=`echo "$ac_compile" | $SED \
8490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8492 -e 's:$: $lt_compiler_flag:'`
8493 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8494 (eval "$lt_compile" 2>out/conftest.err)
8495 ac_status=$?
8496 cat out/conftest.err >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8499 then
8500 # The compiler can only warn and ignore the option if not recognized
8501 # So say no if there are warnings
8502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8503 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8504 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8505 lt_cv_prog_compiler_c_o=yes
8506 fi
8507 fi
8508 chmod u+w . 2>&5
8509 $RM conftest*
8510 # SGI C++ compiler will create directory out/ii_files/ for
8511 # template instantiation
8512 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8513 $RM out/* && rmdir out
8514 cd ..
8515 $RM -r conftest
8516 $RM conftest*
8517
8518 fi
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8520 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8521
8522
8523
8524
8525
8526
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8528 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8529 if ${lt_cv_prog_compiler_c_o+:} false; then :
8530 $as_echo_n "(cached) " >&6
8531 else
8532 lt_cv_prog_compiler_c_o=no
8533 $RM -r conftest 2>/dev/null
8534 mkdir conftest
8535 cd conftest
8536 mkdir out
8537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8538
8539 lt_compiler_flag="-o out/conftest2.$ac_objext"
8540 # Insert the option either (1) after the last *FLAGS variable, or
8541 # (2) before a word containing "conftest.", or (3) at the end.
8542 # Note that $ac_compile itself does not contain backslashes and begins
8543 # with a dollar sign (not a hyphen), so the echo should work correctly.
8544 lt_compile=`echo "$ac_compile" | $SED \
8545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8547 -e 's:$: $lt_compiler_flag:'`
8548 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8549 (eval "$lt_compile" 2>out/conftest.err)
8550 ac_status=$?
8551 cat out/conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8554 then
8555 # The compiler can only warn and ignore the option if not recognized
8556 # So say no if there are warnings
8557 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8558 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8559 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8560 lt_cv_prog_compiler_c_o=yes
8561 fi
8562 fi
8563 chmod u+w . 2>&5
8564 $RM conftest*
8565 # SGI C++ compiler will create directory out/ii_files/ for
8566 # template instantiation
8567 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8568 $RM out/* && rmdir out
8569 cd ..
8570 $RM -r conftest
8571 $RM conftest*
8572
8573 fi
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8575 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8576
8577
8578
8579
8580 hard_links="nottested"
8581 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8582 # do not overwrite the value of need_locks provided by the user
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8584 $as_echo_n "checking if we can lock with hard links... " >&6; }
8585 hard_links=yes
8586 $RM conftest*
8587 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8588 touch conftest.a
8589 ln conftest.a conftest.b 2>&5 || hard_links=no
8590 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8592 $as_echo "$hard_links" >&6; }
8593 if test "$hard_links" = no; then
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8595 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8596 need_locks=warn
8597 fi
8598 else
8599 need_locks=no
8600 fi
8601
8602
8603
8604
8605
8606
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8608 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8609
8610 runpath_var=
8611 allow_undefined_flag=
8612 always_export_symbols=no
8613 archive_cmds=
8614 archive_expsym_cmds=
8615 compiler_needs_object=no
8616 enable_shared_with_static_runtimes=no
8617 export_dynamic_flag_spec=
8618 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8619 hardcode_automatic=no
8620 hardcode_direct=no
8621 hardcode_direct_absolute=no
8622 hardcode_libdir_flag_spec=
8623 hardcode_libdir_separator=
8624 hardcode_minus_L=no
8625 hardcode_shlibpath_var=unsupported
8626 inherit_rpath=no
8627 link_all_deplibs=unknown
8628 module_cmds=
8629 module_expsym_cmds=
8630 old_archive_from_new_cmds=
8631 old_archive_from_expsyms_cmds=
8632 thread_safe_flag_spec=
8633 whole_archive_flag_spec=
8634 # include_expsyms should be a list of space-separated symbols to be *always*
8635 # included in the symbol list
8636 include_expsyms=
8637 # exclude_expsyms can be an extended regexp of symbols to exclude
8638 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8639 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8640 # as well as any symbol that contains `d'.
8641 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8642 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8643 # platforms (ab)use it in PIC code, but their linkers get confused if
8644 # the symbol is explicitly referenced. Since portable code cannot
8645 # rely on this symbol name, it's probably fine to never include it in
8646 # preloaded symbol tables.
8647 # Exclude shared library initialization/finalization symbols.
8648 extract_expsyms_cmds=
8649
8650 case $host_os in
8651 cygwin* | mingw* | pw32* | cegcc*)
8652 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8653 # When not using gcc, we currently assume that we are using
8654 # Microsoft Visual C++.
8655 if test "$GCC" != yes; then
8656 with_gnu_ld=no
8657 fi
8658 ;;
8659 interix*)
8660 # we just hope/assume this is gcc and not c89 (= MSVC++)
8661 with_gnu_ld=yes
8662 ;;
8663 openbsd*)
8664 with_gnu_ld=no
8665 ;;
8666 linux* | k*bsd*-gnu | gnu*)
8667 link_all_deplibs=no
8668 ;;
8669 esac
8670
8671 ld_shlibs=yes
8672
8673 # On some targets, GNU ld is compatible enough with the native linker
8674 # that we're better off using the native interface for both.
8675 lt_use_gnu_ld_interface=no
8676 if test "$with_gnu_ld" = yes; then
8677 case $host_os in
8678 aix*)
8679 # The AIX port of GNU ld has always aspired to compatibility
8680 # with the native linker. However, as the warning in the GNU ld
8681 # block says, versions before 2.19.5* couldn't really create working
8682 # shared libraries, regardless of the interface used.
8683 case `$LD -v 2>&1` in
8684 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8685 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8686 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8687 *)
8688 lt_use_gnu_ld_interface=yes
8689 ;;
8690 esac
8691 ;;
8692 *)
8693 lt_use_gnu_ld_interface=yes
8694 ;;
8695 esac
8696 fi
8697
8698 if test "$lt_use_gnu_ld_interface" = yes; then
8699 # If archive_cmds runs LD, not CC, wlarc should be empty
8700 wlarc='${wl}'
8701
8702 # Set some defaults for GNU ld with shared library support. These
8703 # are reset later if shared libraries are not supported. Putting them
8704 # here allows them to be overridden if necessary.
8705 runpath_var=LD_RUN_PATH
8706 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8707 export_dynamic_flag_spec='${wl}--export-dynamic'
8708 # ancient GNU ld didn't support --whole-archive et. al.
8709 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8710 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8711 else
8712 whole_archive_flag_spec=
8713 fi
8714 supports_anon_versioning=no
8715 case `$LD -v 2>&1` in
8716 *GNU\ gold*) supports_anon_versioning=yes ;;
8717 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8718 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8719 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8720 *\ 2.11.*) ;; # other 2.11 versions
8721 *) supports_anon_versioning=yes ;;
8722 esac
8723
8724 # See if GNU ld supports shared libraries.
8725 case $host_os in
8726 aix[3-9]*)
8727 # On AIX/PPC, the GNU linker is very broken
8728 if test "$host_cpu" != ia64; then
8729 ld_shlibs=no
8730 cat <<_LT_EOF 1>&2
8731
8732 *** Warning: the GNU linker, at least up to release 2.19, is reported
8733 *** to be unable to reliably create shared libraries on AIX.
8734 *** Therefore, libtool is disabling shared libraries support. If you
8735 *** really care for shared libraries, you may want to install binutils
8736 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8737 *** You will then need to restart the configuration process.
8738
8739 _LT_EOF
8740 fi
8741 ;;
8742
8743 amigaos*)
8744 case $host_cpu in
8745 powerpc)
8746 # see comment about AmigaOS4 .so support
8747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8748 archive_expsym_cmds=''
8749 ;;
8750 m68k)
8751 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)'
8752 hardcode_libdir_flag_spec='-L$libdir'
8753 hardcode_minus_L=yes
8754 ;;
8755 esac
8756 ;;
8757
8758 beos*)
8759 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8760 allow_undefined_flag=unsupported
8761 # Joseph Beckenbach <[email protected]> says some releases of gcc
8762 # support --undefined. This deserves some investigation. FIXME
8763 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8764 else
8765 ld_shlibs=no
8766 fi
8767 ;;
8768
8769 cygwin* | mingw* | pw32* | cegcc*)
8770 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8771 # as there is no search path for DLLs.
8772 hardcode_libdir_flag_spec='-L$libdir'
8773 export_dynamic_flag_spec='${wl}--export-all-symbols'
8774 allow_undefined_flag=unsupported
8775 always_export_symbols=no
8776 enable_shared_with_static_runtimes=yes
8777 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'
8778 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8779
8780 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8782 # If the export-symbols file already is a .def file (1st line
8783 # is EXPORTS), use it as is; otherwise, prepend...
8784 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8785 cp $export_symbols $output_objdir/$soname.def;
8786 else
8787 echo EXPORTS > $output_objdir/$soname.def;
8788 cat $export_symbols >> $output_objdir/$soname.def;
8789 fi~
8790 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8791 else
8792 ld_shlibs=no
8793 fi
8794 ;;
8795
8796 haiku*)
8797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8798 link_all_deplibs=yes
8799 ;;
8800
8801 interix[3-9]*)
8802 hardcode_direct=no
8803 hardcode_shlibpath_var=no
8804 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8805 export_dynamic_flag_spec='${wl}-E'
8806 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8807 # Instead, shared libraries are loaded at an image base (0x10000000 by
8808 # default) and relocated if they conflict, which is a slow very memory
8809 # consuming and fragmenting process. To avoid this, we pick a random,
8810 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8811 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8812 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8813 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'
8814 ;;
8815
8816 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8817 tmp_diet=no
8818 if test "$host_os" = linux-dietlibc; then
8819 case $cc_basename in
8820 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8821 esac
8822 fi
8823 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8824 && test "$tmp_diet" = no
8825 then
8826 tmp_addflag=' $pic_flag'
8827 tmp_sharedflag='-shared'
8828 case $cc_basename,$host_cpu in
8829 pgcc*) # Portland Group C compiler
8830 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'
8831 tmp_addflag=' $pic_flag'
8832 ;;
8833 pgf77* | pgf90* | pgf95* | pgfortran*)
8834 # Portland Group f77 and f90 compilers
8835 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'
8836 tmp_addflag=' $pic_flag -Mnomain' ;;
8837 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8838 tmp_addflag=' -i_dynamic' ;;
8839 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8840 tmp_addflag=' -i_dynamic -nofor_main' ;;
8841 ifc* | ifort*) # Intel Fortran compiler
8842 tmp_addflag=' -nofor_main' ;;
8843 lf95*) # Lahey Fortran 8.1
8844 whole_archive_flag_spec=
8845 tmp_sharedflag='--shared' ;;
8846 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8847 tmp_sharedflag='-qmkshrobj'
8848 tmp_addflag= ;;
8849 nvcc*) # Cuda Compiler Driver 2.2
8850 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'
8851 compiler_needs_object=yes
8852 ;;
8853 esac
8854 case `$CC -V 2>&1 | sed 5q` in
8855 *Sun\ C*) # Sun C 5.9
8856 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'
8857 compiler_needs_object=yes
8858 tmp_sharedflag='-G' ;;
8859 *Sun\ F*) # Sun Fortran 8.3
8860 tmp_sharedflag='-G' ;;
8861 esac
8862 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8863
8864 if test "x$supports_anon_versioning" = xyes; then
8865 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8866 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8867 echo "local: *; };" >> $output_objdir/$libname.ver~
8868 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8869 fi
8870
8871 case $cc_basename in
8872 xlf* | bgf* | bgxlf* | mpixlf*)
8873 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8874 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8875 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8876 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8877 if test "x$supports_anon_versioning" = xyes; then
8878 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8879 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8880 echo "local: *; };" >> $output_objdir/$libname.ver~
8881 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8882 fi
8883 ;;
8884 esac
8885 else
8886 ld_shlibs=no
8887 fi
8888 ;;
8889
8890 netbsd* | netbsdelf*-gnu)
8891 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8892 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8893 wlarc=
8894 else
8895 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8896 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8897 fi
8898 ;;
8899
8900 solaris*)
8901 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8902 ld_shlibs=no
8903 cat <<_LT_EOF 1>&2
8904
8905 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8906 *** create shared libraries on Solaris systems. Therefore, libtool
8907 *** is disabling shared libraries support. We urge you to upgrade GNU
8908 *** binutils to release 2.9.1 or newer. Another option is to modify
8909 *** your PATH or compiler configuration so that the native linker is
8910 *** used, and then restart.
8911
8912 _LT_EOF
8913 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8914 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8915 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8916 else
8917 ld_shlibs=no
8918 fi
8919 ;;
8920
8921 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8922 case `$LD -v 2>&1` in
8923 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8924 ld_shlibs=no
8925 cat <<_LT_EOF 1>&2
8926
8927 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8928 *** reliably create shared libraries on SCO systems. Therefore, libtool
8929 *** is disabling shared libraries support. We urge you to upgrade GNU
8930 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8931 *** your PATH or compiler configuration so that the native linker is
8932 *** used, and then restart.
8933
8934 _LT_EOF
8935 ;;
8936 *)
8937 # For security reasons, it is highly recommended that you always
8938 # use absolute paths for naming shared libraries, and exclude the
8939 # DT_RUNPATH tag from executables and libraries. But doing so
8940 # requires that you compile everything twice, which is a pain.
8941 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8942 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8944 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8945 else
8946 ld_shlibs=no
8947 fi
8948 ;;
8949 esac
8950 ;;
8951
8952 sunos4*)
8953 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8954 wlarc=
8955 hardcode_direct=yes
8956 hardcode_shlibpath_var=no
8957 ;;
8958
8959 *)
8960 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8961 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8962 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8963 else
8964 ld_shlibs=no
8965 fi
8966 ;;
8967 esac
8968
8969 if test "$ld_shlibs" = no; then
8970 runpath_var=
8971 hardcode_libdir_flag_spec=
8972 export_dynamic_flag_spec=
8973 whole_archive_flag_spec=
8974 fi
8975 else
8976 # PORTME fill in a description of your system's linker (not GNU ld)
8977 case $host_os in
8978 aix3*)
8979 allow_undefined_flag=unsupported
8980 always_export_symbols=yes
8981 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'
8982 # Note: this linker hardcodes the directories in LIBPATH if there
8983 # are no directories specified by -L.
8984 hardcode_minus_L=yes
8985 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8986 # Neither direct hardcoding nor static linking is supported with a
8987 # broken collect2.
8988 hardcode_direct=unsupported
8989 fi
8990 ;;
8991
8992 aix[4-9]*)
8993 if test "$host_cpu" = ia64; then
8994 # On IA64, the linker does run time linking by default, so we don't
8995 # have to do anything special.
8996 aix_use_runtimelinking=no
8997 exp_sym_flag='-Bexport'
8998 no_entry_flag=""
8999 else
9000 # If we're using GNU nm, then we don't want the "-C" option.
9001 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9002 # Also, AIX nm treats weak defined symbols like other global
9003 # defined symbols, whereas GNU nm marks them as "W".
9004 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9005 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'
9006 else
9007 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'
9008 fi
9009 aix_use_runtimelinking=no
9010
9011 # Test if we are trying to use run time linking or normal
9012 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9013 # need to do runtime linking.
9014 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9015 for ld_flag in $LDFLAGS; do
9016 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9017 aix_use_runtimelinking=yes
9018 break
9019 fi
9020 done
9021 ;;
9022 esac
9023
9024 exp_sym_flag='-bexport'
9025 no_entry_flag='-bnoentry'
9026 fi
9027
9028 # When large executables or shared objects are built, AIX ld can
9029 # have problems creating the table of contents. If linking a library
9030 # or program results in "error TOC overflow" add -mminimal-toc to
9031 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9032 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9033
9034 archive_cmds=''
9035 hardcode_direct=yes
9036 hardcode_direct_absolute=yes
9037 hardcode_libdir_separator=':'
9038 link_all_deplibs=yes
9039 file_list_spec='${wl}-f,'
9040
9041 if test "$GCC" = yes; then
9042 case $host_os in aix4.[012]|aix4.[012].*)
9043 # We only want to do this on AIX 4.2 and lower, the check
9044 # below for broken collect2 doesn't work under 4.3+
9045 collect2name=`${CC} -print-prog-name=collect2`
9046 if test -f "$collect2name" &&
9047 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9048 then
9049 # We have reworked collect2
9050 :
9051 else
9052 # We have old collect2
9053 hardcode_direct=unsupported
9054 # It fails to find uninstalled libraries when the uninstalled
9055 # path is not listed in the libpath. Setting hardcode_minus_L
9056 # to unsupported forces relinking
9057 hardcode_minus_L=yes
9058 hardcode_libdir_flag_spec='-L$libdir'
9059 hardcode_libdir_separator=
9060 fi
9061 ;;
9062 esac
9063 shared_flag='-shared'
9064 if test "$aix_use_runtimelinking" = yes; then
9065 shared_flag="$shared_flag "'${wl}-G'
9066 fi
9067 link_all_deplibs=no
9068 else
9069 # not using gcc
9070 if test "$host_cpu" = ia64; then
9071 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9072 # chokes on -Wl,-G. The following line is correct:
9073 shared_flag='-G'
9074 else
9075 if test "$aix_use_runtimelinking" = yes; then
9076 shared_flag='${wl}-G'
9077 else
9078 shared_flag='${wl}-bM:SRE'
9079 fi
9080 fi
9081 fi
9082
9083 export_dynamic_flag_spec='${wl}-bexpall'
9084 # It seems that -bexpall does not export symbols beginning with
9085 # underscore (_), so it is better to generate a list of symbols to export.
9086 always_export_symbols=yes
9087 if test "$aix_use_runtimelinking" = yes; then
9088 # Warning - without using the other runtime loading flags (-brtl),
9089 # -berok will link without error, but may produce a broken library.
9090 allow_undefined_flag='-berok'
9091 # Determine the default libpath from the value encoded in an
9092 # empty executable.
9093 if test "${lt_cv_aix_libpath+set}" = set; then
9094 aix_libpath=$lt_cv_aix_libpath
9095 else
9096 if ${lt_cv_aix_libpath_+:} false; then :
9097 $as_echo_n "(cached) " >&6
9098 else
9099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h. */
9101
9102 int
9103 main ()
9104 {
9105
9106 ;
9107 return 0;
9108 }
9109 _ACEOF
9110 if ac_fn_c_try_link "$LINENO"; then :
9111
9112 lt_aix_libpath_sed='
9113 /Import File Strings/,/^$/ {
9114 /^0/ {
9115 s/^0 *\([^ ]*\) *$/\1/
9116 p
9117 }
9118 }'
9119 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9120 # Check for a 64-bit object if we didn't find anything.
9121 if test -z "$lt_cv_aix_libpath_"; then
9122 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9123 fi
9124 fi
9125 rm -f core conftest.err conftest.$ac_objext \
9126 conftest$ac_exeext conftest.$ac_ext
9127 if test -z "$lt_cv_aix_libpath_"; then
9128 lt_cv_aix_libpath_="/usr/lib:/lib"
9129 fi
9130
9131 fi
9132
9133 aix_libpath=$lt_cv_aix_libpath_
9134 fi
9135
9136 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9137 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"
9138 else
9139 if test "$host_cpu" = ia64; then
9140 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9141 allow_undefined_flag="-z nodefs"
9142 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"
9143 else
9144 # Determine the default libpath from the value encoded in an
9145 # empty executable.
9146 if test "${lt_cv_aix_libpath+set}" = set; then
9147 aix_libpath=$lt_cv_aix_libpath
9148 else
9149 if ${lt_cv_aix_libpath_+:} false; then :
9150 $as_echo_n "(cached) " >&6
9151 else
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9154
9155 int
9156 main ()
9157 {
9158
9159 ;
9160 return 0;
9161 }
9162 _ACEOF
9163 if ac_fn_c_try_link "$LINENO"; then :
9164
9165 lt_aix_libpath_sed='
9166 /Import File Strings/,/^$/ {
9167 /^0/ {
9168 s/^0 *\([^ ]*\) *$/\1/
9169 p
9170 }
9171 }'
9172 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9173 # Check for a 64-bit object if we didn't find anything.
9174 if test -z "$lt_cv_aix_libpath_"; then
9175 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9176 fi
9177 fi
9178 rm -f core conftest.err conftest.$ac_objext \
9179 conftest$ac_exeext conftest.$ac_ext
9180 if test -z "$lt_cv_aix_libpath_"; then
9181 lt_cv_aix_libpath_="/usr/lib:/lib"
9182 fi
9183
9184 fi
9185
9186 aix_libpath=$lt_cv_aix_libpath_
9187 fi
9188
9189 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9190 # Warning - without using the other run time loading flags,
9191 # -berok will link without error, but may produce a broken library.
9192 no_undefined_flag=' ${wl}-bernotok'
9193 allow_undefined_flag=' ${wl}-berok'
9194 if test "$with_gnu_ld" = yes; then
9195 # We only use this code for GNU lds that support --whole-archive.
9196 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9197 else
9198 # Exported symbols can be pulled into shared objects from archives
9199 whole_archive_flag_spec='$convenience'
9200 fi
9201 archive_cmds_need_lc=yes
9202 # This is similar to how AIX traditionally builds its shared libraries.
9203 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'
9204 fi
9205 fi
9206 ;;
9207
9208 amigaos*)
9209 case $host_cpu in
9210 powerpc)
9211 # see comment about AmigaOS4 .so support
9212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9213 archive_expsym_cmds=''
9214 ;;
9215 m68k)
9216 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)'
9217 hardcode_libdir_flag_spec='-L$libdir'
9218 hardcode_minus_L=yes
9219 ;;
9220 esac
9221 ;;
9222
9223 bsdi[45]*)
9224 export_dynamic_flag_spec=-rdynamic
9225 ;;
9226
9227 cygwin* | mingw* | pw32* | cegcc*)
9228 # When not using gcc, we currently assume that we are using
9229 # Microsoft Visual C++.
9230 # hardcode_libdir_flag_spec is actually meaningless, as there is
9231 # no search path for DLLs.
9232 case $cc_basename in
9233 cl*)
9234 # Native MSVC
9235 hardcode_libdir_flag_spec=' '
9236 allow_undefined_flag=unsupported
9237 always_export_symbols=yes
9238 file_list_spec='@'
9239 # Tell ltmain to make .lib files, not .a files.
9240 libext=lib
9241 # Tell ltmain to make .dll files, not .so files.
9242 shrext_cmds=".dll"
9243 # FIXME: Setting linknames here is a bad hack.
9244 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9245 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9246 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9247 else
9248 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9249 fi~
9250 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9251 linknames='
9252 # The linker will not automatically build a static lib if we build a DLL.
9253 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9254 enable_shared_with_static_runtimes=yes
9255 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9256 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9257 # Don't use ranlib
9258 old_postinstall_cmds='chmod 644 $oldlib'
9259 postlink_cmds='lt_outputfile="@OUTPUT@"~
9260 lt_tool_outputfile="@TOOL_OUTPUT@"~
9261 case $lt_outputfile in
9262 *.exe|*.EXE) ;;
9263 *)
9264 lt_outputfile="$lt_outputfile.exe"
9265 lt_tool_outputfile="$lt_tool_outputfile.exe"
9266 ;;
9267 esac~
9268 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9269 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9270 $RM "$lt_outputfile.manifest";
9271 fi'
9272 ;;
9273 *)
9274 # Assume MSVC wrapper
9275 hardcode_libdir_flag_spec=' '
9276 allow_undefined_flag=unsupported
9277 # Tell ltmain to make .lib files, not .a files.
9278 libext=lib
9279 # Tell ltmain to make .dll files, not .so files.
9280 shrext_cmds=".dll"
9281 # FIXME: Setting linknames here is a bad hack.
9282 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9283 # The linker will automatically build a .lib file if we build a DLL.
9284 old_archive_from_new_cmds='true'
9285 # FIXME: Should let the user specify the lib program.
9286 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9287 enable_shared_with_static_runtimes=yes
9288 ;;
9289 esac
9290 ;;
9291
9292 darwin* | rhapsody*)
9293
9294
9295 archive_cmds_need_lc=no
9296 hardcode_direct=no
9297 hardcode_automatic=yes
9298 hardcode_shlibpath_var=unsupported
9299 if test "$lt_cv_ld_force_load" = "yes"; then
9300 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\"`'
9301
9302 else
9303 whole_archive_flag_spec=''
9304 fi
9305 link_all_deplibs=yes
9306 allow_undefined_flag="$_lt_dar_allow_undefined"
9307 case $cc_basename in
9308 ifort*) _lt_dar_can_shared=yes ;;
9309 *) _lt_dar_can_shared=$GCC ;;
9310 esac
9311 if test "$_lt_dar_can_shared" = "yes"; then
9312 output_verbose_link_cmd=func_echo_all
9313 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9314 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9315 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}"
9316 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}"
9317
9318 else
9319 ld_shlibs=no
9320 fi
9321
9322 ;;
9323
9324 dgux*)
9325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9326 hardcode_libdir_flag_spec='-L$libdir'
9327 hardcode_shlibpath_var=no
9328 ;;
9329
9330 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9331 # support. Future versions do this automatically, but an explicit c++rt0.o
9332 # does not break anything, and helps significantly (at the cost of a little
9333 # extra space).
9334 freebsd2.2*)
9335 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9336 hardcode_libdir_flag_spec='-R$libdir'
9337 hardcode_direct=yes
9338 hardcode_shlibpath_var=no
9339 ;;
9340
9341 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9342 freebsd2.*)
9343 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9344 hardcode_direct=yes
9345 hardcode_minus_L=yes
9346 hardcode_shlibpath_var=no
9347 ;;
9348
9349 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9350 freebsd* | dragonfly*)
9351 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9352 hardcode_libdir_flag_spec='-R$libdir'
9353 hardcode_direct=yes
9354 hardcode_shlibpath_var=no
9355 ;;
9356
9357 hpux9*)
9358 if test "$GCC" = yes; then
9359 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'
9360 else
9361 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'
9362 fi
9363 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9364 hardcode_libdir_separator=:
9365 hardcode_direct=yes
9366
9367 # hardcode_minus_L: Not really in the search PATH,
9368 # but as the default location of the library.
9369 hardcode_minus_L=yes
9370 export_dynamic_flag_spec='${wl}-E'
9371 ;;
9372
9373 hpux10*)
9374 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9375 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9376 else
9377 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9378 fi
9379 if test "$with_gnu_ld" = no; then
9380 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9381 hardcode_libdir_separator=:
9382 hardcode_direct=yes
9383 hardcode_direct_absolute=yes
9384 export_dynamic_flag_spec='${wl}-E'
9385 # hardcode_minus_L: Not really in the search PATH,
9386 # but as the default location of the library.
9387 hardcode_minus_L=yes
9388 fi
9389 ;;
9390
9391 hpux11*)
9392 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9393 case $host_cpu in
9394 hppa*64*)
9395 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9396 ;;
9397 ia64*)
9398 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9399 ;;
9400 *)
9401 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9402 ;;
9403 esac
9404 else
9405 case $host_cpu in
9406 hppa*64*)
9407 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9408 ;;
9409 ia64*)
9410 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9411 ;;
9412 *)
9413
9414 # Older versions of the 11.00 compiler do not understand -b yet
9415 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9417 $as_echo_n "checking if $CC understands -b... " >&6; }
9418 if ${lt_cv_prog_compiler__b+:} false; then :
9419 $as_echo_n "(cached) " >&6
9420 else
9421 lt_cv_prog_compiler__b=no
9422 save_LDFLAGS="$LDFLAGS"
9423 LDFLAGS="$LDFLAGS -b"
9424 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9425 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9426 # The linker can only warn and ignore the option if not recognized
9427 # So say no if there are warnings
9428 if test -s conftest.err; then
9429 # Append any errors to the config.log.
9430 cat conftest.err 1>&5
9431 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9432 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9433 if diff conftest.exp conftest.er2 >/dev/null; then
9434 lt_cv_prog_compiler__b=yes
9435 fi
9436 else
9437 lt_cv_prog_compiler__b=yes
9438 fi
9439 fi
9440 $RM -r conftest*
9441 LDFLAGS="$save_LDFLAGS"
9442
9443 fi
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9445 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9446
9447 if test x"$lt_cv_prog_compiler__b" = xyes; then
9448 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9449 else
9450 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9451 fi
9452
9453 ;;
9454 esac
9455 fi
9456 if test "$with_gnu_ld" = no; then
9457 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9458 hardcode_libdir_separator=:
9459
9460 case $host_cpu in
9461 hppa*64*|ia64*)
9462 hardcode_direct=no
9463 hardcode_shlibpath_var=no
9464 ;;
9465 *)
9466 hardcode_direct=yes
9467 hardcode_direct_absolute=yes
9468 export_dynamic_flag_spec='${wl}-E'
9469
9470 # hardcode_minus_L: Not really in the search PATH,
9471 # but as the default location of the library.
9472 hardcode_minus_L=yes
9473 ;;
9474 esac
9475 fi
9476 ;;
9477
9478 irix5* | irix6* | nonstopux*)
9479 if test "$GCC" = yes; then
9480 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'
9481 # Try to use the -exported_symbol ld option, if it does not
9482 # work, assume that -exports_file does not work either and
9483 # implicitly export all symbols.
9484 # This should be the same for all languages, so no per-tag cache variable.
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9486 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9487 if ${lt_cv_irix_exported_symbol+:} false; then :
9488 $as_echo_n "(cached) " >&6
9489 else
9490 save_LDFLAGS="$LDFLAGS"
9491 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493 /* end confdefs.h. */
9494 int foo (void) { return 0; }
9495 _ACEOF
9496 if ac_fn_c_try_link "$LINENO"; then :
9497 lt_cv_irix_exported_symbol=yes
9498 else
9499 lt_cv_irix_exported_symbol=no
9500 fi
9501 rm -f core conftest.err conftest.$ac_objext \
9502 conftest$ac_exeext conftest.$ac_ext
9503 LDFLAGS="$save_LDFLAGS"
9504 fi
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9506 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9507 if test "$lt_cv_irix_exported_symbol" = yes; then
9508 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'
9509 fi
9510 else
9511 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'
9512 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'
9513 fi
9514 archive_cmds_need_lc='no'
9515 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9516 hardcode_libdir_separator=:
9517 inherit_rpath=yes
9518 link_all_deplibs=yes
9519 ;;
9520
9521 netbsd* | netbsdelf*-gnu)
9522 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9524 else
9525 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9526 fi
9527 hardcode_libdir_flag_spec='-R$libdir'
9528 hardcode_direct=yes
9529 hardcode_shlibpath_var=no
9530 ;;
9531
9532 newsos6)
9533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9534 hardcode_direct=yes
9535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9536 hardcode_libdir_separator=:
9537 hardcode_shlibpath_var=no
9538 ;;
9539
9540 *nto* | *qnx*)
9541 ;;
9542
9543 openbsd*)
9544 if test -f /usr/libexec/ld.so; then
9545 hardcode_direct=yes
9546 hardcode_shlibpath_var=no
9547 hardcode_direct_absolute=yes
9548 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9549 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9550 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9551 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9552 export_dynamic_flag_spec='${wl}-E'
9553 else
9554 case $host_os in
9555 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9556 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9557 hardcode_libdir_flag_spec='-R$libdir'
9558 ;;
9559 *)
9560 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9561 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9562 ;;
9563 esac
9564 fi
9565 else
9566 ld_shlibs=no
9567 fi
9568 ;;
9569
9570 os2*)
9571 hardcode_libdir_flag_spec='-L$libdir'
9572 hardcode_minus_L=yes
9573 allow_undefined_flag=unsupported
9574 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'
9575 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9576 ;;
9577
9578 osf3*)
9579 if test "$GCC" = yes; then
9580 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9581 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'
9582 else
9583 allow_undefined_flag=' -expect_unresolved \*'
9584 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'
9585 fi
9586 archive_cmds_need_lc='no'
9587 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9588 hardcode_libdir_separator=:
9589 ;;
9590
9591 osf4* | osf5*) # as osf3* with the addition of -msym flag
9592 if test "$GCC" = yes; then
9593 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9594 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'
9595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9596 else
9597 allow_undefined_flag=' -expect_unresolved \*'
9598 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'
9599 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~
9600 $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'
9601
9602 # Both c and cxx compiler support -rpath directly
9603 hardcode_libdir_flag_spec='-rpath $libdir'
9604 fi
9605 archive_cmds_need_lc='no'
9606 hardcode_libdir_separator=:
9607 ;;
9608
9609 solaris*)
9610 no_undefined_flag=' -z defs'
9611 if test "$GCC" = yes; then
9612 wlarc='${wl}'
9613 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9614 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9615 $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'
9616 else
9617 case `$CC -V 2>&1` in
9618 *"Compilers 5.0"*)
9619 wlarc=''
9620 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9621 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9622 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9623 ;;
9624 *)
9625 wlarc='${wl}'
9626 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9627 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9628 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9629 ;;
9630 esac
9631 fi
9632 hardcode_libdir_flag_spec='-R$libdir'
9633 hardcode_shlibpath_var=no
9634 case $host_os in
9635 solaris2.[0-5] | solaris2.[0-5].*) ;;
9636 *)
9637 # The compiler driver will combine and reorder linker options,
9638 # but understands `-z linker_flag'. GCC discards it without `$wl',
9639 # but is careful enough not to reorder.
9640 # Supported since Solaris 2.6 (maybe 2.5.1?)
9641 if test "$GCC" = yes; then
9642 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9643 else
9644 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9645 fi
9646 ;;
9647 esac
9648 link_all_deplibs=yes
9649 ;;
9650
9651 sunos4*)
9652 if test "x$host_vendor" = xsequent; then
9653 # Use $CC to link under sequent, because it throws in some extra .o
9654 # files that make .init and .fini sections work.
9655 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9656 else
9657 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9658 fi
9659 hardcode_libdir_flag_spec='-L$libdir'
9660 hardcode_direct=yes
9661 hardcode_minus_L=yes
9662 hardcode_shlibpath_var=no
9663 ;;
9664
9665 sysv4)
9666 case $host_vendor in
9667 sni)
9668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9669 hardcode_direct=yes # is this really true???
9670 ;;
9671 siemens)
9672 ## LD is ld it makes a PLAMLIB
9673 ## CC just makes a GrossModule.
9674 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9675 reload_cmds='$CC -r -o $output$reload_objs'
9676 hardcode_direct=no
9677 ;;
9678 motorola)
9679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9680 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9681 ;;
9682 esac
9683 runpath_var='LD_RUN_PATH'
9684 hardcode_shlibpath_var=no
9685 ;;
9686
9687 sysv4.3*)
9688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689 hardcode_shlibpath_var=no
9690 export_dynamic_flag_spec='-Bexport'
9691 ;;
9692
9693 sysv4*MP*)
9694 if test -d /usr/nec; then
9695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696 hardcode_shlibpath_var=no
9697 runpath_var=LD_RUN_PATH
9698 hardcode_runpath_var=yes
9699 ld_shlibs=yes
9700 fi
9701 ;;
9702
9703 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9704 no_undefined_flag='${wl}-z,text'
9705 archive_cmds_need_lc=no
9706 hardcode_shlibpath_var=no
9707 runpath_var='LD_RUN_PATH'
9708
9709 if test "$GCC" = yes; then
9710 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9711 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9712 else
9713 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9714 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9715 fi
9716 ;;
9717
9718 sysv5* | sco3.2v5* | sco5v6*)
9719 # Note: We can NOT use -z defs as we might desire, because we do not
9720 # link with -lc, and that would cause any symbols used from libc to
9721 # always be unresolved, which means just about no library would
9722 # ever link correctly. If we're not using GNU ld we use -z text
9723 # though, which does catch some bad symbols but isn't as heavy-handed
9724 # as -z defs.
9725 no_undefined_flag='${wl}-z,text'
9726 allow_undefined_flag='${wl}-z,nodefs'
9727 archive_cmds_need_lc=no
9728 hardcode_shlibpath_var=no
9729 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9730 hardcode_libdir_separator=':'
9731 link_all_deplibs=yes
9732 export_dynamic_flag_spec='${wl}-Bexport'
9733 runpath_var='LD_RUN_PATH'
9734
9735 if test "$GCC" = yes; then
9736 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9737 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9738 else
9739 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9740 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9741 fi
9742 ;;
9743
9744 uts4*)
9745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9746 hardcode_libdir_flag_spec='-L$libdir'
9747 hardcode_shlibpath_var=no
9748 ;;
9749
9750 *)
9751 ld_shlibs=no
9752 ;;
9753 esac
9754
9755 if test x$host_vendor = xsni; then
9756 case $host in
9757 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9758 export_dynamic_flag_spec='${wl}-Blargedynsym'
9759 ;;
9760 esac
9761 fi
9762 fi
9763
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9765 $as_echo "$ld_shlibs" >&6; }
9766 test "$ld_shlibs" = no && can_build_shared=no
9767
9768 with_gnu_ld=$with_gnu_ld
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784 #
9785 # Do we need to explicitly link libc?
9786 #
9787 case "x$archive_cmds_need_lc" in
9788 x|xyes)
9789 # Assume -lc should be added
9790 archive_cmds_need_lc=yes
9791
9792 if test "$enable_shared" = yes && test "$GCC" = yes; then
9793 case $archive_cmds in
9794 *'~'*)
9795 # FIXME: we may have to deal with multi-command sequences.
9796 ;;
9797 '$CC '*)
9798 # Test whether the compiler implicitly links with -lc since on some
9799 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9800 # to ld, don't add -lc before -lgcc.
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9802 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9803 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9804 $as_echo_n "(cached) " >&6
9805 else
9806 $RM conftest*
9807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9808
9809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9810 (eval $ac_compile) 2>&5
9811 ac_status=$?
9812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9813 test $ac_status = 0; } 2>conftest.err; then
9814 soname=conftest
9815 lib=conftest
9816 libobjs=conftest.$ac_objext
9817 deplibs=
9818 wl=$lt_prog_compiler_wl
9819 pic_flag=$lt_prog_compiler_pic
9820 compiler_flags=-v
9821 linker_flags=-v
9822 verstring=
9823 output_objdir=.
9824 libname=conftest
9825 lt_save_allow_undefined_flag=$allow_undefined_flag
9826 allow_undefined_flag=
9827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9828 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9829 ac_status=$?
9830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9831 test $ac_status = 0; }
9832 then
9833 lt_cv_archive_cmds_need_lc=no
9834 else
9835 lt_cv_archive_cmds_need_lc=yes
9836 fi
9837 allow_undefined_flag=$lt_save_allow_undefined_flag
9838 else
9839 cat conftest.err 1>&5
9840 fi
9841 $RM conftest*
9842
9843 fi
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9845 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9846 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9847 ;;
9848 esac
9849 fi
9850 ;;
9851 esac
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10005 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10006
10007 if test "$GCC" = yes; then
10008 case $host_os in
10009 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10010 *) lt_awk_arg="/^libraries:/" ;;
10011 esac
10012 case $host_os in
10013 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10014 *) lt_sed_strip_eq="s,=/,/,g" ;;
10015 esac
10016 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10017 case $lt_search_path_spec in
10018 *\;*)
10019 # if the path contains ";" then we assume it to be the separator
10020 # otherwise default to the standard path separator (i.e. ":") - it is
10021 # assumed that no part of a normal pathname contains ";" but that should
10022 # okay in the real world where ";" in dirpaths is itself problematic.
10023 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10024 ;;
10025 *)
10026 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10027 ;;
10028 esac
10029 # Ok, now we have the path, separated by spaces, we can step through it
10030 # and add multilib dir if necessary.
10031 lt_tmp_lt_search_path_spec=
10032 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10033 for lt_sys_path in $lt_search_path_spec; do
10034 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10035 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10036 else
10037 test -d "$lt_sys_path" && \
10038 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10039 fi
10040 done
10041 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10042 BEGIN {RS=" "; FS="/|\n";} {
10043 lt_foo="";
10044 lt_count=0;
10045 for (lt_i = NF; lt_i > 0; lt_i--) {
10046 if ($lt_i != "" && $lt_i != ".") {
10047 if ($lt_i == "..") {
10048 lt_count++;
10049 } else {
10050 if (lt_count == 0) {
10051 lt_foo="/" $lt_i lt_foo;
10052 } else {
10053 lt_count--;
10054 }
10055 }
10056 }
10057 }
10058 if (lt_foo != "") { lt_freq[lt_foo]++; }
10059 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10060 }'`
10061 # AWK program above erroneously prepends '/' to C:/dos/paths
10062 # for these hosts.
10063 case $host_os in
10064 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10065 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10066 esac
10067 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10068 else
10069 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10070 fi
10071 library_names_spec=
10072 libname_spec='lib$name'
10073 soname_spec=
10074 shrext_cmds=".so"
10075 postinstall_cmds=
10076 postuninstall_cmds=
10077 finish_cmds=
10078 finish_eval=
10079 shlibpath_var=
10080 shlibpath_overrides_runpath=unknown
10081 version_type=none
10082 dynamic_linker="$host_os ld.so"
10083 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10084 need_lib_prefix=unknown
10085 hardcode_into_libs=no
10086
10087 # when you set need_version to no, make sure it does not cause -set_version
10088 # flags to be left without arguments
10089 need_version=unknown
10090
10091 case $host_os in
10092 aix3*)
10093 version_type=linux # correct to gnu/linux during the next big refactor
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10095 shlibpath_var=LIBPATH
10096
10097 # AIX 3 has no versioning support, so we append a major version to the name.
10098 soname_spec='${libname}${release}${shared_ext}$major'
10099 ;;
10100
10101 aix[4-9]*)
10102 version_type=linux # correct to gnu/linux during the next big refactor
10103 need_lib_prefix=no
10104 need_version=no
10105 hardcode_into_libs=yes
10106 if test "$host_cpu" = ia64; then
10107 # AIX 5 supports IA64
10108 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10109 shlibpath_var=LD_LIBRARY_PATH
10110 else
10111 # With GCC up to 2.95.x, collect2 would create an import file
10112 # for dependence libraries. The import file would start with
10113 # the line `#! .'. This would cause the generated library to
10114 # depend on `.', always an invalid library. This was fixed in
10115 # development snapshots of GCC prior to 3.0.
10116 case $host_os in
10117 aix4 | aix4.[01] | aix4.[01].*)
10118 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10119 echo ' yes '
10120 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10121 :
10122 else
10123 can_build_shared=no
10124 fi
10125 ;;
10126 esac
10127 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10128 # soname into executable. Probably we can add versioning support to
10129 # collect2, so additional links can be useful in future.
10130 if test "$aix_use_runtimelinking" = yes; then
10131 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10132 # instead of lib<name>.a to let people know that these are not
10133 # typical AIX shared libraries.
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10135 else
10136 # We preserve .a as extension for shared libraries through AIX4.2
10137 # and later when we are not doing run time linking.
10138 library_names_spec='${libname}${release}.a $libname.a'
10139 soname_spec='${libname}${release}${shared_ext}$major'
10140 fi
10141 shlibpath_var=LIBPATH
10142 fi
10143 ;;
10144
10145 amigaos*)
10146 case $host_cpu in
10147 powerpc)
10148 # Since July 2007 AmigaOS4 officially supports .so libraries.
10149 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10151 ;;
10152 m68k)
10153 library_names_spec='$libname.ixlibrary $libname.a'
10154 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10155 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'
10156 ;;
10157 esac
10158 ;;
10159
10160 beos*)
10161 library_names_spec='${libname}${shared_ext}'
10162 dynamic_linker="$host_os ld.so"
10163 shlibpath_var=LIBRARY_PATH
10164 ;;
10165
10166 bsdi[45]*)
10167 version_type=linux # correct to gnu/linux during the next big refactor
10168 need_version=no
10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10170 soname_spec='${libname}${release}${shared_ext}$major'
10171 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10174 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10175 # the default ld.so.conf also contains /usr/contrib/lib and
10176 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10177 # libtool to hard-code these into programs
10178 ;;
10179
10180 cygwin* | mingw* | pw32* | cegcc*)
10181 version_type=windows
10182 shrext_cmds=".dll"
10183 need_version=no
10184 need_lib_prefix=no
10185
10186 case $GCC,$cc_basename in
10187 yes,*)
10188 # gcc
10189 library_names_spec='$libname.dll.a'
10190 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10191 postinstall_cmds='base_file=`basename \${file}`~
10192 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10193 dldir=$destdir/`dirname \$dlpath`~
10194 test -d \$dldir || mkdir -p \$dldir~
10195 $install_prog $dir/$dlname \$dldir/$dlname~
10196 chmod a+x \$dldir/$dlname~
10197 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10198 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10199 fi'
10200 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10201 dlpath=$dir/\$dldll~
10202 $RM \$dlpath'
10203 shlibpath_overrides_runpath=yes
10204
10205 case $host_os in
10206 cygwin*)
10207 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10208 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10209
10210 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10211 ;;
10212 mingw* | cegcc*)
10213 # MinGW DLLs use traditional 'lib' prefix
10214 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10215 ;;
10216 pw32*)
10217 # pw32 DLLs use 'pw' prefix rather than 'lib'
10218 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10219 ;;
10220 esac
10221 dynamic_linker='Win32 ld.exe'
10222 ;;
10223
10224 *,cl*)
10225 # Native MSVC
10226 libname_spec='$name'
10227 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10228 library_names_spec='${libname}.dll.lib'
10229
10230 case $build_os in
10231 mingw*)
10232 sys_lib_search_path_spec=
10233 lt_save_ifs=$IFS
10234 IFS=';'
10235 for lt_path in $LIB
10236 do
10237 IFS=$lt_save_ifs
10238 # Let DOS variable expansion print the short 8.3 style file name.
10239 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10240 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10241 done
10242 IFS=$lt_save_ifs
10243 # Convert to MSYS style.
10244 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10245 ;;
10246 cygwin*)
10247 # Convert to unix form, then to dos form, then back to unix form
10248 # but this time dos style (no spaces!) so that the unix form looks
10249 # like /cygdrive/c/PROGRA~1:/cygdr...
10250 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10251 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10252 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10253 ;;
10254 *)
10255 sys_lib_search_path_spec="$LIB"
10256 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10257 # It is most probably a Windows format PATH.
10258 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10259 else
10260 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10261 fi
10262 # FIXME: find the short name or the path components, as spaces are
10263 # common. (e.g. "Program Files" -> "PROGRA~1")
10264 ;;
10265 esac
10266
10267 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10268 postinstall_cmds='base_file=`basename \${file}`~
10269 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10270 dldir=$destdir/`dirname \$dlpath`~
10271 test -d \$dldir || mkdir -p \$dldir~
10272 $install_prog $dir/$dlname \$dldir/$dlname'
10273 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10274 dlpath=$dir/\$dldll~
10275 $RM \$dlpath'
10276 shlibpath_overrides_runpath=yes
10277 dynamic_linker='Win32 link.exe'
10278 ;;
10279
10280 *)
10281 # Assume MSVC wrapper
10282 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10283 dynamic_linker='Win32 ld.exe'
10284 ;;
10285 esac
10286 # FIXME: first we should search . and the directory the executable is in
10287 shlibpath_var=PATH
10288 ;;
10289
10290 darwin* | rhapsody*)
10291 dynamic_linker="$host_os dyld"
10292 version_type=darwin
10293 need_lib_prefix=no
10294 need_version=no
10295 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10296 soname_spec='${libname}${release}${major}$shared_ext'
10297 shlibpath_overrides_runpath=yes
10298 shlibpath_var=DYLD_LIBRARY_PATH
10299 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10300
10301 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10302 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10303 ;;
10304
10305 dgux*)
10306 version_type=linux # correct to gnu/linux during the next big refactor
10307 need_lib_prefix=no
10308 need_version=no
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10310 soname_spec='${libname}${release}${shared_ext}$major'
10311 shlibpath_var=LD_LIBRARY_PATH
10312 ;;
10313
10314 freebsd* | dragonfly*)
10315 # DragonFly does not have aout. When/if they implement a new
10316 # versioning mechanism, adjust this.
10317 if test -x /usr/bin/objformat; then
10318 objformat=`/usr/bin/objformat`
10319 else
10320 case $host_os in
10321 freebsd[23].*) objformat=aout ;;
10322 *) objformat=elf ;;
10323 esac
10324 fi
10325 version_type=freebsd-$objformat
10326 case $version_type in
10327 freebsd-elf*)
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10329 need_version=no
10330 need_lib_prefix=no
10331 ;;
10332 freebsd-*)
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10334 need_version=yes
10335 ;;
10336 esac
10337 shlibpath_var=LD_LIBRARY_PATH
10338 case $host_os in
10339 freebsd2.*)
10340 shlibpath_overrides_runpath=yes
10341 ;;
10342 freebsd3.[01]* | freebsdelf3.[01]*)
10343 shlibpath_overrides_runpath=yes
10344 hardcode_into_libs=yes
10345 ;;
10346 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10347 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10348 shlibpath_overrides_runpath=no
10349 hardcode_into_libs=yes
10350 ;;
10351 *) # from 4.6 on, and DragonFly
10352 shlibpath_overrides_runpath=yes
10353 hardcode_into_libs=yes
10354 ;;
10355 esac
10356 ;;
10357
10358 haiku*)
10359 version_type=linux # correct to gnu/linux during the next big refactor
10360 need_lib_prefix=no
10361 need_version=no
10362 dynamic_linker="$host_os runtime_loader"
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 shlibpath_var=LIBRARY_PATH
10366 shlibpath_overrides_runpath=yes
10367 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10368 hardcode_into_libs=yes
10369 ;;
10370
10371 hpux9* | hpux10* | hpux11*)
10372 # Give a soname corresponding to the major version so that dld.sl refuses to
10373 # link against other versions.
10374 version_type=sunos
10375 need_lib_prefix=no
10376 need_version=no
10377 case $host_cpu in
10378 ia64*)
10379 shrext_cmds='.so'
10380 hardcode_into_libs=yes
10381 dynamic_linker="$host_os dld.so"
10382 shlibpath_var=LD_LIBRARY_PATH
10383 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385 soname_spec='${libname}${release}${shared_ext}$major'
10386 if test "X$HPUX_IA64_MODE" = X32; then
10387 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10388 else
10389 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10390 fi
10391 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10392 ;;
10393 hppa*64*)
10394 shrext_cmds='.sl'
10395 hardcode_into_libs=yes
10396 dynamic_linker="$host_os dld.sl"
10397 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10398 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10402 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10403 ;;
10404 *)
10405 shrext_cmds='.sl'
10406 dynamic_linker="$host_os dld.sl"
10407 shlibpath_var=SHLIB_PATH
10408 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10410 soname_spec='${libname}${release}${shared_ext}$major'
10411 ;;
10412 esac
10413 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10414 postinstall_cmds='chmod 555 $lib'
10415 # or fails outright, so override atomically:
10416 install_override_mode=555
10417 ;;
10418
10419 interix[3-9]*)
10420 version_type=linux # correct to gnu/linux during the next big refactor
10421 need_lib_prefix=no
10422 need_version=no
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10424 soname_spec='${libname}${release}${shared_ext}$major'
10425 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 shlibpath_overrides_runpath=no
10428 hardcode_into_libs=yes
10429 ;;
10430
10431 irix5* | irix6* | nonstopux*)
10432 case $host_os in
10433 nonstopux*) version_type=nonstopux ;;
10434 *)
10435 if test "$lt_cv_prog_gnu_ld" = yes; then
10436 version_type=linux # correct to gnu/linux during the next big refactor
10437 else
10438 version_type=irix
10439 fi ;;
10440 esac
10441 need_lib_prefix=no
10442 need_version=no
10443 soname_spec='${libname}${release}${shared_ext}$major'
10444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10445 case $host_os in
10446 irix5* | nonstopux*)
10447 libsuff= shlibsuff=
10448 ;;
10449 *)
10450 case $LD in # libtool.m4 will add one of these switches to LD
10451 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10452 libsuff= shlibsuff= libmagic=32-bit;;
10453 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10454 libsuff=32 shlibsuff=N32 libmagic=N32;;
10455 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10456 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10457 *) libsuff= shlibsuff= libmagic=never-match;;
10458 esac
10459 ;;
10460 esac
10461 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10462 shlibpath_overrides_runpath=no
10463 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10464 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10465 hardcode_into_libs=yes
10466 ;;
10467
10468 # No shared lib support for Linux oldld, aout, or coff.
10469 linux*oldld* | linux*aout* | linux*coff*)
10470 dynamic_linker=no
10471 ;;
10472
10473 # This must be glibc/ELF.
10474 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10475 version_type=linux # correct to gnu/linux during the next big refactor
10476 need_lib_prefix=no
10477 need_version=no
10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479 soname_spec='${libname}${release}${shared_ext}$major'
10480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10481 shlibpath_var=LD_LIBRARY_PATH
10482 shlibpath_overrides_runpath=no
10483
10484 # Some binutils ld are patched to set DT_RUNPATH
10485 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10486 $as_echo_n "(cached) " >&6
10487 else
10488 lt_cv_shlibpath_overrides_runpath=no
10489 save_LDFLAGS=$LDFLAGS
10490 save_libdir=$libdir
10491 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10492 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494 /* end confdefs.h. */
10495
10496 int
10497 main ()
10498 {
10499
10500 ;
10501 return 0;
10502 }
10503 _ACEOF
10504 if ac_fn_c_try_link "$LINENO"; then :
10505 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10506 lt_cv_shlibpath_overrides_runpath=yes
10507 fi
10508 fi
10509 rm -f core conftest.err conftest.$ac_objext \
10510 conftest$ac_exeext conftest.$ac_ext
10511 LDFLAGS=$save_LDFLAGS
10512 libdir=$save_libdir
10513
10514 fi
10515
10516 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10517
10518 # This implies no fast_install, which is unacceptable.
10519 # Some rework will be needed to allow for fast_install
10520 # before this can be enabled.
10521 hardcode_into_libs=yes
10522
10523 # Append ld.so.conf contents to the search path
10524 if test -f /etc/ld.so.conf; then
10525 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' ' '`
10526 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10527 fi
10528
10529 # We used to test for /lib/ld.so.1 and disable shared libraries on
10530 # powerpc, because MkLinux only supported shared libraries with the
10531 # GNU dynamic linker. Since this was broken with cross compilers,
10532 # most powerpc-linux boxes support dynamic linking these days and
10533 # people can always --disable-shared, the test was removed, and we
10534 # assume the GNU/Linux dynamic linker is in use.
10535 dynamic_linker='GNU/Linux ld.so'
10536 ;;
10537
10538 netbsdelf*-gnu)
10539 version_type=linux
10540 need_lib_prefix=no
10541 need_version=no
10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10543 soname_spec='${libname}${release}${shared_ext}$major'
10544 shlibpath_var=LD_LIBRARY_PATH
10545 shlibpath_overrides_runpath=no
10546 hardcode_into_libs=yes
10547 dynamic_linker='NetBSD ld.elf_so'
10548 ;;
10549
10550 netbsd*)
10551 version_type=sunos
10552 need_lib_prefix=no
10553 need_version=no
10554 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10557 dynamic_linker='NetBSD (a.out) ld.so'
10558 else
10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10560 soname_spec='${libname}${release}${shared_ext}$major'
10561 dynamic_linker='NetBSD ld.elf_so'
10562 fi
10563 shlibpath_var=LD_LIBRARY_PATH
10564 shlibpath_overrides_runpath=yes
10565 hardcode_into_libs=yes
10566 ;;
10567
10568 newsos6)
10569 version_type=linux # correct to gnu/linux during the next big refactor
10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10571 shlibpath_var=LD_LIBRARY_PATH
10572 shlibpath_overrides_runpath=yes
10573 ;;
10574
10575 *nto* | *qnx*)
10576 version_type=qnx
10577 need_lib_prefix=no
10578 need_version=no
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10580 soname_spec='${libname}${release}${shared_ext}$major'
10581 shlibpath_var=LD_LIBRARY_PATH
10582 shlibpath_overrides_runpath=no
10583 hardcode_into_libs=yes
10584 dynamic_linker='ldqnx.so'
10585 ;;
10586
10587 openbsd*)
10588 version_type=sunos
10589 sys_lib_dlsearch_path_spec="/usr/lib"
10590 need_lib_prefix=no
10591 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10592 case $host_os in
10593 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10594 *) need_version=no ;;
10595 esac
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10600 case $host_os in
10601 openbsd2.[89] | openbsd2.[89].*)
10602 shlibpath_overrides_runpath=no
10603 ;;
10604 *)
10605 shlibpath_overrides_runpath=yes
10606 ;;
10607 esac
10608 else
10609 shlibpath_overrides_runpath=yes
10610 fi
10611 ;;
10612
10613 os2*)
10614 libname_spec='$name'
10615 shrext_cmds=".dll"
10616 need_lib_prefix=no
10617 library_names_spec='$libname${shared_ext} $libname.a'
10618 dynamic_linker='OS/2 ld.exe'
10619 shlibpath_var=LIBPATH
10620 ;;
10621
10622 osf3* | osf4* | osf5*)
10623 version_type=osf
10624 need_lib_prefix=no
10625 need_version=no
10626 soname_spec='${libname}${release}${shared_ext}$major'
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10628 shlibpath_var=LD_LIBRARY_PATH
10629 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10630 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10631 ;;
10632
10633 rdos*)
10634 dynamic_linker=no
10635 ;;
10636
10637 solaris*)
10638 version_type=linux # correct to gnu/linux during the next big refactor
10639 need_lib_prefix=no
10640 need_version=no
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10642 soname_spec='${libname}${release}${shared_ext}$major'
10643 shlibpath_var=LD_LIBRARY_PATH
10644 shlibpath_overrides_runpath=yes
10645 hardcode_into_libs=yes
10646 # ldd complains unless libraries are executable
10647 postinstall_cmds='chmod +x $lib'
10648 ;;
10649
10650 sunos4*)
10651 version_type=sunos
10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10653 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10654 shlibpath_var=LD_LIBRARY_PATH
10655 shlibpath_overrides_runpath=yes
10656 if test "$with_gnu_ld" = yes; then
10657 need_lib_prefix=no
10658 fi
10659 need_version=yes
10660 ;;
10661
10662 sysv4 | sysv4.3*)
10663 version_type=linux # correct to gnu/linux during the next big refactor
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10665 soname_spec='${libname}${release}${shared_ext}$major'
10666 shlibpath_var=LD_LIBRARY_PATH
10667 case $host_vendor in
10668 sni)
10669 shlibpath_overrides_runpath=no
10670 need_lib_prefix=no
10671 runpath_var=LD_RUN_PATH
10672 ;;
10673 siemens)
10674 need_lib_prefix=no
10675 ;;
10676 motorola)
10677 need_lib_prefix=no
10678 need_version=no
10679 shlibpath_overrides_runpath=no
10680 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10681 ;;
10682 esac
10683 ;;
10684
10685 sysv4*MP*)
10686 if test -d /usr/nec ;then
10687 version_type=linux # correct to gnu/linux during the next big refactor
10688 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10689 soname_spec='$libname${shared_ext}.$major'
10690 shlibpath_var=LD_LIBRARY_PATH
10691 fi
10692 ;;
10693
10694 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10695 version_type=freebsd-elf
10696 need_lib_prefix=no
10697 need_version=no
10698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10699 soname_spec='${libname}${release}${shared_ext}$major'
10700 shlibpath_var=LD_LIBRARY_PATH
10701 shlibpath_overrides_runpath=yes
10702 hardcode_into_libs=yes
10703 if test "$with_gnu_ld" = yes; then
10704 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10705 else
10706 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10707 case $host_os in
10708 sco3.2v5*)
10709 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10710 ;;
10711 esac
10712 fi
10713 sys_lib_dlsearch_path_spec='/usr/lib'
10714 ;;
10715
10716 tpf*)
10717 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10718 version_type=linux # correct to gnu/linux during the next big refactor
10719 need_lib_prefix=no
10720 need_version=no
10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722 shlibpath_var=LD_LIBRARY_PATH
10723 shlibpath_overrides_runpath=no
10724 hardcode_into_libs=yes
10725 ;;
10726
10727 uts4*)
10728 version_type=linux # correct to gnu/linux during the next big refactor
10729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10730 soname_spec='${libname}${release}${shared_ext}$major'
10731 shlibpath_var=LD_LIBRARY_PATH
10732 ;;
10733
10734 *)
10735 dynamic_linker=no
10736 ;;
10737 esac
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10739 $as_echo "$dynamic_linker" >&6; }
10740 test "$dynamic_linker" = no && can_build_shared=no
10741
10742 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10743 if test "$GCC" = yes; then
10744 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10745 fi
10746
10747 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10748 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10749 fi
10750 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10751 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10752 fi
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10846 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10847 hardcode_action=
10848 if test -n "$hardcode_libdir_flag_spec" ||
10849 test -n "$runpath_var" ||
10850 test "X$hardcode_automatic" = "Xyes" ; then
10851
10852 # We can hardcode non-existent directories.
10853 if test "$hardcode_direct" != no &&
10854 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10855 # have to relink, otherwise we might link with an installed library
10856 # when we should be linking with a yet-to-be-installed one
10857 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10858 test "$hardcode_minus_L" != no; then
10859 # Linking always hardcodes the temporary library directory.
10860 hardcode_action=relink
10861 else
10862 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10863 hardcode_action=immediate
10864 fi
10865 else
10866 # We cannot hardcode anything, or else we can only hardcode existing
10867 # directories.
10868 hardcode_action=unsupported
10869 fi
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10871 $as_echo "$hardcode_action" >&6; }
10872
10873 if test "$hardcode_action" = relink ||
10874 test "$inherit_rpath" = yes; then
10875 # Fast installation is not supported
10876 enable_fast_install=no
10877 elif test "$shlibpath_overrides_runpath" = yes ||
10878 test "$enable_shared" = no; then
10879 # Fast installation is not necessary
10880 enable_fast_install=needless
10881 fi
10882
10883
10884
10885
10886
10887
10888 if test "x$enable_dlopen" != xyes; then
10889 enable_dlopen=unknown
10890 enable_dlopen_self=unknown
10891 enable_dlopen_self_static=unknown
10892 else
10893 lt_cv_dlopen=no
10894 lt_cv_dlopen_libs=
10895
10896 case $host_os in
10897 beos*)
10898 lt_cv_dlopen="load_add_on"
10899 lt_cv_dlopen_libs=
10900 lt_cv_dlopen_self=yes
10901 ;;
10902
10903 mingw* | pw32* | cegcc*)
10904 lt_cv_dlopen="LoadLibrary"
10905 lt_cv_dlopen_libs=
10906 ;;
10907
10908 cygwin*)
10909 lt_cv_dlopen="dlopen"
10910 lt_cv_dlopen_libs=
10911 ;;
10912
10913 darwin*)
10914 # if libdl is installed we need to link against it
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10916 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10917 if ${ac_cv_lib_dl_dlopen+:} false; then :
10918 $as_echo_n "(cached) " >&6
10919 else
10920 ac_check_lib_save_LIBS=$LIBS
10921 LIBS="-ldl $LIBS"
10922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10924
10925 /* Override any GCC internal prototype to avoid an error.
10926 Use char because int might match the return type of a GCC
10927 builtin and then its argument prototype would still apply. */
10928 #ifdef __cplusplus
10929 extern "C"
10930 #endif
10931 char dlopen ();
10932 int
10933 main ()
10934 {
10935 return dlopen ();
10936 ;
10937 return 0;
10938 }
10939 _ACEOF
10940 if ac_fn_c_try_link "$LINENO"; then :
10941 ac_cv_lib_dl_dlopen=yes
10942 else
10943 ac_cv_lib_dl_dlopen=no
10944 fi
10945 rm -f core conftest.err conftest.$ac_objext \
10946 conftest$ac_exeext conftest.$ac_ext
10947 LIBS=$ac_check_lib_save_LIBS
10948 fi
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10950 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10951 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10952 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10953 else
10954
10955 lt_cv_dlopen="dyld"
10956 lt_cv_dlopen_libs=
10957 lt_cv_dlopen_self=yes
10958
10959 fi
10960
10961 ;;
10962
10963 *)
10964 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10965 if test "x$ac_cv_func_shl_load" = xyes; then :
10966 lt_cv_dlopen="shl_load"
10967 else
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10969 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10970 if ${ac_cv_lib_dld_shl_load+:} false; then :
10971 $as_echo_n "(cached) " >&6
10972 else
10973 ac_check_lib_save_LIBS=$LIBS
10974 LIBS="-ldld $LIBS"
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h. */
10977
10978 /* Override any GCC internal prototype to avoid an error.
10979 Use char because int might match the return type of a GCC
10980 builtin and then its argument prototype would still apply. */
10981 #ifdef __cplusplus
10982 extern "C"
10983 #endif
10984 char shl_load ();
10985 int
10986 main ()
10987 {
10988 return shl_load ();
10989 ;
10990 return 0;
10991 }
10992 _ACEOF
10993 if ac_fn_c_try_link "$LINENO"; then :
10994 ac_cv_lib_dld_shl_load=yes
10995 else
10996 ac_cv_lib_dld_shl_load=no
10997 fi
10998 rm -f core conftest.err conftest.$ac_objext \
10999 conftest$ac_exeext conftest.$ac_ext
11000 LIBS=$ac_check_lib_save_LIBS
11001 fi
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11003 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11004 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11005 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11006 else
11007 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11008 if test "x$ac_cv_func_dlopen" = xyes; then :
11009 lt_cv_dlopen="dlopen"
11010 else
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11012 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11013 if ${ac_cv_lib_dl_dlopen+:} false; then :
11014 $as_echo_n "(cached) " >&6
11015 else
11016 ac_check_lib_save_LIBS=$LIBS
11017 LIBS="-ldl $LIBS"
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11020
11021 /* Override any GCC internal prototype to avoid an error.
11022 Use char because int might match the return type of a GCC
11023 builtin and then its argument prototype would still apply. */
11024 #ifdef __cplusplus
11025 extern "C"
11026 #endif
11027 char dlopen ();
11028 int
11029 main ()
11030 {
11031 return dlopen ();
11032 ;
11033 return 0;
11034 }
11035 _ACEOF
11036 if ac_fn_c_try_link "$LINENO"; then :
11037 ac_cv_lib_dl_dlopen=yes
11038 else
11039 ac_cv_lib_dl_dlopen=no
11040 fi
11041 rm -f core conftest.err conftest.$ac_objext \
11042 conftest$ac_exeext conftest.$ac_ext
11043 LIBS=$ac_check_lib_save_LIBS
11044 fi
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11046 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11047 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11048 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11049 else
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11051 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11052 if ${ac_cv_lib_svld_dlopen+:} false; then :
11053 $as_echo_n "(cached) " >&6
11054 else
11055 ac_check_lib_save_LIBS=$LIBS
11056 LIBS="-lsvld $LIBS"
11057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058 /* end confdefs.h. */
11059
11060 /* Override any GCC internal prototype to avoid an error.
11061 Use char because int might match the return type of a GCC
11062 builtin and then its argument prototype would still apply. */
11063 #ifdef __cplusplus
11064 extern "C"
11065 #endif
11066 char dlopen ();
11067 int
11068 main ()
11069 {
11070 return dlopen ();
11071 ;
11072 return 0;
11073 }
11074 _ACEOF
11075 if ac_fn_c_try_link "$LINENO"; then :
11076 ac_cv_lib_svld_dlopen=yes
11077 else
11078 ac_cv_lib_svld_dlopen=no
11079 fi
11080 rm -f core conftest.err conftest.$ac_objext \
11081 conftest$ac_exeext conftest.$ac_ext
11082 LIBS=$ac_check_lib_save_LIBS
11083 fi
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11085 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11086 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11087 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11088 else
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11090 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11091 if ${ac_cv_lib_dld_dld_link+:} false; then :
11092 $as_echo_n "(cached) " >&6
11093 else
11094 ac_check_lib_save_LIBS=$LIBS
11095 LIBS="-ldld $LIBS"
11096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11097 /* end confdefs.h. */
11098
11099 /* Override any GCC internal prototype to avoid an error.
11100 Use char because int might match the return type of a GCC
11101 builtin and then its argument prototype would still apply. */
11102 #ifdef __cplusplus
11103 extern "C"
11104 #endif
11105 char dld_link ();
11106 int
11107 main ()
11108 {
11109 return dld_link ();
11110 ;
11111 return 0;
11112 }
11113 _ACEOF
11114 if ac_fn_c_try_link "$LINENO"; then :
11115 ac_cv_lib_dld_dld_link=yes
11116 else
11117 ac_cv_lib_dld_dld_link=no
11118 fi
11119 rm -f core conftest.err conftest.$ac_objext \
11120 conftest$ac_exeext conftest.$ac_ext
11121 LIBS=$ac_check_lib_save_LIBS
11122 fi
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11124 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11125 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11126 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11127 fi
11128
11129
11130 fi
11131
11132
11133 fi
11134
11135
11136 fi
11137
11138
11139 fi
11140
11141
11142 fi
11143
11144 ;;
11145 esac
11146
11147 if test "x$lt_cv_dlopen" != xno; then
11148 enable_dlopen=yes
11149 else
11150 enable_dlopen=no
11151 fi
11152
11153 case $lt_cv_dlopen in
11154 dlopen)
11155 save_CPPFLAGS="$CPPFLAGS"
11156 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11157
11158 save_LDFLAGS="$LDFLAGS"
11159 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11160
11161 save_LIBS="$LIBS"
11162 LIBS="$lt_cv_dlopen_libs $LIBS"
11163
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11165 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11166 if ${lt_cv_dlopen_self+:} false; then :
11167 $as_echo_n "(cached) " >&6
11168 else
11169 if test "$cross_compiling" = yes; then :
11170 lt_cv_dlopen_self=cross
11171 else
11172 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11173 lt_status=$lt_dlunknown
11174 cat > conftest.$ac_ext <<_LT_EOF
11175 #line $LINENO "configure"
11176 #include "confdefs.h"
11177
11178 #if HAVE_DLFCN_H
11179 #include <dlfcn.h>
11180 #endif
11181
11182 #include <stdio.h>
11183
11184 #ifdef RTLD_GLOBAL
11185 # define LT_DLGLOBAL RTLD_GLOBAL
11186 #else
11187 # ifdef DL_GLOBAL
11188 # define LT_DLGLOBAL DL_GLOBAL
11189 # else
11190 # define LT_DLGLOBAL 0
11191 # endif
11192 #endif
11193
11194 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11195 find out it does not work in some platform. */
11196 #ifndef LT_DLLAZY_OR_NOW
11197 # ifdef RTLD_LAZY
11198 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11199 # else
11200 # ifdef DL_LAZY
11201 # define LT_DLLAZY_OR_NOW DL_LAZY
11202 # else
11203 # ifdef RTLD_NOW
11204 # define LT_DLLAZY_OR_NOW RTLD_NOW
11205 # else
11206 # ifdef DL_NOW
11207 # define LT_DLLAZY_OR_NOW DL_NOW
11208 # else
11209 # define LT_DLLAZY_OR_NOW 0
11210 # endif
11211 # endif
11212 # endif
11213 # endif
11214 #endif
11215
11216 /* When -fvisbility=hidden is used, assume the code has been annotated
11217 correspondingly for the symbols needed. */
11218 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11219 int fnord () __attribute__((visibility("default")));
11220 #endif
11221
11222 int fnord () { return 42; }
11223 int main ()
11224 {
11225 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11226 int status = $lt_dlunknown;
11227
11228 if (self)
11229 {
11230 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11231 else
11232 {
11233 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11234 else puts (dlerror ());
11235 }
11236 /* dlclose (self); */
11237 }
11238 else
11239 puts (dlerror ());
11240
11241 return status;
11242 }
11243 _LT_EOF
11244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11245 (eval $ac_link) 2>&5
11246 ac_status=$?
11247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11248 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11249 (./conftest; exit; ) >&5 2>/dev/null
11250 lt_status=$?
11251 case x$lt_status in
11252 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11253 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11254 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11255 esac
11256 else :
11257 # compilation failed
11258 lt_cv_dlopen_self=no
11259 fi
11260 fi
11261 rm -fr conftest*
11262
11263
11264 fi
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11266 $as_echo "$lt_cv_dlopen_self" >&6; }
11267
11268 if test "x$lt_cv_dlopen_self" = xyes; then
11269 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11271 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11272 if ${lt_cv_dlopen_self_static+:} false; then :
11273 $as_echo_n "(cached) " >&6
11274 else
11275 if test "$cross_compiling" = yes; then :
11276 lt_cv_dlopen_self_static=cross
11277 else
11278 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11279 lt_status=$lt_dlunknown
11280 cat > conftest.$ac_ext <<_LT_EOF
11281 #line $LINENO "configure"
11282 #include "confdefs.h"
11283
11284 #if HAVE_DLFCN_H
11285 #include <dlfcn.h>
11286 #endif
11287
11288 #include <stdio.h>
11289
11290 #ifdef RTLD_GLOBAL
11291 # define LT_DLGLOBAL RTLD_GLOBAL
11292 #else
11293 # ifdef DL_GLOBAL
11294 # define LT_DLGLOBAL DL_GLOBAL
11295 # else
11296 # define LT_DLGLOBAL 0
11297 # endif
11298 #endif
11299
11300 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11301 find out it does not work in some platform. */
11302 #ifndef LT_DLLAZY_OR_NOW
11303 # ifdef RTLD_LAZY
11304 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11305 # else
11306 # ifdef DL_LAZY
11307 # define LT_DLLAZY_OR_NOW DL_LAZY
11308 # else
11309 # ifdef RTLD_NOW
11310 # define LT_DLLAZY_OR_NOW RTLD_NOW
11311 # else
11312 # ifdef DL_NOW
11313 # define LT_DLLAZY_OR_NOW DL_NOW
11314 # else
11315 # define LT_DLLAZY_OR_NOW 0
11316 # endif
11317 # endif
11318 # endif
11319 # endif
11320 #endif
11321
11322 /* When -fvisbility=hidden is used, assume the code has been annotated
11323 correspondingly for the symbols needed. */
11324 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11325 int fnord () __attribute__((visibility("default")));
11326 #endif
11327
11328 int fnord () { return 42; }
11329 int main ()
11330 {
11331 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11332 int status = $lt_dlunknown;
11333
11334 if (self)
11335 {
11336 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11337 else
11338 {
11339 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11340 else puts (dlerror ());
11341 }
11342 /* dlclose (self); */
11343 }
11344 else
11345 puts (dlerror ());
11346
11347 return status;
11348 }
11349 _LT_EOF
11350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11351 (eval $ac_link) 2>&5
11352 ac_status=$?
11353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11354 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11355 (./conftest; exit; ) >&5 2>/dev/null
11356 lt_status=$?
11357 case x$lt_status in
11358 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11359 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11360 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11361 esac
11362 else :
11363 # compilation failed
11364 lt_cv_dlopen_self_static=no
11365 fi
11366 fi
11367 rm -fr conftest*
11368
11369
11370 fi
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11372 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11373 fi
11374
11375 CPPFLAGS="$save_CPPFLAGS"
11376 LDFLAGS="$save_LDFLAGS"
11377 LIBS="$save_LIBS"
11378 ;;
11379 esac
11380
11381 case $lt_cv_dlopen_self in
11382 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11383 *) enable_dlopen_self=unknown ;;
11384 esac
11385
11386 case $lt_cv_dlopen_self_static in
11387 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11388 *) enable_dlopen_self_static=unknown ;;
11389 esac
11390 fi
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408 striplib=
11409 old_striplib=
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11411 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11412 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11413 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11414 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11416 $as_echo "yes" >&6; }
11417 else
11418 # FIXME - insert some real tests, host_os isn't really good enough
11419 case $host_os in
11420 darwin*)
11421 if test -n "$STRIP" ; then
11422 striplib="$STRIP -x"
11423 old_striplib="$STRIP -S"
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11425 $as_echo "yes" >&6; }
11426 else
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428 $as_echo "no" >&6; }
11429 fi
11430 ;;
11431 *)
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433 $as_echo "no" >&6; }
11434 ;;
11435 esac
11436 fi
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449 # Report which library types will actually be built
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11451 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11453 $as_echo "$can_build_shared" >&6; }
11454
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11456 $as_echo_n "checking whether to build shared libraries... " >&6; }
11457 test "$can_build_shared" = "no" && enable_shared=no
11458
11459 # On AIX, shared libraries and static libraries use the same namespace, and
11460 # are all built from PIC.
11461 case $host_os in
11462 aix3*)
11463 test "$enable_shared" = yes && enable_static=no
11464 if test -n "$RANLIB"; then
11465 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11466 postinstall_cmds='$RANLIB $lib'
11467 fi
11468 ;;
11469
11470 aix[4-9]*)
11471 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11472 test "$enable_shared" = yes && enable_static=no
11473 fi
11474 ;;
11475 esac
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11477 $as_echo "$enable_shared" >&6; }
11478
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11480 $as_echo_n "checking whether to build static libraries... " >&6; }
11481 # Make sure either enable_shared or enable_static is yes.
11482 test "$enable_shared" = yes || enable_static=yes
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11484 $as_echo "$enable_static" >&6; }
11485
11486
11487
11488
11489 fi
11490 ac_ext=c
11491 ac_cpp='$CPP $CPPFLAGS'
11492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11495
11496 CC="$lt_save_CC"
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512 ac_config_commands="$ac_config_commands libtool"
11513
11514
11515
11516
11517 # Only expand once:
11518
11519
11520
11521 # Find a tar command for 'make dist'
11522 for ac_prog in gnutar gtar tar
11523 do
11524 # Extract the first word of "$ac_prog", so it can be a program name with args.
11525 set dummy $ac_prog; ac_word=$2
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11527 $as_echo_n "checking for $ac_word... " >&6; }
11528 if ${ac_cv_prog_TAR+:} false; then :
11529 $as_echo_n "(cached) " >&6
11530 else
11531 if test -n "$TAR"; then
11532 ac_cv_prog_TAR="$TAR" # Let the user override the test.
11533 else
11534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11535 for as_dir in $PATH
11536 do
11537 IFS=$as_save_IFS
11538 test -z "$as_dir" && as_dir=.
11539 for ac_exec_ext in '' $ac_executable_extensions; do
11540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11541 ac_cv_prog_TAR="$ac_prog"
11542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11543 break 2
11544 fi
11545 done
11546 done
11547 IFS=$as_save_IFS
11548
11549 fi
11550 fi
11551 TAR=$ac_cv_prog_TAR
11552 if test -n "$TAR"; then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11554 $as_echo "$TAR" >&6; }
11555 else
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557 $as_echo "no" >&6; }
11558 fi
11559
11560
11561 test -n "$TAR" && break
11562 done
11563
11564
11565 for ac_prog in lua
11566 do
11567 # Extract the first word of "$ac_prog", so it can be a program name with args.
11568 set dummy $ac_prog; ac_word=$2
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11570 $as_echo_n "checking for $ac_word... " >&6; }
11571 if ${ac_cv_prog_LUA+:} false; then :
11572 $as_echo_n "(cached) " >&6
11573 else
11574 if test -n "$LUA"; then
11575 ac_cv_prog_LUA="$LUA" # Let the user override the test.
11576 else
11577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11578 for as_dir in $PATH
11579 do
11580 IFS=$as_save_IFS
11581 test -z "$as_dir" && as_dir=.
11582 for ac_exec_ext in '' $ac_executable_extensions; do
11583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11584 ac_cv_prog_LUA="$ac_prog"
11585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11586 break 2
11587 fi
11588 done
11589 done
11590 IFS=$as_save_IFS
11591
11592 fi
11593 fi
11594 LUA=$ac_cv_prog_LUA
11595 if test -n "$LUA"; then
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA" >&5
11597 $as_echo "$LUA" >&6; }
11598 else
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600 $as_echo "no" >&6; }
11601 fi
11602
11603
11604 test -n "$LUA" && break
11605 done
11606
11607 for ac_prog in python
11608 do
11609 # Extract the first word of "$ac_prog", so it can be a program name with args.
11610 set dummy $ac_prog; ac_word=$2
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11612 $as_echo_n "checking for $ac_word... " >&6; }
11613 if ${ac_cv_prog_PYTHON+:} false; then :
11614 $as_echo_n "(cached) " >&6
11615 else
11616 if test -n "$PYTHON"; then
11617 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
11618 else
11619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620 for as_dir in $PATH
11621 do
11622 IFS=$as_save_IFS
11623 test -z "$as_dir" && as_dir=.
11624 for ac_exec_ext in '' $ac_executable_extensions; do
11625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11626 ac_cv_prog_PYTHON="$ac_prog"
11627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11628 break 2
11629 fi
11630 done
11631 done
11632 IFS=$as_save_IFS
11633
11634 fi
11635 fi
11636 PYTHON=$ac_cv_prog_PYTHON
11637 if test -n "$PYTHON"; then
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
11639 $as_echo "$PYTHON" >&6; }
11640 else
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 $as_echo "no" >&6; }
11643 fi
11644
11645
11646 test -n "$PYTHON" && break
11647 done
11648
11649 for ac_prog in perl
11650 do
11651 # Extract the first word of "$ac_prog", so it can be a program name with args.
11652 set dummy $ac_prog; ac_word=$2
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11654 $as_echo_n "checking for $ac_word... " >&6; }
11655 if ${ac_cv_prog_PERL+:} false; then :
11656 $as_echo_n "(cached) " >&6
11657 else
11658 if test -n "$PERL"; then
11659 ac_cv_prog_PERL="$PERL" # Let the user override the test.
11660 else
11661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11662 for as_dir in $PATH
11663 do
11664 IFS=$as_save_IFS
11665 test -z "$as_dir" && as_dir=.
11666 for ac_exec_ext in '' $ac_executable_extensions; do
11667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11668 ac_cv_prog_PERL="$ac_prog"
11669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11670 break 2
11671 fi
11672 done
11673 done
11674 IFS=$as_save_IFS
11675
11676 fi
11677 fi
11678 PERL=$ac_cv_prog_PERL
11679 if test -n "$PERL"; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11681 $as_echo "$PERL" >&6; }
11682 else
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684 $as_echo "no" >&6; }
11685 fi
11686
11687
11688 test -n "$PERL" && break
11689 done
11690
11691 for ac_prog in php
11692 do
11693 # Extract the first word of "$ac_prog", so it can be a program name with args.
11694 set dummy $ac_prog; ac_word=$2
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11696 $as_echo_n "checking for $ac_word... " >&6; }
11697 if ${ac_cv_prog_PHP+:} false; then :
11698 $as_echo_n "(cached) " >&6
11699 else
11700 if test -n "$PHP"; then
11701 ac_cv_prog_PHP="$PHP" # Let the user override the test.
11702 else
11703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704 for as_dir in $PATH
11705 do
11706 IFS=$as_save_IFS
11707 test -z "$as_dir" && as_dir=.
11708 for ac_exec_ext in '' $ac_executable_extensions; do
11709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11710 ac_cv_prog_PHP="$ac_prog"
11711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11712 break 2
11713 fi
11714 done
11715 done
11716 IFS=$as_save_IFS
11717
11718 fi
11719 fi
11720 PHP=$ac_cv_prog_PHP
11721 if test -n "$PHP"; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
11723 $as_echo "$PHP" >&6; }
11724 else
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11727 fi
11728
11729
11730 test -n "$PHP" && break
11731 done
11732
11733 for ac_prog in ruby
11734 do
11735 # Extract the first word of "$ac_prog", so it can be a program name with args.
11736 set dummy $ac_prog; ac_word=$2
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11738 $as_echo_n "checking for $ac_word... " >&6; }
11739 if ${ac_cv_prog_RUBY+:} false; then :
11740 $as_echo_n "(cached) " >&6
11741 else
11742 if test -n "$RUBY"; then
11743 ac_cv_prog_RUBY="$RUBY" # Let the user override the test.
11744 else
11745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746 for as_dir in $PATH
11747 do
11748 IFS=$as_save_IFS
11749 test -z "$as_dir" && as_dir=.
11750 for ac_exec_ext in '' $ac_executable_extensions; do
11751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11752 ac_cv_prog_RUBY="$ac_prog"
11753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11754 break 2
11755 fi
11756 done
11757 done
11758 IFS=$as_save_IFS
11759
11760 fi
11761 fi
11762 RUBY=$ac_cv_prog_RUBY
11763 if test -n "$RUBY"; then
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
11765 $as_echo "$RUBY" >&6; }
11766 else
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11768 $as_echo "no" >&6; }
11769 fi
11770
11771
11772 test -n "$RUBY" && break
11773 done
11774
11775 for ac_prog in swig
11776 do
11777 # Extract the first word of "$ac_prog", so it can be a program name with args.
11778 set dummy $ac_prog; ac_word=$2
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11780 $as_echo_n "checking for $ac_word... " >&6; }
11781 if ${ac_cv_prog_SWIG+:} false; then :
11782 $as_echo_n "(cached) " >&6
11783 else
11784 if test -n "$SWIG"; then
11785 ac_cv_prog_SWIG="$SWIG" # Let the user override the test.
11786 else
11787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11788 for as_dir in $PATH
11789 do
11790 IFS=$as_save_IFS
11791 test -z "$as_dir" && as_dir=.
11792 for ac_exec_ext in '' $ac_executable_extensions; do
11793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11794 ac_cv_prog_SWIG="$ac_prog"
11795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11796 break 2
11797 fi
11798 done
11799 done
11800 IFS=$as_save_IFS
11801
11802 fi
11803 fi
11804 SWIG=$ac_cv_prog_SWIG
11805 if test -n "$SWIG"; then
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
11807 $as_echo "$SWIG" >&6; }
11808 else
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810 $as_echo "no" >&6; }
11811 fi
11812
11813
11814 test -n "$SWIG" && break
11815 done
11816
11817 # Gnome
11818 for ac_prog in pkg-config
11819 do
11820 # Extract the first word of "$ac_prog", so it can be a program name with args.
11821 set dummy $ac_prog; ac_word=$2
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11823 $as_echo_n "checking for $ac_word... " >&6; }
11824 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
11825 $as_echo_n "(cached) " >&6
11826 else
11827 if test -n "$PKG_CONFIG"; then
11828 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
11829 else
11830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831 for as_dir in $PATH
11832 do
11833 IFS=$as_save_IFS
11834 test -z "$as_dir" && as_dir=.
11835 for ac_exec_ext in '' $ac_executable_extensions; do
11836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11837 ac_cv_prog_PKG_CONFIG="$ac_prog"
11838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11839 break 2
11840 fi
11841 done
11842 done
11843 IFS=$as_save_IFS
11844
11845 fi
11846 fi
11847 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
11848 if test -n "$PKG_CONFIG"; then
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11850 $as_echo "$PKG_CONFIG" >&6; }
11851 else
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853 $as_echo "no" >&6; }
11854 fi
11855
11856
11857 test -n "$PKG_CONFIG" && break
11858 done
11859
11860
11861 if test "X$PERL" != "X"; then
11862 PERLINSTALLSITEARCH=`$PERL -MConfig -e 'print $Config{installsitearch};'`
11863 PERLMAN3DIR=`$PERL -MConfig -e 'print $Config{man3dir};'`
11864 else
11865 PERLINSTALLSITEARCH=none
11866 PERLMAN3DIR=none
11867 fi
11868
11869
11870
11871 SWIG_MIN_VERSION=1.3.26
11872 SWIG_RECOMMENDED_VERSION=2.0.0
11873
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG support" >&5
11875 $as_echo_n "checking SWIG support... " >&6; }
11876 if test "X$SWIG" != "X"; then
11877 SWIG_VERSION=`$SWIG -version 2>&1 |sed -ne 's/^SWIG Version //p'`
11878 SWIG_VERSION_DEC=`echo $SWIG_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
11879
11880 SWIG_MIN_VERSION_DEC=`echo $SWIG_MIN_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
11881 SWIG_REC_VERSION_DEC=`echo $SWIG_RECOMMENDED_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
11882
11883 if test $SWIG_VERSION_DEC -ge $SWIG_MIN_VERSION_DEC; then
11884 if test $SWIG_VERSION_DEC -ge $SWIG_REC_VERSION_DEC; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION - OK" >&5
11886 $as_echo "$SWIG_VERSION - OK" >&6; }
11887 else
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION - OK but $SWIG_RECOMMENDED_VERSION recommended" >&5
11889 $as_echo "$SWIG_VERSION - OK but $SWIG_RECOMMENDED_VERSION recommended" >&6; }
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG $SWIG_RECOMMENDED_VERSION will be REQUIRED from the next release" >&5
11891 $as_echo "$as_me: WARNING: SWIG $SWIG_RECOMMENDED_VERSION will be REQUIRED from the next release" >&2;}
11892 fi
11893 else
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION - too old to generate language interfaces" >&5
11895 $as_echo "$SWIG_VERSION - too old to generate language interfaces" >&6; }
11896 if test -r $srcdir/perl/CORE_wrap.c ; then
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Pre-generated language interface files are present" >&5
11898 $as_echo "$as_me: WARNING: Pre-generated language interface files are present" >&2;}
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you want to change the interfaces you will need" >&5
11900 $as_echo "$as_me: WARNING: If you want to change the interfaces you will need" >&2;}
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version $SWIG_MIN_VERSION from http://www.swig.org/" >&5
11902 $as_echo "$as_me: WARNING: SWIG version $SWIG_MIN_VERSION from http://www.swig.org/" >&2;}
11903 else
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: There are no pre-generated language interface files" >&5
11905 $as_echo "$as_me: WARNING: There are no pre-generated language interface files" >&2;}
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Redland language interfaces will NOT build." >&5
11907 $as_echo "$as_me: WARNING: Redland language interfaces will NOT build." >&2;}
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you want to build them you will need" >&5
11909 $as_echo "$as_me: WARNING: If you want to build them you will need" >&2;}
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version $SWIG_MIN_VERSION from http://www.swig.org/" >&5
11911 $as_echo "$as_me: WARNING: SWIG version $SWIG_MIN_VERSION from http://www.swig.org/" >&2;}
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Alternatively copy the pre-generated interface" >&5
11913 $as_echo "$as_me: WARNING: Alternatively copy the pre-generated interface" >&2;}
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: files from a released version" >&5
11915 $as_echo "$as_me: WARNING: files from a released version" >&2;}
11916 fi
11917 fi
11918 else
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present - using pre-generated interface files" >&5
11920 $as_echo "not present - using pre-generated interface files" >&6; }
11921 fi
11922
11923
11924
11925
11926 languages=
11927 languages_available=
11928
11929
11930
11931
11932 # Check whether --with-lua was given.
11933 if test "${with_lua+set}" = set; then :
11934 withval=$with_lua; with_lua="$withval"
11935 else
11936 with_lua="no"
11937 fi
11938
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Enable LUA API" >&5
11940 $as_echo_n "checking Enable LUA API... " >&6; }
11941 if test "X$with_lua" != Xno ; then
11942 if test "X$with_lua" != Xyes; then
11943 LUA=$with_lua
11944 fi
11945 with_lua=yes
11946 fi
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua" >&5
11948 $as_echo "$with_lua" >&6; }
11949
11950 LUA_VERSION=
11951 LUA_CFLAGS=
11952 LUA_LDFLAGS=
11953 if test "X$with_lua" = Xyes -a -n "$PKG_CONFIG"; then
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA Version" >&5
11955 $as_echo_n "checking LUA Version... " >&6; }
11956 LUA_PKGCONFIG=$LUA
11957 LUA_VERSION=`$PKG_CONFIG $LUA_PKGCONFIG --modversion`
11958 LUA_CFLAGS=`$PKG_CONFIG $LUA_PKGCONFIG --cflags`
11959 LUA_LDFLAGS=`$PKG_CONFIG $LUA_PKGCONFIG --libs`
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA_VERSION" >&5
11961 $as_echo "$LUA_VERSION" >&6; }
11962 fi
11963
11964
11965
11966 if test "X$LUA_VERSION" != X; then
11967 languages_available="$languages_available lua($LUA_VERSION)"
11968 if test $with_lua = yes; then
11969 languages="$languages lua"
11970 fi
11971 fi
11972
11973
11974 # Extract the first word of "php-config", so it can be a program name with args.
11975 set dummy php-config; ac_word=$2
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11977 $as_echo_n "checking for $ac_word... " >&6; }
11978 if ${ac_cv_prog_PHP_CONFIG+:} false; then :
11979 $as_echo_n "(cached) " >&6
11980 else
11981 if test -n "$PHP_CONFIG"; then
11982 ac_cv_prog_PHP_CONFIG="$PHP_CONFIG" # Let the user override the test.
11983 else
11984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11985 for as_dir in $PATH
11986 do
11987 IFS=$as_save_IFS
11988 test -z "$as_dir" && as_dir=.
11989 for ac_exec_ext in '' $ac_executable_extensions; do
11990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11991 ac_cv_prog_PHP_CONFIG="php-config"
11992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11993 break 2
11994 fi
11995 done
11996 done
11997 IFS=$as_save_IFS
11998
11999 fi
12000 fi
12001 PHP_CONFIG=$ac_cv_prog_PHP_CONFIG
12002 if test -n "$PHP_CONFIG"; then
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CONFIG" >&5
12004 $as_echo "$PHP_CONFIG" >&6; }
12005 else
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12007 $as_echo "no" >&6; }
12008 fi
12009
12010
12011 if test "X$PHP_CONFIG" != X ; then
12012
12013 PHP_VERSION=`$PHP_CONFIG --version`
12014 PHP_INCLUDES=`$PHP_CONFIG --includes`
12015 PHP_EXTENSION_DIR=`$PHP_CONFIG --extension-dir`
12016
12017 if test $PHP_VERSION '>' 5.0.0; then
12018 PHP_SWIG="-php5"
12019 else
12020 PHP_SWIG="-php4"
12021 fi
12022
12023 # Configure these if PHP_SO_SUFFIX is missing
12024 if test "X$PHP_SO_SUFFIX" = "X"; then
12025 # OSX/Darwin default is bundle
12026 if test `uname` = Darwin; then
12027 # FIXME - how to decide between bundle and dylib?
12028 php_linking=bundle
12029 else
12030 php_linking=so
12031 fi
12032
12033 # Check whether --with-php-linking was given.
12034 if test "${with_php_linking+set}" = set; then :
12035 withval=$with_php_linking; php_linking="$withval"
12036 fi
12037
12038 case $php_linking in
12039 so)
12040 PHP_LDFLAGS="-shared"
12041 PHP_CFLAGS=
12042 ;;
12043 dylib)
12044 PHP_LDFLAGS="-flat_namespace -undefined suppress"
12045 PHP_CFLAGS="-fno-common"
12046 ;;
12047 bundle)
12048 PHP_LDFLAGS="-bundle -flat_namespace -undefined suppress"
12049 PHP_CFLAGS="-fno-common"
12050 ;;
12051 *)
12052 as_fn_error $? "No such PHP linking type $php_linking" "$LINENO" 5
12053 ;;
12054 esac
12055 PHP_SO_SUFFIX=$php_linking
12056 fi
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PHP Linking" >&5
12058 $as_echo_n "checking PHP Linking... " >&6; }
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compile '$PHP_CFLAGS' link '$PHP_LDFLAGS' suffix $PHP_SO_SUFFIX" >&5
12060 $as_echo "compile '$PHP_CFLAGS' link '$PHP_LDFLAGS' suffix $PHP_SO_SUFFIX" >&6; }
12061
12062 else
12063 # This allows 'make clean' in the php directory to work when
12064 # php isn't available
12065 PHP=:
12066 PHP_SWIG=
12067 PHP_INCLUDES=
12068 PHP_EXTENSION_DIR=
12069 PHP_CFLAGS=
12070 PHP_LDFLAGS=
12071 PHP_SO_SUFFIX=
12072 fi
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082 # Check whether --with-perl was given.
12083 if test "${with_perl+set}" = set; then :
12084 withval=$with_perl; with_perl="$withval"
12085 else
12086 with_perl="no"
12087 fi
12088
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Enable Perl API" >&5
12090 $as_echo_n "checking Enable Perl API... " >&6; }
12091 if test "X$with_perl" != Xno ; then
12092 if test "X$with_perl" != Xyes; then
12093 PERL=$with_perl
12094 fi
12095 with_perl=yes
12096 fi
12097
12098 PERL_VERSION=`$PERL -MConfig -e 'print $Config{version}' 2>/dev/null`
12099 if test "X$PERL_VERSION" != X; then
12100 languages_available="$languages_available perl($PERL_VERSION)"
12101 if test $with_perl = yes; then
12102 languages="$languages perl"
12103 fi
12104 fi
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
12106 $as_echo "$with_perl" >&6; }
12107
12108
12109
12110 # Check whether --with-perl-makemaker-args was given.
12111 if test "${with_perl_makemaker_args+set}" = set; then :
12112 withval=$with_perl_makemaker_args; perl_makemaker_args="$withval"
12113 else
12114 perl_makemaker_args=""
12115 fi
12116
12117 PERL_MAKEMAKER_ARGS="$perl_makemaker_args"
12118
12119
12120
12121
12122 # Check whether --with-python was given.
12123 if test "${with_python+set}" = set; then :
12124 withval=$with_python; with_python="$withval"
12125 else
12126 with_python="no"
12127 fi
12128
12129
12130 # envariable override --with-python-ldflags and --with-libext
12131
12132
12133
12134
12135
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Enable Python API" >&5
12137 $as_echo_n "checking Enable Python API... " >&6; }
12138 if test "X$with_python" != Xno; then
12139 if test "X$with_python" != Xyes; then
12140 PYTHON=$with_python
12141 fi
12142 with_python=yes
12143 fi
12144
12145 PYTHON_VERSION=`$PYTHON -c 'import sys; print(sys.version[:3])' 2>/dev/null`
12146 if test "X$PYTHON_VERSION" != X; then
12147 languages_available="$languages_available python($PYTHON_VERSION)"
12148 if test $with_python = yes; then
12149 languages="$languages python"
12150 fi
12151 fi
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python $PYTHON_VERSION" >&5
12153 $as_echo "$with_python $PYTHON_VERSION" >&6; }
12154
12155
12156 if test "X$PYTHON" != X; then
12157
12158 if test "X$PYTHON_LDFLAGS" = X; then
12159
12160 # Check whether --with-python_ldflags was given.
12161 if test "${with_python_ldflags+set}" = set; then :
12162 withval=$with_python_ldflags; with_python_ldflags="$withval"
12163 else
12164 with_python_ldflags=""
12165 fi
12166
12167 if test "X$with_python_ldflags" != X; then
12168 PYTHON_LDFLAGS=$with_python_ldflags
12169 fi
12170 fi
12171
12172 if test "X$PYTHON_LIBEXT" = X; then
12173 python_default_libext=`$PYTHON -c 'from distutils import sysconfig; print(sysconfig.get_config_var("SO"))'`
12174
12175 # Check whether --with-python-libext was given.
12176 if test "${with_python_libext+set}" = set; then :
12177 withval=$with_python_libext; with_python_libext="$withval"
12178 else
12179 with_python_libext=$python_default_libext
12180 fi
12181
12182 if test "X$with_python_libext" != X; then
12183 PYTHON_LIBEXT=$with_python_libext
12184 fi
12185 fi
12186
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python includes" >&5
12188 $as_echo_n "checking Python includes... " >&6; }
12189 python_prefix=`$PYTHON -c 'import sys; print(sys.prefix)' 2>/dev/null`
12190 python_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
12191
12192 if test "X$PYTHON_INCLUDES" != X; then
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using user includes: $PYTHON_INCLUDES" >&5
12194 $as_echo "using user includes: $PYTHON_INCLUDES" >&6; }
12195 else
12196 python_includes=`$PYTHON -c 'from distutils import sysconfig; print(sysconfig.get_python_inc())'`
12197 PYTHON_INCLUDES="-I$python_includes"
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCLUDES" >&5
12199 $as_echo "$PYTHON_INCLUDES" >&6; }
12200 fi
12201
12202
12203 # Check whether --with-python-get-python-lib-args was given.
12204 if test "${with_python_get_python_lib_args+set}" = set; then :
12205 withval=$with_python_get_python_lib_args; get_python_lib_args="$withval"
12206 else
12207 get_python_lib_args=""
12208 fi
12209
12210
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python libs" >&5
12212 $as_echo_n "checking Python libs... " >&6; }
12213 if test "X$PYTHON_LIB" != X; then
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using user lib: $PYTHON_LIB" >&5
12215 $as_echo "using user lib: $PYTHON_LIB" >&6; }
12216 else
12217 PYTHON_LIB=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib($get_python_lib_args))"`
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LIB" >&5
12219 $as_echo "$PYTHON_LIB" >&6; }
12220 fi
12221
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python LDFLAGS" >&5
12223 $as_echo_n "checking Python LDFLAGS... " >&6; }
12224 if test "X$PYTHON_LDFLAGS" != X; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using user ldflags: $PYTHON_LDFLAGS" >&5
12226 $as_echo "using user ldflags: $PYTHON_LDFLAGS" >&6; }
12227 else
12228 # Guess PYTHON_LDFLAGS if not passed in
12229 if test `uname` = Darwin; then
12230 PYTHON_LDFLAGS="-Wl,-F. -Wl,-F. -bundle"
12231 if echo $python_prefix | grep Frameworks >/dev/null; then
12232 fpath=`echo $python_prefix | sed -e 's,Frameworks/.*$,Frameworks,'`
12233 PYTHON_LDFLAGS="$PYTHON_LDFLAGS -F$fpath -framework Python"
12234 fi
12235 else
12236 PYTHON_LDFLAGS="-shared"
12237 fi
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: guessed flags: $PYTHON_LDFLAGS" >&5
12239 $as_echo "guessed flags: $PYTHON_LDFLAGS" >&6; }
12240 fi
12241
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python shared library file extension" >&5
12243 $as_echo_n "checking Python shared library file extension... " >&6; }
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LIBEXT" >&5
12245 $as_echo "$PYTHON_LIBEXT" >&6; }
12246 else
12247 # This allows 'make clean' in the python directory to work when
12248 # python isn't available
12249 PYTHON=:
12250 fi
12251
12252
12253
12254 # Check whether --with-ruby-arch-install-dir-variable was given.
12255 if test "${with_ruby_arch_install_dir_variable+set}" = set; then :
12256 withval=$with_ruby_arch_install_dir_variable; ruby_arch_install_dir_variable="$withval"
12257 else
12258 ruby_arch_install_dir_variable="archdir"
12259 fi
12260
12261
12262
12263 # Check whether --with-ruby-arch-install-dir was given.
12264 if test "${with_ruby_arch_install_dir+set}" = set; then :
12265 withval=$with_ruby_arch_install_dir; ruby_arch_install_dir="$withval"
12266 else
12267 ruby_arch_install_dir="auto"
12268 fi
12269
12270
12271
12272 # Check whether --with-ruby-install-dir-variable was given.
12273 if test "${with_ruby_install_dir_variable+set}" = set; then :
12274 withval=$with_ruby_install_dir_variable; ruby_install_dir_variable="$withval"
12275 else
12276 ruby_install_dir_variable="rubylibdir"
12277 fi
12278
12279
12280
12281 # Check whether --with-ruby-install-dir was given.
12282 if test "${with_ruby_install_dir+set}" = set; then :
12283 withval=$with_ruby_install_dir; ruby_install_dir="$withval"
12284 else
12285 ruby_install_dir="auto"
12286 fi
12287
12288
12289 RUBY_PACKAGE=redland
12290 RUBY_CFLAGS=
12291 RUBY_LDFLAGS=
12292 RUBY_INCLUDES=
12293 RUBY_SO_SUFFIX=
12294 RUBY_INSTALLDIR=
12295 RUBY_ARCH_INSTALLDIR=
12296 if test "X$RUBY" != X; then
12297 RUBY_ARCHDIR=`$RUBY -rrbconfig -e "print RbConfig::CONFIG['archdir']"`
12298 ruby_install_dir_config=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['$ruby_install_dir_variable']"`
12299 ruby_header_dir_config=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['rubyhdrdir']"`
12300 ruby_arch_header_dir_config=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['rubyarchhdrdir']"`
12301 ruby_arch_install_dir_config=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['$ruby_arch_install_dir_variable']"`
12302 librubyarg_shared=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['LIBRUBYARG_SHARED']"`
12303
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby installation dir" >&5
12305 $as_echo_n "checking Ruby installation dir... " >&6; }
12306 if test "X$ruby_install_dir" != "Xauto"; then
12307 RUBY_INSTALLDIR=$ruby_install_dir
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_INSTALLDIR from user" >&5
12309 $as_echo "$RUBY_INSTALLDIR from user" >&6; }
12310 else
12311 RUBY_INSTALLDIR=$ruby_install_dir_config
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_INSTALLDIR from RbConfig::CONFIG $ruby_install_dir_variable" >&5
12313 $as_echo "$RUBY_INSTALLDIR from RbConfig::CONFIG $ruby_install_dir_variable" >&6; }
12314 fi
12315
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby arch installation dir" >&5
12317 $as_echo_n "checking Ruby arch installation dir... " >&6; }
12318 if test "X$ruby_arch_install_dir" != "Xauto"; then
12319 RUBY_ARCH_INSTALLDIR=$ruby_arch_install_dir
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_ARCH_INSTALLDIR from user" >&5
12321 $as_echo "$RUBY_ARCH_INSTALLDIR from user" >&6; }
12322 else
12323 RUBY_ARCH_INSTALLDIR=$ruby_arch_install_dir_config
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_ARCH_INSTALLDIR from RbConfig::CONFIG $ruby_arch_install_dir_variable" >&5
12325 $as_echo "$RUBY_ARCH_INSTALLDIR from RbConfig::CONFIG $ruby_arch_install_dir_variable" >&6; }
12326 fi
12327
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby headers dir" >&5
12329 $as_echo_n "checking Ruby headers dir... " >&6; }
12330 if test "X$ruby_header_dir_config" != "Xnil" -a "X$ruby_header_dir_config" != "X"; then
12331 RUBY_INCLUDES="$RUBY_INCLUDES -I$ruby_header_dir_config -I$ruby_arch_header_dir_config"
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_INCLUDES from RbConfig::CONFIG rubyhdrdir and rubyarchhdrdir" >&5
12333 $as_echo "$RUBY_INCLUDES from RbConfig::CONFIG rubyhdrdir and rubyarchhdrdir" >&6; }
12334 else
12335 if test -r "$RUBY_ARCHDIR/ruby.h"; then
12336 RUBY_INCLUDES="$RUBY_INCLUDES -I$RUBY_ARCHDIR"
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_INCLUDES from arch dir" >&5
12338 $as_echo "$RUBY_INCLUDES from arch dir" >&6; }
12339 else
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ruby.h not found - unable to compile Redland ruby bindings" >&5
12341 $as_echo "ruby.h not found - unable to compile Redland ruby bindings" >&6; }
12342 fi
12343 fi
12344
12345 # OSX/Darwin default is bundle
12346 if test `uname` = Darwin; then
12347 # FIXME - how to decide between bundle and dylib?
12348 ruby_linking=bundle
12349 else
12350 ruby_linking=so
12351 fi
12352
12353 # Check whether --with-ruby-linking was given.
12354 if test "${with_ruby_linking+set}" = set; then :
12355 withval=$with_ruby_linking; ruby_linking="$withval"
12356 fi
12357
12358 case $ruby_linking in
12359 so)
12360 RUBY_LDFLAGS="$RUBY_LDFLAGS -shared $librubyarg_shared"
12361 ;;
12362 dylib)
12363 RUBY_LDFLAGS="$RUBY_LDFLAGS -flat_namespace -undefined suppress $librubyarg_shared"
12364 RUBY_CFLAGS="$RUBY_CFLAGS -fno-common"
12365 ;;
12366 bundle)
12367 RUBY_LDFLAGS="$RUBY_LDFLAGS -bundle -flat_namespace -undefined suppress $librubyarg_shared"
12368 RUBY_CFLAGS="$RUBY_CFLAGS -fno-common"
12369 ;;
12370 *)
12371 as_fn_error $? "No such RUBY linking type $ruby_linking" "$LINENO" 5
12372 ;;
12373 esac
12374 RUBY_SO_SUFFIX=$php_linking
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby Linking" >&5
12376 $as_echo_n "checking Ruby Linking... " >&6; }
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compile '$RUBY_CFLAGS' link '$RUBY_LDFLAGS' suffix $RUBY_SO_SUFFIX" >&5
12378 $as_echo "compile '$RUBY_CFLAGS' link '$RUBY_LDFLAGS' suffix $RUBY_SO_SUFFIX" >&6; }
12379 else
12380 # This allows 'make clean' in the ruby directory to work when
12381 # ruby isn't available
12382 RUBY=:
12383 fi
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394 # Check whether --with-php was given.
12395 if test "${with_php+set}" = set; then :
12396 withval=$with_php; with_php="$withval"
12397 else
12398 with_php="no"
12399 fi
12400
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Enable PHP API" >&5
12402 $as_echo_n "checking Enable PHP API... " >&6; }
12403 if test "X$with_php" != Xno ; then
12404 if test "X$with_php" != Xyes; then
12405 PHP=$with_php
12406 fi
12407 with_php=yes
12408 fi
12409
12410 PHP_VERSION=`php-config --version 2>/dev/null`
12411 if test "X$PHP_VERSION" != X; then
12412 languages_available="$languages_available php($PHP_VERSION)"
12413 if test $with_php = yes; then
12414 languages="$languages php"
12415 fi
12416 fi
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_php" >&5
12418 $as_echo "$with_php" >&6; }
12419
12420
12421
12422
12423 # Check whether --with-ruby was given.
12424 if test "${with_ruby+set}" = set; then :
12425 withval=$with_ruby; with_ruby="$withval"
12426 else
12427 with_ruby="no"
12428 fi
12429
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Enable Ruby API" >&5
12431 $as_echo_n "checking Enable Ruby API... " >&6; }
12432 if test "X$with_ruby" != Xno ; then
12433 if test "X$with_ruby" != Xyes; then
12434 RUBY=$with_ruby
12435 fi
12436 with_ruby=yes
12437 fi
12438
12439 RUBY_VERSION=`$RUBY --version 2>/dev/null | $AWK '{print $2}'`
12440 if test "X$RUBY_VERSION" != X; then
12441 languages_available="$languages_available ruby($RUBY_VERSION)"
12442 if test $with_ruby = yes; then
12443 languages="$languages ruby"
12444 fi
12445 fi
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ruby" >&5
12447 $as_echo "$with_ruby" >&6; }
12448
12449
12450
12451
12452
12453 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
12454
12455
12456 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12457
12458
12459 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
12460
12461
12462 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12463
12464
12465
12466 release_version=no
12467 # Check whether --enable-release was given.
12468 if test "${enable_release+set}" = set; then :
12469 enableval=$enable_release; \
12470 if test "$enableval" = "yes"; then \
12471 release_version=yes
12472 fi;
12473 fi
12474
12475
12476 if test "$USE_MAINTAINER_MODE" = yes -a $release_version = no; then
12477 CFLAGS=`echo $CFLAGS | sed s/-O2//`
12478 CXXFLAGS=`echo $CXXFLAGS | sed s/-O2//`
12479 CPPFLAGS=`echo $CPPFLAGS | sed s/-O2//`
12480 fi
12481
12482
12483
12484 # if using gcc...
12485 if test "$ac_cv_c_compiler_gnu" = yes; then
12486 STANDARD_CFLAGS=
12487 MAINTAINER_CFLAGS="-Wall -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls"
12488 else
12489 STANDARD_CFLAGS=
12490 MAINTAINER_CFLAGS=
12491 fi
12492
12493
12494 # Externally linked libraries - appear in redland-config
12495 # -Dfoo -Idir
12496 LIBRDF_CPPFLAGS=$CPPFLAGS
12497 # -Ldir -llib
12498 LIBRDF_LDFLAGS="$LDFLAGS $LIBS"
12499
12500
12501
12502
12503 # redland is REQUIRED
12504 OUR_REDLAND_VERSION=`echo $PACKAGE_VERSION | sed -e 's,\.[0-9]$,,'`
12505 OUR_REDLAND_VERSION_DEC=`echo $OUR_REDLAND_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
12506
12507 REDLAND_VERSION=
12508
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redland" >&5
12510 $as_echo_n "checking for redland... " >&6; }
12511 if $PKG_CONFIG --exists redland; then
12512 REDLAND_CONFIG="$PKG_CONFIG redland"
12513 REDLAND_VERSION=`$PKG_CONFIG redland --modversion`
12514 REDLAND_VERSION_DEC=`echo $REDLAND_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
12515
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REDLAND_VERSION" >&5
12517 $as_echo "$REDLAND_VERSION" >&6; }
12518 else
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12520 $as_echo "not found" >&6; }
12521
12522 as_fn_error $? "Redland is not installed - see http://librdf.org/ to get a version $OUR_REDLAND_VERSION or newer" "$LINENO" 5
12523 fi
12524
12525
12526 if $PKG_CONFIG --atleast-version=$MIN_REDLAND_VERSION redland; then
12527 :
12528 else
12529 as_fn_error $? "Redland version $REDLAND_VERSION found. $MIN_REDLAND_VERSION or newer is required - see http://librdf.org/" "$LINENO" 5
12530 fi
12531
12532
12533 REDLAND_RUN=
12534
12535
12536
12537
12538
12539 REDLAND_SWIG=`$PKG_CONFIG redland --variable=swig`
12540
12541
12542 LIBRDF_CPPFLAGS="$LIBRDF_CPPFLAGS `$PKG_CONFIG redland --cflags`"
12543 LIBRDF_LDFLAGS="$LIBRDF_LDFLAGS `$PKG_CONFIG redland --libs`"
12544
12545 RAPTOR_LDFLAGS=`$PKG_CONFIG raptor2 --libs`
12546 RASQAL_LDFLAGS=`$PKG_CONFIG rasqal --libs`
12547
12548
12549
12550 SD="$languages"
12551
12552
12553
12554
12555 # Make final changes to cflags
12556 MEM=
12557 MEM_LIBS=
12558
12559 STANDARD_CFLAGS="$STANDARD_CFLAGS $CFLAGS"
12560 if test "$USE_MAINTAINER_MODE" = yes; then
12561 CFLAGS="$MAINTAINER_CFLAGS $CFLAGS"
12562 fi
12563
12564 LIBS=
12565 CPPFLAGS=
12566 LDFLAGS=
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581 abs_top_srcdir=`cd $srcdir; pwd`
12582
12583 abs_top_builddir=`pwd`
12584
12585
12586 ac_config_files="$ac_config_files Makefile bindings.rdf docs/Makefile perl/Makefile perl/t/Makefile perl/lib/Makefile perl/lib/RDF/Makefile perl/lib/RDF/Redland/Makefile lua/Makefile php/Makefile python/Makefile python/test/Makefile ruby/Makefile ruby/test/Makefile ruby/lib/Makefile ruby/lib/rdf/Makefile ruby/lib/rdf/redland/Makefile ruby/lib/rdf/redland/schemas/Makefile data/Makefile"
12587
12588 ac_config_files="$ac_config_files redland-bindings.spec"
12589
12590 ac_config_files="$ac_config_files perl/lib/RDF/Redland.pm"
12591
12592
12593 cat >confcache <<\_ACEOF
12594 # This file is a shell script that caches the results of configure
12595 # tests run on this system so they can be shared between configure
12596 # scripts and configure runs, see configure's option --config-cache.
12597 # It is not useful on other systems. If it contains results you don't
12598 # want to keep, you may remove or edit it.
12599 #
12600 # config.status only pays attention to the cache file if you give it
12601 # the --recheck option to rerun configure.
12602 #
12603 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12604 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12605 # following values.
12606
12607 _ACEOF
12608
12609 # The following way of writing the cache mishandles newlines in values,
12610 # but we know of no workaround that is simple, portable, and efficient.
12611 # So, we kill variables containing newlines.
12612 # Ultrix sh set writes to stderr and can't be redirected directly,
12613 # and sets the high bit in the cache file unless we assign to the vars.
12614 (
12615 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12616 eval ac_val=\$$ac_var
12617 case $ac_val in #(
12618 *${as_nl}*)
12619 case $ac_var in #(
12620 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12621 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12622 esac
12623 case $ac_var in #(
12624 _ | IFS | as_nl) ;; #(
12625 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12626 *) { eval $ac_var=; unset $ac_var;} ;;
12627 esac ;;
12628 esac
12629 done
12630
12631 (set) 2>&1 |
12632 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12633 *${as_nl}ac_space=\ *)
12634 # `set' does not quote correctly, so add quotes: double-quote
12635 # substitution turns \\\\ into \\, and sed turns \\ into \.
12636 sed -n \
12637 "s/'/'\\\\''/g;
12638 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12639 ;; #(
12640 *)
12641 # `set' quotes correctly as required by POSIX, so do not add quotes.
12642 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12643 ;;
12644 esac |
12645 sort
12646 ) |
12647 sed '
12648 /^ac_cv_env_/b end
12649 t clear
12650 :clear
12651 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12652 t end
12653 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12654 :end' >>confcache
12655 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12656 if test -w "$cache_file"; then
12657 if test "x$cache_file" != "x/dev/null"; then
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12659 $as_echo "$as_me: updating cache $cache_file" >&6;}
12660 if test ! -f "$cache_file" || test -h "$cache_file"; then
12661 cat confcache >"$cache_file"
12662 else
12663 case $cache_file in #(
12664 */* | ?:*)
12665 mv -f confcache "$cache_file"$$ &&
12666 mv -f "$cache_file"$$ "$cache_file" ;; #(
12667 *)
12668 mv -f confcache "$cache_file" ;;
12669 esac
12670 fi
12671 fi
12672 else
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12674 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12675 fi
12676 fi
12677 rm -f confcache
12678
12679 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12680 # Let make expand exec_prefix.
12681 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12682
12683 DEFS=-DHAVE_CONFIG_H
12684
12685 ac_libobjs=
12686 ac_ltlibobjs=
12687 U=
12688 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12689 # 1. Remove the extension, and $U if already installed.
12690 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12691 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12692 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12693 # will be set to the directory where LIBOBJS objects are built.
12694 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12695 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12696 done
12697 LIBOBJS=$ac_libobjs
12698
12699 LTLIBOBJS=$ac_ltlibobjs
12700
12701
12702 if test -n "$EXEEXT"; then
12703 am__EXEEXT_TRUE=
12704 am__EXEEXT_FALSE='#'
12705 else
12706 am__EXEEXT_TRUE='#'
12707 am__EXEEXT_FALSE=
12708 fi
12709
12710 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12711 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12713 fi
12714 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12715 as_fn_error $? "conditional \"AMDEP\" was never defined.
12716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12717 fi
12718 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12719 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12721 fi
12722
12723 : "${CONFIG_STATUS=./config.status}"
12724 ac_write_fail=0
12725 ac_clean_files_save=$ac_clean_files
12726 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12728 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12729 as_write_fail=0
12730 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12731 #! $SHELL
12732 # Generated by $as_me.
12733 # Run this file to recreate the current configuration.
12734 # Compiler output produced by configure, useful for debugging
12735 # configure, is in config.log if it exists.
12736
12737 debug=false
12738 ac_cs_recheck=false
12739 ac_cs_silent=false
12740
12741 SHELL=\${CONFIG_SHELL-$SHELL}
12742 export SHELL
12743 _ASEOF
12744 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12745 ## -------------------- ##
12746 ## M4sh Initialization. ##
12747 ## -------------------- ##
12748
12749 # Be more Bourne compatible
12750 DUALCASE=1; export DUALCASE # for MKS sh
12751 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12752 emulate sh
12753 NULLCMD=:
12754 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12755 # is contrary to our usage. Disable this feature.
12756 alias -g '${1+"$@"}'='"$@"'
12757 setopt NO_GLOB_SUBST
12758 else
12759 case `(set -o) 2>/dev/null` in #(
12760 *posix*) :
12761 set -o posix ;; #(
12762 *) :
12763 ;;
12764 esac
12765 fi
12766
12767
12768 as_nl='
12769 '
12770 export as_nl
12771 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12772 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12773 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12774 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12775 # Prefer a ksh shell builtin over an external printf program on Solaris,
12776 # but without wasting forks for bash or zsh.
12777 if test -z "$BASH_VERSION$ZSH_VERSION" \
12778 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12779 as_echo='print -r --'
12780 as_echo_n='print -rn --'
12781 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12782 as_echo='printf %s\n'
12783 as_echo_n='printf %s'
12784 else
12785 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12786 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12787 as_echo_n='/usr/ucb/echo -n'
12788 else
12789 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12790 as_echo_n_body='eval
12791 arg=$1;
12792 case $arg in #(
12793 *"$as_nl"*)
12794 expr "X$arg" : "X\\(.*\\)$as_nl";
12795 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12796 esac;
12797 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12798 '
12799 export as_echo_n_body
12800 as_echo_n='sh -c $as_echo_n_body as_echo'
12801 fi
12802 export as_echo_body
12803 as_echo='sh -c $as_echo_body as_echo'
12804 fi
12805
12806 # The user is always right.
12807 if test "${PATH_SEPARATOR+set}" != set; then
12808 PATH_SEPARATOR=:
12809 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12810 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12811 PATH_SEPARATOR=';'
12812 }
12813 fi
12814
12815
12816 # IFS
12817 # We need space, tab and new line, in precisely that order. Quoting is
12818 # there to prevent editors from complaining about space-tab.
12819 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12820 # splitting by setting IFS to empty value.)
12821 IFS=" "" $as_nl"
12822
12823 # Find who we are. Look in the path if we contain no directory separator.
12824 as_myself=
12825 case $0 in #((
12826 *[\\/]* ) as_myself=$0 ;;
12827 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828 for as_dir in $PATH
12829 do
12830 IFS=$as_save_IFS
12831 test -z "$as_dir" && as_dir=.
12832 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12833 done
12834 IFS=$as_save_IFS
12835
12836 ;;
12837 esac
12838 # We did not find ourselves, most probably we were run as `sh COMMAND'
12839 # in which case we are not to be found in the path.
12840 if test "x$as_myself" = x; then
12841 as_myself=$0
12842 fi
12843 if test ! -f "$as_myself"; then
12844 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12845 exit 1
12846 fi
12847
12848 # Unset variables that we do not need and which cause bugs (e.g. in
12849 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12850 # suppresses any "Segmentation fault" message there. '((' could
12851 # trigger a bug in pdksh 5.2.14.
12852 for as_var in BASH_ENV ENV MAIL MAILPATH
12853 do eval test x\${$as_var+set} = xset \
12854 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12855 done
12856 PS1='$ '
12857 PS2='> '
12858 PS4='+ '
12859
12860 # NLS nuisances.
12861 LC_ALL=C
12862 export LC_ALL
12863 LANGUAGE=C
12864 export LANGUAGE
12865
12866 # CDPATH.
12867 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12868
12869
12870 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12871 # ----------------------------------------
12872 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12873 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12874 # script with STATUS, using 1 if that was 0.
12875 as_fn_error ()
12876 {
12877 as_status=$1; test $as_status -eq 0 && as_status=1
12878 if test "$4"; then
12879 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12880 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12881 fi
12882 $as_echo "$as_me: error: $2" >&2
12883 as_fn_exit $as_status
12884 } # as_fn_error
12885
12886
12887 # as_fn_set_status STATUS
12888 # -----------------------
12889 # Set $? to STATUS, without forking.
12890 as_fn_set_status ()
12891 {
12892 return $1
12893 } # as_fn_set_status
12894
12895 # as_fn_exit STATUS
12896 # -----------------
12897 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12898 as_fn_exit ()
12899 {
12900 set +e
12901 as_fn_set_status $1
12902 exit $1
12903 } # as_fn_exit
12904
12905 # as_fn_unset VAR
12906 # ---------------
12907 # Portably unset VAR.
12908 as_fn_unset ()
12909 {
12910 { eval $1=; unset $1;}
12911 }
12912 as_unset=as_fn_unset
12913 # as_fn_append VAR VALUE
12914 # ----------------------
12915 # Append the text in VALUE to the end of the definition contained in VAR. Take
12916 # advantage of any shell optimizations that allow amortized linear growth over
12917 # repeated appends, instead of the typical quadratic growth present in naive
12918 # implementations.
12919 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12920 eval 'as_fn_append ()
12921 {
12922 eval $1+=\$2
12923 }'
12924 else
12925 as_fn_append ()
12926 {
12927 eval $1=\$$1\$2
12928 }
12929 fi # as_fn_append
12930
12931 # as_fn_arith ARG...
12932 # ------------------
12933 # Perform arithmetic evaluation on the ARGs, and store the result in the
12934 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12935 # must be portable across $(()) and expr.
12936 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12937 eval 'as_fn_arith ()
12938 {
12939 as_val=$(( $* ))
12940 }'
12941 else
12942 as_fn_arith ()
12943 {
12944 as_val=`expr "$@" || test $? -eq 1`
12945 }
12946 fi # as_fn_arith
12947
12948
12949 if expr a : '\(a\)' >/dev/null 2>&1 &&
12950 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12951 as_expr=expr
12952 else
12953 as_expr=false
12954 fi
12955
12956 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12957 as_basename=basename
12958 else
12959 as_basename=false
12960 fi
12961
12962 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12963 as_dirname=dirname
12964 else
12965 as_dirname=false
12966 fi
12967
12968 as_me=`$as_basename -- "$0" ||
12969 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12970 X"$0" : 'X\(//\)$' \| \
12971 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12972 $as_echo X/"$0" |
12973 sed '/^.*\/\([^/][^/]*\)\/*$/{
12974 s//\1/
12975 q
12976 }
12977 /^X\/\(\/\/\)$/{
12978 s//\1/
12979 q
12980 }
12981 /^X\/\(\/\).*/{
12982 s//\1/
12983 q
12984 }
12985 s/.*/./; q'`
12986
12987 # Avoid depending upon Character Ranges.
12988 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12989 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12990 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12991 as_cr_digits='0123456789'
12992 as_cr_alnum=$as_cr_Letters$as_cr_digits
12993
12994 ECHO_C= ECHO_N= ECHO_T=
12995 case `echo -n x` in #(((((
12996 -n*)
12997 case `echo 'xy\c'` in
12998 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12999 xy) ECHO_C='\c';;
13000 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13001 ECHO_T=' ';;
13002 esac;;
13003 *)
13004 ECHO_N='-n';;
13005 esac
13006
13007 rm -f conf$$ conf$$.exe conf$$.file
13008 if test -d conf$$.dir; then
13009 rm -f conf$$.dir/conf$$.file
13010 else
13011 rm -f conf$$.dir
13012 mkdir conf$$.dir 2>/dev/null
13013 fi
13014 if (echo >conf$$.file) 2>/dev/null; then
13015 if ln -s conf$$.file conf$$ 2>/dev/null; then
13016 as_ln_s='ln -s'
13017 # ... but there are two gotchas:
13018 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13019 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13020 # In both cases, we have to default to `cp -pR'.
13021 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13022 as_ln_s='cp -pR'
13023 elif ln conf$$.file conf$$ 2>/dev/null; then
13024 as_ln_s=ln
13025 else
13026 as_ln_s='cp -pR'
13027 fi
13028 else
13029 as_ln_s='cp -pR'
13030 fi
13031 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13032 rmdir conf$$.dir 2>/dev/null
13033
13034
13035 # as_fn_mkdir_p
13036 # -------------
13037 # Create "$as_dir" as a directory, including parents if necessary.
13038 as_fn_mkdir_p ()
13039 {
13040
13041 case $as_dir in #(
13042 -*) as_dir=./$as_dir;;
13043 esac
13044 test -d "$as_dir" || eval $as_mkdir_p || {
13045 as_dirs=
13046 while :; do
13047 case $as_dir in #(
13048 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13049 *) as_qdir=$as_dir;;
13050 esac
13051 as_dirs="'$as_qdir' $as_dirs"
13052 as_dir=`$as_dirname -- "$as_dir" ||
13053 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13054 X"$as_dir" : 'X\(//\)[^/]' \| \
13055 X"$as_dir" : 'X\(//\)$' \| \
13056 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13057 $as_echo X"$as_dir" |
13058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13059 s//\1/
13060 q
13061 }
13062 /^X\(\/\/\)[^/].*/{
13063 s//\1/
13064 q
13065 }
13066 /^X\(\/\/\)$/{
13067 s//\1/
13068 q
13069 }
13070 /^X\(\/\).*/{
13071 s//\1/
13072 q
13073 }
13074 s/.*/./; q'`
13075 test -d "$as_dir" && break
13076 done
13077 test -z "$as_dirs" || eval "mkdir $as_dirs"
13078 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13079
13080
13081 } # as_fn_mkdir_p
13082 if mkdir -p . 2>/dev/null; then
13083 as_mkdir_p='mkdir -p "$as_dir"'
13084 else
13085 test -d ./-p && rmdir ./-p
13086 as_mkdir_p=false
13087 fi
13088
13089
13090 # as_fn_executable_p FILE
13091 # -----------------------
13092 # Test if FILE is an executable regular file.
13093 as_fn_executable_p ()
13094 {
13095 test -f "$1" && test -x "$1"
13096 } # as_fn_executable_p
13097 as_test_x='test -x'
13098 as_executable_p=as_fn_executable_p
13099
13100 # Sed expression to map a string onto a valid CPP name.
13101 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13102
13103 # Sed expression to map a string onto a valid variable name.
13104 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13105
13106
13107 exec 6>&1
13108 ## ----------------------------------- ##
13109 ## Main body of $CONFIG_STATUS script. ##
13110 ## ----------------------------------- ##
13111 _ASEOF
13112 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13113
13114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13115 # Save the log message, to keep $0 and so on meaningful, and to
13116 # report actual input values of CONFIG_FILES etc. instead of their
13117 # values after options handling.
13118 ac_log="
13119 This file was extended by Redland librdf Language bindings $as_me 1.0.17.1, which was
13120 generated by GNU Autoconf 2.69. Invocation command line was
13121
13122 CONFIG_FILES = $CONFIG_FILES
13123 CONFIG_HEADERS = $CONFIG_HEADERS
13124 CONFIG_LINKS = $CONFIG_LINKS
13125 CONFIG_COMMANDS = $CONFIG_COMMANDS
13126 $ $0 $@
13127
13128 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13129 "
13130
13131 _ACEOF
13132
13133 case $ac_config_files in *"
13134 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13135 esac
13136
13137 case $ac_config_headers in *"
13138 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13139 esac
13140
13141
13142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13143 # Files that config.status was made for.
13144 config_files="$ac_config_files"
13145 config_headers="$ac_config_headers"
13146 config_commands="$ac_config_commands"
13147
13148 _ACEOF
13149
13150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13151 ac_cs_usage="\
13152 \`$as_me' instantiates files and other configuration actions
13153 from templates according to the current configuration. Unless the files
13154 and actions are specified as TAGs, all are instantiated by default.
13155
13156 Usage: $0 [OPTION]... [TAG]...
13157
13158 -h, --help print this help, then exit
13159 -V, --version print version number and configuration settings, then exit
13160 --config print configuration, then exit
13161 -q, --quiet, --silent
13162 do not print progress messages
13163 -d, --debug don't remove temporary files
13164 --recheck update $as_me by reconfiguring in the same conditions
13165 --file=FILE[:TEMPLATE]
13166 instantiate the configuration file FILE
13167 --header=FILE[:TEMPLATE]
13168 instantiate the configuration header FILE
13169
13170 Configuration files:
13171 $config_files
13172
13173 Configuration headers:
13174 $config_headers
13175
13176 Configuration commands:
13177 $config_commands
13178
13179 Report bugs to <http://bugs.librdf.org/>."
13180
13181 _ACEOF
13182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13183 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13184 ac_cs_version="\\
13185 Redland librdf Language bindings config.status 1.0.17.1
13186 configured by $0, generated by GNU Autoconf 2.69,
13187 with options \\"\$ac_cs_config\\"
13188
13189 Copyright (C) 2012 Free Software Foundation, Inc.
13190 This config.status script is free software; the Free Software Foundation
13191 gives unlimited permission to copy, distribute and modify it."
13192
13193 ac_pwd='$ac_pwd'
13194 srcdir='$srcdir'
13195 INSTALL='$INSTALL'
13196 MKDIR_P='$MKDIR_P'
13197 AWK='$AWK'
13198 test -n "\$AWK" || AWK=awk
13199 _ACEOF
13200
13201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13202 # The default lists apply if the user does not specify any file.
13203 ac_need_defaults=:
13204 while test $# != 0
13205 do
13206 case $1 in
13207 --*=?*)
13208 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13209 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13210 ac_shift=:
13211 ;;
13212 --*=)
13213 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13214 ac_optarg=
13215 ac_shift=:
13216 ;;
13217 *)
13218 ac_option=$1
13219 ac_optarg=$2
13220 ac_shift=shift
13221 ;;
13222 esac
13223
13224 case $ac_option in
13225 # Handling of the options.
13226 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13227 ac_cs_recheck=: ;;
13228 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13229 $as_echo "$ac_cs_version"; exit ;;
13230 --config | --confi | --conf | --con | --co | --c )
13231 $as_echo "$ac_cs_config"; exit ;;
13232 --debug | --debu | --deb | --de | --d | -d )
13233 debug=: ;;
13234 --file | --fil | --fi | --f )
13235 $ac_shift
13236 case $ac_optarg in
13237 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13238 '') as_fn_error $? "missing file argument" ;;
13239 esac
13240 as_fn_append CONFIG_FILES " '$ac_optarg'"
13241 ac_need_defaults=false;;
13242 --header | --heade | --head | --hea )
13243 $ac_shift
13244 case $ac_optarg in
13245 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13246 esac
13247 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13248 ac_need_defaults=false;;
13249 --he | --h)
13250 # Conflict between --help and --header
13251 as_fn_error $? "ambiguous option: \`$1'
13252 Try \`$0 --help' for more information.";;
13253 --help | --hel | -h )
13254 $as_echo "$ac_cs_usage"; exit ;;
13255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13256 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13257 ac_cs_silent=: ;;
13258
13259 # This is an error.
13260 -*) as_fn_error $? "unrecognized option: \`$1'
13261 Try \`$0 --help' for more information." ;;
13262
13263 *) as_fn_append ac_config_targets " $1"
13264 ac_need_defaults=false ;;
13265
13266 esac
13267 shift
13268 done
13269
13270 ac_configure_extra_args=
13271
13272 if $ac_cs_silent; then
13273 exec 6>/dev/null
13274 ac_configure_extra_args="$ac_configure_extra_args --silent"
13275 fi
13276
13277 _ACEOF
13278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13279 if \$ac_cs_recheck; then
13280 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13281 shift
13282 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13283 CONFIG_SHELL='$SHELL'
13284 export CONFIG_SHELL
13285 exec "\$@"
13286 fi
13287
13288 _ACEOF
13289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13290 exec 5>>config.log
13291 {
13292 echo
13293 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13294 ## Running $as_me. ##
13295 _ASBOX
13296 $as_echo "$ac_log"
13297 } >&5
13298
13299 _ACEOF
13300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13301 #
13302 # INIT-COMMANDS
13303 #
13304 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13305
13306
13307 # The HP-UX ksh and POSIX shell print the target directory to stdout
13308 # if CDPATH is set.
13309 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13310
13311 sed_quote_subst='$sed_quote_subst'
13312 double_quote_subst='$double_quote_subst'
13313 delay_variable_subst='$delay_variable_subst'
13314 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13315 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13316 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13317 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13318 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13319 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13320 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13321 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13322 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13323 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13324 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13325 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13326 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13327 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13328 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13329 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13330 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13331 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13332 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13333 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13334 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13335 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13336 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13337 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13338 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13339 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13340 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13341 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13342 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13343 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13344 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13345 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13346 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13347 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13348 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13349 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13350 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13351 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13352 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13353 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13354 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13355 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13356 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13357 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13358 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13359 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13360 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13361 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13362 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13363 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13364 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13365 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13366 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13367 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13368 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13369 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13370 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"`'
13371 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13372 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13373 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13374 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13375 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13376 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13377 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13378 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13379 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13380 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13381 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13382 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13383 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13384 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13385 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13386 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13387 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13388 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13389 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13390 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13391 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13392 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13393 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13394 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13395 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13396 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13397 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13398 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13399 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13400 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13401 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13402 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13403 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13404 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13405 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13406 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13407 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13408 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13409 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13410 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13411 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13412 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13413 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13414 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13415 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13416 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13417 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13418 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13419 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13420 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13421 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13422 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13423 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13424 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13425 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13426 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13427 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13428 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13429 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13430 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13431 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13432 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13433 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13434 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13435 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13436 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13437 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13438 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13439 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13440 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13441 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13442 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13443 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13444
13445 LTCC='$LTCC'
13446 LTCFLAGS='$LTCFLAGS'
13447 compiler='$compiler_DEFAULT'
13448
13449 # A function that is used when there is no print builtin or printf.
13450 func_fallback_echo ()
13451 {
13452 eval 'cat <<_LTECHO_EOF
13453 \$1
13454 _LTECHO_EOF'
13455 }
13456
13457 # Quote evaled strings.
13458 for var in SHELL \
13459 ECHO \
13460 PATH_SEPARATOR \
13461 SED \
13462 GREP \
13463 EGREP \
13464 FGREP \
13465 LD \
13466 NM \
13467 LN_S \
13468 lt_SP2NL \
13469 lt_NL2SP \
13470 reload_flag \
13471 OBJDUMP \
13472 deplibs_check_method \
13473 file_magic_cmd \
13474 file_magic_glob \
13475 want_nocaseglob \
13476 DLLTOOL \
13477 sharedlib_from_linklib_cmd \
13478 AR \
13479 AR_FLAGS \
13480 archiver_list_spec \
13481 STRIP \
13482 RANLIB \
13483 CC \
13484 CFLAGS \
13485 compiler \
13486 lt_cv_sys_global_symbol_pipe \
13487 lt_cv_sys_global_symbol_to_cdecl \
13488 lt_cv_sys_global_symbol_to_c_name_address \
13489 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13490 nm_file_list_spec \
13491 lt_prog_compiler_no_builtin_flag \
13492 lt_prog_compiler_pic \
13493 lt_prog_compiler_wl \
13494 lt_prog_compiler_static \
13495 lt_cv_prog_compiler_c_o \
13496 need_locks \
13497 MANIFEST_TOOL \
13498 DSYMUTIL \
13499 NMEDIT \
13500 LIPO \
13501 OTOOL \
13502 OTOOL64 \
13503 shrext_cmds \
13504 export_dynamic_flag_spec \
13505 whole_archive_flag_spec \
13506 compiler_needs_object \
13507 with_gnu_ld \
13508 allow_undefined_flag \
13509 no_undefined_flag \
13510 hardcode_libdir_flag_spec \
13511 hardcode_libdir_separator \
13512 exclude_expsyms \
13513 include_expsyms \
13514 file_list_spec \
13515 variables_saved_for_relink \
13516 libname_spec \
13517 library_names_spec \
13518 soname_spec \
13519 install_override_mode \
13520 finish_eval \
13521 old_striplib \
13522 striplib; do
13523 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13524 *[\\\\\\\`\\"\\\$]*)
13525 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13526 ;;
13527 *)
13528 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13529 ;;
13530 esac
13531 done
13532
13533 # Double-quote double-evaled strings.
13534 for var in reload_cmds \
13535 old_postinstall_cmds \
13536 old_postuninstall_cmds \
13537 old_archive_cmds \
13538 extract_expsyms_cmds \
13539 old_archive_from_new_cmds \
13540 old_archive_from_expsyms_cmds \
13541 archive_cmds \
13542 archive_expsym_cmds \
13543 module_cmds \
13544 module_expsym_cmds \
13545 export_symbols_cmds \
13546 prelink_cmds \
13547 postlink_cmds \
13548 postinstall_cmds \
13549 postuninstall_cmds \
13550 finish_cmds \
13551 sys_lib_search_path_spec \
13552 sys_lib_dlsearch_path_spec; do
13553 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13554 *[\\\\\\\`\\"\\\$]*)
13555 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13556 ;;
13557 *)
13558 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13559 ;;
13560 esac
13561 done
13562
13563 ac_aux_dir='$ac_aux_dir'
13564 xsi_shell='$xsi_shell'
13565 lt_shell_append='$lt_shell_append'
13566
13567 # See if we are running on zsh, and set the options which allow our
13568 # commands through without removal of \ escapes INIT.
13569 if test -n "\${ZSH_VERSION+set}" ; then
13570 setopt NO_GLOB_SUBST
13571 fi
13572
13573
13574 PACKAGE='$PACKAGE'
13575 VERSION='$VERSION'
13576 TIMESTAMP='$TIMESTAMP'
13577 RM='$RM'
13578 ofile='$ofile'
13579
13580
13581
13582
13583 _ACEOF
13584
13585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13586
13587 # Handling of arguments.
13588 for ac_config_target in $ac_config_targets
13589 do
13590 case $ac_config_target in
13591 "bindings_config.h") CONFIG_HEADERS="$CONFIG_HEADERS bindings_config.h" ;;
13592 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13593 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13594 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13595 "bindings.rdf") CONFIG_FILES="$CONFIG_FILES bindings.rdf" ;;
13596 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
13597 "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
13598 "perl/t/Makefile") CONFIG_FILES="$CONFIG_FILES perl/t/Makefile" ;;
13599 "perl/lib/Makefile") CONFIG_FILES="$CONFIG_FILES perl/lib/Makefile" ;;
13600 "perl/lib/RDF/Makefile") CONFIG_FILES="$CONFIG_FILES perl/lib/RDF/Makefile" ;;
13601 "perl/lib/RDF/Redland/Makefile") CONFIG_FILES="$CONFIG_FILES perl/lib/RDF/Redland/Makefile" ;;
13602 "lua/Makefile") CONFIG_FILES="$CONFIG_FILES lua/Makefile" ;;
13603 "php/Makefile") CONFIG_FILES="$CONFIG_FILES php/Makefile" ;;
13604 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
13605 "python/test/Makefile") CONFIG_FILES="$CONFIG_FILES python/test/Makefile" ;;
13606 "ruby/Makefile") CONFIG_FILES="$CONFIG_FILES ruby/Makefile" ;;
13607 "ruby/test/Makefile") CONFIG_FILES="$CONFIG_FILES ruby/test/Makefile" ;;
13608 "ruby/lib/Makefile") CONFIG_FILES="$CONFIG_FILES ruby/lib/Makefile" ;;
13609 "ruby/lib/rdf/Makefile") CONFIG_FILES="$CONFIG_FILES ruby/lib/rdf/Makefile" ;;
13610 "ruby/lib/rdf/redland/Makefile") CONFIG_FILES="$CONFIG_FILES ruby/lib/rdf/redland/Makefile" ;;
13611 "ruby/lib/rdf/redland/schemas/Makefile") CONFIG_FILES="$CONFIG_FILES ruby/lib/rdf/redland/schemas/Makefile" ;;
13612 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
13613 "redland-bindings.spec") CONFIG_FILES="$CONFIG_FILES redland-bindings.spec" ;;
13614 "perl/lib/RDF/Redland.pm") CONFIG_FILES="$CONFIG_FILES perl/lib/RDF/Redland.pm" ;;
13615
13616 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13617 esac
13618 done
13619
13620
13621 # If the user did not use the arguments to specify the items to instantiate,
13622 # then the envvar interface is used. Set only those that are not.
13623 # We use the long form for the default assignment because of an extremely
13624 # bizarre bug on SunOS 4.1.3.
13625 if $ac_need_defaults; then
13626 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13627 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13628 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13629 fi
13630
13631 # Have a temporary directory for convenience. Make it in the build tree
13632 # simply because there is no reason against having it here, and in addition,
13633 # creating and moving files from /tmp can sometimes cause problems.
13634 # Hook for its removal unless debugging.
13635 # Note that there is a small window in which the directory will not be cleaned:
13636 # after its creation but before its name has been assigned to `$tmp'.
13637 $debug ||
13638 {
13639 tmp= ac_tmp=
13640 trap 'exit_status=$?
13641 : "${ac_tmp:=$tmp}"
13642 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13643 ' 0
13644 trap 'as_fn_exit 1' 1 2 13 15
13645 }
13646 # Create a (secure) tmp directory for tmp files.
13647
13648 {
13649 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13650 test -d "$tmp"
13651 } ||
13652 {
13653 tmp=./conf$$-$RANDOM
13654 (umask 077 && mkdir "$tmp")
13655 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13656 ac_tmp=$tmp
13657
13658 # Set up the scripts for CONFIG_FILES section.
13659 # No need to generate them if there are no CONFIG_FILES.
13660 # This happens for instance with `./config.status config.h'.
13661 if test -n "$CONFIG_FILES"; then
13662
13663
13664 ac_cr=`echo X | tr X '\015'`
13665 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13666 # But we know of no other shell where ac_cr would be empty at this
13667 # point, so we can use a bashism as a fallback.
13668 if test "x$ac_cr" = x; then
13669 eval ac_cr=\$\'\\r\'
13670 fi
13671 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13672 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13673 ac_cs_awk_cr='\\r'
13674 else
13675 ac_cs_awk_cr=$ac_cr
13676 fi
13677
13678 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13679 _ACEOF
13680
13681
13682 {
13683 echo "cat >conf$$subs.awk <<_ACEOF" &&
13684 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13685 echo "_ACEOF"
13686 } >conf$$subs.sh ||
13687 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13688 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13689 ac_delim='%!_!# '
13690 for ac_last_try in false false false false false :; do
13691 . ./conf$$subs.sh ||
13692 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13693
13694 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13695 if test $ac_delim_n = $ac_delim_num; then
13696 break
13697 elif $ac_last_try; then
13698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13699 else
13700 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13701 fi
13702 done
13703 rm -f conf$$subs.sh
13704
13705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13706 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13707 _ACEOF
13708 sed -n '
13709 h
13710 s/^/S["/; s/!.*/"]=/
13711 p
13712 g
13713 s/^[^!]*!//
13714 :repl
13715 t repl
13716 s/'"$ac_delim"'$//
13717 t delim
13718 :nl
13719 h
13720 s/\(.\{148\}\)..*/\1/
13721 t more1
13722 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13723 p
13724 n
13725 b repl
13726 :more1
13727 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13728 p
13729 g
13730 s/.\{148\}//
13731 t nl
13732 :delim
13733 h
13734 s/\(.\{148\}\)..*/\1/
13735 t more2
13736 s/["\\]/\\&/g; s/^/"/; s/$/"/
13737 p
13738 b
13739 :more2
13740 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13741 p
13742 g
13743 s/.\{148\}//
13744 t delim
13745 ' <conf$$subs.awk | sed '
13746 /^[^""]/{
13747 N
13748 s/\n//
13749 }
13750 ' >>$CONFIG_STATUS || ac_write_fail=1
13751 rm -f conf$$subs.awk
13752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13753 _ACAWK
13754 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13755 for (key in S) S_is_set[key] = 1
13756 FS = ""
13757
13758 }
13759 {
13760 line = $ 0
13761 nfields = split(line, field, "@")
13762 substed = 0
13763 len = length(field[1])
13764 for (i = 2; i < nfields; i++) {
13765 key = field[i]
13766 keylen = length(key)
13767 if (S_is_set[key]) {
13768 value = S[key]
13769 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13770 len += length(value) + length(field[++i])
13771 substed = 1
13772 } else
13773 len += 1 + keylen
13774 }
13775
13776 print line
13777 }
13778
13779 _ACAWK
13780 _ACEOF
13781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13782 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13783 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13784 else
13785 cat
13786 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13787 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13788 _ACEOF
13789
13790 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13791 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13792 # trailing colons and then remove the whole line if VPATH becomes empty
13793 # (actually we leave an empty line to preserve line numbers).
13794 if test "x$srcdir" = x.; then
13795 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13796 h
13797 s///
13798 s/^/:/
13799 s/[ ]*$/:/
13800 s/:\$(srcdir):/:/g
13801 s/:\${srcdir}:/:/g
13802 s/:@srcdir@:/:/g
13803 s/^:*//
13804 s/:*$//
13805 x
13806 s/\(=[ ]*\).*/\1/
13807 G
13808 s/\n//
13809 s/^[^=]*=[ ]*$//
13810 }'
13811 fi
13812
13813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13814 fi # test -n "$CONFIG_FILES"
13815
13816 # Set up the scripts for CONFIG_HEADERS section.
13817 # No need to generate them if there are no CONFIG_HEADERS.
13818 # This happens for instance with `./config.status Makefile'.
13819 if test -n "$CONFIG_HEADERS"; then
13820 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13821 BEGIN {
13822 _ACEOF
13823
13824 # Transform confdefs.h into an awk script `defines.awk', embedded as
13825 # here-document in config.status, that substitutes the proper values into
13826 # config.h.in to produce config.h.
13827
13828 # Create a delimiter string that does not exist in confdefs.h, to ease
13829 # handling of long lines.
13830 ac_delim='%!_!# '
13831 for ac_last_try in false false :; do
13832 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13833 if test -z "$ac_tt"; then
13834 break
13835 elif $ac_last_try; then
13836 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13837 else
13838 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13839 fi
13840 done
13841
13842 # For the awk script, D is an array of macro values keyed by name,
13843 # likewise P contains macro parameters if any. Preserve backslash
13844 # newline sequences.
13845
13846 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13847 sed -n '
13848 s/.\{148\}/&'"$ac_delim"'/g
13849 t rset
13850 :rset
13851 s/^[ ]*#[ ]*define[ ][ ]*/ /
13852 t def
13853 d
13854 :def
13855 s/\\$//
13856 t bsnl
13857 s/["\\]/\\&/g
13858 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13859 D["\1"]=" \3"/p
13860 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13861 d
13862 :bsnl
13863 s/["\\]/\\&/g
13864 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13865 D["\1"]=" \3\\\\\\n"\\/p
13866 t cont
13867 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13868 t cont
13869 d
13870 :cont
13871 n
13872 s/.\{148\}/&'"$ac_delim"'/g
13873 t clear
13874 :clear
13875 s/\\$//
13876 t bsnlc
13877 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13878 d
13879 :bsnlc
13880 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13881 b cont
13882 ' <confdefs.h | sed '
13883 s/'"$ac_delim"'/"\\\
13884 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13885
13886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13887 for (key in D) D_is_set[key] = 1
13888 FS = ""
13889 }
13890 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13891 line = \$ 0
13892 split(line, arg, " ")
13893 if (arg[1] == "#") {
13894 defundef = arg[2]
13895 mac1 = arg[3]
13896 } else {
13897 defundef = substr(arg[1], 2)
13898 mac1 = arg[2]
13899 }
13900 split(mac1, mac2, "(") #)
13901 macro = mac2[1]
13902 prefix = substr(line, 1, index(line, defundef) - 1)
13903 if (D_is_set[macro]) {
13904 # Preserve the white space surrounding the "#".
13905 print prefix "define", macro P[macro] D[macro]
13906 next
13907 } else {
13908 # Replace #undef with comments. This is necessary, for example,
13909 # in the case of _POSIX_SOURCE, which is predefined and required
13910 # on some systems where configure will not decide to define it.
13911 if (defundef == "undef") {
13912 print "/*", prefix defundef, macro, "*/"
13913 next
13914 }
13915 }
13916 }
13917 { print }
13918 _ACAWK
13919 _ACEOF
13920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13921 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13922 fi # test -n "$CONFIG_HEADERS"
13923
13924
13925 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13926 shift
13927 for ac_tag
13928 do
13929 case $ac_tag in
13930 :[FHLC]) ac_mode=$ac_tag; continue;;
13931 esac
13932 case $ac_mode$ac_tag in
13933 :[FHL]*:*);;
13934 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13935 :[FH]-) ac_tag=-:-;;
13936 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13937 esac
13938 ac_save_IFS=$IFS
13939 IFS=:
13940 set x $ac_tag
13941 IFS=$ac_save_IFS
13942 shift
13943 ac_file=$1
13944 shift
13945
13946 case $ac_mode in
13947 :L) ac_source=$1;;
13948 :[FH])
13949 ac_file_inputs=
13950 for ac_f
13951 do
13952 case $ac_f in
13953 -) ac_f="$ac_tmp/stdin";;
13954 *) # Look for the file first in the build tree, then in the source tree
13955 # (if the path is not absolute). The absolute path cannot be DOS-style,
13956 # because $ac_f cannot contain `:'.
13957 test -f "$ac_f" ||
13958 case $ac_f in
13959 [\\/$]*) false;;
13960 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13961 esac ||
13962 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13963 esac
13964 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13965 as_fn_append ac_file_inputs " '$ac_f'"
13966 done
13967
13968 # Let's still pretend it is `configure' which instantiates (i.e., don't
13969 # use $as_me), people would be surprised to read:
13970 # /* config.h. Generated by config.status. */
13971 configure_input='Generated from '`
13972 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13973 `' by configure.'
13974 if test x"$ac_file" != x-; then
13975 configure_input="$ac_file. $configure_input"
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13977 $as_echo "$as_me: creating $ac_file" >&6;}
13978 fi
13979 # Neutralize special characters interpreted by sed in replacement strings.
13980 case $configure_input in #(
13981 *\&* | *\|* | *\\* )
13982 ac_sed_conf_input=`$as_echo "$configure_input" |
13983 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13984 *) ac_sed_conf_input=$configure_input;;
13985 esac
13986
13987 case $ac_tag in
13988 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13989 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13990 esac
13991 ;;
13992 esac
13993
13994 ac_dir=`$as_dirname -- "$ac_file" ||
13995 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13996 X"$ac_file" : 'X\(//\)[^/]' \| \
13997 X"$ac_file" : 'X\(//\)$' \| \
13998 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13999 $as_echo X"$ac_file" |
14000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14001 s//\1/
14002 q
14003 }
14004 /^X\(\/\/\)[^/].*/{
14005 s//\1/
14006 q
14007 }
14008 /^X\(\/\/\)$/{
14009 s//\1/
14010 q
14011 }
14012 /^X\(\/\).*/{
14013 s//\1/
14014 q
14015 }
14016 s/.*/./; q'`
14017 as_dir="$ac_dir"; as_fn_mkdir_p
14018 ac_builddir=.
14019
14020 case "$ac_dir" in
14021 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14022 *)
14023 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14024 # A ".." for each directory in $ac_dir_suffix.
14025 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14026 case $ac_top_builddir_sub in
14027 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14028 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14029 esac ;;
14030 esac
14031 ac_abs_top_builddir=$ac_pwd
14032 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14033 # for backward compatibility:
14034 ac_top_builddir=$ac_top_build_prefix
14035
14036 case $srcdir in
14037 .) # We are building in place.
14038 ac_srcdir=.
14039 ac_top_srcdir=$ac_top_builddir_sub
14040 ac_abs_top_srcdir=$ac_pwd ;;
14041 [\\/]* | ?:[\\/]* ) # Absolute name.
14042 ac_srcdir=$srcdir$ac_dir_suffix;
14043 ac_top_srcdir=$srcdir
14044 ac_abs_top_srcdir=$srcdir ;;
14045 *) # Relative name.
14046 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14047 ac_top_srcdir=$ac_top_build_prefix$srcdir
14048 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14049 esac
14050 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14051
14052
14053 case $ac_mode in
14054 :F)
14055 #
14056 # CONFIG_FILE
14057 #
14058
14059 case $INSTALL in
14060 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14061 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14062 esac
14063 ac_MKDIR_P=$MKDIR_P
14064 case $MKDIR_P in
14065 [\\/$]* | ?:[\\/]* ) ;;
14066 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14067 esac
14068 _ACEOF
14069
14070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14071 # If the template does not know about datarootdir, expand it.
14072 # FIXME: This hack should be removed a few years after 2.60.
14073 ac_datarootdir_hack=; ac_datarootdir_seen=
14074 ac_sed_dataroot='
14075 /datarootdir/ {
14076 p
14077 q
14078 }
14079 /@datadir@/p
14080 /@docdir@/p
14081 /@infodir@/p
14082 /@localedir@/p
14083 /@mandir@/p'
14084 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14085 *datarootdir*) ac_datarootdir_seen=yes;;
14086 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14088 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14089 _ACEOF
14090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14091 ac_datarootdir_hack='
14092 s&@datadir@&$datadir&g
14093 s&@docdir@&$docdir&g
14094 s&@infodir@&$infodir&g
14095 s&@localedir@&$localedir&g
14096 s&@mandir@&$mandir&g
14097 s&\\\${datarootdir}&$datarootdir&g' ;;
14098 esac
14099 _ACEOF
14100
14101 # Neutralize VPATH when `$srcdir' = `.'.
14102 # Shell code in configure.ac might set extrasub.
14103 # FIXME: do we really want to maintain this feature?
14104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14105 ac_sed_extra="$ac_vpsub
14106 $extrasub
14107 _ACEOF
14108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14109 :t
14110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14111 s|@configure_input@|$ac_sed_conf_input|;t t
14112 s&@top_builddir@&$ac_top_builddir_sub&;t t
14113 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14114 s&@srcdir@&$ac_srcdir&;t t
14115 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14116 s&@top_srcdir@&$ac_top_srcdir&;t t
14117 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14118 s&@builddir@&$ac_builddir&;t t
14119 s&@abs_builddir@&$ac_abs_builddir&;t t
14120 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14121 s&@INSTALL@&$ac_INSTALL&;t t
14122 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14123 $ac_datarootdir_hack
14124 "
14125 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14126 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14127
14128 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14129 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14130 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14131 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14133 which seems to be undefined. Please make sure it is defined" >&5
14134 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14135 which seems to be undefined. Please make sure it is defined" >&2;}
14136
14137 rm -f "$ac_tmp/stdin"
14138 case $ac_file in
14139 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14140 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14141 esac \
14142 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14143 ;;
14144 :H)
14145 #
14146 # CONFIG_HEADER
14147 #
14148 if test x"$ac_file" != x-; then
14149 {
14150 $as_echo "/* $configure_input */" \
14151 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14152 } >"$ac_tmp/config.h" \
14153 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14154 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14156 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14157 else
14158 rm -f "$ac_file"
14159 mv "$ac_tmp/config.h" "$ac_file" \
14160 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14161 fi
14162 else
14163 $as_echo "/* $configure_input */" \
14164 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14165 || as_fn_error $? "could not create -" "$LINENO" 5
14166 fi
14167 # Compute "$ac_file"'s index in $config_headers.
14168 _am_arg="$ac_file"
14169 _am_stamp_count=1
14170 for _am_header in $config_headers :; do
14171 case $_am_header in
14172 $_am_arg | $_am_arg:* )
14173 break ;;
14174 * )
14175 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14176 esac
14177 done
14178 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14179 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14180 X"$_am_arg" : 'X\(//\)[^/]' \| \
14181 X"$_am_arg" : 'X\(//\)$' \| \
14182 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14183 $as_echo X"$_am_arg" |
14184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14185 s//\1/
14186 q
14187 }
14188 /^X\(\/\/\)[^/].*/{
14189 s//\1/
14190 q
14191 }
14192 /^X\(\/\/\)$/{
14193 s//\1/
14194 q
14195 }
14196 /^X\(\/\).*/{
14197 s//\1/
14198 q
14199 }
14200 s/.*/./; q'`/stamp-h$_am_stamp_count
14201 ;;
14202
14203 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14204 $as_echo "$as_me: executing $ac_file commands" >&6;}
14205 ;;
14206 esac
14207
14208
14209 case $ac_file$ac_mode in
14210 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14211 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14212 # are listed without --file. Let's play safe and only enable the eval
14213 # if we detect the quoting.
14214 case $CONFIG_FILES in
14215 *\'*) eval set x "$CONFIG_FILES" ;;
14216 *) set x $CONFIG_FILES ;;
14217 esac
14218 shift
14219 for mf
14220 do
14221 # Strip MF so we end up with the name of the file.
14222 mf=`echo "$mf" | sed -e 's/:.*$//'`
14223 # Check whether this is an Automake generated Makefile or not.
14224 # We used to match only the files named `Makefile.in', but
14225 # some people rename them; so instead we look at the file content.
14226 # Grep'ing the first line is not enough: some people post-process
14227 # each Makefile.in and add a new line on top of each file to say so.
14228 # Grep'ing the whole file is not good either: AIX grep has a line
14229 # limit of 2048, but all sed's we know have understand at least 4000.
14230 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14231 dirpart=`$as_dirname -- "$mf" ||
14232 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14233 X"$mf" : 'X\(//\)[^/]' \| \
14234 X"$mf" : 'X\(//\)$' \| \
14235 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14236 $as_echo X"$mf" |
14237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14238 s//\1/
14239 q
14240 }
14241 /^X\(\/\/\)[^/].*/{
14242 s//\1/
14243 q
14244 }
14245 /^X\(\/\/\)$/{
14246 s//\1/
14247 q
14248 }
14249 /^X\(\/\).*/{
14250 s//\1/
14251 q
14252 }
14253 s/.*/./; q'`
14254 else
14255 continue
14256 fi
14257 # Extract the definition of DEPDIR, am__include, and am__quote
14258 # from the Makefile without running `make'.
14259 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14260 test -z "$DEPDIR" && continue
14261 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14262 test -z "am__include" && continue
14263 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14264 # When using ansi2knr, U may be empty or an underscore; expand it
14265 U=`sed -n 's/^U = //p' < "$mf"`
14266 # Find all dependency output files, they are included files with
14267 # $(DEPDIR) in their names. We invoke sed twice because it is the
14268 # simplest approach to changing $(DEPDIR) to its actual value in the
14269 # expansion.
14270 for file in `sed -n "
14271 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14272 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14273 # Make sure the directory exists.
14274 test -f "$dirpart/$file" && continue
14275 fdir=`$as_dirname -- "$file" ||
14276 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14277 X"$file" : 'X\(//\)[^/]' \| \
14278 X"$file" : 'X\(//\)$' \| \
14279 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14280 $as_echo X"$file" |
14281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14282 s//\1/
14283 q
14284 }
14285 /^X\(\/\/\)[^/].*/{
14286 s//\1/
14287 q
14288 }
14289 /^X\(\/\/\)$/{
14290 s//\1/
14291 q
14292 }
14293 /^X\(\/\).*/{
14294 s//\1/
14295 q
14296 }
14297 s/.*/./; q'`
14298 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14299 # echo "creating $dirpart/$file"
14300 echo '# dummy' > "$dirpart/$file"
14301 done
14302 done
14303 }
14304 ;;
14305 "libtool":C)
14306
14307 # See if we are running on zsh, and set the options which allow our
14308 # commands through without removal of \ escapes.
14309 if test -n "${ZSH_VERSION+set}" ; then
14310 setopt NO_GLOB_SUBST
14311 fi
14312
14313 cfgfile="${ofile}T"
14314 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14315 $RM "$cfgfile"
14316
14317 cat <<_LT_EOF >> "$cfgfile"
14318 #! $SHELL
14319
14320 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14321 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14322 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14323 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14324 #
14325 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14326 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14327 # Foundation, Inc.
14328 # Written by Gordon Matzigkeit, 1996
14329 #
14330 # This file is part of GNU Libtool.
14331 #
14332 # GNU Libtool is free software; you can redistribute it and/or
14333 # modify it under the terms of the GNU General Public License as
14334 # published by the Free Software Foundation; either version 2 of
14335 # the License, or (at your option) any later version.
14336 #
14337 # As a special exception to the GNU General Public License,
14338 # if you distribute this file as part of a program or library that
14339 # is built using GNU Libtool, you may include this file under the
14340 # same distribution terms that you use for the rest of that program.
14341 #
14342 # GNU Libtool is distributed in the hope that it will be useful,
14343 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14344 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14345 # GNU General Public License for more details.
14346 #
14347 # You should have received a copy of the GNU General Public License
14348 # along with GNU Libtool; see the file COPYING. If not, a copy
14349 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14350 # obtained by writing to the Free Software Foundation, Inc.,
14351 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14352
14353
14354 # The names of the tagged configurations supported by this script.
14355 available_tags=""
14356
14357 # ### BEGIN LIBTOOL CONFIG
14358
14359 # Which release of libtool.m4 was used?
14360 macro_version=$macro_version
14361 macro_revision=$macro_revision
14362
14363 # Whether or not to build shared libraries.
14364 build_libtool_libs=$enable_shared
14365
14366 # Whether or not to build static libraries.
14367 build_old_libs=$enable_static
14368
14369 # What type of objects to build.
14370 pic_mode=$pic_mode
14371
14372 # Whether or not to optimize for fast installation.
14373 fast_install=$enable_fast_install
14374
14375 # Shell to use when invoking shell scripts.
14376 SHELL=$lt_SHELL
14377
14378 # An echo program that protects backslashes.
14379 ECHO=$lt_ECHO
14380
14381 # The PATH separator for the build system.
14382 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14383
14384 # The host system.
14385 host_alias=$host_alias
14386 host=$host
14387 host_os=$host_os
14388
14389 # The build system.
14390 build_alias=$build_alias
14391 build=$build
14392 build_os=$build_os
14393
14394 # A sed program that does not truncate output.
14395 SED=$lt_SED
14396
14397 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14398 Xsed="\$SED -e 1s/^X//"
14399
14400 # A grep program that handles long lines.
14401 GREP=$lt_GREP
14402
14403 # An ERE matcher.
14404 EGREP=$lt_EGREP
14405
14406 # A literal string matcher.
14407 FGREP=$lt_FGREP
14408
14409 # A BSD- or MS-compatible name lister.
14410 NM=$lt_NM
14411
14412 # Whether we need soft or hard links.
14413 LN_S=$lt_LN_S
14414
14415 # What is the maximum length of a command?
14416 max_cmd_len=$max_cmd_len
14417
14418 # Object file suffix (normally "o").
14419 objext=$ac_objext
14420
14421 # Executable file suffix (normally "").
14422 exeext=$exeext
14423
14424 # whether the shell understands "unset".
14425 lt_unset=$lt_unset
14426
14427 # turn spaces into newlines.
14428 SP2NL=$lt_lt_SP2NL
14429
14430 # turn newlines into spaces.
14431 NL2SP=$lt_lt_NL2SP
14432
14433 # convert \$build file names to \$host format.
14434 to_host_file_cmd=$lt_cv_to_host_file_cmd
14435
14436 # convert \$build files to toolchain format.
14437 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14438
14439 # An object symbol dumper.
14440 OBJDUMP=$lt_OBJDUMP
14441
14442 # Method to check whether dependent libraries are shared objects.
14443 deplibs_check_method=$lt_deplibs_check_method
14444
14445 # Command to use when deplibs_check_method = "file_magic".
14446 file_magic_cmd=$lt_file_magic_cmd
14447
14448 # How to find potential files when deplibs_check_method = "file_magic".
14449 file_magic_glob=$lt_file_magic_glob
14450
14451 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14452 want_nocaseglob=$lt_want_nocaseglob
14453
14454 # DLL creation program.
14455 DLLTOOL=$lt_DLLTOOL
14456
14457 # Command to associate shared and link libraries.
14458 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14459
14460 # The archiver.
14461 AR=$lt_AR
14462
14463 # Flags to create an archive.
14464 AR_FLAGS=$lt_AR_FLAGS
14465
14466 # How to feed a file listing to the archiver.
14467 archiver_list_spec=$lt_archiver_list_spec
14468
14469 # A symbol stripping program.
14470 STRIP=$lt_STRIP
14471
14472 # Commands used to install an old-style archive.
14473 RANLIB=$lt_RANLIB
14474 old_postinstall_cmds=$lt_old_postinstall_cmds
14475 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14476
14477 # Whether to use a lock for old archive extraction.
14478 lock_old_archive_extraction=$lock_old_archive_extraction
14479
14480 # A C compiler.
14481 LTCC=$lt_CC
14482
14483 # LTCC compiler flags.
14484 LTCFLAGS=$lt_CFLAGS
14485
14486 # Take the output of nm and produce a listing of raw symbols and C names.
14487 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14488
14489 # Transform the output of nm in a proper C declaration.
14490 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14491
14492 # Transform the output of nm in a C name address pair.
14493 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14494
14495 # Transform the output of nm in a C name address pair when lib prefix is needed.
14496 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14497
14498 # Specify filename containing input files for \$NM.
14499 nm_file_list_spec=$lt_nm_file_list_spec
14500
14501 # The root where to search for dependent libraries,and in which our libraries should be installed.
14502 lt_sysroot=$lt_sysroot
14503
14504 # The name of the directory that contains temporary libtool files.
14505 objdir=$objdir
14506
14507 # Used to examine libraries when file_magic_cmd begins with "file".
14508 MAGIC_CMD=$MAGIC_CMD
14509
14510 # Must we lock files when doing compilation?
14511 need_locks=$lt_need_locks
14512
14513 # Manifest tool.
14514 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14515
14516 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14517 DSYMUTIL=$lt_DSYMUTIL
14518
14519 # Tool to change global to local symbols on Mac OS X.
14520 NMEDIT=$lt_NMEDIT
14521
14522 # Tool to manipulate fat objects and archives on Mac OS X.
14523 LIPO=$lt_LIPO
14524
14525 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14526 OTOOL=$lt_OTOOL
14527
14528 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14529 OTOOL64=$lt_OTOOL64
14530
14531 # Old archive suffix (normally "a").
14532 libext=$libext
14533
14534 # Shared library suffix (normally ".so").
14535 shrext_cmds=$lt_shrext_cmds
14536
14537 # The commands to extract the exported symbol list from a shared archive.
14538 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14539
14540 # Variables whose values should be saved in libtool wrapper scripts and
14541 # restored at link time.
14542 variables_saved_for_relink=$lt_variables_saved_for_relink
14543
14544 # Do we need the "lib" prefix for modules?
14545 need_lib_prefix=$need_lib_prefix
14546
14547 # Do we need a version for libraries?
14548 need_version=$need_version
14549
14550 # Library versioning type.
14551 version_type=$version_type
14552
14553 # Shared library runtime path variable.
14554 runpath_var=$runpath_var
14555
14556 # Shared library path variable.
14557 shlibpath_var=$shlibpath_var
14558
14559 # Is shlibpath searched before the hard-coded library search path?
14560 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14561
14562 # Format of library name prefix.
14563 libname_spec=$lt_libname_spec
14564
14565 # List of archive names. First name is the real one, the rest are links.
14566 # The last name is the one that the linker finds with -lNAME
14567 library_names_spec=$lt_library_names_spec
14568
14569 # The coded name of the library, if different from the real name.
14570 soname_spec=$lt_soname_spec
14571
14572 # Permission mode override for installation of shared libraries.
14573 install_override_mode=$lt_install_override_mode
14574
14575 # Command to use after installation of a shared archive.
14576 postinstall_cmds=$lt_postinstall_cmds
14577
14578 # Command to use after uninstallation of a shared archive.
14579 postuninstall_cmds=$lt_postuninstall_cmds
14580
14581 # Commands used to finish a libtool library installation in a directory.
14582 finish_cmds=$lt_finish_cmds
14583
14584 # As "finish_cmds", except a single script fragment to be evaled but
14585 # not shown.
14586 finish_eval=$lt_finish_eval
14587
14588 # Whether we should hardcode library paths into libraries.
14589 hardcode_into_libs=$hardcode_into_libs
14590
14591 # Compile-time system search path for libraries.
14592 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14593
14594 # Run-time system search path for libraries.
14595 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14596
14597 # Whether dlopen is supported.
14598 dlopen_support=$enable_dlopen
14599
14600 # Whether dlopen of programs is supported.
14601 dlopen_self=$enable_dlopen_self
14602
14603 # Whether dlopen of statically linked programs is supported.
14604 dlopen_self_static=$enable_dlopen_self_static
14605
14606 # Commands to strip libraries.
14607 old_striplib=$lt_old_striplib
14608 striplib=$lt_striplib
14609
14610
14611 # The linker used to build libraries.
14612 LD=$lt_LD
14613
14614 # How to create reloadable object files.
14615 reload_flag=$lt_reload_flag
14616 reload_cmds=$lt_reload_cmds
14617
14618 # Commands used to build an old-style archive.
14619 old_archive_cmds=$lt_old_archive_cmds
14620
14621 # A language specific compiler.
14622 CC=$lt_compiler
14623
14624 # Is the compiler the GNU compiler?
14625 with_gcc=$GCC
14626
14627 # Compiler flag to turn off builtin functions.
14628 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14629
14630 # Additional compiler flags for building library objects.
14631 pic_flag=$lt_lt_prog_compiler_pic
14632
14633 # How to pass a linker flag through the compiler.
14634 wl=$lt_lt_prog_compiler_wl
14635
14636 # Compiler flag to prevent dynamic linking.
14637 link_static_flag=$lt_lt_prog_compiler_static
14638
14639 # Does compiler simultaneously support -c and -o options?
14640 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14641
14642 # Whether or not to add -lc for building shared libraries.
14643 build_libtool_need_lc=$archive_cmds_need_lc
14644
14645 # Whether or not to disallow shared libs when runtime libs are static.
14646 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14647
14648 # Compiler flag to allow reflexive dlopens.
14649 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14650
14651 # Compiler flag to generate shared objects directly from archives.
14652 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14653
14654 # Whether the compiler copes with passing no objects directly.
14655 compiler_needs_object=$lt_compiler_needs_object
14656
14657 # Create an old-style archive from a shared archive.
14658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14659
14660 # Create a temporary old-style archive to link instead of a shared archive.
14661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14662
14663 # Commands used to build a shared archive.
14664 archive_cmds=$lt_archive_cmds
14665 archive_expsym_cmds=$lt_archive_expsym_cmds
14666
14667 # Commands used to build a loadable module if different from building
14668 # a shared archive.
14669 module_cmds=$lt_module_cmds
14670 module_expsym_cmds=$lt_module_expsym_cmds
14671
14672 # Whether we are building with GNU ld or not.
14673 with_gnu_ld=$lt_with_gnu_ld
14674
14675 # Flag that allows shared libraries with undefined symbols to be built.
14676 allow_undefined_flag=$lt_allow_undefined_flag
14677
14678 # Flag that enforces no undefined symbols.
14679 no_undefined_flag=$lt_no_undefined_flag
14680
14681 # Flag to hardcode \$libdir into a binary during linking.
14682 # This must work even if \$libdir does not exist
14683 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14684
14685 # Whether we need a single "-rpath" flag with a separated argument.
14686 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14687
14688 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14689 # DIR into the resulting binary.
14690 hardcode_direct=$hardcode_direct
14691
14692 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14693 # DIR into the resulting binary and the resulting library dependency is
14694 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14695 # library is relocated.
14696 hardcode_direct_absolute=$hardcode_direct_absolute
14697
14698 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14699 # into the resulting binary.
14700 hardcode_minus_L=$hardcode_minus_L
14701
14702 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14703 # into the resulting binary.
14704 hardcode_shlibpath_var=$hardcode_shlibpath_var
14705
14706 # Set to "yes" if building a shared library automatically hardcodes DIR
14707 # into the library and all subsequent libraries and executables linked
14708 # against it.
14709 hardcode_automatic=$hardcode_automatic
14710
14711 # Set to yes if linker adds runtime paths of dependent libraries
14712 # to runtime path list.
14713 inherit_rpath=$inherit_rpath
14714
14715 # Whether libtool must link a program against all its dependency libraries.
14716 link_all_deplibs=$link_all_deplibs
14717
14718 # Set to "yes" if exported symbols are required.
14719 always_export_symbols=$always_export_symbols
14720
14721 # The commands to list exported symbols.
14722 export_symbols_cmds=$lt_export_symbols_cmds
14723
14724 # Symbols that should not be listed in the preloaded symbols.
14725 exclude_expsyms=$lt_exclude_expsyms
14726
14727 # Symbols that must always be exported.
14728 include_expsyms=$lt_include_expsyms
14729
14730 # Commands necessary for linking programs (against libraries) with templates.
14731 prelink_cmds=$lt_prelink_cmds
14732
14733 # Commands necessary for finishing linking programs.
14734 postlink_cmds=$lt_postlink_cmds
14735
14736 # Specify filename containing input files.
14737 file_list_spec=$lt_file_list_spec
14738
14739 # How to hardcode a shared library path into an executable.
14740 hardcode_action=$hardcode_action
14741
14742 # ### END LIBTOOL CONFIG
14743
14744 _LT_EOF
14745
14746 case $host_os in
14747 aix3*)
14748 cat <<\_LT_EOF >> "$cfgfile"
14749 # AIX sometimes has problems with the GCC collect2 program. For some
14750 # reason, if we set the COLLECT_NAMES environment variable, the problems
14751 # vanish in a puff of smoke.
14752 if test "X${COLLECT_NAMES+set}" != Xset; then
14753 COLLECT_NAMES=
14754 export COLLECT_NAMES
14755 fi
14756 _LT_EOF
14757 ;;
14758 esac
14759
14760
14761 ltmain="$ac_aux_dir/ltmain.sh"
14762
14763
14764 # We use sed instead of cat because bash on DJGPP gets confused if
14765 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14766 # text mode, it properly converts lines to CR/LF. This bash problem
14767 # is reportedly fixed, but why not run on old versions too?
14768 sed '$q' "$ltmain" >> "$cfgfile" \
14769 || (rm -f "$cfgfile"; exit 1)
14770
14771 if test x"$xsi_shell" = xyes; then
14772 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14773 func_dirname ()\
14774 {\
14775 \ case ${1} in\
14776 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14777 \ * ) func_dirname_result="${3}" ;;\
14778 \ esac\
14779 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14780 && mv -f "$cfgfile.tmp" "$cfgfile" \
14781 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14782 test 0 -eq $? || _lt_function_replace_fail=:
14783
14784
14785 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14786 func_basename ()\
14787 {\
14788 \ func_basename_result="${1##*/}"\
14789 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14790 && mv -f "$cfgfile.tmp" "$cfgfile" \
14791 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14792 test 0 -eq $? || _lt_function_replace_fail=:
14793
14794
14795 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14796 func_dirname_and_basename ()\
14797 {\
14798 \ case ${1} in\
14799 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14800 \ * ) func_dirname_result="${3}" ;;\
14801 \ esac\
14802 \ func_basename_result="${1##*/}"\
14803 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14804 && mv -f "$cfgfile.tmp" "$cfgfile" \
14805 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14806 test 0 -eq $? || _lt_function_replace_fail=:
14807
14808
14809 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14810 func_stripname ()\
14811 {\
14812 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14813 \ # positional parameters, so assign one to ordinary parameter first.\
14814 \ func_stripname_result=${3}\
14815 \ func_stripname_result=${func_stripname_result#"${1}"}\
14816 \ func_stripname_result=${func_stripname_result%"${2}"}\
14817 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14818 && mv -f "$cfgfile.tmp" "$cfgfile" \
14819 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14820 test 0 -eq $? || _lt_function_replace_fail=:
14821
14822
14823 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14824 func_split_long_opt ()\
14825 {\
14826 \ func_split_long_opt_name=${1%%=*}\
14827 \ func_split_long_opt_arg=${1#*=}\
14828 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14829 && mv -f "$cfgfile.tmp" "$cfgfile" \
14830 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14831 test 0 -eq $? || _lt_function_replace_fail=:
14832
14833
14834 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14835 func_split_short_opt ()\
14836 {\
14837 \ func_split_short_opt_arg=${1#??}\
14838 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14839 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14840 && mv -f "$cfgfile.tmp" "$cfgfile" \
14841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14842 test 0 -eq $? || _lt_function_replace_fail=:
14843
14844
14845 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14846 func_lo2o ()\
14847 {\
14848 \ case ${1} in\
14849 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14850 \ *) func_lo2o_result=${1} ;;\
14851 \ esac\
14852 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14853 && mv -f "$cfgfile.tmp" "$cfgfile" \
14854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14855 test 0 -eq $? || _lt_function_replace_fail=:
14856
14857
14858 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14859 func_xform ()\
14860 {\
14861 func_xform_result=${1%.*}.lo\
14862 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14863 && mv -f "$cfgfile.tmp" "$cfgfile" \
14864 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14865 test 0 -eq $? || _lt_function_replace_fail=:
14866
14867
14868 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14869 func_arith ()\
14870 {\
14871 func_arith_result=$(( $* ))\
14872 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14873 && mv -f "$cfgfile.tmp" "$cfgfile" \
14874 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14875 test 0 -eq $? || _lt_function_replace_fail=:
14876
14877
14878 sed -e '/^func_len ()$/,/^} # func_len /c\
14879 func_len ()\
14880 {\
14881 func_len_result=${#1}\
14882 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14883 && mv -f "$cfgfile.tmp" "$cfgfile" \
14884 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14885 test 0 -eq $? || _lt_function_replace_fail=:
14886
14887 fi
14888
14889 if test x"$lt_shell_append" = xyes; then
14890 sed -e '/^func_append ()$/,/^} # func_append /c\
14891 func_append ()\
14892 {\
14893 eval "${1}+=\\${2}"\
14894 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14895 && mv -f "$cfgfile.tmp" "$cfgfile" \
14896 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14897 test 0 -eq $? || _lt_function_replace_fail=:
14898
14899
14900 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14901 func_append_quoted ()\
14902 {\
14903 \ func_quote_for_eval "${2}"\
14904 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14905 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14906 && mv -f "$cfgfile.tmp" "$cfgfile" \
14907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14908 test 0 -eq $? || _lt_function_replace_fail=:
14909
14910
14911 # Save a `func_append' function call where possible by direct use of '+='
14912 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14913 && mv -f "$cfgfile.tmp" "$cfgfile" \
14914 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14915 test 0 -eq $? || _lt_function_replace_fail=:
14916 else
14917 # Save a `func_append' function call even when '+=' is not available
14918 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14919 && mv -f "$cfgfile.tmp" "$cfgfile" \
14920 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14921 test 0 -eq $? || _lt_function_replace_fail=:
14922 fi
14923
14924 if test x"$_lt_function_replace_fail" = x":"; then
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14926 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14927 fi
14928
14929
14930 mv -f "$cfgfile" "$ofile" ||
14931 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14932 chmod +x "$ofile"
14933
14934 ;;
14935
14936 esac
14937 done # for ac_tag
14938
14939
14940 as_fn_exit 0
14941 _ACEOF
14942 ac_clean_files=$ac_clean_files_save
14943
14944 test $ac_write_fail = 0 ||
14945 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14946
14947
14948 # configure is writing to config.log, and then calls config.status.
14949 # config.status does its own redirection, appending to config.log.
14950 # Unfortunately, on DOS this fails, as config.log is still kept open
14951 # by configure, so config.status won't be able to write to it; its
14952 # output is simply discarded. So we exec the FD to /dev/null,
14953 # effectively closing config.log, so it can be properly (re)opened and
14954 # appended to by config.status. When coming back to configure, we
14955 # need to make the FD available again.
14956 if test "$no_create" != yes; then
14957 ac_cs_success=:
14958 ac_config_status_args=
14959 test "$silent" = yes &&
14960 ac_config_status_args="$ac_config_status_args --quiet"
14961 exec 5>/dev/null
14962 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14963 exec 5>>config.log
14964 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14965 # would make configure fail if this is the last instruction.
14966 $ac_cs_success || as_fn_exit 1
14967 fi
14968 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14970 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14971 fi
14972
14973
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
14975 Redland build summary:
14976 Redland: $REDLAND_VERSION
14977 Language APIs built: $languages
14978 " >&5
14979 $as_echo "
14980 Redland build summary:
14981 Redland: $REDLAND_VERSION
14982 Language APIs built: $languages
14983 " >&6; }