API: Add "media" interface that deprecates "video"
[quvi.git] / configure
blob8742444b5a6cd792a2b27be80c08b865a9083482
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for quvi 0.2.15.
5 # Report bugs to <http://sourceforge.net/apps/trac/quvi>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
153 esac
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 else
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://sourceforge.net/apps/trac/quvi about your
251 $0: system, including any error possibly output before this
252 $0: message. Then install a modern shell, or manually run
253 $0: the script under such a shell if you do have one."
255 exit 1
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
273 { eval $1=; unset $1;}
275 as_unset=as_fn_unset
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
282 return $1
283 } # as_fn_set_status
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
290 set +e
291 as_fn_set_status $1
292 exit $1
293 } # as_fn_exit
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
326 /^X\(\/\/\)$/{
327 s//\1/
330 /^X\(\/\).*/{
331 s//\1/
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
351 eval $1+=\$2
353 else
354 as_fn_append ()
356 eval $1=\$$1\$2
358 fi # as_fn_append
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
368 as_val=$(( $* ))
370 else
371 as_fn_arith ()
373 as_val=`expr "$@" || test $? -eq 1`
375 fi # as_fn_arith
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
392 } # as_fn_error
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397 else
398 as_expr=false
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403 else
404 as_basename=false
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409 else
410 as_dirname=false
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
422 /^X\/\(\/\/\)$/{
423 s//\1/
426 /^X\/\(\/\).*/{
427 s//\1/
430 s/.*/./; q'`
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 sed -n '
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
453 :lineno
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
479 esac;;
481 ECHO_N='-n';;
482 esac
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
505 else
506 as_ln_s='cp -p'
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
518 if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520 else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
531 case $1 in #(
532 -*)set "./$1";;
533 esac;
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559 # Initializations.
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
570 # Identity of this package.
571 PACKAGE_NAME='quvi'
572 PACKAGE_TARNAME='quvi'
573 PACKAGE_VERSION='0.2.15'
574 PACKAGE_STRING='quvi 0.2.15'
575 PACKAGE_BUGREPORT='http://sourceforge.net/apps/trac/quvi'
576 PACKAGE_URL='http://quvi.sourceforge.net/'
578 ac_unique_file="lib/quvi.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 # include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 # include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 HAVE_GNU_LD_FALSE
619 HAVE_GNU_LD_TRUE
620 WITH_DOC_FALSE
621 WITH_DOC_TRUE
622 WITH_MAN_FALSE
623 WITH_MAN_TRUE
624 ENABLE_BROKEN_FALSE
625 ENABLE_BROKEN_TRUE
626 ENABLE_TESTS_FALSE
627 ENABLE_TESTS_TRUE
628 ENABLE_NSFW_FALSE
629 ENABLE_NSFW_TRUE
630 ENABLE_EXAMPLES_FALSE
631 ENABLE_EXAMPLES_TRUE
632 ENABLE_QUVI_FALSE
633 ENABLE_QUVI_TRUE
634 NO_ASPRINTF_FALSE
635 NO_ASPRINTF_TRUE
636 POW_LIB
637 LIBOBJS
638 AM_BACKSLASH
639 AM_DEFAULT_VERBOSITY
640 liblua_LIBS
641 liblua_CFLAGS
642 libcurl_LIBS
643 libcurl_CFLAGS
644 PKG_CONFIG_LIBDIR
645 PKG_CONFIG_PATH
646 PKG_CONFIG
647 LTLIBICONV
648 LIBICONV
650 DATE
651 HAVE_POD2HTML_FALSE
652 HAVE_POD2HTML_TRUE
653 POD2HTML
654 HAVE_POD2MAN_FALSE
655 HAVE_POD2MAN_TRUE
656 POD2MAN
657 HAVE_PERL_POD_CHECKER_FALSE
658 HAVE_PERL_POD_CHECKER_TRUE
659 HAVE_PERL_FALSE
660 HAVE_PERL_TRUE
661 PERL
662 HAVE_DOXYGEN_FALSE
663 HAVE_DOXYGEN_TRUE
664 DOXYGEN
665 HAVE_GENGETOPT_FALSE
666 HAVE_GENGETOPT_TRUE
667 GENGETOPT
668 CXXCPP
669 am__fastdepCXX_FALSE
670 am__fastdepCXX_TRUE
671 CXXDEPMODE
672 ac_ct_CXX
673 CXXFLAGS
675 EXTRA_LIBQUVI_LDFLAGS
676 OTOOL64
677 OTOOL
678 LIPO
679 NMEDIT
680 DSYMUTIL
681 MANIFEST_TOOL
682 RANLIB
683 ac_ct_AR
685 DLLTOOL
686 OBJDUMP
687 LN_S
689 ac_ct_DUMPBIN
690 DUMPBIN
692 FGREP
694 LIBTOOL
695 am__fastdepCC_FALSE
696 am__fastdepCC_TRUE
697 CCDEPMODE
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__quote
702 am__include
703 DEPDIR
704 am__untar
705 am__tar
706 AMTAR
707 am__leading_dot
708 SET_MAKE
710 mkdir_p
711 MKDIR_P
712 INSTALL_STRIP_PROGRAM
713 STRIP
714 install_sh
715 MAKEINFO
716 AUTOHEADER
717 AUTOMAKE
718 AUTOCONF
719 ACLOCAL
720 VERSION
721 PACKAGE
722 CYGPATH_W
723 am__isrc
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 EGREP
728 GREP
730 OBJEXT
731 EXEEXT
732 ac_ct_CC
733 CPPFLAGS
734 LDFLAGS
735 CFLAGS
737 target_os
738 target_vendor
739 target_cpu
740 target
741 host_os
742 host_vendor
743 host_cpu
744 host
745 build_os
746 build_vendor
747 build_cpu
748 build
749 QUVI_AGE
750 QUVI_REVISION
751 QUVI_CURRENT
752 target_alias
753 host_alias
754 build_alias
755 LIBS
756 ECHO_T
757 ECHO_N
758 ECHO_C
759 DEFS
760 mandir
761 localedir
762 libdir
763 psdir
764 pdfdir
765 dvidir
766 htmldir
767 infodir
768 docdir
769 oldincludedir
770 includedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL'
790 ac_subst_files=''
791 ac_user_opts='
792 enable_option_checking
793 enable_dependency_tracking
794 enable_shared
795 enable_static
796 with_pic
797 enable_fast_install
798 with_gnu_ld
799 with_sysroot
800 enable_libtool_lock
801 enable_rpath
802 with_libiconv_prefix
803 enable_silent_rules
804 enable_quvi
805 enable_examples
806 enable_nsfw
807 enable_tests
808 enable_broken
809 with_man
810 with_doc
812 ac_precious_vars='build_alias
813 host_alias
814 target_alias
816 CFLAGS
817 LDFLAGS
818 LIBS
819 CPPFLAGS
822 CXXFLAGS
824 CXXCPP
825 PKG_CONFIG
826 PKG_CONFIG_PATH
827 PKG_CONFIG_LIBDIR
828 libcurl_CFLAGS
829 libcurl_LIBS
830 liblua_CFLAGS
831 liblua_LIBS'
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 ac_unrecognized_opts=
838 ac_unrecognized_sep=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
882 ac_prev=
883 ac_dashdash=
884 for ac_option
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
889 ac_prev=
890 continue
893 case $ac_option in
894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 *=) ac_optarg= ;;
896 *) ac_optarg=yes ;;
897 esac
899 # Accept the important Cygnus configure options, so we can diagnose typos.
901 case $ac_dashdash$ac_option in
903 ac_dashdash=yes ;;
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 ac_prev=bindir ;;
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 bindir=$ac_optarg ;;
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
922 --config-cache | -C)
923 cache_file=config.cache ;;
925 -datadir | --datadir | --datadi | --datad)
926 ac_prev=datadir ;;
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
937 -disable-* | --disable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=no ;;
953 -docdir | --docdir | --docdi | --doc | --do)
954 ac_prev=docdir ;;
955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956 docdir=$ac_optarg ;;
958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959 ac_prev=dvidir ;;
960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961 dvidir=$ac_optarg ;;
963 -enable-* | --enable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=\$ac_optarg ;;
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
990 with_gas=yes ;;
992 -help | --help | --hel | --he | -h)
993 ac_init_help=long ;;
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005 ac_prev=htmldir ;;
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007 | --ht=*)
1008 htmldir=$ac_optarg ;;
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 ac_prev=infodir ;;
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1022 -libdir | --libdir | --libdi | --libd)
1023 ac_prev=libdir ;;
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047 ac_prev=mandir ;;
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1053 with_fp=no ;;
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1057 no_create=yes ;;
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 no_recursion=yes ;;
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073 ac_prev=prefix ;;
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 ac_prev=pdfdir ;;
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1113 -psdir | --psdir | --psdi | --psd | --ps)
1114 ac_prev=psdir ;;
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 psdir=$ac_optarg ;;
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 silent=yes ;;
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=\$ac_optarg ;;
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1217 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information"
1221 *=*)
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
1226 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1227 esac
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1239 esac
1240 done
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error $? "missing argument to $ac_option"
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1249 no) ;;
1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 esac
1255 # Check all directory arguments for consistency.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1263 case $ac_val in
1264 */ )
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1267 esac
1268 # Be sure to have absolute directory names.
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1288 If a cross compiler is detected then cross compile mode will be used" >&2
1289 elif test "x$build_alias" != "x$host_alias"; then
1290 cross_compiling=yes
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297 test "$silent" = yes && exec 6>/dev/null
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 as_fn_error $? "working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305 as_fn_error $? "pwd does not report name of working directory"
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310 ac_srcdir_defaulted=yes
1311 # Try the directory containing this script, then the parent directory.
1312 ac_confdir=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314 X"$as_myself" : 'X\(//\)[^/]' \| \
1315 X"$as_myself" : 'X\(//\)$' \| \
1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 $as_echo X"$as_myself" |
1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319 s//\1/
1322 /^X\(\/\/\)[^/].*/{
1323 s//\1/
1326 /^X\(\/\/\)$/{
1327 s//\1/
1330 /^X\(\/\).*/{
1331 s//\1/
1334 s/.*/./; q'`
1335 srcdir=$ac_confdir
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 srcdir=..
1339 else
1340 ac_srcdir_defaulted=no
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 ac_abs_confdir=`(
1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1349 pwd)`
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 srcdir=.
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1357 case $srcdir in
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 esac
1360 for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 done
1368 # Report the --help message.
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1373 cat <<_ACEOF
1374 \`configure' configures quvi 0.2.15 to adapt to many kinds of systems.
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1381 Defaults for the options are specified in brackets.
1383 Configuration:
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking ...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 [PREFIX]
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1405 For better control, use the options below.
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/quvi]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1427 _ACEOF
1429 cat <<\_ACEOF
1431 Program names:
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436 System types:
1437 --build=BUILD configure for building on BUILD [guessed]
1438 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1439 --target=TARGET configure for building compilers for TARGET [HOST]
1440 _ACEOF
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of quvi 0.2.15:";;
1446 esac
1447 cat <<\_ACEOF
1449 Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --disable-dependency-tracking speeds up one-time build
1454 --enable-dependency-tracking do not reject slow dependency extractors
1455 --enable-shared[=PKGS] build shared libraries [default=yes]
1456 --enable-static[=PKGS] build static libraries [default=yes]
1457 --enable-fast-install[=PKGS]
1458 optimize for fast installation [default=yes]
1459 --disable-libtool-lock avoid locking (might break parallel builds)
1460 --disable-rpath do not hardcode runtime library paths
1461 --enable-silent-rules less verbose build output (undo: `make V=1')
1462 --disable-silent-rules verbose build output (undo: `make V=0')
1463 --enable-quvi build quvi command line tool[default=yes]
1464 --enable-examples build examples [default=no]
1465 --enable-nsfw build with adult website support [default=no]
1466 --enable-tests enable tests [default=no]
1467 --enable-broken build with broken website support [default=no]
1469 Optional Packages:
1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1472 --with-pic try to use only PIC/non-PIC objects [default=use
1473 both]
1474 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1475 --with-sysroot=DIR Search for dependent libraries within DIR
1476 (or the compiler's sysroot if not specified).
1477 --with-gnu-ld assume the C compiler uses GNU ld default=no
1478 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1479 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1480 --with-man install manual pages [default=yes]
1481 --with-doc install documentation [default=yes]
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 LIBS libraries to pass to the linker, e.g. -l<library>
1489 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1491 CPP C preprocessor
1492 CXX C++ compiler command
1493 CXXFLAGS C++ compiler flags
1494 CXXCPP C++ preprocessor
1495 PKG_CONFIG path to pkg-config utility
1496 PKG_CONFIG_PATH
1497 directories to add to pkg-config's search path
1498 PKG_CONFIG_LIBDIR
1499 path overriding pkg-config's built-in search path
1500 libcurl_CFLAGS
1501 C compiler flags for libcurl, overriding pkg-config
1502 libcurl_LIBS
1503 linker flags for libcurl, overriding pkg-config
1504 liblua_CFLAGS
1505 C compiler flags for liblua, overriding pkg-config
1506 liblua_LIBS linker flags for liblua, overriding pkg-config
1508 Use these variables to override the choices made by `configure' or to help
1509 it to find libraries and programs with nonstandard names/locations.
1511 Report bugs to <http://sourceforge.net/apps/trac/quvi>.
1512 quvi home page: <http://quvi.sourceforge.net/>.
1513 _ACEOF
1514 ac_status=$?
1517 if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
1519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520 test -d "$ac_dir" ||
1521 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1522 continue
1523 ac_builddir=.
1525 case "$ac_dir" in
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534 esac ;;
1535 esac
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1541 case $srcdir in
1542 .) # We are building in place.
1543 ac_srcdir=.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1550 *) # Relative name.
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554 esac
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure" --help=recursive
1565 else
1566 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567 fi || ac_status=$?
1568 cd "$ac_pwd" || { ac_status=$?; break; }
1569 done
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1574 cat <<\_ACEOF
1575 quvi configure 0.2.15
1576 generated by GNU Autoconf 2.68
1578 Copyright (C) 2010 Free Software Foundation, Inc.
1579 This configure script is free software; the Free Software Foundation
1580 gives unlimited permission to copy, distribute and modify it.
1581 _ACEOF
1582 exit
1585 ## ------------------------ ##
1586 ## Autoconf initialization. ##
1587 ## ------------------------ ##
1589 # ac_fn_c_try_compile LINENO
1590 # --------------------------
1591 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_compile ()
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 rm -f conftest.$ac_objext
1596 if { { ac_try="$ac_compile"
1597 case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_compile") 2>conftest.err
1604 ac_status=$?
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && {
1612 test -z "$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 } && test -s conftest.$ac_objext; then :
1615 ac_retval=0
1616 else
1617 $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1620 ac_retval=1
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623 as_fn_set_status $ac_retval
1625 } # ac_fn_c_try_compile
1627 # ac_fn_c_try_cpp LINENO
1628 # ----------------------
1629 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_cpp ()
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 if { { ac_try="$ac_cpp conftest.$ac_ext"
1634 case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } > conftest.i && {
1649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 }; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1657 ac_retval=1
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1662 } # ac_fn_c_try_cpp
1664 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1665 # -------------------------------------------------------
1666 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1667 # the include files in INCLUDES and setting the cache variable VAR
1668 # accordingly.
1669 ac_fn_c_check_header_mongrel ()
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 if eval \${$3+:} false; then :
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674 $as_echo_n "checking for $2... " >&6; }
1675 if eval \${$3+:} false; then :
1676 $as_echo_n "(cached) " >&6
1678 eval ac_res=\$$3
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 $as_echo "$ac_res" >&6; }
1681 else
1682 # Is the header compilable?
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1684 $as_echo_n "checking $2 usability... " >&6; }
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h. */
1688 #include <$2>
1689 _ACEOF
1690 if ac_fn_c_try_compile "$LINENO"; then :
1691 ac_header_compiler=yes
1692 else
1693 ac_header_compiler=no
1695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1697 $as_echo "$ac_header_compiler" >&6; }
1699 # Is the header present?
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1701 $as_echo_n "checking $2 presence... " >&6; }
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h. */
1704 #include <$2>
1705 _ACEOF
1706 if ac_fn_c_try_cpp "$LINENO"; then :
1707 ac_header_preproc=yes
1708 else
1709 ac_header_preproc=no
1711 rm -f conftest.err conftest.i conftest.$ac_ext
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1713 $as_echo "$ac_header_preproc" >&6; }
1715 # So? What about this header?
1716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1717 yes:no: )
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1719 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1721 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1723 no:yes:* )
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1725 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1727 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1729 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1731 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1733 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1734 ( $as_echo "## ---------------------------------------------------- ##
1735 ## Report this to http://sourceforge.net/apps/trac/quvi ##
1736 ## ---------------------------------------------------- ##"
1737 ) | sed "s/^/$as_me: WARNING: /" >&2
1739 esac
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \${$3+:} false; then :
1743 $as_echo_n "(cached) " >&6
1744 else
1745 eval "$3=\$ac_header_compiler"
1747 eval ac_res=\$$3
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749 $as_echo "$ac_res" >&6; }
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 } # ac_fn_c_check_header_mongrel
1755 # ac_fn_c_try_run LINENO
1756 # ----------------------
1757 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1758 # that executables *can* be run.
1759 ac_fn_c_try_run ()
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if { { ac_try="$ac_link"
1763 case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_link") 2>&5
1770 ac_status=$?
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1773 { { case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_try") 2>&5
1780 ac_status=$?
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; }; }; then :
1783 ac_retval=0
1784 else
1785 $as_echo "$as_me: program exited with status $ac_status" >&5
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1789 ac_retval=$ac_status
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1795 } # ac_fn_c_try_run
1797 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1798 # -------------------------------------------------------
1799 # Tests whether HEADER exists and can be compiled using the include files in
1800 # INCLUDES, setting the cache variable VAR accordingly.
1801 ac_fn_c_check_header_compile ()
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \${$3+:} false; then :
1807 $as_echo_n "(cached) " >&6
1808 else
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1812 #include <$2>
1813 _ACEOF
1814 if ac_fn_c_try_compile "$LINENO"; then :
1815 eval "$3=yes"
1816 else
1817 eval "$3=no"
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 eval ac_res=\$$3
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 } # ac_fn_c_check_header_compile
1828 # ac_fn_c_try_link LINENO
1829 # -----------------------
1830 # Try to link conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_c_try_link ()
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 rm -f conftest.$ac_objext conftest$ac_exeext
1835 if { { ac_try="$ac_link"
1836 case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839 esac
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_link") 2>conftest.err
1843 ac_status=$?
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && {
1851 test -z "$ac_c_werror_flag" ||
1852 test ! -s conftest.err
1853 } && test -s conftest$ac_exeext && {
1854 test "$cross_compiling" = yes ||
1855 $as_test_x conftest$ac_exeext
1856 }; then :
1857 ac_retval=0
1858 else
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1862 ac_retval=1
1864 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1865 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1866 # interfere with the next link command; also delete a directory that is
1867 # left behind by Apple's compiler. We do this before executing the actions.
1868 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 as_fn_set_status $ac_retval
1872 } # ac_fn_c_try_link
1874 # ac_fn_c_check_func LINENO FUNC VAR
1875 # ----------------------------------
1876 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1877 ac_fn_c_check_func ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval \${$3+:} false; then :
1883 $as_echo_n "(cached) " >&6
1884 else
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1887 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1889 #define $2 innocuous_$2
1891 /* System header to define __stub macros and hopefully few prototypes,
1892 which can conflict with char $2 (); below.
1893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1894 <limits.h> exists even on freestanding compilers. */
1896 #ifdef __STDC__
1897 # include <limits.h>
1898 #else
1899 # include <assert.h>
1900 #endif
1902 #undef $2
1904 /* Override any GCC internal prototype to avoid an error.
1905 Use char because int might match the return type of a GCC
1906 builtin and then its argument prototype would still apply. */
1907 #ifdef __cplusplus
1908 extern "C"
1909 #endif
1910 char $2 ();
1911 /* The GNU C library defines this for functions which it implements
1912 to always fail with ENOSYS. Some functions are actually named
1913 something starting with __ and the normal name is an alias. */
1914 #if defined __stub_$2 || defined __stub___$2
1915 choke me
1916 #endif
1919 main ()
1921 return $2 ();
1923 return 0;
1925 _ACEOF
1926 if ac_fn_c_try_link "$LINENO"; then :
1927 eval "$3=yes"
1928 else
1929 eval "$3=no"
1931 rm -f core conftest.err conftest.$ac_objext \
1932 conftest$ac_exeext conftest.$ac_ext
1934 eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 } # ac_fn_c_check_func
1941 # ac_fn_cxx_try_compile LINENO
1942 # ----------------------------
1943 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1944 ac_fn_cxx_try_compile ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 rm -f conftest.$ac_objext
1948 if { { ac_try="$ac_compile"
1949 case "(($ac_try" in
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1952 esac
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_compile") 2>conftest.err
1956 ac_status=$?
1957 if test -s conftest.err; then
1958 grep -v '^ *+' conftest.err >conftest.er1
1959 cat conftest.er1 >&5
1960 mv -f conftest.er1 conftest.err
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; } && {
1964 test -z "$ac_cxx_werror_flag" ||
1965 test ! -s conftest.err
1966 } && test -s conftest.$ac_objext; then :
1967 ac_retval=0
1968 else
1969 $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1972 ac_retval=1
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 as_fn_set_status $ac_retval
1977 } # ac_fn_cxx_try_compile
1979 # ac_fn_cxx_try_cpp LINENO
1980 # ------------------------
1981 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1982 ac_fn_cxx_try_cpp ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 if { { ac_try="$ac_cpp conftest.$ac_ext"
1986 case "(($ac_try" in
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1989 esac
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1993 ac_status=$?
1994 if test -s conftest.err; then
1995 grep -v '^ *+' conftest.err >conftest.er1
1996 cat conftest.er1 >&5
1997 mv -f conftest.er1 conftest.err
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } > conftest.i && {
2001 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2002 test ! -s conftest.err
2003 }; then :
2004 ac_retval=0
2005 else
2006 $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2009 ac_retval=1
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 as_fn_set_status $ac_retval
2014 } # ac_fn_cxx_try_cpp
2016 # ac_fn_cxx_try_link LINENO
2017 # -------------------------
2018 # Try to link conftest.$ac_ext, and return whether this succeeded.
2019 ac_fn_cxx_try_link ()
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 rm -f conftest.$ac_objext conftest$ac_exeext
2023 if { { ac_try="$ac_link"
2024 case "(($ac_try" in
2025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026 *) ac_try_echo=$ac_try;;
2027 esac
2028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029 $as_echo "$ac_try_echo"; } >&5
2030 (eval "$ac_link") 2>conftest.err
2031 ac_status=$?
2032 if test -s conftest.err; then
2033 grep -v '^ *+' conftest.err >conftest.er1
2034 cat conftest.er1 >&5
2035 mv -f conftest.er1 conftest.err
2037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038 test $ac_status = 0; } && {
2039 test -z "$ac_cxx_werror_flag" ||
2040 test ! -s conftest.err
2041 } && test -s conftest$ac_exeext && {
2042 test "$cross_compiling" = yes ||
2043 $as_test_x conftest$ac_exeext
2044 }; then :
2045 ac_retval=0
2046 else
2047 $as_echo "$as_me: failed program was:" >&5
2048 sed 's/^/| /' conftest.$ac_ext >&5
2050 ac_retval=1
2052 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2053 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2054 # interfere with the next link command; also delete a directory that is
2055 # left behind by Apple's compiler. We do this before executing the actions.
2056 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058 as_fn_set_status $ac_retval
2060 } # ac_fn_cxx_try_link
2062 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2063 # -------------------------------------------
2064 # Tests whether TYPE exists after having included INCLUDES, setting cache
2065 # variable VAR accordingly.
2066 ac_fn_c_check_type ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070 $as_echo_n "checking for $2... " >&6; }
2071 if eval \${$3+:} false; then :
2072 $as_echo_n "(cached) " >&6
2073 else
2074 eval "$3=no"
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2079 main ()
2081 if (sizeof ($2))
2082 return 0;
2084 return 0;
2086 _ACEOF
2087 if ac_fn_c_try_compile "$LINENO"; then :
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2092 main ()
2094 if (sizeof (($2)))
2095 return 0;
2097 return 0;
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2102 else
2103 eval "$3=yes"
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 eval ac_res=\$$3
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114 } # ac_fn_c_check_type
2116 # ac_fn_c_find_uintX_t LINENO BITS VAR
2117 # ------------------------------------
2118 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2119 # accordingly.
2120 ac_fn_c_find_uintX_t ()
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2124 $as_echo_n "checking for uint$2_t... " >&6; }
2125 if eval \${$3+:} false; then :
2126 $as_echo_n "(cached) " >&6
2127 else
2128 eval "$3=no"
2129 # Order is important - never check a type that is potentially smaller
2130 # than half of the expected target width.
2131 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2132 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2135 $ac_includes_default
2137 main ()
2139 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2140 test_array [0] = 0
2143 return 0;
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 case $ac_type in #(
2148 uint$2_t) :
2149 eval "$3=yes" ;; #(
2150 *) :
2151 eval "$3=\$ac_type" ;;
2152 esac
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 if eval test \"x\$"$3"\" = x"no"; then :
2157 else
2158 break
2160 done
2162 eval ac_res=\$$3
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 } # ac_fn_c_find_uintX_t
2168 cat >config.log <<_ACEOF
2169 This file contains any messages produced by compilers while
2170 running configure, to aid debugging if configure makes a mistake.
2172 It was created by quvi $as_me 0.2.15, which was
2173 generated by GNU Autoconf 2.68. Invocation command line was
2175 $ $0 $@
2177 _ACEOF
2178 exec 5>>config.log
2180 cat <<_ASUNAME
2181 ## --------- ##
2182 ## Platform. ##
2183 ## --------- ##
2185 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2186 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2187 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2188 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2189 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2191 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2192 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2194 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2195 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2196 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2197 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2198 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2199 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2200 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2202 _ASUNAME
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2207 IFS=$as_save_IFS
2208 test -z "$as_dir" && as_dir=.
2209 $as_echo "PATH: $as_dir"
2210 done
2211 IFS=$as_save_IFS
2213 } >&5
2215 cat >&5 <<_ACEOF
2218 ## ----------- ##
2219 ## Core tests. ##
2220 ## ----------- ##
2222 _ACEOF
2225 # Keep a trace of the command line.
2226 # Strip out --no-create and --no-recursion so they do not pile up.
2227 # Strip out --silent because we don't want to record it for future runs.
2228 # Also quote any args containing shell meta-characters.
2229 # Make two passes to allow for proper duplicate-argument suppression.
2230 ac_configure_args=
2231 ac_configure_args0=
2232 ac_configure_args1=
2233 ac_must_keep_next=false
2234 for ac_pass in 1 2
2236 for ac_arg
2238 case $ac_arg in
2239 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2241 | -silent | --silent | --silen | --sile | --sil)
2242 continue ;;
2243 *\'*)
2244 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2245 esac
2246 case $ac_pass in
2247 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2249 as_fn_append ac_configure_args1 " '$ac_arg'"
2250 if test $ac_must_keep_next = true; then
2251 ac_must_keep_next=false # Got value, back to normal.
2252 else
2253 case $ac_arg in
2254 *=* | --config-cache | -C | -disable-* | --disable-* \
2255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2257 | -with-* | --with-* | -without-* | --without-* | --x)
2258 case "$ac_configure_args0 " in
2259 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2260 esac
2262 -* ) ac_must_keep_next=true ;;
2263 esac
2265 as_fn_append ac_configure_args " '$ac_arg'"
2267 esac
2268 done
2269 done
2270 { ac_configure_args0=; unset ac_configure_args0;}
2271 { ac_configure_args1=; unset ac_configure_args1;}
2273 # When interrupted or exit'd, cleanup temporary files, and complete
2274 # config.log. We remove comments because anyway the quotes in there
2275 # would cause problems or look ugly.
2276 # WARNING: Use '\'' to represent an apostrophe within the trap.
2277 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2278 trap 'exit_status=$?
2279 # Save into config.log some information that might help in debugging.
2281 echo
2283 $as_echo "## ---------------- ##
2284 ## Cache variables. ##
2285 ## ---------------- ##"
2286 echo
2287 # The following way of writing the cache mishandles newlines in values,
2289 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2290 eval ac_val=\$$ac_var
2291 case $ac_val in #(
2292 *${as_nl}*)
2293 case $ac_var in #(
2294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2295 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2296 esac
2297 case $ac_var in #(
2298 _ | IFS | as_nl) ;; #(
2299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2300 *) { eval $ac_var=; unset $ac_var;} ;;
2301 esac ;;
2302 esac
2303 done
2304 (set) 2>&1 |
2305 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2306 *${as_nl}ac_space=\ *)
2307 sed -n \
2308 "s/'\''/'\''\\\\'\'''\''/g;
2309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2310 ;; #(
2312 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2314 esac |
2315 sort
2317 echo
2319 $as_echo "## ----------------- ##
2320 ## Output variables. ##
2321 ## ----------------- ##"
2322 echo
2323 for ac_var in $ac_subst_vars
2325 eval ac_val=\$$ac_var
2326 case $ac_val in
2327 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2328 esac
2329 $as_echo "$ac_var='\''$ac_val'\''"
2330 done | sort
2331 echo
2333 if test -n "$ac_subst_files"; then
2334 $as_echo "## ------------------- ##
2335 ## File substitutions. ##
2336 ## ------------------- ##"
2337 echo
2338 for ac_var in $ac_subst_files
2340 eval ac_val=\$$ac_var
2341 case $ac_val in
2342 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2343 esac
2344 $as_echo "$ac_var='\''$ac_val'\''"
2345 done | sort
2346 echo
2349 if test -s confdefs.h; then
2350 $as_echo "## ----------- ##
2351 ## confdefs.h. ##
2352 ## ----------- ##"
2353 echo
2354 cat confdefs.h
2355 echo
2357 test "$ac_signal" != 0 &&
2358 $as_echo "$as_me: caught signal $ac_signal"
2359 $as_echo "$as_me: exit $exit_status"
2360 } >&5
2361 rm -f core *.core core.conftest.* &&
2362 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2363 exit $exit_status
2365 for ac_signal in 1 2 13 15; do
2366 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2367 done
2368 ac_signal=0
2370 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2371 rm -f -r conftest* confdefs.h
2373 $as_echo "/* confdefs.h */" > confdefs.h
2375 # Predefined preprocessor variables.
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_NAME "$PACKAGE_NAME"
2379 _ACEOF
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2383 _ACEOF
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2387 _ACEOF
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_STRING "$PACKAGE_STRING"
2391 _ACEOF
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2395 _ACEOF
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_URL "$PACKAGE_URL"
2399 _ACEOF
2402 # Let the site file select an alternate cache file if it wants to.
2403 # Prefer an explicitly selected file to automatically selected ones.
2404 ac_site_file1=NONE
2405 ac_site_file2=NONE
2406 if test -n "$CONFIG_SITE"; then
2407 # We do not want a PATH search for config.site.
2408 case $CONFIG_SITE in #((
2409 -*) ac_site_file1=./$CONFIG_SITE;;
2410 */*) ac_site_file1=$CONFIG_SITE;;
2411 *) ac_site_file1=./$CONFIG_SITE;;
2412 esac
2413 elif test "x$prefix" != xNONE; then
2414 ac_site_file1=$prefix/share/config.site
2415 ac_site_file2=$prefix/etc/config.site
2416 else
2417 ac_site_file1=$ac_default_prefix/share/config.site
2418 ac_site_file2=$ac_default_prefix/etc/config.site
2420 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2422 test "x$ac_site_file" = xNONE && continue
2423 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2425 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2426 sed 's/^/| /' "$ac_site_file" >&5
2427 . "$ac_site_file" \
2428 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2430 as_fn_error $? "failed to load site script $ac_site_file
2431 See \`config.log' for more details" "$LINENO" 5; }
2433 done
2435 if test -r "$cache_file"; then
2436 # Some versions of bash will fail to source /dev/null (special files
2437 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2438 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2440 $as_echo "$as_me: loading cache $cache_file" >&6;}
2441 case $cache_file in
2442 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2443 *) . "./$cache_file";;
2444 esac
2446 else
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2448 $as_echo "$as_me: creating cache $cache_file" >&6;}
2449 >$cache_file
2452 # Check that the precious variables saved in the cache have kept the same
2453 # value.
2454 ac_cache_corrupted=false
2455 for ac_var in $ac_precious_vars; do
2456 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2457 eval ac_new_set=\$ac_env_${ac_var}_set
2458 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2459 eval ac_new_val=\$ac_env_${ac_var}_value
2460 case $ac_old_set,$ac_new_set in
2461 set,)
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2463 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2464 ac_cache_corrupted=: ;;
2465 ,set)
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2467 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2468 ac_cache_corrupted=: ;;
2469 ,);;
2471 if test "x$ac_old_val" != "x$ac_new_val"; then
2472 # differences in whitespace do not lead to failure.
2473 ac_old_val_w=`echo x $ac_old_val`
2474 ac_new_val_w=`echo x $ac_new_val`
2475 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2477 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2478 ac_cache_corrupted=:
2479 else
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2481 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2482 eval $ac_var=\$ac_old_val
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2485 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2487 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2488 fi;;
2489 esac
2490 # Pass precious variables to config.status.
2491 if test "$ac_new_set" = set; then
2492 case $ac_new_val in
2493 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2494 *) ac_arg=$ac_var=$ac_new_val ;;
2495 esac
2496 case " $ac_configure_args " in
2497 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2498 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2499 esac
2501 done
2502 if $ac_cache_corrupted; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2506 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2507 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2509 ## -------------------- ##
2510 ## Main body of script. ##
2511 ## -------------------- ##
2513 ac_ext=c
2514 ac_cpp='$CPP $CPPFLAGS'
2515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2521 # Interface:
2522 QUVI_CURRENT=3
2523 QUVI_REVISION=6
2524 QUVI_AGE=3
2530 ac_config_headers="$ac_config_headers config.h"
2532 ac_aux_dir=
2533 for ac_dir in config.aux "$srcdir"/config.aux; do
2534 if test -f "$ac_dir/install-sh"; then
2535 ac_aux_dir=$ac_dir
2536 ac_install_sh="$ac_aux_dir/install-sh -c"
2537 break
2538 elif test -f "$ac_dir/install.sh"; then
2539 ac_aux_dir=$ac_dir
2540 ac_install_sh="$ac_aux_dir/install.sh -c"
2541 break
2542 elif test -f "$ac_dir/shtool"; then
2543 ac_aux_dir=$ac_dir
2544 ac_install_sh="$ac_aux_dir/shtool install -c"
2545 break
2547 done
2548 if test -z "$ac_aux_dir"; then
2549 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config.aux \"$srcdir\"/config.aux" "$LINENO" 5
2552 # These three variables are undocumented and unsupported,
2553 # and are intended to be withdrawn in a future Autoconf release.
2554 # They can cause serious problems if a builder's source tree is in a directory
2555 # whose full name contains unusual characters.
2556 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2557 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2558 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2563 # Make sure we can run config.sub.
2564 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2565 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2568 $as_echo_n "checking build system type... " >&6; }
2569 if ${ac_cv_build+:} false; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 ac_build_alias=$build_alias
2573 test "x$ac_build_alias" = x &&
2574 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2575 test "x$ac_build_alias" = x &&
2576 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2577 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2578 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2582 $as_echo "$ac_cv_build" >&6; }
2583 case $ac_cv_build in
2584 *-*-*) ;;
2585 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2586 esac
2587 build=$ac_cv_build
2588 ac_save_IFS=$IFS; IFS='-'
2589 set x $ac_cv_build
2590 shift
2591 build_cpu=$1
2592 build_vendor=$2
2593 shift; shift
2594 # Remember, the first character of IFS is used to create $*,
2595 # except with old shells:
2596 build_os=$*
2597 IFS=$ac_save_IFS
2598 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2602 $as_echo_n "checking host system type... " >&6; }
2603 if ${ac_cv_host+:} false; then :
2604 $as_echo_n "(cached) " >&6
2605 else
2606 if test "x$host_alias" = x; then
2607 ac_cv_host=$ac_cv_build
2608 else
2609 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2610 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2615 $as_echo "$ac_cv_host" >&6; }
2616 case $ac_cv_host in
2617 *-*-*) ;;
2618 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2619 esac
2620 host=$ac_cv_host
2621 ac_save_IFS=$IFS; IFS='-'
2622 set x $ac_cv_host
2623 shift
2624 host_cpu=$1
2625 host_vendor=$2
2626 shift; shift
2627 # Remember, the first character of IFS is used to create $*,
2628 # except with old shells:
2629 host_os=$*
2630 IFS=$ac_save_IFS
2631 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2635 $as_echo_n "checking target system type... " >&6; }
2636 if ${ac_cv_target+:} false; then :
2637 $as_echo_n "(cached) " >&6
2638 else
2639 if test "x$target_alias" = x; then
2640 ac_cv_target=$ac_cv_host
2641 else
2642 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2643 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2648 $as_echo "$ac_cv_target" >&6; }
2649 case $ac_cv_target in
2650 *-*-*) ;;
2651 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2652 esac
2653 target=$ac_cv_target
2654 ac_save_IFS=$IFS; IFS='-'
2655 set x $ac_cv_target
2656 shift
2657 target_cpu=$1
2658 target_vendor=$2
2659 shift; shift
2660 # Remember, the first character of IFS is used to create $*,
2661 # except with old shells:
2662 target_os=$*
2663 IFS=$ac_save_IFS
2664 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2667 # The aliases save the names the user supplied, while $host etc.
2668 # will get canonicalized.
2669 test -n "$target_alias" &&
2670 test "$program_prefix$program_suffix$program_transform_name" = \
2671 NONENONEs,x,x, &&
2672 program_prefix=${target_alias}-
2674 ac_ext=c
2675 ac_cpp='$CPP $CPPFLAGS'
2676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679 if test -n "$ac_tool_prefix"; then
2680 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if ${ac_cv_prog_CC+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 if test -n "$CC"; then
2688 ac_cv_prog_CC="$CC" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2701 done
2702 done
2703 IFS=$as_save_IFS
2707 CC=$ac_cv_prog_CC
2708 if test -n "$CC"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2710 $as_echo "$CC" >&6; }
2711 else
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713 $as_echo "no" >&6; }
2718 if test -z "$ac_cv_prog_CC"; then
2719 ac_ct_CC=$CC
2720 # Extract the first word of "gcc", so it can be a program name with args.
2721 set dummy gcc; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2725 $as_echo_n "(cached) " >&6
2726 else
2727 if test -n "$ac_ct_CC"; then
2728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 ac_cv_prog_ac_ct_CC="gcc"
2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2741 done
2742 done
2743 IFS=$as_save_IFS
2747 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2748 if test -n "$ac_ct_CC"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2750 $as_echo "$ac_ct_CC" >&6; }
2751 else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2756 if test "x$ac_ct_CC" = x; then
2757 CC=""
2758 else
2759 case $cross_compiling:$ac_tool_warned in
2760 yes:)
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2763 ac_tool_warned=yes ;;
2764 esac
2765 CC=$ac_ct_CC
2767 else
2768 CC="$ac_cv_prog_CC"
2771 if test -z "$CC"; then
2772 if test -n "$ac_tool_prefix"; then
2773 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2774 set dummy ${ac_tool_prefix}cc; ac_word=$2
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if ${ac_cv_prog_CC+:} false; then :
2778 $as_echo_n "(cached) " >&6
2779 else
2780 if test -n "$CC"; then
2781 ac_cv_prog_CC="$CC" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790 ac_cv_prog_CC="${ac_tool_prefix}cc"
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2794 done
2795 done
2796 IFS=$as_save_IFS
2800 CC=$ac_cv_prog_CC
2801 if test -n "$CC"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2803 $as_echo "$CC" >&6; }
2804 else
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 $as_echo "no" >&6; }
2812 if test -z "$CC"; then
2813 # Extract the first word of "cc", so it can be a program name with args.
2814 set dummy cc; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if ${ac_cv_prog_CC+:} false; then :
2818 $as_echo_n "(cached) " >&6
2819 else
2820 if test -n "$CC"; then
2821 ac_cv_prog_CC="$CC" # Let the user override the test.
2822 else
2823 ac_prog_rejected=no
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2832 ac_prog_rejected=yes
2833 continue
2835 ac_cv_prog_CC="cc"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2839 done
2840 done
2841 IFS=$as_save_IFS
2843 if test $ac_prog_rejected = yes; then
2844 # We found a bogon in the path, so make sure we never use it.
2845 set dummy $ac_cv_prog_CC
2846 shift
2847 if test $# != 0; then
2848 # We chose a different compiler from the bogus one.
2849 # However, it has the same basename, so the bogon will be chosen
2850 # first if we set CC to just the basename; use the full file name.
2851 shift
2852 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2857 CC=$ac_cv_prog_CC
2858 if test -n "$CC"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860 $as_echo "$CC" >&6; }
2861 else
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2868 if test -z "$CC"; then
2869 if test -n "$ac_tool_prefix"; then
2870 for ac_prog in cl.exe
2872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 $as_echo_n "checking for $ac_word... " >&6; }
2876 if ${ac_cv_prog_CC+:} false; then :
2877 $as_echo_n "(cached) " >&6
2878 else
2879 if test -n "$CC"; then
2880 ac_cv_prog_CC="$CC" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2893 done
2894 done
2895 IFS=$as_save_IFS
2899 CC=$ac_cv_prog_CC
2900 if test -n "$CC"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2902 $as_echo "$CC" >&6; }
2903 else
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 $as_echo "no" >&6; }
2909 test -n "$CC" && break
2910 done
2912 if test -z "$CC"; then
2913 ac_ct_CC=$CC
2914 for ac_prog in cl.exe
2916 # Extract the first word of "$ac_prog", so it can be a program name with args.
2917 set dummy $ac_prog; ac_word=$2
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919 $as_echo_n "checking for $ac_word... " >&6; }
2920 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2921 $as_echo_n "(cached) " >&6
2922 else
2923 if test -n "$ac_ct_CC"; then
2924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2925 else
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933 ac_cv_prog_ac_ct_CC="$ac_prog"
2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2937 done
2938 done
2939 IFS=$as_save_IFS
2943 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2944 if test -n "$ac_ct_CC"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2946 $as_echo "$ac_ct_CC" >&6; }
2947 else
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 $as_echo "no" >&6; }
2953 test -n "$ac_ct_CC" && break
2954 done
2956 if test "x$ac_ct_CC" = x; then
2957 CC=""
2958 else
2959 case $cross_compiling:$ac_tool_warned in
2960 yes:)
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2963 ac_tool_warned=yes ;;
2964 esac
2965 CC=$ac_ct_CC
2972 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2974 as_fn_error $? "no acceptable C compiler found in \$PATH
2975 See \`config.log' for more details" "$LINENO" 5; }
2977 # Provide some information about the compiler.
2978 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2979 set X $ac_compile
2980 ac_compiler=$2
2981 for ac_option in --version -v -V -qversion; do
2982 { { ac_try="$ac_compiler $ac_option >&5"
2983 case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986 esac
2987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2988 $as_echo "$ac_try_echo"; } >&5
2989 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2990 ac_status=$?
2991 if test -s conftest.err; then
2992 sed '10a\
2993 ... rest of stderr output deleted ...
2994 10q' conftest.err >conftest.er1
2995 cat conftest.er1 >&5
2997 rm -f conftest.er1 conftest.err
2998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2999 test $ac_status = 0; }
3000 done
3002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003 /* end confdefs.h. */
3006 main ()
3010 return 0;
3012 _ACEOF
3013 ac_clean_files_save=$ac_clean_files
3014 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3015 # Try to create an executable without -o first, disregard a.out.
3016 # It will help us diagnose broken compilers, and finding out an intuition
3017 # of exeext.
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3019 $as_echo_n "checking whether the C compiler works... " >&6; }
3020 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3022 # The possible output files:
3023 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3025 ac_rmfiles=
3026 for ac_file in $ac_files
3028 case $ac_file in
3029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3030 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3031 esac
3032 done
3033 rm -f $ac_rmfiles
3035 if { { ac_try="$ac_link_default"
3036 case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039 esac
3040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3041 $as_echo "$ac_try_echo"; } >&5
3042 (eval "$ac_link_default") 2>&5
3043 ac_status=$?
3044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3045 test $ac_status = 0; }; then :
3046 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3047 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3048 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3049 # so that the user can short-circuit this test for compilers unknown to
3050 # Autoconf.
3051 for ac_file in $ac_files ''
3053 test -f "$ac_file" || continue
3054 case $ac_file in
3055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3057 [ab].out )
3058 # We found the default executable, but exeext='' is most
3059 # certainly right.
3060 break;;
3061 *.* )
3062 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3063 then :; else
3064 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3066 # We set ac_cv_exeext here because the later test for it is not
3067 # safe: cross compilers may not add the suffix if given an `-o'
3068 # argument, so we may need to know it at that point already.
3069 # Even if this section looks crufty: it has the advantage of
3070 # actually working.
3071 break;;
3073 break;;
3074 esac
3075 done
3076 test "$ac_cv_exeext" = no && ac_cv_exeext=
3078 else
3079 ac_file=''
3081 if test -z "$ac_file"; then :
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 $as_echo "no" >&6; }
3084 $as_echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3089 as_fn_error 77 "C compiler cannot create executables
3090 See \`config.log' for more details" "$LINENO" 5; }
3091 else
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3093 $as_echo "yes" >&6; }
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3096 $as_echo_n "checking for C compiler default output file name... " >&6; }
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3098 $as_echo "$ac_file" >&6; }
3099 ac_exeext=$ac_cv_exeext
3101 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3102 ac_clean_files=$ac_clean_files_save
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3104 $as_echo_n "checking for suffix of executables... " >&6; }
3105 if { { ac_try="$ac_link"
3106 case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109 esac
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_link") 2>&5
3113 ac_status=$?
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; then :
3116 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3117 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3118 # work properly (i.e., refer to `conftest.exe'), while it won't with
3119 # `rm'.
3120 for ac_file in conftest.exe conftest conftest.*; do
3121 test -f "$ac_file" || continue
3122 case $ac_file in
3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3124 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3125 break;;
3126 * ) break;;
3127 esac
3128 done
3129 else
3130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3133 See \`config.log' for more details" "$LINENO" 5; }
3135 rm -f conftest conftest$ac_cv_exeext
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3137 $as_echo "$ac_cv_exeext" >&6; }
3139 rm -f conftest.$ac_ext
3140 EXEEXT=$ac_cv_exeext
3141 ac_exeext=$EXEEXT
3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143 /* end confdefs.h. */
3144 #include <stdio.h>
3146 main ()
3148 FILE *f = fopen ("conftest.out", "w");
3149 return ferror (f) || fclose (f) != 0;
3152 return 0;
3154 _ACEOF
3155 ac_clean_files="$ac_clean_files conftest.out"
3156 # Check that the compiler produces executables we can run. If not, either
3157 # the compiler is broken, or we cross compile.
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3159 $as_echo_n "checking whether we are cross compiling... " >&6; }
3160 if test "$cross_compiling" != yes; then
3161 { { ac_try="$ac_link"
3162 case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165 esac
3166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167 $as_echo "$ac_try_echo"; } >&5
3168 (eval "$ac_link") 2>&5
3169 ac_status=$?
3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171 test $ac_status = 0; }
3172 if { ac_try='./conftest$ac_cv_exeext'
3173 { { case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176 esac
3177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178 $as_echo "$ac_try_echo"; } >&5
3179 (eval "$ac_try") 2>&5
3180 ac_status=$?
3181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182 test $ac_status = 0; }; }; then
3183 cross_compiling=no
3184 else
3185 if test "$cross_compiling" = maybe; then
3186 cross_compiling=yes
3187 else
3188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190 as_fn_error $? "cannot run C compiled programs.
3191 If you meant to cross compile, use \`--host'.
3192 See \`config.log' for more details" "$LINENO" 5; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3197 $as_echo "$cross_compiling" >&6; }
3199 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3200 ac_clean_files=$ac_clean_files_save
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3202 $as_echo_n "checking for suffix of object files... " >&6; }
3203 if ${ac_cv_objext+:} false; then :
3204 $as_echo_n "(cached) " >&6
3205 else
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h. */
3210 main ()
3214 return 0;
3216 _ACEOF
3217 rm -f conftest.o conftest.obj
3218 if { { ac_try="$ac_compile"
3219 case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 $as_echo "$ac_try_echo"; } >&5
3225 (eval "$ac_compile") 2>&5
3226 ac_status=$?
3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }; then :
3229 for ac_file in conftest.o conftest.obj conftest.*; do
3230 test -f "$ac_file" || continue;
3231 case $ac_file in
3232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3233 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3234 break;;
3235 esac
3236 done
3237 else
3238 $as_echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error $? "cannot compute suffix of object files: cannot compile
3244 See \`config.log' for more details" "$LINENO" 5; }
3246 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3249 $as_echo "$ac_cv_objext" >&6; }
3250 OBJEXT=$ac_cv_objext
3251 ac_objext=$OBJEXT
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3253 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3254 if ${ac_cv_c_compiler_gnu+:} false; then :
3255 $as_echo_n "(cached) " >&6
3256 else
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h. */
3261 main ()
3263 #ifndef __GNUC__
3264 choke me
3265 #endif
3268 return 0;
3270 _ACEOF
3271 if ac_fn_c_try_compile "$LINENO"; then :
3272 ac_compiler_gnu=yes
3273 else
3274 ac_compiler_gnu=no
3276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3281 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3282 if test $ac_compiler_gnu = yes; then
3283 GCC=yes
3284 else
3285 GCC=
3287 ac_test_CFLAGS=${CFLAGS+set}
3288 ac_save_CFLAGS=$CFLAGS
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3290 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3291 if ${ac_cv_prog_cc_g+:} false; then :
3292 $as_echo_n "(cached) " >&6
3293 else
3294 ac_save_c_werror_flag=$ac_c_werror_flag
3295 ac_c_werror_flag=yes
3296 ac_cv_prog_cc_g=no
3297 CFLAGS="-g"
3298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 /* end confdefs.h. */
3302 main ()
3306 return 0;
3308 _ACEOF
3309 if ac_fn_c_try_compile "$LINENO"; then :
3310 ac_cv_prog_cc_g=yes
3311 else
3312 CFLAGS=""
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3317 main ()
3321 return 0;
3323 _ACEOF
3324 if ac_fn_c_try_compile "$LINENO"; then :
3326 else
3327 ac_c_werror_flag=$ac_save_c_werror_flag
3328 CFLAGS="-g"
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3333 main ()
3337 return 0;
3339 _ACEOF
3340 if ac_fn_c_try_compile "$LINENO"; then :
3341 ac_cv_prog_cc_g=yes
3343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348 ac_c_werror_flag=$ac_save_c_werror_flag
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3351 $as_echo "$ac_cv_prog_cc_g" >&6; }
3352 if test "$ac_test_CFLAGS" = set; then
3353 CFLAGS=$ac_save_CFLAGS
3354 elif test $ac_cv_prog_cc_g = yes; then
3355 if test "$GCC" = yes; then
3356 CFLAGS="-g -O2"
3357 else
3358 CFLAGS="-g"
3360 else
3361 if test "$GCC" = yes; then
3362 CFLAGS="-O2"
3363 else
3364 CFLAGS=
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3368 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3369 if ${ac_cv_prog_cc_c89+:} false; then :
3370 $as_echo_n "(cached) " >&6
3371 else
3372 ac_cv_prog_cc_c89=no
3373 ac_save_CC=$CC
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h. */
3376 #include <stdarg.h>
3377 #include <stdio.h>
3378 #include <sys/types.h>
3379 #include <sys/stat.h>
3380 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3381 struct buf { int x; };
3382 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3383 static char *e (p, i)
3384 char **p;
3385 int i;
3387 return p[i];
3389 static char *f (char * (*g) (char **, int), char **p, ...)
3391 char *s;
3392 va_list v;
3393 va_start (v,p);
3394 s = g (p, va_arg (v,int));
3395 va_end (v);
3396 return s;
3399 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3400 function prototypes and stuff, but not '\xHH' hex character constants.
3401 These don't provoke an error unfortunately, instead are silently treated
3402 as 'x'. The following induces an error, until -std is added to get
3403 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3404 array size at least. It's necessary to write '\x00'==0 to get something
3405 that's true only with -std. */
3406 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3408 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3409 inside strings and character constants. */
3410 #define FOO(x) 'x'
3411 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3413 int test (int i, double x);
3414 struct s1 {int (*f) (int a);};
3415 struct s2 {int (*f) (double a);};
3416 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3417 int argc;
3418 char **argv;
3420 main ()
3422 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3424 return 0;
3426 _ACEOF
3427 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3428 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3430 CC="$ac_save_CC $ac_arg"
3431 if ac_fn_c_try_compile "$LINENO"; then :
3432 ac_cv_prog_cc_c89=$ac_arg
3434 rm -f core conftest.err conftest.$ac_objext
3435 test "x$ac_cv_prog_cc_c89" != "xno" && break
3436 done
3437 rm -f conftest.$ac_ext
3438 CC=$ac_save_CC
3441 # AC_CACHE_VAL
3442 case "x$ac_cv_prog_cc_c89" in
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3445 $as_echo "none needed" >&6; } ;;
3446 xno)
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3448 $as_echo "unsupported" >&6; } ;;
3450 CC="$CC $ac_cv_prog_cc_c89"
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3452 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3453 esac
3454 if test "x$ac_cv_prog_cc_c89" != xno; then :
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465 ac_ext=c
3466 ac_cpp='$CPP $CPPFLAGS'
3467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3471 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3472 # On Suns, sometimes $CPP names a directory.
3473 if test -n "$CPP" && test -d "$CPP"; then
3474 CPP=
3476 if test -z "$CPP"; then
3477 if ${ac_cv_prog_CPP+:} false; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 # Double quotes because CPP needs to be expanded
3481 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3483 ac_preproc_ok=false
3484 for ac_c_preproc_warn_flag in '' yes
3486 # Use a header file that comes with gcc, so configuring glibc
3487 # with a fresh cross-compiler works.
3488 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3489 # <limits.h> exists even on freestanding compilers.
3490 # On the NeXT, cc -E runs the code through the compiler's parser,
3491 # not just through cpp. "Syntax error" is here to catch this case.
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h. */
3494 #ifdef __STDC__
3495 # include <limits.h>
3496 #else
3497 # include <assert.h>
3498 #endif
3499 Syntax error
3500 _ACEOF
3501 if ac_fn_c_try_cpp "$LINENO"; then :
3503 else
3504 # Broken: fails on valid input.
3505 continue
3507 rm -f conftest.err conftest.i conftest.$ac_ext
3509 # OK, works on sane cases. Now check whether nonexistent headers
3510 # can be detected and how.
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3513 #include <ac_nonexistent.h>
3514 _ACEOF
3515 if ac_fn_c_try_cpp "$LINENO"; then :
3516 # Broken: success on invalid input.
3517 continue
3518 else
3519 # Passes both tests.
3520 ac_preproc_ok=:
3521 break
3523 rm -f conftest.err conftest.i conftest.$ac_ext
3525 done
3526 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3527 rm -f conftest.i conftest.err conftest.$ac_ext
3528 if $ac_preproc_ok; then :
3529 break
3532 done
3533 ac_cv_prog_CPP=$CPP
3536 CPP=$ac_cv_prog_CPP
3537 else
3538 ac_cv_prog_CPP=$CPP
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3541 $as_echo "$CPP" >&6; }
3542 ac_preproc_ok=false
3543 for ac_c_preproc_warn_flag in '' yes
3545 # Use a header file that comes with gcc, so configuring glibc
3546 # with a fresh cross-compiler works.
3547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3548 # <limits.h> exists even on freestanding compilers.
3549 # On the NeXT, cc -E runs the code through the compiler's parser,
3550 # not just through cpp. "Syntax error" is here to catch this case.
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3553 #ifdef __STDC__
3554 # include <limits.h>
3555 #else
3556 # include <assert.h>
3557 #endif
3558 Syntax error
3559 _ACEOF
3560 if ac_fn_c_try_cpp "$LINENO"; then :
3562 else
3563 # Broken: fails on valid input.
3564 continue
3566 rm -f conftest.err conftest.i conftest.$ac_ext
3568 # OK, works on sane cases. Now check whether nonexistent headers
3569 # can be detected and how.
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3572 #include <ac_nonexistent.h>
3573 _ACEOF
3574 if ac_fn_c_try_cpp "$LINENO"; then :
3575 # Broken: success on invalid input.
3576 continue
3577 else
3578 # Passes both tests.
3579 ac_preproc_ok=:
3580 break
3582 rm -f conftest.err conftest.i conftest.$ac_ext
3584 done
3585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3586 rm -f conftest.i conftest.err conftest.$ac_ext
3587 if $ac_preproc_ok; then :
3589 else
3590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3593 See \`config.log' for more details" "$LINENO" 5; }
3596 ac_ext=c
3597 ac_cpp='$CPP $CPPFLAGS'
3598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3604 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3605 if ${ac_cv_path_GREP+:} false; then :
3606 $as_echo_n "(cached) " >&6
3607 else
3608 if test -z "$GREP"; then
3609 ac_path_GREP_found=false
3610 # Loop through the user's path and test for each of PROGNAME-LIST
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_prog in grep ggrep; do
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3619 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3620 # Check for GNU ac_path_GREP and select it if it is found.
3621 # Check for GNU $ac_path_GREP
3622 case `"$ac_path_GREP" --version 2>&1` in
3623 *GNU*)
3624 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3626 ac_count=0
3627 $as_echo_n 0123456789 >"conftest.in"
3628 while :
3630 cat "conftest.in" "conftest.in" >"conftest.tmp"
3631 mv "conftest.tmp" "conftest.in"
3632 cp "conftest.in" "conftest.nl"
3633 $as_echo 'GREP' >> "conftest.nl"
3634 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3635 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3636 as_fn_arith $ac_count + 1 && ac_count=$as_val
3637 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3638 # Best one so far, save it but keep looking for a better one
3639 ac_cv_path_GREP="$ac_path_GREP"
3640 ac_path_GREP_max=$ac_count
3642 # 10*(2^10) chars as input seems more than enough
3643 test $ac_count -gt 10 && break
3644 done
3645 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3646 esac
3648 $ac_path_GREP_found && break 3
3649 done
3650 done
3651 done
3652 IFS=$as_save_IFS
3653 if test -z "$ac_cv_path_GREP"; then
3654 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3656 else
3657 ac_cv_path_GREP=$GREP
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3662 $as_echo "$ac_cv_path_GREP" >&6; }
3663 GREP="$ac_cv_path_GREP"
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3667 $as_echo_n "checking for egrep... " >&6; }
3668 if ${ac_cv_path_EGREP+:} false; then :
3669 $as_echo_n "(cached) " >&6
3670 else
3671 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3672 then ac_cv_path_EGREP="$GREP -E"
3673 else
3674 if test -z "$EGREP"; then
3675 ac_path_EGREP_found=false
3676 # Loop through the user's path and test for each of PROGNAME-LIST
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for ac_prog in egrep; do
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3685 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3686 # Check for GNU ac_path_EGREP and select it if it is found.
3687 # Check for GNU $ac_path_EGREP
3688 case `"$ac_path_EGREP" --version 2>&1` in
3689 *GNU*)
3690 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3692 ac_count=0
3693 $as_echo_n 0123456789 >"conftest.in"
3694 while :
3696 cat "conftest.in" "conftest.in" >"conftest.tmp"
3697 mv "conftest.tmp" "conftest.in"
3698 cp "conftest.in" "conftest.nl"
3699 $as_echo 'EGREP' >> "conftest.nl"
3700 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3702 as_fn_arith $ac_count + 1 && ac_count=$as_val
3703 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3704 # Best one so far, save it but keep looking for a better one
3705 ac_cv_path_EGREP="$ac_path_EGREP"
3706 ac_path_EGREP_max=$ac_count
3708 # 10*(2^10) chars as input seems more than enough
3709 test $ac_count -gt 10 && break
3710 done
3711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3712 esac
3714 $ac_path_EGREP_found && break 3
3715 done
3716 done
3717 done
3718 IFS=$as_save_IFS
3719 if test -z "$ac_cv_path_EGREP"; then
3720 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3722 else
3723 ac_cv_path_EGREP=$EGREP
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3729 $as_echo "$ac_cv_path_EGREP" >&6; }
3730 EGREP="$ac_cv_path_EGREP"
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3734 $as_echo_n "checking for ANSI C header files... " >&6; }
3735 if ${ac_cv_header_stdc+:} false; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740 #include <stdlib.h>
3741 #include <stdarg.h>
3742 #include <string.h>
3743 #include <float.h>
3746 main ()
3750 return 0;
3752 _ACEOF
3753 if ac_fn_c_try_compile "$LINENO"; then :
3754 ac_cv_header_stdc=yes
3755 else
3756 ac_cv_header_stdc=no
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760 if test $ac_cv_header_stdc = yes; then
3761 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3764 #include <string.h>
3766 _ACEOF
3767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3768 $EGREP "memchr" >/dev/null 2>&1; then :
3770 else
3771 ac_cv_header_stdc=no
3773 rm -f conftest*
3777 if test $ac_cv_header_stdc = yes; then
3778 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781 #include <stdlib.h>
3783 _ACEOF
3784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3785 $EGREP "free" >/dev/null 2>&1; then :
3787 else
3788 ac_cv_header_stdc=no
3790 rm -f conftest*
3794 if test $ac_cv_header_stdc = yes; then
3795 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3796 if test "$cross_compiling" = yes; then :
3798 else
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3801 #include <ctype.h>
3802 #include <stdlib.h>
3803 #if ((' ' & 0x0FF) == 0x020)
3804 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3805 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3806 #else
3807 # define ISLOWER(c) \
3808 (('a' <= (c) && (c) <= 'i') \
3809 || ('j' <= (c) && (c) <= 'r') \
3810 || ('s' <= (c) && (c) <= 'z'))
3811 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3812 #endif
3814 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3816 main ()
3818 int i;
3819 for (i = 0; i < 256; i++)
3820 if (XOR (islower (i), ISLOWER (i))
3821 || toupper (i) != TOUPPER (i))
3822 return 2;
3823 return 0;
3825 _ACEOF
3826 if ac_fn_c_try_run "$LINENO"; then :
3828 else
3829 ac_cv_header_stdc=no
3831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3832 conftest.$ac_objext conftest.beam conftest.$ac_ext
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3838 $as_echo "$ac_cv_header_stdc" >&6; }
3839 if test $ac_cv_header_stdc = yes; then
3841 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3845 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3846 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3847 inttypes.h stdint.h unistd.h
3848 do :
3849 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3850 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3852 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3853 cat >>confdefs.h <<_ACEOF
3854 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3855 _ACEOF
3859 done
3863 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3864 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3865 MINIX=yes
3866 else
3867 MINIX=
3871 if test "$MINIX" = yes; then
3873 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3876 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3879 $as_echo "#define _MINIX 1" >>confdefs.h
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3885 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3886 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3887 $as_echo_n "(cached) " >&6
3888 else
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3892 # define __EXTENSIONS__ 1
3893 $ac_includes_default
3895 main ()
3899 return 0;
3901 _ACEOF
3902 if ac_fn_c_try_compile "$LINENO"; then :
3903 ac_cv_safe_to_define___extensions__=yes
3904 else
3905 ac_cv_safe_to_define___extensions__=no
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3910 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3911 test $ac_cv_safe_to_define___extensions__ = yes &&
3912 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3914 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3916 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3918 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3920 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3926 cat >>confdefs.h <<_ACEOF
3927 #define CANONICAL_TARGET "$target"
3928 _ACEOF
3931 cat >>confdefs.h <<_ACEOF
3932 #define CANONICAL_HOST "$host"
3933 _ACEOF
3936 am__api_version='1.11'
3938 # Find a good install program. We prefer a C program (faster),
3939 # so one script is as good as another. But avoid the broken or
3940 # incompatible versions:
3941 # SysV /etc/install, /usr/sbin/install
3942 # SunOS /usr/etc/install
3943 # IRIX /sbin/install
3944 # AIX /bin/install
3945 # AmigaOS /C/install, which installs bootblocks on floppy discs
3946 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3947 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3948 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3949 # OS/2's system install, which has a completely different semantic
3950 # ./install, which can be erroneously created by make from ./install.sh.
3951 # Reject install programs that cannot install multiple files.
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3953 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3954 if test -z "$INSTALL"; then
3955 if ${ac_cv_path_install+:} false; then :
3956 $as_echo_n "(cached) " >&6
3957 else
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
3963 # Account for people who put trailing slashes in PATH elements.
3964 case $as_dir/ in #((
3965 ./ | .// | /[cC]/* | \
3966 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3967 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3968 /usr/ucb/* ) ;;
3970 # OSF1 and SCO ODT 3.0 have their own names for install.
3971 # Don't use installbsd from OSF since it installs stuff as root
3972 # by default.
3973 for ac_prog in ginstall scoinst install; do
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3976 if test $ac_prog = install &&
3977 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3978 # AIX install. It has an incompatible calling convention.
3980 elif test $ac_prog = install &&
3981 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3982 # program-specific install script used by HP pwplus--don't use.
3984 else
3985 rm -rf conftest.one conftest.two conftest.dir
3986 echo one > conftest.one
3987 echo two > conftest.two
3988 mkdir conftest.dir
3989 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3990 test -s conftest.one && test -s conftest.two &&
3991 test -s conftest.dir/conftest.one &&
3992 test -s conftest.dir/conftest.two
3993 then
3994 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3995 break 3
3999 done
4000 done
4002 esac
4004 done
4005 IFS=$as_save_IFS
4007 rm -rf conftest.one conftest.two conftest.dir
4010 if test "${ac_cv_path_install+set}" = set; then
4011 INSTALL=$ac_cv_path_install
4012 else
4013 # As a last resort, use the slow shell script. Don't cache a
4014 # value for INSTALL within a source directory, because that will
4015 # break other packages using the cache if that directory is
4016 # removed, or if the value is a relative name.
4017 INSTALL=$ac_install_sh
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4021 $as_echo "$INSTALL" >&6; }
4023 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4024 # It thinks the first close brace ends the variable substitution.
4025 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4027 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4029 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4032 $as_echo_n "checking whether build environment is sane... " >&6; }
4033 # Just in case
4034 sleep 1
4035 echo timestamp > conftest.file
4036 # Reject unsafe characters in $srcdir or the absolute working directory
4037 # name. Accept space and tab only in the latter.
4038 am_lf='
4040 case `pwd` in
4041 *[\\\"\#\$\&\'\`$am_lf]*)
4042 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4043 esac
4044 case $srcdir in
4045 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4046 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4047 esac
4049 # Do `set' in a subshell so we don't clobber the current shell's
4050 # arguments. Must try -L first in case configure is actually a
4051 # symlink; some systems play weird games with the mod time of symlinks
4052 # (eg FreeBSD returns the mod time of the symlink's containing
4053 # directory).
4054 if (
4055 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4056 if test "$*" = "X"; then
4057 # -L didn't work.
4058 set X `ls -t "$srcdir/configure" conftest.file`
4060 rm -f conftest.file
4061 if test "$*" != "X $srcdir/configure conftest.file" \
4062 && test "$*" != "X conftest.file $srcdir/configure"; then
4064 # If neither matched, then we have a broken ls. This can happen
4065 # if, for instance, CONFIG_SHELL is bash and it inherits a
4066 # broken ls alias from the environment. This has actually
4067 # happened. Such a system could not be considered "sane".
4068 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4069 alias in your environment" "$LINENO" 5
4072 test "$2" = conftest.file
4074 then
4075 # Ok.
4077 else
4078 as_fn_error $? "newly created file is older than distributed files!
4079 Check your system clock" "$LINENO" 5
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4082 $as_echo "yes" >&6; }
4083 test "$program_prefix" != NONE &&
4084 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4085 # Use a double $ so make ignores it.
4086 test "$program_suffix" != NONE &&
4087 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4088 # Double any \ or $.
4089 # By default was `s,x,x', remove it if useless.
4090 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4091 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4093 # expand $ac_aux_dir to an absolute path
4094 am_aux_dir=`cd $ac_aux_dir && pwd`
4096 if test x"${MISSING+set}" != xset; then
4097 case $am_aux_dir in
4098 *\ * | *\ *)
4099 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4101 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4102 esac
4104 # Use eval to expand $SHELL
4105 if eval "$MISSING --run true"; then
4106 am_missing_run="$MISSING --run "
4107 else
4108 am_missing_run=
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4110 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4113 if test x"${install_sh}" != xset; then
4114 case $am_aux_dir in
4115 *\ * | *\ *)
4116 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4118 install_sh="\${SHELL} $am_aux_dir/install-sh"
4119 esac
4122 # Installed binaries are usually stripped using `strip' when the user
4123 # run `make install-strip'. However `strip' might not be the right
4124 # tool to use in cross-compilation environments, therefore Automake
4125 # will honor the `STRIP' environment variable to overrule this program.
4126 if test "$cross_compiling" != no; then
4127 if test -n "$ac_tool_prefix"; then
4128 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4129 set dummy ${ac_tool_prefix}strip; ac_word=$2
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131 $as_echo_n "checking for $ac_word... " >&6; }
4132 if ${ac_cv_prog_STRIP+:} false; then :
4133 $as_echo_n "(cached) " >&6
4134 else
4135 if test -n "$STRIP"; then
4136 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4137 else
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4141 IFS=$as_save_IFS
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4145 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 break 2
4149 done
4150 done
4151 IFS=$as_save_IFS
4155 STRIP=$ac_cv_prog_STRIP
4156 if test -n "$STRIP"; then
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4158 $as_echo "$STRIP" >&6; }
4159 else
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4166 if test -z "$ac_cv_prog_STRIP"; then
4167 ac_ct_STRIP=$STRIP
4168 # Extract the first word of "strip", so it can be a program name with args.
4169 set dummy strip; ac_word=$2
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171 $as_echo_n "checking for $ac_word... " >&6; }
4172 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4173 $as_echo_n "(cached) " >&6
4174 else
4175 if test -n "$ac_ct_STRIP"; then
4176 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4177 else
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4185 ac_cv_prog_ac_ct_STRIP="strip"
4186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 break 2
4189 done
4190 done
4191 IFS=$as_save_IFS
4195 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4196 if test -n "$ac_ct_STRIP"; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4198 $as_echo "$ac_ct_STRIP" >&6; }
4199 else
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4204 if test "x$ac_ct_STRIP" = x; then
4205 STRIP=":"
4206 else
4207 case $cross_compiling:$ac_tool_warned in
4208 yes:)
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4211 ac_tool_warned=yes ;;
4212 esac
4213 STRIP=$ac_ct_STRIP
4215 else
4216 STRIP="$ac_cv_prog_STRIP"
4220 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4223 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4224 if test -z "$MKDIR_P"; then
4225 if ${ac_cv_path_mkdir+:} false; then :
4226 $as_echo_n "(cached) " >&6
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_prog in mkdir gmkdir; do
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4236 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4237 'mkdir (GNU coreutils) '* | \
4238 'mkdir (coreutils) '* | \
4239 'mkdir (fileutils) '4.1*)
4240 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4241 break 3;;
4242 esac
4243 done
4244 done
4245 done
4246 IFS=$as_save_IFS
4250 test -d ./--version && rmdir ./--version
4251 if test "${ac_cv_path_mkdir+set}" = set; then
4252 MKDIR_P="$ac_cv_path_mkdir -p"
4253 else
4254 # As a last resort, use the slow shell script. Don't cache a
4255 # value for MKDIR_P within a source directory, because that will
4256 # break other packages using the cache if that directory is
4257 # removed, or if the value is a relative name.
4258 MKDIR_P="$ac_install_sh -d"
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4262 $as_echo "$MKDIR_P" >&6; }
4264 mkdir_p="$MKDIR_P"
4265 case $mkdir_p in
4266 [\\/$]* | ?:[\\/]*) ;;
4267 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4268 esac
4270 for ac_prog in gawk mawk nawk awk
4272 # Extract the first word of "$ac_prog", so it can be a program name with args.
4273 set dummy $ac_prog; ac_word=$2
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275 $as_echo_n "checking for $ac_word... " >&6; }
4276 if ${ac_cv_prog_AWK+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 if test -n "$AWK"; then
4280 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4281 else
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4289 ac_cv_prog_AWK="$ac_prog"
4290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 break 2
4293 done
4294 done
4295 IFS=$as_save_IFS
4299 AWK=$ac_cv_prog_AWK
4300 if test -n "$AWK"; then
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4302 $as_echo "$AWK" >&6; }
4303 else
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305 $as_echo "no" >&6; }
4309 test -n "$AWK" && break
4310 done
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4313 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4314 set x ${MAKE-make}
4315 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4316 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4317 $as_echo_n "(cached) " >&6
4318 else
4319 cat >conftest.make <<\_ACEOF
4320 SHELL = /bin/sh
4321 all:
4322 @echo '@@@%%%=$(MAKE)=@@@%%%'
4323 _ACEOF
4324 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4325 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4326 *@@@%%%=?*=@@@%%%*)
4327 eval ac_cv_prog_make_${ac_make}_set=yes;;
4329 eval ac_cv_prog_make_${ac_make}_set=no;;
4330 esac
4331 rm -f conftest.make
4333 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4335 $as_echo "yes" >&6; }
4336 SET_MAKE=
4337 else
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4340 SET_MAKE="MAKE=${MAKE-make}"
4343 rm -rf .tst 2>/dev/null
4344 mkdir .tst 2>/dev/null
4345 if test -d .tst; then
4346 am__leading_dot=.
4347 else
4348 am__leading_dot=_
4350 rmdir .tst 2>/dev/null
4352 DEPDIR="${am__leading_dot}deps"
4354 ac_config_commands="$ac_config_commands depfiles"
4357 am_make=${MAKE-make}
4358 cat > confinc << 'END'
4359 am__doit:
4360 @echo this is the am__doit target
4361 .PHONY: am__doit
4363 # If we don't find an include directive, just comment out the code.
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4365 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4366 am__include="#"
4367 am__quote=
4368 _am_result=none
4369 # First try GNU make style include.
4370 echo "include confinc" > confmf
4371 # Ignore all kinds of additional output from `make'.
4372 case `$am_make -s -f confmf 2> /dev/null` in #(
4373 *the\ am__doit\ target*)
4374 am__include=include
4375 am__quote=
4376 _am_result=GNU
4378 esac
4379 # Now try BSD make style include.
4380 if test "$am__include" = "#"; then
4381 echo '.include "confinc"' > confmf
4382 case `$am_make -s -f confmf 2> /dev/null` in #(
4383 *the\ am__doit\ target*)
4384 am__include=.include
4385 am__quote="\""
4386 _am_result=BSD
4388 esac
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4393 $as_echo "$_am_result" >&6; }
4394 rm -f confinc confmf
4396 # Check whether --enable-dependency-tracking was given.
4397 if test "${enable_dependency_tracking+set}" = set; then :
4398 enableval=$enable_dependency_tracking;
4401 if test "x$enable_dependency_tracking" != xno; then
4402 am_depcomp="$ac_aux_dir/depcomp"
4403 AMDEPBACKSLASH='\'
4405 if test "x$enable_dependency_tracking" != xno; then
4406 AMDEP_TRUE=
4407 AMDEP_FALSE='#'
4408 else
4409 AMDEP_TRUE='#'
4410 AMDEP_FALSE=
4414 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4415 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4416 # is not polluted with repeated "-I."
4417 am__isrc=' -I$(srcdir)'
4418 # test to see if srcdir already configured
4419 if test -f $srcdir/config.status; then
4420 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4424 # test whether we have cygpath
4425 if test -z "$CYGPATH_W"; then
4426 if (cygpath --version) >/dev/null 2>/dev/null; then
4427 CYGPATH_W='cygpath -w'
4428 else
4429 CYGPATH_W=echo
4434 # Define the identity of the package.
4435 PACKAGE='quvi'
4436 VERSION='0.2.15'
4439 cat >>confdefs.h <<_ACEOF
4440 #define PACKAGE "$PACKAGE"
4441 _ACEOF
4444 cat >>confdefs.h <<_ACEOF
4445 #define VERSION "$VERSION"
4446 _ACEOF
4448 # Some tools Automake needs.
4450 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4453 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4456 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4459 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4462 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4464 # We need awk for the "check" target. The system "awk" is bad on
4465 # some platforms.
4466 # Always define AMTAR for backward compatibility.
4468 AMTAR=${AMTAR-"${am_missing_run}tar"}
4470 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4475 depcc="$CC" am_compiler_list=
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4478 $as_echo_n "checking dependency style of $depcc... " >&6; }
4479 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4480 $as_echo_n "(cached) " >&6
4481 else
4482 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4483 # We make a subdir and do the tests there. Otherwise we can end up
4484 # making bogus files that we don't know about and never remove. For
4485 # instance it was reported that on HP-UX the gcc test will end up
4486 # making a dummy file named `D' -- because `-MD' means `put the output
4487 # in D'.
4488 mkdir conftest.dir
4489 # Copy depcomp to subdir because otherwise we won't find it if we're
4490 # using a relative directory.
4491 cp "$am_depcomp" conftest.dir
4492 cd conftest.dir
4493 # We will build objects and dependencies in a subdirectory because
4494 # it helps to detect inapplicable dependency modes. For instance
4495 # both Tru64's cc and ICC support -MD to output dependencies as a
4496 # side effect of compilation, but ICC will put the dependencies in
4497 # the current directory while Tru64 will put them in the object
4498 # directory.
4499 mkdir sub
4501 am_cv_CC_dependencies_compiler_type=none
4502 if test "$am_compiler_list" = ""; then
4503 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4505 am__universal=false
4506 case " $depcc " in #(
4507 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4508 esac
4510 for depmode in $am_compiler_list; do
4511 # Setup a source with many dependencies, because some compilers
4512 # like to wrap large dependency lists on column 80 (with \), and
4513 # we should not choose a depcomp mode which is confused by this.
4515 # We need to recreate these files for each test, as the compiler may
4516 # overwrite some of them when testing with obscure command lines.
4517 # This happens at least with the AIX C compiler.
4518 : > sub/conftest.c
4519 for i in 1 2 3 4 5 6; do
4520 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4521 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4522 # Solaris 8's {/usr,}/bin/sh.
4523 touch sub/conftst$i.h
4524 done
4525 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4527 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4528 # mode. It turns out that the SunPro C++ compiler does not properly
4529 # handle `-M -o', and we need to detect this. Also, some Intel
4530 # versions had trouble with output in subdirs
4531 am__obj=sub/conftest.${OBJEXT-o}
4532 am__minus_obj="-o $am__obj"
4533 case $depmode in
4534 gcc)
4535 # This depmode causes a compiler race in universal mode.
4536 test "$am__universal" = false || continue
4538 nosideeffect)
4539 # after this tag, mechanisms are not by side-effect, so they'll
4540 # only be used when explicitly requested
4541 if test "x$enable_dependency_tracking" = xyes; then
4542 continue
4543 else
4544 break
4547 msvisualcpp | msvcmsys)
4548 # This compiler won't grok `-c -o', but also, the minuso test has
4549 # not run yet. These depmodes are late enough in the game, and
4550 # so weak that their functioning should not be impacted.
4551 am__obj=conftest.${OBJEXT-o}
4552 am__minus_obj=
4554 none) break ;;
4555 esac
4556 if depmode=$depmode \
4557 source=sub/conftest.c object=$am__obj \
4558 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4559 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4560 >/dev/null 2>conftest.err &&
4561 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4562 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4563 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4564 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4565 # icc doesn't choke on unknown options, it will just issue warnings
4566 # or remarks (even with -Werror). So we grep stderr for any message
4567 # that says an option was ignored or not supported.
4568 # When given -MP, icc 7.0 and 7.1 complain thusly:
4569 # icc: Command line warning: ignoring option '-M'; no argument required
4570 # The diagnosis changed in icc 8.0:
4571 # icc: Command line remark: option '-MP' not supported
4572 if (grep 'ignoring option' conftest.err ||
4573 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4574 am_cv_CC_dependencies_compiler_type=$depmode
4575 break
4578 done
4580 cd ..
4581 rm -rf conftest.dir
4582 else
4583 am_cv_CC_dependencies_compiler_type=none
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4588 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4589 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4592 test "x$enable_dependency_tracking" != xno \
4593 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4594 am__fastdepCC_TRUE=
4595 am__fastdepCC_FALSE='#'
4596 else
4597 am__fastdepCC_TRUE='#'
4598 am__fastdepCC_FALSE=
4604 case `pwd` in
4605 *\ * | *\ *)
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4607 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4608 esac
4612 macro_version='2.4'
4613 macro_revision='1.3293'
4627 ltmain="$ac_aux_dir/ltmain.sh"
4629 # Backslashify metacharacters that are still active within
4630 # double-quoted strings.
4631 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4633 # Same as above, but do not quote variable references.
4634 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4636 # Sed substitution to delay expansion of an escaped shell variable in a
4637 # double_quote_subst'ed string.
4638 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4640 # Sed substitution to delay expansion of an escaped single quote.
4641 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4643 # Sed substitution to avoid accidental globbing in evaled expressions
4644 no_glob_subst='s/\*/\\\*/g'
4646 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4647 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4648 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4651 $as_echo_n "checking how to print strings... " >&6; }
4652 # Test print first, because it will be a builtin if present.
4653 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4654 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4655 ECHO='print -r --'
4656 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4657 ECHO='printf %s\n'
4658 else
4659 # Use this function as a fallback that always works.
4660 func_fallback_echo ()
4662 eval 'cat <<_LTECHO_EOF
4664 _LTECHO_EOF'
4666 ECHO='func_fallback_echo'
4669 # func_echo_all arg...
4670 # Invoke $ECHO with all args, space-separated.
4671 func_echo_all ()
4673 $ECHO ""
4676 case "$ECHO" in
4677 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4678 $as_echo "printf" >&6; } ;;
4679 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4680 $as_echo "print -r" >&6; } ;;
4681 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4682 $as_echo "cat" >&6; } ;;
4683 esac
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4699 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4700 if ${ac_cv_path_SED+:} false; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4704 for ac_i in 1 2 3 4 5 6 7; do
4705 ac_script="$ac_script$as_nl$ac_script"
4706 done
4707 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4708 { ac_script=; unset ac_script;}
4709 if test -z "$SED"; then
4710 ac_path_SED_found=false
4711 # Loop through the user's path and test for each of PROGNAME-LIST
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4715 IFS=$as_save_IFS
4716 test -z "$as_dir" && as_dir=.
4717 for ac_prog in sed gsed; do
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4720 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4721 # Check for GNU ac_path_SED and select it if it is found.
4722 # Check for GNU $ac_path_SED
4723 case `"$ac_path_SED" --version 2>&1` in
4724 *GNU*)
4725 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4727 ac_count=0
4728 $as_echo_n 0123456789 >"conftest.in"
4729 while :
4731 cat "conftest.in" "conftest.in" >"conftest.tmp"
4732 mv "conftest.tmp" "conftest.in"
4733 cp "conftest.in" "conftest.nl"
4734 $as_echo '' >> "conftest.nl"
4735 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4737 as_fn_arith $ac_count + 1 && ac_count=$as_val
4738 if test $ac_count -gt ${ac_path_SED_max-0}; then
4739 # Best one so far, save it but keep looking for a better one
4740 ac_cv_path_SED="$ac_path_SED"
4741 ac_path_SED_max=$ac_count
4743 # 10*(2^10) chars as input seems more than enough
4744 test $ac_count -gt 10 && break
4745 done
4746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4747 esac
4749 $ac_path_SED_found && break 3
4750 done
4751 done
4752 done
4753 IFS=$as_save_IFS
4754 if test -z "$ac_cv_path_SED"; then
4755 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4757 else
4758 ac_cv_path_SED=$SED
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4763 $as_echo "$ac_cv_path_SED" >&6; }
4764 SED="$ac_cv_path_SED"
4765 rm -f conftest.sed
4767 test -z "$SED" && SED=sed
4768 Xsed="$SED -e 1s/^X//"
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4781 $as_echo_n "checking for fgrep... " >&6; }
4782 if ${ac_cv_path_FGREP+:} false; then :
4783 $as_echo_n "(cached) " >&6
4784 else
4785 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4786 then ac_cv_path_FGREP="$GREP -F"
4787 else
4788 if test -z "$FGREP"; then
4789 ac_path_FGREP_found=false
4790 # Loop through the user's path and test for each of PROGNAME-LIST
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
4796 for ac_prog in fgrep; do
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4799 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4800 # Check for GNU ac_path_FGREP and select it if it is found.
4801 # Check for GNU $ac_path_FGREP
4802 case `"$ac_path_FGREP" --version 2>&1` in
4803 *GNU*)
4804 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4806 ac_count=0
4807 $as_echo_n 0123456789 >"conftest.in"
4808 while :
4810 cat "conftest.in" "conftest.in" >"conftest.tmp"
4811 mv "conftest.tmp" "conftest.in"
4812 cp "conftest.in" "conftest.nl"
4813 $as_echo 'FGREP' >> "conftest.nl"
4814 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4816 as_fn_arith $ac_count + 1 && ac_count=$as_val
4817 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4818 # Best one so far, save it but keep looking for a better one
4819 ac_cv_path_FGREP="$ac_path_FGREP"
4820 ac_path_FGREP_max=$ac_count
4822 # 10*(2^10) chars as input seems more than enough
4823 test $ac_count -gt 10 && break
4824 done
4825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4826 esac
4828 $ac_path_FGREP_found && break 3
4829 done
4830 done
4831 done
4832 IFS=$as_save_IFS
4833 if test -z "$ac_cv_path_FGREP"; then
4834 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4836 else
4837 ac_cv_path_FGREP=$FGREP
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4843 $as_echo "$ac_cv_path_FGREP" >&6; }
4844 FGREP="$ac_cv_path_FGREP"
4847 test -z "$GREP" && GREP=grep
4867 # Check whether --with-gnu-ld was given.
4868 if test "${with_gnu_ld+set}" = set; then :
4869 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4870 else
4871 with_gnu_ld=no
4874 ac_prog=ld
4875 if test "$GCC" = yes; then
4876 # Check if gcc -print-prog-name=ld gives a path.
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4878 $as_echo_n "checking for ld used by $CC... " >&6; }
4879 case $host in
4880 *-*-mingw*)
4881 # gcc leaves a trailing carriage return which upsets mingw
4882 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4884 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4885 esac
4886 case $ac_prog in
4887 # Accept absolute paths.
4888 [\\/]* | ?:[\\/]*)
4889 re_direlt='/[^/][^/]*/\.\./'
4890 # Canonicalize the pathname of ld
4891 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4892 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4893 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4894 done
4895 test -z "$LD" && LD="$ac_prog"
4898 # If it fails, then pretend we aren't using GCC.
4899 ac_prog=ld
4902 # If it is relative, then search for the first ld in PATH.
4903 with_gnu_ld=unknown
4905 esac
4906 elif test "$with_gnu_ld" = yes; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4908 $as_echo_n "checking for GNU ld... " >&6; }
4909 else
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4911 $as_echo_n "checking for non-GNU ld... " >&6; }
4913 if ${lt_cv_path_LD+:} false; then :
4914 $as_echo_n "(cached) " >&6
4915 else
4916 if test -z "$LD"; then
4917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4918 for ac_dir in $PATH; do
4919 IFS="$lt_save_ifs"
4920 test -z "$ac_dir" && ac_dir=.
4921 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4922 lt_cv_path_LD="$ac_dir/$ac_prog"
4923 # Check to see if the program is GNU ld. I'd rather use --version,
4924 # but apparently some variants of GNU ld only accept -v.
4925 # Break only if it was the GNU/non-GNU ld that we prefer.
4926 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4927 *GNU* | *'with BFD'*)
4928 test "$with_gnu_ld" != no && break
4931 test "$with_gnu_ld" != yes && break
4933 esac
4935 done
4936 IFS="$lt_save_ifs"
4937 else
4938 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4942 LD="$lt_cv_path_LD"
4943 if test -n "$LD"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4945 $as_echo "$LD" >&6; }
4946 else
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4950 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4952 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4953 if ${lt_cv_prog_gnu_ld+:} false; then :
4954 $as_echo_n "(cached) " >&6
4955 else
4956 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4957 case `$LD -v 2>&1 </dev/null` in
4958 *GNU* | *'with BFD'*)
4959 lt_cv_prog_gnu_ld=yes
4962 lt_cv_prog_gnu_ld=no
4964 esac
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4967 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4968 with_gnu_ld=$lt_cv_prog_gnu_ld
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4979 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4980 if ${lt_cv_path_NM+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 if test -n "$NM"; then
4984 # Let the user override the test.
4985 lt_cv_path_NM="$NM"
4986 else
4987 lt_nm_to_check="${ac_tool_prefix}nm"
4988 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4989 lt_nm_to_check="$lt_nm_to_check nm"
4991 for lt_tmp_nm in $lt_nm_to_check; do
4992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4993 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4994 IFS="$lt_save_ifs"
4995 test -z "$ac_dir" && ac_dir=.
4996 tmp_nm="$ac_dir/$lt_tmp_nm"
4997 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4998 # Check to see if the nm accepts a BSD-compat flag.
4999 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5000 # nm: unknown option "B" ignored
5001 # Tru64's nm complains that /dev/null is an invalid object file
5002 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5003 */dev/null* | *'Invalid file or object type'*)
5004 lt_cv_path_NM="$tmp_nm -B"
5005 break
5008 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5009 */dev/null*)
5010 lt_cv_path_NM="$tmp_nm -p"
5011 break
5014 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5015 continue # so that we can try to find one that supports BSD flags
5017 esac
5019 esac
5021 done
5022 IFS="$lt_save_ifs"
5023 done
5024 : ${lt_cv_path_NM=no}
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5028 $as_echo "$lt_cv_path_NM" >&6; }
5029 if test "$lt_cv_path_NM" != "no"; then
5030 NM="$lt_cv_path_NM"
5031 else
5032 # Didn't find any BSD compatible name lister, look for dumpbin.
5033 if test -n "$DUMPBIN"; then :
5034 # Let the user override the test.
5035 else
5036 if test -n "$ac_tool_prefix"; then
5037 for ac_prog in dumpbin "link -dump"
5039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if ${ac_cv_prog_DUMPBIN+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 if test -n "$DUMPBIN"; then
5047 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5056 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5060 done
5061 done
5062 IFS=$as_save_IFS
5066 DUMPBIN=$ac_cv_prog_DUMPBIN
5067 if test -n "$DUMPBIN"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5069 $as_echo "$DUMPBIN" >&6; }
5070 else
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5076 test -n "$DUMPBIN" && break
5077 done
5079 if test -z "$DUMPBIN"; then
5080 ac_ct_DUMPBIN=$DUMPBIN
5081 for ac_prog in dumpbin "link -dump"
5083 # Extract the first word of "$ac_prog", so it can be a program name with args.
5084 set dummy $ac_prog; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5088 $as_echo_n "(cached) " >&6
5089 else
5090 if test -n "$ac_ct_DUMPBIN"; then
5091 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5104 done
5105 done
5106 IFS=$as_save_IFS
5110 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5111 if test -n "$ac_ct_DUMPBIN"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5113 $as_echo "$ac_ct_DUMPBIN" >&6; }
5114 else
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5120 test -n "$ac_ct_DUMPBIN" && break
5121 done
5123 if test "x$ac_ct_DUMPBIN" = x; then
5124 DUMPBIN=":"
5125 else
5126 case $cross_compiling:$ac_tool_warned in
5127 yes:)
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5130 ac_tool_warned=yes ;;
5131 esac
5132 DUMPBIN=$ac_ct_DUMPBIN
5136 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5137 *COFF*)
5138 DUMPBIN="$DUMPBIN -symbols"
5141 DUMPBIN=:
5143 esac
5146 if test "$DUMPBIN" != ":"; then
5147 NM="$DUMPBIN"
5150 test -z "$NM" && NM=nm
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5158 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5159 if ${lt_cv_nm_interface+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 lt_cv_nm_interface="BSD nm"
5163 echo "int some_variable = 0;" > conftest.$ac_ext
5164 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5165 (eval "$ac_compile" 2>conftest.err)
5166 cat conftest.err >&5
5167 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5168 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5169 cat conftest.err >&5
5170 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5171 cat conftest.out >&5
5172 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5173 lt_cv_nm_interface="MS dumpbin"
5175 rm -f conftest*
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5178 $as_echo "$lt_cv_nm_interface" >&6; }
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5181 $as_echo_n "checking whether ln -s works... " >&6; }
5182 LN_S=$as_ln_s
5183 if test "$LN_S" = "ln -s"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5185 $as_echo "yes" >&6; }
5186 else
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5188 $as_echo "no, using $LN_S" >&6; }
5191 # find the maximum length of command line arguments
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5193 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5194 if ${lt_cv_sys_max_cmd_len+:} false; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5198 teststring="ABCD"
5200 case $build_os in
5201 msdosdjgpp*)
5202 # On DJGPP, this test can blow up pretty badly due to problems in libc
5203 # (any single argument exceeding 2000 bytes causes a buffer overrun
5204 # during glob expansion). Even if it were fixed, the result of this
5205 # check would be larger than it should be.
5206 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5209 gnu*)
5210 # Under GNU Hurd, this test is not required because there is
5211 # no limit to the length of command line arguments.
5212 # Libtool will interpret -1 as no limit whatsoever
5213 lt_cv_sys_max_cmd_len=-1;
5216 cygwin* | mingw* | cegcc*)
5217 # On Win9x/ME, this test blows up -- it succeeds, but takes
5218 # about 5 minutes as the teststring grows exponentially.
5219 # Worse, since 9x/ME are not pre-emptively multitasking,
5220 # you end up with a "frozen" computer, even though with patience
5221 # the test eventually succeeds (with a max line length of 256k).
5222 # Instead, let's just punt: use the minimum linelength reported by
5223 # all of the supported platforms: 8192 (on NT/2K/XP).
5224 lt_cv_sys_max_cmd_len=8192;
5227 mint*)
5228 # On MiNT this can take a long time and run out of memory.
5229 lt_cv_sys_max_cmd_len=8192;
5232 amigaos*)
5233 # On AmigaOS with pdksh, this test takes hours, literally.
5234 # So we just punt and use a minimum line length of 8192.
5235 lt_cv_sys_max_cmd_len=8192;
5238 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5239 # This has been around since 386BSD, at least. Likely further.
5240 if test -x /sbin/sysctl; then
5241 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5242 elif test -x /usr/sbin/sysctl; then
5243 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5244 else
5245 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5247 # And add a safety zone
5248 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5249 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5252 interix*)
5253 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5254 lt_cv_sys_max_cmd_len=196608
5257 osf*)
5258 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5259 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5260 # nice to cause kernel panics so lets avoid the loop below.
5261 # First set a reasonable default.
5262 lt_cv_sys_max_cmd_len=16384
5264 if test -x /sbin/sysconfig; then
5265 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5266 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5267 esac
5270 sco3.2v5*)
5271 lt_cv_sys_max_cmd_len=102400
5273 sysv5* | sco5v6* | sysv4.2uw2*)
5274 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5275 if test -n "$kargmax"; then
5276 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5277 else
5278 lt_cv_sys_max_cmd_len=32768
5282 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5283 if test -n "$lt_cv_sys_max_cmd_len"; then
5284 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5285 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5286 else
5287 # Make teststring a little bigger before we do anything with it.
5288 # a 1K string should be a reasonable start.
5289 for i in 1 2 3 4 5 6 7 8 ; do
5290 teststring=$teststring$teststring
5291 done
5292 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5293 # If test is not a shell built-in, we'll probably end up computing a
5294 # maximum length that is only half of the actual maximum length, but
5295 # we can't tell.
5296 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5297 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5298 test $i != 17 # 1/2 MB should be enough
5300 i=`expr $i + 1`
5301 teststring=$teststring$teststring
5302 done
5303 # Only check the string length outside the loop.
5304 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5305 teststring=
5306 # Add a significant safety factor because C++ compilers can tack on
5307 # massive amounts of additional arguments before passing them to the
5308 # linker. It appears as though 1/2 is a usable value.
5309 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5312 esac
5316 if test -n $lt_cv_sys_max_cmd_len ; then
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5318 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5319 else
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5321 $as_echo "none" >&6; }
5323 max_cmd_len=$lt_cv_sys_max_cmd_len
5330 : ${CP="cp -f"}
5331 : ${MV="mv -f"}
5332 : ${RM="rm -f"}
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5335 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5336 # Try some XSI features
5337 xsi_shell=no
5338 ( _lt_dummy="a/b/c"
5339 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5340 = c,a/b,b/c, \
5341 && eval 'test $(( 1 + 1 )) -eq 2 \
5342 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5343 && xsi_shell=yes
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5345 $as_echo "$xsi_shell" >&6; }
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5349 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5350 lt_shell_append=no
5351 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5352 >/dev/null 2>&1 \
5353 && lt_shell_append=yes
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5355 $as_echo "$lt_shell_append" >&6; }
5358 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5359 lt_unset=unset
5360 else
5361 lt_unset=false
5368 # test EBCDIC or ASCII
5369 case `echo X|tr X '\101'` in
5370 A) # ASCII based system
5371 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5372 lt_SP2NL='tr \040 \012'
5373 lt_NL2SP='tr \015\012 \040\040'
5375 *) # EBCDIC based system
5376 lt_SP2NL='tr \100 \n'
5377 lt_NL2SP='tr \r\n \100\100'
5379 esac
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5390 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5391 if ${lt_cv_to_host_file_cmd+:} false; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 case $host in
5395 *-*-mingw* )
5396 case $build in
5397 *-*-mingw* ) # actually msys
5398 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5400 *-*-cygwin* )
5401 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5403 * ) # otherwise, assume *nix
5404 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5406 esac
5408 *-*-cygwin* )
5409 case $build in
5410 *-*-mingw* ) # actually msys
5411 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5413 *-*-cygwin* )
5414 lt_cv_to_host_file_cmd=func_convert_file_noop
5416 * ) # otherwise, assume *nix
5417 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5419 esac
5421 * ) # unhandled hosts (and "normal" native builds)
5422 lt_cv_to_host_file_cmd=func_convert_file_noop
5424 esac
5428 to_host_file_cmd=$lt_cv_to_host_file_cmd
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5430 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5437 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5438 if ${lt_cv_to_tool_file_cmd+:} false; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 #assume ordinary cross tools, or native build.
5442 lt_cv_to_tool_file_cmd=func_convert_file_noop
5443 case $host in
5444 *-*-mingw* )
5445 case $build in
5446 *-*-mingw* ) # actually msys
5447 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5449 esac
5451 esac
5455 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5457 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5464 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5465 if ${lt_cv_ld_reload_flag+:} false; then :
5466 $as_echo_n "(cached) " >&6
5467 else
5468 lt_cv_ld_reload_flag='-r'
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5471 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5472 reload_flag=$lt_cv_ld_reload_flag
5473 case $reload_flag in
5474 "" | " "*) ;;
5475 *) reload_flag=" $reload_flag" ;;
5476 esac
5477 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5478 case $host_os in
5479 cygwin* | mingw* | pw32* | cegcc*)
5480 if test "$GCC" != yes; then
5481 reload_cmds=false
5484 darwin*)
5485 if test "$GCC" = yes; then
5486 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5487 else
5488 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5491 esac
5501 if test -n "$ac_tool_prefix"; then
5502 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5503 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505 $as_echo_n "checking for $ac_word... " >&6; }
5506 if ${ac_cv_prog_OBJDUMP+:} false; then :
5507 $as_echo_n "(cached) " >&6
5508 else
5509 if test -n "$OBJDUMP"; then
5510 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5511 else
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 for as_dir in $PATH
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5519 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 break 2
5523 done
5524 done
5525 IFS=$as_save_IFS
5529 OBJDUMP=$ac_cv_prog_OBJDUMP
5530 if test -n "$OBJDUMP"; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5532 $as_echo "$OBJDUMP" >&6; }
5533 else
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 $as_echo "no" >&6; }
5540 if test -z "$ac_cv_prog_OBJDUMP"; then
5541 ac_ct_OBJDUMP=$OBJDUMP
5542 # Extract the first word of "objdump", so it can be a program name with args.
5543 set dummy objdump; ac_word=$2
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545 $as_echo_n "checking for $ac_word... " >&6; }
5546 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 if test -n "$ac_ct_OBJDUMP"; then
5550 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5551 else
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5559 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 break 2
5563 done
5564 done
5565 IFS=$as_save_IFS
5569 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5570 if test -n "$ac_ct_OBJDUMP"; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5572 $as_echo "$ac_ct_OBJDUMP" >&6; }
5573 else
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575 $as_echo "no" >&6; }
5578 if test "x$ac_ct_OBJDUMP" = x; then
5579 OBJDUMP="false"
5580 else
5581 case $cross_compiling:$ac_tool_warned in
5582 yes:)
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5585 ac_tool_warned=yes ;;
5586 esac
5587 OBJDUMP=$ac_ct_OBJDUMP
5589 else
5590 OBJDUMP="$ac_cv_prog_OBJDUMP"
5593 test -z "$OBJDUMP" && OBJDUMP=objdump
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5604 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5605 if ${lt_cv_deplibs_check_method+:} false; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 lt_cv_file_magic_cmd='$MAGIC_CMD'
5609 lt_cv_file_magic_test_file=
5610 lt_cv_deplibs_check_method='unknown'
5611 # Need to set the preceding variable on all platforms that support
5612 # interlibrary dependencies.
5613 # 'none' -- dependencies not supported.
5614 # `unknown' -- same as none, but documents that we really don't know.
5615 # 'pass_all' -- all dependencies passed with no checks.
5616 # 'test_compile' -- check by making test program.
5617 # 'file_magic [[regex]]' -- check by looking for files in library path
5618 # which responds to the $file_magic_cmd with a given extended regex.
5619 # If you have `file' or equivalent on your system and you're not sure
5620 # whether `pass_all' will *always* work, you probably want this one.
5622 case $host_os in
5623 aix[4-9]*)
5624 lt_cv_deplibs_check_method=pass_all
5627 beos*)
5628 lt_cv_deplibs_check_method=pass_all
5631 bsdi[45]*)
5632 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5633 lt_cv_file_magic_cmd='/usr/bin/file -L'
5634 lt_cv_file_magic_test_file=/shlib/libc.so
5637 cygwin*)
5638 # func_win32_libid is a shell function defined in ltmain.sh
5639 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5640 lt_cv_file_magic_cmd='func_win32_libid'
5643 mingw* | pw32*)
5644 # Base MSYS/MinGW do not provide the 'file' command needed by
5645 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5646 # unless we find 'file', for example because we are cross-compiling.
5647 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5648 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5649 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5650 lt_cv_file_magic_cmd='func_win32_libid'
5651 else
5652 # Keep this pattern in sync with the one in func_win32_libid.
5653 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5654 lt_cv_file_magic_cmd='$OBJDUMP -f'
5658 cegcc*)
5659 # use the weaker test based on 'objdump'. See mingw*.
5660 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5661 lt_cv_file_magic_cmd='$OBJDUMP -f'
5664 darwin* | rhapsody*)
5665 lt_cv_deplibs_check_method=pass_all
5668 freebsd* | dragonfly*)
5669 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5670 case $host_cpu in
5671 i*86 )
5672 # Not sure whether the presence of OpenBSD here was a mistake.
5673 # Let's accept both of them until this is cleared up.
5674 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5675 lt_cv_file_magic_cmd=/usr/bin/file
5676 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5678 esac
5679 else
5680 lt_cv_deplibs_check_method=pass_all
5684 gnu*)
5685 lt_cv_deplibs_check_method=pass_all
5688 haiku*)
5689 lt_cv_deplibs_check_method=pass_all
5692 hpux10.20* | hpux11*)
5693 lt_cv_file_magic_cmd=/usr/bin/file
5694 case $host_cpu in
5695 ia64*)
5696 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5697 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5699 hppa*64*)
5700 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]'
5701 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5704 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5705 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5707 esac
5710 interix[3-9]*)
5711 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5712 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5715 irix5* | irix6* | nonstopux*)
5716 case $LD in
5717 *-32|*"-32 ") libmagic=32-bit;;
5718 *-n32|*"-n32 ") libmagic=N32;;
5719 *-64|*"-64 ") libmagic=64-bit;;
5720 *) libmagic=never-match;;
5721 esac
5722 lt_cv_deplibs_check_method=pass_all
5725 # This must be Linux ELF.
5726 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5727 lt_cv_deplibs_check_method=pass_all
5730 netbsd*)
5731 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5732 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5733 else
5734 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5738 newos6*)
5739 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5740 lt_cv_file_magic_cmd=/usr/bin/file
5741 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5744 *nto* | *qnx*)
5745 lt_cv_deplibs_check_method=pass_all
5748 openbsd*)
5749 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5750 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5751 else
5752 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5756 osf3* | osf4* | osf5*)
5757 lt_cv_deplibs_check_method=pass_all
5760 rdos*)
5761 lt_cv_deplibs_check_method=pass_all
5764 solaris*)
5765 lt_cv_deplibs_check_method=pass_all
5768 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5769 lt_cv_deplibs_check_method=pass_all
5772 sysv4 | sysv4.3*)
5773 case $host_vendor in
5774 motorola)
5775 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]'
5776 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5778 ncr)
5779 lt_cv_deplibs_check_method=pass_all
5781 sequent)
5782 lt_cv_file_magic_cmd='/bin/file'
5783 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5785 sni)
5786 lt_cv_file_magic_cmd='/bin/file'
5787 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5788 lt_cv_file_magic_test_file=/lib/libc.so
5790 siemens)
5791 lt_cv_deplibs_check_method=pass_all
5794 lt_cv_deplibs_check_method=pass_all
5796 esac
5799 tpf*)
5800 lt_cv_deplibs_check_method=pass_all
5802 esac
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5806 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5808 file_magic_glob=
5809 want_nocaseglob=no
5810 if test "$build" = "$host"; then
5811 case $host_os in
5812 mingw* | pw32*)
5813 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5814 want_nocaseglob=yes
5815 else
5816 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5819 esac
5822 file_magic_cmd=$lt_cv_file_magic_cmd
5823 deplibs_check_method=$lt_cv_deplibs_check_method
5824 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5847 if test -n "$ac_tool_prefix"; then
5848 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5849 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851 $as_echo_n "checking for $ac_word... " >&6; }
5852 if ${ac_cv_prog_DLLTOOL+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 if test -n "$DLLTOOL"; then
5856 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5861 IFS=$as_save_IFS
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 break 2
5869 done
5870 done
5871 IFS=$as_save_IFS
5875 DLLTOOL=$ac_cv_prog_DLLTOOL
5876 if test -n "$DLLTOOL"; then
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5878 $as_echo "$DLLTOOL" >&6; }
5879 else
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881 $as_echo "no" >&6; }
5886 if test -z "$ac_cv_prog_DLLTOOL"; then
5887 ac_ct_DLLTOOL=$DLLTOOL
5888 # Extract the first word of "dlltool", so it can be a program name with args.
5889 set dummy dlltool; ac_word=$2
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5891 $as_echo_n "checking for $ac_word... " >&6; }
5892 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5893 $as_echo_n "(cached) " >&6
5894 else
5895 if test -n "$ac_ct_DLLTOOL"; then
5896 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5897 else
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 for as_dir in $PATH
5901 IFS=$as_save_IFS
5902 test -z "$as_dir" && as_dir=.
5903 for ac_exec_ext in '' $ac_executable_extensions; do
5904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5905 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 break 2
5909 done
5910 done
5911 IFS=$as_save_IFS
5915 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5916 if test -n "$ac_ct_DLLTOOL"; then
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5918 $as_echo "$ac_ct_DLLTOOL" >&6; }
5919 else
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5921 $as_echo "no" >&6; }
5924 if test "x$ac_ct_DLLTOOL" = x; then
5925 DLLTOOL="false"
5926 else
5927 case $cross_compiling:$ac_tool_warned in
5928 yes:)
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5931 ac_tool_warned=yes ;;
5932 esac
5933 DLLTOOL=$ac_ct_DLLTOOL
5935 else
5936 DLLTOOL="$ac_cv_prog_DLLTOOL"
5939 test -z "$DLLTOOL" && DLLTOOL=dlltool
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5951 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5952 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 lt_cv_sharedlib_from_linklib_cmd='unknown'
5957 case $host_os in
5958 cygwin* | mingw* | pw32* | cegcc*)
5959 # two different shell functions defined in ltmain.sh
5960 # decide which to use based on capabilities of $DLLTOOL
5961 case `$DLLTOOL --help 2>&1` in
5962 *--identify-strict*)
5963 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5966 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5968 esac
5971 # fallback: assume linklib IS sharedlib
5972 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5974 esac
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5978 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5979 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5980 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5988 if test -n "$ac_tool_prefix"; then
5989 for ac_prog in ar
5991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994 $as_echo_n "checking for $ac_word... " >&6; }
5995 if ${ac_cv_prog_AR+:} false; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 if test -n "$AR"; then
5999 ac_cv_prog_AR="$AR" # Let the user override the test.
6000 else
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH
6004 IFS=$as_save_IFS
6005 test -z "$as_dir" && as_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6008 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 break 2
6012 done
6013 done
6014 IFS=$as_save_IFS
6018 AR=$ac_cv_prog_AR
6019 if test -n "$AR"; then
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6021 $as_echo "$AR" >&6; }
6022 else
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024 $as_echo "no" >&6; }
6028 test -n "$AR" && break
6029 done
6031 if test -z "$AR"; then
6032 ac_ct_AR=$AR
6033 for ac_prog in ar
6035 # Extract the first word of "$ac_prog", so it can be a program name with args.
6036 set dummy $ac_prog; ac_word=$2
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 if test -n "$ac_ct_AR"; then
6043 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6044 else
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6048 IFS=$as_save_IFS
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6052 ac_cv_prog_ac_ct_AR="$ac_prog"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 break 2
6056 done
6057 done
6058 IFS=$as_save_IFS
6062 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6063 if test -n "$ac_ct_AR"; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6065 $as_echo "$ac_ct_AR" >&6; }
6066 else
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6072 test -n "$ac_ct_AR" && break
6073 done
6075 if test "x$ac_ct_AR" = x; then
6076 AR="false"
6077 else
6078 case $cross_compiling:$ac_tool_warned in
6079 yes:)
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6082 ac_tool_warned=yes ;;
6083 esac
6084 AR=$ac_ct_AR
6088 : ${AR=ar}
6089 : ${AR_FLAGS=cru}
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6102 $as_echo_n "checking for archiver @FILE support... " >&6; }
6103 if ${lt_cv_ar_at_file+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 lt_cv_ar_at_file=no
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6111 main ()
6115 return 0;
6117 _ACEOF
6118 if ac_fn_c_try_compile "$LINENO"; then :
6119 echo conftest.$ac_objext > conftest.lst
6120 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6122 (eval $lt_ar_try) 2>&5
6123 ac_status=$?
6124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6125 test $ac_status = 0; }
6126 if test "$ac_status" -eq 0; then
6127 # Ensure the archiver fails upon bogus file names.
6128 rm -f conftest.$ac_objext libconftest.a
6129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6130 (eval $lt_ar_try) 2>&5
6131 ac_status=$?
6132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6133 test $ac_status = 0; }
6134 if test "$ac_status" -ne 0; then
6135 lt_cv_ar_at_file=@
6138 rm -f conftest.* libconftest.a
6141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6145 $as_echo "$lt_cv_ar_at_file" >&6; }
6147 if test "x$lt_cv_ar_at_file" = xno; then
6148 archiver_list_spec=
6149 else
6150 archiver_list_spec=$lt_cv_ar_at_file
6159 if test -n "$ac_tool_prefix"; then
6160 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6161 set dummy ${ac_tool_prefix}strip; ac_word=$2
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6163 $as_echo_n "checking for $ac_word... " >&6; }
6164 if ${ac_cv_prog_STRIP+:} false; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 if test -n "$STRIP"; then
6168 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6169 else
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 for as_dir in $PATH
6173 IFS=$as_save_IFS
6174 test -z "$as_dir" && as_dir=.
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6177 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 break 2
6181 done
6182 done
6183 IFS=$as_save_IFS
6187 STRIP=$ac_cv_prog_STRIP
6188 if test -n "$STRIP"; then
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6190 $as_echo "$STRIP" >&6; }
6191 else
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193 $as_echo "no" >&6; }
6198 if test -z "$ac_cv_prog_STRIP"; then
6199 ac_ct_STRIP=$STRIP
6200 # Extract the first word of "strip", so it can be a program name with args.
6201 set dummy strip; ac_word=$2
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203 $as_echo_n "checking for $ac_word... " >&6; }
6204 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 if test -n "$ac_ct_STRIP"; then
6208 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6217 ac_cv_prog_ac_ct_STRIP="strip"
6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 break 2
6221 done
6222 done
6223 IFS=$as_save_IFS
6227 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6228 if test -n "$ac_ct_STRIP"; then
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6230 $as_echo "$ac_ct_STRIP" >&6; }
6231 else
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 $as_echo "no" >&6; }
6236 if test "x$ac_ct_STRIP" = x; then
6237 STRIP=":"
6238 else
6239 case $cross_compiling:$ac_tool_warned in
6240 yes:)
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6243 ac_tool_warned=yes ;;
6244 esac
6245 STRIP=$ac_ct_STRIP
6247 else
6248 STRIP="$ac_cv_prog_STRIP"
6251 test -z "$STRIP" && STRIP=:
6258 if test -n "$ac_tool_prefix"; then
6259 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6260 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6262 $as_echo_n "checking for $ac_word... " >&6; }
6263 if ${ac_cv_prog_RANLIB+:} false; then :
6264 $as_echo_n "(cached) " >&6
6265 else
6266 if test -n "$RANLIB"; then
6267 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6268 else
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6272 IFS=$as_save_IFS
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6276 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 break 2
6280 done
6281 done
6282 IFS=$as_save_IFS
6286 RANLIB=$ac_cv_prog_RANLIB
6287 if test -n "$RANLIB"; then
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6289 $as_echo "$RANLIB" >&6; }
6290 else
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6292 $as_echo "no" >&6; }
6297 if test -z "$ac_cv_prog_RANLIB"; then
6298 ac_ct_RANLIB=$RANLIB
6299 # Extract the first word of "ranlib", so it can be a program name with args.
6300 set dummy ranlib; ac_word=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6304 $as_echo_n "(cached) " >&6
6305 else
6306 if test -n "$ac_ct_RANLIB"; then
6307 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_prog_ac_ct_RANLIB="ranlib"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6320 done
6321 done
6322 IFS=$as_save_IFS
6326 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6327 if test -n "$ac_ct_RANLIB"; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6329 $as_echo "$ac_ct_RANLIB" >&6; }
6330 else
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6335 if test "x$ac_ct_RANLIB" = x; then
6336 RANLIB=":"
6337 else
6338 case $cross_compiling:$ac_tool_warned in
6339 yes:)
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6342 ac_tool_warned=yes ;;
6343 esac
6344 RANLIB=$ac_ct_RANLIB
6346 else
6347 RANLIB="$ac_cv_prog_RANLIB"
6350 test -z "$RANLIB" && RANLIB=:
6357 # Determine commands to create old-style static archives.
6358 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6359 old_postinstall_cmds='chmod 644 $oldlib'
6360 old_postuninstall_cmds=
6362 if test -n "$RANLIB"; then
6363 case $host_os in
6364 openbsd*)
6365 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6368 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6370 esac
6371 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6374 case $host_os in
6375 darwin*)
6376 lock_old_archive_extraction=yes ;;
6378 lock_old_archive_extraction=no ;;
6379 esac
6419 # If no C compiler was specified, use CC.
6420 LTCC=${LTCC-"$CC"}
6422 # If no C compiler flags were specified, use CFLAGS.
6423 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6425 # Allow CC to be a program name with arguments.
6426 compiler=$CC
6429 # Check for command to grab the raw symbol name followed by C symbol from nm.
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6431 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6432 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6436 # These are sane defaults that work on at least a few old systems.
6437 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6439 # Character class describing NM global symbol codes.
6440 symcode='[BCDEGRST]'
6442 # Regexp to match symbols that can be accessed directly from C.
6443 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6445 # Define system-specific variables.
6446 case $host_os in
6447 aix*)
6448 symcode='[BCDT]'
6450 cygwin* | mingw* | pw32* | cegcc*)
6451 symcode='[ABCDGISTW]'
6453 hpux*)
6454 if test "$host_cpu" = ia64; then
6455 symcode='[ABCDEGRST]'
6458 irix* | nonstopux*)
6459 symcode='[BCDEGRST]'
6461 osf*)
6462 symcode='[BCDEGQRST]'
6464 solaris*)
6465 symcode='[BDRT]'
6467 sco3.2v5*)
6468 symcode='[DT]'
6470 sysv4.2uw2*)
6471 symcode='[DT]'
6473 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6474 symcode='[ABDT]'
6476 sysv4)
6477 symcode='[DFNSTU]'
6479 esac
6481 # If we're using GNU nm, then use its standard symbol codes.
6482 case `$NM -V 2>&1` in
6483 *GNU* | *'with BFD'*)
6484 symcode='[ABCDGIRSTW]' ;;
6485 esac
6487 # Transform an extracted symbol line into a proper C declaration.
6488 # Some systems (esp. on ia64) link data and code symbols differently,
6489 # so use this general approach.
6490 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6492 # Transform an extracted symbol line into symbol name and symbol address
6493 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6494 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'"
6496 # Handle CRLF in mingw tool chain
6497 opt_cr=
6498 case $build_os in
6499 mingw*)
6500 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6502 esac
6504 # Try without a prefix underscore, then with it.
6505 for ac_symprfx in "" "_"; do
6507 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6508 symxfrm="\\1 $ac_symprfx\\2 \\2"
6510 # Write the raw and C identifiers.
6511 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6512 # Fake it for dumpbin and say T for any non-static function
6513 # and D for any global variable.
6514 # Also find C++ and __fastcall symbols from MSVC++,
6515 # which start with @ or ?.
6516 lt_cv_sys_global_symbol_pipe="$AWK '"\
6517 " {last_section=section; section=\$ 3};"\
6518 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6519 " \$ 0!~/External *\|/{next};"\
6520 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6521 " {if(hide[section]) next};"\
6522 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6523 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6524 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6525 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6526 " ' prfx=^$ac_symprfx"
6527 else
6528 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6530 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6532 # Check to see that the pipe works correctly.
6533 pipe_works=no
6535 rm -f conftest*
6536 cat > conftest.$ac_ext <<_LT_EOF
6537 #ifdef __cplusplus
6538 extern "C" {
6539 #endif
6540 char nm_test_var;
6541 void nm_test_func(void);
6542 void nm_test_func(void){}
6543 #ifdef __cplusplus
6545 #endif
6546 int main(){nm_test_var='a';nm_test_func();return(0);}
6547 _LT_EOF
6549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6550 (eval $ac_compile) 2>&5
6551 ac_status=$?
6552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6553 test $ac_status = 0; }; then
6554 # Now try to grab the symbols.
6555 nlist=conftest.nm
6556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6557 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6558 ac_status=$?
6559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6560 test $ac_status = 0; } && test -s "$nlist"; then
6561 # Try sorting and uniquifying the output.
6562 if sort "$nlist" | uniq > "$nlist"T; then
6563 mv -f "$nlist"T "$nlist"
6564 else
6565 rm -f "$nlist"T
6568 # Make sure that we snagged all the symbols we need.
6569 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6570 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6571 cat <<_LT_EOF > conftest.$ac_ext
6572 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6573 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6574 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6575 relocations are performed -- see ld's documentation on pseudo-relocs. */
6576 # define LT_DLSYM_CONST
6577 #elif defined(__osf__)
6578 /* This system does not cope well with relocations in const data. */
6579 # define LT_DLSYM_CONST
6580 #else
6581 # define LT_DLSYM_CONST const
6582 #endif
6584 #ifdef __cplusplus
6585 extern "C" {
6586 #endif
6588 _LT_EOF
6589 # Now generate the symbol file.
6590 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6592 cat <<_LT_EOF >> conftest.$ac_ext
6594 /* The mapping between symbol names and symbols. */
6595 LT_DLSYM_CONST struct {
6596 const char *name;
6597 void *address;
6599 lt__PROGRAM__LTX_preloaded_symbols[] =
6601 { "@PROGRAM@", (void *) 0 },
6602 _LT_EOF
6603 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6604 cat <<\_LT_EOF >> conftest.$ac_ext
6605 {0, (void *) 0}
6608 /* This works around a problem in FreeBSD linker */
6609 #ifdef FREEBSD_WORKAROUND
6610 static const void *lt_preloaded_setup() {
6611 return lt__PROGRAM__LTX_preloaded_symbols;
6613 #endif
6615 #ifdef __cplusplus
6617 #endif
6618 _LT_EOF
6619 # Now try linking the two files.
6620 mv conftest.$ac_objext conftstm.$ac_objext
6621 lt_globsym_save_LIBS=$LIBS
6622 lt_globsym_save_CFLAGS=$CFLAGS
6623 LIBS="conftstm.$ac_objext"
6624 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6626 (eval $ac_link) 2>&5
6627 ac_status=$?
6628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6629 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6630 pipe_works=yes
6632 LIBS=$lt_globsym_save_LIBS
6633 CFLAGS=$lt_globsym_save_CFLAGS
6634 else
6635 echo "cannot find nm_test_func in $nlist" >&5
6637 else
6638 echo "cannot find nm_test_var in $nlist" >&5
6640 else
6641 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6643 else
6644 echo "$progname: failed program was:" >&5
6645 cat conftest.$ac_ext >&5
6647 rm -rf conftest* conftst*
6649 # Do not use the global_symbol_pipe unless it works.
6650 if test "$pipe_works" = yes; then
6651 break
6652 else
6653 lt_cv_sys_global_symbol_pipe=
6655 done
6659 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6660 lt_cv_sys_global_symbol_to_cdecl=
6662 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6664 $as_echo "failed" >&6; }
6665 else
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6667 $as_echo "ok" >&6; }
6670 # Response file support.
6671 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6672 nm_file_list_spec='@'
6673 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6674 nm_file_list_spec='@'
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6704 $as_echo_n "checking for sysroot... " >&6; }
6706 # Check whether --with-sysroot was given.
6707 if test "${with_sysroot+set}" = set; then :
6708 withval=$with_sysroot;
6709 else
6710 with_sysroot=no
6714 lt_sysroot=
6715 case ${with_sysroot} in #(
6716 yes)
6717 if test "$GCC" = yes; then
6718 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6720 ;; #(
6722 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6723 ;; #(
6724 no|'')
6725 ;; #(
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6728 $as_echo "${with_sysroot}" >&6; }
6729 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6731 esac
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6734 $as_echo "${lt_sysroot:-no}" >&6; }
6740 # Check whether --enable-libtool-lock was given.
6741 if test "${enable_libtool_lock+set}" = set; then :
6742 enableval=$enable_libtool_lock;
6745 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6747 # Some flags need to be propagated to the compiler or linker for good
6748 # libtool support.
6749 case $host in
6750 ia64-*-hpux*)
6751 # Find out which ABI we are using.
6752 echo 'int i;' > conftest.$ac_ext
6753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6754 (eval $ac_compile) 2>&5
6755 ac_status=$?
6756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6757 test $ac_status = 0; }; then
6758 case `/usr/bin/file conftest.$ac_objext` in
6759 *ELF-32*)
6760 HPUX_IA64_MODE="32"
6762 *ELF-64*)
6763 HPUX_IA64_MODE="64"
6765 esac
6767 rm -rf conftest*
6769 *-*-irix6*)
6770 # Find out which ABI we are using.
6771 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6773 (eval $ac_compile) 2>&5
6774 ac_status=$?
6775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6776 test $ac_status = 0; }; then
6777 if test "$lt_cv_prog_gnu_ld" = yes; then
6778 case `/usr/bin/file conftest.$ac_objext` in
6779 *32-bit*)
6780 LD="${LD-ld} -melf32bsmip"
6782 *N32*)
6783 LD="${LD-ld} -melf32bmipn32"
6785 *64-bit*)
6786 LD="${LD-ld} -melf64bmip"
6788 esac
6789 else
6790 case `/usr/bin/file conftest.$ac_objext` in
6791 *32-bit*)
6792 LD="${LD-ld} -32"
6794 *N32*)
6795 LD="${LD-ld} -n32"
6797 *64-bit*)
6798 LD="${LD-ld} -64"
6800 esac
6803 rm -rf conftest*
6806 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6807 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6808 # Find out which ABI we are using.
6809 echo 'int i;' > conftest.$ac_ext
6810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6811 (eval $ac_compile) 2>&5
6812 ac_status=$?
6813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6814 test $ac_status = 0; }; then
6815 case `/usr/bin/file conftest.o` in
6816 *32-bit*)
6817 case $host in
6818 x86_64-*kfreebsd*-gnu)
6819 LD="${LD-ld} -m elf_i386_fbsd"
6821 x86_64-*linux*)
6822 LD="${LD-ld} -m elf_i386"
6824 ppc64-*linux*|powerpc64-*linux*)
6825 LD="${LD-ld} -m elf32ppclinux"
6827 s390x-*linux*)
6828 LD="${LD-ld} -m elf_s390"
6830 sparc64-*linux*)
6831 LD="${LD-ld} -m elf32_sparc"
6833 esac
6835 *64-bit*)
6836 case $host in
6837 x86_64-*kfreebsd*-gnu)
6838 LD="${LD-ld} -m elf_x86_64_fbsd"
6840 x86_64-*linux*)
6841 LD="${LD-ld} -m elf_x86_64"
6843 ppc*-*linux*|powerpc*-*linux*)
6844 LD="${LD-ld} -m elf64ppc"
6846 s390*-*linux*|s390*-*tpf*)
6847 LD="${LD-ld} -m elf64_s390"
6849 sparc*-*linux*)
6850 LD="${LD-ld} -m elf64_sparc"
6852 esac
6854 esac
6856 rm -rf conftest*
6859 *-*-sco3.2v5*)
6860 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6861 SAVE_CFLAGS="$CFLAGS"
6862 CFLAGS="$CFLAGS -belf"
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6864 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6865 if ${lt_cv_cc_needs_belf+:} false; then :
6866 $as_echo_n "(cached) " >&6
6867 else
6868 ac_ext=c
6869 ac_cpp='$CPP $CPPFLAGS'
6870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6878 main ()
6882 return 0;
6884 _ACEOF
6885 if ac_fn_c_try_link "$LINENO"; then :
6886 lt_cv_cc_needs_belf=yes
6887 else
6888 lt_cv_cc_needs_belf=no
6890 rm -f core conftest.err conftest.$ac_objext \
6891 conftest$ac_exeext conftest.$ac_ext
6892 ac_ext=c
6893 ac_cpp='$CPP $CPPFLAGS'
6894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6900 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6901 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6902 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6903 CFLAGS="$SAVE_CFLAGS"
6906 sparc*-*solaris*)
6907 # Find out which ABI we are using.
6908 echo 'int i;' > conftest.$ac_ext
6909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6910 (eval $ac_compile) 2>&5
6911 ac_status=$?
6912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6913 test $ac_status = 0; }; then
6914 case `/usr/bin/file conftest.o` in
6915 *64-bit*)
6916 case $lt_cv_prog_gnu_ld in
6917 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6919 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6920 LD="${LD-ld} -64"
6923 esac
6925 esac
6927 rm -rf conftest*
6929 esac
6931 need_locks="$enable_libtool_lock"
6933 if test -n "$ac_tool_prefix"; then
6934 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6935 set dummy ${ac_tool_prefix}mt; ac_word=$2
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937 $as_echo_n "checking for $ac_word... " >&6; }
6938 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6939 $as_echo_n "(cached) " >&6
6940 else
6941 if test -n "$MANIFEST_TOOL"; then
6942 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6943 else
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 for as_dir in $PATH
6947 IFS=$as_save_IFS
6948 test -z "$as_dir" && as_dir=.
6949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6951 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 break 2
6955 done
6956 done
6957 IFS=$as_save_IFS
6961 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6962 if test -n "$MANIFEST_TOOL"; then
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6964 $as_echo "$MANIFEST_TOOL" >&6; }
6965 else
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 $as_echo "no" >&6; }
6972 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6973 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6974 # Extract the first word of "mt", so it can be a program name with args.
6975 set dummy mt; ac_word=$2
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977 $as_echo_n "checking for $ac_word... " >&6; }
6978 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 if test -n "$ac_ct_MANIFEST_TOOL"; then
6982 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6983 else
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6991 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993 break 2
6995 done
6996 done
6997 IFS=$as_save_IFS
7001 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7002 if test -n "$ac_ct_MANIFEST_TOOL"; then
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7004 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7005 else
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007 $as_echo "no" >&6; }
7010 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7011 MANIFEST_TOOL=":"
7012 else
7013 case $cross_compiling:$ac_tool_warned in
7014 yes:)
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7017 ac_tool_warned=yes ;;
7018 esac
7019 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7021 else
7022 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7025 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7027 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7028 if ${lt_cv_path_mainfest_tool+:} false; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 lt_cv_path_mainfest_tool=no
7032 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7033 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7034 cat conftest.err >&5
7035 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7036 lt_cv_path_mainfest_tool=yes
7038 rm -f conftest*
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7041 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7042 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7043 MANIFEST_TOOL=:
7051 case $host_os in
7052 rhapsody* | darwin*)
7053 if test -n "$ac_tool_prefix"; then
7054 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7055 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 $as_echo_n "checking for $ac_word... " >&6; }
7058 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7059 $as_echo_n "(cached) " >&6
7060 else
7061 if test -n "$DSYMUTIL"; then
7062 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7063 else
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7071 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7075 done
7076 done
7077 IFS=$as_save_IFS
7081 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7082 if test -n "$DSYMUTIL"; then
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7084 $as_echo "$DSYMUTIL" >&6; }
7085 else
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087 $as_echo "no" >&6; }
7092 if test -z "$ac_cv_prog_DSYMUTIL"; then
7093 ac_ct_DSYMUTIL=$DSYMUTIL
7094 # Extract the first word of "dsymutil", so it can be a program name with args.
7095 set dummy dsymutil; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7099 $as_echo_n "(cached) " >&6
7100 else
7101 if test -n "$ac_ct_DSYMUTIL"; then
7102 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7115 done
7116 done
7117 IFS=$as_save_IFS
7121 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7122 if test -n "$ac_ct_DSYMUTIL"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7124 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7125 else
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7130 if test "x$ac_ct_DSYMUTIL" = x; then
7131 DSYMUTIL=":"
7132 else
7133 case $cross_compiling:$ac_tool_warned in
7134 yes:)
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7137 ac_tool_warned=yes ;;
7138 esac
7139 DSYMUTIL=$ac_ct_DSYMUTIL
7141 else
7142 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7145 if test -n "$ac_tool_prefix"; then
7146 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7147 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149 $as_echo_n "checking for $ac_word... " >&6; }
7150 if ${ac_cv_prog_NMEDIT+:} false; then :
7151 $as_echo_n "(cached) " >&6
7152 else
7153 if test -n "$NMEDIT"; then
7154 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7155 else
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7167 done
7168 done
7169 IFS=$as_save_IFS
7173 NMEDIT=$ac_cv_prog_NMEDIT
7174 if test -n "$NMEDIT"; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7176 $as_echo "$NMEDIT" >&6; }
7177 else
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7184 if test -z "$ac_cv_prog_NMEDIT"; then
7185 ac_ct_NMEDIT=$NMEDIT
7186 # Extract the first word of "nmedit", so it can be a program name with args.
7187 set dummy nmedit; ac_word=$2
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 $as_echo_n "checking for $ac_word... " >&6; }
7190 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7191 $as_echo_n "(cached) " >&6
7192 else
7193 if test -n "$ac_ct_NMEDIT"; then
7194 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7207 done
7208 done
7209 IFS=$as_save_IFS
7213 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7214 if test -n "$ac_ct_NMEDIT"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7216 $as_echo "$ac_ct_NMEDIT" >&6; }
7217 else
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7222 if test "x$ac_ct_NMEDIT" = x; then
7223 NMEDIT=":"
7224 else
7225 case $cross_compiling:$ac_tool_warned in
7226 yes:)
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7229 ac_tool_warned=yes ;;
7230 esac
7231 NMEDIT=$ac_ct_NMEDIT
7233 else
7234 NMEDIT="$ac_cv_prog_NMEDIT"
7237 if test -n "$ac_tool_prefix"; then
7238 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7239 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241 $as_echo_n "checking for $ac_word... " >&6; }
7242 if ${ac_cv_prog_LIPO+:} false; then :
7243 $as_echo_n "(cached) " >&6
7244 else
7245 if test -n "$LIPO"; then
7246 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7247 else
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7251 IFS=$as_save_IFS
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7255 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 break 2
7259 done
7260 done
7261 IFS=$as_save_IFS
7265 LIPO=$ac_cv_prog_LIPO
7266 if test -n "$LIPO"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7268 $as_echo "$LIPO" >&6; }
7269 else
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7276 if test -z "$ac_cv_prog_LIPO"; then
7277 ac_ct_LIPO=$LIPO
7278 # Extract the first word of "lipo", so it can be a program name with args.
7279 set dummy lipo; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 if test -n "$ac_ct_LIPO"; then
7286 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7295 ac_cv_prog_ac_ct_LIPO="lipo"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7299 done
7300 done
7301 IFS=$as_save_IFS
7305 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7306 if test -n "$ac_ct_LIPO"; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7308 $as_echo "$ac_ct_LIPO" >&6; }
7309 else
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7314 if test "x$ac_ct_LIPO" = x; then
7315 LIPO=":"
7316 else
7317 case $cross_compiling:$ac_tool_warned in
7318 yes:)
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7321 ac_tool_warned=yes ;;
7322 esac
7323 LIPO=$ac_ct_LIPO
7325 else
7326 LIPO="$ac_cv_prog_LIPO"
7329 if test -n "$ac_tool_prefix"; then
7330 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7331 set dummy ${ac_tool_prefix}otool; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if ${ac_cv_prog_OTOOL+:} false; then :
7335 $as_echo_n "(cached) " >&6
7336 else
7337 if test -n "$OTOOL"; then
7338 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7339 else
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7343 IFS=$as_save_IFS
7344 test -z "$as_dir" && as_dir=.
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7347 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 break 2
7351 done
7352 done
7353 IFS=$as_save_IFS
7357 OTOOL=$ac_cv_prog_OTOOL
7358 if test -n "$OTOOL"; then
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7360 $as_echo "$OTOOL" >&6; }
7361 else
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7368 if test -z "$ac_cv_prog_OTOOL"; then
7369 ac_ct_OTOOL=$OTOOL
7370 # Extract the first word of "otool", so it can be a program name with args.
7371 set dummy otool; ac_word=$2
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373 $as_echo_n "checking for $ac_word... " >&6; }
7374 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7375 $as_echo_n "(cached) " >&6
7376 else
7377 if test -n "$ac_ct_OTOOL"; then
7378 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7379 else
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7387 ac_cv_prog_ac_ct_OTOOL="otool"
7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 break 2
7391 done
7392 done
7393 IFS=$as_save_IFS
7397 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7398 if test -n "$ac_ct_OTOOL"; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7400 $as_echo "$ac_ct_OTOOL" >&6; }
7401 else
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7406 if test "x$ac_ct_OTOOL" = x; then
7407 OTOOL=":"
7408 else
7409 case $cross_compiling:$ac_tool_warned in
7410 yes:)
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7413 ac_tool_warned=yes ;;
7414 esac
7415 OTOOL=$ac_ct_OTOOL
7417 else
7418 OTOOL="$ac_cv_prog_OTOOL"
7421 if test -n "$ac_tool_prefix"; then
7422 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7423 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425 $as_echo_n "checking for $ac_word... " >&6; }
7426 if ${ac_cv_prog_OTOOL64+:} false; then :
7427 $as_echo_n "(cached) " >&6
7428 else
7429 if test -n "$OTOOL64"; then
7430 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7431 else
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 for as_dir in $PATH
7435 IFS=$as_save_IFS
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7439 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 break 2
7443 done
7444 done
7445 IFS=$as_save_IFS
7449 OTOOL64=$ac_cv_prog_OTOOL64
7450 if test -n "$OTOOL64"; then
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7452 $as_echo "$OTOOL64" >&6; }
7453 else
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455 $as_echo "no" >&6; }
7460 if test -z "$ac_cv_prog_OTOOL64"; then
7461 ac_ct_OTOOL64=$OTOOL64
7462 # Extract the first word of "otool64", so it can be a program name with args.
7463 set dummy otool64; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 if test -n "$ac_ct_OTOOL64"; then
7470 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7471 else
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7475 IFS=$as_save_IFS
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7479 ac_cv_prog_ac_ct_OTOOL64="otool64"
7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 break 2
7483 done
7484 done
7485 IFS=$as_save_IFS
7489 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7490 if test -n "$ac_ct_OTOOL64"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7492 $as_echo "$ac_ct_OTOOL64" >&6; }
7493 else
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7498 if test "x$ac_ct_OTOOL64" = x; then
7499 OTOOL64=":"
7500 else
7501 case $cross_compiling:$ac_tool_warned in
7502 yes:)
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7505 ac_tool_warned=yes ;;
7506 esac
7507 OTOOL64=$ac_ct_OTOOL64
7509 else
7510 OTOOL64="$ac_cv_prog_OTOOL64"
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7540 $as_echo_n "checking for -single_module linker flag... " >&6; }
7541 if ${lt_cv_apple_cc_single_mod+:} false; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 lt_cv_apple_cc_single_mod=no
7545 if test -z "${LT_MULTI_MODULE}"; then
7546 # By default we will add the -single_module flag. You can override
7547 # by either setting the environment variable LT_MULTI_MODULE
7548 # non-empty at configure time, or by adding -multi_module to the
7549 # link flags.
7550 rm -rf libconftest.dylib*
7551 echo "int foo(void){return 1;}" > conftest.c
7552 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7553 -dynamiclib -Wl,-single_module conftest.c" >&5
7554 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7555 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7556 _lt_result=$?
7557 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7558 lt_cv_apple_cc_single_mod=yes
7559 else
7560 cat conftest.err >&5
7562 rm -rf libconftest.dylib*
7563 rm -f conftest.*
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7567 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7569 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7570 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 lt_cv_ld_exported_symbols_list=no
7574 save_LDFLAGS=$LDFLAGS
7575 echo "_main" > conftest.sym
7576 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h. */
7581 main ()
7585 return 0;
7587 _ACEOF
7588 if ac_fn_c_try_link "$LINENO"; then :
7589 lt_cv_ld_exported_symbols_list=yes
7590 else
7591 lt_cv_ld_exported_symbols_list=no
7593 rm -f core conftest.err conftest.$ac_objext \
7594 conftest$ac_exeext conftest.$ac_ext
7595 LDFLAGS="$save_LDFLAGS"
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7599 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7601 $as_echo_n "checking for -force_load linker flag... " >&6; }
7602 if ${lt_cv_ld_force_load+:} false; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605 lt_cv_ld_force_load=no
7606 cat > conftest.c << _LT_EOF
7607 int forced_loaded() { return 2;}
7608 _LT_EOF
7609 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7610 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7611 echo "$AR cru libconftest.a conftest.o" >&5
7612 $AR cru libconftest.a conftest.o 2>&5
7613 echo "$RANLIB libconftest.a" >&5
7614 $RANLIB libconftest.a 2>&5
7615 cat > conftest.c << _LT_EOF
7616 int main() { return 0;}
7617 _LT_EOF
7618 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7619 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7620 _lt_result=$?
7621 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7622 lt_cv_ld_force_load=yes
7623 else
7624 cat conftest.err >&5
7626 rm -f conftest.err libconftest.a conftest conftest.c
7627 rm -rf conftest.dSYM
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7631 $as_echo "$lt_cv_ld_force_load" >&6; }
7632 case $host_os in
7633 rhapsody* | darwin1.[012])
7634 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7635 darwin1.*)
7636 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7637 darwin*) # darwin 5.x on
7638 # if running on 10.5 or later, the deployment target defaults
7639 # to the OS version, if on x86, and 10.4, the deployment
7640 # target defaults to 10.4. Don't you love it?
7641 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7642 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7643 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7644 10.[012]*)
7645 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7646 10.*)
7647 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7648 esac
7650 esac
7651 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7652 _lt_dar_single_mod='$single_module'
7654 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7655 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7656 else
7657 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7659 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7660 _lt_dsymutil='~$DSYMUTIL $lib || :'
7661 else
7662 _lt_dsymutil=
7665 esac
7667 for ac_header in dlfcn.h
7668 do :
7669 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7671 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7672 cat >>confdefs.h <<_ACEOF
7673 #define HAVE_DLFCN_H 1
7674 _ACEOF
7678 done
7684 # Set options
7688 enable_dlopen=no
7691 enable_win32_dll=no
7694 # Check whether --enable-shared was given.
7695 if test "${enable_shared+set}" = set; then :
7696 enableval=$enable_shared; p=${PACKAGE-default}
7697 case $enableval in
7698 yes) enable_shared=yes ;;
7699 no) enable_shared=no ;;
7701 enable_shared=no
7702 # Look at the argument we got. We use all the common list separators.
7703 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7704 for pkg in $enableval; do
7705 IFS="$lt_save_ifs"
7706 if test "X$pkg" = "X$p"; then
7707 enable_shared=yes
7709 done
7710 IFS="$lt_save_ifs"
7712 esac
7713 else
7714 enable_shared=yes
7725 # Check whether --enable-static was given.
7726 if test "${enable_static+set}" = set; then :
7727 enableval=$enable_static; p=${PACKAGE-default}
7728 case $enableval in
7729 yes) enable_static=yes ;;
7730 no) enable_static=no ;;
7732 enable_static=no
7733 # Look at the argument we got. We use all the common list separators.
7734 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7735 for pkg in $enableval; do
7736 IFS="$lt_save_ifs"
7737 if test "X$pkg" = "X$p"; then
7738 enable_static=yes
7740 done
7741 IFS="$lt_save_ifs"
7743 esac
7744 else
7745 enable_static=yes
7757 # Check whether --with-pic was given.
7758 if test "${with_pic+set}" = set; then :
7759 withval=$with_pic; pic_mode="$withval"
7760 else
7761 pic_mode=default
7765 test -z "$pic_mode" && pic_mode=default
7773 # Check whether --enable-fast-install was given.
7774 if test "${enable_fast_install+set}" = set; then :
7775 enableval=$enable_fast_install; p=${PACKAGE-default}
7776 case $enableval in
7777 yes) enable_fast_install=yes ;;
7778 no) enable_fast_install=no ;;
7780 enable_fast_install=no
7781 # Look at the argument we got. We use all the common list separators.
7782 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7783 for pkg in $enableval; do
7784 IFS="$lt_save_ifs"
7785 if test "X$pkg" = "X$p"; then
7786 enable_fast_install=yes
7788 done
7789 IFS="$lt_save_ifs"
7791 esac
7792 else
7793 enable_fast_install=yes
7806 # This can be used to rebuild libtool when needed
7807 LIBTOOL_DEPS="$ltmain"
7809 # Always use our own libtool.
7810 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7837 test -z "$LN_S" && LN_S="ln -s"
7852 if test -n "${ZSH_VERSION+set}" ; then
7853 setopt NO_GLOB_SUBST
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7857 $as_echo_n "checking for objdir... " >&6; }
7858 if ${lt_cv_objdir+:} false; then :
7859 $as_echo_n "(cached) " >&6
7860 else
7861 rm -f .libs 2>/dev/null
7862 mkdir .libs 2>/dev/null
7863 if test -d .libs; then
7864 lt_cv_objdir=.libs
7865 else
7866 # MS-DOS does not allow filenames that begin with a dot.
7867 lt_cv_objdir=_libs
7869 rmdir .libs 2>/dev/null
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7872 $as_echo "$lt_cv_objdir" >&6; }
7873 objdir=$lt_cv_objdir
7879 cat >>confdefs.h <<_ACEOF
7880 #define LT_OBJDIR "$lt_cv_objdir/"
7881 _ACEOF
7886 case $host_os in
7887 aix3*)
7888 # AIX sometimes has problems with the GCC collect2 program. For some
7889 # reason, if we set the COLLECT_NAMES environment variable, the problems
7890 # vanish in a puff of smoke.
7891 if test "X${COLLECT_NAMES+set}" != Xset; then
7892 COLLECT_NAMES=
7893 export COLLECT_NAMES
7896 esac
7898 # Global variables:
7899 ofile=libtool
7900 can_build_shared=yes
7902 # All known linkers require a `.a' archive for static linking (except MSVC,
7903 # which needs '.lib').
7904 libext=a
7906 with_gnu_ld="$lt_cv_prog_gnu_ld"
7908 old_CC="$CC"
7909 old_CFLAGS="$CFLAGS"
7911 # Set sane defaults for various variables
7912 test -z "$CC" && CC=cc
7913 test -z "$LTCC" && LTCC=$CC
7914 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7915 test -z "$LD" && LD=ld
7916 test -z "$ac_objext" && ac_objext=o
7918 for cc_temp in $compiler""; do
7919 case $cc_temp in
7920 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7921 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7922 \-*) ;;
7923 *) break;;
7924 esac
7925 done
7926 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7929 # Only perform the check for file, if the check method requires it
7930 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7931 case $deplibs_check_method in
7932 file_magic*)
7933 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7935 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7936 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7937 $as_echo_n "(cached) " >&6
7938 else
7939 case $MAGIC_CMD in
7940 [\\/*] | ?:[\\/]*)
7941 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7944 lt_save_MAGIC_CMD="$MAGIC_CMD"
7945 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7946 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7947 for ac_dir in $ac_dummy; do
7948 IFS="$lt_save_ifs"
7949 test -z "$ac_dir" && ac_dir=.
7950 if test -f $ac_dir/${ac_tool_prefix}file; then
7951 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7952 if test -n "$file_magic_test_file"; then
7953 case $deplibs_check_method in
7954 "file_magic "*)
7955 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7957 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7958 $EGREP "$file_magic_regex" > /dev/null; then
7960 else
7961 cat <<_LT_EOF 1>&2
7963 *** Warning: the command libtool uses to detect shared libraries,
7964 *** $file_magic_cmd, produces output that libtool cannot recognize.
7965 *** The result is that libtool may fail to recognize shared libraries
7966 *** as such. This will affect the creation of libtool libraries that
7967 *** depend on shared libraries, but programs linked with such libtool
7968 *** libraries will work regardless of this problem. Nevertheless, you
7969 *** may want to report the problem to your system manager and/or to
7970 *** bug-libtool@gnu.org
7972 _LT_EOF
7973 fi ;;
7974 esac
7976 break
7978 done
7979 IFS="$lt_save_ifs"
7980 MAGIC_CMD="$lt_save_MAGIC_CMD"
7982 esac
7985 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7986 if test -n "$MAGIC_CMD"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7988 $as_echo "$MAGIC_CMD" >&6; }
7989 else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7998 if test -z "$lt_cv_path_MAGIC_CMD"; then
7999 if test -n "$ac_tool_prefix"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8001 $as_echo_n "checking for file... " >&6; }
8002 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8003 $as_echo_n "(cached) " >&6
8004 else
8005 case $MAGIC_CMD in
8006 [\\/*] | ?:[\\/]*)
8007 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8010 lt_save_MAGIC_CMD="$MAGIC_CMD"
8011 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8012 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8013 for ac_dir in $ac_dummy; do
8014 IFS="$lt_save_ifs"
8015 test -z "$ac_dir" && ac_dir=.
8016 if test -f $ac_dir/file; then
8017 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8018 if test -n "$file_magic_test_file"; then
8019 case $deplibs_check_method in
8020 "file_magic "*)
8021 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8022 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8023 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8024 $EGREP "$file_magic_regex" > /dev/null; then
8026 else
8027 cat <<_LT_EOF 1>&2
8029 *** Warning: the command libtool uses to detect shared libraries,
8030 *** $file_magic_cmd, produces output that libtool cannot recognize.
8031 *** The result is that libtool may fail to recognize shared libraries
8032 *** as such. This will affect the creation of libtool libraries that
8033 *** depend on shared libraries, but programs linked with such libtool
8034 *** libraries will work regardless of this problem. Nevertheless, you
8035 *** may want to report the problem to your system manager and/or to
8036 *** bug-libtool@gnu.org
8038 _LT_EOF
8039 fi ;;
8040 esac
8042 break
8044 done
8045 IFS="$lt_save_ifs"
8046 MAGIC_CMD="$lt_save_MAGIC_CMD"
8048 esac
8051 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8052 if test -n "$MAGIC_CMD"; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8054 $as_echo "$MAGIC_CMD" >&6; }
8055 else
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057 $as_echo "no" >&6; }
8061 else
8062 MAGIC_CMD=:
8068 esac
8070 # Use C for the default configuration in the libtool script
8072 lt_save_CC="$CC"
8073 ac_ext=c
8074 ac_cpp='$CPP $CPPFLAGS'
8075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8080 # Source file extension for C test sources.
8081 ac_ext=c
8083 # Object file extension for compiled C test sources.
8084 objext=o
8085 objext=$objext
8087 # Code to be used in simple compile tests
8088 lt_simple_compile_test_code="int some_variable = 0;"
8090 # Code to be used in simple link tests
8091 lt_simple_link_test_code='int main(){return(0);}'
8099 # If no C compiler was specified, use CC.
8100 LTCC=${LTCC-"$CC"}
8102 # If no C compiler flags were specified, use CFLAGS.
8103 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8105 # Allow CC to be a program name with arguments.
8106 compiler=$CC
8108 # Save the default compiler, since it gets overwritten when the other
8109 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8110 compiler_DEFAULT=$CC
8112 # save warnings/boilerplate of simple test code
8113 ac_outfile=conftest.$ac_objext
8114 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8115 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8116 _lt_compiler_boilerplate=`cat conftest.err`
8117 $RM conftest*
8119 ac_outfile=conftest.$ac_objext
8120 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8121 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8122 _lt_linker_boilerplate=`cat conftest.err`
8123 $RM -r conftest*
8126 ## CAVEAT EMPTOR:
8127 ## There is no encapsulation within the following macros, do not change
8128 ## the running order or otherwise move them around unless you know exactly
8129 ## what you are doing...
8130 if test -n "$compiler"; then
8132 lt_prog_compiler_no_builtin_flag=
8134 if test "$GCC" = yes; then
8135 case $cc_basename in
8136 nvcc*)
8137 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8139 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8140 esac
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8143 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8144 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 lt_cv_prog_compiler_rtti_exceptions=no
8148 ac_outfile=conftest.$ac_objext
8149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8150 lt_compiler_flag="-fno-rtti -fno-exceptions"
8151 # Insert the option either (1) after the last *FLAGS variable, or
8152 # (2) before a word containing "conftest.", or (3) at the end.
8153 # Note that $ac_compile itself does not contain backslashes and begins
8154 # with a dollar sign (not a hyphen), so the echo should work correctly.
8155 # The option is referenced via a variable to avoid confusing sed.
8156 lt_compile=`echo "$ac_compile" | $SED \
8157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8159 -e 's:$: $lt_compiler_flag:'`
8160 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8161 (eval "$lt_compile" 2>conftest.err)
8162 ac_status=$?
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 if (exit $ac_status) && test -s "$ac_outfile"; then
8166 # The compiler can only warn and ignore the option if not recognized
8167 # So say no if there are warnings other than the usual output.
8168 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8169 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8170 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8171 lt_cv_prog_compiler_rtti_exceptions=yes
8174 $RM conftest*
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8178 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8180 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8181 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8182 else
8193 lt_prog_compiler_wl=
8194 lt_prog_compiler_pic=
8195 lt_prog_compiler_static=
8198 if test "$GCC" = yes; then
8199 lt_prog_compiler_wl='-Wl,'
8200 lt_prog_compiler_static='-static'
8202 case $host_os in
8203 aix*)
8204 # All AIX code is PIC.
8205 if test "$host_cpu" = ia64; then
8206 # AIX 5 now supports IA64 processor
8207 lt_prog_compiler_static='-Bstatic'
8211 amigaos*)
8212 case $host_cpu in
8213 powerpc)
8214 # see comment about AmigaOS4 .so support
8215 lt_prog_compiler_pic='-fPIC'
8217 m68k)
8218 # FIXME: we need at least 68020 code to build shared libraries, but
8219 # adding the `-m68020' flag to GCC prevents building anything better,
8220 # like `-m68040'.
8221 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8223 esac
8226 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8227 # PIC is the default for these OSes.
8230 mingw* | cygwin* | pw32* | os2* | cegcc*)
8231 # This hack is so that the source file can tell whether it is being
8232 # built for inclusion in a dll (and should export symbols for example).
8233 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8234 # (--disable-auto-import) libraries
8235 lt_prog_compiler_pic='-DDLL_EXPORT'
8238 darwin* | rhapsody*)
8239 # PIC is the default on this platform
8240 # Common symbols not allowed in MH_DYLIB files
8241 lt_prog_compiler_pic='-fno-common'
8244 haiku*)
8245 # PIC is the default for Haiku.
8246 # The "-static" flag exists, but is broken.
8247 lt_prog_compiler_static=
8250 hpux*)
8251 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8252 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8253 # sets the default TLS model and affects inlining.
8254 case $host_cpu in
8255 hppa*64*)
8256 # +Z the default
8259 lt_prog_compiler_pic='-fPIC'
8261 esac
8264 interix[3-9]*)
8265 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8266 # Instead, we relocate shared libraries at runtime.
8269 msdosdjgpp*)
8270 # Just because we use GCC doesn't mean we suddenly get shared libraries
8271 # on systems that don't support them.
8272 lt_prog_compiler_can_build_shared=no
8273 enable_shared=no
8276 *nto* | *qnx*)
8277 # QNX uses GNU C++, but need to define -shared option too, otherwise
8278 # it will coredump.
8279 lt_prog_compiler_pic='-fPIC -shared'
8282 sysv4*MP*)
8283 if test -d /usr/nec; then
8284 lt_prog_compiler_pic=-Kconform_pic
8289 lt_prog_compiler_pic='-fPIC'
8291 esac
8293 case $cc_basename in
8294 nvcc*) # Cuda Compiler Driver 2.2
8295 lt_prog_compiler_wl='-Xlinker '
8296 lt_prog_compiler_pic='-Xcompiler -fPIC'
8298 esac
8299 else
8300 # PORTME Check for flag to pass linker flags through the system compiler.
8301 case $host_os in
8302 aix*)
8303 lt_prog_compiler_wl='-Wl,'
8304 if test "$host_cpu" = ia64; then
8305 # AIX 5 now supports IA64 processor
8306 lt_prog_compiler_static='-Bstatic'
8307 else
8308 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8312 mingw* | cygwin* | pw32* | os2* | cegcc*)
8313 # This hack is so that the source file can tell whether it is being
8314 # built for inclusion in a dll (and should export symbols for example).
8315 lt_prog_compiler_pic='-DDLL_EXPORT'
8318 hpux9* | hpux10* | hpux11*)
8319 lt_prog_compiler_wl='-Wl,'
8320 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8321 # not for PA HP-UX.
8322 case $host_cpu in
8323 hppa*64*|ia64*)
8324 # +Z the default
8327 lt_prog_compiler_pic='+Z'
8329 esac
8330 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8331 lt_prog_compiler_static='${wl}-a ${wl}archive'
8334 irix5* | irix6* | nonstopux*)
8335 lt_prog_compiler_wl='-Wl,'
8336 # PIC (with -KPIC) is the default.
8337 lt_prog_compiler_static='-non_shared'
8340 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8341 case $cc_basename in
8342 # old Intel for x86_64 which still supported -KPIC.
8343 ecc*)
8344 lt_prog_compiler_wl='-Wl,'
8345 lt_prog_compiler_pic='-KPIC'
8346 lt_prog_compiler_static='-static'
8348 # icc used to be incompatible with GCC.
8349 # ICC 10 doesn't accept -KPIC any more.
8350 icc* | ifort*)
8351 lt_prog_compiler_wl='-Wl,'
8352 lt_prog_compiler_pic='-fPIC'
8353 lt_prog_compiler_static='-static'
8355 # Lahey Fortran 8.1.
8356 lf95*)
8357 lt_prog_compiler_wl='-Wl,'
8358 lt_prog_compiler_pic='--shared'
8359 lt_prog_compiler_static='--static'
8361 nagfor*)
8362 # NAG Fortran compiler
8363 lt_prog_compiler_wl='-Wl,-Wl,,'
8364 lt_prog_compiler_pic='-PIC'
8365 lt_prog_compiler_static='-Bstatic'
8367 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8368 # Portland Group compilers (*not* the Pentium gcc compiler,
8369 # which looks to be a dead project)
8370 lt_prog_compiler_wl='-Wl,'
8371 lt_prog_compiler_pic='-fpic'
8372 lt_prog_compiler_static='-Bstatic'
8374 ccc*)
8375 lt_prog_compiler_wl='-Wl,'
8376 # All Alpha code is PIC.
8377 lt_prog_compiler_static='-non_shared'
8379 xl* | bgxl* | bgf* | mpixl*)
8380 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8381 lt_prog_compiler_wl='-Wl,'
8382 lt_prog_compiler_pic='-qpic'
8383 lt_prog_compiler_static='-qstaticlink'
8386 case `$CC -V 2>&1 | sed 5q` in
8387 *Sun\ F* | *Sun*Fortran*)
8388 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8389 lt_prog_compiler_pic='-KPIC'
8390 lt_prog_compiler_static='-Bstatic'
8391 lt_prog_compiler_wl=''
8393 *Sun\ C*)
8394 # Sun C 5.9
8395 lt_prog_compiler_pic='-KPIC'
8396 lt_prog_compiler_static='-Bstatic'
8397 lt_prog_compiler_wl='-Wl,'
8399 esac
8401 esac
8404 newsos6)
8405 lt_prog_compiler_pic='-KPIC'
8406 lt_prog_compiler_static='-Bstatic'
8409 *nto* | *qnx*)
8410 # QNX uses GNU C++, but need to define -shared option too, otherwise
8411 # it will coredump.
8412 lt_prog_compiler_pic='-fPIC -shared'
8415 osf3* | osf4* | osf5*)
8416 lt_prog_compiler_wl='-Wl,'
8417 # All OSF/1 code is PIC.
8418 lt_prog_compiler_static='-non_shared'
8421 rdos*)
8422 lt_prog_compiler_static='-non_shared'
8425 solaris*)
8426 lt_prog_compiler_pic='-KPIC'
8427 lt_prog_compiler_static='-Bstatic'
8428 case $cc_basename in
8429 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8430 lt_prog_compiler_wl='-Qoption ld ';;
8432 lt_prog_compiler_wl='-Wl,';;
8433 esac
8436 sunos4*)
8437 lt_prog_compiler_wl='-Qoption ld '
8438 lt_prog_compiler_pic='-PIC'
8439 lt_prog_compiler_static='-Bstatic'
8442 sysv4 | sysv4.2uw2* | sysv4.3*)
8443 lt_prog_compiler_wl='-Wl,'
8444 lt_prog_compiler_pic='-KPIC'
8445 lt_prog_compiler_static='-Bstatic'
8448 sysv4*MP*)
8449 if test -d /usr/nec ;then
8450 lt_prog_compiler_pic='-Kconform_pic'
8451 lt_prog_compiler_static='-Bstatic'
8455 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8456 lt_prog_compiler_wl='-Wl,'
8457 lt_prog_compiler_pic='-KPIC'
8458 lt_prog_compiler_static='-Bstatic'
8461 unicos*)
8462 lt_prog_compiler_wl='-Wl,'
8463 lt_prog_compiler_can_build_shared=no
8466 uts4*)
8467 lt_prog_compiler_pic='-pic'
8468 lt_prog_compiler_static='-Bstatic'
8472 lt_prog_compiler_can_build_shared=no
8474 esac
8477 case $host_os in
8478 # For platforms which do not support PIC, -DPIC is meaningless:
8479 *djgpp*)
8480 lt_prog_compiler_pic=
8483 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8485 esac
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8488 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8489 if ${lt_cv_prog_compiler_pic+:} false; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8495 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8496 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8499 # Check to make sure the PIC flag actually works.
8501 if test -n "$lt_prog_compiler_pic"; then
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8503 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8504 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8507 lt_cv_prog_compiler_pic_works=no
8508 ac_outfile=conftest.$ac_objext
8509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8510 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8511 # Insert the option either (1) after the last *FLAGS variable, or
8512 # (2) before a word containing "conftest.", or (3) at the end.
8513 # Note that $ac_compile itself does not contain backslashes and begins
8514 # with a dollar sign (not a hyphen), so the echo should work correctly.
8515 # The option is referenced via a variable to avoid confusing sed.
8516 lt_compile=`echo "$ac_compile" | $SED \
8517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8519 -e 's:$: $lt_compiler_flag:'`
8520 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8521 (eval "$lt_compile" 2>conftest.err)
8522 ac_status=$?
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 if (exit $ac_status) && test -s "$ac_outfile"; then
8526 # The compiler can only warn and ignore the option if not recognized
8527 # So say no if there are warnings other than the usual output.
8528 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8529 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8530 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8531 lt_cv_prog_compiler_pic_works=yes
8534 $RM conftest*
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8538 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8540 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8541 case $lt_prog_compiler_pic in
8542 "" | " "*) ;;
8543 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8544 esac
8545 else
8546 lt_prog_compiler_pic=
8547 lt_prog_compiler_can_build_shared=no
8563 # Check to make sure the static flag actually works.
8565 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8567 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8568 if ${lt_cv_prog_compiler_static_works+:} false; then :
8569 $as_echo_n "(cached) " >&6
8570 else
8571 lt_cv_prog_compiler_static_works=no
8572 save_LDFLAGS="$LDFLAGS"
8573 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8574 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8575 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8576 # The linker can only warn and ignore the option if not recognized
8577 # So say no if there are warnings
8578 if test -s conftest.err; then
8579 # Append any errors to the config.log.
8580 cat conftest.err 1>&5
8581 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8583 if diff conftest.exp conftest.er2 >/dev/null; then
8584 lt_cv_prog_compiler_static_works=yes
8586 else
8587 lt_cv_prog_compiler_static_works=yes
8590 $RM -r conftest*
8591 LDFLAGS="$save_LDFLAGS"
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8595 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8597 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8599 else
8600 lt_prog_compiler_static=
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8610 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8611 if ${lt_cv_prog_compiler_c_o+:} false; then :
8612 $as_echo_n "(cached) " >&6
8613 else
8614 lt_cv_prog_compiler_c_o=no
8615 $RM -r conftest 2>/dev/null
8616 mkdir conftest
8617 cd conftest
8618 mkdir out
8619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8621 lt_compiler_flag="-o out/conftest2.$ac_objext"
8622 # Insert the option either (1) after the last *FLAGS variable, or
8623 # (2) before a word containing "conftest.", or (3) at the end.
8624 # Note that $ac_compile itself does not contain backslashes and begins
8625 # with a dollar sign (not a hyphen), so the echo should work correctly.
8626 lt_compile=`echo "$ac_compile" | $SED \
8627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8629 -e 's:$: $lt_compiler_flag:'`
8630 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8631 (eval "$lt_compile" 2>out/conftest.err)
8632 ac_status=$?
8633 cat out/conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8636 then
8637 # The compiler can only warn and ignore the option if not recognized
8638 # So say no if there are warnings
8639 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8640 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8641 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8642 lt_cv_prog_compiler_c_o=yes
8645 chmod u+w . 2>&5
8646 $RM conftest*
8647 # SGI C++ compiler will create directory out/ii_files/ for
8648 # template instantiation
8649 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8650 $RM out/* && rmdir out
8651 cd ..
8652 $RM -r conftest
8653 $RM conftest*
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8657 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8665 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8666 if ${lt_cv_prog_compiler_c_o+:} false; then :
8667 $as_echo_n "(cached) " >&6
8668 else
8669 lt_cv_prog_compiler_c_o=no
8670 $RM -r conftest 2>/dev/null
8671 mkdir conftest
8672 cd conftest
8673 mkdir out
8674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8676 lt_compiler_flag="-o out/conftest2.$ac_objext"
8677 # Insert the option either (1) after the last *FLAGS variable, or
8678 # (2) before a word containing "conftest.", or (3) at the end.
8679 # Note that $ac_compile itself does not contain backslashes and begins
8680 # with a dollar sign (not a hyphen), so the echo should work correctly.
8681 lt_compile=`echo "$ac_compile" | $SED \
8682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8684 -e 's:$: $lt_compiler_flag:'`
8685 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8686 (eval "$lt_compile" 2>out/conftest.err)
8687 ac_status=$?
8688 cat out/conftest.err >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8691 then
8692 # The compiler can only warn and ignore the option if not recognized
8693 # So say no if there are warnings
8694 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8695 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8696 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8697 lt_cv_prog_compiler_c_o=yes
8700 chmod u+w . 2>&5
8701 $RM conftest*
8702 # SGI C++ compiler will create directory out/ii_files/ for
8703 # template instantiation
8704 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8705 $RM out/* && rmdir out
8706 cd ..
8707 $RM -r conftest
8708 $RM conftest*
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8712 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8717 hard_links="nottested"
8718 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8719 # do not overwrite the value of need_locks provided by the user
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8721 $as_echo_n "checking if we can lock with hard links... " >&6; }
8722 hard_links=yes
8723 $RM conftest*
8724 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8725 touch conftest.a
8726 ln conftest.a conftest.b 2>&5 || hard_links=no
8727 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8729 $as_echo "$hard_links" >&6; }
8730 if test "$hard_links" = no; then
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8732 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8733 need_locks=warn
8735 else
8736 need_locks=no
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8745 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8747 runpath_var=
8748 allow_undefined_flag=
8749 always_export_symbols=no
8750 archive_cmds=
8751 archive_expsym_cmds=
8752 compiler_needs_object=no
8753 enable_shared_with_static_runtimes=no
8754 export_dynamic_flag_spec=
8755 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8756 hardcode_automatic=no
8757 hardcode_direct=no
8758 hardcode_direct_absolute=no
8759 hardcode_libdir_flag_spec=
8760 hardcode_libdir_flag_spec_ld=
8761 hardcode_libdir_separator=
8762 hardcode_minus_L=no
8763 hardcode_shlibpath_var=unsupported
8764 inherit_rpath=no
8765 link_all_deplibs=unknown
8766 module_cmds=
8767 module_expsym_cmds=
8768 old_archive_from_new_cmds=
8769 old_archive_from_expsyms_cmds=
8770 thread_safe_flag_spec=
8771 whole_archive_flag_spec=
8772 # include_expsyms should be a list of space-separated symbols to be *always*
8773 # included in the symbol list
8774 include_expsyms=
8775 # exclude_expsyms can be an extended regexp of symbols to exclude
8776 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8777 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8778 # as well as any symbol that contains `d'.
8779 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8780 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8781 # platforms (ab)use it in PIC code, but their linkers get confused if
8782 # the symbol is explicitly referenced. Since portable code cannot
8783 # rely on this symbol name, it's probably fine to never include it in
8784 # preloaded symbol tables.
8785 # Exclude shared library initialization/finalization symbols.
8786 extract_expsyms_cmds=
8788 case $host_os in
8789 cygwin* | mingw* | pw32* | cegcc*)
8790 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8791 # When not using gcc, we currently assume that we are using
8792 # Microsoft Visual C++.
8793 if test "$GCC" != yes; then
8794 with_gnu_ld=no
8797 interix*)
8798 # we just hope/assume this is gcc and not c89 (= MSVC++)
8799 with_gnu_ld=yes
8801 openbsd*)
8802 with_gnu_ld=no
8804 esac
8806 ld_shlibs=yes
8808 # On some targets, GNU ld is compatible enough with the native linker
8809 # that we're better off using the native interface for both.
8810 lt_use_gnu_ld_interface=no
8811 if test "$with_gnu_ld" = yes; then
8812 case $host_os in
8813 aix*)
8814 # The AIX port of GNU ld has always aspired to compatibility
8815 # with the native linker. However, as the warning in the GNU ld
8816 # block says, versions before 2.19.5* couldn't really create working
8817 # shared libraries, regardless of the interface used.
8818 case `$LD -v 2>&1` in
8819 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8820 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8821 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8823 lt_use_gnu_ld_interface=yes
8825 esac
8828 lt_use_gnu_ld_interface=yes
8830 esac
8833 if test "$lt_use_gnu_ld_interface" = yes; then
8834 # If archive_cmds runs LD, not CC, wlarc should be empty
8835 wlarc='${wl}'
8837 # Set some defaults for GNU ld with shared library support. These
8838 # are reset later if shared libraries are not supported. Putting them
8839 # here allows them to be overridden if necessary.
8840 runpath_var=LD_RUN_PATH
8841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8842 export_dynamic_flag_spec='${wl}--export-dynamic'
8843 # ancient GNU ld didn't support --whole-archive et. al.
8844 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8845 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8846 else
8847 whole_archive_flag_spec=
8849 supports_anon_versioning=no
8850 case `$LD -v 2>&1` in
8851 *GNU\ gold*) supports_anon_versioning=yes ;;
8852 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8853 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8854 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8855 *\ 2.11.*) ;; # other 2.11 versions
8856 *) supports_anon_versioning=yes ;;
8857 esac
8859 # See if GNU ld supports shared libraries.
8860 case $host_os in
8861 aix[3-9]*)
8862 # On AIX/PPC, the GNU linker is very broken
8863 if test "$host_cpu" != ia64; then
8864 ld_shlibs=no
8865 cat <<_LT_EOF 1>&2
8867 *** Warning: the GNU linker, at least up to release 2.19, is reported
8868 *** to be unable to reliably create shared libraries on AIX.
8869 *** Therefore, libtool is disabling shared libraries support. If you
8870 *** really care for shared libraries, you may want to install binutils
8871 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8872 *** You will then need to restart the configuration process.
8874 _LT_EOF
8878 amigaos*)
8879 case $host_cpu in
8880 powerpc)
8881 # see comment about AmigaOS4 .so support
8882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8883 archive_expsym_cmds=''
8885 m68k)
8886 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)'
8887 hardcode_libdir_flag_spec='-L$libdir'
8888 hardcode_minus_L=yes
8890 esac
8893 beos*)
8894 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8895 allow_undefined_flag=unsupported
8896 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8897 # support --undefined. This deserves some investigation. FIXME
8898 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8899 else
8900 ld_shlibs=no
8904 cygwin* | mingw* | pw32* | cegcc*)
8905 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8906 # as there is no search path for DLLs.
8907 hardcode_libdir_flag_spec='-L$libdir'
8908 export_dynamic_flag_spec='${wl}--export-all-symbols'
8909 allow_undefined_flag=unsupported
8910 always_export_symbols=no
8911 enable_shared_with_static_runtimes=yes
8912 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'
8913 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8915 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8917 # If the export-symbols file already is a .def file (1st line
8918 # is EXPORTS), use it as is; otherwise, prepend...
8919 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8920 cp $export_symbols $output_objdir/$soname.def;
8921 else
8922 echo EXPORTS > $output_objdir/$soname.def;
8923 cat $export_symbols >> $output_objdir/$soname.def;
8925 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8926 else
8927 ld_shlibs=no
8931 haiku*)
8932 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8933 link_all_deplibs=yes
8936 interix[3-9]*)
8937 hardcode_direct=no
8938 hardcode_shlibpath_var=no
8939 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8940 export_dynamic_flag_spec='${wl}-E'
8941 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8942 # Instead, shared libraries are loaded at an image base (0x10000000 by
8943 # default) and relocated if they conflict, which is a slow very memory
8944 # consuming and fragmenting process. To avoid this, we pick a random,
8945 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8946 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8947 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8948 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'
8951 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8952 tmp_diet=no
8953 if test "$host_os" = linux-dietlibc; then
8954 case $cc_basename in
8955 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8956 esac
8958 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8959 && test "$tmp_diet" = no
8960 then
8961 tmp_addflag=' $pic_flag'
8962 tmp_sharedflag='-shared'
8963 case $cc_basename,$host_cpu in
8964 pgcc*) # Portland Group C compiler
8965 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'
8966 tmp_addflag=' $pic_flag'
8968 pgf77* | pgf90* | pgf95* | pgfortran*)
8969 # Portland Group f77 and f90 compilers
8970 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'
8971 tmp_addflag=' $pic_flag -Mnomain' ;;
8972 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8973 tmp_addflag=' -i_dynamic' ;;
8974 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8975 tmp_addflag=' -i_dynamic -nofor_main' ;;
8976 ifc* | ifort*) # Intel Fortran compiler
8977 tmp_addflag=' -nofor_main' ;;
8978 lf95*) # Lahey Fortran 8.1
8979 whole_archive_flag_spec=
8980 tmp_sharedflag='--shared' ;;
8981 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8982 tmp_sharedflag='-qmkshrobj'
8983 tmp_addflag= ;;
8984 nvcc*) # Cuda Compiler Driver 2.2
8985 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'
8986 compiler_needs_object=yes
8988 esac
8989 case `$CC -V 2>&1 | sed 5q` in
8990 *Sun\ C*) # Sun C 5.9
8991 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'
8992 compiler_needs_object=yes
8993 tmp_sharedflag='-G' ;;
8994 *Sun\ F*) # Sun Fortran 8.3
8995 tmp_sharedflag='-G' ;;
8996 esac
8997 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8999 if test "x$supports_anon_versioning" = xyes; then
9000 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9001 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9002 echo "local: *; };" >> $output_objdir/$libname.ver~
9003 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9006 case $cc_basename in
9007 xlf* | bgf* | bgxlf* | mpixlf*)
9008 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9009 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9010 hardcode_libdir_flag_spec=
9011 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9012 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9013 if test "x$supports_anon_versioning" = xyes; then
9014 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9015 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9016 echo "local: *; };" >> $output_objdir/$libname.ver~
9017 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9020 esac
9021 else
9022 ld_shlibs=no
9026 netbsd*)
9027 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9028 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9029 wlarc=
9030 else
9031 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9032 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9036 solaris*)
9037 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9038 ld_shlibs=no
9039 cat <<_LT_EOF 1>&2
9041 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9042 *** create shared libraries on Solaris systems. Therefore, libtool
9043 *** is disabling shared libraries support. We urge you to upgrade GNU
9044 *** binutils to release 2.9.1 or newer. Another option is to modify
9045 *** your PATH or compiler configuration so that the native linker is
9046 *** used, and then restart.
9048 _LT_EOF
9049 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9050 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9051 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9052 else
9053 ld_shlibs=no
9057 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9058 case `$LD -v 2>&1` in
9059 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9060 ld_shlibs=no
9061 cat <<_LT_EOF 1>&2
9063 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9064 *** reliably create shared libraries on SCO systems. Therefore, libtool
9065 *** is disabling shared libraries support. We urge you to upgrade GNU
9066 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9067 *** your PATH or compiler configuration so that the native linker is
9068 *** used, and then restart.
9070 _LT_EOF
9073 # For security reasons, it is highly recommended that you always
9074 # use absolute paths for naming shared libraries, and exclude the
9075 # DT_RUNPATH tag from executables and libraries. But doing so
9076 # requires that you compile everything twice, which is a pain.
9077 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9078 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9080 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9081 else
9082 ld_shlibs=no
9085 esac
9088 sunos4*)
9089 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9090 wlarc=
9091 hardcode_direct=yes
9092 hardcode_shlibpath_var=no
9096 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9097 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9099 else
9100 ld_shlibs=no
9103 esac
9105 if test "$ld_shlibs" = no; then
9106 runpath_var=
9107 hardcode_libdir_flag_spec=
9108 export_dynamic_flag_spec=
9109 whole_archive_flag_spec=
9111 else
9112 # PORTME fill in a description of your system's linker (not GNU ld)
9113 case $host_os in
9114 aix3*)
9115 allow_undefined_flag=unsupported
9116 always_export_symbols=yes
9117 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'
9118 # Note: this linker hardcodes the directories in LIBPATH if there
9119 # are no directories specified by -L.
9120 hardcode_minus_L=yes
9121 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9122 # Neither direct hardcoding nor static linking is supported with a
9123 # broken collect2.
9124 hardcode_direct=unsupported
9128 aix[4-9]*)
9129 if test "$host_cpu" = ia64; then
9130 # On IA64, the linker does run time linking by default, so we don't
9131 # have to do anything special.
9132 aix_use_runtimelinking=no
9133 exp_sym_flag='-Bexport'
9134 no_entry_flag=""
9135 else
9136 # If we're using GNU nm, then we don't want the "-C" option.
9137 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9138 # Also, AIX nm treats weak defined symbols like other global
9139 # defined symbols, whereas GNU nm marks them as "W".
9140 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9141 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'
9142 else
9143 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'
9145 aix_use_runtimelinking=no
9147 # Test if we are trying to use run time linking or normal
9148 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9149 # need to do runtime linking.
9150 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9151 for ld_flag in $LDFLAGS; do
9152 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9153 aix_use_runtimelinking=yes
9154 break
9156 done
9158 esac
9160 exp_sym_flag='-bexport'
9161 no_entry_flag='-bnoentry'
9164 # When large executables or shared objects are built, AIX ld can
9165 # have problems creating the table of contents. If linking a library
9166 # or program results in "error TOC overflow" add -mminimal-toc to
9167 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9168 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9170 archive_cmds=''
9171 hardcode_direct=yes
9172 hardcode_direct_absolute=yes
9173 hardcode_libdir_separator=':'
9174 link_all_deplibs=yes
9175 file_list_spec='${wl}-f,'
9177 if test "$GCC" = yes; then
9178 case $host_os in aix4.[012]|aix4.[012].*)
9179 # We only want to do this on AIX 4.2 and lower, the check
9180 # below for broken collect2 doesn't work under 4.3+
9181 collect2name=`${CC} -print-prog-name=collect2`
9182 if test -f "$collect2name" &&
9183 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9184 then
9185 # We have reworked collect2
9187 else
9188 # We have old collect2
9189 hardcode_direct=unsupported
9190 # It fails to find uninstalled libraries when the uninstalled
9191 # path is not listed in the libpath. Setting hardcode_minus_L
9192 # to unsupported forces relinking
9193 hardcode_minus_L=yes
9194 hardcode_libdir_flag_spec='-L$libdir'
9195 hardcode_libdir_separator=
9198 esac
9199 shared_flag='-shared'
9200 if test "$aix_use_runtimelinking" = yes; then
9201 shared_flag="$shared_flag "'${wl}-G'
9203 else
9204 # not using gcc
9205 if test "$host_cpu" = ia64; then
9206 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9207 # chokes on -Wl,-G. The following line is correct:
9208 shared_flag='-G'
9209 else
9210 if test "$aix_use_runtimelinking" = yes; then
9211 shared_flag='${wl}-G'
9212 else
9213 shared_flag='${wl}-bM:SRE'
9218 export_dynamic_flag_spec='${wl}-bexpall'
9219 # It seems that -bexpall does not export symbols beginning with
9220 # underscore (_), so it is better to generate a list of symbols to export.
9221 always_export_symbols=yes
9222 if test "$aix_use_runtimelinking" = yes; then
9223 # Warning - without using the other runtime loading flags (-brtl),
9224 # -berok will link without error, but may produce a broken library.
9225 allow_undefined_flag='-berok'
9226 # Determine the default libpath from the value encoded in an
9227 # empty executable.
9228 if test "${lt_cv_aix_libpath+set}" = set; then
9229 aix_libpath=$lt_cv_aix_libpath
9230 else
9231 if ${lt_cv_aix_libpath_+:} false; then :
9232 $as_echo_n "(cached) " >&6
9233 else
9234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h. */
9238 main ()
9242 return 0;
9244 _ACEOF
9245 if ac_fn_c_try_link "$LINENO"; then :
9247 lt_aix_libpath_sed='
9248 /Import File Strings/,/^$/ {
9249 /^0/ {
9250 s/^0 *\([^ ]*\) *$/\1/
9254 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9255 # Check for a 64-bit object if we didn't find anything.
9256 if test -z "$lt_cv_aix_libpath_"; then
9257 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9260 rm -f core conftest.err conftest.$ac_objext \
9261 conftest$ac_exeext conftest.$ac_ext
9262 if test -z "$lt_cv_aix_libpath_"; then
9263 lt_cv_aix_libpath_="/usr/lib:/lib"
9268 aix_libpath=$lt_cv_aix_libpath_
9271 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9272 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"
9273 else
9274 if test "$host_cpu" = ia64; then
9275 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9276 allow_undefined_flag="-z nodefs"
9277 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"
9278 else
9279 # Determine the default libpath from the value encoded in an
9280 # empty executable.
9281 if test "${lt_cv_aix_libpath+set}" = set; then
9282 aix_libpath=$lt_cv_aix_libpath
9283 else
9284 if ${lt_cv_aix_libpath_+:} false; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9291 main ()
9295 return 0;
9297 _ACEOF
9298 if ac_fn_c_try_link "$LINENO"; then :
9300 lt_aix_libpath_sed='
9301 /Import File Strings/,/^$/ {
9302 /^0/ {
9303 s/^0 *\([^ ]*\) *$/\1/
9307 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9308 # Check for a 64-bit object if we didn't find anything.
9309 if test -z "$lt_cv_aix_libpath_"; then
9310 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9313 rm -f core conftest.err conftest.$ac_objext \
9314 conftest$ac_exeext conftest.$ac_ext
9315 if test -z "$lt_cv_aix_libpath_"; then
9316 lt_cv_aix_libpath_="/usr/lib:/lib"
9321 aix_libpath=$lt_cv_aix_libpath_
9324 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9325 # Warning - without using the other run time loading flags,
9326 # -berok will link without error, but may produce a broken library.
9327 no_undefined_flag=' ${wl}-bernotok'
9328 allow_undefined_flag=' ${wl}-berok'
9329 if test "$with_gnu_ld" = yes; then
9330 # We only use this code for GNU lds that support --whole-archive.
9331 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9332 else
9333 # Exported symbols can be pulled into shared objects from archives
9334 whole_archive_flag_spec='$convenience'
9336 archive_cmds_need_lc=yes
9337 # This is similar to how AIX traditionally builds its shared libraries.
9338 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'
9343 amigaos*)
9344 case $host_cpu in
9345 powerpc)
9346 # see comment about AmigaOS4 .so support
9347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9348 archive_expsym_cmds=''
9350 m68k)
9351 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)'
9352 hardcode_libdir_flag_spec='-L$libdir'
9353 hardcode_minus_L=yes
9355 esac
9358 bsdi[45]*)
9359 export_dynamic_flag_spec=-rdynamic
9362 cygwin* | mingw* | pw32* | cegcc*)
9363 # When not using gcc, we currently assume that we are using
9364 # Microsoft Visual C++.
9365 # hardcode_libdir_flag_spec is actually meaningless, as there is
9366 # no search path for DLLs.
9367 case $cc_basename in
9368 cl*)
9369 # Native MSVC
9370 hardcode_libdir_flag_spec=' '
9371 allow_undefined_flag=unsupported
9372 always_export_symbols=yes
9373 file_list_spec='@'
9374 # Tell ltmain to make .lib files, not .a files.
9375 libext=lib
9376 # Tell ltmain to make .dll files, not .so files.
9377 shrext_cmds=".dll"
9378 # FIXME: Setting linknames here is a bad hack.
9379 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9380 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9381 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9382 else
9383 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9385 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9386 linknames='
9387 # The linker will not automatically build a static lib if we build a DLL.
9388 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9389 enable_shared_with_static_runtimes=yes
9390 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9391 # Don't use ranlib
9392 old_postinstall_cmds='chmod 644 $oldlib'
9393 postlink_cmds='lt_outputfile="@OUTPUT@"~
9394 lt_tool_outputfile="@TOOL_OUTPUT@"~
9395 case $lt_outputfile in
9396 *.exe|*.EXE) ;;
9398 lt_outputfile="$lt_outputfile.exe"
9399 lt_tool_outputfile="$lt_tool_outputfile.exe"
9401 esac~
9402 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9403 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9404 $RM "$lt_outputfile.manifest";
9408 # Assume MSVC wrapper
9409 hardcode_libdir_flag_spec=' '
9410 allow_undefined_flag=unsupported
9411 # Tell ltmain to make .lib files, not .a files.
9412 libext=lib
9413 # Tell ltmain to make .dll files, not .so files.
9414 shrext_cmds=".dll"
9415 # FIXME: Setting linknames here is a bad hack.
9416 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9417 # The linker will automatically build a .lib file if we build a DLL.
9418 old_archive_from_new_cmds='true'
9419 # FIXME: Should let the user specify the lib program.
9420 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9421 enable_shared_with_static_runtimes=yes
9423 esac
9426 darwin* | rhapsody*)
9429 archive_cmds_need_lc=no
9430 hardcode_direct=no
9431 hardcode_automatic=yes
9432 hardcode_shlibpath_var=unsupported
9433 if test "$lt_cv_ld_force_load" = "yes"; then
9434 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\"`'
9435 else
9436 whole_archive_flag_spec=''
9438 link_all_deplibs=yes
9439 allow_undefined_flag="$_lt_dar_allow_undefined"
9440 case $cc_basename in
9441 ifort*) _lt_dar_can_shared=yes ;;
9442 *) _lt_dar_can_shared=$GCC ;;
9443 esac
9444 if test "$_lt_dar_can_shared" = "yes"; then
9445 output_verbose_link_cmd=func_echo_all
9446 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9447 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9448 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}"
9449 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}"
9451 else
9452 ld_shlibs=no
9457 dgux*)
9458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9459 hardcode_libdir_flag_spec='-L$libdir'
9460 hardcode_shlibpath_var=no
9463 freebsd1*)
9464 ld_shlibs=no
9467 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9468 # support. Future versions do this automatically, but an explicit c++rt0.o
9469 # does not break anything, and helps significantly (at the cost of a little
9470 # extra space).
9471 freebsd2.2*)
9472 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9473 hardcode_libdir_flag_spec='-R$libdir'
9474 hardcode_direct=yes
9475 hardcode_shlibpath_var=no
9478 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9479 freebsd2*)
9480 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9481 hardcode_direct=yes
9482 hardcode_minus_L=yes
9483 hardcode_shlibpath_var=no
9486 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9487 freebsd* | dragonfly*)
9488 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9489 hardcode_libdir_flag_spec='-R$libdir'
9490 hardcode_direct=yes
9491 hardcode_shlibpath_var=no
9494 hpux9*)
9495 if test "$GCC" = yes; then
9496 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'
9497 else
9498 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'
9500 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9501 hardcode_libdir_separator=:
9502 hardcode_direct=yes
9504 # hardcode_minus_L: Not really in the search PATH,
9505 # but as the default location of the library.
9506 hardcode_minus_L=yes
9507 export_dynamic_flag_spec='${wl}-E'
9510 hpux10*)
9511 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9512 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9513 else
9514 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9516 if test "$with_gnu_ld" = no; then
9517 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9518 hardcode_libdir_flag_spec_ld='+b $libdir'
9519 hardcode_libdir_separator=:
9520 hardcode_direct=yes
9521 hardcode_direct_absolute=yes
9522 export_dynamic_flag_spec='${wl}-E'
9523 # hardcode_minus_L: Not really in the search PATH,
9524 # but as the default location of the library.
9525 hardcode_minus_L=yes
9529 hpux11*)
9530 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9531 case $host_cpu in
9532 hppa*64*)
9533 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9535 ia64*)
9536 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9539 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9541 esac
9542 else
9543 case $host_cpu in
9544 hppa*64*)
9545 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9547 ia64*)
9548 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9552 # Older versions of the 11.00 compiler do not understand -b yet
9553 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9555 $as_echo_n "checking if $CC understands -b... " >&6; }
9556 if ${lt_cv_prog_compiler__b+:} false; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 lt_cv_prog_compiler__b=no
9560 save_LDFLAGS="$LDFLAGS"
9561 LDFLAGS="$LDFLAGS -b"
9562 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9563 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9564 # The linker can only warn and ignore the option if not recognized
9565 # So say no if there are warnings
9566 if test -s conftest.err; then
9567 # Append any errors to the config.log.
9568 cat conftest.err 1>&5
9569 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9571 if diff conftest.exp conftest.er2 >/dev/null; then
9572 lt_cv_prog_compiler__b=yes
9574 else
9575 lt_cv_prog_compiler__b=yes
9578 $RM -r conftest*
9579 LDFLAGS="$save_LDFLAGS"
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9583 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9585 if test x"$lt_cv_prog_compiler__b" = xyes; then
9586 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9587 else
9588 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9592 esac
9594 if test "$with_gnu_ld" = no; then
9595 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9596 hardcode_libdir_separator=:
9598 case $host_cpu in
9599 hppa*64*|ia64*)
9600 hardcode_direct=no
9601 hardcode_shlibpath_var=no
9604 hardcode_direct=yes
9605 hardcode_direct_absolute=yes
9606 export_dynamic_flag_spec='${wl}-E'
9608 # hardcode_minus_L: Not really in the search PATH,
9609 # but as the default location of the library.
9610 hardcode_minus_L=yes
9612 esac
9616 irix5* | irix6* | nonstopux*)
9617 if test "$GCC" = yes; then
9618 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'
9619 # Try to use the -exported_symbol ld option, if it does not
9620 # work, assume that -exports_file does not work either and
9621 # implicitly export all symbols.
9622 # This should be the same for all languages, so no per-tag cache variable.
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9624 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9625 if ${lt_cv_irix_exported_symbol+:} false; then :
9626 $as_echo_n "(cached) " >&6
9627 else
9628 save_LDFLAGS="$LDFLAGS"
9629 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h. */
9632 int foo (void) { return 0; }
9633 _ACEOF
9634 if ac_fn_c_try_link "$LINENO"; then :
9635 lt_cv_irix_exported_symbol=yes
9636 else
9637 lt_cv_irix_exported_symbol=no
9639 rm -f core conftest.err conftest.$ac_objext \
9640 conftest$ac_exeext conftest.$ac_ext
9641 LDFLAGS="$save_LDFLAGS"
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9644 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9645 if test "$lt_cv_irix_exported_symbol" = yes; then
9646 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'
9648 else
9649 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'
9650 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'
9652 archive_cmds_need_lc='no'
9653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9654 hardcode_libdir_separator=:
9655 inherit_rpath=yes
9656 link_all_deplibs=yes
9659 netbsd*)
9660 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9662 else
9663 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9665 hardcode_libdir_flag_spec='-R$libdir'
9666 hardcode_direct=yes
9667 hardcode_shlibpath_var=no
9670 newsos6)
9671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9672 hardcode_direct=yes
9673 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9674 hardcode_libdir_separator=:
9675 hardcode_shlibpath_var=no
9678 *nto* | *qnx*)
9681 openbsd*)
9682 if test -f /usr/libexec/ld.so; then
9683 hardcode_direct=yes
9684 hardcode_shlibpath_var=no
9685 hardcode_direct_absolute=yes
9686 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9687 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9688 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9689 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9690 export_dynamic_flag_spec='${wl}-E'
9691 else
9692 case $host_os in
9693 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9695 hardcode_libdir_flag_spec='-R$libdir'
9698 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9699 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9701 esac
9703 else
9704 ld_shlibs=no
9708 os2*)
9709 hardcode_libdir_flag_spec='-L$libdir'
9710 hardcode_minus_L=yes
9711 allow_undefined_flag=unsupported
9712 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'
9713 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9716 osf3*)
9717 if test "$GCC" = yes; then
9718 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9719 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'
9720 else
9721 allow_undefined_flag=' -expect_unresolved \*'
9722 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'
9724 archive_cmds_need_lc='no'
9725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9726 hardcode_libdir_separator=:
9729 osf4* | osf5*) # as osf3* with the addition of -msym flag
9730 if test "$GCC" = yes; then
9731 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9732 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'
9733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9734 else
9735 allow_undefined_flag=' -expect_unresolved \*'
9736 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'
9737 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~
9738 $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'
9740 # Both c and cxx compiler support -rpath directly
9741 hardcode_libdir_flag_spec='-rpath $libdir'
9743 archive_cmds_need_lc='no'
9744 hardcode_libdir_separator=:
9747 solaris*)
9748 no_undefined_flag=' -z defs'
9749 if test "$GCC" = yes; then
9750 wlarc='${wl}'
9751 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9752 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9753 $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'
9754 else
9755 case `$CC -V 2>&1` in
9756 *"Compilers 5.0"*)
9757 wlarc=''
9758 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9759 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9760 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9763 wlarc='${wl}'
9764 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9765 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9766 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9768 esac
9770 hardcode_libdir_flag_spec='-R$libdir'
9771 hardcode_shlibpath_var=no
9772 case $host_os in
9773 solaris2.[0-5] | solaris2.[0-5].*) ;;
9775 # The compiler driver will combine and reorder linker options,
9776 # but understands `-z linker_flag'. GCC discards it without `$wl',
9777 # but is careful enough not to reorder.
9778 # Supported since Solaris 2.6 (maybe 2.5.1?)
9779 if test "$GCC" = yes; then
9780 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9781 else
9782 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9785 esac
9786 link_all_deplibs=yes
9789 sunos4*)
9790 if test "x$host_vendor" = xsequent; then
9791 # Use $CC to link under sequent, because it throws in some extra .o
9792 # files that make .init and .fini sections work.
9793 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9794 else
9795 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9797 hardcode_libdir_flag_spec='-L$libdir'
9798 hardcode_direct=yes
9799 hardcode_minus_L=yes
9800 hardcode_shlibpath_var=no
9803 sysv4)
9804 case $host_vendor in
9805 sni)
9806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9807 hardcode_direct=yes # is this really true???
9809 siemens)
9810 ## LD is ld it makes a PLAMLIB
9811 ## CC just makes a GrossModule.
9812 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9813 reload_cmds='$CC -r -o $output$reload_objs'
9814 hardcode_direct=no
9816 motorola)
9817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9818 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9820 esac
9821 runpath_var='LD_RUN_PATH'
9822 hardcode_shlibpath_var=no
9825 sysv4.3*)
9826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9827 hardcode_shlibpath_var=no
9828 export_dynamic_flag_spec='-Bexport'
9831 sysv4*MP*)
9832 if test -d /usr/nec; then
9833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9834 hardcode_shlibpath_var=no
9835 runpath_var=LD_RUN_PATH
9836 hardcode_runpath_var=yes
9837 ld_shlibs=yes
9841 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9842 no_undefined_flag='${wl}-z,text'
9843 archive_cmds_need_lc=no
9844 hardcode_shlibpath_var=no
9845 runpath_var='LD_RUN_PATH'
9847 if test "$GCC" = yes; then
9848 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9849 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9850 else
9851 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9852 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9856 sysv5* | sco3.2v5* | sco5v6*)
9857 # Note: We can NOT use -z defs as we might desire, because we do not
9858 # link with -lc, and that would cause any symbols used from libc to
9859 # always be unresolved, which means just about no library would
9860 # ever link correctly. If we're not using GNU ld we use -z text
9861 # though, which does catch some bad symbols but isn't as heavy-handed
9862 # as -z defs.
9863 no_undefined_flag='${wl}-z,text'
9864 allow_undefined_flag='${wl}-z,nodefs'
9865 archive_cmds_need_lc=no
9866 hardcode_shlibpath_var=no
9867 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9868 hardcode_libdir_separator=':'
9869 link_all_deplibs=yes
9870 export_dynamic_flag_spec='${wl}-Bexport'
9871 runpath_var='LD_RUN_PATH'
9873 if test "$GCC" = yes; then
9874 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9875 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9876 else
9877 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9878 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9882 uts4*)
9883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9884 hardcode_libdir_flag_spec='-L$libdir'
9885 hardcode_shlibpath_var=no
9889 ld_shlibs=no
9891 esac
9893 if test x$host_vendor = xsni; then
9894 case $host in
9895 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9896 export_dynamic_flag_spec='${wl}-Blargedynsym'
9898 esac
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9903 $as_echo "$ld_shlibs" >&6; }
9904 test "$ld_shlibs" = no && can_build_shared=no
9906 with_gnu_ld=$with_gnu_ld
9923 # Do we need to explicitly link libc?
9925 case "x$archive_cmds_need_lc" in
9926 x|xyes)
9927 # Assume -lc should be added
9928 archive_cmds_need_lc=yes
9930 if test "$enable_shared" = yes && test "$GCC" = yes; then
9931 case $archive_cmds in
9932 *'~'*)
9933 # FIXME: we may have to deal with multi-command sequences.
9935 '$CC '*)
9936 # Test whether the compiler implicitly links with -lc since on some
9937 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9938 # to ld, don't add -lc before -lgcc.
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9940 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9941 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9942 $as_echo_n "(cached) " >&6
9943 else
9944 $RM conftest*
9945 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9948 (eval $ac_compile) 2>&5
9949 ac_status=$?
9950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9951 test $ac_status = 0; } 2>conftest.err; then
9952 soname=conftest
9953 lib=conftest
9954 libobjs=conftest.$ac_objext
9955 deplibs=
9956 wl=$lt_prog_compiler_wl
9957 pic_flag=$lt_prog_compiler_pic
9958 compiler_flags=-v
9959 linker_flags=-v
9960 verstring=
9961 output_objdir=.
9962 libname=conftest
9963 lt_save_allow_undefined_flag=$allow_undefined_flag
9964 allow_undefined_flag=
9965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9966 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9967 ac_status=$?
9968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9969 test $ac_status = 0; }
9970 then
9971 lt_cv_archive_cmds_need_lc=no
9972 else
9973 lt_cv_archive_cmds_need_lc=yes
9975 allow_undefined_flag=$lt_save_allow_undefined_flag
9976 else
9977 cat conftest.err 1>&5
9979 $RM conftest*
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9983 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9984 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9986 esac
9989 esac
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10148 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10150 if test "$GCC" = yes; then
10151 case $host_os in
10152 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10153 *) lt_awk_arg="/^libraries:/" ;;
10154 esac
10155 case $host_os in
10156 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10157 *) lt_sed_strip_eq="s,=/,/,g" ;;
10158 esac
10159 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10160 case $lt_search_path_spec in
10161 *\;*)
10162 # if the path contains ";" then we assume it to be the separator
10163 # otherwise default to the standard path separator (i.e. ":") - it is
10164 # assumed that no part of a normal pathname contains ";" but that should
10165 # okay in the real world where ";" in dirpaths is itself problematic.
10166 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10169 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10171 esac
10172 # Ok, now we have the path, separated by spaces, we can step through it
10173 # and add multilib dir if necessary.
10174 lt_tmp_lt_search_path_spec=
10175 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10176 for lt_sys_path in $lt_search_path_spec; do
10177 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10178 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10179 else
10180 test -d "$lt_sys_path" && \
10181 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10183 done
10184 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10185 BEGIN {RS=" "; FS="/|\n";} {
10186 lt_foo="";
10187 lt_count=0;
10188 for (lt_i = NF; lt_i > 0; lt_i--) {
10189 if ($lt_i != "" && $lt_i != ".") {
10190 if ($lt_i == "..") {
10191 lt_count++;
10192 } else {
10193 if (lt_count == 0) {
10194 lt_foo="/" $lt_i lt_foo;
10195 } else {
10196 lt_count--;
10201 if (lt_foo != "") { lt_freq[lt_foo]++; }
10202 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10204 # AWK program above erroneously prepends '/' to C:/dos/paths
10205 # for these hosts.
10206 case $host_os in
10207 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10208 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10209 esac
10210 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10211 else
10212 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10214 library_names_spec=
10215 libname_spec='lib$name'
10216 soname_spec=
10217 shrext_cmds=".so"
10218 postinstall_cmds=
10219 postuninstall_cmds=
10220 finish_cmds=
10221 finish_eval=
10222 shlibpath_var=
10223 shlibpath_overrides_runpath=unknown
10224 version_type=none
10225 dynamic_linker="$host_os ld.so"
10226 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10227 need_lib_prefix=unknown
10228 hardcode_into_libs=no
10230 # when you set need_version to no, make sure it does not cause -set_version
10231 # flags to be left without arguments
10232 need_version=unknown
10234 case $host_os in
10235 aix3*)
10236 version_type=linux
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10238 shlibpath_var=LIBPATH
10240 # AIX 3 has no versioning support, so we append a major version to the name.
10241 soname_spec='${libname}${release}${shared_ext}$major'
10244 aix[4-9]*)
10245 version_type=linux
10246 need_lib_prefix=no
10247 need_version=no
10248 hardcode_into_libs=yes
10249 if test "$host_cpu" = ia64; then
10250 # AIX 5 supports IA64
10251 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 else
10254 # With GCC up to 2.95.x, collect2 would create an import file
10255 # for dependence libraries. The import file would start with
10256 # the line `#! .'. This would cause the generated library to
10257 # depend on `.', always an invalid library. This was fixed in
10258 # development snapshots of GCC prior to 3.0.
10259 case $host_os in
10260 aix4 | aix4.[01] | aix4.[01].*)
10261 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10262 echo ' yes '
10263 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10265 else
10266 can_build_shared=no
10269 esac
10270 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10271 # soname into executable. Probably we can add versioning support to
10272 # collect2, so additional links can be useful in future.
10273 if test "$aix_use_runtimelinking" = yes; then
10274 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10275 # instead of lib<name>.a to let people know that these are not
10276 # typical AIX shared libraries.
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10278 else
10279 # We preserve .a as extension for shared libraries through AIX4.2
10280 # and later when we are not doing run time linking.
10281 library_names_spec='${libname}${release}.a $libname.a'
10282 soname_spec='${libname}${release}${shared_ext}$major'
10284 shlibpath_var=LIBPATH
10288 amigaos*)
10289 case $host_cpu in
10290 powerpc)
10291 # Since July 2007 AmigaOS4 officially supports .so libraries.
10292 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295 m68k)
10296 library_names_spec='$libname.ixlibrary $libname.a'
10297 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10298 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'
10300 esac
10303 beos*)
10304 library_names_spec='${libname}${shared_ext}'
10305 dynamic_linker="$host_os ld.so"
10306 shlibpath_var=LIBRARY_PATH
10309 bsdi[45]*)
10310 version_type=linux
10311 need_version=no
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10313 soname_spec='${libname}${release}${shared_ext}$major'
10314 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10317 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10318 # the default ld.so.conf also contains /usr/contrib/lib and
10319 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10320 # libtool to hard-code these into programs
10323 cygwin* | mingw* | pw32* | cegcc*)
10324 version_type=windows
10325 shrext_cmds=".dll"
10326 need_version=no
10327 need_lib_prefix=no
10329 case $GCC,$cc_basename in
10330 yes,*)
10331 # gcc
10332 library_names_spec='$libname.dll.a'
10333 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10334 postinstall_cmds='base_file=`basename \${file}`~
10335 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10336 dldir=$destdir/`dirname \$dlpath`~
10337 test -d \$dldir || mkdir -p \$dldir~
10338 $install_prog $dir/$dlname \$dldir/$dlname~
10339 chmod a+x \$dldir/$dlname~
10340 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10341 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10343 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10344 dlpath=$dir/\$dldll~
10345 $RM \$dlpath'
10346 shlibpath_overrides_runpath=yes
10348 case $host_os in
10349 cygwin*)
10350 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10351 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10353 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10355 mingw* | cegcc*)
10356 # MinGW DLLs use traditional 'lib' prefix
10357 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10359 pw32*)
10360 # pw32 DLLs use 'pw' prefix rather than 'lib'
10361 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10363 esac
10364 dynamic_linker='Win32 ld.exe'
10367 *,cl*)
10368 # Native MSVC
10369 libname_spec='$name'
10370 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10371 library_names_spec='${libname}.dll.lib'
10373 case $build_os in
10374 mingw*)
10375 sys_lib_search_path_spec=
10376 lt_save_ifs=$IFS
10377 IFS=';'
10378 for lt_path in $LIB
10380 IFS=$lt_save_ifs
10381 # Let DOS variable expansion print the short 8.3 style file name.
10382 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10383 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10384 done
10385 IFS=$lt_save_ifs
10386 # Convert to MSYS style.
10387 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10389 cygwin*)
10390 # Convert to unix form, then to dos form, then back to unix form
10391 # but this time dos style (no spaces!) so that the unix form looks
10392 # like /cygdrive/c/PROGRA~1:/cygdr...
10393 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10394 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10395 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10398 sys_lib_search_path_spec="$LIB"
10399 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10400 # It is most probably a Windows format PATH.
10401 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10402 else
10403 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10405 # FIXME: find the short name or the path components, as spaces are
10406 # common. (e.g. "Program Files" -> "PROGRA~1")
10408 esac
10410 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10411 postinstall_cmds='base_file=`basename \${file}`~
10412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10413 dldir=$destdir/`dirname \$dlpath`~
10414 test -d \$dldir || mkdir -p \$dldir~
10415 $install_prog $dir/$dlname \$dldir/$dlname'
10416 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10417 dlpath=$dir/\$dldll~
10418 $RM \$dlpath'
10419 shlibpath_overrides_runpath=yes
10420 dynamic_linker='Win32 link.exe'
10424 # Assume MSVC wrapper
10425 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10426 dynamic_linker='Win32 ld.exe'
10428 esac
10429 # FIXME: first we should search . and the directory the executable is in
10430 shlibpath_var=PATH
10433 darwin* | rhapsody*)
10434 dynamic_linker="$host_os dyld"
10435 version_type=darwin
10436 need_lib_prefix=no
10437 need_version=no
10438 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10439 soname_spec='${libname}${release}${major}$shared_ext'
10440 shlibpath_overrides_runpath=yes
10441 shlibpath_var=DYLD_LIBRARY_PATH
10442 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10444 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10445 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10448 dgux*)
10449 version_type=linux
10450 need_lib_prefix=no
10451 need_version=no
10452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10453 soname_spec='${libname}${release}${shared_ext}$major'
10454 shlibpath_var=LD_LIBRARY_PATH
10457 freebsd1*)
10458 dynamic_linker=no
10461 freebsd* | dragonfly*)
10462 # DragonFly does not have aout. When/if they implement a new
10463 # versioning mechanism, adjust this.
10464 if test -x /usr/bin/objformat; then
10465 objformat=`/usr/bin/objformat`
10466 else
10467 case $host_os in
10468 freebsd[123]*) objformat=aout ;;
10469 *) objformat=elf ;;
10470 esac
10472 version_type=freebsd-$objformat
10473 case $version_type in
10474 freebsd-elf*)
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10476 need_version=no
10477 need_lib_prefix=no
10479 freebsd-*)
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10481 need_version=yes
10483 esac
10484 shlibpath_var=LD_LIBRARY_PATH
10485 case $host_os in
10486 freebsd2*)
10487 shlibpath_overrides_runpath=yes
10489 freebsd3.[01]* | freebsdelf3.[01]*)
10490 shlibpath_overrides_runpath=yes
10491 hardcode_into_libs=yes
10493 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10494 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10495 shlibpath_overrides_runpath=no
10496 hardcode_into_libs=yes
10498 *) # from 4.6 on, and DragonFly
10499 shlibpath_overrides_runpath=yes
10500 hardcode_into_libs=yes
10502 esac
10505 gnu*)
10506 version_type=linux
10507 need_lib_prefix=no
10508 need_version=no
10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10510 soname_spec='${libname}${release}${shared_ext}$major'
10511 shlibpath_var=LD_LIBRARY_PATH
10512 hardcode_into_libs=yes
10515 haiku*)
10516 version_type=linux
10517 need_lib_prefix=no
10518 need_version=no
10519 dynamic_linker="$host_os runtime_loader"
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10521 soname_spec='${libname}${release}${shared_ext}$major'
10522 shlibpath_var=LIBRARY_PATH
10523 shlibpath_overrides_runpath=yes
10524 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10525 hardcode_into_libs=yes
10528 hpux9* | hpux10* | hpux11*)
10529 # Give a soname corresponding to the major version so that dld.sl refuses to
10530 # link against other versions.
10531 version_type=sunos
10532 need_lib_prefix=no
10533 need_version=no
10534 case $host_cpu in
10535 ia64*)
10536 shrext_cmds='.so'
10537 hardcode_into_libs=yes
10538 dynamic_linker="$host_os dld.so"
10539 shlibpath_var=LD_LIBRARY_PATH
10540 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10542 soname_spec='${libname}${release}${shared_ext}$major'
10543 if test "X$HPUX_IA64_MODE" = X32; then
10544 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10545 else
10546 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10550 hppa*64*)
10551 shrext_cmds='.sl'
10552 hardcode_into_libs=yes
10553 dynamic_linker="$host_os dld.sl"
10554 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10555 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557 soname_spec='${libname}${release}${shared_ext}$major'
10558 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10559 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10562 shrext_cmds='.sl'
10563 dynamic_linker="$host_os dld.sl"
10564 shlibpath_var=SHLIB_PATH
10565 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567 soname_spec='${libname}${release}${shared_ext}$major'
10569 esac
10570 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10571 postinstall_cmds='chmod 555 $lib'
10572 # or fails outright, so override atomically:
10573 install_override_mode=555
10576 interix[3-9]*)
10577 version_type=linux
10578 need_lib_prefix=no
10579 need_version=no
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 shlibpath_overrides_runpath=no
10585 hardcode_into_libs=yes
10588 irix5* | irix6* | nonstopux*)
10589 case $host_os in
10590 nonstopux*) version_type=nonstopux ;;
10592 if test "$lt_cv_prog_gnu_ld" = yes; then
10593 version_type=linux
10594 else
10595 version_type=irix
10596 fi ;;
10597 esac
10598 need_lib_prefix=no
10599 need_version=no
10600 soname_spec='${libname}${release}${shared_ext}$major'
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10602 case $host_os in
10603 irix5* | nonstopux*)
10604 libsuff= shlibsuff=
10607 case $LD in # libtool.m4 will add one of these switches to LD
10608 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10609 libsuff= shlibsuff= libmagic=32-bit;;
10610 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10611 libsuff=32 shlibsuff=N32 libmagic=N32;;
10612 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10613 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10614 *) libsuff= shlibsuff= libmagic=never-match;;
10615 esac
10617 esac
10618 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10619 shlibpath_overrides_runpath=no
10620 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10621 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10622 hardcode_into_libs=yes
10625 # No shared lib support for Linux oldld, aout, or coff.
10626 linux*oldld* | linux*aout* | linux*coff*)
10627 dynamic_linker=no
10630 # This must be Linux ELF.
10631 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10632 version_type=linux
10633 need_lib_prefix=no
10634 need_version=no
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636 soname_spec='${libname}${release}${shared_ext}$major'
10637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10638 shlibpath_var=LD_LIBRARY_PATH
10639 shlibpath_overrides_runpath=no
10641 # Some binutils ld are patched to set DT_RUNPATH
10642 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10643 $as_echo_n "(cached) " >&6
10644 else
10645 lt_cv_shlibpath_overrides_runpath=no
10646 save_LDFLAGS=$LDFLAGS
10647 save_libdir=$libdir
10648 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10649 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10654 main ()
10658 return 0;
10660 _ACEOF
10661 if ac_fn_c_try_link "$LINENO"; then :
10662 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10663 lt_cv_shlibpath_overrides_runpath=yes
10666 rm -f core conftest.err conftest.$ac_objext \
10667 conftest$ac_exeext conftest.$ac_ext
10668 LDFLAGS=$save_LDFLAGS
10669 libdir=$save_libdir
10673 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10675 # This implies no fast_install, which is unacceptable.
10676 # Some rework will be needed to allow for fast_install
10677 # before this can be enabled.
10678 hardcode_into_libs=yes
10680 # Append ld.so.conf contents to the search path
10681 if test -f /etc/ld.so.conf; then
10682 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' ' '`
10683 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10686 # We used to test for /lib/ld.so.1 and disable shared libraries on
10687 # powerpc, because MkLinux only supported shared libraries with the
10688 # GNU dynamic linker. Since this was broken with cross compilers,
10689 # most powerpc-linux boxes support dynamic linking these days and
10690 # people can always --disable-shared, the test was removed, and we
10691 # assume the GNU/Linux dynamic linker is in use.
10692 dynamic_linker='GNU/Linux ld.so'
10695 netbsd*)
10696 version_type=sunos
10697 need_lib_prefix=no
10698 need_version=no
10699 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10702 dynamic_linker='NetBSD (a.out) ld.so'
10703 else
10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10705 soname_spec='${libname}${release}${shared_ext}$major'
10706 dynamic_linker='NetBSD ld.elf_so'
10708 shlibpath_var=LD_LIBRARY_PATH
10709 shlibpath_overrides_runpath=yes
10710 hardcode_into_libs=yes
10713 newsos6)
10714 version_type=linux
10715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716 shlibpath_var=LD_LIBRARY_PATH
10717 shlibpath_overrides_runpath=yes
10720 *nto* | *qnx*)
10721 version_type=qnx
10722 need_lib_prefix=no
10723 need_version=no
10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10725 soname_spec='${libname}${release}${shared_ext}$major'
10726 shlibpath_var=LD_LIBRARY_PATH
10727 shlibpath_overrides_runpath=no
10728 hardcode_into_libs=yes
10729 dynamic_linker='ldqnx.so'
10732 openbsd*)
10733 version_type=sunos
10734 sys_lib_dlsearch_path_spec="/usr/lib"
10735 need_lib_prefix=no
10736 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10737 case $host_os in
10738 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10739 *) need_version=no ;;
10740 esac
10741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10742 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10743 shlibpath_var=LD_LIBRARY_PATH
10744 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10745 case $host_os in
10746 openbsd2.[89] | openbsd2.[89].*)
10747 shlibpath_overrides_runpath=no
10750 shlibpath_overrides_runpath=yes
10752 esac
10753 else
10754 shlibpath_overrides_runpath=yes
10758 os2*)
10759 libname_spec='$name'
10760 shrext_cmds=".dll"
10761 need_lib_prefix=no
10762 library_names_spec='$libname${shared_ext} $libname.a'
10763 dynamic_linker='OS/2 ld.exe'
10764 shlibpath_var=LIBPATH
10767 osf3* | osf4* | osf5*)
10768 version_type=osf
10769 need_lib_prefix=no
10770 need_version=no
10771 soname_spec='${libname}${release}${shared_ext}$major'
10772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773 shlibpath_var=LD_LIBRARY_PATH
10774 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10775 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10778 rdos*)
10779 dynamic_linker=no
10782 solaris*)
10783 version_type=linux
10784 need_lib_prefix=no
10785 need_version=no
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787 soname_spec='${libname}${release}${shared_ext}$major'
10788 shlibpath_var=LD_LIBRARY_PATH
10789 shlibpath_overrides_runpath=yes
10790 hardcode_into_libs=yes
10791 # ldd complains unless libraries are executable
10792 postinstall_cmds='chmod +x $lib'
10795 sunos4*)
10796 version_type=sunos
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10798 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10799 shlibpath_var=LD_LIBRARY_PATH
10800 shlibpath_overrides_runpath=yes
10801 if test "$with_gnu_ld" = yes; then
10802 need_lib_prefix=no
10804 need_version=yes
10807 sysv4 | sysv4.3*)
10808 version_type=linux
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810 soname_spec='${libname}${release}${shared_ext}$major'
10811 shlibpath_var=LD_LIBRARY_PATH
10812 case $host_vendor in
10813 sni)
10814 shlibpath_overrides_runpath=no
10815 need_lib_prefix=no
10816 runpath_var=LD_RUN_PATH
10818 siemens)
10819 need_lib_prefix=no
10821 motorola)
10822 need_lib_prefix=no
10823 need_version=no
10824 shlibpath_overrides_runpath=no
10825 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10827 esac
10830 sysv4*MP*)
10831 if test -d /usr/nec ;then
10832 version_type=linux
10833 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10834 soname_spec='$libname${shared_ext}.$major'
10835 shlibpath_var=LD_LIBRARY_PATH
10839 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10840 version_type=freebsd-elf
10841 need_lib_prefix=no
10842 need_version=no
10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10844 soname_spec='${libname}${release}${shared_ext}$major'
10845 shlibpath_var=LD_LIBRARY_PATH
10846 shlibpath_overrides_runpath=yes
10847 hardcode_into_libs=yes
10848 if test "$with_gnu_ld" = yes; then
10849 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10850 else
10851 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10852 case $host_os in
10853 sco3.2v5*)
10854 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10856 esac
10858 sys_lib_dlsearch_path_spec='/usr/lib'
10861 tpf*)
10862 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10863 version_type=linux
10864 need_lib_prefix=no
10865 need_version=no
10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10867 shlibpath_var=LD_LIBRARY_PATH
10868 shlibpath_overrides_runpath=no
10869 hardcode_into_libs=yes
10872 uts4*)
10873 version_type=linux
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875 soname_spec='${libname}${release}${shared_ext}$major'
10876 shlibpath_var=LD_LIBRARY_PATH
10880 dynamic_linker=no
10882 esac
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10884 $as_echo "$dynamic_linker" >&6; }
10885 test "$dynamic_linker" = no && can_build_shared=no
10887 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10888 if test "$GCC" = yes; then
10889 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10892 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10893 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10895 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10896 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10991 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10992 hardcode_action=
10993 if test -n "$hardcode_libdir_flag_spec" ||
10994 test -n "$runpath_var" ||
10995 test "X$hardcode_automatic" = "Xyes" ; then
10997 # We can hardcode non-existent directories.
10998 if test "$hardcode_direct" != no &&
10999 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11000 # have to relink, otherwise we might link with an installed library
11001 # when we should be linking with a yet-to-be-installed one
11002 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11003 test "$hardcode_minus_L" != no; then
11004 # Linking always hardcodes the temporary library directory.
11005 hardcode_action=relink
11006 else
11007 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11008 hardcode_action=immediate
11010 else
11011 # We cannot hardcode anything, or else we can only hardcode existing
11012 # directories.
11013 hardcode_action=unsupported
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11016 $as_echo "$hardcode_action" >&6; }
11018 if test "$hardcode_action" = relink ||
11019 test "$inherit_rpath" = yes; then
11020 # Fast installation is not supported
11021 enable_fast_install=no
11022 elif test "$shlibpath_overrides_runpath" = yes ||
11023 test "$enable_shared" = no; then
11024 # Fast installation is not necessary
11025 enable_fast_install=needless
11033 if test "x$enable_dlopen" != xyes; then
11034 enable_dlopen=unknown
11035 enable_dlopen_self=unknown
11036 enable_dlopen_self_static=unknown
11037 else
11038 lt_cv_dlopen=no
11039 lt_cv_dlopen_libs=
11041 case $host_os in
11042 beos*)
11043 lt_cv_dlopen="load_add_on"
11044 lt_cv_dlopen_libs=
11045 lt_cv_dlopen_self=yes
11048 mingw* | pw32* | cegcc*)
11049 lt_cv_dlopen="LoadLibrary"
11050 lt_cv_dlopen_libs=
11053 cygwin*)
11054 lt_cv_dlopen="dlopen"
11055 lt_cv_dlopen_libs=
11058 darwin*)
11059 # if libdl is installed we need to link against it
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11061 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11062 if ${ac_cv_lib_dl_dlopen+:} false; then :
11063 $as_echo_n "(cached) " >&6
11064 else
11065 ac_check_lib_save_LIBS=$LIBS
11066 LIBS="-ldl $LIBS"
11067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11068 /* end confdefs.h. */
11070 /* Override any GCC internal prototype to avoid an error.
11071 Use char because int might match the return type of a GCC
11072 builtin and then its argument prototype would still apply. */
11073 #ifdef __cplusplus
11074 extern "C"
11075 #endif
11076 char dlopen ();
11078 main ()
11080 return dlopen ();
11082 return 0;
11084 _ACEOF
11085 if ac_fn_c_try_link "$LINENO"; then :
11086 ac_cv_lib_dl_dlopen=yes
11087 else
11088 ac_cv_lib_dl_dlopen=no
11090 rm -f core conftest.err conftest.$ac_objext \
11091 conftest$ac_exeext conftest.$ac_ext
11092 LIBS=$ac_check_lib_save_LIBS
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11095 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11096 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11097 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11098 else
11100 lt_cv_dlopen="dyld"
11101 lt_cv_dlopen_libs=
11102 lt_cv_dlopen_self=yes
11109 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11110 if test "x$ac_cv_func_shl_load" = xyes; then :
11111 lt_cv_dlopen="shl_load"
11112 else
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11114 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11115 if ${ac_cv_lib_dld_shl_load+:} false; then :
11116 $as_echo_n "(cached) " >&6
11117 else
11118 ac_check_lib_save_LIBS=$LIBS
11119 LIBS="-ldld $LIBS"
11120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h. */
11123 /* Override any GCC internal prototype to avoid an error.
11124 Use char because int might match the return type of a GCC
11125 builtin and then its argument prototype would still apply. */
11126 #ifdef __cplusplus
11127 extern "C"
11128 #endif
11129 char shl_load ();
11131 main ()
11133 return shl_load ();
11135 return 0;
11137 _ACEOF
11138 if ac_fn_c_try_link "$LINENO"; then :
11139 ac_cv_lib_dld_shl_load=yes
11140 else
11141 ac_cv_lib_dld_shl_load=no
11143 rm -f core conftest.err conftest.$ac_objext \
11144 conftest$ac_exeext conftest.$ac_ext
11145 LIBS=$ac_check_lib_save_LIBS
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11148 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11149 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11150 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11151 else
11152 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11153 if test "x$ac_cv_func_dlopen" = xyes; then :
11154 lt_cv_dlopen="dlopen"
11155 else
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11157 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11158 if ${ac_cv_lib_dl_dlopen+:} false; then :
11159 $as_echo_n "(cached) " >&6
11160 else
11161 ac_check_lib_save_LIBS=$LIBS
11162 LIBS="-ldl $LIBS"
11163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11164 /* end confdefs.h. */
11166 /* Override any GCC internal prototype to avoid an error.
11167 Use char because int might match the return type of a GCC
11168 builtin and then its argument prototype would still apply. */
11169 #ifdef __cplusplus
11170 extern "C"
11171 #endif
11172 char dlopen ();
11174 main ()
11176 return dlopen ();
11178 return 0;
11180 _ACEOF
11181 if ac_fn_c_try_link "$LINENO"; then :
11182 ac_cv_lib_dl_dlopen=yes
11183 else
11184 ac_cv_lib_dl_dlopen=no
11186 rm -f core conftest.err conftest.$ac_objext \
11187 conftest$ac_exeext conftest.$ac_ext
11188 LIBS=$ac_check_lib_save_LIBS
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11191 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11192 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11193 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11194 else
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11196 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11197 if ${ac_cv_lib_svld_dlopen+:} false; then :
11198 $as_echo_n "(cached) " >&6
11199 else
11200 ac_check_lib_save_LIBS=$LIBS
11201 LIBS="-lsvld $LIBS"
11202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11203 /* end confdefs.h. */
11205 /* Override any GCC internal prototype to avoid an error.
11206 Use char because int might match the return type of a GCC
11207 builtin and then its argument prototype would still apply. */
11208 #ifdef __cplusplus
11209 extern "C"
11210 #endif
11211 char dlopen ();
11213 main ()
11215 return dlopen ();
11217 return 0;
11219 _ACEOF
11220 if ac_fn_c_try_link "$LINENO"; then :
11221 ac_cv_lib_svld_dlopen=yes
11222 else
11223 ac_cv_lib_svld_dlopen=no
11225 rm -f core conftest.err conftest.$ac_objext \
11226 conftest$ac_exeext conftest.$ac_ext
11227 LIBS=$ac_check_lib_save_LIBS
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11230 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11231 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11232 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11233 else
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11235 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11236 if ${ac_cv_lib_dld_dld_link+:} false; then :
11237 $as_echo_n "(cached) " >&6
11238 else
11239 ac_check_lib_save_LIBS=$LIBS
11240 LIBS="-ldld $LIBS"
11241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11242 /* end confdefs.h. */
11244 /* Override any GCC internal prototype to avoid an error.
11245 Use char because int might match the return type of a GCC
11246 builtin and then its argument prototype would still apply. */
11247 #ifdef __cplusplus
11248 extern "C"
11249 #endif
11250 char dld_link ();
11252 main ()
11254 return dld_link ();
11256 return 0;
11258 _ACEOF
11259 if ac_fn_c_try_link "$LINENO"; then :
11260 ac_cv_lib_dld_dld_link=yes
11261 else
11262 ac_cv_lib_dld_dld_link=no
11264 rm -f core conftest.err conftest.$ac_objext \
11265 conftest$ac_exeext conftest.$ac_ext
11266 LIBS=$ac_check_lib_save_LIBS
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11269 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11270 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11271 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11290 esac
11292 if test "x$lt_cv_dlopen" != xno; then
11293 enable_dlopen=yes
11294 else
11295 enable_dlopen=no
11298 case $lt_cv_dlopen in
11299 dlopen)
11300 save_CPPFLAGS="$CPPFLAGS"
11301 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11303 save_LDFLAGS="$LDFLAGS"
11304 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11306 save_LIBS="$LIBS"
11307 LIBS="$lt_cv_dlopen_libs $LIBS"
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11310 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11311 if ${lt_cv_dlopen_self+:} false; then :
11312 $as_echo_n "(cached) " >&6
11313 else
11314 if test "$cross_compiling" = yes; then :
11315 lt_cv_dlopen_self=cross
11316 else
11317 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11318 lt_status=$lt_dlunknown
11319 cat > conftest.$ac_ext <<_LT_EOF
11320 #line $LINENO "configure"
11321 #include "confdefs.h"
11323 #if HAVE_DLFCN_H
11324 #include <dlfcn.h>
11325 #endif
11327 #include <stdio.h>
11329 #ifdef RTLD_GLOBAL
11330 # define LT_DLGLOBAL RTLD_GLOBAL
11331 #else
11332 # ifdef DL_GLOBAL
11333 # define LT_DLGLOBAL DL_GLOBAL
11334 # else
11335 # define LT_DLGLOBAL 0
11336 # endif
11337 #endif
11339 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11340 find out it does not work in some platform. */
11341 #ifndef LT_DLLAZY_OR_NOW
11342 # ifdef RTLD_LAZY
11343 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11344 # else
11345 # ifdef DL_LAZY
11346 # define LT_DLLAZY_OR_NOW DL_LAZY
11347 # else
11348 # ifdef RTLD_NOW
11349 # define LT_DLLAZY_OR_NOW RTLD_NOW
11350 # else
11351 # ifdef DL_NOW
11352 # define LT_DLLAZY_OR_NOW DL_NOW
11353 # else
11354 # define LT_DLLAZY_OR_NOW 0
11355 # endif
11356 # endif
11357 # endif
11358 # endif
11359 #endif
11361 /* When -fvisbility=hidden is used, assume the code has been annotated
11362 correspondingly for the symbols needed. */
11363 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11364 int fnord () __attribute__((visibility("default")));
11365 #endif
11367 int fnord () { return 42; }
11368 int main ()
11370 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11371 int status = $lt_dlunknown;
11373 if (self)
11375 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11376 else
11378 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11379 else puts (dlerror ());
11381 /* dlclose (self); */
11383 else
11384 puts (dlerror ());
11386 return status;
11388 _LT_EOF
11389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11390 (eval $ac_link) 2>&5
11391 ac_status=$?
11392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11393 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11394 (./conftest; exit; ) >&5 2>/dev/null
11395 lt_status=$?
11396 case x$lt_status in
11397 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11398 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11399 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11400 esac
11401 else :
11402 # compilation failed
11403 lt_cv_dlopen_self=no
11406 rm -fr conftest*
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11411 $as_echo "$lt_cv_dlopen_self" >&6; }
11413 if test "x$lt_cv_dlopen_self" = xyes; then
11414 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11416 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11417 if ${lt_cv_dlopen_self_static+:} false; then :
11418 $as_echo_n "(cached) " >&6
11419 else
11420 if test "$cross_compiling" = yes; then :
11421 lt_cv_dlopen_self_static=cross
11422 else
11423 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11424 lt_status=$lt_dlunknown
11425 cat > conftest.$ac_ext <<_LT_EOF
11426 #line $LINENO "configure"
11427 #include "confdefs.h"
11429 #if HAVE_DLFCN_H
11430 #include <dlfcn.h>
11431 #endif
11433 #include <stdio.h>
11435 #ifdef RTLD_GLOBAL
11436 # define LT_DLGLOBAL RTLD_GLOBAL
11437 #else
11438 # ifdef DL_GLOBAL
11439 # define LT_DLGLOBAL DL_GLOBAL
11440 # else
11441 # define LT_DLGLOBAL 0
11442 # endif
11443 #endif
11445 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11446 find out it does not work in some platform. */
11447 #ifndef LT_DLLAZY_OR_NOW
11448 # ifdef RTLD_LAZY
11449 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11450 # else
11451 # ifdef DL_LAZY
11452 # define LT_DLLAZY_OR_NOW DL_LAZY
11453 # else
11454 # ifdef RTLD_NOW
11455 # define LT_DLLAZY_OR_NOW RTLD_NOW
11456 # else
11457 # ifdef DL_NOW
11458 # define LT_DLLAZY_OR_NOW DL_NOW
11459 # else
11460 # define LT_DLLAZY_OR_NOW 0
11461 # endif
11462 # endif
11463 # endif
11464 # endif
11465 #endif
11467 /* When -fvisbility=hidden is used, assume the code has been annotated
11468 correspondingly for the symbols needed. */
11469 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11470 int fnord () __attribute__((visibility("default")));
11471 #endif
11473 int fnord () { return 42; }
11474 int main ()
11476 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11477 int status = $lt_dlunknown;
11479 if (self)
11481 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11482 else
11484 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11485 else puts (dlerror ());
11487 /* dlclose (self); */
11489 else
11490 puts (dlerror ());
11492 return status;
11494 _LT_EOF
11495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11496 (eval $ac_link) 2>&5
11497 ac_status=$?
11498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11499 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11500 (./conftest; exit; ) >&5 2>/dev/null
11501 lt_status=$?
11502 case x$lt_status in
11503 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11504 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11505 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11506 esac
11507 else :
11508 # compilation failed
11509 lt_cv_dlopen_self_static=no
11512 rm -fr conftest*
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11517 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11520 CPPFLAGS="$save_CPPFLAGS"
11521 LDFLAGS="$save_LDFLAGS"
11522 LIBS="$save_LIBS"
11524 esac
11526 case $lt_cv_dlopen_self in
11527 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11528 *) enable_dlopen_self=unknown ;;
11529 esac
11531 case $lt_cv_dlopen_self_static in
11532 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11533 *) enable_dlopen_self_static=unknown ;;
11534 esac
11553 striplib=
11554 old_striplib=
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11556 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11557 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11558 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11559 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11561 $as_echo "yes" >&6; }
11562 else
11563 # FIXME - insert some real tests, host_os isn't really good enough
11564 case $host_os in
11565 darwin*)
11566 if test -n "$STRIP" ; then
11567 striplib="$STRIP -x"
11568 old_striplib="$STRIP -S"
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11570 $as_echo "yes" >&6; }
11571 else
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573 $as_echo "no" >&6; }
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578 $as_echo "no" >&6; }
11580 esac
11594 # Report which library types will actually be built
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11596 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11598 $as_echo "$can_build_shared" >&6; }
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11601 $as_echo_n "checking whether to build shared libraries... " >&6; }
11602 test "$can_build_shared" = "no" && enable_shared=no
11604 # On AIX, shared libraries and static libraries use the same namespace, and
11605 # are all built from PIC.
11606 case $host_os in
11607 aix3*)
11608 test "$enable_shared" = yes && enable_static=no
11609 if test -n "$RANLIB"; then
11610 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11611 postinstall_cmds='$RANLIB $lib'
11615 aix[4-9]*)
11616 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11617 test "$enable_shared" = yes && enable_static=no
11620 esac
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11622 $as_echo "$enable_shared" >&6; }
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11625 $as_echo_n "checking whether to build static libraries... " >&6; }
11626 # Make sure either enable_shared or enable_static is yes.
11627 test "$enable_shared" = yes || enable_static=yes
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11629 $as_echo "$enable_static" >&6; }
11635 ac_ext=c
11636 ac_cpp='$CPP $CPPFLAGS'
11637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11641 CC="$lt_save_CC"
11655 ac_config_commands="$ac_config_commands libtool"
11660 # Only expand once:
11665 # Host specific.
11666 NO_UNDEFINED=
11667 case "$host" in
11668 *-*-mingw32* | *-*-cygwin*)
11670 $as_echo "#define HOST_W32 1" >>confdefs.h
11672 host_w32=yes
11673 if test x"$enable_shared" != "xno" ; then
11674 NO_UNDEFINED="-no-undefined"
11677 esac
11678 EXTRA_LIBQUVI_LDFLAGS="$NO_UNDEFINED"
11681 # Checks for programs.
11682 for ac_prog in gawk mawk nawk awk
11684 # Extract the first word of "$ac_prog", so it can be a program name with args.
11685 set dummy $ac_prog; ac_word=$2
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11687 $as_echo_n "checking for $ac_word... " >&6; }
11688 if ${ac_cv_prog_AWK+:} false; then :
11689 $as_echo_n "(cached) " >&6
11690 else
11691 if test -n "$AWK"; then
11692 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11693 else
11694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11695 for as_dir in $PATH
11697 IFS=$as_save_IFS
11698 test -z "$as_dir" && as_dir=.
11699 for ac_exec_ext in '' $ac_executable_extensions; do
11700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11701 ac_cv_prog_AWK="$ac_prog"
11702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11703 break 2
11705 done
11706 done
11707 IFS=$as_save_IFS
11711 AWK=$ac_cv_prog_AWK
11712 if test -n "$AWK"; then
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11714 $as_echo "$AWK" >&6; }
11715 else
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 $as_echo "no" >&6; }
11721 test -n "$AWK" && break
11722 done
11724 ac_ext=c
11725 ac_cpp='$CPP $CPPFLAGS'
11726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11729 if test -n "$ac_tool_prefix"; then
11730 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11731 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11733 $as_echo_n "checking for $ac_word... " >&6; }
11734 if ${ac_cv_prog_CC+:} false; then :
11735 $as_echo_n "(cached) " >&6
11736 else
11737 if test -n "$CC"; then
11738 ac_cv_prog_CC="$CC" # Let the user override the test.
11739 else
11740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741 for as_dir in $PATH
11743 IFS=$as_save_IFS
11744 test -z "$as_dir" && as_dir=.
11745 for ac_exec_ext in '' $ac_executable_extensions; do
11746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11747 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11749 break 2
11751 done
11752 done
11753 IFS=$as_save_IFS
11757 CC=$ac_cv_prog_CC
11758 if test -n "$CC"; then
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11760 $as_echo "$CC" >&6; }
11761 else
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763 $as_echo "no" >&6; }
11768 if test -z "$ac_cv_prog_CC"; then
11769 ac_ct_CC=$CC
11770 # Extract the first word of "gcc", so it can be a program name with args.
11771 set dummy gcc; ac_word=$2
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11773 $as_echo_n "checking for $ac_word... " >&6; }
11774 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11775 $as_echo_n "(cached) " >&6
11776 else
11777 if test -n "$ac_ct_CC"; then
11778 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11779 else
11780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11781 for as_dir in $PATH
11783 IFS=$as_save_IFS
11784 test -z "$as_dir" && as_dir=.
11785 for ac_exec_ext in '' $ac_executable_extensions; do
11786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11787 ac_cv_prog_ac_ct_CC="gcc"
11788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11789 break 2
11791 done
11792 done
11793 IFS=$as_save_IFS
11797 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11798 if test -n "$ac_ct_CC"; then
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11800 $as_echo "$ac_ct_CC" >&6; }
11801 else
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803 $as_echo "no" >&6; }
11806 if test "x$ac_ct_CC" = x; then
11807 CC=""
11808 else
11809 case $cross_compiling:$ac_tool_warned in
11810 yes:)
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11813 ac_tool_warned=yes ;;
11814 esac
11815 CC=$ac_ct_CC
11817 else
11818 CC="$ac_cv_prog_CC"
11821 if test -z "$CC"; then
11822 if test -n "$ac_tool_prefix"; then
11823 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11824 set dummy ${ac_tool_prefix}cc; ac_word=$2
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11826 $as_echo_n "checking for $ac_word... " >&6; }
11827 if ${ac_cv_prog_CC+:} false; then :
11828 $as_echo_n "(cached) " >&6
11829 else
11830 if test -n "$CC"; then
11831 ac_cv_prog_CC="$CC" # Let the user override the test.
11832 else
11833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11834 for as_dir in $PATH
11836 IFS=$as_save_IFS
11837 test -z "$as_dir" && as_dir=.
11838 for ac_exec_ext in '' $ac_executable_extensions; do
11839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11840 ac_cv_prog_CC="${ac_tool_prefix}cc"
11841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11842 break 2
11844 done
11845 done
11846 IFS=$as_save_IFS
11850 CC=$ac_cv_prog_CC
11851 if test -n "$CC"; then
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11853 $as_echo "$CC" >&6; }
11854 else
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11856 $as_echo "no" >&6; }
11862 if test -z "$CC"; then
11863 # Extract the first word of "cc", so it can be a program name with args.
11864 set dummy cc; ac_word=$2
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11866 $as_echo_n "checking for $ac_word... " >&6; }
11867 if ${ac_cv_prog_CC+:} false; then :
11868 $as_echo_n "(cached) " >&6
11869 else
11870 if test -n "$CC"; then
11871 ac_cv_prog_CC="$CC" # Let the user override the test.
11872 else
11873 ac_prog_rejected=no
11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875 for as_dir in $PATH
11877 IFS=$as_save_IFS
11878 test -z "$as_dir" && as_dir=.
11879 for ac_exec_ext in '' $ac_executable_extensions; do
11880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11881 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11882 ac_prog_rejected=yes
11883 continue
11885 ac_cv_prog_CC="cc"
11886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11887 break 2
11889 done
11890 done
11891 IFS=$as_save_IFS
11893 if test $ac_prog_rejected = yes; then
11894 # We found a bogon in the path, so make sure we never use it.
11895 set dummy $ac_cv_prog_CC
11896 shift
11897 if test $# != 0; then
11898 # We chose a different compiler from the bogus one.
11899 # However, it has the same basename, so the bogon will be chosen
11900 # first if we set CC to just the basename; use the full file name.
11901 shift
11902 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11907 CC=$ac_cv_prog_CC
11908 if test -n "$CC"; then
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11910 $as_echo "$CC" >&6; }
11911 else
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11918 if test -z "$CC"; then
11919 if test -n "$ac_tool_prefix"; then
11920 for ac_prog in cl.exe
11922 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11923 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11925 $as_echo_n "checking for $ac_word... " >&6; }
11926 if ${ac_cv_prog_CC+:} false; then :
11927 $as_echo_n "(cached) " >&6
11928 else
11929 if test -n "$CC"; then
11930 ac_cv_prog_CC="$CC" # Let the user override the test.
11931 else
11932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933 for as_dir in $PATH
11935 IFS=$as_save_IFS
11936 test -z "$as_dir" && as_dir=.
11937 for ac_exec_ext in '' $ac_executable_extensions; do
11938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11939 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11941 break 2
11943 done
11944 done
11945 IFS=$as_save_IFS
11949 CC=$ac_cv_prog_CC
11950 if test -n "$CC"; then
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11952 $as_echo "$CC" >&6; }
11953 else
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955 $as_echo "no" >&6; }
11959 test -n "$CC" && break
11960 done
11962 if test -z "$CC"; then
11963 ac_ct_CC=$CC
11964 for ac_prog in cl.exe
11966 # Extract the first word of "$ac_prog", so it can be a program name with args.
11967 set dummy $ac_prog; ac_word=$2
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11969 $as_echo_n "checking for $ac_word... " >&6; }
11970 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11971 $as_echo_n "(cached) " >&6
11972 else
11973 if test -n "$ac_ct_CC"; then
11974 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11975 else
11976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977 for as_dir in $PATH
11979 IFS=$as_save_IFS
11980 test -z "$as_dir" && as_dir=.
11981 for ac_exec_ext in '' $ac_executable_extensions; do
11982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11983 ac_cv_prog_ac_ct_CC="$ac_prog"
11984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11985 break 2
11987 done
11988 done
11989 IFS=$as_save_IFS
11993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11994 if test -n "$ac_ct_CC"; then
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11996 $as_echo "$ac_ct_CC" >&6; }
11997 else
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999 $as_echo "no" >&6; }
12003 test -n "$ac_ct_CC" && break
12004 done
12006 if test "x$ac_ct_CC" = x; then
12007 CC=""
12008 else
12009 case $cross_compiling:$ac_tool_warned in
12010 yes:)
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12013 ac_tool_warned=yes ;;
12014 esac
12015 CC=$ac_ct_CC
12022 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12024 as_fn_error $? "no acceptable C compiler found in \$PATH
12025 See \`config.log' for more details" "$LINENO" 5; }
12027 # Provide some information about the compiler.
12028 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12029 set X $ac_compile
12030 ac_compiler=$2
12031 for ac_option in --version -v -V -qversion; do
12032 { { ac_try="$ac_compiler $ac_option >&5"
12033 case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12036 esac
12037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12038 $as_echo "$ac_try_echo"; } >&5
12039 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12040 ac_status=$?
12041 if test -s conftest.err; then
12042 sed '10a\
12043 ... rest of stderr output deleted ...
12044 10q' conftest.err >conftest.er1
12045 cat conftest.er1 >&5
12047 rm -f conftest.er1 conftest.err
12048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12049 test $ac_status = 0; }
12050 done
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12053 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12054 if ${ac_cv_c_compiler_gnu+:} false; then :
12055 $as_echo_n "(cached) " >&6
12056 else
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12061 main ()
12063 #ifndef __GNUC__
12064 choke me
12065 #endif
12068 return 0;
12070 _ACEOF
12071 if ac_fn_c_try_compile "$LINENO"; then :
12072 ac_compiler_gnu=yes
12073 else
12074 ac_compiler_gnu=no
12076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12077 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12081 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12082 if test $ac_compiler_gnu = yes; then
12083 GCC=yes
12084 else
12085 GCC=
12087 ac_test_CFLAGS=${CFLAGS+set}
12088 ac_save_CFLAGS=$CFLAGS
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12090 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12091 if ${ac_cv_prog_cc_g+:} false; then :
12092 $as_echo_n "(cached) " >&6
12093 else
12094 ac_save_c_werror_flag=$ac_c_werror_flag
12095 ac_c_werror_flag=yes
12096 ac_cv_prog_cc_g=no
12097 CFLAGS="-g"
12098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099 /* end confdefs.h. */
12102 main ()
12106 return 0;
12108 _ACEOF
12109 if ac_fn_c_try_compile "$LINENO"; then :
12110 ac_cv_prog_cc_g=yes
12111 else
12112 CFLAGS=""
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12117 main ()
12121 return 0;
12123 _ACEOF
12124 if ac_fn_c_try_compile "$LINENO"; then :
12126 else
12127 ac_c_werror_flag=$ac_save_c_werror_flag
12128 CFLAGS="-g"
12129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h. */
12133 main ()
12137 return 0;
12139 _ACEOF
12140 if ac_fn_c_try_compile "$LINENO"; then :
12141 ac_cv_prog_cc_g=yes
12143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12148 ac_c_werror_flag=$ac_save_c_werror_flag
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12151 $as_echo "$ac_cv_prog_cc_g" >&6; }
12152 if test "$ac_test_CFLAGS" = set; then
12153 CFLAGS=$ac_save_CFLAGS
12154 elif test $ac_cv_prog_cc_g = yes; then
12155 if test "$GCC" = yes; then
12156 CFLAGS="-g -O2"
12157 else
12158 CFLAGS="-g"
12160 else
12161 if test "$GCC" = yes; then
12162 CFLAGS="-O2"
12163 else
12164 CFLAGS=
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12168 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12169 if ${ac_cv_prog_cc_c89+:} false; then :
12170 $as_echo_n "(cached) " >&6
12171 else
12172 ac_cv_prog_cc_c89=no
12173 ac_save_CC=$CC
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12176 #include <stdarg.h>
12177 #include <stdio.h>
12178 #include <sys/types.h>
12179 #include <sys/stat.h>
12180 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12181 struct buf { int x; };
12182 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12183 static char *e (p, i)
12184 char **p;
12185 int i;
12187 return p[i];
12189 static char *f (char * (*g) (char **, int), char **p, ...)
12191 char *s;
12192 va_list v;
12193 va_start (v,p);
12194 s = g (p, va_arg (v,int));
12195 va_end (v);
12196 return s;
12199 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12200 function prototypes and stuff, but not '\xHH' hex character constants.
12201 These don't provoke an error unfortunately, instead are silently treated
12202 as 'x'. The following induces an error, until -std is added to get
12203 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12204 array size at least. It's necessary to write '\x00'==0 to get something
12205 that's true only with -std. */
12206 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12208 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12209 inside strings and character constants. */
12210 #define FOO(x) 'x'
12211 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12213 int test (int i, double x);
12214 struct s1 {int (*f) (int a);};
12215 struct s2 {int (*f) (double a);};
12216 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12217 int argc;
12218 char **argv;
12220 main ()
12222 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12224 return 0;
12226 _ACEOF
12227 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12228 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12230 CC="$ac_save_CC $ac_arg"
12231 if ac_fn_c_try_compile "$LINENO"; then :
12232 ac_cv_prog_cc_c89=$ac_arg
12234 rm -f core conftest.err conftest.$ac_objext
12235 test "x$ac_cv_prog_cc_c89" != "xno" && break
12236 done
12237 rm -f conftest.$ac_ext
12238 CC=$ac_save_CC
12241 # AC_CACHE_VAL
12242 case "x$ac_cv_prog_cc_c89" in
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12245 $as_echo "none needed" >&6; } ;;
12246 xno)
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12248 $as_echo "unsupported" >&6; } ;;
12250 CC="$CC $ac_cv_prog_cc_c89"
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12252 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12253 esac
12254 if test "x$ac_cv_prog_cc_c89" != xno; then :
12258 ac_ext=c
12259 ac_cpp='$CPP $CPPFLAGS'
12260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12264 ac_ext=cpp
12265 ac_cpp='$CXXCPP $CPPFLAGS'
12266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12269 if test -z "$CXX"; then
12270 if test -n "$CCC"; then
12271 CXX=$CCC
12272 else
12273 if test -n "$ac_tool_prefix"; then
12274 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12276 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12277 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12279 $as_echo_n "checking for $ac_word... " >&6; }
12280 if ${ac_cv_prog_CXX+:} false; then :
12281 $as_echo_n "(cached) " >&6
12282 else
12283 if test -n "$CXX"; then
12284 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12285 else
12286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12287 for as_dir in $PATH
12289 IFS=$as_save_IFS
12290 test -z "$as_dir" && as_dir=.
12291 for ac_exec_ext in '' $ac_executable_extensions; do
12292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12293 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12295 break 2
12297 done
12298 done
12299 IFS=$as_save_IFS
12303 CXX=$ac_cv_prog_CXX
12304 if test -n "$CXX"; then
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12306 $as_echo "$CXX" >&6; }
12307 else
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12309 $as_echo "no" >&6; }
12313 test -n "$CXX" && break
12314 done
12316 if test -z "$CXX"; then
12317 ac_ct_CXX=$CXX
12318 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12320 # Extract the first word of "$ac_prog", so it can be a program name with args.
12321 set dummy $ac_prog; ac_word=$2
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12323 $as_echo_n "checking for $ac_word... " >&6; }
12324 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12325 $as_echo_n "(cached) " >&6
12326 else
12327 if test -n "$ac_ct_CXX"; then
12328 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12329 else
12330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12331 for as_dir in $PATH
12333 IFS=$as_save_IFS
12334 test -z "$as_dir" && as_dir=.
12335 for ac_exec_ext in '' $ac_executable_extensions; do
12336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12337 ac_cv_prog_ac_ct_CXX="$ac_prog"
12338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12339 break 2
12341 done
12342 done
12343 IFS=$as_save_IFS
12347 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12348 if test -n "$ac_ct_CXX"; then
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12350 $as_echo "$ac_ct_CXX" >&6; }
12351 else
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353 $as_echo "no" >&6; }
12357 test -n "$ac_ct_CXX" && break
12358 done
12360 if test "x$ac_ct_CXX" = x; then
12361 CXX="g++"
12362 else
12363 case $cross_compiling:$ac_tool_warned in
12364 yes:)
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12367 ac_tool_warned=yes ;;
12368 esac
12369 CXX=$ac_ct_CXX
12375 # Provide some information about the compiler.
12376 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12377 set X $ac_compile
12378 ac_compiler=$2
12379 for ac_option in --version -v -V -qversion; do
12380 { { ac_try="$ac_compiler $ac_option >&5"
12381 case "(($ac_try" in
12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12384 esac
12385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12386 $as_echo "$ac_try_echo"; } >&5
12387 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12388 ac_status=$?
12389 if test -s conftest.err; then
12390 sed '10a\
12391 ... rest of stderr output deleted ...
12392 10q' conftest.err >conftest.er1
12393 cat conftest.er1 >&5
12395 rm -f conftest.er1 conftest.err
12396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12397 test $ac_status = 0; }
12398 done
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12401 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12402 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h. */
12409 main ()
12411 #ifndef __GNUC__
12412 choke me
12413 #endif
12416 return 0;
12418 _ACEOF
12419 if ac_fn_cxx_try_compile "$LINENO"; then :
12420 ac_compiler_gnu=yes
12421 else
12422 ac_compiler_gnu=no
12424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12425 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12429 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12430 if test $ac_compiler_gnu = yes; then
12431 GXX=yes
12432 else
12433 GXX=
12435 ac_test_CXXFLAGS=${CXXFLAGS+set}
12436 ac_save_CXXFLAGS=$CXXFLAGS
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12438 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12439 if ${ac_cv_prog_cxx_g+:} false; then :
12440 $as_echo_n "(cached) " >&6
12441 else
12442 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12443 ac_cxx_werror_flag=yes
12444 ac_cv_prog_cxx_g=no
12445 CXXFLAGS="-g"
12446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447 /* end confdefs.h. */
12450 main ()
12454 return 0;
12456 _ACEOF
12457 if ac_fn_cxx_try_compile "$LINENO"; then :
12458 ac_cv_prog_cxx_g=yes
12459 else
12460 CXXFLAGS=""
12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h. */
12465 main ()
12469 return 0;
12471 _ACEOF
12472 if ac_fn_cxx_try_compile "$LINENO"; then :
12474 else
12475 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12476 CXXFLAGS="-g"
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12481 main ()
12485 return 0;
12487 _ACEOF
12488 if ac_fn_cxx_try_compile "$LINENO"; then :
12489 ac_cv_prog_cxx_g=yes
12491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12496 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12499 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12500 if test "$ac_test_CXXFLAGS" = set; then
12501 CXXFLAGS=$ac_save_CXXFLAGS
12502 elif test $ac_cv_prog_cxx_g = yes; then
12503 if test "$GXX" = yes; then
12504 CXXFLAGS="-g -O2"
12505 else
12506 CXXFLAGS="-g"
12508 else
12509 if test "$GXX" = yes; then
12510 CXXFLAGS="-O2"
12511 else
12512 CXXFLAGS=
12515 ac_ext=c
12516 ac_cpp='$CPP $CPPFLAGS'
12517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12521 depcc="$CXX" am_compiler_list=
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12524 $as_echo_n "checking dependency style of $depcc... " >&6; }
12525 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12526 $as_echo_n "(cached) " >&6
12527 else
12528 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12529 # We make a subdir and do the tests there. Otherwise we can end up
12530 # making bogus files that we don't know about and never remove. For
12531 # instance it was reported that on HP-UX the gcc test will end up
12532 # making a dummy file named `D' -- because `-MD' means `put the output
12533 # in D'.
12534 mkdir conftest.dir
12535 # Copy depcomp to subdir because otherwise we won't find it if we're
12536 # using a relative directory.
12537 cp "$am_depcomp" conftest.dir
12538 cd conftest.dir
12539 # We will build objects and dependencies in a subdirectory because
12540 # it helps to detect inapplicable dependency modes. For instance
12541 # both Tru64's cc and ICC support -MD to output dependencies as a
12542 # side effect of compilation, but ICC will put the dependencies in
12543 # the current directory while Tru64 will put them in the object
12544 # directory.
12545 mkdir sub
12547 am_cv_CXX_dependencies_compiler_type=none
12548 if test "$am_compiler_list" = ""; then
12549 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12551 am__universal=false
12552 case " $depcc " in #(
12553 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12554 esac
12556 for depmode in $am_compiler_list; do
12557 # Setup a source with many dependencies, because some compilers
12558 # like to wrap large dependency lists on column 80 (with \), and
12559 # we should not choose a depcomp mode which is confused by this.
12561 # We need to recreate these files for each test, as the compiler may
12562 # overwrite some of them when testing with obscure command lines.
12563 # This happens at least with the AIX C compiler.
12564 : > sub/conftest.c
12565 for i in 1 2 3 4 5 6; do
12566 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12567 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12568 # Solaris 8's {/usr,}/bin/sh.
12569 touch sub/conftst$i.h
12570 done
12571 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12573 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12574 # mode. It turns out that the SunPro C++ compiler does not properly
12575 # handle `-M -o', and we need to detect this. Also, some Intel
12576 # versions had trouble with output in subdirs
12577 am__obj=sub/conftest.${OBJEXT-o}
12578 am__minus_obj="-o $am__obj"
12579 case $depmode in
12580 gcc)
12581 # This depmode causes a compiler race in universal mode.
12582 test "$am__universal" = false || continue
12584 nosideeffect)
12585 # after this tag, mechanisms are not by side-effect, so they'll
12586 # only be used when explicitly requested
12587 if test "x$enable_dependency_tracking" = xyes; then
12588 continue
12589 else
12590 break
12593 msvisualcpp | msvcmsys)
12594 # This compiler won't grok `-c -o', but also, the minuso test has
12595 # not run yet. These depmodes are late enough in the game, and
12596 # so weak that their functioning should not be impacted.
12597 am__obj=conftest.${OBJEXT-o}
12598 am__minus_obj=
12600 none) break ;;
12601 esac
12602 if depmode=$depmode \
12603 source=sub/conftest.c object=$am__obj \
12604 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12605 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12606 >/dev/null 2>conftest.err &&
12607 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12608 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12609 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12610 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12611 # icc doesn't choke on unknown options, it will just issue warnings
12612 # or remarks (even with -Werror). So we grep stderr for any message
12613 # that says an option was ignored or not supported.
12614 # When given -MP, icc 7.0 and 7.1 complain thusly:
12615 # icc: Command line warning: ignoring option '-M'; no argument required
12616 # The diagnosis changed in icc 8.0:
12617 # icc: Command line remark: option '-MP' not supported
12618 if (grep 'ignoring option' conftest.err ||
12619 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12620 am_cv_CXX_dependencies_compiler_type=$depmode
12621 break
12624 done
12626 cd ..
12627 rm -rf conftest.dir
12628 else
12629 am_cv_CXX_dependencies_compiler_type=none
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12634 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12635 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12638 test "x$enable_dependency_tracking" != xno \
12639 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12640 am__fastdepCXX_TRUE=
12641 am__fastdepCXX_FALSE='#'
12642 else
12643 am__fastdepCXX_TRUE='#'
12644 am__fastdepCXX_FALSE=
12650 func_stripname_cnf ()
12652 case ${2} in
12653 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12654 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12655 esac
12656 } # func_stripname_cnf
12658 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12659 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12660 (test "X$CXX" != "Xg++"))) ; then
12661 ac_ext=cpp
12662 ac_cpp='$CXXCPP $CPPFLAGS'
12663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12667 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12668 if test -z "$CXXCPP"; then
12669 if ${ac_cv_prog_CXXCPP+:} false; then :
12670 $as_echo_n "(cached) " >&6
12671 else
12672 # Double quotes because CXXCPP needs to be expanded
12673 for CXXCPP in "$CXX -E" "/lib/cpp"
12675 ac_preproc_ok=false
12676 for ac_cxx_preproc_warn_flag in '' yes
12678 # Use a header file that comes with gcc, so configuring glibc
12679 # with a fresh cross-compiler works.
12680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12681 # <limits.h> exists even on freestanding compilers.
12682 # On the NeXT, cc -E runs the code through the compiler's parser,
12683 # not just through cpp. "Syntax error" is here to catch this case.
12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12686 #ifdef __STDC__
12687 # include <limits.h>
12688 #else
12689 # include <assert.h>
12690 #endif
12691 Syntax error
12692 _ACEOF
12693 if ac_fn_cxx_try_cpp "$LINENO"; then :
12695 else
12696 # Broken: fails on valid input.
12697 continue
12699 rm -f conftest.err conftest.i conftest.$ac_ext
12701 # OK, works on sane cases. Now check whether nonexistent headers
12702 # can be detected and how.
12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704 /* end confdefs.h. */
12705 #include <ac_nonexistent.h>
12706 _ACEOF
12707 if ac_fn_cxx_try_cpp "$LINENO"; then :
12708 # Broken: success on invalid input.
12709 continue
12710 else
12711 # Passes both tests.
12712 ac_preproc_ok=:
12713 break
12715 rm -f conftest.err conftest.i conftest.$ac_ext
12717 done
12718 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12719 rm -f conftest.i conftest.err conftest.$ac_ext
12720 if $ac_preproc_ok; then :
12721 break
12724 done
12725 ac_cv_prog_CXXCPP=$CXXCPP
12728 CXXCPP=$ac_cv_prog_CXXCPP
12729 else
12730 ac_cv_prog_CXXCPP=$CXXCPP
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12733 $as_echo "$CXXCPP" >&6; }
12734 ac_preproc_ok=false
12735 for ac_cxx_preproc_warn_flag in '' yes
12737 # Use a header file that comes with gcc, so configuring glibc
12738 # with a fresh cross-compiler works.
12739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12740 # <limits.h> exists even on freestanding compilers.
12741 # On the NeXT, cc -E runs the code through the compiler's parser,
12742 # not just through cpp. "Syntax error" is here to catch this case.
12743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h. */
12745 #ifdef __STDC__
12746 # include <limits.h>
12747 #else
12748 # include <assert.h>
12749 #endif
12750 Syntax error
12751 _ACEOF
12752 if ac_fn_cxx_try_cpp "$LINENO"; then :
12754 else
12755 # Broken: fails on valid input.
12756 continue
12758 rm -f conftest.err conftest.i conftest.$ac_ext
12760 # OK, works on sane cases. Now check whether nonexistent headers
12761 # can be detected and how.
12762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12763 /* end confdefs.h. */
12764 #include <ac_nonexistent.h>
12765 _ACEOF
12766 if ac_fn_cxx_try_cpp "$LINENO"; then :
12767 # Broken: success on invalid input.
12768 continue
12769 else
12770 # Passes both tests.
12771 ac_preproc_ok=:
12772 break
12774 rm -f conftest.err conftest.i conftest.$ac_ext
12776 done
12777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12778 rm -f conftest.i conftest.err conftest.$ac_ext
12779 if $ac_preproc_ok; then :
12781 else
12782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12784 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12785 See \`config.log' for more details" "$LINENO" 5; }
12788 ac_ext=c
12789 ac_cpp='$CPP $CPPFLAGS'
12790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12794 else
12795 _lt_caught_CXX_error=yes
12798 ac_ext=cpp
12799 ac_cpp='$CXXCPP $CPPFLAGS'
12800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12804 archive_cmds_need_lc_CXX=no
12805 allow_undefined_flag_CXX=
12806 always_export_symbols_CXX=no
12807 archive_expsym_cmds_CXX=
12808 compiler_needs_object_CXX=no
12809 export_dynamic_flag_spec_CXX=
12810 hardcode_direct_CXX=no
12811 hardcode_direct_absolute_CXX=no
12812 hardcode_libdir_flag_spec_CXX=
12813 hardcode_libdir_flag_spec_ld_CXX=
12814 hardcode_libdir_separator_CXX=
12815 hardcode_minus_L_CXX=no
12816 hardcode_shlibpath_var_CXX=unsupported
12817 hardcode_automatic_CXX=no
12818 inherit_rpath_CXX=no
12819 module_cmds_CXX=
12820 module_expsym_cmds_CXX=
12821 link_all_deplibs_CXX=unknown
12822 old_archive_cmds_CXX=$old_archive_cmds
12823 reload_flag_CXX=$reload_flag
12824 reload_cmds_CXX=$reload_cmds
12825 no_undefined_flag_CXX=
12826 whole_archive_flag_spec_CXX=
12827 enable_shared_with_static_runtimes_CXX=no
12829 # Source file extension for C++ test sources.
12830 ac_ext=cpp
12832 # Object file extension for compiled C++ test sources.
12833 objext=o
12834 objext_CXX=$objext
12836 # No sense in running all these tests if we already determined that
12837 # the CXX compiler isn't working. Some variables (like enable_shared)
12838 # are currently assumed to apply to all compilers on this platform,
12839 # and will be corrupted by setting them based on a non-working compiler.
12840 if test "$_lt_caught_CXX_error" != yes; then
12841 # Code to be used in simple compile tests
12842 lt_simple_compile_test_code="int some_variable = 0;"
12844 # Code to be used in simple link tests
12845 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12847 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12854 # If no C compiler was specified, use CC.
12855 LTCC=${LTCC-"$CC"}
12857 # If no C compiler flags were specified, use CFLAGS.
12858 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12860 # Allow CC to be a program name with arguments.
12861 compiler=$CC
12864 # save warnings/boilerplate of simple test code
12865 ac_outfile=conftest.$ac_objext
12866 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12867 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12868 _lt_compiler_boilerplate=`cat conftest.err`
12869 $RM conftest*
12871 ac_outfile=conftest.$ac_objext
12872 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12873 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12874 _lt_linker_boilerplate=`cat conftest.err`
12875 $RM -r conftest*
12878 # Allow CC to be a program name with arguments.
12879 lt_save_CC=$CC
12880 lt_save_CFLAGS=$CFLAGS
12881 lt_save_LD=$LD
12882 lt_save_GCC=$GCC
12883 GCC=$GXX
12884 lt_save_with_gnu_ld=$with_gnu_ld
12885 lt_save_path_LD=$lt_cv_path_LD
12886 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12887 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12888 else
12889 $as_unset lt_cv_prog_gnu_ld
12891 if test -n "${lt_cv_path_LDCXX+set}"; then
12892 lt_cv_path_LD=$lt_cv_path_LDCXX
12893 else
12894 $as_unset lt_cv_path_LD
12896 test -z "${LDCXX+set}" || LD=$LDCXX
12897 CC=${CXX-"c++"}
12898 CFLAGS=$CXXFLAGS
12899 compiler=$CC
12900 compiler_CXX=$CC
12901 for cc_temp in $compiler""; do
12902 case $cc_temp in
12903 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12904 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12905 \-*) ;;
12906 *) break;;
12907 esac
12908 done
12909 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12912 if test -n "$compiler"; then
12913 # We don't want -fno-exception when compiling C++ code, so set the
12914 # no_builtin_flag separately
12915 if test "$GXX" = yes; then
12916 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12917 else
12918 lt_prog_compiler_no_builtin_flag_CXX=
12921 if test "$GXX" = yes; then
12922 # Set up default GNU C++ configuration
12926 # Check whether --with-gnu-ld was given.
12927 if test "${with_gnu_ld+set}" = set; then :
12928 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12929 else
12930 with_gnu_ld=no
12933 ac_prog=ld
12934 if test "$GCC" = yes; then
12935 # Check if gcc -print-prog-name=ld gives a path.
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12937 $as_echo_n "checking for ld used by $CC... " >&6; }
12938 case $host in
12939 *-*-mingw*)
12940 # gcc leaves a trailing carriage return which upsets mingw
12941 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12943 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12944 esac
12945 case $ac_prog in
12946 # Accept absolute paths.
12947 [\\/]* | ?:[\\/]*)
12948 re_direlt='/[^/][^/]*/\.\./'
12949 # Canonicalize the pathname of ld
12950 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12951 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12952 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12953 done
12954 test -z "$LD" && LD="$ac_prog"
12957 # If it fails, then pretend we aren't using GCC.
12958 ac_prog=ld
12961 # If it is relative, then search for the first ld in PATH.
12962 with_gnu_ld=unknown
12964 esac
12965 elif test "$with_gnu_ld" = yes; then
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12967 $as_echo_n "checking for GNU ld... " >&6; }
12968 else
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12970 $as_echo_n "checking for non-GNU ld... " >&6; }
12972 if ${lt_cv_path_LD+:} false; then :
12973 $as_echo_n "(cached) " >&6
12974 else
12975 if test -z "$LD"; then
12976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12977 for ac_dir in $PATH; do
12978 IFS="$lt_save_ifs"
12979 test -z "$ac_dir" && ac_dir=.
12980 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12981 lt_cv_path_LD="$ac_dir/$ac_prog"
12982 # Check to see if the program is GNU ld. I'd rather use --version,
12983 # but apparently some variants of GNU ld only accept -v.
12984 # Break only if it was the GNU/non-GNU ld that we prefer.
12985 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12986 *GNU* | *'with BFD'*)
12987 test "$with_gnu_ld" != no && break
12990 test "$with_gnu_ld" != yes && break
12992 esac
12994 done
12995 IFS="$lt_save_ifs"
12996 else
12997 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13001 LD="$lt_cv_path_LD"
13002 if test -n "$LD"; then
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13004 $as_echo "$LD" >&6; }
13005 else
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13007 $as_echo "no" >&6; }
13009 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13011 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13012 if ${lt_cv_prog_gnu_ld+:} false; then :
13013 $as_echo_n "(cached) " >&6
13014 else
13015 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13016 case `$LD -v 2>&1 </dev/null` in
13017 *GNU* | *'with BFD'*)
13018 lt_cv_prog_gnu_ld=yes
13021 lt_cv_prog_gnu_ld=no
13023 esac
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13026 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13027 with_gnu_ld=$lt_cv_prog_gnu_ld
13035 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13036 # archiving commands below assume that GNU ld is being used.
13037 if test "$with_gnu_ld" = yes; then
13038 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13039 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13041 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13042 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13044 # If archive_cmds runs LD, not CC, wlarc should be empty
13045 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13046 # investigate it a little bit more. (MM)
13047 wlarc='${wl}'
13049 # ancient GNU ld didn't support --whole-archive et. al.
13050 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13051 $GREP 'no-whole-archive' > /dev/null; then
13052 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13053 else
13054 whole_archive_flag_spec_CXX=
13056 else
13057 with_gnu_ld=no
13058 wlarc=
13060 # A generic and very simple default shared library creation
13061 # command for GNU C++ for the case where it uses the native
13062 # linker, instead of GNU ld. If possible, this setting should
13063 # overridden to take advantage of the native linker features on
13064 # the platform it is being used on.
13065 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13068 # Commands to make compiler produce verbose output that lists
13069 # what "hidden" libraries, object files and flags are used when
13070 # linking a shared library.
13071 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13073 else
13074 GXX=no
13075 with_gnu_ld=no
13076 wlarc=
13079 # PORTME: fill in a description of your system's C++ link characteristics
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13081 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13082 ld_shlibs_CXX=yes
13083 case $host_os in
13084 aix3*)
13085 # FIXME: insert proper C++ library support
13086 ld_shlibs_CXX=no
13088 aix[4-9]*)
13089 if test "$host_cpu" = ia64; then
13090 # On IA64, the linker does run time linking by default, so we don't
13091 # have to do anything special.
13092 aix_use_runtimelinking=no
13093 exp_sym_flag='-Bexport'
13094 no_entry_flag=""
13095 else
13096 aix_use_runtimelinking=no
13098 # Test if we are trying to use run time linking or normal
13099 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13100 # need to do runtime linking.
13101 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13102 for ld_flag in $LDFLAGS; do
13103 case $ld_flag in
13104 *-brtl*)
13105 aix_use_runtimelinking=yes
13106 break
13108 esac
13109 done
13111 esac
13113 exp_sym_flag='-bexport'
13114 no_entry_flag='-bnoentry'
13117 # When large executables or shared objects are built, AIX ld can
13118 # have problems creating the table of contents. If linking a library
13119 # or program results in "error TOC overflow" add -mminimal-toc to
13120 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13121 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13123 archive_cmds_CXX=''
13124 hardcode_direct_CXX=yes
13125 hardcode_direct_absolute_CXX=yes
13126 hardcode_libdir_separator_CXX=':'
13127 link_all_deplibs_CXX=yes
13128 file_list_spec_CXX='${wl}-f,'
13130 if test "$GXX" = yes; then
13131 case $host_os in aix4.[012]|aix4.[012].*)
13132 # We only want to do this on AIX 4.2 and lower, the check
13133 # below for broken collect2 doesn't work under 4.3+
13134 collect2name=`${CC} -print-prog-name=collect2`
13135 if test -f "$collect2name" &&
13136 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13137 then
13138 # We have reworked collect2
13140 else
13141 # We have old collect2
13142 hardcode_direct_CXX=unsupported
13143 # It fails to find uninstalled libraries when the uninstalled
13144 # path is not listed in the libpath. Setting hardcode_minus_L
13145 # to unsupported forces relinking
13146 hardcode_minus_L_CXX=yes
13147 hardcode_libdir_flag_spec_CXX='-L$libdir'
13148 hardcode_libdir_separator_CXX=
13150 esac
13151 shared_flag='-shared'
13152 if test "$aix_use_runtimelinking" = yes; then
13153 shared_flag="$shared_flag "'${wl}-G'
13155 else
13156 # not using gcc
13157 if test "$host_cpu" = ia64; then
13158 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13159 # chokes on -Wl,-G. The following line is correct:
13160 shared_flag='-G'
13161 else
13162 if test "$aix_use_runtimelinking" = yes; then
13163 shared_flag='${wl}-G'
13164 else
13165 shared_flag='${wl}-bM:SRE'
13170 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13171 # It seems that -bexpall does not export symbols beginning with
13172 # underscore (_), so it is better to generate a list of symbols to
13173 # export.
13174 always_export_symbols_CXX=yes
13175 if test "$aix_use_runtimelinking" = yes; then
13176 # Warning - without using the other runtime loading flags (-brtl),
13177 # -berok will link without error, but may produce a broken library.
13178 allow_undefined_flag_CXX='-berok'
13179 # Determine the default libpath from the value encoded in an empty
13180 # executable.
13181 if test "${lt_cv_aix_libpath+set}" = set; then
13182 aix_libpath=$lt_cv_aix_libpath
13183 else
13184 if ${lt_cv_aix_libpath__CXX+:} false; then :
13185 $as_echo_n "(cached) " >&6
13186 else
13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13191 main ()
13195 return 0;
13197 _ACEOF
13198 if ac_fn_cxx_try_link "$LINENO"; then :
13200 lt_aix_libpath_sed='
13201 /Import File Strings/,/^$/ {
13202 /^0/ {
13203 s/^0 *\([^ ]*\) *$/\1/
13207 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13208 # Check for a 64-bit object if we didn't find anything.
13209 if test -z "$lt_cv_aix_libpath__CXX"; then
13210 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13213 rm -f core conftest.err conftest.$ac_objext \
13214 conftest$ac_exeext conftest.$ac_ext
13215 if test -z "$lt_cv_aix_libpath__CXX"; then
13216 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13221 aix_libpath=$lt_cv_aix_libpath__CXX
13224 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13226 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13227 else
13228 if test "$host_cpu" = ia64; then
13229 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13230 allow_undefined_flag_CXX="-z nodefs"
13231 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13232 else
13233 # Determine the default libpath from the value encoded in an
13234 # empty executable.
13235 if test "${lt_cv_aix_libpath+set}" = set; then
13236 aix_libpath=$lt_cv_aix_libpath
13237 else
13238 if ${lt_cv_aix_libpath__CXX+:} false; then :
13239 $as_echo_n "(cached) " >&6
13240 else
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13245 main ()
13249 return 0;
13251 _ACEOF
13252 if ac_fn_cxx_try_link "$LINENO"; then :
13254 lt_aix_libpath_sed='
13255 /Import File Strings/,/^$/ {
13256 /^0/ {
13257 s/^0 *\([^ ]*\) *$/\1/
13261 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13262 # Check for a 64-bit object if we didn't find anything.
13263 if test -z "$lt_cv_aix_libpath__CXX"; then
13264 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13267 rm -f core conftest.err conftest.$ac_objext \
13268 conftest$ac_exeext conftest.$ac_ext
13269 if test -z "$lt_cv_aix_libpath__CXX"; then
13270 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13275 aix_libpath=$lt_cv_aix_libpath__CXX
13278 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13279 # Warning - without using the other run time loading flags,
13280 # -berok will link without error, but may produce a broken library.
13281 no_undefined_flag_CXX=' ${wl}-bernotok'
13282 allow_undefined_flag_CXX=' ${wl}-berok'
13283 if test "$with_gnu_ld" = yes; then
13284 # We only use this code for GNU lds that support --whole-archive.
13285 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13286 else
13287 # Exported symbols can be pulled into shared objects from archives
13288 whole_archive_flag_spec_CXX='$convenience'
13290 archive_cmds_need_lc_CXX=yes
13291 # This is similar to how AIX traditionally builds its shared
13292 # libraries.
13293 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13298 beos*)
13299 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13300 allow_undefined_flag_CXX=unsupported
13301 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13302 # support --undefined. This deserves some investigation. FIXME
13303 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13304 else
13305 ld_shlibs_CXX=no
13309 chorus*)
13310 case $cc_basename in
13312 # FIXME: insert proper C++ library support
13313 ld_shlibs_CXX=no
13315 esac
13318 cygwin* | mingw* | pw32* | cegcc*)
13319 case $GXX,$cc_basename in
13320 ,cl* | no,cl*)
13321 # Native MSVC
13322 # hardcode_libdir_flag_spec is actually meaningless, as there is
13323 # no search path for DLLs.
13324 hardcode_libdir_flag_spec_CXX=' '
13325 allow_undefined_flag_CXX=unsupported
13326 always_export_symbols_CXX=yes
13327 file_list_spec_CXX='@'
13328 # Tell ltmain to make .lib files, not .a files.
13329 libext=lib
13330 # Tell ltmain to make .dll files, not .so files.
13331 shrext_cmds=".dll"
13332 # FIXME: Setting linknames here is a bad hack.
13333 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13334 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13335 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13336 else
13337 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13339 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13340 linknames='
13341 # The linker will not automatically build a static lib if we build a DLL.
13342 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13343 enable_shared_with_static_runtimes_CXX=yes
13344 # Don't use ranlib
13345 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13346 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13347 lt_tool_outputfile="@TOOL_OUTPUT@"~
13348 case $lt_outputfile in
13349 *.exe|*.EXE) ;;
13351 lt_outputfile="$lt_outputfile.exe"
13352 lt_tool_outputfile="$lt_tool_outputfile.exe"
13354 esac~
13355 func_to_tool_file "$lt_outputfile"~
13356 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13357 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13358 $RM "$lt_outputfile.manifest";
13362 # g++
13363 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13364 # as there is no search path for DLLs.
13365 hardcode_libdir_flag_spec_CXX='-L$libdir'
13366 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13367 allow_undefined_flag_CXX=unsupported
13368 always_export_symbols_CXX=no
13369 enable_shared_with_static_runtimes_CXX=yes
13371 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13372 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13373 # If the export-symbols file already is a .def file (1st line
13374 # is EXPORTS), use it as is; otherwise, prepend...
13375 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13376 cp $export_symbols $output_objdir/$soname.def;
13377 else
13378 echo EXPORTS > $output_objdir/$soname.def;
13379 cat $export_symbols >> $output_objdir/$soname.def;
13381 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13382 else
13383 ld_shlibs_CXX=no
13386 esac
13388 darwin* | rhapsody*)
13391 archive_cmds_need_lc_CXX=no
13392 hardcode_direct_CXX=no
13393 hardcode_automatic_CXX=yes
13394 hardcode_shlibpath_var_CXX=unsupported
13395 if test "$lt_cv_ld_force_load" = "yes"; then
13396 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13397 else
13398 whole_archive_flag_spec_CXX=''
13400 link_all_deplibs_CXX=yes
13401 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13402 case $cc_basename in
13403 ifort*) _lt_dar_can_shared=yes ;;
13404 *) _lt_dar_can_shared=$GCC ;;
13405 esac
13406 if test "$_lt_dar_can_shared" = "yes"; then
13407 output_verbose_link_cmd=func_echo_all
13408 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13409 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13410 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13411 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13412 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13413 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13414 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13417 else
13418 ld_shlibs_CXX=no
13423 dgux*)
13424 case $cc_basename in
13425 ec++*)
13426 # FIXME: insert proper C++ library support
13427 ld_shlibs_CXX=no
13429 ghcx*)
13430 # Green Hills C++ Compiler
13431 # FIXME: insert proper C++ library support
13432 ld_shlibs_CXX=no
13435 # FIXME: insert proper C++ library support
13436 ld_shlibs_CXX=no
13438 esac
13441 freebsd[12]*)
13442 # C++ shared libraries reported to be fairly broken before
13443 # switch to ELF
13444 ld_shlibs_CXX=no
13447 freebsd-elf*)
13448 archive_cmds_need_lc_CXX=no
13451 freebsd* | dragonfly*)
13452 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13453 # conventions
13454 ld_shlibs_CXX=yes
13457 gnu*)
13460 haiku*)
13461 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13462 link_all_deplibs_CXX=yes
13465 hpux9*)
13466 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13467 hardcode_libdir_separator_CXX=:
13468 export_dynamic_flag_spec_CXX='${wl}-E'
13469 hardcode_direct_CXX=yes
13470 hardcode_minus_L_CXX=yes # Not in the search PATH,
13471 # but as the default
13472 # location of the library.
13474 case $cc_basename in
13475 CC*)
13476 # FIXME: insert proper C++ library support
13477 ld_shlibs_CXX=no
13479 aCC*)
13480 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13481 # Commands to make compiler produce verbose output that lists
13482 # what "hidden" libraries, object files and flags are used when
13483 # linking a shared library.
13485 # There doesn't appear to be a way to prevent this compiler from
13486 # explicitly linking system object files so we need to strip them
13487 # from the output so that they don't get included in the library
13488 # dependencies.
13489 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13492 if test "$GXX" = yes; then
13493 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13494 else
13495 # FIXME: insert proper C++ library support
13496 ld_shlibs_CXX=no
13499 esac
13502 hpux10*|hpux11*)
13503 if test $with_gnu_ld = no; then
13504 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13505 hardcode_libdir_separator_CXX=:
13507 case $host_cpu in
13508 hppa*64*|ia64*)
13511 export_dynamic_flag_spec_CXX='${wl}-E'
13513 esac
13515 case $host_cpu in
13516 hppa*64*|ia64*)
13517 hardcode_direct_CXX=no
13518 hardcode_shlibpath_var_CXX=no
13521 hardcode_direct_CXX=yes
13522 hardcode_direct_absolute_CXX=yes
13523 hardcode_minus_L_CXX=yes # Not in the search PATH,
13524 # but as the default
13525 # location of the library.
13527 esac
13529 case $cc_basename in
13530 CC*)
13531 # FIXME: insert proper C++ library support
13532 ld_shlibs_CXX=no
13534 aCC*)
13535 case $host_cpu in
13536 hppa*64*)
13537 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13539 ia64*)
13540 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13543 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13545 esac
13546 # Commands to make compiler produce verbose output that lists
13547 # what "hidden" libraries, object files and flags are used when
13548 # linking a shared library.
13550 # There doesn't appear to be a way to prevent this compiler from
13551 # explicitly linking system object files so we need to strip them
13552 # from the output so that they don't get included in the library
13553 # dependencies.
13554 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13557 if test "$GXX" = yes; then
13558 if test $with_gnu_ld = no; then
13559 case $host_cpu in
13560 hppa*64*)
13561 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13563 ia64*)
13564 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13567 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13569 esac
13571 else
13572 # FIXME: insert proper C++ library support
13573 ld_shlibs_CXX=no
13576 esac
13579 interix[3-9]*)
13580 hardcode_direct_CXX=no
13581 hardcode_shlibpath_var_CXX=no
13582 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13583 export_dynamic_flag_spec_CXX='${wl}-E'
13584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13585 # Instead, shared libraries are loaded at an image base (0x10000000 by
13586 # default) and relocated if they conflict, which is a slow very memory
13587 # consuming and fragmenting process. To avoid this, we pick a random,
13588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13589 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13590 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13591 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13593 irix5* | irix6*)
13594 case $cc_basename in
13595 CC*)
13596 # SGI C++
13597 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13599 # Archives containing C++ object files must be created using
13600 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13601 # necessary to make sure instantiated templates are included
13602 # in the archive.
13603 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13606 if test "$GXX" = yes; then
13607 if test "$with_gnu_ld" = no; then
13608 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13609 else
13610 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13613 link_all_deplibs_CXX=yes
13615 esac
13616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13617 hardcode_libdir_separator_CXX=:
13618 inherit_rpath_CXX=yes
13621 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13622 case $cc_basename in
13623 KCC*)
13624 # Kuck and Associates, Inc. (KAI) C++ Compiler
13626 # KCC will only create a shared library if the output file
13627 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13628 # to its proper name (with version) after linking.
13629 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13630 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13631 # Commands to make compiler produce verbose output that lists
13632 # what "hidden" libraries, object files and flags are used when
13633 # linking a shared library.
13635 # There doesn't appear to be a way to prevent this compiler from
13636 # explicitly linking system object files so we need to strip them
13637 # from the output so that they don't get included in the library
13638 # dependencies.
13639 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13641 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13642 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13644 # Archives containing C++ object files must be created using
13645 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13646 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13648 icpc* | ecpc* )
13649 # Intel C++
13650 with_gnu_ld=yes
13651 # version 8.0 and above of icpc choke on multiply defined symbols
13652 # if we add $predep_objects and $postdep_objects, however 7.1 and
13653 # earlier do not add the objects themselves.
13654 case `$CC -V 2>&1` in
13655 *"Version 7."*)
13656 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13657 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13659 *) # Version 8.0 or newer
13660 tmp_idyn=
13661 case $host_cpu in
13662 ia64*) tmp_idyn=' -i_dynamic';;
13663 esac
13664 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13665 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13667 esac
13668 archive_cmds_need_lc_CXX=no
13669 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13670 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13671 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13673 pgCC* | pgcpp*)
13674 # Portland Group C++ compiler
13675 case `$CC -V` in
13676 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13677 prelink_cmds_CXX='tpldir=Template.dir~
13678 rm -rf $tpldir~
13679 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13680 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13681 old_archive_cmds_CXX='tpldir=Template.dir~
13682 rm -rf $tpldir~
13683 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13684 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13685 $RANLIB $oldlib'
13686 archive_cmds_CXX='tpldir=Template.dir~
13687 rm -rf $tpldir~
13688 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13689 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13690 archive_expsym_cmds_CXX='tpldir=Template.dir~
13691 rm -rf $tpldir~
13692 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13693 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13695 *) # Version 6 and above use weak symbols
13696 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13697 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13699 esac
13701 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13702 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13703 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13705 cxx*)
13706 # Compaq C++
13707 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13708 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13710 runpath_var=LD_RUN_PATH
13711 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13712 hardcode_libdir_separator_CXX=:
13714 # Commands to make compiler produce verbose output that lists
13715 # what "hidden" libraries, object files and flags are used when
13716 # linking a shared library.
13718 # There doesn't appear to be a way to prevent this compiler from
13719 # explicitly linking system object files so we need to strip them
13720 # from the output so that they don't get included in the library
13721 # dependencies.
13722 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13724 xl* | mpixl* | bgxl*)
13725 # IBM XL 8.0 on PPC, with GNU ld
13726 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13727 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13728 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13729 if test "x$supports_anon_versioning" = xyes; then
13730 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13731 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13732 echo "local: *; };" >> $output_objdir/$libname.ver~
13733 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13737 case `$CC -V 2>&1 | sed 5q` in
13738 *Sun\ C*)
13739 # Sun C++ 5.9
13740 no_undefined_flag_CXX=' -zdefs'
13741 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13742 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13743 hardcode_libdir_flag_spec_CXX='-R$libdir'
13744 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13745 compiler_needs_object_CXX=yes
13747 # Not sure whether something based on
13748 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13749 # would be better.
13750 output_verbose_link_cmd='func_echo_all'
13752 # Archives containing C++ object files must be created using
13753 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13754 # necessary to make sure instantiated templates are included
13755 # in the archive.
13756 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13758 esac
13760 esac
13763 lynxos*)
13764 # FIXME: insert proper C++ library support
13765 ld_shlibs_CXX=no
13768 m88k*)
13769 # FIXME: insert proper C++ library support
13770 ld_shlibs_CXX=no
13773 mvs*)
13774 case $cc_basename in
13775 cxx*)
13776 # FIXME: insert proper C++ library support
13777 ld_shlibs_CXX=no
13780 # FIXME: insert proper C++ library support
13781 ld_shlibs_CXX=no
13783 esac
13786 netbsd*)
13787 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13788 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13789 wlarc=
13790 hardcode_libdir_flag_spec_CXX='-R$libdir'
13791 hardcode_direct_CXX=yes
13792 hardcode_shlibpath_var_CXX=no
13794 # Workaround some broken pre-1.5 toolchains
13795 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13798 *nto* | *qnx*)
13799 ld_shlibs_CXX=yes
13802 openbsd2*)
13803 # C++ shared libraries are fairly broken
13804 ld_shlibs_CXX=no
13807 openbsd*)
13808 if test -f /usr/libexec/ld.so; then
13809 hardcode_direct_CXX=yes
13810 hardcode_shlibpath_var_CXX=no
13811 hardcode_direct_absolute_CXX=yes
13812 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13813 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13814 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13815 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13816 export_dynamic_flag_spec_CXX='${wl}-E'
13817 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13819 output_verbose_link_cmd=func_echo_all
13820 else
13821 ld_shlibs_CXX=no
13825 osf3* | osf4* | osf5*)
13826 case $cc_basename in
13827 KCC*)
13828 # Kuck and Associates, Inc. (KAI) C++ Compiler
13830 # KCC will only create a shared library if the output file
13831 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13832 # to its proper name (with version) after linking.
13833 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13835 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13836 hardcode_libdir_separator_CXX=:
13838 # Archives containing C++ object files must be created using
13839 # the KAI C++ compiler.
13840 case $host in
13841 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13842 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13843 esac
13845 RCC*)
13846 # Rational C++ 2.4.1
13847 # FIXME: insert proper C++ library support
13848 ld_shlibs_CXX=no
13850 cxx*)
13851 case $host in
13852 osf3*)
13853 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13854 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13855 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13858 allow_undefined_flag_CXX=' -expect_unresolved \*'
13859 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13860 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13861 echo "-hidden">> $lib.exp~
13862 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13863 $RM $lib.exp'
13864 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13866 esac
13868 hardcode_libdir_separator_CXX=:
13870 # Commands to make compiler produce verbose output that lists
13871 # what "hidden" libraries, object files and flags are used when
13872 # linking a shared library.
13874 # There doesn't appear to be a way to prevent this compiler from
13875 # explicitly linking system object files so we need to strip them
13876 # from the output so that they don't get included in the library
13877 # dependencies.
13878 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13881 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13882 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13883 case $host in
13884 osf3*)
13885 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13888 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13890 esac
13892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13893 hardcode_libdir_separator_CXX=:
13895 # Commands to make compiler produce verbose output that lists
13896 # what "hidden" libraries, object files and flags are used when
13897 # linking a shared library.
13898 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13900 else
13901 # FIXME: insert proper C++ library support
13902 ld_shlibs_CXX=no
13905 esac
13908 psos*)
13909 # FIXME: insert proper C++ library support
13910 ld_shlibs_CXX=no
13913 sunos4*)
13914 case $cc_basename in
13915 CC*)
13916 # Sun C++ 4.x
13917 # FIXME: insert proper C++ library support
13918 ld_shlibs_CXX=no
13920 lcc*)
13921 # Lucid
13922 # FIXME: insert proper C++ library support
13923 ld_shlibs_CXX=no
13926 # FIXME: insert proper C++ library support
13927 ld_shlibs_CXX=no
13929 esac
13932 solaris*)
13933 case $cc_basename in
13934 CC* | sunCC*)
13935 # Sun C++ 4.2, 5.x and Centerline C++
13936 archive_cmds_need_lc_CXX=yes
13937 no_undefined_flag_CXX=' -zdefs'
13938 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13939 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13940 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13942 hardcode_libdir_flag_spec_CXX='-R$libdir'
13943 hardcode_shlibpath_var_CXX=no
13944 case $host_os in
13945 solaris2.[0-5] | solaris2.[0-5].*) ;;
13947 # The compiler driver will combine and reorder linker options,
13948 # but understands `-z linker_flag'.
13949 # Supported since Solaris 2.6 (maybe 2.5.1?)
13950 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13952 esac
13953 link_all_deplibs_CXX=yes
13955 output_verbose_link_cmd='func_echo_all'
13957 # Archives containing C++ object files must be created using
13958 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13959 # necessary to make sure instantiated templates are included
13960 # in the archive.
13961 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13963 gcx*)
13964 # Green Hills C++ Compiler
13965 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13967 # The C++ compiler must be used to create the archive.
13968 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13971 # GNU C++ compiler with Solaris linker
13972 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13973 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13974 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13975 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13976 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13977 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13979 # Commands to make compiler produce verbose output that lists
13980 # what "hidden" libraries, object files and flags are used when
13981 # linking a shared library.
13982 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13983 else
13984 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13985 # platform.
13986 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13987 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13988 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13990 # Commands to make compiler produce verbose output that lists
13991 # what "hidden" libraries, object files and flags are used when
13992 # linking a shared library.
13993 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13996 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13997 case $host_os in
13998 solaris2.[0-5] | solaris2.[0-5].*) ;;
14000 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14002 esac
14005 esac
14008 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14009 no_undefined_flag_CXX='${wl}-z,text'
14010 archive_cmds_need_lc_CXX=no
14011 hardcode_shlibpath_var_CXX=no
14012 runpath_var='LD_RUN_PATH'
14014 case $cc_basename in
14015 CC*)
14016 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14017 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14020 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14021 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14023 esac
14026 sysv5* | sco3.2v5* | sco5v6*)
14027 # Note: We can NOT use -z defs as we might desire, because we do not
14028 # link with -lc, and that would cause any symbols used from libc to
14029 # always be unresolved, which means just about no library would
14030 # ever link correctly. If we're not using GNU ld we use -z text
14031 # though, which does catch some bad symbols but isn't as heavy-handed
14032 # as -z defs.
14033 no_undefined_flag_CXX='${wl}-z,text'
14034 allow_undefined_flag_CXX='${wl}-z,nodefs'
14035 archive_cmds_need_lc_CXX=no
14036 hardcode_shlibpath_var_CXX=no
14037 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14038 hardcode_libdir_separator_CXX=':'
14039 link_all_deplibs_CXX=yes
14040 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14041 runpath_var='LD_RUN_PATH'
14043 case $cc_basename in
14044 CC*)
14045 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14046 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14047 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14048 '"$old_archive_cmds_CXX"
14049 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14050 '"$reload_cmds_CXX"
14053 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14054 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14056 esac
14059 tandem*)
14060 case $cc_basename in
14061 NCC*)
14062 # NonStop-UX NCC 3.20
14063 # FIXME: insert proper C++ library support
14064 ld_shlibs_CXX=no
14067 # FIXME: insert proper C++ library support
14068 ld_shlibs_CXX=no
14070 esac
14073 vxworks*)
14074 # FIXME: insert proper C++ library support
14075 ld_shlibs_CXX=no
14079 # FIXME: insert proper C++ library support
14080 ld_shlibs_CXX=no
14082 esac
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14085 $as_echo "$ld_shlibs_CXX" >&6; }
14086 test "$ld_shlibs_CXX" = no && can_build_shared=no
14088 GCC_CXX="$GXX"
14089 LD_CXX="$LD"
14091 ## CAVEAT EMPTOR:
14092 ## There is no encapsulation within the following macros, do not change
14093 ## the running order or otherwise move them around unless you know exactly
14094 ## what you are doing...
14095 # Dependencies to place before and after the object being linked:
14096 predep_objects_CXX=
14097 postdep_objects_CXX=
14098 predeps_CXX=
14099 postdeps_CXX=
14100 compiler_lib_search_path_CXX=
14102 cat > conftest.$ac_ext <<_LT_EOF
14103 class Foo
14105 public:
14106 Foo (void) { a = 0; }
14107 private:
14108 int a;
14110 _LT_EOF
14113 _lt_libdeps_save_CFLAGS=$CFLAGS
14114 case "$CC $CFLAGS " in #(
14115 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14116 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14117 esac
14119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14120 (eval $ac_compile) 2>&5
14121 ac_status=$?
14122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14123 test $ac_status = 0; }; then
14124 # Parse the compiler output and extract the necessary
14125 # objects, libraries and library flags.
14127 # Sentinel used to keep track of whether or not we are before
14128 # the conftest object file.
14129 pre_test_object_deps_done=no
14131 for p in `eval "$output_verbose_link_cmd"`; do
14132 case ${prev}${p} in
14134 -L* | -R* | -l*)
14135 # Some compilers place space between "-{L,R}" and the path.
14136 # Remove the space.
14137 if test $p = "-L" ||
14138 test $p = "-R"; then
14139 prev=$p
14140 continue
14143 # Expand the sysroot to ease extracting the directories later.
14144 if test -z "$prev"; then
14145 case $p in
14146 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14147 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14148 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14149 esac
14151 case $p in
14152 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14153 esac
14154 if test "$pre_test_object_deps_done" = no; then
14155 case ${prev} in
14156 -L | -R)
14157 # Internal compiler library paths should come after those
14158 # provided the user. The postdeps already come after the
14159 # user supplied libs so there is no need to process them.
14160 if test -z "$compiler_lib_search_path_CXX"; then
14161 compiler_lib_search_path_CXX="${prev}${p}"
14162 else
14163 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14166 # The "-l" case would never come before the object being
14167 # linked, so don't bother handling this case.
14168 esac
14169 else
14170 if test -z "$postdeps_CXX"; then
14171 postdeps_CXX="${prev}${p}"
14172 else
14173 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14176 prev=
14179 *.lto.$objext) ;; # Ignore GCC LTO objects
14180 *.$objext)
14181 # This assumes that the test object file only shows up
14182 # once in the compiler output.
14183 if test "$p" = "conftest.$objext"; then
14184 pre_test_object_deps_done=yes
14185 continue
14188 if test "$pre_test_object_deps_done" = no; then
14189 if test -z "$predep_objects_CXX"; then
14190 predep_objects_CXX="$p"
14191 else
14192 predep_objects_CXX="$predep_objects_CXX $p"
14194 else
14195 if test -z "$postdep_objects_CXX"; then
14196 postdep_objects_CXX="$p"
14197 else
14198 postdep_objects_CXX="$postdep_objects_CXX $p"
14203 *) ;; # Ignore the rest.
14205 esac
14206 done
14208 # Clean up.
14209 rm -f a.out a.exe
14210 else
14211 echo "libtool.m4: error: problem compiling CXX test program"
14214 $RM -f confest.$objext
14215 CFLAGS=$_lt_libdeps_save_CFLAGS
14217 # PORTME: override above test on systems where it is broken
14218 case $host_os in
14219 interix[3-9]*)
14220 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14221 # hack all around it, let's just trust "g++" to DTRT.
14222 predep_objects_CXX=
14223 postdep_objects_CXX=
14224 postdeps_CXX=
14227 linux*)
14228 case `$CC -V 2>&1 | sed 5q` in
14229 *Sun\ C*)
14230 # Sun C++ 5.9
14232 # The more standards-conforming stlport4 library is
14233 # incompatible with the Cstd library. Avoid specifying
14234 # it if it's in CXXFLAGS. Ignore libCrun as
14235 # -library=stlport4 depends on it.
14236 case " $CXX $CXXFLAGS " in
14237 *" -library=stlport4 "*)
14238 solaris_use_stlport4=yes
14240 esac
14242 if test "$solaris_use_stlport4" != yes; then
14243 postdeps_CXX='-library=Cstd -library=Crun'
14246 esac
14249 solaris*)
14250 case $cc_basename in
14251 CC* | sunCC*)
14252 # The more standards-conforming stlport4 library is
14253 # incompatible with the Cstd library. Avoid specifying
14254 # it if it's in CXXFLAGS. Ignore libCrun as
14255 # -library=stlport4 depends on it.
14256 case " $CXX $CXXFLAGS " in
14257 *" -library=stlport4 "*)
14258 solaris_use_stlport4=yes
14260 esac
14262 # Adding this requires a known-good setup of shared libraries for
14263 # Sun compiler versions before 5.6, else PIC objects from an old
14264 # archive will be linked into the output, leading to subtle bugs.
14265 if test "$solaris_use_stlport4" != yes; then
14266 postdeps_CXX='-library=Cstd -library=Crun'
14269 esac
14271 esac
14274 case " $postdeps_CXX " in
14275 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14276 esac
14277 compiler_lib_search_dirs_CXX=
14278 if test -n "${compiler_lib_search_path_CXX}"; then
14279 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14312 lt_prog_compiler_wl_CXX=
14313 lt_prog_compiler_pic_CXX=
14314 lt_prog_compiler_static_CXX=
14317 # C++ specific cases for pic, static, wl, etc.
14318 if test "$GXX" = yes; then
14319 lt_prog_compiler_wl_CXX='-Wl,'
14320 lt_prog_compiler_static_CXX='-static'
14322 case $host_os in
14323 aix*)
14324 # All AIX code is PIC.
14325 if test "$host_cpu" = ia64; then
14326 # AIX 5 now supports IA64 processor
14327 lt_prog_compiler_static_CXX='-Bstatic'
14331 amigaos*)
14332 case $host_cpu in
14333 powerpc)
14334 # see comment about AmigaOS4 .so support
14335 lt_prog_compiler_pic_CXX='-fPIC'
14337 m68k)
14338 # FIXME: we need at least 68020 code to build shared libraries, but
14339 # adding the `-m68020' flag to GCC prevents building anything better,
14340 # like `-m68040'.
14341 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14343 esac
14346 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14347 # PIC is the default for these OSes.
14349 mingw* | cygwin* | os2* | pw32* | cegcc*)
14350 # This hack is so that the source file can tell whether it is being
14351 # built for inclusion in a dll (and should export symbols for example).
14352 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14353 # (--disable-auto-import) libraries
14354 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14356 darwin* | rhapsody*)
14357 # PIC is the default on this platform
14358 # Common symbols not allowed in MH_DYLIB files
14359 lt_prog_compiler_pic_CXX='-fno-common'
14361 *djgpp*)
14362 # DJGPP does not support shared libraries at all
14363 lt_prog_compiler_pic_CXX=
14365 haiku*)
14366 # PIC is the default for Haiku.
14367 # The "-static" flag exists, but is broken.
14368 lt_prog_compiler_static_CXX=
14370 interix[3-9]*)
14371 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14372 # Instead, we relocate shared libraries at runtime.
14374 sysv4*MP*)
14375 if test -d /usr/nec; then
14376 lt_prog_compiler_pic_CXX=-Kconform_pic
14379 hpux*)
14380 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14381 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14382 # sets the default TLS model and affects inlining.
14383 case $host_cpu in
14384 hppa*64*)
14387 lt_prog_compiler_pic_CXX='-fPIC'
14389 esac
14391 *qnx* | *nto*)
14392 # QNX uses GNU C++, but need to define -shared option too, otherwise
14393 # it will coredump.
14394 lt_prog_compiler_pic_CXX='-fPIC -shared'
14397 lt_prog_compiler_pic_CXX='-fPIC'
14399 esac
14400 else
14401 case $host_os in
14402 aix[4-9]*)
14403 # All AIX code is PIC.
14404 if test "$host_cpu" = ia64; then
14405 # AIX 5 now supports IA64 processor
14406 lt_prog_compiler_static_CXX='-Bstatic'
14407 else
14408 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14411 chorus*)
14412 case $cc_basename in
14413 cxch68*)
14414 # Green Hills C++ Compiler
14415 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14417 esac
14419 mingw* | cygwin* | os2* | pw32* | cegcc*)
14420 # This hack is so that the source file can tell whether it is being
14421 # built for inclusion in a dll (and should export symbols for example).
14422 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14424 dgux*)
14425 case $cc_basename in
14426 ec++*)
14427 lt_prog_compiler_pic_CXX='-KPIC'
14429 ghcx*)
14430 # Green Hills C++ Compiler
14431 lt_prog_compiler_pic_CXX='-pic'
14435 esac
14437 freebsd* | dragonfly*)
14438 # FreeBSD uses GNU C++
14440 hpux9* | hpux10* | hpux11*)
14441 case $cc_basename in
14442 CC*)
14443 lt_prog_compiler_wl_CXX='-Wl,'
14444 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14445 if test "$host_cpu" != ia64; then
14446 lt_prog_compiler_pic_CXX='+Z'
14449 aCC*)
14450 lt_prog_compiler_wl_CXX='-Wl,'
14451 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14452 case $host_cpu in
14453 hppa*64*|ia64*)
14454 # +Z the default
14457 lt_prog_compiler_pic_CXX='+Z'
14459 esac
14463 esac
14465 interix*)
14466 # This is c89, which is MS Visual C++ (no shared libs)
14467 # Anyone wants to do a port?
14469 irix5* | irix6* | nonstopux*)
14470 case $cc_basename in
14471 CC*)
14472 lt_prog_compiler_wl_CXX='-Wl,'
14473 lt_prog_compiler_static_CXX='-non_shared'
14474 # CC pic flag -KPIC is the default.
14478 esac
14480 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14481 case $cc_basename in
14482 KCC*)
14483 # KAI C++ Compiler
14484 lt_prog_compiler_wl_CXX='--backend -Wl,'
14485 lt_prog_compiler_pic_CXX='-fPIC'
14487 ecpc* )
14488 # old Intel C++ for x86_64 which still supported -KPIC.
14489 lt_prog_compiler_wl_CXX='-Wl,'
14490 lt_prog_compiler_pic_CXX='-KPIC'
14491 lt_prog_compiler_static_CXX='-static'
14493 icpc* )
14494 # Intel C++, used to be incompatible with GCC.
14495 # ICC 10 doesn't accept -KPIC any more.
14496 lt_prog_compiler_wl_CXX='-Wl,'
14497 lt_prog_compiler_pic_CXX='-fPIC'
14498 lt_prog_compiler_static_CXX='-static'
14500 pgCC* | pgcpp*)
14501 # Portland Group C++ compiler
14502 lt_prog_compiler_wl_CXX='-Wl,'
14503 lt_prog_compiler_pic_CXX='-fpic'
14504 lt_prog_compiler_static_CXX='-Bstatic'
14506 cxx*)
14507 # Compaq C++
14508 # Make sure the PIC flag is empty. It appears that all Alpha
14509 # Linux and Compaq Tru64 Unix objects are PIC.
14510 lt_prog_compiler_pic_CXX=
14511 lt_prog_compiler_static_CXX='-non_shared'
14513 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14514 # IBM XL 8.0, 9.0 on PPC and BlueGene
14515 lt_prog_compiler_wl_CXX='-Wl,'
14516 lt_prog_compiler_pic_CXX='-qpic'
14517 lt_prog_compiler_static_CXX='-qstaticlink'
14520 case `$CC -V 2>&1 | sed 5q` in
14521 *Sun\ C*)
14522 # Sun C++ 5.9
14523 lt_prog_compiler_pic_CXX='-KPIC'
14524 lt_prog_compiler_static_CXX='-Bstatic'
14525 lt_prog_compiler_wl_CXX='-Qoption ld '
14527 esac
14529 esac
14531 lynxos*)
14533 m88k*)
14535 mvs*)
14536 case $cc_basename in
14537 cxx*)
14538 lt_prog_compiler_pic_CXX='-W c,exportall'
14542 esac
14544 netbsd*)
14546 *qnx* | *nto*)
14547 # QNX uses GNU C++, but need to define -shared option too, otherwise
14548 # it will coredump.
14549 lt_prog_compiler_pic_CXX='-fPIC -shared'
14551 osf3* | osf4* | osf5*)
14552 case $cc_basename in
14553 KCC*)
14554 lt_prog_compiler_wl_CXX='--backend -Wl,'
14556 RCC*)
14557 # Rational C++ 2.4.1
14558 lt_prog_compiler_pic_CXX='-pic'
14560 cxx*)
14561 # Digital/Compaq C++
14562 lt_prog_compiler_wl_CXX='-Wl,'
14563 # Make sure the PIC flag is empty. It appears that all Alpha
14564 # Linux and Compaq Tru64 Unix objects are PIC.
14565 lt_prog_compiler_pic_CXX=
14566 lt_prog_compiler_static_CXX='-non_shared'
14570 esac
14572 psos*)
14574 solaris*)
14575 case $cc_basename in
14576 CC* | sunCC*)
14577 # Sun C++ 4.2, 5.x and Centerline C++
14578 lt_prog_compiler_pic_CXX='-KPIC'
14579 lt_prog_compiler_static_CXX='-Bstatic'
14580 lt_prog_compiler_wl_CXX='-Qoption ld '
14582 gcx*)
14583 # Green Hills C++ Compiler
14584 lt_prog_compiler_pic_CXX='-PIC'
14588 esac
14590 sunos4*)
14591 case $cc_basename in
14592 CC*)
14593 # Sun C++ 4.x
14594 lt_prog_compiler_pic_CXX='-pic'
14595 lt_prog_compiler_static_CXX='-Bstatic'
14597 lcc*)
14598 # Lucid
14599 lt_prog_compiler_pic_CXX='-pic'
14603 esac
14605 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14606 case $cc_basename in
14607 CC*)
14608 lt_prog_compiler_wl_CXX='-Wl,'
14609 lt_prog_compiler_pic_CXX='-KPIC'
14610 lt_prog_compiler_static_CXX='-Bstatic'
14612 esac
14614 tandem*)
14615 case $cc_basename in
14616 NCC*)
14617 # NonStop-UX NCC 3.20
14618 lt_prog_compiler_pic_CXX='-KPIC'
14622 esac
14624 vxworks*)
14627 lt_prog_compiler_can_build_shared_CXX=no
14629 esac
14632 case $host_os in
14633 # For platforms which do not support PIC, -DPIC is meaningless:
14634 *djgpp*)
14635 lt_prog_compiler_pic_CXX=
14638 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14640 esac
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14643 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14644 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14645 $as_echo_n "(cached) " >&6
14646 else
14647 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14650 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14651 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14654 # Check to make sure the PIC flag actually works.
14656 if test -n "$lt_prog_compiler_pic_CXX"; then
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14658 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14659 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14660 $as_echo_n "(cached) " >&6
14661 else
14662 lt_cv_prog_compiler_pic_works_CXX=no
14663 ac_outfile=conftest.$ac_objext
14664 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14665 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14666 # Insert the option either (1) after the last *FLAGS variable, or
14667 # (2) before a word containing "conftest.", or (3) at the end.
14668 # Note that $ac_compile itself does not contain backslashes and begins
14669 # with a dollar sign (not a hyphen), so the echo should work correctly.
14670 # The option is referenced via a variable to avoid confusing sed.
14671 lt_compile=`echo "$ac_compile" | $SED \
14672 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14673 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14674 -e 's:$: $lt_compiler_flag:'`
14675 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14676 (eval "$lt_compile" 2>conftest.err)
14677 ac_status=$?
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 if (exit $ac_status) && test -s "$ac_outfile"; then
14681 # The compiler can only warn and ignore the option if not recognized
14682 # So say no if there are warnings other than the usual output.
14683 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14684 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14685 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14686 lt_cv_prog_compiler_pic_works_CXX=yes
14689 $RM conftest*
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14693 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14695 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14696 case $lt_prog_compiler_pic_CXX in
14697 "" | " "*) ;;
14698 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14699 esac
14700 else
14701 lt_prog_compiler_pic_CXX=
14702 lt_prog_compiler_can_build_shared_CXX=no
14712 # Check to make sure the static flag actually works.
14714 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14716 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14717 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14718 $as_echo_n "(cached) " >&6
14719 else
14720 lt_cv_prog_compiler_static_works_CXX=no
14721 save_LDFLAGS="$LDFLAGS"
14722 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14723 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14724 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14725 # The linker can only warn and ignore the option if not recognized
14726 # So say no if there are warnings
14727 if test -s conftest.err; then
14728 # Append any errors to the config.log.
14729 cat conftest.err 1>&5
14730 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14732 if diff conftest.exp conftest.er2 >/dev/null; then
14733 lt_cv_prog_compiler_static_works_CXX=yes
14735 else
14736 lt_cv_prog_compiler_static_works_CXX=yes
14739 $RM -r conftest*
14740 LDFLAGS="$save_LDFLAGS"
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14744 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14746 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14748 else
14749 lt_prog_compiler_static_CXX=
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14756 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14757 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14758 $as_echo_n "(cached) " >&6
14759 else
14760 lt_cv_prog_compiler_c_o_CXX=no
14761 $RM -r conftest 2>/dev/null
14762 mkdir conftest
14763 cd conftest
14764 mkdir out
14765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14767 lt_compiler_flag="-o out/conftest2.$ac_objext"
14768 # Insert the option either (1) after the last *FLAGS variable, or
14769 # (2) before a word containing "conftest.", or (3) at the end.
14770 # Note that $ac_compile itself does not contain backslashes and begins
14771 # with a dollar sign (not a hyphen), so the echo should work correctly.
14772 lt_compile=`echo "$ac_compile" | $SED \
14773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14775 -e 's:$: $lt_compiler_flag:'`
14776 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14777 (eval "$lt_compile" 2>out/conftest.err)
14778 ac_status=$?
14779 cat out/conftest.err >&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14782 then
14783 # The compiler can only warn and ignore the option if not recognized
14784 # So say no if there are warnings
14785 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14786 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14787 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14788 lt_cv_prog_compiler_c_o_CXX=yes
14791 chmod u+w . 2>&5
14792 $RM conftest*
14793 # SGI C++ compiler will create directory out/ii_files/ for
14794 # template instantiation
14795 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14796 $RM out/* && rmdir out
14797 cd ..
14798 $RM -r conftest
14799 $RM conftest*
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14803 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14808 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14809 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14810 $as_echo_n "(cached) " >&6
14811 else
14812 lt_cv_prog_compiler_c_o_CXX=no
14813 $RM -r conftest 2>/dev/null
14814 mkdir conftest
14815 cd conftest
14816 mkdir out
14817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14819 lt_compiler_flag="-o out/conftest2.$ac_objext"
14820 # Insert the option either (1) after the last *FLAGS variable, or
14821 # (2) before a word containing "conftest.", or (3) at the end.
14822 # Note that $ac_compile itself does not contain backslashes and begins
14823 # with a dollar sign (not a hyphen), so the echo should work correctly.
14824 lt_compile=`echo "$ac_compile" | $SED \
14825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14827 -e 's:$: $lt_compiler_flag:'`
14828 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14829 (eval "$lt_compile" 2>out/conftest.err)
14830 ac_status=$?
14831 cat out/conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14834 then
14835 # The compiler can only warn and ignore the option if not recognized
14836 # So say no if there are warnings
14837 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14838 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14839 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14840 lt_cv_prog_compiler_c_o_CXX=yes
14843 chmod u+w . 2>&5
14844 $RM conftest*
14845 # SGI C++ compiler will create directory out/ii_files/ for
14846 # template instantiation
14847 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14848 $RM out/* && rmdir out
14849 cd ..
14850 $RM -r conftest
14851 $RM conftest*
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14855 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14860 hard_links="nottested"
14861 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14862 # do not overwrite the value of need_locks provided by the user
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14864 $as_echo_n "checking if we can lock with hard links... " >&6; }
14865 hard_links=yes
14866 $RM conftest*
14867 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14868 touch conftest.a
14869 ln conftest.a conftest.b 2>&5 || hard_links=no
14870 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14872 $as_echo "$hard_links" >&6; }
14873 if test "$hard_links" = no; then
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14875 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14876 need_locks=warn
14878 else
14879 need_locks=no
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14885 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14887 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14888 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14889 case $host_os in
14890 aix[4-9]*)
14891 # If we're using GNU nm, then we don't want the "-C" option.
14892 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14893 # Also, AIX nm treats weak defined symbols like other global defined
14894 # symbols, whereas GNU nm marks them as "W".
14895 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14896 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14897 else
14898 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14901 pw32*)
14902 export_symbols_cmds_CXX="$ltdll_cmds"
14904 cygwin* | mingw* | cegcc*)
14905 case $cc_basename in
14906 cl*) ;;
14908 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14909 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14911 esac
14914 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14916 esac
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14919 $as_echo "$ld_shlibs_CXX" >&6; }
14920 test "$ld_shlibs_CXX" = no && can_build_shared=no
14922 with_gnu_ld_CXX=$with_gnu_ld
14930 # Do we need to explicitly link libc?
14932 case "x$archive_cmds_need_lc_CXX" in
14933 x|xyes)
14934 # Assume -lc should be added
14935 archive_cmds_need_lc_CXX=yes
14937 if test "$enable_shared" = yes && test "$GCC" = yes; then
14938 case $archive_cmds_CXX in
14939 *'~'*)
14940 # FIXME: we may have to deal with multi-command sequences.
14942 '$CC '*)
14943 # Test whether the compiler implicitly links with -lc since on some
14944 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14945 # to ld, don't add -lc before -lgcc.
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14947 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14948 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14949 $as_echo_n "(cached) " >&6
14950 else
14951 $RM conftest*
14952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14955 (eval $ac_compile) 2>&5
14956 ac_status=$?
14957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14958 test $ac_status = 0; } 2>conftest.err; then
14959 soname=conftest
14960 lib=conftest
14961 libobjs=conftest.$ac_objext
14962 deplibs=
14963 wl=$lt_prog_compiler_wl_CXX
14964 pic_flag=$lt_prog_compiler_pic_CXX
14965 compiler_flags=-v
14966 linker_flags=-v
14967 verstring=
14968 output_objdir=.
14969 libname=conftest
14970 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14971 allow_undefined_flag_CXX=
14972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14973 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14974 ac_status=$?
14975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14976 test $ac_status = 0; }
14977 then
14978 lt_cv_archive_cmds_need_lc_CXX=no
14979 else
14980 lt_cv_archive_cmds_need_lc_CXX=yes
14982 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14983 else
14984 cat conftest.err 1>&5
14986 $RM conftest*
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14990 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14991 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14993 esac
14996 esac
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15062 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15064 library_names_spec=
15065 libname_spec='lib$name'
15066 soname_spec=
15067 shrext_cmds=".so"
15068 postinstall_cmds=
15069 postuninstall_cmds=
15070 finish_cmds=
15071 finish_eval=
15072 shlibpath_var=
15073 shlibpath_overrides_runpath=unknown
15074 version_type=none
15075 dynamic_linker="$host_os ld.so"
15076 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15077 need_lib_prefix=unknown
15078 hardcode_into_libs=no
15080 # when you set need_version to no, make sure it does not cause -set_version
15081 # flags to be left without arguments
15082 need_version=unknown
15084 case $host_os in
15085 aix3*)
15086 version_type=linux
15087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15088 shlibpath_var=LIBPATH
15090 # AIX 3 has no versioning support, so we append a major version to the name.
15091 soname_spec='${libname}${release}${shared_ext}$major'
15094 aix[4-9]*)
15095 version_type=linux
15096 need_lib_prefix=no
15097 need_version=no
15098 hardcode_into_libs=yes
15099 if test "$host_cpu" = ia64; then
15100 # AIX 5 supports IA64
15101 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15102 shlibpath_var=LD_LIBRARY_PATH
15103 else
15104 # With GCC up to 2.95.x, collect2 would create an import file
15105 # for dependence libraries. The import file would start with
15106 # the line `#! .'. This would cause the generated library to
15107 # depend on `.', always an invalid library. This was fixed in
15108 # development snapshots of GCC prior to 3.0.
15109 case $host_os in
15110 aix4 | aix4.[01] | aix4.[01].*)
15111 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15112 echo ' yes '
15113 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15115 else
15116 can_build_shared=no
15119 esac
15120 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15121 # soname into executable. Probably we can add versioning support to
15122 # collect2, so additional links can be useful in future.
15123 if test "$aix_use_runtimelinking" = yes; then
15124 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15125 # instead of lib<name>.a to let people know that these are not
15126 # typical AIX shared libraries.
15127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15128 else
15129 # We preserve .a as extension for shared libraries through AIX4.2
15130 # and later when we are not doing run time linking.
15131 library_names_spec='${libname}${release}.a $libname.a'
15132 soname_spec='${libname}${release}${shared_ext}$major'
15134 shlibpath_var=LIBPATH
15138 amigaos*)
15139 case $host_cpu in
15140 powerpc)
15141 # Since July 2007 AmigaOS4 officially supports .so libraries.
15142 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15145 m68k)
15146 library_names_spec='$libname.ixlibrary $libname.a'
15147 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15148 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'
15150 esac
15153 beos*)
15154 library_names_spec='${libname}${shared_ext}'
15155 dynamic_linker="$host_os ld.so"
15156 shlibpath_var=LIBRARY_PATH
15159 bsdi[45]*)
15160 version_type=linux
15161 need_version=no
15162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15163 soname_spec='${libname}${release}${shared_ext}$major'
15164 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15165 shlibpath_var=LD_LIBRARY_PATH
15166 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15167 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15168 # the default ld.so.conf also contains /usr/contrib/lib and
15169 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15170 # libtool to hard-code these into programs
15173 cygwin* | mingw* | pw32* | cegcc*)
15174 version_type=windows
15175 shrext_cmds=".dll"
15176 need_version=no
15177 need_lib_prefix=no
15179 case $GCC,$cc_basename in
15180 yes,*)
15181 # gcc
15182 library_names_spec='$libname.dll.a'
15183 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15184 postinstall_cmds='base_file=`basename \${file}`~
15185 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15186 dldir=$destdir/`dirname \$dlpath`~
15187 test -d \$dldir || mkdir -p \$dldir~
15188 $install_prog $dir/$dlname \$dldir/$dlname~
15189 chmod a+x \$dldir/$dlname~
15190 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15191 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15193 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15194 dlpath=$dir/\$dldll~
15195 $RM \$dlpath'
15196 shlibpath_overrides_runpath=yes
15198 case $host_os in
15199 cygwin*)
15200 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15201 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15204 mingw* | cegcc*)
15205 # MinGW DLLs use traditional 'lib' prefix
15206 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15208 pw32*)
15209 # pw32 DLLs use 'pw' prefix rather than 'lib'
15210 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15212 esac
15213 dynamic_linker='Win32 ld.exe'
15216 *,cl*)
15217 # Native MSVC
15218 libname_spec='$name'
15219 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15220 library_names_spec='${libname}.dll.lib'
15222 case $build_os in
15223 mingw*)
15224 sys_lib_search_path_spec=
15225 lt_save_ifs=$IFS
15226 IFS=';'
15227 for lt_path in $LIB
15229 IFS=$lt_save_ifs
15230 # Let DOS variable expansion print the short 8.3 style file name.
15231 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15232 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15233 done
15234 IFS=$lt_save_ifs
15235 # Convert to MSYS style.
15236 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15238 cygwin*)
15239 # Convert to unix form, then to dos form, then back to unix form
15240 # but this time dos style (no spaces!) so that the unix form looks
15241 # like /cygdrive/c/PROGRA~1:/cygdr...
15242 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15243 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15244 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15247 sys_lib_search_path_spec="$LIB"
15248 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15249 # It is most probably a Windows format PATH.
15250 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15251 else
15252 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15254 # FIXME: find the short name or the path components, as spaces are
15255 # common. (e.g. "Program Files" -> "PROGRA~1")
15257 esac
15259 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15260 postinstall_cmds='base_file=`basename \${file}`~
15261 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15262 dldir=$destdir/`dirname \$dlpath`~
15263 test -d \$dldir || mkdir -p \$dldir~
15264 $install_prog $dir/$dlname \$dldir/$dlname'
15265 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15266 dlpath=$dir/\$dldll~
15267 $RM \$dlpath'
15268 shlibpath_overrides_runpath=yes
15269 dynamic_linker='Win32 link.exe'
15273 # Assume MSVC wrapper
15274 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15275 dynamic_linker='Win32 ld.exe'
15277 esac
15278 # FIXME: first we should search . and the directory the executable is in
15279 shlibpath_var=PATH
15282 darwin* | rhapsody*)
15283 dynamic_linker="$host_os dyld"
15284 version_type=darwin
15285 need_lib_prefix=no
15286 need_version=no
15287 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15288 soname_spec='${libname}${release}${major}$shared_ext'
15289 shlibpath_overrides_runpath=yes
15290 shlibpath_var=DYLD_LIBRARY_PATH
15291 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15293 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15296 dgux*)
15297 version_type=linux
15298 need_lib_prefix=no
15299 need_version=no
15300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15301 soname_spec='${libname}${release}${shared_ext}$major'
15302 shlibpath_var=LD_LIBRARY_PATH
15305 freebsd1*)
15306 dynamic_linker=no
15309 freebsd* | dragonfly*)
15310 # DragonFly does not have aout. When/if they implement a new
15311 # versioning mechanism, adjust this.
15312 if test -x /usr/bin/objformat; then
15313 objformat=`/usr/bin/objformat`
15314 else
15315 case $host_os in
15316 freebsd[123]*) objformat=aout ;;
15317 *) objformat=elf ;;
15318 esac
15320 version_type=freebsd-$objformat
15321 case $version_type in
15322 freebsd-elf*)
15323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15324 need_version=no
15325 need_lib_prefix=no
15327 freebsd-*)
15328 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15329 need_version=yes
15331 esac
15332 shlibpath_var=LD_LIBRARY_PATH
15333 case $host_os in
15334 freebsd2*)
15335 shlibpath_overrides_runpath=yes
15337 freebsd3.[01]* | freebsdelf3.[01]*)
15338 shlibpath_overrides_runpath=yes
15339 hardcode_into_libs=yes
15341 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15342 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15343 shlibpath_overrides_runpath=no
15344 hardcode_into_libs=yes
15346 *) # from 4.6 on, and DragonFly
15347 shlibpath_overrides_runpath=yes
15348 hardcode_into_libs=yes
15350 esac
15353 gnu*)
15354 version_type=linux
15355 need_lib_prefix=no
15356 need_version=no
15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15358 soname_spec='${libname}${release}${shared_ext}$major'
15359 shlibpath_var=LD_LIBRARY_PATH
15360 hardcode_into_libs=yes
15363 haiku*)
15364 version_type=linux
15365 need_lib_prefix=no
15366 need_version=no
15367 dynamic_linker="$host_os runtime_loader"
15368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15369 soname_spec='${libname}${release}${shared_ext}$major'
15370 shlibpath_var=LIBRARY_PATH
15371 shlibpath_overrides_runpath=yes
15372 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15373 hardcode_into_libs=yes
15376 hpux9* | hpux10* | hpux11*)
15377 # Give a soname corresponding to the major version so that dld.sl refuses to
15378 # link against other versions.
15379 version_type=sunos
15380 need_lib_prefix=no
15381 need_version=no
15382 case $host_cpu in
15383 ia64*)
15384 shrext_cmds='.so'
15385 hardcode_into_libs=yes
15386 dynamic_linker="$host_os dld.so"
15387 shlibpath_var=LD_LIBRARY_PATH
15388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15390 soname_spec='${libname}${release}${shared_ext}$major'
15391 if test "X$HPUX_IA64_MODE" = X32; then
15392 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15393 else
15394 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15398 hppa*64*)
15399 shrext_cmds='.sl'
15400 hardcode_into_libs=yes
15401 dynamic_linker="$host_os dld.sl"
15402 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15403 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15405 soname_spec='${libname}${release}${shared_ext}$major'
15406 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15407 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15410 shrext_cmds='.sl'
15411 dynamic_linker="$host_os dld.sl"
15412 shlibpath_var=SHLIB_PATH
15413 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15415 soname_spec='${libname}${release}${shared_ext}$major'
15417 esac
15418 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15419 postinstall_cmds='chmod 555 $lib'
15420 # or fails outright, so override atomically:
15421 install_override_mode=555
15424 interix[3-9]*)
15425 version_type=linux
15426 need_lib_prefix=no
15427 need_version=no
15428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15429 soname_spec='${libname}${release}${shared_ext}$major'
15430 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15431 shlibpath_var=LD_LIBRARY_PATH
15432 shlibpath_overrides_runpath=no
15433 hardcode_into_libs=yes
15436 irix5* | irix6* | nonstopux*)
15437 case $host_os in
15438 nonstopux*) version_type=nonstopux ;;
15440 if test "$lt_cv_prog_gnu_ld" = yes; then
15441 version_type=linux
15442 else
15443 version_type=irix
15444 fi ;;
15445 esac
15446 need_lib_prefix=no
15447 need_version=no
15448 soname_spec='${libname}${release}${shared_ext}$major'
15449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15450 case $host_os in
15451 irix5* | nonstopux*)
15452 libsuff= shlibsuff=
15455 case $LD in # libtool.m4 will add one of these switches to LD
15456 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15457 libsuff= shlibsuff= libmagic=32-bit;;
15458 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15459 libsuff=32 shlibsuff=N32 libmagic=N32;;
15460 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15461 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15462 *) libsuff= shlibsuff= libmagic=never-match;;
15463 esac
15465 esac
15466 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15467 shlibpath_overrides_runpath=no
15468 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15469 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15470 hardcode_into_libs=yes
15473 # No shared lib support for Linux oldld, aout, or coff.
15474 linux*oldld* | linux*aout* | linux*coff*)
15475 dynamic_linker=no
15478 # This must be Linux ELF.
15479 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15480 version_type=linux
15481 need_lib_prefix=no
15482 need_version=no
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484 soname_spec='${libname}${release}${shared_ext}$major'
15485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15486 shlibpath_var=LD_LIBRARY_PATH
15487 shlibpath_overrides_runpath=no
15489 # Some binutils ld are patched to set DT_RUNPATH
15490 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15491 $as_echo_n "(cached) " >&6
15492 else
15493 lt_cv_shlibpath_overrides_runpath=no
15494 save_LDFLAGS=$LDFLAGS
15495 save_libdir=$libdir
15496 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15497 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15499 /* end confdefs.h. */
15502 main ()
15506 return 0;
15508 _ACEOF
15509 if ac_fn_cxx_try_link "$LINENO"; then :
15510 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15511 lt_cv_shlibpath_overrides_runpath=yes
15514 rm -f core conftest.err conftest.$ac_objext \
15515 conftest$ac_exeext conftest.$ac_ext
15516 LDFLAGS=$save_LDFLAGS
15517 libdir=$save_libdir
15521 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15523 # This implies no fast_install, which is unacceptable.
15524 # Some rework will be needed to allow for fast_install
15525 # before this can be enabled.
15526 hardcode_into_libs=yes
15528 # Append ld.so.conf contents to the search path
15529 if test -f /etc/ld.so.conf; then
15530 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' ' '`
15531 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15534 # We used to test for /lib/ld.so.1 and disable shared libraries on
15535 # powerpc, because MkLinux only supported shared libraries with the
15536 # GNU dynamic linker. Since this was broken with cross compilers,
15537 # most powerpc-linux boxes support dynamic linking these days and
15538 # people can always --disable-shared, the test was removed, and we
15539 # assume the GNU/Linux dynamic linker is in use.
15540 dynamic_linker='GNU/Linux ld.so'
15543 netbsd*)
15544 version_type=sunos
15545 need_lib_prefix=no
15546 need_version=no
15547 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15550 dynamic_linker='NetBSD (a.out) ld.so'
15551 else
15552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15553 soname_spec='${libname}${release}${shared_ext}$major'
15554 dynamic_linker='NetBSD ld.elf_so'
15556 shlibpath_var=LD_LIBRARY_PATH
15557 shlibpath_overrides_runpath=yes
15558 hardcode_into_libs=yes
15561 newsos6)
15562 version_type=linux
15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15564 shlibpath_var=LD_LIBRARY_PATH
15565 shlibpath_overrides_runpath=yes
15568 *nto* | *qnx*)
15569 version_type=qnx
15570 need_lib_prefix=no
15571 need_version=no
15572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15573 soname_spec='${libname}${release}${shared_ext}$major'
15574 shlibpath_var=LD_LIBRARY_PATH
15575 shlibpath_overrides_runpath=no
15576 hardcode_into_libs=yes
15577 dynamic_linker='ldqnx.so'
15580 openbsd*)
15581 version_type=sunos
15582 sys_lib_dlsearch_path_spec="/usr/lib"
15583 need_lib_prefix=no
15584 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15585 case $host_os in
15586 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15587 *) need_version=no ;;
15588 esac
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15591 shlibpath_var=LD_LIBRARY_PATH
15592 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15593 case $host_os in
15594 openbsd2.[89] | openbsd2.[89].*)
15595 shlibpath_overrides_runpath=no
15598 shlibpath_overrides_runpath=yes
15600 esac
15601 else
15602 shlibpath_overrides_runpath=yes
15606 os2*)
15607 libname_spec='$name'
15608 shrext_cmds=".dll"
15609 need_lib_prefix=no
15610 library_names_spec='$libname${shared_ext} $libname.a'
15611 dynamic_linker='OS/2 ld.exe'
15612 shlibpath_var=LIBPATH
15615 osf3* | osf4* | osf5*)
15616 version_type=osf
15617 need_lib_prefix=no
15618 need_version=no
15619 soname_spec='${libname}${release}${shared_ext}$major'
15620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15621 shlibpath_var=LD_LIBRARY_PATH
15622 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15623 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15626 rdos*)
15627 dynamic_linker=no
15630 solaris*)
15631 version_type=linux
15632 need_lib_prefix=no
15633 need_version=no
15634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635 soname_spec='${libname}${release}${shared_ext}$major'
15636 shlibpath_var=LD_LIBRARY_PATH
15637 shlibpath_overrides_runpath=yes
15638 hardcode_into_libs=yes
15639 # ldd complains unless libraries are executable
15640 postinstall_cmds='chmod +x $lib'
15643 sunos4*)
15644 version_type=sunos
15645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15646 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15647 shlibpath_var=LD_LIBRARY_PATH
15648 shlibpath_overrides_runpath=yes
15649 if test "$with_gnu_ld" = yes; then
15650 need_lib_prefix=no
15652 need_version=yes
15655 sysv4 | sysv4.3*)
15656 version_type=linux
15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658 soname_spec='${libname}${release}${shared_ext}$major'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 case $host_vendor in
15661 sni)
15662 shlibpath_overrides_runpath=no
15663 need_lib_prefix=no
15664 runpath_var=LD_RUN_PATH
15666 siemens)
15667 need_lib_prefix=no
15669 motorola)
15670 need_lib_prefix=no
15671 need_version=no
15672 shlibpath_overrides_runpath=no
15673 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15675 esac
15678 sysv4*MP*)
15679 if test -d /usr/nec ;then
15680 version_type=linux
15681 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15682 soname_spec='$libname${shared_ext}.$major'
15683 shlibpath_var=LD_LIBRARY_PATH
15687 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15688 version_type=freebsd-elf
15689 need_lib_prefix=no
15690 need_version=no
15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15692 soname_spec='${libname}${release}${shared_ext}$major'
15693 shlibpath_var=LD_LIBRARY_PATH
15694 shlibpath_overrides_runpath=yes
15695 hardcode_into_libs=yes
15696 if test "$with_gnu_ld" = yes; then
15697 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15698 else
15699 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15700 case $host_os in
15701 sco3.2v5*)
15702 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15704 esac
15706 sys_lib_dlsearch_path_spec='/usr/lib'
15709 tpf*)
15710 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15711 version_type=linux
15712 need_lib_prefix=no
15713 need_version=no
15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15715 shlibpath_var=LD_LIBRARY_PATH
15716 shlibpath_overrides_runpath=no
15717 hardcode_into_libs=yes
15720 uts4*)
15721 version_type=linux
15722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15723 soname_spec='${libname}${release}${shared_ext}$major'
15724 shlibpath_var=LD_LIBRARY_PATH
15728 dynamic_linker=no
15730 esac
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15732 $as_echo "$dynamic_linker" >&6; }
15733 test "$dynamic_linker" = no && can_build_shared=no
15735 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15736 if test "$GCC" = yes; then
15737 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15740 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15741 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15743 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15744 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15785 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15786 hardcode_action_CXX=
15787 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15788 test -n "$runpath_var_CXX" ||
15789 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15791 # We can hardcode non-existent directories.
15792 if test "$hardcode_direct_CXX" != no &&
15793 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15794 # have to relink, otherwise we might link with an installed library
15795 # when we should be linking with a yet-to-be-installed one
15796 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15797 test "$hardcode_minus_L_CXX" != no; then
15798 # Linking always hardcodes the temporary library directory.
15799 hardcode_action_CXX=relink
15800 else
15801 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15802 hardcode_action_CXX=immediate
15804 else
15805 # We cannot hardcode anything, or else we can only hardcode existing
15806 # directories.
15807 hardcode_action_CXX=unsupported
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15810 $as_echo "$hardcode_action_CXX" >&6; }
15812 if test "$hardcode_action_CXX" = relink ||
15813 test "$inherit_rpath_CXX" = yes; then
15814 # Fast installation is not supported
15815 enable_fast_install=no
15816 elif test "$shlibpath_overrides_runpath" = yes ||
15817 test "$enable_shared" = no; then
15818 # Fast installation is not necessary
15819 enable_fast_install=needless
15828 fi # test -n "$compiler"
15830 CC=$lt_save_CC
15831 CFLAGS=$lt_save_CFLAGS
15832 LDCXX=$LD
15833 LD=$lt_save_LD
15834 GCC=$lt_save_GCC
15835 with_gnu_ld=$lt_save_with_gnu_ld
15836 lt_cv_path_LDCXX=$lt_cv_path_LD
15837 lt_cv_path_LD=$lt_save_path_LD
15838 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15839 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15840 fi # test "$_lt_caught_CXX_error" != yes
15842 ac_ext=c
15843 ac_cpp='$CPP $CPPFLAGS'
15844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15850 $as_echo_n "checking whether ln -s works... " >&6; }
15851 LN_S=$as_ln_s
15852 if test "$LN_S" = "ln -s"; then
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15854 $as_echo "yes" >&6; }
15855 else
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15857 $as_echo "no, using $LN_S" >&6; }
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15862 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15863 set x ${MAKE-make}
15864 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15865 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
15866 $as_echo_n "(cached) " >&6
15867 else
15868 cat >conftest.make <<\_ACEOF
15869 SHELL = /bin/sh
15870 all:
15871 @echo '@@@%%%=$(MAKE)=@@@%%%'
15872 _ACEOF
15873 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15874 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15875 *@@@%%%=?*=@@@%%%*)
15876 eval ac_cv_prog_make_${ac_make}_set=yes;;
15878 eval ac_cv_prog_make_${ac_make}_set=no;;
15879 esac
15880 rm -f conftest.make
15882 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15884 $as_echo "yes" >&6; }
15885 SET_MAKE=
15886 else
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15888 $as_echo "no" >&6; }
15889 SET_MAKE="MAKE=${MAKE-make}"
15894 # Extract the first word of "gengetopt", so it can be a program name with args.
15895 set dummy gengetopt; ac_word=$2
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15897 $as_echo_n "checking for $ac_word... " >&6; }
15898 if ${ac_cv_path_GENGETOPT+:} false; then :
15899 $as_echo_n "(cached) " >&6
15900 else
15901 case $GENGETOPT in
15902 [\\/]* | ?:[\\/]*)
15903 ac_cv_path_GENGETOPT="$GENGETOPT" # Let the user override the test with a path.
15906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15907 for as_dir in $PATH
15909 IFS=$as_save_IFS
15910 test -z "$as_dir" && as_dir=.
15911 for ac_exec_ext in '' $ac_executable_extensions; do
15912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15913 ac_cv_path_GENGETOPT="$as_dir/$ac_word$ac_exec_ext"
15914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15915 break 2
15917 done
15918 done
15919 IFS=$as_save_IFS
15921 test -z "$ac_cv_path_GENGETOPT" && ac_cv_path_GENGETOPT="no"
15923 esac
15925 GENGETOPT=$ac_cv_path_GENGETOPT
15926 if test -n "$GENGETOPT"; then
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENGETOPT" >&5
15928 $as_echo "$GENGETOPT" >&6; }
15929 else
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15931 $as_echo "no" >&6; }
15935 if test x"$GENGETOPT" != "xno"; then
15936 HAVE_GENGETOPT_TRUE=
15937 HAVE_GENGETOPT_FALSE='#'
15938 else
15939 HAVE_GENGETOPT_TRUE='#'
15940 HAVE_GENGETOPT_FALSE=
15945 # Extract the first word of "doxygen", so it can be a program name with args.
15946 set dummy doxygen; ac_word=$2
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15948 $as_echo_n "checking for $ac_word... " >&6; }
15949 if ${ac_cv_path_DOXYGEN+:} false; then :
15950 $as_echo_n "(cached) " >&6
15951 else
15952 case $DOXYGEN in
15953 [\\/]* | ?:[\\/]*)
15954 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
15957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15958 for as_dir in $PATH
15960 IFS=$as_save_IFS
15961 test -z "$as_dir" && as_dir=.
15962 for ac_exec_ext in '' $ac_executable_extensions; do
15963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15964 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
15965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15966 break 2
15968 done
15969 done
15970 IFS=$as_save_IFS
15972 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="no"
15974 esac
15976 DOXYGEN=$ac_cv_path_DOXYGEN
15977 if test -n "$DOXYGEN"; then
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
15979 $as_echo "$DOXYGEN" >&6; }
15980 else
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15982 $as_echo "no" >&6; }
15986 if test x"$DOXYGEN" != "xno"; then
15987 HAVE_DOXYGEN_TRUE=
15988 HAVE_DOXYGEN_FALSE='#'
15989 else
15990 HAVE_DOXYGEN_TRUE='#'
15991 HAVE_DOXYGEN_FALSE=
15996 # Extract the first word of "perl", so it can be a program name with args.
15997 set dummy perl; ac_word=$2
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15999 $as_echo_n "checking for $ac_word... " >&6; }
16000 if ${ac_cv_path_PERL+:} false; then :
16001 $as_echo_n "(cached) " >&6
16002 else
16003 case $PERL in
16004 [\\/]* | ?:[\\/]*)
16005 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
16008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16009 for as_dir in $PATH
16011 IFS=$as_save_IFS
16012 test -z "$as_dir" && as_dir=.
16013 for ac_exec_ext in '' $ac_executable_extensions; do
16014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16015 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
16016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16017 break 2
16019 done
16020 done
16021 IFS=$as_save_IFS
16023 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
16025 esac
16027 PERL=$ac_cv_path_PERL
16028 if test -n "$PERL"; then
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
16030 $as_echo "$PERL" >&6; }
16031 else
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16033 $as_echo "no" >&6; }
16037 if test x"$PERL" != "xno"; then
16038 HAVE_PERL_TRUE=
16039 HAVE_PERL_FALSE='#'
16040 else
16041 HAVE_PERL_TRUE='#'
16042 HAVE_PERL_FALSE=
16047 have_pod_checker=no
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pod::Checker" >&5
16049 $as_echo_n "checking for Pod::Checker... " >&6; }
16050 if $PERL -mPod::Checker >/dev/null 2>&1 ; then
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16052 $as_echo "yes" >&6; }
16053 have_pod_checker=yes
16055 if test x"$have_pod_checker" = "xyes"; then
16056 HAVE_PERL_POD_CHECKER_TRUE=
16057 HAVE_PERL_POD_CHECKER_FALSE='#'
16058 else
16059 HAVE_PERL_POD_CHECKER_TRUE='#'
16060 HAVE_PERL_POD_CHECKER_FALSE=
16064 # Extract the first word of "pod2man", so it can be a program name with args.
16065 set dummy pod2man; ac_word=$2
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16067 $as_echo_n "checking for $ac_word... " >&6; }
16068 if ${ac_cv_path_POD2MAN+:} false; then :
16069 $as_echo_n "(cached) " >&6
16070 else
16071 case $POD2MAN in
16072 [\\/]* | ?:[\\/]*)
16073 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
16076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16077 for as_dir in $PATH
16079 IFS=$as_save_IFS
16080 test -z "$as_dir" && as_dir=.
16081 for ac_exec_ext in '' $ac_executable_extensions; do
16082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16083 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
16084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16085 break 2
16087 done
16088 done
16089 IFS=$as_save_IFS
16091 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
16093 esac
16095 POD2MAN=$ac_cv_path_POD2MAN
16096 if test -n "$POD2MAN"; then
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
16098 $as_echo "$POD2MAN" >&6; }
16099 else
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16101 $as_echo "no" >&6; }
16105 if test x"$POD2MAN" != "xno"; then
16106 HAVE_POD2MAN_TRUE=
16107 HAVE_POD2MAN_FALSE='#'
16108 else
16109 HAVE_POD2MAN_TRUE='#'
16110 HAVE_POD2MAN_FALSE=
16115 # Extract the first word of "pod2html", so it can be a program name with args.
16116 set dummy pod2html; ac_word=$2
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16118 $as_echo_n "checking for $ac_word... " >&6; }
16119 if ${ac_cv_path_POD2HTML+:} false; then :
16120 $as_echo_n "(cached) " >&6
16121 else
16122 case $POD2HTML in
16123 [\\/]* | ?:[\\/]*)
16124 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
16127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16128 for as_dir in $PATH
16130 IFS=$as_save_IFS
16131 test -z "$as_dir" && as_dir=.
16132 for ac_exec_ext in '' $ac_executable_extensions; do
16133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16134 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
16135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16136 break 2
16138 done
16139 done
16140 IFS=$as_save_IFS
16142 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="no"
16144 esac
16146 POD2HTML=$ac_cv_path_POD2HTML
16147 if test -n "$POD2HTML"; then
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2HTML" >&5
16149 $as_echo "$POD2HTML" >&6; }
16150 else
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16152 $as_echo "no" >&6; }
16156 if test x"$POD2HTML" != "xno"; then
16157 HAVE_POD2HTML_TRUE=
16158 HAVE_POD2HTML_FALSE='#'
16159 else
16160 HAVE_POD2HTML_TRUE='#'
16161 HAVE_POD2HTML_FALSE=
16166 # Extract the first word of "date", so it can be a program name with args.
16167 set dummy date; ac_word=$2
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16169 $as_echo_n "checking for $ac_word... " >&6; }
16170 if ${ac_cv_path_DATE+:} false; then :
16171 $as_echo_n "(cached) " >&6
16172 else
16173 case $DATE in
16174 [\\/]* | ?:[\\/]*)
16175 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
16178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16179 for as_dir in $PATH
16181 IFS=$as_save_IFS
16182 test -z "$as_dir" && as_dir=.
16183 for ac_exec_ext in '' $ac_executable_extensions; do
16184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16185 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
16186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16187 break 2
16189 done
16190 done
16191 IFS=$as_save_IFS
16193 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="no"
16195 esac
16197 DATE=$ac_cv_path_DATE
16198 if test -n "$DATE"; then
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
16200 $as_echo "$DATE" >&6; }
16201 else
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16203 $as_echo "no" >&6; }
16207 if test x"$DATE" != "xno" ; then
16208 build_date=`"$DATE" +%Y-%m-%d 2>/dev/null`
16209 if test x"$build_date" != "x" ; then
16211 cat >>confdefs.h <<_ACEOF
16212 #define BUILD_DATE "$build_date"
16213 _ACEOF
16218 # Extract the first word of "git", so it can be a program name with args.
16219 set dummy git; ac_word=$2
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16221 $as_echo_n "checking for $ac_word... " >&6; }
16222 if ${ac_cv_path_GIT+:} false; then :
16223 $as_echo_n "(cached) " >&6
16224 else
16225 case $GIT in
16226 [\\/]* | ?:[\\/]*)
16227 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
16230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16231 for as_dir in $PATH
16233 IFS=$as_save_IFS
16234 test -z "$as_dir" && as_dir=.
16235 for ac_exec_ext in '' $ac_executable_extensions; do
16236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16237 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
16238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16239 break 2
16241 done
16242 done
16243 IFS=$as_save_IFS
16245 test -z "$ac_cv_path_GIT" && ac_cv_path_GIT="no"
16247 esac
16249 GIT=$ac_cv_path_GIT
16250 if test -n "$GIT"; then
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16252 $as_echo "$GIT" >&6; }
16253 else
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16255 $as_echo "no" >&6; }
16259 if test x"$GIT" != "xno" ; then
16260 QUVI_BRANCH=master
16261 git_describe=`"$GIT" describe "$QUVI_BRANCH" 2>/dev/null`
16262 if test x"$git_describe" != "x" ; then
16264 cat >>confdefs.h <<_ACEOF
16265 #define GIT_DESCRIBE "$git_describe"
16266 _ACEOF
16271 # Checks for libraries.
16273 if test "X$prefix" = "XNONE"; then
16274 acl_final_prefix="$ac_default_prefix"
16275 else
16276 acl_final_prefix="$prefix"
16278 if test "X$exec_prefix" = "XNONE"; then
16279 acl_final_exec_prefix='${prefix}'
16280 else
16281 acl_final_exec_prefix="$exec_prefix"
16283 acl_save_prefix="$prefix"
16284 prefix="$acl_final_prefix"
16285 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16286 prefix="$acl_save_prefix"
16289 # Check whether --with-gnu-ld was given.
16290 if test "${with_gnu_ld+set}" = set; then :
16291 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16292 else
16293 with_gnu_ld=no
16296 # Prepare PATH_SEPARATOR.
16297 # The user is always right.
16298 if test "${PATH_SEPARATOR+set}" != set; then
16299 echo "#! /bin/sh" >conf$$.sh
16300 echo "exit 0" >>conf$$.sh
16301 chmod +x conf$$.sh
16302 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16303 PATH_SEPARATOR=';'
16304 else
16305 PATH_SEPARATOR=:
16307 rm -f conf$$.sh
16309 ac_prog=ld
16310 if test "$GCC" = yes; then
16311 # Check if gcc -print-prog-name=ld gives a path.
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16313 $as_echo_n "checking for ld used by GCC... " >&6; }
16314 case $host in
16315 *-*-mingw*)
16316 # gcc leaves a trailing carriage return which upsets mingw
16317 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16319 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16320 esac
16321 case $ac_prog in
16322 # Accept absolute paths.
16323 [\\/]* | [A-Za-z]:[\\/]*)
16324 re_direlt='/[^/][^/]*/\.\./'
16325 # Canonicalize the path of ld
16326 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16327 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16328 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16329 done
16330 test -z "$LD" && LD="$ac_prog"
16333 # If it fails, then pretend we aren't using GCC.
16334 ac_prog=ld
16337 # If it is relative, then search for the first ld in PATH.
16338 with_gnu_ld=unknown
16340 esac
16341 elif test "$with_gnu_ld" = yes; then
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16343 $as_echo_n "checking for GNU ld... " >&6; }
16344 else
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16346 $as_echo_n "checking for non-GNU ld... " >&6; }
16348 if ${acl_cv_path_LD+:} false; then :
16349 $as_echo_n "(cached) " >&6
16350 else
16351 if test -z "$LD"; then
16352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16353 for ac_dir in $PATH; do
16354 test -z "$ac_dir" && ac_dir=.
16355 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16356 acl_cv_path_LD="$ac_dir/$ac_prog"
16357 # Check to see if the program is GNU ld. I'd rather use --version,
16358 # but apparently some GNU ld's only accept -v.
16359 # Break only if it was the GNU/non-GNU ld that we prefer.
16360 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16361 *GNU* | *'with BFD'*)
16362 test "$with_gnu_ld" != no && break ;;
16364 test "$with_gnu_ld" != yes && break ;;
16365 esac
16367 done
16368 IFS="$ac_save_ifs"
16369 else
16370 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16374 LD="$acl_cv_path_LD"
16375 if test -n "$LD"; then
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16377 $as_echo "$LD" >&6; }
16378 else
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16380 $as_echo "no" >&6; }
16382 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16384 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16385 if ${acl_cv_prog_gnu_ld+:} false; then :
16386 $as_echo_n "(cached) " >&6
16387 else
16388 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16389 case `$LD -v 2>&1 </dev/null` in
16390 *GNU* | *'with BFD'*)
16391 acl_cv_prog_gnu_ld=yes ;;
16393 acl_cv_prog_gnu_ld=no ;;
16394 esac
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16397 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16398 with_gnu_ld=$acl_cv_prog_gnu_ld
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16404 $as_echo_n "checking for shared library run path origin... " >&6; }
16405 if ${acl_cv_rpath+:} false; then :
16406 $as_echo_n "(cached) " >&6
16407 else
16409 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16410 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16411 . ./conftest.sh
16412 rm -f ./conftest.sh
16413 acl_cv_rpath=done
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16417 $as_echo "$acl_cv_rpath" >&6; }
16418 wl="$acl_cv_wl"
16419 acl_libext="$acl_cv_libext"
16420 acl_shlibext="$acl_cv_shlibext"
16421 acl_libname_spec="$acl_cv_libname_spec"
16422 acl_library_names_spec="$acl_cv_library_names_spec"
16423 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16424 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16425 acl_hardcode_direct="$acl_cv_hardcode_direct"
16426 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16427 # Check whether --enable-rpath was given.
16428 if test "${enable_rpath+set}" = set; then :
16429 enableval=$enable_rpath; :
16430 else
16431 enable_rpath=yes
16437 acl_libdirstem=lib
16438 acl_libdirstem2=
16439 case "$host_os" in
16440 solaris*)
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
16442 $as_echo_n "checking for 64-bit host... " >&6; }
16443 if ${gl_cv_solaris_64bit+:} false; then :
16444 $as_echo_n "(cached) " >&6
16445 else
16446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16447 /* end confdefs.h. */
16449 #ifdef _LP64
16450 sixtyfour bits
16451 #endif
16453 _ACEOF
16454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16455 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
16456 gl_cv_solaris_64bit=yes
16457 else
16458 gl_cv_solaris_64bit=no
16460 rm -f conftest*
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
16465 $as_echo "$gl_cv_solaris_64bit" >&6; }
16466 if test $gl_cv_solaris_64bit = yes; then
16467 acl_libdirstem=lib/64
16468 case "$host_cpu" in
16469 sparc*) acl_libdirstem2=lib/sparcv9 ;;
16470 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
16471 esac
16475 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16476 if test -n "$searchpath"; then
16477 acl_save_IFS="${IFS= }"; IFS=":"
16478 for searchdir in $searchpath; do
16479 if test -d "$searchdir"; then
16480 case "$searchdir" in
16481 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16482 */../ | */.. )
16483 # Better ignore directories of this form. They are misleading.
16485 *) searchdir=`cd "$searchdir" && pwd`
16486 case "$searchdir" in
16487 */lib64 ) acl_libdirstem=lib64 ;;
16488 esac ;;
16489 esac
16491 done
16492 IFS="$acl_save_IFS"
16495 esac
16496 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16509 use_additional=yes
16511 acl_save_prefix="$prefix"
16512 prefix="$acl_final_prefix"
16513 acl_save_exec_prefix="$exec_prefix"
16514 exec_prefix="$acl_final_exec_prefix"
16516 eval additional_includedir=\"$includedir\"
16517 eval additional_libdir=\"$libdir\"
16519 exec_prefix="$acl_save_exec_prefix"
16520 prefix="$acl_save_prefix"
16523 # Check whether --with-libiconv-prefix was given.
16524 if test "${with_libiconv_prefix+set}" = set; then :
16525 withval=$with_libiconv_prefix;
16526 if test "X$withval" = "Xno"; then
16527 use_additional=no
16528 else
16529 if test "X$withval" = "X"; then
16531 acl_save_prefix="$prefix"
16532 prefix="$acl_final_prefix"
16533 acl_save_exec_prefix="$exec_prefix"
16534 exec_prefix="$acl_final_exec_prefix"
16536 eval additional_includedir=\"$includedir\"
16537 eval additional_libdir=\"$libdir\"
16539 exec_prefix="$acl_save_exec_prefix"
16540 prefix="$acl_save_prefix"
16542 else
16543 additional_includedir="$withval/include"
16544 additional_libdir="$withval/$acl_libdirstem"
16545 if test "$acl_libdirstem2" != "$acl_libdirstem" \
16546 && ! test -d "$withval/$acl_libdirstem"; then
16547 additional_libdir="$withval/$acl_libdirstem2"
16554 LIBICONV=
16555 LTLIBICONV=
16556 INCICONV=
16557 LIBICONV_PREFIX=
16558 HAVE_LIBICONV=
16559 rpathdirs=
16560 ltrpathdirs=
16561 names_already_handled=
16562 names_next_round='iconv '
16563 while test -n "$names_next_round"; do
16564 names_this_round="$names_next_round"
16565 names_next_round=
16566 for name in $names_this_round; do
16567 already_handled=
16568 for n in $names_already_handled; do
16569 if test "$n" = "$name"; then
16570 already_handled=yes
16571 break
16573 done
16574 if test -z "$already_handled"; then
16575 names_already_handled="$names_already_handled $name"
16576 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16577 eval value=\"\$HAVE_LIB$uppername\"
16578 if test -n "$value"; then
16579 if test "$value" = yes; then
16580 eval value=\"\$LIB$uppername\"
16581 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16582 eval value=\"\$LTLIB$uppername\"
16583 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16584 else
16587 else
16588 found_dir=
16589 found_la=
16590 found_so=
16591 found_a=
16592 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
16593 if test -n "$acl_shlibext"; then
16594 shrext=".$acl_shlibext" # typically: shrext=.so
16595 else
16596 shrext=
16598 if test $use_additional = yes; then
16599 dir="$additional_libdir"
16600 if test -n "$acl_shlibext"; then
16601 if test -f "$dir/$libname$shrext"; then
16602 found_dir="$dir"
16603 found_so="$dir/$libname$shrext"
16604 else
16605 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16606 ver=`(cd "$dir" && \
16607 for f in "$libname$shrext".*; do echo "$f"; done \
16608 | sed -e "s,^$libname$shrext\\\\.,," \
16609 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16610 | sed 1q ) 2>/dev/null`
16611 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16612 found_dir="$dir"
16613 found_so="$dir/$libname$shrext.$ver"
16615 else
16616 eval library_names=\"$acl_library_names_spec\"
16617 for f in $library_names; do
16618 if test -f "$dir/$f"; then
16619 found_dir="$dir"
16620 found_so="$dir/$f"
16621 break
16623 done
16627 if test "X$found_dir" = "X"; then
16628 if test -f "$dir/$libname.$acl_libext"; then
16629 found_dir="$dir"
16630 found_a="$dir/$libname.$acl_libext"
16633 if test "X$found_dir" != "X"; then
16634 if test -f "$dir/$libname.la"; then
16635 found_la="$dir/$libname.la"
16639 if test "X$found_dir" = "X"; then
16640 for x in $LDFLAGS $LTLIBICONV; do
16642 acl_save_prefix="$prefix"
16643 prefix="$acl_final_prefix"
16644 acl_save_exec_prefix="$exec_prefix"
16645 exec_prefix="$acl_final_exec_prefix"
16646 eval x=\"$x\"
16647 exec_prefix="$acl_save_exec_prefix"
16648 prefix="$acl_save_prefix"
16650 case "$x" in
16651 -L*)
16652 dir=`echo "X$x" | sed -e 's/^X-L//'`
16653 if test -n "$acl_shlibext"; then
16654 if test -f "$dir/$libname$shrext"; then
16655 found_dir="$dir"
16656 found_so="$dir/$libname$shrext"
16657 else
16658 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16659 ver=`(cd "$dir" && \
16660 for f in "$libname$shrext".*; do echo "$f"; done \
16661 | sed -e "s,^$libname$shrext\\\\.,," \
16662 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16663 | sed 1q ) 2>/dev/null`
16664 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16665 found_dir="$dir"
16666 found_so="$dir/$libname$shrext.$ver"
16668 else
16669 eval library_names=\"$acl_library_names_spec\"
16670 for f in $library_names; do
16671 if test -f "$dir/$f"; then
16672 found_dir="$dir"
16673 found_so="$dir/$f"
16674 break
16676 done
16680 if test "X$found_dir" = "X"; then
16681 if test -f "$dir/$libname.$acl_libext"; then
16682 found_dir="$dir"
16683 found_a="$dir/$libname.$acl_libext"
16686 if test "X$found_dir" != "X"; then
16687 if test -f "$dir/$libname.la"; then
16688 found_la="$dir/$libname.la"
16692 esac
16693 if test "X$found_dir" != "X"; then
16694 break
16696 done
16698 if test "X$found_dir" != "X"; then
16699 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16700 if test "X$found_so" != "X"; then
16701 if test "$enable_rpath" = no \
16702 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16703 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16704 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16705 else
16706 haveit=
16707 for x in $ltrpathdirs; do
16708 if test "X$x" = "X$found_dir"; then
16709 haveit=yes
16710 break
16712 done
16713 if test -z "$haveit"; then
16714 ltrpathdirs="$ltrpathdirs $found_dir"
16716 if test "$acl_hardcode_direct" = yes; then
16717 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16718 else
16719 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16720 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16721 haveit=
16722 for x in $rpathdirs; do
16723 if test "X$x" = "X$found_dir"; then
16724 haveit=yes
16725 break
16727 done
16728 if test -z "$haveit"; then
16729 rpathdirs="$rpathdirs $found_dir"
16731 else
16732 haveit=
16733 for x in $LDFLAGS $LIBICONV; do
16735 acl_save_prefix="$prefix"
16736 prefix="$acl_final_prefix"
16737 acl_save_exec_prefix="$exec_prefix"
16738 exec_prefix="$acl_final_exec_prefix"
16739 eval x=\"$x\"
16740 exec_prefix="$acl_save_exec_prefix"
16741 prefix="$acl_save_prefix"
16743 if test "X$x" = "X-L$found_dir"; then
16744 haveit=yes
16745 break
16747 done
16748 if test -z "$haveit"; then
16749 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16751 if test "$acl_hardcode_minus_L" != no; then
16752 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16753 else
16754 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16759 else
16760 if test "X$found_a" != "X"; then
16761 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16762 else
16763 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16766 additional_includedir=
16767 case "$found_dir" in
16768 */$acl_libdirstem | */$acl_libdirstem/)
16769 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16770 if test "$name" = 'iconv'; then
16771 LIBICONV_PREFIX="$basedir"
16773 additional_includedir="$basedir/include"
16775 */$acl_libdirstem2 | */$acl_libdirstem2/)
16776 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16777 if test "$name" = 'iconv'; then
16778 LIBICONV_PREFIX="$basedir"
16780 additional_includedir="$basedir/include"
16782 esac
16783 if test "X$additional_includedir" != "X"; then
16784 if test "X$additional_includedir" != "X/usr/include"; then
16785 haveit=
16786 if test "X$additional_includedir" = "X/usr/local/include"; then
16787 if test -n "$GCC"; then
16788 case $host_os in
16789 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16790 esac
16793 if test -z "$haveit"; then
16794 for x in $CPPFLAGS $INCICONV; do
16796 acl_save_prefix="$prefix"
16797 prefix="$acl_final_prefix"
16798 acl_save_exec_prefix="$exec_prefix"
16799 exec_prefix="$acl_final_exec_prefix"
16800 eval x=\"$x\"
16801 exec_prefix="$acl_save_exec_prefix"
16802 prefix="$acl_save_prefix"
16804 if test "X$x" = "X-I$additional_includedir"; then
16805 haveit=yes
16806 break
16808 done
16809 if test -z "$haveit"; then
16810 if test -d "$additional_includedir"; then
16811 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16817 if test -n "$found_la"; then
16818 save_libdir="$libdir"
16819 case "$found_la" in
16820 */* | *\\*) . "$found_la" ;;
16821 *) . "./$found_la" ;;
16822 esac
16823 libdir="$save_libdir"
16824 for dep in $dependency_libs; do
16825 case "$dep" in
16826 -L*)
16827 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16828 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16829 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16830 haveit=
16831 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16832 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16833 if test -n "$GCC"; then
16834 case $host_os in
16835 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16836 esac
16839 if test -z "$haveit"; then
16840 haveit=
16841 for x in $LDFLAGS $LIBICONV; do
16843 acl_save_prefix="$prefix"
16844 prefix="$acl_final_prefix"
16845 acl_save_exec_prefix="$exec_prefix"
16846 exec_prefix="$acl_final_exec_prefix"
16847 eval x=\"$x\"
16848 exec_prefix="$acl_save_exec_prefix"
16849 prefix="$acl_save_prefix"
16851 if test "X$x" = "X-L$additional_libdir"; then
16852 haveit=yes
16853 break
16855 done
16856 if test -z "$haveit"; then
16857 if test -d "$additional_libdir"; then
16858 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16861 haveit=
16862 for x in $LDFLAGS $LTLIBICONV; do
16864 acl_save_prefix="$prefix"
16865 prefix="$acl_final_prefix"
16866 acl_save_exec_prefix="$exec_prefix"
16867 exec_prefix="$acl_final_exec_prefix"
16868 eval x=\"$x\"
16869 exec_prefix="$acl_save_exec_prefix"
16870 prefix="$acl_save_prefix"
16872 if test "X$x" = "X-L$additional_libdir"; then
16873 haveit=yes
16874 break
16876 done
16877 if test -z "$haveit"; then
16878 if test -d "$additional_libdir"; then
16879 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16885 -R*)
16886 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16887 if test "$enable_rpath" != no; then
16888 haveit=
16889 for x in $rpathdirs; do
16890 if test "X$x" = "X$dir"; then
16891 haveit=yes
16892 break
16894 done
16895 if test -z "$haveit"; then
16896 rpathdirs="$rpathdirs $dir"
16898 haveit=
16899 for x in $ltrpathdirs; do
16900 if test "X$x" = "X$dir"; then
16901 haveit=yes
16902 break
16904 done
16905 if test -z "$haveit"; then
16906 ltrpathdirs="$ltrpathdirs $dir"
16910 -l*)
16911 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16913 *.la)
16914 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16917 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16918 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16920 esac
16921 done
16923 else
16924 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16925 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16929 done
16930 done
16931 if test "X$rpathdirs" != "X"; then
16932 if test -n "$acl_hardcode_libdir_separator"; then
16933 alldirs=
16934 for found_dir in $rpathdirs; do
16935 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16936 done
16937 acl_save_libdir="$libdir"
16938 libdir="$alldirs"
16939 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16940 libdir="$acl_save_libdir"
16941 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16942 else
16943 for found_dir in $rpathdirs; do
16944 acl_save_libdir="$libdir"
16945 libdir="$found_dir"
16946 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16947 libdir="$acl_save_libdir"
16948 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16949 done
16952 if test "X$ltrpathdirs" != "X"; then
16953 for found_dir in $ltrpathdirs; do
16954 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16955 done
16969 am_save_CPPFLAGS="$CPPFLAGS"
16971 for element in $INCICONV; do
16972 haveit=
16973 for x in $CPPFLAGS; do
16975 acl_save_prefix="$prefix"
16976 prefix="$acl_final_prefix"
16977 acl_save_exec_prefix="$exec_prefix"
16978 exec_prefix="$acl_final_exec_prefix"
16979 eval x=\"$x\"
16980 exec_prefix="$acl_save_exec_prefix"
16981 prefix="$acl_save_prefix"
16983 if test "X$x" = "X$element"; then
16984 haveit=yes
16985 break
16987 done
16988 if test -z "$haveit"; then
16989 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16991 done
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
16995 $as_echo_n "checking for iconv... " >&6; }
16996 if ${am_cv_func_iconv+:} false; then :
16997 $as_echo_n "(cached) " >&6
16998 else
17000 am_cv_func_iconv="no, consider installing GNU libiconv"
17001 am_cv_lib_iconv=no
17002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17003 /* end confdefs.h. */
17004 #include <stdlib.h>
17005 #include <iconv.h>
17007 main ()
17009 iconv_t cd = iconv_open("","");
17010 iconv(cd,NULL,NULL,NULL,NULL);
17011 iconv_close(cd);
17013 return 0;
17015 _ACEOF
17016 if ac_fn_c_try_link "$LINENO"; then :
17017 am_cv_func_iconv=yes
17019 rm -f core conftest.err conftest.$ac_objext \
17020 conftest$ac_exeext conftest.$ac_ext
17021 if test "$am_cv_func_iconv" != yes; then
17022 am_save_LIBS="$LIBS"
17023 LIBS="$LIBS $LIBICONV"
17024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17025 /* end confdefs.h. */
17026 #include <stdlib.h>
17027 #include <iconv.h>
17029 main ()
17031 iconv_t cd = iconv_open("","");
17032 iconv(cd,NULL,NULL,NULL,NULL);
17033 iconv_close(cd);
17035 return 0;
17037 _ACEOF
17038 if ac_fn_c_try_link "$LINENO"; then :
17039 am_cv_lib_iconv=yes
17040 am_cv_func_iconv=yes
17042 rm -f core conftest.err conftest.$ac_objext \
17043 conftest$ac_exeext conftest.$ac_ext
17044 LIBS="$am_save_LIBS"
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17049 $as_echo "$am_cv_func_iconv" >&6; }
17050 if test "$am_cv_func_iconv" = yes; then
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17052 $as_echo_n "checking for working iconv... " >&6; }
17053 if ${am_cv_func_iconv_works+:} false; then :
17054 $as_echo_n "(cached) " >&6
17055 else
17057 am_save_LIBS="$LIBS"
17058 if test $am_cv_lib_iconv = yes; then
17059 LIBS="$LIBS $LIBICONV"
17061 if test "$cross_compiling" = yes; then :
17062 case "$host_os" in
17063 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17064 *) am_cv_func_iconv_works="guessing yes" ;;
17065 esac
17066 else
17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17068 /* end confdefs.h. */
17070 #include <iconv.h>
17071 #include <string.h>
17072 int main ()
17074 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
17075 returns. */
17077 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17078 if (cd_utf8_to_88591 != (iconv_t)(-1))
17080 static const char input[] = "\342\202\254"; /* EURO SIGN */
17081 char buf[10];
17082 const char *inptr = input;
17083 size_t inbytesleft = strlen (input);
17084 char *outptr = buf;
17085 size_t outbytesleft = sizeof (buf);
17086 size_t res = iconv (cd_utf8_to_88591,
17087 (char **) &inptr, &inbytesleft,
17088 &outptr, &outbytesleft);
17089 if (res == 0)
17090 return 1;
17093 /* Test against Solaris 10 bug: Failures are not distinguishable from
17094 successful returns. */
17096 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17097 if (cd_ascii_to_88591 != (iconv_t)(-1))
17099 static const char input[] = "\263";
17100 char buf[10];
17101 const char *inptr = input;
17102 size_t inbytesleft = strlen (input);
17103 char *outptr = buf;
17104 size_t outbytesleft = sizeof (buf);
17105 size_t res = iconv (cd_ascii_to_88591,
17106 (char **) &inptr, &inbytesleft,
17107 &outptr, &outbytesleft);
17108 if (res == 0)
17109 return 1;
17112 #if 0 /* This bug could be worked around by the caller. */
17113 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
17115 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17116 if (cd_88591_to_utf8 != (iconv_t)(-1))
17118 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17119 char buf[50];
17120 const char *inptr = input;
17121 size_t inbytesleft = strlen (input);
17122 char *outptr = buf;
17123 size_t outbytesleft = sizeof (buf);
17124 size_t res = iconv (cd_88591_to_utf8,
17125 (char **) &inptr, &inbytesleft,
17126 &outptr, &outbytesleft);
17127 if ((int)res > 0)
17128 return 1;
17131 #endif
17132 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17133 provided. */
17134 if (/* Try standardized names. */
17135 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
17136 /* Try IRIX, OSF/1 names. */
17137 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
17138 /* Try AIX names. */
17139 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
17140 /* Try HP-UX names. */
17141 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
17142 return 1;
17143 return 0;
17145 _ACEOF
17146 if ac_fn_c_try_run "$LINENO"; then :
17147 am_cv_func_iconv_works=yes
17148 else
17149 am_cv_func_iconv_works=no
17151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17152 conftest.$ac_objext conftest.beam conftest.$ac_ext
17155 LIBS="$am_save_LIBS"
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17159 $as_echo "$am_cv_func_iconv_works" >&6; }
17160 case "$am_cv_func_iconv_works" in
17161 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17162 *) am_func_iconv=yes ;;
17163 esac
17164 else
17165 am_func_iconv=no am_cv_lib_iconv=no
17167 if test "$am_func_iconv" = yes; then
17169 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17172 if test "$am_cv_lib_iconv" = yes; then
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17174 $as_echo_n "checking how to link with libiconv... " >&6; }
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17176 $as_echo "$LIBICONV" >&6; }
17177 else
17178 CPPFLAGS="$am_save_CPPFLAGS"
17179 LIBICONV=
17180 LTLIBICONV=
17185 if test "$am_cv_func_iconv" = yes; then
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
17187 $as_echo_n "checking for iconv declaration... " >&6; }
17188 if ${am_cv_proto_iconv+:} false; then :
17189 $as_echo_n "(cached) " >&6
17190 else
17192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193 /* end confdefs.h. */
17195 #include <stdlib.h>
17196 #include <iconv.h>
17197 extern
17198 #ifdef __cplusplus
17200 #endif
17201 #if defined(__STDC__) || defined(__cplusplus)
17202 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17203 #else
17204 size_t iconv();
17205 #endif
17208 main ()
17212 return 0;
17214 _ACEOF
17215 if ac_fn_c_try_compile "$LINENO"; then :
17216 am_cv_proto_iconv_arg1=""
17217 else
17218 am_cv_proto_iconv_arg1="const"
17220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17221 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
17224 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
17226 $am_cv_proto_iconv" >&5
17227 $as_echo "
17228 $am_cv_proto_iconv" >&6; }
17230 cat >>confdefs.h <<_ACEOF
17231 #define ICONV_CONST $am_cv_proto_iconv_arg1
17232 _ACEOF
17242 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17243 if test -n "$ac_tool_prefix"; then
17244 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17245 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17247 $as_echo_n "checking for $ac_word... " >&6; }
17248 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17249 $as_echo_n "(cached) " >&6
17250 else
17251 case $PKG_CONFIG in
17252 [\\/]* | ?:[\\/]*)
17253 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17257 for as_dir in $PATH
17259 IFS=$as_save_IFS
17260 test -z "$as_dir" && as_dir=.
17261 for ac_exec_ext in '' $ac_executable_extensions; do
17262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17263 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17265 break 2
17267 done
17268 done
17269 IFS=$as_save_IFS
17272 esac
17274 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17275 if test -n "$PKG_CONFIG"; then
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17277 $as_echo "$PKG_CONFIG" >&6; }
17278 else
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17280 $as_echo "no" >&6; }
17285 if test -z "$ac_cv_path_PKG_CONFIG"; then
17286 ac_pt_PKG_CONFIG=$PKG_CONFIG
17287 # Extract the first word of "pkg-config", so it can be a program name with args.
17288 set dummy pkg-config; ac_word=$2
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17290 $as_echo_n "checking for $ac_word... " >&6; }
17291 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17292 $as_echo_n "(cached) " >&6
17293 else
17294 case $ac_pt_PKG_CONFIG in
17295 [\\/]* | ?:[\\/]*)
17296 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17300 for as_dir in $PATH
17302 IFS=$as_save_IFS
17303 test -z "$as_dir" && as_dir=.
17304 for ac_exec_ext in '' $ac_executable_extensions; do
17305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17306 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17308 break 2
17310 done
17311 done
17312 IFS=$as_save_IFS
17315 esac
17317 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17318 if test -n "$ac_pt_PKG_CONFIG"; then
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17320 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17321 else
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17323 $as_echo "no" >&6; }
17326 if test "x$ac_pt_PKG_CONFIG" = x; then
17327 PKG_CONFIG=""
17328 else
17329 case $cross_compiling:$ac_tool_warned in
17330 yes:)
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17333 ac_tool_warned=yes ;;
17334 esac
17335 PKG_CONFIG=$ac_pt_PKG_CONFIG
17337 else
17338 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17342 if test -n "$PKG_CONFIG"; then
17343 _pkg_min_version=0.9.0
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17345 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17346 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17348 $as_echo "yes" >&6; }
17349 else
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17351 $as_echo "no" >&6; }
17352 PKG_CONFIG=""
17356 pkg_failed=no
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
17358 $as_echo_n "checking for libcurl... " >&6; }
17360 if test -n "$libcurl_CFLAGS"; then
17361 pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS"
17362 elif test -n "$PKG_CONFIG"; then
17363 if test -n "$PKG_CONFIG" && \
17364 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.18.0\""; } >&5
17365 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.18.0") 2>&5
17366 ac_status=$?
17367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17368 test $ac_status = 0; }; then
17369 pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.18.0" 2>/dev/null`
17370 else
17371 pkg_failed=yes
17373 else
17374 pkg_failed=untried
17376 if test -n "$libcurl_LIBS"; then
17377 pkg_cv_libcurl_LIBS="$libcurl_LIBS"
17378 elif test -n "$PKG_CONFIG"; then
17379 if test -n "$PKG_CONFIG" && \
17380 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.18.0\""; } >&5
17381 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.18.0") 2>&5
17382 ac_status=$?
17383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17384 test $ac_status = 0; }; then
17385 pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.18.0" 2>/dev/null`
17386 else
17387 pkg_failed=yes
17389 else
17390 pkg_failed=untried
17395 if test $pkg_failed = yes; then
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17397 $as_echo "no" >&6; }
17399 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17400 _pkg_short_errors_supported=yes
17401 else
17402 _pkg_short_errors_supported=no
17404 if test $_pkg_short_errors_supported = yes; then
17405 libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcurl >= 7.18.0" 2>&1`
17406 else
17407 libcurl_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcurl >= 7.18.0" 2>&1`
17409 # Put the nasty error message in config.log where it belongs
17410 echo "$libcurl_PKG_ERRORS" >&5
17412 as_fn_error $? "Package requirements (libcurl >= 7.18.0) were not met:
17414 $libcurl_PKG_ERRORS
17416 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17417 installed software in a non-standard prefix.
17419 Alternatively, you may set the environment variables libcurl_CFLAGS
17420 and libcurl_LIBS to avoid the need to call pkg-config.
17421 See the pkg-config man page for more details." "$LINENO" 5
17422 elif test $pkg_failed = untried; then
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17424 $as_echo "no" >&6; }
17425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17427 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17428 is in your PATH or set the PKG_CONFIG environment variable to the full
17429 path to pkg-config.
17431 Alternatively, you may set the environment variables libcurl_CFLAGS
17432 and libcurl_LIBS to avoid the need to call pkg-config.
17433 See the pkg-config man page for more details.
17435 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17436 See \`config.log' for more details" "$LINENO" 5; }
17437 else
17438 libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS
17439 libcurl_LIBS=$pkg_cv_libcurl_LIBS
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17441 $as_echo "yes" >&6; }
17445 pkg_failed=no
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
17447 $as_echo_n "checking for liblua... " >&6; }
17449 if test -n "$liblua_CFLAGS"; then
17450 pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
17451 elif test -n "$PKG_CONFIG"; then
17452 if test -n "$PKG_CONFIG" && \
17453 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
17454 ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
17455 ac_status=$?
17456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17457 test $ac_status = 0; }; then
17458 pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
17459 else
17460 pkg_failed=yes
17462 else
17463 pkg_failed=untried
17465 if test -n "$liblua_LIBS"; then
17466 pkg_cv_liblua_LIBS="$liblua_LIBS"
17467 elif test -n "$PKG_CONFIG"; then
17468 if test -n "$PKG_CONFIG" && \
17469 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
17470 ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
17471 ac_status=$?
17472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17473 test $ac_status = 0; }; then
17474 pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
17475 else
17476 pkg_failed=yes
17478 else
17479 pkg_failed=untried
17484 if test $pkg_failed = yes; then
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17486 $as_echo "no" >&6; }
17488 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17489 _pkg_short_errors_supported=yes
17490 else
17491 _pkg_short_errors_supported=no
17493 if test $_pkg_short_errors_supported = yes; then
17494 liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.1" 2>&1`
17495 else
17496 liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.1" 2>&1`
17498 # Put the nasty error message in config.log where it belongs
17499 echo "$liblua_PKG_ERRORS" >&5
17503 pkg_failed=no
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
17505 $as_echo_n "checking for liblua... " >&6; }
17507 if test -n "$liblua_CFLAGS"; then
17508 pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
17509 elif test -n "$PKG_CONFIG"; then
17510 if test -n "$PKG_CONFIG" && \
17511 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1\""; } >&5
17512 ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1") 2>&5
17513 ac_status=$?
17514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17515 test $ac_status = 0; }; then
17516 pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1" 2>/dev/null`
17517 else
17518 pkg_failed=yes
17520 else
17521 pkg_failed=untried
17523 if test -n "$liblua_LIBS"; then
17524 pkg_cv_liblua_LIBS="$liblua_LIBS"
17525 elif test -n "$PKG_CONFIG"; then
17526 if test -n "$PKG_CONFIG" && \
17527 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1\""; } >&5
17528 ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1") 2>&5
17529 ac_status=$?
17530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17531 test $ac_status = 0; }; then
17532 pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1" 2>/dev/null`
17533 else
17534 pkg_failed=yes
17536 else
17537 pkg_failed=untried
17542 if test $pkg_failed = yes; then
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17544 $as_echo "no" >&6; }
17546 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17547 _pkg_short_errors_supported=yes
17548 else
17549 _pkg_short_errors_supported=no
17551 if test $_pkg_short_errors_supported = yes; then
17552 liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1" 2>&1`
17553 else
17554 liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1" 2>&1`
17556 # Put the nasty error message in config.log where it belongs
17557 echo "$liblua_PKG_ERRORS" >&5
17561 pkg_failed=no
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
17563 $as_echo_n "checking for liblua... " >&6; }
17565 if test -n "$liblua_CFLAGS"; then
17566 pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
17567 elif test -n "$PKG_CONFIG"; then
17568 if test -n "$PKG_CONFIG" && \
17569 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
17570 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
17571 ac_status=$?
17572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17573 test $ac_status = 0; }; then
17574 pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
17575 else
17576 pkg_failed=yes
17578 else
17579 pkg_failed=untried
17581 if test -n "$liblua_LIBS"; then
17582 pkg_cv_liblua_LIBS="$liblua_LIBS"
17583 elif test -n "$PKG_CONFIG"; then
17584 if test -n "$PKG_CONFIG" && \
17585 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
17586 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
17587 ac_status=$?
17588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17589 test $ac_status = 0; }; then
17590 pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
17591 else
17592 pkg_failed=yes
17594 else
17595 pkg_failed=untried
17600 if test $pkg_failed = yes; then
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17602 $as_echo "no" >&6; }
17604 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17605 _pkg_short_errors_supported=yes
17606 else
17607 _pkg_short_errors_supported=no
17609 if test $_pkg_short_errors_supported = yes; then
17610 liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1" 2>&1`
17611 else
17612 liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1" 2>&1`
17614 # Put the nasty error message in config.log where it belongs
17615 echo "$liblua_PKG_ERRORS" >&5
17619 pkg_failed=no
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
17621 $as_echo_n "checking for liblua... " >&6; }
17623 if test -n "$liblua_CFLAGS"; then
17624 pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
17625 elif test -n "$PKG_CONFIG"; then
17626 if test -n "$PKG_CONFIG" && \
17627 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17628 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17629 ac_status=$?
17630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17631 test $ac_status = 0; }; then
17632 pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
17633 else
17634 pkg_failed=yes
17636 else
17637 pkg_failed=untried
17639 if test -n "$liblua_LIBS"; then
17640 pkg_cv_liblua_LIBS="$liblua_LIBS"
17641 elif test -n "$PKG_CONFIG"; then
17642 if test -n "$PKG_CONFIG" && \
17643 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17644 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17645 ac_status=$?
17646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17647 test $ac_status = 0; }; then
17648 pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
17649 else
17650 pkg_failed=yes
17652 else
17653 pkg_failed=untried
17658 if test $pkg_failed = yes; then
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17660 $as_echo "no" >&6; }
17662 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17663 _pkg_short_errors_supported=yes
17664 else
17665 _pkg_short_errors_supported=no
17667 if test $_pkg_short_errors_supported = yes; then
17668 liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
17669 else
17670 liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
17672 # Put the nasty error message in config.log where it belongs
17673 echo "$liblua_PKG_ERRORS" >&5
17675 as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met:
17677 $liblua_PKG_ERRORS
17679 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17680 installed software in a non-standard prefix.
17682 Alternatively, you may set the environment variables liblua_CFLAGS
17683 and liblua_LIBS to avoid the need to call pkg-config.
17684 See the pkg-config man page for more details." "$LINENO" 5
17685 elif test $pkg_failed = untried; then
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17687 $as_echo "no" >&6; }
17688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17690 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17691 is in your PATH or set the PKG_CONFIG environment variable to the full
17692 path to pkg-config.
17694 Alternatively, you may set the environment variables liblua_CFLAGS
17695 and liblua_LIBS to avoid the need to call pkg-config.
17696 See the pkg-config man page for more details.
17698 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17699 See \`config.log' for more details" "$LINENO" 5; }
17700 else
17701 liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
17702 liblua_LIBS=$pkg_cv_liblua_LIBS
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17704 $as_echo "yes" >&6; }
17708 elif test $pkg_failed = untried; then
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17710 $as_echo "no" >&6; }
17713 pkg_failed=no
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
17715 $as_echo_n "checking for liblua... " >&6; }
17717 if test -n "$liblua_CFLAGS"; then
17718 pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
17719 elif test -n "$PKG_CONFIG"; then
17720 if test -n "$PKG_CONFIG" && \
17721 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17722 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17723 ac_status=$?
17724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17725 test $ac_status = 0; }; then
17726 pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
17727 else
17728 pkg_failed=yes
17730 else
17731 pkg_failed=untried
17733 if test -n "$liblua_LIBS"; then
17734 pkg_cv_liblua_LIBS="$liblua_LIBS"
17735 elif test -n "$PKG_CONFIG"; then
17736 if test -n "$PKG_CONFIG" && \
17737 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17738 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17739 ac_status=$?
17740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17741 test $ac_status = 0; }; then
17742 pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
17743 else
17744 pkg_failed=yes
17746 else
17747 pkg_failed=untried
17752 if test $pkg_failed = yes; then
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17754 $as_echo "no" >&6; }
17756 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17757 _pkg_short_errors_supported=yes
17758 else
17759 _pkg_short_errors_supported=no
17761 if test $_pkg_short_errors_supported = yes; then
17762 liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
17763 else
17764 liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
17766 # Put the nasty error message in config.log where it belongs
17767 echo "$liblua_PKG_ERRORS" >&5
17769 as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met:
17771 $liblua_PKG_ERRORS
17773 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17774 installed software in a non-standard prefix.
17776 Alternatively, you may set the environment variables liblua_CFLAGS
17777 and liblua_LIBS to avoid the need to call pkg-config.
17778 See the pkg-config man page for more details." "$LINENO" 5
17779 elif test $pkg_failed = untried; then
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17781 $as_echo "no" >&6; }
17782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17784 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17785 is in your PATH or set the PKG_CONFIG environment variable to the full
17786 path to pkg-config.
17788 Alternatively, you may set the environment variables liblua_CFLAGS
17789 and liblua_LIBS to avoid the need to call pkg-config.
17790 See the pkg-config man page for more details.
17792 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17793 See \`config.log' for more details" "$LINENO" 5; }
17794 else
17795 liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
17796 liblua_LIBS=$pkg_cv_liblua_LIBS
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17798 $as_echo "yes" >&6; }
17802 else
17803 liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
17804 liblua_LIBS=$pkg_cv_liblua_LIBS
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17806 $as_echo "yes" >&6; }
17810 elif test $pkg_failed = untried; then
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17812 $as_echo "no" >&6; }
17815 pkg_failed=no
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
17817 $as_echo_n "checking for liblua... " >&6; }
17819 if test -n "$liblua_CFLAGS"; then
17820 pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
17821 elif test -n "$PKG_CONFIG"; then
17822 if test -n "$PKG_CONFIG" && \
17823 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
17824 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
17825 ac_status=$?
17826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17827 test $ac_status = 0; }; then
17828 pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
17829 else
17830 pkg_failed=yes
17832 else
17833 pkg_failed=untried
17835 if test -n "$liblua_LIBS"; then
17836 pkg_cv_liblua_LIBS="$liblua_LIBS"
17837 elif test -n "$PKG_CONFIG"; then
17838 if test -n "$PKG_CONFIG" && \
17839 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
17840 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
17841 ac_status=$?
17842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17843 test $ac_status = 0; }; then
17844 pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
17845 else
17846 pkg_failed=yes
17848 else
17849 pkg_failed=untried
17854 if test $pkg_failed = yes; then
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17856 $as_echo "no" >&6; }
17858 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17859 _pkg_short_errors_supported=yes
17860 else
17861 _pkg_short_errors_supported=no
17863 if test $_pkg_short_errors_supported = yes; then
17864 liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1" 2>&1`
17865 else
17866 liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1" 2>&1`
17868 # Put the nasty error message in config.log where it belongs
17869 echo "$liblua_PKG_ERRORS" >&5
17873 pkg_failed=no
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
17875 $as_echo_n "checking for liblua... " >&6; }
17877 if test -n "$liblua_CFLAGS"; then
17878 pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
17879 elif test -n "$PKG_CONFIG"; then
17880 if test -n "$PKG_CONFIG" && \
17881 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17882 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17883 ac_status=$?
17884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17885 test $ac_status = 0; }; then
17886 pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
17887 else
17888 pkg_failed=yes
17890 else
17891 pkg_failed=untried
17893 if test -n "$liblua_LIBS"; then
17894 pkg_cv_liblua_LIBS="$liblua_LIBS"
17895 elif test -n "$PKG_CONFIG"; then
17896 if test -n "$PKG_CONFIG" && \
17897 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17898 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17899 ac_status=$?
17900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17901 test $ac_status = 0; }; then
17902 pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
17903 else
17904 pkg_failed=yes
17906 else
17907 pkg_failed=untried
17912 if test $pkg_failed = yes; then
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17914 $as_echo "no" >&6; }
17916 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17917 _pkg_short_errors_supported=yes
17918 else
17919 _pkg_short_errors_supported=no
17921 if test $_pkg_short_errors_supported = yes; then
17922 liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
17923 else
17924 liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
17926 # Put the nasty error message in config.log where it belongs
17927 echo "$liblua_PKG_ERRORS" >&5
17929 as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met:
17931 $liblua_PKG_ERRORS
17933 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17934 installed software in a non-standard prefix.
17936 Alternatively, you may set the environment variables liblua_CFLAGS
17937 and liblua_LIBS to avoid the need to call pkg-config.
17938 See the pkg-config man page for more details." "$LINENO" 5
17939 elif test $pkg_failed = untried; then
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17941 $as_echo "no" >&6; }
17942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17944 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17945 is in your PATH or set the PKG_CONFIG environment variable to the full
17946 path to pkg-config.
17948 Alternatively, you may set the environment variables liblua_CFLAGS
17949 and liblua_LIBS to avoid the need to call pkg-config.
17950 See the pkg-config man page for more details.
17952 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17953 See \`config.log' for more details" "$LINENO" 5; }
17954 else
17955 liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
17956 liblua_LIBS=$pkg_cv_liblua_LIBS
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17958 $as_echo "yes" >&6; }
17962 elif test $pkg_failed = untried; then
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17964 $as_echo "no" >&6; }
17967 pkg_failed=no
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
17969 $as_echo_n "checking for liblua... " >&6; }
17971 if test -n "$liblua_CFLAGS"; then
17972 pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
17973 elif test -n "$PKG_CONFIG"; then
17974 if test -n "$PKG_CONFIG" && \
17975 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17976 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17977 ac_status=$?
17978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17979 test $ac_status = 0; }; then
17980 pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
17981 else
17982 pkg_failed=yes
17984 else
17985 pkg_failed=untried
17987 if test -n "$liblua_LIBS"; then
17988 pkg_cv_liblua_LIBS="$liblua_LIBS"
17989 elif test -n "$PKG_CONFIG"; then
17990 if test -n "$PKG_CONFIG" && \
17991 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17992 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17993 ac_status=$?
17994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17995 test $ac_status = 0; }; then
17996 pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
17997 else
17998 pkg_failed=yes
18000 else
18001 pkg_failed=untried
18006 if test $pkg_failed = yes; then
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18008 $as_echo "no" >&6; }
18010 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18011 _pkg_short_errors_supported=yes
18012 else
18013 _pkg_short_errors_supported=no
18015 if test $_pkg_short_errors_supported = yes; then
18016 liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
18017 else
18018 liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
18020 # Put the nasty error message in config.log where it belongs
18021 echo "$liblua_PKG_ERRORS" >&5
18023 as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met:
18025 $liblua_PKG_ERRORS
18027 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18028 installed software in a non-standard prefix.
18030 Alternatively, you may set the environment variables liblua_CFLAGS
18031 and liblua_LIBS to avoid the need to call pkg-config.
18032 See the pkg-config man page for more details." "$LINENO" 5
18033 elif test $pkg_failed = untried; then
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18035 $as_echo "no" >&6; }
18036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18038 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18039 is in your PATH or set the PKG_CONFIG environment variable to the full
18040 path to pkg-config.
18042 Alternatively, you may set the environment variables liblua_CFLAGS
18043 and liblua_LIBS to avoid the need to call pkg-config.
18044 See the pkg-config man page for more details.
18046 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18047 See \`config.log' for more details" "$LINENO" 5; }
18048 else
18049 liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
18050 liblua_LIBS=$pkg_cv_liblua_LIBS
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18052 $as_echo "yes" >&6; }
18056 else
18057 liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
18058 liblua_LIBS=$pkg_cv_liblua_LIBS
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18060 $as_echo "yes" >&6; }
18064 else
18065 liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
18066 liblua_LIBS=$pkg_cv_liblua_LIBS
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18068 $as_echo "yes" >&6; }
18072 elif test $pkg_failed = untried; then
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18074 $as_echo "no" >&6; }
18077 pkg_failed=no
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
18079 $as_echo_n "checking for liblua... " >&6; }
18081 if test -n "$liblua_CFLAGS"; then
18082 pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
18083 elif test -n "$PKG_CONFIG"; then
18084 if test -n "$PKG_CONFIG" && \
18085 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1\""; } >&5
18086 ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1") 2>&5
18087 ac_status=$?
18088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18089 test $ac_status = 0; }; then
18090 pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1" 2>/dev/null`
18091 else
18092 pkg_failed=yes
18094 else
18095 pkg_failed=untried
18097 if test -n "$liblua_LIBS"; then
18098 pkg_cv_liblua_LIBS="$liblua_LIBS"
18099 elif test -n "$PKG_CONFIG"; then
18100 if test -n "$PKG_CONFIG" && \
18101 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1\""; } >&5
18102 ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1") 2>&5
18103 ac_status=$?
18104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18105 test $ac_status = 0; }; then
18106 pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1" 2>/dev/null`
18107 else
18108 pkg_failed=yes
18110 else
18111 pkg_failed=untried
18116 if test $pkg_failed = yes; then
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18118 $as_echo "no" >&6; }
18120 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18121 _pkg_short_errors_supported=yes
18122 else
18123 _pkg_short_errors_supported=no
18125 if test $_pkg_short_errors_supported = yes; then
18126 liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1" 2>&1`
18127 else
18128 liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1" 2>&1`
18130 # Put the nasty error message in config.log where it belongs
18131 echo "$liblua_PKG_ERRORS" >&5
18135 pkg_failed=no
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
18137 $as_echo_n "checking for liblua... " >&6; }
18139 if test -n "$liblua_CFLAGS"; then
18140 pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
18141 elif test -n "$PKG_CONFIG"; then
18142 if test -n "$PKG_CONFIG" && \
18143 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
18144 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
18145 ac_status=$?
18146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18147 test $ac_status = 0; }; then
18148 pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
18149 else
18150 pkg_failed=yes
18152 else
18153 pkg_failed=untried
18155 if test -n "$liblua_LIBS"; then
18156 pkg_cv_liblua_LIBS="$liblua_LIBS"
18157 elif test -n "$PKG_CONFIG"; then
18158 if test -n "$PKG_CONFIG" && \
18159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
18160 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
18161 ac_status=$?
18162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18163 test $ac_status = 0; }; then
18164 pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
18165 else
18166 pkg_failed=yes
18168 else
18169 pkg_failed=untried
18174 if test $pkg_failed = yes; then
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18176 $as_echo "no" >&6; }
18178 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18179 _pkg_short_errors_supported=yes
18180 else
18181 _pkg_short_errors_supported=no
18183 if test $_pkg_short_errors_supported = yes; then
18184 liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1" 2>&1`
18185 else
18186 liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1" 2>&1`
18188 # Put the nasty error message in config.log where it belongs
18189 echo "$liblua_PKG_ERRORS" >&5
18193 pkg_failed=no
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
18195 $as_echo_n "checking for liblua... " >&6; }
18197 if test -n "$liblua_CFLAGS"; then
18198 pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
18199 elif test -n "$PKG_CONFIG"; then
18200 if test -n "$PKG_CONFIG" && \
18201 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
18202 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
18203 ac_status=$?
18204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18205 test $ac_status = 0; }; then
18206 pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
18207 else
18208 pkg_failed=yes
18210 else
18211 pkg_failed=untried
18213 if test -n "$liblua_LIBS"; then
18214 pkg_cv_liblua_LIBS="$liblua_LIBS"
18215 elif test -n "$PKG_CONFIG"; then
18216 if test -n "$PKG_CONFIG" && \
18217 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
18218 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
18219 ac_status=$?
18220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18221 test $ac_status = 0; }; then
18222 pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
18223 else
18224 pkg_failed=yes
18226 else
18227 pkg_failed=untried
18232 if test $pkg_failed = yes; then
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18234 $as_echo "no" >&6; }
18236 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18237 _pkg_short_errors_supported=yes
18238 else
18239 _pkg_short_errors_supported=no
18241 if test $_pkg_short_errors_supported = yes; then
18242 liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
18243 else
18244 liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
18246 # Put the nasty error message in config.log where it belongs
18247 echo "$liblua_PKG_ERRORS" >&5
18249 as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met:
18251 $liblua_PKG_ERRORS
18253 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18254 installed software in a non-standard prefix.
18256 Alternatively, you may set the environment variables liblua_CFLAGS
18257 and liblua_LIBS to avoid the need to call pkg-config.
18258 See the pkg-config man page for more details." "$LINENO" 5
18259 elif test $pkg_failed = untried; then
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18261 $as_echo "no" >&6; }
18262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18264 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18265 is in your PATH or set the PKG_CONFIG environment variable to the full
18266 path to pkg-config.
18268 Alternatively, you may set the environment variables liblua_CFLAGS
18269 and liblua_LIBS to avoid the need to call pkg-config.
18270 See the pkg-config man page for more details.
18272 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18273 See \`config.log' for more details" "$LINENO" 5; }
18274 else
18275 liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
18276 liblua_LIBS=$pkg_cv_liblua_LIBS
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18278 $as_echo "yes" >&6; }
18282 elif test $pkg_failed = untried; then
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18284 $as_echo "no" >&6; }
18287 pkg_failed=no
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
18289 $as_echo_n "checking for liblua... " >&6; }
18291 if test -n "$liblua_CFLAGS"; then
18292 pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
18293 elif test -n "$PKG_CONFIG"; then
18294 if test -n "$PKG_CONFIG" && \
18295 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
18296 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
18297 ac_status=$?
18298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18299 test $ac_status = 0; }; then
18300 pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
18301 else
18302 pkg_failed=yes
18304 else
18305 pkg_failed=untried
18307 if test -n "$liblua_LIBS"; then
18308 pkg_cv_liblua_LIBS="$liblua_LIBS"
18309 elif test -n "$PKG_CONFIG"; then
18310 if test -n "$PKG_CONFIG" && \
18311 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
18312 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
18313 ac_status=$?
18314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18315 test $ac_status = 0; }; then
18316 pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
18317 else
18318 pkg_failed=yes
18320 else
18321 pkg_failed=untried
18326 if test $pkg_failed = yes; then
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18328 $as_echo "no" >&6; }
18330 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18331 _pkg_short_errors_supported=yes
18332 else
18333 _pkg_short_errors_supported=no
18335 if test $_pkg_short_errors_supported = yes; then
18336 liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
18337 else
18338 liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
18340 # Put the nasty error message in config.log where it belongs
18341 echo "$liblua_PKG_ERRORS" >&5
18343 as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met:
18345 $liblua_PKG_ERRORS
18347 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18348 installed software in a non-standard prefix.
18350 Alternatively, you may set the environment variables liblua_CFLAGS
18351 and liblua_LIBS to avoid the need to call pkg-config.
18352 See the pkg-config man page for more details." "$LINENO" 5
18353 elif test $pkg_failed = untried; then
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18355 $as_echo "no" >&6; }
18356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18358 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18359 is in your PATH or set the PKG_CONFIG environment variable to the full
18360 path to pkg-config.
18362 Alternatively, you may set the environment variables liblua_CFLAGS
18363 and liblua_LIBS to avoid the need to call pkg-config.
18364 See the pkg-config man page for more details.
18366 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18367 See \`config.log' for more details" "$LINENO" 5; }
18368 else
18369 liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
18370 liblua_LIBS=$pkg_cv_liblua_LIBS
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18372 $as_echo "yes" >&6; }
18376 else
18377 liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
18378 liblua_LIBS=$pkg_cv_liblua_LIBS
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18380 $as_echo "yes" >&6; }
18384 elif test $pkg_failed = untried; then
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18386 $as_echo "no" >&6; }
18389 pkg_failed=no
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
18391 $as_echo_n "checking for liblua... " >&6; }
18393 if test -n "$liblua_CFLAGS"; then
18394 pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
18395 elif test -n "$PKG_CONFIG"; then
18396 if test -n "$PKG_CONFIG" && \
18397 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
18398 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
18399 ac_status=$?
18400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18401 test $ac_status = 0; }; then
18402 pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
18403 else
18404 pkg_failed=yes
18406 else
18407 pkg_failed=untried
18409 if test -n "$liblua_LIBS"; then
18410 pkg_cv_liblua_LIBS="$liblua_LIBS"
18411 elif test -n "$PKG_CONFIG"; then
18412 if test -n "$PKG_CONFIG" && \
18413 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
18414 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
18415 ac_status=$?
18416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18417 test $ac_status = 0; }; then
18418 pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
18419 else
18420 pkg_failed=yes
18422 else
18423 pkg_failed=untried
18428 if test $pkg_failed = yes; then
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18430 $as_echo "no" >&6; }
18432 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18433 _pkg_short_errors_supported=yes
18434 else
18435 _pkg_short_errors_supported=no
18437 if test $_pkg_short_errors_supported = yes; then
18438 liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1" 2>&1`
18439 else
18440 liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1" 2>&1`
18442 # Put the nasty error message in config.log where it belongs
18443 echo "$liblua_PKG_ERRORS" >&5
18447 pkg_failed=no
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
18449 $as_echo_n "checking for liblua... " >&6; }
18451 if test -n "$liblua_CFLAGS"; then
18452 pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
18453 elif test -n "$PKG_CONFIG"; then
18454 if test -n "$PKG_CONFIG" && \
18455 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
18456 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
18457 ac_status=$?
18458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18459 test $ac_status = 0; }; then
18460 pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
18461 else
18462 pkg_failed=yes
18464 else
18465 pkg_failed=untried
18467 if test -n "$liblua_LIBS"; then
18468 pkg_cv_liblua_LIBS="$liblua_LIBS"
18469 elif test -n "$PKG_CONFIG"; then
18470 if test -n "$PKG_CONFIG" && \
18471 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
18472 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
18473 ac_status=$?
18474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18475 test $ac_status = 0; }; then
18476 pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
18477 else
18478 pkg_failed=yes
18480 else
18481 pkg_failed=untried
18486 if test $pkg_failed = yes; then
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18488 $as_echo "no" >&6; }
18490 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18491 _pkg_short_errors_supported=yes
18492 else
18493 _pkg_short_errors_supported=no
18495 if test $_pkg_short_errors_supported = yes; then
18496 liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
18497 else
18498 liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
18500 # Put the nasty error message in config.log where it belongs
18501 echo "$liblua_PKG_ERRORS" >&5
18503 as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met:
18505 $liblua_PKG_ERRORS
18507 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18508 installed software in a non-standard prefix.
18510 Alternatively, you may set the environment variables liblua_CFLAGS
18511 and liblua_LIBS to avoid the need to call pkg-config.
18512 See the pkg-config man page for more details." "$LINENO" 5
18513 elif test $pkg_failed = untried; then
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18515 $as_echo "no" >&6; }
18516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18518 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18519 is in your PATH or set the PKG_CONFIG environment variable to the full
18520 path to pkg-config.
18522 Alternatively, you may set the environment variables liblua_CFLAGS
18523 and liblua_LIBS to avoid the need to call pkg-config.
18524 See the pkg-config man page for more details.
18526 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18527 See \`config.log' for more details" "$LINENO" 5; }
18528 else
18529 liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
18530 liblua_LIBS=$pkg_cv_liblua_LIBS
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18532 $as_echo "yes" >&6; }
18536 elif test $pkg_failed = untried; then
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18538 $as_echo "no" >&6; }
18541 pkg_failed=no
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
18543 $as_echo_n "checking for liblua... " >&6; }
18545 if test -n "$liblua_CFLAGS"; then
18546 pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
18547 elif test -n "$PKG_CONFIG"; then
18548 if test -n "$PKG_CONFIG" && \
18549 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
18550 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
18551 ac_status=$?
18552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18553 test $ac_status = 0; }; then
18554 pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
18555 else
18556 pkg_failed=yes
18558 else
18559 pkg_failed=untried
18561 if test -n "$liblua_LIBS"; then
18562 pkg_cv_liblua_LIBS="$liblua_LIBS"
18563 elif test -n "$PKG_CONFIG"; then
18564 if test -n "$PKG_CONFIG" && \
18565 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
18566 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
18567 ac_status=$?
18568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18569 test $ac_status = 0; }; then
18570 pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
18571 else
18572 pkg_failed=yes
18574 else
18575 pkg_failed=untried
18580 if test $pkg_failed = yes; then
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18582 $as_echo "no" >&6; }
18584 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18585 _pkg_short_errors_supported=yes
18586 else
18587 _pkg_short_errors_supported=no
18589 if test $_pkg_short_errors_supported = yes; then
18590 liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
18591 else
18592 liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
18594 # Put the nasty error message in config.log where it belongs
18595 echo "$liblua_PKG_ERRORS" >&5
18597 as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met:
18599 $liblua_PKG_ERRORS
18601 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18602 installed software in a non-standard prefix.
18604 Alternatively, you may set the environment variables liblua_CFLAGS
18605 and liblua_LIBS to avoid the need to call pkg-config.
18606 See the pkg-config man page for more details." "$LINENO" 5
18607 elif test $pkg_failed = untried; then
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18609 $as_echo "no" >&6; }
18610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18612 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18613 is in your PATH or set the PKG_CONFIG environment variable to the full
18614 path to pkg-config.
18616 Alternatively, you may set the environment variables liblua_CFLAGS
18617 and liblua_LIBS to avoid the need to call pkg-config.
18618 See the pkg-config man page for more details.
18620 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18621 See \`config.log' for more details" "$LINENO" 5; }
18622 else
18623 liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
18624 liblua_LIBS=$pkg_cv_liblua_LIBS
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18626 $as_echo "yes" >&6; }
18630 else
18631 liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
18632 liblua_LIBS=$pkg_cv_liblua_LIBS
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18634 $as_echo "yes" >&6; }
18638 else
18639 liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
18640 liblua_LIBS=$pkg_cv_liblua_LIBS
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18642 $as_echo "yes" >&6; }
18646 else
18647 liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
18648 liblua_LIBS=$pkg_cv_liblua_LIBS
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18650 $as_echo "yes" >&6; }
18653 # Check whether --enable-silent-rules was given.
18654 if test "${enable_silent_rules+set}" = set; then :
18655 enableval=$enable_silent_rules;
18658 case $enable_silent_rules in
18659 yes) AM_DEFAULT_VERBOSITY=0;;
18660 no) AM_DEFAULT_VERBOSITY=1;;
18661 *) AM_DEFAULT_VERBOSITY=0;;
18662 esac
18663 AM_BACKSLASH='\'
18666 # Checks for header files.
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18668 $as_echo_n "checking for ANSI C header files... " >&6; }
18669 if ${ac_cv_header_stdc+:} false; then :
18670 $as_echo_n "(cached) " >&6
18671 else
18672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18673 /* end confdefs.h. */
18674 #include <stdlib.h>
18675 #include <stdarg.h>
18676 #include <string.h>
18677 #include <float.h>
18680 main ()
18684 return 0;
18686 _ACEOF
18687 if ac_fn_c_try_compile "$LINENO"; then :
18688 ac_cv_header_stdc=yes
18689 else
18690 ac_cv_header_stdc=no
18692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18694 if test $ac_cv_header_stdc = yes; then
18695 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18697 /* end confdefs.h. */
18698 #include <string.h>
18700 _ACEOF
18701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18702 $EGREP "memchr" >/dev/null 2>&1; then :
18704 else
18705 ac_cv_header_stdc=no
18707 rm -f conftest*
18711 if test $ac_cv_header_stdc = yes; then
18712 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18714 /* end confdefs.h. */
18715 #include <stdlib.h>
18717 _ACEOF
18718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18719 $EGREP "free" >/dev/null 2>&1; then :
18721 else
18722 ac_cv_header_stdc=no
18724 rm -f conftest*
18728 if test $ac_cv_header_stdc = yes; then
18729 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18730 if test "$cross_compiling" = yes; then :
18732 else
18733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18734 /* end confdefs.h. */
18735 #include <ctype.h>
18736 #include <stdlib.h>
18737 #if ((' ' & 0x0FF) == 0x020)
18738 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18739 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18740 #else
18741 # define ISLOWER(c) \
18742 (('a' <= (c) && (c) <= 'i') \
18743 || ('j' <= (c) && (c) <= 'r') \
18744 || ('s' <= (c) && (c) <= 'z'))
18745 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18746 #endif
18748 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18750 main ()
18752 int i;
18753 for (i = 0; i < 256; i++)
18754 if (XOR (islower (i), ISLOWER (i))
18755 || toupper (i) != TOUPPER (i))
18756 return 2;
18757 return 0;
18759 _ACEOF
18760 if ac_fn_c_try_run "$LINENO"; then :
18762 else
18763 ac_cv_header_stdc=no
18765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18766 conftest.$ac_objext conftest.beam conftest.$ac_ext
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18772 $as_echo "$ac_cv_header_stdc" >&6; }
18773 if test $ac_cv_header_stdc = yes; then
18775 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18778 # `stdlib.h', `stdarg.h', `string.h', ...
18779 for ac_header in memory.h stdint.h stdlib.h limits.h stddef.h
18780 do :
18781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18782 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18783 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18784 cat >>confdefs.h <<_ACEOF
18785 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18786 _ACEOF
18790 done
18793 # Checks for typedefs, structures, and compiler characteristics.
18794 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18795 if test "x$ac_cv_type_size_t" = xyes; then :
18797 else
18799 cat >>confdefs.h <<_ACEOF
18800 #define size_t unsigned int
18801 _ACEOF
18805 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
18806 case $ac_cv_c_uint32_t in #(
18807 no|yes) ;; #(
18810 $as_echo "#define _UINT32_T 1" >>confdefs.h
18813 cat >>confdefs.h <<_ACEOF
18814 #define uint32_t $ac_cv_c_uint32_t
18815 _ACEOF
18817 esac
18819 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
18820 case $ac_cv_c_uint64_t in #(
18821 no|yes) ;; #(
18824 $as_echo "#define _UINT64_T 1" >>confdefs.h
18827 cat >>confdefs.h <<_ACEOF
18828 #define uint64_t $ac_cv_c_uint64_t
18829 _ACEOF
18831 esac
18833 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
18834 case $ac_cv_c_uint8_t in #(
18835 no|yes) ;; #(
18838 $as_echo "#define _UINT8_T 1" >>confdefs.h
18841 cat >>confdefs.h <<_ACEOF
18842 #define uint8_t $ac_cv_c_uint8_t
18843 _ACEOF
18845 esac
18847 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
18848 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
18850 cat >>confdefs.h <<_ACEOF
18851 #define HAVE_PTRDIFF_T 1
18852 _ACEOF
18858 # Checks for library functions.
18859 if test x"$host_w32" = "xno" ; then
18860 for ac_header in stdlib.h
18861 do :
18862 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
18863 if test "x$ac_cv_header_stdlib_h" = xyes; then :
18864 cat >>confdefs.h <<_ACEOF
18865 #define HAVE_STDLIB_H 1
18866 _ACEOF
18870 done
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
18873 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
18874 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
18875 $as_echo_n "(cached) " >&6
18876 else
18877 if test "$cross_compiling" = yes; then :
18878 ac_cv_func_malloc_0_nonnull=no
18879 else
18880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18881 /* end confdefs.h. */
18882 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
18883 # include <stdlib.h>
18884 #else
18885 char *malloc ();
18886 #endif
18889 main ()
18891 return ! malloc (0);
18893 return 0;
18895 _ACEOF
18896 if ac_fn_c_try_run "$LINENO"; then :
18897 ac_cv_func_malloc_0_nonnull=yes
18898 else
18899 ac_cv_func_malloc_0_nonnull=no
18901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18902 conftest.$ac_objext conftest.beam conftest.$ac_ext
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
18907 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
18908 if test $ac_cv_func_malloc_0_nonnull = yes; then :
18910 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
18912 else
18913 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
18915 case " $LIBOBJS " in
18916 *" malloc.$ac_objext "* ) ;;
18917 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
18919 esac
18922 $as_echo "#define malloc rpl_malloc" >>confdefs.h
18927 for ac_header in stdlib.h
18928 do :
18929 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
18930 if test "x$ac_cv_header_stdlib_h" = xyes; then :
18931 cat >>confdefs.h <<_ACEOF
18932 #define HAVE_STDLIB_H 1
18933 _ACEOF
18937 done
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
18940 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
18941 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
18942 $as_echo_n "(cached) " >&6
18943 else
18944 if test "$cross_compiling" = yes; then :
18945 ac_cv_func_realloc_0_nonnull=no
18946 else
18947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18948 /* end confdefs.h. */
18949 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
18950 # include <stdlib.h>
18951 #else
18952 char *realloc ();
18953 #endif
18956 main ()
18958 return ! realloc (0, 0);
18960 return 0;
18962 _ACEOF
18963 if ac_fn_c_try_run "$LINENO"; then :
18964 ac_cv_func_realloc_0_nonnull=yes
18965 else
18966 ac_cv_func_realloc_0_nonnull=no
18968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18969 conftest.$ac_objext conftest.beam conftest.$ac_ext
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
18974 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
18975 if test $ac_cv_func_realloc_0_nonnull = yes; then :
18977 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
18979 else
18980 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
18982 case " $LIBOBJS " in
18983 *" realloc.$ac_objext "* ) ;;
18984 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
18986 esac
18989 $as_echo "#define realloc rpl_realloc" >>confdefs.h
18995 for ac_func in memset strdup strstr strtol strerror strcspn getcwd strchr strrchr strspn
18996 do :
18997 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18998 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18999 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19000 cat >>confdefs.h <<_ACEOF
19001 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19002 _ACEOF
19005 done
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
19008 $as_echo_n "checking for working strtod... " >&6; }
19009 if ${ac_cv_func_strtod+:} false; then :
19010 $as_echo_n "(cached) " >&6
19011 else
19012 if test "$cross_compiling" = yes; then :
19013 ac_cv_func_strtod=no
19014 else
19015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19016 /* end confdefs.h. */
19018 $ac_includes_default
19019 #ifndef strtod
19020 double strtod ();
19021 #endif
19023 main()
19026 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
19027 char *string = " +69";
19028 char *term;
19029 double value;
19030 value = strtod (string, &term);
19031 if (value != 69 || term != (string + 4))
19032 return 1;
19036 /* Under Solaris 2.4, strtod returns the wrong value for the
19037 terminating character under some conditions. */
19038 char *string = "NaN";
19039 char *term;
19040 strtod (string, &term);
19041 if (term != string && *(term - 1) == 0)
19042 return 1;
19044 return 0;
19047 _ACEOF
19048 if ac_fn_c_try_run "$LINENO"; then :
19049 ac_cv_func_strtod=yes
19050 else
19051 ac_cv_func_strtod=no
19053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19054 conftest.$ac_objext conftest.beam conftest.$ac_ext
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
19059 $as_echo "$ac_cv_func_strtod" >&6; }
19060 if test $ac_cv_func_strtod = no; then
19061 case " $LIBOBJS " in
19062 *" strtod.$ac_objext "* ) ;;
19063 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
19065 esac
19067 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
19068 if test "x$ac_cv_func_pow" = xyes; then :
19072 if test $ac_cv_func_pow = no; then
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
19074 $as_echo_n "checking for pow in -lm... " >&6; }
19075 if ${ac_cv_lib_m_pow+:} false; then :
19076 $as_echo_n "(cached) " >&6
19077 else
19078 ac_check_lib_save_LIBS=$LIBS
19079 LIBS="-lm $LIBS"
19080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19081 /* end confdefs.h. */
19083 /* Override any GCC internal prototype to avoid an error.
19084 Use char because int might match the return type of a GCC
19085 builtin and then its argument prototype would still apply. */
19086 #ifdef __cplusplus
19087 extern "C"
19088 #endif
19089 char pow ();
19091 main ()
19093 return pow ();
19095 return 0;
19097 _ACEOF
19098 if ac_fn_c_try_link "$LINENO"; then :
19099 ac_cv_lib_m_pow=yes
19100 else
19101 ac_cv_lib_m_pow=no
19103 rm -f core conftest.err conftest.$ac_objext \
19104 conftest$ac_exeext conftest.$ac_ext
19105 LIBS=$ac_check_lib_save_LIBS
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
19108 $as_echo "$ac_cv_lib_m_pow" >&6; }
19109 if test "x$ac_cv_lib_m_pow" = xyes; then :
19110 POW_LIB=-lm
19111 else
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
19113 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
19121 have_asprintf=no
19122 for ac_func in vasprintf
19123 do :
19124 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
19125 if test "x$ac_cv_func_vasprintf" = xyes; then :
19126 cat >>confdefs.h <<_ACEOF
19127 #define HAVE_VASPRINTF 1
19128 _ACEOF
19130 for ac_func in asprintf
19131 do :
19132 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
19133 if test "x$ac_cv_func_asprintf" = xyes; then :
19134 cat >>confdefs.h <<_ACEOF
19135 #define HAVE_ASPRINTF 1
19136 _ACEOF
19137 have_asprintf=yes
19139 done
19143 done
19145 if test x"$have_asprintf" != "xyes"; then
19146 NO_ASPRINTF_TRUE=
19147 NO_ASPRINTF_FALSE='#'
19148 else
19149 NO_ASPRINTF_TRUE='#'
19150 NO_ASPRINTF_FALSE=
19154 # --enable-quvi
19155 # Check whether --enable-quvi was given.
19156 if test "${enable_quvi+set}" = set; then :
19157 enableval=$enable_quvi;
19158 else
19159 enable_quvi=yes
19162 if test x"$enable_quvi" != "xno"; then
19163 ENABLE_QUVI_TRUE=
19164 ENABLE_QUVI_FALSE='#'
19165 else
19166 ENABLE_QUVI_TRUE='#'
19167 ENABLE_QUVI_FALSE=
19171 # --enable-examples
19172 # Check whether --enable-examples was given.
19173 if test "${enable_examples+set}" = set; then :
19174 enableval=$enable_examples;
19175 else
19176 enable_examples=no
19179 if test x"$enable_examples" != "xno"; then
19180 ENABLE_EXAMPLES_TRUE=
19181 ENABLE_EXAMPLES_FALSE='#'
19182 else
19183 ENABLE_EXAMPLES_TRUE='#'
19184 ENABLE_EXAMPLES_FALSE=
19188 # --enable-nsfw
19189 # Check whether --enable-nsfw was given.
19190 if test "${enable_nsfw+set}" = set; then :
19191 enableval=$enable_nsfw;
19192 else
19193 enable_nsfw=no
19196 if test x"$enable_nsfw" != "xno"; then
19197 ENABLE_NSFW_TRUE=
19198 ENABLE_NSFW_FALSE='#'
19199 else
19200 ENABLE_NSFW_TRUE='#'
19201 ENABLE_NSFW_FALSE=
19205 if test x"$enable_nsfw" != "xno" ; then
19207 $as_echo "#define ENABLE_NSFW 1" >>confdefs.h
19211 # --enable-tests
19212 # Check whether --enable-tests was given.
19213 if test "${enable_tests+set}" = set; then :
19214 enableval=$enable_tests;
19215 else
19216 enable_tests=no
19219 if test x"$enable_tests" != "xno"; then
19220 ENABLE_TESTS_TRUE=
19221 ENABLE_TESTS_FALSE='#'
19222 else
19223 ENABLE_TESTS_TRUE='#'
19224 ENABLE_TESTS_FALSE=
19228 # --enable-broken
19229 # Check whether --enable-broken was given.
19230 if test "${enable_broken+set}" = set; then :
19231 enableval=$enable_broken;
19232 else
19233 enable_broken=no
19236 if test x"$enable_broken" != "xno"; then
19237 ENABLE_BROKEN_TRUE=
19238 ENABLE_BROKEN_FALSE='#'
19239 else
19240 ENABLE_BROKEN_TRUE='#'
19241 ENABLE_BROKEN_FALSE=
19245 if test x"$enable_broken" != "xno" ; then
19247 $as_echo "#define ENABLE_BROKEN 1" >>confdefs.h
19251 # --with-man
19253 # Check whether --with-man was given.
19254 if test "${with_man+set}" = set; then :
19255 withval=$with_man;
19256 else
19257 with_man=yes
19260 if test x"$with_man" != "xno"; then
19261 WITH_MAN_TRUE=
19262 WITH_MAN_FALSE='#'
19263 else
19264 WITH_MAN_TRUE='#'
19265 WITH_MAN_FALSE=
19269 # --with-doc
19271 # Check whether --with-doc was given.
19272 if test "${with_doc+set}" = set; then :
19273 withval=$with_doc;
19274 else
19275 with_doc=yes
19278 if test x"$with_doc" != "xno"; then
19279 WITH_DOC_TRUE=
19280 WITH_DOC_FALSE='#'
19281 else
19282 WITH_DOC_TRUE='#'
19283 WITH_DOC_FALSE=
19287 # GNU ld?
19288 if test x"$with_gnu_ld" = "xyes"; then
19289 HAVE_GNU_LD_TRUE=
19290 HAVE_GNU_LD_FALSE='#'
19291 else
19292 HAVE_GNU_LD_TRUE='#'
19293 HAVE_GNU_LD_FALSE=
19297 ac_config_files="$ac_config_files Makefile include/Makefile include/quvi/Makefile include/quvi/quvi.h lib/Makefile man1/Makefile share/Makefile doc/Makefile src/Makefile examples/Makefile tests/Makefile tests/quviTest.pm scripts/Makefile libquvi.pc doxygen.conf"
19300 cat >confcache <<\_ACEOF
19301 # This file is a shell script that caches the results of configure
19302 # tests run on this system so they can be shared between configure
19303 # scripts and configure runs, see configure's option --config-cache.
19304 # It is not useful on other systems. If it contains results you don't
19305 # want to keep, you may remove or edit it.
19307 # config.status only pays attention to the cache file if you give it
19308 # the --recheck option to rerun configure.
19310 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19311 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19312 # following values.
19314 _ACEOF
19316 # The following way of writing the cache mishandles newlines in values,
19317 # but we know of no workaround that is simple, portable, and efficient.
19318 # So, we kill variables containing newlines.
19319 # Ultrix sh set writes to stderr and can't be redirected directly,
19320 # and sets the high bit in the cache file unless we assign to the vars.
19322 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19323 eval ac_val=\$$ac_var
19324 case $ac_val in #(
19325 *${as_nl}*)
19326 case $ac_var in #(
19327 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19328 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19329 esac
19330 case $ac_var in #(
19331 _ | IFS | as_nl) ;; #(
19332 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19333 *) { eval $ac_var=; unset $ac_var;} ;;
19334 esac ;;
19335 esac
19336 done
19338 (set) 2>&1 |
19339 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19340 *${as_nl}ac_space=\ *)
19341 # `set' does not quote correctly, so add quotes: double-quote
19342 # substitution turns \\\\ into \\, and sed turns \\ into \.
19343 sed -n \
19344 "s/'/'\\\\''/g;
19345 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19346 ;; #(
19348 # `set' quotes correctly as required by POSIX, so do not add quotes.
19349 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19351 esac |
19352 sort
19354 sed '
19355 /^ac_cv_env_/b end
19356 t clear
19357 :clear
19358 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19359 t end
19360 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19361 :end' >>confcache
19362 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19363 if test -w "$cache_file"; then
19364 if test "x$cache_file" != "x/dev/null"; then
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19366 $as_echo "$as_me: updating cache $cache_file" >&6;}
19367 if test ! -f "$cache_file" || test -h "$cache_file"; then
19368 cat confcache >"$cache_file"
19369 else
19370 case $cache_file in #(
19371 */* | ?:*)
19372 mv -f confcache "$cache_file"$$ &&
19373 mv -f "$cache_file"$$ "$cache_file" ;; #(
19375 mv -f confcache "$cache_file" ;;
19376 esac
19379 else
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19381 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19384 rm -f confcache
19386 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19387 # Let make expand exec_prefix.
19388 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19390 DEFS=-DHAVE_CONFIG_H
19392 ac_libobjs=
19393 ac_ltlibobjs=
19395 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19396 # 1. Remove the extension, and $U if already installed.
19397 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19398 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19399 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19400 # will be set to the directory where LIBOBJS objects are built.
19401 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19402 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19403 done
19404 LIBOBJS=$ac_libobjs
19406 LTLIBOBJS=$ac_ltlibobjs
19409 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19410 as_fn_error $? "conditional \"AMDEP\" was never defined.
19411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19413 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19414 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19417 if test -n "$EXEEXT"; then
19418 am__EXEEXT_TRUE=
19419 am__EXEEXT_FALSE='#'
19420 else
19421 am__EXEEXT_TRUE='#'
19422 am__EXEEXT_FALSE=
19425 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19426 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19429 if test -z "${HAVE_GENGETOPT_TRUE}" && test -z "${HAVE_GENGETOPT_FALSE}"; then
19430 as_fn_error $? "conditional \"HAVE_GENGETOPT\" was never defined.
19431 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19433 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
19434 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
19435 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19437 if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
19438 as_fn_error $? "conditional \"HAVE_PERL\" was never defined.
19439 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19441 if test -z "${HAVE_PERL_POD_CHECKER_TRUE}" && test -z "${HAVE_PERL_POD_CHECKER_FALSE}"; then
19442 as_fn_error $? "conditional \"HAVE_PERL_POD_CHECKER\" was never defined.
19443 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19445 if test -z "${HAVE_POD2MAN_TRUE}" && test -z "${HAVE_POD2MAN_FALSE}"; then
19446 as_fn_error $? "conditional \"HAVE_POD2MAN\" was never defined.
19447 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19449 if test -z "${HAVE_POD2HTML_TRUE}" && test -z "${HAVE_POD2HTML_FALSE}"; then
19450 as_fn_error $? "conditional \"HAVE_POD2HTML\" was never defined.
19451 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19453 if test -z "${NO_ASPRINTF_TRUE}" && test -z "${NO_ASPRINTF_FALSE}"; then
19454 as_fn_error $? "conditional \"NO_ASPRINTF\" was never defined.
19455 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19457 if test -z "${ENABLE_QUVI_TRUE}" && test -z "${ENABLE_QUVI_FALSE}"; then
19458 as_fn_error $? "conditional \"ENABLE_QUVI\" was never defined.
19459 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19461 if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
19462 as_fn_error $? "conditional \"ENABLE_EXAMPLES\" was never defined.
19463 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19465 if test -z "${ENABLE_NSFW_TRUE}" && test -z "${ENABLE_NSFW_FALSE}"; then
19466 as_fn_error $? "conditional \"ENABLE_NSFW\" was never defined.
19467 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19469 if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
19470 as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
19471 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19473 if test -z "${ENABLE_BROKEN_TRUE}" && test -z "${ENABLE_BROKEN_FALSE}"; then
19474 as_fn_error $? "conditional \"ENABLE_BROKEN\" was never defined.
19475 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19477 if test -z "${WITH_MAN_TRUE}" && test -z "${WITH_MAN_FALSE}"; then
19478 as_fn_error $? "conditional \"WITH_MAN\" was never defined.
19479 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19481 if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then
19482 as_fn_error $? "conditional \"WITH_DOC\" was never defined.
19483 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19485 if test -z "${HAVE_GNU_LD_TRUE}" && test -z "${HAVE_GNU_LD_FALSE}"; then
19486 as_fn_error $? "conditional \"HAVE_GNU_LD\" was never defined.
19487 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19490 : "${CONFIG_STATUS=./config.status}"
19491 ac_write_fail=0
19492 ac_clean_files_save=$ac_clean_files
19493 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19495 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19496 as_write_fail=0
19497 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19498 #! $SHELL
19499 # Generated by $as_me.
19500 # Run this file to recreate the current configuration.
19501 # Compiler output produced by configure, useful for debugging
19502 # configure, is in config.log if it exists.
19504 debug=false
19505 ac_cs_recheck=false
19506 ac_cs_silent=false
19508 SHELL=\${CONFIG_SHELL-$SHELL}
19509 export SHELL
19510 _ASEOF
19511 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19512 ## -------------------- ##
19513 ## M4sh Initialization. ##
19514 ## -------------------- ##
19516 # Be more Bourne compatible
19517 DUALCASE=1; export DUALCASE # for MKS sh
19518 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19519 emulate sh
19520 NULLCMD=:
19521 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19522 # is contrary to our usage. Disable this feature.
19523 alias -g '${1+"$@"}'='"$@"'
19524 setopt NO_GLOB_SUBST
19525 else
19526 case `(set -o) 2>/dev/null` in #(
19527 *posix*) :
19528 set -o posix ;; #(
19529 *) :
19531 esac
19535 as_nl='
19537 export as_nl
19538 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19539 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19540 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19541 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19542 # Prefer a ksh shell builtin over an external printf program on Solaris,
19543 # but without wasting forks for bash or zsh.
19544 if test -z "$BASH_VERSION$ZSH_VERSION" \
19545 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19546 as_echo='print -r --'
19547 as_echo_n='print -rn --'
19548 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19549 as_echo='printf %s\n'
19550 as_echo_n='printf %s'
19551 else
19552 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19553 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19554 as_echo_n='/usr/ucb/echo -n'
19555 else
19556 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19557 as_echo_n_body='eval
19558 arg=$1;
19559 case $arg in #(
19560 *"$as_nl"*)
19561 expr "X$arg" : "X\\(.*\\)$as_nl";
19562 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19563 esac;
19564 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19566 export as_echo_n_body
19567 as_echo_n='sh -c $as_echo_n_body as_echo'
19569 export as_echo_body
19570 as_echo='sh -c $as_echo_body as_echo'
19573 # The user is always right.
19574 if test "${PATH_SEPARATOR+set}" != set; then
19575 PATH_SEPARATOR=:
19576 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19577 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19578 PATH_SEPARATOR=';'
19583 # IFS
19584 # We need space, tab and new line, in precisely that order. Quoting is
19585 # there to prevent editors from complaining about space-tab.
19586 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19587 # splitting by setting IFS to empty value.)
19588 IFS=" "" $as_nl"
19590 # Find who we are. Look in the path if we contain no directory separator.
19591 as_myself=
19592 case $0 in #((
19593 *[\\/]* ) as_myself=$0 ;;
19594 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19595 for as_dir in $PATH
19597 IFS=$as_save_IFS
19598 test -z "$as_dir" && as_dir=.
19599 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19600 done
19601 IFS=$as_save_IFS
19604 esac
19605 # We did not find ourselves, most probably we were run as `sh COMMAND'
19606 # in which case we are not to be found in the path.
19607 if test "x$as_myself" = x; then
19608 as_myself=$0
19610 if test ! -f "$as_myself"; then
19611 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19612 exit 1
19615 # Unset variables that we do not need and which cause bugs (e.g. in
19616 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19617 # suppresses any "Segmentation fault" message there. '((' could
19618 # trigger a bug in pdksh 5.2.14.
19619 for as_var in BASH_ENV ENV MAIL MAILPATH
19620 do eval test x\${$as_var+set} = xset \
19621 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19622 done
19623 PS1='$ '
19624 PS2='> '
19625 PS4='+ '
19627 # NLS nuisances.
19628 LC_ALL=C
19629 export LC_ALL
19630 LANGUAGE=C
19631 export LANGUAGE
19633 # CDPATH.
19634 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19637 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19638 # ----------------------------------------
19639 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19640 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19641 # script with STATUS, using 1 if that was 0.
19642 as_fn_error ()
19644 as_status=$1; test $as_status -eq 0 && as_status=1
19645 if test "$4"; then
19646 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19647 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19649 $as_echo "$as_me: error: $2" >&2
19650 as_fn_exit $as_status
19651 } # as_fn_error
19654 # as_fn_set_status STATUS
19655 # -----------------------
19656 # Set $? to STATUS, without forking.
19657 as_fn_set_status ()
19659 return $1
19660 } # as_fn_set_status
19662 # as_fn_exit STATUS
19663 # -----------------
19664 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19665 as_fn_exit ()
19667 set +e
19668 as_fn_set_status $1
19669 exit $1
19670 } # as_fn_exit
19672 # as_fn_unset VAR
19673 # ---------------
19674 # Portably unset VAR.
19675 as_fn_unset ()
19677 { eval $1=; unset $1;}
19679 as_unset=as_fn_unset
19680 # as_fn_append VAR VALUE
19681 # ----------------------
19682 # Append the text in VALUE to the end of the definition contained in VAR. Take
19683 # advantage of any shell optimizations that allow amortized linear growth over
19684 # repeated appends, instead of the typical quadratic growth present in naive
19685 # implementations.
19686 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19687 eval 'as_fn_append ()
19689 eval $1+=\$2
19691 else
19692 as_fn_append ()
19694 eval $1=\$$1\$2
19696 fi # as_fn_append
19698 # as_fn_arith ARG...
19699 # ------------------
19700 # Perform arithmetic evaluation on the ARGs, and store the result in the
19701 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19702 # must be portable across $(()) and expr.
19703 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19704 eval 'as_fn_arith ()
19706 as_val=$(( $* ))
19708 else
19709 as_fn_arith ()
19711 as_val=`expr "$@" || test $? -eq 1`
19713 fi # as_fn_arith
19716 if expr a : '\(a\)' >/dev/null 2>&1 &&
19717 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19718 as_expr=expr
19719 else
19720 as_expr=false
19723 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19724 as_basename=basename
19725 else
19726 as_basename=false
19729 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19730 as_dirname=dirname
19731 else
19732 as_dirname=false
19735 as_me=`$as_basename -- "$0" ||
19736 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19737 X"$0" : 'X\(//\)$' \| \
19738 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19739 $as_echo X/"$0" |
19740 sed '/^.*\/\([^/][^/]*\)\/*$/{
19741 s//\1/
19744 /^X\/\(\/\/\)$/{
19745 s//\1/
19748 /^X\/\(\/\).*/{
19749 s//\1/
19752 s/.*/./; q'`
19754 # Avoid depending upon Character Ranges.
19755 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19756 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19757 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19758 as_cr_digits='0123456789'
19759 as_cr_alnum=$as_cr_Letters$as_cr_digits
19761 ECHO_C= ECHO_N= ECHO_T=
19762 case `echo -n x` in #(((((
19763 -n*)
19764 case `echo 'xy\c'` in
19765 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19766 xy) ECHO_C='\c';;
19767 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19768 ECHO_T=' ';;
19769 esac;;
19771 ECHO_N='-n';;
19772 esac
19774 rm -f conf$$ conf$$.exe conf$$.file
19775 if test -d conf$$.dir; then
19776 rm -f conf$$.dir/conf$$.file
19777 else
19778 rm -f conf$$.dir
19779 mkdir conf$$.dir 2>/dev/null
19781 if (echo >conf$$.file) 2>/dev/null; then
19782 if ln -s conf$$.file conf$$ 2>/dev/null; then
19783 as_ln_s='ln -s'
19784 # ... but there are two gotchas:
19785 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19786 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19787 # In both cases, we have to default to `cp -p'.
19788 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19789 as_ln_s='cp -p'
19790 elif ln conf$$.file conf$$ 2>/dev/null; then
19791 as_ln_s=ln
19792 else
19793 as_ln_s='cp -p'
19795 else
19796 as_ln_s='cp -p'
19798 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19799 rmdir conf$$.dir 2>/dev/null
19802 # as_fn_mkdir_p
19803 # -------------
19804 # Create "$as_dir" as a directory, including parents if necessary.
19805 as_fn_mkdir_p ()
19808 case $as_dir in #(
19809 -*) as_dir=./$as_dir;;
19810 esac
19811 test -d "$as_dir" || eval $as_mkdir_p || {
19812 as_dirs=
19813 while :; do
19814 case $as_dir in #(
19815 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19816 *) as_qdir=$as_dir;;
19817 esac
19818 as_dirs="'$as_qdir' $as_dirs"
19819 as_dir=`$as_dirname -- "$as_dir" ||
19820 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19821 X"$as_dir" : 'X\(//\)[^/]' \| \
19822 X"$as_dir" : 'X\(//\)$' \| \
19823 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19824 $as_echo X"$as_dir" |
19825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19826 s//\1/
19829 /^X\(\/\/\)[^/].*/{
19830 s//\1/
19833 /^X\(\/\/\)$/{
19834 s//\1/
19837 /^X\(\/\).*/{
19838 s//\1/
19841 s/.*/./; q'`
19842 test -d "$as_dir" && break
19843 done
19844 test -z "$as_dirs" || eval "mkdir $as_dirs"
19845 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19848 } # as_fn_mkdir_p
19849 if mkdir -p . 2>/dev/null; then
19850 as_mkdir_p='mkdir -p "$as_dir"'
19851 else
19852 test -d ./-p && rmdir ./-p
19853 as_mkdir_p=false
19856 if test -x / >/dev/null 2>&1; then
19857 as_test_x='test -x'
19858 else
19859 if ls -dL / >/dev/null 2>&1; then
19860 as_ls_L_option=L
19861 else
19862 as_ls_L_option=
19864 as_test_x='
19865 eval sh -c '\''
19866 if test -d "$1"; then
19867 test -d "$1/.";
19868 else
19869 case $1 in #(
19870 -*)set "./$1";;
19871 esac;
19872 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19873 ???[sx]*):;;*)false;;esac;fi
19874 '\'' sh
19877 as_executable_p=$as_test_x
19879 # Sed expression to map a string onto a valid CPP name.
19880 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19882 # Sed expression to map a string onto a valid variable name.
19883 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19886 exec 6>&1
19887 ## ----------------------------------- ##
19888 ## Main body of $CONFIG_STATUS script. ##
19889 ## ----------------------------------- ##
19890 _ASEOF
19891 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19894 # Save the log message, to keep $0 and so on meaningful, and to
19895 # report actual input values of CONFIG_FILES etc. instead of their
19896 # values after options handling.
19897 ac_log="
19898 This file was extended by quvi $as_me 0.2.15, which was
19899 generated by GNU Autoconf 2.68. Invocation command line was
19901 CONFIG_FILES = $CONFIG_FILES
19902 CONFIG_HEADERS = $CONFIG_HEADERS
19903 CONFIG_LINKS = $CONFIG_LINKS
19904 CONFIG_COMMANDS = $CONFIG_COMMANDS
19905 $ $0 $@
19907 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19910 _ACEOF
19912 case $ac_config_files in *"
19913 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19914 esac
19916 case $ac_config_headers in *"
19917 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19918 esac
19921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19922 # Files that config.status was made for.
19923 config_files="$ac_config_files"
19924 config_headers="$ac_config_headers"
19925 config_commands="$ac_config_commands"
19927 _ACEOF
19929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19930 ac_cs_usage="\
19931 \`$as_me' instantiates files and other configuration actions
19932 from templates according to the current configuration. Unless the files
19933 and actions are specified as TAGs, all are instantiated by default.
19935 Usage: $0 [OPTION]... [TAG]...
19937 -h, --help print this help, then exit
19938 -V, --version print version number and configuration settings, then exit
19939 --config print configuration, then exit
19940 -q, --quiet, --silent
19941 do not print progress messages
19942 -d, --debug don't remove temporary files
19943 --recheck update $as_me by reconfiguring in the same conditions
19944 --file=FILE[:TEMPLATE]
19945 instantiate the configuration file FILE
19946 --header=FILE[:TEMPLATE]
19947 instantiate the configuration header FILE
19949 Configuration files:
19950 $config_files
19952 Configuration headers:
19953 $config_headers
19955 Configuration commands:
19956 $config_commands
19958 Report bugs to <http://sourceforge.net/apps/trac/quvi>.
19959 quvi home page: <http://quvi.sourceforge.net/>."
19961 _ACEOF
19962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19963 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19964 ac_cs_version="\\
19965 quvi config.status 0.2.15
19966 configured by $0, generated by GNU Autoconf 2.68,
19967 with options \\"\$ac_cs_config\\"
19969 Copyright (C) 2010 Free Software Foundation, Inc.
19970 This config.status script is free software; the Free Software Foundation
19971 gives unlimited permission to copy, distribute and modify it."
19973 ac_pwd='$ac_pwd'
19974 srcdir='$srcdir'
19975 INSTALL='$INSTALL'
19976 MKDIR_P='$MKDIR_P'
19977 AWK='$AWK'
19978 test -n "\$AWK" || AWK=awk
19979 _ACEOF
19981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19982 # The default lists apply if the user does not specify any file.
19983 ac_need_defaults=:
19984 while test $# != 0
19986 case $1 in
19987 --*=?*)
19988 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19989 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19990 ac_shift=:
19992 --*=)
19993 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19994 ac_optarg=
19995 ac_shift=:
19998 ac_option=$1
19999 ac_optarg=$2
20000 ac_shift=shift
20002 esac
20004 case $ac_option in
20005 # Handling of the options.
20006 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20007 ac_cs_recheck=: ;;
20008 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20009 $as_echo "$ac_cs_version"; exit ;;
20010 --config | --confi | --conf | --con | --co | --c )
20011 $as_echo "$ac_cs_config"; exit ;;
20012 --debug | --debu | --deb | --de | --d | -d )
20013 debug=: ;;
20014 --file | --fil | --fi | --f )
20015 $ac_shift
20016 case $ac_optarg in
20017 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20018 '') as_fn_error $? "missing file argument" ;;
20019 esac
20020 as_fn_append CONFIG_FILES " '$ac_optarg'"
20021 ac_need_defaults=false;;
20022 --header | --heade | --head | --hea )
20023 $ac_shift
20024 case $ac_optarg in
20025 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20026 esac
20027 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20028 ac_need_defaults=false;;
20029 --he | --h)
20030 # Conflict between --help and --header
20031 as_fn_error $? "ambiguous option: \`$1'
20032 Try \`$0 --help' for more information.";;
20033 --help | --hel | -h )
20034 $as_echo "$ac_cs_usage"; exit ;;
20035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20036 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20037 ac_cs_silent=: ;;
20039 # This is an error.
20040 -*) as_fn_error $? "unrecognized option: \`$1'
20041 Try \`$0 --help' for more information." ;;
20043 *) as_fn_append ac_config_targets " $1"
20044 ac_need_defaults=false ;;
20046 esac
20047 shift
20048 done
20050 ac_configure_extra_args=
20052 if $ac_cs_silent; then
20053 exec 6>/dev/null
20054 ac_configure_extra_args="$ac_configure_extra_args --silent"
20057 _ACEOF
20058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20059 if \$ac_cs_recheck; then
20060 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20061 shift
20062 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20063 CONFIG_SHELL='$SHELL'
20064 export CONFIG_SHELL
20065 exec "\$@"
20068 _ACEOF
20069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20070 exec 5>>config.log
20072 echo
20073 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20074 ## Running $as_me. ##
20075 _ASBOX
20076 $as_echo "$ac_log"
20077 } >&5
20079 _ACEOF
20080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20082 # INIT-COMMANDS
20084 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20087 # The HP-UX ksh and POSIX shell print the target directory to stdout
20088 # if CDPATH is set.
20089 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20091 sed_quote_subst='$sed_quote_subst'
20092 double_quote_subst='$double_quote_subst'
20093 delay_variable_subst='$delay_variable_subst'
20094 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20095 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20096 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20097 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20098 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20099 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20100 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20101 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20102 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20103 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20104 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20105 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20106 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20107 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20108 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20109 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20110 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20111 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20112 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20113 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20114 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20115 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20116 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20117 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20118 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20119 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20120 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20121 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20122 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20123 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20124 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20125 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20126 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20127 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20128 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20129 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20130 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20131 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20132 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20133 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20134 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20135 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20136 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20137 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20138 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20139 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20140 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20141 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20142 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20143 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20144 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20145 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20146 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20147 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20148 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20149 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"`'
20150 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20151 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20152 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20153 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20154 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20155 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20156 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20157 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20158 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20159 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20160 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20161 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20162 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20163 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20164 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20165 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20166 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20167 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20168 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20169 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20170 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20171 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20172 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20173 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20174 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20175 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20176 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20177 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20178 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20179 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20180 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20181 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20182 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20183 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20184 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20185 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20186 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20187 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20188 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20189 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20190 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20191 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20192 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20193 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20194 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20195 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20196 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20197 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20198 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20199 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20200 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20201 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20202 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20203 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20204 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20205 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20206 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20207 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20208 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20209 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20210 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20211 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20212 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20213 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20214 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20215 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20216 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20217 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20218 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20219 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20220 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20221 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20222 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20223 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20224 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20225 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20226 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20227 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20228 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20229 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20230 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20231 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20232 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20233 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20234 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20235 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20236 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20237 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20238 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20239 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20240 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20241 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20242 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20243 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20244 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20245 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20246 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20247 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20248 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20249 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20250 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20251 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20252 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20253 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20254 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20255 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20256 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
20257 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20258 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20259 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20260 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20261 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20262 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20263 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20264 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20265 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20266 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20267 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20268 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20269 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20270 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20271 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20272 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20273 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20274 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20275 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20276 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20277 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20278 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20280 LTCC='$LTCC'
20281 LTCFLAGS='$LTCFLAGS'
20282 compiler='$compiler_DEFAULT'
20284 # A function that is used when there is no print builtin or printf.
20285 func_fallback_echo ()
20287 eval 'cat <<_LTECHO_EOF
20289 _LTECHO_EOF'
20292 # Quote evaled strings.
20293 for var in SHELL \
20294 ECHO \
20295 SED \
20296 GREP \
20297 EGREP \
20298 FGREP \
20299 LD \
20300 NM \
20301 LN_S \
20302 lt_SP2NL \
20303 lt_NL2SP \
20304 reload_flag \
20305 OBJDUMP \
20306 deplibs_check_method \
20307 file_magic_cmd \
20308 file_magic_glob \
20309 want_nocaseglob \
20310 DLLTOOL \
20311 sharedlib_from_linklib_cmd \
20312 AR \
20313 AR_FLAGS \
20314 archiver_list_spec \
20315 STRIP \
20316 RANLIB \
20317 CC \
20318 CFLAGS \
20319 compiler \
20320 lt_cv_sys_global_symbol_pipe \
20321 lt_cv_sys_global_symbol_to_cdecl \
20322 lt_cv_sys_global_symbol_to_c_name_address \
20323 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20324 nm_file_list_spec \
20325 lt_prog_compiler_no_builtin_flag \
20326 lt_prog_compiler_pic \
20327 lt_prog_compiler_wl \
20328 lt_prog_compiler_static \
20329 lt_cv_prog_compiler_c_o \
20330 need_locks \
20331 MANIFEST_TOOL \
20332 DSYMUTIL \
20333 NMEDIT \
20334 LIPO \
20335 OTOOL \
20336 OTOOL64 \
20337 shrext_cmds \
20338 export_dynamic_flag_spec \
20339 whole_archive_flag_spec \
20340 compiler_needs_object \
20341 with_gnu_ld \
20342 allow_undefined_flag \
20343 no_undefined_flag \
20344 hardcode_libdir_flag_spec \
20345 hardcode_libdir_flag_spec_ld \
20346 hardcode_libdir_separator \
20347 exclude_expsyms \
20348 include_expsyms \
20349 file_list_spec \
20350 variables_saved_for_relink \
20351 libname_spec \
20352 library_names_spec \
20353 soname_spec \
20354 install_override_mode \
20355 finish_eval \
20356 old_striplib \
20357 striplib \
20358 compiler_lib_search_dirs \
20359 predep_objects \
20360 postdep_objects \
20361 predeps \
20362 postdeps \
20363 compiler_lib_search_path \
20364 LD_CXX \
20365 reload_flag_CXX \
20366 compiler_CXX \
20367 lt_prog_compiler_no_builtin_flag_CXX \
20368 lt_prog_compiler_pic_CXX \
20369 lt_prog_compiler_wl_CXX \
20370 lt_prog_compiler_static_CXX \
20371 lt_cv_prog_compiler_c_o_CXX \
20372 export_dynamic_flag_spec_CXX \
20373 whole_archive_flag_spec_CXX \
20374 compiler_needs_object_CXX \
20375 with_gnu_ld_CXX \
20376 allow_undefined_flag_CXX \
20377 no_undefined_flag_CXX \
20378 hardcode_libdir_flag_spec_CXX \
20379 hardcode_libdir_flag_spec_ld_CXX \
20380 hardcode_libdir_separator_CXX \
20381 exclude_expsyms_CXX \
20382 include_expsyms_CXX \
20383 file_list_spec_CXX \
20384 compiler_lib_search_dirs_CXX \
20385 predep_objects_CXX \
20386 postdep_objects_CXX \
20387 predeps_CXX \
20388 postdeps_CXX \
20389 compiler_lib_search_path_CXX; do
20390 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20391 *[\\\\\\\`\\"\\\$]*)
20392 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20395 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20397 esac
20398 done
20400 # Double-quote double-evaled strings.
20401 for var in reload_cmds \
20402 old_postinstall_cmds \
20403 old_postuninstall_cmds \
20404 old_archive_cmds \
20405 extract_expsyms_cmds \
20406 old_archive_from_new_cmds \
20407 old_archive_from_expsyms_cmds \
20408 archive_cmds \
20409 archive_expsym_cmds \
20410 module_cmds \
20411 module_expsym_cmds \
20412 export_symbols_cmds \
20413 prelink_cmds \
20414 postlink_cmds \
20415 postinstall_cmds \
20416 postuninstall_cmds \
20417 finish_cmds \
20418 sys_lib_search_path_spec \
20419 sys_lib_dlsearch_path_spec \
20420 reload_cmds_CXX \
20421 old_archive_cmds_CXX \
20422 old_archive_from_new_cmds_CXX \
20423 old_archive_from_expsyms_cmds_CXX \
20424 archive_cmds_CXX \
20425 archive_expsym_cmds_CXX \
20426 module_cmds_CXX \
20427 module_expsym_cmds_CXX \
20428 export_symbols_cmds_CXX \
20429 prelink_cmds_CXX \
20430 postlink_cmds_CXX; do
20431 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20432 *[\\\\\\\`\\"\\\$]*)
20433 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20436 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20438 esac
20439 done
20441 ac_aux_dir='$ac_aux_dir'
20442 xsi_shell='$xsi_shell'
20443 lt_shell_append='$lt_shell_append'
20445 # See if we are running on zsh, and set the options which allow our
20446 # commands through without removal of \ escapes INIT.
20447 if test -n "\${ZSH_VERSION+set}" ; then
20448 setopt NO_GLOB_SUBST
20452 PACKAGE='$PACKAGE'
20453 VERSION='$VERSION'
20454 TIMESTAMP='$TIMESTAMP'
20455 RM='$RM'
20456 ofile='$ofile'
20463 _ACEOF
20465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20467 # Handling of arguments.
20468 for ac_config_target in $ac_config_targets
20470 case $ac_config_target in
20471 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20472 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20473 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20474 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20475 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20476 "include/quvi/Makefile") CONFIG_FILES="$CONFIG_FILES include/quvi/Makefile" ;;
20477 "include/quvi/quvi.h") CONFIG_FILES="$CONFIG_FILES include/quvi/quvi.h" ;;
20478 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20479 "man1/Makefile") CONFIG_FILES="$CONFIG_FILES man1/Makefile" ;;
20480 "share/Makefile") CONFIG_FILES="$CONFIG_FILES share/Makefile" ;;
20481 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20482 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20483 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
20484 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20485 "tests/quviTest.pm") CONFIG_FILES="$CONFIG_FILES tests/quviTest.pm" ;;
20486 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
20487 "libquvi.pc") CONFIG_FILES="$CONFIG_FILES libquvi.pc" ;;
20488 "doxygen.conf") CONFIG_FILES="$CONFIG_FILES doxygen.conf" ;;
20490 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20491 esac
20492 done
20495 # If the user did not use the arguments to specify the items to instantiate,
20496 # then the envvar interface is used. Set only those that are not.
20497 # We use the long form for the default assignment because of an extremely
20498 # bizarre bug on SunOS 4.1.3.
20499 if $ac_need_defaults; then
20500 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20501 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20502 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20505 # Have a temporary directory for convenience. Make it in the build tree
20506 # simply because there is no reason against having it here, and in addition,
20507 # creating and moving files from /tmp can sometimes cause problems.
20508 # Hook for its removal unless debugging.
20509 # Note that there is a small window in which the directory will not be cleaned:
20510 # after its creation but before its name has been assigned to `$tmp'.
20511 $debug ||
20513 tmp= ac_tmp=
20514 trap 'exit_status=$?
20515 : "${ac_tmp:=$tmp}"
20516 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20518 trap 'as_fn_exit 1' 1 2 13 15
20520 # Create a (secure) tmp directory for tmp files.
20523 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20524 test -d "$tmp"
20525 } ||
20527 tmp=./conf$$-$RANDOM
20528 (umask 077 && mkdir "$tmp")
20529 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20530 ac_tmp=$tmp
20532 # Set up the scripts for CONFIG_FILES section.
20533 # No need to generate them if there are no CONFIG_FILES.
20534 # This happens for instance with `./config.status config.h'.
20535 if test -n "$CONFIG_FILES"; then
20538 ac_cr=`echo X | tr X '\015'`
20539 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20540 # But we know of no other shell where ac_cr would be empty at this
20541 # point, so we can use a bashism as a fallback.
20542 if test "x$ac_cr" = x; then
20543 eval ac_cr=\$\'\\r\'
20545 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20546 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20547 ac_cs_awk_cr='\\r'
20548 else
20549 ac_cs_awk_cr=$ac_cr
20552 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20553 _ACEOF
20557 echo "cat >conf$$subs.awk <<_ACEOF" &&
20558 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20559 echo "_ACEOF"
20560 } >conf$$subs.sh ||
20561 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20562 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20563 ac_delim='%!_!# '
20564 for ac_last_try in false false false false false :; do
20565 . ./conf$$subs.sh ||
20566 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20568 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20569 if test $ac_delim_n = $ac_delim_num; then
20570 break
20571 elif $ac_last_try; then
20572 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20573 else
20574 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20576 done
20577 rm -f conf$$subs.sh
20579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20580 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20581 _ACEOF
20582 sed -n '
20584 s/^/S["/; s/!.*/"]=/
20587 s/^[^!]*!//
20588 :repl
20589 t repl
20590 s/'"$ac_delim"'$//
20591 t delim
20594 s/\(.\{148\}\)..*/\1/
20595 t more1
20596 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20599 b repl
20600 :more1
20601 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20604 s/.\{148\}//
20605 t nl
20606 :delim
20608 s/\(.\{148\}\)..*/\1/
20609 t more2
20610 s/["\\]/\\&/g; s/^/"/; s/$/"/
20613 :more2
20614 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20617 s/.\{148\}//
20618 t delim
20619 ' <conf$$subs.awk | sed '
20620 /^[^""]/{
20622 s/\n//
20624 ' >>$CONFIG_STATUS || ac_write_fail=1
20625 rm -f conf$$subs.awk
20626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20627 _ACAWK
20628 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20629 for (key in S) S_is_set[key] = 1
20630 FS = "\a"
20634 line = $ 0
20635 nfields = split(line, field, "@")
20636 substed = 0
20637 len = length(field[1])
20638 for (i = 2; i < nfields; i++) {
20639 key = field[i]
20640 keylen = length(key)
20641 if (S_is_set[key]) {
20642 value = S[key]
20643 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20644 len += length(value) + length(field[++i])
20645 substed = 1
20646 } else
20647 len += 1 + keylen
20650 print line
20653 _ACAWK
20654 _ACEOF
20655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20656 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20657 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20658 else
20660 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20661 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20662 _ACEOF
20664 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20665 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20666 # trailing colons and then remove the whole line if VPATH becomes empty
20667 # (actually we leave an empty line to preserve line numbers).
20668 if test "x$srcdir" = x.; then
20669 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20671 s///
20672 s/^/:/
20673 s/[ ]*$/:/
20674 s/:\$(srcdir):/:/g
20675 s/:\${srcdir}:/:/g
20676 s/:@srcdir@:/:/g
20677 s/^:*//
20678 s/:*$//
20680 s/\(=[ ]*\).*/\1/
20682 s/\n//
20683 s/^[^=]*=[ ]*$//
20687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20688 fi # test -n "$CONFIG_FILES"
20690 # Set up the scripts for CONFIG_HEADERS section.
20691 # No need to generate them if there are no CONFIG_HEADERS.
20692 # This happens for instance with `./config.status Makefile'.
20693 if test -n "$CONFIG_HEADERS"; then
20694 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20695 BEGIN {
20696 _ACEOF
20698 # Transform confdefs.h into an awk script `defines.awk', embedded as
20699 # here-document in config.status, that substitutes the proper values into
20700 # config.h.in to produce config.h.
20702 # Create a delimiter string that does not exist in confdefs.h, to ease
20703 # handling of long lines.
20704 ac_delim='%!_!# '
20705 for ac_last_try in false false :; do
20706 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20707 if test -z "$ac_tt"; then
20708 break
20709 elif $ac_last_try; then
20710 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20711 else
20712 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20714 done
20716 # For the awk script, D is an array of macro values keyed by name,
20717 # likewise P contains macro parameters if any. Preserve backslash
20718 # newline sequences.
20720 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20721 sed -n '
20722 s/.\{148\}/&'"$ac_delim"'/g
20723 t rset
20724 :rset
20725 s/^[ ]*#[ ]*define[ ][ ]*/ /
20726 t def
20728 :def
20729 s/\\$//
20730 t bsnl
20731 s/["\\]/\\&/g
20732 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20733 D["\1"]=" \3"/p
20734 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20736 :bsnl
20737 s/["\\]/\\&/g
20738 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20739 D["\1"]=" \3\\\\\\n"\\/p
20740 t cont
20741 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20742 t cont
20744 :cont
20746 s/.\{148\}/&'"$ac_delim"'/g
20747 t clear
20748 :clear
20749 s/\\$//
20750 t bsnlc
20751 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20753 :bsnlc
20754 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20755 b cont
20756 ' <confdefs.h | sed '
20757 s/'"$ac_delim"'/"\\\
20758 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20761 for (key in D) D_is_set[key] = 1
20762 FS = "\a"
20764 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20765 line = \$ 0
20766 split(line, arg, " ")
20767 if (arg[1] == "#") {
20768 defundef = arg[2]
20769 mac1 = arg[3]
20770 } else {
20771 defundef = substr(arg[1], 2)
20772 mac1 = arg[2]
20774 split(mac1, mac2, "(") #)
20775 macro = mac2[1]
20776 prefix = substr(line, 1, index(line, defundef) - 1)
20777 if (D_is_set[macro]) {
20778 # Preserve the white space surrounding the "#".
20779 print prefix "define", macro P[macro] D[macro]
20780 next
20781 } else {
20782 # Replace #undef with comments. This is necessary, for example,
20783 # in the case of _POSIX_SOURCE, which is predefined and required
20784 # on some systems where configure will not decide to define it.
20785 if (defundef == "undef") {
20786 print "/*", prefix defundef, macro, "*/"
20787 next
20791 { print }
20792 _ACAWK
20793 _ACEOF
20794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20795 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20796 fi # test -n "$CONFIG_HEADERS"
20799 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20800 shift
20801 for ac_tag
20803 case $ac_tag in
20804 :[FHLC]) ac_mode=$ac_tag; continue;;
20805 esac
20806 case $ac_mode$ac_tag in
20807 :[FHL]*:*);;
20808 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20809 :[FH]-) ac_tag=-:-;;
20810 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20811 esac
20812 ac_save_IFS=$IFS
20813 IFS=:
20814 set x $ac_tag
20815 IFS=$ac_save_IFS
20816 shift
20817 ac_file=$1
20818 shift
20820 case $ac_mode in
20821 :L) ac_source=$1;;
20822 :[FH])
20823 ac_file_inputs=
20824 for ac_f
20826 case $ac_f in
20827 -) ac_f="$ac_tmp/stdin";;
20828 *) # Look for the file first in the build tree, then in the source tree
20829 # (if the path is not absolute). The absolute path cannot be DOS-style,
20830 # because $ac_f cannot contain `:'.
20831 test -f "$ac_f" ||
20832 case $ac_f in
20833 [\\/$]*) false;;
20834 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20835 esac ||
20836 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20837 esac
20838 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20839 as_fn_append ac_file_inputs " '$ac_f'"
20840 done
20842 # Let's still pretend it is `configure' which instantiates (i.e., don't
20843 # use $as_me), people would be surprised to read:
20844 # /* config.h. Generated by config.status. */
20845 configure_input='Generated from '`
20846 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20847 `' by configure.'
20848 if test x"$ac_file" != x-; then
20849 configure_input="$ac_file. $configure_input"
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20851 $as_echo "$as_me: creating $ac_file" >&6;}
20853 # Neutralize special characters interpreted by sed in replacement strings.
20854 case $configure_input in #(
20855 *\&* | *\|* | *\\* )
20856 ac_sed_conf_input=`$as_echo "$configure_input" |
20857 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20858 *) ac_sed_conf_input=$configure_input;;
20859 esac
20861 case $ac_tag in
20862 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20863 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20864 esac
20866 esac
20868 ac_dir=`$as_dirname -- "$ac_file" ||
20869 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20870 X"$ac_file" : 'X\(//\)[^/]' \| \
20871 X"$ac_file" : 'X\(//\)$' \| \
20872 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20873 $as_echo X"$ac_file" |
20874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20875 s//\1/
20878 /^X\(\/\/\)[^/].*/{
20879 s//\1/
20882 /^X\(\/\/\)$/{
20883 s//\1/
20886 /^X\(\/\).*/{
20887 s//\1/
20890 s/.*/./; q'`
20891 as_dir="$ac_dir"; as_fn_mkdir_p
20892 ac_builddir=.
20894 case "$ac_dir" in
20895 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20897 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20898 # A ".." for each directory in $ac_dir_suffix.
20899 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20900 case $ac_top_builddir_sub in
20901 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20902 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20903 esac ;;
20904 esac
20905 ac_abs_top_builddir=$ac_pwd
20906 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20907 # for backward compatibility:
20908 ac_top_builddir=$ac_top_build_prefix
20910 case $srcdir in
20911 .) # We are building in place.
20912 ac_srcdir=.
20913 ac_top_srcdir=$ac_top_builddir_sub
20914 ac_abs_top_srcdir=$ac_pwd ;;
20915 [\\/]* | ?:[\\/]* ) # Absolute name.
20916 ac_srcdir=$srcdir$ac_dir_suffix;
20917 ac_top_srcdir=$srcdir
20918 ac_abs_top_srcdir=$srcdir ;;
20919 *) # Relative name.
20920 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20921 ac_top_srcdir=$ac_top_build_prefix$srcdir
20922 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20923 esac
20924 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20927 case $ac_mode in
20930 # CONFIG_FILE
20933 case $INSTALL in
20934 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20935 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20936 esac
20937 ac_MKDIR_P=$MKDIR_P
20938 case $MKDIR_P in
20939 [\\/$]* | ?:[\\/]* ) ;;
20940 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20941 esac
20942 _ACEOF
20944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20945 # If the template does not know about datarootdir, expand it.
20946 # FIXME: This hack should be removed a few years after 2.60.
20947 ac_datarootdir_hack=; ac_datarootdir_seen=
20948 ac_sed_dataroot='
20949 /datarootdir/ {
20953 /@datadir@/p
20954 /@docdir@/p
20955 /@infodir@/p
20956 /@localedir@/p
20957 /@mandir@/p'
20958 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20959 *datarootdir*) ac_datarootdir_seen=yes;;
20960 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20962 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20963 _ACEOF
20964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20965 ac_datarootdir_hack='
20966 s&@datadir@&$datadir&g
20967 s&@docdir@&$docdir&g
20968 s&@infodir@&$infodir&g
20969 s&@localedir@&$localedir&g
20970 s&@mandir@&$mandir&g
20971 s&\\\${datarootdir}&$datarootdir&g' ;;
20972 esac
20973 _ACEOF
20975 # Neutralize VPATH when `$srcdir' = `.'.
20976 # Shell code in configure.ac might set extrasub.
20977 # FIXME: do we really want to maintain this feature?
20978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20979 ac_sed_extra="$ac_vpsub
20980 $extrasub
20981 _ACEOF
20982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20984 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20985 s|@configure_input@|$ac_sed_conf_input|;t t
20986 s&@top_builddir@&$ac_top_builddir_sub&;t t
20987 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20988 s&@srcdir@&$ac_srcdir&;t t
20989 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20990 s&@top_srcdir@&$ac_top_srcdir&;t t
20991 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20992 s&@builddir@&$ac_builddir&;t t
20993 s&@abs_builddir@&$ac_abs_builddir&;t t
20994 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20995 s&@INSTALL@&$ac_INSTALL&;t t
20996 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20997 $ac_datarootdir_hack
20999 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21000 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21002 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21003 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21004 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21005 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21007 which seems to be undefined. Please make sure it is defined" >&5
21008 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21009 which seems to be undefined. Please make sure it is defined" >&2;}
21011 rm -f "$ac_tmp/stdin"
21012 case $ac_file in
21013 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21014 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21015 esac \
21016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21020 # CONFIG_HEADER
21022 if test x"$ac_file" != x-; then
21024 $as_echo "/* $configure_input */" \
21025 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21026 } >"$ac_tmp/config.h" \
21027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21028 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21030 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21031 else
21032 rm -f "$ac_file"
21033 mv "$ac_tmp/config.h" "$ac_file" \
21034 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21036 else
21037 $as_echo "/* $configure_input */" \
21038 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21039 || as_fn_error $? "could not create -" "$LINENO" 5
21041 # Compute "$ac_file"'s index in $config_headers.
21042 _am_arg="$ac_file"
21043 _am_stamp_count=1
21044 for _am_header in $config_headers :; do
21045 case $_am_header in
21046 $_am_arg | $_am_arg:* )
21047 break ;;
21049 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21050 esac
21051 done
21052 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21053 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21054 X"$_am_arg" : 'X\(//\)[^/]' \| \
21055 X"$_am_arg" : 'X\(//\)$' \| \
21056 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21057 $as_echo X"$_am_arg" |
21058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21059 s//\1/
21062 /^X\(\/\/\)[^/].*/{
21063 s//\1/
21066 /^X\(\/\/\)$/{
21067 s//\1/
21070 /^X\(\/\).*/{
21071 s//\1/
21074 s/.*/./; q'`/stamp-h$_am_stamp_count
21077 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21078 $as_echo "$as_me: executing $ac_file commands" >&6;}
21080 esac
21083 case $ac_file$ac_mode in
21084 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21085 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21086 # are listed without --file. Let's play safe and only enable the eval
21087 # if we detect the quoting.
21088 case $CONFIG_FILES in
21089 *\'*) eval set x "$CONFIG_FILES" ;;
21090 *) set x $CONFIG_FILES ;;
21091 esac
21092 shift
21093 for mf
21095 # Strip MF so we end up with the name of the file.
21096 mf=`echo "$mf" | sed -e 's/:.*$//'`
21097 # Check whether this is an Automake generated Makefile or not.
21098 # We used to match only the files named `Makefile.in', but
21099 # some people rename them; so instead we look at the file content.
21100 # Grep'ing the first line is not enough: some people post-process
21101 # each Makefile.in and add a new line on top of each file to say so.
21102 # Grep'ing the whole file is not good either: AIX grep has a line
21103 # limit of 2048, but all sed's we know have understand at least 4000.
21104 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21105 dirpart=`$as_dirname -- "$mf" ||
21106 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21107 X"$mf" : 'X\(//\)[^/]' \| \
21108 X"$mf" : 'X\(//\)$' \| \
21109 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21110 $as_echo X"$mf" |
21111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21112 s//\1/
21115 /^X\(\/\/\)[^/].*/{
21116 s//\1/
21119 /^X\(\/\/\)$/{
21120 s//\1/
21123 /^X\(\/\).*/{
21124 s//\1/
21127 s/.*/./; q'`
21128 else
21129 continue
21131 # Extract the definition of DEPDIR, am__include, and am__quote
21132 # from the Makefile without running `make'.
21133 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21134 test -z "$DEPDIR" && continue
21135 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21136 test -z "am__include" && continue
21137 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21138 # When using ansi2knr, U may be empty or an underscore; expand it
21139 U=`sed -n 's/^U = //p' < "$mf"`
21140 # Find all dependency output files, they are included files with
21141 # $(DEPDIR) in their names. We invoke sed twice because it is the
21142 # simplest approach to changing $(DEPDIR) to its actual value in the
21143 # expansion.
21144 for file in `sed -n "
21145 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21146 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21147 # Make sure the directory exists.
21148 test -f "$dirpart/$file" && continue
21149 fdir=`$as_dirname -- "$file" ||
21150 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21151 X"$file" : 'X\(//\)[^/]' \| \
21152 X"$file" : 'X\(//\)$' \| \
21153 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21154 $as_echo X"$file" |
21155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21156 s//\1/
21159 /^X\(\/\/\)[^/].*/{
21160 s//\1/
21163 /^X\(\/\/\)$/{
21164 s//\1/
21167 /^X\(\/\).*/{
21168 s//\1/
21171 s/.*/./; q'`
21172 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21173 # echo "creating $dirpart/$file"
21174 echo '# dummy' > "$dirpart/$file"
21175 done
21176 done
21179 "libtool":C)
21181 # See if we are running on zsh, and set the options which allow our
21182 # commands through without removal of \ escapes.
21183 if test -n "${ZSH_VERSION+set}" ; then
21184 setopt NO_GLOB_SUBST
21187 cfgfile="${ofile}T"
21188 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21189 $RM "$cfgfile"
21191 cat <<_LT_EOF >> "$cfgfile"
21192 #! $SHELL
21194 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21195 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21196 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21197 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21199 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21200 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
21201 # Inc.
21202 # Written by Gordon Matzigkeit, 1996
21204 # This file is part of GNU Libtool.
21206 # GNU Libtool is free software; you can redistribute it and/or
21207 # modify it under the terms of the GNU General Public License as
21208 # published by the Free Software Foundation; either version 2 of
21209 # the License, or (at your option) any later version.
21211 # As a special exception to the GNU General Public License,
21212 # if you distribute this file as part of a program or library that
21213 # is built using GNU Libtool, you may include this file under the
21214 # same distribution terms that you use for the rest of that program.
21216 # GNU Libtool is distributed in the hope that it will be useful,
21217 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21218 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21219 # GNU General Public License for more details.
21221 # You should have received a copy of the GNU General Public License
21222 # along with GNU Libtool; see the file COPYING. If not, a copy
21223 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21224 # obtained by writing to the Free Software Foundation, Inc.,
21225 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21228 # The names of the tagged configurations supported by this script.
21229 available_tags="CXX "
21231 # ### BEGIN LIBTOOL CONFIG
21233 # Which release of libtool.m4 was used?
21234 macro_version=$macro_version
21235 macro_revision=$macro_revision
21237 # Whether or not to build shared libraries.
21238 build_libtool_libs=$enable_shared
21240 # Whether or not to build static libraries.
21241 build_old_libs=$enable_static
21243 # What type of objects to build.
21244 pic_mode=$pic_mode
21246 # Whether or not to optimize for fast installation.
21247 fast_install=$enable_fast_install
21249 # Shell to use when invoking shell scripts.
21250 SHELL=$lt_SHELL
21252 # An echo program that protects backslashes.
21253 ECHO=$lt_ECHO
21255 # The host system.
21256 host_alias=$host_alias
21257 host=$host
21258 host_os=$host_os
21260 # The build system.
21261 build_alias=$build_alias
21262 build=$build
21263 build_os=$build_os
21265 # A sed program that does not truncate output.
21266 SED=$lt_SED
21268 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21269 Xsed="\$SED -e 1s/^X//"
21271 # A grep program that handles long lines.
21272 GREP=$lt_GREP
21274 # An ERE matcher.
21275 EGREP=$lt_EGREP
21277 # A literal string matcher.
21278 FGREP=$lt_FGREP
21280 # A BSD- or MS-compatible name lister.
21281 NM=$lt_NM
21283 # Whether we need soft or hard links.
21284 LN_S=$lt_LN_S
21286 # What is the maximum length of a command?
21287 max_cmd_len=$max_cmd_len
21289 # Object file suffix (normally "o").
21290 objext=$ac_objext
21292 # Executable file suffix (normally "").
21293 exeext=$exeext
21295 # whether the shell understands "unset".
21296 lt_unset=$lt_unset
21298 # turn spaces into newlines.
21299 SP2NL=$lt_lt_SP2NL
21301 # turn newlines into spaces.
21302 NL2SP=$lt_lt_NL2SP
21304 # convert \$build file names to \$host format.
21305 to_host_file_cmd=$lt_cv_to_host_file_cmd
21307 # convert \$build files to toolchain format.
21308 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21310 # An object symbol dumper.
21311 OBJDUMP=$lt_OBJDUMP
21313 # Method to check whether dependent libraries are shared objects.
21314 deplibs_check_method=$lt_deplibs_check_method
21316 # Command to use when deplibs_check_method = "file_magic".
21317 file_magic_cmd=$lt_file_magic_cmd
21319 # How to find potential files when deplibs_check_method = "file_magic".
21320 file_magic_glob=$lt_file_magic_glob
21322 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21323 want_nocaseglob=$lt_want_nocaseglob
21325 # DLL creation program.
21326 DLLTOOL=$lt_DLLTOOL
21328 # Command to associate shared and link libraries.
21329 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21331 # The archiver.
21332 AR=$lt_AR
21334 # Flags to create an archive.
21335 AR_FLAGS=$lt_AR_FLAGS
21337 # How to feed a file listing to the archiver.
21338 archiver_list_spec=$lt_archiver_list_spec
21340 # A symbol stripping program.
21341 STRIP=$lt_STRIP
21343 # Commands used to install an old-style archive.
21344 RANLIB=$lt_RANLIB
21345 old_postinstall_cmds=$lt_old_postinstall_cmds
21346 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21348 # Whether to use a lock for old archive extraction.
21349 lock_old_archive_extraction=$lock_old_archive_extraction
21351 # A C compiler.
21352 LTCC=$lt_CC
21354 # LTCC compiler flags.
21355 LTCFLAGS=$lt_CFLAGS
21357 # Take the output of nm and produce a listing of raw symbols and C names.
21358 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21360 # Transform the output of nm in a proper C declaration.
21361 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21363 # Transform the output of nm in a C name address pair.
21364 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21366 # Transform the output of nm in a C name address pair when lib prefix is needed.
21367 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21369 # Specify filename containing input files for \$NM.
21370 nm_file_list_spec=$lt_nm_file_list_spec
21372 # The root where to search for dependent libraries,and in which our libraries should be installed.
21373 lt_sysroot=$lt_sysroot
21375 # The name of the directory that contains temporary libtool files.
21376 objdir=$objdir
21378 # Used to examine libraries when file_magic_cmd begins with "file".
21379 MAGIC_CMD=$MAGIC_CMD
21381 # Must we lock files when doing compilation?
21382 need_locks=$lt_need_locks
21384 # Manifest tool.
21385 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21387 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21388 DSYMUTIL=$lt_DSYMUTIL
21390 # Tool to change global to local symbols on Mac OS X.
21391 NMEDIT=$lt_NMEDIT
21393 # Tool to manipulate fat objects and archives on Mac OS X.
21394 LIPO=$lt_LIPO
21396 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21397 OTOOL=$lt_OTOOL
21399 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21400 OTOOL64=$lt_OTOOL64
21402 # Old archive suffix (normally "a").
21403 libext=$libext
21405 # Shared library suffix (normally ".so").
21406 shrext_cmds=$lt_shrext_cmds
21408 # The commands to extract the exported symbol list from a shared archive.
21409 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21411 # Variables whose values should be saved in libtool wrapper scripts and
21412 # restored at link time.
21413 variables_saved_for_relink=$lt_variables_saved_for_relink
21415 # Do we need the "lib" prefix for modules?
21416 need_lib_prefix=$need_lib_prefix
21418 # Do we need a version for libraries?
21419 need_version=$need_version
21421 # Library versioning type.
21422 version_type=$version_type
21424 # Shared library runtime path variable.
21425 runpath_var=$runpath_var
21427 # Shared library path variable.
21428 shlibpath_var=$shlibpath_var
21430 # Is shlibpath searched before the hard-coded library search path?
21431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21433 # Format of library name prefix.
21434 libname_spec=$lt_libname_spec
21436 # List of archive names. First name is the real one, the rest are links.
21437 # The last name is the one that the linker finds with -lNAME
21438 library_names_spec=$lt_library_names_spec
21440 # The coded name of the library, if different from the real name.
21441 soname_spec=$lt_soname_spec
21443 # Permission mode override for installation of shared libraries.
21444 install_override_mode=$lt_install_override_mode
21446 # Command to use after installation of a shared archive.
21447 postinstall_cmds=$lt_postinstall_cmds
21449 # Command to use after uninstallation of a shared archive.
21450 postuninstall_cmds=$lt_postuninstall_cmds
21452 # Commands used to finish a libtool library installation in a directory.
21453 finish_cmds=$lt_finish_cmds
21455 # As "finish_cmds", except a single script fragment to be evaled but
21456 # not shown.
21457 finish_eval=$lt_finish_eval
21459 # Whether we should hardcode library paths into libraries.
21460 hardcode_into_libs=$hardcode_into_libs
21462 # Compile-time system search path for libraries.
21463 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21465 # Run-time system search path for libraries.
21466 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21468 # Whether dlopen is supported.
21469 dlopen_support=$enable_dlopen
21471 # Whether dlopen of programs is supported.
21472 dlopen_self=$enable_dlopen_self
21474 # Whether dlopen of statically linked programs is supported.
21475 dlopen_self_static=$enable_dlopen_self_static
21477 # Commands to strip libraries.
21478 old_striplib=$lt_old_striplib
21479 striplib=$lt_striplib
21482 # The linker used to build libraries.
21483 LD=$lt_LD
21485 # How to create reloadable object files.
21486 reload_flag=$lt_reload_flag
21487 reload_cmds=$lt_reload_cmds
21489 # Commands used to build an old-style archive.
21490 old_archive_cmds=$lt_old_archive_cmds
21492 # A language specific compiler.
21493 CC=$lt_compiler
21495 # Is the compiler the GNU compiler?
21496 with_gcc=$GCC
21498 # Compiler flag to turn off builtin functions.
21499 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21501 # Additional compiler flags for building library objects.
21502 pic_flag=$lt_lt_prog_compiler_pic
21504 # How to pass a linker flag through the compiler.
21505 wl=$lt_lt_prog_compiler_wl
21507 # Compiler flag to prevent dynamic linking.
21508 link_static_flag=$lt_lt_prog_compiler_static
21510 # Does compiler simultaneously support -c and -o options?
21511 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21513 # Whether or not to add -lc for building shared libraries.
21514 build_libtool_need_lc=$archive_cmds_need_lc
21516 # Whether or not to disallow shared libs when runtime libs are static.
21517 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21519 # Compiler flag to allow reflexive dlopens.
21520 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21522 # Compiler flag to generate shared objects directly from archives.
21523 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21525 # Whether the compiler copes with passing no objects directly.
21526 compiler_needs_object=$lt_compiler_needs_object
21528 # Create an old-style archive from a shared archive.
21529 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21531 # Create a temporary old-style archive to link instead of a shared archive.
21532 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21534 # Commands used to build a shared archive.
21535 archive_cmds=$lt_archive_cmds
21536 archive_expsym_cmds=$lt_archive_expsym_cmds
21538 # Commands used to build a loadable module if different from building
21539 # a shared archive.
21540 module_cmds=$lt_module_cmds
21541 module_expsym_cmds=$lt_module_expsym_cmds
21543 # Whether we are building with GNU ld or not.
21544 with_gnu_ld=$lt_with_gnu_ld
21546 # Flag that allows shared libraries with undefined symbols to be built.
21547 allow_undefined_flag=$lt_allow_undefined_flag
21549 # Flag that enforces no undefined symbols.
21550 no_undefined_flag=$lt_no_undefined_flag
21552 # Flag to hardcode \$libdir into a binary during linking.
21553 # This must work even if \$libdir does not exist
21554 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21556 # If ld is used when linking, flag to hardcode \$libdir into a binary
21557 # during linking. This must work even if \$libdir does not exist.
21558 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21560 # Whether we need a single "-rpath" flag with a separated argument.
21561 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21563 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21564 # DIR into the resulting binary.
21565 hardcode_direct=$hardcode_direct
21567 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21568 # DIR into the resulting binary and the resulting library dependency is
21569 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21570 # library is relocated.
21571 hardcode_direct_absolute=$hardcode_direct_absolute
21573 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21574 # into the resulting binary.
21575 hardcode_minus_L=$hardcode_minus_L
21577 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21578 # into the resulting binary.
21579 hardcode_shlibpath_var=$hardcode_shlibpath_var
21581 # Set to "yes" if building a shared library automatically hardcodes DIR
21582 # into the library and all subsequent libraries and executables linked
21583 # against it.
21584 hardcode_automatic=$hardcode_automatic
21586 # Set to yes if linker adds runtime paths of dependent libraries
21587 # to runtime path list.
21588 inherit_rpath=$inherit_rpath
21590 # Whether libtool must link a program against all its dependency libraries.
21591 link_all_deplibs=$link_all_deplibs
21593 # Set to "yes" if exported symbols are required.
21594 always_export_symbols=$always_export_symbols
21596 # The commands to list exported symbols.
21597 export_symbols_cmds=$lt_export_symbols_cmds
21599 # Symbols that should not be listed in the preloaded symbols.
21600 exclude_expsyms=$lt_exclude_expsyms
21602 # Symbols that must always be exported.
21603 include_expsyms=$lt_include_expsyms
21605 # Commands necessary for linking programs (against libraries) with templates.
21606 prelink_cmds=$lt_prelink_cmds
21608 # Commands necessary for finishing linking programs.
21609 postlink_cmds=$lt_postlink_cmds
21611 # Specify filename containing input files.
21612 file_list_spec=$lt_file_list_spec
21614 # How to hardcode a shared library path into an executable.
21615 hardcode_action=$hardcode_action
21617 # The directories searched by this compiler when creating a shared library.
21618 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21620 # Dependencies to place before and after the objects being linked to
21621 # create a shared library.
21622 predep_objects=$lt_predep_objects
21623 postdep_objects=$lt_postdep_objects
21624 predeps=$lt_predeps
21625 postdeps=$lt_postdeps
21627 # The library search path used internally by the compiler when linking
21628 # a shared library.
21629 compiler_lib_search_path=$lt_compiler_lib_search_path
21631 # ### END LIBTOOL CONFIG
21633 _LT_EOF
21635 case $host_os in
21636 aix3*)
21637 cat <<\_LT_EOF >> "$cfgfile"
21638 # AIX sometimes has problems with the GCC collect2 program. For some
21639 # reason, if we set the COLLECT_NAMES environment variable, the problems
21640 # vanish in a puff of smoke.
21641 if test "X${COLLECT_NAMES+set}" != Xset; then
21642 COLLECT_NAMES=
21643 export COLLECT_NAMES
21645 _LT_EOF
21647 esac
21650 ltmain="$ac_aux_dir/ltmain.sh"
21653 # We use sed instead of cat because bash on DJGPP gets confused if
21654 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21655 # text mode, it properly converts lines to CR/LF. This bash problem
21656 # is reportedly fixed, but why not run on old versions too?
21657 sed '$q' "$ltmain" >> "$cfgfile" \
21658 || (rm -f "$cfgfile"; exit 1)
21660 if test x"$xsi_shell" = xyes; then
21661 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21662 func_dirname ()\
21664 \ case ${1} in\
21665 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21666 \ * ) func_dirname_result="${3}" ;;\
21667 \ esac\
21668 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21669 && mv -f "$cfgfile.tmp" "$cfgfile" \
21670 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21671 test 0 -eq $? || _lt_function_replace_fail=:
21674 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21675 func_basename ()\
21677 \ func_basename_result="${1##*/}"\
21678 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21679 && mv -f "$cfgfile.tmp" "$cfgfile" \
21680 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21681 test 0 -eq $? || _lt_function_replace_fail=:
21684 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21685 func_dirname_and_basename ()\
21687 \ case ${1} in\
21688 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21689 \ * ) func_dirname_result="${3}" ;;\
21690 \ esac\
21691 \ func_basename_result="${1##*/}"\
21692 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21693 && mv -f "$cfgfile.tmp" "$cfgfile" \
21694 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21695 test 0 -eq $? || _lt_function_replace_fail=:
21698 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21699 func_stripname ()\
21701 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21702 \ # positional parameters, so assign one to ordinary parameter first.\
21703 \ func_stripname_result=${3}\
21704 \ func_stripname_result=${func_stripname_result#"${1}"}\
21705 \ func_stripname_result=${func_stripname_result%"${2}"}\
21706 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21707 && mv -f "$cfgfile.tmp" "$cfgfile" \
21708 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21709 test 0 -eq $? || _lt_function_replace_fail=:
21712 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21713 func_split_long_opt ()\
21715 \ func_split_long_opt_name=${1%%=*}\
21716 \ func_split_long_opt_arg=${1#*=}\
21717 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21718 && mv -f "$cfgfile.tmp" "$cfgfile" \
21719 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21720 test 0 -eq $? || _lt_function_replace_fail=:
21723 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21724 func_split_short_opt ()\
21726 \ func_split_short_opt_arg=${1#??}\
21727 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21728 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21729 && mv -f "$cfgfile.tmp" "$cfgfile" \
21730 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21731 test 0 -eq $? || _lt_function_replace_fail=:
21734 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21735 func_lo2o ()\
21737 \ case ${1} in\
21738 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21739 \ *) func_lo2o_result=${1} ;;\
21740 \ esac\
21741 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21742 && mv -f "$cfgfile.tmp" "$cfgfile" \
21743 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21744 test 0 -eq $? || _lt_function_replace_fail=:
21747 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21748 func_xform ()\
21750 func_xform_result=${1%.*}.lo\
21751 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21752 && mv -f "$cfgfile.tmp" "$cfgfile" \
21753 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21754 test 0 -eq $? || _lt_function_replace_fail=:
21757 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21758 func_arith ()\
21760 func_arith_result=$(( $* ))\
21761 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21762 && mv -f "$cfgfile.tmp" "$cfgfile" \
21763 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21764 test 0 -eq $? || _lt_function_replace_fail=:
21767 sed -e '/^func_len ()$/,/^} # func_len /c\
21768 func_len ()\
21770 func_len_result=${#1}\
21771 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21772 && mv -f "$cfgfile.tmp" "$cfgfile" \
21773 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21774 test 0 -eq $? || _lt_function_replace_fail=:
21778 if test x"$lt_shell_append" = xyes; then
21779 sed -e '/^func_append ()$/,/^} # func_append /c\
21780 func_append ()\
21782 eval "${1}+=\\${2}"\
21783 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21784 && mv -f "$cfgfile.tmp" "$cfgfile" \
21785 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21786 test 0 -eq $? || _lt_function_replace_fail=:
21789 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21790 func_append_quoted ()\
21792 \ func_quote_for_eval "${2}"\
21793 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21794 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21795 && mv -f "$cfgfile.tmp" "$cfgfile" \
21796 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21797 test 0 -eq $? || _lt_function_replace_fail=:
21800 # Save a `func_append' function call where possible by direct use of '+='
21801 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21802 && mv -f "$cfgfile.tmp" "$cfgfile" \
21803 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21804 test 0 -eq $? || _lt_function_replace_fail=:
21805 else
21806 # Save a `func_append' function call even when '+=' is not available
21807 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21808 && mv -f "$cfgfile.tmp" "$cfgfile" \
21809 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21810 test 0 -eq $? || _lt_function_replace_fail=:
21813 if test x"$_lt_function_replace_fail" = x":"; then
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21815 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21819 mv -f "$cfgfile" "$ofile" ||
21820 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21821 chmod +x "$ofile"
21824 cat <<_LT_EOF >> "$ofile"
21826 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21828 # The linker used to build libraries.
21829 LD=$lt_LD_CXX
21831 # How to create reloadable object files.
21832 reload_flag=$lt_reload_flag_CXX
21833 reload_cmds=$lt_reload_cmds_CXX
21835 # Commands used to build an old-style archive.
21836 old_archive_cmds=$lt_old_archive_cmds_CXX
21838 # A language specific compiler.
21839 CC=$lt_compiler_CXX
21841 # Is the compiler the GNU compiler?
21842 with_gcc=$GCC_CXX
21844 # Compiler flag to turn off builtin functions.
21845 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21847 # Additional compiler flags for building library objects.
21848 pic_flag=$lt_lt_prog_compiler_pic_CXX
21850 # How to pass a linker flag through the compiler.
21851 wl=$lt_lt_prog_compiler_wl_CXX
21853 # Compiler flag to prevent dynamic linking.
21854 link_static_flag=$lt_lt_prog_compiler_static_CXX
21856 # Does compiler simultaneously support -c and -o options?
21857 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21859 # Whether or not to add -lc for building shared libraries.
21860 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21862 # Whether or not to disallow shared libs when runtime libs are static.
21863 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21865 # Compiler flag to allow reflexive dlopens.
21866 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21868 # Compiler flag to generate shared objects directly from archives.
21869 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21871 # Whether the compiler copes with passing no objects directly.
21872 compiler_needs_object=$lt_compiler_needs_object_CXX
21874 # Create an old-style archive from a shared archive.
21875 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21877 # Create a temporary old-style archive to link instead of a shared archive.
21878 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21880 # Commands used to build a shared archive.
21881 archive_cmds=$lt_archive_cmds_CXX
21882 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21884 # Commands used to build a loadable module if different from building
21885 # a shared archive.
21886 module_cmds=$lt_module_cmds_CXX
21887 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21889 # Whether we are building with GNU ld or not.
21890 with_gnu_ld=$lt_with_gnu_ld_CXX
21892 # Flag that allows shared libraries with undefined symbols to be built.
21893 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21895 # Flag that enforces no undefined symbols.
21896 no_undefined_flag=$lt_no_undefined_flag_CXX
21898 # Flag to hardcode \$libdir into a binary during linking.
21899 # This must work even if \$libdir does not exist
21900 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21902 # If ld is used when linking, flag to hardcode \$libdir into a binary
21903 # during linking. This must work even if \$libdir does not exist.
21904 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21906 # Whether we need a single "-rpath" flag with a separated argument.
21907 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21909 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21910 # DIR into the resulting binary.
21911 hardcode_direct=$hardcode_direct_CXX
21913 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21914 # DIR into the resulting binary and the resulting library dependency is
21915 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21916 # library is relocated.
21917 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21919 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21920 # into the resulting binary.
21921 hardcode_minus_L=$hardcode_minus_L_CXX
21923 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21924 # into the resulting binary.
21925 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21927 # Set to "yes" if building a shared library automatically hardcodes DIR
21928 # into the library and all subsequent libraries and executables linked
21929 # against it.
21930 hardcode_automatic=$hardcode_automatic_CXX
21932 # Set to yes if linker adds runtime paths of dependent libraries
21933 # to runtime path list.
21934 inherit_rpath=$inherit_rpath_CXX
21936 # Whether libtool must link a program against all its dependency libraries.
21937 link_all_deplibs=$link_all_deplibs_CXX
21939 # Set to "yes" if exported symbols are required.
21940 always_export_symbols=$always_export_symbols_CXX
21942 # The commands to list exported symbols.
21943 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21945 # Symbols that should not be listed in the preloaded symbols.
21946 exclude_expsyms=$lt_exclude_expsyms_CXX
21948 # Symbols that must always be exported.
21949 include_expsyms=$lt_include_expsyms_CXX
21951 # Commands necessary for linking programs (against libraries) with templates.
21952 prelink_cmds=$lt_prelink_cmds_CXX
21954 # Commands necessary for finishing linking programs.
21955 postlink_cmds=$lt_postlink_cmds_CXX
21957 # Specify filename containing input files.
21958 file_list_spec=$lt_file_list_spec_CXX
21960 # How to hardcode a shared library path into an executable.
21961 hardcode_action=$hardcode_action_CXX
21963 # The directories searched by this compiler when creating a shared library.
21964 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21966 # Dependencies to place before and after the objects being linked to
21967 # create a shared library.
21968 predep_objects=$lt_predep_objects_CXX
21969 postdep_objects=$lt_postdep_objects_CXX
21970 predeps=$lt_predeps_CXX
21971 postdeps=$lt_postdeps_CXX
21973 # The library search path used internally by the compiler when linking
21974 # a shared library.
21975 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21977 # ### END LIBTOOL TAG CONFIG: CXX
21978 _LT_EOF
21982 esac
21983 done # for ac_tag
21986 as_fn_exit 0
21987 _ACEOF
21988 ac_clean_files=$ac_clean_files_save
21990 test $ac_write_fail = 0 ||
21991 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21994 # configure is writing to config.log, and then calls config.status.
21995 # config.status does its own redirection, appending to config.log.
21996 # Unfortunately, on DOS this fails, as config.log is still kept open
21997 # by configure, so config.status won't be able to write to it; its
21998 # output is simply discarded. So we exec the FD to /dev/null,
21999 # effectively closing config.log, so it can be properly (re)opened and
22000 # appended to by config.status. When coming back to configure, we
22001 # need to make the FD available again.
22002 if test "$no_create" != yes; then
22003 ac_cs_success=:
22004 ac_config_status_args=
22005 test "$silent" = yes &&
22006 ac_config_status_args="$ac_config_status_args --quiet"
22007 exec 5>/dev/null
22008 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22009 exec 5>>config.log
22010 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22011 # would make configure fail if this is the last instruction.
22012 $ac_cs_success || as_fn_exit 1
22014 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22016 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22020 { $as_echo "$as_me:${as_lineno-$LINENO}:
22022 Configured:
22023 quvi version: ${VERSION} g:${git_describe} b:${build_date}
22024 host setup: ${host}
22025 compiler: ${CC}
22026 cflags: ${CFLAGS}
22027 prefix: ${prefix}
22029 Options:
22030 build libquvi: shared=${enable_shared} static=${enable_static}
22031 build examples: ${enable_examples}
22032 build quvi: ${enable_quvi}
22034 enable broken: ${enable_broken}
22035 enable tests: ${enable_tests}
22036 enable nsfw: ${enable_nsfw}
22038 install manual: ${with_man}
22039 install docs: ${with_doc}
22040 " >&5
22041 $as_echo "$as_me:
22043 Configured:
22044 quvi version: ${VERSION} g:${git_describe} b:${build_date}
22045 host setup: ${host}
22046 compiler: ${CC}
22047 cflags: ${CFLAGS}
22048 prefix: ${prefix}
22050 Options:
22051 build libquvi: shared=${enable_shared} static=${enable_static}
22052 build examples: ${enable_examples}
22053 build quvi: ${enable_quvi}
22055 enable broken: ${enable_broken}
22056 enable tests: ${enable_tests}
22057 enable nsfw: ${enable_nsfw}
22059 install manual: ${with_man}
22060 install docs: ${with_doc}
22061 " >&6;}
22063 #Other:
22064 # gengetopt: ${GENGETOPT}
22065 # doxygen: ${DOXYGEN}
22066 # perl: ${PERL}
22067 # Pod::Checker: ${have_pod_checker}
22068 # pod2man: ${POD2MAN}
22069 # pod2html: ${POD2HTML}