2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for LibVNCServer 0.9.7.
5 # Report bugs to <http://sourceforge.net/projects/libvncserver>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='LibVNCServer'
425 PACKAGE_TARNAME='libvncserver'
426 PACKAGE_VERSION='0.9.7'
427 PACKAGE_STRING='LibVNCServer 0.9.7'
428 PACKAGE_BUGREPORT='http://sourceforge.net/projects/libvncserver'
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL with_ffmpeg WITH_FFMPEG_TRUE WITH_FFMPEG_FALSE HAVE_MP3LAME_TRUE HAVE_MP3LAME_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS HAVE_X_TRUE HAVE_X_FALSE CRYPT_LIBS SSL_LIBS AVAHI_CFLAGS AVAHI_LIBS SYSTEM_LIBVNCSERVER_CFLAGS SYSTEM_LIBVNCSERVER_LIBS HAVE_SYSTEM_LIBVNCSERVER_TRUE HAVE_SYSTEM_LIBVNCSERVER_FALSE HAVE_LIBPTHREAD_TRUE HAVE_LIBPTHREAD_FALSE WITH_TIGHTVNC_FILETRANSFER_TRUE WITH_TIGHTVNC_FILETRANSFER_FALSE HAVE_LIBZ_TRUE HAVE_LIBZ_FALSE HAVE_LIBJPEG_TRUE HAVE_LIBJPEG_FALSE HAVE_LIBSDL_TRUE HAVE_LIBSDL_FALSE SDL_CFLAGS SDL_LIBS MINGW_TRUE MINGW_FALSE WSOCKLIB LIBOBJS CYGIPC_TRUE CYGIPC_FALSE LINUX_TRUE LINUX_FALSE OSX_TRUE OSX_FALSE HAVE_RPM_TRUE HAVE_RPM_FALSE WITH_X11VNC_TRUE WITH_X11VNC_FALSE RPMSOURCEDIR LTLIBOBJS'
470 # Initialize some variables set by options.
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
482 program_transform_name=s,x,x,
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
585 -help | --help | --hel | --he | -h)
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 # Obsolete; use --without-fp.
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
715 -site=* | --site=* | --sit=*)
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 -version | --version | --versio | --versi | --vers | -V)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
764 # Obsolete; use --with-x.
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
877 if test ! -r $srcdir/$ac_unique_file; then
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
956 \`configure' configures LibVNCServer 0.9.7 to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1010 --program-prefix=PREFIX prepend PREFIX to installed program names
1011 --program-suffix=SUFFIX append SUFFIX to installed program names
1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015 --x-includes=DIR X include files are in DIR
1016 --x-libraries=DIR X library files are in DIR
1019 --build=BUILD configure for building on BUILD [guessed]
1020 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 if test -n "$ac_init_help"; then
1025 case $ac_init_help in
1026 short | recursive ) echo "Configuration of LibVNCServer 0.9.7:";;
1031 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1032 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1033 --disable-dependency-tracking speeds up one-time build
1034 --enable-dependency-tracking do not reject slow dependency extractors
1035 --enable-shared[=PKGS]
1036 build shared libraries [default=yes]
1037 --enable-static[=PKGS]
1038 build static libraries [default=yes]
1039 --enable-fast-install[=PKGS]
1040 optimize for fast installation [default=yes]
1041 --disable-libtool-lock avoid locking (might break parallel builds)
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1050 include additional configurations [automatic]
1051 --without-filetransfer disable TightVNC file transfer protocol
1052 --without-24bpp disable 24 bpp framebuffers
1053 --with-ffmpeg=dir set ffmpeg home directory
1054 --with-x use the X Window System
1055 --with-system-libvncserver use installed libvncserver for x11vnc
1056 --with-system-libvncserver=DIR use libvncserver installed in DIR for x11vnc
1057 --with-x11vnc configure for building the x11vnc subdir (if present)
1058 you will need to cd to x11vnc and run 'make' etc.
1059 --without-xkeyboard disable xkeyboard extension support
1060 --without-xinerama disable xinerama extension support
1061 --without-xrandr disable xrandr extension support
1062 --without-xfixes disable xfixes extension support
1063 --without-xdamage disable xdamage extension support
1064 --without-xtrap disable xtrap extension support
1065 --without-xrecord disable xrecord extension support
1066 --without-fbpm disable fbpm extension support
1067 --without-dpms disable dpms extension support
1068 --without-v4l disable video4linux support
1069 --without-fbdev disable linux fb device support
1070 --without-uinput disable linux uinput device support
1071 --without-macosx-native disable MacOS X native display support
1072 --without-crypt disable support for libcrypt
1073 --without-crypto disable support for openssl libcrypto
1074 --without-ssl disable support for openssl libssl
1075 --with-ssl=DIR use openssl include/library files in DIR
1076 --without-avahi disable support for Avahi/mDNS
1077 --with-avahi=DIR use avahi include/library files in DIR
1078 --without-jpeg disable support for jpeg
1079 --with-jpeg=DIR use jpeg include/library files in DIR
1080 --without-libz disable support for deflate
1081 --without-zlib disable support for deflate
1082 --with-zlib=DIR use zlib include/library files in DIR
1083 --without-pthread disable support for libpthread
1085 Some influential environment variables:
1086 CC C compiler command
1087 CFLAGS C compiler flags
1088 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1089 nonstandard directory <lib dir>
1090 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1091 headers in a nonstandard directory <include dir>
1093 CXX C++ compiler command
1094 CXXFLAGS C++ compiler flags
1095 CXXCPP C++ preprocessor
1096 F77 Fortran 77 compiler command
1097 FFLAGS Fortran 77 compiler flags
1099 Use these variables to override the choices made by `configure' or to help
1100 it to find libraries and programs with nonstandard names/locations.
1102 Report bugs to <http://sourceforge.net/projects/libvncserver>.
1106 if test "$ac_init_help" = "recursive"; then
1107 # If there are subdirs, report their specific --help.
1109 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1110 test -d $ac_dir || continue
1113 if test "$ac_dir" != .; then
1114 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1115 # A "../" for each directory in $ac_dir_suffix.
1116 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1118 ac_dir_suffix= ac_top_builddir=
1122 .) # No --srcdir option. We are building in place.
1124 if test -z "$ac_top_builddir"; then
1127 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1129 [\\/]* | ?:[\\/]* ) # Absolute path.
1130 ac_srcdir=$srcdir$ac_dir_suffix;
1131 ac_top_srcdir=$srcdir ;;
1133 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1134 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1137 # Do not use `cd foo && pwd` to compute absolute paths, because
1138 # the directories may not exist.
1140 .) ac_abs_builddir="$ac_dir";;
1143 .) ac_abs_builddir=`pwd`;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1145 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1148 case $ac_abs_builddir in
1149 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1151 case ${ac_top_builddir}. in
1152 .) ac_abs_top_builddir=$ac_abs_builddir;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1154 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1157 case $ac_abs_builddir in
1158 .) ac_abs_srcdir=$ac_srcdir;;
1161 .) ac_abs_srcdir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1163 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1166 case $ac_abs_builddir in
1167 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1169 case $ac_top_srcdir in
1170 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1172 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1177 # Check for guested configure; otherwise get Cygnus style configure.
1178 if test -f $ac_srcdir/configure.gnu; then
1180 $SHELL $ac_srcdir/configure.gnu --help=recursive
1181 elif test -f $ac_srcdir/configure; then
1183 $SHELL $ac_srcdir/configure --help=recursive
1184 elif test -f $ac_srcdir/configure.ac ||
1185 test -f $ac_srcdir/configure.in; then
1187 $ac_configure --help
1189 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1195 test -n "$ac_init_help" && exit 0
1196 if $ac_init_version; then
1198 LibVNCServer configure 0.9.7
1199 generated by GNU Autoconf 2.59
1201 Copyright (C) 2003 Free Software Foundation, Inc.
1202 This configure script is free software; the Free Software Foundation
1203 gives unlimited permission to copy, distribute and modify it.
1209 This file contains any messages produced by compilers while
1210 running configure, to aid debugging if configure makes a mistake.
1212 It was created by LibVNCServer $as_me 0.9.7, which was
1213 generated by GNU Autoconf 2.59. Invocation command line was
1224 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1225 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1226 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1227 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1228 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1230 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1231 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1233 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1234 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1235 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1236 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1237 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1238 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1239 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1247 test -z "$as_dir" && as_dir=.
1248 echo "PATH: $as_dir"
1263 # Keep a trace of the command line.
1264 # Strip out --no-create and --no-recursion so they do not pile up.
1265 # Strip out --silent because we don't want to record it for future runs.
1266 # Also quote any args containing shell meta-characters.
1267 # Make two passes to allow for proper duplicate-argument suppression.
1272 ac_must_keep_next=false
1278 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1280 | -silent | --silent | --silen | --sile | --sil)
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1286 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1288 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1289 if test $ac_must_keep_next = true; then
1290 ac_must_keep_next=false # Got value, back to normal.
1293 *=* | --config-cache | -C | -disable-* | --disable-* \
1294 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1295 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1296 | -with-* | --with-* | -without-* | --without-* | --x)
1297 case "$ac_configure_args0 " in
1298 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1301 -* ) ac_must_keep_next=true ;;
1304 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1305 # Get rid of the leading space.
1311 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1312 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1314 # When interrupted or exit'd, cleanup temporary files, and complete
1315 # config.log. We remove comments because anyway the quotes in there
1316 # would cause problems or look ugly.
1317 # WARNING: Be sure not to use single quotes in there, as some shells,
1318 # such as our DU 5.0 friend, will then `close' the trap.
1319 trap 'exit_status=$?
1320 # Save into config.log some information that might help in debugging.
1325 ## ---------------- ##
1326 ## Cache variables. ##
1327 ## ---------------- ##
1330 # The following way of writing the cache mishandles newlines in values,
1333 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1336 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1341 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1348 ## ----------------- ##
1349 ## Output variables. ##
1350 ## ----------------- ##
1353 for ac_var in $ac_subst_vars
1355 eval ac_val=$`echo $ac_var`
1356 echo "$ac_var='"'"'$ac_val'"'"'"
1360 if test -n "$ac_subst_files"; then
1367 for ac_var in $ac_subst_files
1369 eval ac_val=$`echo $ac_var`
1370 echo "$ac_var='"'"'$ac_val'"'"'"
1375 if test -s confdefs.h; then
1382 sed "/^$/d" confdefs.h | sort
1385 test "$ac_signal" != 0 &&
1386 echo "$as_me: caught signal $ac_signal"
1387 echo "$as_me: exit $exit_status"
1389 rm -f core *.core &&
1390 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1393 for ac_signal in 1 2 13 15; do
1394 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1398 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1399 rm -rf conftest* confdefs.h
1400 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1403 # Predefined preprocessor variables.
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_NAME "$PACKAGE_NAME"
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_STRING "$PACKAGE_STRING"
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1430 # Let the site file select an alternate cache file if it wants to.
1431 # Prefer explicitly selected file to automatically selected ones.
1432 if test -z "$CONFIG_SITE"; then
1433 if test "x$prefix" != xNONE; then
1434 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1436 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1439 for ac_site_file in $CONFIG_SITE; do
1440 if test -r "$ac_site_file"; then
1441 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1442 echo "$as_me: loading site script $ac_site_file" >&6;}
1443 sed 's/^/| /' "$ac_site_file" >&5
1448 if test -r "$cache_file"; then
1449 # Some versions of bash will fail to source /dev/null (special
1450 # files actually), so we avoid doing that.
1451 if test -f "$cache_file"; then
1452 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1453 echo "$as_me: loading cache $cache_file" >&6;}
1455 [\\/]* | ?:[\\/]* ) . $cache_file;;
1456 *) . ./$cache_file;;
1460 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1461 echo "$as_me: creating cache $cache_file" >&6;}
1465 # Check that the precious variables saved in the cache have kept the same
1467 ac_cache_corrupted=false
1468 for ac_var in `(set) 2>&1 |
1469 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1470 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1471 eval ac_new_set=\$ac_env_${ac_var}_set
1472 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1473 eval ac_new_val="\$ac_env_${ac_var}_value"
1474 case $ac_old_set,$ac_new_set in
1476 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1477 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1478 ac_cache_corrupted=: ;;
1480 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1481 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1482 ac_cache_corrupted=: ;;
1485 if test "x$ac_old_val" != "x$ac_new_val"; then
1486 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1487 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1488 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1489 echo "$as_me: former value: $ac_old_val" >&2;}
1490 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1491 echo "$as_me: current value: $ac_new_val" >&2;}
1492 ac_cache_corrupted=:
1495 # Pass precious variables to config.status.
1496 if test "$ac_new_set" = set; then
1498 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1499 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1500 *) ac_arg=$ac_var=$ac_new_val ;;
1502 case " $ac_configure_args " in
1503 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1504 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1508 if $ac_cache_corrupted; then
1509 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1510 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1511 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1512 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1513 { (exit 1); exit 1; }; }
1517 ac_cpp='$CPP $CPPFLAGS'
1518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1548 am__api_version="1.9"
1550 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1551 if test -f $ac_dir/install-sh; then
1553 ac_install_sh="$ac_aux_dir/install-sh -c"
1555 elif test -f $ac_dir/install.sh; then
1557 ac_install_sh="$ac_aux_dir/install.sh -c"
1559 elif test -f $ac_dir/shtool; then
1561 ac_install_sh="$ac_aux_dir/shtool install -c"
1565 if test -z "$ac_aux_dir"; then
1566 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1567 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1568 { (exit 1); exit 1; }; }
1570 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1571 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1572 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1574 # Find a good install program. We prefer a C program (faster),
1575 # so one script is as good as another. But avoid the broken or
1576 # incompatible versions:
1577 # SysV /etc/install, /usr/sbin/install
1578 # SunOS /usr/etc/install
1579 # IRIX /sbin/install
1581 # AmigaOS /C/install, which installs bootblocks on floppy discs
1582 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1583 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1584 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1585 # OS/2's system install, which has a completely different semantic
1586 # ./install, which can be erroneously created by make from ./install.sh.
1587 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1588 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1589 if test -z "$INSTALL"; then
1590 if test "${ac_cv_path_install+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597 test -z "$as_dir" && as_dir=.
1598 # Account for people who put trailing slashes in PATH elements.
1600 ./ | .// | /cC/* | \
1601 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1602 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1605 # OSF1 and SCO ODT 3.0 have their own names for install.
1606 # Don't use installbsd from OSF since it installs stuff as root
1608 for ac_prog in ginstall scoinst install; do
1609 for ac_exec_ext in '' $ac_executable_extensions; do
1610 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1611 if test $ac_prog = install &&
1612 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1613 # AIX install. It has an incompatible calling convention.
1615 elif test $ac_prog = install &&
1616 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1617 # program-specific install script used by HP pwplus--don't use.
1620 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1632 if test "${ac_cv_path_install+set}" = set; then
1633 INSTALL=$ac_cv_path_install
1635 # As a last resort, use the slow shell script. We don't cache a
1636 # path for INSTALL within a source directory, because that will
1637 # break other packages using the cache if that directory is
1638 # removed, or if the path is relative.
1639 INSTALL=$ac_install_sh
1642 echo "$as_me:$LINENO: result: $INSTALL" >&5
1643 echo "${ECHO_T}$INSTALL" >&6
1645 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1646 # It thinks the first close brace ends the variable substitution.
1647 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1649 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1651 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1653 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1654 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1657 echo timestamp > conftest.file
1658 # Do `set' in a subshell so we don't clobber the current shell's
1659 # arguments. Must try -L first in case configure is actually a
1660 # symlink; some systems play weird games with the mod time of symlinks
1661 # (eg FreeBSD returns the mod time of the symlink's containing
1664 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1665 if test "$*" = "X"; then
1667 set X `ls -t $srcdir/configure conftest.file`
1670 if test "$*" != "X $srcdir/configure conftest.file" \
1671 && test "$*" != "X conftest.file $srcdir/configure"; then
1673 # If neither matched, then we have a broken ls. This can happen
1674 # if, for instance, CONFIG_SHELL is bash and it inherits a
1675 # broken ls alias from the environment. This has actually
1676 # happened. Such a system could not be considered "sane".
1677 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1678 alias in your environment" >&5
1679 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1680 alias in your environment" >&2;}
1681 { (exit 1); exit 1; }; }
1684 test "$2" = conftest.file
1690 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1691 Check your system clock" >&5
1692 echo "$as_me: error: newly created file is older than distributed files!
1693 Check your system clock" >&2;}
1694 { (exit 1); exit 1; }; }
1696 echo "$as_me:$LINENO: result: yes" >&5
1697 echo "${ECHO_T}yes" >&6
1698 test "$program_prefix" != NONE &&
1699 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1700 # Use a double $ so make ignores it.
1701 test "$program_suffix" != NONE &&
1702 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1703 # Double any \ or $. echo might interpret backslashes.
1704 # By default was `s,x,x', remove it if useless.
1705 cat <<\_ACEOF >conftest.sed
1706 s/[\\$]/&&/g;s/;s,x,x,$//
1708 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1711 # expand $ac_aux_dir to an absolute path
1712 am_aux_dir=`cd $ac_aux_dir && pwd`
1714 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1715 # Use eval to expand $SHELL
1716 if eval "$MISSING --run true"; then
1717 am_missing_run="$MISSING --run "
1720 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1721 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1724 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1725 # We used to keeping the `.' as first argument, in order to
1726 # allow $(mkdir_p) to be used without argument. As in
1727 # $(mkdir_p) $(somedir)
1728 # where $(somedir) is conditionally defined. However this is wrong
1730 # 1. if the package is installed by a user who cannot write `.'
1731 # make install will fail,
1732 # 2. the above comment should most certainly read
1733 # $(mkdir_p) $(DESTDIR)$(somedir)
1734 # so it does not work when $(somedir) is undefined and
1735 # $(DESTDIR) is not.
1736 # To support the latter case, we have to write
1737 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1738 # so the `.' trick is pointless.
1739 mkdir_p='mkdir -p --'
1741 # On NextStep and OpenStep, the `mkdir' command does not
1742 # recognize any option. It will interpret all options as
1743 # directories to create, and then abort because `.' already
1745 for d in ./-p ./--version;
1747 test -d $d && rmdir $d
1749 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1750 if test -f "$ac_aux_dir/mkinstalldirs"; then
1751 mkdir_p='$(mkinstalldirs)'
1753 mkdir_p='$(install_sh) -d'
1757 for ac_prog in gawk mawk nawk awk
1759 # Extract the first word of "$ac_prog", so it can be a program name with args.
1760 set dummy $ac_prog; ac_word=$2
1761 echo "$as_me:$LINENO: checking for $ac_word" >&5
1762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1763 if test "${ac_cv_prog_AWK+set}" = set; then
1764 echo $ECHO_N "(cached) $ECHO_C" >&6
1766 if test -n "$AWK"; then
1767 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 test -z "$as_dir" && as_dir=.
1774 for ac_exec_ext in '' $ac_executable_extensions; do
1775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1776 ac_cv_prog_AWK="$ac_prog"
1777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1786 if test -n "$AWK"; then
1787 echo "$as_me:$LINENO: result: $AWK" >&5
1788 echo "${ECHO_T}$AWK" >&6
1790 echo "$as_me:$LINENO: result: no" >&5
1791 echo "${ECHO_T}no" >&6
1794 test -n "$AWK" && break
1797 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1798 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1799 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1800 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1803 cat >conftest.make <<\_ACEOF
1805 @echo 'ac_maketemp="$(MAKE)"'
1807 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1808 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1809 if test -n "$ac_maketemp"; then
1810 eval ac_cv_prog_make_${ac_make}_set=yes
1812 eval ac_cv_prog_make_${ac_make}_set=no
1816 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1817 echo "$as_me:$LINENO: result: yes" >&5
1818 echo "${ECHO_T}yes" >&6
1821 echo "$as_me:$LINENO: result: no" >&5
1822 echo "${ECHO_T}no" >&6
1823 SET_MAKE="MAKE=${MAKE-make}"
1826 rm -rf .tst 2>/dev/null
1827 mkdir .tst 2>/dev/null
1828 if test -d .tst; then
1833 rmdir .tst 2>/dev/null
1835 # test to see if srcdir already configured
1836 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1837 test -f $srcdir/config.status; then
1838 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1839 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1840 { (exit 1); exit 1; }; }
1843 # test whether we have cygpath
1844 if test -z "$CYGPATH_W"; then
1845 if (cygpath --version) >/dev/null 2>/dev/null; then
1846 CYGPATH_W='cygpath -w'
1853 # Define the identity of the package.
1854 PACKAGE=LibVNCServer
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE "$PACKAGE"
1863 cat >>confdefs.h <<_ACEOF
1864 #define VERSION "$VERSION"
1867 # Some tools Automake needs.
1869 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1872 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1875 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1878 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1881 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1883 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1885 # Installed binaries are usually stripped using `strip' when the user
1886 # run `make install-strip'. However `strip' might not be the right
1887 # tool to use in cross-compilation environments, therefore Automake
1888 # will honor the `STRIP' environment variable to overrule this program.
1889 if test "$cross_compiling" != no; then
1890 if test -n "$ac_tool_prefix"; then
1891 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1892 set dummy ${ac_tool_prefix}strip; ac_word=$2
1893 echo "$as_me:$LINENO: checking for $ac_word" >&5
1894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895 if test "${ac_cv_prog_STRIP+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 if test -n "$STRIP"; then
1899 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 test -z "$as_dir" && as_dir=.
1906 for ac_exec_ext in '' $ac_executable_extensions; do
1907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917 STRIP=$ac_cv_prog_STRIP
1918 if test -n "$STRIP"; then
1919 echo "$as_me:$LINENO: result: $STRIP" >&5
1920 echo "${ECHO_T}$STRIP" >&6
1922 echo "$as_me:$LINENO: result: no" >&5
1923 echo "${ECHO_T}no" >&6
1927 if test -z "$ac_cv_prog_STRIP"; then
1929 # Extract the first word of "strip", so it can be a program name with args.
1930 set dummy strip; ac_word=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 if test -n "$ac_ct_STRIP"; then
1937 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 test -z "$as_dir" && as_dir=.
1944 for ac_exec_ext in '' $ac_executable_extensions; do
1945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946 ac_cv_prog_ac_ct_STRIP="strip"
1947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1956 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1957 if test -n "$ac_ct_STRIP"; then
1958 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1959 echo "${ECHO_T}$ac_ct_STRIP" >&6
1961 echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6
1967 STRIP="$ac_cv_prog_STRIP"
1971 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1973 # We need awk for the "check" target. The system "awk" is bad on
1975 # Always define AMTAR for backward compatibility.
1977 AMTAR=${AMTAR-"${am_missing_run}tar"}
1979 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1985 ac_config_headers="$ac_config_headers rfbconfig.h"
1987 ac_config_headers="$ac_config_headers "
1990 ac_config_commands="$ac_config_commands rfb/rfbconfig.h"
1993 # Checks for programs.
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1999 if test -n "$ac_tool_prefix"; then
2000 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2001 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_CC+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 if test -n "$CC"; then
2008 ac_cv_prog_CC="$CC" # Let the user override the test.
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 test -z "$as_dir" && as_dir=.
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 if test -n "$CC"; then
2028 echo "$as_me:$LINENO: result: $CC" >&5
2029 echo "${ECHO_T}$CC" >&6
2031 echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2036 if test -z "$ac_cv_prog_CC"; then
2038 # Extract the first word of "gcc", so it can be a program name with args.
2039 set dummy gcc; ac_word=$2
2040 echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 if test -n "$ac_ct_CC"; then
2046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
2054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055 ac_cv_prog_ac_ct_CC="gcc"
2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2065 if test -n "$ac_ct_CC"; then
2066 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2067 echo "${ECHO_T}$ac_ct_CC" >&6
2069 echo "$as_me:$LINENO: result: no" >&5
2070 echo "${ECHO_T}no" >&6
2078 if test -z "$CC"; then
2079 if test -n "$ac_tool_prefix"; then
2080 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2081 set dummy ${ac_tool_prefix}cc; ac_word=$2
2082 echo "$as_me:$LINENO: checking for $ac_word" >&5
2083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2084 if test "${ac_cv_prog_CC+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 if test -n "$CC"; then
2088 ac_cv_prog_CC="$CC" # Let the user override the test.
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 test -z "$as_dir" && as_dir=.
2095 for ac_exec_ext in '' $ac_executable_extensions; do
2096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2097 ac_cv_prog_CC="${ac_tool_prefix}cc"
2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 if test -n "$CC"; then
2108 echo "$as_me:$LINENO: result: $CC" >&5
2109 echo "${ECHO_T}$CC" >&6
2111 echo "$as_me:$LINENO: result: no" >&5
2112 echo "${ECHO_T}no" >&6
2116 if test -z "$ac_cv_prog_CC"; then
2118 # Extract the first word of "cc", so it can be a program name with args.
2119 set dummy cc; ac_word=$2
2120 echo "$as_me:$LINENO: checking for $ac_word" >&5
2121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2122 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 if test -n "$ac_ct_CC"; then
2126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 test -z "$as_dir" && as_dir=.
2133 for ac_exec_ext in '' $ac_executable_extensions; do
2134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2135 ac_cv_prog_ac_ct_CC="cc"
2136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2145 if test -n "$ac_ct_CC"; then
2146 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2147 echo "${ECHO_T}$ac_ct_CC" >&6
2149 echo "$as_me:$LINENO: result: no" >&5
2150 echo "${ECHO_T}no" >&6
2159 if test -z "$CC"; then
2160 # Extract the first word of "cc", so it can be a program name with args.
2161 set dummy cc; ac_word=$2
2162 echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164 if test "${ac_cv_prog_CC+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 if test -n "$CC"; then
2168 ac_cv_prog_CC="$CC" # Let the user override the test.
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 test -z "$as_dir" && as_dir=.
2176 for ac_exec_ext in '' $ac_executable_extensions; do
2177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2178 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2179 ac_prog_rejected=yes
2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189 if test $ac_prog_rejected = yes; then
2190 # We found a bogon in the path, so make sure we never use it.
2191 set dummy $ac_cv_prog_CC
2193 if test $# != 0; then
2194 # We chose a different compiler from the bogus one.
2195 # However, it has the same basename, so the bogon will be chosen
2196 # first if we set CC to just the basename; use the full file name.
2198 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2204 if test -n "$CC"; then
2205 echo "$as_me:$LINENO: result: $CC" >&5
2206 echo "${ECHO_T}$CC" >&6
2208 echo "$as_me:$LINENO: result: no" >&5
2209 echo "${ECHO_T}no" >&6
2213 if test -z "$CC"; then
2214 if test -n "$ac_tool_prefix"; then
2217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2219 echo "$as_me:$LINENO: checking for $ac_word" >&5
2220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2221 if test "${ac_cv_prog_CC+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 if test -n "$CC"; then
2225 ac_cv_prog_CC="$CC" # Let the user override the test.
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244 if test -n "$CC"; then
2245 echo "$as_me:$LINENO: result: $CC" >&5
2246 echo "${ECHO_T}$CC" >&6
2248 echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6
2252 test -n "$CC" && break
2255 if test -z "$CC"; then
2259 # Extract the first word of "$ac_prog", so it can be a program name with args.
2260 set dummy $ac_prog; ac_word=$2
2261 echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 if test -n "$ac_ct_CC"; then
2267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 test -z "$as_dir" && as_dir=.
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276 ac_cv_prog_ac_ct_CC="$ac_prog"
2277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2286 if test -n "$ac_ct_CC"; then
2287 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2288 echo "${ECHO_T}$ac_ct_CC" >&6
2290 echo "$as_me:$LINENO: result: no" >&5
2291 echo "${ECHO_T}no" >&6
2294 test -n "$ac_ct_CC" && break
2303 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2304 See \`config.log' for more details." >&5
2305 echo "$as_me: error: no acceptable C compiler found in \$PATH
2306 See \`config.log' for more details." >&2;}
2307 { (exit 1); exit 1; }; }
2309 # Provide some information about the compiler.
2310 echo "$as_me:$LINENO:" \
2311 "checking for C compiler version" >&5
2312 ac_compiler=`set X $ac_compile; echo $2`
2313 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2314 (eval $ac_compiler --version </dev/null >&5) 2>&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }
2318 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2319 (eval $ac_compiler -v </dev/null >&5) 2>&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }
2323 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2324 (eval $ac_compiler -V </dev/null >&5) 2>&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }
2329 cat >conftest.$ac_ext <<_ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h. */
2344 ac_clean_files_save=$ac_clean_files
2345 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2346 # Try to create an executable without -o first, disregard a.out.
2347 # It will help us diagnose broken compilers, and finding out an intuition
2349 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2350 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2351 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2352 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2353 (eval $ac_link_default) 2>&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; then
2357 # Find the output, starting from the most likely. This scheme is
2358 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2361 # Be careful to initialize this variable, since it used to be cached.
2362 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2364 # b.out is created by i960 compilers.
2365 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2367 test -f "$ac_file" || continue
2369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2372 # This is the source file.
2375 # We found the default executable, but exeext='' is most
2379 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2380 # FIXME: I believe we export ac_cv_exeext for Libtool,
2381 # but it would be cool to find out if it's true. Does anybody
2382 # maintain Libtool? --akim.
2390 echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2393 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2394 See \`config.log' for more details." >&5
2395 echo "$as_me: error: C compiler cannot create executables
2396 See \`config.log' for more details." >&2;}
2397 { (exit 77); exit 77; }; }
2400 ac_exeext=$ac_cv_exeext
2401 echo "$as_me:$LINENO: result: $ac_file" >&5
2402 echo "${ECHO_T}$ac_file" >&6
2404 # Check the compiler produces executables we can run. If not, either
2405 # the compiler is broken, or we cross compile.
2406 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2407 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2408 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2409 # If not cross compiling, check that we can run a simple program.
2410 if test "$cross_compiling" != yes; then
2411 if { ac_try='./$ac_file'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2419 if test "$cross_compiling" = maybe; then
2422 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2423 If you meant to cross compile, use \`--host'.
2424 See \`config.log' for more details." >&5
2425 echo "$as_me: error: cannot run C compiled programs.
2426 If you meant to cross compile, use \`--host'.
2427 See \`config.log' for more details." >&2;}
2428 { (exit 1); exit 1; }; }
2432 echo "$as_me:$LINENO: result: yes" >&5
2433 echo "${ECHO_T}yes" >&6
2435 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2436 ac_clean_files=$ac_clean_files_save
2437 # Check the compiler produces executables we can run. If not, either
2438 # the compiler is broken, or we cross compile.
2439 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2440 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2441 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2442 echo "${ECHO_T}$cross_compiling" >&6
2444 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2445 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2447 (eval $ac_link) 2>&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; then
2451 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2452 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2453 # work properly (i.e., refer to `conftest.exe'), while it won't with
2455 for ac_file in conftest.exe conftest conftest.*; do
2456 test -f "$ac_file" || continue
2458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2459 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2466 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2467 See \`config.log' for more details." >&5
2468 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2469 See \`config.log' for more details." >&2;}
2470 { (exit 1); exit 1; }; }
2473 rm -f conftest$ac_cv_exeext
2474 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2475 echo "${ECHO_T}$ac_cv_exeext" >&6
2477 rm -f conftest.$ac_ext
2478 EXEEXT=$ac_cv_exeext
2480 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2481 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2482 if test "${ac_cv_objext+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 cat >conftest.$ac_ext <<_ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2500 rm -f conftest.o conftest.obj
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; then
2506 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2509 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2517 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2518 See \`config.log' for more details." >&5
2519 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2520 See \`config.log' for more details." >&2;}
2521 { (exit 1); exit 1; }; }
2524 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2526 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2527 echo "${ECHO_T}$ac_cv_objext" >&6
2528 OBJEXT=$ac_cv_objext
2530 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2531 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2532 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 cat >conftest.$ac_ext <<_ACEOF
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>conftest.$ac_ext <<_ACEOF
2540 /* end confdefs.h. */
2553 rm -f conftest.$ac_objext
2554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555 (eval $ac_compile) 2>conftest.er1
2557 grep -v '^ *+' conftest.er1 >conftest.err
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -z "$ac_c_werror_flag"
2563 || test ! -s conftest.err'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest.$ac_objext'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
2577 echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2583 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2586 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2587 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2588 GCC=`test $ac_compiler_gnu = yes && echo yes`
2589 ac_test_CFLAGS=${CFLAGS+set}
2590 ac_save_CFLAGS=$CFLAGS
2592 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2593 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2594 if test "${ac_cv_prog_cc_g+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2597 cat >conftest.$ac_ext <<_ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h. */
2612 rm -f conftest.$ac_objext
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614 (eval $ac_compile) 2>conftest.er1
2616 grep -v '^ *+' conftest.er1 >conftest.err
2618 cat conftest.err >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
2621 { ac_try='test -z "$ac_c_werror_flag"
2622 || test ! -s conftest.err'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; } &&
2628 { ac_try='test -s conftest.$ac_objext'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; }; then
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2643 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2644 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2645 if test "$ac_test_CFLAGS" = set; then
2646 CFLAGS=$ac_save_CFLAGS
2647 elif test $ac_cv_prog_cc_g = yes; then
2648 if test "$GCC" = yes; then
2654 if test "$GCC" = yes; then
2660 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2661 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2662 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 ac_cv_prog_cc_stdc=no
2667 cat >conftest.$ac_ext <<_ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h. */
2675 #include <sys/types.h>
2676 #include <sys/stat.h>
2677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2678 struct buf { int x; };
2679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2680 static char *e (p, i)
2686 static char *f (char * (*g) (char **, int), char **p, ...)
2691 s = g (p, va_arg (v,int));
2696 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2697 function prototypes and stuff, but not '\xHH' hex character constants.
2698 These don't provoke an error unfortunately, instead are silently treated
2699 as 'x'. The following induces an error, until -std1 is added to get
2700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2701 array size at least. It's necessary to write '\x00'==0 to get something
2702 that's true only with -std1. */
2703 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2705 int test (int i, double x);
2706 struct s1 {int (*f) (int a);};
2707 struct s2 {int (*f) (double a);};
2708 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2714 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2719 # Don't try gcc -ansi; that turns off useful extensions and
2720 # breaks some systems' header files.
2721 # AIX -qlanglvl=ansi
2722 # Ultrix and OSF/1 -std1
2723 # HP-UX 10.20 and later -Ae
2724 # HP-UX older versions -Aa -D_HPUX_SOURCE
2725 # SVR4 -Xc -D__EXTENSIONS__
2726 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2728 CC="$ac_save_CC $ac_arg"
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731 (eval $ac_compile) 2>conftest.er1
2733 grep -v '^ *+' conftest.er1 >conftest.err
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
2738 { ac_try='test -z "$ac_c_werror_flag"
2739 || test ! -s conftest.err'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2751 ac_cv_prog_cc_stdc=$ac_arg
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2758 rm -f conftest.err conftest.$ac_objext
2760 rm -f conftest.$ac_ext conftest.$ac_objext
2765 case "x$ac_cv_prog_cc_stdc" in
2767 echo "$as_me:$LINENO: result: none needed" >&5
2768 echo "${ECHO_T}none needed" >&6 ;;
2770 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2771 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2772 CC="$CC $ac_cv_prog_cc_stdc" ;;
2775 # Some people use a C++ compiler to compile C. Since we use `exit',
2776 # in C++ we need to declare it. In case someone uses the same compiler
2777 # for both compiling C and C++ we need to have the C++ compiler decide
2778 # the declaration of exit, since it's the most demanding environment.
2779 cat >conftest.$ac_ext <<_ACEOF
2784 rm -f conftest.$ac_objext
2785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2786 (eval $ac_compile) 2>conftest.er1
2788 grep -v '^ *+' conftest.er1 >conftest.err
2790 cat conftest.err >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try='test -z "$ac_c_werror_flag"
2794 || test ! -s conftest.err'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; } &&
2800 { ac_try='test -s conftest.$ac_objext'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2806 for ac_declaration in \
2808 'extern "C" void std::exit (int) throw (); using std::exit;' \
2809 'extern "C" void std::exit (int); using std::exit;' \
2810 'extern "C" void exit (int) throw ();' \
2811 'extern "C" void exit (int);' \
2814 cat >conftest.$ac_ext <<_ACEOF
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2830 rm -f conftest.$ac_objext
2831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2832 (eval $ac_compile) 2>conftest.er1
2834 grep -v '^ *+' conftest.er1 >conftest.err
2836 cat conftest.err >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } &&
2839 { ac_try='test -z "$ac_c_werror_flag"
2840 || test ! -s conftest.err'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; } &&
2846 { ac_try='test -s conftest.$ac_objext'
2847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; }; then
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2860 cat >conftest.$ac_ext <<_ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2875 rm -f conftest.$ac_objext
2876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2877 (eval $ac_compile) 2>conftest.er1
2879 grep -v '^ *+' conftest.er1 >conftest.err
2881 cat conftest.err >&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } &&
2884 { ac_try='test -z "$ac_c_werror_flag"
2885 || test ! -s conftest.err'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; } &&
2891 { ac_try='test -s conftest.$ac_objext'
2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; }; then
2899 echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2906 if test -n "$ac_declaration"; then
2907 echo '#ifdef __cplusplus' >>confdefs.h
2908 echo $ac_declaration >>confdefs.h
2909 echo '#endif' >>confdefs.h
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2919 ac_cpp='$CPP $CPPFLAGS'
2920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2923 DEPDIR="${am__leading_dot}deps"
2925 ac_config_commands="$ac_config_commands depfiles"
2928 am_make=${MAKE-make}
2929 cat > confinc << 'END'
2934 # If we don't find an include directive, just comment out the code.
2935 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2936 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2940 # First try GNU make style include.
2941 echo "include confinc" > confmf
2942 # We grep out `Entering directory' and `Leaving directory'
2943 # messages which can occur if `w' ends up in MAKEFLAGS.
2944 # In particular we don't look at `^make:' because GNU make might
2945 # be invoked under some other name (usually "gmake"), in which
2946 # case it prints its new name instead of `make'.
2947 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2952 # Now try BSD make style include.
2953 if test "$am__include" = "#"; then
2954 echo '.include "confinc"' > confmf
2955 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2956 am__include=.include
2963 echo "$as_me:$LINENO: result: $_am_result" >&5
2964 echo "${ECHO_T}$_am_result" >&6
2965 rm -f confinc confmf
2967 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2968 if test "${enable_dependency_tracking+set}" = set; then
2969 enableval="$enable_dependency_tracking"
2972 if test "x$enable_dependency_tracking" != xno; then
2973 am_depcomp="$ac_aux_dir/depcomp"
2978 if test "x$enable_dependency_tracking" != xno; then
2989 depcc="$CC" am_compiler_list=
2991 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2992 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2993 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2997 # We make a subdir and do the tests there. Otherwise we can end up
2998 # making bogus files that we don't know about and never remove. For
2999 # instance it was reported that on HP-UX the gcc test will end up
3000 # making a dummy file named `D' -- because `-MD' means `put the output
3003 # Copy depcomp to subdir because otherwise we won't find it if we're
3004 # using a relative directory.
3005 cp "$am_depcomp" conftest.dir
3007 # We will build objects and dependencies in a subdirectory because
3008 # it helps to detect inapplicable dependency modes. For instance
3009 # both Tru64's cc and ICC support -MD to output dependencies as a
3010 # side effect of compilation, but ICC will put the dependencies in
3011 # the current directory while Tru64 will put them in the object
3015 am_cv_CC_dependencies_compiler_type=none
3016 if test "$am_compiler_list" = ""; then
3017 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3019 for depmode in $am_compiler_list; do
3020 # Setup a source with many dependencies, because some compilers
3021 # like to wrap large dependency lists on column 80 (with \), and
3022 # we should not choose a depcomp mode which is confused by this.
3024 # We need to recreate these files for each test, as the compiler may
3025 # overwrite some of them when testing with obscure command lines.
3026 # This happens at least with the AIX C compiler.
3028 for i in 1 2 3 4 5 6; do
3029 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3030 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3031 # Solaris 8's {/usr,}/bin/sh.
3032 touch sub/conftst$i.h
3034 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3038 # after this tag, mechanisms are not by side-effect, so they'll
3039 # only be used when explicitly requested
3040 if test "x$enable_dependency_tracking" = xyes; then
3048 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3049 # mode. It turns out that the SunPro C++ compiler does not properly
3050 # handle `-M -o', and we need to detect this.
3051 if depmode=$depmode \
3052 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3053 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3054 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3055 >/dev/null 2>conftest.err &&
3056 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3057 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3058 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3059 # icc doesn't choke on unknown options, it will just issue warnings
3060 # or remarks (even with -Werror). So we grep stderr for any message
3061 # that says an option was ignored or not supported.
3062 # When given -MP, icc 7.0 and 7.1 complain thusly:
3063 # icc: Command line warning: ignoring option '-M'; no argument required
3064 # The diagnosis changed in icc 8.0:
3065 # icc: Command line remark: option '-MP' not supported
3066 if (grep 'ignoring option' conftest.err ||
3067 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3068 am_cv_CC_dependencies_compiler_type=$depmode
3077 am_cv_CC_dependencies_compiler_type=none
3081 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3082 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3083 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3088 test "x$enable_dependency_tracking" != xno \
3089 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3091 am__fastdepCC_FALSE='#'
3093 am__fastdepCC_TRUE='#'
3094 am__fastdepCC_FALSE=
3098 if test -z "$CC"; then
3103 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3104 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3105 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3106 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 cat >conftest.make <<\_ACEOF
3111 @echo 'ac_maketemp="$(MAKE)"'
3113 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3114 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3115 if test -n "$ac_maketemp"; then
3116 eval ac_cv_prog_make_${ac_make}_set=yes
3118 eval ac_cv_prog_make_${ac_make}_set=no
3122 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3123 echo "$as_me:$LINENO: result: yes" >&5
3124 echo "${ECHO_T}yes" >&6
3127 echo "$as_me:$LINENO: result: no" >&5
3128 echo "${ECHO_T}no" >&6
3129 SET_MAKE="MAKE=${MAKE-make}"
3132 # Check whether --enable-shared or --disable-shared was given.
3133 if test "${enable_shared+set}" = set; then
3134 enableval="$enable_shared"
3135 p=${PACKAGE-default}
3137 yes) enable_shared=yes ;;
3138 no) enable_shared=no ;;
3141 # Look at the argument we got. We use all the common list separators.
3142 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3143 for pkg in $enableval; do
3145 if test "X$pkg" = "X$p"; then
3156 # Check whether --enable-static or --disable-static was given.
3157 if test "${enable_static+set}" = set; then
3158 enableval="$enable_static"
3159 p=${PACKAGE-default}
3161 yes) enable_static=yes ;;
3162 no) enable_static=no ;;
3165 # Look at the argument we got. We use all the common list separators.
3166 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3167 for pkg in $enableval; do
3169 if test "X$pkg" = "X$p"; then
3180 # Check whether --enable-fast-install or --disable-fast-install was given.
3181 if test "${enable_fast_install+set}" = set; then
3182 enableval="$enable_fast_install"
3183 p=${PACKAGE-default}
3185 yes) enable_fast_install=yes ;;
3186 no) enable_fast_install=no ;;
3188 enable_fast_install=no
3189 # Look at the argument we got. We use all the common list separators.
3190 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3191 for pkg in $enableval; do
3193 if test "X$pkg" = "X$p"; then
3194 enable_fast_install=yes
3201 enable_fast_install=yes
3204 # Make sure we can run config.sub.
3205 $ac_config_sub sun4 >/dev/null 2>&1 ||
3206 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3207 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3208 { (exit 1); exit 1; }; }
3210 echo "$as_me:$LINENO: checking build system type" >&5
3211 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3212 if test "${ac_cv_build+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 ac_cv_build_alias=$build_alias
3216 test -z "$ac_cv_build_alias" &&
3217 ac_cv_build_alias=`$ac_config_guess`
3218 test -z "$ac_cv_build_alias" &&
3219 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3220 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3221 { (exit 1); exit 1; }; }
3222 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3223 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3224 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3225 { (exit 1); exit 1; }; }
3228 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3229 echo "${ECHO_T}$ac_cv_build" >&6
3231 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3232 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3233 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3236 echo "$as_me:$LINENO: checking host system type" >&5
3237 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3238 if test "${ac_cv_host+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 ac_cv_host_alias=$host_alias
3242 test -z "$ac_cv_host_alias" &&
3243 ac_cv_host_alias=$ac_cv_build_alias
3244 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3245 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3246 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3247 { (exit 1); exit 1; }; }
3250 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3251 echo "${ECHO_T}$ac_cv_host" >&6
3253 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3254 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3255 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3258 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3259 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3260 if test "${lt_cv_path_SED+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 # Loop through the user's path and test for sed and gsed.
3264 # Then use that list of sed's as ones to test for truncation.
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 test -z "$as_dir" && as_dir=.
3270 for lt_ac_prog in sed gsed; do
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3273 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3280 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3281 # along with /bin/sed that truncates output.
3282 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3283 test ! -f $lt_ac_sed && continue
3284 cat /dev/null > conftest.in
3286 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3287 # Check for GNU sed and select it if it is found.
3288 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3289 lt_cv_path_SED=$lt_ac_sed
3293 cat conftest.in conftest.in >conftest.tmp
3294 mv conftest.tmp conftest.in
3295 cp conftest.in conftest.nl
3297 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3298 cmp -s conftest.out conftest.nl || break
3299 # 10000 chars as input seems more than enough
3300 test $lt_ac_count -gt 10 && break
3301 lt_ac_count=`expr $lt_ac_count + 1`
3302 if test $lt_ac_count -gt $lt_ac_max; then
3303 lt_ac_max=$lt_ac_count
3304 lt_cv_path_SED=$lt_ac_sed
3312 echo "$as_me:$LINENO: result: $SED" >&5
3313 echo "${ECHO_T}$SED" >&6
3315 echo "$as_me:$LINENO: checking for egrep" >&5
3316 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3317 if test "${ac_cv_prog_egrep+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3321 then ac_cv_prog_egrep='grep -E'
3322 else ac_cv_prog_egrep='egrep'
3325 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3326 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3327 EGREP=$ac_cv_prog_egrep
3331 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3332 if test "${with_gnu_ld+set}" = set; then
3333 withval="$with_gnu_ld"
3334 test "$withval" = no || with_gnu_ld=yes
3339 if test "$GCC" = yes; then
3340 # Check if gcc -print-prog-name=ld gives a path.
3341 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3342 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3345 # gcc leaves a trailing carriage return which upsets mingw
3346 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3348 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3351 # Accept absolute paths.
3353 re_direlt='/[^/][^/]*/\.\./'
3354 # Canonicalize the pathname of ld
3355 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3356 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3357 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3359 test -z "$LD" && LD="$ac_prog"
3362 # If it fails, then pretend we aren't using GCC.
3366 # If it is relative, then search for the first ld in PATH.
3370 elif test "$with_gnu_ld" = yes; then
3371 echo "$as_me:$LINENO: checking for GNU ld" >&5
3372 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3374 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3375 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3377 if test "${lt_cv_path_LD+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 if test -z "$LD"; then
3381 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3382 for ac_dir in $PATH; do
3384 test -z "$ac_dir" && ac_dir=.
3385 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3386 lt_cv_path_LD="$ac_dir/$ac_prog"
3387 # Check to see if the program is GNU ld. I'd rather use --version,
3388 # but apparently some variants of GNU ld only accept -v.
3389 # Break only if it was the GNU/non-GNU ld that we prefer.
3390 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3391 *GNU* | *'with BFD'*)
3392 test "$with_gnu_ld" != no && break
3395 test "$with_gnu_ld" != yes && break
3402 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3407 if test -n "$LD"; then
3408 echo "$as_me:$LINENO: result: $LD" >&5
3409 echo "${ECHO_T}$LD" >&6
3411 echo "$as_me:$LINENO: result: no" >&5
3412 echo "${ECHO_T}no" >&6
3414 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3415 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3416 { (exit 1); exit 1; }; }
3417 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3418 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3419 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3423 case `$LD -v 2>&1 </dev/null` in
3424 *GNU* | *'with BFD'*)
3425 lt_cv_prog_gnu_ld=yes
3428 lt_cv_prog_gnu_ld=no
3432 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3433 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3434 with_gnu_ld=$lt_cv_prog_gnu_ld
3437 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3438 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3439 if test "${lt_cv_ld_reload_flag+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 lt_cv_ld_reload_flag='-r'
3444 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3445 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3446 reload_flag=$lt_cv_ld_reload_flag
3447 case $reload_flag in
3449 *) reload_flag=" $reload_flag" ;;
3451 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3454 if test "$GCC" = yes; then
3455 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3457 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3462 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3463 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3464 if test "${lt_cv_path_NM+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 if test -n "$NM"; then
3468 # Let the user override the test.
3471 lt_nm_to_check="${ac_tool_prefix}nm"
3472 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3473 lt_nm_to_check="$lt_nm_to_check nm"
3475 for lt_tmp_nm in $lt_nm_to_check; do
3476 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3477 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3479 test -z "$ac_dir" && ac_dir=.
3480 tmp_nm="$ac_dir/$lt_tmp_nm"
3481 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3482 # Check to see if the nm accepts a BSD-compat flag.
3483 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3484 # nm: unknown option "B" ignored
3485 # Tru64's nm complains that /dev/null is an invalid object file
3486 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3487 */dev/null* | *'Invalid file or object type'*)
3488 lt_cv_path_NM="$tmp_nm -B"
3492 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3494 lt_cv_path_NM="$tmp_nm -p"
3498 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3499 continue # so that we can try to find one that supports BSD flags
3508 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3511 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3512 echo "${ECHO_T}$lt_cv_path_NM" >&6
3515 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3516 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3518 if test "$LN_S" = "ln -s"; then
3519 echo "$as_me:$LINENO: result: yes" >&5
3520 echo "${ECHO_T}yes" >&6
3522 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3523 echo "${ECHO_T}no, using $LN_S" >&6
3526 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3527 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3528 if test "${lt_cv_deplibs_check_method+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 lt_cv_file_magic_cmd='$MAGIC_CMD'
3532 lt_cv_file_magic_test_file=
3533 lt_cv_deplibs_check_method='unknown'
3534 # Need to set the preceding variable on all platforms that support
3535 # interlibrary dependencies.
3536 # 'none' -- dependencies not supported.
3537 # `unknown' -- same as none, but documents that we really don't know.
3538 # 'pass_all' -- all dependencies passed with no checks.
3539 # 'test_compile' -- check by making test program.
3540 # 'file_magic [[regex]]' -- check by looking for files in library path
3541 # which responds to the $file_magic_cmd with a given extended regex.
3542 # If you have `file' or equivalent on your system and you're not sure
3543 # whether `pass_all' will *always* work, you probably want this one.
3547 lt_cv_deplibs_check_method=pass_all
3551 lt_cv_deplibs_check_method=pass_all
3555 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3556 lt_cv_file_magic_cmd='/usr/bin/file -L'
3557 lt_cv_file_magic_test_file=/shlib/libc.so
3561 # func_win32_libid is a shell function defined in ltmain.sh
3562 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3563 lt_cv_file_magic_cmd='func_win32_libid'
3567 # Base MSYS/MinGW do not provide the 'file' command needed by
3568 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3569 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3570 lt_cv_file_magic_cmd='$OBJDUMP -f'
3573 darwin* | rhapsody*)
3574 lt_cv_deplibs_check_method=pass_all
3577 freebsd* | kfreebsd*-gnu | dragonfly*)
3578 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3581 # Not sure whether the presence of OpenBSD here was a mistake.
3582 # Let's accept both of them until this is cleared up.
3583 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3584 lt_cv_file_magic_cmd=/usr/bin/file
3585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3589 lt_cv_deplibs_check_method=pass_all
3594 lt_cv_deplibs_check_method=pass_all
3597 hpux10.20* | hpux11*)
3598 lt_cv_file_magic_cmd=/usr/bin/file
3601 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3602 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3605 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3606 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3609 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3610 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3616 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3620 irix5* | irix6* | nonstopux*)
3622 *-32|*"-32 ") libmagic=32-bit;;
3623 *-n32|*"-n32 ") libmagic=N32;;
3624 *-64|*"-64 ") libmagic=64-bit;;
3625 *) libmagic=never-match;;
3627 lt_cv_deplibs_check_method=pass_all
3630 # This must be Linux ELF.
3632 lt_cv_deplibs_check_method=pass_all
3636 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3645 lt_cv_file_magic_cmd=/usr/bin/file
3646 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3650 lt_cv_deplibs_check_method=unknown
3654 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3661 osf3* | osf4* | osf5*)
3662 lt_cv_deplibs_check_method=pass_all
3666 lt_cv_deplibs_check_method=pass_all
3670 case $host_vendor in
3672 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]'
3673 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3676 lt_cv_deplibs_check_method=pass_all
3679 lt_cv_file_magic_cmd='/bin/file'
3680 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3683 lt_cv_file_magic_cmd='/bin/file'
3684 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3685 lt_cv_file_magic_test_file=/lib/libc.so
3688 lt_cv_deplibs_check_method=pass_all
3691 lt_cv_deplibs_check_method=pass_all
3696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3697 lt_cv_deplibs_check_method=pass_all
3702 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3703 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3704 file_magic_cmd=$lt_cv_file_magic_cmd
3705 deplibs_check_method=$lt_cv_deplibs_check_method
3706 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3711 # If no C compiler was specified, use CC.
3714 # If no C compiler flags were specified, use CFLAGS.
3715 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3717 # Allow CC to be a program name with arguments.
3721 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3722 if test "${enable_libtool_lock+set}" = set; then
3723 enableval="$enable_libtool_lock"
3726 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3728 # Some flags need to be propagated to the compiler or linker for good
3732 # Find out which ABI we are using.
3733 echo 'int i;' > conftest.$ac_ext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3735 (eval $ac_compile) 2>&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; then
3739 case `/usr/bin/file conftest.$ac_objext` in
3751 # Find out which ABI we are using.
3752 echo '#line 3752 "configure"' > conftest.$ac_ext
3753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3754 (eval $ac_compile) 2>&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; then
3758 if test "$lt_cv_prog_gnu_ld" = yes; then
3759 case `/usr/bin/file conftest.$ac_objext` in
3761 LD="${LD-ld} -melf32bsmip"
3764 LD="${LD-ld} -melf32bmipn32"
3767 LD="${LD-ld} -melf64bmip"
3771 case `/usr/bin/file conftest.$ac_objext` in
3787 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3788 # Find out which ABI we are using.
3789 echo 'int i;' > conftest.$ac_ext
3790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3791 (eval $ac_compile) 2>&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }; then
3795 case `/usr/bin/file conftest.o` in
3799 LD="${LD-ld} -m elf_i386"
3801 ppc64-*linux*|powerpc64-*linux*)
3802 LD="${LD-ld} -m elf32ppclinux"
3805 LD="${LD-ld} -m elf_s390"
3808 LD="${LD-ld} -m elf32_sparc"
3815 LD="${LD-ld} -m elf_x86_64"
3817 ppc*-*linux*|powerpc*-*linux*)
3818 LD="${LD-ld} -m elf64ppc"
3821 LD="${LD-ld} -m elf64_s390"
3824 LD="${LD-ld} -m elf64_sparc"
3834 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3835 SAVE_CFLAGS="$CFLAGS"
3836 CFLAGS="$CFLAGS -belf"
3837 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3838 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3839 if test "${lt_cv_cc_needs_belf+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 ac_cpp='$CPP $CPPFLAGS'
3844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848 cat >conftest.$ac_ext <<_ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3863 rm -f conftest.$ac_objext conftest$ac_exeext
3864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3865 (eval $ac_link) 2>conftest.er1
3867 grep -v '^ *+' conftest.er1 >conftest.err
3869 cat conftest.err >&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } &&
3872 { ac_try='test -z "$ac_c_werror_flag"
3873 || test ! -s conftest.err'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; } &&
3879 { ac_try='test -s conftest$ac_exeext'
3880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
3885 lt_cv_cc_needs_belf=yes
3887 echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3890 lt_cv_cc_needs_belf=no
3892 rm -f conftest.err conftest.$ac_objext \
3893 conftest$ac_exeext conftest.$ac_ext
3895 ac_cpp='$CPP $CPPFLAGS'
3896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3902 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3903 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3904 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3905 CFLAGS="$SAVE_CFLAGS"
3909 # Find out which ABI we are using.
3910 echo 'int i;' > conftest.$ac_ext
3911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3912 (eval $ac_compile) 2>&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; then
3916 case `/usr/bin/file conftest.o` in
3918 case $lt_cv_prog_gnu_ld in
3919 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3920 *) LD="${LD-ld} -64" ;;
3931 need_locks="$enable_libtool_lock"
3935 ac_cpp='$CPP $CPPFLAGS'
3936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3939 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3940 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3941 # On Suns, sometimes $CPP names a directory.
3942 if test -n "$CPP" && test -d "$CPP"; then
3945 if test -z "$CPP"; then
3946 if test "${ac_cv_prog_CPP+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 # Double quotes because CPP needs to be expanded
3950 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3953 for ac_c_preproc_warn_flag in '' yes
3955 # Use a header file that comes with gcc, so configuring glibc
3956 # with a fresh cross-compiler works.
3957 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958 # <limits.h> exists even on freestanding compilers.
3959 # On the NeXT, cc -E runs the code through the compiler's parser,
3960 # not just through cpp. "Syntax error" is here to catch this case.
3961 cat >conftest.$ac_ext <<_ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3968 # include <limits.h>
3970 # include <assert.h>
3974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3977 grep -v '^ *+' conftest.er1 >conftest.err
3979 cat conftest.err >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } >/dev/null; then
3982 if test -s conftest.err; then
3983 ac_cpp_err=$ac_c_preproc_warn_flag
3984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3991 if test -z "$ac_cpp_err"; then
3994 echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3997 # Broken: fails on valid input.
4000 rm -f conftest.err conftest.$ac_ext
4002 # OK, works on sane cases. Now check whether non-existent headers
4003 # can be detected and how.
4004 cat >conftest.$ac_ext <<_ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 #include <ac_nonexistent.h>
4012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4015 grep -v '^ *+' conftest.er1 >conftest.err
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } >/dev/null; then
4020 if test -s conftest.err; then
4021 ac_cpp_err=$ac_c_preproc_warn_flag
4022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4029 if test -z "$ac_cpp_err"; then
4030 # Broken: success on invalid input.
4033 echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4036 # Passes both tests.
4040 rm -f conftest.err conftest.$ac_ext
4043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4044 rm -f conftest.err conftest.$ac_ext
4045 if $ac_preproc_ok; then
4057 echo "$as_me:$LINENO: result: $CPP" >&5
4058 echo "${ECHO_T}$CPP" >&6
4060 for ac_c_preproc_warn_flag in '' yes
4062 # Use a header file that comes with gcc, so configuring glibc
4063 # with a fresh cross-compiler works.
4064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4065 # <limits.h> exists even on freestanding compilers.
4066 # On the NeXT, cc -E runs the code through the compiler's parser,
4067 # not just through cpp. "Syntax error" is here to catch this case.
4068 cat >conftest.$ac_ext <<_ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4075 # include <limits.h>
4077 # include <assert.h>
4081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4084 grep -v '^ *+' conftest.er1 >conftest.err
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } >/dev/null; then
4089 if test -s conftest.err; then
4090 ac_cpp_err=$ac_c_preproc_warn_flag
4091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4098 if test -z "$ac_cpp_err"; then
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 # Broken: fails on valid input.
4107 rm -f conftest.err conftest.$ac_ext
4109 # OK, works on sane cases. Now check whether non-existent headers
4110 # can be detected and how.
4111 cat >conftest.$ac_ext <<_ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4117 #include <ac_nonexistent.h>
4119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4122 grep -v '^ *+' conftest.er1 >conftest.err
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } >/dev/null; then
4127 if test -s conftest.err; then
4128 ac_cpp_err=$ac_c_preproc_warn_flag
4129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4136 if test -z "$ac_cpp_err"; then
4137 # Broken: success on invalid input.
4140 echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4143 # Passes both tests.
4147 rm -f conftest.err conftest.$ac_ext
4150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4151 rm -f conftest.err conftest.$ac_ext
4152 if $ac_preproc_ok; then
4155 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4156 See \`config.log' for more details." >&5
4157 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4158 See \`config.log' for more details." >&2;}
4159 { (exit 1); exit 1; }; }
4163 ac_cpp='$CPP $CPPFLAGS'
4164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4170 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4171 if test "${ac_cv_header_stdc+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4174 cat >conftest.$ac_ext <<_ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4193 rm -f conftest.$ac_objext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4195 (eval $ac_compile) 2>conftest.er1
4197 grep -v '^ *+' conftest.er1 >conftest.err
4199 cat conftest.err >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } &&
4202 { ac_try='test -z "$ac_c_werror_flag"
4203 || test ! -s conftest.err'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; } &&
4209 { ac_try='test -s conftest.$ac_objext'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; }; then
4215 ac_cv_header_stdc=yes
4217 echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4220 ac_cv_header_stdc=no
4222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4224 if test $ac_cv_header_stdc = yes; then
4225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4226 cat >conftest.$ac_ext <<_ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4236 $EGREP "memchr" >/dev/null 2>&1; then
4239 ac_cv_header_stdc=no
4245 if test $ac_cv_header_stdc = yes; then
4246 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4247 cat >conftest.$ac_ext <<_ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257 $EGREP "free" >/dev/null 2>&1; then
4260 ac_cv_header_stdc=no
4266 if test $ac_cv_header_stdc = yes; then
4267 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4268 if test "$cross_compiling" = yes; then
4271 cat >conftest.$ac_ext <<_ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4278 #if ((' ' & 0x0FF) == 0x020)
4279 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4280 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4282 # define ISLOWER(c) \
4283 (('a' <= (c) && (c) <= 'i') \
4284 || ('j' <= (c) && (c) <= 'r') \
4285 || ('s' <= (c) && (c) <= 'z'))
4286 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4294 for (i = 0; i < 256; i++)
4295 if (XOR (islower (i), ISLOWER (i))
4296 || toupper (i) != TOUPPER (i))
4301 rm -f conftest$ac_exeext
4302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4303 (eval $ac_link) 2>&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4314 echo "$as_me: program exited with status $ac_status" >&5
4315 echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4319 ac_cv_header_stdc=no
4321 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4325 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4326 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4327 if test $ac_cv_header_stdc = yes; then
4329 cat >>confdefs.h <<\_ACEOF
4330 #define STDC_HEADERS 1
4335 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4345 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4346 inttypes.h stdint.h unistd.h
4348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4349 echo "$as_me:$LINENO: checking for $ac_header" >&5
4350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 cat >conftest.$ac_ext <<_ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4360 $ac_includes_default
4362 #include <$ac_header>
4364 rm -f conftest.$ac_objext
4365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366 (eval $ac_compile) 2>conftest.er1
4368 grep -v '^ *+' conftest.er1 >conftest.err
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } &&
4373 { ac_try='test -z "$ac_c_werror_flag"
4374 || test ! -s conftest.err'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; } &&
4380 { ac_try='test -s conftest.$ac_objext'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; }; then
4386 eval "$as_ac_Header=yes"
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4391 eval "$as_ac_Header=no"
4393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4398 cat >>confdefs.h <<_ACEOF
4399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4408 for ac_header in dlfcn.h
4410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4412 echo "$as_me:$LINENO: checking for $ac_header" >&5
4413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4420 # Is the header compilable?
4421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4423 cat >conftest.$ac_ext <<_ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4429 $ac_includes_default
4430 #include <$ac_header>
4432 rm -f conftest.$ac_objext
4433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4434 (eval $ac_compile) 2>conftest.er1
4436 grep -v '^ *+' conftest.er1 >conftest.err
4438 cat conftest.err >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } &&
4441 { ac_try='test -z "$ac_c_werror_flag"
4442 || test ! -s conftest.err'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; } &&
4448 { ac_try='test -s conftest.$ac_objext'
4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; }; then
4454 ac_header_compiler=yes
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4459 ac_header_compiler=no
4461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4463 echo "${ECHO_T}$ac_header_compiler" >&6
4465 # Is the header present?
4466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4468 cat >conftest.$ac_ext <<_ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4474 #include <$ac_header>
4476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4479 grep -v '^ *+' conftest.er1 >conftest.err
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } >/dev/null; then
4484 if test -s conftest.err; then
4485 ac_cpp_err=$ac_c_preproc_warn_flag
4486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4493 if test -z "$ac_cpp_err"; then
4494 ac_header_preproc=yes
4496 echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4499 ac_header_preproc=no
4501 rm -f conftest.err conftest.$ac_ext
4502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4503 echo "${ECHO_T}$ac_header_preproc" >&6
4505 # So? What about this header?
4506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4512 ac_header_preproc=yes
4515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4529 ## ----------------------------------------------------------- ##
4530 ## Report this to http://sourceforge.net/projects/libvncserver ##
4531 ## ----------------------------------------------------------- ##
4534 sed "s/^/$as_me: WARNING: /" >&2
4537 echo "$as_me:$LINENO: checking for $ac_header" >&5
4538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 eval "$as_ac_Header=\$ac_header_preproc"
4544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4549 cat >>confdefs.h <<_ACEOF
4550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4558 ac_cpp='$CXXCPP $CPPFLAGS'
4559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4562 if test -n "$ac_tool_prefix"; then
4563 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4566 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4567 echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4569 if test "${ac_cv_prog_CXX+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 if test -n "$CXX"; then
4573 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4582 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 if test -n "$CXX"; then
4593 echo "$as_me:$LINENO: result: $CXX" >&5
4594 echo "${ECHO_T}$CXX" >&6
4596 echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6
4600 test -n "$CXX" && break
4603 if test -z "$CXX"; then
4605 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4607 # Extract the first word of "$ac_prog", so it can be a program name with args.
4608 set dummy $ac_prog; ac_word=$2
4609 echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4611 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 if test -n "$ac_ct_CXX"; then
4615 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624 ac_cv_prog_ac_ct_CXX="$ac_prog"
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4634 if test -n "$ac_ct_CXX"; then
4635 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4636 echo "${ECHO_T}$ac_ct_CXX" >&6
4638 echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4642 test -n "$ac_ct_CXX" && break
4644 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4650 # Provide some information about the compiler.
4651 echo "$as_me:$LINENO:" \
4652 "checking for C++ compiler version" >&5
4653 ac_compiler=`set X $ac_compile; echo $2`
4654 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4655 (eval $ac_compiler --version </dev/null >&5) 2>&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }
4659 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4660 (eval $ac_compiler -v </dev/null >&5) 2>&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }
4664 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4665 (eval $ac_compiler -V </dev/null >&5) 2>&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }
4670 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4671 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4672 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 cat >conftest.$ac_ext <<_ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4693 rm -f conftest.$ac_objext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695 (eval $ac_compile) 2>conftest.er1
4697 grep -v '^ *+' conftest.er1 >conftest.err
4699 cat conftest.err >&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } &&
4702 { ac_try='test -z "$ac_cxx_werror_flag"
4703 || test ! -s conftest.err'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; } &&
4709 { ac_try='test -s conftest.$ac_objext'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; }; then
4717 echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4723 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4726 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4727 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4728 GXX=`test $ac_compiler_gnu = yes && echo yes`
4729 ac_test_CXXFLAGS=${CXXFLAGS+set}
4730 ac_save_CXXFLAGS=$CXXFLAGS
4732 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4733 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4734 if test "${ac_cv_prog_cxx_g+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 cat >conftest.$ac_ext <<_ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4752 rm -f conftest.$ac_objext
4753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4754 (eval $ac_compile) 2>conftest.er1
4756 grep -v '^ *+' conftest.er1 >conftest.err
4758 cat conftest.err >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } &&
4761 { ac_try='test -z "$ac_cxx_werror_flag"
4762 || test ! -s conftest.err'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; } &&
4768 { ac_try='test -s conftest.$ac_objext'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; }; then
4774 ac_cv_prog_cxx_g=yes
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4783 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4784 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4785 if test "$ac_test_CXXFLAGS" = set; then
4786 CXXFLAGS=$ac_save_CXXFLAGS
4787 elif test $ac_cv_prog_cxx_g = yes; then
4788 if test "$GXX" = yes; then
4794 if test "$GXX" = yes; then
4800 for ac_declaration in \
4802 'extern "C" void std::exit (int) throw (); using std::exit;' \
4803 'extern "C" void std::exit (int); using std::exit;' \
4804 'extern "C" void exit (int) throw ();' \
4805 'extern "C" void exit (int);' \
4808 cat >conftest.$ac_ext <<_ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4824 rm -f conftest.$ac_objext
4825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4826 (eval $ac_compile) 2>conftest.er1
4828 grep -v '^ *+' conftest.er1 >conftest.err
4830 cat conftest.err >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } &&
4833 { ac_try='test -z "$ac_cxx_werror_flag"
4834 || test ! -s conftest.err'
4835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; } &&
4840 { ac_try='test -s conftest.$ac_objext'
4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; }; then
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4854 cat >conftest.$ac_ext <<_ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4869 rm -f conftest.$ac_objext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871 (eval $ac_compile) 2>conftest.er1
4873 grep -v '^ *+' conftest.er1 >conftest.err
4875 cat conftest.err >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } &&
4878 { ac_try='test -z "$ac_cxx_werror_flag"
4879 || test ! -s conftest.err'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; } &&
4885 { ac_try='test -s conftest.$ac_objext'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; }; then
4893 echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4900 if test -n "$ac_declaration"; then
4901 echo '#ifdef __cplusplus' >>confdefs.h
4902 echo $ac_declaration >>confdefs.h
4903 echo '#endif' >>confdefs.h
4907 ac_cpp='$CXXCPP $CPPFLAGS'
4908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4912 depcc="$CXX" am_compiler_list=
4914 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4915 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4916 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4920 # We make a subdir and do the tests there. Otherwise we can end up
4921 # making bogus files that we don't know about and never remove. For
4922 # instance it was reported that on HP-UX the gcc test will end up
4923 # making a dummy file named `D' -- because `-MD' means `put the output
4926 # Copy depcomp to subdir because otherwise we won't find it if we're
4927 # using a relative directory.
4928 cp "$am_depcomp" conftest.dir
4930 # We will build objects and dependencies in a subdirectory because
4931 # it helps to detect inapplicable dependency modes. For instance
4932 # both Tru64's cc and ICC support -MD to output dependencies as a
4933 # side effect of compilation, but ICC will put the dependencies in
4934 # the current directory while Tru64 will put them in the object
4938 am_cv_CXX_dependencies_compiler_type=none
4939 if test "$am_compiler_list" = ""; then
4940 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4942 for depmode in $am_compiler_list; do
4943 # Setup a source with many dependencies, because some compilers
4944 # like to wrap large dependency lists on column 80 (with \), and
4945 # we should not choose a depcomp mode which is confused by this.
4947 # We need to recreate these files for each test, as the compiler may
4948 # overwrite some of them when testing with obscure command lines.
4949 # This happens at least with the AIX C compiler.
4951 for i in 1 2 3 4 5 6; do
4952 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4953 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4954 # Solaris 8's {/usr,}/bin/sh.
4955 touch sub/conftst$i.h
4957 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4961 # after this tag, mechanisms are not by side-effect, so they'll
4962 # only be used when explicitly requested
4963 if test "x$enable_dependency_tracking" = xyes; then
4971 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4972 # mode. It turns out that the SunPro C++ compiler does not properly
4973 # handle `-M -o', and we need to detect this.
4974 if depmode=$depmode \
4975 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4976 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4977 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4978 >/dev/null 2>conftest.err &&
4979 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4980 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4981 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4982 # icc doesn't choke on unknown options, it will just issue warnings
4983 # or remarks (even with -Werror). So we grep stderr for any message
4984 # that says an option was ignored or not supported.
4985 # When given -MP, icc 7.0 and 7.1 complain thusly:
4986 # icc: Command line warning: ignoring option '-M'; no argument required
4987 # The diagnosis changed in icc 8.0:
4988 # icc: Command line remark: option '-MP' not supported
4989 if (grep 'ignoring option' conftest.err ||
4990 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4991 am_cv_CXX_dependencies_compiler_type=$depmode
5000 am_cv_CXX_dependencies_compiler_type=none
5004 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5005 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5006 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5011 test "x$enable_dependency_tracking" != xno \
5012 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5013 am__fastdepCXX_TRUE=
5014 am__fastdepCXX_FALSE='#'
5016 am__fastdepCXX_TRUE='#'
5017 am__fastdepCXX_FALSE=
5023 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5024 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5025 (test "X$CXX" != "Xg++"))) ; then
5027 ac_cpp='$CXXCPP $CPPFLAGS'
5028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5031 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5032 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5033 if test -z "$CXXCPP"; then
5034 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 # Double quotes because CXXCPP needs to be expanded
5038 for CXXCPP in "$CXX -E" "/lib/cpp"
5041 for ac_cxx_preproc_warn_flag in '' yes
5043 # Use a header file that comes with gcc, so configuring glibc
5044 # with a fresh cross-compiler works.
5045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5046 # <limits.h> exists even on freestanding compilers.
5047 # On the NeXT, cc -E runs the code through the compiler's parser,
5048 # not just through cpp. "Syntax error" is here to catch this case.
5049 cat >conftest.$ac_ext <<_ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5056 # include <limits.h>
5058 # include <assert.h>
5062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5065 grep -v '^ *+' conftest.er1 >conftest.err
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } >/dev/null; then
5070 if test -s conftest.err; then
5071 ac_cpp_err=$ac_cxx_preproc_warn_flag
5072 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5079 if test -z "$ac_cpp_err"; then
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5085 # Broken: fails on valid input.
5088 rm -f conftest.err conftest.$ac_ext
5090 # OK, works on sane cases. Now check whether non-existent headers
5091 # can be detected and how.
5092 cat >conftest.$ac_ext <<_ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5098 #include <ac_nonexistent.h>
5100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5103 grep -v '^ *+' conftest.er1 >conftest.err
5105 cat conftest.err >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } >/dev/null; then
5108 if test -s conftest.err; then
5109 ac_cpp_err=$ac_cxx_preproc_warn_flag
5110 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5117 if test -z "$ac_cpp_err"; then
5118 # Broken: success on invalid input.
5121 echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5124 # Passes both tests.
5128 rm -f conftest.err conftest.$ac_ext
5131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5132 rm -f conftest.err conftest.$ac_ext
5133 if $ac_preproc_ok; then
5138 ac_cv_prog_CXXCPP=$CXXCPP
5141 CXXCPP=$ac_cv_prog_CXXCPP
5143 ac_cv_prog_CXXCPP=$CXXCPP
5145 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5146 echo "${ECHO_T}$CXXCPP" >&6
5148 for ac_cxx_preproc_warn_flag in '' yes
5150 # Use a header file that comes with gcc, so configuring glibc
5151 # with a fresh cross-compiler works.
5152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5153 # <limits.h> exists even on freestanding compilers.
5154 # On the NeXT, cc -E runs the code through the compiler's parser,
5155 # not just through cpp. "Syntax error" is here to catch this case.
5156 cat >conftest.$ac_ext <<_ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5163 # include <limits.h>
5165 # include <assert.h>
5169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5172 grep -v '^ *+' conftest.er1 >conftest.err
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } >/dev/null; then
5177 if test -s conftest.err; then
5178 ac_cpp_err=$ac_cxx_preproc_warn_flag
5179 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5186 if test -z "$ac_cpp_err"; then
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5192 # Broken: fails on valid input.
5195 rm -f conftest.err conftest.$ac_ext
5197 # OK, works on sane cases. Now check whether non-existent headers
5198 # can be detected and how.
5199 cat >conftest.$ac_ext <<_ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h. */
5205 #include <ac_nonexistent.h>
5207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5210 grep -v '^ *+' conftest.er1 >conftest.err
5212 cat conftest.err >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); } >/dev/null; then
5215 if test -s conftest.err; then
5216 ac_cpp_err=$ac_cxx_preproc_warn_flag
5217 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5224 if test -z "$ac_cpp_err"; then
5225 # Broken: success on invalid input.
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5231 # Passes both tests.
5235 rm -f conftest.err conftest.$ac_ext
5238 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5239 rm -f conftest.err conftest.$ac_ext
5240 if $ac_preproc_ok; then
5243 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5244 See \`config.log' for more details." >&5
5245 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5246 See \`config.log' for more details." >&2;}
5247 { (exit 1); exit 1; }; }
5251 ac_cpp='$CXXCPP $CPPFLAGS'
5252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5260 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5261 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5262 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5263 if test -n "$ac_tool_prefix"; then
5264 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5268 echo "$as_me:$LINENO: checking for $ac_word" >&5
5269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5270 if test "${ac_cv_prog_F77+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 if test -n "$F77"; then
5274 ac_cv_prog_F77="$F77" # Let the user override the test.
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 if test -n "$F77"; then
5294 echo "$as_me:$LINENO: result: $F77" >&5
5295 echo "${ECHO_T}$F77" >&6
5297 echo "$as_me:$LINENO: result: no" >&5
5298 echo "${ECHO_T}no" >&6
5301 test -n "$F77" && break
5304 if test -z "$F77"; then
5306 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5308 # Extract the first word of "$ac_prog", so it can be a program name with args.
5309 set dummy $ac_prog; ac_word=$2
5310 echo "$as_me:$LINENO: checking for $ac_word" >&5
5311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5312 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 if test -n "$ac_ct_F77"; then
5316 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_ac_ct_F77="$ac_prog"
5326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5335 if test -n "$ac_ct_F77"; then
5336 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5337 echo "${ECHO_T}$ac_ct_F77" >&6
5339 echo "$as_me:$LINENO: result: no" >&5
5340 echo "${ECHO_T}no" >&6
5343 test -n "$ac_ct_F77" && break
5350 # Provide some information about the compiler.
5351 echo "$as_me:5351:" \
5352 "checking for Fortran 77 compiler version" >&5
5353 ac_compiler=`set X $ac_compile; echo $2`
5354 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5355 (eval $ac_compiler --version </dev/null >&5) 2>&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }
5359 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5360 (eval $ac_compiler -v </dev/null >&5) 2>&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }
5364 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5365 (eval $ac_compiler -V </dev/null >&5) 2>&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }
5371 # If we don't use `.F' as extension, the preprocessor is not run on the
5372 # input file. (Note that this only needs to work for GNU compilers.)
5375 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5376 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5377 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 cat >conftest.$ac_ext <<_ACEOF
5388 rm -f conftest.$ac_objext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390 (eval $ac_compile) 2>conftest.er1
5392 grep -v '^ *+' conftest.er1 >conftest.err
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -z "$ac_f77_werror_flag"
5398 || test ! -s conftest.err'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; } &&
5404 { ac_try='test -s conftest.$ac_objext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5418 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5421 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5422 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5424 ac_test_FFLAGS=${FFLAGS+set}
5425 ac_save_FFLAGS=$FFLAGS
5427 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5428 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5429 if test "${ac_cv_prog_f77_g+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5433 cat >conftest.$ac_ext <<_ACEOF
5438 rm -f conftest.$ac_objext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440 (eval $ac_compile) 2>conftest.er1
5442 grep -v '^ *+' conftest.er1 >conftest.err
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try='test -z "$ac_f77_werror_flag"
5448 || test ! -s conftest.err'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; } &&
5454 { ac_try='test -s conftest.$ac_objext'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
5460 ac_cv_prog_f77_g=yes
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5470 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5471 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5472 if test "$ac_test_FFLAGS" = set; then
5473 FFLAGS=$ac_save_FFLAGS
5474 elif test $ac_cv_prog_f77_g = yes; then
5475 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5481 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5488 G77=`test $ac_compiler_gnu = yes && echo yes`
5490 ac_cpp='$CPP $CPPFLAGS'
5491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5497 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5499 # find the maximum length of command line arguments
5500 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5501 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5502 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5503 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 # On DJGPP, this test can blow up pretty badly due to problems in libc
5511 # (any single argument exceeding 2000 bytes causes a buffer overrun
5512 # during glob expansion). Even if it were fixed, the result of this
5513 # check would be larger than it should be.
5514 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5518 # Under GNU Hurd, this test is not required because there is
5519 # no limit to the length of command line arguments.
5520 # Libtool will interpret -1 as no limit whatsoever
5521 lt_cv_sys_max_cmd_len=-1;
5525 # On Win9x/ME, this test blows up -- it succeeds, but takes
5526 # about 5 minutes as the teststring grows exponentially.
5527 # Worse, since 9x/ME are not pre-emptively multitasking,
5528 # you end up with a "frozen" computer, even though with patience
5529 # the test eventually succeeds (with a max line length of 256k).
5530 # Instead, let's just punt: use the minimum linelength reported by
5531 # all of the supported platforms: 8192 (on NT/2K/XP).
5532 lt_cv_sys_max_cmd_len=8192;
5536 # On AmigaOS with pdksh, this test takes hours, literally.
5537 # So we just punt and use a minimum line length of 8192.
5538 lt_cv_sys_max_cmd_len=8192;
5541 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5542 # This has been around since 386BSD, at least. Likely further.
5543 if test -x /sbin/sysctl; then
5544 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5545 elif test -x /usr/sbin/sysctl; then
5546 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5548 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5550 # And add a safety zone
5551 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5556 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5557 lt_cv_sys_max_cmd_len=196608
5561 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5562 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5563 # nice to cause kernel panics so lets avoid the loop below.
5564 # First set a reasonable default.
5565 lt_cv_sys_max_cmd_len=16384
5567 if test -x /sbin/sysconfig; then
5568 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5569 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5574 lt_cv_sys_max_cmd_len=102400
5576 sysv5* | sco5v6* | sysv4.2uw2*)
5577 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5578 if test -n "$kargmax"; then
5579 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5581 lt_cv_sys_max_cmd_len=32768
5585 # If test is not a shell built-in, we'll probably end up computing a
5586 # maximum length that is only half of the actual maximum length, but
5588 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5589 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5590 = "XX$teststring") >/dev/null 2>&1 &&
5591 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5592 lt_cv_sys_max_cmd_len=$new_result &&
5593 test $i != 17 # 1/2 MB should be enough
5596 teststring=$teststring$teststring
5599 # Add a significant safety factor because C++ compilers can tack on massive
5600 # amounts of additional arguments before passing them to the linker.
5601 # It appears as though 1/2 is a usable value.
5602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5608 if test -n $lt_cv_sys_max_cmd_len ; then
5609 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5610 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5612 echo "$as_me:$LINENO: result: none" >&5
5613 echo "${ECHO_T}none" >&6
5619 # Check for command to grab the raw symbol name followed by C symbol from nm.
5620 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5621 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5622 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5626 # These are sane defaults that work on at least a few old systems.
5627 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5629 # Character class describing NM global symbol codes.
5630 symcode='[BCDEGRST]'
5632 # Regexp to match symbols that can be accessed directly from C.
5633 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5635 # Transform an extracted symbol line into a proper C declaration
5636 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5638 # Transform an extracted symbol line into symbol name and symbol address
5639 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5641 # Define system-specific variables.
5646 cygwin* | mingw* | pw32*)
5647 symcode='[ABCDGISTW]'
5649 hpux*) # Its linker distinguishes data from code symbols
5650 if test "$host_cpu" = ia64; then
5651 symcode='[ABCDEGRST]'
5653 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5654 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5657 if test "$host_cpu" = ia64; then
5658 symcode='[ABCDGIRSTW]'
5659 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5660 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5664 symcode='[BCDEGRST]'
5667 symcode='[BCDEGQRST]'
5678 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5686 # Handle CRLF in mingw tool chain
5690 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5694 # If we're using GNU nm, then use its standard symbol codes.
5695 case `$NM -V 2>&1` in
5696 *GNU* | *'with BFD'*)
5697 symcode='[ABCDGIRSTW]' ;;
5700 # Try without a prefix undercore, then with it.
5701 for ac_symprfx in "" "_"; do
5703 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5704 symxfrm="\\1 $ac_symprfx\\2 \\2"
5706 # Write the raw and C identifiers.
5707 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5709 # Check to see that the pipe works correctly.
5713 cat > conftest.$ac_ext <<EOF
5718 void nm_test_func(){}
5722 int main(){nm_test_var='a';nm_test_func();return(0);}
5725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5726 (eval $ac_compile) 2>&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; then
5730 # Now try to grab the symbols.
5732 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5733 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } && test -s "$nlist"; then
5737 # Try sorting and uniquifying the output.
5738 if sort "$nlist" | uniq > "$nlist"T; then
5739 mv -f "$nlist"T "$nlist"
5744 # Make sure that we snagged all the symbols we need.
5745 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5746 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5747 cat <<EOF > conftest.$ac_ext
5753 # Now generate the symbol file.
5754 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5756 cat <<EOF >> conftest.$ac_ext
5757 #if defined (__STDC__) && __STDC__
5758 # define lt_ptr_t void *
5760 # define lt_ptr_t char *
5764 /* The mapping between symbol names and symbols. */
5769 lt_preloaded_symbols[] =
5772 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5773 cat <<\EOF >> conftest.$ac_ext
5781 # Now try linking the two files.
5782 mv conftest.$ac_objext conftstm.$ac_objext
5783 lt_save_LIBS="$LIBS"
5784 lt_save_CFLAGS="$CFLAGS"
5785 LIBS="conftstm.$ac_objext"
5786 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5788 (eval $ac_link) 2>&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5794 LIBS="$lt_save_LIBS"
5795 CFLAGS="$lt_save_CFLAGS"
5797 echo "cannot find nm_test_func in $nlist" >&5
5800 echo "cannot find nm_test_var in $nlist" >&5
5803 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5806 echo "$progname: failed program was:" >&5
5807 cat conftest.$ac_ext >&5
5809 rm -f conftest* conftst*
5811 # Do not use the global_symbol_pipe unless it works.
5812 if test "$pipe_works" = yes; then
5815 lt_cv_sys_global_symbol_pipe=
5821 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5822 lt_cv_sys_global_symbol_to_cdecl=
5824 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5825 echo "$as_me:$LINENO: result: failed" >&5
5826 echo "${ECHO_T}failed" >&6
5828 echo "$as_me:$LINENO: result: ok" >&5
5829 echo "${ECHO_T}ok" >&6
5832 echo "$as_me:$LINENO: checking for objdir" >&5
5833 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5834 if test "${lt_cv_objdir+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 rm -f .libs 2>/dev/null
5838 mkdir .libs 2>/dev/null
5839 if test -d .libs; then
5842 # MS-DOS does not allow filenames that begin with a dot.
5845 rmdir .libs 2>/dev/null
5847 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5848 echo "${ECHO_T}$lt_cv_objdir" >&6
5849 objdir=$lt_cv_objdir
5857 # AIX sometimes has problems with the GCC collect2 program. For some
5858 # reason, if we set the COLLECT_NAMES environment variable, the problems
5859 # vanish in a puff of smoke.
5860 if test "X${COLLECT_NAMES+set}" != Xset; then
5862 export COLLECT_NAMES
5867 # Sed substitution that helps us do robust quoting. It backslashifies
5868 # metacharacters that are still active within double-quoted strings.
5869 Xsed='sed -e 1s/^X//'
5870 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5872 # Same as above, but do not quote variable references.
5873 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5875 # Sed substitution to delay expansion of an escaped shell variable in a
5876 # double_quote_subst'ed string.
5877 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5879 # Sed substitution to avoid accidental globbing in evaled expressions
5880 no_glob_subst='s/\*/\\\*/g'
5886 default_ofile=libtool
5887 can_build_shared=yes
5889 # All known linkers require a `.a' archive for static linking (except MSVC,
5890 # which needs '.lib').
5892 ltmain="$ac_aux_dir/ltmain.sh"
5893 ofile="$default_ofile"
5894 with_gnu_ld="$lt_cv_prog_gnu_ld"
5896 if test -n "$ac_tool_prefix"; then
5897 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5898 set dummy ${ac_tool_prefix}ar; ac_word=$2
5899 echo "$as_me:$LINENO: checking for $ac_word" >&5
5900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5901 if test "${ac_cv_prog_AR+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 if test -n "$AR"; then
5905 ac_cv_prog_AR="$AR" # Let the user override the test.
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_AR="${ac_tool_prefix}ar"
5915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 if test -n "$AR"; then
5925 echo "$as_me:$LINENO: result: $AR" >&5
5926 echo "${ECHO_T}$AR" >&6
5928 echo "$as_me:$LINENO: result: no" >&5
5929 echo "${ECHO_T}no" >&6
5933 if test -z "$ac_cv_prog_AR"; then
5935 # Extract the first word of "ar", so it can be a program name with args.
5936 set dummy ar; ac_word=$2
5937 echo "$as_me:$LINENO: checking for $ac_word" >&5
5938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5939 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 if test -n "$ac_ct_AR"; then
5943 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5952 ac_cv_prog_ac_ct_AR="ar"
5953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5959 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5962 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5963 if test -n "$ac_ct_AR"; then
5964 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5965 echo "${ECHO_T}$ac_ct_AR" >&6
5967 echo "$as_me:$LINENO: result: no" >&5
5968 echo "${ECHO_T}no" >&6
5976 if test -n "$ac_tool_prefix"; then
5977 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5978 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5979 echo "$as_me:$LINENO: checking for $ac_word" >&5
5980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5981 if test "${ac_cv_prog_RANLIB+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 if test -n "$RANLIB"; then
5985 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5994 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 RANLIB=$ac_cv_prog_RANLIB
6004 if test -n "$RANLIB"; then
6005 echo "$as_me:$LINENO: result: $RANLIB" >&5
6006 echo "${ECHO_T}$RANLIB" >&6
6008 echo "$as_me:$LINENO: result: no" >&5
6009 echo "${ECHO_T}no" >&6
6013 if test -z "$ac_cv_prog_RANLIB"; then
6014 ac_ct_RANLIB=$RANLIB
6015 # Extract the first word of "ranlib", so it can be a program name with args.
6016 set dummy ranlib; ac_word=$2
6017 echo "$as_me:$LINENO: checking for $ac_word" >&5
6018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6019 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 if test -n "$ac_ct_RANLIB"; then
6023 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6032 ac_cv_prog_ac_ct_RANLIB="ranlib"
6033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6042 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6043 if test -n "$ac_ct_RANLIB"; then
6044 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6045 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6047 echo "$as_me:$LINENO: result: no" >&5
6048 echo "${ECHO_T}no" >&6
6051 RANLIB=$ac_ct_RANLIB
6053 RANLIB="$ac_cv_prog_RANLIB"
6056 if test -n "$ac_tool_prefix"; then
6057 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6058 set dummy ${ac_tool_prefix}strip; ac_word=$2
6059 echo "$as_me:$LINENO: checking for $ac_word" >&5
6060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6061 if test "${ac_cv_prog_STRIP+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 if test -n "$STRIP"; then
6065 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 test -z "$as_dir" && as_dir=.
6072 for ac_exec_ext in '' $ac_executable_extensions; do
6073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6074 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 STRIP=$ac_cv_prog_STRIP
6084 if test -n "$STRIP"; then
6085 echo "$as_me:$LINENO: result: $STRIP" >&5
6086 echo "${ECHO_T}$STRIP" >&6
6088 echo "$as_me:$LINENO: result: no" >&5
6089 echo "${ECHO_T}no" >&6
6093 if test -z "$ac_cv_prog_STRIP"; then
6095 # Extract the first word of "strip", so it can be a program name with args.
6096 set dummy strip; ac_word=$2
6097 echo "$as_me:$LINENO: checking for $ac_word" >&5
6098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6099 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 if test -n "$ac_ct_STRIP"; then
6103 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6112 ac_cv_prog_ac_ct_STRIP="strip"
6113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6119 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6122 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6123 if test -n "$ac_ct_STRIP"; then
6124 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6125 echo "${ECHO_T}$ac_ct_STRIP" >&6
6127 echo "$as_me:$LINENO: result: no" >&5
6128 echo "${ECHO_T}no" >&6
6133 STRIP="$ac_cv_prog_STRIP"
6138 old_CFLAGS="$CFLAGS"
6140 # Set sane defaults for various variables
6141 test -z "$AR" && AR=ar
6142 test -z "$AR_FLAGS" && AR_FLAGS=cru
6143 test -z "$AS" && AS=as
6144 test -z "$CC" && CC=cc
6145 test -z "$LTCC" && LTCC=$CC
6146 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6147 test -z "$DLLTOOL" && DLLTOOL=dlltool
6148 test -z "$LD" && LD=ld
6149 test -z "$LN_S" && LN_S="ln -s"
6150 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6151 test -z "$NM" && NM=nm
6152 test -z "$SED" && SED=sed
6153 test -z "$OBJDUMP" && OBJDUMP=objdump
6154 test -z "$RANLIB" && RANLIB=:
6155 test -z "$STRIP" && STRIP=:
6156 test -z "$ac_objext" && ac_objext=o
6158 # Determine commands to create old-style static archives.
6159 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6160 old_postinstall_cmds='chmod 644 $oldlib'
6161 old_postuninstall_cmds=
6163 if test -n "$RANLIB"; then
6166 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6169 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6172 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6175 for cc_temp in $compiler""; do
6177 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6178 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6183 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6186 # Only perform the check for file, if the check method requires it
6187 case $deplibs_check_method in
6189 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6190 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6191 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6192 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6200 lt_save_MAGIC_CMD="$MAGIC_CMD"
6201 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6202 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6203 for ac_dir in $ac_dummy; do
6205 test -z "$ac_dir" && ac_dir=.
6206 if test -f $ac_dir/${ac_tool_prefix}file; then
6207 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6208 if test -n "$file_magic_test_file"; then
6209 case $deplibs_check_method in
6211 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6213 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6214 $EGREP "$file_magic_regex" > /dev/null; then
6219 *** Warning: the command libtool uses to detect shared libraries,
6220 *** $file_magic_cmd, produces output that libtool cannot recognize.
6221 *** The result is that libtool may fail to recognize shared libraries
6222 *** as such. This will affect the creation of libtool libraries that
6223 *** depend on shared libraries, but programs linked with such libtool
6224 *** libraries will work regardless of this problem. Nevertheless, you
6225 *** may want to report the problem to your system manager and/or to
6226 *** bug-libtool@gnu.org
6236 MAGIC_CMD="$lt_save_MAGIC_CMD"
6241 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6242 if test -n "$MAGIC_CMD"; then
6243 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6244 echo "${ECHO_T}$MAGIC_CMD" >&6
6246 echo "$as_me:$LINENO: result: no" >&5
6247 echo "${ECHO_T}no" >&6
6250 if test -z "$lt_cv_path_MAGIC_CMD"; then
6251 if test -n "$ac_tool_prefix"; then
6252 echo "$as_me:$LINENO: checking for file" >&5
6253 echo $ECHO_N "checking for file... $ECHO_C" >&6
6254 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6262 lt_save_MAGIC_CMD="$MAGIC_CMD"
6263 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6264 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6265 for ac_dir in $ac_dummy; do
6267 test -z "$ac_dir" && ac_dir=.
6268 if test -f $ac_dir/file; then
6269 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6270 if test -n "$file_magic_test_file"; then
6271 case $deplibs_check_method in
6273 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6274 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6275 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6276 $EGREP "$file_magic_regex" > /dev/null; then
6281 *** Warning: the command libtool uses to detect shared libraries,
6282 *** $file_magic_cmd, produces output that libtool cannot recognize.
6283 *** The result is that libtool may fail to recognize shared libraries
6284 *** as such. This will affect the creation of libtool libraries that
6285 *** depend on shared libraries, but programs linked with such libtool
6286 *** libraries will work regardless of this problem. Nevertheless, you
6287 *** may want to report the problem to your system manager and/or to
6288 *** bug-libtool@gnu.org
6298 MAGIC_CMD="$lt_save_MAGIC_CMD"
6303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6304 if test -n "$MAGIC_CMD"; then
6305 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6306 echo "${ECHO_T}$MAGIC_CMD" >&6
6308 echo "$as_me:$LINENO: result: no" >&5
6309 echo "${ECHO_T}no" >&6
6324 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6325 if test "${enable_libtool_lock+set}" = set; then
6326 enableval="$enable_libtool_lock"
6329 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6332 # Check whether --with-pic or --without-pic was given.
6333 if test "${with_pic+set}" = set; then
6339 test -z "$pic_mode" && pic_mode=default
6341 # Use C for the default configuration in the libtool script
6345 ac_cpp='$CPP $CPPFLAGS'
6346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6351 # Source file extension for C test sources.
6354 # Object file extension for compiled C test sources.
6358 # Code to be used in simple compile tests
6359 lt_simple_compile_test_code="int some_variable = 0;\n"
6361 # Code to be used in simple link tests
6362 lt_simple_link_test_code='int main(){return(0);}\n'
6365 # If no C compiler was specified, use CC.
6368 # If no C compiler flags were specified, use CFLAGS.
6369 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6371 # Allow CC to be a program name with arguments.
6375 # save warnings/boilerplate of simple test code
6376 ac_outfile=conftest.$ac_objext
6377 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6378 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6379 _lt_compiler_boilerplate=`cat conftest.err`
6382 ac_outfile=conftest.$ac_objext
6383 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6384 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6385 _lt_linker_boilerplate=`cat conftest.err`
6390 ## There is no encapsulation within the following macros, do not change
6391 ## the running order or otherwise move them around unless you know exactly
6392 ## what you are doing...
6394 lt_prog_compiler_no_builtin_flag=
6396 if test "$GCC" = yes; then
6397 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6400 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6401 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6402 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 lt_cv_prog_compiler_rtti_exceptions=no
6406 ac_outfile=conftest.$ac_objext
6407 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6408 lt_compiler_flag="-fno-rtti -fno-exceptions"
6409 # Insert the option either (1) after the last *FLAGS variable, or
6410 # (2) before a word containing "conftest.", or (3) at the end.
6411 # Note that $ac_compile itself does not contain backslashes and begins
6412 # with a dollar sign (not a hyphen), so the echo should work correctly.
6413 # The option is referenced via a variable to avoid confusing sed.
6414 lt_compile=`echo "$ac_compile" | $SED \
6415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6417 -e 's:$: $lt_compiler_flag:'`
6418 (eval echo "\"\$as_me:6418: $lt_compile\"" >&5)
6419 (eval "$lt_compile" 2>conftest.err)
6421 cat conftest.err >&5
6422 echo "$as_me:6422: \$? = $ac_status" >&5
6423 if (exit $ac_status) && test -s "$ac_outfile"; then
6424 # The compiler can only warn and ignore the option if not recognized
6425 # So say no if there are warnings other than the usual output.
6426 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6428 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6429 lt_cv_prog_compiler_rtti_exceptions=yes
6435 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6436 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6438 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6439 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6446 lt_prog_compiler_wl=
6447 lt_prog_compiler_pic=
6448 lt_prog_compiler_static=
6450 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6451 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6453 if test "$GCC" = yes; then
6454 lt_prog_compiler_wl='-Wl,'
6455 lt_prog_compiler_static='-static'
6459 # All AIX code is PIC.
6460 if test "$host_cpu" = ia64; then
6461 # AIX 5 now supports IA64 processor
6462 lt_prog_compiler_static='-Bstatic'
6467 # FIXME: we need at least 68020 code to build shared libraries, but
6468 # adding the `-m68020' flag to GCC prevents building anything better,
6470 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6473 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6474 # PIC is the default for these OSes.
6477 mingw* | pw32* | os2*)
6478 # This hack is so that the source file can tell whether it is being
6479 # built for inclusion in a dll (and should export symbols for example).
6480 lt_prog_compiler_pic='-DDLL_EXPORT'
6483 darwin* | rhapsody*)
6484 # PIC is the default on this platform
6485 # Common symbols not allowed in MH_DYLIB files
6486 lt_prog_compiler_pic='-fno-common'
6490 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6491 # Instead, we relocate shared libraries at runtime.
6495 # Just because we use GCC doesn't mean we suddenly get shared libraries
6496 # on systems that don't support them.
6497 lt_prog_compiler_can_build_shared=no
6502 if test -d /usr/nec; then
6503 lt_prog_compiler_pic=-Kconform_pic
6508 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6515 lt_prog_compiler_pic='-fPIC'
6521 lt_prog_compiler_pic='-fPIC'
6525 # PORTME Check for flag to pass linker flags through the system compiler.
6528 lt_prog_compiler_wl='-Wl,'
6529 if test "$host_cpu" = ia64; then
6530 # AIX 5 now supports IA64 processor
6531 lt_prog_compiler_static='-Bstatic'
6533 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6537 # PIC is the default on this platform
6538 # Common symbols not allowed in MH_DYLIB files
6539 case $cc_basename in
6541 lt_prog_compiler_pic='-qnocommon'
6542 lt_prog_compiler_wl='-Wl,'
6547 mingw* | pw32* | os2*)
6548 # This hack is so that the source file can tell whether it is being
6549 # built for inclusion in a dll (and should export symbols for example).
6550 lt_prog_compiler_pic='-DDLL_EXPORT'
6553 hpux9* | hpux10* | hpux11*)
6554 lt_prog_compiler_wl='-Wl,'
6555 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6562 lt_prog_compiler_pic='+Z'
6565 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6566 lt_prog_compiler_static='${wl}-a ${wl}archive'
6569 irix5* | irix6* | nonstopux*)
6570 lt_prog_compiler_wl='-Wl,'
6571 # PIC (with -KPIC) is the default.
6572 lt_prog_compiler_static='-non_shared'
6576 lt_prog_compiler_pic='-KPIC'
6577 lt_prog_compiler_static='-Bstatic'
6581 case $cc_basename in
6583 lt_prog_compiler_wl='-Wl,'
6584 lt_prog_compiler_pic='-KPIC'
6585 lt_prog_compiler_static='-static'
6587 pgcc* | pgf77* | pgf90* | pgf95*)
6588 # Portland Group compilers (*not* the Pentium gcc compiler,
6589 # which looks to be a dead project)
6590 lt_prog_compiler_wl='-Wl,'
6591 lt_prog_compiler_pic='-fpic'
6592 lt_prog_compiler_static='-Bstatic'
6595 lt_prog_compiler_wl='-Wl,'
6596 # All Alpha code is PIC.
6597 lt_prog_compiler_static='-non_shared'
6602 osf3* | osf4* | osf5*)
6603 lt_prog_compiler_wl='-Wl,'
6604 # All OSF/1 code is PIC.
6605 lt_prog_compiler_static='-non_shared'
6609 lt_prog_compiler_pic='-KPIC'
6610 lt_prog_compiler_static='-Bstatic'
6611 case $cc_basename in
6613 lt_prog_compiler_wl='-Qoption ld ';;
6615 lt_prog_compiler_wl='-Wl,';;
6620 lt_prog_compiler_wl='-Qoption ld '
6621 lt_prog_compiler_pic='-PIC'
6622 lt_prog_compiler_static='-Bstatic'
6625 sysv4 | sysv4.2uw2* | sysv4.3*)
6626 lt_prog_compiler_wl='-Wl,'
6627 lt_prog_compiler_pic='-KPIC'
6628 lt_prog_compiler_static='-Bstatic'
6632 if test -d /usr/nec ;then
6633 lt_prog_compiler_pic='-Kconform_pic'
6634 lt_prog_compiler_static='-Bstatic'
6638 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6639 lt_prog_compiler_wl='-Wl,'
6640 lt_prog_compiler_pic='-KPIC'
6641 lt_prog_compiler_static='-Bstatic'
6645 lt_prog_compiler_wl='-Wl,'
6646 lt_prog_compiler_can_build_shared=no
6650 lt_prog_compiler_pic='-pic'
6651 lt_prog_compiler_static='-Bstatic'
6655 lt_prog_compiler_can_build_shared=no
6660 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6661 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6664 # Check to make sure the PIC flag actually works.
6666 if test -n "$lt_prog_compiler_pic"; then
6668 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6669 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6670 if test "${lt_prog_compiler_pic_works+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 lt_prog_compiler_pic_works=no
6674 ac_outfile=conftest.$ac_objext
6675 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6676 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6677 # Insert the option either (1) after the last *FLAGS variable, or
6678 # (2) before a word containing "conftest.", or (3) at the end.
6679 # Note that $ac_compile itself does not contain backslashes and begins
6680 # with a dollar sign (not a hyphen), so the echo should work correctly.
6681 # The option is referenced via a variable to avoid confusing sed.
6682 lt_compile=`echo "$ac_compile" | $SED \
6683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6685 -e 's:$: $lt_compiler_flag:'`
6686 (eval echo "\"\$as_me:6686: $lt_compile\"" >&5)
6687 (eval "$lt_compile" 2>conftest.err)
6689 cat conftest.err >&5
6690 echo "$as_me:6690: \$? = $ac_status" >&5
6691 if (exit $ac_status) && test -s "$ac_outfile"; then
6692 # The compiler can only warn and ignore the option if not recognized
6693 # So say no if there are warnings other than the usual output.
6694 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6696 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6697 lt_prog_compiler_pic_works=yes
6703 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6704 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6706 if test x"$lt_prog_compiler_pic_works" = xyes; then
6707 case $lt_prog_compiler_pic in
6709 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6712 lt_prog_compiler_pic=
6713 lt_prog_compiler_can_build_shared=no
6718 # For platforms which do not support PIC, -DPIC is meaningless:
6720 lt_prog_compiler_pic=
6723 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6728 # Check to make sure the static flag actually works.
6730 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6731 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6732 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6733 if test "${lt_prog_compiler_static_works+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 lt_prog_compiler_static_works=no
6737 save_LDFLAGS="$LDFLAGS"
6738 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6739 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6740 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6741 # The linker can only warn and ignore the option if not recognized
6742 # So say no if there are warnings
6743 if test -s conftest.err; then
6744 # Append any errors to the config.log.
6745 cat conftest.err 1>&5
6746 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6748 if diff conftest.exp conftest.er2 >/dev/null; then
6749 lt_prog_compiler_static_works=yes
6752 lt_prog_compiler_static_works=yes
6756 LDFLAGS="$save_LDFLAGS"
6759 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6760 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6762 if test x"$lt_prog_compiler_static_works" = xyes; then
6765 lt_prog_compiler_static=
6769 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6770 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6771 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 lt_cv_prog_compiler_c_o=no
6775 $rm -r conftest 2>/dev/null
6779 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6781 lt_compiler_flag="-o out/conftest2.$ac_objext"
6782 # Insert the option either (1) after the last *FLAGS variable, or
6783 # (2) before a word containing "conftest.", or (3) at the end.
6784 # Note that $ac_compile itself does not contain backslashes and begins
6785 # with a dollar sign (not a hyphen), so the echo should work correctly.
6786 lt_compile=`echo "$ac_compile" | $SED \
6787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6789 -e 's:$: $lt_compiler_flag:'`
6790 (eval echo "\"\$as_me:6790: $lt_compile\"" >&5)
6791 (eval "$lt_compile" 2>out/conftest.err)
6793 cat out/conftest.err >&5
6794 echo "$as_me:6794: \$? = $ac_status" >&5
6795 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6797 # The compiler can only warn and ignore the option if not recognized
6798 # So say no if there are warnings
6799 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6800 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6801 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6802 lt_cv_prog_compiler_c_o=yes
6807 # SGI C++ compiler will create directory out/ii_files/ for
6808 # template instantiation
6809 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6810 $rm out/* && rmdir out
6816 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6817 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6820 hard_links="nottested"
6821 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6822 # do not overwrite the value of need_locks provided by the user
6823 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6824 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6827 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6829 ln conftest.a conftest.b 2>&5 || hard_links=no
6830 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6831 echo "$as_me:$LINENO: result: $hard_links" >&5
6832 echo "${ECHO_T}$hard_links" >&6
6833 if test "$hard_links" = no; then
6834 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6835 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6842 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6843 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6846 allow_undefined_flag=
6847 enable_shared_with_static_runtimes=no
6849 archive_expsym_cmds=
6850 old_archive_From_new_cmds=
6851 old_archive_from_expsyms_cmds=
6852 export_dynamic_flag_spec=
6853 whole_archive_flag_spec=
6854 thread_safe_flag_spec=
6855 hardcode_libdir_flag_spec=
6856 hardcode_libdir_flag_spec_ld=
6857 hardcode_libdir_separator=
6860 hardcode_shlibpath_var=unsupported
6861 link_all_deplibs=unknown
6862 hardcode_automatic=no
6865 always_export_symbols=no
6866 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6867 # include_expsyms should be a list of space-separated symbols to be *always*
6868 # included in the symbol list
6870 # exclude_expsyms can be an extended regexp of symbols to exclude
6871 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6872 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6873 # as well as any symbol that contains `d'.
6874 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6875 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6876 # platforms (ab)use it in PIC code, but their linkers get confused if
6877 # the symbol is explicitly referenced. Since portable code cannot
6878 # rely on this symbol name, it's probably fine to never include it in
6879 # preloaded symbol tables.
6880 extract_expsyms_cmds=
6881 # Just being paranoid about ensuring that cc_basename is set.
6882 for cc_temp in $compiler""; do
6884 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6885 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6890 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6893 cygwin* | mingw* | pw32*)
6894 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6895 # When not using gcc, we currently assume that we are using
6896 # Microsoft Visual C++.
6897 if test "$GCC" != yes; then
6902 # we just hope/assume this is gcc and not c89 (= MSVC++)
6911 if test "$with_gnu_ld" = yes; then
6912 # If archive_cmds runs LD, not CC, wlarc should be empty
6915 # Set some defaults for GNU ld with shared library support. These
6916 # are reset later if shared libraries are not supported. Putting them
6917 # here allows them to be overridden if necessary.
6918 runpath_var=LD_RUN_PATH
6919 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6920 export_dynamic_flag_spec='${wl}--export-dynamic'
6921 # ancient GNU ld didn't support --whole-archive et. al.
6922 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6923 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6925 whole_archive_flag_spec=
6927 supports_anon_versioning=no
6928 case `$LD -v 2>/dev/null` in
6929 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6930 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6931 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6932 *\ 2.11.*) ;; # other 2.11 versions
6933 *) supports_anon_versioning=yes ;;
6936 # See if GNU ld supports shared libraries.
6938 aix3* | aix4* | aix5*)
6939 # On AIX/PPC, the GNU linker is very broken
6940 if test "$host_cpu" != ia64; then
6944 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6945 *** to be unable to reliably create shared libraries on AIX.
6946 *** Therefore, libtool is disabling shared libraries support. If you
6947 *** really care for shared libraries, you may want to modify your PATH
6948 *** so that a non-GNU linker is found, and then restart.
6955 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)'
6956 hardcode_libdir_flag_spec='-L$libdir'
6957 hardcode_minus_L=yes
6959 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6960 # that the semantics of dynamic libraries on AmigaOS, at least up
6961 # to version 4, is to share data among multiple programs linked
6962 # with the same dynamic library. Since this doesn't match the
6963 # behavior of shared libraries on other platforms, we can't use
6969 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6970 allow_undefined_flag=unsupported
6971 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6972 # support --undefined. This deserves some investigation. FIXME
6973 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6979 cygwin* | mingw* | pw32*)
6980 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6981 # as there is no search path for DLLs.
6982 hardcode_libdir_flag_spec='-L$libdir'
6983 allow_undefined_flag=unsupported
6984 always_export_symbols=no
6985 enable_shared_with_static_runtimes=yes
6986 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6988 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6990 # If the export-symbols file already is a .def file (1st line
6991 # is EXPORTS), use it as is; otherwise, prepend...
6992 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6993 cp $export_symbols $output_objdir/$soname.def;
6995 echo EXPORTS > $output_objdir/$soname.def;
6996 cat $export_symbols >> $output_objdir/$soname.def;
6998 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7006 hardcode_shlibpath_var=no
7007 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7008 export_dynamic_flag_spec='${wl}-E'
7009 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7010 # Instead, shared libraries are loaded at an image base (0x10000000 by
7011 # default) and relocated if they conflict, which is a slow very memory
7012 # consuming and fragmenting process. To avoid this, we pick a random,
7013 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7014 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7015 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7016 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'
7020 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7022 case $cc_basename,$host_cpu in
7023 pgcc*) # Portland Group C compiler
7024 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7025 tmp_addflag=' $pic_flag'
7027 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7028 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7029 tmp_addflag=' $pic_flag -Mnomain' ;;
7030 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7031 tmp_addflag=' -i_dynamic' ;;
7032 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7033 tmp_addflag=' -i_dynamic -nofor_main' ;;
7034 ifc* | ifort*) # Intel Fortran compiler
7035 tmp_addflag=' -nofor_main' ;;
7037 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7039 if test $supports_anon_versioning = yes; then
7040 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7041 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7042 $echo "local: *; };" >> $output_objdir/$libname.ver~
7043 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7051 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7052 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7056 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7061 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7065 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7066 *** create shared libraries on Solaris systems. Therefore, libtool
7067 *** is disabling shared libraries support. We urge you to upgrade GNU
7068 *** binutils to release 2.9.1 or newer. Another option is to modify
7069 *** your PATH or compiler configuration so that the native linker is
7070 *** used, and then restart.
7073 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7075 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7082 case `$LD -v 2>&1` in
7083 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7087 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7088 *** reliably create shared libraries on SCO systems. Therefore, libtool
7089 *** is disabling shared libraries support. We urge you to upgrade GNU
7090 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7091 *** your PATH or compiler configuration so that the native linker is
7092 *** used, and then restart.
7097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7098 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7099 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7100 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7109 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7112 hardcode_shlibpath_var=no
7116 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7118 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7125 if test "$ld_shlibs" = no; then
7127 hardcode_libdir_flag_spec=
7128 export_dynamic_flag_spec=
7129 whole_archive_flag_spec=
7132 # PORTME fill in a description of your system's linker (not GNU ld)
7135 allow_undefined_flag=unsupported
7136 always_export_symbols=yes
7137 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'
7138 # Note: this linker hardcodes the directories in LIBPATH if there
7139 # are no directories specified by -L.
7140 hardcode_minus_L=yes
7141 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7142 # Neither direct hardcoding nor static linking is supported with a
7144 hardcode_direct=unsupported
7149 if test "$host_cpu" = ia64; then
7150 # On IA64, the linker does run time linking by default, so we don't
7151 # have to do anything special.
7152 aix_use_runtimelinking=no
7153 exp_sym_flag='-Bexport'
7156 # If we're using GNU nm, then we don't want the "-C" option.
7157 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7158 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7159 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7161 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'
7163 aix_use_runtimelinking=no
7165 # Test if we are trying to use run time linking or normal
7166 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7167 # need to do runtime linking.
7168 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7169 for ld_flag in $LDFLAGS; do
7170 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7171 aix_use_runtimelinking=yes
7178 exp_sym_flag='-bexport'
7179 no_entry_flag='-bnoentry'
7182 # When large executables or shared objects are built, AIX ld can
7183 # have problems creating the table of contents. If linking a library
7184 # or program results in "error TOC overflow" add -mminimal-toc to
7185 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7186 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7190 hardcode_libdir_separator=':'
7191 link_all_deplibs=yes
7193 if test "$GCC" = yes; then
7194 case $host_os in aix4.[012]|aix4.[012].*)
7195 # We only want to do this on AIX 4.2 and lower, the check
7196 # below for broken collect2 doesn't work under 4.3+
7197 collect2name=`${CC} -print-prog-name=collect2`
7198 if test -f "$collect2name" && \
7199 strings "$collect2name" | grep resolve_lib_name >/dev/null
7201 # We have reworked collect2
7204 # We have old collect2
7205 hardcode_direct=unsupported
7206 # It fails to find uninstalled libraries when the uninstalled
7207 # path is not listed in the libpath. Setting hardcode_minus_L
7208 # to unsupported forces relinking
7209 hardcode_minus_L=yes
7210 hardcode_libdir_flag_spec='-L$libdir'
7211 hardcode_libdir_separator=
7215 shared_flag='-shared'
7216 if test "$aix_use_runtimelinking" = yes; then
7217 shared_flag="$shared_flag "'${wl}-G'
7221 if test "$host_cpu" = ia64; then
7222 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7223 # chokes on -Wl,-G. The following line is correct:
7226 if test "$aix_use_runtimelinking" = yes; then
7227 shared_flag='${wl}-G'
7229 shared_flag='${wl}-bM:SRE'
7234 # It seems that -bexpall does not export symbols beginning with
7235 # underscore (_), so it is better to generate a list of symbols to export.
7236 always_export_symbols=yes
7237 if test "$aix_use_runtimelinking" = yes; then
7238 # Warning - without using the other runtime loading flags (-brtl),
7239 # -berok will link without error, but may produce a broken library.
7240 allow_undefined_flag='-berok'
7241 # Determine the default libpath from the value encoded in an empty executable.
7242 cat >conftest.$ac_ext <<_ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7257 rm -f conftest.$ac_objext conftest$ac_exeext
7258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7259 (eval $ac_link) 2>conftest.er1
7261 grep -v '^ *+' conftest.er1 >conftest.err
7263 cat conftest.err >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } &&
7266 { ac_try='test -z "$ac_c_werror_flag"
7267 || test ! -s conftest.err'
7268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); }; } &&
7273 { ac_try='test -s conftest$ac_exeext'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; }; then
7280 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7282 # Check for a 64-bit object if we didn't find anything.
7283 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7286 echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7290 rm -f conftest.err conftest.$ac_objext \
7291 conftest$ac_exeext conftest.$ac_ext
7292 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7294 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7295 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7297 if test "$host_cpu" = ia64; then
7298 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7299 allow_undefined_flag="-z nodefs"
7300 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"
7302 # Determine the default libpath from the value encoded in an empty executable.
7303 cat >conftest.$ac_ext <<_ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7318 rm -f conftest.$ac_objext conftest$ac_exeext
7319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7320 (eval $ac_link) 2>conftest.er1
7322 grep -v '^ *+' conftest.er1 >conftest.err
7324 cat conftest.err >&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } &&
7327 { ac_try='test -z "$ac_c_werror_flag"
7328 || test ! -s conftest.err'
7329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; } &&
7334 { ac_try='test -s conftest$ac_exeext'
7335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; }; then
7341 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7343 # Check for a 64-bit object if we didn't find anything.
7344 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7347 echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7351 rm -f conftest.err conftest.$ac_objext \
7352 conftest$ac_exeext conftest.$ac_ext
7353 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7355 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7356 # Warning - without using the other run time loading flags,
7357 # -berok will link without error, but may produce a broken library.
7358 no_undefined_flag=' ${wl}-bernotok'
7359 allow_undefined_flag=' ${wl}-berok'
7360 # Exported symbols can be pulled into shared objects from archives
7361 whole_archive_flag_spec='$convenience'
7362 archive_cmds_need_lc=yes
7363 # This is similar to how AIX traditionally builds its shared libraries.
7364 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'
7370 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)'
7371 hardcode_libdir_flag_spec='-L$libdir'
7372 hardcode_minus_L=yes
7373 # see comment about different semantics on the GNU ld section
7378 export_dynamic_flag_spec=-rdynamic
7381 cygwin* | mingw* | pw32*)
7382 # When not using gcc, we currently assume that we are using
7383 # Microsoft Visual C++.
7384 # hardcode_libdir_flag_spec is actually meaningless, as there is
7385 # no search path for DLLs.
7386 hardcode_libdir_flag_spec=' '
7387 allow_undefined_flag=unsupported
7388 # Tell ltmain to make .lib files, not .a files.
7390 # Tell ltmain to make .dll files, not .so files.
7392 # FIXME: Setting linknames here is a bad hack.
7393 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7394 # The linker will automatically build a .lib file if we build a DLL.
7395 old_archive_From_new_cmds='true'
7396 # FIXME: Should let the user specify the lib program.
7397 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7398 fix_srcfile_path='`cygpath -w "$srcfile"`'
7399 enable_shared_with_static_runtimes=yes
7402 darwin* | rhapsody*)
7404 rhapsody* | darwin1.[012])
7405 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7408 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7409 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7411 case ${MACOSX_DEPLOYMENT_TARGET} in
7413 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7416 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7422 archive_cmds_need_lc=no
7424 hardcode_automatic=yes
7425 hardcode_shlibpath_var=unsupported
7426 whole_archive_flag_spec=''
7427 link_all_deplibs=yes
7428 if test "$GCC" = yes ; then
7429 output_verbose_link_cmd='echo'
7430 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7431 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7432 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7433 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7434 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7436 case $cc_basename in
7438 output_verbose_link_cmd='echo'
7439 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7440 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7441 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7442 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7443 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7454 hardcode_libdir_flag_spec='-L$libdir'
7455 hardcode_shlibpath_var=no
7462 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7463 # support. Future versions do this automatically, but an explicit c++rt0.o
7464 # does not break anything, and helps significantly (at the cost of a little
7467 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7468 hardcode_libdir_flag_spec='-R$libdir'
7470 hardcode_shlibpath_var=no
7473 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7475 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7477 hardcode_minus_L=yes
7478 hardcode_shlibpath_var=no
7481 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7482 freebsd* | kfreebsd*-gnu | dragonfly*)
7483 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7484 hardcode_libdir_flag_spec='-R$libdir'
7486 hardcode_shlibpath_var=no
7490 if test "$GCC" = yes; then
7491 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7493 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'
7495 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7496 hardcode_libdir_separator=:
7499 # hardcode_minus_L: Not really in the search PATH,
7500 # but as the default location of the library.
7501 hardcode_minus_L=yes
7502 export_dynamic_flag_spec='${wl}-E'
7506 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7507 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7509 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7511 if test "$with_gnu_ld" = no; then
7512 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7513 hardcode_libdir_separator=:
7516 export_dynamic_flag_spec='${wl}-E'
7518 # hardcode_minus_L: Not really in the search PATH,
7519 # but as the default location of the library.
7520 hardcode_minus_L=yes
7525 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7528 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7531 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7534 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7540 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7543 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7546 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7550 if test "$with_gnu_ld" = no; then
7551 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7552 hardcode_libdir_separator=:
7556 hardcode_libdir_flag_spec_ld='+b $libdir'
7558 hardcode_shlibpath_var=no
7562 export_dynamic_flag_spec='${wl}-E'
7564 # hardcode_minus_L: Not really in the search PATH,
7565 # but as the default location of the library.
7566 hardcode_minus_L=yes
7572 irix5* | irix6* | nonstopux*)
7573 if test "$GCC" = yes; then
7574 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7576 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7577 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7580 hardcode_libdir_separator=:
7581 link_all_deplibs=yes
7585 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7588 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7590 hardcode_libdir_flag_spec='-R$libdir'
7592 hardcode_shlibpath_var=no
7596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7599 hardcode_libdir_separator=:
7600 hardcode_shlibpath_var=no
7605 hardcode_shlibpath_var=no
7606 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7607 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7608 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7609 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7610 export_dynamic_flag_spec='${wl}-E'
7613 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7615 hardcode_libdir_flag_spec='-R$libdir'
7618 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7619 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7626 hardcode_libdir_flag_spec='-L$libdir'
7627 hardcode_minus_L=yes
7628 allow_undefined_flag=unsupported
7629 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'
7630 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7634 if test "$GCC" = yes; then
7635 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7636 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7638 allow_undefined_flag=' -expect_unresolved \*'
7639 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7642 hardcode_libdir_separator=:
7645 osf4* | osf5*) # as osf3* with the addition of -msym flag
7646 if test "$GCC" = yes; then
7647 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7648 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7651 allow_undefined_flag=' -expect_unresolved \*'
7652 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7653 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7654 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7656 # Both c and cxx compiler support -rpath directly
7657 hardcode_libdir_flag_spec='-rpath $libdir'
7659 hardcode_libdir_separator=:
7663 no_undefined_flag=' -z text'
7664 if test "$GCC" = yes; then
7666 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7667 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7668 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7671 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7672 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7673 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7675 hardcode_libdir_flag_spec='-R$libdir'
7676 hardcode_shlibpath_var=no
7678 solaris2.[0-5] | solaris2.[0-5].*) ;;
7680 # The compiler driver will combine linker options so we
7681 # cannot just pass the convience library names through
7682 # without $wl, iff we do not link with $LD.
7683 # Luckily, gcc supports the same syntax we need for Sun Studio.
7684 # Supported since Solaris 2.6 (maybe 2.5.1?)
7687 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7689 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7692 link_all_deplibs=yes
7696 if test "x$host_vendor" = xsequent; then
7697 # Use $CC to link under sequent, because it throws in some extra .o
7698 # files that make .init and .fini sections work.
7699 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7701 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7703 hardcode_libdir_flag_spec='-L$libdir'
7705 hardcode_minus_L=yes
7706 hardcode_shlibpath_var=no
7710 case $host_vendor in
7712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7713 hardcode_direct=yes # is this really true???
7716 ## LD is ld it makes a PLAMLIB
7717 ## CC just makes a GrossModule.
7718 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7719 reload_cmds='$CC -r -o $output$reload_objs'
7723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7724 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7727 runpath_var='LD_RUN_PATH'
7728 hardcode_shlibpath_var=no
7732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7733 hardcode_shlibpath_var=no
7734 export_dynamic_flag_spec='-Bexport'
7738 if test -d /usr/nec; then
7739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7740 hardcode_shlibpath_var=no
7741 runpath_var=LD_RUN_PATH
7742 hardcode_runpath_var=yes
7747 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7748 no_undefined_flag='${wl}-z,text'
7749 archive_cmds_need_lc=no
7750 hardcode_shlibpath_var=no
7751 runpath_var='LD_RUN_PATH'
7753 if test "$GCC" = yes; then
7754 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7755 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7757 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7758 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7762 sysv5* | sco3.2v5* | sco5v6*)
7763 # Note: We can NOT use -z defs as we might desire, because we do not
7764 # link with -lc, and that would cause any symbols used from libc to
7765 # always be unresolved, which means just about no library would
7766 # ever link correctly. If we're not using GNU ld we use -z text
7767 # though, which does catch some bad symbols but isn't as heavy-handed
7769 no_undefined_flag='${wl}-z,text'
7770 allow_undefined_flag='${wl}-z,nodefs'
7771 archive_cmds_need_lc=no
7772 hardcode_shlibpath_var=no
7773 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7774 hardcode_libdir_separator=':'
7775 link_all_deplibs=yes
7776 export_dynamic_flag_spec='${wl}-Bexport'
7777 runpath_var='LD_RUN_PATH'
7779 if test "$GCC" = yes; then
7780 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7781 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7783 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7784 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7790 hardcode_libdir_flag_spec='-L$libdir'
7791 hardcode_shlibpath_var=no
7800 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7801 echo "${ECHO_T}$ld_shlibs" >&6
7802 test "$ld_shlibs" = no && can_build_shared=no
7805 # Do we need to explicitly link libc?
7807 case "x$archive_cmds_need_lc" in
7809 # Assume -lc should be added
7810 archive_cmds_need_lc=yes
7812 if test "$enable_shared" = yes && test "$GCC" = yes; then
7813 case $archive_cmds in
7815 # FIXME: we may have to deal with multi-command sequences.
7818 # Test whether the compiler implicitly links with -lc since on some
7819 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7820 # to ld, don't add -lc before -lgcc.
7821 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7822 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7824 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7827 (eval $ac_compile) 2>&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } 2>conftest.err; then
7833 libobjs=conftest.$ac_objext
7835 wl=$lt_prog_compiler_wl
7836 pic_flag=$lt_prog_compiler_pic
7842 lt_save_allow_undefined_flag=$allow_undefined_flag
7843 allow_undefined_flag=
7844 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7845 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }
7850 archive_cmds_need_lc=no
7852 archive_cmds_need_lc=yes
7854 allow_undefined_flag=$lt_save_allow_undefined_flag
7856 cat conftest.err 1>&5
7859 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7860 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7867 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7868 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7870 libname_spec='lib$name'
7878 shlibpath_overrides_runpath=unknown
7880 dynamic_linker="$host_os ld.so"
7881 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7882 if test "$GCC" = yes; then
7883 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7884 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7885 # if the path contains ";" then we assume it to be the separator
7886 # otherwise default to the standard path separator (i.e. ":") - it is
7887 # assumed that no part of a normal pathname contains ";" but that should
7888 # okay in the real world where ";" in dirpaths is itself problematic.
7889 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7894 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7896 need_lib_prefix=unknown
7897 hardcode_into_libs=no
7899 # when you set need_version to no, make sure it does not cause -set_version
7900 # flags to be left without arguments
7901 need_version=unknown
7906 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7907 shlibpath_var=LIBPATH
7909 # AIX 3 has no versioning support, so we append a major version to the name.
7910 soname_spec='${libname}${release}${shared_ext}$major'
7917 hardcode_into_libs=yes
7918 if test "$host_cpu" = ia64; then
7919 # AIX 5 supports IA64
7920 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7921 shlibpath_var=LD_LIBRARY_PATH
7923 # With GCC up to 2.95.x, collect2 would create an import file
7924 # for dependence libraries. The import file would start with
7925 # the line `#! .'. This would cause the generated library to
7926 # depend on `.', always an invalid library. This was fixed in
7927 # development snapshots of GCC prior to 3.0.
7929 aix4 | aix4.[01] | aix4.[01].*)
7930 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7932 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7939 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7940 # soname into executable. Probably we can add versioning support to
7941 # collect2, so additional links can be useful in future.
7942 if test "$aix_use_runtimelinking" = yes; then
7943 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7944 # instead of lib<name>.a to let people know that these are not
7945 # typical AIX shared libraries.
7946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7948 # We preserve .a as extension for shared libraries through AIX4.2
7949 # and later when we are not doing run time linking.
7950 library_names_spec='${libname}${release}.a $libname.a'
7951 soname_spec='${libname}${release}${shared_ext}$major'
7953 shlibpath_var=LIBPATH
7958 library_names_spec='$libname.ixlibrary $libname.a'
7959 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7960 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
7964 library_names_spec='${libname}${shared_ext}'
7965 dynamic_linker="$host_os ld.so"
7966 shlibpath_var=LIBRARY_PATH
7972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7973 soname_spec='${libname}${release}${shared_ext}$major'
7974 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7975 shlibpath_var=LD_LIBRARY_PATH
7976 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7977 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7978 # the default ld.so.conf also contains /usr/contrib/lib and
7979 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7980 # libtool to hard-code these into programs
7983 cygwin* | mingw* | pw32*)
7984 version_type=windows
7989 case $GCC,$host_os in
7990 yes,cygwin* | yes,mingw* | yes,pw32*)
7991 library_names_spec='$libname.dll.a'
7992 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7993 postinstall_cmds='base_file=`basename \${file}`~
7994 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7995 dldir=$destdir/`dirname \$dlpath`~
7996 test -d \$dldir || mkdir -p \$dldir~
7997 $install_prog $dir/$dlname \$dldir/$dlname~
7998 chmod a+x \$dldir/$dlname'
7999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8000 dlpath=$dir/\$dldll~
8002 shlibpath_overrides_runpath=yes
8006 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8007 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8008 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8011 # MinGW DLLs use traditional 'lib' prefix
8012 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8013 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8014 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8015 # It is most probably a Windows format PATH printed by
8016 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8017 # path with ; separators, and with drive letters. We can handle the
8018 # drive letters (cygwin fileutils understands them), so leave them,
8019 # especially as we might pass files found there to a mingw objdump,
8020 # which wouldn't understand a cygwinified path. Ahh.
8021 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8027 # pw32 DLLs use 'pw' prefix rather than 'lib'
8028 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8034 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8037 dynamic_linker='Win32 ld.exe'
8038 # FIXME: first we should search . and the directory the executable is in
8042 darwin* | rhapsody*)
8043 dynamic_linker="$host_os dyld"
8047 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8048 soname_spec='${libname}${release}${major}$shared_ext'
8049 shlibpath_overrides_runpath=yes
8050 shlibpath_var=DYLD_LIBRARY_PATH
8051 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8052 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8053 if test "$GCC" = yes; then
8054 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8056 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8058 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8066 soname_spec='${libname}${release}${shared_ext}$major'
8067 shlibpath_var=LD_LIBRARY_PATH
8078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8079 soname_spec='${libname}${release}${shared_ext}$major'
8080 shlibpath_var=LD_LIBRARY_PATH
8081 shlibpath_overrides_runpath=no
8082 hardcode_into_libs=yes
8083 dynamic_linker='GNU ld.so'
8086 freebsd* | dragonfly*)
8087 # DragonFly does not have aout. When/if they implement a new
8088 # versioning mechanism, adjust this.
8089 if test -x /usr/bin/objformat; then
8090 objformat=`/usr/bin/objformat`
8093 freebsd[123]*) objformat=aout ;;
8097 version_type=freebsd-$objformat
8098 case $version_type in
8100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8105 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8109 shlibpath_var=LD_LIBRARY_PATH
8112 shlibpath_overrides_runpath=yes
8114 freebsd3.[01]* | freebsdelf3.[01]*)
8115 shlibpath_overrides_runpath=yes
8116 hardcode_into_libs=yes
8118 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8119 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8120 shlibpath_overrides_runpath=no
8121 hardcode_into_libs=yes
8123 freebsd*) # from 4.6 on
8124 shlibpath_overrides_runpath=yes
8125 hardcode_into_libs=yes
8134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8135 soname_spec='${libname}${release}${shared_ext}$major'
8136 shlibpath_var=LD_LIBRARY_PATH
8137 hardcode_into_libs=yes
8140 hpux9* | hpux10* | hpux11*)
8141 # Give a soname corresponding to the major version so that dld.sl refuses to
8142 # link against other versions.
8149 hardcode_into_libs=yes
8150 dynamic_linker="$host_os dld.so"
8151 shlibpath_var=LD_LIBRARY_PATH
8152 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8154 soname_spec='${libname}${release}${shared_ext}$major'
8155 if test "X$HPUX_IA64_MODE" = X32; then
8156 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8158 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8160 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8164 hardcode_into_libs=yes
8165 dynamic_linker="$host_os dld.sl"
8166 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8167 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8169 soname_spec='${libname}${release}${shared_ext}$major'
8170 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8171 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8175 dynamic_linker="$host_os dld.sl"
8176 shlibpath_var=SHLIB_PATH
8177 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8179 soname_spec='${libname}${release}${shared_ext}$major'
8182 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8183 postinstall_cmds='chmod 555 $lib'
8190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8191 soname_spec='${libname}${release}${shared_ext}$major'
8192 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8193 shlibpath_var=LD_LIBRARY_PATH
8194 shlibpath_overrides_runpath=no
8195 hardcode_into_libs=yes
8198 irix5* | irix6* | nonstopux*)
8200 nonstopux*) version_type=nonstopux ;;
8202 if test "$lt_cv_prog_gnu_ld" = yes; then
8210 soname_spec='${libname}${release}${shared_ext}$major'
8211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8213 irix5* | nonstopux*)
8217 case $LD in # libtool.m4 will add one of these switches to LD
8218 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8219 libsuff= shlibsuff= libmagic=32-bit;;
8220 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8221 libsuff=32 shlibsuff=N32 libmagic=N32;;
8222 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8223 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8224 *) libsuff= shlibsuff= libmagic=never-match;;
8228 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8229 shlibpath_overrides_runpath=no
8230 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8231 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8232 hardcode_into_libs=yes
8235 # No shared lib support for Linux oldld, aout, or coff.
8236 linux*oldld* | linux*aout* | linux*coff*)
8240 # This must be Linux ELF.
8245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8246 soname_spec='${libname}${release}${shared_ext}$major'
8247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8248 shlibpath_var=LD_LIBRARY_PATH
8249 shlibpath_overrides_runpath=no
8250 # This implies no fast_install, which is unacceptable.
8251 # Some rework will be needed to allow for fast_install
8252 # before this can be enabled.
8253 hardcode_into_libs=yes
8255 # Append ld.so.conf contents to the search path
8256 if test -f /etc/ld.so.conf; then
8257 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8258 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8261 # We used to test for /lib/ld.so.1 and disable shared libraries on
8262 # powerpc, because MkLinux only supported shared libraries with the
8263 # GNU dynamic linker. Since this was broken with cross compilers,
8264 # most powerpc-linux boxes support dynamic linking these days and
8265 # people can always --disable-shared, the test was removed, and we
8266 # assume the GNU/Linux dynamic linker is in use.
8267 dynamic_linker='GNU/Linux ld.so'
8274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8275 soname_spec='${libname}${release}${shared_ext}$major'
8276 shlibpath_var=LD_LIBRARY_PATH
8277 shlibpath_overrides_runpath=no
8278 hardcode_into_libs=yes
8279 dynamic_linker='GNU ld.so'
8286 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8289 dynamic_linker='NetBSD (a.out) ld.so'
8291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8292 soname_spec='${libname}${release}${shared_ext}$major'
8293 dynamic_linker='NetBSD ld.elf_so'
8295 shlibpath_var=LD_LIBRARY_PATH
8296 shlibpath_overrides_runpath=yes
8297 hardcode_into_libs=yes
8302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8303 shlibpath_var=LD_LIBRARY_PATH
8304 shlibpath_overrides_runpath=yes
8311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8312 soname_spec='${libname}${release}${shared_ext}$major'
8313 shlibpath_var=LD_LIBRARY_PATH
8314 shlibpath_overrides_runpath=yes
8319 sys_lib_dlsearch_path_spec="/usr/lib"
8321 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8323 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8324 *) need_version=no ;;
8326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8328 shlibpath_var=LD_LIBRARY_PATH
8329 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8331 openbsd2.[89] | openbsd2.[89].*)
8332 shlibpath_overrides_runpath=no
8335 shlibpath_overrides_runpath=yes
8339 shlibpath_overrides_runpath=yes
8344 libname_spec='$name'
8347 library_names_spec='$libname${shared_ext} $libname.a'
8348 dynamic_linker='OS/2 ld.exe'
8349 shlibpath_var=LIBPATH
8352 osf3* | osf4* | osf5*)
8356 soname_spec='${libname}${release}${shared_ext}$major'
8357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8358 shlibpath_var=LD_LIBRARY_PATH
8359 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8360 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8368 soname_spec='${libname}${release}${shared_ext}$major'
8369 shlibpath_var=LD_LIBRARY_PATH
8370 shlibpath_overrides_runpath=yes
8371 hardcode_into_libs=yes
8372 # ldd complains unless libraries are executable
8373 postinstall_cmds='chmod +x $lib'
8378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8379 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8380 shlibpath_var=LD_LIBRARY_PATH
8381 shlibpath_overrides_runpath=yes
8382 if test "$with_gnu_ld" = yes; then
8390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8391 soname_spec='${libname}${release}${shared_ext}$major'
8392 shlibpath_var=LD_LIBRARY_PATH
8393 case $host_vendor in
8395 shlibpath_overrides_runpath=no
8397 export_dynamic_flag_spec='${wl}-Blargedynsym'
8398 runpath_var=LD_RUN_PATH
8406 shlibpath_overrides_runpath=no
8407 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8413 if test -d /usr/nec ;then
8415 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8416 soname_spec='$libname${shared_ext}.$major'
8417 shlibpath_var=LD_LIBRARY_PATH
8421 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8422 version_type=freebsd-elf
8425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8426 soname_spec='${libname}${release}${shared_ext}$major'
8427 shlibpath_var=LD_LIBRARY_PATH
8428 hardcode_into_libs=yes
8429 if test "$with_gnu_ld" = yes; then
8430 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8431 shlibpath_overrides_runpath=no
8433 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8434 shlibpath_overrides_runpath=yes
8437 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8441 sys_lib_dlsearch_path_spec='/usr/lib'
8446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8447 soname_spec='${libname}${release}${shared_ext}$major'
8448 shlibpath_var=LD_LIBRARY_PATH
8455 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8456 echo "${ECHO_T}$dynamic_linker" >&6
8457 test "$dynamic_linker" = no && can_build_shared=no
8459 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8460 if test "$GCC" = yes; then
8461 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8464 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8465 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8467 if test -n "$hardcode_libdir_flag_spec" || \
8468 test -n "$runpath_var" || \
8469 test "X$hardcode_automatic" = "Xyes" ; then
8471 # We can hardcode non-existant directories.
8472 if test "$hardcode_direct" != no &&
8473 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8474 # have to relink, otherwise we might link with an installed library
8475 # when we should be linking with a yet-to-be-installed one
8476 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8477 test "$hardcode_minus_L" != no; then
8478 # Linking always hardcodes the temporary library directory.
8479 hardcode_action=relink
8481 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8482 hardcode_action=immediate
8485 # We cannot hardcode anything, or else we can only hardcode existing
8487 hardcode_action=unsupported
8489 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8490 echo "${ECHO_T}$hardcode_action" >&6
8492 if test "$hardcode_action" = relink; then
8493 # Fast installation is not supported
8494 enable_fast_install=no
8495 elif test "$shlibpath_overrides_runpath" = yes ||
8496 test "$enable_shared" = no; then
8497 # Fast installation is not necessary
8498 enable_fast_install=needless
8503 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8504 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8505 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8506 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8507 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8508 echo "$as_me:$LINENO: result: yes" >&5
8509 echo "${ECHO_T}yes" >&6
8511 # FIXME - insert some real tests, host_os isn't really good enough
8514 if test -n "$STRIP" ; then
8515 striplib="$STRIP -x"
8516 echo "$as_me:$LINENO: result: yes" >&5
8517 echo "${ECHO_T}yes" >&6
8519 echo "$as_me:$LINENO: result: no" >&5
8520 echo "${ECHO_T}no" >&6
8524 echo "$as_me:$LINENO: result: no" >&5
8525 echo "${ECHO_T}no" >&6
8530 if test "x$enable_dlopen" != xyes; then
8531 enable_dlopen=unknown
8532 enable_dlopen_self=unknown
8533 enable_dlopen_self_static=unknown
8540 lt_cv_dlopen="load_add_on"
8542 lt_cv_dlopen_self=yes
8546 lt_cv_dlopen="LoadLibrary"
8551 lt_cv_dlopen="dlopen"
8556 # if libdl is installed we need to link against it
8557 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8558 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8559 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 ac_check_lib_save_LIBS=$LIBS
8564 cat >conftest.$ac_ext <<_ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8571 /* Override any gcc2 internal prototype to avoid an error. */
8575 /* We use char because int might match the return type of a gcc2
8576 builtin and then its argument prototype would still apply. */
8586 rm -f conftest.$ac_objext conftest$ac_exeext
8587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8588 (eval $ac_link) 2>conftest.er1
8590 grep -v '^ *+' conftest.er1 >conftest.err
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } &&
8595 { ac_try='test -z "$ac_c_werror_flag"
8596 || test ! -s conftest.err'
8597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; } &&
8602 { ac_try='test -s conftest$ac_exeext'
8603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); }; }; then
8608 ac_cv_lib_dl_dlopen=yes
8610 echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8613 ac_cv_lib_dl_dlopen=no
8615 rm -f conftest.err conftest.$ac_objext \
8616 conftest$ac_exeext conftest.$ac_ext
8617 LIBS=$ac_check_lib_save_LIBS
8619 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8620 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8621 if test $ac_cv_lib_dl_dlopen = yes; then
8622 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8627 lt_cv_dlopen_self=yes
8634 echo "$as_me:$LINENO: checking for shl_load" >&5
8635 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8636 if test "${ac_cv_func_shl_load+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 cat >conftest.$ac_ext <<_ACEOF
8642 cat confdefs.h >>conftest.$ac_ext
8643 cat >>conftest.$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8645 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8647 #define shl_load innocuous_shl_load
8649 /* System header to define __stub macros and hopefully few prototypes,
8650 which can conflict with char shl_load (); below.
8651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8652 <limits.h> exists even on freestanding compilers. */
8655 # include <limits.h>
8657 # include <assert.h>
8662 /* Override any gcc2 internal prototype to avoid an error. */
8667 /* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
8670 /* The GNU C library defines this for functions which it implements
8671 to always fail with ENOSYS. Some functions are actually named
8672 something starting with __ and the normal name is an alias. */
8673 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8676 char (*f) () = shl_load;
8685 return f != shl_load;
8690 rm -f conftest.$ac_objext conftest$ac_exeext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692 (eval $ac_link) 2>conftest.er1
8694 grep -v '^ *+' conftest.er1 >conftest.err
8696 cat conftest.err >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } &&
8699 { ac_try='test -z "$ac_c_werror_flag"
8700 || test ! -s conftest.err'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; } &&
8706 { ac_try='test -s conftest$ac_exeext'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 ac_cv_func_shl_load=yes
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8717 ac_cv_func_shl_load=no
8719 rm -f conftest.err conftest.$ac_objext \
8720 conftest$ac_exeext conftest.$ac_ext
8722 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8723 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8724 if test $ac_cv_func_shl_load = yes; then
8725 lt_cv_dlopen="shl_load"
8727 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8728 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8729 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8732 ac_check_lib_save_LIBS=$LIBS
8734 cat >conftest.$ac_ext <<_ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h. */
8741 /* Override any gcc2 internal prototype to avoid an error. */
8745 /* We use char because int might match the return type of a gcc2
8746 builtin and then its argument prototype would still apply. */
8756 rm -f conftest.$ac_objext conftest$ac_exeext
8757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8758 (eval $ac_link) 2>conftest.er1
8760 grep -v '^ *+' conftest.er1 >conftest.err
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } &&
8765 { ac_try='test -z "$ac_c_werror_flag"
8766 || test ! -s conftest.err'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; } &&
8772 { ac_try='test -s conftest$ac_exeext'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 ac_cv_lib_dld_shl_load=yes
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8783 ac_cv_lib_dld_shl_load=no
8785 rm -f conftest.err conftest.$ac_objext \
8786 conftest$ac_exeext conftest.$ac_ext
8787 LIBS=$ac_check_lib_save_LIBS
8789 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8790 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8791 if test $ac_cv_lib_dld_shl_load = yes; then
8792 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8794 echo "$as_me:$LINENO: checking for dlopen" >&5
8795 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8796 if test "${ac_cv_func_dlopen+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 cat >conftest.$ac_ext <<_ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8805 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8807 #define dlopen innocuous_dlopen
8809 /* System header to define __stub macros and hopefully few prototypes,
8810 which can conflict with char dlopen (); below.
8811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8812 <limits.h> exists even on freestanding compilers. */
8815 # include <limits.h>
8817 # include <assert.h>
8822 /* Override any gcc2 internal prototype to avoid an error. */
8827 /* We use char because int might match the return type of a gcc2
8828 builtin and then its argument prototype would still apply. */
8830 /* The GNU C library defines this for functions which it implements
8831 to always fail with ENOSYS. Some functions are actually named
8832 something starting with __ and the normal name is an alias. */
8833 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8836 char (*f) () = dlopen;
8850 rm -f conftest.$ac_objext conftest$ac_exeext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8852 (eval $ac_link) 2>conftest.er1
8854 grep -v '^ *+' conftest.er1 >conftest.err
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag"
8860 || test ! -s conftest.err'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest$ac_exeext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 ac_cv_func_dlopen=yes
8874 echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8877 ac_cv_func_dlopen=no
8879 rm -f conftest.err conftest.$ac_objext \
8880 conftest$ac_exeext conftest.$ac_ext
8882 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8883 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8884 if test $ac_cv_func_dlopen = yes; then
8885 lt_cv_dlopen="dlopen"
8887 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8888 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8889 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 ac_check_lib_save_LIBS=$LIBS
8894 cat >conftest.$ac_ext <<_ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8901 /* Override any gcc2 internal prototype to avoid an error. */
8905 /* We use char because int might match the return type of a gcc2
8906 builtin and then its argument prototype would still apply. */
8916 rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8918 (eval $ac_link) 2>conftest.er1
8920 grep -v '^ *+' conftest.er1 >conftest.err
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } &&
8925 { ac_try='test -z "$ac_c_werror_flag"
8926 || test ! -s conftest.err'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; } &&
8932 { ac_try='test -s conftest$ac_exeext'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8938 ac_cv_lib_dl_dlopen=yes
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8943 ac_cv_lib_dl_dlopen=no
8945 rm -f conftest.err conftest.$ac_objext \
8946 conftest$ac_exeext conftest.$ac_ext
8947 LIBS=$ac_check_lib_save_LIBS
8949 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8950 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8951 if test $ac_cv_lib_dl_dlopen = yes; then
8952 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8954 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8955 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8956 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 ac_check_lib_save_LIBS=$LIBS
8961 cat >conftest.$ac_ext <<_ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8968 /* Override any gcc2 internal prototype to avoid an error. */
8972 /* We use char because int might match the return type of a gcc2
8973 builtin and then its argument prototype would still apply. */
8983 rm -f conftest.$ac_objext conftest$ac_exeext
8984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8985 (eval $ac_link) 2>conftest.er1
8987 grep -v '^ *+' conftest.er1 >conftest.err
8989 cat conftest.err >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); } &&
8992 { ac_try='test -z "$ac_c_werror_flag"
8993 || test ! -s conftest.err'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; } &&
8999 { ac_try='test -s conftest$ac_exeext'
9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; }; then
9005 ac_cv_lib_svld_dlopen=yes
9007 echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9010 ac_cv_lib_svld_dlopen=no
9012 rm -f conftest.err conftest.$ac_objext \
9013 conftest$ac_exeext conftest.$ac_ext
9014 LIBS=$ac_check_lib_save_LIBS
9016 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9017 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9018 if test $ac_cv_lib_svld_dlopen = yes; then
9019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9021 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9022 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9023 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 ac_check_lib_save_LIBS=$LIBS
9028 cat >conftest.$ac_ext <<_ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h. */
9035 /* Override any gcc2 internal prototype to avoid an error. */
9039 /* We use char because int might match the return type of a gcc2
9040 builtin and then its argument prototype would still apply. */
9050 rm -f conftest.$ac_objext conftest$ac_exeext
9051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9052 (eval $ac_link) 2>conftest.er1
9054 grep -v '^ *+' conftest.er1 >conftest.err
9056 cat conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } &&
9059 { ac_try='test -z "$ac_c_werror_flag"
9060 || test ! -s conftest.err'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; } &&
9066 { ac_try='test -s conftest$ac_exeext'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 ac_cv_lib_dld_dld_link=yes
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9077 ac_cv_lib_dld_dld_link=no
9079 rm -f conftest.err conftest.$ac_objext \
9080 conftest$ac_exeext conftest.$ac_ext
9081 LIBS=$ac_check_lib_save_LIBS
9083 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9084 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9085 if test $ac_cv_lib_dld_dld_link = yes; then
9086 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9107 if test "x$lt_cv_dlopen" != xno; then
9113 case $lt_cv_dlopen in
9115 save_CPPFLAGS="$CPPFLAGS"
9116 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9118 save_LDFLAGS="$LDFLAGS"
9119 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9122 LIBS="$lt_cv_dlopen_libs $LIBS"
9124 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9125 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9126 if test "${lt_cv_dlopen_self+set}" = set; then
9127 echo $ECHO_N "(cached) $ECHO_C" >&6
9129 if test "$cross_compiling" = yes; then :
9130 lt_cv_dlopen_self=cross
9132 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9133 lt_status=$lt_dlunknown
9134 cat > conftest.$ac_ext <<EOF
9135 #line 9135 "configure"
9136 #include "confdefs.h"
9145 # define LT_DLGLOBAL RTLD_GLOBAL
9148 # define LT_DLGLOBAL DL_GLOBAL
9150 # define LT_DLGLOBAL 0
9154 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9155 find out it does not work in some platform. */
9156 #ifndef LT_DLLAZY_OR_NOW
9158 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9161 # define LT_DLLAZY_OR_NOW DL_LAZY
9164 # define LT_DLLAZY_OR_NOW RTLD_NOW
9167 # define LT_DLLAZY_OR_NOW DL_NOW
9169 # define LT_DLLAZY_OR_NOW 0
9177 extern "C" void exit (int);
9180 void fnord() { int i=42;}
9183 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9184 int status = $lt_dlunknown;
9188 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9189 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9190 /* dlclose (self); */
9198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9199 (eval $ac_link) 2>&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9203 (./conftest; exit; ) >&5 2>/dev/null
9206 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9207 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9208 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9211 # compilation failed
9212 lt_cv_dlopen_self=no
9219 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9220 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9222 if test "x$lt_cv_dlopen_self" = xyes; then
9223 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9224 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9225 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9226 if test "${lt_cv_dlopen_self_static+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 if test "$cross_compiling" = yes; then :
9230 lt_cv_dlopen_self_static=cross
9232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9233 lt_status=$lt_dlunknown
9234 cat > conftest.$ac_ext <<EOF
9235 #line 9235 "configure"
9236 #include "confdefs.h"
9245 # define LT_DLGLOBAL RTLD_GLOBAL
9248 # define LT_DLGLOBAL DL_GLOBAL
9250 # define LT_DLGLOBAL 0
9254 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9255 find out it does not work in some platform. */
9256 #ifndef LT_DLLAZY_OR_NOW
9258 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9261 # define LT_DLLAZY_OR_NOW DL_LAZY
9264 # define LT_DLLAZY_OR_NOW RTLD_NOW
9267 # define LT_DLLAZY_OR_NOW DL_NOW
9269 # define LT_DLLAZY_OR_NOW 0
9277 extern "C" void exit (int);
9280 void fnord() { int i=42;}
9283 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9284 int status = $lt_dlunknown;
9288 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9289 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9290 /* dlclose (self); */
9298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9299 (eval $ac_link) 2>&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9303 (./conftest; exit; ) >&5 2>/dev/null
9306 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9307 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9308 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9311 # compilation failed
9312 lt_cv_dlopen_self_static=no
9319 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9320 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9323 CPPFLAGS="$save_CPPFLAGS"
9324 LDFLAGS="$save_LDFLAGS"
9329 case $lt_cv_dlopen_self in
9330 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9331 *) enable_dlopen_self=unknown ;;
9334 case $lt_cv_dlopen_self_static in
9335 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9336 *) enable_dlopen_self_static=unknown ;;
9341 # Report which library types will actually be built
9342 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9343 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9344 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9345 echo "${ECHO_T}$can_build_shared" >&6
9347 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9348 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9349 test "$can_build_shared" = "no" && enable_shared=no
9351 # On AIX, shared libraries and static libraries use the same namespace, and
9352 # are all built from PIC.
9355 test "$enable_shared" = yes && enable_static=no
9356 if test -n "$RANLIB"; then
9357 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9358 postinstall_cmds='$RANLIB $lib'
9363 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9364 test "$enable_shared" = yes && enable_static=no
9368 echo "$as_me:$LINENO: result: $enable_shared" >&5
9369 echo "${ECHO_T}$enable_shared" >&6
9371 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9372 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9373 # Make sure either enable_shared or enable_static is yes.
9374 test "$enable_shared" = yes || enable_static=yes
9375 echo "$as_me:$LINENO: result: $enable_static" >&5
9376 echo "${ECHO_T}$enable_static" >&6
9378 # The else clause should only fire when bootstrapping the
9379 # libtool distribution, otherwise you forgot to ship ltmain.sh
9380 # with your package, and you will get complaints that there are
9381 # no rules to generate ltmain.sh.
9382 if test -f "$ltmain"; then
9383 # See if we are running on zsh, and set the options which allow our commands through
9384 # without removal of \ escapes.
9385 if test -n "${ZSH_VERSION+set}" ; then
9386 setopt NO_GLOB_SUBST
9388 # Now quote all the things that may contain metacharacters while being
9389 # careful not to overquote the AC_SUBSTed values. We take copies of the
9390 # variables and quote the copies for generation of the libtool script.
9391 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9393 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9394 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9395 deplibs_check_method reload_flag reload_cmds need_locks \
9396 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9397 lt_cv_sys_global_symbol_to_c_name_address \
9398 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9399 old_postinstall_cmds old_postuninstall_cmds \
9403 lt_prog_compiler_wl \
9404 lt_prog_compiler_pic \
9405 lt_prog_compiler_static \
9406 lt_prog_compiler_no_builtin_flag \
9407 export_dynamic_flag_spec \
9408 thread_safe_flag_spec \
9409 whole_archive_flag_spec \
9410 enable_shared_with_static_runtimes \
9412 old_archive_from_new_cmds \
9417 compiler_lib_search_path \
9419 archive_expsym_cmds \
9421 postuninstall_cmds \
9422 old_archive_from_expsyms_cmds \
9423 allow_undefined_flag \
9425 export_symbols_cmds \
9426 hardcode_libdir_flag_spec \
9427 hardcode_libdir_flag_spec_ld \
9428 hardcode_libdir_separator \
9429 hardcode_automatic \
9431 module_expsym_cmds \
9432 lt_cv_prog_compiler_c_o \
9437 old_archive_cmds | \
9438 old_archive_from_new_cmds | \
9440 archive_expsym_cmds | \
9442 module_expsym_cmds | \
9443 old_archive_from_expsyms_cmds | \
9444 export_symbols_cmds | \
9445 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9446 postinstall_cmds | postuninstall_cmds | \
9447 old_postinstall_cmds | old_postuninstall_cmds | \
9448 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9449 # Double-quote double-evaled strings.
9450 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9453 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9459 *'\$0 --fallback-echo"')
9460 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9465 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9467 { echo "$as_me:$LINENO: creating $ofile" >&5
9468 echo "$as_me: creating $ofile" >&6;}
9470 cat <<__EOF__ >> "$cfgfile"
9473 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9474 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9475 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9477 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9478 # Free Software Foundation, Inc.
9480 # This file is part of GNU Libtool:
9481 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9483 # This program is free software; you can redistribute it and/or modify
9484 # it under the terms of the GNU General Public License as published by
9485 # the Free Software Foundation; either version 2 of the License, or
9486 # (at your option) any later version.
9488 # This program is distributed in the hope that it will be useful, but
9489 # WITHOUT ANY WARRANTY; without even the implied warranty of
9490 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9491 # General Public License for more details.
9493 # You should have received a copy of the GNU General Public License
9494 # along with this program; if not, write to the Free Software
9495 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9497 # As a special exception to the GNU General Public License, if you
9498 # distribute this file as part of a program that contains a
9499 # configuration script generated by Autoconf, you may include it under
9500 # the same distribution terms that you use for the rest of that program.
9502 # A sed program that does not truncate output.
9505 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9506 Xsed="$SED -e 1s/^X//"
9508 # The HP-UX ksh and POSIX shell print the target directory to stdout
9510 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9512 # The names of the tagged configurations supported by this script.
9515 # ### BEGIN LIBTOOL CONFIG
9517 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9519 # Shell to use when invoking shell scripts.
9522 # Whether or not to build shared libraries.
9523 build_libtool_libs=$enable_shared
9525 # Whether or not to build static libraries.
9526 build_old_libs=$enable_static
9528 # Whether or not to add -lc for building shared libraries.
9529 build_libtool_need_lc=$archive_cmds_need_lc
9531 # Whether or not to disallow shared libs when runtime libs are static
9532 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9534 # Whether or not to optimize for fast installation.
9535 fast_install=$enable_fast_install
9538 host_alias=$host_alias
9543 build_alias=$build_alias
9547 # An echo program that does not interpret backslashes.
9552 AR_FLAGS=$lt_AR_FLAGS
9557 # LTCC compiler flags.
9558 LTCFLAGS=$lt_LTCFLAGS
9560 # A language-specific compiler.
9563 # Is the compiler the GNU C compiler?
9569 # The linker used to build libraries.
9572 # Whether we need hard or soft links.
9575 # A BSD-compatible nm program.
9578 # A symbol stripping program
9581 # Used to examine libraries when file_magic_cmd begins "file"
9582 MAGIC_CMD=$MAGIC_CMD
9584 # Used on cygwin: DLL creation program.
9587 # Used on cygwin: object dumper.
9590 # Used on cygwin: assembler.
9593 # The name of the directory that contains temporary libtool files.
9596 # How to create reloadable object files.
9597 reload_flag=$lt_reload_flag
9598 reload_cmds=$lt_reload_cmds
9600 # How to pass a linker flag through the compiler.
9601 wl=$lt_lt_prog_compiler_wl
9603 # Object file suffix (normally "o").
9606 # Old archive suffix (normally "a").
9609 # Shared library suffix (normally ".so").
9610 shrext_cmds='$shrext_cmds'
9612 # Executable file suffix (normally "").
9615 # Additional compiler flags for building library objects.
9616 pic_flag=$lt_lt_prog_compiler_pic
9619 # What is the maximum length of a command?
9620 max_cmd_len=$lt_cv_sys_max_cmd_len
9622 # Does compiler simultaneously support -c and -o options?
9623 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9625 # Must we lock files when doing compilation?
9626 need_locks=$lt_need_locks
9628 # Do we need the lib prefix for modules?
9629 need_lib_prefix=$need_lib_prefix
9631 # Do we need a version for libraries?
9632 need_version=$need_version
9634 # Whether dlopen is supported.
9635 dlopen_support=$enable_dlopen
9637 # Whether dlopen of programs is supported.
9638 dlopen_self=$enable_dlopen_self
9640 # Whether dlopen of statically linked programs is supported.
9641 dlopen_self_static=$enable_dlopen_self_static
9643 # Compiler flag to prevent dynamic linking.
9644 link_static_flag=$lt_lt_prog_compiler_static
9646 # Compiler flag to turn off builtin functions.
9647 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9649 # Compiler flag to allow reflexive dlopens.
9650 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9652 # Compiler flag to generate shared objects directly from archives.
9653 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9655 # Compiler flag to generate thread-safe objects.
9656 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9658 # Library versioning type.
9659 version_type=$version_type
9661 # Format of library name prefix.
9662 libname_spec=$lt_libname_spec
9664 # List of archive names. First name is the real one, the rest are links.
9665 # The last name is the one that the linker finds with -lNAME.
9666 library_names_spec=$lt_library_names_spec
9668 # The coded name of the library, if different from the real name.
9669 soname_spec=$lt_soname_spec
9671 # Commands used to build and install an old-style archive.
9673 old_archive_cmds=$lt_old_archive_cmds
9674 old_postinstall_cmds=$lt_old_postinstall_cmds
9675 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9677 # Create an old-style archive from a shared archive.
9678 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9680 # Create a temporary old-style archive to link instead of a shared archive.
9681 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9683 # Commands used to build and install a shared archive.
9684 archive_cmds=$lt_archive_cmds
9685 archive_expsym_cmds=$lt_archive_expsym_cmds
9686 postinstall_cmds=$lt_postinstall_cmds
9687 postuninstall_cmds=$lt_postuninstall_cmds
9689 # Commands used to build a loadable module (assumed same as above if empty)
9690 module_cmds=$lt_module_cmds
9691 module_expsym_cmds=$lt_module_expsym_cmds
9693 # Commands to strip libraries.
9694 old_striplib=$lt_old_striplib
9695 striplib=$lt_striplib
9697 # Dependencies to place before the objects being linked to create a
9699 predep_objects=$lt_predep_objects
9701 # Dependencies to place after the objects being linked to create a
9703 postdep_objects=$lt_postdep_objects
9705 # Dependencies to place before the objects being linked to create a
9709 # Dependencies to place after the objects being linked to create a
9711 postdeps=$lt_postdeps
9713 # The library search path used internally by the compiler when linking
9715 compiler_lib_search_path=$lt_compiler_lib_search_path
9717 # Method to check whether dependent libraries are shared objects.
9718 deplibs_check_method=$lt_deplibs_check_method
9720 # Command to use when deplibs_check_method == file_magic.
9721 file_magic_cmd=$lt_file_magic_cmd
9723 # Flag that allows shared libraries with undefined symbols to be built.
9724 allow_undefined_flag=$lt_allow_undefined_flag
9726 # Flag that forces no undefined symbols.
9727 no_undefined_flag=$lt_no_undefined_flag
9729 # Commands used to finish a libtool library installation in a directory.
9730 finish_cmds=$lt_finish_cmds
9732 # Same as above, but a single script fragment to be evaled but not shown.
9733 finish_eval=$lt_finish_eval
9735 # Take the output of nm and produce a listing of raw symbols and C names.
9736 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9738 # Transform the output of nm in a proper C declaration
9739 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9741 # Transform the output of nm in a C name address pair
9742 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9744 # This is the shared library runtime path variable.
9745 runpath_var=$runpath_var
9747 # This is the shared library path variable.
9748 shlibpath_var=$shlibpath_var
9750 # Is shlibpath searched before the hard-coded library search path?
9751 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9753 # How to hardcode a shared library path into an executable.
9754 hardcode_action=$hardcode_action
9756 # Whether we should hardcode library paths into libraries.
9757 hardcode_into_libs=$hardcode_into_libs
9759 # Flag to hardcode \$libdir into a binary during linking.
9760 # This must work even if \$libdir does not exist.
9761 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9763 # If ld is used when linking, flag to hardcode \$libdir into
9764 # a binary during linking. This must work even if \$libdir does
9766 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9768 # Whether we need a single -rpath flag with a separated argument.
9769 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9771 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9773 hardcode_direct=$hardcode_direct
9775 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9777 hardcode_minus_L=$hardcode_minus_L
9779 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9780 # the resulting binary.
9781 hardcode_shlibpath_var=$hardcode_shlibpath_var
9783 # Set to yes if building a shared library automatically hardcodes DIR into the library
9784 # and all subsequent libraries and executables linked against it.
9785 hardcode_automatic=$hardcode_automatic
9787 # Variables whose values should be saved in libtool wrapper scripts and
9788 # restored at relink time.
9789 variables_saved_for_relink="$variables_saved_for_relink"
9791 # Whether libtool must link a program against all its dependency libraries.
9792 link_all_deplibs=$link_all_deplibs
9794 # Compile-time system search path for libraries
9795 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9797 # Run-time system search path for libraries
9798 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9800 # Fix the shell variable \$srcfile for the compiler.
9801 fix_srcfile_path="$fix_srcfile_path"
9803 # Set to yes if exported symbols are required.
9804 always_export_symbols=$always_export_symbols
9806 # The commands to list exported symbols.
9807 export_symbols_cmds=$lt_export_symbols_cmds
9809 # The commands to extract the exported symbol list from a shared archive.
9810 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9812 # Symbols that should not be listed in the preloaded symbols.
9813 exclude_expsyms=$lt_exclude_expsyms
9815 # Symbols that must always be exported.
9816 include_expsyms=$lt_include_expsyms
9818 # ### END LIBTOOL CONFIG
9825 cat <<\EOF >> "$cfgfile"
9827 # AIX sometimes has problems with the GCC collect2 program. For some
9828 # reason, if we set the COLLECT_NAMES environment variable, the problems
9829 # vanish in a puff of smoke.
9830 if test "X${COLLECT_NAMES+set}" != Xset; then
9832 export COLLECT_NAMES
9838 # We use sed instead of cat because bash on DJGPP gets confused if
9839 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9840 # text mode, it properly converts lines to CR/LF. This bash problem
9841 # is reportedly fixed, but why not run on old versions too?
9842 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9844 mv -f "$cfgfile" "$ofile" || \
9845 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9849 # If there is no Makefile yet, we rely on a make rule to execute
9850 # `config.status --recheck' to rerun these tests and create the
9851 # libtool script then.
9852 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9853 if test -f "$ltmain_in"; then
9854 test -f Makefile && make "$ltmain"
9860 ac_cpp='$CPP $CPPFLAGS'
9861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9868 # Check whether --with-tags or --without-tags was given.
9869 if test "${with_tags+set}" = set; then
9870 withval="$with_tags"
9874 if test -f "$ltmain" && test -n "$tagnames"; then
9875 if test ! -f "${ofile}"; then
9876 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9877 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9880 if test -z "$LTCC"; then
9881 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9882 if test -z "$LTCC"; then
9883 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9884 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9886 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9887 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9890 if test -z "$LTCFLAGS"; then
9891 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9894 # Extract list of available tagged configurations in $ofile.
9895 # Note that this assumes the entire list is on one line.
9896 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9898 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9899 for tagname in $tagnames; do
9901 # Check whether tagname contains only valid characters
9902 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9904 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9905 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9906 { (exit 1); exit 1; }; }
9910 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9912 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9913 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9914 { (exit 1); exit 1; }; }
9917 # Update the list of available tags.
9918 if test -n "$tagname"; then
9919 echo appending configuration tag \"$tagname\" to $ofile
9923 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9924 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9925 (test "X$CXX" != "Xg++"))) ; then
9927 ac_cpp='$CXXCPP $CPPFLAGS'
9928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9935 archive_cmds_need_lc_CXX=no
9936 allow_undefined_flag_CXX=
9937 always_export_symbols_CXX=no
9938 archive_expsym_cmds_CXX=
9939 export_dynamic_flag_spec_CXX=
9940 hardcode_direct_CXX=no
9941 hardcode_libdir_flag_spec_CXX=
9942 hardcode_libdir_flag_spec_ld_CXX=
9943 hardcode_libdir_separator_CXX=
9944 hardcode_minus_L_CXX=no
9945 hardcode_shlibpath_var_CXX=unsupported
9946 hardcode_automatic_CXX=no
9948 module_expsym_cmds_CXX=
9949 link_all_deplibs_CXX=unknown
9950 old_archive_cmds_CXX=$old_archive_cmds
9951 no_undefined_flag_CXX=
9952 whole_archive_flag_spec_CXX=
9953 enable_shared_with_static_runtimes_CXX=no
9955 # Dependencies to place before and after the object being linked:
9957 postdep_objects_CXX=
9960 compiler_lib_search_path_CXX=
9962 # Source file extension for C++ test sources.
9965 # Object file extension for compiled C++ test sources.
9969 # Code to be used in simple compile tests
9970 lt_simple_compile_test_code="int some_variable = 0;\n"
9972 # Code to be used in simple link tests
9973 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9975 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9977 # If no C compiler was specified, use CC.
9980 # If no C compiler flags were specified, use CFLAGS.
9981 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9983 # Allow CC to be a program name with arguments.
9987 # save warnings/boilerplate of simple test code
9988 ac_outfile=conftest.$ac_objext
9989 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9990 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9991 _lt_compiler_boilerplate=`cat conftest.err`
9994 ac_outfile=conftest.$ac_objext
9995 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9996 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9997 _lt_linker_boilerplate=`cat conftest.err`
10001 # Allow CC to be a program name with arguments.
10006 lt_save_with_gnu_ld=$with_gnu_ld
10007 lt_save_path_LD=$lt_cv_path_LD
10008 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10009 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10011 $as_unset lt_cv_prog_gnu_ld
10013 if test -n "${lt_cv_path_LDCXX+set}"; then
10014 lt_cv_path_LD=$lt_cv_path_LDCXX
10016 $as_unset lt_cv_path_LD
10018 test -z "${LDCXX+set}" || LD=$LDCXX
10022 for cc_temp in $compiler""; do
10024 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10025 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10030 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10033 # We don't want -fno-exception wen compiling C++ code, so set the
10034 # no_builtin_flag separately
10035 if test "$GXX" = yes; then
10036 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10038 lt_prog_compiler_no_builtin_flag_CXX=
10041 if test "$GXX" = yes; then
10042 # Set up default GNU C++ configuration
10045 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10046 if test "${with_gnu_ld+set}" = set; then
10047 withval="$with_gnu_ld"
10048 test "$withval" = no || with_gnu_ld=yes
10053 if test "$GCC" = yes; then
10054 # Check if gcc -print-prog-name=ld gives a path.
10055 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10056 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10059 # gcc leaves a trailing carriage return which upsets mingw
10060 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10062 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10065 # Accept absolute paths.
10067 re_direlt='/[^/][^/]*/\.\./'
10068 # Canonicalize the pathname of ld
10069 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10070 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10071 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10073 test -z "$LD" && LD="$ac_prog"
10076 # If it fails, then pretend we aren't using GCC.
10080 # If it is relative, then search for the first ld in PATH.
10081 with_gnu_ld=unknown
10084 elif test "$with_gnu_ld" = yes; then
10085 echo "$as_me:$LINENO: checking for GNU ld" >&5
10086 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10088 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10089 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10091 if test "${lt_cv_path_LD+set}" = set; then
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10094 if test -z "$LD"; then
10095 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10096 for ac_dir in $PATH; do
10098 test -z "$ac_dir" && ac_dir=.
10099 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10100 lt_cv_path_LD="$ac_dir/$ac_prog"
10101 # Check to see if the program is GNU ld. I'd rather use --version,
10102 # but apparently some variants of GNU ld only accept -v.
10103 # Break only if it was the GNU/non-GNU ld that we prefer.
10104 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10105 *GNU* | *'with BFD'*)
10106 test "$with_gnu_ld" != no && break
10109 test "$with_gnu_ld" != yes && break
10116 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10120 LD="$lt_cv_path_LD"
10121 if test -n "$LD"; then
10122 echo "$as_me:$LINENO: result: $LD" >&5
10123 echo "${ECHO_T}$LD" >&6
10125 echo "$as_me:$LINENO: result: no" >&5
10126 echo "${ECHO_T}no" >&6
10128 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10129 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10130 { (exit 1); exit 1; }; }
10131 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10132 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10133 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10136 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10137 case `$LD -v 2>&1 </dev/null` in
10138 *GNU* | *'with BFD'*)
10139 lt_cv_prog_gnu_ld=yes
10142 lt_cv_prog_gnu_ld=no
10146 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10147 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10148 with_gnu_ld=$lt_cv_prog_gnu_ld
10152 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10153 # archiving commands below assume that GNU ld is being used.
10154 if test "$with_gnu_ld" = yes; then
10155 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10156 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10158 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10159 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10161 # If archive_cmds runs LD, not CC, wlarc should be empty
10162 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10163 # investigate it a little bit more. (MM)
10166 # ancient GNU ld didn't support --whole-archive et. al.
10167 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10168 grep 'no-whole-archive' > /dev/null; then
10169 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10171 whole_archive_flag_spec_CXX=
10177 # A generic and very simple default shared library creation
10178 # command for GNU C++ for the case where it uses the native
10179 # linker, instead of GNU ld. If possible, this setting should
10180 # overridden to take advantage of the native linker features on
10181 # the platform it is being used on.
10182 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10185 # Commands to make compiler produce verbose output that lists
10186 # what "hidden" libraries, object files and flags are used when
10187 # linking a shared library.
10188 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10196 # PORTME: fill in a description of your system's C++ link characteristics
10197 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10198 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10202 # FIXME: insert proper C++ library support
10206 if test "$host_cpu" = ia64; then
10207 # On IA64, the linker does run time linking by default, so we don't
10208 # have to do anything special.
10209 aix_use_runtimelinking=no
10210 exp_sym_flag='-Bexport'
10213 aix_use_runtimelinking=no
10215 # Test if we are trying to use run time linking or normal
10216 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10217 # need to do runtime linking.
10218 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10219 for ld_flag in $LDFLAGS; do
10222 aix_use_runtimelinking=yes
10230 exp_sym_flag='-bexport'
10231 no_entry_flag='-bnoentry'
10234 # When large executables or shared objects are built, AIX ld can
10235 # have problems creating the table of contents. If linking a library
10236 # or program results in "error TOC overflow" add -mminimal-toc to
10237 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10238 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10240 archive_cmds_CXX=''
10241 hardcode_direct_CXX=yes
10242 hardcode_libdir_separator_CXX=':'
10243 link_all_deplibs_CXX=yes
10245 if test "$GXX" = yes; then
10246 case $host_os in aix4.[012]|aix4.[012].*)
10247 # We only want to do this on AIX 4.2 and lower, the check
10248 # below for broken collect2 doesn't work under 4.3+
10249 collect2name=`${CC} -print-prog-name=collect2`
10250 if test -f "$collect2name" && \
10251 strings "$collect2name" | grep resolve_lib_name >/dev/null
10253 # We have reworked collect2
10254 hardcode_direct_CXX=yes
10256 # We have old collect2
10257 hardcode_direct_CXX=unsupported
10258 # It fails to find uninstalled libraries when the uninstalled
10259 # path is not listed in the libpath. Setting hardcode_minus_L
10260 # to unsupported forces relinking
10261 hardcode_minus_L_CXX=yes
10262 hardcode_libdir_flag_spec_CXX='-L$libdir'
10263 hardcode_libdir_separator_CXX=
10267 shared_flag='-shared'
10268 if test "$aix_use_runtimelinking" = yes; then
10269 shared_flag="$shared_flag "'${wl}-G'
10273 if test "$host_cpu" = ia64; then
10274 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10275 # chokes on -Wl,-G. The following line is correct:
10278 if test "$aix_use_runtimelinking" = yes; then
10279 shared_flag='${wl}-G'
10281 shared_flag='${wl}-bM:SRE'
10286 # It seems that -bexpall does not export symbols beginning with
10287 # underscore (_), so it is better to generate a list of symbols to export.
10288 always_export_symbols_CXX=yes
10289 if test "$aix_use_runtimelinking" = yes; then
10290 # Warning - without using the other runtime loading flags (-brtl),
10291 # -berok will link without error, but may produce a broken library.
10292 allow_undefined_flag_CXX='-berok'
10293 # Determine the default libpath from the value encoded in an empty executable.
10294 cat >conftest.$ac_ext <<_ACEOF
10297 cat confdefs.h >>conftest.$ac_ext
10298 cat >>conftest.$ac_ext <<_ACEOF
10299 /* end confdefs.h. */
10309 rm -f conftest.$ac_objext conftest$ac_exeext
10310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10311 (eval $ac_link) 2>conftest.er1
10313 grep -v '^ *+' conftest.er1 >conftest.err
10315 cat conftest.err >&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } &&
10318 { ac_try='test -z "$ac_cxx_werror_flag"
10319 || test ! -s conftest.err'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; } &&
10325 { ac_try='test -s conftest$ac_exeext'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; }; then
10332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10334 # Check for a 64-bit object if we didn't find anything.
10335 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10338 echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10342 rm -f conftest.err conftest.$ac_objext \
10343 conftest$ac_exeext conftest.$ac_ext
10344 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10346 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10348 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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10350 if test "$host_cpu" = ia64; then
10351 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10352 allow_undefined_flag_CXX="-z nodefs"
10353 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"
10355 # Determine the default libpath from the value encoded in an empty executable.
10356 cat >conftest.$ac_ext <<_ACEOF
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h. */
10371 rm -f conftest.$ac_objext conftest$ac_exeext
10372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10373 (eval $ac_link) 2>conftest.er1
10375 grep -v '^ *+' conftest.er1 >conftest.err
10377 cat conftest.err >&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } &&
10380 { ac_try='test -z "$ac_cxx_werror_flag"
10381 || test ! -s conftest.err'
10382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383 (eval $ac_try) 2>&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; } &&
10387 { ac_try='test -s conftest$ac_exeext'
10388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389 (eval $ac_try) 2>&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; }; then
10394 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10396 # Check for a 64-bit object if we didn't find anything.
10397 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10400 echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10404 rm -f conftest.err conftest.$ac_objext \
10405 conftest$ac_exeext conftest.$ac_ext
10406 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10408 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10409 # Warning - without using the other run time loading flags,
10410 # -berok will link without error, but may produce a broken library.
10411 no_undefined_flag_CXX=' ${wl}-bernotok'
10412 allow_undefined_flag_CXX=' ${wl}-berok'
10413 # Exported symbols can be pulled into shared objects from archives
10414 whole_archive_flag_spec_CXX='$convenience'
10415 archive_cmds_need_lc_CXX=yes
10416 # This is similar to how AIX traditionally builds its shared libraries.
10417 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'
10423 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10424 allow_undefined_flag_CXX=unsupported
10425 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10426 # support --undefined. This deserves some investigation. FIXME
10427 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10434 case $cc_basename in
10436 # FIXME: insert proper C++ library support
10442 cygwin* | mingw* | pw32*)
10443 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10444 # as there is no search path for DLLs.
10445 hardcode_libdir_flag_spec_CXX='-L$libdir'
10446 allow_undefined_flag_CXX=unsupported
10447 always_export_symbols_CXX=no
10448 enable_shared_with_static_runtimes_CXX=yes
10450 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10451 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'
10452 # If the export-symbols file already is a .def file (1st line
10453 # is EXPORTS), use it as is; otherwise, prepend...
10454 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10455 cp $export_symbols $output_objdir/$soname.def;
10457 echo EXPORTS > $output_objdir/$soname.def;
10458 cat $export_symbols >> $output_objdir/$soname.def;
10460 $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'
10465 darwin* | rhapsody*)
10467 rhapsody* | darwin1.[012])
10468 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10471 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10472 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10474 case ${MACOSX_DEPLOYMENT_TARGET} in
10476 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10479 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10485 archive_cmds_need_lc_CXX=no
10486 hardcode_direct_CXX=no
10487 hardcode_automatic_CXX=yes
10488 hardcode_shlibpath_var_CXX=unsupported
10489 whole_archive_flag_spec_CXX=''
10490 link_all_deplibs_CXX=yes
10492 if test "$GXX" = yes ; then
10493 lt_int_apple_cc_single_mod=no
10494 output_verbose_link_cmd='echo'
10495 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10496 lt_int_apple_cc_single_mod=yes
10498 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10499 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10501 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'
10503 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10504 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10505 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10506 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10508 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10510 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10512 case $cc_basename in
10514 output_verbose_link_cmd='echo'
10515 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10516 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10517 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10518 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10519 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10529 case $cc_basename in
10531 # FIXME: insert proper C++ library support
10535 # Green Hills C++ Compiler
10536 # FIXME: insert proper C++ library support
10540 # FIXME: insert proper C++ library support
10546 # C++ shared libraries reported to be fairly broken before switch to ELF
10550 archive_cmds_need_lc_CXX=no
10552 freebsd* | kfreebsd*-gnu | dragonfly*)
10553 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10560 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10561 hardcode_libdir_separator_CXX=:
10562 export_dynamic_flag_spec_CXX='${wl}-E'
10563 hardcode_direct_CXX=yes
10564 hardcode_minus_L_CXX=yes # Not in the search PATH,
10565 # but as the default
10566 # location of the library.
10568 case $cc_basename in
10570 # FIXME: insert proper C++ library support
10574 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'
10575 # Commands to make compiler produce verbose output that lists
10576 # what "hidden" libraries, object files and flags are used when
10577 # linking a shared library.
10579 # There doesn't appear to be a way to prevent this compiler from
10580 # explicitly linking system object files so we need to strip them
10581 # from the output so that they don't get included in the library
10583 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; echo $list'
10586 if test "$GXX" = yes; then
10587 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10589 # FIXME: insert proper C++ library support
10596 if test $with_gnu_ld = no; then
10597 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10598 hardcode_libdir_separator_CXX=:
10602 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10605 export_dynamic_flag_spec_CXX='${wl}-E'
10611 hardcode_direct_CXX=no
10612 hardcode_shlibpath_var_CXX=no
10615 hardcode_direct_CXX=yes
10616 hardcode_minus_L_CXX=yes # Not in the search PATH,
10617 # but as the default
10618 # location of the library.
10622 case $cc_basename in
10624 # FIXME: insert proper C++ library support
10630 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10633 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10636 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10639 # Commands to make compiler produce verbose output that lists
10640 # what "hidden" libraries, object files and flags are used when
10641 # linking a shared library.
10643 # There doesn't appear to be a way to prevent this compiler from
10644 # explicitly linking system object files so we need to strip them
10645 # from the output so that they don't get included in the library
10647 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; echo $list'
10650 if test "$GXX" = yes; then
10651 if test $with_gnu_ld = no; then
10654 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10657 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10660 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10665 # FIXME: insert proper C++ library support
10672 hardcode_direct_CXX=no
10673 hardcode_shlibpath_var_CXX=no
10674 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10675 export_dynamic_flag_spec_CXX='${wl}-E'
10676 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10677 # Instead, shared libraries are loaded at an image base (0x10000000 by
10678 # default) and relocated if they conflict, which is a slow very memory
10679 # consuming and fragmenting process. To avoid this, we pick a random,
10680 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10681 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10682 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'
10683 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'
10686 case $cc_basename in
10689 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10691 # Archives containing C++ object files must be created using
10692 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10693 # necessary to make sure instantiated templates are included
10695 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10698 if test "$GXX" = yes; then
10699 if test "$with_gnu_ld" = no; then
10700 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10702 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10705 link_all_deplibs_CXX=yes
10708 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10709 hardcode_libdir_separator_CXX=:
10712 case $cc_basename in
10714 # Kuck and Associates, Inc. (KAI) C++ Compiler
10716 # KCC will only create a shared library if the output file
10717 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10718 # to its proper name (with version) after linking.
10719 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'
10720 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'
10721 # Commands to make compiler produce verbose output that lists
10722 # what "hidden" libraries, object files and flags are used when
10723 # linking a shared library.
10725 # There doesn't appear to be a way to prevent this compiler from
10726 # explicitly linking system object files so we need to strip them
10727 # from the output so that they don't get included in the library
10729 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; echo $list'
10731 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10732 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10734 # Archives containing C++ object files must be created using
10735 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10736 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10741 # version 8.0 and above of icpc choke on multiply defined symbols
10742 # if we add $predep_objects and $postdep_objects, however 7.1 and
10743 # earlier do not add the objects themselves.
10744 case `$CC -V 2>&1` in
10746 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10747 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'
10749 *) # Version 8.0 or newer
10752 ia64*) tmp_idyn=' -i_dynamic';;
10754 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10755 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'
10758 archive_cmds_need_lc_CXX=no
10759 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10760 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10761 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10764 # Portland Group C++ compiler
10765 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10766 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'
10768 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10769 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10770 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10774 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10775 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'
10777 runpath_var=LD_RUN_PATH
10778 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10779 hardcode_libdir_separator_CXX=:
10781 # Commands to make compiler produce verbose output that lists
10782 # what "hidden" libraries, object files and flags are used when
10783 # linking a shared library.
10785 # There doesn't appear to be a way to prevent this compiler from
10786 # explicitly linking system object files so we need to strip them
10787 # from the output so that they don't get included in the library
10789 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
10794 # FIXME: insert proper C++ library support
10798 # FIXME: insert proper C++ library support
10802 case $cc_basename in
10804 # FIXME: insert proper C++ library support
10808 # FIXME: insert proper C++ library support
10814 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10815 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10817 hardcode_libdir_flag_spec_CXX='-R$libdir'
10818 hardcode_direct_CXX=yes
10819 hardcode_shlibpath_var_CXX=no
10821 # Workaround some broken pre-1.5 toolchains
10822 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10825 # C++ shared libraries are fairly broken
10829 hardcode_direct_CXX=yes
10830 hardcode_shlibpath_var_CXX=no
10831 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10832 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10833 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10834 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10835 export_dynamic_flag_spec_CXX='${wl}-E'
10836 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10838 output_verbose_link_cmd='echo'
10841 case $cc_basename in
10843 # Kuck and Associates, Inc. (KAI) C++ Compiler
10845 # KCC will only create a shared library if the output file
10846 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10847 # to its proper name (with version) after linking.
10848 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'
10850 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10851 hardcode_libdir_separator_CXX=:
10853 # Archives containing C++ object files must be created using
10854 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10855 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10859 # Rational C++ 2.4.1
10860 # FIXME: insert proper C++ library support
10864 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10865 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10867 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10868 hardcode_libdir_separator_CXX=:
10870 # Commands to make compiler produce verbose output that lists
10871 # what "hidden" libraries, object files and flags are used when
10872 # linking a shared library.
10874 # There doesn't appear to be a way to prevent this compiler from
10875 # explicitly linking system object files so we need to strip them
10876 # from the output so that they don't get included in the library
10878 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
10881 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10882 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10883 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10885 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10886 hardcode_libdir_separator_CXX=:
10888 # Commands to make compiler produce verbose output that lists
10889 # what "hidden" libraries, object files and flags are used when
10890 # linking a shared library.
10891 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10894 # FIXME: insert proper C++ library support
10901 case $cc_basename in
10903 # Kuck and Associates, Inc. (KAI) C++ Compiler
10905 # KCC will only create a shared library if the output file
10906 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10907 # to its proper name (with version) after linking.
10908 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'
10910 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10911 hardcode_libdir_separator_CXX=:
10913 # Archives containing C++ object files must be created using
10914 # the KAI C++ compiler.
10915 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10918 # Rational C++ 2.4.1
10919 # FIXME: insert proper C++ library support
10923 allow_undefined_flag_CXX=' -expect_unresolved \*'
10924 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10925 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10926 echo "-hidden">> $lib.exp~
10927 $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~
10930 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10931 hardcode_libdir_separator_CXX=:
10933 # Commands to make compiler produce verbose output that lists
10934 # what "hidden" libraries, object files and flags are used when
10935 # linking a shared library.
10937 # There doesn't appear to be a way to prevent this compiler from
10938 # explicitly linking system object files so we need to strip them
10939 # from the output so that they don't get included in the library
10941 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
10944 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10945 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10946 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10949 hardcode_libdir_separator_CXX=:
10951 # Commands to make compiler produce verbose output that lists
10952 # what "hidden" libraries, object files and flags are used when
10953 # linking a shared library.
10954 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10957 # FIXME: insert proper C++ library support
10964 # FIXME: insert proper C++ library support
10968 case $cc_basename in
10971 # FIXME: insert proper C++ library support
10976 # FIXME: insert proper C++ library support
10980 # FIXME: insert proper C++ library support
10986 case $cc_basename in
10988 # Sun C++ 4.2, 5.x and Centerline C++
10989 archive_cmds_need_lc_CXX=yes
10990 no_undefined_flag_CXX=' -zdefs'
10991 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10992 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10993 $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'
10995 hardcode_libdir_flag_spec_CXX='-R$libdir'
10996 hardcode_shlibpath_var_CXX=no
10998 solaris2.[0-5] | solaris2.[0-5].*) ;;
11000 # The C++ compiler is used as linker so we must use $wl
11001 # flag to pass the commands to the underlying system
11002 # linker. We must also pass each convience library through
11003 # to the system linker between allextract/defaultextract.
11004 # The C++ compiler will combine linker options so we
11005 # cannot just pass the convience library names through
11007 # Supported since Solaris 2.6 (maybe 2.5.1?)
11008 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11011 link_all_deplibs_CXX=yes
11013 output_verbose_link_cmd='echo'
11015 # Archives containing C++ object files must be created using
11016 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11017 # necessary to make sure instantiated templates are included
11019 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11022 # Green Hills C++ Compiler
11023 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11025 # The C++ compiler must be used to create the archive.
11026 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11029 # GNU C++ compiler with Solaris linker
11030 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11031 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11032 if $CC --version | grep -v '^2\.7' > /dev/null; then
11033 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11034 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11035 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11037 # Commands to make compiler produce verbose output that lists
11038 # what "hidden" libraries, object files and flags are used when
11039 # linking a shared library.
11040 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11042 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11044 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11045 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11046 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11048 # Commands to make compiler produce verbose output that lists
11049 # what "hidden" libraries, object files and flags are used when
11050 # linking a shared library.
11051 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11054 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11059 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11060 no_undefined_flag_CXX='${wl}-z,text'
11061 archive_cmds_need_lc_CXX=no
11062 hardcode_shlibpath_var_CXX=no
11063 runpath_var='LD_RUN_PATH'
11065 case $cc_basename in
11067 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11068 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11071 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11072 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11076 sysv5* | sco3.2v5* | sco5v6*)
11077 # Note: We can NOT use -z defs as we might desire, because we do not
11078 # link with -lc, and that would cause any symbols used from libc to
11079 # always be unresolved, which means just about no library would
11080 # ever link correctly. If we're not using GNU ld we use -z text
11081 # though, which does catch some bad symbols but isn't as heavy-handed
11083 # For security reasons, it is highly recommended that you always
11084 # use absolute paths for naming shared libraries, and exclude the
11085 # DT_RUNPATH tag from executables and libraries. But doing so
11086 # requires that you compile everything twice, which is a pain.
11087 # So that behaviour is only enabled if SCOABSPATH is set to a
11088 # non-empty value in the environment. Most likely only useful for
11089 # creating official distributions of packages.
11090 # This is a hack until libtool officially supports absolute path
11091 # names for shared libraries.
11092 no_undefined_flag_CXX='${wl}-z,text'
11093 allow_undefined_flag_CXX='${wl}-z,nodefs'
11094 archive_cmds_need_lc_CXX=no
11095 hardcode_shlibpath_var_CXX=no
11096 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11097 hardcode_libdir_separator_CXX=':'
11098 link_all_deplibs_CXX=yes
11099 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11100 runpath_var='LD_RUN_PATH'
11102 case $cc_basename in
11104 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11105 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11108 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11109 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11114 case $cc_basename in
11116 # NonStop-UX NCC 3.20
11117 # FIXME: insert proper C++ library support
11121 # FIXME: insert proper C++ library support
11127 # FIXME: insert proper C++ library support
11131 # FIXME: insert proper C++ library support
11135 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11136 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11137 test "$ld_shlibs_CXX" = no && can_build_shared=no
11143 ## There is no encapsulation within the following macros, do not change
11144 ## the running order or otherwise move them around unless you know exactly
11145 ## what you are doing...
11147 cat > conftest.$ac_ext <<EOF
11151 Foo (void) { a = 0; }
11157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11158 (eval $ac_compile) 2>&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); }; then
11162 # Parse the compiler output and extract the necessary
11163 # objects, libraries and library flags.
11165 # Sentinel used to keep track of whether or not we are before
11166 # the conftest object file.
11167 pre_test_object_deps_done=no
11169 # The `*' in the case matches for architectures that use `case' in
11170 # $output_verbose_cmd can trigger glob expansion during the loop
11171 # eval without this substitution.
11172 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11174 for p in `eval $output_verbose_link_cmd`; do
11178 # Some compilers place space between "-{L,R}" and the path.
11179 # Remove the space.
11180 if test $p = "-L" \
11181 || test $p = "-R"; then
11188 if test "$pre_test_object_deps_done" = no; then
11191 # Internal compiler library paths should come after those
11192 # provided the user. The postdeps already come after the
11193 # user supplied libs so there is no need to process them.
11194 if test -z "$compiler_lib_search_path_CXX"; then
11195 compiler_lib_search_path_CXX="${prev}${p}"
11197 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11200 # The "-l" case would never come before the object being
11201 # linked, so don't bother handling this case.
11204 if test -z "$postdeps_CXX"; then
11205 postdeps_CXX="${prev}${p}"
11207 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11213 # This assumes that the test object file only shows up
11214 # once in the compiler output.
11215 if test "$p" = "conftest.$objext"; then
11216 pre_test_object_deps_done=yes
11220 if test "$pre_test_object_deps_done" = no; then
11221 if test -z "$predep_objects_CXX"; then
11222 predep_objects_CXX="$p"
11224 predep_objects_CXX="$predep_objects_CXX $p"
11227 if test -z "$postdep_objects_CXX"; then
11228 postdep_objects_CXX="$p"
11230 postdep_objects_CXX="$postdep_objects_CXX $p"
11235 *) ;; # Ignore the rest.
11243 echo "libtool.m4: error: problem compiling CXX test program"
11246 $rm -f confest.$objext
11248 # PORTME: override above test on systems where it is broken
11251 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11252 # hack all around it, let's just trust "g++" to DTRT.
11253 predep_objects_CXX=
11254 postdep_objects_CXX=
11259 case $cc_basename in
11261 # Adding this requires a known-good setup of shared libraries for
11262 # Sun compiler versions before 5.6, else PIC objects from an old
11263 # archive will be linked into the output, leading to subtle bugs.
11264 postdeps_CXX='-lCstd -lCrun'
11271 case " $postdeps_CXX " in
11272 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11275 lt_prog_compiler_wl_CXX=
11276 lt_prog_compiler_pic_CXX=
11277 lt_prog_compiler_static_CXX=
11279 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11280 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11282 # C++ specific cases for pic, static, wl, etc.
11283 if test "$GXX" = yes; then
11284 lt_prog_compiler_wl_CXX='-Wl,'
11285 lt_prog_compiler_static_CXX='-static'
11289 # All AIX code is PIC.
11290 if test "$host_cpu" = ia64; then
11291 # AIX 5 now supports IA64 processor
11292 lt_prog_compiler_static_CXX='-Bstatic'
11296 # FIXME: we need at least 68020 code to build shared libraries, but
11297 # adding the `-m68020' flag to GCC prevents building anything better,
11299 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11301 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11302 # PIC is the default for these OSes.
11304 mingw* | os2* | pw32*)
11305 # This hack is so that the source file can tell whether it is being
11306 # built for inclusion in a dll (and should export symbols for example).
11307 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11309 darwin* | rhapsody*)
11310 # PIC is the default on this platform
11311 # Common symbols not allowed in MH_DYLIB files
11312 lt_prog_compiler_pic_CXX='-fno-common'
11315 # DJGPP does not support shared libraries at all
11316 lt_prog_compiler_pic_CXX=
11319 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11320 # Instead, we relocate shared libraries at runtime.
11323 if test -d /usr/nec; then
11324 lt_prog_compiler_pic_CXX=-Kconform_pic
11328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11329 # not for PA HP-UX.
11334 lt_prog_compiler_pic_CXX='-fPIC'
11339 lt_prog_compiler_pic_CXX='-fPIC'
11345 # All AIX code is PIC.
11346 if test "$host_cpu" = ia64; then
11347 # AIX 5 now supports IA64 processor
11348 lt_prog_compiler_static_CXX='-Bstatic'
11350 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11354 case $cc_basename in
11356 # Green Hills C++ Compiler
11357 # _LT_AC_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"
11362 # PIC is the default on this platform
11363 # Common symbols not allowed in MH_DYLIB files
11364 case $cc_basename in
11366 lt_prog_compiler_pic_CXX='-qnocommon'
11367 lt_prog_compiler_wl_CXX='-Wl,'
11372 case $cc_basename in
11374 lt_prog_compiler_pic_CXX='-KPIC'
11377 # Green Hills C++ Compiler
11378 lt_prog_compiler_pic_CXX='-pic'
11384 freebsd* | kfreebsd*-gnu | dragonfly*)
11385 # FreeBSD uses GNU C++
11387 hpux9* | hpux10* | hpux11*)
11388 case $cc_basename in
11390 lt_prog_compiler_wl_CXX='-Wl,'
11391 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11392 if test "$host_cpu" != ia64; then
11393 lt_prog_compiler_pic_CXX='+Z'
11397 lt_prog_compiler_wl_CXX='-Wl,'
11398 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11404 lt_prog_compiler_pic_CXX='+Z'
11413 # This is c89, which is MS Visual C++ (no shared libs)
11414 # Anyone wants to do a port?
11416 irix5* | irix6* | nonstopux*)
11417 case $cc_basename in
11419 lt_prog_compiler_wl_CXX='-Wl,'
11420 lt_prog_compiler_static_CXX='-non_shared'
11421 # CC pic flag -KPIC is the default.
11428 case $cc_basename in
11431 lt_prog_compiler_wl_CXX='--backend -Wl,'
11432 lt_prog_compiler_pic_CXX='-fPIC'
11436 lt_prog_compiler_wl_CXX='-Wl,'
11437 lt_prog_compiler_pic_CXX='-KPIC'
11438 lt_prog_compiler_static_CXX='-static'
11441 # Portland Group C++ compiler.
11442 lt_prog_compiler_wl_CXX='-Wl,'
11443 lt_prog_compiler_pic_CXX='-fpic'
11444 lt_prog_compiler_static_CXX='-Bstatic'
11448 # Make sure the PIC flag is empty. It appears that all Alpha
11449 # Linux and Compaq Tru64 Unix objects are PIC.
11450 lt_prog_compiler_pic_CXX=
11451 lt_prog_compiler_static_CXX='-non_shared'
11462 case $cc_basename in
11464 lt_prog_compiler_pic_CXX='-W c,exportall'
11472 osf3* | osf4* | osf5*)
11473 case $cc_basename in
11475 lt_prog_compiler_wl_CXX='--backend -Wl,'
11478 # Rational C++ 2.4.1
11479 lt_prog_compiler_pic_CXX='-pic'
11482 # Digital/Compaq C++
11483 lt_prog_compiler_wl_CXX='-Wl,'
11484 # Make sure the PIC flag is empty. It appears that all Alpha
11485 # Linux and Compaq Tru64 Unix objects are PIC.
11486 lt_prog_compiler_pic_CXX=
11487 lt_prog_compiler_static_CXX='-non_shared'
11496 case $cc_basename in
11498 # Sun C++ 4.2, 5.x and Centerline C++
11499 lt_prog_compiler_pic_CXX='-KPIC'
11500 lt_prog_compiler_static_CXX='-Bstatic'
11501 lt_prog_compiler_wl_CXX='-Qoption ld '
11504 # Green Hills C++ Compiler
11505 lt_prog_compiler_pic_CXX='-PIC'
11512 case $cc_basename in
11515 lt_prog_compiler_pic_CXX='-pic'
11516 lt_prog_compiler_static_CXX='-Bstatic'
11520 lt_prog_compiler_pic_CXX='-pic'
11527 case $cc_basename in
11529 # NonStop-UX NCC 3.20
11530 lt_prog_compiler_pic_CXX='-KPIC'
11536 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11537 case $cc_basename in
11539 lt_prog_compiler_wl_CXX='-Wl,'
11540 lt_prog_compiler_pic_CXX='-KPIC'
11541 lt_prog_compiler_static_CXX='-Bstatic'
11548 lt_prog_compiler_can_build_shared_CXX=no
11553 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11554 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11557 # Check to make sure the PIC flag actually works.
11559 if test -n "$lt_prog_compiler_pic_CXX"; then
11561 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11562 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11563 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 lt_prog_compiler_pic_works_CXX=no
11567 ac_outfile=conftest.$ac_objext
11568 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11569 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11570 # Insert the option either (1) after the last *FLAGS variable, or
11571 # (2) before a word containing "conftest.", or (3) at the end.
11572 # Note that $ac_compile itself does not contain backslashes and begins
11573 # with a dollar sign (not a hyphen), so the echo should work correctly.
11574 # The option is referenced via a variable to avoid confusing sed.
11575 lt_compile=`echo "$ac_compile" | $SED \
11576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11578 -e 's:$: $lt_compiler_flag:'`
11579 (eval echo "\"\$as_me:11579: $lt_compile\"" >&5)
11580 (eval "$lt_compile" 2>conftest.err)
11582 cat conftest.err >&5
11583 echo "$as_me:11583: \$? = $ac_status" >&5
11584 if (exit $ac_status) && test -s "$ac_outfile"; then
11585 # The compiler can only warn and ignore the option if not recognized
11586 # So say no if there are warnings other than the usual output.
11587 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11588 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11589 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11590 lt_prog_compiler_pic_works_CXX=yes
11596 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11597 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11599 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11600 case $lt_prog_compiler_pic_CXX in
11602 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11605 lt_prog_compiler_pic_CXX=
11606 lt_prog_compiler_can_build_shared_CXX=no
11611 # For platforms which do not support PIC, -DPIC is meaningless:
11613 lt_prog_compiler_pic_CXX=
11616 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11621 # Check to make sure the static flag actually works.
11623 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11624 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11625 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11626 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11629 lt_prog_compiler_static_works_CXX=no
11630 save_LDFLAGS="$LDFLAGS"
11631 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11632 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11633 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11634 # The linker can only warn and ignore the option if not recognized
11635 # So say no if there are warnings
11636 if test -s conftest.err; then
11637 # Append any errors to the config.log.
11638 cat conftest.err 1>&5
11639 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11641 if diff conftest.exp conftest.er2 >/dev/null; then
11642 lt_prog_compiler_static_works_CXX=yes
11645 lt_prog_compiler_static_works_CXX=yes
11649 LDFLAGS="$save_LDFLAGS"
11652 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11653 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11655 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11658 lt_prog_compiler_static_CXX=
11662 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11663 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11664 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11665 echo $ECHO_N "(cached) $ECHO_C" >&6
11667 lt_cv_prog_compiler_c_o_CXX=no
11668 $rm -r conftest 2>/dev/null
11672 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11674 lt_compiler_flag="-o out/conftest2.$ac_objext"
11675 # Insert the option either (1) after the last *FLAGS variable, or
11676 # (2) before a word containing "conftest.", or (3) at the end.
11677 # Note that $ac_compile itself does not contain backslashes and begins
11678 # with a dollar sign (not a hyphen), so the echo should work correctly.
11679 lt_compile=`echo "$ac_compile" | $SED \
11680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11682 -e 's:$: $lt_compiler_flag:'`
11683 (eval echo "\"\$as_me:11683: $lt_compile\"" >&5)
11684 (eval "$lt_compile" 2>out/conftest.err)
11686 cat out/conftest.err >&5
11687 echo "$as_me:11687: \$? = $ac_status" >&5
11688 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11690 # The compiler can only warn and ignore the option if not recognized
11691 # So say no if there are warnings
11692 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11693 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11694 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11695 lt_cv_prog_compiler_c_o_CXX=yes
11700 # SGI C++ compiler will create directory out/ii_files/ for
11701 # template instantiation
11702 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11703 $rm out/* && rmdir out
11709 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11710 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11713 hard_links="nottested"
11714 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11715 # do not overwrite the value of need_locks provided by the user
11716 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11717 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11720 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11722 ln conftest.a conftest.b 2>&5 || hard_links=no
11723 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11724 echo "$as_me:$LINENO: result: $hard_links" >&5
11725 echo "${ECHO_T}$hard_links" >&6
11726 if test "$hard_links" = no; then
11727 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11728 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11735 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11736 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11738 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11741 # If we're using GNU nm, then we don't want the "-C" option.
11742 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11743 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11744 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11746 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'
11750 export_symbols_cmds_CXX="$ltdll_cmds"
11753 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11756 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11760 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11761 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11762 test "$ld_shlibs_CXX" = no && can_build_shared=no
11765 # Do we need to explicitly link libc?
11767 case "x$archive_cmds_need_lc_CXX" in
11769 # Assume -lc should be added
11770 archive_cmds_need_lc_CXX=yes
11772 if test "$enable_shared" = yes && test "$GCC" = yes; then
11773 case $archive_cmds_CXX in
11775 # FIXME: we may have to deal with multi-command sequences.
11778 # Test whether the compiler implicitly links with -lc since on some
11779 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11780 # to ld, don't add -lc before -lgcc.
11781 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11782 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11784 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11787 (eval $ac_compile) 2>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } 2>conftest.err; then
11793 libobjs=conftest.$ac_objext
11795 wl=$lt_prog_compiler_wl_CXX
11796 pic_flag=$lt_prog_compiler_pic_CXX
11802 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11803 allow_undefined_flag_CXX=
11804 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11805 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }
11810 archive_cmds_need_lc_CXX=no
11812 archive_cmds_need_lc_CXX=yes
11814 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11816 cat conftest.err 1>&5
11819 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11820 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11827 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11828 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11829 library_names_spec=
11830 libname_spec='lib$name'
11834 postuninstall_cmds=
11838 shlibpath_overrides_runpath=unknown
11840 dynamic_linker="$host_os ld.so"
11841 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11842 if test "$GCC" = yes; then
11843 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11844 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11845 # if the path contains ";" then we assume it to be the separator
11846 # otherwise default to the standard path separator (i.e. ":") - it is
11847 # assumed that no part of a normal pathname contains ";" but that should
11848 # okay in the real world where ";" in dirpaths is itself problematic.
11849 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11851 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11854 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11856 need_lib_prefix=unknown
11857 hardcode_into_libs=no
11859 # when you set need_version to no, make sure it does not cause -set_version
11860 # flags to be left without arguments
11861 need_version=unknown
11866 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11867 shlibpath_var=LIBPATH
11869 # AIX 3 has no versioning support, so we append a major version to the name.
11870 soname_spec='${libname}${release}${shared_ext}$major'
11877 hardcode_into_libs=yes
11878 if test "$host_cpu" = ia64; then
11879 # AIX 5 supports IA64
11880 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11881 shlibpath_var=LD_LIBRARY_PATH
11883 # With GCC up to 2.95.x, collect2 would create an import file
11884 # for dependence libraries. The import file would start with
11885 # the line `#! .'. This would cause the generated library to
11886 # depend on `.', always an invalid library. This was fixed in
11887 # development snapshots of GCC prior to 3.0.
11889 aix4 | aix4.[01] | aix4.[01].*)
11890 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11892 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11895 can_build_shared=no
11899 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11900 # soname into executable. Probably we can add versioning support to
11901 # collect2, so additional links can be useful in future.
11902 if test "$aix_use_runtimelinking" = yes; then
11903 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11904 # instead of lib<name>.a to let people know that these are not
11905 # typical AIX shared libraries.
11906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11908 # We preserve .a as extension for shared libraries through AIX4.2
11909 # and later when we are not doing run time linking.
11910 library_names_spec='${libname}${release}.a $libname.a'
11911 soname_spec='${libname}${release}${shared_ext}$major'
11913 shlibpath_var=LIBPATH
11918 library_names_spec='$libname.ixlibrary $libname.a'
11919 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11920 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
11924 library_names_spec='${libname}${shared_ext}'
11925 dynamic_linker="$host_os ld.so"
11926 shlibpath_var=LIBRARY_PATH
11932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11933 soname_spec='${libname}${release}${shared_ext}$major'
11934 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11935 shlibpath_var=LD_LIBRARY_PATH
11936 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11937 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11938 # the default ld.so.conf also contains /usr/contrib/lib and
11939 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11940 # libtool to hard-code these into programs
11943 cygwin* | mingw* | pw32*)
11944 version_type=windows
11949 case $GCC,$host_os in
11950 yes,cygwin* | yes,mingw* | yes,pw32*)
11951 library_names_spec='$libname.dll.a'
11952 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11953 postinstall_cmds='base_file=`basename \${file}`~
11954 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11955 dldir=$destdir/`dirname \$dlpath`~
11956 test -d \$dldir || mkdir -p \$dldir~
11957 $install_prog $dir/$dlname \$dldir/$dlname~
11958 chmod a+x \$dldir/$dlname'
11959 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11960 dlpath=$dir/\$dldll~
11962 shlibpath_overrides_runpath=yes
11966 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11967 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11968 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11971 # MinGW DLLs use traditional 'lib' prefix
11972 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11973 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11974 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11975 # It is most probably a Windows format PATH printed by
11976 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11977 # path with ; separators, and with drive letters. We can handle the
11978 # drive letters (cygwin fileutils understands them), so leave them,
11979 # especially as we might pass files found there to a mingw objdump,
11980 # which wouldn't understand a cygwinified path. Ahh.
11981 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11983 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11987 # pw32 DLLs use 'pw' prefix rather than 'lib'
11988 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11994 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11997 dynamic_linker='Win32 ld.exe'
11998 # FIXME: first we should search . and the directory the executable is in
12002 darwin* | rhapsody*)
12003 dynamic_linker="$host_os dyld"
12004 version_type=darwin
12007 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12008 soname_spec='${libname}${release}${major}$shared_ext'
12009 shlibpath_overrides_runpath=yes
12010 shlibpath_var=DYLD_LIBRARY_PATH
12011 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12012 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12013 if test "$GCC" = yes; then
12014 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12016 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12018 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12026 soname_spec='${libname}${release}${shared_ext}$major'
12027 shlibpath_var=LD_LIBRARY_PATH
12038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12039 soname_spec='${libname}${release}${shared_ext}$major'
12040 shlibpath_var=LD_LIBRARY_PATH
12041 shlibpath_overrides_runpath=no
12042 hardcode_into_libs=yes
12043 dynamic_linker='GNU ld.so'
12046 freebsd* | dragonfly*)
12047 # DragonFly does not have aout. When/if they implement a new
12048 # versioning mechanism, adjust this.
12049 if test -x /usr/bin/objformat; then
12050 objformat=`/usr/bin/objformat`
12053 freebsd[123]*) objformat=aout ;;
12054 *) objformat=elf ;;
12057 version_type=freebsd-$objformat
12058 case $version_type in
12060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12065 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12069 shlibpath_var=LD_LIBRARY_PATH
12072 shlibpath_overrides_runpath=yes
12074 freebsd3.[01]* | freebsdelf3.[01]*)
12075 shlibpath_overrides_runpath=yes
12076 hardcode_into_libs=yes
12078 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12079 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12080 shlibpath_overrides_runpath=no
12081 hardcode_into_libs=yes
12083 freebsd*) # from 4.6 on
12084 shlibpath_overrides_runpath=yes
12085 hardcode_into_libs=yes
12094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12095 soname_spec='${libname}${release}${shared_ext}$major'
12096 shlibpath_var=LD_LIBRARY_PATH
12097 hardcode_into_libs=yes
12100 hpux9* | hpux10* | hpux11*)
12101 # Give a soname corresponding to the major version so that dld.sl refuses to
12102 # link against other versions.
12109 hardcode_into_libs=yes
12110 dynamic_linker="$host_os dld.so"
12111 shlibpath_var=LD_LIBRARY_PATH
12112 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12114 soname_spec='${libname}${release}${shared_ext}$major'
12115 if test "X$HPUX_IA64_MODE" = X32; then
12116 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12118 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12124 hardcode_into_libs=yes
12125 dynamic_linker="$host_os dld.sl"
12126 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12129 soname_spec='${libname}${release}${shared_ext}$major'
12130 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12135 dynamic_linker="$host_os dld.sl"
12136 shlibpath_var=SHLIB_PATH
12137 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12139 soname_spec='${libname}${release}${shared_ext}$major'
12142 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12143 postinstall_cmds='chmod 555 $lib'
12150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12151 soname_spec='${libname}${release}${shared_ext}$major'
12152 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12153 shlibpath_var=LD_LIBRARY_PATH
12154 shlibpath_overrides_runpath=no
12155 hardcode_into_libs=yes
12158 irix5* | irix6* | nonstopux*)
12160 nonstopux*) version_type=nonstopux ;;
12162 if test "$lt_cv_prog_gnu_ld" = yes; then
12170 soname_spec='${libname}${release}${shared_ext}$major'
12171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12173 irix5* | nonstopux*)
12174 libsuff= shlibsuff=
12177 case $LD in # libtool.m4 will add one of these switches to LD
12178 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12179 libsuff= shlibsuff= libmagic=32-bit;;
12180 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12181 libsuff=32 shlibsuff=N32 libmagic=N32;;
12182 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12183 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12184 *) libsuff= shlibsuff= libmagic=never-match;;
12188 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12189 shlibpath_overrides_runpath=no
12190 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12191 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12192 hardcode_into_libs=yes
12195 # No shared lib support for Linux oldld, aout, or coff.
12196 linux*oldld* | linux*aout* | linux*coff*)
12200 # This must be Linux ELF.
12205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12206 soname_spec='${libname}${release}${shared_ext}$major'
12207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12208 shlibpath_var=LD_LIBRARY_PATH
12209 shlibpath_overrides_runpath=no
12210 # This implies no fast_install, which is unacceptable.
12211 # Some rework will be needed to allow for fast_install
12212 # before this can be enabled.
12213 hardcode_into_libs=yes
12215 # Append ld.so.conf contents to the search path
12216 if test -f /etc/ld.so.conf; then
12217 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12218 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12221 # We used to test for /lib/ld.so.1 and disable shared libraries on
12222 # powerpc, because MkLinux only supported shared libraries with the
12223 # GNU dynamic linker. Since this was broken with cross compilers,
12224 # most powerpc-linux boxes support dynamic linking these days and
12225 # people can always --disable-shared, the test was removed, and we
12226 # assume the GNU/Linux dynamic linker is in use.
12227 dynamic_linker='GNU/Linux ld.so'
12234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12235 soname_spec='${libname}${release}${shared_ext}$major'
12236 shlibpath_var=LD_LIBRARY_PATH
12237 shlibpath_overrides_runpath=no
12238 hardcode_into_libs=yes
12239 dynamic_linker='GNU ld.so'
12246 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12249 dynamic_linker='NetBSD (a.out) ld.so'
12251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12252 soname_spec='${libname}${release}${shared_ext}$major'
12253 dynamic_linker='NetBSD ld.elf_so'
12255 shlibpath_var=LD_LIBRARY_PATH
12256 shlibpath_overrides_runpath=yes
12257 hardcode_into_libs=yes
12262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12263 shlibpath_var=LD_LIBRARY_PATH
12264 shlibpath_overrides_runpath=yes
12271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12272 soname_spec='${libname}${release}${shared_ext}$major'
12273 shlibpath_var=LD_LIBRARY_PATH
12274 shlibpath_overrides_runpath=yes
12279 sys_lib_dlsearch_path_spec="/usr/lib"
12281 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12283 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12284 *) need_version=no ;;
12286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12288 shlibpath_var=LD_LIBRARY_PATH
12289 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12291 openbsd2.[89] | openbsd2.[89].*)
12292 shlibpath_overrides_runpath=no
12295 shlibpath_overrides_runpath=yes
12299 shlibpath_overrides_runpath=yes
12304 libname_spec='$name'
12307 library_names_spec='$libname${shared_ext} $libname.a'
12308 dynamic_linker='OS/2 ld.exe'
12309 shlibpath_var=LIBPATH
12312 osf3* | osf4* | osf5*)
12316 soname_spec='${libname}${release}${shared_ext}$major'
12317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12318 shlibpath_var=LD_LIBRARY_PATH
12319 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12320 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12328 soname_spec='${libname}${release}${shared_ext}$major'
12329 shlibpath_var=LD_LIBRARY_PATH
12330 shlibpath_overrides_runpath=yes
12331 hardcode_into_libs=yes
12332 # ldd complains unless libraries are executable
12333 postinstall_cmds='chmod +x $lib'
12338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12339 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12340 shlibpath_var=LD_LIBRARY_PATH
12341 shlibpath_overrides_runpath=yes
12342 if test "$with_gnu_ld" = yes; then
12350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12351 soname_spec='${libname}${release}${shared_ext}$major'
12352 shlibpath_var=LD_LIBRARY_PATH
12353 case $host_vendor in
12355 shlibpath_overrides_runpath=no
12357 export_dynamic_flag_spec='${wl}-Blargedynsym'
12358 runpath_var=LD_RUN_PATH
12366 shlibpath_overrides_runpath=no
12367 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12373 if test -d /usr/nec ;then
12375 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12376 soname_spec='$libname${shared_ext}.$major'
12377 shlibpath_var=LD_LIBRARY_PATH
12381 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12382 version_type=freebsd-elf
12385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12386 soname_spec='${libname}${release}${shared_ext}$major'
12387 shlibpath_var=LD_LIBRARY_PATH
12388 hardcode_into_libs=yes
12389 if test "$with_gnu_ld" = yes; then
12390 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12391 shlibpath_overrides_runpath=no
12393 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12394 shlibpath_overrides_runpath=yes
12397 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12401 sys_lib_dlsearch_path_spec='/usr/lib'
12406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12407 soname_spec='${libname}${release}${shared_ext}$major'
12408 shlibpath_var=LD_LIBRARY_PATH
12415 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12416 echo "${ECHO_T}$dynamic_linker" >&6
12417 test "$dynamic_linker" = no && can_build_shared=no
12419 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12420 if test "$GCC" = yes; then
12421 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12424 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12425 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12426 hardcode_action_CXX=
12427 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12428 test -n "$runpath_var_CXX" || \
12429 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12431 # We can hardcode non-existant directories.
12432 if test "$hardcode_direct_CXX" != no &&
12433 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12434 # have to relink, otherwise we might link with an installed library
12435 # when we should be linking with a yet-to-be-installed one
12436 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12437 test "$hardcode_minus_L_CXX" != no; then
12438 # Linking always hardcodes the temporary library directory.
12439 hardcode_action_CXX=relink
12441 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12442 hardcode_action_CXX=immediate
12445 # We cannot hardcode anything, or else we can only hardcode existing
12447 hardcode_action_CXX=unsupported
12449 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12450 echo "${ECHO_T}$hardcode_action_CXX" >&6
12452 if test "$hardcode_action_CXX" = relink; then
12453 # Fast installation is not supported
12454 enable_fast_install=no
12455 elif test "$shlibpath_overrides_runpath" = yes ||
12456 test "$enable_shared" = no; then
12457 # Fast installation is not necessary
12458 enable_fast_install=needless
12462 # The else clause should only fire when bootstrapping the
12463 # libtool distribution, otherwise you forgot to ship ltmain.sh
12464 # with your package, and you will get complaints that there are
12465 # no rules to generate ltmain.sh.
12466 if test -f "$ltmain"; then
12467 # See if we are running on zsh, and set the options which allow our commands through
12468 # without removal of \ escapes.
12469 if test -n "${ZSH_VERSION+set}" ; then
12470 setopt NO_GLOB_SUBST
12472 # Now quote all the things that may contain metacharacters while being
12473 # careful not to overquote the AC_SUBSTed values. We take copies of the
12474 # variables and quote the copies for generation of the libtool script.
12475 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12477 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12478 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12479 deplibs_check_method reload_flag reload_cmds need_locks \
12480 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12481 lt_cv_sys_global_symbol_to_c_name_address \
12482 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12483 old_postinstall_cmds old_postuninstall_cmds \
12487 lt_prog_compiler_wl_CXX \
12488 lt_prog_compiler_pic_CXX \
12489 lt_prog_compiler_static_CXX \
12490 lt_prog_compiler_no_builtin_flag_CXX \
12491 export_dynamic_flag_spec_CXX \
12492 thread_safe_flag_spec_CXX \
12493 whole_archive_flag_spec_CXX \
12494 enable_shared_with_static_runtimes_CXX \
12495 old_archive_cmds_CXX \
12496 old_archive_from_new_cmds_CXX \
12497 predep_objects_CXX \
12498 postdep_objects_CXX \
12501 compiler_lib_search_path_CXX \
12503 archive_expsym_cmds_CXX \
12504 postinstall_cmds_CXX \
12505 postuninstall_cmds_CXX \
12506 old_archive_from_expsyms_cmds_CXX \
12507 allow_undefined_flag_CXX \
12508 no_undefined_flag_CXX \
12509 export_symbols_cmds_CXX \
12510 hardcode_libdir_flag_spec_CXX \
12511 hardcode_libdir_flag_spec_ld_CXX \
12512 hardcode_libdir_separator_CXX \
12513 hardcode_automatic_CXX \
12515 module_expsym_cmds_CXX \
12516 lt_cv_prog_compiler_c_o_CXX \
12517 exclude_expsyms_CXX \
12518 include_expsyms_CXX; do
12521 old_archive_cmds_CXX | \
12522 old_archive_from_new_cmds_CXX | \
12523 archive_cmds_CXX | \
12524 archive_expsym_cmds_CXX | \
12525 module_cmds_CXX | \
12526 module_expsym_cmds_CXX | \
12527 old_archive_from_expsyms_cmds_CXX | \
12528 export_symbols_cmds_CXX | \
12529 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12530 postinstall_cmds | postuninstall_cmds | \
12531 old_postinstall_cmds | old_postuninstall_cmds | \
12532 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12533 # Double-quote double-evaled strings.
12534 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12537 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12543 *'\$0 --fallback-echo"')
12544 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12550 cat <<__EOF__ >> "$cfgfile"
12551 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12553 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12555 # Shell to use when invoking shell scripts.
12558 # Whether or not to build shared libraries.
12559 build_libtool_libs=$enable_shared
12561 # Whether or not to build static libraries.
12562 build_old_libs=$enable_static
12564 # Whether or not to add -lc for building shared libraries.
12565 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12567 # Whether or not to disallow shared libs when runtime libs are static
12568 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12570 # Whether or not to optimize for fast installation.
12571 fast_install=$enable_fast_install
12574 host_alias=$host_alias
12578 # The build system.
12579 build_alias=$build_alias
12583 # An echo program that does not interpret backslashes.
12588 AR_FLAGS=$lt_AR_FLAGS
12593 # LTCC compiler flags.
12594 LTCFLAGS=$lt_LTCFLAGS
12596 # A language-specific compiler.
12597 CC=$lt_compiler_CXX
12599 # Is the compiler the GNU C compiler?
12605 # The linker used to build libraries.
12608 # Whether we need hard or soft links.
12611 # A BSD-compatible nm program.
12614 # A symbol stripping program
12617 # Used to examine libraries when file_magic_cmd begins "file"
12618 MAGIC_CMD=$MAGIC_CMD
12620 # Used on cygwin: DLL creation program.
12623 # Used on cygwin: object dumper.
12626 # Used on cygwin: assembler.
12629 # The name of the directory that contains temporary libtool files.
12632 # How to create reloadable object files.
12633 reload_flag=$lt_reload_flag
12634 reload_cmds=$lt_reload_cmds
12636 # How to pass a linker flag through the compiler.
12637 wl=$lt_lt_prog_compiler_wl_CXX
12639 # Object file suffix (normally "o").
12640 objext="$ac_objext"
12642 # Old archive suffix (normally "a").
12645 # Shared library suffix (normally ".so").
12646 shrext_cmds='$shrext_cmds'
12648 # Executable file suffix (normally "").
12651 # Additional compiler flags for building library objects.
12652 pic_flag=$lt_lt_prog_compiler_pic_CXX
12655 # What is the maximum length of a command?
12656 max_cmd_len=$lt_cv_sys_max_cmd_len
12658 # Does compiler simultaneously support -c and -o options?
12659 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12661 # Must we lock files when doing compilation?
12662 need_locks=$lt_need_locks
12664 # Do we need the lib prefix for modules?
12665 need_lib_prefix=$need_lib_prefix
12667 # Do we need a version for libraries?
12668 need_version=$need_version
12670 # Whether dlopen is supported.
12671 dlopen_support=$enable_dlopen
12673 # Whether dlopen of programs is supported.
12674 dlopen_self=$enable_dlopen_self
12676 # Whether dlopen of statically linked programs is supported.
12677 dlopen_self_static=$enable_dlopen_self_static
12679 # Compiler flag to prevent dynamic linking.
12680 link_static_flag=$lt_lt_prog_compiler_static_CXX
12682 # Compiler flag to turn off builtin functions.
12683 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12685 # Compiler flag to allow reflexive dlopens.
12686 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12688 # Compiler flag to generate shared objects directly from archives.
12689 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12691 # Compiler flag to generate thread-safe objects.
12692 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12694 # Library versioning type.
12695 version_type=$version_type
12697 # Format of library name prefix.
12698 libname_spec=$lt_libname_spec
12700 # List of archive names. First name is the real one, the rest are links.
12701 # The last name is the one that the linker finds with -lNAME.
12702 library_names_spec=$lt_library_names_spec
12704 # The coded name of the library, if different from the real name.
12705 soname_spec=$lt_soname_spec
12707 # Commands used to build and install an old-style archive.
12709 old_archive_cmds=$lt_old_archive_cmds_CXX
12710 old_postinstall_cmds=$lt_old_postinstall_cmds
12711 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12713 # Create an old-style archive from a shared archive.
12714 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12716 # Create a temporary old-style archive to link instead of a shared archive.
12717 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12719 # Commands used to build and install a shared archive.
12720 archive_cmds=$lt_archive_cmds_CXX
12721 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12722 postinstall_cmds=$lt_postinstall_cmds
12723 postuninstall_cmds=$lt_postuninstall_cmds
12725 # Commands used to build a loadable module (assumed same as above if empty)
12726 module_cmds=$lt_module_cmds_CXX
12727 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12729 # Commands to strip libraries.
12730 old_striplib=$lt_old_striplib
12731 striplib=$lt_striplib
12733 # Dependencies to place before the objects being linked to create a
12735 predep_objects=$lt_predep_objects_CXX
12737 # Dependencies to place after the objects being linked to create a
12739 postdep_objects=$lt_postdep_objects_CXX
12741 # Dependencies to place before the objects being linked to create a
12743 predeps=$lt_predeps_CXX
12745 # Dependencies to place after the objects being linked to create a
12747 postdeps=$lt_postdeps_CXX
12749 # The library search path used internally by the compiler when linking
12750 # a shared library.
12751 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12753 # Method to check whether dependent libraries are shared objects.
12754 deplibs_check_method=$lt_deplibs_check_method
12756 # Command to use when deplibs_check_method == file_magic.
12757 file_magic_cmd=$lt_file_magic_cmd
12759 # Flag that allows shared libraries with undefined symbols to be built.
12760 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12762 # Flag that forces no undefined symbols.
12763 no_undefined_flag=$lt_no_undefined_flag_CXX
12765 # Commands used to finish a libtool library installation in a directory.
12766 finish_cmds=$lt_finish_cmds
12768 # Same as above, but a single script fragment to be evaled but not shown.
12769 finish_eval=$lt_finish_eval
12771 # Take the output of nm and produce a listing of raw symbols and C names.
12772 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12774 # Transform the output of nm in a proper C declaration
12775 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12777 # Transform the output of nm in a C name address pair
12778 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12780 # This is the shared library runtime path variable.
12781 runpath_var=$runpath_var
12783 # This is the shared library path variable.
12784 shlibpath_var=$shlibpath_var
12786 # Is shlibpath searched before the hard-coded library search path?
12787 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12789 # How to hardcode a shared library path into an executable.
12790 hardcode_action=$hardcode_action_CXX
12792 # Whether we should hardcode library paths into libraries.
12793 hardcode_into_libs=$hardcode_into_libs
12795 # Flag to hardcode \$libdir into a binary during linking.
12796 # This must work even if \$libdir does not exist.
12797 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12799 # If ld is used when linking, flag to hardcode \$libdir into
12800 # a binary during linking. This must work even if \$libdir does
12802 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12804 # Whether we need a single -rpath flag with a separated argument.
12805 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12807 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12808 # resulting binary.
12809 hardcode_direct=$hardcode_direct_CXX
12811 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12812 # resulting binary.
12813 hardcode_minus_L=$hardcode_minus_L_CXX
12815 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12816 # the resulting binary.
12817 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12819 # Set to yes if building a shared library automatically hardcodes DIR into the library
12820 # and all subsequent libraries and executables linked against it.
12821 hardcode_automatic=$hardcode_automatic_CXX
12823 # Variables whose values should be saved in libtool wrapper scripts and
12824 # restored at relink time.
12825 variables_saved_for_relink="$variables_saved_for_relink"
12827 # Whether libtool must link a program against all its dependency libraries.
12828 link_all_deplibs=$link_all_deplibs_CXX
12830 # Compile-time system search path for libraries
12831 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12833 # Run-time system search path for libraries
12834 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12836 # Fix the shell variable \$srcfile for the compiler.
12837 fix_srcfile_path="$fix_srcfile_path_CXX"
12839 # Set to yes if exported symbols are required.
12840 always_export_symbols=$always_export_symbols_CXX
12842 # The commands to list exported symbols.
12843 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12845 # The commands to extract the exported symbol list from a shared archive.
12846 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12848 # Symbols that should not be listed in the preloaded symbols.
12849 exclude_expsyms=$lt_exclude_expsyms_CXX
12851 # Symbols that must always be exported.
12852 include_expsyms=$lt_include_expsyms_CXX
12854 # ### END LIBTOOL TAG CONFIG: $tagname
12860 # If there is no Makefile yet, we rely on a make rule to execute
12861 # `config.status --recheck' to rerun these tests and create the
12862 # libtool script then.
12863 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12864 if test -f "$ltmain_in"; then
12865 test -f Makefile && make "$ltmain"
12871 ac_cpp='$CPP $CPPFLAGS'
12872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12880 with_gnu_ldcxx=$with_gnu_ld
12881 with_gnu_ld=$lt_save_with_gnu_ld
12882 lt_cv_path_LDCXX=$lt_cv_path_LD
12883 lt_cv_path_LD=$lt_save_path_LD
12884 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12885 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12893 if test -n "$F77" && test "X$F77" != "Xno"; then
12896 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12897 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12898 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12901 archive_cmds_need_lc_F77=no
12902 allow_undefined_flag_F77=
12903 always_export_symbols_F77=no
12904 archive_expsym_cmds_F77=
12905 export_dynamic_flag_spec_F77=
12906 hardcode_direct_F77=no
12907 hardcode_libdir_flag_spec_F77=
12908 hardcode_libdir_flag_spec_ld_F77=
12909 hardcode_libdir_separator_F77=
12910 hardcode_minus_L_F77=no
12911 hardcode_automatic_F77=no
12913 module_expsym_cmds_F77=
12914 link_all_deplibs_F77=unknown
12915 old_archive_cmds_F77=$old_archive_cmds
12916 no_undefined_flag_F77=
12917 whole_archive_flag_spec_F77=
12918 enable_shared_with_static_runtimes_F77=no
12920 # Source file extension for f77 test sources.
12923 # Object file extension for compiled f77 test sources.
12927 # Code to be used in simple compile tests
12928 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12930 # Code to be used in simple link tests
12931 lt_simple_link_test_code=" program t\n end\n"
12933 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12935 # If no C compiler was specified, use CC.
12938 # If no C compiler flags were specified, use CFLAGS.
12939 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12941 # Allow CC to be a program name with arguments.
12945 # save warnings/boilerplate of simple test code
12946 ac_outfile=conftest.$ac_objext
12947 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12948 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12949 _lt_compiler_boilerplate=`cat conftest.err`
12952 ac_outfile=conftest.$ac_objext
12953 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12954 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12955 _lt_linker_boilerplate=`cat conftest.err`
12959 # Allow CC to be a program name with arguments.
12964 for cc_temp in $compiler""; do
12966 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12967 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12972 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12975 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12976 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12977 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12978 echo "${ECHO_T}$can_build_shared" >&6
12980 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12981 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12982 test "$can_build_shared" = "no" && enable_shared=no
12984 # On AIX, shared libraries and static libraries use the same namespace, and
12985 # are all built from PIC.
12988 test "$enable_shared" = yes && enable_static=no
12989 if test -n "$RANLIB"; then
12990 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12991 postinstall_cmds='$RANLIB $lib'
12995 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12996 test "$enable_shared" = yes && enable_static=no
13000 echo "$as_me:$LINENO: result: $enable_shared" >&5
13001 echo "${ECHO_T}$enable_shared" >&6
13003 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13004 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13005 # Make sure either enable_shared or enable_static is yes.
13006 test "$enable_shared" = yes || enable_static=yes
13007 echo "$as_me:$LINENO: result: $enable_static" >&5
13008 echo "${ECHO_T}$enable_static" >&6
13013 lt_prog_compiler_wl_F77=
13014 lt_prog_compiler_pic_F77=
13015 lt_prog_compiler_static_F77=
13017 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13018 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13020 if test "$GCC" = yes; then
13021 lt_prog_compiler_wl_F77='-Wl,'
13022 lt_prog_compiler_static_F77='-static'
13026 # All AIX code is PIC.
13027 if test "$host_cpu" = ia64; then
13028 # AIX 5 now supports IA64 processor
13029 lt_prog_compiler_static_F77='-Bstatic'
13034 # FIXME: we need at least 68020 code to build shared libraries, but
13035 # adding the `-m68020' flag to GCC prevents building anything better,
13037 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13040 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13041 # PIC is the default for these OSes.
13044 mingw* | pw32* | os2*)
13045 # This hack is so that the source file can tell whether it is being
13046 # built for inclusion in a dll (and should export symbols for example).
13047 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13050 darwin* | rhapsody*)
13051 # PIC is the default on this platform
13052 # Common symbols not allowed in MH_DYLIB files
13053 lt_prog_compiler_pic_F77='-fno-common'
13057 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13058 # Instead, we relocate shared libraries at runtime.
13062 # Just because we use GCC doesn't mean we suddenly get shared libraries
13063 # on systems that don't support them.
13064 lt_prog_compiler_can_build_shared_F77=no
13069 if test -d /usr/nec; then
13070 lt_prog_compiler_pic_F77=-Kconform_pic
13075 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13076 # not for PA HP-UX.
13082 lt_prog_compiler_pic_F77='-fPIC'
13088 lt_prog_compiler_pic_F77='-fPIC'
13092 # PORTME Check for flag to pass linker flags through the system compiler.
13095 lt_prog_compiler_wl_F77='-Wl,'
13096 if test "$host_cpu" = ia64; then
13097 # AIX 5 now supports IA64 processor
13098 lt_prog_compiler_static_F77='-Bstatic'
13100 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13104 # PIC is the default on this platform
13105 # Common symbols not allowed in MH_DYLIB files
13106 case $cc_basename in
13108 lt_prog_compiler_pic_F77='-qnocommon'
13109 lt_prog_compiler_wl_F77='-Wl,'
13114 mingw* | pw32* | os2*)
13115 # This hack is so that the source file can tell whether it is being
13116 # built for inclusion in a dll (and should export symbols for example).
13117 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13120 hpux9* | hpux10* | hpux11*)
13121 lt_prog_compiler_wl_F77='-Wl,'
13122 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13123 # not for PA HP-UX.
13129 lt_prog_compiler_pic_F77='+Z'
13132 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13133 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13136 irix5* | irix6* | nonstopux*)
13137 lt_prog_compiler_wl_F77='-Wl,'
13138 # PIC (with -KPIC) is the default.
13139 lt_prog_compiler_static_F77='-non_shared'
13143 lt_prog_compiler_pic_F77='-KPIC'
13144 lt_prog_compiler_static_F77='-Bstatic'
13148 case $cc_basename in
13150 lt_prog_compiler_wl_F77='-Wl,'
13151 lt_prog_compiler_pic_F77='-KPIC'
13152 lt_prog_compiler_static_F77='-static'
13154 pgcc* | pgf77* | pgf90* | pgf95*)
13155 # Portland Group compilers (*not* the Pentium gcc compiler,
13156 # which looks to be a dead project)
13157 lt_prog_compiler_wl_F77='-Wl,'
13158 lt_prog_compiler_pic_F77='-fpic'
13159 lt_prog_compiler_static_F77='-Bstatic'
13162 lt_prog_compiler_wl_F77='-Wl,'
13163 # All Alpha code is PIC.
13164 lt_prog_compiler_static_F77='-non_shared'
13169 osf3* | osf4* | osf5*)
13170 lt_prog_compiler_wl_F77='-Wl,'
13171 # All OSF/1 code is PIC.
13172 lt_prog_compiler_static_F77='-non_shared'
13176 lt_prog_compiler_pic_F77='-KPIC'
13177 lt_prog_compiler_static_F77='-Bstatic'
13178 case $cc_basename in
13179 f77* | f90* | f95*)
13180 lt_prog_compiler_wl_F77='-Qoption ld ';;
13182 lt_prog_compiler_wl_F77='-Wl,';;
13187 lt_prog_compiler_wl_F77='-Qoption ld '
13188 lt_prog_compiler_pic_F77='-PIC'
13189 lt_prog_compiler_static_F77='-Bstatic'
13192 sysv4 | sysv4.2uw2* | sysv4.3*)
13193 lt_prog_compiler_wl_F77='-Wl,'
13194 lt_prog_compiler_pic_F77='-KPIC'
13195 lt_prog_compiler_static_F77='-Bstatic'
13199 if test -d /usr/nec ;then
13200 lt_prog_compiler_pic_F77='-Kconform_pic'
13201 lt_prog_compiler_static_F77='-Bstatic'
13205 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13206 lt_prog_compiler_wl_F77='-Wl,'
13207 lt_prog_compiler_pic_F77='-KPIC'
13208 lt_prog_compiler_static_F77='-Bstatic'
13212 lt_prog_compiler_wl_F77='-Wl,'
13213 lt_prog_compiler_can_build_shared_F77=no
13217 lt_prog_compiler_pic_F77='-pic'
13218 lt_prog_compiler_static_F77='-Bstatic'
13222 lt_prog_compiler_can_build_shared_F77=no
13227 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13228 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13231 # Check to make sure the PIC flag actually works.
13233 if test -n "$lt_prog_compiler_pic_F77"; then
13235 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13236 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13237 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13240 lt_prog_compiler_pic_works_F77=no
13241 ac_outfile=conftest.$ac_objext
13242 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13243 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13244 # Insert the option either (1) after the last *FLAGS variable, or
13245 # (2) before a word containing "conftest.", or (3) at the end.
13246 # Note that $ac_compile itself does not contain backslashes and begins
13247 # with a dollar sign (not a hyphen), so the echo should work correctly.
13248 # The option is referenced via a variable to avoid confusing sed.
13249 lt_compile=`echo "$ac_compile" | $SED \
13250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13252 -e 's:$: $lt_compiler_flag:'`
13253 (eval echo "\"\$as_me:13253: $lt_compile\"" >&5)
13254 (eval "$lt_compile" 2>conftest.err)
13256 cat conftest.err >&5
13257 echo "$as_me:13257: \$? = $ac_status" >&5
13258 if (exit $ac_status) && test -s "$ac_outfile"; then
13259 # The compiler can only warn and ignore the option if not recognized
13260 # So say no if there are warnings other than the usual output.
13261 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13263 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13264 lt_prog_compiler_pic_works_F77=yes
13270 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13271 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13273 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13274 case $lt_prog_compiler_pic_F77 in
13276 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13279 lt_prog_compiler_pic_F77=
13280 lt_prog_compiler_can_build_shared_F77=no
13285 # For platforms which do not support PIC, -DPIC is meaningless:
13287 lt_prog_compiler_pic_F77=
13290 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13295 # Check to make sure the static flag actually works.
13297 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13298 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13299 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13300 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
13303 lt_prog_compiler_static_works_F77=no
13304 save_LDFLAGS="$LDFLAGS"
13305 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13306 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13307 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13308 # The linker can only warn and ignore the option if not recognized
13309 # So say no if there are warnings
13310 if test -s conftest.err; then
13311 # Append any errors to the config.log.
13312 cat conftest.err 1>&5
13313 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13314 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13315 if diff conftest.exp conftest.er2 >/dev/null; then
13316 lt_prog_compiler_static_works_F77=yes
13319 lt_prog_compiler_static_works_F77=yes
13323 LDFLAGS="$save_LDFLAGS"
13326 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13327 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13329 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13332 lt_prog_compiler_static_F77=
13336 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13337 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13338 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 lt_cv_prog_compiler_c_o_F77=no
13342 $rm -r conftest 2>/dev/null
13346 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13348 lt_compiler_flag="-o out/conftest2.$ac_objext"
13349 # Insert the option either (1) after the last *FLAGS variable, or
13350 # (2) before a word containing "conftest.", or (3) at the end.
13351 # Note that $ac_compile itself does not contain backslashes and begins
13352 # with a dollar sign (not a hyphen), so the echo should work correctly.
13353 lt_compile=`echo "$ac_compile" | $SED \
13354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13356 -e 's:$: $lt_compiler_flag:'`
13357 (eval echo "\"\$as_me:13357: $lt_compile\"" >&5)
13358 (eval "$lt_compile" 2>out/conftest.err)
13360 cat out/conftest.err >&5
13361 echo "$as_me:13361: \$? = $ac_status" >&5
13362 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13364 # The compiler can only warn and ignore the option if not recognized
13365 # So say no if there are warnings
13366 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13367 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13368 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13369 lt_cv_prog_compiler_c_o_F77=yes
13374 # SGI C++ compiler will create directory out/ii_files/ for
13375 # template instantiation
13376 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13377 $rm out/* && rmdir out
13383 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13384 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13387 hard_links="nottested"
13388 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13389 # do not overwrite the value of need_locks provided by the user
13390 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13391 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13394 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13396 ln conftest.a conftest.b 2>&5 || hard_links=no
13397 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13398 echo "$as_me:$LINENO: result: $hard_links" >&5
13399 echo "${ECHO_T}$hard_links" >&6
13400 if test "$hard_links" = no; then
13401 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13402 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13409 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13410 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13413 allow_undefined_flag_F77=
13414 enable_shared_with_static_runtimes_F77=no
13416 archive_expsym_cmds_F77=
13417 old_archive_From_new_cmds_F77=
13418 old_archive_from_expsyms_cmds_F77=
13419 export_dynamic_flag_spec_F77=
13420 whole_archive_flag_spec_F77=
13421 thread_safe_flag_spec_F77=
13422 hardcode_libdir_flag_spec_F77=
13423 hardcode_libdir_flag_spec_ld_F77=
13424 hardcode_libdir_separator_F77=
13425 hardcode_direct_F77=no
13426 hardcode_minus_L_F77=no
13427 hardcode_shlibpath_var_F77=unsupported
13428 link_all_deplibs_F77=unknown
13429 hardcode_automatic_F77=no
13431 module_expsym_cmds_F77=
13432 always_export_symbols_F77=no
13433 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13434 # include_expsyms should be a list of space-separated symbols to be *always*
13435 # included in the symbol list
13436 include_expsyms_F77=
13437 # exclude_expsyms can be an extended regexp of symbols to exclude
13438 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13439 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13440 # as well as any symbol that contains `d'.
13441 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13442 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13443 # platforms (ab)use it in PIC code, but their linkers get confused if
13444 # the symbol is explicitly referenced. Since portable code cannot
13445 # rely on this symbol name, it's probably fine to never include it in
13446 # preloaded symbol tables.
13447 extract_expsyms_cmds=
13448 # Just being paranoid about ensuring that cc_basename is set.
13449 for cc_temp in $compiler""; do
13451 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13452 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13457 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13460 cygwin* | mingw* | pw32*)
13461 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13462 # When not using gcc, we currently assume that we are using
13463 # Microsoft Visual C++.
13464 if test "$GCC" != yes; then
13469 # we just hope/assume this is gcc and not c89 (= MSVC++)
13478 if test "$with_gnu_ld" = yes; then
13479 # If archive_cmds runs LD, not CC, wlarc should be empty
13482 # Set some defaults for GNU ld with shared library support. These
13483 # are reset later if shared libraries are not supported. Putting them
13484 # here allows them to be overridden if necessary.
13485 runpath_var=LD_RUN_PATH
13486 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13487 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13488 # ancient GNU ld didn't support --whole-archive et. al.
13489 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13490 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13492 whole_archive_flag_spec_F77=
13494 supports_anon_versioning=no
13495 case `$LD -v 2>/dev/null` in
13496 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13497 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13498 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13499 *\ 2.11.*) ;; # other 2.11 versions
13500 *) supports_anon_versioning=yes ;;
13503 # See if GNU ld supports shared libraries.
13505 aix3* | aix4* | aix5*)
13506 # On AIX/PPC, the GNU linker is very broken
13507 if test "$host_cpu" != ia64; then
13511 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13512 *** to be unable to reliably create shared libraries on AIX.
13513 *** Therefore, libtool is disabling shared libraries support. If you
13514 *** really care for shared libraries, you may want to modify your PATH
13515 *** so that a non-GNU linker is found, and then restart.
13522 archive_cmds_F77='$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)'
13523 hardcode_libdir_flag_spec_F77='-L$libdir'
13524 hardcode_minus_L_F77=yes
13526 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13527 # that the semantics of dynamic libraries on AmigaOS, at least up
13528 # to version 4, is to share data among multiple programs linked
13529 # with the same dynamic library. Since this doesn't match the
13530 # behavior of shared libraries on other platforms, we can't use
13536 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13537 allow_undefined_flag_F77=unsupported
13538 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13539 # support --undefined. This deserves some investigation. FIXME
13540 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13546 cygwin* | mingw* | pw32*)
13547 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13548 # as there is no search path for DLLs.
13549 hardcode_libdir_flag_spec_F77='-L$libdir'
13550 allow_undefined_flag_F77=unsupported
13551 always_export_symbols_F77=no
13552 enable_shared_with_static_runtimes_F77=yes
13553 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13555 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13556 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13557 # If the export-symbols file already is a .def file (1st line
13558 # is EXPORTS), use it as is; otherwise, prepend...
13559 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13560 cp $export_symbols $output_objdir/$soname.def;
13562 echo EXPORTS > $output_objdir/$soname.def;
13563 cat $export_symbols >> $output_objdir/$soname.def;
13565 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13572 hardcode_direct_F77=no
13573 hardcode_shlibpath_var_F77=no
13574 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13575 export_dynamic_flag_spec_F77='${wl}-E'
13576 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13577 # Instead, shared libraries are loaded at an image base (0x10000000 by
13578 # default) and relocated if they conflict, which is a slow very memory
13579 # consuming and fragmenting process. To avoid this, we pick a random,
13580 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13581 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13582 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13583 archive_expsym_cmds_F77='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'
13587 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13589 case $cc_basename,$host_cpu in
13590 pgcc*) # Portland Group C compiler
13591 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13592 tmp_addflag=' $pic_flag'
13594 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13595 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13596 tmp_addflag=' $pic_flag -Mnomain' ;;
13597 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13598 tmp_addflag=' -i_dynamic' ;;
13599 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13600 tmp_addflag=' -i_dynamic -nofor_main' ;;
13601 ifc* | ifort*) # Intel Fortran compiler
13602 tmp_addflag=' -nofor_main' ;;
13604 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13606 if test $supports_anon_versioning = yes; then
13607 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13608 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13609 $echo "local: *; };" >> $output_objdir/$libname.ver~
13610 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13618 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13619 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13622 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13623 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13628 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13632 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13633 *** create shared libraries on Solaris systems. Therefore, libtool
13634 *** is disabling shared libraries support. We urge you to upgrade GNU
13635 *** binutils to release 2.9.1 or newer. Another option is to modify
13636 *** your PATH or compiler configuration so that the native linker is
13637 *** used, and then restart.
13640 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13641 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13642 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13649 case `$LD -v 2>&1` in
13650 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13654 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13655 *** reliably create shared libraries on SCO systems. Therefore, libtool
13656 *** is disabling shared libraries support. We urge you to upgrade GNU
13657 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13658 *** your PATH or compiler configuration so that the native linker is
13659 *** used, and then restart.
13664 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13665 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13666 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13667 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13676 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13678 hardcode_direct_F77=yes
13679 hardcode_shlibpath_var_F77=no
13683 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13684 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13685 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13692 if test "$ld_shlibs_F77" = no; then
13694 hardcode_libdir_flag_spec_F77=
13695 export_dynamic_flag_spec_F77=
13696 whole_archive_flag_spec_F77=
13699 # PORTME fill in a description of your system's linker (not GNU ld)
13702 allow_undefined_flag_F77=unsupported
13703 always_export_symbols_F77=yes
13704 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13705 # Note: this linker hardcodes the directories in LIBPATH if there
13706 # are no directories specified by -L.
13707 hardcode_minus_L_F77=yes
13708 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13709 # Neither direct hardcoding nor static linking is supported with a
13711 hardcode_direct_F77=unsupported
13716 if test "$host_cpu" = ia64; then
13717 # On IA64, the linker does run time linking by default, so we don't
13718 # have to do anything special.
13719 aix_use_runtimelinking=no
13720 exp_sym_flag='-Bexport'
13723 # If we're using GNU nm, then we don't want the "-C" option.
13724 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13725 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13726 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13728 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13730 aix_use_runtimelinking=no
13732 # Test if we are trying to use run time linking or normal
13733 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13734 # need to do runtime linking.
13735 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13736 for ld_flag in $LDFLAGS; do
13737 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13738 aix_use_runtimelinking=yes
13745 exp_sym_flag='-bexport'
13746 no_entry_flag='-bnoentry'
13749 # When large executables or shared objects are built, AIX ld can
13750 # have problems creating the table of contents. If linking a library
13751 # or program results in "error TOC overflow" add -mminimal-toc to
13752 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13753 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13755 archive_cmds_F77=''
13756 hardcode_direct_F77=yes
13757 hardcode_libdir_separator_F77=':'
13758 link_all_deplibs_F77=yes
13760 if test "$GCC" = yes; then
13761 case $host_os in aix4.[012]|aix4.[012].*)
13762 # We only want to do this on AIX 4.2 and lower, the check
13763 # below for broken collect2 doesn't work under 4.3+
13764 collect2name=`${CC} -print-prog-name=collect2`
13765 if test -f "$collect2name" && \
13766 strings "$collect2name" | grep resolve_lib_name >/dev/null
13768 # We have reworked collect2
13769 hardcode_direct_F77=yes
13771 # We have old collect2
13772 hardcode_direct_F77=unsupported
13773 # It fails to find uninstalled libraries when the uninstalled
13774 # path is not listed in the libpath. Setting hardcode_minus_L
13775 # to unsupported forces relinking
13776 hardcode_minus_L_F77=yes
13777 hardcode_libdir_flag_spec_F77='-L$libdir'
13778 hardcode_libdir_separator_F77=
13782 shared_flag='-shared'
13783 if test "$aix_use_runtimelinking" = yes; then
13784 shared_flag="$shared_flag "'${wl}-G'
13788 if test "$host_cpu" = ia64; then
13789 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13790 # chokes on -Wl,-G. The following line is correct:
13793 if test "$aix_use_runtimelinking" = yes; then
13794 shared_flag='${wl}-G'
13796 shared_flag='${wl}-bM:SRE'
13801 # It seems that -bexpall does not export symbols beginning with
13802 # underscore (_), so it is better to generate a list of symbols to export.
13803 always_export_symbols_F77=yes
13804 if test "$aix_use_runtimelinking" = yes; then
13805 # Warning - without using the other runtime loading flags (-brtl),
13806 # -berok will link without error, but may produce a broken library.
13807 allow_undefined_flag_F77='-berok'
13808 # Determine the default libpath from the value encoded in an empty executable.
13809 cat >conftest.$ac_ext <<_ACEOF
13814 rm -f conftest.$ac_objext conftest$ac_exeext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13816 (eval $ac_link) 2>conftest.er1
13818 grep -v '^ *+' conftest.er1 >conftest.err
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
13823 { ac_try='test -z "$ac_f77_werror_flag"
13824 || test ! -s conftest.err'
13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; } &&
13830 { ac_try='test -s conftest$ac_exeext'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13837 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13839 # Check for a 64-bit object if we didn't find anything.
13840 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13843 echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13847 rm -f conftest.err conftest.$ac_objext \
13848 conftest$ac_exeext conftest.$ac_ext
13849 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13851 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13852 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13854 if test "$host_cpu" = ia64; then
13855 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13856 allow_undefined_flag_F77="-z nodefs"
13857 archive_expsym_cmds_F77="\$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"
13859 # Determine the default libpath from the value encoded in an empty executable.
13860 cat >conftest.$ac_ext <<_ACEOF
13865 rm -f conftest.$ac_objext conftest$ac_exeext
13866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13867 (eval $ac_link) 2>conftest.er1
13869 grep -v '^ *+' conftest.er1 >conftest.err
13871 cat conftest.err >&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } &&
13874 { ac_try='test -z "$ac_f77_werror_flag"
13875 || test ! -s conftest.err'
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; } &&
13881 { ac_try='test -s conftest$ac_exeext'
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; }; then
13888 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13890 # Check for a 64-bit object if we didn't find anything.
13891 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13898 rm -f conftest.err conftest.$ac_objext \
13899 conftest$ac_exeext conftest.$ac_ext
13900 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13902 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13903 # Warning - without using the other run time loading flags,
13904 # -berok will link without error, but may produce a broken library.
13905 no_undefined_flag_F77=' ${wl}-bernotok'
13906 allow_undefined_flag_F77=' ${wl}-berok'
13907 # Exported symbols can be pulled into shared objects from archives
13908 whole_archive_flag_spec_F77='$convenience'
13909 archive_cmds_need_lc_F77=yes
13910 # This is similar to how AIX traditionally builds its shared libraries.
13911 archive_expsym_cmds_F77="\$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'
13917 archive_cmds_F77='$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)'
13918 hardcode_libdir_flag_spec_F77='-L$libdir'
13919 hardcode_minus_L_F77=yes
13920 # see comment about different semantics on the GNU ld section
13925 export_dynamic_flag_spec_F77=-rdynamic
13928 cygwin* | mingw* | pw32*)
13929 # When not using gcc, we currently assume that we are using
13930 # Microsoft Visual C++.
13931 # hardcode_libdir_flag_spec is actually meaningless, as there is
13932 # no search path for DLLs.
13933 hardcode_libdir_flag_spec_F77=' '
13934 allow_undefined_flag_F77=unsupported
13935 # Tell ltmain to make .lib files, not .a files.
13937 # Tell ltmain to make .dll files, not .so files.
13939 # FIXME: Setting linknames here is a bad hack.
13940 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13941 # The linker will automatically build a .lib file if we build a DLL.
13942 old_archive_From_new_cmds_F77='true'
13943 # FIXME: Should let the user specify the lib program.
13944 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13945 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13946 enable_shared_with_static_runtimes_F77=yes
13949 darwin* | rhapsody*)
13951 rhapsody* | darwin1.[012])
13952 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13955 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13956 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13958 case ${MACOSX_DEPLOYMENT_TARGET} in
13960 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13963 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13969 archive_cmds_need_lc_F77=no
13970 hardcode_direct_F77=no
13971 hardcode_automatic_F77=yes
13972 hardcode_shlibpath_var_F77=unsupported
13973 whole_archive_flag_spec_F77=''
13974 link_all_deplibs_F77=yes
13975 if test "$GCC" = yes ; then
13976 output_verbose_link_cmd='echo'
13977 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13978 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13979 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13980 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13981 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13983 case $cc_basename in
13985 output_verbose_link_cmd='echo'
13986 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13987 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13988 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13989 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13990 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14000 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14001 hardcode_libdir_flag_spec_F77='-L$libdir'
14002 hardcode_shlibpath_var_F77=no
14009 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14010 # support. Future versions do this automatically, but an explicit c++rt0.o
14011 # does not break anything, and helps significantly (at the cost of a little
14014 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14015 hardcode_libdir_flag_spec_F77='-R$libdir'
14016 hardcode_direct_F77=yes
14017 hardcode_shlibpath_var_F77=no
14020 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14022 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14023 hardcode_direct_F77=yes
14024 hardcode_minus_L_F77=yes
14025 hardcode_shlibpath_var_F77=no
14028 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14029 freebsd* | kfreebsd*-gnu | dragonfly*)
14030 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14031 hardcode_libdir_flag_spec_F77='-R$libdir'
14032 hardcode_direct_F77=yes
14033 hardcode_shlibpath_var_F77=no
14037 if test "$GCC" = yes; then
14038 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14040 archive_cmds_F77='$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'
14042 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14043 hardcode_libdir_separator_F77=:
14044 hardcode_direct_F77=yes
14046 # hardcode_minus_L: Not really in the search PATH,
14047 # but as the default location of the library.
14048 hardcode_minus_L_F77=yes
14049 export_dynamic_flag_spec_F77='${wl}-E'
14053 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14054 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14056 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14058 if test "$with_gnu_ld" = no; then
14059 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14060 hardcode_libdir_separator_F77=:
14062 hardcode_direct_F77=yes
14063 export_dynamic_flag_spec_F77='${wl}-E'
14065 # hardcode_minus_L: Not really in the search PATH,
14066 # but as the default location of the library.
14067 hardcode_minus_L_F77=yes
14072 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14075 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14078 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14081 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14087 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14090 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14093 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14097 if test "$with_gnu_ld" = no; then
14098 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14099 hardcode_libdir_separator_F77=:
14103 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14104 hardcode_direct_F77=no
14105 hardcode_shlibpath_var_F77=no
14108 hardcode_direct_F77=yes
14109 export_dynamic_flag_spec_F77='${wl}-E'
14111 # hardcode_minus_L: Not really in the search PATH,
14112 # but as the default location of the library.
14113 hardcode_minus_L_F77=yes
14119 irix5* | irix6* | nonstopux*)
14120 if test "$GCC" = yes; then
14121 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14123 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14124 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14126 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14127 hardcode_libdir_separator_F77=:
14128 link_all_deplibs_F77=yes
14132 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14133 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14135 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14137 hardcode_libdir_flag_spec_F77='-R$libdir'
14138 hardcode_direct_F77=yes
14139 hardcode_shlibpath_var_F77=no
14143 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14144 hardcode_direct_F77=yes
14145 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14146 hardcode_libdir_separator_F77=:
14147 hardcode_shlibpath_var_F77=no
14151 hardcode_direct_F77=yes
14152 hardcode_shlibpath_var_F77=no
14153 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14154 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14155 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14156 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14157 export_dynamic_flag_spec_F77='${wl}-E'
14160 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14161 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14162 hardcode_libdir_flag_spec_F77='-R$libdir'
14165 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14166 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14173 hardcode_libdir_flag_spec_F77='-L$libdir'
14174 hardcode_minus_L_F77=yes
14175 allow_undefined_flag_F77=unsupported
14176 archive_cmds_F77='$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'
14177 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14181 if test "$GCC" = yes; then
14182 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14183 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14185 allow_undefined_flag_F77=' -expect_unresolved \*'
14186 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14188 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14189 hardcode_libdir_separator_F77=:
14192 osf4* | osf5*) # as osf3* with the addition of -msym flag
14193 if test "$GCC" = yes; then
14194 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14195 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14196 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14198 allow_undefined_flag_F77=' -expect_unresolved \*'
14199 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14200 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14201 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14203 # Both c and cxx compiler support -rpath directly
14204 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14206 hardcode_libdir_separator_F77=:
14210 no_undefined_flag_F77=' -z text'
14211 if test "$GCC" = yes; then
14213 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14214 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14215 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14218 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14219 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14220 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14222 hardcode_libdir_flag_spec_F77='-R$libdir'
14223 hardcode_shlibpath_var_F77=no
14225 solaris2.[0-5] | solaris2.[0-5].*) ;;
14227 # The compiler driver will combine linker options so we
14228 # cannot just pass the convience library names through
14229 # without $wl, iff we do not link with $LD.
14230 # Luckily, gcc supports the same syntax we need for Sun Studio.
14231 # Supported since Solaris 2.6 (maybe 2.5.1?)
14234 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14236 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14239 link_all_deplibs_F77=yes
14243 if test "x$host_vendor" = xsequent; then
14244 # Use $CC to link under sequent, because it throws in some extra .o
14245 # files that make .init and .fini sections work.
14246 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14248 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14250 hardcode_libdir_flag_spec_F77='-L$libdir'
14251 hardcode_direct_F77=yes
14252 hardcode_minus_L_F77=yes
14253 hardcode_shlibpath_var_F77=no
14257 case $host_vendor in
14259 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14260 hardcode_direct_F77=yes # is this really true???
14263 ## LD is ld it makes a PLAMLIB
14264 ## CC just makes a GrossModule.
14265 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14266 reload_cmds_F77='$CC -r -o $output$reload_objs'
14267 hardcode_direct_F77=no
14270 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14271 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14274 runpath_var='LD_RUN_PATH'
14275 hardcode_shlibpath_var_F77=no
14279 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14280 hardcode_shlibpath_var_F77=no
14281 export_dynamic_flag_spec_F77='-Bexport'
14285 if test -d /usr/nec; then
14286 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14287 hardcode_shlibpath_var_F77=no
14288 runpath_var=LD_RUN_PATH
14289 hardcode_runpath_var=yes
14294 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14295 no_undefined_flag_F77='${wl}-z,text'
14296 archive_cmds_need_lc_F77=no
14297 hardcode_shlibpath_var_F77=no
14298 runpath_var='LD_RUN_PATH'
14300 if test "$GCC" = yes; then
14301 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14302 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14304 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14305 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14309 sysv5* | sco3.2v5* | sco5v6*)
14310 # Note: We can NOT use -z defs as we might desire, because we do not
14311 # link with -lc, and that would cause any symbols used from libc to
14312 # always be unresolved, which means just about no library would
14313 # ever link correctly. If we're not using GNU ld we use -z text
14314 # though, which does catch some bad symbols but isn't as heavy-handed
14316 no_undefined_flag_F77='${wl}-z,text'
14317 allow_undefined_flag_F77='${wl}-z,nodefs'
14318 archive_cmds_need_lc_F77=no
14319 hardcode_shlibpath_var_F77=no
14320 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14321 hardcode_libdir_separator_F77=':'
14322 link_all_deplibs_F77=yes
14323 export_dynamic_flag_spec_F77='${wl}-Bexport'
14324 runpath_var='LD_RUN_PATH'
14326 if test "$GCC" = yes; then
14327 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14328 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14330 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14331 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14336 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14337 hardcode_libdir_flag_spec_F77='-L$libdir'
14338 hardcode_shlibpath_var_F77=no
14347 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14348 echo "${ECHO_T}$ld_shlibs_F77" >&6
14349 test "$ld_shlibs_F77" = no && can_build_shared=no
14352 # Do we need to explicitly link libc?
14354 case "x$archive_cmds_need_lc_F77" in
14356 # Assume -lc should be added
14357 archive_cmds_need_lc_F77=yes
14359 if test "$enable_shared" = yes && test "$GCC" = yes; then
14360 case $archive_cmds_F77 in
14362 # FIXME: we may have to deal with multi-command sequences.
14365 # Test whether the compiler implicitly links with -lc since on some
14366 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14367 # to ld, don't add -lc before -lgcc.
14368 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14369 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14371 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14374 (eval $ac_compile) 2>&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } 2>conftest.err; then
14380 libobjs=conftest.$ac_objext
14382 wl=$lt_prog_compiler_wl_F77
14383 pic_flag=$lt_prog_compiler_pic_F77
14389 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14390 allow_undefined_flag_F77=
14391 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14392 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }
14397 archive_cmds_need_lc_F77=no
14399 archive_cmds_need_lc_F77=yes
14401 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14403 cat conftest.err 1>&5
14406 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14407 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14414 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14415 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14416 library_names_spec=
14417 libname_spec='lib$name'
14421 postuninstall_cmds=
14425 shlibpath_overrides_runpath=unknown
14427 dynamic_linker="$host_os ld.so"
14428 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14429 if test "$GCC" = yes; then
14430 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14431 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14432 # if the path contains ";" then we assume it to be the separator
14433 # otherwise default to the standard path separator (i.e. ":") - it is
14434 # assumed that no part of a normal pathname contains ";" but that should
14435 # okay in the real world where ";" in dirpaths is itself problematic.
14436 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14438 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14441 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14443 need_lib_prefix=unknown
14444 hardcode_into_libs=no
14446 # when you set need_version to no, make sure it does not cause -set_version
14447 # flags to be left without arguments
14448 need_version=unknown
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14454 shlibpath_var=LIBPATH
14456 # AIX 3 has no versioning support, so we append a major version to the name.
14457 soname_spec='${libname}${release}${shared_ext}$major'
14464 hardcode_into_libs=yes
14465 if test "$host_cpu" = ia64; then
14466 # AIX 5 supports IA64
14467 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14468 shlibpath_var=LD_LIBRARY_PATH
14470 # With GCC up to 2.95.x, collect2 would create an import file
14471 # for dependence libraries. The import file would start with
14472 # the line `#! .'. This would cause the generated library to
14473 # depend on `.', always an invalid library. This was fixed in
14474 # development snapshots of GCC prior to 3.0.
14476 aix4 | aix4.[01] | aix4.[01].*)
14477 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14479 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14482 can_build_shared=no
14486 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14487 # soname into executable. Probably we can add versioning support to
14488 # collect2, so additional links can be useful in future.
14489 if test "$aix_use_runtimelinking" = yes; then
14490 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14491 # instead of lib<name>.a to let people know that these are not
14492 # typical AIX shared libraries.
14493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14495 # We preserve .a as extension for shared libraries through AIX4.2
14496 # and later when we are not doing run time linking.
14497 library_names_spec='${libname}${release}.a $libname.a'
14498 soname_spec='${libname}${release}${shared_ext}$major'
14500 shlibpath_var=LIBPATH
14505 library_names_spec='$libname.ixlibrary $libname.a'
14506 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14507 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
14511 library_names_spec='${libname}${shared_ext}'
14512 dynamic_linker="$host_os ld.so"
14513 shlibpath_var=LIBRARY_PATH
14519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14520 soname_spec='${libname}${release}${shared_ext}$major'
14521 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14522 shlibpath_var=LD_LIBRARY_PATH
14523 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14524 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14525 # the default ld.so.conf also contains /usr/contrib/lib and
14526 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14527 # libtool to hard-code these into programs
14530 cygwin* | mingw* | pw32*)
14531 version_type=windows
14536 case $GCC,$host_os in
14537 yes,cygwin* | yes,mingw* | yes,pw32*)
14538 library_names_spec='$libname.dll.a'
14539 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14540 postinstall_cmds='base_file=`basename \${file}`~
14541 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14542 dldir=$destdir/`dirname \$dlpath`~
14543 test -d \$dldir || mkdir -p \$dldir~
14544 $install_prog $dir/$dlname \$dldir/$dlname~
14545 chmod a+x \$dldir/$dlname'
14546 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14547 dlpath=$dir/\$dldll~
14549 shlibpath_overrides_runpath=yes
14553 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14554 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14555 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14558 # MinGW DLLs use traditional 'lib' prefix
14559 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14560 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14561 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14562 # It is most probably a Windows format PATH printed by
14563 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14564 # path with ; separators, and with drive letters. We can handle the
14565 # drive letters (cygwin fileutils understands them), so leave them,
14566 # especially as we might pass files found there to a mingw objdump,
14567 # which wouldn't understand a cygwinified path. Ahh.
14568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14574 # pw32 DLLs use 'pw' prefix rather than 'lib'
14575 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14581 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14584 dynamic_linker='Win32 ld.exe'
14585 # FIXME: first we should search . and the directory the executable is in
14589 darwin* | rhapsody*)
14590 dynamic_linker="$host_os dyld"
14591 version_type=darwin
14594 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14595 soname_spec='${libname}${release}${major}$shared_ext'
14596 shlibpath_overrides_runpath=yes
14597 shlibpath_var=DYLD_LIBRARY_PATH
14598 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14599 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14600 if test "$GCC" = yes; then
14601 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14603 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14605 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14613 soname_spec='${libname}${release}${shared_ext}$major'
14614 shlibpath_var=LD_LIBRARY_PATH
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14626 soname_spec='${libname}${release}${shared_ext}$major'
14627 shlibpath_var=LD_LIBRARY_PATH
14628 shlibpath_overrides_runpath=no
14629 hardcode_into_libs=yes
14630 dynamic_linker='GNU ld.so'
14633 freebsd* | dragonfly*)
14634 # DragonFly does not have aout. When/if they implement a new
14635 # versioning mechanism, adjust this.
14636 if test -x /usr/bin/objformat; then
14637 objformat=`/usr/bin/objformat`
14640 freebsd[123]*) objformat=aout ;;
14641 *) objformat=elf ;;
14644 version_type=freebsd-$objformat
14645 case $version_type in
14647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14652 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14656 shlibpath_var=LD_LIBRARY_PATH
14659 shlibpath_overrides_runpath=yes
14661 freebsd3.[01]* | freebsdelf3.[01]*)
14662 shlibpath_overrides_runpath=yes
14663 hardcode_into_libs=yes
14665 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14666 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14667 shlibpath_overrides_runpath=no
14668 hardcode_into_libs=yes
14670 freebsd*) # from 4.6 on
14671 shlibpath_overrides_runpath=yes
14672 hardcode_into_libs=yes
14681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14682 soname_spec='${libname}${release}${shared_ext}$major'
14683 shlibpath_var=LD_LIBRARY_PATH
14684 hardcode_into_libs=yes
14687 hpux9* | hpux10* | hpux11*)
14688 # Give a soname corresponding to the major version so that dld.sl refuses to
14689 # link against other versions.
14696 hardcode_into_libs=yes
14697 dynamic_linker="$host_os dld.so"
14698 shlibpath_var=LD_LIBRARY_PATH
14699 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14701 soname_spec='${libname}${release}${shared_ext}$major'
14702 if test "X$HPUX_IA64_MODE" = X32; then
14703 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14705 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14707 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14711 hardcode_into_libs=yes
14712 dynamic_linker="$host_os dld.sl"
14713 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14714 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716 soname_spec='${libname}${release}${shared_ext}$major'
14717 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14722 dynamic_linker="$host_os dld.sl"
14723 shlibpath_var=SHLIB_PATH
14724 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726 soname_spec='${libname}${release}${shared_ext}$major'
14729 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14730 postinstall_cmds='chmod 555 $lib'
14737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14738 soname_spec='${libname}${release}${shared_ext}$major'
14739 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14740 shlibpath_var=LD_LIBRARY_PATH
14741 shlibpath_overrides_runpath=no
14742 hardcode_into_libs=yes
14745 irix5* | irix6* | nonstopux*)
14747 nonstopux*) version_type=nonstopux ;;
14749 if test "$lt_cv_prog_gnu_ld" = yes; then
14757 soname_spec='${libname}${release}${shared_ext}$major'
14758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14760 irix5* | nonstopux*)
14761 libsuff= shlibsuff=
14764 case $LD in # libtool.m4 will add one of these switches to LD
14765 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14766 libsuff= shlibsuff= libmagic=32-bit;;
14767 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14768 libsuff=32 shlibsuff=N32 libmagic=N32;;
14769 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14770 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14771 *) libsuff= shlibsuff= libmagic=never-match;;
14775 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14776 shlibpath_overrides_runpath=no
14777 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14778 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14779 hardcode_into_libs=yes
14782 # No shared lib support for Linux oldld, aout, or coff.
14783 linux*oldld* | linux*aout* | linux*coff*)
14787 # This must be Linux ELF.
14792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14793 soname_spec='${libname}${release}${shared_ext}$major'
14794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14795 shlibpath_var=LD_LIBRARY_PATH
14796 shlibpath_overrides_runpath=no
14797 # This implies no fast_install, which is unacceptable.
14798 # Some rework will be needed to allow for fast_install
14799 # before this can be enabled.
14800 hardcode_into_libs=yes
14802 # Append ld.so.conf contents to the search path
14803 if test -f /etc/ld.so.conf; then
14804 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14805 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14808 # We used to test for /lib/ld.so.1 and disable shared libraries on
14809 # powerpc, because MkLinux only supported shared libraries with the
14810 # GNU dynamic linker. Since this was broken with cross compilers,
14811 # most powerpc-linux boxes support dynamic linking these days and
14812 # people can always --disable-shared, the test was removed, and we
14813 # assume the GNU/Linux dynamic linker is in use.
14814 dynamic_linker='GNU/Linux ld.so'
14821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14822 soname_spec='${libname}${release}${shared_ext}$major'
14823 shlibpath_var=LD_LIBRARY_PATH
14824 shlibpath_overrides_runpath=no
14825 hardcode_into_libs=yes
14826 dynamic_linker='GNU ld.so'
14833 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14836 dynamic_linker='NetBSD (a.out) ld.so'
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14839 soname_spec='${libname}${release}${shared_ext}$major'
14840 dynamic_linker='NetBSD ld.elf_so'
14842 shlibpath_var=LD_LIBRARY_PATH
14843 shlibpath_overrides_runpath=yes
14844 hardcode_into_libs=yes
14849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14850 shlibpath_var=LD_LIBRARY_PATH
14851 shlibpath_overrides_runpath=yes
14858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14859 soname_spec='${libname}${release}${shared_ext}$major'
14860 shlibpath_var=LD_LIBRARY_PATH
14861 shlibpath_overrides_runpath=yes
14866 sys_lib_dlsearch_path_spec="/usr/lib"
14868 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14870 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14871 *) need_version=no ;;
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14875 shlibpath_var=LD_LIBRARY_PATH
14876 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14878 openbsd2.[89] | openbsd2.[89].*)
14879 shlibpath_overrides_runpath=no
14882 shlibpath_overrides_runpath=yes
14886 shlibpath_overrides_runpath=yes
14891 libname_spec='$name'
14894 library_names_spec='$libname${shared_ext} $libname.a'
14895 dynamic_linker='OS/2 ld.exe'
14896 shlibpath_var=LIBPATH
14899 osf3* | osf4* | osf5*)
14903 soname_spec='${libname}${release}${shared_ext}$major'
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14905 shlibpath_var=LD_LIBRARY_PATH
14906 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14907 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915 soname_spec='${libname}${release}${shared_ext}$major'
14916 shlibpath_var=LD_LIBRARY_PATH
14917 shlibpath_overrides_runpath=yes
14918 hardcode_into_libs=yes
14919 # ldd complains unless libraries are executable
14920 postinstall_cmds='chmod +x $lib'
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14926 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14927 shlibpath_var=LD_LIBRARY_PATH
14928 shlibpath_overrides_runpath=yes
14929 if test "$with_gnu_ld" = yes; then
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938 soname_spec='${libname}${release}${shared_ext}$major'
14939 shlibpath_var=LD_LIBRARY_PATH
14940 case $host_vendor in
14942 shlibpath_overrides_runpath=no
14944 export_dynamic_flag_spec='${wl}-Blargedynsym'
14945 runpath_var=LD_RUN_PATH
14953 shlibpath_overrides_runpath=no
14954 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14960 if test -d /usr/nec ;then
14962 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14963 soname_spec='$libname${shared_ext}.$major'
14964 shlibpath_var=LD_LIBRARY_PATH
14968 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14969 version_type=freebsd-elf
14972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14973 soname_spec='${libname}${release}${shared_ext}$major'
14974 shlibpath_var=LD_LIBRARY_PATH
14975 hardcode_into_libs=yes
14976 if test "$with_gnu_ld" = yes; then
14977 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14978 shlibpath_overrides_runpath=no
14980 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14981 shlibpath_overrides_runpath=yes
14984 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14988 sys_lib_dlsearch_path_spec='/usr/lib'
14993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14994 soname_spec='${libname}${release}${shared_ext}$major'
14995 shlibpath_var=LD_LIBRARY_PATH
15002 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15003 echo "${ECHO_T}$dynamic_linker" >&6
15004 test "$dynamic_linker" = no && can_build_shared=no
15006 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15007 if test "$GCC" = yes; then
15008 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15011 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15012 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15013 hardcode_action_F77=
15014 if test -n "$hardcode_libdir_flag_spec_F77" || \
15015 test -n "$runpath_var_F77" || \
15016 test "X$hardcode_automatic_F77" = "Xyes" ; then
15018 # We can hardcode non-existant directories.
15019 if test "$hardcode_direct_F77" != no &&
15020 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15021 # have to relink, otherwise we might link with an installed library
15022 # when we should be linking with a yet-to-be-installed one
15023 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15024 test "$hardcode_minus_L_F77" != no; then
15025 # Linking always hardcodes the temporary library directory.
15026 hardcode_action_F77=relink
15028 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15029 hardcode_action_F77=immediate
15032 # We cannot hardcode anything, or else we can only hardcode existing
15034 hardcode_action_F77=unsupported
15036 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15037 echo "${ECHO_T}$hardcode_action_F77" >&6
15039 if test "$hardcode_action_F77" = relink; then
15040 # Fast installation is not supported
15041 enable_fast_install=no
15042 elif test "$shlibpath_overrides_runpath" = yes ||
15043 test "$enable_shared" = no; then
15044 # Fast installation is not necessary
15045 enable_fast_install=needless
15049 # The else clause should only fire when bootstrapping the
15050 # libtool distribution, otherwise you forgot to ship ltmain.sh
15051 # with your package, and you will get complaints that there are
15052 # no rules to generate ltmain.sh.
15053 if test -f "$ltmain"; then
15054 # See if we are running on zsh, and set the options which allow our commands through
15055 # without removal of \ escapes.
15056 if test -n "${ZSH_VERSION+set}" ; then
15057 setopt NO_GLOB_SUBST
15059 # Now quote all the things that may contain metacharacters while being
15060 # careful not to overquote the AC_SUBSTed values. We take copies of the
15061 # variables and quote the copies for generation of the libtool script.
15062 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15064 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15065 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15066 deplibs_check_method reload_flag reload_cmds need_locks \
15067 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15068 lt_cv_sys_global_symbol_to_c_name_address \
15069 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15070 old_postinstall_cmds old_postuninstall_cmds \
15074 lt_prog_compiler_wl_F77 \
15075 lt_prog_compiler_pic_F77 \
15076 lt_prog_compiler_static_F77 \
15077 lt_prog_compiler_no_builtin_flag_F77 \
15078 export_dynamic_flag_spec_F77 \
15079 thread_safe_flag_spec_F77 \
15080 whole_archive_flag_spec_F77 \
15081 enable_shared_with_static_runtimes_F77 \
15082 old_archive_cmds_F77 \
15083 old_archive_from_new_cmds_F77 \
15084 predep_objects_F77 \
15085 postdep_objects_F77 \
15088 compiler_lib_search_path_F77 \
15090 archive_expsym_cmds_F77 \
15091 postinstall_cmds_F77 \
15092 postuninstall_cmds_F77 \
15093 old_archive_from_expsyms_cmds_F77 \
15094 allow_undefined_flag_F77 \
15095 no_undefined_flag_F77 \
15096 export_symbols_cmds_F77 \
15097 hardcode_libdir_flag_spec_F77 \
15098 hardcode_libdir_flag_spec_ld_F77 \
15099 hardcode_libdir_separator_F77 \
15100 hardcode_automatic_F77 \
15102 module_expsym_cmds_F77 \
15103 lt_cv_prog_compiler_c_o_F77 \
15104 exclude_expsyms_F77 \
15105 include_expsyms_F77; do
15108 old_archive_cmds_F77 | \
15109 old_archive_from_new_cmds_F77 | \
15110 archive_cmds_F77 | \
15111 archive_expsym_cmds_F77 | \
15112 module_cmds_F77 | \
15113 module_expsym_cmds_F77 | \
15114 old_archive_from_expsyms_cmds_F77 | \
15115 export_symbols_cmds_F77 | \
15116 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15117 postinstall_cmds | postuninstall_cmds | \
15118 old_postinstall_cmds | old_postuninstall_cmds | \
15119 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15120 # Double-quote double-evaled strings.
15121 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15124 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15130 *'\$0 --fallback-echo"')
15131 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15137 cat <<__EOF__ >> "$cfgfile"
15138 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15140 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15142 # Shell to use when invoking shell scripts.
15145 # Whether or not to build shared libraries.
15146 build_libtool_libs=$enable_shared
15148 # Whether or not to build static libraries.
15149 build_old_libs=$enable_static
15151 # Whether or not to add -lc for building shared libraries.
15152 build_libtool_need_lc=$archive_cmds_need_lc_F77
15154 # Whether or not to disallow shared libs when runtime libs are static
15155 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15157 # Whether or not to optimize for fast installation.
15158 fast_install=$enable_fast_install
15161 host_alias=$host_alias
15165 # The build system.
15166 build_alias=$build_alias
15170 # An echo program that does not interpret backslashes.
15175 AR_FLAGS=$lt_AR_FLAGS
15180 # LTCC compiler flags.
15181 LTCFLAGS=$lt_LTCFLAGS
15183 # A language-specific compiler.
15184 CC=$lt_compiler_F77
15186 # Is the compiler the GNU C compiler?
15192 # The linker used to build libraries.
15195 # Whether we need hard or soft links.
15198 # A BSD-compatible nm program.
15201 # A symbol stripping program
15204 # Used to examine libraries when file_magic_cmd begins "file"
15205 MAGIC_CMD=$MAGIC_CMD
15207 # Used on cygwin: DLL creation program.
15210 # Used on cygwin: object dumper.
15213 # Used on cygwin: assembler.
15216 # The name of the directory that contains temporary libtool files.
15219 # How to create reloadable object files.
15220 reload_flag=$lt_reload_flag
15221 reload_cmds=$lt_reload_cmds
15223 # How to pass a linker flag through the compiler.
15224 wl=$lt_lt_prog_compiler_wl_F77
15226 # Object file suffix (normally "o").
15227 objext="$ac_objext"
15229 # Old archive suffix (normally "a").
15232 # Shared library suffix (normally ".so").
15233 shrext_cmds='$shrext_cmds'
15235 # Executable file suffix (normally "").
15238 # Additional compiler flags for building library objects.
15239 pic_flag=$lt_lt_prog_compiler_pic_F77
15242 # What is the maximum length of a command?
15243 max_cmd_len=$lt_cv_sys_max_cmd_len
15245 # Does compiler simultaneously support -c and -o options?
15246 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15248 # Must we lock files when doing compilation?
15249 need_locks=$lt_need_locks
15251 # Do we need the lib prefix for modules?
15252 need_lib_prefix=$need_lib_prefix
15254 # Do we need a version for libraries?
15255 need_version=$need_version
15257 # Whether dlopen is supported.
15258 dlopen_support=$enable_dlopen
15260 # Whether dlopen of programs is supported.
15261 dlopen_self=$enable_dlopen_self
15263 # Whether dlopen of statically linked programs is supported.
15264 dlopen_self_static=$enable_dlopen_self_static
15266 # Compiler flag to prevent dynamic linking.
15267 link_static_flag=$lt_lt_prog_compiler_static_F77
15269 # Compiler flag to turn off builtin functions.
15270 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15272 # Compiler flag to allow reflexive dlopens.
15273 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15275 # Compiler flag to generate shared objects directly from archives.
15276 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15278 # Compiler flag to generate thread-safe objects.
15279 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15281 # Library versioning type.
15282 version_type=$version_type
15284 # Format of library name prefix.
15285 libname_spec=$lt_libname_spec
15287 # List of archive names. First name is the real one, the rest are links.
15288 # The last name is the one that the linker finds with -lNAME.
15289 library_names_spec=$lt_library_names_spec
15291 # The coded name of the library, if different from the real name.
15292 soname_spec=$lt_soname_spec
15294 # Commands used to build and install an old-style archive.
15296 old_archive_cmds=$lt_old_archive_cmds_F77
15297 old_postinstall_cmds=$lt_old_postinstall_cmds
15298 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15300 # Create an old-style archive from a shared archive.
15301 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15303 # Create a temporary old-style archive to link instead of a shared archive.
15304 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15306 # Commands used to build and install a shared archive.
15307 archive_cmds=$lt_archive_cmds_F77
15308 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15309 postinstall_cmds=$lt_postinstall_cmds
15310 postuninstall_cmds=$lt_postuninstall_cmds
15312 # Commands used to build a loadable module (assumed same as above if empty)
15313 module_cmds=$lt_module_cmds_F77
15314 module_expsym_cmds=$lt_module_expsym_cmds_F77
15316 # Commands to strip libraries.
15317 old_striplib=$lt_old_striplib
15318 striplib=$lt_striplib
15320 # Dependencies to place before the objects being linked to create a
15322 predep_objects=$lt_predep_objects_F77
15324 # Dependencies to place after the objects being linked to create a
15326 postdep_objects=$lt_postdep_objects_F77
15328 # Dependencies to place before the objects being linked to create a
15330 predeps=$lt_predeps_F77
15332 # Dependencies to place after the objects being linked to create a
15334 postdeps=$lt_postdeps_F77
15336 # The library search path used internally by the compiler when linking
15337 # a shared library.
15338 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15340 # Method to check whether dependent libraries are shared objects.
15341 deplibs_check_method=$lt_deplibs_check_method
15343 # Command to use when deplibs_check_method == file_magic.
15344 file_magic_cmd=$lt_file_magic_cmd
15346 # Flag that allows shared libraries with undefined symbols to be built.
15347 allow_undefined_flag=$lt_allow_undefined_flag_F77
15349 # Flag that forces no undefined symbols.
15350 no_undefined_flag=$lt_no_undefined_flag_F77
15352 # Commands used to finish a libtool library installation in a directory.
15353 finish_cmds=$lt_finish_cmds
15355 # Same as above, but a single script fragment to be evaled but not shown.
15356 finish_eval=$lt_finish_eval
15358 # Take the output of nm and produce a listing of raw symbols and C names.
15359 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15361 # Transform the output of nm in a proper C declaration
15362 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15364 # Transform the output of nm in a C name address pair
15365 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15367 # This is the shared library runtime path variable.
15368 runpath_var=$runpath_var
15370 # This is the shared library path variable.
15371 shlibpath_var=$shlibpath_var
15373 # Is shlibpath searched before the hard-coded library search path?
15374 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15376 # How to hardcode a shared library path into an executable.
15377 hardcode_action=$hardcode_action_F77
15379 # Whether we should hardcode library paths into libraries.
15380 hardcode_into_libs=$hardcode_into_libs
15382 # Flag to hardcode \$libdir into a binary during linking.
15383 # This must work even if \$libdir does not exist.
15384 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15386 # If ld is used when linking, flag to hardcode \$libdir into
15387 # a binary during linking. This must work even if \$libdir does
15389 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15391 # Whether we need a single -rpath flag with a separated argument.
15392 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15394 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15395 # resulting binary.
15396 hardcode_direct=$hardcode_direct_F77
15398 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15399 # resulting binary.
15400 hardcode_minus_L=$hardcode_minus_L_F77
15402 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15403 # the resulting binary.
15404 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15406 # Set to yes if building a shared library automatically hardcodes DIR into the library
15407 # and all subsequent libraries and executables linked against it.
15408 hardcode_automatic=$hardcode_automatic_F77
15410 # Variables whose values should be saved in libtool wrapper scripts and
15411 # restored at relink time.
15412 variables_saved_for_relink="$variables_saved_for_relink"
15414 # Whether libtool must link a program against all its dependency libraries.
15415 link_all_deplibs=$link_all_deplibs_F77
15417 # Compile-time system search path for libraries
15418 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15420 # Run-time system search path for libraries
15421 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15423 # Fix the shell variable \$srcfile for the compiler.
15424 fix_srcfile_path="$fix_srcfile_path_F77"
15426 # Set to yes if exported symbols are required.
15427 always_export_symbols=$always_export_symbols_F77
15429 # The commands to list exported symbols.
15430 export_symbols_cmds=$lt_export_symbols_cmds_F77
15432 # The commands to extract the exported symbol list from a shared archive.
15433 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15435 # Symbols that should not be listed in the preloaded symbols.
15436 exclude_expsyms=$lt_exclude_expsyms_F77
15438 # Symbols that must always be exported.
15439 include_expsyms=$lt_include_expsyms_F77
15441 # ### END LIBTOOL TAG CONFIG: $tagname
15447 # If there is no Makefile yet, we rely on a make rule to execute
15448 # `config.status --recheck' to rerun these tests and create the
15449 # libtool script then.
15450 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15451 if test -f "$ltmain_in"; then
15452 test -f Makefile && make "$ltmain"
15458 ac_cpp='$CPP $CPPFLAGS'
15459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15471 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15475 # Source file extension for Java test sources.
15478 # Object file extension for compiled Java test sources.
15482 # Code to be used in simple compile tests
15483 lt_simple_compile_test_code="class foo {}\n"
15485 # Code to be used in simple link tests
15486 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15488 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15490 # If no C compiler was specified, use CC.
15493 # If no C compiler flags were specified, use CFLAGS.
15494 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15496 # Allow CC to be a program name with arguments.
15500 # save warnings/boilerplate of simple test code
15501 ac_outfile=conftest.$ac_objext
15502 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15503 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15504 _lt_compiler_boilerplate=`cat conftest.err`
15507 ac_outfile=conftest.$ac_objext
15508 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15509 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15510 _lt_linker_boilerplate=`cat conftest.err`
15514 # Allow CC to be a program name with arguments.
15519 for cc_temp in $compiler""; do
15521 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15522 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15527 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15530 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15531 archive_cmds_need_lc_GCJ=no
15533 old_archive_cmds_GCJ=$old_archive_cmds
15536 ## There is no encapsulation within the following macros, do not change
15537 ## the running order or otherwise move them around unless you know exactly
15538 ## what you are doing...
15540 lt_prog_compiler_no_builtin_flag_GCJ=
15542 if test "$GCC" = yes; then
15543 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15546 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15547 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15548 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 lt_cv_prog_compiler_rtti_exceptions=no
15552 ac_outfile=conftest.$ac_objext
15553 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15554 lt_compiler_flag="-fno-rtti -fno-exceptions"
15555 # Insert the option either (1) after the last *FLAGS variable, or
15556 # (2) before a word containing "conftest.", or (3) at the end.
15557 # Note that $ac_compile itself does not contain backslashes and begins
15558 # with a dollar sign (not a hyphen), so the echo should work correctly.
15559 # The option is referenced via a variable to avoid confusing sed.
15560 lt_compile=`echo "$ac_compile" | $SED \
15561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15563 -e 's:$: $lt_compiler_flag:'`
15564 (eval echo "\"\$as_me:15564: $lt_compile\"" >&5)
15565 (eval "$lt_compile" 2>conftest.err)
15567 cat conftest.err >&5
15568 echo "$as_me:15568: \$? = $ac_status" >&5
15569 if (exit $ac_status) && test -s "$ac_outfile"; then
15570 # The compiler can only warn and ignore the option if not recognized
15571 # So say no if there are warnings other than the usual output.
15572 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15574 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15575 lt_cv_prog_compiler_rtti_exceptions=yes
15581 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15582 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15584 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15585 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15592 lt_prog_compiler_wl_GCJ=
15593 lt_prog_compiler_pic_GCJ=
15594 lt_prog_compiler_static_GCJ=
15596 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15597 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15599 if test "$GCC" = yes; then
15600 lt_prog_compiler_wl_GCJ='-Wl,'
15601 lt_prog_compiler_static_GCJ='-static'
15605 # All AIX code is PIC.
15606 if test "$host_cpu" = ia64; then
15607 # AIX 5 now supports IA64 processor
15608 lt_prog_compiler_static_GCJ='-Bstatic'
15613 # FIXME: we need at least 68020 code to build shared libraries, but
15614 # adding the `-m68020' flag to GCC prevents building anything better,
15616 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15619 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15620 # PIC is the default for these OSes.
15623 mingw* | pw32* | os2*)
15624 # This hack is so that the source file can tell whether it is being
15625 # built for inclusion in a dll (and should export symbols for example).
15626 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15629 darwin* | rhapsody*)
15630 # PIC is the default on this platform
15631 # Common symbols not allowed in MH_DYLIB files
15632 lt_prog_compiler_pic_GCJ='-fno-common'
15636 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15637 # Instead, we relocate shared libraries at runtime.
15641 # Just because we use GCC doesn't mean we suddenly get shared libraries
15642 # on systems that don't support them.
15643 lt_prog_compiler_can_build_shared_GCJ=no
15648 if test -d /usr/nec; then
15649 lt_prog_compiler_pic_GCJ=-Kconform_pic
15654 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15655 # not for PA HP-UX.
15661 lt_prog_compiler_pic_GCJ='-fPIC'
15667 lt_prog_compiler_pic_GCJ='-fPIC'
15671 # PORTME Check for flag to pass linker flags through the system compiler.
15674 lt_prog_compiler_wl_GCJ='-Wl,'
15675 if test "$host_cpu" = ia64; then
15676 # AIX 5 now supports IA64 processor
15677 lt_prog_compiler_static_GCJ='-Bstatic'
15679 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15683 # PIC is the default on this platform
15684 # Common symbols not allowed in MH_DYLIB files
15685 case $cc_basename in
15687 lt_prog_compiler_pic_GCJ='-qnocommon'
15688 lt_prog_compiler_wl_GCJ='-Wl,'
15693 mingw* | pw32* | os2*)
15694 # This hack is so that the source file can tell whether it is being
15695 # built for inclusion in a dll (and should export symbols for example).
15696 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15699 hpux9* | hpux10* | hpux11*)
15700 lt_prog_compiler_wl_GCJ='-Wl,'
15701 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15702 # not for PA HP-UX.
15708 lt_prog_compiler_pic_GCJ='+Z'
15711 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15712 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15715 irix5* | irix6* | nonstopux*)
15716 lt_prog_compiler_wl_GCJ='-Wl,'
15717 # PIC (with -KPIC) is the default.
15718 lt_prog_compiler_static_GCJ='-non_shared'
15722 lt_prog_compiler_pic_GCJ='-KPIC'
15723 lt_prog_compiler_static_GCJ='-Bstatic'
15727 case $cc_basename in
15729 lt_prog_compiler_wl_GCJ='-Wl,'
15730 lt_prog_compiler_pic_GCJ='-KPIC'
15731 lt_prog_compiler_static_GCJ='-static'
15733 pgcc* | pgf77* | pgf90* | pgf95*)
15734 # Portland Group compilers (*not* the Pentium gcc compiler,
15735 # which looks to be a dead project)
15736 lt_prog_compiler_wl_GCJ='-Wl,'
15737 lt_prog_compiler_pic_GCJ='-fpic'
15738 lt_prog_compiler_static_GCJ='-Bstatic'
15741 lt_prog_compiler_wl_GCJ='-Wl,'
15742 # All Alpha code is PIC.
15743 lt_prog_compiler_static_GCJ='-non_shared'
15748 osf3* | osf4* | osf5*)
15749 lt_prog_compiler_wl_GCJ='-Wl,'
15750 # All OSF/1 code is PIC.
15751 lt_prog_compiler_static_GCJ='-non_shared'
15755 lt_prog_compiler_pic_GCJ='-KPIC'
15756 lt_prog_compiler_static_GCJ='-Bstatic'
15757 case $cc_basename in
15758 f77* | f90* | f95*)
15759 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15761 lt_prog_compiler_wl_GCJ='-Wl,';;
15766 lt_prog_compiler_wl_GCJ='-Qoption ld '
15767 lt_prog_compiler_pic_GCJ='-PIC'
15768 lt_prog_compiler_static_GCJ='-Bstatic'
15771 sysv4 | sysv4.2uw2* | sysv4.3*)
15772 lt_prog_compiler_wl_GCJ='-Wl,'
15773 lt_prog_compiler_pic_GCJ='-KPIC'
15774 lt_prog_compiler_static_GCJ='-Bstatic'
15778 if test -d /usr/nec ;then
15779 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15780 lt_prog_compiler_static_GCJ='-Bstatic'
15784 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15785 lt_prog_compiler_wl_GCJ='-Wl,'
15786 lt_prog_compiler_pic_GCJ='-KPIC'
15787 lt_prog_compiler_static_GCJ='-Bstatic'
15791 lt_prog_compiler_wl_GCJ='-Wl,'
15792 lt_prog_compiler_can_build_shared_GCJ=no
15796 lt_prog_compiler_pic_GCJ='-pic'
15797 lt_prog_compiler_static_GCJ='-Bstatic'
15801 lt_prog_compiler_can_build_shared_GCJ=no
15806 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15807 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15810 # Check to make sure the PIC flag actually works.
15812 if test -n "$lt_prog_compiler_pic_GCJ"; then
15814 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15815 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15816 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15817 echo $ECHO_N "(cached) $ECHO_C" >&6
15819 lt_prog_compiler_pic_works_GCJ=no
15820 ac_outfile=conftest.$ac_objext
15821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15822 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15823 # Insert the option either (1) after the last *FLAGS variable, or
15824 # (2) before a word containing "conftest.", or (3) at the end.
15825 # Note that $ac_compile itself does not contain backslashes and begins
15826 # with a dollar sign (not a hyphen), so the echo should work correctly.
15827 # The option is referenced via a variable to avoid confusing sed.
15828 lt_compile=`echo "$ac_compile" | $SED \
15829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15831 -e 's:$: $lt_compiler_flag:'`
15832 (eval echo "\"\$as_me:15832: $lt_compile\"" >&5)
15833 (eval "$lt_compile" 2>conftest.err)
15835 cat conftest.err >&5
15836 echo "$as_me:15836: \$? = $ac_status" >&5
15837 if (exit $ac_status) && test -s "$ac_outfile"; then
15838 # The compiler can only warn and ignore the option if not recognized
15839 # So say no if there are warnings other than the usual output.
15840 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15842 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15843 lt_prog_compiler_pic_works_GCJ=yes
15849 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15850 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15852 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15853 case $lt_prog_compiler_pic_GCJ in
15855 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15858 lt_prog_compiler_pic_GCJ=
15859 lt_prog_compiler_can_build_shared_GCJ=no
15864 # For platforms which do not support PIC, -DPIC is meaningless:
15866 lt_prog_compiler_pic_GCJ=
15869 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15874 # Check to make sure the static flag actually works.
15876 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15877 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15878 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15879 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15880 echo $ECHO_N "(cached) $ECHO_C" >&6
15882 lt_prog_compiler_static_works_GCJ=no
15883 save_LDFLAGS="$LDFLAGS"
15884 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15885 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15886 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15887 # The linker can only warn and ignore the option if not recognized
15888 # So say no if there are warnings
15889 if test -s conftest.err; then
15890 # Append any errors to the config.log.
15891 cat conftest.err 1>&5
15892 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15894 if diff conftest.exp conftest.er2 >/dev/null; then
15895 lt_prog_compiler_static_works_GCJ=yes
15898 lt_prog_compiler_static_works_GCJ=yes
15902 LDFLAGS="$save_LDFLAGS"
15905 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15906 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15908 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15911 lt_prog_compiler_static_GCJ=
15915 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15916 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15917 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15920 lt_cv_prog_compiler_c_o_GCJ=no
15921 $rm -r conftest 2>/dev/null
15925 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15927 lt_compiler_flag="-o out/conftest2.$ac_objext"
15928 # Insert the option either (1) after the last *FLAGS variable, or
15929 # (2) before a word containing "conftest.", or (3) at the end.
15930 # Note that $ac_compile itself does not contain backslashes and begins
15931 # with a dollar sign (not a hyphen), so the echo should work correctly.
15932 lt_compile=`echo "$ac_compile" | $SED \
15933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15935 -e 's:$: $lt_compiler_flag:'`
15936 (eval echo "\"\$as_me:15936: $lt_compile\"" >&5)
15937 (eval "$lt_compile" 2>out/conftest.err)
15939 cat out/conftest.err >&5
15940 echo "$as_me:15940: \$? = $ac_status" >&5
15941 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15943 # The compiler can only warn and ignore the option if not recognized
15944 # So say no if there are warnings
15945 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15946 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15947 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15948 lt_cv_prog_compiler_c_o_GCJ=yes
15953 # SGI C++ compiler will create directory out/ii_files/ for
15954 # template instantiation
15955 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15956 $rm out/* && rmdir out
15962 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15963 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15966 hard_links="nottested"
15967 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15968 # do not overwrite the value of need_locks provided by the user
15969 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15970 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15973 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15975 ln conftest.a conftest.b 2>&5 || hard_links=no
15976 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15977 echo "$as_me:$LINENO: result: $hard_links" >&5
15978 echo "${ECHO_T}$hard_links" >&6
15979 if test "$hard_links" = no; then
15980 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15981 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15988 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15989 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15992 allow_undefined_flag_GCJ=
15993 enable_shared_with_static_runtimes_GCJ=no
15995 archive_expsym_cmds_GCJ=
15996 old_archive_From_new_cmds_GCJ=
15997 old_archive_from_expsyms_cmds_GCJ=
15998 export_dynamic_flag_spec_GCJ=
15999 whole_archive_flag_spec_GCJ=
16000 thread_safe_flag_spec_GCJ=
16001 hardcode_libdir_flag_spec_GCJ=
16002 hardcode_libdir_flag_spec_ld_GCJ=
16003 hardcode_libdir_separator_GCJ=
16004 hardcode_direct_GCJ=no
16005 hardcode_minus_L_GCJ=no
16006 hardcode_shlibpath_var_GCJ=unsupported
16007 link_all_deplibs_GCJ=unknown
16008 hardcode_automatic_GCJ=no
16010 module_expsym_cmds_GCJ=
16011 always_export_symbols_GCJ=no
16012 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16013 # include_expsyms should be a list of space-separated symbols to be *always*
16014 # included in the symbol list
16015 include_expsyms_GCJ=
16016 # exclude_expsyms can be an extended regexp of symbols to exclude
16017 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16018 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16019 # as well as any symbol that contains `d'.
16020 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16021 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16022 # platforms (ab)use it in PIC code, but their linkers get confused if
16023 # the symbol is explicitly referenced. Since portable code cannot
16024 # rely on this symbol name, it's probably fine to never include it in
16025 # preloaded symbol tables.
16026 extract_expsyms_cmds=
16027 # Just being paranoid about ensuring that cc_basename is set.
16028 for cc_temp in $compiler""; do
16030 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16031 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16036 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16039 cygwin* | mingw* | pw32*)
16040 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16041 # When not using gcc, we currently assume that we are using
16042 # Microsoft Visual C++.
16043 if test "$GCC" != yes; then
16048 # we just hope/assume this is gcc and not c89 (= MSVC++)
16057 if test "$with_gnu_ld" = yes; then
16058 # If archive_cmds runs LD, not CC, wlarc should be empty
16061 # Set some defaults for GNU ld with shared library support. These
16062 # are reset later if shared libraries are not supported. Putting them
16063 # here allows them to be overridden if necessary.
16064 runpath_var=LD_RUN_PATH
16065 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16066 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16067 # ancient GNU ld didn't support --whole-archive et. al.
16068 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16069 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16071 whole_archive_flag_spec_GCJ=
16073 supports_anon_versioning=no
16074 case `$LD -v 2>/dev/null` in
16075 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16076 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16077 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16078 *\ 2.11.*) ;; # other 2.11 versions
16079 *) supports_anon_versioning=yes ;;
16082 # See if GNU ld supports shared libraries.
16084 aix3* | aix4* | aix5*)
16085 # On AIX/PPC, the GNU linker is very broken
16086 if test "$host_cpu" != ia64; then
16090 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16091 *** to be unable to reliably create shared libraries on AIX.
16092 *** Therefore, libtool is disabling shared libraries support. If you
16093 *** really care for shared libraries, you may want to modify your PATH
16094 *** so that a non-GNU linker is found, and then restart.
16101 archive_cmds_GCJ='$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)'
16102 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16103 hardcode_minus_L_GCJ=yes
16105 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16106 # that the semantics of dynamic libraries on AmigaOS, at least up
16107 # to version 4, is to share data among multiple programs linked
16108 # with the same dynamic library. Since this doesn't match the
16109 # behavior of shared libraries on other platforms, we can't use
16115 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16116 allow_undefined_flag_GCJ=unsupported
16117 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16118 # support --undefined. This deserves some investigation. FIXME
16119 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16125 cygwin* | mingw* | pw32*)
16126 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16127 # as there is no search path for DLLs.
16128 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16129 allow_undefined_flag_GCJ=unsupported
16130 always_export_symbols_GCJ=no
16131 enable_shared_with_static_runtimes_GCJ=yes
16132 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16134 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16135 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16136 # If the export-symbols file already is a .def file (1st line
16137 # is EXPORTS), use it as is; otherwise, prepend...
16138 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16139 cp $export_symbols $output_objdir/$soname.def;
16141 echo EXPORTS > $output_objdir/$soname.def;
16142 cat $export_symbols >> $output_objdir/$soname.def;
16144 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16151 hardcode_direct_GCJ=no
16152 hardcode_shlibpath_var_GCJ=no
16153 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16154 export_dynamic_flag_spec_GCJ='${wl}-E'
16155 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16156 # Instead, shared libraries are loaded at an image base (0x10000000 by
16157 # default) and relocated if they conflict, which is a slow very memory
16158 # consuming and fragmenting process. To avoid this, we pick a random,
16159 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16160 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16161 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16162 archive_expsym_cmds_GCJ='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'
16166 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16168 case $cc_basename,$host_cpu in
16169 pgcc*) # Portland Group C compiler
16170 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16171 tmp_addflag=' $pic_flag'
16173 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16174 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16175 tmp_addflag=' $pic_flag -Mnomain' ;;
16176 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16177 tmp_addflag=' -i_dynamic' ;;
16178 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16179 tmp_addflag=' -i_dynamic -nofor_main' ;;
16180 ifc* | ifort*) # Intel Fortran compiler
16181 tmp_addflag=' -nofor_main' ;;
16183 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16185 if test $supports_anon_versioning = yes; then
16186 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16187 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16188 $echo "local: *; };" >> $output_objdir/$libname.ver~
16189 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16197 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16198 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16201 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16202 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16207 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16211 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16212 *** create shared libraries on Solaris systems. Therefore, libtool
16213 *** is disabling shared libraries support. We urge you to upgrade GNU
16214 *** binutils to release 2.9.1 or newer. Another option is to modify
16215 *** your PATH or compiler configuration so that the native linker is
16216 *** used, and then restart.
16219 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16220 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16221 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16227 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16228 case `$LD -v 2>&1` in
16229 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16233 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16234 *** reliably create shared libraries on SCO systems. Therefore, libtool
16235 *** is disabling shared libraries support. We urge you to upgrade GNU
16236 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16237 *** your PATH or compiler configuration so that the native linker is
16238 *** used, and then restart.
16243 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16244 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16245 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16246 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16255 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16257 hardcode_direct_GCJ=yes
16258 hardcode_shlibpath_var_GCJ=no
16262 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16263 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16264 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16271 if test "$ld_shlibs_GCJ" = no; then
16273 hardcode_libdir_flag_spec_GCJ=
16274 export_dynamic_flag_spec_GCJ=
16275 whole_archive_flag_spec_GCJ=
16278 # PORTME fill in a description of your system's linker (not GNU ld)
16281 allow_undefined_flag_GCJ=unsupported
16282 always_export_symbols_GCJ=yes
16283 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16284 # Note: this linker hardcodes the directories in LIBPATH if there
16285 # are no directories specified by -L.
16286 hardcode_minus_L_GCJ=yes
16287 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16288 # Neither direct hardcoding nor static linking is supported with a
16290 hardcode_direct_GCJ=unsupported
16295 if test "$host_cpu" = ia64; then
16296 # On IA64, the linker does run time linking by default, so we don't
16297 # have to do anything special.
16298 aix_use_runtimelinking=no
16299 exp_sym_flag='-Bexport'
16302 # If we're using GNU nm, then we don't want the "-C" option.
16303 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16304 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16305 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16307 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16309 aix_use_runtimelinking=no
16311 # Test if we are trying to use run time linking or normal
16312 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16313 # need to do runtime linking.
16314 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16315 for ld_flag in $LDFLAGS; do
16316 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16317 aix_use_runtimelinking=yes
16324 exp_sym_flag='-bexport'
16325 no_entry_flag='-bnoentry'
16328 # When large executables or shared objects are built, AIX ld can
16329 # have problems creating the table of contents. If linking a library
16330 # or program results in "error TOC overflow" add -mminimal-toc to
16331 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16332 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16334 archive_cmds_GCJ=''
16335 hardcode_direct_GCJ=yes
16336 hardcode_libdir_separator_GCJ=':'
16337 link_all_deplibs_GCJ=yes
16339 if test "$GCC" = yes; then
16340 case $host_os in aix4.[012]|aix4.[012].*)
16341 # We only want to do this on AIX 4.2 and lower, the check
16342 # below for broken collect2 doesn't work under 4.3+
16343 collect2name=`${CC} -print-prog-name=collect2`
16344 if test -f "$collect2name" && \
16345 strings "$collect2name" | grep resolve_lib_name >/dev/null
16347 # We have reworked collect2
16348 hardcode_direct_GCJ=yes
16350 # We have old collect2
16351 hardcode_direct_GCJ=unsupported
16352 # It fails to find uninstalled libraries when the uninstalled
16353 # path is not listed in the libpath. Setting hardcode_minus_L
16354 # to unsupported forces relinking
16355 hardcode_minus_L_GCJ=yes
16356 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16357 hardcode_libdir_separator_GCJ=
16361 shared_flag='-shared'
16362 if test "$aix_use_runtimelinking" = yes; then
16363 shared_flag="$shared_flag "'${wl}-G'
16367 if test "$host_cpu" = ia64; then
16368 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16369 # chokes on -Wl,-G. The following line is correct:
16372 if test "$aix_use_runtimelinking" = yes; then
16373 shared_flag='${wl}-G'
16375 shared_flag='${wl}-bM:SRE'
16380 # It seems that -bexpall does not export symbols beginning with
16381 # underscore (_), so it is better to generate a list of symbols to export.
16382 always_export_symbols_GCJ=yes
16383 if test "$aix_use_runtimelinking" = yes; then
16384 # Warning - without using the other runtime loading flags (-brtl),
16385 # -berok will link without error, but may produce a broken library.
16386 allow_undefined_flag_GCJ='-berok'
16387 # Determine the default libpath from the value encoded in an empty executable.
16388 cat >conftest.$ac_ext <<_ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h. */
16403 rm -f conftest.$ac_objext conftest$ac_exeext
16404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16405 (eval $ac_link) 2>conftest.er1
16407 grep -v '^ *+' conftest.er1 >conftest.err
16409 cat conftest.err >&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } &&
16412 { ac_try='test -z "$ac_c_werror_flag"
16413 || test ! -s conftest.err'
16414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415 (eval $ac_try) 2>&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; } &&
16419 { ac_try='test -s conftest$ac_exeext'
16420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421 (eval $ac_try) 2>&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
16426 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16428 # Check for a 64-bit object if we didn't find anything.
16429 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16432 echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16436 rm -f conftest.err conftest.$ac_objext \
16437 conftest$ac_exeext conftest.$ac_ext
16438 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16440 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16441 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16443 if test "$host_cpu" = ia64; then
16444 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16445 allow_undefined_flag_GCJ="-z nodefs"
16446 archive_expsym_cmds_GCJ="\$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"
16448 # Determine the default libpath from the value encoded in an empty executable.
16449 cat >conftest.$ac_ext <<_ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h. */
16464 rm -f conftest.$ac_objext conftest$ac_exeext
16465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16466 (eval $ac_link) 2>conftest.er1
16468 grep -v '^ *+' conftest.er1 >conftest.err
16470 cat conftest.err >&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } &&
16473 { ac_try='test -z "$ac_c_werror_flag"
16474 || test ! -s conftest.err'
16475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; } &&
16480 { ac_try='test -s conftest$ac_exeext'
16481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482 (eval $ac_try) 2>&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; }; then
16487 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16489 # Check for a 64-bit object if we didn't find anything.
16490 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16493 echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16497 rm -f conftest.err conftest.$ac_objext \
16498 conftest$ac_exeext conftest.$ac_ext
16499 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16501 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16502 # Warning - without using the other run time loading flags,
16503 # -berok will link without error, but may produce a broken library.
16504 no_undefined_flag_GCJ=' ${wl}-bernotok'
16505 allow_undefined_flag_GCJ=' ${wl}-berok'
16506 # Exported symbols can be pulled into shared objects from archives
16507 whole_archive_flag_spec_GCJ='$convenience'
16508 archive_cmds_need_lc_GCJ=yes
16509 # This is similar to how AIX traditionally builds its shared libraries.
16510 archive_expsym_cmds_GCJ="\$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'
16516 archive_cmds_GCJ='$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)'
16517 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16518 hardcode_minus_L_GCJ=yes
16519 # see comment about different semantics on the GNU ld section
16524 export_dynamic_flag_spec_GCJ=-rdynamic
16527 cygwin* | mingw* | pw32*)
16528 # When not using gcc, we currently assume that we are using
16529 # Microsoft Visual C++.
16530 # hardcode_libdir_flag_spec is actually meaningless, as there is
16531 # no search path for DLLs.
16532 hardcode_libdir_flag_spec_GCJ=' '
16533 allow_undefined_flag_GCJ=unsupported
16534 # Tell ltmain to make .lib files, not .a files.
16536 # Tell ltmain to make .dll files, not .so files.
16538 # FIXME: Setting linknames here is a bad hack.
16539 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16540 # The linker will automatically build a .lib file if we build a DLL.
16541 old_archive_From_new_cmds_GCJ='true'
16542 # FIXME: Should let the user specify the lib program.
16543 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16544 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16545 enable_shared_with_static_runtimes_GCJ=yes
16548 darwin* | rhapsody*)
16550 rhapsody* | darwin1.[012])
16551 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16554 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16555 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16557 case ${MACOSX_DEPLOYMENT_TARGET} in
16559 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16562 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16568 archive_cmds_need_lc_GCJ=no
16569 hardcode_direct_GCJ=no
16570 hardcode_automatic_GCJ=yes
16571 hardcode_shlibpath_var_GCJ=unsupported
16572 whole_archive_flag_spec_GCJ=''
16573 link_all_deplibs_GCJ=yes
16574 if test "$GCC" = yes ; then
16575 output_verbose_link_cmd='echo'
16576 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16577 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16578 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16579 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16580 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16582 case $cc_basename in
16584 output_verbose_link_cmd='echo'
16585 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16586 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16587 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16588 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16589 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16599 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16600 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16601 hardcode_shlibpath_var_GCJ=no
16608 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16609 # support. Future versions do this automatically, but an explicit c++rt0.o
16610 # does not break anything, and helps significantly (at the cost of a little
16613 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16614 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16615 hardcode_direct_GCJ=yes
16616 hardcode_shlibpath_var_GCJ=no
16619 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16621 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16622 hardcode_direct_GCJ=yes
16623 hardcode_minus_L_GCJ=yes
16624 hardcode_shlibpath_var_GCJ=no
16627 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16628 freebsd* | kfreebsd*-gnu | dragonfly*)
16629 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16630 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16631 hardcode_direct_GCJ=yes
16632 hardcode_shlibpath_var_GCJ=no
16636 if test "$GCC" = yes; then
16637 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16639 archive_cmds_GCJ='$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'
16641 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16642 hardcode_libdir_separator_GCJ=:
16643 hardcode_direct_GCJ=yes
16645 # hardcode_minus_L: Not really in the search PATH,
16646 # but as the default location of the library.
16647 hardcode_minus_L_GCJ=yes
16648 export_dynamic_flag_spec_GCJ='${wl}-E'
16652 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16653 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16655 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16657 if test "$with_gnu_ld" = no; then
16658 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16659 hardcode_libdir_separator_GCJ=:
16661 hardcode_direct_GCJ=yes
16662 export_dynamic_flag_spec_GCJ='${wl}-E'
16664 # hardcode_minus_L: Not really in the search PATH,
16665 # but as the default location of the library.
16666 hardcode_minus_L_GCJ=yes
16671 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16674 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16677 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16680 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16686 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16689 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16692 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16696 if test "$with_gnu_ld" = no; then
16697 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16698 hardcode_libdir_separator_GCJ=:
16702 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16703 hardcode_direct_GCJ=no
16704 hardcode_shlibpath_var_GCJ=no
16707 hardcode_direct_GCJ=yes
16708 export_dynamic_flag_spec_GCJ='${wl}-E'
16710 # hardcode_minus_L: Not really in the search PATH,
16711 # but as the default location of the library.
16712 hardcode_minus_L_GCJ=yes
16718 irix5* | irix6* | nonstopux*)
16719 if test "$GCC" = yes; then
16720 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16722 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16723 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16725 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16726 hardcode_libdir_separator_GCJ=:
16727 link_all_deplibs_GCJ=yes
16731 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16732 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16734 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16736 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16737 hardcode_direct_GCJ=yes
16738 hardcode_shlibpath_var_GCJ=no
16742 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16743 hardcode_direct_GCJ=yes
16744 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16745 hardcode_libdir_separator_GCJ=:
16746 hardcode_shlibpath_var_GCJ=no
16750 hardcode_direct_GCJ=yes
16751 hardcode_shlibpath_var_GCJ=no
16752 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16753 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16754 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16755 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16756 export_dynamic_flag_spec_GCJ='${wl}-E'
16759 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16760 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16761 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16764 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16765 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16772 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16773 hardcode_minus_L_GCJ=yes
16774 allow_undefined_flag_GCJ=unsupported
16775 archive_cmds_GCJ='$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'
16776 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16780 if test "$GCC" = yes; then
16781 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16782 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16784 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16785 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16787 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16788 hardcode_libdir_separator_GCJ=:
16791 osf4* | osf5*) # as osf3* with the addition of -msym flag
16792 if test "$GCC" = yes; then
16793 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16794 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16795 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16797 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16798 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16799 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16800 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16802 # Both c and cxx compiler support -rpath directly
16803 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16805 hardcode_libdir_separator_GCJ=:
16809 no_undefined_flag_GCJ=' -z text'
16810 if test "$GCC" = yes; then
16812 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16813 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16814 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16817 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16818 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16819 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16821 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16822 hardcode_shlibpath_var_GCJ=no
16824 solaris2.[0-5] | solaris2.[0-5].*) ;;
16826 # The compiler driver will combine linker options so we
16827 # cannot just pass the convience library names through
16828 # without $wl, iff we do not link with $LD.
16829 # Luckily, gcc supports the same syntax we need for Sun Studio.
16830 # Supported since Solaris 2.6 (maybe 2.5.1?)
16833 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16835 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16838 link_all_deplibs_GCJ=yes
16842 if test "x$host_vendor" = xsequent; then
16843 # Use $CC to link under sequent, because it throws in some extra .o
16844 # files that make .init and .fini sections work.
16845 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16847 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16849 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16850 hardcode_direct_GCJ=yes
16851 hardcode_minus_L_GCJ=yes
16852 hardcode_shlibpath_var_GCJ=no
16856 case $host_vendor in
16858 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16859 hardcode_direct_GCJ=yes # is this really true???
16862 ## LD is ld it makes a PLAMLIB
16863 ## CC just makes a GrossModule.
16864 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16865 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16866 hardcode_direct_GCJ=no
16869 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16870 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16873 runpath_var='LD_RUN_PATH'
16874 hardcode_shlibpath_var_GCJ=no
16878 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16879 hardcode_shlibpath_var_GCJ=no
16880 export_dynamic_flag_spec_GCJ='-Bexport'
16884 if test -d /usr/nec; then
16885 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16886 hardcode_shlibpath_var_GCJ=no
16887 runpath_var=LD_RUN_PATH
16888 hardcode_runpath_var=yes
16893 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16894 no_undefined_flag_GCJ='${wl}-z,text'
16895 archive_cmds_need_lc_GCJ=no
16896 hardcode_shlibpath_var_GCJ=no
16897 runpath_var='LD_RUN_PATH'
16899 if test "$GCC" = yes; then
16900 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16901 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16903 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16904 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16908 sysv5* | sco3.2v5* | sco5v6*)
16909 # Note: We can NOT use -z defs as we might desire, because we do not
16910 # link with -lc, and that would cause any symbols used from libc to
16911 # always be unresolved, which means just about no library would
16912 # ever link correctly. If we're not using GNU ld we use -z text
16913 # though, which does catch some bad symbols but isn't as heavy-handed
16915 no_undefined_flag_GCJ='${wl}-z,text'
16916 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16917 archive_cmds_need_lc_GCJ=no
16918 hardcode_shlibpath_var_GCJ=no
16919 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16920 hardcode_libdir_separator_GCJ=':'
16921 link_all_deplibs_GCJ=yes
16922 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16923 runpath_var='LD_RUN_PATH'
16925 if test "$GCC" = yes; then
16926 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16927 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16929 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16930 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16935 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16936 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16937 hardcode_shlibpath_var_GCJ=no
16946 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16947 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16948 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16951 # Do we need to explicitly link libc?
16953 case "x$archive_cmds_need_lc_GCJ" in
16955 # Assume -lc should be added
16956 archive_cmds_need_lc_GCJ=yes
16958 if test "$enable_shared" = yes && test "$GCC" = yes; then
16959 case $archive_cmds_GCJ in
16961 # FIXME: we may have to deal with multi-command sequences.
16964 # Test whether the compiler implicitly links with -lc since on some
16965 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16966 # to ld, don't add -lc before -lgcc.
16967 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16968 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16970 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16973 (eval $ac_compile) 2>&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); } 2>conftest.err; then
16979 libobjs=conftest.$ac_objext
16981 wl=$lt_prog_compiler_wl_GCJ
16982 pic_flag=$lt_prog_compiler_pic_GCJ
16988 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16989 allow_undefined_flag_GCJ=
16990 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16991 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }
16996 archive_cmds_need_lc_GCJ=no
16998 archive_cmds_need_lc_GCJ=yes
17000 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17002 cat conftest.err 1>&5
17005 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17006 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17013 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17014 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17015 library_names_spec=
17016 libname_spec='lib$name'
17020 postuninstall_cmds=
17024 shlibpath_overrides_runpath=unknown
17026 dynamic_linker="$host_os ld.so"
17027 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17028 if test "$GCC" = yes; then
17029 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17030 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17031 # if the path contains ";" then we assume it to be the separator
17032 # otherwise default to the standard path separator (i.e. ":") - it is
17033 # assumed that no part of a normal pathname contains ";" but that should
17034 # okay in the real world where ";" in dirpaths is itself problematic.
17035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17037 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17040 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17042 need_lib_prefix=unknown
17043 hardcode_into_libs=no
17045 # when you set need_version to no, make sure it does not cause -set_version
17046 # flags to be left without arguments
17047 need_version=unknown
17052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17053 shlibpath_var=LIBPATH
17055 # AIX 3 has no versioning support, so we append a major version to the name.
17056 soname_spec='${libname}${release}${shared_ext}$major'
17063 hardcode_into_libs=yes
17064 if test "$host_cpu" = ia64; then
17065 # AIX 5 supports IA64
17066 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17067 shlibpath_var=LD_LIBRARY_PATH
17069 # With GCC up to 2.95.x, collect2 would create an import file
17070 # for dependence libraries. The import file would start with
17071 # the line `#! .'. This would cause the generated library to
17072 # depend on `.', always an invalid library. This was fixed in
17073 # development snapshots of GCC prior to 3.0.
17075 aix4 | aix4.[01] | aix4.[01].*)
17076 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17078 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17081 can_build_shared=no
17085 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17086 # soname into executable. Probably we can add versioning support to
17087 # collect2, so additional links can be useful in future.
17088 if test "$aix_use_runtimelinking" = yes; then
17089 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17090 # instead of lib<name>.a to let people know that these are not
17091 # typical AIX shared libraries.
17092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17094 # We preserve .a as extension for shared libraries through AIX4.2
17095 # and later when we are not doing run time linking.
17096 library_names_spec='${libname}${release}.a $libname.a'
17097 soname_spec='${libname}${release}${shared_ext}$major'
17099 shlibpath_var=LIBPATH
17104 library_names_spec='$libname.ixlibrary $libname.a'
17105 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17106 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
17110 library_names_spec='${libname}${shared_ext}'
17111 dynamic_linker="$host_os ld.so"
17112 shlibpath_var=LIBRARY_PATH
17118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17119 soname_spec='${libname}${release}${shared_ext}$major'
17120 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17121 shlibpath_var=LD_LIBRARY_PATH
17122 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17123 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17124 # the default ld.so.conf also contains /usr/contrib/lib and
17125 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17126 # libtool to hard-code these into programs
17129 cygwin* | mingw* | pw32*)
17130 version_type=windows
17135 case $GCC,$host_os in
17136 yes,cygwin* | yes,mingw* | yes,pw32*)
17137 library_names_spec='$libname.dll.a'
17138 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17139 postinstall_cmds='base_file=`basename \${file}`~
17140 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17141 dldir=$destdir/`dirname \$dlpath`~
17142 test -d \$dldir || mkdir -p \$dldir~
17143 $install_prog $dir/$dlname \$dldir/$dlname~
17144 chmod a+x \$dldir/$dlname'
17145 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17146 dlpath=$dir/\$dldll~
17148 shlibpath_overrides_runpath=yes
17152 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17153 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17154 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17157 # MinGW DLLs use traditional 'lib' prefix
17158 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17159 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17160 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17161 # It is most probably a Windows format PATH printed by
17162 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17163 # path with ; separators, and with drive letters. We can handle the
17164 # drive letters (cygwin fileutils understands them), so leave them,
17165 # especially as we might pass files found there to a mingw objdump,
17166 # which wouldn't understand a cygwinified path. Ahh.
17167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17173 # pw32 DLLs use 'pw' prefix rather than 'lib'
17174 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17180 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17183 dynamic_linker='Win32 ld.exe'
17184 # FIXME: first we should search . and the directory the executable is in
17188 darwin* | rhapsody*)
17189 dynamic_linker="$host_os dyld"
17190 version_type=darwin
17193 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17194 soname_spec='${libname}${release}${major}$shared_ext'
17195 shlibpath_overrides_runpath=yes
17196 shlibpath_var=DYLD_LIBRARY_PATH
17197 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17198 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17199 if test "$GCC" = yes; then
17200 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17202 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17204 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17212 soname_spec='${libname}${release}${shared_ext}$major'
17213 shlibpath_var=LD_LIBRARY_PATH
17224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17225 soname_spec='${libname}${release}${shared_ext}$major'
17226 shlibpath_var=LD_LIBRARY_PATH
17227 shlibpath_overrides_runpath=no
17228 hardcode_into_libs=yes
17229 dynamic_linker='GNU ld.so'
17232 freebsd* | dragonfly*)
17233 # DragonFly does not have aout. When/if they implement a new
17234 # versioning mechanism, adjust this.
17235 if test -x /usr/bin/objformat; then
17236 objformat=`/usr/bin/objformat`
17239 freebsd[123]*) objformat=aout ;;
17240 *) objformat=elf ;;
17243 version_type=freebsd-$objformat
17244 case $version_type in
17246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17251 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17255 shlibpath_var=LD_LIBRARY_PATH
17258 shlibpath_overrides_runpath=yes
17260 freebsd3.[01]* | freebsdelf3.[01]*)
17261 shlibpath_overrides_runpath=yes
17262 hardcode_into_libs=yes
17264 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17265 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17266 shlibpath_overrides_runpath=no
17267 hardcode_into_libs=yes
17269 freebsd*) # from 4.6 on
17270 shlibpath_overrides_runpath=yes
17271 hardcode_into_libs=yes
17280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17281 soname_spec='${libname}${release}${shared_ext}$major'
17282 shlibpath_var=LD_LIBRARY_PATH
17283 hardcode_into_libs=yes
17286 hpux9* | hpux10* | hpux11*)
17287 # Give a soname corresponding to the major version so that dld.sl refuses to
17288 # link against other versions.
17295 hardcode_into_libs=yes
17296 dynamic_linker="$host_os dld.so"
17297 shlibpath_var=LD_LIBRARY_PATH
17298 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17300 soname_spec='${libname}${release}${shared_ext}$major'
17301 if test "X$HPUX_IA64_MODE" = X32; then
17302 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17304 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17310 hardcode_into_libs=yes
17311 dynamic_linker="$host_os dld.sl"
17312 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17315 soname_spec='${libname}${release}${shared_ext}$major'
17316 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17317 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17321 dynamic_linker="$host_os dld.sl"
17322 shlibpath_var=SHLIB_PATH
17323 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17325 soname_spec='${libname}${release}${shared_ext}$major'
17328 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17329 postinstall_cmds='chmod 555 $lib'
17336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17337 soname_spec='${libname}${release}${shared_ext}$major'
17338 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17339 shlibpath_var=LD_LIBRARY_PATH
17340 shlibpath_overrides_runpath=no
17341 hardcode_into_libs=yes
17344 irix5* | irix6* | nonstopux*)
17346 nonstopux*) version_type=nonstopux ;;
17348 if test "$lt_cv_prog_gnu_ld" = yes; then
17356 soname_spec='${libname}${release}${shared_ext}$major'
17357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17359 irix5* | nonstopux*)
17360 libsuff= shlibsuff=
17363 case $LD in # libtool.m4 will add one of these switches to LD
17364 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17365 libsuff= shlibsuff= libmagic=32-bit;;
17366 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17367 libsuff=32 shlibsuff=N32 libmagic=N32;;
17368 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17369 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17370 *) libsuff= shlibsuff= libmagic=never-match;;
17374 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17375 shlibpath_overrides_runpath=no
17376 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17377 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17378 hardcode_into_libs=yes
17381 # No shared lib support for Linux oldld, aout, or coff.
17382 linux*oldld* | linux*aout* | linux*coff*)
17386 # This must be Linux ELF.
17391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17392 soname_spec='${libname}${release}${shared_ext}$major'
17393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17394 shlibpath_var=LD_LIBRARY_PATH
17395 shlibpath_overrides_runpath=no
17396 # This implies no fast_install, which is unacceptable.
17397 # Some rework will be needed to allow for fast_install
17398 # before this can be enabled.
17399 hardcode_into_libs=yes
17401 # Append ld.so.conf contents to the search path
17402 if test -f /etc/ld.so.conf; then
17403 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17404 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17407 # We used to test for /lib/ld.so.1 and disable shared libraries on
17408 # powerpc, because MkLinux only supported shared libraries with the
17409 # GNU dynamic linker. Since this was broken with cross compilers,
17410 # most powerpc-linux boxes support dynamic linking these days and
17411 # people can always --disable-shared, the test was removed, and we
17412 # assume the GNU/Linux dynamic linker is in use.
17413 dynamic_linker='GNU/Linux ld.so'
17420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17421 soname_spec='${libname}${release}${shared_ext}$major'
17422 shlibpath_var=LD_LIBRARY_PATH
17423 shlibpath_overrides_runpath=no
17424 hardcode_into_libs=yes
17425 dynamic_linker='GNU ld.so'
17432 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17435 dynamic_linker='NetBSD (a.out) ld.so'
17437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17438 soname_spec='${libname}${release}${shared_ext}$major'
17439 dynamic_linker='NetBSD ld.elf_so'
17441 shlibpath_var=LD_LIBRARY_PATH
17442 shlibpath_overrides_runpath=yes
17443 hardcode_into_libs=yes
17448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17449 shlibpath_var=LD_LIBRARY_PATH
17450 shlibpath_overrides_runpath=yes
17457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17458 soname_spec='${libname}${release}${shared_ext}$major'
17459 shlibpath_var=LD_LIBRARY_PATH
17460 shlibpath_overrides_runpath=yes
17465 sys_lib_dlsearch_path_spec="/usr/lib"
17467 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17469 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17470 *) need_version=no ;;
17472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17474 shlibpath_var=LD_LIBRARY_PATH
17475 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17477 openbsd2.[89] | openbsd2.[89].*)
17478 shlibpath_overrides_runpath=no
17481 shlibpath_overrides_runpath=yes
17485 shlibpath_overrides_runpath=yes
17490 libname_spec='$name'
17493 library_names_spec='$libname${shared_ext} $libname.a'
17494 dynamic_linker='OS/2 ld.exe'
17495 shlibpath_var=LIBPATH
17498 osf3* | osf4* | osf5*)
17502 soname_spec='${libname}${release}${shared_ext}$major'
17503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17504 shlibpath_var=LD_LIBRARY_PATH
17505 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17506 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17514 soname_spec='${libname}${release}${shared_ext}$major'
17515 shlibpath_var=LD_LIBRARY_PATH
17516 shlibpath_overrides_runpath=yes
17517 hardcode_into_libs=yes
17518 # ldd complains unless libraries are executable
17519 postinstall_cmds='chmod +x $lib'
17524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17525 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17526 shlibpath_var=LD_LIBRARY_PATH
17527 shlibpath_overrides_runpath=yes
17528 if test "$with_gnu_ld" = yes; then
17536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17537 soname_spec='${libname}${release}${shared_ext}$major'
17538 shlibpath_var=LD_LIBRARY_PATH
17539 case $host_vendor in
17541 shlibpath_overrides_runpath=no
17543 export_dynamic_flag_spec='${wl}-Blargedynsym'
17544 runpath_var=LD_RUN_PATH
17552 shlibpath_overrides_runpath=no
17553 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17559 if test -d /usr/nec ;then
17561 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17562 soname_spec='$libname${shared_ext}.$major'
17563 shlibpath_var=LD_LIBRARY_PATH
17567 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17568 version_type=freebsd-elf
17571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17572 soname_spec='${libname}${release}${shared_ext}$major'
17573 shlibpath_var=LD_LIBRARY_PATH
17574 hardcode_into_libs=yes
17575 if test "$with_gnu_ld" = yes; then
17576 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17577 shlibpath_overrides_runpath=no
17579 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17580 shlibpath_overrides_runpath=yes
17583 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17587 sys_lib_dlsearch_path_spec='/usr/lib'
17592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17593 soname_spec='${libname}${release}${shared_ext}$major'
17594 shlibpath_var=LD_LIBRARY_PATH
17601 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17602 echo "${ECHO_T}$dynamic_linker" >&6
17603 test "$dynamic_linker" = no && can_build_shared=no
17605 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17606 if test "$GCC" = yes; then
17607 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17610 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17611 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17612 hardcode_action_GCJ=
17613 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17614 test -n "$runpath_var_GCJ" || \
17615 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17617 # We can hardcode non-existant directories.
17618 if test "$hardcode_direct_GCJ" != no &&
17619 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17620 # have to relink, otherwise we might link with an installed library
17621 # when we should be linking with a yet-to-be-installed one
17622 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17623 test "$hardcode_minus_L_GCJ" != no; then
17624 # Linking always hardcodes the temporary library directory.
17625 hardcode_action_GCJ=relink
17627 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17628 hardcode_action_GCJ=immediate
17631 # We cannot hardcode anything, or else we can only hardcode existing
17633 hardcode_action_GCJ=unsupported
17635 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17636 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17638 if test "$hardcode_action_GCJ" = relink; then
17639 # Fast installation is not supported
17640 enable_fast_install=no
17641 elif test "$shlibpath_overrides_runpath" = yes ||
17642 test "$enable_shared" = no; then
17643 # Fast installation is not necessary
17644 enable_fast_install=needless
17648 # The else clause should only fire when bootstrapping the
17649 # libtool distribution, otherwise you forgot to ship ltmain.sh
17650 # with your package, and you will get complaints that there are
17651 # no rules to generate ltmain.sh.
17652 if test -f "$ltmain"; then
17653 # See if we are running on zsh, and set the options which allow our commands through
17654 # without removal of \ escapes.
17655 if test -n "${ZSH_VERSION+set}" ; then
17656 setopt NO_GLOB_SUBST
17658 # Now quote all the things that may contain metacharacters while being
17659 # careful not to overquote the AC_SUBSTed values. We take copies of the
17660 # variables and quote the copies for generation of the libtool script.
17661 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17663 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17664 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17665 deplibs_check_method reload_flag reload_cmds need_locks \
17666 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17667 lt_cv_sys_global_symbol_to_c_name_address \
17668 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17669 old_postinstall_cmds old_postuninstall_cmds \
17673 lt_prog_compiler_wl_GCJ \
17674 lt_prog_compiler_pic_GCJ \
17675 lt_prog_compiler_static_GCJ \
17676 lt_prog_compiler_no_builtin_flag_GCJ \
17677 export_dynamic_flag_spec_GCJ \
17678 thread_safe_flag_spec_GCJ \
17679 whole_archive_flag_spec_GCJ \
17680 enable_shared_with_static_runtimes_GCJ \
17681 old_archive_cmds_GCJ \
17682 old_archive_from_new_cmds_GCJ \
17683 predep_objects_GCJ \
17684 postdep_objects_GCJ \
17687 compiler_lib_search_path_GCJ \
17689 archive_expsym_cmds_GCJ \
17690 postinstall_cmds_GCJ \
17691 postuninstall_cmds_GCJ \
17692 old_archive_from_expsyms_cmds_GCJ \
17693 allow_undefined_flag_GCJ \
17694 no_undefined_flag_GCJ \
17695 export_symbols_cmds_GCJ \
17696 hardcode_libdir_flag_spec_GCJ \
17697 hardcode_libdir_flag_spec_ld_GCJ \
17698 hardcode_libdir_separator_GCJ \
17699 hardcode_automatic_GCJ \
17701 module_expsym_cmds_GCJ \
17702 lt_cv_prog_compiler_c_o_GCJ \
17703 exclude_expsyms_GCJ \
17704 include_expsyms_GCJ; do
17707 old_archive_cmds_GCJ | \
17708 old_archive_from_new_cmds_GCJ | \
17709 archive_cmds_GCJ | \
17710 archive_expsym_cmds_GCJ | \
17711 module_cmds_GCJ | \
17712 module_expsym_cmds_GCJ | \
17713 old_archive_from_expsyms_cmds_GCJ | \
17714 export_symbols_cmds_GCJ | \
17715 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17716 postinstall_cmds | postuninstall_cmds | \
17717 old_postinstall_cmds | old_postuninstall_cmds | \
17718 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17719 # Double-quote double-evaled strings.
17720 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17723 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17729 *'\$0 --fallback-echo"')
17730 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17736 cat <<__EOF__ >> "$cfgfile"
17737 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17739 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17741 # Shell to use when invoking shell scripts.
17744 # Whether or not to build shared libraries.
17745 build_libtool_libs=$enable_shared
17747 # Whether or not to build static libraries.
17748 build_old_libs=$enable_static
17750 # Whether or not to add -lc for building shared libraries.
17751 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17753 # Whether or not to disallow shared libs when runtime libs are static
17754 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17756 # Whether or not to optimize for fast installation.
17757 fast_install=$enable_fast_install
17760 host_alias=$host_alias
17764 # The build system.
17765 build_alias=$build_alias
17769 # An echo program that does not interpret backslashes.
17774 AR_FLAGS=$lt_AR_FLAGS
17779 # LTCC compiler flags.
17780 LTCFLAGS=$lt_LTCFLAGS
17782 # A language-specific compiler.
17783 CC=$lt_compiler_GCJ
17785 # Is the compiler the GNU C compiler?
17791 # The linker used to build libraries.
17794 # Whether we need hard or soft links.
17797 # A BSD-compatible nm program.
17800 # A symbol stripping program
17803 # Used to examine libraries when file_magic_cmd begins "file"
17804 MAGIC_CMD=$MAGIC_CMD
17806 # Used on cygwin: DLL creation program.
17809 # Used on cygwin: object dumper.
17812 # Used on cygwin: assembler.
17815 # The name of the directory that contains temporary libtool files.
17818 # How to create reloadable object files.
17819 reload_flag=$lt_reload_flag
17820 reload_cmds=$lt_reload_cmds
17822 # How to pass a linker flag through the compiler.
17823 wl=$lt_lt_prog_compiler_wl_GCJ
17825 # Object file suffix (normally "o").
17826 objext="$ac_objext"
17828 # Old archive suffix (normally "a").
17831 # Shared library suffix (normally ".so").
17832 shrext_cmds='$shrext_cmds'
17834 # Executable file suffix (normally "").
17837 # Additional compiler flags for building library objects.
17838 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17841 # What is the maximum length of a command?
17842 max_cmd_len=$lt_cv_sys_max_cmd_len
17844 # Does compiler simultaneously support -c and -o options?
17845 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17847 # Must we lock files when doing compilation?
17848 need_locks=$lt_need_locks
17850 # Do we need the lib prefix for modules?
17851 need_lib_prefix=$need_lib_prefix
17853 # Do we need a version for libraries?
17854 need_version=$need_version
17856 # Whether dlopen is supported.
17857 dlopen_support=$enable_dlopen
17859 # Whether dlopen of programs is supported.
17860 dlopen_self=$enable_dlopen_self
17862 # Whether dlopen of statically linked programs is supported.
17863 dlopen_self_static=$enable_dlopen_self_static
17865 # Compiler flag to prevent dynamic linking.
17866 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17868 # Compiler flag to turn off builtin functions.
17869 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17871 # Compiler flag to allow reflexive dlopens.
17872 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17874 # Compiler flag to generate shared objects directly from archives.
17875 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17877 # Compiler flag to generate thread-safe objects.
17878 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17880 # Library versioning type.
17881 version_type=$version_type
17883 # Format of library name prefix.
17884 libname_spec=$lt_libname_spec
17886 # List of archive names. First name is the real one, the rest are links.
17887 # The last name is the one that the linker finds with -lNAME.
17888 library_names_spec=$lt_library_names_spec
17890 # The coded name of the library, if different from the real name.
17891 soname_spec=$lt_soname_spec
17893 # Commands used to build and install an old-style archive.
17895 old_archive_cmds=$lt_old_archive_cmds_GCJ
17896 old_postinstall_cmds=$lt_old_postinstall_cmds
17897 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17899 # Create an old-style archive from a shared archive.
17900 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17902 # Create a temporary old-style archive to link instead of a shared archive.
17903 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17905 # Commands used to build and install a shared archive.
17906 archive_cmds=$lt_archive_cmds_GCJ
17907 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17908 postinstall_cmds=$lt_postinstall_cmds
17909 postuninstall_cmds=$lt_postuninstall_cmds
17911 # Commands used to build a loadable module (assumed same as above if empty)
17912 module_cmds=$lt_module_cmds_GCJ
17913 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17915 # Commands to strip libraries.
17916 old_striplib=$lt_old_striplib
17917 striplib=$lt_striplib
17919 # Dependencies to place before the objects being linked to create a
17921 predep_objects=$lt_predep_objects_GCJ
17923 # Dependencies to place after the objects being linked to create a
17925 postdep_objects=$lt_postdep_objects_GCJ
17927 # Dependencies to place before the objects being linked to create a
17929 predeps=$lt_predeps_GCJ
17931 # Dependencies to place after the objects being linked to create a
17933 postdeps=$lt_postdeps_GCJ
17935 # The library search path used internally by the compiler when linking
17936 # a shared library.
17937 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17939 # Method to check whether dependent libraries are shared objects.
17940 deplibs_check_method=$lt_deplibs_check_method
17942 # Command to use when deplibs_check_method == file_magic.
17943 file_magic_cmd=$lt_file_magic_cmd
17945 # Flag that allows shared libraries with undefined symbols to be built.
17946 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17948 # Flag that forces no undefined symbols.
17949 no_undefined_flag=$lt_no_undefined_flag_GCJ
17951 # Commands used to finish a libtool library installation in a directory.
17952 finish_cmds=$lt_finish_cmds
17954 # Same as above, but a single script fragment to be evaled but not shown.
17955 finish_eval=$lt_finish_eval
17957 # Take the output of nm and produce a listing of raw symbols and C names.
17958 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17960 # Transform the output of nm in a proper C declaration
17961 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17963 # Transform the output of nm in a C name address pair
17964 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17966 # This is the shared library runtime path variable.
17967 runpath_var=$runpath_var
17969 # This is the shared library path variable.
17970 shlibpath_var=$shlibpath_var
17972 # Is shlibpath searched before the hard-coded library search path?
17973 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17975 # How to hardcode a shared library path into an executable.
17976 hardcode_action=$hardcode_action_GCJ
17978 # Whether we should hardcode library paths into libraries.
17979 hardcode_into_libs=$hardcode_into_libs
17981 # Flag to hardcode \$libdir into a binary during linking.
17982 # This must work even if \$libdir does not exist.
17983 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17985 # If ld is used when linking, flag to hardcode \$libdir into
17986 # a binary during linking. This must work even if \$libdir does
17988 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17990 # Whether we need a single -rpath flag with a separated argument.
17991 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17993 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17994 # resulting binary.
17995 hardcode_direct=$hardcode_direct_GCJ
17997 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17998 # resulting binary.
17999 hardcode_minus_L=$hardcode_minus_L_GCJ
18001 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18002 # the resulting binary.
18003 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18005 # Set to yes if building a shared library automatically hardcodes DIR into the library
18006 # and all subsequent libraries and executables linked against it.
18007 hardcode_automatic=$hardcode_automatic_GCJ
18009 # Variables whose values should be saved in libtool wrapper scripts and
18010 # restored at relink time.
18011 variables_saved_for_relink="$variables_saved_for_relink"
18013 # Whether libtool must link a program against all its dependency libraries.
18014 link_all_deplibs=$link_all_deplibs_GCJ
18016 # Compile-time system search path for libraries
18017 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18019 # Run-time system search path for libraries
18020 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18022 # Fix the shell variable \$srcfile for the compiler.
18023 fix_srcfile_path="$fix_srcfile_path_GCJ"
18025 # Set to yes if exported symbols are required.
18026 always_export_symbols=$always_export_symbols_GCJ
18028 # The commands to list exported symbols.
18029 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18031 # The commands to extract the exported symbol list from a shared archive.
18032 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18034 # Symbols that should not be listed in the preloaded symbols.
18035 exclude_expsyms=$lt_exclude_expsyms_GCJ
18037 # Symbols that must always be exported.
18038 include_expsyms=$lt_include_expsyms_GCJ
18040 # ### END LIBTOOL TAG CONFIG: $tagname
18046 # If there is no Makefile yet, we rely on a make rule to execute
18047 # `config.status --recheck' to rerun these tests and create the
18048 # libtool script then.
18049 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18050 if test -f "$ltmain_in"; then
18051 test -f Makefile && make "$ltmain"
18057 ac_cpp='$CPP $CPPFLAGS'
18058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18073 # Source file extension for RC test sources.
18076 # Object file extension for compiled RC test sources.
18080 # Code to be used in simple compile tests
18081 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18083 # Code to be used in simple link tests
18084 lt_simple_link_test_code="$lt_simple_compile_test_code"
18086 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18088 # If no C compiler was specified, use CC.
18091 # If no C compiler flags were specified, use CFLAGS.
18092 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18094 # Allow CC to be a program name with arguments.
18098 # save warnings/boilerplate of simple test code
18099 ac_outfile=conftest.$ac_objext
18100 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18101 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18102 _lt_compiler_boilerplate=`cat conftest.err`
18105 ac_outfile=conftest.$ac_objext
18106 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18107 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18108 _lt_linker_boilerplate=`cat conftest.err`
18112 # Allow CC to be a program name with arguments.
18117 for cc_temp in $compiler""; do
18119 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18120 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18125 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18127 lt_cv_prog_compiler_c_o_RC=yes
18129 # The else clause should only fire when bootstrapping the
18130 # libtool distribution, otherwise you forgot to ship ltmain.sh
18131 # with your package, and you will get complaints that there are
18132 # no rules to generate ltmain.sh.
18133 if test -f "$ltmain"; then
18134 # See if we are running on zsh, and set the options which allow our commands through
18135 # without removal of \ escapes.
18136 if test -n "${ZSH_VERSION+set}" ; then
18137 setopt NO_GLOB_SUBST
18139 # Now quote all the things that may contain metacharacters while being
18140 # careful not to overquote the AC_SUBSTed values. We take copies of the
18141 # variables and quote the copies for generation of the libtool script.
18142 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18144 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18145 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18146 deplibs_check_method reload_flag reload_cmds need_locks \
18147 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18148 lt_cv_sys_global_symbol_to_c_name_address \
18149 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18150 old_postinstall_cmds old_postuninstall_cmds \
18154 lt_prog_compiler_wl_RC \
18155 lt_prog_compiler_pic_RC \
18156 lt_prog_compiler_static_RC \
18157 lt_prog_compiler_no_builtin_flag_RC \
18158 export_dynamic_flag_spec_RC \
18159 thread_safe_flag_spec_RC \
18160 whole_archive_flag_spec_RC \
18161 enable_shared_with_static_runtimes_RC \
18162 old_archive_cmds_RC \
18163 old_archive_from_new_cmds_RC \
18164 predep_objects_RC \
18165 postdep_objects_RC \
18168 compiler_lib_search_path_RC \
18170 archive_expsym_cmds_RC \
18171 postinstall_cmds_RC \
18172 postuninstall_cmds_RC \
18173 old_archive_from_expsyms_cmds_RC \
18174 allow_undefined_flag_RC \
18175 no_undefined_flag_RC \
18176 export_symbols_cmds_RC \
18177 hardcode_libdir_flag_spec_RC \
18178 hardcode_libdir_flag_spec_ld_RC \
18179 hardcode_libdir_separator_RC \
18180 hardcode_automatic_RC \
18182 module_expsym_cmds_RC \
18183 lt_cv_prog_compiler_c_o_RC \
18184 exclude_expsyms_RC \
18185 include_expsyms_RC; do
18188 old_archive_cmds_RC | \
18189 old_archive_from_new_cmds_RC | \
18190 archive_cmds_RC | \
18191 archive_expsym_cmds_RC | \
18193 module_expsym_cmds_RC | \
18194 old_archive_from_expsyms_cmds_RC | \
18195 export_symbols_cmds_RC | \
18196 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18197 postinstall_cmds | postuninstall_cmds | \
18198 old_postinstall_cmds | old_postuninstall_cmds | \
18199 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18200 # Double-quote double-evaled strings.
18201 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18204 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18210 *'\$0 --fallback-echo"')
18211 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18217 cat <<__EOF__ >> "$cfgfile"
18218 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18220 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18222 # Shell to use when invoking shell scripts.
18225 # Whether or not to build shared libraries.
18226 build_libtool_libs=$enable_shared
18228 # Whether or not to build static libraries.
18229 build_old_libs=$enable_static
18231 # Whether or not to add -lc for building shared libraries.
18232 build_libtool_need_lc=$archive_cmds_need_lc_RC
18234 # Whether or not to disallow shared libs when runtime libs are static
18235 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18237 # Whether or not to optimize for fast installation.
18238 fast_install=$enable_fast_install
18241 host_alias=$host_alias
18245 # The build system.
18246 build_alias=$build_alias
18250 # An echo program that does not interpret backslashes.
18255 AR_FLAGS=$lt_AR_FLAGS
18260 # LTCC compiler flags.
18261 LTCFLAGS=$lt_LTCFLAGS
18263 # A language-specific compiler.
18266 # Is the compiler the GNU C compiler?
18272 # The linker used to build libraries.
18275 # Whether we need hard or soft links.
18278 # A BSD-compatible nm program.
18281 # A symbol stripping program
18284 # Used to examine libraries when file_magic_cmd begins "file"
18285 MAGIC_CMD=$MAGIC_CMD
18287 # Used on cygwin: DLL creation program.
18290 # Used on cygwin: object dumper.
18293 # Used on cygwin: assembler.
18296 # The name of the directory that contains temporary libtool files.
18299 # How to create reloadable object files.
18300 reload_flag=$lt_reload_flag
18301 reload_cmds=$lt_reload_cmds
18303 # How to pass a linker flag through the compiler.
18304 wl=$lt_lt_prog_compiler_wl_RC
18306 # Object file suffix (normally "o").
18307 objext="$ac_objext"
18309 # Old archive suffix (normally "a").
18312 # Shared library suffix (normally ".so").
18313 shrext_cmds='$shrext_cmds'
18315 # Executable file suffix (normally "").
18318 # Additional compiler flags for building library objects.
18319 pic_flag=$lt_lt_prog_compiler_pic_RC
18322 # What is the maximum length of a command?
18323 max_cmd_len=$lt_cv_sys_max_cmd_len
18325 # Does compiler simultaneously support -c and -o options?
18326 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18328 # Must we lock files when doing compilation?
18329 need_locks=$lt_need_locks
18331 # Do we need the lib prefix for modules?
18332 need_lib_prefix=$need_lib_prefix
18334 # Do we need a version for libraries?
18335 need_version=$need_version
18337 # Whether dlopen is supported.
18338 dlopen_support=$enable_dlopen
18340 # Whether dlopen of programs is supported.
18341 dlopen_self=$enable_dlopen_self
18343 # Whether dlopen of statically linked programs is supported.
18344 dlopen_self_static=$enable_dlopen_self_static
18346 # Compiler flag to prevent dynamic linking.
18347 link_static_flag=$lt_lt_prog_compiler_static_RC
18349 # Compiler flag to turn off builtin functions.
18350 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18352 # Compiler flag to allow reflexive dlopens.
18353 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18355 # Compiler flag to generate shared objects directly from archives.
18356 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18358 # Compiler flag to generate thread-safe objects.
18359 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18361 # Library versioning type.
18362 version_type=$version_type
18364 # Format of library name prefix.
18365 libname_spec=$lt_libname_spec
18367 # List of archive names. First name is the real one, the rest are links.
18368 # The last name is the one that the linker finds with -lNAME.
18369 library_names_spec=$lt_library_names_spec
18371 # The coded name of the library, if different from the real name.
18372 soname_spec=$lt_soname_spec
18374 # Commands used to build and install an old-style archive.
18376 old_archive_cmds=$lt_old_archive_cmds_RC
18377 old_postinstall_cmds=$lt_old_postinstall_cmds
18378 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18380 # Create an old-style archive from a shared archive.
18381 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18383 # Create a temporary old-style archive to link instead of a shared archive.
18384 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18386 # Commands used to build and install a shared archive.
18387 archive_cmds=$lt_archive_cmds_RC
18388 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18389 postinstall_cmds=$lt_postinstall_cmds
18390 postuninstall_cmds=$lt_postuninstall_cmds
18392 # Commands used to build a loadable module (assumed same as above if empty)
18393 module_cmds=$lt_module_cmds_RC
18394 module_expsym_cmds=$lt_module_expsym_cmds_RC
18396 # Commands to strip libraries.
18397 old_striplib=$lt_old_striplib
18398 striplib=$lt_striplib
18400 # Dependencies to place before the objects being linked to create a
18402 predep_objects=$lt_predep_objects_RC
18404 # Dependencies to place after the objects being linked to create a
18406 postdep_objects=$lt_postdep_objects_RC
18408 # Dependencies to place before the objects being linked to create a
18410 predeps=$lt_predeps_RC
18412 # Dependencies to place after the objects being linked to create a
18414 postdeps=$lt_postdeps_RC
18416 # The library search path used internally by the compiler when linking
18417 # a shared library.
18418 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18420 # Method to check whether dependent libraries are shared objects.
18421 deplibs_check_method=$lt_deplibs_check_method
18423 # Command to use when deplibs_check_method == file_magic.
18424 file_magic_cmd=$lt_file_magic_cmd
18426 # Flag that allows shared libraries with undefined symbols to be built.
18427 allow_undefined_flag=$lt_allow_undefined_flag_RC
18429 # Flag that forces no undefined symbols.
18430 no_undefined_flag=$lt_no_undefined_flag_RC
18432 # Commands used to finish a libtool library installation in a directory.
18433 finish_cmds=$lt_finish_cmds
18435 # Same as above, but a single script fragment to be evaled but not shown.
18436 finish_eval=$lt_finish_eval
18438 # Take the output of nm and produce a listing of raw symbols and C names.
18439 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18441 # Transform the output of nm in a proper C declaration
18442 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18444 # Transform the output of nm in a C name address pair
18445 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18447 # This is the shared library runtime path variable.
18448 runpath_var=$runpath_var
18450 # This is the shared library path variable.
18451 shlibpath_var=$shlibpath_var
18453 # Is shlibpath searched before the hard-coded library search path?
18454 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18456 # How to hardcode a shared library path into an executable.
18457 hardcode_action=$hardcode_action_RC
18459 # Whether we should hardcode library paths into libraries.
18460 hardcode_into_libs=$hardcode_into_libs
18462 # Flag to hardcode \$libdir into a binary during linking.
18463 # This must work even if \$libdir does not exist.
18464 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18466 # If ld is used when linking, flag to hardcode \$libdir into
18467 # a binary during linking. This must work even if \$libdir does
18469 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18471 # Whether we need a single -rpath flag with a separated argument.
18472 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18474 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18475 # resulting binary.
18476 hardcode_direct=$hardcode_direct_RC
18478 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18479 # resulting binary.
18480 hardcode_minus_L=$hardcode_minus_L_RC
18482 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18483 # the resulting binary.
18484 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18486 # Set to yes if building a shared library automatically hardcodes DIR into the library
18487 # and all subsequent libraries and executables linked against it.
18488 hardcode_automatic=$hardcode_automatic_RC
18490 # Variables whose values should be saved in libtool wrapper scripts and
18491 # restored at relink time.
18492 variables_saved_for_relink="$variables_saved_for_relink"
18494 # Whether libtool must link a program against all its dependency libraries.
18495 link_all_deplibs=$link_all_deplibs_RC
18497 # Compile-time system search path for libraries
18498 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18500 # Run-time system search path for libraries
18501 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18503 # Fix the shell variable \$srcfile for the compiler.
18504 fix_srcfile_path="$fix_srcfile_path_RC"
18506 # Set to yes if exported symbols are required.
18507 always_export_symbols=$always_export_symbols_RC
18509 # The commands to list exported symbols.
18510 export_symbols_cmds=$lt_export_symbols_cmds_RC
18512 # The commands to extract the exported symbol list from a shared archive.
18513 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18515 # Symbols that should not be listed in the preloaded symbols.
18516 exclude_expsyms=$lt_exclude_expsyms_RC
18518 # Symbols that must always be exported.
18519 include_expsyms=$lt_include_expsyms_RC
18521 # ### END LIBTOOL TAG CONFIG: $tagname
18527 # If there is no Makefile yet, we rely on a make rule to execute
18528 # `config.status --recheck' to rerun these tests and create the
18529 # libtool script then.
18530 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18531 if test -f "$ltmain_in"; then
18532 test -f Makefile && make "$ltmain"
18538 ac_cpp='$CPP $CPPFLAGS'
18539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18548 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18549 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18550 { (exit 1); exit 1; }; }
18554 # Append the new tag name to the list of available tags.
18555 if test -n "$tagname" ; then
18556 available_tags="$available_tags $tagname"
18562 # Now substitute the updated list of available tags.
18563 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18564 mv "${ofile}T" "$ofile"
18568 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18569 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18570 { (exit 1); exit 1; }; }
18576 # This can be used to rebuild libtool when needed
18577 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18579 # Always use our own libtool.
18580 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18582 # Prevent multiple expansion
18603 # Extract the first word of "ar", so it can be a program name with args.
18604 set dummy ar; ac_word=$2
18605 echo "$as_me:$LINENO: checking for $ac_word" >&5
18606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18607 if test "${ac_cv_path_AR+set}" = set; then
18608 echo $ECHO_N "(cached) $ECHO_C" >&6
18612 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18616 as_dummy="$PATH:/usr/ccs/bin"
18617 for as_dir in $as_dummy
18620 test -z "$as_dir" && as_dir=.
18621 for ac_exec_ext in '' $ac_executable_extensions; do
18622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18623 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18630 test -z "$ac_cv_path_AR" && ac_cv_path_AR="/usr/bin/ar"
18636 if test -n "$AR"; then
18637 echo "$as_me:$LINENO: result: $AR" >&5
18638 echo "${ECHO_T}$AR" >&6
18640 echo "$as_me:$LINENO: result: no" >&5
18641 echo "${ECHO_T}no" >&6
18649 # Check whether --with-tightvnc-filetransfer or --without-tightvnc-filetransfer was given.
18650 if test "${with_tightvnc_filetransfer+set}" = set; then
18651 withval="$with_tightvnc_filetransfer"
18654 with_tightvnc_filetransfer=yes
18656 # AC_DEFINE moved to after libpthread check.
18661 # Check whether --with-24bpp or --without-24bpp was given.
18662 if test "${with_24bpp+set}" = set; then
18663 withval="$with_24bpp"
18668 if test "x$with_24bpp" = "xyes"; then
18669 cat >>confdefs.h <<\_ACEOF
18670 #define ALLOW24BPP 1
18677 # Check whether --with-ffmpeg or --without-ffmpeg was given.
18678 if test "${with_ffmpeg+set}" = set; then
18679 withval="$with_ffmpeg"
18685 if test ! -z "$with_ffmpeg"; then
18687 WITH_FFMPEG_FALSE='#'
18689 WITH_FFMPEG_TRUE='#'
18693 if test ! -z "$with_ffmpeg"; then
18694 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
18695 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
18696 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
18697 echo $ECHO_N "(cached) $ECHO_C" >&6
18699 ac_check_lib_save_LIBS=$LIBS
18700 LIBS="-lmp3lame $LIBS"
18701 cat >conftest.$ac_ext <<_ACEOF
18704 cat confdefs.h >>conftest.$ac_ext
18705 cat >>conftest.$ac_ext <<_ACEOF
18706 /* end confdefs.h. */
18708 /* Override any gcc2 internal prototype to avoid an error. */
18712 /* We use char because int might match the return type of a gcc2
18713 builtin and then its argument prototype would still apply. */
18723 rm -f conftest.$ac_objext conftest$ac_exeext
18724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18725 (eval $ac_link) 2>conftest.er1
18727 grep -v '^ *+' conftest.er1 >conftest.err
18729 cat conftest.err >&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } &&
18732 { ac_try='test -z "$ac_c_werror_flag"
18733 || test ! -s conftest.err'
18734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735 (eval $ac_try) 2>&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; } &&
18739 { ac_try='test -s conftest$ac_exeext'
18740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18741 (eval $ac_try) 2>&5
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); }; }; then
18745 ac_cv_lib_mp3lame_lame_init=yes
18747 echo "$as_me: failed program was:" >&5
18748 sed 's/^/| /' conftest.$ac_ext >&5
18750 ac_cv_lib_mp3lame_lame_init=no
18752 rm -f conftest.err conftest.$ac_objext \
18753 conftest$ac_exeext conftest.$ac_ext
18754 LIBS=$ac_check_lib_save_LIBS
18756 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
18757 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
18758 if test $ac_cv_lib_mp3lame_lame_init = yes; then
18759 HAVE_MP3LAME="true"
18761 HAVE_MP3LAME="false"
18767 if test "$HAVE_MP3LAME" = "true"; then
18769 HAVE_MP3LAME_FALSE='#'
18771 HAVE_MP3LAME_TRUE='#'
18772 HAVE_MP3LAME_FALSE=
18776 # Seem to need this dummy here to induce the 'checking for egrep... grep -E', etc.
18777 # before it seemed to be inside the with_jpeg conditional.
18778 if test "${ac_cv_header_thenonexistentheader_h+set}" = set; then
18779 echo "$as_me:$LINENO: checking for thenonexistentheader.h" >&5
18780 echo $ECHO_N "checking for thenonexistentheader.h... $ECHO_C" >&6
18781 if test "${ac_cv_header_thenonexistentheader_h+set}" = set; then
18782 echo $ECHO_N "(cached) $ECHO_C" >&6
18784 echo "$as_me:$LINENO: result: $ac_cv_header_thenonexistentheader_h" >&5
18785 echo "${ECHO_T}$ac_cv_header_thenonexistentheader_h" >&6
18787 # Is the header compilable?
18788 echo "$as_me:$LINENO: checking thenonexistentheader.h usability" >&5
18789 echo $ECHO_N "checking thenonexistentheader.h usability... $ECHO_C" >&6
18790 cat >conftest.$ac_ext <<_ACEOF
18793 cat confdefs.h >>conftest.$ac_ext
18794 cat >>conftest.$ac_ext <<_ACEOF
18795 /* end confdefs.h. */
18796 $ac_includes_default
18797 #include <thenonexistentheader.h>
18799 rm -f conftest.$ac_objext
18800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18801 (eval $ac_compile) 2>conftest.er1
18803 grep -v '^ *+' conftest.er1 >conftest.err
18805 cat conftest.err >&5
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); } &&
18808 { ac_try='test -z "$ac_c_werror_flag"
18809 || test ! -s conftest.err'
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; } &&
18815 { ac_try='test -s conftest.$ac_objext'
18816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817 (eval $ac_try) 2>&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; }; then
18821 ac_header_compiler=yes
18823 echo "$as_me: failed program was:" >&5
18824 sed 's/^/| /' conftest.$ac_ext >&5
18826 ac_header_compiler=no
18828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18830 echo "${ECHO_T}$ac_header_compiler" >&6
18832 # Is the header present?
18833 echo "$as_me:$LINENO: checking thenonexistentheader.h presence" >&5
18834 echo $ECHO_N "checking thenonexistentheader.h presence... $ECHO_C" >&6
18835 cat >conftest.$ac_ext <<_ACEOF
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h. */
18841 #include <thenonexistentheader.h>
18843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18846 grep -v '^ *+' conftest.er1 >conftest.err
18848 cat conftest.err >&5
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); } >/dev/null; then
18851 if test -s conftest.err; then
18852 ac_cpp_err=$ac_c_preproc_warn_flag
18853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18860 if test -z "$ac_cpp_err"; then
18861 ac_header_preproc=yes
18863 echo "$as_me: failed program was:" >&5
18864 sed 's/^/| /' conftest.$ac_ext >&5
18866 ac_header_preproc=no
18868 rm -f conftest.err conftest.$ac_ext
18869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18870 echo "${ECHO_T}$ac_header_preproc" >&6
18872 # So? What about this header?
18873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18875 { echo "$as_me:$LINENO: WARNING: thenonexistentheader.h: accepted by the compiler, rejected by the preprocessor!" >&5
18876 echo "$as_me: WARNING: thenonexistentheader.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18877 { echo "$as_me:$LINENO: WARNING: thenonexistentheader.h: proceeding with the compiler's result" >&5
18878 echo "$as_me: WARNING: thenonexistentheader.h: proceeding with the compiler's result" >&2;}
18879 ac_header_preproc=yes
18882 { echo "$as_me:$LINENO: WARNING: thenonexistentheader.h: present but cannot be compiled" >&5
18883 echo "$as_me: WARNING: thenonexistentheader.h: present but cannot be compiled" >&2;}
18884 { echo "$as_me:$LINENO: WARNING: thenonexistentheader.h: check for missing prerequisite headers?" >&5
18885 echo "$as_me: WARNING: thenonexistentheader.h: check for missing prerequisite headers?" >&2;}
18886 { echo "$as_me:$LINENO: WARNING: thenonexistentheader.h: see the Autoconf documentation" >&5
18887 echo "$as_me: WARNING: thenonexistentheader.h: see the Autoconf documentation" >&2;}
18888 { echo "$as_me:$LINENO: WARNING: thenonexistentheader.h: section \"Present But Cannot Be Compiled\"" >&5
18889 echo "$as_me: WARNING: thenonexistentheader.h: section \"Present But Cannot Be Compiled\"" >&2;}
18890 { echo "$as_me:$LINENO: WARNING: thenonexistentheader.h: proceeding with the preprocessor's result" >&5
18891 echo "$as_me: WARNING: thenonexistentheader.h: proceeding with the preprocessor's result" >&2;}
18892 { echo "$as_me:$LINENO: WARNING: thenonexistentheader.h: in the future, the compiler will take precedence" >&5
18893 echo "$as_me: WARNING: thenonexistentheader.h: in the future, the compiler will take precedence" >&2;}
18896 ## ----------------------------------------------------------- ##
18897 ## Report this to http://sourceforge.net/projects/libvncserver ##
18898 ## ----------------------------------------------------------- ##
18901 sed "s/^/$as_me: WARNING: /" >&2
18904 echo "$as_me:$LINENO: checking for thenonexistentheader.h" >&5
18905 echo $ECHO_N "checking for thenonexistentheader.h... $ECHO_C" >&6
18906 if test "${ac_cv_header_thenonexistentheader_h+set}" = set; then
18907 echo $ECHO_N "(cached) $ECHO_C" >&6
18909 ac_cv_header_thenonexistentheader_h=$ac_header_preproc
18911 echo "$as_me:$LINENO: result: $ac_cv_header_thenonexistentheader_h" >&5
18912 echo "${ECHO_T}$ac_cv_header_thenonexistentheader_h" >&6
18915 if test $ac_cv_header_thenonexistentheader_h = yes; then
18916 HAVE_THENONEXISTENTHEADER_H="true"
18921 # Checks for X libraries
18923 echo "$as_me:$LINENO: checking for X" >&5
18924 echo $ECHO_N "checking for X... $ECHO_C" >&6
18927 # Check whether --with-x or --without-x was given.
18928 if test "${with_x+set}" = set; then
18932 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18933 if test "x$with_x" = xno; then
18934 # The user explicitly disabled X.
18937 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
18938 # Both variables are already set.
18941 if test "${ac_cv_have_x+set}" = set; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18944 # One or both of the vars are not set, and there is no cached value.
18945 ac_x_includes=no ac_x_libraries=no
18946 rm -fr conftest.dir
18947 if mkdir conftest.dir; then
18949 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
18950 cat >Imakefile <<'_ACEOF'
18952 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
18954 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
18955 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18956 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
18957 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18958 for ac_extension in a so sl; do
18959 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
18960 test -f $ac_im_libdir/libX11.$ac_extension; then
18961 ac_im_usrlibdir=$ac_im_libdir; break
18964 # Screen out bogus values from the imake configuration. They are
18965 # bogus both because they are the default anyway, and because
18966 # using them would break gcc on systems where it needs fixed includes.
18967 case $ac_im_incroot in
18969 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18971 case $ac_im_usrlibdir in
18972 /usr/lib | /lib) ;;
18973 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18977 rm -fr conftest.dir
18980 # Standard set of common directories for X headers.
18981 # Check X11 before X11Rn because it is often a symlink to the current release.
18993 /usr/local/X11/include
18994 /usr/local/X11R6/include
18995 /usr/local/X11R5/include
18996 /usr/local/X11R4/include
18998 /usr/local/include/X11
18999 /usr/local/include/X11R6
19000 /usr/local/include/X11R5
19001 /usr/local/include/X11R4
19005 /usr/XFree86/include/X11
19009 /usr/unsupported/include
19010 /usr/athena/include
19011 /usr/local/x11r5/include
19012 /usr/lpp/Xamples/include
19014 /usr/openwin/include
19015 /usr/openwin/share/include'
19017 if test "$ac_x_includes" = no; then
19018 # Guess where to find include files, by looking for Intrinsic.h.
19019 # First, try using that file with no special directory specified.
19020 cat >conftest.$ac_ext <<_ACEOF
19023 cat confdefs.h >>conftest.$ac_ext
19024 cat >>conftest.$ac_ext <<_ACEOF
19025 /* end confdefs.h. */
19026 #include <X11/Intrinsic.h>
19028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19031 grep -v '^ *+' conftest.er1 >conftest.err
19033 cat conftest.err >&5
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); } >/dev/null; then
19036 if test -s conftest.err; then
19037 ac_cpp_err=$ac_c_preproc_warn_flag
19038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19045 if test -z "$ac_cpp_err"; then
19046 # We can compile using X headers with no special include directory.
19049 echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19052 for ac_dir in $ac_x_header_dirs; do
19053 if test -r "$ac_dir/X11/Intrinsic.h"; then
19054 ac_x_includes=$ac_dir
19059 rm -f conftest.err conftest.$ac_ext
19060 fi # $ac_x_includes = no
19062 if test "$ac_x_libraries" = no; then
19063 # Check for the libraries.
19064 # See if we find them without any special options.
19065 # Don't add to $LIBS permanently.
19068 cat >conftest.$ac_ext <<_ACEOF
19071 cat confdefs.h >>conftest.$ac_ext
19072 cat >>conftest.$ac_ext <<_ACEOF
19073 /* end confdefs.h. */
19074 #include <X11/Intrinsic.h>
19083 rm -f conftest.$ac_objext conftest$ac_exeext
19084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19085 (eval $ac_link) 2>conftest.er1
19087 grep -v '^ *+' conftest.er1 >conftest.err
19089 cat conftest.err >&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); } &&
19092 { ac_try='test -z "$ac_c_werror_flag"
19093 || test ! -s conftest.err'
19094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095 (eval $ac_try) 2>&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; } &&
19099 { ac_try='test -s conftest$ac_exeext'
19100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19101 (eval $ac_try) 2>&5
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); }; }; then
19106 # We can link X programs with no special library path.
19109 echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19113 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19115 # Don't even attempt the hair of trying to link an X program!
19116 for ac_extension in a so sl; do
19117 if test -r $ac_dir/libXt.$ac_extension; then
19118 ac_x_libraries=$ac_dir
19124 rm -f conftest.err conftest.$ac_objext \
19125 conftest$ac_exeext conftest.$ac_ext
19126 fi # $ac_x_libraries = no
19128 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19129 # Didn't find X anywhere. Cache the known absence of X.
19130 ac_cv_have_x="have_x=no"
19132 # Record where we found X for the cache.
19133 ac_cv_have_x="have_x=yes \
19134 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19139 eval "$ac_cv_have_x"
19142 if test "$have_x" != yes; then
19143 echo "$as_me:$LINENO: result: $have_x" >&5
19144 echo "${ECHO_T}$have_x" >&6
19147 # If each of the values was on the command line, it overrides each guess.
19148 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19149 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19150 # Update the cache value to reflect the command line values.
19151 ac_cv_have_x="have_x=yes \
19152 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19153 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19154 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19157 if test "$no_x" = yes; then
19158 # Not all programs may use this symbol, but it does not hurt to define it.
19160 cat >>confdefs.h <<\_ACEOF
19161 #define X_DISPLAY_MISSING 1
19164 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19166 if test -n "$x_includes"; then
19167 X_CFLAGS="$X_CFLAGS -I$x_includes"
19170 # It would also be nice to do this for all -L options, not just this one.
19171 if test -n "$x_libraries"; then
19172 X_LIBS="$X_LIBS -L$x_libraries"
19173 # For Solaris; some versions of Sun CC require a space after -R and
19174 # others require no space. Words are not sufficient . . . .
19175 case `(uname -sr) 2>/dev/null` in
19177 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19178 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19179 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19180 cat >conftest.$ac_ext <<_ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h. */
19195 rm -f conftest.$ac_objext conftest$ac_exeext
19196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19197 (eval $ac_link) 2>conftest.er1
19199 grep -v '^ *+' conftest.er1 >conftest.err
19201 cat conftest.err >&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } &&
19204 { ac_try='test -z "$ac_c_werror_flag"
19205 || test ! -s conftest.err'
19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207 (eval $ac_try) 2>&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; } &&
19211 { ac_try='test -s conftest$ac_exeext'
19212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19213 (eval $ac_try) 2>&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; }; then
19219 echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19224 rm -f conftest.err conftest.$ac_objext \
19225 conftest$ac_exeext conftest.$ac_ext
19226 if test $ac_R_nospace = yes; then
19227 echo "$as_me:$LINENO: result: no" >&5
19228 echo "${ECHO_T}no" >&6
19229 X_LIBS="$X_LIBS -R$x_libraries"
19231 LIBS="$ac_xsave_LIBS -R $x_libraries"
19232 cat >conftest.$ac_ext <<_ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19247 rm -f conftest.$ac_objext conftest$ac_exeext
19248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19249 (eval $ac_link) 2>conftest.er1
19251 grep -v '^ *+' conftest.er1 >conftest.err
19253 cat conftest.err >&5
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); } &&
19256 { ac_try='test -z "$ac_c_werror_flag"
19257 || test ! -s conftest.err'
19258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259 (eval $ac_try) 2>&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; } &&
19263 { ac_try='test -s conftest$ac_exeext'
19264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265 (eval $ac_try) 2>&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; }; then
19271 echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19276 rm -f conftest.err conftest.$ac_objext \
19277 conftest$ac_exeext conftest.$ac_ext
19278 if test $ac_R_space = yes; then
19279 echo "$as_me:$LINENO: result: yes" >&5
19280 echo "${ECHO_T}yes" >&6
19281 X_LIBS="$X_LIBS -R $x_libraries"
19283 echo "$as_me:$LINENO: result: neither works" >&5
19284 echo "${ECHO_T}neither works" >&6
19287 LIBS=$ac_xsave_LIBS
19291 # Check for system-dependent libraries X programs must link with.
19292 # Do this before checking for the system-independent R6 libraries
19293 # (-lICE), since we may need -lsocket or whatever for X linking.
19295 if test "$ISC" = yes; then
19296 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19298 # Martyn Johnson says this is needed for Ultrix, if the X
19299 # libraries were built with DECnet support. And Karl Berry says
19300 # the Alpha needs dnet_stub (dnet does not exist).
19301 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19302 cat >conftest.$ac_ext <<_ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h. */
19309 /* Override any gcc2 internal prototype to avoid an error. */
19313 /* We use char because int might match the return type of a gcc2
19314 builtin and then its argument prototype would still apply. */
19315 char XOpenDisplay ();
19324 rm -f conftest.$ac_objext conftest$ac_exeext
19325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19326 (eval $ac_link) 2>conftest.er1
19328 grep -v '^ *+' conftest.er1 >conftest.err
19330 cat conftest.err >&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); } &&
19333 { ac_try='test -z "$ac_c_werror_flag"
19334 || test ! -s conftest.err'
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; } &&
19340 { ac_try='test -s conftest$ac_exeext'
19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342 (eval $ac_try) 2>&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; }; then
19348 echo "$as_me: failed program was:" >&5
19349 sed 's/^/| /' conftest.$ac_ext >&5
19351 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19352 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19353 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19354 echo $ECHO_N "(cached) $ECHO_C" >&6
19356 ac_check_lib_save_LIBS=$LIBS
19357 LIBS="-ldnet $LIBS"
19358 cat >conftest.$ac_ext <<_ACEOF
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h. */
19365 /* Override any gcc2 internal prototype to avoid an error. */
19369 /* We use char because int might match the return type of a gcc2
19370 builtin and then its argument prototype would still apply. */
19380 rm -f conftest.$ac_objext conftest$ac_exeext
19381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19382 (eval $ac_link) 2>conftest.er1
19384 grep -v '^ *+' conftest.er1 >conftest.err
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
19389 { ac_try='test -z "$ac_c_werror_flag"
19390 || test ! -s conftest.err'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } &&
19396 { ac_try='test -s conftest$ac_exeext'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
19402 ac_cv_lib_dnet_dnet_ntoa=yes
19404 echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19407 ac_cv_lib_dnet_dnet_ntoa=no
19409 rm -f conftest.err conftest.$ac_objext \
19410 conftest$ac_exeext conftest.$ac_ext
19411 LIBS=$ac_check_lib_save_LIBS
19413 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19414 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19415 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19416 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19419 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19420 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19421 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19422 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19425 ac_check_lib_save_LIBS=$LIBS
19426 LIBS="-ldnet_stub $LIBS"
19427 cat >conftest.$ac_ext <<_ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h. */
19434 /* Override any gcc2 internal prototype to avoid an error. */
19438 /* We use char because int might match the return type of a gcc2
19439 builtin and then its argument prototype would still apply. */
19449 rm -f conftest.$ac_objext conftest$ac_exeext
19450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19451 (eval $ac_link) 2>conftest.er1
19453 grep -v '^ *+' conftest.er1 >conftest.err
19455 cat conftest.err >&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } &&
19458 { ac_try='test -z "$ac_c_werror_flag"
19459 || test ! -s conftest.err'
19460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19461 (eval $ac_try) 2>&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); }; } &&
19465 { ac_try='test -s conftest$ac_exeext'
19466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467 (eval $ac_try) 2>&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); }; }; then
19471 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19473 echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19476 ac_cv_lib_dnet_stub_dnet_ntoa=no
19478 rm -f conftest.err conftest.$ac_objext \
19479 conftest$ac_exeext conftest.$ac_ext
19480 LIBS=$ac_check_lib_save_LIBS
19482 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19483 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19484 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19485 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19490 rm -f conftest.err conftest.$ac_objext \
19491 conftest$ac_exeext conftest.$ac_ext
19492 LIBS="$ac_xsave_LIBS"
19494 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19495 # to get the SysV transport functions.
19496 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19498 # The nsl library prevents programs from opening the X display
19499 # on Irix 5.2, according to T.E. Dickey.
19500 # The functions gethostbyname, getservbyname, and inet_addr are
19501 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19502 echo "$as_me:$LINENO: checking for gethostbyname" >&5
19503 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19504 if test "${ac_cv_func_gethostbyname+set}" = set; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
19507 cat >conftest.$ac_ext <<_ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h. */
19513 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19515 #define gethostbyname innocuous_gethostbyname
19517 /* System header to define __stub macros and hopefully few prototypes,
19518 which can conflict with char gethostbyname (); below.
19519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19520 <limits.h> exists even on freestanding compilers. */
19523 # include <limits.h>
19525 # include <assert.h>
19528 #undef gethostbyname
19530 /* Override any gcc2 internal prototype to avoid an error. */
19535 /* We use char because int might match the return type of a gcc2
19536 builtin and then its argument prototype would still apply. */
19537 char gethostbyname ();
19538 /* The GNU C library defines this for functions which it implements
19539 to always fail with ENOSYS. Some functions are actually named
19540 something starting with __ and the normal name is an alias. */
19541 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19544 char (*f) () = gethostbyname;
19553 return f != gethostbyname;
19558 rm -f conftest.$ac_objext conftest$ac_exeext
19559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19560 (eval $ac_link) 2>conftest.er1
19562 grep -v '^ *+' conftest.er1 >conftest.err
19564 cat conftest.err >&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } &&
19567 { ac_try='test -z "$ac_c_werror_flag"
19568 || test ! -s conftest.err'
19569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570 (eval $ac_try) 2>&5
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); }; } &&
19574 { ac_try='test -s conftest$ac_exeext'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; }; then
19580 ac_cv_func_gethostbyname=yes
19582 echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19585 ac_cv_func_gethostbyname=no
19587 rm -f conftest.err conftest.$ac_objext \
19588 conftest$ac_exeext conftest.$ac_ext
19590 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19591 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19593 if test $ac_cv_func_gethostbyname = no; then
19594 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19595 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19596 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19599 ac_check_lib_save_LIBS=$LIBS
19601 cat >conftest.$ac_ext <<_ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h. */
19608 /* Override any gcc2 internal prototype to avoid an error. */
19612 /* We use char because int might match the return type of a gcc2
19613 builtin and then its argument prototype would still apply. */
19614 char gethostbyname ();
19623 rm -f conftest.$ac_objext conftest$ac_exeext
19624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19625 (eval $ac_link) 2>conftest.er1
19627 grep -v '^ *+' conftest.er1 >conftest.err
19629 cat conftest.err >&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } &&
19632 { ac_try='test -z "$ac_c_werror_flag"
19633 || test ! -s conftest.err'
19634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635 (eval $ac_try) 2>&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; } &&
19639 { ac_try='test -s conftest$ac_exeext'
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; }; then
19645 ac_cv_lib_nsl_gethostbyname=yes
19647 echo "$as_me: failed program was:" >&5
19648 sed 's/^/| /' conftest.$ac_ext >&5
19650 ac_cv_lib_nsl_gethostbyname=no
19652 rm -f conftest.err conftest.$ac_objext \
19653 conftest$ac_exeext conftest.$ac_ext
19654 LIBS=$ac_check_lib_save_LIBS
19656 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19657 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19658 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19659 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19662 if test $ac_cv_lib_nsl_gethostbyname = no; then
19663 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19664 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19665 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19666 echo $ECHO_N "(cached) $ECHO_C" >&6
19668 ac_check_lib_save_LIBS=$LIBS
19670 cat >conftest.$ac_ext <<_ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19677 /* Override any gcc2 internal prototype to avoid an error. */
19681 /* We use char because int might match the return type of a gcc2
19682 builtin and then its argument prototype would still apply. */
19683 char gethostbyname ();
19692 rm -f conftest.$ac_objext conftest$ac_exeext
19693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19694 (eval $ac_link) 2>conftest.er1
19696 grep -v '^ *+' conftest.er1 >conftest.err
19698 cat conftest.err >&5
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); } &&
19701 { ac_try='test -z "$ac_c_werror_flag"
19702 || test ! -s conftest.err'
19703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19704 (eval $ac_try) 2>&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); }; } &&
19708 { ac_try='test -s conftest$ac_exeext'
19709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19710 (eval $ac_try) 2>&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; }; then
19714 ac_cv_lib_bsd_gethostbyname=yes
19716 echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19719 ac_cv_lib_bsd_gethostbyname=no
19721 rm -f conftest.err conftest.$ac_objext \
19722 conftest$ac_exeext conftest.$ac_ext
19723 LIBS=$ac_check_lib_save_LIBS
19725 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19726 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19727 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19728 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19734 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19735 # socket/setsockopt and other routines are undefined under SCO ODT
19736 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19737 # on later versions), says Simon Leinen: it contains gethostby*
19738 # variants that don't use the name server (or something). -lsocket
19739 # must be given before -lnsl if both are needed. We assume that
19740 # if connect needs -lnsl, so does gethostbyname.
19741 echo "$as_me:$LINENO: checking for connect" >&5
19742 echo $ECHO_N "checking for connect... $ECHO_C" >&6
19743 if test "${ac_cv_func_connect+set}" = set; then
19744 echo $ECHO_N "(cached) $ECHO_C" >&6
19746 cat >conftest.$ac_ext <<_ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h. */
19752 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19754 #define connect innocuous_connect
19756 /* System header to define __stub macros and hopefully few prototypes,
19757 which can conflict with char connect (); below.
19758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19759 <limits.h> exists even on freestanding compilers. */
19762 # include <limits.h>
19764 # include <assert.h>
19769 /* Override any gcc2 internal prototype to avoid an error. */
19774 /* We use char because int might match the return type of a gcc2
19775 builtin and then its argument prototype would still apply. */
19777 /* The GNU C library defines this for functions which it implements
19778 to always fail with ENOSYS. Some functions are actually named
19779 something starting with __ and the normal name is an alias. */
19780 #if defined (__stub_connect) || defined (__stub___connect)
19783 char (*f) () = connect;
19792 return f != connect;
19797 rm -f conftest.$ac_objext conftest$ac_exeext
19798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19799 (eval $ac_link) 2>conftest.er1
19801 grep -v '^ *+' conftest.er1 >conftest.err
19803 cat conftest.err >&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); } &&
19806 { ac_try='test -z "$ac_c_werror_flag"
19807 || test ! -s conftest.err'
19808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809 (eval $ac_try) 2>&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); }; } &&
19813 { ac_try='test -s conftest$ac_exeext'
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; }; then
19819 ac_cv_func_connect=yes
19821 echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19824 ac_cv_func_connect=no
19826 rm -f conftest.err conftest.$ac_objext \
19827 conftest$ac_exeext conftest.$ac_ext
19829 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19830 echo "${ECHO_T}$ac_cv_func_connect" >&6
19832 if test $ac_cv_func_connect = no; then
19833 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19834 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
19835 if test "${ac_cv_lib_socket_connect+set}" = set; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
19838 ac_check_lib_save_LIBS=$LIBS
19839 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19840 cat >conftest.$ac_ext <<_ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19847 /* Override any gcc2 internal prototype to avoid an error. */
19851 /* We use char because int might match the return type of a gcc2
19852 builtin and then its argument prototype would still apply. */
19862 rm -f conftest.$ac_objext conftest$ac_exeext
19863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19864 (eval $ac_link) 2>conftest.er1
19866 grep -v '^ *+' conftest.er1 >conftest.err
19868 cat conftest.err >&5
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } &&
19871 { ac_try='test -z "$ac_c_werror_flag"
19872 || test ! -s conftest.err'
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; } &&
19878 { ac_try='test -s conftest$ac_exeext'
19879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880 (eval $ac_try) 2>&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; }; then
19884 ac_cv_lib_socket_connect=yes
19886 echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19889 ac_cv_lib_socket_connect=no
19891 rm -f conftest.err conftest.$ac_objext \
19892 conftest$ac_exeext conftest.$ac_ext
19893 LIBS=$ac_check_lib_save_LIBS
19895 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19896 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
19897 if test $ac_cv_lib_socket_connect = yes; then
19898 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19903 # Guillermo Gomez says -lposix is necessary on A/UX.
19904 echo "$as_me:$LINENO: checking for remove" >&5
19905 echo $ECHO_N "checking for remove... $ECHO_C" >&6
19906 if test "${ac_cv_func_remove+set}" = set; then
19907 echo $ECHO_N "(cached) $ECHO_C" >&6
19909 cat >conftest.$ac_ext <<_ACEOF
19912 cat confdefs.h >>conftest.$ac_ext
19913 cat >>conftest.$ac_ext <<_ACEOF
19914 /* end confdefs.h. */
19915 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19917 #define remove innocuous_remove
19919 /* System header to define __stub macros and hopefully few prototypes,
19920 which can conflict with char remove (); below.
19921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19922 <limits.h> exists even on freestanding compilers. */
19925 # include <limits.h>
19927 # include <assert.h>
19932 /* Override any gcc2 internal prototype to avoid an error. */
19937 /* We use char because int might match the return type of a gcc2
19938 builtin and then its argument prototype would still apply. */
19940 /* The GNU C library defines this for functions which it implements
19941 to always fail with ENOSYS. Some functions are actually named
19942 something starting with __ and the normal name is an alias. */
19943 #if defined (__stub_remove) || defined (__stub___remove)
19946 char (*f) () = remove;
19955 return f != remove;
19960 rm -f conftest.$ac_objext conftest$ac_exeext
19961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19962 (eval $ac_link) 2>conftest.er1
19964 grep -v '^ *+' conftest.er1 >conftest.err
19966 cat conftest.err >&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); } &&
19969 { ac_try='test -z "$ac_c_werror_flag"
19970 || test ! -s conftest.err'
19971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19972 (eval $ac_try) 2>&5
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); }; } &&
19976 { ac_try='test -s conftest$ac_exeext'
19977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978 (eval $ac_try) 2>&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; }; then
19982 ac_cv_func_remove=yes
19984 echo "$as_me: failed program was:" >&5
19985 sed 's/^/| /' conftest.$ac_ext >&5
19987 ac_cv_func_remove=no
19989 rm -f conftest.err conftest.$ac_objext \
19990 conftest$ac_exeext conftest.$ac_ext
19992 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19993 echo "${ECHO_T}$ac_cv_func_remove" >&6
19995 if test $ac_cv_func_remove = no; then
19996 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19997 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
19998 if test "${ac_cv_lib_posix_remove+set}" = set; then
19999 echo $ECHO_N "(cached) $ECHO_C" >&6
20001 ac_check_lib_save_LIBS=$LIBS
20002 LIBS="-lposix $LIBS"
20003 cat >conftest.$ac_ext <<_ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h. */
20010 /* Override any gcc2 internal prototype to avoid an error. */
20014 /* We use char because int might match the return type of a gcc2
20015 builtin and then its argument prototype would still apply. */
20025 rm -f conftest.$ac_objext conftest$ac_exeext
20026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20027 (eval $ac_link) 2>conftest.er1
20029 grep -v '^ *+' conftest.er1 >conftest.err
20031 cat conftest.err >&5
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); } &&
20034 { ac_try='test -z "$ac_c_werror_flag"
20035 || test ! -s conftest.err'
20036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20037 (eval $ac_try) 2>&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; } &&
20041 { ac_try='test -s conftest$ac_exeext'
20042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20043 (eval $ac_try) 2>&5
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; }; then
20047 ac_cv_lib_posix_remove=yes
20049 echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20052 ac_cv_lib_posix_remove=no
20054 rm -f conftest.err conftest.$ac_objext \
20055 conftest$ac_exeext conftest.$ac_ext
20056 LIBS=$ac_check_lib_save_LIBS
20058 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20059 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20060 if test $ac_cv_lib_posix_remove = yes; then
20061 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20066 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20067 echo "$as_me:$LINENO: checking for shmat" >&5
20068 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20069 if test "${ac_cv_func_shmat+set}" = set; then
20070 echo $ECHO_N "(cached) $ECHO_C" >&6
20072 cat >conftest.$ac_ext <<_ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h. */
20078 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20080 #define shmat innocuous_shmat
20082 /* System header to define __stub macros and hopefully few prototypes,
20083 which can conflict with char shmat (); below.
20084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20085 <limits.h> exists even on freestanding compilers. */
20088 # include <limits.h>
20090 # include <assert.h>
20095 /* Override any gcc2 internal prototype to avoid an error. */
20100 /* We use char because int might match the return type of a gcc2
20101 builtin and then its argument prototype would still apply. */
20103 /* The GNU C library defines this for functions which it implements
20104 to always fail with ENOSYS. Some functions are actually named
20105 something starting with __ and the normal name is an alias. */
20106 #if defined (__stub_shmat) || defined (__stub___shmat)
20109 char (*f) () = shmat;
20123 rm -f conftest.$ac_objext conftest$ac_exeext
20124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20125 (eval $ac_link) 2>conftest.er1
20127 grep -v '^ *+' conftest.er1 >conftest.err
20129 cat conftest.err >&5
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); } &&
20132 { ac_try='test -z "$ac_c_werror_flag"
20133 || test ! -s conftest.err'
20134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135 (eval $ac_try) 2>&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; } &&
20139 { ac_try='test -s conftest$ac_exeext'
20140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20141 (eval $ac_try) 2>&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); }; }; then
20145 ac_cv_func_shmat=yes
20147 echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20150 ac_cv_func_shmat=no
20152 rm -f conftest.err conftest.$ac_objext \
20153 conftest$ac_exeext conftest.$ac_ext
20155 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20156 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20158 if test $ac_cv_func_shmat = no; then
20159 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20160 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20161 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20162 echo $ECHO_N "(cached) $ECHO_C" >&6
20164 ac_check_lib_save_LIBS=$LIBS
20166 cat >conftest.$ac_ext <<_ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h. */
20173 /* Override any gcc2 internal prototype to avoid an error. */
20177 /* We use char because int might match the return type of a gcc2
20178 builtin and then its argument prototype would still apply. */
20188 rm -f conftest.$ac_objext conftest$ac_exeext
20189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20190 (eval $ac_link) 2>conftest.er1
20192 grep -v '^ *+' conftest.er1 >conftest.err
20194 cat conftest.err >&5
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); } &&
20197 { ac_try='test -z "$ac_c_werror_flag"
20198 || test ! -s conftest.err'
20199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200 (eval $ac_try) 2>&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); }; } &&
20204 { ac_try='test -s conftest$ac_exeext'
20205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206 (eval $ac_try) 2>&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); }; }; then
20210 ac_cv_lib_ipc_shmat=yes
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20215 ac_cv_lib_ipc_shmat=no
20217 rm -f conftest.err conftest.$ac_objext \
20218 conftest$ac_exeext conftest.$ac_ext
20219 LIBS=$ac_check_lib_save_LIBS
20221 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20222 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20223 if test $ac_cv_lib_ipc_shmat = yes; then
20224 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20230 # Check for libraries that X11R6 Xt/Xaw programs need.
20231 ac_save_LDFLAGS=$LDFLAGS
20232 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20233 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20234 # check for ICE first), but we must link in the order -lSM -lICE or
20235 # we get undefined symbols. So assume we have SM if we have ICE.
20236 # These have to be linked with before -lX11, unlike the other
20237 # libraries we check for below, so use a different variable.
20238 # John Interrante, Karl Berry
20239 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20240 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20241 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
20244 ac_check_lib_save_LIBS=$LIBS
20245 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20246 cat >conftest.$ac_ext <<_ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h. */
20253 /* Override any gcc2 internal prototype to avoid an error. */
20257 /* We use char because int might match the return type of a gcc2
20258 builtin and then its argument prototype would still apply. */
20259 char IceConnectionNumber ();
20263 IceConnectionNumber ();
20268 rm -f conftest.$ac_objext conftest$ac_exeext
20269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20270 (eval $ac_link) 2>conftest.er1
20272 grep -v '^ *+' conftest.er1 >conftest.err
20274 cat conftest.err >&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); } &&
20277 { ac_try='test -z "$ac_c_werror_flag"
20278 || test ! -s conftest.err'
20279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280 (eval $ac_try) 2>&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); }; } &&
20284 { ac_try='test -s conftest$ac_exeext'
20285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20286 (eval $ac_try) 2>&5
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); }; }; then
20290 ac_cv_lib_ICE_IceConnectionNumber=yes
20292 echo "$as_me: failed program was:" >&5
20293 sed 's/^/| /' conftest.$ac_ext >&5
20295 ac_cv_lib_ICE_IceConnectionNumber=no
20297 rm -f conftest.err conftest.$ac_objext \
20298 conftest$ac_exeext conftest.$ac_ext
20299 LIBS=$ac_check_lib_save_LIBS
20301 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20302 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20303 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20304 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20307 LDFLAGS=$ac_save_LDFLAGS
20314 # See if we are to build x11vnc:
20318 # Check whether --with-system-libvncserver or --without-system-libvncserver was given.
20319 if test "${with_system_libvncserver+set}" = set; then
20320 withval="$with_system_libvncserver"
20324 # Check whether --with-x11vnc or --without-x11vnc was given.
20325 if test "${with_x11vnc+set}" = set; then
20326 withval="$with_x11vnc"
20330 if test ! -z "$with_x11vnc" -a "$with_x11vnc" = "yes"; then
20332 elif test "$PACKAGE_NAME" = "x11vnc"; then
20339 if test "$build_x11vnc" = "yes"; then
20381 # Check whether --with-xkeyboard or --without-xkeyboard was given.
20382 if test "${with_xkeyboard+set}" = set; then
20383 withval="$with_xkeyboard"
20387 # Check whether --with-xinerama or --without-xinerama was given.
20388 if test "${with_xinerama+set}" = set; then
20389 withval="$with_xinerama"
20393 # Check whether --with-xrandr or --without-xrandr was given.
20394 if test "${with_xrandr+set}" = set; then
20395 withval="$with_xrandr"
20399 # Check whether --with-xfixes or --without-xfixes was given.
20400 if test "${with_xfixes+set}" = set; then
20401 withval="$with_xfixes"
20405 # Check whether --with-xdamage or --without-xdamage was given.
20406 if test "${with_xdamage+set}" = set; then
20407 withval="$with_xdamage"
20411 # Check whether --with-xtrap or --without-xtrap was given.
20412 if test "${with_xtrap+set}" = set; then
20413 withval="$with_xtrap"
20417 # Check whether --with-xrecord or --without-xrecord was given.
20418 if test "${with_xrecord+set}" = set; then
20419 withval="$with_xrecord"
20423 # Check whether --with-fbpm or --without-fbpm was given.
20424 if test "${with_fbpm+set}" = set; then
20425 withval="$with_fbpm"
20429 # Check whether --with-dpms or --without-dpms was given.
20430 if test "${with_dpms+set}" = set; then
20431 withval="$with_dpms"
20435 # Check whether --with-v4l or --without-v4l was given.
20436 if test "${with_v4l+set}" = set; then
20437 withval="$with_v4l"
20441 # Check whether --with-fbdev or --without-fbdev was given.
20442 if test "${with_fbdev+set}" = set; then
20443 withval="$with_fbdev"
20447 # Check whether --with-uinput or --without-uinput was given.
20448 if test "${with_uinput+set}" = set; then
20449 withval="$with_uinput"
20453 # Check whether --with-macosx-native or --without-macosx-native was given.
20454 if test "${with_macosx_native+set}" = set; then
20455 withval="$with_macosx_native"
20462 if test "x$with_x" = "xno"; then
20464 elif test "$X_CFLAGS" != "-DX_DISPLAY_MISSING"; then
20465 echo "$as_me:$LINENO: checking for XGetImage in -lX11" >&5
20466 echo $ECHO_N "checking for XGetImage in -lX11... $ECHO_C" >&6
20467 if test "${ac_cv_lib_X11_XGetImage+set}" = set; then
20468 echo $ECHO_N "(cached) $ECHO_C" >&6
20470 ac_check_lib_save_LIBS=$LIBS
20471 LIBS="-lX11 $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20472 cat >conftest.$ac_ext <<_ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h. */
20479 /* Override any gcc2 internal prototype to avoid an error. */
20483 /* We use char because int might match the return type of a gcc2
20484 builtin and then its argument prototype would still apply. */
20494 rm -f conftest.$ac_objext conftest$ac_exeext
20495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20496 (eval $ac_link) 2>conftest.er1
20498 grep -v '^ *+' conftest.er1 >conftest.err
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } &&
20503 { ac_try='test -z "$ac_c_werror_flag"
20504 || test ! -s conftest.err'
20505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506 (eval $ac_try) 2>&5
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; } &&
20510 { ac_try='test -s conftest$ac_exeext'
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; }; then
20516 ac_cv_lib_X11_XGetImage=yes
20518 echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20521 ac_cv_lib_X11_XGetImage=no
20523 rm -f conftest.err conftest.$ac_objext \
20524 conftest$ac_exeext conftest.$ac_ext
20525 LIBS=$ac_check_lib_save_LIBS
20527 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XGetImage" >&5
20528 echo "${ECHO_T}$ac_cv_lib_X11_XGetImage" >&6
20529 if test $ac_cv_lib_X11_XGetImage = yes; then
20530 cat >>confdefs.h <<\_ACEOF
20540 if test $HAVE_X = "true" -a "$build_x11vnc" = "yes"; then
20541 X_PRELIBS="$X_PRELIBS -lXext"
20543 echo "$as_me:$LINENO: checking for XShmGetImage in -lXext" >&5
20544 echo $ECHO_N "checking for XShmGetImage in -lXext... $ECHO_C" >&6
20545 if test "${ac_cv_lib_Xext_XShmGetImage+set}" = set; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20548 ac_check_lib_save_LIBS=$LIBS
20549 LIBS="-lXext $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20550 cat >conftest.$ac_ext <<_ACEOF
20553 cat confdefs.h >>conftest.$ac_ext
20554 cat >>conftest.$ac_ext <<_ACEOF
20555 /* end confdefs.h. */
20557 /* Override any gcc2 internal prototype to avoid an error. */
20561 /* We use char because int might match the return type of a gcc2
20562 builtin and then its argument prototype would still apply. */
20563 char XShmGetImage ();
20572 rm -f conftest.$ac_objext conftest$ac_exeext
20573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20574 (eval $ac_link) 2>conftest.er1
20576 grep -v '^ *+' conftest.er1 >conftest.err
20578 cat conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } &&
20581 { ac_try='test -z "$ac_c_werror_flag"
20582 || test ! -s conftest.err'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; } &&
20588 { ac_try='test -s conftest$ac_exeext'
20589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590 (eval $ac_try) 2>&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; }; then
20594 ac_cv_lib_Xext_XShmGetImage=yes
20596 echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20599 ac_cv_lib_Xext_XShmGetImage=no
20601 rm -f conftest.err conftest.$ac_objext \
20602 conftest$ac_exeext conftest.$ac_ext
20603 LIBS=$ac_check_lib_save_LIBS
20605 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmGetImage" >&5
20606 echo "${ECHO_T}$ac_cv_lib_Xext_XShmGetImage" >&6
20607 if test $ac_cv_lib_Xext_XShmGetImage = yes; then
20608 cat >>confdefs.h <<\_ACEOF
20609 #define HAVE_XSHM 1
20615 echo "$as_me:$LINENO: checking for XReadScreen in -lXext" >&5
20616 echo $ECHO_N "checking for XReadScreen in -lXext... $ECHO_C" >&6
20617 if test "${ac_cv_lib_Xext_XReadScreen+set}" = set; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20620 ac_check_lib_save_LIBS=$LIBS
20621 LIBS="-lXext $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20622 cat >conftest.$ac_ext <<_ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20629 /* Override any gcc2 internal prototype to avoid an error. */
20633 /* We use char because int might match the return type of a gcc2
20634 builtin and then its argument prototype would still apply. */
20635 char XReadScreen ();
20644 rm -f conftest.$ac_objext conftest$ac_exeext
20645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20646 (eval $ac_link) 2>conftest.er1
20648 grep -v '^ *+' conftest.er1 >conftest.err
20650 cat conftest.err >&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } &&
20653 { ac_try='test -z "$ac_c_werror_flag"
20654 || test ! -s conftest.err'
20655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656 (eval $ac_try) 2>&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; } &&
20660 { ac_try='test -s conftest$ac_exeext'
20661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662 (eval $ac_try) 2>&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); }; }; then
20666 ac_cv_lib_Xext_XReadScreen=yes
20668 echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20671 ac_cv_lib_Xext_XReadScreen=no
20673 rm -f conftest.err conftest.$ac_objext \
20674 conftest$ac_exeext conftest.$ac_ext
20675 LIBS=$ac_check_lib_save_LIBS
20677 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XReadScreen" >&5
20678 echo "${ECHO_T}$ac_cv_lib_Xext_XReadScreen" >&6
20679 if test $ac_cv_lib_Xext_XReadScreen = yes; then
20680 cat >>confdefs.h <<\_ACEOF
20681 #define HAVE_SOLARIS_XREADSCREEN 1
20687 echo "$as_me:$LINENO: checking for X11/extensions/readdisplay.h" >&5
20688 echo $ECHO_N "checking for X11/extensions/readdisplay.h... $ECHO_C" >&6
20689 if test "${ac_cv_header_X11_extensions_readdisplay_h+set}" = set; then
20690 echo $ECHO_N "(cached) $ECHO_C" >&6
20692 cat >conftest.$ac_ext <<_ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h. */
20698 #include <X11/Xlib.h>
20700 #include <X11/extensions/readdisplay.h>
20702 rm -f conftest.$ac_objext
20703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20704 (eval $ac_compile) 2>conftest.er1
20706 grep -v '^ *+' conftest.er1 >conftest.err
20708 cat conftest.err >&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } &&
20711 { ac_try='test -z "$ac_c_werror_flag"
20712 || test ! -s conftest.err'
20713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20714 (eval $ac_try) 2>&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); }; } &&
20718 { ac_try='test -s conftest.$ac_objext'
20719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720 (eval $ac_try) 2>&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; }; then
20724 ac_cv_header_X11_extensions_readdisplay_h=yes
20726 echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.$ac_ext >&5
20729 ac_cv_header_X11_extensions_readdisplay_h=no
20731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20733 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_readdisplay_h" >&5
20734 echo "${ECHO_T}$ac_cv_header_X11_extensions_readdisplay_h" >&6
20735 if test $ac_cv_header_X11_extensions_readdisplay_h = yes; then
20736 cat >>confdefs.h <<\_ACEOF
20737 #define HAVE_IRIX_XREADDISPLAY 1
20744 if test "x$with_fbpm" != "xno"; then
20745 echo "$as_me:$LINENO: checking for FBPMForceLevel in -lXext" >&5
20746 echo $ECHO_N "checking for FBPMForceLevel in -lXext... $ECHO_C" >&6
20747 if test "${ac_cv_lib_Xext_FBPMForceLevel+set}" = set; then
20748 echo $ECHO_N "(cached) $ECHO_C" >&6
20750 ac_check_lib_save_LIBS=$LIBS
20751 LIBS="-lXext $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20752 cat >conftest.$ac_ext <<_ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20759 /* Override any gcc2 internal prototype to avoid an error. */
20763 /* We use char because int might match the return type of a gcc2
20764 builtin and then its argument prototype would still apply. */
20765 char FBPMForceLevel ();
20774 rm -f conftest.$ac_objext conftest$ac_exeext
20775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20776 (eval $ac_link) 2>conftest.er1
20778 grep -v '^ *+' conftest.er1 >conftest.err
20780 cat conftest.err >&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); } &&
20783 { ac_try='test -z "$ac_c_werror_flag"
20784 || test ! -s conftest.err'
20785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20786 (eval $ac_try) 2>&5
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); }; } &&
20790 { ac_try='test -s conftest$ac_exeext'
20791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20792 (eval $ac_try) 2>&5
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); }; }; then
20796 ac_cv_lib_Xext_FBPMForceLevel=yes
20798 echo "$as_me: failed program was:" >&5
20799 sed 's/^/| /' conftest.$ac_ext >&5
20801 ac_cv_lib_Xext_FBPMForceLevel=no
20803 rm -f conftest.err conftest.$ac_objext \
20804 conftest$ac_exeext conftest.$ac_ext
20805 LIBS=$ac_check_lib_save_LIBS
20807 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_FBPMForceLevel" >&5
20808 echo "${ECHO_T}$ac_cv_lib_Xext_FBPMForceLevel" >&6
20809 if test $ac_cv_lib_Xext_FBPMForceLevel = yes; then
20810 cat >>confdefs.h <<\_ACEOF
20811 #define HAVE_FBPM 1
20818 if test "x$with_dpms" != "xno"; then
20819 echo "$as_me:$LINENO: checking for DPMSForceLevel in -lXext" >&5
20820 echo $ECHO_N "checking for DPMSForceLevel in -lXext... $ECHO_C" >&6
20821 if test "${ac_cv_lib_Xext_DPMSForceLevel+set}" = set; then
20822 echo $ECHO_N "(cached) $ECHO_C" >&6
20824 ac_check_lib_save_LIBS=$LIBS
20825 LIBS="-lXext $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20826 cat >conftest.$ac_ext <<_ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h. */
20833 /* Override any gcc2 internal prototype to avoid an error. */
20837 /* We use char because int might match the return type of a gcc2
20838 builtin and then its argument prototype would still apply. */
20839 char DPMSForceLevel ();
20848 rm -f conftest.$ac_objext conftest$ac_exeext
20849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20850 (eval $ac_link) 2>conftest.er1
20852 grep -v '^ *+' conftest.er1 >conftest.err
20854 cat conftest.err >&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } &&
20857 { ac_try='test -z "$ac_c_werror_flag"
20858 || test ! -s conftest.err'
20859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860 (eval $ac_try) 2>&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); }; } &&
20864 { ac_try='test -s conftest$ac_exeext'
20865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866 (eval $ac_try) 2>&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; }; then
20870 ac_cv_lib_Xext_DPMSForceLevel=yes
20872 echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20875 ac_cv_lib_Xext_DPMSForceLevel=no
20877 rm -f conftest.err conftest.$ac_objext \
20878 conftest$ac_exeext conftest.$ac_ext
20879 LIBS=$ac_check_lib_save_LIBS
20881 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_DPMSForceLevel" >&5
20882 echo "${ECHO_T}$ac_cv_lib_Xext_DPMSForceLevel" >&6
20883 if test $ac_cv_lib_Xext_DPMSForceLevel = yes; then
20884 cat >>confdefs.h <<\_ACEOF
20885 #define HAVE_DPMS 1
20892 echo "$as_me:$LINENO: checking for XTestGrabControl in -lXtst" >&5
20893 echo $ECHO_N "checking for XTestGrabControl in -lXtst... $ECHO_C" >&6
20894 if test "${ac_cv_lib_Xtst_XTestGrabControl+set}" = set; then
20895 echo $ECHO_N "(cached) $ECHO_C" >&6
20897 ac_check_lib_save_LIBS=$LIBS
20898 LIBS="-lXtst $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20899 cat >conftest.$ac_ext <<_ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h. */
20906 /* Override any gcc2 internal prototype to avoid an error. */
20910 /* We use char because int might match the return type of a gcc2
20911 builtin and then its argument prototype would still apply. */
20912 char XTestGrabControl ();
20916 XTestGrabControl ();
20921 rm -f conftest.$ac_objext conftest$ac_exeext
20922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20923 (eval $ac_link) 2>conftest.er1
20925 grep -v '^ *+' conftest.er1 >conftest.err
20927 cat conftest.err >&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } &&
20930 { ac_try='test -z "$ac_c_werror_flag"
20931 || test ! -s conftest.err'
20932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933 (eval $ac_try) 2>&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; } &&
20937 { ac_try='test -s conftest$ac_exeext'
20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939 (eval $ac_try) 2>&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; }; then
20943 ac_cv_lib_Xtst_XTestGrabControl=yes
20945 echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20948 ac_cv_lib_Xtst_XTestGrabControl=no
20950 rm -f conftest.err conftest.$ac_objext \
20951 conftest$ac_exeext conftest.$ac_ext
20952 LIBS=$ac_check_lib_save_LIBS
20954 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestGrabControl" >&5
20955 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestGrabControl" >&6
20956 if test $ac_cv_lib_Xtst_XTestGrabControl = yes; then
20957 X_PRELIBS="-lXtst $X_PRELIBS"
20958 cat >>confdefs.h <<\_ACEOF
20959 #define HAVE_XTESTGRABCONTROL 1
20961 HAVE_XTESTGRABCONTROL="true"
20965 echo "$as_me:$LINENO: checking for XTestFakeKeyEvent in -lXtst" >&5
20966 echo $ECHO_N "checking for XTestFakeKeyEvent in -lXtst... $ECHO_C" >&6
20967 if test "${ac_cv_lib_Xtst_XTestFakeKeyEvent+set}" = set; then
20968 echo $ECHO_N "(cached) $ECHO_C" >&6
20970 ac_check_lib_save_LIBS=$LIBS
20971 LIBS="-lXtst $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20972 cat >conftest.$ac_ext <<_ACEOF
20975 cat confdefs.h >>conftest.$ac_ext
20976 cat >>conftest.$ac_ext <<_ACEOF
20977 /* end confdefs.h. */
20979 /* Override any gcc2 internal prototype to avoid an error. */
20983 /* We use char because int might match the return type of a gcc2
20984 builtin and then its argument prototype would still apply. */
20985 char XTestFakeKeyEvent ();
20989 XTestFakeKeyEvent ();
20994 rm -f conftest.$ac_objext conftest$ac_exeext
20995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20996 (eval $ac_link) 2>conftest.er1
20998 grep -v '^ *+' conftest.er1 >conftest.err
21000 cat conftest.err >&5
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); } &&
21003 { ac_try='test -z "$ac_c_werror_flag"
21004 || test ! -s conftest.err'
21005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21006 (eval $ac_try) 2>&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); }; } &&
21010 { ac_try='test -s conftest$ac_exeext'
21011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012 (eval $ac_try) 2>&5
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); }; }; then
21016 ac_cv_lib_Xtst_XTestFakeKeyEvent=yes
21018 echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21021 ac_cv_lib_Xtst_XTestFakeKeyEvent=no
21023 rm -f conftest.err conftest.$ac_objext \
21024 conftest$ac_exeext conftest.$ac_ext
21025 LIBS=$ac_check_lib_save_LIBS
21027 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestFakeKeyEvent" >&5
21028 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestFakeKeyEvent" >&6
21029 if test $ac_cv_lib_Xtst_XTestFakeKeyEvent = yes; then
21030 X_PRELIBS="-lXtst $X_PRELIBS"
21031 cat >>confdefs.h <<\_ACEOF
21032 #define HAVE_XTEST 1
21038 if test "x$with_xrecord" != "xno"; then
21039 echo "$as_me:$LINENO: checking for XRecordEnableContextAsync in -lXtst" >&5
21040 echo $ECHO_N "checking for XRecordEnableContextAsync in -lXtst... $ECHO_C" >&6
21041 if test "${ac_cv_lib_Xtst_XRecordEnableContextAsync+set}" = set; then
21042 echo $ECHO_N "(cached) $ECHO_C" >&6
21044 ac_check_lib_save_LIBS=$LIBS
21045 LIBS="-lXtst $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
21046 cat >conftest.$ac_ext <<_ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21053 /* Override any gcc2 internal prototype to avoid an error. */
21057 /* We use char because int might match the return type of a gcc2
21058 builtin and then its argument prototype would still apply. */
21059 char XRecordEnableContextAsync ();
21063 XRecordEnableContextAsync ();
21068 rm -f conftest.$ac_objext conftest$ac_exeext
21069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21070 (eval $ac_link) 2>conftest.er1
21072 grep -v '^ *+' conftest.er1 >conftest.err
21074 cat conftest.err >&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); } &&
21077 { ac_try='test -z "$ac_c_werror_flag"
21078 || test ! -s conftest.err'
21079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080 (eval $ac_try) 2>&5
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); }; } &&
21084 { ac_try='test -s conftest$ac_exeext'
21085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21086 (eval $ac_try) 2>&5
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); }; }; then
21090 ac_cv_lib_Xtst_XRecordEnableContextAsync=yes
21092 echo "$as_me: failed program was:" >&5
21093 sed 's/^/| /' conftest.$ac_ext >&5
21095 ac_cv_lib_Xtst_XRecordEnableContextAsync=no
21097 rm -f conftest.err conftest.$ac_objext \
21098 conftest$ac_exeext conftest.$ac_ext
21099 LIBS=$ac_check_lib_save_LIBS
21101 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XRecordEnableContextAsync" >&5
21102 echo "${ECHO_T}$ac_cv_lib_Xtst_XRecordEnableContextAsync" >&6
21103 if test $ac_cv_lib_Xtst_XRecordEnableContextAsync = yes; then
21104 X_PRELIBS="-lXtst $X_PRELIBS"
21105 cat >>confdefs.h <<\_ACEOF
21106 #define HAVE_RECORD 1
21113 # we use XTRAP on X11R5, or user can set X11VNC_USE_XTRAP
21114 if test "x$with_xtrap" != "xno"; then
21115 if test ! -z "$X11VNC_USE_XTRAP" -o -z "$HAVE_XTESTGRABCONTROL"; then
21116 echo "$as_me:$LINENO: checking for XETrapSetGrabServer in -lXTrap" >&5
21117 echo $ECHO_N "checking for XETrapSetGrabServer in -lXTrap... $ECHO_C" >&6
21118 if test "${ac_cv_lib_XTrap_XETrapSetGrabServer+set}" = set; then
21119 echo $ECHO_N "(cached) $ECHO_C" >&6
21121 ac_check_lib_save_LIBS=$LIBS
21122 LIBS="-lXTrap $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
21123 cat >conftest.$ac_ext <<_ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h. */
21130 /* Override any gcc2 internal prototype to avoid an error. */
21134 /* We use char because int might match the return type of a gcc2
21135 builtin and then its argument prototype would still apply. */
21136 char XETrapSetGrabServer ();
21140 XETrapSetGrabServer ();
21145 rm -f conftest.$ac_objext conftest$ac_exeext
21146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21147 (eval $ac_link) 2>conftest.er1
21149 grep -v '^ *+' conftest.er1 >conftest.err
21151 cat conftest.err >&5
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); } &&
21154 { ac_try='test -z "$ac_c_werror_flag"
21155 || test ! -s conftest.err'
21156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21157 (eval $ac_try) 2>&5
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); }; } &&
21161 { ac_try='test -s conftest$ac_exeext'
21162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21163 (eval $ac_try) 2>&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); }; }; then
21167 ac_cv_lib_XTrap_XETrapSetGrabServer=yes
21169 echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21172 ac_cv_lib_XTrap_XETrapSetGrabServer=no
21174 rm -f conftest.err conftest.$ac_objext \
21175 conftest$ac_exeext conftest.$ac_ext
21176 LIBS=$ac_check_lib_save_LIBS
21178 echo "$as_me:$LINENO: result: $ac_cv_lib_XTrap_XETrapSetGrabServer" >&5
21179 echo "${ECHO_T}$ac_cv_lib_XTrap_XETrapSetGrabServer" >&6
21180 if test $ac_cv_lib_XTrap_XETrapSetGrabServer = yes; then
21181 X_PRELIBS="$X_PRELIBS -lXTrap"
21182 cat >>confdefs.h <<\_ACEOF
21183 #define HAVE_LIBXTRAP 1
21188 # tru64 uses libXETrap.so
21189 echo "$as_me:$LINENO: checking for XETrapSetGrabServer in -lXETrap" >&5
21190 echo $ECHO_N "checking for XETrapSetGrabServer in -lXETrap... $ECHO_C" >&6
21191 if test "${ac_cv_lib_XETrap_XETrapSetGrabServer+set}" = set; then
21192 echo $ECHO_N "(cached) $ECHO_C" >&6
21194 ac_check_lib_save_LIBS=$LIBS
21195 LIBS="-lXETrap $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
21196 cat >conftest.$ac_ext <<_ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h. */
21203 /* Override any gcc2 internal prototype to avoid an error. */
21207 /* We use char because int might match the return type of a gcc2
21208 builtin and then its argument prototype would still apply. */
21209 char XETrapSetGrabServer ();
21213 XETrapSetGrabServer ();
21218 rm -f conftest.$ac_objext conftest$ac_exeext
21219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21220 (eval $ac_link) 2>conftest.er1
21222 grep -v '^ *+' conftest.er1 >conftest.err
21224 cat conftest.err >&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); } &&
21227 { ac_try='test -z "$ac_c_werror_flag"
21228 || test ! -s conftest.err'
21229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21230 (eval $ac_try) 2>&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; } &&
21234 { ac_try='test -s conftest$ac_exeext'
21235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236 (eval $ac_try) 2>&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); }; }; then
21240 ac_cv_lib_XETrap_XETrapSetGrabServer=yes
21242 echo "$as_me: failed program was:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21245 ac_cv_lib_XETrap_XETrapSetGrabServer=no
21247 rm -f conftest.err conftest.$ac_objext \
21248 conftest$ac_exeext conftest.$ac_ext
21249 LIBS=$ac_check_lib_save_LIBS
21251 echo "$as_me:$LINENO: result: $ac_cv_lib_XETrap_XETrapSetGrabServer" >&5
21252 echo "${ECHO_T}$ac_cv_lib_XETrap_XETrapSetGrabServer" >&6
21253 if test $ac_cv_lib_XETrap_XETrapSetGrabServer = yes; then
21254 X_PRELIBS="$X_PRELIBS -lXETrap"
21255 cat >>confdefs.h <<\_ACEOF
21256 #define HAVE_LIBXTRAP 1
21264 if test "x$with_xkeyboard" != "xno"; then
21265 saved_CPPFLAGS="$CPPFLAGS"
21266 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
21267 echo "$as_me:$LINENO: checking for X11/XKBlib.h" >&5
21268 echo $ECHO_N "checking for X11/XKBlib.h... $ECHO_C" >&6
21269 if test "${ac_cv_header_X11_XKBlib_h+set}" = set; then
21270 echo $ECHO_N "(cached) $ECHO_C" >&6
21272 cat >conftest.$ac_ext <<_ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h. */
21278 #include <X11/Xlib.h>
21280 #include <X11/XKBlib.h>
21282 rm -f conftest.$ac_objext
21283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21284 (eval $ac_compile) 2>conftest.er1
21286 grep -v '^ *+' conftest.er1 >conftest.err
21288 cat conftest.err >&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); } &&
21291 { ac_try='test -z "$ac_c_werror_flag"
21292 || test ! -s conftest.err'
21293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294 (eval $ac_try) 2>&5
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); }; } &&
21298 { ac_try='test -s conftest.$ac_objext'
21299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21300 (eval $ac_try) 2>&5
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); }; }; then
21304 ac_cv_header_X11_XKBlib_h=yes
21306 echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.$ac_ext >&5
21309 ac_cv_header_X11_XKBlib_h=no
21311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21313 echo "$as_me:$LINENO: result: $ac_cv_header_X11_XKBlib_h" >&5
21314 echo "${ECHO_T}$ac_cv_header_X11_XKBlib_h" >&6
21315 if test $ac_cv_header_X11_XKBlib_h = yes; then
21316 HAVE_XKBLIB_H="true"
21318 HAVE_XKBLIB_H="false"
21322 CPPFLAGS="$saved_CPPFLAGS"
21323 if test $HAVE_XKBLIB_H = "true"; then
21324 echo "$as_me:$LINENO: checking for XkbSelectEvents in -lX11" >&5
21325 echo $ECHO_N "checking for XkbSelectEvents in -lX11... $ECHO_C" >&6
21326 if test "${ac_cv_lib_X11_XkbSelectEvents+set}" = set; then
21327 echo $ECHO_N "(cached) $ECHO_C" >&6
21329 ac_check_lib_save_LIBS=$LIBS
21330 LIBS="-lX11 $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
21331 cat >conftest.$ac_ext <<_ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h. */
21338 /* Override any gcc2 internal prototype to avoid an error. */
21342 /* We use char because int might match the return type of a gcc2
21343 builtin and then its argument prototype would still apply. */
21344 char XkbSelectEvents ();
21348 XkbSelectEvents ();
21353 rm -f conftest.$ac_objext conftest$ac_exeext
21354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21355 (eval $ac_link) 2>conftest.er1
21357 grep -v '^ *+' conftest.er1 >conftest.err
21359 cat conftest.err >&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); } &&
21362 { ac_try='test -z "$ac_c_werror_flag"
21363 || test ! -s conftest.err'
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365 (eval $ac_try) 2>&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; } &&
21369 { ac_try='test -s conftest$ac_exeext'
21370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21371 (eval $ac_try) 2>&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); }; }; then
21375 ac_cv_lib_X11_XkbSelectEvents=yes
21377 echo "$as_me: failed program was:" >&5
21378 sed 's/^/| /' conftest.$ac_ext >&5
21380 ac_cv_lib_X11_XkbSelectEvents=no
21382 rm -f conftest.err conftest.$ac_objext \
21383 conftest$ac_exeext conftest.$ac_ext
21384 LIBS=$ac_check_lib_save_LIBS
21386 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbSelectEvents" >&5
21387 echo "${ECHO_T}$ac_cv_lib_X11_XkbSelectEvents" >&6
21388 if test $ac_cv_lib_X11_XkbSelectEvents = yes; then
21389 cat >>confdefs.h <<\_ACEOF
21390 #define HAVE_XKEYBOARD 1
21398 if test "x$with_xinerama" != "xno"; then
21399 echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
21400 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6
21401 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
21402 echo $ECHO_N "(cached) $ECHO_C" >&6
21404 ac_check_lib_save_LIBS=$LIBS
21405 LIBS="-lXinerama $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
21406 cat >conftest.$ac_ext <<_ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h. */
21413 /* Override any gcc2 internal prototype to avoid an error. */
21417 /* We use char because int might match the return type of a gcc2
21418 builtin and then its argument prototype would still apply. */
21419 char XineramaQueryScreens ();
21423 XineramaQueryScreens ();
21428 rm -f conftest.$ac_objext conftest$ac_exeext
21429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21430 (eval $ac_link) 2>conftest.er1
21432 grep -v '^ *+' conftest.er1 >conftest.err
21434 cat conftest.err >&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } &&
21437 { ac_try='test -z "$ac_c_werror_flag"
21438 || test ! -s conftest.err'
21439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21440 (eval $ac_try) 2>&5
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); }; } &&
21444 { ac_try='test -s conftest$ac_exeext'
21445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446 (eval $ac_try) 2>&5
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; }; then
21450 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
21452 echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21455 ac_cv_lib_Xinerama_XineramaQueryScreens=no
21457 rm -f conftest.err conftest.$ac_objext \
21458 conftest$ac_exeext conftest.$ac_ext
21459 LIBS=$ac_check_lib_save_LIBS
21461 echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
21462 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6
21463 if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
21464 X_PRELIBS="$X_PRELIBS -lXinerama"
21465 cat >>confdefs.h <<\_ACEOF
21466 #define HAVE_LIBXINERAMA 1
21473 if test "x$with_xrandr" != "xno"; then
21474 echo "$as_me:$LINENO: checking for XRRSelectInput in -lXrandr" >&5
21475 echo $ECHO_N "checking for XRRSelectInput in -lXrandr... $ECHO_C" >&6
21476 if test "${ac_cv_lib_Xrandr_XRRSelectInput+set}" = set; then
21477 echo $ECHO_N "(cached) $ECHO_C" >&6
21479 ac_check_lib_save_LIBS=$LIBS
21480 LIBS="-lXrandr $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
21481 cat >conftest.$ac_ext <<_ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h. */
21488 /* Override any gcc2 internal prototype to avoid an error. */
21492 /* We use char because int might match the return type of a gcc2
21493 builtin and then its argument prototype would still apply. */
21494 char XRRSelectInput ();
21503 rm -f conftest.$ac_objext conftest$ac_exeext
21504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21505 (eval $ac_link) 2>conftest.er1
21507 grep -v '^ *+' conftest.er1 >conftest.err
21509 cat conftest.err >&5
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); } &&
21512 { ac_try='test -z "$ac_c_werror_flag"
21513 || test ! -s conftest.err'
21514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21515 (eval $ac_try) 2>&5
21517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); }; } &&
21519 { ac_try='test -s conftest$ac_exeext'
21520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21521 (eval $ac_try) 2>&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; }; then
21525 ac_cv_lib_Xrandr_XRRSelectInput=yes
21527 echo "$as_me: failed program was:" >&5
21528 sed 's/^/| /' conftest.$ac_ext >&5
21530 ac_cv_lib_Xrandr_XRRSelectInput=no
21532 rm -f conftest.err conftest.$ac_objext \
21533 conftest$ac_exeext conftest.$ac_ext
21534 LIBS=$ac_check_lib_save_LIBS
21536 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRSelectInput" >&5
21537 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRSelectInput" >&6
21538 if test $ac_cv_lib_Xrandr_XRRSelectInput = yes; then
21539 X_PRELIBS="$X_PRELIBS -lXrandr"
21540 cat >>confdefs.h <<\_ACEOF
21541 #define HAVE_LIBXRANDR 1
21543 HAVE_LIBXRANDR="true"
21548 if test "x$with_xfixes" != "xno"; then
21549 echo "$as_me:$LINENO: checking for XFixesGetCursorImage in -lXfixes" >&5
21550 echo $ECHO_N "checking for XFixesGetCursorImage in -lXfixes... $ECHO_C" >&6
21551 if test "${ac_cv_lib_Xfixes_XFixesGetCursorImage+set}" = set; then
21552 echo $ECHO_N "(cached) $ECHO_C" >&6
21554 ac_check_lib_save_LIBS=$LIBS
21555 LIBS="-lXfixes $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
21556 cat >conftest.$ac_ext <<_ACEOF
21559 cat confdefs.h >>conftest.$ac_ext
21560 cat >>conftest.$ac_ext <<_ACEOF
21561 /* end confdefs.h. */
21563 /* Override any gcc2 internal prototype to avoid an error. */
21567 /* We use char because int might match the return type of a gcc2
21568 builtin and then its argument prototype would still apply. */
21569 char XFixesGetCursorImage ();
21573 XFixesGetCursorImage ();
21578 rm -f conftest.$ac_objext conftest$ac_exeext
21579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21580 (eval $ac_link) 2>conftest.er1
21582 grep -v '^ *+' conftest.er1 >conftest.err
21584 cat conftest.err >&5
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); } &&
21587 { ac_try='test -z "$ac_c_werror_flag"
21588 || test ! -s conftest.err'
21589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590 (eval $ac_try) 2>&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); }; } &&
21594 { ac_try='test -s conftest$ac_exeext'
21595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21596 (eval $ac_try) 2>&5
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); }; }; then
21600 ac_cv_lib_Xfixes_XFixesGetCursorImage=yes
21602 echo "$as_me: failed program was:" >&5
21603 sed 's/^/| /' conftest.$ac_ext >&5
21605 ac_cv_lib_Xfixes_XFixesGetCursorImage=no
21607 rm -f conftest.err conftest.$ac_objext \
21608 conftest$ac_exeext conftest.$ac_ext
21609 LIBS=$ac_check_lib_save_LIBS
21611 echo "$as_me:$LINENO: result: $ac_cv_lib_Xfixes_XFixesGetCursorImage" >&5
21612 echo "${ECHO_T}$ac_cv_lib_Xfixes_XFixesGetCursorImage" >&6
21613 if test $ac_cv_lib_Xfixes_XFixesGetCursorImage = yes; then
21614 X_PRELIBS="$X_PRELIBS -lXfixes"
21615 cat >>confdefs.h <<\_ACEOF
21616 #define HAVE_LIBXFIXES 1
21618 HAVE_LIBXFIXES="true"
21623 if test "x$with_xdamage" != "xno"; then
21624 echo "$as_me:$LINENO: checking for XDamageQueryExtension in -lXdamage" >&5
21625 echo $ECHO_N "checking for XDamageQueryExtension in -lXdamage... $ECHO_C" >&6
21626 if test "${ac_cv_lib_Xdamage_XDamageQueryExtension+set}" = set; then
21627 echo $ECHO_N "(cached) $ECHO_C" >&6
21629 ac_check_lib_save_LIBS=$LIBS
21630 LIBS="-lXdamage $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
21631 cat >conftest.$ac_ext <<_ACEOF
21634 cat confdefs.h >>conftest.$ac_ext
21635 cat >>conftest.$ac_ext <<_ACEOF
21636 /* end confdefs.h. */
21638 /* Override any gcc2 internal prototype to avoid an error. */
21642 /* We use char because int might match the return type of a gcc2
21643 builtin and then its argument prototype would still apply. */
21644 char XDamageQueryExtension ();
21648 XDamageQueryExtension ();
21653 rm -f conftest.$ac_objext conftest$ac_exeext
21654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21655 (eval $ac_link) 2>conftest.er1
21657 grep -v '^ *+' conftest.er1 >conftest.err
21659 cat conftest.err >&5
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); } &&
21662 { ac_try='test -z "$ac_c_werror_flag"
21663 || test ! -s conftest.err'
21664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21665 (eval $ac_try) 2>&5
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); }; } &&
21669 { ac_try='test -s conftest$ac_exeext'
21670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21671 (eval $ac_try) 2>&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); }; }; then
21675 ac_cv_lib_Xdamage_XDamageQueryExtension=yes
21677 echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21680 ac_cv_lib_Xdamage_XDamageQueryExtension=no
21682 rm -f conftest.err conftest.$ac_objext \
21683 conftest$ac_exeext conftest.$ac_ext
21684 LIBS=$ac_check_lib_save_LIBS
21686 echo "$as_me:$LINENO: result: $ac_cv_lib_Xdamage_XDamageQueryExtension" >&5
21687 echo "${ECHO_T}$ac_cv_lib_Xdamage_XDamageQueryExtension" >&6
21688 if test $ac_cv_lib_Xdamage_XDamageQueryExtension = yes; then
21689 X_PRELIBS="$X_PRELIBS -lXdamage"
21690 cat >>confdefs.h <<\_ACEOF
21691 #define HAVE_LIBXDAMAGE 1
21693 HAVE_LIBXDAMAGE="true"
21698 if test ! -z "$HAVE_LIBXFIXES" -o ! -z "$HAVE_LIBXDAMAGE"; then
21699 # need /usr/sfw/lib in RPATH for Solaris 10 and later
21700 case `(uname -sr) 2>/dev/null` in
21701 "SunOS 5"*) X_EXTRA_LIBS="$X_EXTRA_LIBS -R/usr/sfw/lib" ;;
21704 if test ! -z "$HAVE_LIBXRANDR"; then
21705 # also need /usr/X11/include for Solaris 10 10/08 and later
21706 case `(uname -sr) 2>/dev/null` in
21707 "SunOS 5"*) CPPFLAGS="$CPPFLAGS -I/usr/X11/include" ;;
21711 X_LIBS="$X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS"
21719 if test $HAVE_X != "false"; then
21729 if test "$build_x11vnc" = "yes"; then
21731 if test "x$HAVE_X" = "xfalse" -a "x$with_x" != "xno"; then
21732 { { echo "$as_me:$LINENO: error:
21733 ==========================================================================
21734 *** A working X window system build environment is required to build ***
21735 x11vnc. Make sure any required X development packages are installed.
21736 If they are installed in non-standard locations, one can use the
21737 --x-includes=DIR and --x-libraries=DIR configure options or set the
21738 CPPFLAGS and LDFLAGS environment variables to indicate where the X
21739 window system header files and libraries may be found. On 64+32 bit
21740 machines you may need to point to lib64 or lib32 directories to pick up
21741 the correct word size.
21743 If you want to build x11vnc without X support (e.g. for -rawfb use only
21744 or for native Mac OS X), specify the --without-x configure option.
21745 ==========================================================================
21747 echo "$as_me: error:
21748 ==========================================================================
21749 *** A working X window system build environment is required to build ***
21750 x11vnc. Make sure any required X development packages are installed.
21751 If they are installed in non-standard locations, one can use the
21752 --x-includes=DIR and --x-libraries=DIR configure options or set the
21753 CPPFLAGS and LDFLAGS environment variables to indicate where the X
21754 window system header files and libraries may be found. On 64+32 bit
21755 machines you may need to point to lib64 or lib32 directories to pick up
21756 the correct word size.
21758 If you want to build x11vnc without X support (e.g. for -rawfb use only
21759 or for native Mac OS X), specify the --without-x configure option.
21760 ==========================================================================
21762 { (exit 1); exit 1; }; }
21765 if test "x$HAVE_X" = "xtrue" -a "x$HAVE_XTEST" != "xtrue"; then
21766 { echo "$as_me:$LINENO: WARNING:
21767 ==========================================================================
21768 *** A working build environment for the XTEST extension was not found ***
21769 (libXtst). An x11vnc built this way will be *ONLY BARELY USABLE*.
21770 You will be able to move the mouse but not click or type. There can
21771 also be deadlocks if an application grabs the X server.
21773 It is recommended that you install the necessary development packages
21774 for XTEST (perhaps it is named something like libxtst-dev) and run
21776 ==========================================================================
21778 echo "$as_me: WARNING:
21779 ==========================================================================
21780 *** A working build environment for the XTEST extension was not found ***
21781 (libXtst). An x11vnc built this way will be *ONLY BARELY USABLE*.
21782 You will be able to move the mouse but not click or type. There can
21783 also be deadlocks if an application grabs the X server.
21785 It is recommended that you install the necessary development packages
21786 for XTEST (perhaps it is named something like libxtst-dev) and run
21788 ==========================================================================
21793 # set some ld -R nonsense
21795 uname_s=`(uname -s) 2>/dev/null`
21797 if test "x$uname_s" = "xHP-UX"; then
21799 elif test "x$uname_s" = "xOSF1"; then
21801 elif test "x$uname_s" = "xDarwin"; then
21809 # Check whether --with-crypt or --without-crypt was given.
21810 if test "${with_crypt+set}" = set; then
21811 withval="$with_crypt"
21814 if test "x$with_crypt" != "xno"; then
21816 for ac_func in crypt
21818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21819 echo "$as_me:$LINENO: checking for $ac_func" >&5
21820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21821 if eval "test \"\${$as_ac_var+set}\" = set"; then
21822 echo $ECHO_N "(cached) $ECHO_C" >&6
21824 cat >conftest.$ac_ext <<_ACEOF
21827 cat confdefs.h >>conftest.$ac_ext
21828 cat >>conftest.$ac_ext <<_ACEOF
21829 /* end confdefs.h. */
21830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21832 #define $ac_func innocuous_$ac_func
21834 /* System header to define __stub macros and hopefully few prototypes,
21835 which can conflict with char $ac_func (); below.
21836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21837 <limits.h> exists even on freestanding compilers. */
21840 # include <limits.h>
21842 # include <assert.h>
21847 /* Override any gcc2 internal prototype to avoid an error. */
21852 /* We use char because int might match the return type of a gcc2
21853 builtin and then its argument prototype would still apply. */
21855 /* The GNU C library defines this for functions which it implements
21856 to always fail with ENOSYS. Some functions are actually named
21857 something starting with __ and the normal name is an alias. */
21858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21861 char (*f) () = $ac_func;
21870 return f != $ac_func;
21875 rm -f conftest.$ac_objext conftest$ac_exeext
21876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21877 (eval $ac_link) 2>conftest.er1
21879 grep -v '^ *+' conftest.er1 >conftest.err
21881 cat conftest.err >&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); } &&
21884 { ac_try='test -z "$ac_c_werror_flag"
21885 || test ! -s conftest.err'
21886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21887 (eval $ac_try) 2>&5
21889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890 (exit $ac_status); }; } &&
21891 { ac_try='test -s conftest$ac_exeext'
21892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21893 (eval $ac_try) 2>&5
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); }; }; then
21897 eval "$as_ac_var=yes"
21899 echo "$as_me: failed program was:" >&5
21900 sed 's/^/| /' conftest.$ac_ext >&5
21902 eval "$as_ac_var=no"
21904 rm -f conftest.err conftest.$ac_objext \
21905 conftest$ac_exeext conftest.$ac_ext
21907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21909 if test `eval echo '${'$as_ac_var'}'` = yes; then
21910 cat >>confdefs.h <<_ACEOF
21911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21913 HAVE_LIBC_CRYPT="true"
21917 if test -z "$HAVE_LIBC_CRYPT"; then
21918 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21919 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
21920 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21921 echo $ECHO_N "(cached) $ECHO_C" >&6
21923 ac_check_lib_save_LIBS=$LIBS
21924 LIBS="-lcrypt $LIBS"
21925 cat >conftest.$ac_ext <<_ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h. */
21932 /* Override any gcc2 internal prototype to avoid an error. */
21936 /* We use char because int might match the return type of a gcc2
21937 builtin and then its argument prototype would still apply. */
21947 rm -f conftest.$ac_objext conftest$ac_exeext
21948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21949 (eval $ac_link) 2>conftest.er1
21951 grep -v '^ *+' conftest.er1 >conftest.err
21953 cat conftest.err >&5
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); } &&
21956 { ac_try='test -z "$ac_c_werror_flag"
21957 || test ! -s conftest.err'
21958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21959 (eval $ac_try) 2>&5
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); }; } &&
21963 { ac_try='test -s conftest$ac_exeext'
21964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21965 (eval $ac_try) 2>&5
21967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); }; }; then
21969 ac_cv_lib_crypt_crypt=yes
21971 echo "$as_me: failed program was:" >&5
21972 sed 's/^/| /' conftest.$ac_ext >&5
21974 ac_cv_lib_crypt_crypt=no
21976 rm -f conftest.err conftest.$ac_objext \
21977 conftest$ac_exeext conftest.$ac_ext
21978 LIBS=$ac_check_lib_save_LIBS
21980 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21981 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
21982 if test $ac_cv_lib_crypt_crypt = yes; then
21983 CRYPT_LIBS="-lcrypt"
21984 cat >>confdefs.h <<\_ACEOF
21985 #define HAVE_LIBCRYPT 1
21994 # some OS's need both -lssl and -lcrypto on link line:
21998 # Check whether --with-crypto or --without-crypto was given.
21999 if test "${with_crypto+set}" = set; then
22000 withval="$with_crypto"
22007 # Check whether --with-ssl or --without-ssl was given.
22008 if test "${with_ssl+set}" = set; then
22009 withval="$with_ssl"
22013 if test "x$with_crypto" != "xno" -a "x$with_ssl" != "xno"; then
22014 if test ! -z "$with_ssl" -a "x$with_ssl" != "xyes"; then
22015 saved_CPPFLAGS="$CPPFLAGS"
22016 saved_LDFLAGS="$LDFLAGS"
22017 CPPFLAGS="$CPPFLAGS -I$with_ssl/include"
22018 LDFLAGS="$LDFLAGS -L$with_ssl/lib"
22019 if test "x$ld_minus_R" = "xno"; then
22021 elif test "x$GCC" = "xyes"; then
22022 LDFLAGS="$LDFLAGS -Xlinker -R$with_ssl/lib"
22024 LDFLAGS="$LDFLAGS -R$with_ssl/lib"
22027 echo "$as_me:$LINENO: checking for RAND_file_name in -lcrypto" >&5
22028 echo $ECHO_N "checking for RAND_file_name in -lcrypto... $ECHO_C" >&6
22029 if test "${ac_cv_lib_crypto_RAND_file_name+set}" = set; then
22030 echo $ECHO_N "(cached) $ECHO_C" >&6
22032 ac_check_lib_save_LIBS=$LIBS
22033 LIBS="-lcrypto $LIBS"
22034 cat >conftest.$ac_ext <<_ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h. */
22041 /* Override any gcc2 internal prototype to avoid an error. */
22045 /* We use char because int might match the return type of a gcc2
22046 builtin and then its argument prototype would still apply. */
22047 char RAND_file_name ();
22056 rm -f conftest.$ac_objext conftest$ac_exeext
22057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22058 (eval $ac_link) 2>conftest.er1
22060 grep -v '^ *+' conftest.er1 >conftest.err
22062 cat conftest.err >&5
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); } &&
22065 { ac_try='test -z "$ac_c_werror_flag"
22066 || test ! -s conftest.err'
22067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22068 (eval $ac_try) 2>&5
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); }; } &&
22072 { ac_try='test -s conftest$ac_exeext'
22073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22074 (eval $ac_try) 2>&5
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); }; }; then
22078 ac_cv_lib_crypto_RAND_file_name=yes
22080 echo "$as_me: failed program was:" >&5
22081 sed 's/^/| /' conftest.$ac_ext >&5
22083 ac_cv_lib_crypto_RAND_file_name=no
22085 rm -f conftest.err conftest.$ac_objext \
22086 conftest$ac_exeext conftest.$ac_ext
22087 LIBS=$ac_check_lib_save_LIBS
22089 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RAND_file_name" >&5
22090 echo "${ECHO_T}$ac_cv_lib_crypto_RAND_file_name" >&6
22091 if test $ac_cv_lib_crypto_RAND_file_name = yes; then
22092 cat >>confdefs.h <<\_ACEOF
22093 #define HAVE_LIBCRYPTO 1
22095 HAVE_LIBCRYPTO="true"
22098 if test ! -z "$with_ssl" -a "x$with_ssl" != "xyes"; then
22099 if test "x$HAVE_LIBCRYPTO" != "xtrue"; then
22100 CPPFLAGS="$saved_CPPFLAGS"
22101 LDFLAGS="$saved_LDFLAGS"
22108 if test "x$with_ssl" != "xno"; then
22109 if test "x$HAVE_LIBCRYPTO" = "xtrue"; then
22110 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
22111 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
22112 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
22113 echo $ECHO_N "(cached) $ECHO_C" >&6
22115 ac_check_lib_save_LIBS=$LIBS
22116 LIBS="-lssl -lcrypto $LIBS"
22117 cat >conftest.$ac_ext <<_ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h. */
22124 /* Override any gcc2 internal prototype to avoid an error. */
22128 /* We use char because int might match the return type of a gcc2
22129 builtin and then its argument prototype would still apply. */
22130 char SSL_library_init ();
22134 SSL_library_init ();
22139 rm -f conftest.$ac_objext conftest$ac_exeext
22140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22141 (eval $ac_link) 2>conftest.er1
22143 grep -v '^ *+' conftest.er1 >conftest.err
22145 cat conftest.err >&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); } &&
22148 { ac_try='test -z "$ac_c_werror_flag"
22149 || test ! -s conftest.err'
22150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22151 (eval $ac_try) 2>&5
22153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154 (exit $ac_status); }; } &&
22155 { ac_try='test -s conftest$ac_exeext'
22156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22157 (eval $ac_try) 2>&5
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); }; }; then
22161 ac_cv_lib_ssl_SSL_library_init=yes
22163 echo "$as_me: failed program was:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22166 ac_cv_lib_ssl_SSL_library_init=no
22168 rm -f conftest.err conftest.$ac_objext \
22169 conftest$ac_exeext conftest.$ac_ext
22170 LIBS=$ac_check_lib_save_LIBS
22172 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
22173 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
22174 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
22175 SSL_LIBS="-lssl -lcrypto"
22176 cat >>confdefs.h <<\_ACEOF
22177 #define HAVE_LIBSSL 1
22183 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
22184 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
22185 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
22186 echo $ECHO_N "(cached) $ECHO_C" >&6
22188 ac_check_lib_save_LIBS=$LIBS
22190 cat >conftest.$ac_ext <<_ACEOF
22193 cat confdefs.h >>conftest.$ac_ext
22194 cat >>conftest.$ac_ext <<_ACEOF
22195 /* end confdefs.h. */
22197 /* Override any gcc2 internal prototype to avoid an error. */
22201 /* We use char because int might match the return type of a gcc2
22202 builtin and then its argument prototype would still apply. */
22203 char SSL_library_init ();
22207 SSL_library_init ();
22212 rm -f conftest.$ac_objext conftest$ac_exeext
22213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22214 (eval $ac_link) 2>conftest.er1
22216 grep -v '^ *+' conftest.er1 >conftest.err
22218 cat conftest.err >&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } &&
22221 { ac_try='test -z "$ac_c_werror_flag"
22222 || test ! -s conftest.err'
22223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22224 (eval $ac_try) 2>&5
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); }; } &&
22228 { ac_try='test -s conftest$ac_exeext'
22229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22230 (eval $ac_try) 2>&5
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); }; }; then
22234 ac_cv_lib_ssl_SSL_library_init=yes
22236 echo "$as_me: failed program was:" >&5
22237 sed 's/^/| /' conftest.$ac_ext >&5
22239 ac_cv_lib_ssl_SSL_library_init=no
22241 rm -f conftest.err conftest.$ac_objext \
22242 conftest$ac_exeext conftest.$ac_ext
22243 LIBS=$ac_check_lib_save_LIBS
22245 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
22246 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
22247 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
22249 cat >>confdefs.h <<\_ACEOF
22250 #define HAVE_LIBSSL 1
22259 if test "x$HAVE_LIBSSL" != "xtrue" -a "x$with_ssl" != "xno"; then
22260 { echo "$as_me:$LINENO: WARNING:
22261 ==========================================================================
22262 *** The openssl encryption library libssl.so was not found. ***
22263 An x11vnc built this way will not support SSL encryption. To enable
22264 SSL install the necessary development packages (perhaps it is named
22265 something like libssl-dev) and run configure again.
22266 ==========================================================================
22268 echo "$as_me: WARNING:
22269 ==========================================================================
22270 *** The openssl encryption library libssl.so was not found. ***
22271 An x11vnc built this way will not support SSL encryption. To enable
22272 SSL install the necessary development packages (perhaps it is named
22273 something like libssl-dev) and run configure again.
22274 ==========================================================================
22277 elif test "x$with_ssl" != "xno"; then
22278 echo "$as_me:$LINENO: checking for X509_print_ex_fp in -lssl" >&5
22279 echo $ECHO_N "checking for X509_print_ex_fp in -lssl... $ECHO_C" >&6
22280 if test "${ac_cv_lib_ssl_X509_print_ex_fp+set}" = set; then
22281 echo $ECHO_N "(cached) $ECHO_C" >&6
22283 ac_check_lib_save_LIBS=$LIBS
22284 LIBS="-lssl $SSL_LIBS
22286 cat >conftest.$ac_ext <<_ACEOF
22289 cat confdefs.h >>conftest.$ac_ext
22290 cat >>conftest.$ac_ext <<_ACEOF
22291 /* end confdefs.h. */
22293 /* Override any gcc2 internal prototype to avoid an error. */
22297 /* We use char because int might match the return type of a gcc2
22298 builtin and then its argument prototype would still apply. */
22299 char X509_print_ex_fp ();
22303 X509_print_ex_fp ();
22308 rm -f conftest.$ac_objext conftest$ac_exeext
22309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22310 (eval $ac_link) 2>conftest.er1
22312 grep -v '^ *+' conftest.er1 >conftest.err
22314 cat conftest.err >&5
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); } &&
22317 { ac_try='test -z "$ac_c_werror_flag"
22318 || test ! -s conftest.err'
22319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22320 (eval $ac_try) 2>&5
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); }; } &&
22324 { ac_try='test -s conftest$ac_exeext'
22325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22326 (eval $ac_try) 2>&5
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); }; }; then
22330 ac_cv_lib_ssl_X509_print_ex_fp=yes
22332 echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22335 ac_cv_lib_ssl_X509_print_ex_fp=no
22337 rm -f conftest.err conftest.$ac_objext \
22338 conftest$ac_exeext conftest.$ac_ext
22339 LIBS=$ac_check_lib_save_LIBS
22341 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_X509_print_ex_fp" >&5
22342 echo "${ECHO_T}$ac_cv_lib_ssl_X509_print_ex_fp" >&6
22343 if test $ac_cv_lib_ssl_X509_print_ex_fp = yes; then
22344 cat >>confdefs.h <<\_ACEOF
22345 #define HAVE_X509_PRINT_EX_FP 1
22347 HAVE_X509_PRINT_EX_FP="true"
22352 if test "x$with_v4l" != "xno"; then
22353 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
22354 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
22355 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
22356 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
22357 echo $ECHO_N "(cached) $ECHO_C" >&6
22359 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
22360 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
22362 # Is the header compilable?
22363 echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
22364 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6
22365 cat >conftest.$ac_ext <<_ACEOF
22368 cat confdefs.h >>conftest.$ac_ext
22369 cat >>conftest.$ac_ext <<_ACEOF
22370 /* end confdefs.h. */
22371 $ac_includes_default
22372 #include <linux/videodev.h>
22374 rm -f conftest.$ac_objext
22375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22376 (eval $ac_compile) 2>conftest.er1
22378 grep -v '^ *+' conftest.er1 >conftest.err
22380 cat conftest.err >&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); } &&
22383 { ac_try='test -z "$ac_c_werror_flag"
22384 || test ! -s conftest.err'
22385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386 (eval $ac_try) 2>&5
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); }; } &&
22390 { ac_try='test -s conftest.$ac_objext'
22391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392 (eval $ac_try) 2>&5
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); }; }; then
22396 ac_header_compiler=yes
22398 echo "$as_me: failed program was:" >&5
22399 sed 's/^/| /' conftest.$ac_ext >&5
22401 ac_header_compiler=no
22403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22405 echo "${ECHO_T}$ac_header_compiler" >&6
22407 # Is the header present?
22408 echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
22409 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6
22410 cat >conftest.$ac_ext <<_ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h. */
22416 #include <linux/videodev.h>
22418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22421 grep -v '^ *+' conftest.er1 >conftest.err
22423 cat conftest.err >&5
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); } >/dev/null; then
22426 if test -s conftest.err; then
22427 ac_cpp_err=$ac_c_preproc_warn_flag
22428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22435 if test -z "$ac_cpp_err"; then
22436 ac_header_preproc=yes
22438 echo "$as_me: failed program was:" >&5
22439 sed 's/^/| /' conftest.$ac_ext >&5
22441 ac_header_preproc=no
22443 rm -f conftest.err conftest.$ac_ext
22444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22445 echo "${ECHO_T}$ac_header_preproc" >&6
22447 # So? What about this header?
22448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22450 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
22451 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22452 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the compiler's result" >&5
22453 echo "$as_me: WARNING: linux/videodev.h: proceeding with the compiler's result" >&2;}
22454 ac_header_preproc=yes
22457 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
22458 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
22459 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
22460 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
22461 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: see the Autoconf documentation" >&5
22462 echo "$as_me: WARNING: linux/videodev.h: see the Autoconf documentation" >&2;}
22463 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&5
22464 echo "$as_me: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&2;}
22465 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
22466 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
22467 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&5
22468 echo "$as_me: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&2;}
22471 ## ----------------------------------------------------------- ##
22472 ## Report this to http://sourceforge.net/projects/libvncserver ##
22473 ## ----------------------------------------------------------- ##
22476 sed "s/^/$as_me: WARNING: /" >&2
22479 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
22480 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
22481 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
22482 echo $ECHO_N "(cached) $ECHO_C" >&6
22484 ac_cv_header_linux_videodev_h=$ac_header_preproc
22486 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
22487 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
22490 if test $ac_cv_header_linux_videodev_h = yes; then
22491 cat >>confdefs.h <<\_ACEOF
22492 #define HAVE_LINUX_VIDEODEV_H 1
22499 if test "x$with_fbdev" != "xno"; then
22500 if test "${ac_cv_header_linux_fb_h+set}" = set; then
22501 echo "$as_me:$LINENO: checking for linux/fb.h" >&5
22502 echo $ECHO_N "checking for linux/fb.h... $ECHO_C" >&6
22503 if test "${ac_cv_header_linux_fb_h+set}" = set; then
22504 echo $ECHO_N "(cached) $ECHO_C" >&6
22506 echo "$as_me:$LINENO: result: $ac_cv_header_linux_fb_h" >&5
22507 echo "${ECHO_T}$ac_cv_header_linux_fb_h" >&6
22509 # Is the header compilable?
22510 echo "$as_me:$LINENO: checking linux/fb.h usability" >&5
22511 echo $ECHO_N "checking linux/fb.h usability... $ECHO_C" >&6
22512 cat >conftest.$ac_ext <<_ACEOF
22515 cat confdefs.h >>conftest.$ac_ext
22516 cat >>conftest.$ac_ext <<_ACEOF
22517 /* end confdefs.h. */
22518 $ac_includes_default
22519 #include <linux/fb.h>
22521 rm -f conftest.$ac_objext
22522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22523 (eval $ac_compile) 2>conftest.er1
22525 grep -v '^ *+' conftest.er1 >conftest.err
22527 cat conftest.err >&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); } &&
22530 { ac_try='test -z "$ac_c_werror_flag"
22531 || test ! -s conftest.err'
22532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22533 (eval $ac_try) 2>&5
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); }; } &&
22537 { ac_try='test -s conftest.$ac_objext'
22538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22539 (eval $ac_try) 2>&5
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); }; }; then
22543 ac_header_compiler=yes
22545 echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22548 ac_header_compiler=no
22550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22552 echo "${ECHO_T}$ac_header_compiler" >&6
22554 # Is the header present?
22555 echo "$as_me:$LINENO: checking linux/fb.h presence" >&5
22556 echo $ECHO_N "checking linux/fb.h presence... $ECHO_C" >&6
22557 cat >conftest.$ac_ext <<_ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h. */
22563 #include <linux/fb.h>
22565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22568 grep -v '^ *+' conftest.er1 >conftest.err
22570 cat conftest.err >&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); } >/dev/null; then
22573 if test -s conftest.err; then
22574 ac_cpp_err=$ac_c_preproc_warn_flag
22575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22582 if test -z "$ac_cpp_err"; then
22583 ac_header_preproc=yes
22585 echo "$as_me: failed program was:" >&5
22586 sed 's/^/| /' conftest.$ac_ext >&5
22588 ac_header_preproc=no
22590 rm -f conftest.err conftest.$ac_ext
22591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22592 echo "${ECHO_T}$ac_header_preproc" >&6
22594 # So? What about this header?
22595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22597 { echo "$as_me:$LINENO: WARNING: linux/fb.h: accepted by the compiler, rejected by the preprocessor!" >&5
22598 echo "$as_me: WARNING: linux/fb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22599 { echo "$as_me:$LINENO: WARNING: linux/fb.h: proceeding with the compiler's result" >&5
22600 echo "$as_me: WARNING: linux/fb.h: proceeding with the compiler's result" >&2;}
22601 ac_header_preproc=yes
22604 { echo "$as_me:$LINENO: WARNING: linux/fb.h: present but cannot be compiled" >&5
22605 echo "$as_me: WARNING: linux/fb.h: present but cannot be compiled" >&2;}
22606 { echo "$as_me:$LINENO: WARNING: linux/fb.h: check for missing prerequisite headers?" >&5
22607 echo "$as_me: WARNING: linux/fb.h: check for missing prerequisite headers?" >&2;}
22608 { echo "$as_me:$LINENO: WARNING: linux/fb.h: see the Autoconf documentation" >&5
22609 echo "$as_me: WARNING: linux/fb.h: see the Autoconf documentation" >&2;}
22610 { echo "$as_me:$LINENO: WARNING: linux/fb.h: section \"Present But Cannot Be Compiled\"" >&5
22611 echo "$as_me: WARNING: linux/fb.h: section \"Present But Cannot Be Compiled\"" >&2;}
22612 { echo "$as_me:$LINENO: WARNING: linux/fb.h: proceeding with the preprocessor's result" >&5
22613 echo "$as_me: WARNING: linux/fb.h: proceeding with the preprocessor's result" >&2;}
22614 { echo "$as_me:$LINENO: WARNING: linux/fb.h: in the future, the compiler will take precedence" >&5
22615 echo "$as_me: WARNING: linux/fb.h: in the future, the compiler will take precedence" >&2;}
22618 ## ----------------------------------------------------------- ##
22619 ## Report this to http://sourceforge.net/projects/libvncserver ##
22620 ## ----------------------------------------------------------- ##
22623 sed "s/^/$as_me: WARNING: /" >&2
22626 echo "$as_me:$LINENO: checking for linux/fb.h" >&5
22627 echo $ECHO_N "checking for linux/fb.h... $ECHO_C" >&6
22628 if test "${ac_cv_header_linux_fb_h+set}" = set; then
22629 echo $ECHO_N "(cached) $ECHO_C" >&6
22631 ac_cv_header_linux_fb_h=$ac_header_preproc
22633 echo "$as_me:$LINENO: result: $ac_cv_header_linux_fb_h" >&5
22634 echo "${ECHO_T}$ac_cv_header_linux_fb_h" >&6
22637 if test $ac_cv_header_linux_fb_h = yes; then
22638 cat >>confdefs.h <<\_ACEOF
22639 #define HAVE_LINUX_FB_H 1
22646 if test "x$with_uinput" != "xno"; then
22647 if test "${ac_cv_header_linux_input_h+set}" = set; then
22648 echo "$as_me:$LINENO: checking for linux/input.h" >&5
22649 echo $ECHO_N "checking for linux/input.h... $ECHO_C" >&6
22650 if test "${ac_cv_header_linux_input_h+set}" = set; then
22651 echo $ECHO_N "(cached) $ECHO_C" >&6
22653 echo "$as_me:$LINENO: result: $ac_cv_header_linux_input_h" >&5
22654 echo "${ECHO_T}$ac_cv_header_linux_input_h" >&6
22656 # Is the header compilable?
22657 echo "$as_me:$LINENO: checking linux/input.h usability" >&5
22658 echo $ECHO_N "checking linux/input.h usability... $ECHO_C" >&6
22659 cat >conftest.$ac_ext <<_ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h. */
22665 $ac_includes_default
22666 #include <linux/input.h>
22668 rm -f conftest.$ac_objext
22669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22670 (eval $ac_compile) 2>conftest.er1
22672 grep -v '^ *+' conftest.er1 >conftest.err
22674 cat conftest.err >&5
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); } &&
22677 { ac_try='test -z "$ac_c_werror_flag"
22678 || test ! -s conftest.err'
22679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680 (eval $ac_try) 2>&5
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); }; } &&
22684 { ac_try='test -s conftest.$ac_objext'
22685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22686 (eval $ac_try) 2>&5
22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689 (exit $ac_status); }; }; then
22690 ac_header_compiler=yes
22692 echo "$as_me: failed program was:" >&5
22693 sed 's/^/| /' conftest.$ac_ext >&5
22695 ac_header_compiler=no
22697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22699 echo "${ECHO_T}$ac_header_compiler" >&6
22701 # Is the header present?
22702 echo "$as_me:$LINENO: checking linux/input.h presence" >&5
22703 echo $ECHO_N "checking linux/input.h presence... $ECHO_C" >&6
22704 cat >conftest.$ac_ext <<_ACEOF
22707 cat confdefs.h >>conftest.$ac_ext
22708 cat >>conftest.$ac_ext <<_ACEOF
22709 /* end confdefs.h. */
22710 #include <linux/input.h>
22712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22715 grep -v '^ *+' conftest.er1 >conftest.err
22717 cat conftest.err >&5
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); } >/dev/null; then
22720 if test -s conftest.err; then
22721 ac_cpp_err=$ac_c_preproc_warn_flag
22722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22729 if test -z "$ac_cpp_err"; then
22730 ac_header_preproc=yes
22732 echo "$as_me: failed program was:" >&5
22733 sed 's/^/| /' conftest.$ac_ext >&5
22735 ac_header_preproc=no
22737 rm -f conftest.err conftest.$ac_ext
22738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22739 echo "${ECHO_T}$ac_header_preproc" >&6
22741 # So? What about this header?
22742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22744 { echo "$as_me:$LINENO: WARNING: linux/input.h: accepted by the compiler, rejected by the preprocessor!" >&5
22745 echo "$as_me: WARNING: linux/input.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22746 { echo "$as_me:$LINENO: WARNING: linux/input.h: proceeding with the compiler's result" >&5
22747 echo "$as_me: WARNING: linux/input.h: proceeding with the compiler's result" >&2;}
22748 ac_header_preproc=yes
22751 { echo "$as_me:$LINENO: WARNING: linux/input.h: present but cannot be compiled" >&5
22752 echo "$as_me: WARNING: linux/input.h: present but cannot be compiled" >&2;}
22753 { echo "$as_me:$LINENO: WARNING: linux/input.h: check for missing prerequisite headers?" >&5
22754 echo "$as_me: WARNING: linux/input.h: check for missing prerequisite headers?" >&2;}
22755 { echo "$as_me:$LINENO: WARNING: linux/input.h: see the Autoconf documentation" >&5
22756 echo "$as_me: WARNING: linux/input.h: see the Autoconf documentation" >&2;}
22757 { echo "$as_me:$LINENO: WARNING: linux/input.h: section \"Present But Cannot Be Compiled\"" >&5
22758 echo "$as_me: WARNING: linux/input.h: section \"Present But Cannot Be Compiled\"" >&2;}
22759 { echo "$as_me:$LINENO: WARNING: linux/input.h: proceeding with the preprocessor's result" >&5
22760 echo "$as_me: WARNING: linux/input.h: proceeding with the preprocessor's result" >&2;}
22761 { echo "$as_me:$LINENO: WARNING: linux/input.h: in the future, the compiler will take precedence" >&5
22762 echo "$as_me: WARNING: linux/input.h: in the future, the compiler will take precedence" >&2;}
22765 ## ----------------------------------------------------------- ##
22766 ## Report this to http://sourceforge.net/projects/libvncserver ##
22767 ## ----------------------------------------------------------- ##
22770 sed "s/^/$as_me: WARNING: /" >&2
22773 echo "$as_me:$LINENO: checking for linux/input.h" >&5
22774 echo $ECHO_N "checking for linux/input.h... $ECHO_C" >&6
22775 if test "${ac_cv_header_linux_input_h+set}" = set; then
22776 echo $ECHO_N "(cached) $ECHO_C" >&6
22778 ac_cv_header_linux_input_h=$ac_header_preproc
22780 echo "$as_me:$LINENO: result: $ac_cv_header_linux_input_h" >&5
22781 echo "${ECHO_T}$ac_cv_header_linux_input_h" >&6
22784 if test $ac_cv_header_linux_input_h = yes; then
22785 cat >>confdefs.h <<\_ACEOF
22786 #define HAVE_LINUX_INPUT_H 1
22788 HAVE_LINUX_INPUT_H="true"
22792 if test "x$HAVE_LINUX_INPUT_H" = "xtrue"; then
22793 echo "$as_me:$LINENO: checking for linux/uinput.h" >&5
22794 echo $ECHO_N "checking for linux/uinput.h... $ECHO_C" >&6
22795 if test "${ac_cv_header_linux_uinput_h+set}" = set; then
22796 echo $ECHO_N "(cached) $ECHO_C" >&6
22798 cat >conftest.$ac_ext <<_ACEOF
22801 cat confdefs.h >>conftest.$ac_ext
22802 cat >>conftest.$ac_ext <<_ACEOF
22803 /* end confdefs.h. */
22804 #include <linux/input.h>
22806 #include <linux/uinput.h>
22808 rm -f conftest.$ac_objext
22809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22810 (eval $ac_compile) 2>conftest.er1
22812 grep -v '^ *+' conftest.er1 >conftest.err
22814 cat conftest.err >&5
22815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 (exit $ac_status); } &&
22817 { ac_try='test -z "$ac_c_werror_flag"
22818 || test ! -s conftest.err'
22819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22820 (eval $ac_try) 2>&5
22822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823 (exit $ac_status); }; } &&
22824 { ac_try='test -s conftest.$ac_objext'
22825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22826 (eval $ac_try) 2>&5
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); }; }; then
22830 ac_cv_header_linux_uinput_h=yes
22832 echo "$as_me: failed program was:" >&5
22833 sed 's/^/| /' conftest.$ac_ext >&5
22835 ac_cv_header_linux_uinput_h=no
22837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22839 echo "$as_me:$LINENO: result: $ac_cv_header_linux_uinput_h" >&5
22840 echo "${ECHO_T}$ac_cv_header_linux_uinput_h" >&6
22841 if test $ac_cv_header_linux_uinput_h = yes; then
22842 cat >>confdefs.h <<\_ACEOF
22843 #define HAVE_LINUX_UINPUT_H 1
22852 if test "x$with_macosx_native" != "xno"; then
22853 cat >>confdefs.h <<\_ACEOF
22854 #define HAVE_MACOSX_NATIVE_DISPLAY 1
22862 # Check whether --with-avahi or --without-avahi was given.
22863 if test "${with_avahi+set}" = set; then
22864 withval="$with_avahi"
22867 if test "x$with_avahi" != "xno"; then
22868 printf "checking for avahi... "
22869 if test ! -z "$with_avahi" -a "x$with_avahi" != "xyes"; then
22870 AVAHI_CFLAGS="-I$with_avahi/include"
22871 AVAHI_LIBS="-L$with_avahi/lib -lavahi-common -lavahi-client"
22872 echo "using $with_avahi"
22874 elif pkg-config --atleast-version=0.6.4 avahi-client >/dev/null 2>&1; then
22875 AVAHI_CFLAGS=`pkg-config --cflags avahi-client`
22876 AVAHI_LIBS=`pkg-config --libs avahi-client`
22884 if test "x$with_avahi" = "xyes"; then
22885 cat >>confdefs.h <<\_ACEOF
22886 #define HAVE_AVAHI 1
22896 # Checks for libraries.
22898 if test ! -z "$with_system_libvncserver" -a "x$with_system_libvncserver" != "xno"; then
22899 printf "checking for system libvncserver... "
22901 if test "X$VNEED" != "X"; then
22904 if test "x$with_system_libvncserver" != "xyes"; then
22906 if test "x$ld_minus_R" = "xno"; then
22908 elif test "x$GCC" = "xyes"; then
22909 rflag="-Xlinker -R$with_system_libvncserver/lib"
22911 rflag="-R$with_system_libvncserver/lib"
22913 cmd="$with_system_libvncserver/bin/libvncserver-config"
22914 if $cmd --version 1>/dev/null 2>&1; then
22915 cvers=`$cmd --version 2>/dev/null`
22916 cscore=`echo "$cvers" | tr '.' ' ' | awk '{print 10000 * $1 + 100 * $2 + $3}'`
22917 nscore=`echo "$vneed" | tr '.' ' ' | awk '{print 10000 * $1 + 100 * $2 + $3}'`
22919 if test $cscore -lt $nscore; then
22921 with_system_libvncserver=no
22922 { { echo "$as_me:$LINENO: error:
22923 ==========================================================================
22924 *** Need libvncserver version $vneed, have version $cvers ***
22925 You are building with a system installed libvncserver and it is not
22927 ==========================================================================
22929 echo "$as_me: error:
22930 ==========================================================================
22931 *** Need libvncserver version $vneed, have version $cvers ***
22932 You are building with a system installed libvncserver and it is not
22934 ==========================================================================
22936 { (exit 1); exit 1; }; }
22938 SYSTEM_LIBVNCSERVER_CFLAGS="-I$with_system_libvncserver/include"
22939 SYSTEM_LIBVNCSERVER_LIBS="-L$with_system_libvncserver/lib $rflag -lvncserver -lvncclient"
22940 echo "using $with_system_libvncserver"
22941 with_system_libvncserver=yes
22944 echo " *** cannot run $cmd *** " 1>&2
22945 with_system_libvncserver=no
22948 elif libvncserver-config --version 1>/dev/null 2>&1; then
22950 rprefix=`libvncserver-config --prefix`
22951 if test "x$ld_minus_R" = "xno"; then
22953 elif test "x$GCC" = "xyes"; then
22954 rflag=" -Xlinker -R$rprefix/lib "
22956 rflag=" -R$rprefix/lib "
22958 cvers=`libvncserver-config --version 2>/dev/null`
22959 cscore=`echo "$cvers" | tr '.' ' ' | awk '{print 10000 * $1 + 100 * $2 + $3}'`
22960 nscore=`echo "$vneed" | tr '.' ' ' | awk '{print 10000 * $1 + 100 * $2 + $3}'`
22962 if test $cscore -lt $nscore; then
22964 { { echo "$as_me:$LINENO: error:
22965 ==========================================================================
22966 *** Need libvncserver version $vneed, have version $cvers ***
22967 You are building with a system installed libvncserver and it is not
22969 ==========================================================================
22971 echo "$as_me: error:
22972 ==========================================================================
22973 *** Need libvncserver version $vneed, have version $cvers ***
22974 You are building with a system installed libvncserver and it is not
22976 ==========================================================================
22978 { (exit 1); exit 1; }; }
22980 SYSTEM_LIBVNCSERVER_CFLAGS=`libvncserver-config --cflags`
22981 SYSTEM_LIBVNCSERVER_LIBS="$rflag"`libvncserver-config --libs`
22982 with_system_libvncserver=yes
22986 with_system_libvncserver=no
22991 if test "x$with_system_libvncserver" = "xyes"; then
22992 cat >>confdefs.h <<\_ACEOF
22993 #define HAVE_SYSTEM_LIBVNCSERVER 1
23001 if test "x$with_system_libvncserver" = "xyes"; then
23002 HAVE_SYSTEM_LIBVNCSERVER_TRUE=
23003 HAVE_SYSTEM_LIBVNCSERVER_FALSE='#'
23005 HAVE_SYSTEM_LIBVNCSERVER_TRUE='#'
23006 HAVE_SYSTEM_LIBVNCSERVER_FALSE=
23012 # Check whether --with-jpeg or --without-jpeg was given.
23013 if test "${with_jpeg+set}" = set; then
23014 withval="$with_jpeg"
23019 # no jpeg on command line with_jpeg=""
23020 # -with-jpeg with_jpeg="yes"
23021 # -without-jpeg with_jpeg="no"
23022 # -with-jpeg=/foo/dir with_jpeg="/foo/dir"
23024 if test "x$with_jpeg" != "xno"; then
23025 if test ! -z "$with_jpeg" -a "x$with_jpeg" != "xyes"; then
23026 # add user supplied directory to flags:
23027 saved_CPPFLAGS="$CPPFLAGS"
23028 saved_LDFLAGS="$LDFLAGS"
23029 CPPFLAGS="$CPPFLAGS -I$with_jpeg/include"
23030 LDFLAGS="$LDFLAGS -L$with_jpeg/lib"
23031 if test "x$ld_minus_R" = "xno"; then
23033 elif test "x$GCC" = "xyes"; then
23034 # this is not complete... in general a rat's nest.
23035 LDFLAGS="$LDFLAGS -Xlinker -R$with_jpeg/lib"
23037 LDFLAGS="$LDFLAGS -R$with_jpeg/lib"
23040 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23041 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23042 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23043 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23044 echo $ECHO_N "(cached) $ECHO_C" >&6
23046 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23047 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23049 # Is the header compilable?
23050 echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
23051 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
23052 cat >conftest.$ac_ext <<_ACEOF
23055 cat confdefs.h >>conftest.$ac_ext
23056 cat >>conftest.$ac_ext <<_ACEOF
23057 /* end confdefs.h. */
23058 $ac_includes_default
23059 #include <jpeglib.h>
23061 rm -f conftest.$ac_objext
23062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23063 (eval $ac_compile) 2>conftest.er1
23065 grep -v '^ *+' conftest.er1 >conftest.err
23067 cat conftest.err >&5
23068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); } &&
23070 { ac_try='test -z "$ac_c_werror_flag"
23071 || test ! -s conftest.err'
23072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23073 (eval $ac_try) 2>&5
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); }; } &&
23077 { ac_try='test -s conftest.$ac_objext'
23078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23079 (eval $ac_try) 2>&5
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); }; }; then
23083 ac_header_compiler=yes
23085 echo "$as_me: failed program was:" >&5
23086 sed 's/^/| /' conftest.$ac_ext >&5
23088 ac_header_compiler=no
23090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23091 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23092 echo "${ECHO_T}$ac_header_compiler" >&6
23094 # Is the header present?
23095 echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
23096 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
23097 cat >conftest.$ac_ext <<_ACEOF
23100 cat confdefs.h >>conftest.$ac_ext
23101 cat >>conftest.$ac_ext <<_ACEOF
23102 /* end confdefs.h. */
23103 #include <jpeglib.h>
23105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23108 grep -v '^ *+' conftest.er1 >conftest.err
23110 cat conftest.err >&5
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); } >/dev/null; then
23113 if test -s conftest.err; then
23114 ac_cpp_err=$ac_c_preproc_warn_flag
23115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23122 if test -z "$ac_cpp_err"; then
23123 ac_header_preproc=yes
23125 echo "$as_me: failed program was:" >&5
23126 sed 's/^/| /' conftest.$ac_ext >&5
23128 ac_header_preproc=no
23130 rm -f conftest.err conftest.$ac_ext
23131 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23132 echo "${ECHO_T}$ac_header_preproc" >&6
23134 # So? What about this header?
23135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23137 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
23138 echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23139 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
23140 echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
23141 ac_header_preproc=yes
23144 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
23145 echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
23146 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
23147 echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
23148 { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
23149 echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
23150 { echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
23151 echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
23152 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
23153 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
23154 { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
23155 echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
23158 ## ----------------------------------------------------------- ##
23159 ## Report this to http://sourceforge.net/projects/libvncserver ##
23160 ## ----------------------------------------------------------- ##
23163 sed "s/^/$as_me: WARNING: /" >&2
23166 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23167 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23168 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23169 echo $ECHO_N "(cached) $ECHO_C" >&6
23171 ac_cv_header_jpeglib_h=$ac_header_preproc
23173 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23174 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23177 if test $ac_cv_header_jpeglib_h = yes; then
23178 HAVE_JPEGLIB_H="true"
23182 if test "x$HAVE_JPEGLIB_H" = "xtrue"; then
23184 echo "$as_me:$LINENO: checking for jpeg_CreateCompress in -ljpeg" >&5
23185 echo $ECHO_N "checking for jpeg_CreateCompress in -ljpeg... $ECHO_C" >&6
23186 if test "${ac_cv_lib_jpeg_jpeg_CreateCompress+set}" = set; then
23187 echo $ECHO_N "(cached) $ECHO_C" >&6
23189 ac_check_lib_save_LIBS=$LIBS
23190 LIBS="-ljpeg $LIBS"
23191 cat >conftest.$ac_ext <<_ACEOF
23194 cat confdefs.h >>conftest.$ac_ext
23195 cat >>conftest.$ac_ext <<_ACEOF
23196 /* end confdefs.h. */
23198 /* Override any gcc2 internal prototype to avoid an error. */
23202 /* We use char because int might match the return type of a gcc2
23203 builtin and then its argument prototype would still apply. */
23204 char jpeg_CreateCompress ();
23208 jpeg_CreateCompress ();
23213 rm -f conftest.$ac_objext conftest$ac_exeext
23214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23215 (eval $ac_link) 2>conftest.er1
23217 grep -v '^ *+' conftest.er1 >conftest.err
23219 cat conftest.err >&5
23220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); } &&
23222 { ac_try='test -z "$ac_c_werror_flag"
23223 || test ! -s conftest.err'
23224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23225 (eval $ac_try) 2>&5
23227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); }; } &&
23229 { ac_try='test -s conftest$ac_exeext'
23230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23231 (eval $ac_try) 2>&5
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); }; }; then
23235 ac_cv_lib_jpeg_jpeg_CreateCompress=yes
23237 echo "$as_me: failed program was:" >&5
23238 sed 's/^/| /' conftest.$ac_ext >&5
23240 ac_cv_lib_jpeg_jpeg_CreateCompress=no
23242 rm -f conftest.err conftest.$ac_objext \
23243 conftest$ac_exeext conftest.$ac_ext
23244 LIBS=$ac_check_lib_save_LIBS
23246 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_CreateCompress" >&5
23247 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_CreateCompress" >&6
23248 if test $ac_cv_lib_jpeg_jpeg_CreateCompress = yes; then
23249 cat >>confdefs.h <<_ACEOF
23250 #define HAVE_LIBJPEG 1
23253 LIBS="-ljpeg $LIBS"
23260 if test ! -z "$with_jpeg" -a "x$with_jpeg" != "xyes"; then
23261 if test "x$HAVE_JPEGLIB_H" != "xtrue"; then
23262 # restore old flags on failure:
23263 CPPFLAGS="$saved_CPPFLAGS"
23264 LDFLAGS="$saved_LDFLAGS"
23267 if test "$build_x11vnc" = "yes"; then
23268 if test "x$HAVE_JPEGLIB_H" != "xtrue"; then
23269 { echo "$as_me:$LINENO: WARNING:
23270 ==========================================================================
23271 *** The libjpeg compression library was not found. ***
23272 This may lead to reduced performance, especially over slow links.
23273 If libjpeg is in a non-standard location use --with-jpeg=DIR to
23274 indicate the header file is in DIR/include/jpeglib.h and the library
23275 in DIR/lib/libjpeg.a. A copy of libjpeg may be obtained from:
23276 ftp://ftp.uu.net/graphics/jpeg/
23277 ==========================================================================
23279 echo "$as_me: WARNING:
23280 ==========================================================================
23281 *** The libjpeg compression library was not found. ***
23282 This may lead to reduced performance, especially over slow links.
23283 If libjpeg is in a non-standard location use --with-jpeg=DIR to
23284 indicate the header file is in DIR/include/jpeglib.h and the library
23285 in DIR/lib/libjpeg.a. A copy of libjpeg may be obtained from:
23286 ftp://ftp.uu.net/graphics/jpeg/
23287 ==========================================================================
23295 # Check whether --with-libz or --without-libz was given.
23296 if test "${with_libz+set}" = set; then
23297 withval="$with_libz"
23301 # Check whether --with-zlib or --without-zlib was given.
23302 if test "${with_zlib+set}" = set; then
23303 withval="$with_zlib"
23307 if test "x$with_zlib" != "xno" -a "x$with_libz" != "xno"; then
23308 if test ! -z "$with_zlib" -a "x$with_zlib" != "xyes"; then
23309 saved_CPPFLAGS="$CPPFLAGS"
23310 saved_LDFLAGS="$LDFLAGS"
23311 CPPFLAGS="$CPPFLAGS -I$with_zlib/include"
23312 LDFLAGS="$LDFLAGS -L$with_zlib/lib"
23313 if test "x$ld_minus_R" = "xno"; then
23315 elif test "x$GCC" = "xyes"; then
23316 LDFLAGS="$LDFLAGS -Xlinker -R$with_zlib/lib"
23318 LDFLAGS="$LDFLAGS -R$with_zlib/lib"
23321 if test "${ac_cv_header_zlib_h+set}" = set; then
23322 echo "$as_me:$LINENO: checking for zlib.h" >&5
23323 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23324 if test "${ac_cv_header_zlib_h+set}" = set; then
23325 echo $ECHO_N "(cached) $ECHO_C" >&6
23327 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23328 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23330 # Is the header compilable?
23331 echo "$as_me:$LINENO: checking zlib.h usability" >&5
23332 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
23333 cat >conftest.$ac_ext <<_ACEOF
23336 cat confdefs.h >>conftest.$ac_ext
23337 cat >>conftest.$ac_ext <<_ACEOF
23338 /* end confdefs.h. */
23339 $ac_includes_default
23342 rm -f conftest.$ac_objext
23343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23344 (eval $ac_compile) 2>conftest.er1
23346 grep -v '^ *+' conftest.er1 >conftest.err
23348 cat conftest.err >&5
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } &&
23351 { ac_try='test -z "$ac_c_werror_flag"
23352 || test ! -s conftest.err'
23353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23354 (eval $ac_try) 2>&5
23356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357 (exit $ac_status); }; } &&
23358 { ac_try='test -s conftest.$ac_objext'
23359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23360 (eval $ac_try) 2>&5
23362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363 (exit $ac_status); }; }; then
23364 ac_header_compiler=yes
23366 echo "$as_me: failed program was:" >&5
23367 sed 's/^/| /' conftest.$ac_ext >&5
23369 ac_header_compiler=no
23371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23372 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23373 echo "${ECHO_T}$ac_header_compiler" >&6
23375 # Is the header present?
23376 echo "$as_me:$LINENO: checking zlib.h presence" >&5
23377 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
23378 cat >conftest.$ac_ext <<_ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h. */
23386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23389 grep -v '^ *+' conftest.er1 >conftest.err
23391 cat conftest.err >&5
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); } >/dev/null; then
23394 if test -s conftest.err; then
23395 ac_cpp_err=$ac_c_preproc_warn_flag
23396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23403 if test -z "$ac_cpp_err"; then
23404 ac_header_preproc=yes
23406 echo "$as_me: failed program was:" >&5
23407 sed 's/^/| /' conftest.$ac_ext >&5
23409 ac_header_preproc=no
23411 rm -f conftest.err conftest.$ac_ext
23412 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23413 echo "${ECHO_T}$ac_header_preproc" >&6
23415 # So? What about this header?
23416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23418 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
23419 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23420 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
23421 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
23422 ac_header_preproc=yes
23425 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
23426 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
23427 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
23428 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
23429 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
23430 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
23431 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
23432 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
23433 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
23434 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
23435 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
23436 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
23439 ## ----------------------------------------------------------- ##
23440 ## Report this to http://sourceforge.net/projects/libvncserver ##
23441 ## ----------------------------------------------------------- ##
23444 sed "s/^/$as_me: WARNING: /" >&2
23447 echo "$as_me:$LINENO: checking for zlib.h" >&5
23448 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23449 if test "${ac_cv_header_zlib_h+set}" = set; then
23450 echo $ECHO_N "(cached) $ECHO_C" >&6
23452 ac_cv_header_zlib_h=$ac_header_preproc
23454 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23455 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23458 if test $ac_cv_header_zlib_h = yes; then
23463 if test "x$HAVE_ZLIB_H" = "xtrue"; then
23465 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
23466 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
23467 if test "${ac_cv_lib_z_deflate+set}" = set; then
23468 echo $ECHO_N "(cached) $ECHO_C" >&6
23470 ac_check_lib_save_LIBS=$LIBS
23472 cat >conftest.$ac_ext <<_ACEOF
23475 cat confdefs.h >>conftest.$ac_ext
23476 cat >>conftest.$ac_ext <<_ACEOF
23477 /* end confdefs.h. */
23479 /* Override any gcc2 internal prototype to avoid an error. */
23483 /* We use char because int might match the return type of a gcc2
23484 builtin and then its argument prototype would still apply. */
23494 rm -f conftest.$ac_objext conftest$ac_exeext
23495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23496 (eval $ac_link) 2>conftest.er1
23498 grep -v '^ *+' conftest.er1 >conftest.err
23500 cat conftest.err >&5
23501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); } &&
23503 { ac_try='test -z "$ac_c_werror_flag"
23504 || test ! -s conftest.err'
23505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506 (eval $ac_try) 2>&5
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); }; } &&
23510 { ac_try='test -s conftest$ac_exeext'
23511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23512 (eval $ac_try) 2>&5
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); }; }; then
23516 ac_cv_lib_z_deflate=yes
23518 echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23521 ac_cv_lib_z_deflate=no
23523 rm -f conftest.err conftest.$ac_objext \
23524 conftest$ac_exeext conftest.$ac_ext
23525 LIBS=$ac_check_lib_save_LIBS
23527 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
23528 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
23529 if test $ac_cv_lib_z_deflate = yes; then
23530 cat >>confdefs.h <<_ACEOF
23531 #define HAVE_LIBZ 1
23541 if test ! -z "$with_zlib" -a "x$with_zlib" != "xyes"; then
23542 if test "x$HAVE_ZLIB_H" != "xtrue"; then
23543 CPPFLAGS="$saved_CPPFLAGS"
23544 LDFLAGS="$saved_LDFLAGS"
23547 if test "$build_x11vnc" = "yes"; then
23548 if test "x$HAVE_ZLIB_H" != "xtrue"; then
23549 { echo "$as_me:$LINENO: WARNING:
23550 ==========================================================================
23551 *** The libz compression library was not found. ***
23552 This may lead to reduced performance, especially over slow links.
23553 If libz is in a non-standard location use --with-zlib=DIR to indicate the
23554 header file is in DIR/include/zlib.h and the library in DIR/lib/libz.a.
23555 A copy of libz may be obtained from: http://www.gzip.org/zlib/
23556 ==========================================================================
23558 echo "$as_me: WARNING:
23559 ==========================================================================
23560 *** The libz compression library was not found. ***
23561 This may lead to reduced performance, especially over slow links.
23562 If libz is in a non-standard location use --with-zlib=DIR to indicate the
23563 header file is in DIR/include/zlib.h and the library in DIR/lib/libz.a.
23564 A copy of libz may be obtained from: http://www.gzip.org/zlib/
23565 ==========================================================================
23573 # Check whether --with-pthread or --without-pthread was given.
23574 if test "${with_pthread+set}" = set; then
23575 withval="$with_pthread"
23579 if test "x$with_pthread" != "xno"; then
23580 if test "${ac_cv_header_pthread_h+set}" = set; then
23581 echo "$as_me:$LINENO: checking for pthread.h" >&5
23582 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
23583 if test "${ac_cv_header_pthread_h+set}" = set; then
23584 echo $ECHO_N "(cached) $ECHO_C" >&6
23586 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23587 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
23589 # Is the header compilable?
23590 echo "$as_me:$LINENO: checking pthread.h usability" >&5
23591 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
23592 cat >conftest.$ac_ext <<_ACEOF
23595 cat confdefs.h >>conftest.$ac_ext
23596 cat >>conftest.$ac_ext <<_ACEOF
23597 /* end confdefs.h. */
23598 $ac_includes_default
23599 #include <pthread.h>
23601 rm -f conftest.$ac_objext
23602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23603 (eval $ac_compile) 2>conftest.er1
23605 grep -v '^ *+' conftest.er1 >conftest.err
23607 cat conftest.err >&5
23608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); } &&
23610 { ac_try='test -z "$ac_c_werror_flag"
23611 || test ! -s conftest.err'
23612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23613 (eval $ac_try) 2>&5
23615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616 (exit $ac_status); }; } &&
23617 { ac_try='test -s conftest.$ac_objext'
23618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23619 (eval $ac_try) 2>&5
23621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622 (exit $ac_status); }; }; then
23623 ac_header_compiler=yes
23625 echo "$as_me: failed program was:" >&5
23626 sed 's/^/| /' conftest.$ac_ext >&5
23628 ac_header_compiler=no
23630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23631 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23632 echo "${ECHO_T}$ac_header_compiler" >&6
23634 # Is the header present?
23635 echo "$as_me:$LINENO: checking pthread.h presence" >&5
23636 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
23637 cat >conftest.$ac_ext <<_ACEOF
23640 cat confdefs.h >>conftest.$ac_ext
23641 cat >>conftest.$ac_ext <<_ACEOF
23642 /* end confdefs.h. */
23643 #include <pthread.h>
23645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23648 grep -v '^ *+' conftest.er1 >conftest.err
23650 cat conftest.err >&5
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); } >/dev/null; then
23653 if test -s conftest.err; then
23654 ac_cpp_err=$ac_c_preproc_warn_flag
23655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23662 if test -z "$ac_cpp_err"; then
23663 ac_header_preproc=yes
23665 echo "$as_me: failed program was:" >&5
23666 sed 's/^/| /' conftest.$ac_ext >&5
23668 ac_header_preproc=no
23670 rm -f conftest.err conftest.$ac_ext
23671 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23672 echo "${ECHO_T}$ac_header_preproc" >&6
23674 # So? What about this header?
23675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23677 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23678 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23679 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23680 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23681 ac_header_preproc=yes
23684 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23685 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23686 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
23687 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
23688 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23689 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23690 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
23691 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
23692 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23693 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23694 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23695 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23698 ## ----------------------------------------------------------- ##
23699 ## Report this to http://sourceforge.net/projects/libvncserver ##
23700 ## ----------------------------------------------------------- ##
23703 sed "s/^/$as_me: WARNING: /" >&2
23706 echo "$as_me:$LINENO: checking for pthread.h" >&5
23707 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
23708 if test "${ac_cv_header_pthread_h+set}" = set; then
23709 echo $ECHO_N "(cached) $ECHO_C" >&6
23711 ac_cv_header_pthread_h=$ac_header_preproc
23713 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23714 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
23717 if test $ac_cv_header_pthread_h = yes; then
23718 HAVE_PTHREAD_H="true"
23722 if test ! -z "$HAVE_PTHREAD_H"; then
23724 echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
23725 echo $ECHO_N "checking for pthread_mutex_lock in -lpthread... $ECHO_C" >&6
23726 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
23727 echo $ECHO_N "(cached) $ECHO_C" >&6
23729 ac_check_lib_save_LIBS=$LIBS
23730 LIBS="-lpthread $LIBS"
23731 cat >conftest.$ac_ext <<_ACEOF
23734 cat confdefs.h >>conftest.$ac_ext
23735 cat >>conftest.$ac_ext <<_ACEOF
23736 /* end confdefs.h. */
23738 /* Override any gcc2 internal prototype to avoid an error. */
23742 /* We use char because int might match the return type of a gcc2
23743 builtin and then its argument prototype would still apply. */
23744 char pthread_mutex_lock ();
23748 pthread_mutex_lock ();
23753 rm -f conftest.$ac_objext conftest$ac_exeext
23754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23755 (eval $ac_link) 2>conftest.er1
23757 grep -v '^ *+' conftest.er1 >conftest.err
23759 cat conftest.err >&5
23760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761 (exit $ac_status); } &&
23762 { ac_try='test -z "$ac_c_werror_flag"
23763 || test ! -s conftest.err'
23764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23765 (eval $ac_try) 2>&5
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); }; } &&
23769 { ac_try='test -s conftest$ac_exeext'
23770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23771 (eval $ac_try) 2>&5
23773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774 (exit $ac_status); }; }; then
23775 ac_cv_lib_pthread_pthread_mutex_lock=yes
23777 echo "$as_me: failed program was:" >&5
23778 sed 's/^/| /' conftest.$ac_ext >&5
23780 ac_cv_lib_pthread_pthread_mutex_lock=no
23782 rm -f conftest.err conftest.$ac_objext \
23783 conftest$ac_exeext conftest.$ac_ext
23784 LIBS=$ac_check_lib_save_LIBS
23786 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
23787 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_lock" >&6
23788 if test $ac_cv_lib_pthread_pthread_mutex_lock = yes; then
23789 cat >>confdefs.h <<_ACEOF
23790 #define HAVE_LIBPTHREAD 1
23793 LIBS="-lpthread $LIBS"
23797 echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
23798 echo $ECHO_N "checking for pthread_mutex_lock in -lpthread... $ECHO_C" >&6
23799 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
23800 echo $ECHO_N "(cached) $ECHO_C" >&6
23802 ac_check_lib_save_LIBS=$LIBS
23803 LIBS="-lpthread $LIBS"
23804 cat >conftest.$ac_ext <<_ACEOF
23807 cat confdefs.h >>conftest.$ac_ext
23808 cat >>conftest.$ac_ext <<_ACEOF
23809 /* end confdefs.h. */
23811 /* Override any gcc2 internal prototype to avoid an error. */
23815 /* We use char because int might match the return type of a gcc2
23816 builtin and then its argument prototype would still apply. */
23817 char pthread_mutex_lock ();
23821 pthread_mutex_lock ();
23826 rm -f conftest.$ac_objext conftest$ac_exeext
23827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23828 (eval $ac_link) 2>conftest.er1
23830 grep -v '^ *+' conftest.er1 >conftest.err
23832 cat conftest.err >&5
23833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834 (exit $ac_status); } &&
23835 { ac_try='test -z "$ac_c_werror_flag"
23836 || test ! -s conftest.err'
23837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23838 (eval $ac_try) 2>&5
23840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841 (exit $ac_status); }; } &&
23842 { ac_try='test -s conftest$ac_exeext'
23843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23844 (eval $ac_try) 2>&5
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); }; }; then
23848 ac_cv_lib_pthread_pthread_mutex_lock=yes
23850 echo "$as_me: failed program was:" >&5
23851 sed 's/^/| /' conftest.$ac_ext >&5
23853 ac_cv_lib_pthread_pthread_mutex_lock=no
23855 rm -f conftest.err conftest.$ac_objext \
23856 conftest$ac_exeext conftest.$ac_ext
23857 LIBS=$ac_check_lib_save_LIBS
23859 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
23860 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_lock" >&6
23861 if test $ac_cv_lib_pthread_pthread_mutex_lock = yes; then
23862 HAVE_LIBPTHREAD="true"
23869 if test ! -z "$HAVE_LIBPTHREAD"; then
23870 HAVE_LIBPTHREAD_TRUE=
23871 HAVE_LIBPTHREAD_FALSE='#'
23873 HAVE_LIBPTHREAD_TRUE='#'
23874 HAVE_LIBPTHREAD_FALSE=
23878 # tightvnc-filetransfer implemented using threads:
23879 if test -z "$HAVE_LIBPTHREAD"; then
23880 with_tightvnc_filetransfer=""
23882 if test "x$with_tightvnc_filetransfer" = "xyes"; then
23883 cat >>confdefs.h <<\_ACEOF
23884 #define WITH_TIGHTVNC_FILETRANSFER 1
23890 if test "$with_tightvnc_filetransfer" = "yes"; then
23891 WITH_TIGHTVNC_FILETRANSFER_TRUE=
23892 WITH_TIGHTVNC_FILETRANSFER_FALSE='#'
23894 WITH_TIGHTVNC_FILETRANSFER_TRUE='#'
23895 WITH_TIGHTVNC_FILETRANSFER_FALSE=
23901 if test ! -z "$HAVE_ZLIB_H"; then
23903 HAVE_LIBZ_FALSE='#'
23911 if test ! -z "$HAVE_JPEGLIB_H"; then
23913 HAVE_LIBJPEG_FALSE='#'
23915 HAVE_LIBJPEG_TRUE='#'
23916 HAVE_LIBJPEG_FALSE=
23920 if test -z "$with_sdl"; then
23921 if sdl-config --version >/dev/null 2>&1; then
23923 SDL_CFLAGS=`sdl-config --cflags`
23924 SDL_LIBS=`sdl-config --libs`
23931 if test "x$with_sdl" = "xyes"; then
23933 HAVE_LIBSDL_FALSE='#'
23935 HAVE_LIBSDL_TRUE='#'
23942 MINGW=`uname -s | grep MINGW 2>/dev/null`
23945 if test ! -z "$MINGW" ; then
23953 if test ! -z "$MINGW"; then
23954 WSOCKLIB="-lws2_32"
23958 # Checks for header files.
23959 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23960 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23961 if test "${ac_cv_header_stdc+set}" = set; then
23962 echo $ECHO_N "(cached) $ECHO_C" >&6
23964 cat >conftest.$ac_ext <<_ACEOF
23967 cat confdefs.h >>conftest.$ac_ext
23968 cat >>conftest.$ac_ext <<_ACEOF
23969 /* end confdefs.h. */
23970 #include <stdlib.h>
23971 #include <stdarg.h>
23972 #include <string.h>
23983 rm -f conftest.$ac_objext
23984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23985 (eval $ac_compile) 2>conftest.er1
23987 grep -v '^ *+' conftest.er1 >conftest.err
23989 cat conftest.err >&5
23990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991 (exit $ac_status); } &&
23992 { ac_try='test -z "$ac_c_werror_flag"
23993 || test ! -s conftest.err'
23994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23995 (eval $ac_try) 2>&5
23997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998 (exit $ac_status); }; } &&
23999 { ac_try='test -s conftest.$ac_objext'
24000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24001 (eval $ac_try) 2>&5
24003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004 (exit $ac_status); }; }; then
24005 ac_cv_header_stdc=yes
24007 echo "$as_me: failed program was:" >&5
24008 sed 's/^/| /' conftest.$ac_ext >&5
24010 ac_cv_header_stdc=no
24012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24014 if test $ac_cv_header_stdc = yes; then
24015 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24016 cat >conftest.$ac_ext <<_ACEOF
24019 cat confdefs.h >>conftest.$ac_ext
24020 cat >>conftest.$ac_ext <<_ACEOF
24021 /* end confdefs.h. */
24022 #include <string.h>
24025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24026 $EGREP "memchr" >/dev/null 2>&1; then
24029 ac_cv_header_stdc=no
24035 if test $ac_cv_header_stdc = yes; then
24036 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24037 cat >conftest.$ac_ext <<_ACEOF
24040 cat confdefs.h >>conftest.$ac_ext
24041 cat >>conftest.$ac_ext <<_ACEOF
24042 /* end confdefs.h. */
24043 #include <stdlib.h>
24046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24047 $EGREP "free" >/dev/null 2>&1; then
24050 ac_cv_header_stdc=no
24056 if test $ac_cv_header_stdc = yes; then
24057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24058 if test "$cross_compiling" = yes; then
24061 cat >conftest.$ac_ext <<_ACEOF
24064 cat confdefs.h >>conftest.$ac_ext
24065 cat >>conftest.$ac_ext <<_ACEOF
24066 /* end confdefs.h. */
24068 #if ((' ' & 0x0FF) == 0x020)
24069 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24070 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24072 # define ISLOWER(c) \
24073 (('a' <= (c) && (c) <= 'i') \
24074 || ('j' <= (c) && (c) <= 'r') \
24075 || ('s' <= (c) && (c) <= 'z'))
24076 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24079 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24084 for (i = 0; i < 256; i++)
24085 if (XOR (islower (i), ISLOWER (i))
24086 || toupper (i) != TOUPPER (i))
24091 rm -f conftest$ac_exeext
24092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24093 (eval $ac_link) 2>&5
24095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24098 (eval $ac_try) 2>&5
24100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); }; }; then
24104 echo "$as_me: program exited with status $ac_status" >&5
24105 echo "$as_me: failed program was:" >&5
24106 sed 's/^/| /' conftest.$ac_ext >&5
24108 ( exit $ac_status )
24109 ac_cv_header_stdc=no
24111 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24115 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
24116 echo "${ECHO_T}$ac_cv_header_stdc" >&6
24117 if test $ac_cv_header_stdc = yes; then
24119 cat >>confdefs.h <<\_ACEOF
24120 #define STDC_HEADERS 1
24136 for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h sys/timeb.h syslog.h unistd.h
24138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24140 echo "$as_me:$LINENO: checking for $ac_header" >&5
24141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24143 echo $ECHO_N "(cached) $ECHO_C" >&6
24145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24148 # Is the header compilable?
24149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24151 cat >conftest.$ac_ext <<_ACEOF
24154 cat confdefs.h >>conftest.$ac_ext
24155 cat >>conftest.$ac_ext <<_ACEOF
24156 /* end confdefs.h. */
24157 $ac_includes_default
24158 #include <$ac_header>
24160 rm -f conftest.$ac_objext
24161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24162 (eval $ac_compile) 2>conftest.er1
24164 grep -v '^ *+' conftest.er1 >conftest.err
24166 cat conftest.err >&5
24167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168 (exit $ac_status); } &&
24169 { ac_try='test -z "$ac_c_werror_flag"
24170 || test ! -s conftest.err'
24171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24172 (eval $ac_try) 2>&5
24174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175 (exit $ac_status); }; } &&
24176 { ac_try='test -s conftest.$ac_objext'
24177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24178 (eval $ac_try) 2>&5
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); }; }; then
24182 ac_header_compiler=yes
24184 echo "$as_me: failed program was:" >&5
24185 sed 's/^/| /' conftest.$ac_ext >&5
24187 ac_header_compiler=no
24189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24191 echo "${ECHO_T}$ac_header_compiler" >&6
24193 # Is the header present?
24194 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24196 cat >conftest.$ac_ext <<_ACEOF
24199 cat confdefs.h >>conftest.$ac_ext
24200 cat >>conftest.$ac_ext <<_ACEOF
24201 /* end confdefs.h. */
24202 #include <$ac_header>
24204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24207 grep -v '^ *+' conftest.er1 >conftest.err
24209 cat conftest.err >&5
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); } >/dev/null; then
24212 if test -s conftest.err; then
24213 ac_cpp_err=$ac_c_preproc_warn_flag
24214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24221 if test -z "$ac_cpp_err"; then
24222 ac_header_preproc=yes
24224 echo "$as_me: failed program was:" >&5
24225 sed 's/^/| /' conftest.$ac_ext >&5
24227 ac_header_preproc=no
24229 rm -f conftest.err conftest.$ac_ext
24230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24231 echo "${ECHO_T}$ac_header_preproc" >&6
24233 # So? What about this header?
24234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24240 ac_header_preproc=yes
24243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24257 ## ----------------------------------------------------------- ##
24258 ## Report this to http://sourceforge.net/projects/libvncserver ##
24259 ## ----------------------------------------------------------- ##
24262 sed "s/^/$as_me: WARNING: /" >&2
24265 echo "$as_me:$LINENO: checking for $ac_header" >&5
24266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24268 echo $ECHO_N "(cached) $ECHO_C" >&6
24270 eval "$as_ac_Header=\$ac_header_preproc"
24272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24277 cat >>confdefs.h <<_ACEOF
24278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24287 if test "$build_x11vnc" = "yes"; then
24294 for ac_header in pwd.h sys/wait.h utmpx.h termios.h sys/ioctl.h sys/stropts.h
24296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24298 echo "$as_me:$LINENO: checking for $ac_header" >&5
24299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24301 echo $ECHO_N "(cached) $ECHO_C" >&6
24303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24306 # Is the header compilable?
24307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24309 cat >conftest.$ac_ext <<_ACEOF
24312 cat confdefs.h >>conftest.$ac_ext
24313 cat >>conftest.$ac_ext <<_ACEOF
24314 /* end confdefs.h. */
24315 $ac_includes_default
24316 #include <$ac_header>
24318 rm -f conftest.$ac_objext
24319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24320 (eval $ac_compile) 2>conftest.er1
24322 grep -v '^ *+' conftest.er1 >conftest.err
24324 cat conftest.err >&5
24325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326 (exit $ac_status); } &&
24327 { ac_try='test -z "$ac_c_werror_flag"
24328 || test ! -s conftest.err'
24329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24330 (eval $ac_try) 2>&5
24332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333 (exit $ac_status); }; } &&
24334 { ac_try='test -s conftest.$ac_objext'
24335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24336 (eval $ac_try) 2>&5
24338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339 (exit $ac_status); }; }; then
24340 ac_header_compiler=yes
24342 echo "$as_me: failed program was:" >&5
24343 sed 's/^/| /' conftest.$ac_ext >&5
24345 ac_header_compiler=no
24347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24349 echo "${ECHO_T}$ac_header_compiler" >&6
24351 # Is the header present?
24352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24354 cat >conftest.$ac_ext <<_ACEOF
24357 cat confdefs.h >>conftest.$ac_ext
24358 cat >>conftest.$ac_ext <<_ACEOF
24359 /* end confdefs.h. */
24360 #include <$ac_header>
24362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24365 grep -v '^ *+' conftest.er1 >conftest.err
24367 cat conftest.err >&5
24368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369 (exit $ac_status); } >/dev/null; then
24370 if test -s conftest.err; then
24371 ac_cpp_err=$ac_c_preproc_warn_flag
24372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24379 if test -z "$ac_cpp_err"; then
24380 ac_header_preproc=yes
24382 echo "$as_me: failed program was:" >&5
24383 sed 's/^/| /' conftest.$ac_ext >&5
24385 ac_header_preproc=no
24387 rm -f conftest.err conftest.$ac_ext
24388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24389 echo "${ECHO_T}$ac_header_preproc" >&6
24391 # So? What about this header?
24392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24398 ac_header_preproc=yes
24401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24415 ## ----------------------------------------------------------- ##
24416 ## Report this to http://sourceforge.net/projects/libvncserver ##
24417 ## ----------------------------------------------------------- ##
24420 sed "s/^/$as_me: WARNING: /" >&2
24423 echo "$as_me:$LINENO: checking for $ac_header" >&5
24424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24426 echo $ECHO_N "(cached) $ECHO_C" >&6
24428 eval "$as_ac_Header=\$ac_header_preproc"
24430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24435 cat >>confdefs.h <<_ACEOF
24436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24445 # Checks for typedefs, structures, and compiler characteristics.
24446 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24447 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
24448 if test "${ac_cv_c_const+set}" = set; then
24449 echo $ECHO_N "(cached) $ECHO_C" >&6
24451 cat >conftest.$ac_ext <<_ACEOF
24454 cat confdefs.h >>conftest.$ac_ext
24455 cat >>conftest.$ac_ext <<_ACEOF
24456 /* end confdefs.h. */
24461 /* FIXME: Include the comments suggested by Paul. */
24462 #ifndef __cplusplus
24463 /* Ultrix mips cc rejects this. */
24464 typedef int charset[2];
24466 /* SunOS 4.1.1 cc rejects this. */
24467 char const *const *ccp;
24469 /* NEC SVR4.0.2 mips cc rejects this. */
24470 struct point {int x, y;};
24471 static struct point const zero = {0,0};
24472 /* AIX XL C 1.02.0.0 rejects this.
24473 It does not let you subtract one const X* pointer from another in
24474 an arm of an if-expression whose if-part is not a constant
24476 const char *g = "string";
24477 ccp = &g + (g ? g-g : 0);
24478 /* HPUX 7.0 cc rejects these. */
24481 ccp = (char const *const *) p;
24482 { /* SCO 3.2v4 cc rejects this. */
24484 char const *s = 0 ? (char *) 0 : (char const *) 0;
24488 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24489 int x[] = {25, 17};
24490 const int *foo = &x[0];
24493 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24494 typedef const int *iptr;
24498 { /* AIX XL C 1.02.0.0 rejects this saying
24499 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24500 struct s { int j; const int *ap[3]; };
24501 struct s *b; b->j = 5;
24503 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24504 const int foo = 10;
24512 rm -f conftest.$ac_objext
24513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24514 (eval $ac_compile) 2>conftest.er1
24516 grep -v '^ *+' conftest.er1 >conftest.err
24518 cat conftest.err >&5
24519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520 (exit $ac_status); } &&
24521 { ac_try='test -z "$ac_c_werror_flag"
24522 || test ! -s conftest.err'
24523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24524 (eval $ac_try) 2>&5
24526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24527 (exit $ac_status); }; } &&
24528 { ac_try='test -s conftest.$ac_objext'
24529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24530 (eval $ac_try) 2>&5
24532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); }; }; then
24536 echo "$as_me: failed program was:" >&5
24537 sed 's/^/| /' conftest.$ac_ext >&5
24541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24543 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24544 echo "${ECHO_T}$ac_cv_c_const" >&6
24545 if test $ac_cv_c_const = no; then
24547 cat >>confdefs.h <<\_ACEOF
24553 echo "$as_me:$LINENO: checking for inline" >&5
24554 echo $ECHO_N "checking for inline... $ECHO_C" >&6
24555 if test "${ac_cv_c_inline+set}" = set; then
24556 echo $ECHO_N "(cached) $ECHO_C" >&6
24559 for ac_kw in inline __inline__ __inline; do
24560 cat >conftest.$ac_ext <<_ACEOF
24563 cat confdefs.h >>conftest.$ac_ext
24564 cat >>conftest.$ac_ext <<_ACEOF
24565 /* end confdefs.h. */
24566 #ifndef __cplusplus
24568 static $ac_kw foo_t static_foo () {return 0; }
24569 $ac_kw foo_t foo () {return 0; }
24573 rm -f conftest.$ac_objext
24574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24575 (eval $ac_compile) 2>conftest.er1
24577 grep -v '^ *+' conftest.er1 >conftest.err
24579 cat conftest.err >&5
24580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581 (exit $ac_status); } &&
24582 { ac_try='test -z "$ac_c_werror_flag"
24583 || test ! -s conftest.err'
24584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24585 (eval $ac_try) 2>&5
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); }; } &&
24589 { ac_try='test -s conftest.$ac_objext'
24590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591 (eval $ac_try) 2>&5
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); }; }; then
24595 ac_cv_c_inline=$ac_kw; break
24597 echo "$as_me: failed program was:" >&5
24598 sed 's/^/| /' conftest.$ac_ext >&5
24601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24605 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24606 echo "${ECHO_T}$ac_cv_c_inline" >&6
24609 case $ac_cv_c_inline in
24612 case $ac_cv_c_inline in
24614 *) ac_val=$ac_cv_c_inline;;
24616 cat >>confdefs.h <<_ACEOF
24617 #ifndef __cplusplus
24618 #define inline $ac_val
24624 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24625 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
24626 if test "${ac_cv_c_bigendian+set}" = set; then
24627 echo $ECHO_N "(cached) $ECHO_C" >&6
24629 # See if sys/param.h defines the BYTE_ORDER macro.
24630 cat >conftest.$ac_ext <<_ACEOF
24633 cat confdefs.h >>conftest.$ac_ext
24634 cat >>conftest.$ac_ext <<_ACEOF
24635 /* end confdefs.h. */
24636 #include <sys/types.h>
24637 #include <sys/param.h>
24642 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24643 bogus endian macros
24650 rm -f conftest.$ac_objext
24651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24652 (eval $ac_compile) 2>conftest.er1
24654 grep -v '^ *+' conftest.er1 >conftest.err
24656 cat conftest.err >&5
24657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24658 (exit $ac_status); } &&
24659 { ac_try='test -z "$ac_c_werror_flag"
24660 || test ! -s conftest.err'
24661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24662 (eval $ac_try) 2>&5
24664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); }; } &&
24666 { ac_try='test -s conftest.$ac_objext'
24667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24668 (eval $ac_try) 2>&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); }; }; then
24672 # It does; now see whether it defined to BIG_ENDIAN or not.
24673 cat >conftest.$ac_ext <<_ACEOF
24676 cat confdefs.h >>conftest.$ac_ext
24677 cat >>conftest.$ac_ext <<_ACEOF
24678 /* end confdefs.h. */
24679 #include <sys/types.h>
24680 #include <sys/param.h>
24685 #if BYTE_ORDER != BIG_ENDIAN
24693 rm -f conftest.$ac_objext
24694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24695 (eval $ac_compile) 2>conftest.er1
24697 grep -v '^ *+' conftest.er1 >conftest.err
24699 cat conftest.err >&5
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); } &&
24702 { ac_try='test -z "$ac_c_werror_flag"
24703 || test ! -s conftest.err'
24704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24705 (eval $ac_try) 2>&5
24707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24708 (exit $ac_status); }; } &&
24709 { ac_try='test -s conftest.$ac_objext'
24710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24711 (eval $ac_try) 2>&5
24713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714 (exit $ac_status); }; }; then
24715 ac_cv_c_bigendian=yes
24717 echo "$as_me: failed program was:" >&5
24718 sed 's/^/| /' conftest.$ac_ext >&5
24720 ac_cv_c_bigendian=no
24722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24724 echo "$as_me: failed program was:" >&5
24725 sed 's/^/| /' conftest.$ac_ext >&5
24727 # It does not; compile a test program.
24728 if test "$cross_compiling" = yes; then
24729 # try to guess the endianness by grepping values into an object file
24730 ac_cv_c_bigendian=unknown
24731 cat >conftest.$ac_ext <<_ACEOF
24734 cat confdefs.h >>conftest.$ac_ext
24735 cat >>conftest.$ac_ext <<_ACEOF
24736 /* end confdefs.h. */
24737 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24738 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24739 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
24740 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24741 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24742 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
24746 _ascii (); _ebcdic ();
24751 rm -f conftest.$ac_objext
24752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24753 (eval $ac_compile) 2>conftest.er1
24755 grep -v '^ *+' conftest.er1 >conftest.err
24757 cat conftest.err >&5
24758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759 (exit $ac_status); } &&
24760 { ac_try='test -z "$ac_c_werror_flag"
24761 || test ! -s conftest.err'
24762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24763 (eval $ac_try) 2>&5
24765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766 (exit $ac_status); }; } &&
24767 { ac_try='test -s conftest.$ac_objext'
24768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24769 (eval $ac_try) 2>&5
24771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772 (exit $ac_status); }; }; then
24773 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
24774 ac_cv_c_bigendian=yes
24776 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24777 if test "$ac_cv_c_bigendian" = unknown; then
24778 ac_cv_c_bigendian=no
24780 # finding both strings is unlikely to happen, but who knows?
24781 ac_cv_c_bigendian=unknown
24785 echo "$as_me: failed program was:" >&5
24786 sed 's/^/| /' conftest.$ac_ext >&5
24789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24791 cat >conftest.$ac_ext <<_ACEOF
24794 cat confdefs.h >>conftest.$ac_ext
24795 cat >>conftest.$ac_ext <<_ACEOF
24796 /* end confdefs.h. */
24800 /* Are we little or big endian? From Harbison&Steele. */
24804 char c[sizeof (long)];
24807 exit (u.c[sizeof (long) - 1] == 1);
24810 rm -f conftest$ac_exeext
24811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24812 (eval $ac_link) 2>&5
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24817 (eval $ac_try) 2>&5
24819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820 (exit $ac_status); }; }; then
24821 ac_cv_c_bigendian=no
24823 echo "$as_me: program exited with status $ac_status" >&5
24824 echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24827 ( exit $ac_status )
24828 ac_cv_c_bigendian=yes
24830 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24835 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24836 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
24837 case $ac_cv_c_bigendian in
24840 cat >>confdefs.h <<\_ACEOF
24841 #define WORDS_BIGENDIAN 1
24847 { { echo "$as_me:$LINENO: error: unknown endianness
24848 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
24849 echo "$as_me: error: unknown endianness
24850 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
24851 { (exit 1); exit 1; }; } ;;
24854 echo "$as_me:$LINENO: checking for size_t" >&5
24855 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
24856 if test "${ac_cv_type_size_t+set}" = set; then
24857 echo $ECHO_N "(cached) $ECHO_C" >&6
24859 cat >conftest.$ac_ext <<_ACEOF
24862 cat confdefs.h >>conftest.$ac_ext
24863 cat >>conftest.$ac_ext <<_ACEOF
24864 /* end confdefs.h. */
24865 $ac_includes_default
24871 if (sizeof (size_t))
24877 rm -f conftest.$ac_objext
24878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24879 (eval $ac_compile) 2>conftest.er1
24881 grep -v '^ *+' conftest.er1 >conftest.err
24883 cat conftest.err >&5
24884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885 (exit $ac_status); } &&
24886 { ac_try='test -z "$ac_c_werror_flag"
24887 || test ! -s conftest.err'
24888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24889 (eval $ac_try) 2>&5
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); }; } &&
24893 { ac_try='test -s conftest.$ac_objext'
24894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24895 (eval $ac_try) 2>&5
24897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898 (exit $ac_status); }; }; then
24899 ac_cv_type_size_t=yes
24901 echo "$as_me: failed program was:" >&5
24902 sed 's/^/| /' conftest.$ac_ext >&5
24904 ac_cv_type_size_t=no
24906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24908 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24909 echo "${ECHO_T}$ac_cv_type_size_t" >&6
24910 if test $ac_cv_type_size_t = yes; then
24914 cat >>confdefs.h <<_ACEOF
24915 #define size_t unsigned
24920 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24921 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
24922 if test "${ac_cv_header_time+set}" = set; then
24923 echo $ECHO_N "(cached) $ECHO_C" >&6
24925 cat >conftest.$ac_ext <<_ACEOF
24928 cat confdefs.h >>conftest.$ac_ext
24929 cat >>conftest.$ac_ext <<_ACEOF
24930 /* end confdefs.h. */
24931 #include <sys/types.h>
24932 #include <sys/time.h>
24938 if ((struct tm *) 0)
24944 rm -f conftest.$ac_objext
24945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24946 (eval $ac_compile) 2>conftest.er1
24948 grep -v '^ *+' conftest.er1 >conftest.err
24950 cat conftest.err >&5
24951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952 (exit $ac_status); } &&
24953 { ac_try='test -z "$ac_c_werror_flag"
24954 || test ! -s conftest.err'
24955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24956 (eval $ac_try) 2>&5
24958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959 (exit $ac_status); }; } &&
24960 { ac_try='test -s conftest.$ac_objext'
24961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24962 (eval $ac_try) 2>&5
24964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965 (exit $ac_status); }; }; then
24966 ac_cv_header_time=yes
24968 echo "$as_me: failed program was:" >&5
24969 sed 's/^/| /' conftest.$ac_ext >&5
24971 ac_cv_header_time=no
24973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24975 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24976 echo "${ECHO_T}$ac_cv_header_time" >&6
24977 if test $ac_cv_header_time = yes; then
24979 cat >>confdefs.h <<\_ACEOF
24980 #define TIME_WITH_SYS_TIME 1
24985 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
24986 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
24987 if test "${ac_cv_header_sys_wait_h+set}" = set; then
24988 echo $ECHO_N "(cached) $ECHO_C" >&6
24990 cat >conftest.$ac_ext <<_ACEOF
24993 cat confdefs.h >>conftest.$ac_ext
24994 cat >>conftest.$ac_ext <<_ACEOF
24995 /* end confdefs.h. */
24996 #include <sys/types.h>
24997 #include <sys/wait.h>
24998 #ifndef WEXITSTATUS
24999 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25002 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25010 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25015 rm -f conftest.$ac_objext
25016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25017 (eval $ac_compile) 2>conftest.er1
25019 grep -v '^ *+' conftest.er1 >conftest.err
25021 cat conftest.err >&5
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); } &&
25024 { ac_try='test -z "$ac_c_werror_flag"
25025 || test ! -s conftest.err'
25026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027 (eval $ac_try) 2>&5
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); }; } &&
25031 { ac_try='test -s conftest.$ac_objext'
25032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25033 (eval $ac_try) 2>&5
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); }; }; then
25037 ac_cv_header_sys_wait_h=yes
25039 echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25042 ac_cv_header_sys_wait_h=no
25044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25046 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25047 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25048 if test $ac_cv_header_sys_wait_h = yes; then
25050 cat >>confdefs.h <<\_ACEOF
25051 #define HAVE_SYS_WAIT_H 1
25056 echo "$as_me:$LINENO: checking for socklen_t" >&5
25057 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
25058 if test "${ac_cv_type_socklen_t+set}" = set; then
25059 echo $ECHO_N "(cached) $ECHO_C" >&6
25062 cat >conftest.$ac_ext <<_ACEOF
25065 cat confdefs.h >>conftest.$ac_ext
25066 cat >>conftest.$ac_ext <<_ACEOF
25067 /* end confdefs.h. */
25068 #include <sys/types.h>
25069 #include <sys/socket.h>
25073 socklen_t len = 42; return 0;
25078 rm -f conftest.$ac_objext
25079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25080 (eval $ac_compile) 2>conftest.er1
25082 grep -v '^ *+' conftest.er1 >conftest.err
25084 cat conftest.err >&5
25085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086 (exit $ac_status); } &&
25087 { ac_try='test -z "$ac_c_werror_flag"
25088 || test ! -s conftest.err'
25089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25090 (eval $ac_try) 2>&5
25092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093 (exit $ac_status); }; } &&
25094 { ac_try='test -s conftest.$ac_objext'
25095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25096 (eval $ac_try) 2>&5
25098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099 (exit $ac_status); }; }; then
25100 ac_cv_type_socklen_t=yes
25102 echo "$as_me: failed program was:" >&5
25103 sed 's/^/| /' conftest.$ac_ext >&5
25105 ac_cv_type_socklen_t=no
25107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25110 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25111 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
25112 if test $ac_cv_type_socklen_t != yes; then
25113 cat >>confdefs.h <<\_ACEOF
25114 #define socklen_t int
25119 if test ! -d ./rfb; then
25120 echo "creating subdir ./rfb for rfbint.h"
25123 # ------ AC CREATE STDINT H -------------------------------------
25124 echo "$as_me:$LINENO: checking for stdint-types...." >&5
25125 echo $ECHO_N "checking for stdint-types....... $ECHO_C" >&6
25126 ac_stdint_h=`echo rfb/rfbint.h`
25127 if test "$ac_stdint_h" = "stdint.h" ; then
25128 echo "$as_me:$LINENO: result: \"(are you sure you want them in ./stdint.h?)\"" >&5
25129 echo "${ECHO_T}\"(are you sure you want them in ./stdint.h?)\"" >&6
25130 elif test "$ac_stdint_h" = "inttypes.h" ; then
25131 echo "$as_me:$LINENO: result: \"(are you sure you want them in ./inttypes.h?)\"" >&5
25132 echo "${ECHO_T}\"(are you sure you want them in ./inttypes.h?)\"" >&6
25134 echo "$as_me:$LINENO: result: \"(putting them into $ac_stdint_h)\"" >&5
25135 echo "${ECHO_T}\"(putting them into $ac_stdint_h)\"" >&6
25138 inttype_headers=`echo inttypes.h sys/inttypes.h sys/inttypes.h \
25139 | sed -e 's/,/ /g'`
25141 ac_cv_header_stdint_x="no-file"
25142 ac_cv_header_stdint_o="no-file"
25143 ac_cv_header_stdint_u="no-file"
25144 for i in stdint.h $inttype_headers ; do
25145 unset ac_cv_type_uintptr_t
25146 unset ac_cv_type_uint64_t
25147 echo "$as_me:$LINENO: checking for uintptr_t" >&5
25148 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
25149 if test "${ac_cv_type_uintptr_t+set}" = set; then
25150 echo $ECHO_N "(cached) $ECHO_C" >&6
25152 cat >conftest.$ac_ext <<_ACEOF
25155 cat confdefs.h >>conftest.$ac_ext
25156 cat >>conftest.$ac_ext <<_ACEOF
25157 /* end confdefs.h. */
25163 if ((uintptr_t *) 0)
25165 if (sizeof (uintptr_t))
25171 rm -f conftest.$ac_objext
25172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25173 (eval $ac_compile) 2>conftest.er1
25175 grep -v '^ *+' conftest.er1 >conftest.err
25177 cat conftest.err >&5
25178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179 (exit $ac_status); } &&
25180 { ac_try='test -z "$ac_c_werror_flag"
25181 || test ! -s conftest.err'
25182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25183 (eval $ac_try) 2>&5
25185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25186 (exit $ac_status); }; } &&
25187 { ac_try='test -s conftest.$ac_objext'
25188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25189 (eval $ac_try) 2>&5
25191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192 (exit $ac_status); }; }; then
25193 ac_cv_type_uintptr_t=yes
25195 echo "$as_me: failed program was:" >&5
25196 sed 's/^/| /' conftest.$ac_ext >&5
25198 ac_cv_type_uintptr_t=no
25200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25202 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
25203 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
25204 if test $ac_cv_type_uintptr_t = yes; then
25205 ac_cv_header_stdint_x=$i
25210 echo "$as_me:$LINENO: checking for uint64_t" >&5
25211 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
25212 if test "${ac_cv_type_uint64_t+set}" = set; then
25213 echo $ECHO_N "(cached) $ECHO_C" >&6
25215 cat >conftest.$ac_ext <<_ACEOF
25218 cat confdefs.h >>conftest.$ac_ext
25219 cat >>conftest.$ac_ext <<_ACEOF
25220 /* end confdefs.h. */
25226 if ((uint64_t *) 0)
25228 if (sizeof (uint64_t))
25234 rm -f conftest.$ac_objext
25235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25236 (eval $ac_compile) 2>conftest.er1
25238 grep -v '^ *+' conftest.er1 >conftest.err
25240 cat conftest.err >&5
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); } &&
25243 { ac_try='test -z "$ac_c_werror_flag"
25244 || test ! -s conftest.err'
25245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25246 (eval $ac_try) 2>&5
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); }; } &&
25250 { ac_try='test -s conftest.$ac_objext'
25251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25252 (eval $ac_try) 2>&5
25254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255 (exit $ac_status); }; }; then
25256 ac_cv_type_uint64_t=yes
25258 echo "$as_me: failed program was:" >&5
25259 sed 's/^/| /' conftest.$ac_ext >&5
25261 ac_cv_type_uint64_t=no
25263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25265 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
25266 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
25267 if test $ac_cv_type_uint64_t = yes; then
25268 and64="(uint64_t too)"
25273 echo "$as_me:$LINENO: result: ... seen our uintptr_t in $i $and64" >&5
25274 echo "${ECHO_T}... seen our uintptr_t in $i $and64" >&6
25277 if test "$ac_cv_header_stdint_x" = "no-file" ; then
25278 for i in stdint.h $inttype_headers ; do
25279 unset ac_cv_type_uint32_t
25280 unset ac_cv_type_uint64_t
25281 echo "$as_me:$LINENO: checking for uint32_t" >&5
25282 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
25283 if test "${ac_cv_type_uint32_t+set}" = set; then
25284 echo $ECHO_N "(cached) $ECHO_C" >&6
25286 cat >conftest.$ac_ext <<_ACEOF
25289 cat confdefs.h >>conftest.$ac_ext
25290 cat >>conftest.$ac_ext <<_ACEOF
25291 /* end confdefs.h. */
25297 if ((uint32_t *) 0)
25299 if (sizeof (uint32_t))
25305 rm -f conftest.$ac_objext
25306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25307 (eval $ac_compile) 2>conftest.er1
25309 grep -v '^ *+' conftest.er1 >conftest.err
25311 cat conftest.err >&5
25312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313 (exit $ac_status); } &&
25314 { ac_try='test -z "$ac_c_werror_flag"
25315 || test ! -s conftest.err'
25316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25317 (eval $ac_try) 2>&5
25319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320 (exit $ac_status); }; } &&
25321 { ac_try='test -s conftest.$ac_objext'
25322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25323 (eval $ac_try) 2>&5
25325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); }; }; then
25327 ac_cv_type_uint32_t=yes
25329 echo "$as_me: failed program was:" >&5
25330 sed 's/^/| /' conftest.$ac_ext >&5
25332 ac_cv_type_uint32_t=no
25334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25336 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
25337 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
25338 if test $ac_cv_type_uint32_t = yes; then
25339 ac_cv_header_stdint_o=$i
25344 echo "$as_me:$LINENO: checking for uint64_t" >&5
25345 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
25346 if test "${ac_cv_type_uint64_t+set}" = set; then
25347 echo $ECHO_N "(cached) $ECHO_C" >&6
25349 cat >conftest.$ac_ext <<_ACEOF
25352 cat confdefs.h >>conftest.$ac_ext
25353 cat >>conftest.$ac_ext <<_ACEOF
25354 /* end confdefs.h. */
25360 if ((uint64_t *) 0)
25362 if (sizeof (uint64_t))
25368 rm -f conftest.$ac_objext
25369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25370 (eval $ac_compile) 2>conftest.er1
25372 grep -v '^ *+' conftest.er1 >conftest.err
25374 cat conftest.err >&5
25375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); } &&
25377 { ac_try='test -z "$ac_c_werror_flag"
25378 || test ! -s conftest.err'
25379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25380 (eval $ac_try) 2>&5
25382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383 (exit $ac_status); }; } &&
25384 { ac_try='test -s conftest.$ac_objext'
25385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25386 (eval $ac_try) 2>&5
25388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389 (exit $ac_status); }; }; then
25390 ac_cv_type_uint64_t=yes
25392 echo "$as_me: failed program was:" >&5
25393 sed 's/^/| /' conftest.$ac_ext >&5
25395 ac_cv_type_uint64_t=no
25397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25399 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
25400 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
25401 if test $ac_cv_type_uint64_t = yes; then
25402 and64="(uint64_t too)"
25407 echo "$as_me:$LINENO: result: ... seen our uint32_t in $i $and64" >&5
25408 echo "${ECHO_T}... seen our uint32_t in $i $and64" >&6
25411 if test "$ac_cv_header_stdint_o" = "no-file" ; then
25412 for i in sys/types.h $inttype_headers ; do
25413 unset ac_cv_type_u_int32_t
25414 unset ac_cv_type_u_int64_t
25415 echo "$as_me:$LINENO: checking for u_int32_t" >&5
25416 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
25417 if test "${ac_cv_type_u_int32_t+set}" = set; then
25418 echo $ECHO_N "(cached) $ECHO_C" >&6
25420 cat >conftest.$ac_ext <<_ACEOF
25423 cat confdefs.h >>conftest.$ac_ext
25424 cat >>conftest.$ac_ext <<_ACEOF
25425 /* end confdefs.h. */
25431 if ((u_int32_t *) 0)
25433 if (sizeof (u_int32_t))
25439 rm -f conftest.$ac_objext
25440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25441 (eval $ac_compile) 2>conftest.er1
25443 grep -v '^ *+' conftest.er1 >conftest.err
25445 cat conftest.err >&5
25446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25447 (exit $ac_status); } &&
25448 { ac_try='test -z "$ac_c_werror_flag"
25449 || test ! -s conftest.err'
25450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25451 (eval $ac_try) 2>&5
25453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454 (exit $ac_status); }; } &&
25455 { ac_try='test -s conftest.$ac_objext'
25456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457 (eval $ac_try) 2>&5
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }; }; then
25461 ac_cv_type_u_int32_t=yes
25463 echo "$as_me: failed program was:" >&5
25464 sed 's/^/| /' conftest.$ac_ext >&5
25466 ac_cv_type_u_int32_t=no
25468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25470 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
25471 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
25472 if test $ac_cv_type_u_int32_t = yes; then
25473 ac_cv_header_stdint_u=$i
25478 echo "$as_me:$LINENO: checking for uint64_t" >&5
25479 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
25480 if test "${ac_cv_type_uint64_t+set}" = set; then
25481 echo $ECHO_N "(cached) $ECHO_C" >&6
25483 cat >conftest.$ac_ext <<_ACEOF
25486 cat confdefs.h >>conftest.$ac_ext
25487 cat >>conftest.$ac_ext <<_ACEOF
25488 /* end confdefs.h. */
25494 if ((uint64_t *) 0)
25496 if (sizeof (uint64_t))
25502 rm -f conftest.$ac_objext
25503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25504 (eval $ac_compile) 2>conftest.er1
25506 grep -v '^ *+' conftest.er1 >conftest.err
25508 cat conftest.err >&5
25509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); } &&
25511 { ac_try='test -z "$ac_c_werror_flag"
25512 || test ! -s conftest.err'
25513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25514 (eval $ac_try) 2>&5
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); }; } &&
25518 { ac_try='test -s conftest.$ac_objext'
25519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25520 (eval $ac_try) 2>&5
25522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523 (exit $ac_status); }; }; then
25524 ac_cv_type_uint64_t=yes
25526 echo "$as_me: failed program was:" >&5
25527 sed 's/^/| /' conftest.$ac_ext >&5
25529 ac_cv_type_uint64_t=no
25531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25533 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
25534 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
25535 if test $ac_cv_type_uint64_t = yes; then
25536 and64="(u_int64_t too)"
25541 echo "$as_me:$LINENO: result: ... seen our u_int32_t in $i $and64" >&5
25542 echo "${ECHO_T}... seen our u_int32_t in $i $and64" >&6
25548 # ----------------- DONE inttypes.h checks MAYBE C basic types --------
25550 if test "$ac_cv_header_stdint_x" = "no-file" ; then
25551 echo "$as_me:$LINENO: checking size of char" >&5
25552 echo $ECHO_N "checking size of char... $ECHO_C" >&6
25553 if test "${ac_cv_sizeof_char+set}" = set; then
25554 echo $ECHO_N "(cached) $ECHO_C" >&6
25556 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
25557 cat >conftest.$ac_ext <<_ACEOF
25560 cat confdefs.h >>conftest.$ac_ext
25561 cat >>conftest.$ac_ext <<_ACEOF
25562 /* end confdefs.h. */
25563 #include "confdefs.h"
25564 #include <sys/types.h>
25570 switch (0) case 0: case (sizeof (char) == $ac_size):;
25575 rm -f conftest.$ac_objext
25576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25577 (eval $ac_compile) 2>conftest.er1
25579 grep -v '^ *+' conftest.er1 >conftest.err
25581 cat conftest.err >&5
25582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); } &&
25584 { ac_try='test -z "$ac_c_werror_flag"
25585 || test ! -s conftest.err'
25586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25587 (eval $ac_try) 2>&5
25589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590 (exit $ac_status); }; } &&
25591 { ac_try='test -s conftest.$ac_objext'
25592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25593 (eval $ac_try) 2>&5
25595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 (exit $ac_status); }; }; then
25597 ac_cv_sizeof_char=$ac_size
25599 echo "$as_me: failed program was:" >&5
25600 sed 's/^/| /' conftest.$ac_ext >&5
25603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25604 if test x$ac_cv_sizeof_char != x ; then break; fi
25609 if test x$ac_cv_sizeof_char = x ; then
25610 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
25611 echo "$as_me: error: cannot determine a size for char" >&2;}
25612 { (exit 1); exit 1; }; }
25614 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
25615 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
25617 cat >>confdefs.h <<_ACEOF
25618 #define SIZEOF_CHAR $ac_cv_sizeof_char
25622 echo "$as_me:$LINENO: checking size of short" >&5
25623 echo $ECHO_N "checking size of short... $ECHO_C" >&6
25624 if test "${ac_cv_sizeof_short+set}" = set; then
25625 echo $ECHO_N "(cached) $ECHO_C" >&6
25627 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
25628 cat >conftest.$ac_ext <<_ACEOF
25631 cat confdefs.h >>conftest.$ac_ext
25632 cat >>conftest.$ac_ext <<_ACEOF
25633 /* end confdefs.h. */
25634 #include "confdefs.h"
25635 #include <sys/types.h>
25641 switch (0) case 0: case (sizeof (short) == $ac_size):;
25646 rm -f conftest.$ac_objext
25647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25648 (eval $ac_compile) 2>conftest.er1
25650 grep -v '^ *+' conftest.er1 >conftest.err
25652 cat conftest.err >&5
25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); } &&
25655 { ac_try='test -z "$ac_c_werror_flag"
25656 || test ! -s conftest.err'
25657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25658 (eval $ac_try) 2>&5
25660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661 (exit $ac_status); }; } &&
25662 { ac_try='test -s conftest.$ac_objext'
25663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25664 (eval $ac_try) 2>&5
25666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667 (exit $ac_status); }; }; then
25668 ac_cv_sizeof_short=$ac_size
25670 echo "$as_me: failed program was:" >&5
25671 sed 's/^/| /' conftest.$ac_ext >&5
25674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25675 if test x$ac_cv_sizeof_short != x ; then break; fi
25680 if test x$ac_cv_sizeof_short = x ; then
25681 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
25682 echo "$as_me: error: cannot determine a size for short" >&2;}
25683 { (exit 1); exit 1; }; }
25685 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
25686 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
25688 cat >>confdefs.h <<_ACEOF
25689 #define SIZEOF_SHORT $ac_cv_sizeof_short
25693 echo "$as_me:$LINENO: checking size of int" >&5
25694 echo $ECHO_N "checking size of int... $ECHO_C" >&6
25695 if test "${ac_cv_sizeof_int+set}" = set; then
25696 echo $ECHO_N "(cached) $ECHO_C" >&6
25698 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
25699 cat >conftest.$ac_ext <<_ACEOF
25702 cat confdefs.h >>conftest.$ac_ext
25703 cat >>conftest.$ac_ext <<_ACEOF
25704 /* end confdefs.h. */
25705 #include "confdefs.h"
25706 #include <sys/types.h>
25712 switch (0) case 0: case (sizeof (int) == $ac_size):;
25717 rm -f conftest.$ac_objext
25718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25719 (eval $ac_compile) 2>conftest.er1
25721 grep -v '^ *+' conftest.er1 >conftest.err
25723 cat conftest.err >&5
25724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725 (exit $ac_status); } &&
25726 { ac_try='test -z "$ac_c_werror_flag"
25727 || test ! -s conftest.err'
25728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25729 (eval $ac_try) 2>&5
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); }; } &&
25733 { ac_try='test -s conftest.$ac_objext'
25734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25735 (eval $ac_try) 2>&5
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); }; }; then
25739 ac_cv_sizeof_int=$ac_size
25741 echo "$as_me: failed program was:" >&5
25742 sed 's/^/| /' conftest.$ac_ext >&5
25745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25746 if test x$ac_cv_sizeof_int != x ; then break; fi
25751 if test x$ac_cv_sizeof_int = x ; then
25752 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
25753 echo "$as_me: error: cannot determine a size for int" >&2;}
25754 { (exit 1); exit 1; }; }
25756 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
25757 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
25759 cat >>confdefs.h <<_ACEOF
25760 #define SIZEOF_INT $ac_cv_sizeof_int
25764 echo "$as_me:$LINENO: checking size of long" >&5
25765 echo $ECHO_N "checking size of long... $ECHO_C" >&6
25766 if test "${ac_cv_sizeof_long+set}" = set; then
25767 echo $ECHO_N "(cached) $ECHO_C" >&6
25769 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
25770 cat >conftest.$ac_ext <<_ACEOF
25773 cat confdefs.h >>conftest.$ac_ext
25774 cat >>conftest.$ac_ext <<_ACEOF
25775 /* end confdefs.h. */
25776 #include "confdefs.h"
25777 #include <sys/types.h>
25783 switch (0) case 0: case (sizeof (long) == $ac_size):;
25788 rm -f conftest.$ac_objext
25789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25790 (eval $ac_compile) 2>conftest.er1
25792 grep -v '^ *+' conftest.er1 >conftest.err
25794 cat conftest.err >&5
25795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796 (exit $ac_status); } &&
25797 { ac_try='test -z "$ac_c_werror_flag"
25798 || test ! -s conftest.err'
25799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25800 (eval $ac_try) 2>&5
25802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803 (exit $ac_status); }; } &&
25804 { ac_try='test -s conftest.$ac_objext'
25805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25806 (eval $ac_try) 2>&5
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); }; }; then
25810 ac_cv_sizeof_long=$ac_size
25812 echo "$as_me: failed program was:" >&5
25813 sed 's/^/| /' conftest.$ac_ext >&5
25816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25817 if test x$ac_cv_sizeof_long != x ; then break; fi
25822 if test x$ac_cv_sizeof_long = x ; then
25823 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
25824 echo "$as_me: error: cannot determine a size for long" >&2;}
25825 { (exit 1); exit 1; }; }
25827 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25828 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
25830 cat >>confdefs.h <<_ACEOF
25831 #define SIZEOF_LONG $ac_cv_sizeof_long
25835 echo "$as_me:$LINENO: checking size of void*" >&5
25836 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
25837 if test "${ac_cv_sizeof_voidp+set}" = set; then
25838 echo $ECHO_N "(cached) $ECHO_C" >&6
25840 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
25841 cat >conftest.$ac_ext <<_ACEOF
25844 cat confdefs.h >>conftest.$ac_ext
25845 cat >>conftest.$ac_ext <<_ACEOF
25846 /* end confdefs.h. */
25847 #include "confdefs.h"
25848 #include <sys/types.h>
25854 switch (0) case 0: case (sizeof (void*) == $ac_size):;
25859 rm -f conftest.$ac_objext
25860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25861 (eval $ac_compile) 2>conftest.er1
25863 grep -v '^ *+' conftest.er1 >conftest.err
25865 cat conftest.err >&5
25866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867 (exit $ac_status); } &&
25868 { ac_try='test -z "$ac_c_werror_flag"
25869 || test ! -s conftest.err'
25870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25871 (eval $ac_try) 2>&5
25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); }; } &&
25875 { ac_try='test -s conftest.$ac_objext'
25876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25877 (eval $ac_try) 2>&5
25879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880 (exit $ac_status); }; }; then
25881 ac_cv_sizeof_voidp=$ac_size
25883 echo "$as_me: failed program was:" >&5
25884 sed 's/^/| /' conftest.$ac_ext >&5
25887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25888 if test x$ac_cv_sizeof_voidp != x ; then break; fi
25893 if test x$ac_cv_sizeof_voidp = x ; then
25894 { { echo "$as_me:$LINENO: error: cannot determine a size for void*" >&5
25895 echo "$as_me: error: cannot determine a size for void*" >&2;}
25896 { (exit 1); exit 1; }; }
25898 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
25899 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
25901 cat >>confdefs.h <<_ACEOF
25902 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
25906 ac_cv_header_stdint_test="yes"
25908 ac_cv_header_stdint_test="no"
25911 # ----------------- DONE inttypes.h checks START header -------------
25912 _ac_stdint_h=`echo "_$ac_stdint_h" | $as_tr_cpp`
25913 echo "$as_me:$LINENO: result: creating $ac_stdint_h : $_ac_stdint_h" >&5
25914 echo "${ECHO_T}creating $ac_stdint_h : $_ac_stdint_h" >&6
25915 echo "#ifndef" $_ac_stdint_h >$ac_stdint_h
25916 echo "#define" $_ac_stdint_h "1" >>$ac_stdint_h
25917 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint_h
25918 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint_h
25919 if test "$GCC" = "yes" ; then
25920 echo "/* generated using a gnu compiler version" `$CC --version` "*/" \
25923 echo "/* generated using $CC */" >>$ac_stdint_h
25925 echo "" >>$ac_stdint_h
25927 if test "$ac_cv_header_stdint_x" != "no-file" ; then
25928 ac_cv_header_stdint="$ac_cv_header_stdint_x"
25929 elif test "$ac_cv_header_stdint_o" != "no-file" ; then
25930 ac_cv_header_stdint="$ac_cv_header_stdint_o"
25931 elif test "$ac_cv_header_stdint_u" != "no-file" ; then
25932 ac_cv_header_stdint="$ac_cv_header_stdint_u"
25934 ac_cv_header_stdint="stddef.h"
25937 # ----------------- See if int_least and int_fast types are present
25938 unset ac_cv_type_int_least32_t
25939 unset ac_cv_type_int_fast32_t
25940 echo "$as_me:$LINENO: checking for int_least32_t" >&5
25941 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
25942 if test "${ac_cv_type_int_least32_t+set}" = set; then
25943 echo $ECHO_N "(cached) $ECHO_C" >&6
25945 cat >conftest.$ac_ext <<_ACEOF
25948 cat confdefs.h >>conftest.$ac_ext
25949 cat >>conftest.$ac_ext <<_ACEOF
25950 /* end confdefs.h. */
25951 #include <$ac_cv_header_stdint>
25956 if ((int_least32_t *) 0)
25958 if (sizeof (int_least32_t))
25964 rm -f conftest.$ac_objext
25965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25966 (eval $ac_compile) 2>conftest.er1
25968 grep -v '^ *+' conftest.er1 >conftest.err
25970 cat conftest.err >&5
25971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972 (exit $ac_status); } &&
25973 { ac_try='test -z "$ac_c_werror_flag"
25974 || test ! -s conftest.err'
25975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25976 (eval $ac_try) 2>&5
25978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); }; } &&
25980 { ac_try='test -s conftest.$ac_objext'
25981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25982 (eval $ac_try) 2>&5
25984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985 (exit $ac_status); }; }; then
25986 ac_cv_type_int_least32_t=yes
25988 echo "$as_me: failed program was:" >&5
25989 sed 's/^/| /' conftest.$ac_ext >&5
25991 ac_cv_type_int_least32_t=no
25993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25995 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
25996 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
25998 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
25999 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
26000 if test "${ac_cv_type_int_fast32_t+set}" = set; then
26001 echo $ECHO_N "(cached) $ECHO_C" >&6
26003 cat >conftest.$ac_ext <<_ACEOF
26006 cat confdefs.h >>conftest.$ac_ext
26007 cat >>conftest.$ac_ext <<_ACEOF
26008 /* end confdefs.h. */
26009 #include<$ac_cv_header_stdint>
26014 if ((int_fast32_t *) 0)
26016 if (sizeof (int_fast32_t))
26022 rm -f conftest.$ac_objext
26023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26024 (eval $ac_compile) 2>conftest.er1
26026 grep -v '^ *+' conftest.er1 >conftest.err
26028 cat conftest.err >&5
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); } &&
26031 { ac_try='test -z "$ac_c_werror_flag"
26032 || test ! -s conftest.err'
26033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26034 (eval $ac_try) 2>&5
26036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037 (exit $ac_status); }; } &&
26038 { ac_try='test -s conftest.$ac_objext'
26039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26040 (eval $ac_try) 2>&5
26042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); }; }; then
26044 ac_cv_type_int_fast32_t=yes
26046 echo "$as_me: failed program was:" >&5
26047 sed 's/^/| /' conftest.$ac_ext >&5
26049 ac_cv_type_int_fast32_t=no
26051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26053 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
26054 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
26057 if test "$ac_cv_header_stdint" != "stddef.h" ; then
26058 if test "$ac_cv_header_stdint" != "stdint.h" ; then
26059 echo "$as_me:$LINENO: result: ..adding include stddef.h" >&5
26060 echo "${ECHO_T}..adding include stddef.h" >&6
26061 echo "#include <stddef.h>" >>$ac_stdint_h
26063 echo "$as_me:$LINENO: result: ..adding include $ac_cv_header_stdint" >&5
26064 echo "${ECHO_T}..adding include $ac_cv_header_stdint" >&6
26065 echo "#include <$ac_cv_header_stdint>" >>$ac_stdint_h
26066 echo "" >>$ac_stdint_h
26068 # ----------------- DONE header START basic int types -------------
26069 if test "$ac_cv_header_stdint_x" = "no-file" ; then
26070 echo "$as_me:$LINENO: result: ... need to look at C basic types" >&5
26071 echo "${ECHO_T}... need to look at C basic types" >&6
26073 echo "$as_me:$LINENO: result: ... seen good stdint.h inttypes" >&5
26074 echo "${ECHO_T}... seen good stdint.h inttypes" >&6
26077 if test "$ac_cv_header_stdint_u" != "no-file" ; then
26078 echo "$as_me:$LINENO: result: ... seen bsd/sysv typedefs" >&5
26079 echo "${ECHO_T}... seen bsd/sysv typedefs" >&6
26080 cat >>$ac_stdint_h <<EOF
26082 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
26083 typedef u_int8_t uint8_t;
26084 typedef u_int16_t uint16_t;
26085 typedef u_int32_t uint32_t;
26087 cat >>$ac_stdint_h <<EOF
26089 /* glibc compatibility */
26090 #ifndef __int8_t_defined
26091 #define __int8_t_defined
26096 ac_cv_sizeof_x="$ac_cv_sizeof_char:$ac_cv_sizeof_short"
26097 ac_cv_sizeof_X="$ac_cv_sizeof_x:$ac_cv_sizeof_int"
26098 ac_cv_sizeof_X="$ac_cv_sizeof_X:$ac_cv_sizeof_voidp:$ac_cv_sizeof_long"
26099 if test "$ac_cv_header_stdint" = "stddef.h" ; then
26100 # we must guess all the basic types. Apart from byte-adressable system,
26101 # there a few 32-bit-only dsp-systems. nibble-addressable systems are way off.
26102 cat >>$ac_stdint_h <<EOF
26103 /* ------------ BITSPECIFIC INTTYPES SECTION --------------- */
26106 case "$ac_cv_sizeof_X" in
26107 1:2:2:2:4) echo "$as_me:$LINENO: result: ..adding $t normal 16-bit system" >&5
26108 echo "${ECHO_T}..adding $t normal 16-bit system" >&6
26109 cat >>$ac_stdint_h <<EOF
26110 /* a normal 16-bit system */
26111 typedef unsigned char uint8_t;
26112 typedef unsigned short uint16_t;
26113 typedef unsigned long uint32_t;
26114 #ifndef __int8_t_defined
26115 #define __int8_t_defined
26116 typedef char int8_t;
26117 typedef short int16_t;
26118 typedef long int32_t;
26122 1:2:2:4:4) echo "$as_me:$LINENO: result: ..adding $t 32-bit system derived from a 16-bit" >&5
26123 echo "${ECHO_T}..adding $t 32-bit system derived from a 16-bit" >&6
26124 cat >>$ac_stdint_h <<EOF
26125 /* a 32-bit system derived from a 16-bit */
26126 typedef unsigned char uint8_t;
26127 typedef unsigned short uint16_t;
26128 typedef unsigned int uint32_t;
26129 #ifndef __int8_t_defined
26130 #define __int8_t_defined
26131 typedef char int8_t;
26132 typedef short int16_t;
26133 typedef int int32_t;
26137 1:2:4:4:4) echo "$as_me:$LINENO: result: ..adding $t normal 32-bit system" >&5
26138 echo "${ECHO_T}..adding $t normal 32-bit system" >&6
26139 cat >>$ac_stdint_h <<EOF
26140 /* a normal 32-bit system */
26141 typedef unsigned char uint8_t;
26142 typedef unsigned short uint16_t;
26143 typedef unsigned int uint32_t;
26144 #ifndef __int8_t_defined
26145 #define __int8_t_defined
26146 typedef char int8_t;
26147 typedef short int16_t;
26148 typedef int int32_t;
26152 1:2:4:4:8) echo "$as_me:$LINENO: result: ..adding $t 32-bit system prepared for 64-bit" >&5
26153 echo "${ECHO_T}..adding $t 32-bit system prepared for 64-bit" >&6
26154 cat >>$ac_stdint_h <<EOF
26156 /* a 32-bit system prepared for 64-bit */
26157 typedef unsigned char uint8_t;
26158 typedef unsigned short uint16_t;
26159 typedef unsigned int uint32_t;
26160 #ifndef __int8_t_defined
26161 #define __int8_t_defined
26162 typedef char int8_t;
26163 typedef short int16_t;
26164 typedef int int32_t;
26168 1:2:4:8:8) echo "$as_me:$LINENO: result: ..adding $t normal 64-bit system" >&5
26169 echo "${ECHO_T}..adding $t normal 64-bit system" >&6
26170 cat >>$ac_stdint_h <<EOF
26172 /* a normal 64-bit system */
26173 typedef unsigned char uint8_t;
26174 typedef unsigned short uint16_t;
26175 typedef unsigned int uint32_t;
26176 #ifndef __int8_t_defined
26177 #define __int8_t_defined
26178 typedef char int8_t;
26179 typedef short int16_t;
26180 typedef int int32_t;
26184 1:2:4:8:4) echo "$as_me:$LINENO: result: ..adding $t 64-bit system derived from a 32-bit" >&5
26185 echo "${ECHO_T}..adding $t 64-bit system derived from a 32-bit" >&6
26186 cat >>$ac_stdint_h <<EOF
26188 /* a 64-bit system derived from a 32-bit system */
26189 typedef unsigned char uint8_t;
26190 typedef unsigned short uint16_t;
26191 typedef unsigned int uint32_t;
26192 #ifndef __int8_t_defined
26193 #define __int8_t_defined
26194 typedef char int8_t;
26195 typedef short int16_t;
26196 typedef int int32_t;
26201 { { echo "$as_me:$LINENO: error: $ac_cv_sizeof_X what is that a system? contact the author, quick! http://ac-archive.sf.net" >&5
26202 echo "$as_me: error: $ac_cv_sizeof_X what is that a system? contact the author, quick! http://ac-archive.sf.net" >&2;}
26203 { (exit 1); exit 1; }; }
26209 # ------------- DONE basic int types START int64_t types ------------
26210 if test "$ac_cv_type_uint64_t" = "yes"
26211 then echo "$as_me:$LINENO: result: ... seen good uint64_t" >&5
26212 echo "${ECHO_T}... seen good uint64_t" >&6
26213 cat >>$ac_stdint_h <<EOF
26215 /* system headers have good uint64_t */
26216 #ifndef _HAVE_UINT64_T
26217 #define _HAVE_UINT64_T
26221 elif test "$ac_cv_type_u_int64_t" = "yes"
26222 then echo "$as_me:$LINENO: result: ..adding typedef u_int64_t uint64_t" >&5
26223 echo "${ECHO_T}..adding typedef u_int64_t uint64_t" >&6
26224 cat >>$ac_stdint_h <<EOF
26226 /* system headers have an u_int64_t */
26227 #ifndef _HAVE_UINT64_T
26228 #define _HAVE_UINT64_T
26229 typedef u_int64_t uint64_t;
26232 else echo "$as_me:$LINENO: result: ..adding generic uint64_t runtime checks" >&5
26233 echo "${ECHO_T}..adding generic uint64_t runtime checks" >&6
26234 cat >>$ac_stdint_h <<EOF
26236 /* -------------------- 64 BIT GENERIC SECTION -------------------- */
26237 /* here are some common heuristics using compiler runtime specifics */
26238 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ > 199901L
26240 #ifndef _HAVE_UINT64_T
26241 #define _HAVE_UINT64_T
26242 typedef long long int64_t;
26243 typedef unsigned long long uint64_t;
26246 #elif !defined __STRICT_ANSI__
26247 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
26249 #ifndef _HAVE_UINT64_T
26250 #define _HAVE_UINT64_T
26251 typedef __int64 int64_t;
26252 typedef unsigned __int64 uint64_t;
26255 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
26257 #if !defined _NO_LONGLONG
26258 #ifndef _HAVE_UINT64_T
26259 #define _HAVE_UINT64_T
26260 typedef long long int64_t;
26261 typedef unsigned long long uint64_t;
26265 #elif defined __alpha || (defined __mips && defined _ABIN32)
26267 #if !defined _NO_LONGLONG
26268 #ifndef _HAVE_UINT64_T
26269 #define _HAVE_UINT64_T
26270 typedef long int64_t;
26271 typedef unsigned long uint64_t;
26274 /* compiler/cpu type ... or just ISO C99 */
26279 # plus a default 64-bit for systems that are likely to be 64-bit ready
26280 case "$ac_cv_sizeof_x:$ac_cv_sizeof_voidp:$ac_cv_sizeof_long" in
26281 1:2:8:8) echo "$as_me:$LINENO: result: ..adding uint64_t default" >&5
26282 echo "${ECHO_T}..adding uint64_t default" >&6
26283 cat >>$ac_stdint_h <<EOF
26285 /* seen normal 64-bit system, CC has sizeof(long and void*) == 8 bytes */
26286 #ifndef _HAVE_UINT64_T
26287 #define _HAVE_UINT64_T
26288 typedef long int64_t;
26289 typedef unsigned long uint64_t;
26293 1:2:4:8) echo "$as_me:$LINENO: result: ..adding uint64_t default" >&5
26294 echo "${ECHO_T}..adding uint64_t default" >&6
26295 cat >>$ac_stdint_h <<EOF
26297 /* seen 32-bit system prepared for 64-bit, CC has sizeof(long) == 8 bytes */
26298 #ifndef _HAVE_UINT64_T
26299 #define _HAVE_UINT64_T
26300 typedef long int64_t;
26301 typedef unsigned long uint64_t;
26305 1:2:8:4) echo "$as_me:$LINENO: result: ..adding uint64_t default" >&5
26306 echo "${ECHO_T}..adding uint64_t default" >&6
26307 cat >>$ac_stdint_h <<EOF
26309 /* seen 64-bit derived from a 32-bit, CC has sizeof(long) == 4 bytes */
26310 #ifndef _HAVE_UINT64_T
26311 #define _HAVE_UINT64_T
26312 typedef long long int64_t;
26313 typedef unsigned long long uint64_t;
26318 cat >>$ac_stdint_h <<EOF
26320 /* the configure-checks for the basic types did not make us believe */
26321 /* that we could add a fallback to a 'long long' typedef to int64_t */
26326 # ------------- DONE int64_t types START intptr types ------------
26327 if test "$ac_cv_header_stdint_x" = "no-file" ; then
26328 cat >>$ac_stdint_h <<EOF
26330 /* -------------------------- INPTR SECTION --------------------------- */
26332 case "$ac_cv_sizeof_x:$ac_cv_sizeof_voidp" in
26334 a="int16_t" ; cat >>$ac_stdint_h <<EOF
26335 /* we tested sizeof(void*) to be of 2 chars, hence we declare it 16-bit */
26337 typedef uint16_t uintptr_t;
26338 typedef int16_t intptr_t;
26342 a="int32_t" ; cat >>$ac_stdint_h <<EOF
26343 /* we tested sizeof(void*) to be of 4 chars, hence we declare it 32-bit */
26345 typedef uint32_t uintptr_t;
26346 typedef int32_t intptr_t;
26350 a="int64_t" ; cat >>$ac_stdint_h <<EOF
26351 /* we tested sizeof(void*) to be of 8 chars, hence we declare it 64-bit */
26353 typedef uint64_t uintptr_t;
26354 typedef int64_t intptr_t;
26358 a="long" ; cat >>$ac_stdint_h <<EOF
26359 /* we tested sizeof(void*) but got no guess, hence we declare it as if long */
26361 typedef unsigned long uintptr_t;
26362 typedef long intptr_t;
26366 echo "$as_me:$LINENO: result: ..adding typedef $a intptr_t" >&5
26367 echo "${ECHO_T}..adding typedef $a intptr_t" >&6
26370 # ------------- DONE intptr types START int_least types ------------
26371 if test "$ac_cv_type_int_least32_t" = "no"; then
26372 echo "$as_me:$LINENO: result: ..adding generic int_least-types" >&5
26373 echo "${ECHO_T}..adding generic int_least-types" >&6
26374 cat >>$ac_stdint_h <<EOF
26376 /* --------------GENERIC INT_LEAST ------------------ */
26378 typedef int8_t int_least8_t;
26379 typedef int16_t int_least16_t;
26380 typedef int32_t int_least32_t;
26381 #ifdef _HAVE_INT64_T
26382 typedef int64_t int_least64_t;
26385 typedef uint8_t uint_least8_t;
26386 typedef uint16_t uint_least16_t;
26387 typedef uint32_t uint_least32_t;
26388 #ifdef _HAVE_INT64_T
26389 typedef uint64_t uint_least64_t;
26394 # ------------- DONE intptr types START int_least types ------------
26395 if test "$ac_cv_type_int_fast32_t" = "no"; then
26396 echo "$as_me:$LINENO: result: ..adding generic int_fast-types" >&5
26397 echo "${ECHO_T}..adding generic int_fast-types" >&6
26398 cat >>$ac_stdint_h <<EOF
26400 /* --------------GENERIC INT_FAST ------------------ */
26402 typedef int8_t int_fast8_t;
26403 typedef int32_t int_fast16_t;
26404 typedef int32_t int_fast32_t;
26405 #ifdef _HAVE_INT64_T
26406 typedef int64_t int_fast64_t;
26409 typedef uint8_t uint_fast8_t;
26410 typedef uint32_t uint_fast16_t;
26411 typedef uint32_t uint_fast32_t;
26412 #ifdef _HAVE_INT64_T
26413 typedef uint64_t uint_fast64_t;
26418 if test "$ac_cv_header_stdint_x" = "no-file" ; then
26419 cat >>$ac_stdint_h <<EOF
26421 #ifdef _HAVE_INT64_T
26422 typedef int64_t intmax_t;
26423 typedef uint64_t uintmax_t;
26425 typedef long int intmax_t;
26426 typedef unsigned long uintmax_t;
26431 echo "$as_me:$LINENO: result: ... DONE $ac_stdint_h" >&5
26432 echo "${ECHO_T}... DONE $ac_stdint_h" >&6
26433 cat >>$ac_stdint_h <<EOF
26440 echo "$as_me:$LINENO: checking for in_addr_t" >&5
26441 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
26442 if test "${inaddrt+set}" = set; then
26443 echo $ECHO_N "(cached) $ECHO_C" >&6
26446 cat >conftest.$ac_ext <<_ACEOF
26449 cat confdefs.h >>conftest.$ac_ext
26450 cat >>conftest.$ac_ext <<_ACEOF
26451 /* end confdefs.h. */
26452 #include <sys/types.h>
26453 #include <netinet/in.h>
26457 in_addr_t foo; return 0;
26462 rm -f conftest.$ac_objext
26463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26464 (eval $ac_compile) 2>conftest.er1
26466 grep -v '^ *+' conftest.er1 >conftest.err
26468 cat conftest.err >&5
26469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26470 (exit $ac_status); } &&
26471 { ac_try='test -z "$ac_c_werror_flag"
26472 || test ! -s conftest.err'
26473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26474 (eval $ac_try) 2>&5
26476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477 (exit $ac_status); }; } &&
26478 { ac_try='test -s conftest.$ac_objext'
26479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26480 (eval $ac_try) 2>&5
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); }; }; then
26486 echo "$as_me: failed program was:" >&5
26487 sed 's/^/| /' conftest.$ac_ext >&5
26491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext,
26494 echo "$as_me:$LINENO: result: $inaddrt" >&5
26495 echo "${ECHO_T}$inaddrt" >&6
26498 if test $inaddrt = no ; then
26499 cat >>confdefs.h <<\_ACEOF
26500 #define NEED_INADDR_T 1
26505 # Checks for library functions.
26506 echo "$as_me:$LINENO: checking for working memcmp" >&5
26507 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
26508 if test "${ac_cv_func_memcmp_working+set}" = set; then
26509 echo $ECHO_N "(cached) $ECHO_C" >&6
26511 if test "$cross_compiling" = yes; then
26512 ac_cv_func_memcmp_working=no
26514 cat >conftest.$ac_ext <<_ACEOF
26517 cat confdefs.h >>conftest.$ac_ext
26518 cat >>conftest.$ac_ext <<_ACEOF
26519 /* end confdefs.h. */
26520 $ac_includes_default
26525 /* Some versions of memcmp are not 8-bit clean. */
26526 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
26527 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
26530 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
26531 or more and with at least one buffer not starting on a 4-byte boundary.
26532 William Lewis provided this test program. */
26537 for (i = 0; i < 4; i++)
26541 strcpy (a, "--------01111111");
26542 strcpy (b, "--------10000000");
26543 if (memcmp (a, b, 16) >= 0)
26553 rm -f conftest$ac_exeext
26554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26555 (eval $ac_link) 2>&5
26557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26560 (eval $ac_try) 2>&5
26562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); }; }; then
26564 ac_cv_func_memcmp_working=yes
26566 echo "$as_me: program exited with status $ac_status" >&5
26567 echo "$as_me: failed program was:" >&5
26568 sed 's/^/| /' conftest.$ac_ext >&5
26570 ( exit $ac_status )
26571 ac_cv_func_memcmp_working=no
26573 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26576 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
26577 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
26578 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
26579 "memcmp.$ac_objext" | \
26580 *" memcmp.$ac_objext" | \
26581 "memcmp.$ac_objext "* | \
26582 *" memcmp.$ac_objext "* ) ;;
26583 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
26587 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26588 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
26589 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26590 echo $ECHO_N "(cached) $ECHO_C" >&6
26592 rm -f conftest.sym conftest.file
26593 echo >conftest.file
26594 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26595 if test "$cross_compiling" = yes; then
26596 ac_cv_func_lstat_dereferences_slashed_symlink=no
26598 cat >conftest.$ac_ext <<_ACEOF
26601 cat confdefs.h >>conftest.$ac_ext
26602 cat >>conftest.$ac_ext <<_ACEOF
26603 /* end confdefs.h. */
26604 $ac_includes_default
26609 /* Linux will dereference the symlink and fail.
26610 That is better in the sense that it means we will not
26611 have to compile and use the lstat wrapper. */
26612 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
26617 rm -f conftest$ac_exeext
26618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26619 (eval $ac_link) 2>&5
26621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26624 (eval $ac_try) 2>&5
26626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627 (exit $ac_status); }; }; then
26628 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26630 echo "$as_me: program exited with status $ac_status" >&5
26631 echo "$as_me: failed program was:" >&5
26632 sed 's/^/| /' conftest.$ac_ext >&5
26634 ( exit $ac_status )
26635 ac_cv_func_lstat_dereferences_slashed_symlink=no
26637 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26640 # If the `ln -s' command failed, then we probably don't even
26641 # have an lstat function.
26642 ac_cv_func_lstat_dereferences_slashed_symlink=no
26644 rm -f conftest.sym conftest.file
26647 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26648 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
26650 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26652 cat >>confdefs.h <<_ACEOF
26653 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26657 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26659 "lstat.$ac_objext" | \
26660 *" lstat.$ac_objext" | \
26661 "lstat.$ac_objext "* | \
26662 *" lstat.$ac_objext "* ) ;;
26663 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
26668 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
26669 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
26670 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
26671 echo $ECHO_N "(cached) $ECHO_C" >&6
26673 if test "$cross_compiling" = yes; then
26674 ac_cv_func_stat_empty_string_bug=yes
26676 cat >conftest.$ac_ext <<_ACEOF
26679 cat confdefs.h >>conftest.$ac_ext
26680 cat >>conftest.$ac_ext <<_ACEOF
26681 /* end confdefs.h. */
26682 $ac_includes_default
26687 exit (stat ("", &sbuf) ? 1 : 0);
26692 rm -f conftest$ac_exeext
26693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26694 (eval $ac_link) 2>&5
26696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26699 (eval $ac_try) 2>&5
26701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702 (exit $ac_status); }; }; then
26703 ac_cv_func_stat_empty_string_bug=yes
26705 echo "$as_me: program exited with status $ac_status" >&5
26706 echo "$as_me: failed program was:" >&5
26707 sed 's/^/| /' conftest.$ac_ext >&5
26709 ( exit $ac_status )
26710 ac_cv_func_stat_empty_string_bug=no
26712 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26715 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
26716 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
26717 if test $ac_cv_func_stat_empty_string_bug = yes; then
26719 "stat.$ac_objext" | \
26720 *" stat.$ac_objext" | \
26721 "stat.$ac_objext "* | \
26722 *" stat.$ac_objext "* ) ;;
26723 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
26727 cat >>confdefs.h <<_ACEOF
26728 #define HAVE_STAT_EMPTY_STRING_BUG 1
26734 for ac_func in strftime
26736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26737 echo "$as_me:$LINENO: checking for $ac_func" >&5
26738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26739 if eval "test \"\${$as_ac_var+set}\" = set"; then
26740 echo $ECHO_N "(cached) $ECHO_C" >&6
26742 cat >conftest.$ac_ext <<_ACEOF
26745 cat confdefs.h >>conftest.$ac_ext
26746 cat >>conftest.$ac_ext <<_ACEOF
26747 /* end confdefs.h. */
26748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26750 #define $ac_func innocuous_$ac_func
26752 /* System header to define __stub macros and hopefully few prototypes,
26753 which can conflict with char $ac_func (); below.
26754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26755 <limits.h> exists even on freestanding compilers. */
26758 # include <limits.h>
26760 # include <assert.h>
26765 /* Override any gcc2 internal prototype to avoid an error. */
26770 /* We use char because int might match the return type of a gcc2
26771 builtin and then its argument prototype would still apply. */
26773 /* The GNU C library defines this for functions which it implements
26774 to always fail with ENOSYS. Some functions are actually named
26775 something starting with __ and the normal name is an alias. */
26776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26779 char (*f) () = $ac_func;
26788 return f != $ac_func;
26793 rm -f conftest.$ac_objext conftest$ac_exeext
26794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26795 (eval $ac_link) 2>conftest.er1
26797 grep -v '^ *+' conftest.er1 >conftest.err
26799 cat conftest.err >&5
26800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801 (exit $ac_status); } &&
26802 { ac_try='test -z "$ac_c_werror_flag"
26803 || test ! -s conftest.err'
26804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26805 (eval $ac_try) 2>&5
26807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808 (exit $ac_status); }; } &&
26809 { ac_try='test -s conftest$ac_exeext'
26810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26811 (eval $ac_try) 2>&5
26813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814 (exit $ac_status); }; }; then
26815 eval "$as_ac_var=yes"
26817 echo "$as_me: failed program was:" >&5
26818 sed 's/^/| /' conftest.$ac_ext >&5
26820 eval "$as_ac_var=no"
26822 rm -f conftest.err conftest.$ac_objext \
26823 conftest$ac_exeext conftest.$ac_ext
26825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26827 if test `eval echo '${'$as_ac_var'}'` = yes; then
26828 cat >>confdefs.h <<_ACEOF
26829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26833 # strftime is in -lintl on SCO UNIX.
26834 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
26835 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
26836 if test "${ac_cv_lib_intl_strftime+set}" = set; then
26837 echo $ECHO_N "(cached) $ECHO_C" >&6
26839 ac_check_lib_save_LIBS=$LIBS
26840 LIBS="-lintl $LIBS"
26841 cat >conftest.$ac_ext <<_ACEOF
26844 cat confdefs.h >>conftest.$ac_ext
26845 cat >>conftest.$ac_ext <<_ACEOF
26846 /* end confdefs.h. */
26848 /* Override any gcc2 internal prototype to avoid an error. */
26852 /* We use char because int might match the return type of a gcc2
26853 builtin and then its argument prototype would still apply. */
26863 rm -f conftest.$ac_objext conftest$ac_exeext
26864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26865 (eval $ac_link) 2>conftest.er1
26867 grep -v '^ *+' conftest.er1 >conftest.err
26869 cat conftest.err >&5
26870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); } &&
26872 { ac_try='test -z "$ac_c_werror_flag"
26873 || test ! -s conftest.err'
26874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26875 (eval $ac_try) 2>&5
26877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878 (exit $ac_status); }; } &&
26879 { ac_try='test -s conftest$ac_exeext'
26880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26881 (eval $ac_try) 2>&5
26883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884 (exit $ac_status); }; }; then
26885 ac_cv_lib_intl_strftime=yes
26887 echo "$as_me: failed program was:" >&5
26888 sed 's/^/| /' conftest.$ac_ext >&5
26890 ac_cv_lib_intl_strftime=no
26892 rm -f conftest.err conftest.$ac_objext \
26893 conftest$ac_exeext conftest.$ac_ext
26894 LIBS=$ac_check_lib_save_LIBS
26896 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
26897 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
26898 if test $ac_cv_lib_intl_strftime = yes; then
26899 cat >>confdefs.h <<\_ACEOF
26900 #define HAVE_STRFTIME 1
26903 LIBS="-lintl $LIBS"
26910 for ac_func in vprintf
26912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26913 echo "$as_me:$LINENO: checking for $ac_func" >&5
26914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26915 if eval "test \"\${$as_ac_var+set}\" = set"; then
26916 echo $ECHO_N "(cached) $ECHO_C" >&6
26918 cat >conftest.$ac_ext <<_ACEOF
26921 cat confdefs.h >>conftest.$ac_ext
26922 cat >>conftest.$ac_ext <<_ACEOF
26923 /* end confdefs.h. */
26924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26926 #define $ac_func innocuous_$ac_func
26928 /* System header to define __stub macros and hopefully few prototypes,
26929 which can conflict with char $ac_func (); below.
26930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26931 <limits.h> exists even on freestanding compilers. */
26934 # include <limits.h>
26936 # include <assert.h>
26941 /* Override any gcc2 internal prototype to avoid an error. */
26946 /* We use char because int might match the return type of a gcc2
26947 builtin and then its argument prototype would still apply. */
26949 /* The GNU C library defines this for functions which it implements
26950 to always fail with ENOSYS. Some functions are actually named
26951 something starting with __ and the normal name is an alias. */
26952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26955 char (*f) () = $ac_func;
26964 return f != $ac_func;
26969 rm -f conftest.$ac_objext conftest$ac_exeext
26970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26971 (eval $ac_link) 2>conftest.er1
26973 grep -v '^ *+' conftest.er1 >conftest.err
26975 cat conftest.err >&5
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); } &&
26978 { ac_try='test -z "$ac_c_werror_flag"
26979 || test ! -s conftest.err'
26980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26981 (eval $ac_try) 2>&5
26983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984 (exit $ac_status); }; } &&
26985 { ac_try='test -s conftest$ac_exeext'
26986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26987 (eval $ac_try) 2>&5
26989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990 (exit $ac_status); }; }; then
26991 eval "$as_ac_var=yes"
26993 echo "$as_me: failed program was:" >&5
26994 sed 's/^/| /' conftest.$ac_ext >&5
26996 eval "$as_ac_var=no"
26998 rm -f conftest.err conftest.$ac_objext \
26999 conftest$ac_exeext conftest.$ac_ext
27001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27003 if test `eval echo '${'$as_ac_var'}'` = yes; then
27004 cat >>confdefs.h <<_ACEOF
27005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27008 echo "$as_me:$LINENO: checking for _doprnt" >&5
27009 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27010 if test "${ac_cv_func__doprnt+set}" = set; then
27011 echo $ECHO_N "(cached) $ECHO_C" >&6
27013 cat >conftest.$ac_ext <<_ACEOF
27016 cat confdefs.h >>conftest.$ac_ext
27017 cat >>conftest.$ac_ext <<_ACEOF
27018 /* end confdefs.h. */
27019 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27021 #define _doprnt innocuous__doprnt
27023 /* System header to define __stub macros and hopefully few prototypes,
27024 which can conflict with char _doprnt (); below.
27025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27026 <limits.h> exists even on freestanding compilers. */
27029 # include <limits.h>
27031 # include <assert.h>
27036 /* Override any gcc2 internal prototype to avoid an error. */
27041 /* We use char because int might match the return type of a gcc2
27042 builtin and then its argument prototype would still apply. */
27044 /* The GNU C library defines this for functions which it implements
27045 to always fail with ENOSYS. Some functions are actually named
27046 something starting with __ and the normal name is an alias. */
27047 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27050 char (*f) () = _doprnt;
27059 return f != _doprnt;
27064 rm -f conftest.$ac_objext conftest$ac_exeext
27065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27066 (eval $ac_link) 2>conftest.er1
27068 grep -v '^ *+' conftest.er1 >conftest.err
27070 cat conftest.err >&5
27071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072 (exit $ac_status); } &&
27073 { ac_try='test -z "$ac_c_werror_flag"
27074 || test ! -s conftest.err'
27075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27076 (eval $ac_try) 2>&5
27078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079 (exit $ac_status); }; } &&
27080 { ac_try='test -s conftest$ac_exeext'
27081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27082 (eval $ac_try) 2>&5
27084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085 (exit $ac_status); }; }; then
27086 ac_cv_func__doprnt=yes
27088 echo "$as_me: failed program was:" >&5
27089 sed 's/^/| /' conftest.$ac_ext >&5
27091 ac_cv_func__doprnt=no
27093 rm -f conftest.err conftest.$ac_objext \
27094 conftest$ac_exeext conftest.$ac_ext
27096 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27097 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27098 if test $ac_cv_func__doprnt = yes; then
27100 cat >>confdefs.h <<\_ACEOF
27101 #define HAVE_DOPRNT 1
27110 echo "$as_me:$LINENO: checking for pid_t" >&5
27111 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27112 if test "${ac_cv_type_pid_t+set}" = set; then
27113 echo $ECHO_N "(cached) $ECHO_C" >&6
27115 cat >conftest.$ac_ext <<_ACEOF
27118 cat confdefs.h >>conftest.$ac_ext
27119 cat >>conftest.$ac_ext <<_ACEOF
27120 /* end confdefs.h. */
27121 $ac_includes_default
27127 if (sizeof (pid_t))
27133 rm -f conftest.$ac_objext
27134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27135 (eval $ac_compile) 2>conftest.er1
27137 grep -v '^ *+' conftest.er1 >conftest.err
27139 cat conftest.err >&5
27140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141 (exit $ac_status); } &&
27142 { ac_try='test -z "$ac_c_werror_flag"
27143 || test ! -s conftest.err'
27144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27145 (eval $ac_try) 2>&5
27147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148 (exit $ac_status); }; } &&
27149 { ac_try='test -s conftest.$ac_objext'
27150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27151 (eval $ac_try) 2>&5
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); }; }; then
27155 ac_cv_type_pid_t=yes
27157 echo "$as_me: failed program was:" >&5
27158 sed 's/^/| /' conftest.$ac_ext >&5
27160 ac_cv_type_pid_t=no
27162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27164 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27165 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27166 if test $ac_cv_type_pid_t = yes; then
27170 cat >>confdefs.h <<_ACEOF
27178 for ac_header in unistd.h vfork.h
27180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27182 echo "$as_me:$LINENO: checking for $ac_header" >&5
27183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27185 echo $ECHO_N "(cached) $ECHO_C" >&6
27187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27190 # Is the header compilable?
27191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27193 cat >conftest.$ac_ext <<_ACEOF
27196 cat confdefs.h >>conftest.$ac_ext
27197 cat >>conftest.$ac_ext <<_ACEOF
27198 /* end confdefs.h. */
27199 $ac_includes_default
27200 #include <$ac_header>
27202 rm -f conftest.$ac_objext
27203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27204 (eval $ac_compile) 2>conftest.er1
27206 grep -v '^ *+' conftest.er1 >conftest.err
27208 cat conftest.err >&5
27209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210 (exit $ac_status); } &&
27211 { ac_try='test -z "$ac_c_werror_flag"
27212 || test ! -s conftest.err'
27213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27214 (eval $ac_try) 2>&5
27216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27217 (exit $ac_status); }; } &&
27218 { ac_try='test -s conftest.$ac_objext'
27219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27220 (eval $ac_try) 2>&5
27222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223 (exit $ac_status); }; }; then
27224 ac_header_compiler=yes
27226 echo "$as_me: failed program was:" >&5
27227 sed 's/^/| /' conftest.$ac_ext >&5
27229 ac_header_compiler=no
27231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27233 echo "${ECHO_T}$ac_header_compiler" >&6
27235 # Is the header present?
27236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27238 cat >conftest.$ac_ext <<_ACEOF
27241 cat confdefs.h >>conftest.$ac_ext
27242 cat >>conftest.$ac_ext <<_ACEOF
27243 /* end confdefs.h. */
27244 #include <$ac_header>
27246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27249 grep -v '^ *+' conftest.er1 >conftest.err
27251 cat conftest.err >&5
27252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27253 (exit $ac_status); } >/dev/null; then
27254 if test -s conftest.err; then
27255 ac_cpp_err=$ac_c_preproc_warn_flag
27256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27263 if test -z "$ac_cpp_err"; then
27264 ac_header_preproc=yes
27266 echo "$as_me: failed program was:" >&5
27267 sed 's/^/| /' conftest.$ac_ext >&5
27269 ac_header_preproc=no
27271 rm -f conftest.err conftest.$ac_ext
27272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27273 echo "${ECHO_T}$ac_header_preproc" >&6
27275 # So? What about this header?
27276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27282 ac_header_preproc=yes
27285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27299 ## ----------------------------------------------------------- ##
27300 ## Report this to http://sourceforge.net/projects/libvncserver ##
27301 ## ----------------------------------------------------------- ##
27304 sed "s/^/$as_me: WARNING: /" >&2
27307 echo "$as_me:$LINENO: checking for $ac_header" >&5
27308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27310 echo $ECHO_N "(cached) $ECHO_C" >&6
27312 eval "$as_ac_Header=\$ac_header_preproc"
27314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27319 cat >>confdefs.h <<_ACEOF
27320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27329 for ac_func in fork vfork
27331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27332 echo "$as_me:$LINENO: checking for $ac_func" >&5
27333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27334 if eval "test \"\${$as_ac_var+set}\" = set"; then
27335 echo $ECHO_N "(cached) $ECHO_C" >&6
27337 cat >conftest.$ac_ext <<_ACEOF
27340 cat confdefs.h >>conftest.$ac_ext
27341 cat >>conftest.$ac_ext <<_ACEOF
27342 /* end confdefs.h. */
27343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27345 #define $ac_func innocuous_$ac_func
27347 /* System header to define __stub macros and hopefully few prototypes,
27348 which can conflict with char $ac_func (); below.
27349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27350 <limits.h> exists even on freestanding compilers. */
27353 # include <limits.h>
27355 # include <assert.h>
27360 /* Override any gcc2 internal prototype to avoid an error. */
27365 /* We use char because int might match the return type of a gcc2
27366 builtin and then its argument prototype would still apply. */
27368 /* The GNU C library defines this for functions which it implements
27369 to always fail with ENOSYS. Some functions are actually named
27370 something starting with __ and the normal name is an alias. */
27371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27374 char (*f) () = $ac_func;
27383 return f != $ac_func;
27388 rm -f conftest.$ac_objext conftest$ac_exeext
27389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27390 (eval $ac_link) 2>conftest.er1
27392 grep -v '^ *+' conftest.er1 >conftest.err
27394 cat conftest.err >&5
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); } &&
27397 { ac_try='test -z "$ac_c_werror_flag"
27398 || test ! -s conftest.err'
27399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27400 (eval $ac_try) 2>&5
27402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403 (exit $ac_status); }; } &&
27404 { ac_try='test -s conftest$ac_exeext'
27405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27406 (eval $ac_try) 2>&5
27408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409 (exit $ac_status); }; }; then
27410 eval "$as_ac_var=yes"
27412 echo "$as_me: failed program was:" >&5
27413 sed 's/^/| /' conftest.$ac_ext >&5
27415 eval "$as_ac_var=no"
27417 rm -f conftest.err conftest.$ac_objext \
27418 conftest$ac_exeext conftest.$ac_ext
27420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27422 if test `eval echo '${'$as_ac_var'}'` = yes; then
27423 cat >>confdefs.h <<_ACEOF
27424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27430 if test "x$ac_cv_func_fork" = xyes; then
27431 echo "$as_me:$LINENO: checking for working fork" >&5
27432 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
27433 if test "${ac_cv_func_fork_works+set}" = set; then
27434 echo $ECHO_N "(cached) $ECHO_C" >&6
27436 if test "$cross_compiling" = yes; then
27437 ac_cv_func_fork_works=cross
27439 cat >conftest.$ac_ext <<_ACEOF
27440 /* By Ruediger Kuhlmann. */
27441 #include <sys/types.h>
27443 # include <unistd.h>
27445 /* Some systems only have a dummy stub for fork() */
27453 rm -f conftest$ac_exeext
27454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27455 (eval $ac_link) 2>&5
27457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27460 (eval $ac_try) 2>&5
27462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463 (exit $ac_status); }; }; then
27464 ac_cv_func_fork_works=yes
27466 echo "$as_me: program exited with status $ac_status" >&5
27467 echo "$as_me: failed program was:" >&5
27468 sed 's/^/| /' conftest.$ac_ext >&5
27470 ( exit $ac_status )
27471 ac_cv_func_fork_works=no
27473 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27476 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
27477 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
27480 ac_cv_func_fork_works=$ac_cv_func_fork
27482 if test "x$ac_cv_func_fork_works" = xcross; then
27484 *-*-amigaos* | *-*-msdosdjgpp*)
27485 # Override, as these systems have only a dummy fork() stub
27486 ac_cv_func_fork_works=no
27489 ac_cv_func_fork_works=yes
27492 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
27493 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
27495 ac_cv_func_vfork_works=$ac_cv_func_vfork
27496 if test "x$ac_cv_func_vfork" = xyes; then
27497 echo "$as_me:$LINENO: checking for working vfork" >&5
27498 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
27499 if test "${ac_cv_func_vfork_works+set}" = set; then
27500 echo $ECHO_N "(cached) $ECHO_C" >&6
27502 if test "$cross_compiling" = yes; then
27503 ac_cv_func_vfork_works=cross
27505 cat >conftest.$ac_ext <<_ACEOF
27508 cat confdefs.h >>conftest.$ac_ext
27509 cat >>conftest.$ac_ext <<_ACEOF
27510 /* end confdefs.h. */
27511 /* Thanks to Paul Eggert for this test. */
27513 #include <stdlib.h>
27514 #include <sys/types.h>
27515 #include <sys/stat.h>
27516 #include <sys/wait.h>
27518 # include <unistd.h>
27521 # include <vfork.h>
27523 /* On some sparc systems, changes by the child to local and incoming
27524 argument registers are propagated back to the parent. The compiler
27525 is told about this with #include <vfork.h>, but some compilers
27526 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
27527 static variable whose address is put into a register that is
27528 clobbered by the vfork. */
27531 sparc_address_test (int arg)
27533 sparc_address_test (arg) int arg;
27536 static pid_t child;
27554 pid_t parent = getpid ();
27557 sparc_address_test (0);
27562 /* Here is another test for sparc vfork register problems. This
27563 test uses lots of local variables, at least as many local
27564 variables as main has allocated so far including compiler
27565 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
27566 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
27567 reuse the register of parent for one of the local variables,
27568 since it will think that parent can't possibly be used any more
27569 in this routine. Assigning to the local variable will thus
27570 munge parent in the parent process. */
27572 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
27573 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
27574 /* Convince the compiler that p..p7 are live; otherwise, it might
27575 use the same hardware register for all 8 local variables. */
27576 if (p != p1 || p != p2 || p != p3 || p != p4
27577 || p != p5 || p != p6 || p != p7)
27580 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
27581 from child file descriptors. If the child closes a descriptor
27582 before it execs or exits, this munges the parent's descriptor
27583 as well. Test for this by closing stdout in the child. */
27584 _exit(close(fileno(stdout)) != 0);
27589 while (wait(&status) != child)
27592 /* Was there some problem with vforking? */
27595 /* Did the child fail? (This shouldn't happen.) */
27598 /* Did the vfork/compiler bug occur? */
27599 || parent != getpid()
27601 /* Did the file descriptor bug occur? */
27602 || fstat(fileno(stdout), &st) != 0
27607 rm -f conftest$ac_exeext
27608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27609 (eval $ac_link) 2>&5
27611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27614 (eval $ac_try) 2>&5
27616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617 (exit $ac_status); }; }; then
27618 ac_cv_func_vfork_works=yes
27620 echo "$as_me: program exited with status $ac_status" >&5
27621 echo "$as_me: failed program was:" >&5
27622 sed 's/^/| /' conftest.$ac_ext >&5
27624 ( exit $ac_status )
27625 ac_cv_func_vfork_works=no
27627 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27630 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
27631 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
27634 if test "x$ac_cv_func_fork_works" = xcross; then
27635 ac_cv_func_vfork_works=$ac_cv_func_vfork
27636 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
27637 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
27640 if test "x$ac_cv_func_vfork_works" = xyes; then
27642 cat >>confdefs.h <<\_ACEOF
27643 #define HAVE_WORKING_VFORK 1
27648 cat >>confdefs.h <<\_ACEOF
27653 if test "x$ac_cv_func_fork_works" = xyes; then
27655 cat >>confdefs.h <<\_ACEOF
27656 #define HAVE_WORKING_FORK 1
27662 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
27663 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
27664 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
27665 echo $ECHO_N "(cached) $ECHO_C" >&6
27667 ac_check_lib_save_LIBS=$LIBS
27669 cat >conftest.$ac_ext <<_ACEOF
27672 cat confdefs.h >>conftest.$ac_ext
27673 cat >>conftest.$ac_ext <<_ACEOF
27674 /* end confdefs.h. */
27676 /* Override any gcc2 internal prototype to avoid an error. */
27680 /* We use char because int might match the return type of a gcc2
27681 builtin and then its argument prototype would still apply. */
27682 char gethostbyname ();
27691 rm -f conftest.$ac_objext conftest$ac_exeext
27692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27693 (eval $ac_link) 2>conftest.er1
27695 grep -v '^ *+' conftest.er1 >conftest.err
27697 cat conftest.err >&5
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); } &&
27700 { ac_try='test -z "$ac_c_werror_flag"
27701 || test ! -s conftest.err'
27702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27703 (eval $ac_try) 2>&5
27705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706 (exit $ac_status); }; } &&
27707 { ac_try='test -s conftest$ac_exeext'
27708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27709 (eval $ac_try) 2>&5
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); }; }; then
27713 ac_cv_lib_nsl_gethostbyname=yes
27715 echo "$as_me: failed program was:" >&5
27716 sed 's/^/| /' conftest.$ac_ext >&5
27718 ac_cv_lib_nsl_gethostbyname=no
27720 rm -f conftest.err conftest.$ac_objext \
27721 conftest$ac_exeext conftest.$ac_ext
27722 LIBS=$ac_check_lib_save_LIBS
27724 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
27725 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
27726 if test $ac_cv_lib_nsl_gethostbyname = yes; then
27727 cat >>confdefs.h <<_ACEOF
27728 #define HAVE_LIBNSL 1
27736 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
27737 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
27738 if test "${ac_cv_lib_socket_socket+set}" = set; then
27739 echo $ECHO_N "(cached) $ECHO_C" >&6
27741 ac_check_lib_save_LIBS=$LIBS
27742 LIBS="-lsocket $LIBS"
27743 cat >conftest.$ac_ext <<_ACEOF
27746 cat confdefs.h >>conftest.$ac_ext
27747 cat >>conftest.$ac_ext <<_ACEOF
27748 /* end confdefs.h. */
27750 /* Override any gcc2 internal prototype to avoid an error. */
27754 /* We use char because int might match the return type of a gcc2
27755 builtin and then its argument prototype would still apply. */
27765 rm -f conftest.$ac_objext conftest$ac_exeext
27766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27767 (eval $ac_link) 2>conftest.er1
27769 grep -v '^ *+' conftest.er1 >conftest.err
27771 cat conftest.err >&5
27772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773 (exit $ac_status); } &&
27774 { ac_try='test -z "$ac_c_werror_flag"
27775 || test ! -s conftest.err'
27776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27777 (eval $ac_try) 2>&5
27779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27780 (exit $ac_status); }; } &&
27781 { ac_try='test -s conftest$ac_exeext'
27782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27783 (eval $ac_try) 2>&5
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); }; }; then
27787 ac_cv_lib_socket_socket=yes
27789 echo "$as_me: failed program was:" >&5
27790 sed 's/^/| /' conftest.$ac_ext >&5
27792 ac_cv_lib_socket_socket=no
27794 rm -f conftest.err conftest.$ac_objext \
27795 conftest$ac_exeext conftest.$ac_ext
27796 LIBS=$ac_check_lib_save_LIBS
27798 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
27799 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
27800 if test $ac_cv_lib_socket_socket = yes; then
27801 cat >>confdefs.h <<_ACEOF
27802 #define HAVE_LIBSOCKET 1
27805 LIBS="-lsocket $LIBS"
27810 uname_s=`(uname -s) 2>/dev/null`
27811 if test "x$uname_s" = "xHP-UX"; then
27812 # need -lsec for getspnam()
27813 LDFLAGS="$LDFLAGS -lsec"
27832 for ac_func in ftime gethostbyname gethostname gettimeofday inet_ntoa memmove memset mmap mkfifo select socket strchr strcspn strdup strerror strstr
27834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27835 echo "$as_me:$LINENO: checking for $ac_func" >&5
27836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27837 if eval "test \"\${$as_ac_var+set}\" = set"; then
27838 echo $ECHO_N "(cached) $ECHO_C" >&6
27840 cat >conftest.$ac_ext <<_ACEOF
27843 cat confdefs.h >>conftest.$ac_ext
27844 cat >>conftest.$ac_ext <<_ACEOF
27845 /* end confdefs.h. */
27846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27848 #define $ac_func innocuous_$ac_func
27850 /* System header to define __stub macros and hopefully few prototypes,
27851 which can conflict with char $ac_func (); below.
27852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27853 <limits.h> exists even on freestanding compilers. */
27856 # include <limits.h>
27858 # include <assert.h>
27863 /* Override any gcc2 internal prototype to avoid an error. */
27868 /* We use char because int might match the return type of a gcc2
27869 builtin and then its argument prototype would still apply. */
27871 /* The GNU C library defines this for functions which it implements
27872 to always fail with ENOSYS. Some functions are actually named
27873 something starting with __ and the normal name is an alias. */
27874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27877 char (*f) () = $ac_func;
27886 return f != $ac_func;
27891 rm -f conftest.$ac_objext conftest$ac_exeext
27892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27893 (eval $ac_link) 2>conftest.er1
27895 grep -v '^ *+' conftest.er1 >conftest.err
27897 cat conftest.err >&5
27898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); } &&
27900 { ac_try='test -z "$ac_c_werror_flag"
27901 || test ! -s conftest.err'
27902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27903 (eval $ac_try) 2>&5
27905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906 (exit $ac_status); }; } &&
27907 { ac_try='test -s conftest$ac_exeext'
27908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27909 (eval $ac_try) 2>&5
27911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912 (exit $ac_status); }; }; then
27913 eval "$as_ac_var=yes"
27915 echo "$as_me: failed program was:" >&5
27916 sed 's/^/| /' conftest.$ac_ext >&5
27918 eval "$as_ac_var=no"
27920 rm -f conftest.err conftest.$ac_objext \
27921 conftest$ac_exeext conftest.$ac_ext
27923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27925 if test `eval echo '${'$as_ac_var'}'` = yes; then
27926 cat >>confdefs.h <<_ACEOF
27927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27934 if test "$build_x11vnc" = "yes"; then
27951 for ac_func in setsid setpgrp getpwuid getpwnam getspnam getuid geteuid setuid setgid seteuid setegid initgroups waitpid setutxent grantpt shmat
27953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27954 echo "$as_me:$LINENO: checking for $ac_func" >&5
27955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27956 if eval "test \"\${$as_ac_var+set}\" = set"; then
27957 echo $ECHO_N "(cached) $ECHO_C" >&6
27959 cat >conftest.$ac_ext <<_ACEOF
27962 cat confdefs.h >>conftest.$ac_ext
27963 cat >>conftest.$ac_ext <<_ACEOF
27964 /* end confdefs.h. */
27965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27967 #define $ac_func innocuous_$ac_func
27969 /* System header to define __stub macros and hopefully few prototypes,
27970 which can conflict with char $ac_func (); below.
27971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27972 <limits.h> exists even on freestanding compilers. */
27975 # include <limits.h>
27977 # include <assert.h>
27982 /* Override any gcc2 internal prototype to avoid an error. */
27987 /* We use char because int might match the return type of a gcc2
27988 builtin and then its argument prototype would still apply. */
27990 /* The GNU C library defines this for functions which it implements
27991 to always fail with ENOSYS. Some functions are actually named
27992 something starting with __ and the normal name is an alias. */
27993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27996 char (*f) () = $ac_func;
28005 return f != $ac_func;
28010 rm -f conftest.$ac_objext conftest$ac_exeext
28011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28012 (eval $ac_link) 2>conftest.er1
28014 grep -v '^ *+' conftest.er1 >conftest.err
28016 cat conftest.err >&5
28017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018 (exit $ac_status); } &&
28019 { ac_try='test -z "$ac_c_werror_flag"
28020 || test ! -s conftest.err'
28021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28022 (eval $ac_try) 2>&5
28024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025 (exit $ac_status); }; } &&
28026 { ac_try='test -s conftest$ac_exeext'
28027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28028 (eval $ac_try) 2>&5
28030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28031 (exit $ac_status); }; }; then
28032 eval "$as_ac_var=yes"
28034 echo "$as_me: failed program was:" >&5
28035 sed 's/^/| /' conftest.$ac_ext >&5
28037 eval "$as_ac_var=no"
28039 rm -f conftest.err conftest.$ac_objext \
28040 conftest$ac_exeext conftest.$ac_ext
28042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28044 if test `eval echo '${'$as_ac_var'}'` = yes; then
28045 cat >>confdefs.h <<_ACEOF
28046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28054 # check, if shmget is in cygipc.a
28056 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
28057 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
28058 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
28059 echo $ECHO_N "(cached) $ECHO_C" >&6
28061 ac_check_lib_save_LIBS=$LIBS
28062 LIBS="-lcygipc $LIBS"
28063 cat >conftest.$ac_ext <<_ACEOF
28066 cat confdefs.h >>conftest.$ac_ext
28067 cat >>conftest.$ac_ext <<_ACEOF
28068 /* end confdefs.h. */
28070 /* Override any gcc2 internal prototype to avoid an error. */
28074 /* We use char because int might match the return type of a gcc2
28075 builtin and then its argument prototype would still apply. */
28085 rm -f conftest.$ac_objext conftest$ac_exeext
28086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28087 (eval $ac_link) 2>conftest.er1
28089 grep -v '^ *+' conftest.er1 >conftest.err
28091 cat conftest.err >&5
28092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093 (exit $ac_status); } &&
28094 { ac_try='test -z "$ac_c_werror_flag"
28095 || test ! -s conftest.err'
28096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28097 (eval $ac_try) 2>&5
28099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100 (exit $ac_status); }; } &&
28101 { ac_try='test -s conftest$ac_exeext'
28102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28103 (eval $ac_try) 2>&5
28105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28106 (exit $ac_status); }; }; then
28107 ac_cv_lib_cygipc_shmget=yes
28109 echo "$as_me: failed program was:" >&5
28110 sed 's/^/| /' conftest.$ac_ext >&5
28112 ac_cv_lib_cygipc_shmget=no
28114 rm -f conftest.err conftest.$ac_objext \
28115 conftest$ac_exeext conftest.$ac_ext
28116 LIBS=$ac_check_lib_save_LIBS
28118 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
28119 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
28120 if test $ac_cv_lib_cygipc_shmget = yes; then
28121 cat >>confdefs.h <<_ACEOF
28122 #define HAVE_LIBCYGIPC 1
28125 LIBS="-lcygipc $LIBS"
28131 if test "$HAVE_CYGIPC" = "true"; then
28140 # Check if /dev/vcsa1 exists, if so, define LINUX
28143 if test -c /dev/vcsa1; then
28152 # Check for OS X specific header
28153 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
28154 echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
28155 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6
28156 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
28157 echo $ECHO_N "(cached) $ECHO_C" >&6
28159 echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
28160 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6
28162 # Is the header compilable?
28163 echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h usability" >&5
28164 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h usability... $ECHO_C" >&6
28165 cat >conftest.$ac_ext <<_ACEOF
28168 cat confdefs.h >>conftest.$ac_ext
28169 cat >>conftest.$ac_ext <<_ACEOF
28170 /* end confdefs.h. */
28171 $ac_includes_default
28172 #include <ApplicationServices/ApplicationServices.h>
28174 rm -f conftest.$ac_objext
28175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28176 (eval $ac_compile) 2>conftest.er1
28178 grep -v '^ *+' conftest.er1 >conftest.err
28180 cat conftest.err >&5
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); } &&
28183 { ac_try='test -z "$ac_c_werror_flag"
28184 || test ! -s conftest.err'
28185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28186 (eval $ac_try) 2>&5
28188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); }; } &&
28190 { ac_try='test -s conftest.$ac_objext'
28191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28192 (eval $ac_try) 2>&5
28194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195 (exit $ac_status); }; }; then
28196 ac_header_compiler=yes
28198 echo "$as_me: failed program was:" >&5
28199 sed 's/^/| /' conftest.$ac_ext >&5
28201 ac_header_compiler=no
28203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28205 echo "${ECHO_T}$ac_header_compiler" >&6
28207 # Is the header present?
28208 echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h presence" >&5
28209 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h presence... $ECHO_C" >&6
28210 cat >conftest.$ac_ext <<_ACEOF
28213 cat confdefs.h >>conftest.$ac_ext
28214 cat >>conftest.$ac_ext <<_ACEOF
28215 /* end confdefs.h. */
28216 #include <ApplicationServices/ApplicationServices.h>
28218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28221 grep -v '^ *+' conftest.er1 >conftest.err
28223 cat conftest.err >&5
28224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225 (exit $ac_status); } >/dev/null; then
28226 if test -s conftest.err; then
28227 ac_cpp_err=$ac_c_preproc_warn_flag
28228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28235 if test -z "$ac_cpp_err"; then
28236 ac_header_preproc=yes
28238 echo "$as_me: failed program was:" >&5
28239 sed 's/^/| /' conftest.$ac_ext >&5
28241 ac_header_preproc=no
28243 rm -f conftest.err conftest.$ac_ext
28244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28245 echo "${ECHO_T}$ac_header_preproc" >&6
28247 # So? What about this header?
28248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28250 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&5
28251 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28252 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&5
28253 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&2;}
28254 ac_header_preproc=yes
28257 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&5
28258 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&2;}
28259 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&5
28260 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&2;}
28261 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&5
28262 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&2;}
28263 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&5
28264 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&2;}
28265 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&5
28266 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&2;}
28267 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&5
28268 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&2;}
28271 ## ----------------------------------------------------------- ##
28272 ## Report this to http://sourceforge.net/projects/libvncserver ##
28273 ## ----------------------------------------------------------- ##
28276 sed "s/^/$as_me: WARNING: /" >&2
28279 echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
28280 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6
28281 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
28282 echo $ECHO_N "(cached) $ECHO_C" >&6
28284 ac_cv_header_ApplicationServices_ApplicationServices_h=$ac_header_preproc
28286 echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
28287 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6
28290 if test $ac_cv_header_ApplicationServices_ApplicationServices_h = yes; then
28297 if test "$HAVE_OSX" = "true"; then
28306 # On Solaris 2.7, write() returns ENOENT when it really means EAGAIN
28309 case `(uname -sr) 2>/dev/null` in
28311 cat >>confdefs.h <<\_ACEOF
28312 #define ENOENT_WORKAROUND 1
28318 # Check for rpm SOURCES path
28319 printf "checking for rpm sources path... "
28320 RPMSOURCEDIR="NOT-FOUND"
28321 for directory in packages OpenLinux redhat RedHat rpm RPM "" ; do
28322 if test -d /usr/src/${directory}/SOURCES; then
28323 RPMSOURCEDIR="/usr/src/${directory}/SOURCES/"
28326 echo "$RPMSOURCEDIR"
28329 if test "$RPMSOURCEDIR" != "NOT-FOUND"; then
28339 if test "$build_x11vnc" = "yes"; then
28341 WITH_X11VNC_FALSE='#'
28343 WITH_X11VNC_TRUE='#'
28349 ac_config_files="$ac_config_files Makefile libvncserver/Makefile contrib/Makefile examples/Makefile vncterm/Makefile classes/Makefile classes/ssl/Makefile libvncclient/Makefile client_examples/Makefile test/Makefile libvncserver-config LibVNCServer.spec"
28354 if test "$build_x11vnc" = "yes"; then
28356 # NOTE: if you are using the LibVNCServer-X.Y.Z.tar.gz source
28357 # tarball and nevertheless want to run autoconf (i.e. aclocal,
28358 # autoheader, automake, autoconf) AGAIN (perhaps you have a
28359 # special target system, e.g. embedded) then you will need to
28360 # comment out the following 'AC_CONFIG_FILES' line to avoid
28361 # automake error messages like:
28363 # configure.ac:690: required file `x11vnc/Makefile.in' not found
28365 ac_config_files="$ac_config_files x11vnc/Makefile x11vnc/misc/Makefile"
28369 ac_config_commands="$ac_config_commands chmod-libvncserver-config"
28371 cat >confcache <<\_ACEOF
28372 # This file is a shell script that caches the results of configure
28373 # tests run on this system so they can be shared between configure
28374 # scripts and configure runs, see configure's option --config-cache.
28375 # It is not useful on other systems. If it contains results you don't
28376 # want to keep, you may remove or edit it.
28378 # config.status only pays attention to the cache file if you give it
28379 # the --recheck option to rerun configure.
28381 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28382 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28383 # following values.
28387 # The following way of writing the cache mishandles newlines in values,
28388 # but we know of no workaround that is simple, portable, and efficient.
28389 # So, don't put newlines in cache variables' values.
28390 # Ultrix sh set writes to stderr and can't be redirected directly,
28391 # and sets the high bit in the cache file unless we assign to the vars.
28394 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28396 # `set' does not quote correctly, so add quotes (double-quote
28397 # substitution turns \\\\ into \\, and sed turns \\ into \).
28400 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28403 # `set' quotes correctly as required by POSIX, so do not add quotes.
28405 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28412 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28414 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28416 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28417 if test -w $cache_file; then
28418 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28419 cat confcache >$cache_file
28421 echo "not updating unwritable cache $cache_file"
28426 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28427 # Let make expand exec_prefix.
28428 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28430 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28431 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28432 # trailing colons and then remove the whole line if VPATH becomes empty
28433 # (actually we leave an empty line to preserve line numbers).
28434 if test "x$srcdir" = x.; then
28435 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28436 s/:*\$(srcdir):*/:/;
28437 s/:*\${srcdir}:*/:/;
28439 s/^\([^=]*=[ ]*\):*/\1/;
28445 DEFS=-DHAVE_CONFIG_H
28449 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28450 # 1. Remove the extension, and $U if already installed.
28451 ac_i=`echo "$ac_i" |
28452 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28454 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28455 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28457 LIBOBJS=$ac_libobjs
28459 LTLIBOBJS=$ac_ltlibobjs
28462 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28463 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28464 Usually this means the macro was only invoked conditionally." >&5
28465 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28466 Usually this means the macro was only invoked conditionally." >&2;}
28467 { (exit 1); exit 1; }; }
28469 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28470 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28471 Usually this means the macro was only invoked conditionally." >&5
28472 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28473 Usually this means the macro was only invoked conditionally." >&2;}
28474 { (exit 1); exit 1; }; }
28476 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28477 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28478 Usually this means the macro was only invoked conditionally." >&5
28479 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28480 Usually this means the macro was only invoked conditionally." >&2;}
28481 { (exit 1); exit 1; }; }
28483 if test -z "${WITH_FFMPEG_TRUE}" && test -z "${WITH_FFMPEG_FALSE}"; then
28484 { { echo "$as_me:$LINENO: error: conditional \"WITH_FFMPEG\" was never defined.
28485 Usually this means the macro was only invoked conditionally." >&5
28486 echo "$as_me: error: conditional \"WITH_FFMPEG\" was never defined.
28487 Usually this means the macro was only invoked conditionally." >&2;}
28488 { (exit 1); exit 1; }; }
28490 if test -z "${HAVE_MP3LAME_TRUE}" && test -z "${HAVE_MP3LAME_FALSE}"; then
28491 { { echo "$as_me:$LINENO: error: conditional \"HAVE_MP3LAME\" was never defined.
28492 Usually this means the macro was only invoked conditionally." >&5
28493 echo "$as_me: error: conditional \"HAVE_MP3LAME\" was never defined.
28494 Usually this means the macro was only invoked conditionally." >&2;}
28495 { (exit 1); exit 1; }; }
28497 if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
28498 { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined.
28499 Usually this means the macro was only invoked conditionally." >&5
28500 echo "$as_me: error: conditional \"HAVE_X\" was never defined.
28501 Usually this means the macro was only invoked conditionally." >&2;}
28502 { (exit 1); exit 1; }; }
28504 if test -z "${HAVE_SYSTEM_LIBVNCSERVER_TRUE}" && test -z "${HAVE_SYSTEM_LIBVNCSERVER_FALSE}"; then
28505 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SYSTEM_LIBVNCSERVER\" was never defined.
28506 Usually this means the macro was only invoked conditionally." >&5
28507 echo "$as_me: error: conditional \"HAVE_SYSTEM_LIBVNCSERVER\" was never defined.
28508 Usually this means the macro was only invoked conditionally." >&2;}
28509 { (exit 1); exit 1; }; }
28511 if test -z "${HAVE_LIBPTHREAD_TRUE}" && test -z "${HAVE_LIBPTHREAD_FALSE}"; then
28512 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBPTHREAD\" was never defined.
28513 Usually this means the macro was only invoked conditionally." >&5
28514 echo "$as_me: error: conditional \"HAVE_LIBPTHREAD\" was never defined.
28515 Usually this means the macro was only invoked conditionally." >&2;}
28516 { (exit 1); exit 1; }; }
28518 if test -z "${WITH_TIGHTVNC_FILETRANSFER_TRUE}" && test -z "${WITH_TIGHTVNC_FILETRANSFER_FALSE}"; then
28519 { { echo "$as_me:$LINENO: error: conditional \"WITH_TIGHTVNC_FILETRANSFER\" was never defined.
28520 Usually this means the macro was only invoked conditionally." >&5
28521 echo "$as_me: error: conditional \"WITH_TIGHTVNC_FILETRANSFER\" was never defined.
28522 Usually this means the macro was only invoked conditionally." >&2;}
28523 { (exit 1); exit 1; }; }
28525 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
28526 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
28527 Usually this means the macro was only invoked conditionally." >&5
28528 echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
28529 Usually this means the macro was only invoked conditionally." >&2;}
28530 { (exit 1); exit 1; }; }
28532 if test -z "${HAVE_LIBJPEG_TRUE}" && test -z "${HAVE_LIBJPEG_FALSE}"; then
28533 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBJPEG\" was never defined.
28534 Usually this means the macro was only invoked conditionally." >&5
28535 echo "$as_me: error: conditional \"HAVE_LIBJPEG\" was never defined.
28536 Usually this means the macro was only invoked conditionally." >&2;}
28537 { (exit 1); exit 1; }; }
28539 if test -z "${HAVE_LIBSDL_TRUE}" && test -z "${HAVE_LIBSDL_FALSE}"; then
28540 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBSDL\" was never defined.
28541 Usually this means the macro was only invoked conditionally." >&5
28542 echo "$as_me: error: conditional \"HAVE_LIBSDL\" was never defined.
28543 Usually this means the macro was only invoked conditionally." >&2;}
28544 { (exit 1); exit 1; }; }
28546 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
28547 { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
28548 Usually this means the macro was only invoked conditionally." >&5
28549 echo "$as_me: error: conditional \"MINGW\" was never defined.
28550 Usually this means the macro was only invoked conditionally." >&2;}
28551 { (exit 1); exit 1; }; }
28553 if test -z "${CYGIPC_TRUE}" && test -z "${CYGIPC_FALSE}"; then
28554 { { echo "$as_me:$LINENO: error: conditional \"CYGIPC\" was never defined.
28555 Usually this means the macro was only invoked conditionally." >&5
28556 echo "$as_me: error: conditional \"CYGIPC\" was never defined.
28557 Usually this means the macro was only invoked conditionally." >&2;}
28558 { (exit 1); exit 1; }; }
28560 if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
28561 { { echo "$as_me:$LINENO: error: conditional \"LINUX\" was never defined.
28562 Usually this means the macro was only invoked conditionally." >&5
28563 echo "$as_me: error: conditional \"LINUX\" was never defined.
28564 Usually this means the macro was only invoked conditionally." >&2;}
28565 { (exit 1); exit 1; }; }
28567 if test -z "${OSX_TRUE}" && test -z "${OSX_FALSE}"; then
28568 { { echo "$as_me:$LINENO: error: conditional \"OSX\" was never defined.
28569 Usually this means the macro was only invoked conditionally." >&5
28570 echo "$as_me: error: conditional \"OSX\" was never defined.
28571 Usually this means the macro was only invoked conditionally." >&2;}
28572 { (exit 1); exit 1; }; }
28574 if test -z "${HAVE_RPM_TRUE}" && test -z "${HAVE_RPM_FALSE}"; then
28575 { { echo "$as_me:$LINENO: error: conditional \"HAVE_RPM\" was never defined.
28576 Usually this means the macro was only invoked conditionally." >&5
28577 echo "$as_me: error: conditional \"HAVE_RPM\" was never defined.
28578 Usually this means the macro was only invoked conditionally." >&2;}
28579 { (exit 1); exit 1; }; }
28581 if test -z "${WITH_X11VNC_TRUE}" && test -z "${WITH_X11VNC_FALSE}"; then
28582 { { echo "$as_me:$LINENO: error: conditional \"WITH_X11VNC\" was never defined.
28583 Usually this means the macro was only invoked conditionally." >&5
28584 echo "$as_me: error: conditional \"WITH_X11VNC\" was never defined.
28585 Usually this means the macro was only invoked conditionally." >&2;}
28586 { (exit 1); exit 1; }; }
28589 : ${CONFIG_STATUS=./config.status}
28590 ac_clean_files_save=$ac_clean_files
28591 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28592 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28593 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28594 cat >$CONFIG_STATUS <<_ACEOF
28596 # Generated by $as_me.
28597 # Run this file to recreate the current configuration.
28598 # Compiler output produced by configure, useful for debugging
28599 # configure, is in config.log if it exists.
28602 ac_cs_recheck=false
28604 SHELL=\${CONFIG_SHELL-$SHELL}
28607 cat >>$CONFIG_STATUS <<\_ACEOF
28608 ## --------------------- ##
28609 ## M4sh Initialization. ##
28610 ## --------------------- ##
28612 # Be Bourne compatible
28613 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28616 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28617 # is contrary to our usage. Disable this feature.
28618 alias -g '${1+"$@"}'='"$@"'
28619 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28622 DUALCASE=1; export DUALCASE # for MKS sh
28624 # Support unset when possible.
28625 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28632 # Work around bugs in pre-3.0 UWIN ksh.
28633 $as_unset ENV MAIL MAILPATH
28640 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28641 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28642 LC_TELEPHONE LC_TIME
28644 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28645 eval $as_var=C; export $as_var
28651 # Required to use basename.
28652 if expr a : '\(a\)' >/dev/null 2>&1; then
28658 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28659 as_basename=basename
28665 # Name of the executable.
28666 as_me=`$as_basename "$0" ||
28667 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28668 X"$0" : 'X\(//\)$' \| \
28669 X"$0" : 'X\(/\)$' \| \
28670 . : '\(.\)' 2>/dev/null ||
28672 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28673 /^X\/\(\/\/\)$/{ s//\1/; q; }
28674 /^X\/\(\/\).*/{ s//\1/; q; }
28678 # PATH needs CR, and LINENO needs CR and PATH.
28679 # Avoid depending upon Character Ranges.
28680 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28681 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28682 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28683 as_cr_digits='0123456789'
28684 as_cr_alnum=$as_cr_Letters$as_cr_digits
28686 # The user is always right.
28687 if test "${PATH_SEPARATOR+set}" != set; then
28688 echo "#! /bin/sh" >conf$$.sh
28689 echo "exit 0" >>conf$$.sh
28691 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28700 as_lineno_1=$LINENO
28701 as_lineno_2=$LINENO
28702 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28703 test "x$as_lineno_1" != "x$as_lineno_2" &&
28704 test "x$as_lineno_3" = "x$as_lineno_2" || {
28705 # Find who we are. Look in the path if we contain no path at all
28708 *[\\/]* ) as_myself=$0 ;;
28709 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28710 for as_dir in $PATH
28713 test -z "$as_dir" && as_dir=.
28714 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28719 # We did not find ourselves, most probably we were run as `sh COMMAND'
28720 # in which case we are not to be found in the path.
28721 if test "x$as_myself" = x; then
28724 if test ! -f "$as_myself"; then
28725 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28726 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28727 { (exit 1); exit 1; }; }
28729 case $CONFIG_SHELL in
28731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28732 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28735 test -z "$as_dir" && as_dir=.
28736 for as_base in sh bash ksh sh5; do
28739 if ("$as_dir/$as_base" -c '
28740 as_lineno_1=$LINENO
28741 as_lineno_2=$LINENO
28742 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28743 test "x$as_lineno_1" != "x$as_lineno_2" &&
28744 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
28745 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28746 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28747 CONFIG_SHELL=$as_dir/$as_base
28748 export CONFIG_SHELL
28749 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28757 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28758 # uniformly replaced by the line number. The first 'sed' inserts a
28759 # line-number line before each line; the second 'sed' does the real
28760 # work. The second script uses 'N' to pair each line-number line
28761 # with the numbered line, and appends trailing '-' during
28762 # substitution so that $LINENO is not a special case at line end.
28763 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28764 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
28765 sed '=' <$as_myself |
28770 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28773 s,^['$as_cr_digits']*\n,,
28774 ' >$as_me.lineno &&
28775 chmod +x $as_me.lineno ||
28776 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28777 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28778 { (exit 1); exit 1; }; }
28780 # Don't try to exec as it changes $[0], causing all sort of problems
28781 # (the dirname of $[0] is not the place where we might find the
28782 # original and so on. Autoconf is especially sensible to this).
28784 # Exit status is that of the last command.
28789 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28790 *c*,-n*) ECHO_N= ECHO_C='
28792 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28793 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
28796 if expr a : '\(a\)' >/dev/null 2>&1; then
28802 rm -f conf$$ conf$$.exe conf$$.file
28804 if ln -s conf$$.file conf$$ 2>/dev/null; then
28805 # We could just check for DJGPP; but this test a) works b) is more generic
28806 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28807 if test -f conf$$.exe; then
28808 # Don't use ln at all; we don't have any links
28813 elif ln conf$$.file conf$$ 2>/dev/null; then
28818 rm -f conf$$ conf$$.exe conf$$.file
28820 if mkdir -p . 2>/dev/null; then
28823 test -d ./-p && rmdir ./-p
28827 as_executable_p="test -f"
28829 # Sed expression to map a string onto a valid CPP name.
28830 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28832 # Sed expression to map a string onto a valid variable name.
28833 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28837 # We need space, tab and new line, in precisely that order.
28847 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28848 # report actual input values of CONFIG_FILES etc. instead of their
28849 # values after options handling. Logging --version etc. is OK.
28853 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28854 ## Running $as_me. ##
28859 This file was extended by LibVNCServer $as_me 0.9.7, which was
28860 generated by GNU Autoconf 2.59. Invocation command line was
28862 CONFIG_FILES = $CONFIG_FILES
28863 CONFIG_HEADERS = $CONFIG_HEADERS
28864 CONFIG_LINKS = $CONFIG_LINKS
28865 CONFIG_COMMANDS = $CONFIG_COMMANDS
28869 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28873 # Files that config.status was made for.
28874 if test -n "$ac_config_files"; then
28875 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28878 if test -n "$ac_config_headers"; then
28879 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28882 if test -n "$ac_config_links"; then
28883 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28886 if test -n "$ac_config_commands"; then
28887 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28890 cat >>$CONFIG_STATUS <<\_ACEOF
28893 \`$as_me' instantiates files from templates according to the
28894 current configuration.
28896 Usage: $0 [OPTIONS] [FILE]...
28898 -h, --help print this help, then exit
28899 -V, --version print version number, then exit
28900 -q, --quiet do not print progress messages
28901 -d, --debug don't remove temporary files
28902 --recheck update $as_me by reconfiguring in the same conditions
28903 --file=FILE[:TEMPLATE]
28904 instantiate the configuration file FILE
28905 --header=FILE[:TEMPLATE]
28906 instantiate the configuration header FILE
28908 Configuration files:
28911 Configuration headers:
28914 Configuration commands:
28917 Report bugs to <bug-autoconf@gnu.org>."
28920 cat >>$CONFIG_STATUS <<_ACEOF
28922 LibVNCServer config.status 0.9.7
28923 configured by $0, generated by GNU Autoconf 2.59,
28924 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28926 Copyright (C) 2003 Free Software Foundation, Inc.
28927 This config.status script is free software; the Free Software Foundation
28928 gives unlimited permission to copy, distribute and modify it."
28933 cat >>$CONFIG_STATUS <<\_ACEOF
28934 # If no file are specified by the user, then we need to provide default
28935 # value. By we need to know if files were specified by the user.
28941 ac_option=`expr "x$1" : 'x\([^=]*\)='`
28942 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28950 *) # This is not an option, so the user has probably given explicit
28953 ac_need_defaults=false;;
28957 # Handling of the options.
28959 cat >>$CONFIG_STATUS <<\_ACEOF
28960 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28962 --version | --vers* | -V )
28963 echo "$ac_cs_version"; exit 0 ;;
28965 # Conflict between --help and --header
28966 { { echo "$as_me:$LINENO: error: ambiguous option: $1
28967 Try \`$0 --help' for more information." >&5
28968 echo "$as_me: error: ambiguous option: $1
28969 Try \`$0 --help' for more information." >&2;}
28970 { (exit 1); exit 1; }; };;
28971 --help | --hel | -h )
28972 echo "$ac_cs_usage"; exit 0 ;;
28973 --debug | --d* | -d )
28975 --file | --fil | --fi | --f )
28977 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28978 ac_need_defaults=false;;
28979 --header | --heade | --head | --hea )
28981 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28982 ac_need_defaults=false;;
28983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28984 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28987 # This is an error.
28988 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28989 Try \`$0 --help' for more information." >&5
28990 echo "$as_me: error: unrecognized option: $1
28991 Try \`$0 --help' for more information." >&2;}
28992 { (exit 1); exit 1; }; } ;;
28994 *) ac_config_targets="$ac_config_targets $1" ;;
29000 ac_configure_extra_args=
29002 if $ac_cs_silent; then
29004 ac_configure_extra_args="$ac_configure_extra_args --silent"
29008 cat >>$CONFIG_STATUS <<_ACEOF
29009 if \$ac_cs_recheck; then
29010 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29011 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29016 cat >>$CONFIG_STATUS <<_ACEOF
29018 # INIT-COMMANDS section.
29022 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29028 cat >>$CONFIG_STATUS <<\_ACEOF
29029 for ac_config_target in $ac_config_targets
29031 case "$ac_config_target" in
29032 # Handling of arguments.
29033 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29034 "libvncserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES libvncserver/Makefile" ;;
29035 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
29036 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
29037 "vncterm/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncterm/Makefile" ;;
29038 "classes/Makefile" ) CONFIG_FILES="$CONFIG_FILES classes/Makefile" ;;
29039 "classes/ssl/Makefile" ) CONFIG_FILES="$CONFIG_FILES classes/ssl/Makefile" ;;
29040 "libvncclient/Makefile" ) CONFIG_FILES="$CONFIG_FILES libvncclient/Makefile" ;;
29041 "client_examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES client_examples/Makefile" ;;
29042 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
29043 "libvncserver-config" ) CONFIG_FILES="$CONFIG_FILES libvncserver-config" ;;
29044 "LibVNCServer.spec" ) CONFIG_FILES="$CONFIG_FILES LibVNCServer.spec" ;;
29045 "x11vnc/Makefile" ) CONFIG_FILES="$CONFIG_FILES x11vnc/Makefile" ;;
29046 "x11vnc/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES x11vnc/misc/Makefile" ;;
29047 "rfb/rfbconfig.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rfb/rfbconfig.h" ;;
29048 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29049 "chmod-libvncserver-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS chmod-libvncserver-config" ;;
29050 "rfbconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS rfbconfig.h" ;;
29051 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29052 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29053 { (exit 1); exit 1; }; };;
29057 # If the user did not use the arguments to specify the items to instantiate,
29058 # then the envvar interface is used. Set only those that are not.
29059 # We use the long form for the default assignment because of an extremely
29060 # bizarre bug on SunOS 4.1.3.
29061 if $ac_need_defaults; then
29062 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29063 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29064 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29067 # Have a temporary directory for convenience. Make it in the build tree
29068 # simply because there is no reason to put it here, and in addition,
29069 # creating and moving files from /tmp can sometimes cause problems.
29070 # Create a temporary directory, and hook for its removal unless debugging.
29073 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29074 trap '{ (exit 1); exit 1; }' 1 2 13 15
29077 # Create a (secure) tmp directory for tmp files.
29080 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29081 test -n "$tmp" && test -d "$tmp"
29084 tmp=./confstat$$-$RANDOM
29085 (umask 077 && mkdir $tmp)
29088 echo "$me: cannot create a temporary directory in ." >&2
29089 { (exit 1); exit 1; }
29094 cat >>$CONFIG_STATUS <<_ACEOF
29097 # CONFIG_FILES section.
29100 # No need to generate the scripts if there are no CONFIG_FILES.
29101 # This happens for instance when ./config.status config.h
29102 if test -n "\$CONFIG_FILES"; then
29103 # Protect against being on the right side of a sed subst in config.status.
29104 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29105 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29106 s,@SHELL@,$SHELL,;t t
29107 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29108 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29109 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29110 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29111 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29112 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29113 s,@exec_prefix@,$exec_prefix,;t t
29114 s,@prefix@,$prefix,;t t
29115 s,@program_transform_name@,$program_transform_name,;t t
29116 s,@bindir@,$bindir,;t t
29117 s,@sbindir@,$sbindir,;t t
29118 s,@libexecdir@,$libexecdir,;t t
29119 s,@datadir@,$datadir,;t t
29120 s,@sysconfdir@,$sysconfdir,;t t
29121 s,@sharedstatedir@,$sharedstatedir,;t t
29122 s,@localstatedir@,$localstatedir,;t t
29123 s,@libdir@,$libdir,;t t
29124 s,@includedir@,$includedir,;t t
29125 s,@oldincludedir@,$oldincludedir,;t t
29126 s,@infodir@,$infodir,;t t
29127 s,@mandir@,$mandir,;t t
29128 s,@build_alias@,$build_alias,;t t
29129 s,@host_alias@,$host_alias,;t t
29130 s,@target_alias@,$target_alias,;t t
29131 s,@DEFS@,$DEFS,;t t
29132 s,@ECHO_C@,$ECHO_C,;t t
29133 s,@ECHO_N@,$ECHO_N,;t t
29134 s,@ECHO_T@,$ECHO_T,;t t
29135 s,@LIBS@,$LIBS,;t t
29136 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29137 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29138 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29139 s,@CYGPATH_W@,$CYGPATH_W,;t t
29140 s,@PACKAGE@,$PACKAGE,;t t
29141 s,@VERSION@,$VERSION,;t t
29142 s,@ACLOCAL@,$ACLOCAL,;t t
29143 s,@AUTOCONF@,$AUTOCONF,;t t
29144 s,@AUTOMAKE@,$AUTOMAKE,;t t
29145 s,@AUTOHEADER@,$AUTOHEADER,;t t
29146 s,@MAKEINFO@,$MAKEINFO,;t t
29147 s,@install_sh@,$install_sh,;t t
29148 s,@STRIP@,$STRIP,;t t
29149 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29150 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29151 s,@mkdir_p@,$mkdir_p,;t t
29153 s,@SET_MAKE@,$SET_MAKE,;t t
29154 s,@am__leading_dot@,$am__leading_dot,;t t
29155 s,@AMTAR@,$AMTAR,;t t
29156 s,@am__tar@,$am__tar,;t t
29157 s,@am__untar@,$am__untar,;t t
29159 s,@CFLAGS@,$CFLAGS,;t t
29160 s,@LDFLAGS@,$LDFLAGS,;t t
29161 s,@CPPFLAGS@,$CPPFLAGS,;t t
29162 s,@ac_ct_CC@,$ac_ct_CC,;t t
29163 s,@EXEEXT@,$EXEEXT,;t t
29164 s,@OBJEXT@,$OBJEXT,;t t
29165 s,@DEPDIR@,$DEPDIR,;t t
29166 s,@am__include@,$am__include,;t t
29167 s,@am__quote@,$am__quote,;t t
29168 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29169 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29170 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29171 s,@CCDEPMODE@,$CCDEPMODE,;t t
29172 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29173 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29174 s,@build@,$build,;t t
29175 s,@build_cpu@,$build_cpu,;t t
29176 s,@build_vendor@,$build_vendor,;t t
29177 s,@build_os@,$build_os,;t t
29178 s,@host@,$host,;t t
29179 s,@host_cpu@,$host_cpu,;t t
29180 s,@host_vendor@,$host_vendor,;t t
29181 s,@host_os@,$host_os,;t t
29182 s,@EGREP@,$EGREP,;t t
29183 s,@LN_S@,$LN_S,;t t
29184 s,@ECHO@,$ECHO,;t t
29186 s,@ac_ct_AR@,$ac_ct_AR,;t t
29187 s,@RANLIB@,$RANLIB,;t t
29188 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29191 s,@CXXFLAGS@,$CXXFLAGS,;t t
29192 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29193 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29194 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29195 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29196 s,@CXXCPP@,$CXXCPP,;t t
29198 s,@FFLAGS@,$FFLAGS,;t t
29199 s,@ac_ct_F77@,$ac_ct_F77,;t t
29200 s,@LIBTOOL@,$LIBTOOL,;t t
29201 s,@with_ffmpeg@,$with_ffmpeg,;t t
29202 s,@WITH_FFMPEG_TRUE@,$WITH_FFMPEG_TRUE,;t t
29203 s,@WITH_FFMPEG_FALSE@,$WITH_FFMPEG_FALSE,;t t
29204 s,@HAVE_MP3LAME_TRUE@,$HAVE_MP3LAME_TRUE,;t t
29205 s,@HAVE_MP3LAME_FALSE@,$HAVE_MP3LAME_FALSE,;t t
29206 s,@X_CFLAGS@,$X_CFLAGS,;t t
29207 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29208 s,@X_LIBS@,$X_LIBS,;t t
29209 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29210 s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t
29211 s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t
29212 s,@CRYPT_LIBS@,$CRYPT_LIBS,;t t
29213 s,@SSL_LIBS@,$SSL_LIBS,;t t
29214 s,@AVAHI_CFLAGS@,$AVAHI_CFLAGS,;t t
29215 s,@AVAHI_LIBS@,$AVAHI_LIBS,;t t
29216 s,@SYSTEM_LIBVNCSERVER_CFLAGS@,$SYSTEM_LIBVNCSERVER_CFLAGS,;t t
29217 s,@SYSTEM_LIBVNCSERVER_LIBS@,$SYSTEM_LIBVNCSERVER_LIBS,;t t
29218 s,@HAVE_SYSTEM_LIBVNCSERVER_TRUE@,$HAVE_SYSTEM_LIBVNCSERVER_TRUE,;t t
29219 s,@HAVE_SYSTEM_LIBVNCSERVER_FALSE@,$HAVE_SYSTEM_LIBVNCSERVER_FALSE,;t t
29220 s,@HAVE_LIBPTHREAD_TRUE@,$HAVE_LIBPTHREAD_TRUE,;t t
29221 s,@HAVE_LIBPTHREAD_FALSE@,$HAVE_LIBPTHREAD_FALSE,;t t
29222 s,@WITH_TIGHTVNC_FILETRANSFER_TRUE@,$WITH_TIGHTVNC_FILETRANSFER_TRUE,;t t
29223 s,@WITH_TIGHTVNC_FILETRANSFER_FALSE@,$WITH_TIGHTVNC_FILETRANSFER_FALSE,;t t
29224 s,@HAVE_LIBZ_TRUE@,$HAVE_LIBZ_TRUE,;t t
29225 s,@HAVE_LIBZ_FALSE@,$HAVE_LIBZ_FALSE,;t t
29226 s,@HAVE_LIBJPEG_TRUE@,$HAVE_LIBJPEG_TRUE,;t t
29227 s,@HAVE_LIBJPEG_FALSE@,$HAVE_LIBJPEG_FALSE,;t t
29228 s,@HAVE_LIBSDL_TRUE@,$HAVE_LIBSDL_TRUE,;t t
29229 s,@HAVE_LIBSDL_FALSE@,$HAVE_LIBSDL_FALSE,;t t
29230 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
29231 s,@SDL_LIBS@,$SDL_LIBS,;t t
29232 s,@MINGW_TRUE@,$MINGW_TRUE,;t t
29233 s,@MINGW_FALSE@,$MINGW_FALSE,;t t
29234 s,@WSOCKLIB@,$WSOCKLIB,;t t
29235 s,@LIBOBJS@,$LIBOBJS,;t t
29236 s,@CYGIPC_TRUE@,$CYGIPC_TRUE,;t t
29237 s,@CYGIPC_FALSE@,$CYGIPC_FALSE,;t t
29238 s,@LINUX_TRUE@,$LINUX_TRUE,;t t
29239 s,@LINUX_FALSE@,$LINUX_FALSE,;t t
29240 s,@OSX_TRUE@,$OSX_TRUE,;t t
29241 s,@OSX_FALSE@,$OSX_FALSE,;t t
29242 s,@HAVE_RPM_TRUE@,$HAVE_RPM_TRUE,;t t
29243 s,@HAVE_RPM_FALSE@,$HAVE_RPM_FALSE,;t t
29244 s,@WITH_X11VNC_TRUE@,$WITH_X11VNC_TRUE,;t t
29245 s,@WITH_X11VNC_FALSE@,$WITH_X11VNC_FALSE,;t t
29246 s,@RPMSOURCEDIR@,$RPMSOURCEDIR,;t t
29247 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29252 cat >>$CONFIG_STATUS <<\_ACEOF
29253 # Split the substitutions into bite-sized pieces for seds with
29254 # small command number limits, like on Digital OSF/1 and HP-UX.
29255 ac_max_sed_lines=48
29256 ac_sed_frag=1 # Number of current file.
29257 ac_beg=1 # First line for current file.
29258 ac_end=$ac_max_sed_lines # Line after last line for current file.
29261 while $ac_more_lines; do
29262 if test $ac_beg -gt 1; then
29263 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29265 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29267 if test ! -s $tmp/subs.frag; then
29268 ac_more_lines=false
29270 # The purpose of the label and of the branching condition is to
29271 # speed up the sed processing (if there are no `@' at all, there
29272 # is no need to browse any of the substitutions).
29273 # These are the two extra sed commands mentioned above.
29275 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29276 if test -z "$ac_sed_cmds"; then
29277 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29279 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29281 ac_sed_frag=`expr $ac_sed_frag + 1`
29283 ac_end=`expr $ac_end + $ac_max_sed_lines`
29286 if test -z "$ac_sed_cmds"; then
29289 fi # test -n "$CONFIG_FILES"
29292 cat >>$CONFIG_STATUS <<\_ACEOF
29293 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29294 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29296 - | *:- | *:-:* ) # input from stdin
29298 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29299 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29300 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29301 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29302 * ) ac_file_in=$ac_file.in ;;
29305 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29306 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29307 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29308 X"$ac_file" : 'X\(//\)[^/]' \| \
29309 X"$ac_file" : 'X\(//\)$' \| \
29310 X"$ac_file" : 'X\(/\)' \| \
29311 . : '\(.\)' 2>/dev/null ||
29313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29315 /^X\(\/\/\)$/{ s//\1/; q; }
29316 /^X\(\/\).*/{ s//\1/; q; }
29318 { if $as_mkdir_p; then
29323 while test ! -d "$as_dir"; do
29324 as_dirs="$as_dir $as_dirs"
29325 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29327 X"$as_dir" : 'X\(//\)[^/]' \| \
29328 X"$as_dir" : 'X\(//\)$' \| \
29329 X"$as_dir" : 'X\(/\)' \| \
29330 . : '\(.\)' 2>/dev/null ||
29332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29334 /^X\(\/\/\)$/{ s//\1/; q; }
29335 /^X\(\/\).*/{ s//\1/; q; }
29338 test ! -n "$as_dirs" || mkdir $as_dirs
29339 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29340 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29341 { (exit 1); exit 1; }; }; }
29345 if test "$ac_dir" != .; then
29346 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29347 # A "../" for each directory in $ac_dir_suffix.
29348 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29350 ac_dir_suffix= ac_top_builddir=
29354 .) # No --srcdir option. We are building in place.
29356 if test -z "$ac_top_builddir"; then
29359 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29361 [\\/]* | ?:[\\/]* ) # Absolute path.
29362 ac_srcdir=$srcdir$ac_dir_suffix;
29363 ac_top_srcdir=$srcdir ;;
29364 *) # Relative path.
29365 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29366 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29369 # Do not use `cd foo && pwd` to compute absolute paths, because
29370 # the directories may not exist.
29372 .) ac_abs_builddir="$ac_dir";;
29375 .) ac_abs_builddir=`pwd`;;
29376 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29377 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29380 case $ac_abs_builddir in
29381 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29383 case ${ac_top_builddir}. in
29384 .) ac_abs_top_builddir=$ac_abs_builddir;;
29385 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29386 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29389 case $ac_abs_builddir in
29390 .) ac_abs_srcdir=$ac_srcdir;;
29393 .) ac_abs_srcdir=$ac_abs_builddir;;
29394 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29395 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29398 case $ac_abs_builddir in
29399 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29401 case $ac_top_srcdir in
29402 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29403 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29404 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29410 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29411 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29414 if test x"$ac_file" != x-; then
29415 { echo "$as_me:$LINENO: creating $ac_file" >&5
29416 echo "$as_me: creating $ac_file" >&6;}
29419 # Let's still pretend it is `configure' which instantiates (i.e., don't
29420 # use $as_me), people would be surprised to read:
29421 # /* config.h. Generated by config.status. */
29422 if test x"$ac_file" = x-; then
29425 configure_input="$ac_file. "
29427 configure_input=$configure_input"Generated from `echo $ac_file_in |
29428 sed 's,.*/,,'` by configure."
29430 # First look for the input files in the build tree, otherwise in the
29432 ac_file_inputs=`IFS=:
29433 for f in $ac_file_in; do
29435 -) echo $tmp/stdin ;;
29437 # Absolute (can't be DOS-style, as IFS=:)
29438 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29439 echo "$as_me: error: cannot find input file: $f" >&2;}
29440 { (exit 1); exit 1; }; }
29443 if test -f "$f"; then
29446 elif test -f "$srcdir/$f"; then
29451 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29452 echo "$as_me: error: cannot find input file: $f" >&2;}
29453 { (exit 1); exit 1; }; }
29456 done` || { (exit 1); exit 1; }
29458 cat >>$CONFIG_STATUS <<_ACEOF
29462 cat >>$CONFIG_STATUS <<\_ACEOF
29464 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29465 s,@configure_input@,$configure_input,;t t
29466 s,@srcdir@,$ac_srcdir,;t t
29467 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29468 s,@top_srcdir@,$ac_top_srcdir,;t t
29469 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29470 s,@builddir@,$ac_builddir,;t t
29471 s,@abs_builddir@,$ac_abs_builddir,;t t
29472 s,@top_builddir@,$ac_top_builddir,;t t
29473 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29474 s,@INSTALL@,$ac_INSTALL,;t t
29475 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29477 if test x"$ac_file" != x-; then
29478 mv $tmp/out $ac_file
29486 cat >>$CONFIG_STATUS <<\_ACEOF
29489 # CONFIG_HEADER section.
29492 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29493 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29495 # ac_d sets the value in "#define NAME VALUE" lines.
29496 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29497 ac_dB='[ ].*$,\1#\2'
29500 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29501 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29502 ac_uB='$,\1#\2define\3'
29506 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29507 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29509 - | *:- | *:-:* ) # input from stdin
29511 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29512 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29513 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29514 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29515 * ) ac_file_in=$ac_file.in ;;
29518 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29519 echo "$as_me: creating $ac_file" >&6;}
29521 # First look for the input files in the build tree, otherwise in the
29523 ac_file_inputs=`IFS=:
29524 for f in $ac_file_in; do
29526 -) echo $tmp/stdin ;;
29528 # Absolute (can't be DOS-style, as IFS=:)
29529 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29530 echo "$as_me: error: cannot find input file: $f" >&2;}
29531 { (exit 1); exit 1; }; }
29532 # Do quote $f, to prevent DOS paths from being IFS'd.
29535 if test -f "$f"; then
29538 elif test -f "$srcdir/$f"; then
29543 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29544 echo "$as_me: error: cannot find input file: $f" >&2;}
29545 { (exit 1); exit 1; }; }
29548 done` || { (exit 1); exit 1; }
29549 # Remove the trailing spaces.
29550 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
29554 # Transform confdefs.h into two sed scripts, `conftest.defines' and
29555 # `conftest.undefs', that substitutes the proper values into
29556 # config.h.in to produce config.h. The first handles `#define'
29557 # templates, and the second `#undef' templates.
29558 # And first: Protect against being on the right side of a sed subst in
29559 # config.status. Protect against being in an unquoted here document
29560 # in config.status.
29561 rm -f conftest.defines conftest.undefs
29562 # Using a here document instead of a string reduces the quoting nightmare.
29563 # Putting comments in sed scripts is not portable.
29565 # `end' is used to avoid that the second main sed command (meant for
29566 # 0-ary CPP macros) applies to n-ary macro definitions.
29567 # See the Autoconf documentation for `clear'.
29568 cat >confdef2sed.sed <<\_ACEOF
29573 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29575 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29578 # If some macros were called several times there might be several times
29579 # the same #defines, which is useless. Nevertheless, we may not want to
29580 # sort them, since we want the *last* AC-DEFINE to be honored.
29581 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29582 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29583 rm -f confdef2sed.sed
29585 # This sed command replaces #undef with comments. This is necessary, for
29586 # example, in the case of _POSIX_SOURCE, which is predefined and required
29587 # on some systems where configure will not decide to define it.
29588 cat >>conftest.undefs <<\_ACEOF
29589 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29592 # Break up conftest.defines because some shells have a limit on the size
29593 # of here documents, and old seds have small limits too (100 cmds).
29594 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29595 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29596 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29597 echo ' :' >>$CONFIG_STATUS
29598 rm -f conftest.tail
29599 while grep . conftest.defines >/dev/null
29601 # Write a limited-size here document to $tmp/defines.sed.
29602 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29603 # Speed up: don't consider the non `#define' lines.
29604 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
29605 # Work around the forget-to-reset-the-flag bug.
29606 echo 't clr' >>$CONFIG_STATUS
29607 echo ': clr' >>$CONFIG_STATUS
29608 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29610 sed -f $tmp/defines.sed $tmp/in >$tmp/out
29612 mv $tmp/out $tmp/in
29614 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29615 rm -f conftest.defines
29616 mv conftest.tail conftest.defines
29618 rm -f conftest.defines
29619 echo ' fi # grep' >>$CONFIG_STATUS
29620 echo >>$CONFIG_STATUS
29622 # Break up conftest.undefs because some shells have a limit on the size
29623 # of here documents, and old seds have small limits too (100 cmds).
29624 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
29625 rm -f conftest.tail
29626 while grep . conftest.undefs >/dev/null
29628 # Write a limited-size here document to $tmp/undefs.sed.
29629 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29630 # Speed up: don't consider the non `#undef'
29631 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
29632 # Work around the forget-to-reset-the-flag bug.
29633 echo 't clr' >>$CONFIG_STATUS
29634 echo ': clr' >>$CONFIG_STATUS
29635 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29637 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29639 mv $tmp/out $tmp/in
29641 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29642 rm -f conftest.undefs
29643 mv conftest.tail conftest.undefs
29645 rm -f conftest.undefs
29647 cat >>$CONFIG_STATUS <<\_ACEOF
29648 # Let's still pretend it is `configure' which instantiates (i.e., don't
29649 # use $as_me), people would be surprised to read:
29650 # /* config.h. Generated by config.status. */
29651 if test x"$ac_file" = x-; then
29652 echo "/* Generated by configure. */" >$tmp/config.h
29654 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
29656 cat $tmp/in >>$tmp/config.h
29658 if test x"$ac_file" != x-; then
29659 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29660 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29661 echo "$as_me: $ac_file is unchanged" >&6;}
29663 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29664 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29665 X"$ac_file" : 'X\(//\)[^/]' \| \
29666 X"$ac_file" : 'X\(//\)$' \| \
29667 X"$ac_file" : 'X\(/\)' \| \
29668 . : '\(.\)' 2>/dev/null ||
29670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29671 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29672 /^X\(\/\/\)$/{ s//\1/; q; }
29673 /^X\(\/\).*/{ s//\1/; q; }
29675 { if $as_mkdir_p; then
29680 while test ! -d "$as_dir"; do
29681 as_dirs="$as_dir $as_dirs"
29682 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29683 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29684 X"$as_dir" : 'X\(//\)[^/]' \| \
29685 X"$as_dir" : 'X\(//\)$' \| \
29686 X"$as_dir" : 'X\(/\)' \| \
29687 . : '\(.\)' 2>/dev/null ||
29689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29690 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29691 /^X\(\/\/\)$/{ s//\1/; q; }
29692 /^X\(\/\).*/{ s//\1/; q; }
29695 test ! -n "$as_dirs" || mkdir $as_dirs
29696 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29697 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29698 { (exit 1); exit 1; }; }; }
29701 mv $tmp/config.h $ac_file
29705 rm -f $tmp/config.h
29707 # Compute $ac_file's index in $config_headers.
29709 for _am_header in $config_headers :; do
29710 case $_am_header in
29711 $ac_file | $ac_file:* )
29714 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29717 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29718 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29719 X$ac_file : 'X\(//\)[^/]' \| \
29720 X$ac_file : 'X\(//\)$' \| \
29721 X$ac_file : 'X\(/\)' \| \
29722 . : '\(.\)' 2>/dev/null ||
29724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29725 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29726 /^X\(\/\/\)$/{ s//\1/; q; }
29727 /^X\(\/\).*/{ s//\1/; q; }
29728 s/.*/./; q'`/stamp-h$_am_stamp_count
29731 cat >>$CONFIG_STATUS <<\_ACEOF
29734 # CONFIG_COMMANDS section.
29736 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29737 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29738 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29739 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
29740 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29741 X"$ac_dest" : 'X\(//\)[^/]' \| \
29742 X"$ac_dest" : 'X\(//\)$' \| \
29743 X"$ac_dest" : 'X\(/\)' \| \
29744 . : '\(.\)' 2>/dev/null ||
29746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29747 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29748 /^X\(\/\/\)$/{ s//\1/; q; }
29749 /^X\(\/\).*/{ s//\1/; q; }
29751 { if $as_mkdir_p; then
29756 while test ! -d "$as_dir"; do
29757 as_dirs="$as_dir $as_dirs"
29758 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29759 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29760 X"$as_dir" : 'X\(//\)[^/]' \| \
29761 X"$as_dir" : 'X\(//\)$' \| \
29762 X"$as_dir" : 'X\(/\)' \| \
29763 . : '\(.\)' 2>/dev/null ||
29765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29766 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29767 /^X\(\/\/\)$/{ s//\1/; q; }
29768 /^X\(\/\).*/{ s//\1/; q; }
29771 test ! -n "$as_dirs" || mkdir $as_dirs
29772 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29773 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29774 { (exit 1); exit 1; }; }; }
29778 if test "$ac_dir" != .; then
29779 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29780 # A "../" for each directory in $ac_dir_suffix.
29781 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29783 ac_dir_suffix= ac_top_builddir=
29787 .) # No --srcdir option. We are building in place.
29789 if test -z "$ac_top_builddir"; then
29792 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29794 [\\/]* | ?:[\\/]* ) # Absolute path.
29795 ac_srcdir=$srcdir$ac_dir_suffix;
29796 ac_top_srcdir=$srcdir ;;
29797 *) # Relative path.
29798 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29799 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29802 # Do not use `cd foo && pwd` to compute absolute paths, because
29803 # the directories may not exist.
29805 .) ac_abs_builddir="$ac_dir";;
29808 .) ac_abs_builddir=`pwd`;;
29809 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29810 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29813 case $ac_abs_builddir in
29814 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29816 case ${ac_top_builddir}. in
29817 .) ac_abs_top_builddir=$ac_abs_builddir;;
29818 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29819 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29822 case $ac_abs_builddir in
29823 .) ac_abs_srcdir=$ac_srcdir;;
29826 .) ac_abs_srcdir=$ac_abs_builddir;;
29827 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29828 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29831 case $ac_abs_builddir in
29832 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29834 case $ac_top_srcdir in
29835 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29836 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29837 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29842 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
29843 echo "$as_me: executing $ac_dest commands" >&6;}
29845 rfb/rfbconfig.h ) ac_prefix_conf_OUT=`echo rfb/rfbconfig.h`
29846 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
29847 ac_prefix_conf_PKG=`echo $PACKAGE`
29848 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
29849 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
29850 ac_prefix_conf_INP=`echo _`
29851 if test "$ac_prefix_conf_INP" = "_"; then
29852 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
29853 test -f "$ac_prefix_conf_INP" && continue
29855 *.h) test -f $ac_file && ac_prefix_conf_INP=$ac_file ;;
29860 if test "$ac_prefix_conf_INP" = "_"; then
29861 case "$ac_prefix_conf_OUT" in
29862 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
29864 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
29866 *) ac_prefix_conf_INP=config.h
29870 if test -z "$ac_prefix_conf_PKG" ; then
29871 { { echo "$as_me:$LINENO: error: no prefix for _PREFIX_PKG_CONFIG_H" >&5
29872 echo "$as_me: error: no prefix for _PREFIX_PKG_CONFIG_H" >&2;}
29873 { (exit 1); exit 1; }; }
29875 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
29876 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
29878 { echo "$as_me:$LINENO: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
29879 echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
29880 if test -f $ac_prefix_conf_INP ; then
29881 echo "s/#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
29882 # no! these are things like socklen_t, const, vfork
29883 # echo "s/#undef *\\([m4_cr_letters]\\)/#undef $_LOW""_\\1/" >> _script
29884 echo "s/#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
29885 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
29886 echo "#endif/" >>conftest.prefix
29887 # no! these are things like socklen_t, const, vfork
29888 # echo "s/#def[]ine *\\([m4_cr_letters][_symbol]*\\)\\(.*\\)/#ifndef $_LOW""_\\1 \\" >> _script
29889 # echo "#define $_LOW""_\\1 \\2 \\" >> _script
29890 # echo "#endif/" >> _script
29891 # now executing _script on _DEF input to create _OUT output file
29892 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
29893 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
29894 echo ' ' >>$tmp/pconfig.h
29895 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
29897 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
29898 echo ' ' >>$tmp/pconfig.h
29899 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
29900 echo "#endif" >>$tmp/pconfig.h
29901 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
29902 { echo "$as_me:$LINENO: $ac_prefix_conf_OUT is unchanged" >&5
29903 echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
29905 ac_dir=`(dirname "$ac_prefix_conf_OUT") 2>/dev/null ||
29906 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29907 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
29908 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
29909 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| \
29910 . : '\(.\)' 2>/dev/null ||
29911 echo X"$ac_prefix_conf_OUT" |
29912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29914 /^X\(\/\/\)$/{ s//\1/; q; }
29915 /^X\(\/\).*/{ s//\1/; q; }
29917 { if $as_mkdir_p; then
29922 while test ! -d "$as_dir"; do
29923 as_dirs="$as_dir $as_dirs"
29924 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29926 X"$as_dir" : 'X\(//\)[^/]' \| \
29927 X"$as_dir" : 'X\(//\)$' \| \
29928 X"$as_dir" : 'X\(/\)' \| \
29929 . : '\(.\)' 2>/dev/null ||
29931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29933 /^X\(\/\/\)$/{ s//\1/; q; }
29934 /^X\(\/\).*/{ s//\1/; q; }
29937 test ! -n "$as_dirs" || mkdir $as_dirs
29938 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29939 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29940 { (exit 1); exit 1; }; }; }
29942 rm -f "$ac_prefix_conf_OUT"
29943 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
29945 cp conftest.prefix _configs.sed
29947 { { echo "$as_me:$LINENO: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&5
29948 echo "$as_me: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&2;}
29949 { (exit 1); exit 1; }; }
29954 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29955 # Strip MF so we end up with the name of the file.
29956 mf=`echo "$mf" | sed -e 's/:.*$//'`
29957 # Check whether this is an Automake generated Makefile or not.
29958 # We used to match only the files named `Makefile.in', but
29959 # some people rename them; so instead we look at the file content.
29960 # Grep'ing the first line is not enough: some people post-process
29961 # each Makefile.in and add a new line on top of each file to say so.
29962 # So let's grep whole file.
29963 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
29964 dirpart=`(dirname "$mf") 2>/dev/null ||
29965 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29966 X"$mf" : 'X\(//\)[^/]' \| \
29967 X"$mf" : 'X\(//\)$' \| \
29968 X"$mf" : 'X\(/\)' \| \
29969 . : '\(.\)' 2>/dev/null ||
29971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29972 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29973 /^X\(\/\/\)$/{ s//\1/; q; }
29974 /^X\(\/\).*/{ s//\1/; q; }
29979 # Extract the definition of DEPDIR, am__include, and am__quote
29980 # from the Makefile without running `make'.
29981 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29982 test -z "$DEPDIR" && continue
29983 am__include=`sed -n 's/^am__include = //p' < "$mf"`
29984 test -z "am__include" && continue
29985 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29986 # When using ansi2knr, U may be empty or an underscore; expand it
29987 U=`sed -n 's/^U = //p' < "$mf"`
29988 # Find all dependency output files, they are included files with
29989 # $(DEPDIR) in their names. We invoke sed twice because it is the
29990 # simplest approach to changing $(DEPDIR) to its actual value in the
29992 for file in `sed -n "
29993 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29994 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29995 # Make sure the directory exists.
29996 test -f "$dirpart/$file" && continue
29997 fdir=`(dirname "$file") 2>/dev/null ||
29998 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29999 X"$file" : 'X\(//\)[^/]' \| \
30000 X"$file" : 'X\(//\)$' \| \
30001 X"$file" : 'X\(/\)' \| \
30002 . : '\(.\)' 2>/dev/null ||
30004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30005 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30006 /^X\(\/\/\)$/{ s//\1/; q; }
30007 /^X\(\/\).*/{ s//\1/; q; }
30009 { if $as_mkdir_p; then
30010 mkdir -p $dirpart/$fdir
30012 as_dir=$dirpart/$fdir
30014 while test ! -d "$as_dir"; do
30015 as_dirs="$as_dir $as_dirs"
30016 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30018 X"$as_dir" : 'X\(//\)[^/]' \| \
30019 X"$as_dir" : 'X\(//\)$' \| \
30020 X"$as_dir" : 'X\(/\)' \| \
30021 . : '\(.\)' 2>/dev/null ||
30023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30025 /^X\(\/\/\)$/{ s//\1/; q; }
30026 /^X\(\/\).*/{ s//\1/; q; }
30029 test ! -n "$as_dirs" || mkdir $as_dirs
30030 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30031 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30032 { (exit 1); exit 1; }; }; }
30034 # echo "creating $dirpart/$file"
30035 echo '# dummy' > "$dirpart/$file"
30039 chmod-libvncserver-config ) chmod a+x libvncserver-config ;;
30044 cat >>$CONFIG_STATUS <<\_ACEOF
30046 { (exit 0); exit 0; }
30048 chmod +x $CONFIG_STATUS
30049 ac_clean_files=$ac_clean_files_save
30052 # configure is writing to config.log, and then calls config.status.
30053 # config.status does its own redirection, appending to config.log.
30054 # Unfortunately, on DOS this fails, as config.log is still kept open
30055 # by configure, so config.status won't be able to write to it; its
30056 # output is simply discarded. So we exec the FD to /dev/null,
30057 # effectively closing config.log, so it can be properly (re)opened and
30058 # appended to by config.status. When coming back to configure, we
30059 # need to make the FD available again.
30060 if test "$no_create" != yes; then
30062 ac_config_status_args=
30063 test "$silent" = yes &&
30064 ac_config_status_args="$ac_config_status_args --quiet"
30066 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30068 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30069 # would make configure fail if this is the last instruction.
30070 $ac_cs_success || { (exit 1); exit 1; }
30073 chmod a+x ./libvncserver-config