Update web page
[presencevnc] / libvnc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for LibVNCServer 0.9.7.
4 #
5 # Report bugs to <http://sourceforge.net/projects/libvncserver>.
6 #
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 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
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
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
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 \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
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 ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
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
87
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
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
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
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
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
124     as_myself=$0
125   fi
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; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
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
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
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 |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
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; }; }
179
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).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >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
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
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'"
231
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'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
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
293     then
294       break
295     fi
296   done
297 fi
298
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
302   :
303 else
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'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
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
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
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.
329       echo='print -r'
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
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
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
344         # Cool, printf works
345         :
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
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export 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"
360       else
361         # maybe with a smaller string...
362         prev=:
363
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
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
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+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
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.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
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`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
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}
422
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'
429
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
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'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
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'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
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 ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
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" ;;
558
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'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
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 ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
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 ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
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 ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
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 ;;
620
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 ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
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 ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
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 ;;
667
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 ;;
674
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 ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
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 ;;
729
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 ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
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'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
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" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
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 ;;
773
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 ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
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'"
794     export $ac_envvar ;;
795
796   *)
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}
802     ;;
803
804   esac
805 done
806
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; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
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
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
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.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
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
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
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 ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
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; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
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}
909 ac_env_CC_value=$CC
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
948
949 #
950 # Report the --help message.
951 #
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.
955   cat <<_ACEOF
956 \`configure' configures LibVNCServer 0.9.7 to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
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.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
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 \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
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'.
989
990 For better control, use the options below.
991
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]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 Program names:
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
1013
1014 X features:
1015   --x-includes=DIR    X include files are in DIR
1016   --x-libraries=DIR   X library files are in DIR
1017
1018 System types:
1019   --build=BUILD     configure for building on BUILD [guessed]
1020   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1021 _ACEOF
1022 fi
1023
1024 if test -n "$ac_init_help"; then
1025   case $ac_init_help in
1026      short | recursive ) echo "Configuration of LibVNCServer 0.9.7:";;
1027    esac
1028   cat <<\_ACEOF
1029
1030 Optional Features:
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)
1042
1043 Optional Packages:
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
1048                           both]
1049   --with-tags[=TAGS]
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
1084
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>
1092   CPP         C preprocessor
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
1098
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.
1101
1102 Report bugs to <http://sourceforge.net/projects/libvncserver>.
1103 _ACEOF
1104 fi
1105
1106 if test "$ac_init_help" = "recursive"; then
1107   # If there are subdirs, report their specific --help.
1108   ac_popdir=`pwd`
1109   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1110     test -d $ac_dir || continue
1111     ac_builddir=.
1112
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'`
1117 else
1118   ac_dir_suffix= ac_top_builddir=
1119 fi
1120
1121 case $srcdir in
1122   .)  # No --srcdir option.  We are building in place.
1123     ac_srcdir=.
1124     if test -z "$ac_top_builddir"; then
1125        ac_top_srcdir=.
1126     else
1127        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1128     fi ;;
1129   [\\/]* | ?:[\\/]* )  # Absolute path.
1130     ac_srcdir=$srcdir$ac_dir_suffix;
1131     ac_top_srcdir=$srcdir ;;
1132   *) # Relative path.
1133     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1134     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1135 esac
1136
1137 # Do not use `cd foo && pwd` to compute absolute paths, because
1138 # the directories may not exist.
1139 case `pwd` in
1140 .) ac_abs_builddir="$ac_dir";;
1141 *)
1142   case "$ac_dir" in
1143   .) ac_abs_builddir=`pwd`;;
1144   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1145   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1146   esac;;
1147 esac
1148 case $ac_abs_builddir in
1149 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1150 *)
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}.;;
1155   esac;;
1156 esac
1157 case $ac_abs_builddir in
1158 .) ac_abs_srcdir=$ac_srcdir;;
1159 *)
1160   case $ac_srcdir in
1161   .) ac_abs_srcdir=$ac_abs_builddir;;
1162   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1163   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1164   esac;;
1165 esac
1166 case $ac_abs_builddir in
1167 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1168 *)
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;;
1173   esac;;
1174 esac
1175
1176     cd $ac_dir
1177     # Check for guested configure; otherwise get Cygnus style configure.
1178     if test -f $ac_srcdir/configure.gnu; then
1179       echo
1180       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1181     elif test -f $ac_srcdir/configure; then
1182       echo
1183       $SHELL $ac_srcdir/configure  --help=recursive
1184     elif test -f $ac_srcdir/configure.ac ||
1185            test -f $ac_srcdir/configure.in; then
1186       echo
1187       $ac_configure --help
1188     else
1189       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1190     fi
1191     cd $ac_popdir
1192   done
1193 fi
1194
1195 test -n "$ac_init_help" && exit 0
1196 if $ac_init_version; then
1197   cat <<\_ACEOF
1198 LibVNCServer configure 0.9.7
1199 generated by GNU Autoconf 2.59
1200
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.
1204 _ACEOF
1205   exit 0
1206 fi
1207 exec 5>config.log
1208 cat >&5 <<_ACEOF
1209 This file contains any messages produced by compilers while
1210 running configure, to aid debugging if configure makes a mistake.
1211
1212 It was created by LibVNCServer $as_me 0.9.7, which was
1213 generated by GNU Autoconf 2.59.  Invocation command line was
1214
1215   $ $0 $@
1216
1217 _ACEOF
1218 {
1219 cat <<_ASUNAME
1220 ## --------- ##
1221 ## Platform. ##
1222 ## --------- ##
1223
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`
1229
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`
1232
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`
1240
1241 _ASUNAME
1242
1243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1244 for as_dir in $PATH
1245 do
1246   IFS=$as_save_IFS
1247   test -z "$as_dir" && as_dir=.
1248   echo "PATH: $as_dir"
1249 done
1250
1251 } >&5
1252
1253 cat >&5 <<_ACEOF
1254
1255
1256 ## ----------- ##
1257 ## Core tests. ##
1258 ## ----------- ##
1259
1260 _ACEOF
1261
1262
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.
1268 ac_configure_args=
1269 ac_configure_args0=
1270 ac_configure_args1=
1271 ac_sep=
1272 ac_must_keep_next=false
1273 for ac_pass in 1 2
1274 do
1275   for ac_arg
1276   do
1277     case $ac_arg in
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)
1281       continue ;;
1282     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1284     esac
1285     case $ac_pass in
1286     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1287     2)
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.
1291       else
1292         case $ac_arg in
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 ;;
1299             esac
1300             ;;
1301           -* ) ac_must_keep_next=true ;;
1302         esac
1303       fi
1304       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1305       # Get rid of the leading space.
1306       ac_sep=" "
1307       ;;
1308     esac
1309   done
1310 done
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; }
1313
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.
1321   {
1322     echo
1323
1324     cat <<\_ASBOX
1325 ## ---------------- ##
1326 ## Cache variables. ##
1327 ## ---------------- ##
1328 _ASBOX
1329     echo
1330     # The following way of writing the cache mishandles newlines in values,
1331 {
1332   (set) 2>&1 |
1333     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1334     *ac_space=\ *)
1335       sed -n \
1336         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1337           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1338       ;;
1339     *)
1340       sed -n \
1341         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1342       ;;
1343     esac;
1344 }
1345     echo
1346
1347     cat <<\_ASBOX
1348 ## ----------------- ##
1349 ## Output variables. ##
1350 ## ----------------- ##
1351 _ASBOX
1352     echo
1353     for ac_var in $ac_subst_vars
1354     do
1355       eval ac_val=$`echo $ac_var`
1356       echo "$ac_var='"'"'$ac_val'"'"'"
1357     done | sort
1358     echo
1359
1360     if test -n "$ac_subst_files"; then
1361       cat <<\_ASBOX
1362 ## ------------- ##
1363 ## Output files. ##
1364 ## ------------- ##
1365 _ASBOX
1366       echo
1367       for ac_var in $ac_subst_files
1368       do
1369         eval ac_val=$`echo $ac_var`
1370         echo "$ac_var='"'"'$ac_val'"'"'"
1371       done | sort
1372       echo
1373     fi
1374
1375     if test -s confdefs.h; then
1376       cat <<\_ASBOX
1377 ## ----------- ##
1378 ## confdefs.h. ##
1379 ## ----------- ##
1380 _ASBOX
1381       echo
1382       sed "/^$/d" confdefs.h | sort
1383       echo
1384     fi
1385     test "$ac_signal" != 0 &&
1386       echo "$as_me: caught signal $ac_signal"
1387     echo "$as_me: exit $exit_status"
1388   } >&5
1389   rm -f core *.core &&
1390   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1391     exit $exit_status
1392      ' 0
1393 for ac_signal in 1 2 13 15; do
1394   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1395 done
1396 ac_signal=0
1397
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.
1401 echo >confdefs.h
1402
1403 # Predefined preprocessor variables.
1404
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_NAME "$PACKAGE_NAME"
1407 _ACEOF
1408
1409
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1412 _ACEOF
1413
1414
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1417 _ACEOF
1418
1419
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_STRING "$PACKAGE_STRING"
1422 _ACEOF
1423
1424
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1427 _ACEOF
1428
1429
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"
1435   else
1436     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1437   fi
1438 fi
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
1444     . "$ac_site_file"
1445   fi
1446 done
1447
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;}
1454     case $cache_file in
1455       [\\/]* | ?:[\\/]* ) . $cache_file;;
1456       *)                      . ./$cache_file;;
1457     esac
1458   fi
1459 else
1460   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1461 echo "$as_me: creating cache $cache_file" >&6;}
1462   >$cache_file
1463 fi
1464
1465 # Check that the precious variables saved in the cache have kept the same
1466 # value.
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
1475     set,)
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=: ;;
1479     ,set)
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=: ;;
1483     ,);;
1484     *)
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=:
1493       fi;;
1494   esac
1495   # Pass precious variables to config.status.
1496   if test "$ac_new_set" = set; then
1497     case $ac_new_val in
1498     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1499       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1500     *) ac_arg=$ac_var=$ac_new_val ;;
1501     esac
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'" ;;
1505     esac
1506   fi
1507 done
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; }; }
1514 fi
1515
1516 ac_ext=c
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
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548 am__api_version="1.9"
1549 ac_aux_dir=
1550 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1551   if test -f $ac_dir/install-sh; then
1552     ac_aux_dir=$ac_dir
1553     ac_install_sh="$ac_aux_dir/install-sh -c"
1554     break
1555   elif test -f $ac_dir/install.sh; then
1556     ac_aux_dir=$ac_dir
1557     ac_install_sh="$ac_aux_dir/install.sh -c"
1558     break
1559   elif test -f $ac_dir/shtool; then
1560     ac_aux_dir=$ac_dir
1561     ac_install_sh="$ac_aux_dir/shtool install -c"
1562     break
1563   fi
1564 done
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; }; }
1569 fi
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.
1573
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
1580 # AIX /bin/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
1592 else
1593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594 for as_dir in $PATH
1595 do
1596   IFS=$as_save_IFS
1597   test -z "$as_dir" && as_dir=.
1598   # Account for people who put trailing slashes in PATH elements.
1599 case $as_dir/ in
1600   ./ | .// | /cC/* | \
1601   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1602   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1603   /usr/ucb/* ) ;;
1604   *)
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
1607     # by default.
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.
1614             :
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.
1618             :
1619           else
1620             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1621             break 3
1622           fi
1623         fi
1624       done
1625     done
1626     ;;
1627 esac
1628 done
1629
1630
1631 fi
1632   if test "${ac_cv_path_install+set}" = set; then
1633     INSTALL=$ac_cv_path_install
1634   else
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
1640   fi
1641 fi
1642 echo "$as_me:$LINENO: result: $INSTALL" >&5
1643 echo "${ECHO_T}$INSTALL" >&6
1644
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}'
1648
1649 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1650
1651 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1652
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
1655 # Just in case
1656 sleep 1
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
1662 # directory).
1663 if (
1664    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1665    if test "$*" = "X"; then
1666       # -L didn't work.
1667       set X `ls -t $srcdir/configure conftest.file`
1668    fi
1669    rm -f conftest.file
1670    if test "$*" != "X $srcdir/configure conftest.file" \
1671       && test "$*" != "X conftest.file $srcdir/configure"; then
1672
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; }; }
1682    fi
1683
1684    test "$2" = conftest.file
1685    )
1686 then
1687    # Ok.
1688    :
1689 else
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; }; }
1695 fi
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,$//
1707 _ACEOF
1708 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1709 rm conftest.sed
1710
1711 # expand $ac_aux_dir to an absolute path
1712 am_aux_dir=`cd $ac_aux_dir && pwd`
1713
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 "
1718 else
1719   am_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;}
1722 fi
1723
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
1729   # for two reasons:
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 --'
1740 else
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
1744   # exists.
1745   for d in ./-p ./--version;
1746   do
1747     test -d $d && rmdir $d
1748   done
1749   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1750   if test -f "$ac_aux_dir/mkinstalldirs"; then
1751     mkdir_p='$(mkinstalldirs)'
1752   else
1753     mkdir_p='$(install_sh) -d'
1754   fi
1755 fi
1756
1757 for ac_prog in gawk mawk nawk awk
1758 do
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
1765 else
1766   if test -n "$AWK"; then
1767   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1768 else
1769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770 for as_dir in $PATH
1771 do
1772   IFS=$as_save_IFS
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
1778     break 2
1779   fi
1780 done
1781 done
1782
1783 fi
1784 fi
1785 AWK=$ac_cv_prog_AWK
1786 if test -n "$AWK"; then
1787   echo "$as_me:$LINENO: result: $AWK" >&5
1788 echo "${ECHO_T}$AWK" >&6
1789 else
1790   echo "$as_me:$LINENO: result: no" >&5
1791 echo "${ECHO_T}no" >&6
1792 fi
1793
1794   test -n "$AWK" && break
1795 done
1796
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
1802 else
1803   cat >conftest.make <<\_ACEOF
1804 all:
1805         @echo 'ac_maketemp="$(MAKE)"'
1806 _ACEOF
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
1811 else
1812   eval ac_cv_prog_make_${ac_make}_set=no
1813 fi
1814 rm -f conftest.make
1815 fi
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
1819   SET_MAKE=
1820 else
1821   echo "$as_me:$LINENO: result: no" >&5
1822 echo "${ECHO_T}no" >&6
1823   SET_MAKE="MAKE=${MAKE-make}"
1824 fi
1825
1826 rm -rf .tst 2>/dev/null
1827 mkdir .tst 2>/dev/null
1828 if test -d .tst; then
1829   am__leading_dot=.
1830 else
1831   am__leading_dot=_
1832 fi
1833 rmdir .tst 2>/dev/null
1834
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; }; }
1841 fi
1842
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'
1847   else
1848     CYGPATH_W=echo
1849   fi
1850 fi
1851
1852
1853 # Define the identity of the package.
1854  PACKAGE=LibVNCServer
1855  VERSION=0.9.7
1856
1857
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE "$PACKAGE"
1860 _ACEOF
1861
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define VERSION "$VERSION"
1865 _ACEOF
1866
1867 # Some tools Automake needs.
1868
1869 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1870
1871
1872 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1873
1874
1875 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1876
1877
1878 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1879
1880
1881 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1882
1883 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1884
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
1897 else
1898   if test -n "$STRIP"; then
1899   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1900 else
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902 for as_dir in $PATH
1903 do
1904   IFS=$as_save_IFS
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
1910     break 2
1911   fi
1912 done
1913 done
1914
1915 fi
1916 fi
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
1921 else
1922   echo "$as_me:$LINENO: result: no" >&5
1923 echo "${ECHO_T}no" >&6
1924 fi
1925
1926 fi
1927 if test -z "$ac_cv_prog_STRIP"; then
1928   ac_ct_STRIP=$STRIP
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
1935 else
1936   if test -n "$ac_ct_STRIP"; then
1937   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1938 else
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940 for as_dir in $PATH
1941 do
1942   IFS=$as_save_IFS
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
1948     break 2
1949   fi
1950 done
1951 done
1952
1953   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1954 fi
1955 fi
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
1960 else
1961   echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6
1963 fi
1964
1965   STRIP=$ac_ct_STRIP
1966 else
1967   STRIP="$ac_cv_prog_STRIP"
1968 fi
1969
1970 fi
1971 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1972
1973 # We need awk for the "check" target.  The system "awk" is bad on
1974 # some platforms.
1975 # Always define AMTAR for backward compatibility.
1976
1977 AMTAR=${AMTAR-"${am_missing_run}tar"}
1978
1979 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1980
1981
1982
1983
1984
1985           ac_config_headers="$ac_config_headers rfbconfig.h"
1986
1987 ac_config_headers="$ac_config_headers "
1988
1989
1990           ac_config_commands="$ac_config_commands rfb/rfbconfig.h"
1991
1992
1993 # Checks for programs.
1994 ac_ext=c
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
2006 else
2007   if test -n "$CC"; then
2008   ac_cv_prog_CC="$CC" # Let the user override the test.
2009 else
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 for as_dir in $PATH
2012 do
2013   IFS=$as_save_IFS
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
2019     break 2
2020   fi
2021 done
2022 done
2023
2024 fi
2025 fi
2026 CC=$ac_cv_prog_CC
2027 if test -n "$CC"; then
2028   echo "$as_me:$LINENO: result: $CC" >&5
2029 echo "${ECHO_T}$CC" >&6
2030 else
2031   echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2033 fi
2034
2035 fi
2036 if test -z "$ac_cv_prog_CC"; then
2037   ac_ct_CC=$CC
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
2044 else
2045   if test -n "$ac_ct_CC"; then
2046   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2047 else
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051   IFS=$as_save_IFS
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
2057     break 2
2058   fi
2059 done
2060 done
2061
2062 fi
2063 fi
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
2068 else
2069   echo "$as_me:$LINENO: result: no" >&5
2070 echo "${ECHO_T}no" >&6
2071 fi
2072
2073   CC=$ac_ct_CC
2074 else
2075   CC="$ac_cv_prog_CC"
2076 fi
2077
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
2086 else
2087   if test -n "$CC"; then
2088   ac_cv_prog_CC="$CC" # Let the user override the test.
2089 else
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 for as_dir in $PATH
2092 do
2093   IFS=$as_save_IFS
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
2099     break 2
2100   fi
2101 done
2102 done
2103
2104 fi
2105 fi
2106 CC=$ac_cv_prog_CC
2107 if test -n "$CC"; then
2108   echo "$as_me:$LINENO: result: $CC" >&5
2109 echo "${ECHO_T}$CC" >&6
2110 else
2111   echo "$as_me:$LINENO: result: no" >&5
2112 echo "${ECHO_T}no" >&6
2113 fi
2114
2115 fi
2116 if test -z "$ac_cv_prog_CC"; then
2117   ac_ct_CC=$CC
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
2124 else
2125   if test -n "$ac_ct_CC"; then
2126   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2127 else
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 for as_dir in $PATH
2130 do
2131   IFS=$as_save_IFS
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
2137     break 2
2138   fi
2139 done
2140 done
2141
2142 fi
2143 fi
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
2148 else
2149   echo "$as_me:$LINENO: result: no" >&5
2150 echo "${ECHO_T}no" >&6
2151 fi
2152
2153   CC=$ac_ct_CC
2154 else
2155   CC="$ac_cv_prog_CC"
2156 fi
2157
2158 fi
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
2166 else
2167   if test -n "$CC"; then
2168   ac_cv_prog_CC="$CC" # Let the user override the test.
2169 else
2170   ac_prog_rejected=no
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 for as_dir in $PATH
2173 do
2174   IFS=$as_save_IFS
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
2180        continue
2181      fi
2182     ac_cv_prog_CC="cc"
2183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184     break 2
2185   fi
2186 done
2187 done
2188
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
2192   shift
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.
2197     shift
2198     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2199   fi
2200 fi
2201 fi
2202 fi
2203 CC=$ac_cv_prog_CC
2204 if test -n "$CC"; then
2205   echo "$as_me:$LINENO: result: $CC" >&5
2206 echo "${ECHO_T}$CC" >&6
2207 else
2208   echo "$as_me:$LINENO: result: no" >&5
2209 echo "${ECHO_T}no" >&6
2210 fi
2211
2212 fi
2213 if test -z "$CC"; then
2214   if test -n "$ac_tool_prefix"; then
2215   for ac_prog in cl
2216   do
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
2223 else
2224   if test -n "$CC"; then
2225   ac_cv_prog_CC="$CC" # Let the user override the test.
2226 else
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2229 do
2230   IFS=$as_save_IFS
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
2236     break 2
2237   fi
2238 done
2239 done
2240
2241 fi
2242 fi
2243 CC=$ac_cv_prog_CC
2244 if test -n "$CC"; then
2245   echo "$as_me:$LINENO: result: $CC" >&5
2246 echo "${ECHO_T}$CC" >&6
2247 else
2248   echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6
2250 fi
2251
2252     test -n "$CC" && break
2253   done
2254 fi
2255 if test -z "$CC"; then
2256   ac_ct_CC=$CC
2257   for ac_prog in cl
2258 do
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
2265 else
2266   if test -n "$ac_ct_CC"; then
2267   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2268 else
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 for as_dir in $PATH
2271 do
2272   IFS=$as_save_IFS
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
2278     break 2
2279   fi
2280 done
2281 done
2282
2283 fi
2284 fi
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
2289 else
2290   echo "$as_me:$LINENO: result: no" >&5
2291 echo "${ECHO_T}no" >&6
2292 fi
2293
2294   test -n "$ac_ct_CC" && break
2295 done
2296
2297   CC=$ac_ct_CC
2298 fi
2299
2300 fi
2301
2302
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; }; }
2308
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
2315   ac_status=$?
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
2320   ac_status=$?
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
2325   ac_status=$?
2326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327   (exit $ac_status); }
2328
2329 cat >conftest.$ac_ext <<_ACEOF
2330 /* confdefs.h.  */
2331 _ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h.  */
2335
2336 int
2337 main ()
2338 {
2339
2340   ;
2341   return 0;
2342 }
2343 _ACEOF
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
2348 # of exeext.
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
2354   ac_status=$?
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
2359 # resort.
2360
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.
2363 ac_cv_exeext=
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
2366 do
2367   test -f "$ac_file" || continue
2368   case $ac_file in
2369     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2370         ;;
2371     conftest.$ac_ext )
2372         # This is the source file.
2373         ;;
2374     [ab].out )
2375         # We found the default executable, but exeext='' is most
2376         # certainly right.
2377         break;;
2378     *.* )
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.
2383         export ac_cv_exeext
2384         break;;
2385     * )
2386         break;;
2387   esac
2388 done
2389 else
2390   echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2392
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; }; }
2398 fi
2399
2400 ac_exeext=$ac_cv_exeext
2401 echo "$as_me:$LINENO: result: $ac_file" >&5
2402 echo "${ECHO_T}$ac_file" >&6
2403
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
2413   (eval $ac_try) 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }; }; then
2417     cross_compiling=no
2418   else
2419     if test "$cross_compiling" = maybe; then
2420         cross_compiling=yes
2421     else
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; }; }
2429     fi
2430   fi
2431 fi
2432 echo "$as_me:$LINENO: result: yes" >&5
2433 echo "${ECHO_T}yes" >&6
2434
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
2443
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
2448   ac_status=$?
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
2454 # `rm'.
2455 for ac_file in conftest.exe conftest conftest.*; do
2456   test -f "$ac_file" || continue
2457   case $ac_file in
2458     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2459     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2460           export ac_cv_exeext
2461           break;;
2462     * ) break;;
2463   esac
2464 done
2465 else
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; }; }
2471 fi
2472
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
2476
2477 rm -f conftest.$ac_ext
2478 EXEEXT=$ac_cv_exeext
2479 ac_exeext=$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
2484 else
2485   cat >conftest.$ac_ext <<_ACEOF
2486 /* confdefs.h.  */
2487 _ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h.  */
2491
2492 int
2493 main ()
2494 {
2495
2496   ;
2497   return 0;
2498 }
2499 _ACEOF
2500 rm -f conftest.o conftest.obj
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502   (eval $ac_compile) 2>&5
2503   ac_status=$?
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
2507   case $ac_file in
2508     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2509     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2510        break;;
2511   esac
2512 done
2513 else
2514   echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2516
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; }; }
2522 fi
2523
2524 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2525 fi
2526 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2527 echo "${ECHO_T}$ac_cv_objext" >&6
2528 OBJEXT=$ac_cv_objext
2529 ac_objext=$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
2534 else
2535   cat >conftest.$ac_ext <<_ACEOF
2536 /* confdefs.h.  */
2537 _ACEOF
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>conftest.$ac_ext <<_ACEOF
2540 /* end confdefs.h.  */
2541
2542 int
2543 main ()
2544 {
2545 #ifndef __GNUC__
2546        choke me
2547 #endif
2548
2549   ;
2550   return 0;
2551 }
2552 _ACEOF
2553 rm -f conftest.$ac_objext
2554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555   (eval $ac_compile) 2>conftest.er1
2556   ac_status=$?
2557   grep -v '^ *+' conftest.er1 >conftest.err
2558   rm -f conftest.er1
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
2565   (eval $ac_try) 2>&5
2566   ac_status=$?
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
2571   (eval $ac_try) 2>&5
2572   ac_status=$?
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); }; }; then
2575   ac_compiler_gnu=yes
2576 else
2577   echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2579
2580 ac_compiler_gnu=no
2581 fi
2582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2583 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2584
2585 fi
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
2591 CFLAGS="-g"
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
2596 else
2597   cat >conftest.$ac_ext <<_ACEOF
2598 /* confdefs.h.  */
2599 _ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h.  */
2603
2604 int
2605 main ()
2606 {
2607
2608   ;
2609   return 0;
2610 }
2611 _ACEOF
2612 rm -f conftest.$ac_objext
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614   (eval $ac_compile) 2>conftest.er1
2615   ac_status=$?
2616   grep -v '^ *+' conftest.er1 >conftest.err
2617   rm -f conftest.er1
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
2624   (eval $ac_try) 2>&5
2625   ac_status=$?
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
2630   (eval $ac_try) 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); }; }; then
2634   ac_cv_prog_cc_g=yes
2635 else
2636   echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2638
2639 ac_cv_prog_cc_g=no
2640 fi
2641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2642 fi
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
2649     CFLAGS="-g -O2"
2650   else
2651     CFLAGS="-g"
2652   fi
2653 else
2654   if test "$GCC" = yes; then
2655     CFLAGS="-O2"
2656   else
2657     CFLAGS=
2658   fi
2659 fi
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
2664 else
2665   ac_cv_prog_cc_stdc=no
2666 ac_save_CC=$CC
2667 cat >conftest.$ac_ext <<_ACEOF
2668 /* confdefs.h.  */
2669 _ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h.  */
2673 #include <stdarg.h>
2674 #include <stdio.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)
2681      char **p;
2682      int i;
2683 {
2684   return p[i];
2685 }
2686 static char *f (char * (*g) (char **, int), char **p, ...)
2687 {
2688   char *s;
2689   va_list v;
2690   va_start (v,p);
2691   s = g (p, va_arg (v,int));
2692   va_end (v);
2693   return s;
2694 }
2695
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];
2704
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);
2709 int argc;
2710 char **argv;
2711 int
2712 main ()
2713 {
2714 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2715   ;
2716   return 0;
2717 }
2718 _ACEOF
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__"
2727 do
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
2732   ac_status=$?
2733   grep -v '^ *+' conftest.er1 >conftest.err
2734   rm -f conftest.er1
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
2741   (eval $ac_try) 2>&5
2742   ac_status=$?
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
2747   (eval $ac_try) 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; }; then
2751   ac_cv_prog_cc_stdc=$ac_arg
2752 break
2753 else
2754   echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2756
2757 fi
2758 rm -f conftest.err conftest.$ac_objext
2759 done
2760 rm -f conftest.$ac_ext conftest.$ac_objext
2761 CC=$ac_save_CC
2762
2763 fi
2764
2765 case "x$ac_cv_prog_cc_stdc" in
2766   x|xno)
2767     echo "$as_me:$LINENO: result: none needed" >&5
2768 echo "${ECHO_T}none needed" >&6 ;;
2769   *)
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" ;;
2773 esac
2774
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
2780 #ifndef __cplusplus
2781   choke me
2782 #endif
2783 _ACEOF
2784 rm -f conftest.$ac_objext
2785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2786   (eval $ac_compile) 2>conftest.er1
2787   ac_status=$?
2788   grep -v '^ *+' conftest.er1 >conftest.err
2789   rm -f conftest.er1
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
2796   (eval $ac_try) 2>&5
2797   ac_status=$?
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
2802   (eval $ac_try) 2>&5
2803   ac_status=$?
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); }; }; then
2806   for ac_declaration in \
2807    '' \
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);' \
2812    'void exit (int);'
2813 do
2814   cat >conftest.$ac_ext <<_ACEOF
2815 /* confdefs.h.  */
2816 _ACEOF
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h.  */
2820 $ac_declaration
2821 #include <stdlib.h>
2822 int
2823 main ()
2824 {
2825 exit (42);
2826   ;
2827   return 0;
2828 }
2829 _ACEOF
2830 rm -f conftest.$ac_objext
2831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2832   (eval $ac_compile) 2>conftest.er1
2833   ac_status=$?
2834   grep -v '^ *+' conftest.er1 >conftest.err
2835   rm -f conftest.er1
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
2842   (eval $ac_try) 2>&5
2843   ac_status=$?
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
2848   (eval $ac_try) 2>&5
2849   ac_status=$?
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); }; }; then
2852   :
2853 else
2854   echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2856
2857 continue
2858 fi
2859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2860   cat >conftest.$ac_ext <<_ACEOF
2861 /* confdefs.h.  */
2862 _ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h.  */
2866 $ac_declaration
2867 int
2868 main ()
2869 {
2870 exit (42);
2871   ;
2872   return 0;
2873 }
2874 _ACEOF
2875 rm -f conftest.$ac_objext
2876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2877   (eval $ac_compile) 2>conftest.er1
2878   ac_status=$?
2879   grep -v '^ *+' conftest.er1 >conftest.err
2880   rm -f conftest.er1
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
2887   (eval $ac_try) 2>&5
2888   ac_status=$?
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
2893   (eval $ac_try) 2>&5
2894   ac_status=$?
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); }; }; then
2897   break
2898 else
2899   echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2901
2902 fi
2903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2904 done
2905 rm -f conftest*
2906 if test -n "$ac_declaration"; then
2907   echo '#ifdef __cplusplus' >>confdefs.h
2908   echo $ac_declaration      >>confdefs.h
2909   echo '#endif'             >>confdefs.h
2910 fi
2911
2912 else
2913   echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2915
2916 fi
2917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2918 ac_ext=c
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"
2924
2925           ac_config_commands="$ac_config_commands depfiles"
2926
2927
2928 am_make=${MAKE-make}
2929 cat > confinc << 'END'
2930 am__doit:
2931         @echo done
2932 .PHONY: am__doit
2933 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
2937 am__include="#"
2938 am__quote=
2939 _am_result=none
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
2948    am__include=include
2949    am__quote=
2950    _am_result=GNU
2951 fi
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
2957       am__quote="\""
2958       _am_result=BSD
2959    fi
2960 fi
2961
2962
2963 echo "$as_me:$LINENO: result: $_am_result" >&5
2964 echo "${ECHO_T}$_am_result" >&6
2965 rm -f confinc confmf
2966
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"
2970
2971 fi;
2972 if test "x$enable_dependency_tracking" != xno; then
2973   am_depcomp="$ac_aux_dir/depcomp"
2974   AMDEPBACKSLASH='\'
2975 fi
2976
2977
2978 if test "x$enable_dependency_tracking" != xno; then
2979   AMDEP_TRUE=
2980   AMDEP_FALSE='#'
2981 else
2982   AMDEP_TRUE='#'
2983   AMDEP_FALSE=
2984 fi
2985
2986
2987
2988
2989 depcc="$CC"   am_compiler_list=
2990
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
2995 else
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
3001   # in D'.
3002   mkdir conftest.dir
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
3006   cd 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
3012   # directory.
3013   mkdir sub
3014
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`
3018   fi
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.
3023     #
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.
3027     : > sub/conftest.c
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
3033     done
3034     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3035
3036     case $depmode in
3037     nosideeffect)
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
3041         continue
3042       else
3043         break
3044       fi
3045       ;;
3046     none) break ;;
3047     esac
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
3069         break
3070       fi
3071     fi
3072   done
3073
3074   cd ..
3075   rm -rf conftest.dir
3076 else
3077   am_cv_CC_dependencies_compiler_type=none
3078 fi
3079
3080 fi
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
3084
3085
3086
3087 if
3088   test "x$enable_dependency_tracking" != xno \
3089   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3090   am__fastdepCC_TRUE=
3091   am__fastdepCC_FALSE='#'
3092 else
3093   am__fastdepCC_TRUE='#'
3094   am__fastdepCC_FALSE=
3095 fi
3096
3097
3098 if test -z "$CC"; then
3099         CCLD="\$(CC)"
3100 else
3101         CCLD="$CC"
3102 fi
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
3108 else
3109   cat >conftest.make <<\_ACEOF
3110 all:
3111         @echo 'ac_maketemp="$(MAKE)"'
3112 _ACEOF
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
3117 else
3118   eval ac_cv_prog_make_${ac_make}_set=no
3119 fi
3120 rm -f conftest.make
3121 fi
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
3125   SET_MAKE=
3126 else
3127   echo "$as_me:$LINENO: result: no" >&5
3128 echo "${ECHO_T}no" >&6
3129   SET_MAKE="MAKE=${MAKE-make}"
3130 fi
3131
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}
3136     case $enableval in
3137     yes) enable_shared=yes ;;
3138     no) enable_shared=no ;;
3139     *)
3140       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
3144         IFS="$lt_save_ifs"
3145         if test "X$pkg" = "X$p"; then
3146           enable_shared=yes
3147         fi
3148       done
3149       IFS="$lt_save_ifs"
3150       ;;
3151     esac
3152 else
3153   enable_shared=yes
3154 fi;
3155
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}
3160     case $enableval in
3161     yes) enable_static=yes ;;
3162     no) enable_static=no ;;
3163     *)
3164      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
3168         IFS="$lt_save_ifs"
3169         if test "X$pkg" = "X$p"; then
3170           enable_static=yes
3171         fi
3172       done
3173       IFS="$lt_save_ifs"
3174       ;;
3175     esac
3176 else
3177   enable_static=yes
3178 fi;
3179
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}
3184     case $enableval in
3185     yes) enable_fast_install=yes ;;
3186     no) enable_fast_install=no ;;
3187     *)
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
3192         IFS="$lt_save_ifs"
3193         if test "X$pkg" = "X$p"; then
3194           enable_fast_install=yes
3195         fi
3196       done
3197       IFS="$lt_save_ifs"
3198       ;;
3199     esac
3200 else
3201   enable_fast_install=yes
3202 fi;
3203
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; }; }
3209
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
3214 else
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; }; }
3226
3227 fi
3228 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3229 echo "${ECHO_T}$ac_cv_build" >&6
3230 build=$ac_cv_build
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/'`
3234
3235
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
3240 else
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; }; }
3248
3249 fi
3250 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3251 echo "${ECHO_T}$ac_cv_host" >&6
3252 host=$ac_cv_host
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/'`
3256
3257
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
3262 else
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
3266 for as_dir in $PATH
3267 do
3268   IFS=$as_save_IFS
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"
3274       fi
3275     done
3276   done
3277 done
3278 lt_ac_max=0
3279 lt_ac_count=0
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
3285   lt_ac_count=0
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
3290     break
3291   fi
3292   while true; do
3293     cat conftest.in conftest.in >conftest.tmp
3294     mv conftest.tmp conftest.in
3295     cp conftest.in conftest.nl
3296     echo >>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
3305     fi
3306   done
3307 done
3308
3309 fi
3310
3311 SED=$lt_cv_path_SED
3312 echo "$as_me:$LINENO: result: $SED" >&5
3313 echo "${ECHO_T}$SED" >&6
3314
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
3319 else
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'
3323     fi
3324 fi
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
3328
3329
3330
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
3335 else
3336   with_gnu_ld=no
3337 fi;
3338 ac_prog=ld
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
3343   case $host in
3344   *-*-mingw*)
3345     # gcc leaves a trailing carriage return which upsets mingw
3346     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3347   *)
3348     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3349   esac
3350   case $ac_prog in
3351     # Accept absolute paths.
3352     [\\/]* | ?:[\\/]*)
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%/%"`
3358       done
3359       test -z "$LD" && LD="$ac_prog"
3360       ;;
3361   "")
3362     # If it fails, then pretend we aren't using GCC.
3363     ac_prog=ld
3364     ;;
3365   *)
3366     # If it is relative, then search for the first ld in PATH.
3367     with_gnu_ld=unknown
3368     ;;
3369   esac
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
3373 else
3374   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3375 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3376 fi
3377 if test "${lt_cv_path_LD+set}" = set; then
3378   echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380   if test -z "$LD"; then
3381   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3382   for ac_dir in $PATH; do
3383     IFS="$lt_save_ifs"
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
3393         ;;
3394       *)
3395         test "$with_gnu_ld" != yes && break
3396         ;;
3397       esac
3398     fi
3399   done
3400   IFS="$lt_save_ifs"
3401 else
3402   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3403 fi
3404 fi
3405
3406 LD="$lt_cv_path_LD"
3407 if test -n "$LD"; then
3408   echo "$as_me:$LINENO: result: $LD" >&5
3409 echo "${ECHO_T}$LD" >&6
3410 else
3411   echo "$as_me:$LINENO: result: no" >&5
3412 echo "${ECHO_T}no" >&6
3413 fi
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
3421 else
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
3426   ;;
3427 *)
3428   lt_cv_prog_gnu_ld=no
3429   ;;
3430 esac
3431 fi
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
3435
3436
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
3441 else
3442   lt_cv_ld_reload_flag='-r'
3443 fi
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
3448 "" | " "*) ;;
3449 *) reload_flag=" $reload_flag" ;;
3450 esac
3451 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3452 case $host_os in
3453   darwin*)
3454     if test "$GCC" = yes; then
3455       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3456     else
3457       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3458     fi
3459     ;;
3460 esac
3461
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
3466 else
3467   if test -n "$NM"; then
3468   # Let the user override the test.
3469   lt_cv_path_NM="$NM"
3470 else
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"
3474   fi
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
3478       IFS="$lt_save_ifs"
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"
3489           break
3490           ;;
3491         *)
3492           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3493           */dev/null*)
3494             lt_cv_path_NM="$tmp_nm -p"
3495             break
3496             ;;
3497           *)
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
3500             ;;
3501           esac
3502           ;;
3503         esac
3504       fi
3505     done
3506     IFS="$lt_save_ifs"
3507   done
3508   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3509 fi
3510 fi
3511 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3512 echo "${ECHO_T}$lt_cv_path_NM" >&6
3513 NM="$lt_cv_path_NM"
3514
3515 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3516 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3517 LN_S=$as_ln_s
3518 if test "$LN_S" = "ln -s"; then
3519   echo "$as_me:$LINENO: result: yes" >&5
3520 echo "${ECHO_T}yes" >&6
3521 else
3522   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3523 echo "${ECHO_T}no, using $LN_S" >&6
3524 fi
3525
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
3530 else
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.
3544
3545 case $host_os in
3546 aix4* | aix5*)
3547   lt_cv_deplibs_check_method=pass_all
3548   ;;
3549
3550 beos*)
3551   lt_cv_deplibs_check_method=pass_all
3552   ;;
3553
3554 bsdi[45]*)
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
3558   ;;
3559
3560 cygwin*)
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'
3564   ;;
3565
3566 mingw* | pw32*)
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'
3571   ;;
3572
3573 darwin* | rhapsody*)
3574   lt_cv_deplibs_check_method=pass_all
3575   ;;
3576
3577 freebsd* | kfreebsd*-gnu | dragonfly*)
3578   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3579     case $host_cpu in
3580     i*86 )
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.*`
3586       ;;
3587     esac
3588   else
3589     lt_cv_deplibs_check_method=pass_all
3590   fi
3591   ;;
3592
3593 gnu*)
3594   lt_cv_deplibs_check_method=pass_all
3595   ;;
3596
3597 hpux10.20* | hpux11*)
3598   lt_cv_file_magic_cmd=/usr/bin/file
3599   case $host_cpu in
3600   ia64*)
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
3603     ;;
3604   hppa*64*)
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
3607     ;;
3608   *)
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
3611     ;;
3612   esac
3613   ;;
3614
3615 interix3*)
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)$'
3618   ;;
3619
3620 irix5* | irix6* | nonstopux*)
3621   case $LD in
3622   *-32|*"-32 ") libmagic=32-bit;;
3623   *-n32|*"-n32 ") libmagic=N32;;
3624   *-64|*"-64 ") libmagic=64-bit;;
3625   *) libmagic=never-match;;
3626   esac
3627   lt_cv_deplibs_check_method=pass_all
3628   ;;
3629
3630 # This must be Linux ELF.
3631 linux*)
3632   lt_cv_deplibs_check_method=pass_all
3633   ;;
3634
3635 netbsd*)
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)$'
3638   else
3639     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3640   fi
3641   ;;
3642
3643 newos6*)
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
3647   ;;
3648
3649 nto-qnx*)
3650   lt_cv_deplibs_check_method=unknown
3651   ;;
3652
3653 openbsd*)
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)$'
3656   else
3657     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3658   fi
3659   ;;
3660
3661 osf3* | osf4* | osf5*)
3662   lt_cv_deplibs_check_method=pass_all
3663   ;;
3664
3665 solaris*)
3666   lt_cv_deplibs_check_method=pass_all
3667   ;;
3668
3669 sysv4 | sysv4.3*)
3670   case $host_vendor in
3671   motorola)
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*`
3674     ;;
3675   ncr)
3676     lt_cv_deplibs_check_method=pass_all
3677     ;;
3678   sequent)
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 )'
3681     ;;
3682   sni)
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
3686     ;;
3687   siemens)
3688     lt_cv_deplibs_check_method=pass_all
3689     ;;
3690   pc)
3691     lt_cv_deplibs_check_method=pass_all
3692     ;;
3693   esac
3694   ;;
3695
3696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3697   lt_cv_deplibs_check_method=pass_all
3698   ;;
3699 esac
3700
3701 fi
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
3707
3708
3709
3710
3711 # If no C compiler was specified, use CC.
3712 LTCC=${LTCC-"$CC"}
3713
3714 # If no C compiler flags were specified, use CFLAGS.
3715 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3716
3717 # Allow CC to be a program name with arguments.
3718 compiler=$CC
3719
3720
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"
3724
3725 fi;
3726 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3727
3728 # Some flags need to be propagated to the compiler or linker for good
3729 # libtool support.
3730 case $host in
3731 ia64-*-hpux*)
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
3736   ac_status=$?
3737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738   (exit $ac_status); }; then
3739     case `/usr/bin/file conftest.$ac_objext` in
3740     *ELF-32*)
3741       HPUX_IA64_MODE="32"
3742       ;;
3743     *ELF-64*)
3744       HPUX_IA64_MODE="64"
3745       ;;
3746     esac
3747   fi
3748   rm -rf conftest*
3749   ;;
3750 *-*-irix6*)
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
3755   ac_status=$?
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
3760     *32-bit*)
3761       LD="${LD-ld} -melf32bsmip"
3762       ;;
3763     *N32*)
3764       LD="${LD-ld} -melf32bmipn32"
3765       ;;
3766     *64-bit*)
3767       LD="${LD-ld} -melf64bmip"
3768       ;;
3769     esac
3770    else
3771     case `/usr/bin/file conftest.$ac_objext` in
3772     *32-bit*)
3773       LD="${LD-ld} -32"
3774       ;;
3775     *N32*)
3776       LD="${LD-ld} -n32"
3777       ;;
3778     *64-bit*)
3779       LD="${LD-ld} -64"
3780       ;;
3781     esac
3782    fi
3783   fi
3784   rm -rf conftest*
3785   ;;
3786
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
3792   ac_status=$?
3793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); }; then
3795     case `/usr/bin/file conftest.o` in
3796     *32-bit*)
3797       case $host in
3798         x86_64-*linux*)
3799           LD="${LD-ld} -m elf_i386"
3800           ;;
3801         ppc64-*linux*|powerpc64-*linux*)
3802           LD="${LD-ld} -m elf32ppclinux"
3803           ;;
3804         s390x-*linux*)
3805           LD="${LD-ld} -m elf_s390"
3806           ;;
3807         sparc64-*linux*)
3808           LD="${LD-ld} -m elf32_sparc"
3809           ;;
3810       esac
3811       ;;
3812     *64-bit*)
3813       case $host in
3814         x86_64-*linux*)
3815           LD="${LD-ld} -m elf_x86_64"
3816           ;;
3817         ppc*-*linux*|powerpc*-*linux*)
3818           LD="${LD-ld} -m elf64ppc"
3819           ;;
3820         s390*-*linux*)
3821           LD="${LD-ld} -m elf64_s390"
3822           ;;
3823         sparc*-*linux*)
3824           LD="${LD-ld} -m elf64_sparc"
3825           ;;
3826       esac
3827       ;;
3828     esac
3829   fi
3830   rm -rf conftest*
3831   ;;
3832
3833 *-*-sco3.2v5*)
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
3841 else
3842   ac_ext=c
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
3847
3848      cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h.  */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h.  */
3854
3855 int
3856 main ()
3857 {
3858
3859   ;
3860   return 0;
3861 }
3862 _ACEOF
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
3866   ac_status=$?
3867   grep -v '^ *+' conftest.er1 >conftest.err
3868   rm -f conftest.er1
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
3875   (eval $ac_try) 2>&5
3876   ac_status=$?
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
3881   (eval $ac_try) 2>&5
3882   ac_status=$?
3883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884   (exit $ac_status); }; }; then
3885   lt_cv_cc_needs_belf=yes
3886 else
3887   echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3889
3890 lt_cv_cc_needs_belf=no
3891 fi
3892 rm -f conftest.err conftest.$ac_objext \
3893       conftest$ac_exeext conftest.$ac_ext
3894      ac_ext=c
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
3899
3900 fi
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"
3906   fi
3907   ;;
3908 sparc*-*solaris*)
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
3913   ac_status=$?
3914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915   (exit $ac_status); }; then
3916     case `/usr/bin/file conftest.o` in
3917     *64-bit*)
3918       case $lt_cv_prog_gnu_ld in
3919       yes*) LD="${LD-ld} -m elf64_sparc" ;;
3920       *)    LD="${LD-ld} -64" ;;
3921       esac
3922       ;;
3923     esac
3924   fi
3925   rm -rf conftest*
3926   ;;
3927
3928
3929 esac
3930
3931 need_locks="$enable_libtool_lock"
3932
3933
3934 ac_ext=c
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
3943   CPP=
3944 fi
3945 if test -z "$CPP"; then
3946   if test "${ac_cv_prog_CPP+set}" = set; then
3947   echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949       # Double quotes because CPP needs to be expanded
3950     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3951     do
3952       ac_preproc_ok=false
3953 for ac_c_preproc_warn_flag in '' yes
3954 do
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
3962 /* confdefs.h.  */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h.  */
3967 #ifdef __STDC__
3968 # include <limits.h>
3969 #else
3970 # include <assert.h>
3971 #endif
3972                      Syntax error
3973 _ACEOF
3974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3975   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3976   ac_status=$?
3977   grep -v '^ *+' conftest.er1 >conftest.err
3978   rm -f conftest.er1
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
3985   else
3986     ac_cpp_err=
3987   fi
3988 else
3989   ac_cpp_err=yes
3990 fi
3991 if test -z "$ac_cpp_err"; then
3992   :
3993 else
3994   echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3996
3997   # Broken: fails on valid input.
3998 continue
3999 fi
4000 rm -f conftest.err conftest.$ac_ext
4001
4002   # OK, works on sane cases.  Now check whether non-existent headers
4003   # can be detected and how.
4004   cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h.  */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h.  */
4010 #include <ac_nonexistent.h>
4011 _ACEOF
4012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4013   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4014   ac_status=$?
4015   grep -v '^ *+' conftest.er1 >conftest.err
4016   rm -f conftest.er1
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
4023   else
4024     ac_cpp_err=
4025   fi
4026 else
4027   ac_cpp_err=yes
4028 fi
4029 if test -z "$ac_cpp_err"; then
4030   # Broken: success on invalid input.
4031 continue
4032 else
4033   echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4035
4036   # Passes both tests.
4037 ac_preproc_ok=:
4038 break
4039 fi
4040 rm -f conftest.err conftest.$ac_ext
4041
4042 done
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
4046   break
4047 fi
4048
4049     done
4050     ac_cv_prog_CPP=$CPP
4051
4052 fi
4053   CPP=$ac_cv_prog_CPP
4054 else
4055   ac_cv_prog_CPP=$CPP
4056 fi
4057 echo "$as_me:$LINENO: result: $CPP" >&5
4058 echo "${ECHO_T}$CPP" >&6
4059 ac_preproc_ok=false
4060 for ac_c_preproc_warn_flag in '' yes
4061 do
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
4069 /* confdefs.h.  */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h.  */
4074 #ifdef __STDC__
4075 # include <limits.h>
4076 #else
4077 # include <assert.h>
4078 #endif
4079                      Syntax error
4080 _ACEOF
4081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4083   ac_status=$?
4084   grep -v '^ *+' conftest.er1 >conftest.err
4085   rm -f conftest.er1
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
4092   else
4093     ac_cpp_err=
4094   fi
4095 else
4096   ac_cpp_err=yes
4097 fi
4098 if test -z "$ac_cpp_err"; then
4099   :
4100 else
4101   echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104   # Broken: fails on valid input.
4105 continue
4106 fi
4107 rm -f conftest.err conftest.$ac_ext
4108
4109   # OK, works on sane cases.  Now check whether non-existent headers
4110   # can be detected and how.
4111   cat >conftest.$ac_ext <<_ACEOF
4112 /* confdefs.h.  */
4113 _ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h.  */
4117 #include <ac_nonexistent.h>
4118 _ACEOF
4119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4120   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4121   ac_status=$?
4122   grep -v '^ *+' conftest.er1 >conftest.err
4123   rm -f conftest.er1
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
4130   else
4131     ac_cpp_err=
4132   fi
4133 else
4134   ac_cpp_err=yes
4135 fi
4136 if test -z "$ac_cpp_err"; then
4137   # Broken: success on invalid input.
4138 continue
4139 else
4140   echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4142
4143   # Passes both tests.
4144 ac_preproc_ok=:
4145 break
4146 fi
4147 rm -f conftest.err conftest.$ac_ext
4148
4149 done
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
4153   :
4154 else
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; }; }
4160 fi
4161
4162 ac_ext=c
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
4167
4168
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
4173 else
4174   cat >conftest.$ac_ext <<_ACEOF
4175 /* confdefs.h.  */
4176 _ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h.  */
4180 #include <stdlib.h>
4181 #include <stdarg.h>
4182 #include <string.h>
4183 #include <float.h>
4184
4185 int
4186 main ()
4187 {
4188
4189   ;
4190   return 0;
4191 }
4192 _ACEOF
4193 rm -f conftest.$ac_objext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4195   (eval $ac_compile) 2>conftest.er1
4196   ac_status=$?
4197   grep -v '^ *+' conftest.er1 >conftest.err
4198   rm -f conftest.er1
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
4205   (eval $ac_try) 2>&5
4206   ac_status=$?
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
4211   (eval $ac_try) 2>&5
4212   ac_status=$?
4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214   (exit $ac_status); }; }; then
4215   ac_cv_header_stdc=yes
4216 else
4217   echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4219
4220 ac_cv_header_stdc=no
4221 fi
4222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4223
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
4227 /* confdefs.h.  */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h.  */
4232 #include <string.h>
4233
4234 _ACEOF
4235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4236   $EGREP "memchr" >/dev/null 2>&1; then
4237   :
4238 else
4239   ac_cv_header_stdc=no
4240 fi
4241 rm -f conftest*
4242
4243 fi
4244
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
4248 /* confdefs.h.  */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h.  */
4253 #include <stdlib.h>
4254
4255 _ACEOF
4256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257   $EGREP "free" >/dev/null 2>&1; then
4258   :
4259 else
4260   ac_cv_header_stdc=no
4261 fi
4262 rm -f conftest*
4263
4264 fi
4265
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
4269   :
4270 else
4271   cat >conftest.$ac_ext <<_ACEOF
4272 /* confdefs.h.  */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h.  */
4277 #include <ctype.h>
4278 #if ((' ' & 0x0FF) == 0x020)
4279 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4280 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4281 #else
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))
4287 #endif
4288
4289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4290 int
4291 main ()
4292 {
4293   int i;
4294   for (i = 0; i < 256; i++)
4295     if (XOR (islower (i), ISLOWER (i))
4296         || toupper (i) != TOUPPER (i))
4297       exit(2);
4298   exit (0);
4299 }
4300 _ACEOF
4301 rm -f conftest$ac_exeext
4302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4303   (eval $ac_link) 2>&5
4304   ac_status=$?
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
4308   (eval $ac_try) 2>&5
4309   ac_status=$?
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); }; }; then
4312   :
4313 else
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
4317
4318 ( exit $ac_status )
4319 ac_cv_header_stdc=no
4320 fi
4321 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4322 fi
4323 fi
4324 fi
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
4328
4329 cat >>confdefs.h <<\_ACEOF
4330 #define STDC_HEADERS 1
4331 _ACEOF
4332
4333 fi
4334
4335 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4336
4337
4338
4339
4340
4341
4342
4343
4344
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
4347 do
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
4353 else
4354   cat >conftest.$ac_ext <<_ACEOF
4355 /* confdefs.h.  */
4356 _ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h.  */
4360 $ac_includes_default
4361
4362 #include <$ac_header>
4363 _ACEOF
4364 rm -f conftest.$ac_objext
4365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366   (eval $ac_compile) 2>conftest.er1
4367   ac_status=$?
4368   grep -v '^ *+' conftest.er1 >conftest.err
4369   rm -f conftest.er1
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
4376   (eval $ac_try) 2>&5
4377   ac_status=$?
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
4382   (eval $ac_try) 2>&5
4383   ac_status=$?
4384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385   (exit $ac_status); }; }; then
4386   eval "$as_ac_Header=yes"
4387 else
4388   echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4390
4391 eval "$as_ac_Header=no"
4392 fi
4393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4394 fi
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
4400 _ACEOF
4401
4402 fi
4403
4404 done
4405
4406
4407
4408 for ac_header in dlfcn.h
4409 do
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
4416 fi
4417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4419 else
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
4424 /* confdefs.h.  */
4425 _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>
4431 _ACEOF
4432 rm -f conftest.$ac_objext
4433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4434   (eval $ac_compile) 2>conftest.er1
4435   ac_status=$?
4436   grep -v '^ *+' conftest.er1 >conftest.err
4437   rm -f conftest.er1
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
4444   (eval $ac_try) 2>&5
4445   ac_status=$?
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
4450   (eval $ac_try) 2>&5
4451   ac_status=$?
4452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453   (exit $ac_status); }; }; then
4454   ac_header_compiler=yes
4455 else
4456   echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4458
4459 ac_header_compiler=no
4460 fi
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
4464
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
4469 /* confdefs.h.  */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h.  */
4474 #include <$ac_header>
4475 _ACEOF
4476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4477   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4478   ac_status=$?
4479   grep -v '^ *+' conftest.er1 >conftest.err
4480   rm -f conftest.er1
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
4487   else
4488     ac_cpp_err=
4489   fi
4490 else
4491   ac_cpp_err=yes
4492 fi
4493 if test -z "$ac_cpp_err"; then
4494   ac_header_preproc=yes
4495 else
4496   echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4498
4499   ac_header_preproc=no
4500 fi
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
4504
4505 # So?  What about this header?
4506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4507   yes:no: )
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
4513     ;;
4514   no: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;}
4527     (
4528       cat <<\_ASBOX
4529 ## ----------------------------------------------------------- ##
4530 ## Report this to http://sourceforge.net/projects/libvncserver ##
4531 ## ----------------------------------------------------------- ##
4532 _ASBOX
4533     ) |
4534       sed "s/^/$as_me: WARNING:     /" >&2
4535     ;;
4536 esac
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
4541 else
4542   eval "$as_ac_Header=\$ac_header_preproc"
4543 fi
4544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4546
4547 fi
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
4551 _ACEOF
4552
4553 fi
4554
4555 done
4556
4557 ac_ext=cc
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
4564   do
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
4571 else
4572   if test -n "$CXX"; then
4573   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4574 else
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4577 do
4578   IFS=$as_save_IFS
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
4584     break 2
4585   fi
4586 done
4587 done
4588
4589 fi
4590 fi
4591 CXX=$ac_cv_prog_CXX
4592 if test -n "$CXX"; then
4593   echo "$as_me:$LINENO: result: $CXX" >&5
4594 echo "${ECHO_T}$CXX" >&6
4595 else
4596   echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6
4598 fi
4599
4600     test -n "$CXX" && break
4601   done
4602 fi
4603 if test -z "$CXX"; then
4604   ac_ct_CXX=$CXX
4605   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4606 do
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
4613 else
4614   if test -n "$ac_ct_CXX"; then
4615   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4619 do
4620   IFS=$as_save_IFS
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
4626     break 2
4627   fi
4628 done
4629 done
4630
4631 fi
4632 fi
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
4637 else
4638   echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4640 fi
4641
4642   test -n "$ac_ct_CXX" && break
4643 done
4644 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4645
4646   CXX=$ac_ct_CXX
4647 fi
4648
4649
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
4656   ac_status=$?
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
4661   ac_status=$?
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
4666   ac_status=$?
4667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); }
4669
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
4674 else
4675   cat >conftest.$ac_ext <<_ACEOF
4676 /* confdefs.h.  */
4677 _ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h.  */
4681
4682 int
4683 main ()
4684 {
4685 #ifndef __GNUC__
4686        choke me
4687 #endif
4688
4689   ;
4690   return 0;
4691 }
4692 _ACEOF
4693 rm -f conftest.$ac_objext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695   (eval $ac_compile) 2>conftest.er1
4696   ac_status=$?
4697   grep -v '^ *+' conftest.er1 >conftest.err
4698   rm -f conftest.er1
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
4705   (eval $ac_try) 2>&5
4706   ac_status=$?
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
4711   (eval $ac_try) 2>&5
4712   ac_status=$?
4713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714   (exit $ac_status); }; }; then
4715   ac_compiler_gnu=yes
4716 else
4717   echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4719
4720 ac_compiler_gnu=no
4721 fi
4722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4723 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4724
4725 fi
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
4731 CXXFLAGS="-g"
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
4736 else
4737   cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h.  */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h.  */
4743
4744 int
4745 main ()
4746 {
4747
4748   ;
4749   return 0;
4750 }
4751 _ACEOF
4752 rm -f conftest.$ac_objext
4753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4754   (eval $ac_compile) 2>conftest.er1
4755   ac_status=$?
4756   grep -v '^ *+' conftest.er1 >conftest.err
4757   rm -f conftest.er1
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
4764   (eval $ac_try) 2>&5
4765   ac_status=$?
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
4770   (eval $ac_try) 2>&5
4771   ac_status=$?
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); }; }; then
4774   ac_cv_prog_cxx_g=yes
4775 else
4776   echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4778
4779 ac_cv_prog_cxx_g=no
4780 fi
4781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4782 fi
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
4789     CXXFLAGS="-g -O2"
4790   else
4791     CXXFLAGS="-g"
4792   fi
4793 else
4794   if test "$GXX" = yes; then
4795     CXXFLAGS="-O2"
4796   else
4797     CXXFLAGS=
4798   fi
4799 fi
4800 for ac_declaration in \
4801    '' \
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);' \
4806    'void exit (int);'
4807 do
4808   cat >conftest.$ac_ext <<_ACEOF
4809 /* confdefs.h.  */
4810 _ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h.  */
4814 $ac_declaration
4815 #include <stdlib.h>
4816 int
4817 main ()
4818 {
4819 exit (42);
4820   ;
4821   return 0;
4822 }
4823 _ACEOF
4824 rm -f conftest.$ac_objext
4825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4826   (eval $ac_compile) 2>conftest.er1
4827   ac_status=$?
4828   grep -v '^ *+' conftest.er1 >conftest.err
4829   rm -f conftest.er1
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
4836   (eval $ac_try) 2>&5
4837   ac_status=$?
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
4842   (eval $ac_try) 2>&5
4843   ac_status=$?
4844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845   (exit $ac_status); }; }; then
4846   :
4847 else
4848   echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4850
4851 continue
4852 fi
4853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4854   cat >conftest.$ac_ext <<_ACEOF
4855 /* confdefs.h.  */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h.  */
4860 $ac_declaration
4861 int
4862 main ()
4863 {
4864 exit (42);
4865   ;
4866   return 0;
4867 }
4868 _ACEOF
4869 rm -f conftest.$ac_objext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871   (eval $ac_compile) 2>conftest.er1
4872   ac_status=$?
4873   grep -v '^ *+' conftest.er1 >conftest.err
4874   rm -f conftest.er1
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
4881   (eval $ac_try) 2>&5
4882   ac_status=$?
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
4887   (eval $ac_try) 2>&5
4888   ac_status=$?
4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890   (exit $ac_status); }; }; then
4891   break
4892 else
4893   echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4895
4896 fi
4897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4898 done
4899 rm -f conftest*
4900 if test -n "$ac_declaration"; then
4901   echo '#ifdef __cplusplus' >>confdefs.h
4902   echo $ac_declaration      >>confdefs.h
4903   echo '#endif'             >>confdefs.h
4904 fi
4905
4906 ac_ext=cc
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
4911
4912 depcc="$CXX"  am_compiler_list=
4913
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
4918 else
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
4924   # in D'.
4925   mkdir conftest.dir
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
4929   cd 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
4935   # directory.
4936   mkdir sub
4937
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`
4941   fi
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.
4946     #
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.
4950     : > sub/conftest.c
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
4956     done
4957     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4958
4959     case $depmode in
4960     nosideeffect)
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
4964         continue
4965       else
4966         break
4967       fi
4968       ;;
4969     none) break ;;
4970     esac
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
4992         break
4993       fi
4994     fi
4995   done
4996
4997   cd ..
4998   rm -rf conftest.dir
4999 else
5000   am_cv_CXX_dependencies_compiler_type=none
5001 fi
5002
5003 fi
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
5007
5008
5009
5010 if
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='#'
5015 else
5016   am__fastdepCXX_TRUE='#'
5017   am__fastdepCXX_FALSE=
5018 fi
5019
5020
5021
5022
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
5026   ac_ext=cc
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
5036 else
5037       # Double quotes because CXXCPP needs to be expanded
5038     for CXXCPP in "$CXX -E" "/lib/cpp"
5039     do
5040       ac_preproc_ok=false
5041 for ac_cxx_preproc_warn_flag in '' yes
5042 do
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
5050 /* confdefs.h.  */
5051 _ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h.  */
5055 #ifdef __STDC__
5056 # include <limits.h>
5057 #else
5058 # include <assert.h>
5059 #endif
5060                      Syntax error
5061 _ACEOF
5062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5064   ac_status=$?
5065   grep -v '^ *+' conftest.er1 >conftest.err
5066   rm -f conftest.er1
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
5073   else
5074     ac_cpp_err=
5075   fi
5076 else
5077   ac_cpp_err=yes
5078 fi
5079 if test -z "$ac_cpp_err"; then
5080   :
5081 else
5082   echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5084
5085   # Broken: fails on valid input.
5086 continue
5087 fi
5088 rm -f conftest.err conftest.$ac_ext
5089
5090   # OK, works on sane cases.  Now check whether non-existent headers
5091   # can be detected and how.
5092   cat >conftest.$ac_ext <<_ACEOF
5093 /* confdefs.h.  */
5094 _ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h.  */
5098 #include <ac_nonexistent.h>
5099 _ACEOF
5100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5102   ac_status=$?
5103   grep -v '^ *+' conftest.er1 >conftest.err
5104   rm -f conftest.er1
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
5111   else
5112     ac_cpp_err=
5113   fi
5114 else
5115   ac_cpp_err=yes
5116 fi
5117 if test -z "$ac_cpp_err"; then
5118   # Broken: success on invalid input.
5119 continue
5120 else
5121   echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5123
5124   # Passes both tests.
5125 ac_preproc_ok=:
5126 break
5127 fi
5128 rm -f conftest.err conftest.$ac_ext
5129
5130 done
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
5134   break
5135 fi
5136
5137     done
5138     ac_cv_prog_CXXCPP=$CXXCPP
5139
5140 fi
5141   CXXCPP=$ac_cv_prog_CXXCPP
5142 else
5143   ac_cv_prog_CXXCPP=$CXXCPP
5144 fi
5145 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5146 echo "${ECHO_T}$CXXCPP" >&6
5147 ac_preproc_ok=false
5148 for ac_cxx_preproc_warn_flag in '' yes
5149 do
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
5157 /* confdefs.h.  */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h.  */
5162 #ifdef __STDC__
5163 # include <limits.h>
5164 #else
5165 # include <assert.h>
5166 #endif
5167                      Syntax error
5168 _ACEOF
5169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5170   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5171   ac_status=$?
5172   grep -v '^ *+' conftest.er1 >conftest.err
5173   rm -f conftest.er1
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
5180   else
5181     ac_cpp_err=
5182   fi
5183 else
5184   ac_cpp_err=yes
5185 fi
5186 if test -z "$ac_cpp_err"; then
5187   :
5188 else
5189   echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5191
5192   # Broken: fails on valid input.
5193 continue
5194 fi
5195 rm -f conftest.err conftest.$ac_ext
5196
5197   # OK, works on sane cases.  Now check whether non-existent headers
5198   # can be detected and how.
5199   cat >conftest.$ac_ext <<_ACEOF
5200 /* confdefs.h.  */
5201 _ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h.  */
5205 #include <ac_nonexistent.h>
5206 _ACEOF
5207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5208   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5209   ac_status=$?
5210   grep -v '^ *+' conftest.er1 >conftest.err
5211   rm -f conftest.er1
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
5218   else
5219     ac_cpp_err=
5220   fi
5221 else
5222   ac_cpp_err=yes
5223 fi
5224 if test -z "$ac_cpp_err"; then
5225   # Broken: success on invalid input.
5226 continue
5227 else
5228   echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5230
5231   # Passes both tests.
5232 ac_preproc_ok=:
5233 break
5234 fi
5235 rm -f conftest.err conftest.$ac_ext
5236
5237 done
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
5241   :
5242 else
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; }; }
5248 fi
5249
5250 ac_ext=cc
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
5255
5256 fi
5257
5258
5259 ac_ext=f
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
5265   do
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
5272 else
5273   if test -n "$F77"; then
5274   ac_cv_prog_F77="$F77" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5278 do
5279   IFS=$as_save_IFS
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
5285     break 2
5286   fi
5287 done
5288 done
5289
5290 fi
5291 fi
5292 F77=$ac_cv_prog_F77
5293 if test -n "$F77"; then
5294   echo "$as_me:$LINENO: result: $F77" >&5
5295 echo "${ECHO_T}$F77" >&6
5296 else
5297   echo "$as_me:$LINENO: result: no" >&5
5298 echo "${ECHO_T}no" >&6
5299 fi
5300
5301     test -n "$F77" && break
5302   done
5303 fi
5304 if test -z "$F77"; then
5305   ac_ct_F77=$F77
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
5307 do
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
5314 else
5315   if test -n "$ac_ct_F77"; then
5316   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5317 else
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5320 do
5321   IFS=$as_save_IFS
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
5327     break 2
5328   fi
5329 done
5330 done
5331
5332 fi
5333 fi
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
5338 else
5339   echo "$as_me:$LINENO: result: no" >&5
5340 echo "${ECHO_T}no" >&6
5341 fi
5342
5343   test -n "$ac_ct_F77" && break
5344 done
5345
5346   F77=$ac_ct_F77
5347 fi
5348
5349
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
5356   ac_status=$?
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
5361   ac_status=$?
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
5366   ac_status=$?
5367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368   (exit $ac_status); }
5369 rm -f a.out
5370
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.)
5373 ac_save_ext=$ac_ext
5374 ac_ext=F
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
5379 else
5380   cat >conftest.$ac_ext <<_ACEOF
5381       program main
5382 #ifndef __GNUC__
5383        choke me
5384 #endif
5385
5386       end
5387 _ACEOF
5388 rm -f conftest.$ac_objext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390   (eval $ac_compile) 2>conftest.er1
5391   ac_status=$?
5392   grep -v '^ *+' conftest.er1 >conftest.err
5393   rm -f conftest.er1
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
5400   (eval $ac_try) 2>&5
5401   ac_status=$?
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
5406   (eval $ac_try) 2>&5
5407   ac_status=$?
5408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409   (exit $ac_status); }; }; then
5410   ac_compiler_gnu=yes
5411 else
5412   echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414
5415 ac_compiler_gnu=no
5416 fi
5417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5418 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5419
5420 fi
5421 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5422 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5423 ac_ext=$ac_save_ext
5424 ac_test_FFLAGS=${FFLAGS+set}
5425 ac_save_FFLAGS=$FFLAGS
5426 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
5431 else
5432   FFLAGS=-g
5433 cat >conftest.$ac_ext <<_ACEOF
5434       program main
5435
5436       end
5437 _ACEOF
5438 rm -f conftest.$ac_objext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440   (eval $ac_compile) 2>conftest.er1
5441   ac_status=$?
5442   grep -v '^ *+' conftest.er1 >conftest.err
5443   rm -f conftest.er1
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
5450   (eval $ac_try) 2>&5
5451   ac_status=$?
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
5456   (eval $ac_try) 2>&5
5457   ac_status=$?
5458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); }; }; then
5460   ac_cv_prog_f77_g=yes
5461 else
5462   echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5464
5465 ac_cv_prog_f77_g=no
5466 fi
5467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5468
5469 fi
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
5476     FFLAGS="-g -O2"
5477   else
5478     FFLAGS="-g"
5479   fi
5480 else
5481   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5482     FFLAGS="-O2"
5483   else
5484     FFLAGS=
5485   fi
5486 fi
5487
5488 G77=`test $ac_compiler_gnu = yes && echo yes`
5489 ac_ext=c
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
5494
5495
5496
5497 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5498
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
5504 else
5505     i=0
5506   teststring="ABCD"
5507
5508   case $build_os in
5509   msdosdjgpp*)
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
5515     ;;
5516
5517   gnu*)
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;
5522     ;;
5523
5524   cygwin* | mingw*)
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;
5533     ;;
5534
5535   amigaos*)
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;
5539     ;;
5540
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`
5547     else
5548       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5549     fi
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`
5553     ;;
5554
5555   interix*)
5556     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5557     lt_cv_sys_max_cmd_len=196608
5558     ;;
5559
5560   osf*)
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
5566     #
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 ;;
5570       esac
5571     fi
5572     ;;
5573   sco3.2v5*)
5574     lt_cv_sys_max_cmd_len=102400
5575     ;;
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/.*[         ]//'`
5580     else
5581       lt_cv_sys_max_cmd_len=32768
5582     fi
5583     ;;
5584   *)
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
5587     # we can't tell.
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
5594     do
5595       i=`expr $i + 1`
5596       teststring=$teststring$teststring
5597     done
5598     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`
5603     ;;
5604   esac
5605
5606 fi
5607
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
5611 else
5612   echo "$as_me:$LINENO: result: none" >&5
5613 echo "${ECHO_T}none" >&6
5614 fi
5615
5616
5617
5618
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
5624 else
5625
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?!! ;)]
5628
5629 # Character class describing NM global symbol codes.
5630 symcode='[BCDEGRST]'
5631
5632 # Regexp to match symbols that can be accessed directly from C.
5633 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5634
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'"
5637
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'"
5640
5641 # Define system-specific variables.
5642 case $host_os in
5643 aix*)
5644   symcode='[BCDT]'
5645   ;;
5646 cygwin* | mingw* | pw32*)
5647   symcode='[ABCDGISTW]'
5648   ;;
5649 hpux*) # Its linker distinguishes data from code symbols
5650   if test "$host_cpu" = ia64; then
5651     symcode='[ABCDEGRST]'
5652   fi
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'"
5655   ;;
5656 linux*)
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'"
5661   fi
5662   ;;
5663 irix* | nonstopux*)
5664   symcode='[BCDEGRST]'
5665   ;;
5666 osf*)
5667   symcode='[BCDEGQRST]'
5668   ;;
5669 solaris*)
5670   symcode='[BDRT]'
5671   ;;
5672 sco3.2v5*)
5673   symcode='[DT]'
5674   ;;
5675 sysv4.2uw2*)
5676   symcode='[DT]'
5677   ;;
5678 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5679   symcode='[ABDT]'
5680   ;;
5681 sysv4)
5682   symcode='[DFNSTU]'
5683   ;;
5684 esac
5685
5686 # Handle CRLF in mingw tool chain
5687 opt_cr=
5688 case $build_os in
5689 mingw*)
5690   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5691   ;;
5692 esac
5693
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]' ;;
5698 esac
5699
5700 # Try without a prefix undercore, then with it.
5701 for ac_symprfx in "" "_"; do
5702
5703   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5704   symxfrm="\\1 $ac_symprfx\\2 \\2"
5705
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'"
5708
5709   # Check to see that the pipe works correctly.
5710   pipe_works=no
5711
5712   rm -f conftest*
5713   cat > conftest.$ac_ext <<EOF
5714 #ifdef __cplusplus
5715 extern "C" {
5716 #endif
5717 char nm_test_var;
5718 void nm_test_func(){}
5719 #ifdef __cplusplus
5720 }
5721 #endif
5722 int main(){nm_test_var='a';nm_test_func();return(0);}
5723 EOF
5724
5725   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5726   (eval $ac_compile) 2>&5
5727   ac_status=$?
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); }; then
5730     # Now try to grab the symbols.
5731     nlist=conftest.nm
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
5734   ac_status=$?
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"
5740       else
5741         rm -f "$nlist"T
5742       fi
5743
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
5748 #ifdef __cplusplus
5749 extern "C" {
5750 #endif
5751
5752 EOF
5753           # Now generate the symbol file.
5754           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5755
5756           cat <<EOF >> conftest.$ac_ext
5757 #if defined (__STDC__) && __STDC__
5758 # define lt_ptr_t void *
5759 #else
5760 # define lt_ptr_t char *
5761 # define const
5762 #endif
5763
5764 /* The mapping between symbol names and symbols. */
5765 const struct {
5766   const char *name;
5767   lt_ptr_t address;
5768 }
5769 lt_preloaded_symbols[] =
5770 {
5771 EOF
5772           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5773           cat <<\EOF >> conftest.$ac_ext
5774   {0, (lt_ptr_t) 0}
5775 };
5776
5777 #ifdef __cplusplus
5778 }
5779 #endif
5780 EOF
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
5789   ac_status=$?
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5792             pipe_works=yes
5793           fi
5794           LIBS="$lt_save_LIBS"
5795           CFLAGS="$lt_save_CFLAGS"
5796         else
5797           echo "cannot find nm_test_func in $nlist" >&5
5798         fi
5799       else
5800         echo "cannot find nm_test_var in $nlist" >&5
5801       fi
5802     else
5803       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5804     fi
5805   else
5806     echo "$progname: failed program was:" >&5
5807     cat conftest.$ac_ext >&5
5808   fi
5809   rm -f conftest* conftst*
5810
5811   # Do not use the global_symbol_pipe unless it works.
5812   if test "$pipe_works" = yes; then
5813     break
5814   else
5815     lt_cv_sys_global_symbol_pipe=
5816   fi
5817 done
5818
5819 fi
5820
5821 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5822   lt_cv_sys_global_symbol_to_cdecl=
5823 fi
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
5827 else
5828   echo "$as_me:$LINENO: result: ok" >&5
5829 echo "${ECHO_T}ok" >&6
5830 fi
5831
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
5836 else
5837   rm -f .libs 2>/dev/null
5838 mkdir .libs 2>/dev/null
5839 if test -d .libs; then
5840   lt_cv_objdir=.libs
5841 else
5842   # MS-DOS does not allow filenames that begin with a dot.
5843   lt_cv_objdir=_libs
5844 fi
5845 rmdir .libs 2>/dev/null
5846 fi
5847 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5848 echo "${ECHO_T}$lt_cv_objdir" >&6
5849 objdir=$lt_cv_objdir
5850
5851
5852
5853
5854
5855 case $host_os in
5856 aix3*)
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
5861     COLLECT_NAMES=
5862     export COLLECT_NAMES
5863   fi
5864   ;;
5865 esac
5866
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'
5871
5872 # Same as above, but do not quote variable references.
5873 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5874
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'
5878
5879 # Sed substitution to avoid accidental globbing in evaled expressions
5880 no_glob_subst='s/\*/\\\*/g'
5881
5882 # Constants:
5883 rm="rm -f"
5884
5885 # Global variables:
5886 default_ofile=libtool
5887 can_build_shared=yes
5888
5889 # All known linkers require a `.a' archive for static linking (except MSVC,
5890 # which needs '.lib').
5891 libext=a
5892 ltmain="$ac_aux_dir/ltmain.sh"
5893 ofile="$default_ofile"
5894 with_gnu_ld="$lt_cv_prog_gnu_ld"
5895
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
5903 else
5904   if test -n "$AR"; then
5905   ac_cv_prog_AR="$AR" # Let the user override the test.
5906 else
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5909 do
5910   IFS=$as_save_IFS
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
5916     break 2
5917   fi
5918 done
5919 done
5920
5921 fi
5922 fi
5923 AR=$ac_cv_prog_AR
5924 if test -n "$AR"; then
5925   echo "$as_me:$LINENO: result: $AR" >&5
5926 echo "${ECHO_T}$AR" >&6
5927 else
5928   echo "$as_me:$LINENO: result: no" >&5
5929 echo "${ECHO_T}no" >&6
5930 fi
5931
5932 fi
5933 if test -z "$ac_cv_prog_AR"; then
5934   ac_ct_AR=$AR
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
5941 else
5942   if test -n "$ac_ct_AR"; then
5943   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5944 else
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 for as_dir in $PATH
5947 do
5948   IFS=$as_save_IFS
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
5954     break 2
5955   fi
5956 done
5957 done
5958
5959   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5960 fi
5961 fi
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
5966 else
5967   echo "$as_me:$LINENO: result: no" >&5
5968 echo "${ECHO_T}no" >&6
5969 fi
5970
5971   AR=$ac_ct_AR
5972 else
5973   AR="$ac_cv_prog_AR"
5974 fi
5975
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
5983 else
5984   if test -n "$RANLIB"; then
5985   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5989 do
5990   IFS=$as_save_IFS
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
5996     break 2
5997   fi
5998 done
5999 done
6000
6001 fi
6002 fi
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
6007 else
6008   echo "$as_me:$LINENO: result: no" >&5
6009 echo "${ECHO_T}no" >&6
6010 fi
6011
6012 fi
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
6021 else
6022   if test -n "$ac_ct_RANLIB"; then
6023   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028   IFS=$as_save_IFS
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
6034     break 2
6035   fi
6036 done
6037 done
6038
6039   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6040 fi
6041 fi
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
6046 else
6047   echo "$as_me:$LINENO: result: no" >&5
6048 echo "${ECHO_T}no" >&6
6049 fi
6050
6051   RANLIB=$ac_ct_RANLIB
6052 else
6053   RANLIB="$ac_cv_prog_RANLIB"
6054 fi
6055
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
6063 else
6064   if test -n "$STRIP"; then
6065   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6066 else
6067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 for as_dir in $PATH
6069 do
6070   IFS=$as_save_IFS
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
6076     break 2
6077   fi
6078 done
6079 done
6080
6081 fi
6082 fi
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
6087 else
6088   echo "$as_me:$LINENO: result: no" >&5
6089 echo "${ECHO_T}no" >&6
6090 fi
6091
6092 fi
6093 if test -z "$ac_cv_prog_STRIP"; then
6094   ac_ct_STRIP=$STRIP
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
6101 else
6102   if test -n "$ac_ct_STRIP"; then
6103   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6104 else
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 for as_dir in $PATH
6107 do
6108   IFS=$as_save_IFS
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
6114     break 2
6115   fi
6116 done
6117 done
6118
6119   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6120 fi
6121 fi
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
6126 else
6127   echo "$as_me:$LINENO: result: no" >&5
6128 echo "${ECHO_T}no" >&6
6129 fi
6130
6131   STRIP=$ac_ct_STRIP
6132 else
6133   STRIP="$ac_cv_prog_STRIP"
6134 fi
6135
6136
6137 old_CC="$CC"
6138 old_CFLAGS="$CFLAGS"
6139
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
6157
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=
6162
6163 if test -n "$RANLIB"; then
6164   case $host_os in
6165   openbsd*)
6166     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6167     ;;
6168   *)
6169     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6170     ;;
6171   esac
6172   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6173 fi
6174
6175 for cc_temp in $compiler""; do
6176   case $cc_temp in
6177     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6178     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6179     \-*) ;;
6180     *) break;;
6181   esac
6182 done
6183 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6184
6185
6186 # Only perform the check for file, if the check method requires it
6187 case $deplibs_check_method in
6188 file_magic*)
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
6194 else
6195   case $MAGIC_CMD in
6196 [\\/*] |  ?:[\\/]*)
6197   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6198   ;;
6199 *)
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
6204     IFS="$lt_save_ifs"
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
6210         "file_magic "*)
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
6215             :
6216           else
6217             cat <<EOF 1>&2
6218
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
6227
6228 EOF
6229           fi ;;
6230         esac
6231       fi
6232       break
6233     fi
6234   done
6235   IFS="$lt_save_ifs"
6236   MAGIC_CMD="$lt_save_MAGIC_CMD"
6237   ;;
6238 esac
6239 fi
6240
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
6245 else
6246   echo "$as_me:$LINENO: result: no" >&5
6247 echo "${ECHO_T}no" >&6
6248 fi
6249
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
6256 else
6257   case $MAGIC_CMD in
6258 [\\/*] |  ?:[\\/]*)
6259   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6260   ;;
6261 *)
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
6266     IFS="$lt_save_ifs"
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
6272         "file_magic "*)
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
6277             :
6278           else
6279             cat <<EOF 1>&2
6280
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
6289
6290 EOF
6291           fi ;;
6292         esac
6293       fi
6294       break
6295     fi
6296   done
6297   IFS="$lt_save_ifs"
6298   MAGIC_CMD="$lt_save_MAGIC_CMD"
6299   ;;
6300 esac
6301 fi
6302
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
6307 else
6308   echo "$as_me:$LINENO: result: no" >&5
6309 echo "${ECHO_T}no" >&6
6310 fi
6311
6312   else
6313     MAGIC_CMD=:
6314   fi
6315 fi
6316
6317   fi
6318   ;;
6319 esac
6320
6321 enable_dlopen=no
6322 enable_win32_dll=no
6323
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"
6327
6328 fi;
6329 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6330
6331
6332 # Check whether --with-pic or --without-pic was given.
6333 if test "${with_pic+set}" = set; then
6334   withval="$with_pic"
6335   pic_mode="$withval"
6336 else
6337   pic_mode=default
6338 fi;
6339 test -z "$pic_mode" && pic_mode=default
6340
6341 # Use C for the default configuration in the libtool script
6342 tagname=
6343 lt_save_CC="$CC"
6344 ac_ext=c
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
6349
6350
6351 # Source file extension for C test sources.
6352 ac_ext=c
6353
6354 # Object file extension for compiled C test sources.
6355 objext=o
6356 objext=$objext
6357
6358 # Code to be used in simple compile tests
6359 lt_simple_compile_test_code="int some_variable = 0;\n"
6360
6361 # Code to be used in simple link tests
6362 lt_simple_link_test_code='int main(){return(0);}\n'
6363
6364
6365 # If no C compiler was specified, use CC.
6366 LTCC=${LTCC-"$CC"}
6367
6368 # If no C compiler flags were specified, use CFLAGS.
6369 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6370
6371 # Allow CC to be a program name with arguments.
6372 compiler=$CC
6373
6374
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`
6380 $rm conftest*
6381
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`
6386 $rm conftest*
6387
6388
6389 ## CAVEAT EMPTOR:
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...
6393
6394 lt_prog_compiler_no_builtin_flag=
6395
6396 if test "$GCC" = yes; then
6397   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6398
6399
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
6404 else
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)
6420    ac_status=$?
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
6430      fi
6431    fi
6432    $rm conftest*
6433
6434 fi
6435 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6436 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6437
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"
6440 else
6441     :
6442 fi
6443
6444 fi
6445
6446 lt_prog_compiler_wl=
6447 lt_prog_compiler_pic=
6448 lt_prog_compiler_static=
6449
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
6452
6453   if test "$GCC" = yes; then
6454     lt_prog_compiler_wl='-Wl,'
6455     lt_prog_compiler_static='-static'
6456
6457     case $host_os in
6458       aix*)
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'
6463       fi
6464       ;;
6465
6466     amigaos*)
6467       # FIXME: we need at least 68020 code to build shared libraries, but
6468       # adding the `-m68020' flag to GCC prevents building anything better,
6469       # like `-m68040'.
6470       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6471       ;;
6472
6473     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6474       # PIC is the default for these OSes.
6475       ;;
6476
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'
6481       ;;
6482
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'
6487       ;;
6488
6489     interix3*)
6490       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6491       # Instead, we relocate shared libraries at runtime.
6492       ;;
6493
6494     msdosdjgpp*)
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
6498       enable_shared=no
6499       ;;
6500
6501     sysv4*MP*)
6502       if test -d /usr/nec; then
6503         lt_prog_compiler_pic=-Kconform_pic
6504       fi
6505       ;;
6506
6507     hpux*)
6508       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6509       # not for PA HP-UX.
6510       case $host_cpu in
6511       hppa*64*|ia64*)
6512         # +Z the default
6513         ;;
6514       *)
6515         lt_prog_compiler_pic='-fPIC'
6516         ;;
6517       esac
6518       ;;
6519
6520     *)
6521       lt_prog_compiler_pic='-fPIC'
6522       ;;
6523     esac
6524   else
6525     # PORTME Check for flag to pass linker flags through the system compiler.
6526     case $host_os in
6527     aix*)
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'
6532       else
6533         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6534       fi
6535       ;;
6536       darwin*)
6537         # PIC is the default on this platform
6538         # Common symbols not allowed in MH_DYLIB files
6539        case $cc_basename in
6540          xlc*)
6541          lt_prog_compiler_pic='-qnocommon'
6542          lt_prog_compiler_wl='-Wl,'
6543          ;;
6544        esac
6545        ;;
6546
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'
6551       ;;
6552
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
6556       # not for PA HP-UX.
6557       case $host_cpu in
6558       hppa*64*|ia64*)
6559         # +Z the default
6560         ;;
6561       *)
6562         lt_prog_compiler_pic='+Z'
6563         ;;
6564       esac
6565       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6566       lt_prog_compiler_static='${wl}-a ${wl}archive'
6567       ;;
6568
6569     irix5* | irix6* | nonstopux*)
6570       lt_prog_compiler_wl='-Wl,'
6571       # PIC (with -KPIC) is the default.
6572       lt_prog_compiler_static='-non_shared'
6573       ;;
6574
6575     newsos6)
6576       lt_prog_compiler_pic='-KPIC'
6577       lt_prog_compiler_static='-Bstatic'
6578       ;;
6579
6580     linux*)
6581       case $cc_basename in
6582       icc* | ecc*)
6583         lt_prog_compiler_wl='-Wl,'
6584         lt_prog_compiler_pic='-KPIC'
6585         lt_prog_compiler_static='-static'
6586         ;;
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'
6593         ;;
6594       ccc*)
6595         lt_prog_compiler_wl='-Wl,'
6596         # All Alpha code is PIC.
6597         lt_prog_compiler_static='-non_shared'
6598         ;;
6599       esac
6600       ;;
6601
6602     osf3* | osf4* | osf5*)
6603       lt_prog_compiler_wl='-Wl,'
6604       # All OSF/1 code is PIC.
6605       lt_prog_compiler_static='-non_shared'
6606       ;;
6607
6608     solaris*)
6609       lt_prog_compiler_pic='-KPIC'
6610       lt_prog_compiler_static='-Bstatic'
6611       case $cc_basename in
6612       f77* | f90* | f95*)
6613         lt_prog_compiler_wl='-Qoption ld ';;
6614       *)
6615         lt_prog_compiler_wl='-Wl,';;
6616       esac
6617       ;;
6618
6619     sunos4*)
6620       lt_prog_compiler_wl='-Qoption ld '
6621       lt_prog_compiler_pic='-PIC'
6622       lt_prog_compiler_static='-Bstatic'
6623       ;;
6624
6625     sysv4 | sysv4.2uw2* | sysv4.3*)
6626       lt_prog_compiler_wl='-Wl,'
6627       lt_prog_compiler_pic='-KPIC'
6628       lt_prog_compiler_static='-Bstatic'
6629       ;;
6630
6631     sysv4*MP*)
6632       if test -d /usr/nec ;then
6633         lt_prog_compiler_pic='-Kconform_pic'
6634         lt_prog_compiler_static='-Bstatic'
6635       fi
6636       ;;
6637
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'
6642       ;;
6643
6644     unicos*)
6645       lt_prog_compiler_wl='-Wl,'
6646       lt_prog_compiler_can_build_shared=no
6647       ;;
6648
6649     uts4*)
6650       lt_prog_compiler_pic='-pic'
6651       lt_prog_compiler_static='-Bstatic'
6652       ;;
6653
6654     *)
6655       lt_prog_compiler_can_build_shared=no
6656       ;;
6657     esac
6658   fi
6659
6660 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6661 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6662
6663 #
6664 # Check to make sure the PIC flag actually works.
6665 #
6666 if test -n "$lt_prog_compiler_pic"; then
6667
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
6672 else
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)
6688    ac_status=$?
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
6698      fi
6699    fi
6700    $rm conftest*
6701
6702 fi
6703 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6704 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6705
6706 if test x"$lt_prog_compiler_pic_works" = xyes; then
6707     case $lt_prog_compiler_pic in
6708      "" | " "*) ;;
6709      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6710      esac
6711 else
6712     lt_prog_compiler_pic=
6713      lt_prog_compiler_can_build_shared=no
6714 fi
6715
6716 fi
6717 case $host_os in
6718   # For platforms which do not support PIC, -DPIC is meaningless:
6719   *djgpp*)
6720     lt_prog_compiler_pic=
6721     ;;
6722   *)
6723     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6724     ;;
6725 esac
6726
6727 #
6728 # Check to make sure the static flag actually works.
6729 #
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
6735 else
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
6750        fi
6751      else
6752        lt_prog_compiler_static_works=yes
6753      fi
6754    fi
6755    $rm conftest*
6756    LDFLAGS="$save_LDFLAGS"
6757
6758 fi
6759 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6760 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6761
6762 if test x"$lt_prog_compiler_static_works" = xyes; then
6763     :
6764 else
6765     lt_prog_compiler_static=
6766 fi
6767
6768
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
6773 else
6774   lt_cv_prog_compiler_c_o=no
6775    $rm -r conftest 2>/dev/null
6776    mkdir conftest
6777    cd conftest
6778    mkdir out
6779    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6780
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)
6792    ac_status=$?
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
6796    then
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
6803      fi
6804    fi
6805    chmod u+w . 2>&5
6806    $rm conftest*
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
6811    cd ..
6812    rmdir conftest
6813    $rm conftest*
6814
6815 fi
6816 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6817 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6818
6819
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
6825   hard_links=yes
6826   $rm conftest*
6827   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6828   touch conftest.a
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;}
6836     need_locks=warn
6837   fi
6838 else
6839   need_locks=no
6840 fi
6841
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
6844
6845   runpath_var=
6846   allow_undefined_flag=
6847   enable_shared_with_static_runtimes=no
6848   archive_cmds=
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=
6858   hardcode_direct=no
6859   hardcode_minus_L=no
6860   hardcode_shlibpath_var=unsupported
6861   link_all_deplibs=unknown
6862   hardcode_automatic=no
6863   module_cmds=
6864   module_expsym_cmds=
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
6869   include_expsyms=
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
6883   case $cc_temp in
6884     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6885     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6886     \-*) ;;
6887     *) break;;
6888   esac
6889 done
6890 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6891
6892   case $host_os in
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
6898       with_gnu_ld=no
6899     fi
6900     ;;
6901   interix*)
6902     # we just hope/assume this is gcc and not c89 (= MSVC++)
6903     with_gnu_ld=yes
6904     ;;
6905   openbsd*)
6906     with_gnu_ld=no
6907     ;;
6908   esac
6909
6910   ld_shlibs=yes
6911   if test "$with_gnu_ld" = yes; then
6912     # If archive_cmds runs LD, not CC, wlarc should be empty
6913     wlarc='${wl}'
6914
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'
6924       else
6925         whole_archive_flag_spec=
6926     fi
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 ;;
6934     esac
6935
6936     # See if GNU ld supports shared libraries.
6937     case $host_os in
6938     aix3* | aix4* | aix5*)
6939       # On AIX/PPC, the GNU linker is very broken
6940       if test "$host_cpu" != ia64; then
6941         ld_shlibs=no
6942         cat <<EOF 1>&2
6943
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.
6949
6950 EOF
6951       fi
6952       ;;
6953
6954     amigaos*)
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
6958
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
6964       # them.
6965       ld_shlibs=no
6966       ;;
6967
6968     beos*)
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'
6974       else
6975         ld_shlibs=no
6976       fi
6977       ;;
6978
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'
6987
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;
6994         else
6995           echo EXPORTS > $output_objdir/$soname.def;
6996           cat $export_symbols >> $output_objdir/$soname.def;
6997         fi~
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'
6999       else
7000         ld_shlibs=no
7001       fi
7002       ;;
7003
7004     interix3*)
7005       hardcode_direct=no
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'
7017       ;;
7018
7019     linux*)
7020       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7021         tmp_addflag=
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'
7026           ;;
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' ;;
7036         esac
7037         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7038
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'
7044         fi
7045       else
7046         ld_shlibs=no
7047       fi
7048       ;;
7049
7050     netbsd*)
7051       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7052         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7053         wlarc=
7054       else
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'
7057       fi
7058       ;;
7059
7060     solaris*)
7061       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7062         ld_shlibs=no
7063         cat <<EOF 1>&2
7064
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.
7071
7072 EOF
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'
7076       else
7077         ld_shlibs=no
7078       fi
7079       ;;
7080
7081     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7082       case `$LD -v 2>&1` in
7083         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7084         ld_shlibs=no
7085         cat <<_LT_EOF 1>&2
7086
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.
7093
7094 _LT_EOF
7095         ;;
7096         *)
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'
7101           else
7102             ld_shlibs=no
7103           fi
7104         ;;
7105       esac
7106       ;;
7107
7108     sunos4*)
7109       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7110       wlarc=
7111       hardcode_direct=yes
7112       hardcode_shlibpath_var=no
7113       ;;
7114
7115     *)
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'
7119       else
7120         ld_shlibs=no
7121       fi
7122       ;;
7123     esac
7124
7125     if test "$ld_shlibs" = no; then
7126       runpath_var=
7127       hardcode_libdir_flag_spec=
7128       export_dynamic_flag_spec=
7129       whole_archive_flag_spec=
7130     fi
7131   else
7132     # PORTME fill in a description of your system's linker (not GNU ld)
7133     case $host_os in
7134     aix3*)
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
7143         # broken collect2.
7144         hardcode_direct=unsupported
7145       fi
7146       ;;
7147
7148     aix4* | aix5*)
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'
7154         no_entry_flag=""
7155       else
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'
7160         else
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'
7162         fi
7163         aix_use_runtimelinking=no
7164
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
7172             break
7173           fi
7174           done
7175           ;;
7176         esac
7177
7178         exp_sym_flag='-bexport'
7179         no_entry_flag='-bnoentry'
7180       fi
7181
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.
7187
7188       archive_cmds=''
7189       hardcode_direct=yes
7190       hardcode_libdir_separator=':'
7191       link_all_deplibs=yes
7192
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
7200           then
7201           # We have reworked collect2
7202           hardcode_direct=yes
7203           else
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=
7212           fi
7213           ;;
7214         esac
7215         shared_flag='-shared'
7216         if test "$aix_use_runtimelinking" = yes; then
7217           shared_flag="$shared_flag "'${wl}-G'
7218         fi
7219       else
7220         # not using gcc
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:
7224           shared_flag='-G'
7225         else
7226           if test "$aix_use_runtimelinking" = yes; then
7227             shared_flag='${wl}-G'
7228           else
7229             shared_flag='${wl}-bM:SRE'
7230           fi
7231         fi
7232       fi
7233
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
7243 /* confdefs.h.  */
7244 _ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h.  */
7248
7249 int
7250 main ()
7251 {
7252
7253   ;
7254   return 0;
7255 }
7256 _ACEOF
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
7260   ac_status=$?
7261   grep -v '^ *+' conftest.er1 >conftest.err
7262   rm -f conftest.er1
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
7269   (eval $ac_try) 2>&5
7270   ac_status=$?
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
7275   (eval $ac_try) 2>&5
7276   ac_status=$?
7277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278   (exit $ac_status); }; }; then
7279
7280 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7281 }'`
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; }
7284 }'`; fi
7285 else
7286   echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7288
7289 fi
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
7293
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"
7296        else
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"
7301         else
7302          # Determine the default libpath from the value encoded in an empty executable.
7303          cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h.  */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h.  */
7309
7310 int
7311 main ()
7312 {
7313
7314   ;
7315   return 0;
7316 }
7317 _ACEOF
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
7321   ac_status=$?
7322   grep -v '^ *+' conftest.er1 >conftest.err
7323   rm -f conftest.er1
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
7330   (eval $ac_try) 2>&5
7331   ac_status=$?
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
7336   (eval $ac_try) 2>&5
7337   ac_status=$?
7338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339   (exit $ac_status); }; }; then
7340
7341 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7342 }'`
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; }
7345 }'`; fi
7346 else
7347   echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7349
7350 fi
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
7354
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'
7365         fi
7366       fi
7367       ;;
7368
7369     amigaos*)
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
7374       ld_shlibs=no
7375       ;;
7376
7377     bsdi[45]*)
7378       export_dynamic_flag_spec=-rdynamic
7379       ;;
7380
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.
7389       libext=lib
7390       # Tell ltmain to make .dll files, not .so files.
7391       shrext_cmds=".dll"
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
7400       ;;
7401
7402     darwin* | rhapsody*)
7403       case $host_os in
7404         rhapsody* | darwin1.[012])
7405          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7406          ;;
7407        *) # Darwin 1.3 on
7408          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7409            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7410          else
7411            case ${MACOSX_DEPLOYMENT_TARGET} in
7412              10.[012])
7413                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7414                ;;
7415              10.*)
7416                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7417                ;;
7418            esac
7419          fi
7420          ;;
7421       esac
7422       archive_cmds_need_lc=no
7423       hardcode_direct=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}'
7435     else
7436       case $cc_basename in
7437         xlc*)
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}'
7444           ;;
7445        *)
7446          ld_shlibs=no
7447           ;;
7448       esac
7449     fi
7450       ;;
7451
7452     dgux*)
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
7456       ;;
7457
7458     freebsd1*)
7459       ld_shlibs=no
7460       ;;
7461
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
7465     # extra space).
7466     freebsd2.2*)
7467       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7468       hardcode_libdir_flag_spec='-R$libdir'
7469       hardcode_direct=yes
7470       hardcode_shlibpath_var=no
7471       ;;
7472
7473     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7474     freebsd2*)
7475       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7476       hardcode_direct=yes
7477       hardcode_minus_L=yes
7478       hardcode_shlibpath_var=no
7479       ;;
7480
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'
7485       hardcode_direct=yes
7486       hardcode_shlibpath_var=no
7487       ;;
7488
7489     hpux9*)
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'
7492       else
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'
7494       fi
7495       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7496       hardcode_libdir_separator=:
7497       hardcode_direct=yes
7498
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'
7503       ;;
7504
7505     hpux10*)
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'
7508       else
7509         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7510       fi
7511       if test "$with_gnu_ld" = no; then
7512         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7513         hardcode_libdir_separator=:
7514
7515         hardcode_direct=yes
7516         export_dynamic_flag_spec='${wl}-E'
7517
7518         # hardcode_minus_L: Not really in the search PATH,
7519         # but as the default location of the library.
7520         hardcode_minus_L=yes
7521       fi
7522       ;;
7523
7524     hpux11*)
7525       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7526         case $host_cpu in
7527         hppa*64*)
7528           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7529           ;;
7530         ia64*)
7531           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7532           ;;
7533         *)
7534           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7535           ;;
7536         esac
7537       else
7538         case $host_cpu in
7539         hppa*64*)
7540           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7541           ;;
7542         ia64*)
7543           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7544           ;;
7545         *)
7546           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7547           ;;
7548         esac
7549       fi
7550       if test "$with_gnu_ld" = no; then
7551         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7552         hardcode_libdir_separator=:
7553
7554         case $host_cpu in
7555         hppa*64*|ia64*)
7556           hardcode_libdir_flag_spec_ld='+b $libdir'
7557           hardcode_direct=no
7558           hardcode_shlibpath_var=no
7559           ;;
7560         *)
7561           hardcode_direct=yes
7562           export_dynamic_flag_spec='${wl}-E'
7563
7564           # hardcode_minus_L: Not really in the search PATH,
7565           # but as the default location of the library.
7566           hardcode_minus_L=yes
7567           ;;
7568         esac
7569       fi
7570       ;;
7571
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'
7575       else
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'
7578       fi
7579       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7580       hardcode_libdir_separator=:
7581       link_all_deplibs=yes
7582       ;;
7583
7584     netbsd*)
7585       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7586         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7587       else
7588         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7589       fi
7590       hardcode_libdir_flag_spec='-R$libdir'
7591       hardcode_direct=yes
7592       hardcode_shlibpath_var=no
7593       ;;
7594
7595     newsos6)
7596       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7597       hardcode_direct=yes
7598       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7599       hardcode_libdir_separator=:
7600       hardcode_shlibpath_var=no
7601       ;;
7602
7603     openbsd*)
7604       hardcode_direct=yes
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'
7611       else
7612        case $host_os in
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'
7616            ;;
7617          *)
7618            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7619            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7620            ;;
7621        esac
7622       fi
7623       ;;
7624
7625     os2*)
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'
7631       ;;
7632
7633     osf3*)
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'
7637       else
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'
7640       fi
7641       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7642       hardcode_libdir_separator=:
7643       ;;
7644
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'
7650       else
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'
7655
7656         # Both c and cxx compiler support -rpath directly
7657         hardcode_libdir_flag_spec='-rpath $libdir'
7658       fi
7659       hardcode_libdir_separator=:
7660       ;;
7661
7662     solaris*)
7663       no_undefined_flag=' -z text'
7664       if test "$GCC" = yes; then
7665         wlarc='${wl}'
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'
7669       else
7670         wlarc=''
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'
7674       fi
7675       hardcode_libdir_flag_spec='-R$libdir'
7676       hardcode_shlibpath_var=no
7677       case $host_os in
7678       solaris2.[0-5] | solaris2.[0-5].*) ;;
7679       *)
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?)
7685         case $wlarc in
7686         '')
7687           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7688         *)
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' ;;
7690         esac ;;
7691       esac
7692       link_all_deplibs=yes
7693       ;;
7694
7695     sunos4*)
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'
7700       else
7701         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7702       fi
7703       hardcode_libdir_flag_spec='-L$libdir'
7704       hardcode_direct=yes
7705       hardcode_minus_L=yes
7706       hardcode_shlibpath_var=no
7707       ;;
7708
7709     sysv4)
7710       case $host_vendor in
7711         sni)
7712           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7713           hardcode_direct=yes # is this really true???
7714         ;;
7715         siemens)
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'
7720           hardcode_direct=no
7721         ;;
7722         motorola)
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
7725         ;;
7726       esac
7727       runpath_var='LD_RUN_PATH'
7728       hardcode_shlibpath_var=no
7729       ;;
7730
7731     sysv4.3*)
7732       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7733       hardcode_shlibpath_var=no
7734       export_dynamic_flag_spec='-Bexport'
7735       ;;
7736
7737     sysv4*MP*)
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
7743         ld_shlibs=yes
7744       fi
7745       ;;
7746
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'
7752
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'
7756       else
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'
7759       fi
7760       ;;
7761
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
7768       # as -z defs.
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'
7778
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'
7782       else
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'
7785       fi
7786       ;;
7787
7788     uts4*)
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
7792       ;;
7793
7794     *)
7795       ld_shlibs=no
7796       ;;
7797     esac
7798   fi
7799
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
7803
7804 #
7805 # Do we need to explicitly link libc?
7806 #
7807 case "x$archive_cmds_need_lc" in
7808 x|xyes)
7809   # Assume -lc should be added
7810   archive_cmds_need_lc=yes
7811
7812   if test "$enable_shared" = yes && test "$GCC" = yes; then
7813     case $archive_cmds in
7814     *'~'*)
7815       # FIXME: we may have to deal with multi-command sequences.
7816       ;;
7817     '$CC '*)
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
7823       $rm conftest*
7824       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7825
7826       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7827   (eval $ac_compile) 2>&5
7828   ac_status=$?
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); } 2>conftest.err; then
7831         soname=conftest
7832         lib=conftest
7833         libobjs=conftest.$ac_objext
7834         deplibs=
7835         wl=$lt_prog_compiler_wl
7836         pic_flag=$lt_prog_compiler_pic
7837         compiler_flags=-v
7838         linker_flags=-v
7839         verstring=
7840         output_objdir=.
7841         libname=conftest
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
7846   ac_status=$?
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); }
7849         then
7850           archive_cmds_need_lc=no
7851         else
7852           archive_cmds_need_lc=yes
7853         fi
7854         allow_undefined_flag=$lt_save_allow_undefined_flag
7855       else
7856         cat conftest.err 1>&5
7857       fi
7858       $rm conftest*
7859       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7860 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7861       ;;
7862     esac
7863   fi
7864   ;;
7865 esac
7866
7867 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7868 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7869 library_names_spec=
7870 libname_spec='lib$name'
7871 soname_spec=
7872 shrext_cmds=".so"
7873 postinstall_cmds=
7874 postuninstall_cmds=
7875 finish_cmds=
7876 finish_eval=
7877 shlibpath_var=
7878 shlibpath_overrides_runpath=unknown
7879 version_type=none
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'`
7890   else
7891     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7892   fi
7893 else
7894   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7895 fi
7896 need_lib_prefix=unknown
7897 hardcode_into_libs=no
7898
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
7902
7903 case $host_os in
7904 aix3*)
7905   version_type=linux
7906   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7907   shlibpath_var=LIBPATH
7908
7909   # AIX 3 has no versioning support, so we append a major version to the name.
7910   soname_spec='${libname}${release}${shared_ext}$major'
7911   ;;
7912
7913 aix4* | aix5*)
7914   version_type=linux
7915   need_lib_prefix=no
7916   need_version=no
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
7922   else
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.
7928     case $host_os in
7929       aix4 | aix4.[01] | aix4.[01].*)
7930       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7931            echo ' yes '
7932            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7933         :
7934       else
7935         can_build_shared=no
7936       fi
7937       ;;
7938     esac
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}'
7947     else
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'
7952     fi
7953     shlibpath_var=LIBPATH
7954   fi
7955   ;;
7956
7957 amigaos*)
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'
7961   ;;
7962
7963 beos*)
7964   library_names_spec='${libname}${shared_ext}'
7965   dynamic_linker="$host_os ld.so"
7966   shlibpath_var=LIBRARY_PATH
7967   ;;
7968
7969 bsdi[45]*)
7970   version_type=linux
7971   need_version=no
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
7981   ;;
7982
7983 cygwin* | mingw* | pw32*)
7984   version_type=windows
7985   shrext_cmds=".dll"
7986   need_version=no
7987   need_lib_prefix=no
7988
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~
8001        $rm \$dlpath'
8002     shlibpath_overrides_runpath=yes
8003
8004     case $host_os in
8005     cygwin*)
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"
8009       ;;
8010     mingw*)
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'`
8022       else
8023         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8024       fi
8025       ;;
8026     pw32*)
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}'
8029       ;;
8030     esac
8031     ;;
8032
8033   *)
8034     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8035     ;;
8036   esac
8037   dynamic_linker='Win32 ld.exe'
8038   # FIXME: first we should search . and the directory the executable is in
8039   shlibpath_var=PATH
8040   ;;
8041
8042 darwin* | rhapsody*)
8043   dynamic_linker="$host_os dyld"
8044   version_type=darwin
8045   need_lib_prefix=no
8046   need_version=no
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"`
8055   else
8056     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8057   fi
8058   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8059   ;;
8060
8061 dgux*)
8062   version_type=linux
8063   need_lib_prefix=no
8064   need_version=no
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
8068   ;;
8069
8070 freebsd1*)
8071   dynamic_linker=no
8072   ;;
8073
8074 kfreebsd*-gnu)
8075   version_type=linux
8076   need_lib_prefix=no
8077   need_version=no
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'
8084   ;;
8085
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`
8091   else
8092     case $host_os in
8093     freebsd[123]*) objformat=aout ;;
8094     *) objformat=elf ;;
8095     esac
8096   fi
8097   version_type=freebsd-$objformat
8098   case $version_type in
8099     freebsd-elf*)
8100       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8101       need_version=no
8102       need_lib_prefix=no
8103       ;;
8104     freebsd-*)
8105       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8106       need_version=yes
8107       ;;
8108   esac
8109   shlibpath_var=LD_LIBRARY_PATH
8110   case $host_os in
8111   freebsd2*)
8112     shlibpath_overrides_runpath=yes
8113     ;;
8114   freebsd3.[01]* | freebsdelf3.[01]*)
8115     shlibpath_overrides_runpath=yes
8116     hardcode_into_libs=yes
8117     ;;
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
8122     ;;
8123   freebsd*) # from 4.6 on
8124     shlibpath_overrides_runpath=yes
8125     hardcode_into_libs=yes
8126     ;;
8127   esac
8128   ;;
8129
8130 gnu*)
8131   version_type=linux
8132   need_lib_prefix=no
8133   need_version=no
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
8138   ;;
8139
8140 hpux9* | hpux10* | hpux11*)
8141   # Give a soname corresponding to the major version so that dld.sl refuses to
8142   # link against other versions.
8143   version_type=sunos
8144   need_lib_prefix=no
8145   need_version=no
8146   case $host_cpu in
8147   ia64*)
8148     shrext_cmds='.so'
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"
8157     else
8158       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8159     fi
8160     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8161     ;;
8162    hppa*64*)
8163      shrext_cmds='.sl'
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
8172      ;;
8173    *)
8174     shrext_cmds='.sl'
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'
8180     ;;
8181   esac
8182   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8183   postinstall_cmds='chmod 555 $lib'
8184   ;;
8185
8186 interix3*)
8187   version_type=linux
8188   need_lib_prefix=no
8189   need_version=no
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
8196   ;;
8197
8198 irix5* | irix6* | nonstopux*)
8199   case $host_os in
8200     nonstopux*) version_type=nonstopux ;;
8201     *)
8202         if test "$lt_cv_prog_gnu_ld" = yes; then
8203                 version_type=linux
8204         else
8205                 version_type=irix
8206         fi ;;
8207   esac
8208   need_lib_prefix=no
8209   need_version=no
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}'
8212   case $host_os in
8213   irix5* | nonstopux*)
8214     libsuff= shlibsuff=
8215     ;;
8216   *)
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;;
8225     esac
8226     ;;
8227   esac
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
8233   ;;
8234
8235 # No shared lib support for Linux oldld, aout, or coff.
8236 linux*oldld* | linux*aout* | linux*coff*)
8237   dynamic_linker=no
8238   ;;
8239
8240 # This must be Linux ELF.
8241 linux*)
8242   version_type=linux
8243   need_lib_prefix=no
8244   need_version=no
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
8254
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"
8259   fi
8260
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'
8268   ;;
8269
8270 knetbsd*-gnu)
8271   version_type=linux
8272   need_lib_prefix=no
8273   need_version=no
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'
8280   ;;
8281
8282 netbsd*)
8283   version_type=sunos
8284   need_lib_prefix=no
8285   need_version=no
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'
8290   else
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'
8294   fi
8295   shlibpath_var=LD_LIBRARY_PATH
8296   shlibpath_overrides_runpath=yes
8297   hardcode_into_libs=yes
8298   ;;
8299
8300 newsos6)
8301   version_type=linux
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
8305   ;;
8306
8307 nto-qnx*)
8308   version_type=linux
8309   need_lib_prefix=no
8310   need_version=no
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
8315   ;;
8316
8317 openbsd*)
8318   version_type=sunos
8319   sys_lib_dlsearch_path_spec="/usr/lib"
8320   need_lib_prefix=no
8321   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8322   case $host_os in
8323     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8324     *)                         need_version=no  ;;
8325   esac
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
8330     case $host_os in
8331       openbsd2.[89] | openbsd2.[89].*)
8332         shlibpath_overrides_runpath=no
8333         ;;
8334       *)
8335         shlibpath_overrides_runpath=yes
8336         ;;
8337       esac
8338   else
8339     shlibpath_overrides_runpath=yes
8340   fi
8341   ;;
8342
8343 os2*)
8344   libname_spec='$name'
8345   shrext_cmds=".dll"
8346   need_lib_prefix=no
8347   library_names_spec='$libname${shared_ext} $libname.a'
8348   dynamic_linker='OS/2 ld.exe'
8349   shlibpath_var=LIBPATH
8350   ;;
8351
8352 osf3* | osf4* | osf5*)
8353   version_type=osf
8354   need_lib_prefix=no
8355   need_version=no
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"
8361   ;;
8362
8363 solaris*)
8364   version_type=linux
8365   need_lib_prefix=no
8366   need_version=no
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'
8374   ;;
8375
8376 sunos4*)
8377   version_type=sunos
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
8383     need_lib_prefix=no
8384   fi
8385   need_version=yes
8386   ;;
8387
8388 sysv4 | sysv4.3*)
8389   version_type=linux
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
8394     sni)
8395       shlibpath_overrides_runpath=no
8396       need_lib_prefix=no
8397       export_dynamic_flag_spec='${wl}-Blargedynsym'
8398       runpath_var=LD_RUN_PATH
8399       ;;
8400     siemens)
8401       need_lib_prefix=no
8402       ;;
8403     motorola)
8404       need_lib_prefix=no
8405       need_version=no
8406       shlibpath_overrides_runpath=no
8407       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8408       ;;
8409   esac
8410   ;;
8411
8412 sysv4*MP*)
8413   if test -d /usr/nec ;then
8414     version_type=linux
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
8418   fi
8419   ;;
8420
8421 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8422   version_type=freebsd-elf
8423   need_lib_prefix=no
8424   need_version=no
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
8432   else
8433     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8434     shlibpath_overrides_runpath=yes
8435     case $host_os in
8436       sco3.2v5*)
8437         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8438         ;;
8439     esac
8440   fi
8441   sys_lib_dlsearch_path_spec='/usr/lib'
8442   ;;
8443
8444 uts4*)
8445   version_type=linux
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
8449   ;;
8450
8451 *)
8452   dynamic_linker=no
8453   ;;
8454 esac
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
8458
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"
8462 fi
8463
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
8466 hardcode_action=
8467 if test -n "$hardcode_libdir_flag_spec" || \
8468    test -n "$runpath_var" || \
8469    test "X$hardcode_automatic" = "Xyes" ; then
8470
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
8480   else
8481     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8482     hardcode_action=immediate
8483   fi
8484 else
8485   # We cannot hardcode anything, or else we can only hardcode existing
8486   # directories.
8487   hardcode_action=unsupported
8488 fi
8489 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8490 echo "${ECHO_T}$hardcode_action" >&6
8491
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
8499 fi
8500
8501 striplib=
8502 old_striplib=
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
8510 else
8511 # FIXME - insert some real tests, host_os isn't really good enough
8512   case $host_os in
8513    darwin*)
8514        if test -n "$STRIP" ; then
8515          striplib="$STRIP -x"
8516          echo "$as_me:$LINENO: result: yes" >&5
8517 echo "${ECHO_T}yes" >&6
8518        else
8519   echo "$as_me:$LINENO: result: no" >&5
8520 echo "${ECHO_T}no" >&6
8521 fi
8522        ;;
8523    *)
8524   echo "$as_me:$LINENO: result: no" >&5
8525 echo "${ECHO_T}no" >&6
8526     ;;
8527   esac
8528 fi
8529
8530 if test "x$enable_dlopen" != xyes; then
8531   enable_dlopen=unknown
8532   enable_dlopen_self=unknown
8533   enable_dlopen_self_static=unknown
8534 else
8535   lt_cv_dlopen=no
8536   lt_cv_dlopen_libs=
8537
8538   case $host_os in
8539   beos*)
8540     lt_cv_dlopen="load_add_on"
8541     lt_cv_dlopen_libs=
8542     lt_cv_dlopen_self=yes
8543     ;;
8544
8545   mingw* | pw32*)
8546     lt_cv_dlopen="LoadLibrary"
8547     lt_cv_dlopen_libs=
8548    ;;
8549
8550   cygwin*)
8551     lt_cv_dlopen="dlopen"
8552     lt_cv_dlopen_libs=
8553    ;;
8554
8555   darwin*)
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
8561 else
8562   ac_check_lib_save_LIBS=$LIBS
8563 LIBS="-ldl  $LIBS"
8564 cat >conftest.$ac_ext <<_ACEOF
8565 /* confdefs.h.  */
8566 _ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h.  */
8570
8571 /* Override any gcc2 internal prototype to avoid an error.  */
8572 #ifdef __cplusplus
8573 extern "C"
8574 #endif
8575 /* We use char because int might match the return type of a gcc2
8576    builtin and then its argument prototype would still apply.  */
8577 char dlopen ();
8578 int
8579 main ()
8580 {
8581 dlopen ();
8582   ;
8583   return 0;
8584 }
8585 _ACEOF
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
8589   ac_status=$?
8590   grep -v '^ *+' conftest.er1 >conftest.err
8591   rm -f conftest.er1
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
8598   (eval $ac_try) 2>&5
8599   ac_status=$?
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
8604   (eval $ac_try) 2>&5
8605   ac_status=$?
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); }; }; then
8608   ac_cv_lib_dl_dlopen=yes
8609 else
8610   echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8612
8613 ac_cv_lib_dl_dlopen=no
8614 fi
8615 rm -f conftest.err conftest.$ac_objext \
8616       conftest$ac_exeext conftest.$ac_ext
8617 LIBS=$ac_check_lib_save_LIBS
8618 fi
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"
8623 else
8624
8625     lt_cv_dlopen="dyld"
8626     lt_cv_dlopen_libs=
8627     lt_cv_dlopen_self=yes
8628
8629 fi
8630
8631    ;;
8632
8633   *)
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
8638 else
8639   cat >conftest.$ac_ext <<_ACEOF
8640 /* confdefs.h.  */
8641 _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
8648
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.  */
8653
8654 #ifdef __STDC__
8655 # include <limits.h>
8656 #else
8657 # include <assert.h>
8658 #endif
8659
8660 #undef shl_load
8661
8662 /* Override any gcc2 internal prototype to avoid an error.  */
8663 #ifdef __cplusplus
8664 extern "C"
8665 {
8666 #endif
8667 /* We use char because int might match the return type of a gcc2
8668    builtin and then its argument prototype would still apply.  */
8669 char shl_load ();
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)
8674 choke me
8675 #else
8676 char (*f) () = shl_load;
8677 #endif
8678 #ifdef __cplusplus
8679 }
8680 #endif
8681
8682 int
8683 main ()
8684 {
8685 return f != shl_load;
8686   ;
8687   return 0;
8688 }
8689 _ACEOF
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
8693   ac_status=$?
8694   grep -v '^ *+' conftest.er1 >conftest.err
8695   rm -f conftest.er1
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
8702   (eval $ac_try) 2>&5
8703   ac_status=$?
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
8708   (eval $ac_try) 2>&5
8709   ac_status=$?
8710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711   (exit $ac_status); }; }; then
8712   ac_cv_func_shl_load=yes
8713 else
8714   echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8716
8717 ac_cv_func_shl_load=no
8718 fi
8719 rm -f conftest.err conftest.$ac_objext \
8720       conftest$ac_exeext conftest.$ac_ext
8721 fi
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"
8726 else
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
8731 else
8732   ac_check_lib_save_LIBS=$LIBS
8733 LIBS="-ldld  $LIBS"
8734 cat >conftest.$ac_ext <<_ACEOF
8735 /* confdefs.h.  */
8736 _ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h.  */
8740
8741 /* Override any gcc2 internal prototype to avoid an error.  */
8742 #ifdef __cplusplus
8743 extern "C"
8744 #endif
8745 /* We use char because int might match the return type of a gcc2
8746    builtin and then its argument prototype would still apply.  */
8747 char shl_load ();
8748 int
8749 main ()
8750 {
8751 shl_load ();
8752   ;
8753   return 0;
8754 }
8755 _ACEOF
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
8759   ac_status=$?
8760   grep -v '^ *+' conftest.er1 >conftest.err
8761   rm -f conftest.er1
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
8768   (eval $ac_try) 2>&5
8769   ac_status=$?
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
8774   (eval $ac_try) 2>&5
8775   ac_status=$?
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); }; }; then
8778   ac_cv_lib_dld_shl_load=yes
8779 else
8780   echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8782
8783 ac_cv_lib_dld_shl_load=no
8784 fi
8785 rm -f conftest.err conftest.$ac_objext \
8786       conftest$ac_exeext conftest.$ac_ext
8787 LIBS=$ac_check_lib_save_LIBS
8788 fi
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"
8793 else
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
8798 else
8799   cat >conftest.$ac_ext <<_ACEOF
8800 /* confdefs.h.  */
8801 _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
8808
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.  */
8813
8814 #ifdef __STDC__
8815 # include <limits.h>
8816 #else
8817 # include <assert.h>
8818 #endif
8819
8820 #undef dlopen
8821
8822 /* Override any gcc2 internal prototype to avoid an error.  */
8823 #ifdef __cplusplus
8824 extern "C"
8825 {
8826 #endif
8827 /* We use char because int might match the return type of a gcc2
8828    builtin and then its argument prototype would still apply.  */
8829 char dlopen ();
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)
8834 choke me
8835 #else
8836 char (*f) () = dlopen;
8837 #endif
8838 #ifdef __cplusplus
8839 }
8840 #endif
8841
8842 int
8843 main ()
8844 {
8845 return f != dlopen;
8846   ;
8847   return 0;
8848 }
8849 _ACEOF
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
8853   ac_status=$?
8854   grep -v '^ *+' conftest.er1 >conftest.err
8855   rm -f conftest.er1
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
8862   (eval $ac_try) 2>&5
8863   ac_status=$?
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
8868   (eval $ac_try) 2>&5
8869   ac_status=$?
8870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871   (exit $ac_status); }; }; then
8872   ac_cv_func_dlopen=yes
8873 else
8874   echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8876
8877 ac_cv_func_dlopen=no
8878 fi
8879 rm -f conftest.err conftest.$ac_objext \
8880       conftest$ac_exeext conftest.$ac_ext
8881 fi
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"
8886 else
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
8891 else
8892   ac_check_lib_save_LIBS=$LIBS
8893 LIBS="-ldl  $LIBS"
8894 cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h.  */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h.  */
8900
8901 /* Override any gcc2 internal prototype to avoid an error.  */
8902 #ifdef __cplusplus
8903 extern "C"
8904 #endif
8905 /* We use char because int might match the return type of a gcc2
8906    builtin and then its argument prototype would still apply.  */
8907 char dlopen ();
8908 int
8909 main ()
8910 {
8911 dlopen ();
8912   ;
8913   return 0;
8914 }
8915 _ACEOF
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
8919   ac_status=$?
8920   grep -v '^ *+' conftest.er1 >conftest.err
8921   rm -f conftest.er1
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
8928   (eval $ac_try) 2>&5
8929   ac_status=$?
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
8934   (eval $ac_try) 2>&5
8935   ac_status=$?
8936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937   (exit $ac_status); }; }; then
8938   ac_cv_lib_dl_dlopen=yes
8939 else
8940   echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8942
8943 ac_cv_lib_dl_dlopen=no
8944 fi
8945 rm -f conftest.err conftest.$ac_objext \
8946       conftest$ac_exeext conftest.$ac_ext
8947 LIBS=$ac_check_lib_save_LIBS
8948 fi
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"
8953 else
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
8958 else
8959   ac_check_lib_save_LIBS=$LIBS
8960 LIBS="-lsvld  $LIBS"
8961 cat >conftest.$ac_ext <<_ACEOF
8962 /* confdefs.h.  */
8963 _ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h.  */
8967
8968 /* Override any gcc2 internal prototype to avoid an error.  */
8969 #ifdef __cplusplus
8970 extern "C"
8971 #endif
8972 /* We use char because int might match the return type of a gcc2
8973    builtin and then its argument prototype would still apply.  */
8974 char dlopen ();
8975 int
8976 main ()
8977 {
8978 dlopen ();
8979   ;
8980   return 0;
8981 }
8982 _ACEOF
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
8986   ac_status=$?
8987   grep -v '^ *+' conftest.er1 >conftest.err
8988   rm -f conftest.er1
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
8995   (eval $ac_try) 2>&5
8996   ac_status=$?
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
9001   (eval $ac_try) 2>&5
9002   ac_status=$?
9003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   (exit $ac_status); }; }; then
9005   ac_cv_lib_svld_dlopen=yes
9006 else
9007   echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9009
9010 ac_cv_lib_svld_dlopen=no
9011 fi
9012 rm -f conftest.err conftest.$ac_objext \
9013       conftest$ac_exeext conftest.$ac_ext
9014 LIBS=$ac_check_lib_save_LIBS
9015 fi
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"
9020 else
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
9025 else
9026   ac_check_lib_save_LIBS=$LIBS
9027 LIBS="-ldld  $LIBS"
9028 cat >conftest.$ac_ext <<_ACEOF
9029 /* confdefs.h.  */
9030 _ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h.  */
9034
9035 /* Override any gcc2 internal prototype to avoid an error.  */
9036 #ifdef __cplusplus
9037 extern "C"
9038 #endif
9039 /* We use char because int might match the return type of a gcc2
9040    builtin and then its argument prototype would still apply.  */
9041 char dld_link ();
9042 int
9043 main ()
9044 {
9045 dld_link ();
9046   ;
9047   return 0;
9048 }
9049 _ACEOF
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
9053   ac_status=$?
9054   grep -v '^ *+' conftest.er1 >conftest.err
9055   rm -f conftest.er1
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
9062   (eval $ac_try) 2>&5
9063   ac_status=$?
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
9068   (eval $ac_try) 2>&5
9069   ac_status=$?
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); }; }; then
9072   ac_cv_lib_dld_dld_link=yes
9073 else
9074   echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9076
9077 ac_cv_lib_dld_dld_link=no
9078 fi
9079 rm -f conftest.err conftest.$ac_objext \
9080       conftest$ac_exeext conftest.$ac_ext
9081 LIBS=$ac_check_lib_save_LIBS
9082 fi
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"
9087 fi
9088
9089
9090 fi
9091
9092
9093 fi
9094
9095
9096 fi
9097
9098
9099 fi
9100
9101
9102 fi
9103
9104     ;;
9105   esac
9106
9107   if test "x$lt_cv_dlopen" != xno; then
9108     enable_dlopen=yes
9109   else
9110     enable_dlopen=no
9111   fi
9112
9113   case $lt_cv_dlopen in
9114   dlopen)
9115     save_CPPFLAGS="$CPPFLAGS"
9116     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9117
9118     save_LDFLAGS="$LDFLAGS"
9119     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9120
9121     save_LIBS="$LIBS"
9122     LIBS="$lt_cv_dlopen_libs $LIBS"
9123
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
9128 else
9129           if test "$cross_compiling" = yes; then :
9130   lt_cv_dlopen_self=cross
9131 else
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"
9137
9138 #if HAVE_DLFCN_H
9139 #include <dlfcn.h>
9140 #endif
9141
9142 #include <stdio.h>
9143
9144 #ifdef RTLD_GLOBAL
9145 #  define LT_DLGLOBAL           RTLD_GLOBAL
9146 #else
9147 #  ifdef DL_GLOBAL
9148 #    define LT_DLGLOBAL         DL_GLOBAL
9149 #  else
9150 #    define LT_DLGLOBAL         0
9151 #  endif
9152 #endif
9153
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
9157 #  ifdef RTLD_LAZY
9158 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9159 #  else
9160 #    ifdef DL_LAZY
9161 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9162 #    else
9163 #      ifdef RTLD_NOW
9164 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9165 #      else
9166 #        ifdef DL_NOW
9167 #          define LT_DLLAZY_OR_NOW      DL_NOW
9168 #        else
9169 #          define LT_DLLAZY_OR_NOW      0
9170 #        endif
9171 #      endif
9172 #    endif
9173 #  endif
9174 #endif
9175
9176 #ifdef __cplusplus
9177 extern "C" void exit (int);
9178 #endif
9179
9180 void fnord() { int i=42;}
9181 int main ()
9182 {
9183   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9184   int status = $lt_dlunknown;
9185
9186   if (self)
9187     {
9188       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9189       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9190       /* dlclose (self); */
9191     }
9192   else
9193     puts (dlerror ());
9194
9195     exit (status);
9196 }
9197 EOF
9198   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9199   (eval $ac_link) 2>&5
9200   ac_status=$?
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
9204     lt_status=$?
9205     case x$lt_status in
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 ;;
9209     esac
9210   else :
9211     # compilation failed
9212     lt_cv_dlopen_self=no
9213   fi
9214 fi
9215 rm -fr conftest*
9216
9217
9218 fi
9219 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9220 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9221
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
9228 else
9229           if test "$cross_compiling" = yes; then :
9230   lt_cv_dlopen_self_static=cross
9231 else
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"
9237
9238 #if HAVE_DLFCN_H
9239 #include <dlfcn.h>
9240 #endif
9241
9242 #include <stdio.h>
9243
9244 #ifdef RTLD_GLOBAL
9245 #  define LT_DLGLOBAL           RTLD_GLOBAL
9246 #else
9247 #  ifdef DL_GLOBAL
9248 #    define LT_DLGLOBAL         DL_GLOBAL
9249 #  else
9250 #    define LT_DLGLOBAL         0
9251 #  endif
9252 #endif
9253
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
9257 #  ifdef RTLD_LAZY
9258 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9259 #  else
9260 #    ifdef DL_LAZY
9261 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9262 #    else
9263 #      ifdef RTLD_NOW
9264 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9265 #      else
9266 #        ifdef DL_NOW
9267 #          define LT_DLLAZY_OR_NOW      DL_NOW
9268 #        else
9269 #          define LT_DLLAZY_OR_NOW      0
9270 #        endif
9271 #      endif
9272 #    endif
9273 #  endif
9274 #endif
9275
9276 #ifdef __cplusplus
9277 extern "C" void exit (int);
9278 #endif
9279
9280 void fnord() { int i=42;}
9281 int main ()
9282 {
9283   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9284   int status = $lt_dlunknown;
9285
9286   if (self)
9287     {
9288       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9289       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9290       /* dlclose (self); */
9291     }
9292   else
9293     puts (dlerror ());
9294
9295     exit (status);
9296 }
9297 EOF
9298   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9299   (eval $ac_link) 2>&5
9300   ac_status=$?
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
9304     lt_status=$?
9305     case x$lt_status in
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 ;;
9309     esac
9310   else :
9311     # compilation failed
9312     lt_cv_dlopen_self_static=no
9313   fi
9314 fi
9315 rm -fr conftest*
9316
9317
9318 fi
9319 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9320 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9321     fi
9322
9323     CPPFLAGS="$save_CPPFLAGS"
9324     LDFLAGS="$save_LDFLAGS"
9325     LIBS="$save_LIBS"
9326     ;;
9327   esac
9328
9329   case $lt_cv_dlopen_self in
9330   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9331   *) enable_dlopen_self=unknown ;;
9332   esac
9333
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 ;;
9337   esac
9338 fi
9339
9340
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
9346
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
9350
9351 # On AIX, shared libraries and static libraries use the same namespace, and
9352 # are all built from PIC.
9353 case $host_os in
9354 aix3*)
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'
9359   fi
9360   ;;
9361
9362 aix4* | aix5*)
9363   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9364     test "$enable_shared" = yes && enable_static=no
9365   fi
9366     ;;
9367 esac
9368 echo "$as_me:$LINENO: result: $enable_shared" >&5
9369 echo "${ECHO_T}$enable_shared" >&6
9370
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
9377
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
9387   fi
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 \
9392     SED SHELL STRIP \
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 \
9400     compiler \
9401     CC \
9402     LD \
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 \
9411     old_archive_cmds \
9412     old_archive_from_new_cmds \
9413     predep_objects \
9414     postdep_objects \
9415     predeps \
9416     postdeps \
9417     compiler_lib_search_path \
9418     archive_cmds \
9419     archive_expsym_cmds \
9420     postinstall_cmds \
9421     postuninstall_cmds \
9422     old_archive_from_expsyms_cmds \
9423     allow_undefined_flag \
9424     no_undefined_flag \
9425     export_symbols_cmds \
9426     hardcode_libdir_flag_spec \
9427     hardcode_libdir_flag_spec_ld \
9428     hardcode_libdir_separator \
9429     hardcode_automatic \
9430     module_cmds \
9431     module_expsym_cmds \
9432     lt_cv_prog_compiler_c_o \
9433     exclude_expsyms \
9434     include_expsyms; do
9435
9436     case $var in
9437     old_archive_cmds | \
9438     old_archive_from_new_cmds | \
9439     archive_cmds | \
9440     archive_expsym_cmds | \
9441     module_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\"\`\\\""
9451       ;;
9452     *)
9453       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9454       ;;
9455     esac
9456   done
9457
9458   case $lt_echo in
9459   *'\$0 --fallback-echo"')
9460     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9461     ;;
9462   esac
9463
9464 cfgfile="${ofile}T"
9465   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9466   $rm -f "$cfgfile"
9467   { echo "$as_me:$LINENO: creating $ofile" >&5
9468 echo "$as_me: creating $ofile" >&6;}
9469
9470   cat <<__EOF__ >> "$cfgfile"
9471 #! $SHELL
9472
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.
9476 #
9477 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9478 # Free Software Foundation, Inc.
9479 #
9480 # This file is part of GNU Libtool:
9481 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9482 #
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.
9487 #
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.
9492 #
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.
9496 #
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.
9501
9502 # A sed program that does not truncate output.
9503 SED=$lt_SED
9504
9505 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9506 Xsed="$SED -e 1s/^X//"
9507
9508 # The HP-UX ksh and POSIX shell print the target directory to stdout
9509 # if CDPATH is set.
9510 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9511
9512 # The names of the tagged configurations supported by this script.
9513 available_tags=
9514
9515 # ### BEGIN LIBTOOL CONFIG
9516
9517 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9518
9519 # Shell to use when invoking shell scripts.
9520 SHELL=$lt_SHELL
9521
9522 # Whether or not to build shared libraries.
9523 build_libtool_libs=$enable_shared
9524
9525 # Whether or not to build static libraries.
9526 build_old_libs=$enable_static
9527
9528 # Whether or not to add -lc for building shared libraries.
9529 build_libtool_need_lc=$archive_cmds_need_lc
9530
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
9533
9534 # Whether or not to optimize for fast installation.
9535 fast_install=$enable_fast_install
9536
9537 # The host system.
9538 host_alias=$host_alias
9539 host=$host
9540 host_os=$host_os
9541
9542 # The build system.
9543 build_alias=$build_alias
9544 build=$build
9545 build_os=$build_os
9546
9547 # An echo program that does not interpret backslashes.
9548 echo=$lt_echo
9549
9550 # The archiver.
9551 AR=$lt_AR
9552 AR_FLAGS=$lt_AR_FLAGS
9553
9554 # A C compiler.
9555 LTCC=$lt_LTCC
9556
9557 # LTCC compiler flags.
9558 LTCFLAGS=$lt_LTCFLAGS
9559
9560 # A language-specific compiler.
9561 CC=$lt_compiler
9562
9563 # Is the compiler the GNU C compiler?
9564 with_gcc=$GCC
9565
9566 # An ERE matcher.
9567 EGREP=$lt_EGREP
9568
9569 # The linker used to build libraries.
9570 LD=$lt_LD
9571
9572 # Whether we need hard or soft links.
9573 LN_S=$lt_LN_S
9574
9575 # A BSD-compatible nm program.
9576 NM=$lt_NM
9577
9578 # A symbol stripping program
9579 STRIP=$lt_STRIP
9580
9581 # Used to examine libraries when file_magic_cmd begins "file"
9582 MAGIC_CMD=$MAGIC_CMD
9583
9584 # Used on cygwin: DLL creation program.
9585 DLLTOOL="$DLLTOOL"
9586
9587 # Used on cygwin: object dumper.
9588 OBJDUMP="$OBJDUMP"
9589
9590 # Used on cygwin: assembler.
9591 AS="$AS"
9592
9593 # The name of the directory that contains temporary libtool files.
9594 objdir=$objdir
9595
9596 # How to create reloadable object files.
9597 reload_flag=$lt_reload_flag
9598 reload_cmds=$lt_reload_cmds
9599
9600 # How to pass a linker flag through the compiler.
9601 wl=$lt_lt_prog_compiler_wl
9602
9603 # Object file suffix (normally "o").
9604 objext="$ac_objext"
9605
9606 # Old archive suffix (normally "a").
9607 libext="$libext"
9608
9609 # Shared library suffix (normally ".so").
9610 shrext_cmds='$shrext_cmds'
9611
9612 # Executable file suffix (normally "").
9613 exeext="$exeext"
9614
9615 # Additional compiler flags for building library objects.
9616 pic_flag=$lt_lt_prog_compiler_pic
9617 pic_mode=$pic_mode
9618
9619 # What is the maximum length of a command?
9620 max_cmd_len=$lt_cv_sys_max_cmd_len
9621
9622 # Does compiler simultaneously support -c and -o options?
9623 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9624
9625 # Must we lock files when doing compilation?
9626 need_locks=$lt_need_locks
9627
9628 # Do we need the lib prefix for modules?
9629 need_lib_prefix=$need_lib_prefix
9630
9631 # Do we need a version for libraries?
9632 need_version=$need_version
9633
9634 # Whether dlopen is supported.
9635 dlopen_support=$enable_dlopen
9636
9637 # Whether dlopen of programs is supported.
9638 dlopen_self=$enable_dlopen_self
9639
9640 # Whether dlopen of statically linked programs is supported.
9641 dlopen_self_static=$enable_dlopen_self_static
9642
9643 # Compiler flag to prevent dynamic linking.
9644 link_static_flag=$lt_lt_prog_compiler_static
9645
9646 # Compiler flag to turn off builtin functions.
9647 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9648
9649 # Compiler flag to allow reflexive dlopens.
9650 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9651
9652 # Compiler flag to generate shared objects directly from archives.
9653 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9654
9655 # Compiler flag to generate thread-safe objects.
9656 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9657
9658 # Library versioning type.
9659 version_type=$version_type
9660
9661 # Format of library name prefix.
9662 libname_spec=$lt_libname_spec
9663
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
9667
9668 # The coded name of the library, if different from the real name.
9669 soname_spec=$lt_soname_spec
9670
9671 # Commands used to build and install an old-style archive.
9672 RANLIB=$lt_RANLIB
9673 old_archive_cmds=$lt_old_archive_cmds
9674 old_postinstall_cmds=$lt_old_postinstall_cmds
9675 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9676
9677 # Create an old-style archive from a shared archive.
9678 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9679
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
9682
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
9688
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
9692
9693 # Commands to strip libraries.
9694 old_striplib=$lt_old_striplib
9695 striplib=$lt_striplib
9696
9697 # Dependencies to place before the objects being linked to create a
9698 # shared library.
9699 predep_objects=$lt_predep_objects
9700
9701 # Dependencies to place after the objects being linked to create a
9702 # shared library.
9703 postdep_objects=$lt_postdep_objects
9704
9705 # Dependencies to place before the objects being linked to create a
9706 # shared library.
9707 predeps=$lt_predeps
9708
9709 # Dependencies to place after the objects being linked to create a
9710 # shared library.
9711 postdeps=$lt_postdeps
9712
9713 # The library search path used internally by the compiler when linking
9714 # a shared library.
9715 compiler_lib_search_path=$lt_compiler_lib_search_path
9716
9717 # Method to check whether dependent libraries are shared objects.
9718 deplibs_check_method=$lt_deplibs_check_method
9719
9720 # Command to use when deplibs_check_method == file_magic.
9721 file_magic_cmd=$lt_file_magic_cmd
9722
9723 # Flag that allows shared libraries with undefined symbols to be built.
9724 allow_undefined_flag=$lt_allow_undefined_flag
9725
9726 # Flag that forces no undefined symbols.
9727 no_undefined_flag=$lt_no_undefined_flag
9728
9729 # Commands used to finish a libtool library installation in a directory.
9730 finish_cmds=$lt_finish_cmds
9731
9732 # Same as above, but a single script fragment to be evaled but not shown.
9733 finish_eval=$lt_finish_eval
9734
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
9737
9738 # Transform the output of nm in a proper C declaration
9739 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9740
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
9743
9744 # This is the shared library runtime path variable.
9745 runpath_var=$runpath_var
9746
9747 # This is the shared library path variable.
9748 shlibpath_var=$shlibpath_var
9749
9750 # Is shlibpath searched before the hard-coded library search path?
9751 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9752
9753 # How to hardcode a shared library path into an executable.
9754 hardcode_action=$hardcode_action
9755
9756 # Whether we should hardcode library paths into libraries.
9757 hardcode_into_libs=$hardcode_into_libs
9758
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
9762
9763 # If ld is used when linking, flag to hardcode \$libdir into
9764 # a binary during linking. This must work even if \$libdir does
9765 # not exist.
9766 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9767
9768 # Whether we need a single -rpath flag with a separated argument.
9769 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9770
9771 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9772 # resulting binary.
9773 hardcode_direct=$hardcode_direct
9774
9775 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9776 # resulting binary.
9777 hardcode_minus_L=$hardcode_minus_L
9778
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
9782
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
9786
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"
9790
9791 # Whether libtool must link a program against all its dependency libraries.
9792 link_all_deplibs=$link_all_deplibs
9793
9794 # Compile-time system search path for libraries
9795 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9796
9797 # Run-time system search path for libraries
9798 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9799
9800 # Fix the shell variable \$srcfile for the compiler.
9801 fix_srcfile_path="$fix_srcfile_path"
9802
9803 # Set to yes if exported symbols are required.
9804 always_export_symbols=$always_export_symbols
9805
9806 # The commands to list exported symbols.
9807 export_symbols_cmds=$lt_export_symbols_cmds
9808
9809 # The commands to extract the exported symbol list from a shared archive.
9810 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9811
9812 # Symbols that should not be listed in the preloaded symbols.
9813 exclude_expsyms=$lt_exclude_expsyms
9814
9815 # Symbols that must always be exported.
9816 include_expsyms=$lt_include_expsyms
9817
9818 # ### END LIBTOOL CONFIG
9819
9820 __EOF__
9821
9822
9823   case $host_os in
9824   aix3*)
9825     cat <<\EOF >> "$cfgfile"
9826
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
9831   COLLECT_NAMES=
9832   export COLLECT_NAMES
9833 fi
9834 EOF
9835     ;;
9836   esac
9837
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)
9843
9844   mv -f "$cfgfile" "$ofile" || \
9845     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9846   chmod +x "$ofile"
9847
9848 else
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"
9855   fi
9856 fi
9857
9858
9859 ac_ext=c
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
9864
9865 CC="$lt_save_CC"
9866
9867
9868 # Check whether --with-tags or --without-tags was given.
9869 if test "${with_tags+set}" = set; then
9870   withval="$with_tags"
9871   tagnames="$withval"
9872 fi;
9873
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;}
9878   fi
9879
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;}
9885     else
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;}
9888     fi
9889   fi
9890   if test -z "$LTCFLAGS"; then
9891     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9892   fi
9893
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'`
9897
9898   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9899   for tagname in $tagnames; do
9900     IFS="$lt_save_ifs"
9901     # Check whether tagname contains only valid characters
9902     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9903     "") ;;
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; }; }
9907         ;;
9908     esac
9909
9910     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9911     then
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; }; }
9915     fi
9916
9917     # Update the list of available tags.
9918     if test -n "$tagname"; then
9919       echo appending configuration tag \"$tagname\" to $ofile
9920
9921       case $tagname in
9922       CXX)
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
9926           ac_ext=cc
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
9931
9932
9933
9934
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
9947 module_cmds_CXX=
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
9954
9955 # Dependencies to place before and after the object being linked:
9956 predep_objects_CXX=
9957 postdep_objects_CXX=
9958 predeps_CXX=
9959 postdeps_CXX=
9960 compiler_lib_search_path_CXX=
9961
9962 # Source file extension for C++ test sources.
9963 ac_ext=cpp
9964
9965 # Object file extension for compiled C++ test sources.
9966 objext=o
9967 objext_CXX=$objext
9968
9969 # Code to be used in simple compile tests
9970 lt_simple_compile_test_code="int some_variable = 0;\n"
9971
9972 # Code to be used in simple link tests
9973 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9974
9975 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9976
9977 # If no C compiler was specified, use CC.
9978 LTCC=${LTCC-"$CC"}
9979
9980 # If no C compiler flags were specified, use CFLAGS.
9981 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9982
9983 # Allow CC to be a program name with arguments.
9984 compiler=$CC
9985
9986
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`
9992 $rm conftest*
9993
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`
9998 $rm conftest*
9999
10000
10001 # Allow CC to be a program name with arguments.
10002 lt_save_CC=$CC
10003 lt_save_LD=$LD
10004 lt_save_GCC=$GCC
10005 GCC=$GXX
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
10010 else
10011   $as_unset lt_cv_prog_gnu_ld
10012 fi
10013 if test -n "${lt_cv_path_LDCXX+set}"; then
10014   lt_cv_path_LD=$lt_cv_path_LDCXX
10015 else
10016   $as_unset lt_cv_path_LD
10017 fi
10018 test -z "${LDCXX+set}" || LD=$LDCXX
10019 CC=${CXX-"c++"}
10020 compiler=$CC
10021 compiler_CXX=$CC
10022 for cc_temp in $compiler""; do
10023   case $cc_temp in
10024     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10025     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10026     \-*) ;;
10027     *) break;;
10028   esac
10029 done
10030 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10031
10032
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'
10037 else
10038   lt_prog_compiler_no_builtin_flag_CXX=
10039 fi
10040
10041 if test "$GXX" = yes; then
10042   # Set up default GNU C++ configuration
10043
10044
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
10049 else
10050   with_gnu_ld=no
10051 fi;
10052 ac_prog=ld
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
10057   case $host in
10058   *-*-mingw*)
10059     # gcc leaves a trailing carriage return which upsets mingw
10060     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10061   *)
10062     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10063   esac
10064   case $ac_prog in
10065     # Accept absolute paths.
10066     [\\/]* | ?:[\\/]*)
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%/%"`
10072       done
10073       test -z "$LD" && LD="$ac_prog"
10074       ;;
10075   "")
10076     # If it fails, then pretend we aren't using GCC.
10077     ac_prog=ld
10078     ;;
10079   *)
10080     # If it is relative, then search for the first ld in PATH.
10081     with_gnu_ld=unknown
10082     ;;
10083   esac
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
10087 else
10088   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10089 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10090 fi
10091 if test "${lt_cv_path_LD+set}" = set; then
10092   echo $ECHO_N "(cached) $ECHO_C" >&6
10093 else
10094   if test -z "$LD"; then
10095   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10096   for ac_dir in $PATH; do
10097     IFS="$lt_save_ifs"
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
10107         ;;
10108       *)
10109         test "$with_gnu_ld" != yes && break
10110         ;;
10111       esac
10112     fi
10113   done
10114   IFS="$lt_save_ifs"
10115 else
10116   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10117 fi
10118 fi
10119
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
10124 else
10125   echo "$as_me:$LINENO: result: no" >&5
10126 echo "${ECHO_T}no" >&6
10127 fi
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
10135 else
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
10140   ;;
10141 *)
10142   lt_cv_prog_gnu_ld=no
10143   ;;
10144 esac
10145 fi
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
10149
10150
10151
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'
10157
10158     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10159     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10160
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)
10164     wlarc='${wl}'
10165
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'
10170     else
10171       whole_archive_flag_spec_CXX=
10172     fi
10173   else
10174     with_gnu_ld=no
10175     wlarc=
10176
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'
10183   fi
10184
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"'
10189
10190 else
10191   GXX=no
10192   with_gnu_ld=no
10193   wlarc=
10194 fi
10195
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
10199 ld_shlibs_CXX=yes
10200 case $host_os in
10201   aix3*)
10202     # FIXME: insert proper C++ library support
10203     ld_shlibs_CXX=no
10204     ;;
10205   aix4* | aix5*)
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'
10211       no_entry_flag=""
10212     else
10213       aix_use_runtimelinking=no
10214
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
10220           case $ld_flag in
10221           *-brtl*)
10222             aix_use_runtimelinking=yes
10223             break
10224             ;;
10225           esac
10226         done
10227         ;;
10228       esac
10229
10230       exp_sym_flag='-bexport'
10231       no_entry_flag='-bnoentry'
10232     fi
10233
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.
10239
10240     archive_cmds_CXX=''
10241     hardcode_direct_CXX=yes
10242     hardcode_libdir_separator_CXX=':'
10243     link_all_deplibs_CXX=yes
10244
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
10252         then
10253           # We have reworked collect2
10254           hardcode_direct_CXX=yes
10255         else
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=
10264         fi
10265         ;;
10266       esac
10267       shared_flag='-shared'
10268       if test "$aix_use_runtimelinking" = yes; then
10269         shared_flag="$shared_flag "'${wl}-G'
10270       fi
10271     else
10272       # not using gcc
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:
10276         shared_flag='-G'
10277       else
10278         if test "$aix_use_runtimelinking" = yes; then
10279           shared_flag='${wl}-G'
10280         else
10281           shared_flag='${wl}-bM:SRE'
10282         fi
10283       fi
10284     fi
10285
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
10295 /* confdefs.h.  */
10296 _ACEOF
10297 cat confdefs.h >>conftest.$ac_ext
10298 cat >>conftest.$ac_ext <<_ACEOF
10299 /* end confdefs.h.  */
10300
10301 int
10302 main ()
10303 {
10304
10305   ;
10306   return 0;
10307 }
10308 _ACEOF
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
10312   ac_status=$?
10313   grep -v '^ *+' conftest.er1 >conftest.err
10314   rm -f conftest.er1
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
10322   ac_status=$?
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
10328   ac_status=$?
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); }; }; then
10331
10332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10333 }'`
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; }
10336 }'`; fi
10337 else
10338   echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10340
10341 fi
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
10345
10346       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10347
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"
10349      else
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"
10354       else
10355         # Determine the default libpath from the value encoded in an empty executable.
10356         cat >conftest.$ac_ext <<_ACEOF
10357 /* confdefs.h.  */
10358 _ACEOF
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h.  */
10362
10363 int
10364 main ()
10365 {
10366
10367   ;
10368   return 0;
10369 }
10370 _ACEOF
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
10374   ac_status=$?
10375   grep -v '^ *+' conftest.er1 >conftest.err
10376   rm -f conftest.er1
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
10384   ac_status=$?
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
10390   ac_status=$?
10391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392   (exit $ac_status); }; }; then
10393
10394 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10395 }'`
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; }
10398 }'`; fi
10399 else
10400   echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10402
10403 fi
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
10407
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'
10418       fi
10419     fi
10420     ;;
10421
10422   beos*)
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'
10428     else
10429       ld_shlibs_CXX=no
10430     fi
10431     ;;
10432
10433   chorus*)
10434     case $cc_basename in
10435       *)
10436         # FIXME: insert proper C++ library support
10437         ld_shlibs_CXX=no
10438         ;;
10439     esac
10440     ;;
10441
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
10449
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;
10456       else
10457         echo EXPORTS > $output_objdir/$soname.def;
10458         cat $export_symbols >> $output_objdir/$soname.def;
10459       fi~
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'
10461     else
10462       ld_shlibs_CXX=no
10463     fi
10464   ;;
10465       darwin* | rhapsody*)
10466         case $host_os in
10467         rhapsody* | darwin1.[012])
10468          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10469          ;;
10470        *) # Darwin 1.3 on
10471          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10472            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10473          else
10474            case ${MACOSX_DEPLOYMENT_TARGET} in
10475              10.[012])
10476                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10477                ;;
10478              10.*)
10479                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10480                ;;
10481            esac
10482          fi
10483          ;;
10484         esac
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
10491
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
10497       fi
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'
10500       else
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'
10502         fi
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}'
10507           else
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}'
10509           fi
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}'
10511       else
10512       case $cc_basename in
10513         xlc*)
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}'
10520           ;;
10521        *)
10522          ld_shlibs_CXX=no
10523           ;;
10524       esac
10525       fi
10526         ;;
10527
10528   dgux*)
10529     case $cc_basename in
10530       ec++*)
10531         # FIXME: insert proper C++ library support
10532         ld_shlibs_CXX=no
10533         ;;
10534       ghcx*)
10535         # Green Hills C++ Compiler
10536         # FIXME: insert proper C++ library support
10537         ld_shlibs_CXX=no
10538         ;;
10539       *)
10540         # FIXME: insert proper C++ library support
10541         ld_shlibs_CXX=no
10542         ;;
10543     esac
10544     ;;
10545   freebsd[12]*)
10546     # C++ shared libraries reported to be fairly broken before switch to ELF
10547     ld_shlibs_CXX=no
10548     ;;
10549   freebsd-elf*)
10550     archive_cmds_need_lc_CXX=no
10551     ;;
10552   freebsd* | kfreebsd*-gnu | dragonfly*)
10553     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10554     # conventions
10555     ld_shlibs_CXX=yes
10556     ;;
10557   gnu*)
10558     ;;
10559   hpux9*)
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.
10567
10568     case $cc_basename in
10569     CC*)
10570       # FIXME: insert proper C++ library support
10571       ld_shlibs_CXX=no
10572       ;;
10573     aCC*)
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.
10578       #
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
10582       # dependencies.
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'
10584       ;;
10585     *)
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'
10588       else
10589         # FIXME: insert proper C++ library support
10590         ld_shlibs_CXX=no
10591       fi
10592       ;;
10593     esac
10594     ;;
10595   hpux10*|hpux11*)
10596     if test $with_gnu_ld = no; then
10597       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10598       hardcode_libdir_separator_CXX=:
10599
10600       case $host_cpu in
10601       hppa*64*|ia64*)
10602         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10603         ;;
10604       *)
10605         export_dynamic_flag_spec_CXX='${wl}-E'
10606         ;;
10607       esac
10608     fi
10609     case $host_cpu in
10610     hppa*64*|ia64*)
10611       hardcode_direct_CXX=no
10612       hardcode_shlibpath_var_CXX=no
10613       ;;
10614     *)
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.
10619       ;;
10620     esac
10621
10622     case $cc_basename in
10623       CC*)
10624         # FIXME: insert proper C++ library support
10625         ld_shlibs_CXX=no
10626         ;;
10627       aCC*)
10628         case $host_cpu in
10629         hppa*64*)
10630           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10631           ;;
10632         ia64*)
10633           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10634           ;;
10635         *)
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'
10637           ;;
10638         esac
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.
10642         #
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
10646         # dependencies.
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'
10648         ;;
10649       *)
10650         if test "$GXX" = yes; then
10651           if test $with_gnu_ld = no; then
10652             case $host_cpu in
10653             hppa*64*)
10654               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10655               ;;
10656             ia64*)
10657               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10658               ;;
10659             *)
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'
10661               ;;
10662             esac
10663           fi
10664         else
10665           # FIXME: insert proper C++ library support
10666           ld_shlibs_CXX=no
10667         fi
10668         ;;
10669     esac
10670     ;;
10671   interix3*)
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'
10684     ;;
10685   irix5* | irix6*)
10686     case $cc_basename in
10687       CC*)
10688         # SGI C++
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'
10690
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
10694         # in the archive.
10695         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10696         ;;
10697       *)
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'
10701           else
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'
10703           fi
10704         fi
10705         link_all_deplibs_CXX=yes
10706         ;;
10707     esac
10708     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10709     hardcode_libdir_separator_CXX=:
10710     ;;
10711   linux*)
10712     case $cc_basename in
10713       KCC*)
10714         # Kuck and Associates, Inc. (KAI) C++ Compiler
10715
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.
10724         #
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
10728         # dependencies.
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'
10730
10731         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10732         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10733
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'
10737         ;;
10738       icpc*)
10739         # Intel C++
10740         with_gnu_ld=yes
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
10745         *"Version 7."*)
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'
10748           ;;
10749         *)  # Version 8.0 or newer
10750           tmp_idyn=
10751           case $host_cpu in
10752             ia64*) tmp_idyn=' -i_dynamic';;
10753           esac
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'
10756           ;;
10757         esac
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'
10762         ;;
10763       pgCC*)
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'
10767
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'
10771         ;;
10772       cxx*)
10773         # Compaq C++
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'
10776
10777         runpath_var=LD_RUN_PATH
10778         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10779         hardcode_libdir_separator_CXX=:
10780
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.
10784         #
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
10788         # dependencies.
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'
10790         ;;
10791     esac
10792     ;;
10793   lynxos*)
10794     # FIXME: insert proper C++ library support
10795     ld_shlibs_CXX=no
10796     ;;
10797   m88k*)
10798     # FIXME: insert proper C++ library support
10799     ld_shlibs_CXX=no
10800     ;;
10801   mvs*)
10802     case $cc_basename in
10803       cxx*)
10804         # FIXME: insert proper C++ library support
10805         ld_shlibs_CXX=no
10806         ;;
10807       *)
10808         # FIXME: insert proper C++ library support
10809         ld_shlibs_CXX=no
10810         ;;
10811     esac
10812     ;;
10813   netbsd*)
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'
10816       wlarc=
10817       hardcode_libdir_flag_spec_CXX='-R$libdir'
10818       hardcode_direct_CXX=yes
10819       hardcode_shlibpath_var_CXX=no
10820     fi
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::"'
10823     ;;
10824   openbsd2*)
10825     # C++ shared libraries are fairly broken
10826     ld_shlibs_CXX=no
10827     ;;
10828   openbsd*)
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'
10837     fi
10838     output_verbose_link_cmd='echo'
10839     ;;
10840   osf3*)
10841     case $cc_basename in
10842       KCC*)
10843         # Kuck and Associates, Inc. (KAI) C++ Compiler
10844
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'
10849
10850         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10851         hardcode_libdir_separator_CXX=:
10852
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'
10856
10857         ;;
10858       RCC*)
10859         # Rational C++ 2.4.1
10860         # FIXME: insert proper C++ library support
10861         ld_shlibs_CXX=no
10862         ;;
10863       cxx*)
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'
10866
10867         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10868         hardcode_libdir_separator_CXX=:
10869
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.
10873         #
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
10877         # dependencies.
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'
10879         ;;
10880       *)
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'
10884
10885           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10886           hardcode_libdir_separator_CXX=:
10887
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"'
10892
10893         else
10894           # FIXME: insert proper C++ library support
10895           ld_shlibs_CXX=no
10896         fi
10897         ;;
10898     esac
10899     ;;
10900   osf4* | osf5*)
10901     case $cc_basename in
10902       KCC*)
10903         # Kuck and Associates, Inc. (KAI) C++ Compiler
10904
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'
10909
10910         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10911         hardcode_libdir_separator_CXX=:
10912
10913         # Archives containing C++ object files must be created using
10914         # the KAI C++ compiler.
10915         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10916         ;;
10917       RCC*)
10918         # Rational C++ 2.4.1
10919         # FIXME: insert proper C++ library support
10920         ld_shlibs_CXX=no
10921         ;;
10922       cxx*)
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~
10928           $rm $lib.exp'
10929
10930         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10931         hardcode_libdir_separator_CXX=:
10932
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.
10936         #
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
10940         # dependencies.
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'
10942         ;;
10943       *)
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'
10947
10948           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10949           hardcode_libdir_separator_CXX=:
10950
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"'
10955
10956         else
10957           # FIXME: insert proper C++ library support
10958           ld_shlibs_CXX=no
10959         fi
10960         ;;
10961     esac
10962     ;;
10963   psos*)
10964     # FIXME: insert proper C++ library support
10965     ld_shlibs_CXX=no
10966     ;;
10967   sunos4*)
10968     case $cc_basename in
10969       CC*)
10970         # Sun C++ 4.x
10971         # FIXME: insert proper C++ library support
10972         ld_shlibs_CXX=no
10973         ;;
10974       lcc*)
10975         # Lucid
10976         # FIXME: insert proper C++ library support
10977         ld_shlibs_CXX=no
10978         ;;
10979       *)
10980         # FIXME: insert proper C++ library support
10981         ld_shlibs_CXX=no
10982         ;;
10983     esac
10984     ;;
10985   solaris*)
10986     case $cc_basename in
10987       CC*)
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'
10994
10995         hardcode_libdir_flag_spec_CXX='-R$libdir'
10996         hardcode_shlibpath_var_CXX=no
10997         case $host_os in
10998           solaris2.[0-5] | solaris2.[0-5].*) ;;
10999           *)
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
11006             # without $wl.
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'
11009             ;;
11010         esac
11011         link_all_deplibs_CXX=yes
11012
11013         output_verbose_link_cmd='echo'
11014
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
11018         # in the archive.
11019         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11020         ;;
11021       gcx*)
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'
11024
11025         # The C++ compiler must be used to create the archive.
11026         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11027         ;;
11028       *)
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'
11036
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\""
11041           else
11042             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11043             # platform.
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'
11047
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\""
11052           fi
11053
11054           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11055         fi
11056         ;;
11057     esac
11058     ;;
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'
11064
11065     case $cc_basename in
11066       CC*)
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'
11069         ;;
11070       *)
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'
11073         ;;
11074     esac
11075     ;;
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
11082     # as -z defs.
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'
11101
11102     case $cc_basename in
11103       CC*)
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'
11106         ;;
11107       *)
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'
11110         ;;
11111     esac
11112     ;;
11113   tandem*)
11114     case $cc_basename in
11115       NCC*)
11116         # NonStop-UX NCC 3.20
11117         # FIXME: insert proper C++ library support
11118         ld_shlibs_CXX=no
11119         ;;
11120       *)
11121         # FIXME: insert proper C++ library support
11122         ld_shlibs_CXX=no
11123         ;;
11124     esac
11125     ;;
11126   vxworks*)
11127     # FIXME: insert proper C++ library support
11128     ld_shlibs_CXX=no
11129     ;;
11130   *)
11131     # FIXME: insert proper C++ library support
11132     ld_shlibs_CXX=no
11133     ;;
11134 esac
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
11138
11139 GCC_CXX="$GXX"
11140 LD_CXX="$LD"
11141
11142 ## CAVEAT EMPTOR:
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...
11146
11147 cat > conftest.$ac_ext <<EOF
11148 class Foo
11149 {
11150 public:
11151   Foo (void) { a = 0; }
11152 private:
11153   int a;
11154 };
11155 EOF
11156
11157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11158   (eval $ac_compile) 2>&5
11159   ac_status=$?
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.
11164
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
11168
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"`
11173
11174   for p in `eval $output_verbose_link_cmd`; do
11175     case $p in
11176
11177     -L* | -R* | -l*)
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
11182          prev=$p
11183          continue
11184        else
11185          prev=
11186        fi
11187
11188        if test "$pre_test_object_deps_done" = no; then
11189          case $p in
11190          -L* | -R*)
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}"
11196            else
11197              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11198            fi
11199            ;;
11200          # The "-l" case would never come before the object being
11201          # linked, so don't bother handling this case.
11202          esac
11203        else
11204          if test -z "$postdeps_CXX"; then
11205            postdeps_CXX="${prev}${p}"
11206          else
11207            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11208          fi
11209        fi
11210        ;;
11211
11212     *.$objext)
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
11217          continue
11218        fi
11219
11220        if test "$pre_test_object_deps_done" = no; then
11221          if test -z "$predep_objects_CXX"; then
11222            predep_objects_CXX="$p"
11223          else
11224            predep_objects_CXX="$predep_objects_CXX $p"
11225          fi
11226        else
11227          if test -z "$postdep_objects_CXX"; then
11228            postdep_objects_CXX="$p"
11229          else
11230            postdep_objects_CXX="$postdep_objects_CXX $p"
11231          fi
11232        fi
11233        ;;
11234
11235     *) ;; # Ignore the rest.
11236
11237     esac
11238   done
11239
11240   # Clean up.
11241   rm -f a.out a.exe
11242 else
11243   echo "libtool.m4: error: problem compiling CXX test program"
11244 fi
11245
11246 $rm -f confest.$objext
11247
11248 # PORTME: override above test on systems where it is broken
11249 case $host_os in
11250 interix3*)
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=
11255   postdeps_CXX=
11256   ;;
11257
11258 solaris*)
11259   case $cc_basename in
11260   CC*)
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'
11265     ;;
11266   esac
11267   ;;
11268 esac
11269
11270
11271 case " $postdeps_CXX " in
11272 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11273 esac
11274
11275 lt_prog_compiler_wl_CXX=
11276 lt_prog_compiler_pic_CXX=
11277 lt_prog_compiler_static_CXX=
11278
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
11281
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'
11286
11287     case $host_os in
11288     aix*)
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'
11293       fi
11294       ;;
11295     amigaos*)
11296       # FIXME: we need at least 68020 code to build shared libraries, but
11297       # adding the `-m68020' flag to GCC prevents building anything better,
11298       # like `-m68040'.
11299       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11300       ;;
11301     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11302       # PIC is the default for these OSes.
11303       ;;
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'
11308       ;;
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'
11313       ;;
11314     *djgpp*)
11315       # DJGPP does not support shared libraries at all
11316       lt_prog_compiler_pic_CXX=
11317       ;;
11318     interix3*)
11319       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11320       # Instead, we relocate shared libraries at runtime.
11321       ;;
11322     sysv4*MP*)
11323       if test -d /usr/nec; then
11324         lt_prog_compiler_pic_CXX=-Kconform_pic
11325       fi
11326       ;;
11327     hpux*)
11328       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11329       # not for PA HP-UX.
11330       case $host_cpu in
11331       hppa*64*|ia64*)
11332         ;;
11333       *)
11334         lt_prog_compiler_pic_CXX='-fPIC'
11335         ;;
11336       esac
11337       ;;
11338     *)
11339       lt_prog_compiler_pic_CXX='-fPIC'
11340       ;;
11341     esac
11342   else
11343     case $host_os in
11344       aix4* | aix5*)
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'
11349         else
11350           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11351         fi
11352         ;;
11353       chorus*)
11354         case $cc_basename in
11355         cxch68*)
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"
11358           ;;
11359         esac
11360         ;;
11361        darwin*)
11362          # PIC is the default on this platform
11363          # Common symbols not allowed in MH_DYLIB files
11364          case $cc_basename in
11365            xlc*)
11366            lt_prog_compiler_pic_CXX='-qnocommon'
11367            lt_prog_compiler_wl_CXX='-Wl,'
11368            ;;
11369          esac
11370        ;;
11371       dgux*)
11372         case $cc_basename in
11373           ec++*)
11374             lt_prog_compiler_pic_CXX='-KPIC'
11375             ;;
11376           ghcx*)
11377             # Green Hills C++ Compiler
11378             lt_prog_compiler_pic_CXX='-pic'
11379             ;;
11380           *)
11381             ;;
11382         esac
11383         ;;
11384       freebsd* | kfreebsd*-gnu | dragonfly*)
11385         # FreeBSD uses GNU C++
11386         ;;
11387       hpux9* | hpux10* | hpux11*)
11388         case $cc_basename in
11389           CC*)
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'
11394             fi
11395             ;;
11396           aCC*)
11397             lt_prog_compiler_wl_CXX='-Wl,'
11398             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11399             case $host_cpu in
11400             hppa*64*|ia64*)
11401               # +Z the default
11402               ;;
11403             *)
11404               lt_prog_compiler_pic_CXX='+Z'
11405               ;;
11406             esac
11407             ;;
11408           *)
11409             ;;
11410         esac
11411         ;;
11412       interix*)
11413         # This is c89, which is MS Visual C++ (no shared libs)
11414         # Anyone wants to do a port?
11415         ;;
11416       irix5* | irix6* | nonstopux*)
11417         case $cc_basename in
11418           CC*)
11419             lt_prog_compiler_wl_CXX='-Wl,'
11420             lt_prog_compiler_static_CXX='-non_shared'
11421             # CC pic flag -KPIC is the default.
11422             ;;
11423           *)
11424             ;;
11425         esac
11426         ;;
11427       linux*)
11428         case $cc_basename in
11429           KCC*)
11430             # KAI C++ Compiler
11431             lt_prog_compiler_wl_CXX='--backend -Wl,'
11432             lt_prog_compiler_pic_CXX='-fPIC'
11433             ;;
11434           icpc* | ecpc*)
11435             # Intel C++
11436             lt_prog_compiler_wl_CXX='-Wl,'
11437             lt_prog_compiler_pic_CXX='-KPIC'
11438             lt_prog_compiler_static_CXX='-static'
11439             ;;
11440           pgCC*)
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'
11445             ;;
11446           cxx*)
11447             # Compaq C++
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'
11452             ;;
11453           *)
11454             ;;
11455         esac
11456         ;;
11457       lynxos*)
11458         ;;
11459       m88k*)
11460         ;;
11461       mvs*)
11462         case $cc_basename in
11463           cxx*)
11464             lt_prog_compiler_pic_CXX='-W c,exportall'
11465             ;;
11466           *)
11467             ;;
11468         esac
11469         ;;
11470       netbsd*)
11471         ;;
11472       osf3* | osf4* | osf5*)
11473         case $cc_basename in
11474           KCC*)
11475             lt_prog_compiler_wl_CXX='--backend -Wl,'
11476             ;;
11477           RCC*)
11478             # Rational C++ 2.4.1
11479             lt_prog_compiler_pic_CXX='-pic'
11480             ;;
11481           cxx*)
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'
11488             ;;
11489           *)
11490             ;;
11491         esac
11492         ;;
11493       psos*)
11494         ;;
11495       solaris*)
11496         case $cc_basename in
11497           CC*)
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 '
11502             ;;
11503           gcx*)
11504             # Green Hills C++ Compiler
11505             lt_prog_compiler_pic_CXX='-PIC'
11506             ;;
11507           *)
11508             ;;
11509         esac
11510         ;;
11511       sunos4*)
11512         case $cc_basename in
11513           CC*)
11514             # Sun C++ 4.x
11515             lt_prog_compiler_pic_CXX='-pic'
11516             lt_prog_compiler_static_CXX='-Bstatic'
11517             ;;
11518           lcc*)
11519             # Lucid
11520             lt_prog_compiler_pic_CXX='-pic'
11521             ;;
11522           *)
11523             ;;
11524         esac
11525         ;;
11526       tandem*)
11527         case $cc_basename in
11528           NCC*)
11529             # NonStop-UX NCC 3.20
11530             lt_prog_compiler_pic_CXX='-KPIC'
11531             ;;
11532           *)
11533             ;;
11534         esac
11535         ;;
11536       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11537         case $cc_basename in
11538           CC*)
11539             lt_prog_compiler_wl_CXX='-Wl,'
11540             lt_prog_compiler_pic_CXX='-KPIC'
11541             lt_prog_compiler_static_CXX='-Bstatic'
11542             ;;
11543         esac
11544         ;;
11545       vxworks*)
11546         ;;
11547       *)
11548         lt_prog_compiler_can_build_shared_CXX=no
11549         ;;
11550     esac
11551   fi
11552
11553 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11554 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11555
11556 #
11557 # Check to make sure the PIC flag actually works.
11558 #
11559 if test -n "$lt_prog_compiler_pic_CXX"; then
11560
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
11565 else
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)
11581    ac_status=$?
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
11591      fi
11592    fi
11593    $rm conftest*
11594
11595 fi
11596 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11597 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11598
11599 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11600     case $lt_prog_compiler_pic_CXX in
11601      "" | " "*) ;;
11602      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11603      esac
11604 else
11605     lt_prog_compiler_pic_CXX=
11606      lt_prog_compiler_can_build_shared_CXX=no
11607 fi
11608
11609 fi
11610 case $host_os in
11611   # For platforms which do not support PIC, -DPIC is meaningless:
11612   *djgpp*)
11613     lt_prog_compiler_pic_CXX=
11614     ;;
11615   *)
11616     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11617     ;;
11618 esac
11619
11620 #
11621 # Check to make sure the static flag actually works.
11622 #
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
11628 else
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
11643        fi
11644      else
11645        lt_prog_compiler_static_works_CXX=yes
11646      fi
11647    fi
11648    $rm conftest*
11649    LDFLAGS="$save_LDFLAGS"
11650
11651 fi
11652 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11653 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11654
11655 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11656     :
11657 else
11658     lt_prog_compiler_static_CXX=
11659 fi
11660
11661
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
11666 else
11667   lt_cv_prog_compiler_c_o_CXX=no
11668    $rm -r conftest 2>/dev/null
11669    mkdir conftest
11670    cd conftest
11671    mkdir out
11672    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11673
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)
11685    ac_status=$?
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
11689    then
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
11696      fi
11697    fi
11698    chmod u+w . 2>&5
11699    $rm conftest*
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
11704    cd ..
11705    rmdir conftest
11706    $rm conftest*
11707
11708 fi
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
11711
11712
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
11718   hard_links=yes
11719   $rm conftest*
11720   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11721   touch conftest.a
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;}
11729     need_locks=warn
11730   fi
11731 else
11732   need_locks=no
11733 fi
11734
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
11737
11738   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11739   case $host_os in
11740   aix4* | aix5*)
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'
11745     else
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'
11747     fi
11748     ;;
11749   pw32*)
11750     export_symbols_cmds_CXX="$ltdll_cmds"
11751   ;;
11752   cygwin* | mingw*)
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'
11754   ;;
11755   *)
11756     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11757   ;;
11758   esac
11759
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
11763
11764 #
11765 # Do we need to explicitly link libc?
11766 #
11767 case "x$archive_cmds_need_lc_CXX" in
11768 x|xyes)
11769   # Assume -lc should be added
11770   archive_cmds_need_lc_CXX=yes
11771
11772   if test "$enable_shared" = yes && test "$GCC" = yes; then
11773     case $archive_cmds_CXX in
11774     *'~'*)
11775       # FIXME: we may have to deal with multi-command sequences.
11776       ;;
11777     '$CC '*)
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
11783       $rm conftest*
11784       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11785
11786       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11787   (eval $ac_compile) 2>&5
11788   ac_status=$?
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); } 2>conftest.err; then
11791         soname=conftest
11792         lib=conftest
11793         libobjs=conftest.$ac_objext
11794         deplibs=
11795         wl=$lt_prog_compiler_wl_CXX
11796         pic_flag=$lt_prog_compiler_pic_CXX
11797         compiler_flags=-v
11798         linker_flags=-v
11799         verstring=
11800         output_objdir=.
11801         libname=conftest
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
11806   ac_status=$?
11807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808   (exit $ac_status); }
11809         then
11810           archive_cmds_need_lc_CXX=no
11811         else
11812           archive_cmds_need_lc_CXX=yes
11813         fi
11814         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11815       else
11816         cat conftest.err 1>&5
11817       fi
11818       $rm conftest*
11819       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11820 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11821       ;;
11822     esac
11823   fi
11824   ;;
11825 esac
11826
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'
11831 soname_spec=
11832 shrext_cmds=".so"
11833 postinstall_cmds=
11834 postuninstall_cmds=
11835 finish_cmds=
11836 finish_eval=
11837 shlibpath_var=
11838 shlibpath_overrides_runpath=unknown
11839 version_type=none
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'`
11850   else
11851     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11852   fi
11853 else
11854   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11855 fi
11856 need_lib_prefix=unknown
11857 hardcode_into_libs=no
11858
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
11862
11863 case $host_os in
11864 aix3*)
11865   version_type=linux
11866   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11867   shlibpath_var=LIBPATH
11868
11869   # AIX 3 has no versioning support, so we append a major version to the name.
11870   soname_spec='${libname}${release}${shared_ext}$major'
11871   ;;
11872
11873 aix4* | aix5*)
11874   version_type=linux
11875   need_lib_prefix=no
11876   need_version=no
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
11882   else
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.
11888     case $host_os in
11889       aix4 | aix4.[01] | aix4.[01].*)
11890       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11891            echo ' yes '
11892            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11893         :
11894       else
11895         can_build_shared=no
11896       fi
11897       ;;
11898     esac
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}'
11907     else
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'
11912     fi
11913     shlibpath_var=LIBPATH
11914   fi
11915   ;;
11916
11917 amigaos*)
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'
11921   ;;
11922
11923 beos*)
11924   library_names_spec='${libname}${shared_ext}'
11925   dynamic_linker="$host_os ld.so"
11926   shlibpath_var=LIBRARY_PATH
11927   ;;
11928
11929 bsdi[45]*)
11930   version_type=linux
11931   need_version=no
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
11941   ;;
11942
11943 cygwin* | mingw* | pw32*)
11944   version_type=windows
11945   shrext_cmds=".dll"
11946   need_version=no
11947   need_lib_prefix=no
11948
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~
11961        $rm \$dlpath'
11962     shlibpath_overrides_runpath=yes
11963
11964     case $host_os in
11965     cygwin*)
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"
11969       ;;
11970     mingw*)
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'`
11982       else
11983         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11984       fi
11985       ;;
11986     pw32*)
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}'
11989       ;;
11990     esac
11991     ;;
11992
11993   *)
11994     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11995     ;;
11996   esac
11997   dynamic_linker='Win32 ld.exe'
11998   # FIXME: first we should search . and the directory the executable is in
11999   shlibpath_var=PATH
12000   ;;
12001
12002 darwin* | rhapsody*)
12003   dynamic_linker="$host_os dyld"
12004   version_type=darwin
12005   need_lib_prefix=no
12006   need_version=no
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"`
12015   else
12016     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12017   fi
12018   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12019   ;;
12020
12021 dgux*)
12022   version_type=linux
12023   need_lib_prefix=no
12024   need_version=no
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
12028   ;;
12029
12030 freebsd1*)
12031   dynamic_linker=no
12032   ;;
12033
12034 kfreebsd*-gnu)
12035   version_type=linux
12036   need_lib_prefix=no
12037   need_version=no
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'
12044   ;;
12045
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`
12051   else
12052     case $host_os in
12053     freebsd[123]*) objformat=aout ;;
12054     *) objformat=elf ;;
12055     esac
12056   fi
12057   version_type=freebsd-$objformat
12058   case $version_type in
12059     freebsd-elf*)
12060       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12061       need_version=no
12062       need_lib_prefix=no
12063       ;;
12064     freebsd-*)
12065       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12066       need_version=yes
12067       ;;
12068   esac
12069   shlibpath_var=LD_LIBRARY_PATH
12070   case $host_os in
12071   freebsd2*)
12072     shlibpath_overrides_runpath=yes
12073     ;;
12074   freebsd3.[01]* | freebsdelf3.[01]*)
12075     shlibpath_overrides_runpath=yes
12076     hardcode_into_libs=yes
12077     ;;
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
12082     ;;
12083   freebsd*) # from 4.6 on
12084     shlibpath_overrides_runpath=yes
12085     hardcode_into_libs=yes
12086     ;;
12087   esac
12088   ;;
12089
12090 gnu*)
12091   version_type=linux
12092   need_lib_prefix=no
12093   need_version=no
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
12098   ;;
12099
12100 hpux9* | hpux10* | hpux11*)
12101   # Give a soname corresponding to the major version so that dld.sl refuses to
12102   # link against other versions.
12103   version_type=sunos
12104   need_lib_prefix=no
12105   need_version=no
12106   case $host_cpu in
12107   ia64*)
12108     shrext_cmds='.so'
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"
12117     else
12118       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12119     fi
12120     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12121     ;;
12122    hppa*64*)
12123      shrext_cmds='.sl'
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
12132      ;;
12133    *)
12134     shrext_cmds='.sl'
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'
12140     ;;
12141   esac
12142   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12143   postinstall_cmds='chmod 555 $lib'
12144   ;;
12145
12146 interix3*)
12147   version_type=linux
12148   need_lib_prefix=no
12149   need_version=no
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
12156   ;;
12157
12158 irix5* | irix6* | nonstopux*)
12159   case $host_os in
12160     nonstopux*) version_type=nonstopux ;;
12161     *)
12162         if test "$lt_cv_prog_gnu_ld" = yes; then
12163                 version_type=linux
12164         else
12165                 version_type=irix
12166         fi ;;
12167   esac
12168   need_lib_prefix=no
12169   need_version=no
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}'
12172   case $host_os in
12173   irix5* | nonstopux*)
12174     libsuff= shlibsuff=
12175     ;;
12176   *)
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;;
12185     esac
12186     ;;
12187   esac
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
12193   ;;
12194
12195 # No shared lib support for Linux oldld, aout, or coff.
12196 linux*oldld* | linux*aout* | linux*coff*)
12197   dynamic_linker=no
12198   ;;
12199
12200 # This must be Linux ELF.
12201 linux*)
12202   version_type=linux
12203   need_lib_prefix=no
12204   need_version=no
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
12214
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"
12219   fi
12220
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'
12228   ;;
12229
12230 knetbsd*-gnu)
12231   version_type=linux
12232   need_lib_prefix=no
12233   need_version=no
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'
12240   ;;
12241
12242 netbsd*)
12243   version_type=sunos
12244   need_lib_prefix=no
12245   need_version=no
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'
12250   else
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'
12254   fi
12255   shlibpath_var=LD_LIBRARY_PATH
12256   shlibpath_overrides_runpath=yes
12257   hardcode_into_libs=yes
12258   ;;
12259
12260 newsos6)
12261   version_type=linux
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
12265   ;;
12266
12267 nto-qnx*)
12268   version_type=linux
12269   need_lib_prefix=no
12270   need_version=no
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
12275   ;;
12276
12277 openbsd*)
12278   version_type=sunos
12279   sys_lib_dlsearch_path_spec="/usr/lib"
12280   need_lib_prefix=no
12281   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12282   case $host_os in
12283     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12284     *)                         need_version=no  ;;
12285   esac
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
12290     case $host_os in
12291       openbsd2.[89] | openbsd2.[89].*)
12292         shlibpath_overrides_runpath=no
12293         ;;
12294       *)
12295         shlibpath_overrides_runpath=yes
12296         ;;
12297       esac
12298   else
12299     shlibpath_overrides_runpath=yes
12300   fi
12301   ;;
12302
12303 os2*)
12304   libname_spec='$name'
12305   shrext_cmds=".dll"
12306   need_lib_prefix=no
12307   library_names_spec='$libname${shared_ext} $libname.a'
12308   dynamic_linker='OS/2 ld.exe'
12309   shlibpath_var=LIBPATH
12310   ;;
12311
12312 osf3* | osf4* | osf5*)
12313   version_type=osf
12314   need_lib_prefix=no
12315   need_version=no
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"
12321   ;;
12322
12323 solaris*)
12324   version_type=linux
12325   need_lib_prefix=no
12326   need_version=no
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'
12334   ;;
12335
12336 sunos4*)
12337   version_type=sunos
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
12343     need_lib_prefix=no
12344   fi
12345   need_version=yes
12346   ;;
12347
12348 sysv4 | sysv4.3*)
12349   version_type=linux
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
12354     sni)
12355       shlibpath_overrides_runpath=no
12356       need_lib_prefix=no
12357       export_dynamic_flag_spec='${wl}-Blargedynsym'
12358       runpath_var=LD_RUN_PATH
12359       ;;
12360     siemens)
12361       need_lib_prefix=no
12362       ;;
12363     motorola)
12364       need_lib_prefix=no
12365       need_version=no
12366       shlibpath_overrides_runpath=no
12367       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12368       ;;
12369   esac
12370   ;;
12371
12372 sysv4*MP*)
12373   if test -d /usr/nec ;then
12374     version_type=linux
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
12378   fi
12379   ;;
12380
12381 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12382   version_type=freebsd-elf
12383   need_lib_prefix=no
12384   need_version=no
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
12392   else
12393     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12394     shlibpath_overrides_runpath=yes
12395     case $host_os in
12396       sco3.2v5*)
12397         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12398         ;;
12399     esac
12400   fi
12401   sys_lib_dlsearch_path_spec='/usr/lib'
12402   ;;
12403
12404 uts4*)
12405   version_type=linux
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
12409   ;;
12410
12411 *)
12412   dynamic_linker=no
12413   ;;
12414 esac
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
12418
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"
12422 fi
12423
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
12430
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
12440   else
12441     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12442     hardcode_action_CXX=immediate
12443   fi
12444 else
12445   # We cannot hardcode anything, or else we can only hardcode existing
12446   # directories.
12447   hardcode_action_CXX=unsupported
12448 fi
12449 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12450 echo "${ECHO_T}$hardcode_action_CXX" >&6
12451
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
12459 fi
12460
12461
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
12471   fi
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 \
12476     SED SHELL STRIP \
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 \
12484     compiler_CXX \
12485     CC_CXX \
12486     LD_CXX \
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 \
12499     predeps_CXX \
12500     postdeps_CXX \
12501     compiler_lib_search_path_CXX \
12502     archive_cmds_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 \
12514     module_cmds_CXX \
12515     module_expsym_cmds_CXX \
12516     lt_cv_prog_compiler_c_o_CXX \
12517     exclude_expsyms_CXX \
12518     include_expsyms_CXX; do
12519
12520     case $var in
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\"\`\\\""
12535       ;;
12536     *)
12537       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12538       ;;
12539     esac
12540   done
12541
12542   case $lt_echo in
12543   *'\$0 --fallback-echo"')
12544     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12545     ;;
12546   esac
12547
12548 cfgfile="$ofile"
12549
12550   cat <<__EOF__ >> "$cfgfile"
12551 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12552
12553 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12554
12555 # Shell to use when invoking shell scripts.
12556 SHELL=$lt_SHELL
12557
12558 # Whether or not to build shared libraries.
12559 build_libtool_libs=$enable_shared
12560
12561 # Whether or not to build static libraries.
12562 build_old_libs=$enable_static
12563
12564 # Whether or not to add -lc for building shared libraries.
12565 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12566
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
12569
12570 # Whether or not to optimize for fast installation.
12571 fast_install=$enable_fast_install
12572
12573 # The host system.
12574 host_alias=$host_alias
12575 host=$host
12576 host_os=$host_os
12577
12578 # The build system.
12579 build_alias=$build_alias
12580 build=$build
12581 build_os=$build_os
12582
12583 # An echo program that does not interpret backslashes.
12584 echo=$lt_echo
12585
12586 # The archiver.
12587 AR=$lt_AR
12588 AR_FLAGS=$lt_AR_FLAGS
12589
12590 # A C compiler.
12591 LTCC=$lt_LTCC
12592
12593 # LTCC compiler flags.
12594 LTCFLAGS=$lt_LTCFLAGS
12595
12596 # A language-specific compiler.
12597 CC=$lt_compiler_CXX
12598
12599 # Is the compiler the GNU C compiler?
12600 with_gcc=$GCC_CXX
12601
12602 # An ERE matcher.
12603 EGREP=$lt_EGREP
12604
12605 # The linker used to build libraries.
12606 LD=$lt_LD_CXX
12607
12608 # Whether we need hard or soft links.
12609 LN_S=$lt_LN_S
12610
12611 # A BSD-compatible nm program.
12612 NM=$lt_NM
12613
12614 # A symbol stripping program
12615 STRIP=$lt_STRIP
12616
12617 # Used to examine libraries when file_magic_cmd begins "file"
12618 MAGIC_CMD=$MAGIC_CMD
12619
12620 # Used on cygwin: DLL creation program.
12621 DLLTOOL="$DLLTOOL"
12622
12623 # Used on cygwin: object dumper.
12624 OBJDUMP="$OBJDUMP"
12625
12626 # Used on cygwin: assembler.
12627 AS="$AS"
12628
12629 # The name of the directory that contains temporary libtool files.
12630 objdir=$objdir
12631
12632 # How to create reloadable object files.
12633 reload_flag=$lt_reload_flag
12634 reload_cmds=$lt_reload_cmds
12635
12636 # How to pass a linker flag through the compiler.
12637 wl=$lt_lt_prog_compiler_wl_CXX
12638
12639 # Object file suffix (normally "o").
12640 objext="$ac_objext"
12641
12642 # Old archive suffix (normally "a").
12643 libext="$libext"
12644
12645 # Shared library suffix (normally ".so").
12646 shrext_cmds='$shrext_cmds'
12647
12648 # Executable file suffix (normally "").
12649 exeext="$exeext"
12650
12651 # Additional compiler flags for building library objects.
12652 pic_flag=$lt_lt_prog_compiler_pic_CXX
12653 pic_mode=$pic_mode
12654
12655 # What is the maximum length of a command?
12656 max_cmd_len=$lt_cv_sys_max_cmd_len
12657
12658 # Does compiler simultaneously support -c and -o options?
12659 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12660
12661 # Must we lock files when doing compilation?
12662 need_locks=$lt_need_locks
12663
12664 # Do we need the lib prefix for modules?
12665 need_lib_prefix=$need_lib_prefix
12666
12667 # Do we need a version for libraries?
12668 need_version=$need_version
12669
12670 # Whether dlopen is supported.
12671 dlopen_support=$enable_dlopen
12672
12673 # Whether dlopen of programs is supported.
12674 dlopen_self=$enable_dlopen_self
12675
12676 # Whether dlopen of statically linked programs is supported.
12677 dlopen_self_static=$enable_dlopen_self_static
12678
12679 # Compiler flag to prevent dynamic linking.
12680 link_static_flag=$lt_lt_prog_compiler_static_CXX
12681
12682 # Compiler flag to turn off builtin functions.
12683 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12684
12685 # Compiler flag to allow reflexive dlopens.
12686 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12687
12688 # Compiler flag to generate shared objects directly from archives.
12689 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12690
12691 # Compiler flag to generate thread-safe objects.
12692 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12693
12694 # Library versioning type.
12695 version_type=$version_type
12696
12697 # Format of library name prefix.
12698 libname_spec=$lt_libname_spec
12699
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
12703
12704 # The coded name of the library, if different from the real name.
12705 soname_spec=$lt_soname_spec
12706
12707 # Commands used to build and install an old-style archive.
12708 RANLIB=$lt_RANLIB
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
12712
12713 # Create an old-style archive from a shared archive.
12714 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12715
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
12718
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
12724
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
12728
12729 # Commands to strip libraries.
12730 old_striplib=$lt_old_striplib
12731 striplib=$lt_striplib
12732
12733 # Dependencies to place before the objects being linked to create a
12734 # shared library.
12735 predep_objects=$lt_predep_objects_CXX
12736
12737 # Dependencies to place after the objects being linked to create a
12738 # shared library.
12739 postdep_objects=$lt_postdep_objects_CXX
12740
12741 # Dependencies to place before the objects being linked to create a
12742 # shared library.
12743 predeps=$lt_predeps_CXX
12744
12745 # Dependencies to place after the objects being linked to create a
12746 # shared library.
12747 postdeps=$lt_postdeps_CXX
12748
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
12752
12753 # Method to check whether dependent libraries are shared objects.
12754 deplibs_check_method=$lt_deplibs_check_method
12755
12756 # Command to use when deplibs_check_method == file_magic.
12757 file_magic_cmd=$lt_file_magic_cmd
12758
12759 # Flag that allows shared libraries with undefined symbols to be built.
12760 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12761
12762 # Flag that forces no undefined symbols.
12763 no_undefined_flag=$lt_no_undefined_flag_CXX
12764
12765 # Commands used to finish a libtool library installation in a directory.
12766 finish_cmds=$lt_finish_cmds
12767
12768 # Same as above, but a single script fragment to be evaled but not shown.
12769 finish_eval=$lt_finish_eval
12770
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
12773
12774 # Transform the output of nm in a proper C declaration
12775 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12776
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
12779
12780 # This is the shared library runtime path variable.
12781 runpath_var=$runpath_var
12782
12783 # This is the shared library path variable.
12784 shlibpath_var=$shlibpath_var
12785
12786 # Is shlibpath searched before the hard-coded library search path?
12787 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12788
12789 # How to hardcode a shared library path into an executable.
12790 hardcode_action=$hardcode_action_CXX
12791
12792 # Whether we should hardcode library paths into libraries.
12793 hardcode_into_libs=$hardcode_into_libs
12794
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
12798
12799 # If ld is used when linking, flag to hardcode \$libdir into
12800 # a binary during linking. This must work even if \$libdir does
12801 # not exist.
12802 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12803
12804 # Whether we need a single -rpath flag with a separated argument.
12805 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12806
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
12810
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
12814
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
12818
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
12822
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"
12826
12827 # Whether libtool must link a program against all its dependency libraries.
12828 link_all_deplibs=$link_all_deplibs_CXX
12829
12830 # Compile-time system search path for libraries
12831 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12832
12833 # Run-time system search path for libraries
12834 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12835
12836 # Fix the shell variable \$srcfile for the compiler.
12837 fix_srcfile_path="$fix_srcfile_path_CXX"
12838
12839 # Set to yes if exported symbols are required.
12840 always_export_symbols=$always_export_symbols_CXX
12841
12842 # The commands to list exported symbols.
12843 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12844
12845 # The commands to extract the exported symbol list from a shared archive.
12846 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12847
12848 # Symbols that should not be listed in the preloaded symbols.
12849 exclude_expsyms=$lt_exclude_expsyms_CXX
12850
12851 # Symbols that must always be exported.
12852 include_expsyms=$lt_include_expsyms_CXX
12853
12854 # ### END LIBTOOL TAG CONFIG: $tagname
12855
12856 __EOF__
12857
12858
12859 else
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"
12866   fi
12867 fi
12868
12869
12870 ac_ext=c
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
12875
12876 CC=$lt_save_CC
12877 LDCXX=$LD
12878 LD=$lt_save_LD
12879 GCC=$lt_save_GCC
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
12886
12887         else
12888           tagname=""
12889         fi
12890         ;;
12891
12892       F77)
12893         if test -n "$F77" && test "X$F77" != "Xno"; then
12894
12895 ac_ext=f
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
12899
12900
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
12912 module_cmds_F77=
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
12919
12920 # Source file extension for f77 test sources.
12921 ac_ext=f
12922
12923 # Object file extension for compiled f77 test sources.
12924 objext=o
12925 objext_F77=$objext
12926
12927 # Code to be used in simple compile tests
12928 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12929
12930 # Code to be used in simple link tests
12931 lt_simple_link_test_code="      program t\n      end\n"
12932
12933 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12934
12935 # If no C compiler was specified, use CC.
12936 LTCC=${LTCC-"$CC"}
12937
12938 # If no C compiler flags were specified, use CFLAGS.
12939 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12940
12941 # Allow CC to be a program name with arguments.
12942 compiler=$CC
12943
12944
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`
12950 $rm conftest*
12951
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`
12956 $rm conftest*
12957
12958
12959 # Allow CC to be a program name with arguments.
12960 lt_save_CC="$CC"
12961 CC=${F77-"f77"}
12962 compiler=$CC
12963 compiler_F77=$CC
12964 for cc_temp in $compiler""; do
12965   case $cc_temp in
12966     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12967     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12968     \-*) ;;
12969     *) break;;
12970   esac
12971 done
12972 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12973
12974
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
12979
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
12983
12984 # On AIX, shared libraries and static libraries use the same namespace, and
12985 # are all built from PIC.
12986 case $host_os in
12987 aix3*)
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'
12992   fi
12993   ;;
12994 aix4* | aix5*)
12995   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12996     test "$enable_shared" = yes && enable_static=no
12997   fi
12998   ;;
12999 esac
13000 echo "$as_me:$LINENO: result: $enable_shared" >&5
13001 echo "${ECHO_T}$enable_shared" >&6
13002
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
13009
13010 GCC_F77="$G77"
13011 LD_F77="$LD"
13012
13013 lt_prog_compiler_wl_F77=
13014 lt_prog_compiler_pic_F77=
13015 lt_prog_compiler_static_F77=
13016
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
13019
13020   if test "$GCC" = yes; then
13021     lt_prog_compiler_wl_F77='-Wl,'
13022     lt_prog_compiler_static_F77='-static'
13023
13024     case $host_os in
13025       aix*)
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'
13030       fi
13031       ;;
13032
13033     amigaos*)
13034       # FIXME: we need at least 68020 code to build shared libraries, but
13035       # adding the `-m68020' flag to GCC prevents building anything better,
13036       # like `-m68040'.
13037       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13038       ;;
13039
13040     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13041       # PIC is the default for these OSes.
13042       ;;
13043
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'
13048       ;;
13049
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'
13054       ;;
13055
13056     interix3*)
13057       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13058       # Instead, we relocate shared libraries at runtime.
13059       ;;
13060
13061     msdosdjgpp*)
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
13065       enable_shared=no
13066       ;;
13067
13068     sysv4*MP*)
13069       if test -d /usr/nec; then
13070         lt_prog_compiler_pic_F77=-Kconform_pic
13071       fi
13072       ;;
13073
13074     hpux*)
13075       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13076       # not for PA HP-UX.
13077       case $host_cpu in
13078       hppa*64*|ia64*)
13079         # +Z the default
13080         ;;
13081       *)
13082         lt_prog_compiler_pic_F77='-fPIC'
13083         ;;
13084       esac
13085       ;;
13086
13087     *)
13088       lt_prog_compiler_pic_F77='-fPIC'
13089       ;;
13090     esac
13091   else
13092     # PORTME Check for flag to pass linker flags through the system compiler.
13093     case $host_os in
13094     aix*)
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'
13099       else
13100         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13101       fi
13102       ;;
13103       darwin*)
13104         # PIC is the default on this platform
13105         # Common symbols not allowed in MH_DYLIB files
13106        case $cc_basename in
13107          xlc*)
13108          lt_prog_compiler_pic_F77='-qnocommon'
13109          lt_prog_compiler_wl_F77='-Wl,'
13110          ;;
13111        esac
13112        ;;
13113
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'
13118       ;;
13119
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.
13124       case $host_cpu in
13125       hppa*64*|ia64*)
13126         # +Z the default
13127         ;;
13128       *)
13129         lt_prog_compiler_pic_F77='+Z'
13130         ;;
13131       esac
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'
13134       ;;
13135
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'
13140       ;;
13141
13142     newsos6)
13143       lt_prog_compiler_pic_F77='-KPIC'
13144       lt_prog_compiler_static_F77='-Bstatic'
13145       ;;
13146
13147     linux*)
13148       case $cc_basename in
13149       icc* | ecc*)
13150         lt_prog_compiler_wl_F77='-Wl,'
13151         lt_prog_compiler_pic_F77='-KPIC'
13152         lt_prog_compiler_static_F77='-static'
13153         ;;
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'
13160         ;;
13161       ccc*)
13162         lt_prog_compiler_wl_F77='-Wl,'
13163         # All Alpha code is PIC.
13164         lt_prog_compiler_static_F77='-non_shared'
13165         ;;
13166       esac
13167       ;;
13168
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'
13173       ;;
13174
13175     solaris*)
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 ';;
13181       *)
13182         lt_prog_compiler_wl_F77='-Wl,';;
13183       esac
13184       ;;
13185
13186     sunos4*)
13187       lt_prog_compiler_wl_F77='-Qoption ld '
13188       lt_prog_compiler_pic_F77='-PIC'
13189       lt_prog_compiler_static_F77='-Bstatic'
13190       ;;
13191
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'
13196       ;;
13197
13198     sysv4*MP*)
13199       if test -d /usr/nec ;then
13200         lt_prog_compiler_pic_F77='-Kconform_pic'
13201         lt_prog_compiler_static_F77='-Bstatic'
13202       fi
13203       ;;
13204
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'
13209       ;;
13210
13211     unicos*)
13212       lt_prog_compiler_wl_F77='-Wl,'
13213       lt_prog_compiler_can_build_shared_F77=no
13214       ;;
13215
13216     uts4*)
13217       lt_prog_compiler_pic_F77='-pic'
13218       lt_prog_compiler_static_F77='-Bstatic'
13219       ;;
13220
13221     *)
13222       lt_prog_compiler_can_build_shared_F77=no
13223       ;;
13224     esac
13225   fi
13226
13227 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13228 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13229
13230 #
13231 # Check to make sure the PIC flag actually works.
13232 #
13233 if test -n "$lt_prog_compiler_pic_F77"; then
13234
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
13239 else
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)
13255    ac_status=$?
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
13265      fi
13266    fi
13267    $rm conftest*
13268
13269 fi
13270 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13271 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13272
13273 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13274     case $lt_prog_compiler_pic_F77 in
13275      "" | " "*) ;;
13276      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13277      esac
13278 else
13279     lt_prog_compiler_pic_F77=
13280      lt_prog_compiler_can_build_shared_F77=no
13281 fi
13282
13283 fi
13284 case $host_os in
13285   # For platforms which do not support PIC, -DPIC is meaningless:
13286   *djgpp*)
13287     lt_prog_compiler_pic_F77=
13288     ;;
13289   *)
13290     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13291     ;;
13292 esac
13293
13294 #
13295 # Check to make sure the static flag actually works.
13296 #
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
13302 else
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
13317        fi
13318      else
13319        lt_prog_compiler_static_works_F77=yes
13320      fi
13321    fi
13322    $rm conftest*
13323    LDFLAGS="$save_LDFLAGS"
13324
13325 fi
13326 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13327 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13328
13329 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13330     :
13331 else
13332     lt_prog_compiler_static_F77=
13333 fi
13334
13335
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
13340 else
13341   lt_cv_prog_compiler_c_o_F77=no
13342    $rm -r conftest 2>/dev/null
13343    mkdir conftest
13344    cd conftest
13345    mkdir out
13346    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13347
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)
13359    ac_status=$?
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
13363    then
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
13370      fi
13371    fi
13372    chmod u+w . 2>&5
13373    $rm conftest*
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
13378    cd ..
13379    rmdir conftest
13380    $rm conftest*
13381
13382 fi
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
13385
13386
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
13392   hard_links=yes
13393   $rm conftest*
13394   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13395   touch conftest.a
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;}
13403     need_locks=warn
13404   fi
13405 else
13406   need_locks=no
13407 fi
13408
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
13411
13412   runpath_var=
13413   allow_undefined_flag_F77=
13414   enable_shared_with_static_runtimes_F77=no
13415   archive_cmds_F77=
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
13430   module_cmds_F77=
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
13450   case $cc_temp in
13451     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13452     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13453     \-*) ;;
13454     *) break;;
13455   esac
13456 done
13457 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13458
13459   case $host_os in
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
13465       with_gnu_ld=no
13466     fi
13467     ;;
13468   interix*)
13469     # we just hope/assume this is gcc and not c89 (= MSVC++)
13470     with_gnu_ld=yes
13471     ;;
13472   openbsd*)
13473     with_gnu_ld=no
13474     ;;
13475   esac
13476
13477   ld_shlibs_F77=yes
13478   if test "$with_gnu_ld" = yes; then
13479     # If archive_cmds runs LD, not CC, wlarc should be empty
13480     wlarc='${wl}'
13481
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'
13491       else
13492         whole_archive_flag_spec_F77=
13493     fi
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 ;;
13501     esac
13502
13503     # See if GNU ld supports shared libraries.
13504     case $host_os in
13505     aix3* | aix4* | aix5*)
13506       # On AIX/PPC, the GNU linker is very broken
13507       if test "$host_cpu" != ia64; then
13508         ld_shlibs_F77=no
13509         cat <<EOF 1>&2
13510
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.
13516
13517 EOF
13518       fi
13519       ;;
13520
13521     amigaos*)
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
13525
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
13531       # them.
13532       ld_shlibs_F77=no
13533       ;;
13534
13535     beos*)
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'
13541       else
13542         ld_shlibs_F77=no
13543       fi
13544       ;;
13545
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'
13554
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;
13561         else
13562           echo EXPORTS > $output_objdir/$soname.def;
13563           cat $export_symbols >> $output_objdir/$soname.def;
13564         fi~
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'
13566       else
13567         ld_shlibs_F77=no
13568       fi
13569       ;;
13570
13571     interix3*)
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'
13584       ;;
13585
13586     linux*)
13587       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13588         tmp_addflag=
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'
13593           ;;
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' ;;
13603         esac
13604         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13605
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'
13611         fi
13612       else
13613         ld_shlibs_F77=no
13614       fi
13615       ;;
13616
13617     netbsd*)
13618       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13619         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13620         wlarc=
13621       else
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'
13624       fi
13625       ;;
13626
13627     solaris*)
13628       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13629         ld_shlibs_F77=no
13630         cat <<EOF 1>&2
13631
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.
13638
13639 EOF
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'
13643       else
13644         ld_shlibs_F77=no
13645       fi
13646       ;;
13647
13648     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13649       case `$LD -v 2>&1` in
13650         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13651         ld_shlibs_F77=no
13652         cat <<_LT_EOF 1>&2
13653
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.
13660
13661 _LT_EOF
13662         ;;
13663         *)
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'
13668           else
13669             ld_shlibs_F77=no
13670           fi
13671         ;;
13672       esac
13673       ;;
13674
13675     sunos4*)
13676       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13677       wlarc=
13678       hardcode_direct_F77=yes
13679       hardcode_shlibpath_var_F77=no
13680       ;;
13681
13682     *)
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'
13686       else
13687         ld_shlibs_F77=no
13688       fi
13689       ;;
13690     esac
13691
13692     if test "$ld_shlibs_F77" = no; then
13693       runpath_var=
13694       hardcode_libdir_flag_spec_F77=
13695       export_dynamic_flag_spec_F77=
13696       whole_archive_flag_spec_F77=
13697     fi
13698   else
13699     # PORTME fill in a description of your system's linker (not GNU ld)
13700     case $host_os in
13701     aix3*)
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
13710         # broken collect2.
13711         hardcode_direct_F77=unsupported
13712       fi
13713       ;;
13714
13715     aix4* | aix5*)
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'
13721         no_entry_flag=""
13722       else
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'
13727         else
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'
13729         fi
13730         aix_use_runtimelinking=no
13731
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
13739             break
13740           fi
13741           done
13742           ;;
13743         esac
13744
13745         exp_sym_flag='-bexport'
13746         no_entry_flag='-bnoentry'
13747       fi
13748
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.
13754
13755       archive_cmds_F77=''
13756       hardcode_direct_F77=yes
13757       hardcode_libdir_separator_F77=':'
13758       link_all_deplibs_F77=yes
13759
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
13767           then
13768           # We have reworked collect2
13769           hardcode_direct_F77=yes
13770           else
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=
13779           fi
13780           ;;
13781         esac
13782         shared_flag='-shared'
13783         if test "$aix_use_runtimelinking" = yes; then
13784           shared_flag="$shared_flag "'${wl}-G'
13785         fi
13786       else
13787         # not using gcc
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:
13791           shared_flag='-G'
13792         else
13793           if test "$aix_use_runtimelinking" = yes; then
13794             shared_flag='${wl}-G'
13795           else
13796             shared_flag='${wl}-bM:SRE'
13797           fi
13798         fi
13799       fi
13800
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
13810       program main
13811
13812       end
13813 _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
13817   ac_status=$?
13818   grep -v '^ *+' conftest.er1 >conftest.err
13819   rm -f conftest.er1
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
13827   ac_status=$?
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
13833   ac_status=$?
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); }; }; then
13836
13837 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13838 }'`
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; }
13841 }'`; fi
13842 else
13843   echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13845
13846 fi
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
13850
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"
13853        else
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"
13858         else
13859          # Determine the default libpath from the value encoded in an empty executable.
13860          cat >conftest.$ac_ext <<_ACEOF
13861       program main
13862
13863       end
13864 _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
13868   ac_status=$?
13869   grep -v '^ *+' conftest.er1 >conftest.err
13870   rm -f conftest.er1
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
13878   ac_status=$?
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
13884   ac_status=$?
13885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); }; }; then
13887
13888 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13889 }'`
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; }
13892 }'`; fi
13893 else
13894   echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13896
13897 fi
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
13901
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'
13912         fi
13913       fi
13914       ;;
13915
13916     amigaos*)
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
13921       ld_shlibs_F77=no
13922       ;;
13923
13924     bsdi[45]*)
13925       export_dynamic_flag_spec_F77=-rdynamic
13926       ;;
13927
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.
13936       libext=lib
13937       # Tell ltmain to make .dll files, not .so files.
13938       shrext_cmds=".dll"
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
13947       ;;
13948
13949     darwin* | rhapsody*)
13950       case $host_os in
13951         rhapsody* | darwin1.[012])
13952          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13953          ;;
13954        *) # Darwin 1.3 on
13955          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13956            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13957          else
13958            case ${MACOSX_DEPLOYMENT_TARGET} in
13959              10.[012])
13960                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13961                ;;
13962              10.*)
13963                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13964                ;;
13965            esac
13966          fi
13967          ;;
13968       esac
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}'
13982     else
13983       case $cc_basename in
13984         xlc*)
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}'
13991           ;;
13992        *)
13993          ld_shlibs_F77=no
13994           ;;
13995       esac
13996     fi
13997       ;;
13998
13999     dgux*)
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
14003       ;;
14004
14005     freebsd1*)
14006       ld_shlibs_F77=no
14007       ;;
14008
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
14012     # extra space).
14013     freebsd2.2*)
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
14018       ;;
14019
14020     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14021     freebsd2*)
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
14026       ;;
14027
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
14034       ;;
14035
14036     hpux9*)
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'
14039       else
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'
14041       fi
14042       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14043       hardcode_libdir_separator_F77=:
14044       hardcode_direct_F77=yes
14045
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'
14050       ;;
14051
14052     hpux10*)
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'
14055       else
14056         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14057       fi
14058       if test "$with_gnu_ld" = no; then
14059         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14060         hardcode_libdir_separator_F77=:
14061
14062         hardcode_direct_F77=yes
14063         export_dynamic_flag_spec_F77='${wl}-E'
14064
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
14068       fi
14069       ;;
14070
14071     hpux11*)
14072       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14073         case $host_cpu in
14074         hppa*64*)
14075           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14076           ;;
14077         ia64*)
14078           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14079           ;;
14080         *)
14081           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14082           ;;
14083         esac
14084       else
14085         case $host_cpu in
14086         hppa*64*)
14087           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14088           ;;
14089         ia64*)
14090           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14091           ;;
14092         *)
14093           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14094           ;;
14095         esac
14096       fi
14097       if test "$with_gnu_ld" = no; then
14098         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14099         hardcode_libdir_separator_F77=:
14100
14101         case $host_cpu in
14102         hppa*64*|ia64*)
14103           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14104           hardcode_direct_F77=no
14105           hardcode_shlibpath_var_F77=no
14106           ;;
14107         *)
14108           hardcode_direct_F77=yes
14109           export_dynamic_flag_spec_F77='${wl}-E'
14110
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
14114           ;;
14115         esac
14116       fi
14117       ;;
14118
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'
14122       else
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'
14125       fi
14126       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14127       hardcode_libdir_separator_F77=:
14128       link_all_deplibs_F77=yes
14129       ;;
14130
14131     netbsd*)
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
14134       else
14135         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14136       fi
14137       hardcode_libdir_flag_spec_F77='-R$libdir'
14138       hardcode_direct_F77=yes
14139       hardcode_shlibpath_var_F77=no
14140       ;;
14141
14142     newsos6)
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
14148       ;;
14149
14150     openbsd*)
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'
14158       else
14159        case $host_os in
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'
14163            ;;
14164          *)
14165            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14166            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14167            ;;
14168        esac
14169       fi
14170       ;;
14171
14172     os2*)
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'
14178       ;;
14179
14180     osf3*)
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'
14184       else
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'
14187       fi
14188       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14189       hardcode_libdir_separator_F77=:
14190       ;;
14191
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'
14197       else
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'
14202
14203         # Both c and cxx compiler support -rpath directly
14204         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14205       fi
14206       hardcode_libdir_separator_F77=:
14207       ;;
14208
14209     solaris*)
14210       no_undefined_flag_F77=' -z text'
14211       if test "$GCC" = yes; then
14212         wlarc='${wl}'
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'
14216       else
14217         wlarc=''
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'
14221       fi
14222       hardcode_libdir_flag_spec_F77='-R$libdir'
14223       hardcode_shlibpath_var_F77=no
14224       case $host_os in
14225       solaris2.[0-5] | solaris2.[0-5].*) ;;
14226       *)
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?)
14232         case $wlarc in
14233         '')
14234           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14235         *)
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' ;;
14237         esac ;;
14238       esac
14239       link_all_deplibs_F77=yes
14240       ;;
14241
14242     sunos4*)
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'
14247       else
14248         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14249       fi
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
14254       ;;
14255
14256     sysv4)
14257       case $host_vendor in
14258         sni)
14259           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14260           hardcode_direct_F77=yes # is this really true???
14261         ;;
14262         siemens)
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
14268         ;;
14269         motorola)
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
14272         ;;
14273       esac
14274       runpath_var='LD_RUN_PATH'
14275       hardcode_shlibpath_var_F77=no
14276       ;;
14277
14278     sysv4.3*)
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'
14282       ;;
14283
14284     sysv4*MP*)
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
14290         ld_shlibs_F77=yes
14291       fi
14292       ;;
14293
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'
14299
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'
14303       else
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'
14306       fi
14307       ;;
14308
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
14315       # as -z defs.
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'
14325
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'
14329       else
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'
14332       fi
14333       ;;
14334
14335     uts4*)
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
14339       ;;
14340
14341     *)
14342       ld_shlibs_F77=no
14343       ;;
14344     esac
14345   fi
14346
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
14350
14351 #
14352 # Do we need to explicitly link libc?
14353 #
14354 case "x$archive_cmds_need_lc_F77" in
14355 x|xyes)
14356   # Assume -lc should be added
14357   archive_cmds_need_lc_F77=yes
14358
14359   if test "$enable_shared" = yes && test "$GCC" = yes; then
14360     case $archive_cmds_F77 in
14361     *'~'*)
14362       # FIXME: we may have to deal with multi-command sequences.
14363       ;;
14364     '$CC '*)
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
14370       $rm conftest*
14371       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14372
14373       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14374   (eval $ac_compile) 2>&5
14375   ac_status=$?
14376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377   (exit $ac_status); } 2>conftest.err; then
14378         soname=conftest
14379         lib=conftest
14380         libobjs=conftest.$ac_objext
14381         deplibs=
14382         wl=$lt_prog_compiler_wl_F77
14383         pic_flag=$lt_prog_compiler_pic_F77
14384         compiler_flags=-v
14385         linker_flags=-v
14386         verstring=
14387         output_objdir=.
14388         libname=conftest
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
14393   ac_status=$?
14394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395   (exit $ac_status); }
14396         then
14397           archive_cmds_need_lc_F77=no
14398         else
14399           archive_cmds_need_lc_F77=yes
14400         fi
14401         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14402       else
14403         cat conftest.err 1>&5
14404       fi
14405       $rm conftest*
14406       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14407 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14408       ;;
14409     esac
14410   fi
14411   ;;
14412 esac
14413
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'
14418 soname_spec=
14419 shrext_cmds=".so"
14420 postinstall_cmds=
14421 postuninstall_cmds=
14422 finish_cmds=
14423 finish_eval=
14424 shlibpath_var=
14425 shlibpath_overrides_runpath=unknown
14426 version_type=none
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'`
14437   else
14438     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14439   fi
14440 else
14441   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14442 fi
14443 need_lib_prefix=unknown
14444 hardcode_into_libs=no
14445
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
14449
14450 case $host_os in
14451 aix3*)
14452   version_type=linux
14453   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14454   shlibpath_var=LIBPATH
14455
14456   # AIX 3 has no versioning support, so we append a major version to the name.
14457   soname_spec='${libname}${release}${shared_ext}$major'
14458   ;;
14459
14460 aix4* | aix5*)
14461   version_type=linux
14462   need_lib_prefix=no
14463   need_version=no
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
14469   else
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.
14475     case $host_os in
14476       aix4 | aix4.[01] | aix4.[01].*)
14477       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14478            echo ' yes '
14479            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14480         :
14481       else
14482         can_build_shared=no
14483       fi
14484       ;;
14485     esac
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}'
14494     else
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'
14499     fi
14500     shlibpath_var=LIBPATH
14501   fi
14502   ;;
14503
14504 amigaos*)
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'
14508   ;;
14509
14510 beos*)
14511   library_names_spec='${libname}${shared_ext}'
14512   dynamic_linker="$host_os ld.so"
14513   shlibpath_var=LIBRARY_PATH
14514   ;;
14515
14516 bsdi[45]*)
14517   version_type=linux
14518   need_version=no
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
14528   ;;
14529
14530 cygwin* | mingw* | pw32*)
14531   version_type=windows
14532   shrext_cmds=".dll"
14533   need_version=no
14534   need_lib_prefix=no
14535
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~
14548        $rm \$dlpath'
14549     shlibpath_overrides_runpath=yes
14550
14551     case $host_os in
14552     cygwin*)
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"
14556       ;;
14557     mingw*)
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'`
14569       else
14570         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14571       fi
14572       ;;
14573     pw32*)
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}'
14576       ;;
14577     esac
14578     ;;
14579
14580   *)
14581     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14582     ;;
14583   esac
14584   dynamic_linker='Win32 ld.exe'
14585   # FIXME: first we should search . and the directory the executable is in
14586   shlibpath_var=PATH
14587   ;;
14588
14589 darwin* | rhapsody*)
14590   dynamic_linker="$host_os dyld"
14591   version_type=darwin
14592   need_lib_prefix=no
14593   need_version=no
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"`
14602   else
14603     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14604   fi
14605   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14606   ;;
14607
14608 dgux*)
14609   version_type=linux
14610   need_lib_prefix=no
14611   need_version=no
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
14615   ;;
14616
14617 freebsd1*)
14618   dynamic_linker=no
14619   ;;
14620
14621 kfreebsd*-gnu)
14622   version_type=linux
14623   need_lib_prefix=no
14624   need_version=no
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'
14631   ;;
14632
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`
14638   else
14639     case $host_os in
14640     freebsd[123]*) objformat=aout ;;
14641     *) objformat=elf ;;
14642     esac
14643   fi
14644   version_type=freebsd-$objformat
14645   case $version_type in
14646     freebsd-elf*)
14647       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14648       need_version=no
14649       need_lib_prefix=no
14650       ;;
14651     freebsd-*)
14652       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14653       need_version=yes
14654       ;;
14655   esac
14656   shlibpath_var=LD_LIBRARY_PATH
14657   case $host_os in
14658   freebsd2*)
14659     shlibpath_overrides_runpath=yes
14660     ;;
14661   freebsd3.[01]* | freebsdelf3.[01]*)
14662     shlibpath_overrides_runpath=yes
14663     hardcode_into_libs=yes
14664     ;;
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
14669     ;;
14670   freebsd*) # from 4.6 on
14671     shlibpath_overrides_runpath=yes
14672     hardcode_into_libs=yes
14673     ;;
14674   esac
14675   ;;
14676
14677 gnu*)
14678   version_type=linux
14679   need_lib_prefix=no
14680   need_version=no
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
14685   ;;
14686
14687 hpux9* | hpux10* | hpux11*)
14688   # Give a soname corresponding to the major version so that dld.sl refuses to
14689   # link against other versions.
14690   version_type=sunos
14691   need_lib_prefix=no
14692   need_version=no
14693   case $host_cpu in
14694   ia64*)
14695     shrext_cmds='.so'
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"
14704     else
14705       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14706     fi
14707     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14708     ;;
14709    hppa*64*)
14710      shrext_cmds='.sl'
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
14719      ;;
14720    *)
14721     shrext_cmds='.sl'
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'
14727     ;;
14728   esac
14729   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14730   postinstall_cmds='chmod 555 $lib'
14731   ;;
14732
14733 interix3*)
14734   version_type=linux
14735   need_lib_prefix=no
14736   need_version=no
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
14743   ;;
14744
14745 irix5* | irix6* | nonstopux*)
14746   case $host_os in
14747     nonstopux*) version_type=nonstopux ;;
14748     *)
14749         if test "$lt_cv_prog_gnu_ld" = yes; then
14750                 version_type=linux
14751         else
14752                 version_type=irix
14753         fi ;;
14754   esac
14755   need_lib_prefix=no
14756   need_version=no
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}'
14759   case $host_os in
14760   irix5* | nonstopux*)
14761     libsuff= shlibsuff=
14762     ;;
14763   *)
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;;
14772     esac
14773     ;;
14774   esac
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
14780   ;;
14781
14782 # No shared lib support for Linux oldld, aout, or coff.
14783 linux*oldld* | linux*aout* | linux*coff*)
14784   dynamic_linker=no
14785   ;;
14786
14787 # This must be Linux ELF.
14788 linux*)
14789   version_type=linux
14790   need_lib_prefix=no
14791   need_version=no
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
14801
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"
14806   fi
14807
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'
14815   ;;
14816
14817 knetbsd*-gnu)
14818   version_type=linux
14819   need_lib_prefix=no
14820   need_version=no
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'
14827   ;;
14828
14829 netbsd*)
14830   version_type=sunos
14831   need_lib_prefix=no
14832   need_version=no
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'
14837   else
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'
14841   fi
14842   shlibpath_var=LD_LIBRARY_PATH
14843   shlibpath_overrides_runpath=yes
14844   hardcode_into_libs=yes
14845   ;;
14846
14847 newsos6)
14848   version_type=linux
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
14852   ;;
14853
14854 nto-qnx*)
14855   version_type=linux
14856   need_lib_prefix=no
14857   need_version=no
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
14862   ;;
14863
14864 openbsd*)
14865   version_type=sunos
14866   sys_lib_dlsearch_path_spec="/usr/lib"
14867   need_lib_prefix=no
14868   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14869   case $host_os in
14870     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14871     *)                         need_version=no  ;;
14872   esac
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
14877     case $host_os in
14878       openbsd2.[89] | openbsd2.[89].*)
14879         shlibpath_overrides_runpath=no
14880         ;;
14881       *)
14882         shlibpath_overrides_runpath=yes
14883         ;;
14884       esac
14885   else
14886     shlibpath_overrides_runpath=yes
14887   fi
14888   ;;
14889
14890 os2*)
14891   libname_spec='$name'
14892   shrext_cmds=".dll"
14893   need_lib_prefix=no
14894   library_names_spec='$libname${shared_ext} $libname.a'
14895   dynamic_linker='OS/2 ld.exe'
14896   shlibpath_var=LIBPATH
14897   ;;
14898
14899 osf3* | osf4* | osf5*)
14900   version_type=osf
14901   need_lib_prefix=no
14902   need_version=no
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"
14908   ;;
14909
14910 solaris*)
14911   version_type=linux
14912   need_lib_prefix=no
14913   need_version=no
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'
14921   ;;
14922
14923 sunos4*)
14924   version_type=sunos
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
14930     need_lib_prefix=no
14931   fi
14932   need_version=yes
14933   ;;
14934
14935 sysv4 | sysv4.3*)
14936   version_type=linux
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
14941     sni)
14942       shlibpath_overrides_runpath=no
14943       need_lib_prefix=no
14944       export_dynamic_flag_spec='${wl}-Blargedynsym'
14945       runpath_var=LD_RUN_PATH
14946       ;;
14947     siemens)
14948       need_lib_prefix=no
14949       ;;
14950     motorola)
14951       need_lib_prefix=no
14952       need_version=no
14953       shlibpath_overrides_runpath=no
14954       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14955       ;;
14956   esac
14957   ;;
14958
14959 sysv4*MP*)
14960   if test -d /usr/nec ;then
14961     version_type=linux
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
14965   fi
14966   ;;
14967
14968 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14969   version_type=freebsd-elf
14970   need_lib_prefix=no
14971   need_version=no
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
14979   else
14980     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14981     shlibpath_overrides_runpath=yes
14982     case $host_os in
14983       sco3.2v5*)
14984         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14985         ;;
14986     esac
14987   fi
14988   sys_lib_dlsearch_path_spec='/usr/lib'
14989   ;;
14990
14991 uts4*)
14992   version_type=linux
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
14996   ;;
14997
14998 *)
14999   dynamic_linker=no
15000   ;;
15001 esac
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
15005
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"
15009 fi
15010
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
15017
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
15027   else
15028     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15029     hardcode_action_F77=immediate
15030   fi
15031 else
15032   # We cannot hardcode anything, or else we can only hardcode existing
15033   # directories.
15034   hardcode_action_F77=unsupported
15035 fi
15036 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15037 echo "${ECHO_T}$hardcode_action_F77" >&6
15038
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
15046 fi
15047
15048
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
15058   fi
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 \
15063     SED SHELL STRIP \
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 \
15071     compiler_F77 \
15072     CC_F77 \
15073     LD_F77 \
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 \
15086     predeps_F77 \
15087     postdeps_F77 \
15088     compiler_lib_search_path_F77 \
15089     archive_cmds_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 \
15101     module_cmds_F77 \
15102     module_expsym_cmds_F77 \
15103     lt_cv_prog_compiler_c_o_F77 \
15104     exclude_expsyms_F77 \
15105     include_expsyms_F77; do
15106
15107     case $var in
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\"\`\\\""
15122       ;;
15123     *)
15124       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15125       ;;
15126     esac
15127   done
15128
15129   case $lt_echo in
15130   *'\$0 --fallback-echo"')
15131     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15132     ;;
15133   esac
15134
15135 cfgfile="$ofile"
15136
15137   cat <<__EOF__ >> "$cfgfile"
15138 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15139
15140 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15141
15142 # Shell to use when invoking shell scripts.
15143 SHELL=$lt_SHELL
15144
15145 # Whether or not to build shared libraries.
15146 build_libtool_libs=$enable_shared
15147
15148 # Whether or not to build static libraries.
15149 build_old_libs=$enable_static
15150
15151 # Whether or not to add -lc for building shared libraries.
15152 build_libtool_need_lc=$archive_cmds_need_lc_F77
15153
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
15156
15157 # Whether or not to optimize for fast installation.
15158 fast_install=$enable_fast_install
15159
15160 # The host system.
15161 host_alias=$host_alias
15162 host=$host
15163 host_os=$host_os
15164
15165 # The build system.
15166 build_alias=$build_alias
15167 build=$build
15168 build_os=$build_os
15169
15170 # An echo program that does not interpret backslashes.
15171 echo=$lt_echo
15172
15173 # The archiver.
15174 AR=$lt_AR
15175 AR_FLAGS=$lt_AR_FLAGS
15176
15177 # A C compiler.
15178 LTCC=$lt_LTCC
15179
15180 # LTCC compiler flags.
15181 LTCFLAGS=$lt_LTCFLAGS
15182
15183 # A language-specific compiler.
15184 CC=$lt_compiler_F77
15185
15186 # Is the compiler the GNU C compiler?
15187 with_gcc=$GCC_F77
15188
15189 # An ERE matcher.
15190 EGREP=$lt_EGREP
15191
15192 # The linker used to build libraries.
15193 LD=$lt_LD_F77
15194
15195 # Whether we need hard or soft links.
15196 LN_S=$lt_LN_S
15197
15198 # A BSD-compatible nm program.
15199 NM=$lt_NM
15200
15201 # A symbol stripping program
15202 STRIP=$lt_STRIP
15203
15204 # Used to examine libraries when file_magic_cmd begins "file"
15205 MAGIC_CMD=$MAGIC_CMD
15206
15207 # Used on cygwin: DLL creation program.
15208 DLLTOOL="$DLLTOOL"
15209
15210 # Used on cygwin: object dumper.
15211 OBJDUMP="$OBJDUMP"
15212
15213 # Used on cygwin: assembler.
15214 AS="$AS"
15215
15216 # The name of the directory that contains temporary libtool files.
15217 objdir=$objdir
15218
15219 # How to create reloadable object files.
15220 reload_flag=$lt_reload_flag
15221 reload_cmds=$lt_reload_cmds
15222
15223 # How to pass a linker flag through the compiler.
15224 wl=$lt_lt_prog_compiler_wl_F77
15225
15226 # Object file suffix (normally "o").
15227 objext="$ac_objext"
15228
15229 # Old archive suffix (normally "a").
15230 libext="$libext"
15231
15232 # Shared library suffix (normally ".so").
15233 shrext_cmds='$shrext_cmds'
15234
15235 # Executable file suffix (normally "").
15236 exeext="$exeext"
15237
15238 # Additional compiler flags for building library objects.
15239 pic_flag=$lt_lt_prog_compiler_pic_F77
15240 pic_mode=$pic_mode
15241
15242 # What is the maximum length of a command?
15243 max_cmd_len=$lt_cv_sys_max_cmd_len
15244
15245 # Does compiler simultaneously support -c and -o options?
15246 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15247
15248 # Must we lock files when doing compilation?
15249 need_locks=$lt_need_locks
15250
15251 # Do we need the lib prefix for modules?
15252 need_lib_prefix=$need_lib_prefix
15253
15254 # Do we need a version for libraries?
15255 need_version=$need_version
15256
15257 # Whether dlopen is supported.
15258 dlopen_support=$enable_dlopen
15259
15260 # Whether dlopen of programs is supported.
15261 dlopen_self=$enable_dlopen_self
15262
15263 # Whether dlopen of statically linked programs is supported.
15264 dlopen_self_static=$enable_dlopen_self_static
15265
15266 # Compiler flag to prevent dynamic linking.
15267 link_static_flag=$lt_lt_prog_compiler_static_F77
15268
15269 # Compiler flag to turn off builtin functions.
15270 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15271
15272 # Compiler flag to allow reflexive dlopens.
15273 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15274
15275 # Compiler flag to generate shared objects directly from archives.
15276 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15277
15278 # Compiler flag to generate thread-safe objects.
15279 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15280
15281 # Library versioning type.
15282 version_type=$version_type
15283
15284 # Format of library name prefix.
15285 libname_spec=$lt_libname_spec
15286
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
15290
15291 # The coded name of the library, if different from the real name.
15292 soname_spec=$lt_soname_spec
15293
15294 # Commands used to build and install an old-style archive.
15295 RANLIB=$lt_RANLIB
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
15299
15300 # Create an old-style archive from a shared archive.
15301 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15302
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
15305
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
15311
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
15315
15316 # Commands to strip libraries.
15317 old_striplib=$lt_old_striplib
15318 striplib=$lt_striplib
15319
15320 # Dependencies to place before the objects being linked to create a
15321 # shared library.
15322 predep_objects=$lt_predep_objects_F77
15323
15324 # Dependencies to place after the objects being linked to create a
15325 # shared library.
15326 postdep_objects=$lt_postdep_objects_F77
15327
15328 # Dependencies to place before the objects being linked to create a
15329 # shared library.
15330 predeps=$lt_predeps_F77
15331
15332 # Dependencies to place after the objects being linked to create a
15333 # shared library.
15334 postdeps=$lt_postdeps_F77
15335
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
15339
15340 # Method to check whether dependent libraries are shared objects.
15341 deplibs_check_method=$lt_deplibs_check_method
15342
15343 # Command to use when deplibs_check_method == file_magic.
15344 file_magic_cmd=$lt_file_magic_cmd
15345
15346 # Flag that allows shared libraries with undefined symbols to be built.
15347 allow_undefined_flag=$lt_allow_undefined_flag_F77
15348
15349 # Flag that forces no undefined symbols.
15350 no_undefined_flag=$lt_no_undefined_flag_F77
15351
15352 # Commands used to finish a libtool library installation in a directory.
15353 finish_cmds=$lt_finish_cmds
15354
15355 # Same as above, but a single script fragment to be evaled but not shown.
15356 finish_eval=$lt_finish_eval
15357
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
15360
15361 # Transform the output of nm in a proper C declaration
15362 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15363
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
15366
15367 # This is the shared library runtime path variable.
15368 runpath_var=$runpath_var
15369
15370 # This is the shared library path variable.
15371 shlibpath_var=$shlibpath_var
15372
15373 # Is shlibpath searched before the hard-coded library search path?
15374 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15375
15376 # How to hardcode a shared library path into an executable.
15377 hardcode_action=$hardcode_action_F77
15378
15379 # Whether we should hardcode library paths into libraries.
15380 hardcode_into_libs=$hardcode_into_libs
15381
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
15385
15386 # If ld is used when linking, flag to hardcode \$libdir into
15387 # a binary during linking. This must work even if \$libdir does
15388 # not exist.
15389 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15390
15391 # Whether we need a single -rpath flag with a separated argument.
15392 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15393
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
15397
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
15401
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
15405
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
15409
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"
15413
15414 # Whether libtool must link a program against all its dependency libraries.
15415 link_all_deplibs=$link_all_deplibs_F77
15416
15417 # Compile-time system search path for libraries
15418 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15419
15420 # Run-time system search path for libraries
15421 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15422
15423 # Fix the shell variable \$srcfile for the compiler.
15424 fix_srcfile_path="$fix_srcfile_path_F77"
15425
15426 # Set to yes if exported symbols are required.
15427 always_export_symbols=$always_export_symbols_F77
15428
15429 # The commands to list exported symbols.
15430 export_symbols_cmds=$lt_export_symbols_cmds_F77
15431
15432 # The commands to extract the exported symbol list from a shared archive.
15433 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15434
15435 # Symbols that should not be listed in the preloaded symbols.
15436 exclude_expsyms=$lt_exclude_expsyms_F77
15437
15438 # Symbols that must always be exported.
15439 include_expsyms=$lt_include_expsyms_F77
15440
15441 # ### END LIBTOOL TAG CONFIG: $tagname
15442
15443 __EOF__
15444
15445
15446 else
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"
15453   fi
15454 fi
15455
15456
15457 ac_ext=c
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
15462
15463 CC="$lt_save_CC"
15464
15465         else
15466           tagname=""
15467         fi
15468         ;;
15469
15470       GCJ)
15471         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15472
15473
15474
15475 # Source file extension for Java test sources.
15476 ac_ext=java
15477
15478 # Object file extension for compiled Java test sources.
15479 objext=o
15480 objext_GCJ=$objext
15481
15482 # Code to be used in simple compile tests
15483 lt_simple_compile_test_code="class foo {}\n"
15484
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'
15487
15488 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15489
15490 # If no C compiler was specified, use CC.
15491 LTCC=${LTCC-"$CC"}
15492
15493 # If no C compiler flags were specified, use CFLAGS.
15494 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15495
15496 # Allow CC to be a program name with arguments.
15497 compiler=$CC
15498
15499
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`
15505 $rm conftest*
15506
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`
15511 $rm conftest*
15512
15513
15514 # Allow CC to be a program name with arguments.
15515 lt_save_CC="$CC"
15516 CC=${GCJ-"gcj"}
15517 compiler=$CC
15518 compiler_GCJ=$CC
15519 for cc_temp in $compiler""; do
15520   case $cc_temp in
15521     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15522     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15523     \-*) ;;
15524     *) break;;
15525   esac
15526 done
15527 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15528
15529
15530 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15531 archive_cmds_need_lc_GCJ=no
15532
15533 old_archive_cmds_GCJ=$old_archive_cmds
15534
15535 ## CAVEAT EMPTOR:
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...
15539
15540 lt_prog_compiler_no_builtin_flag_GCJ=
15541
15542 if test "$GCC" = yes; then
15543   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15544
15545
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
15550 else
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)
15566    ac_status=$?
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
15576      fi
15577    fi
15578    $rm conftest*
15579
15580 fi
15581 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15582 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15583
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"
15586 else
15587     :
15588 fi
15589
15590 fi
15591
15592 lt_prog_compiler_wl_GCJ=
15593 lt_prog_compiler_pic_GCJ=
15594 lt_prog_compiler_static_GCJ=
15595
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
15598
15599   if test "$GCC" = yes; then
15600     lt_prog_compiler_wl_GCJ='-Wl,'
15601     lt_prog_compiler_static_GCJ='-static'
15602
15603     case $host_os in
15604       aix*)
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'
15609       fi
15610       ;;
15611
15612     amigaos*)
15613       # FIXME: we need at least 68020 code to build shared libraries, but
15614       # adding the `-m68020' flag to GCC prevents building anything better,
15615       # like `-m68040'.
15616       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15617       ;;
15618
15619     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15620       # PIC is the default for these OSes.
15621       ;;
15622
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'
15627       ;;
15628
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'
15633       ;;
15634
15635     interix3*)
15636       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15637       # Instead, we relocate shared libraries at runtime.
15638       ;;
15639
15640     msdosdjgpp*)
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
15644       enable_shared=no
15645       ;;
15646
15647     sysv4*MP*)
15648       if test -d /usr/nec; then
15649         lt_prog_compiler_pic_GCJ=-Kconform_pic
15650       fi
15651       ;;
15652
15653     hpux*)
15654       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15655       # not for PA HP-UX.
15656       case $host_cpu in
15657       hppa*64*|ia64*)
15658         # +Z the default
15659         ;;
15660       *)
15661         lt_prog_compiler_pic_GCJ='-fPIC'
15662         ;;
15663       esac
15664       ;;
15665
15666     *)
15667       lt_prog_compiler_pic_GCJ='-fPIC'
15668       ;;
15669     esac
15670   else
15671     # PORTME Check for flag to pass linker flags through the system compiler.
15672     case $host_os in
15673     aix*)
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'
15678       else
15679         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15680       fi
15681       ;;
15682       darwin*)
15683         # PIC is the default on this platform
15684         # Common symbols not allowed in MH_DYLIB files
15685        case $cc_basename in
15686          xlc*)
15687          lt_prog_compiler_pic_GCJ='-qnocommon'
15688          lt_prog_compiler_wl_GCJ='-Wl,'
15689          ;;
15690        esac
15691        ;;
15692
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'
15697       ;;
15698
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.
15703       case $host_cpu in
15704       hppa*64*|ia64*)
15705         # +Z the default
15706         ;;
15707       *)
15708         lt_prog_compiler_pic_GCJ='+Z'
15709         ;;
15710       esac
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'
15713       ;;
15714
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'
15719       ;;
15720
15721     newsos6)
15722       lt_prog_compiler_pic_GCJ='-KPIC'
15723       lt_prog_compiler_static_GCJ='-Bstatic'
15724       ;;
15725
15726     linux*)
15727       case $cc_basename in
15728       icc* | ecc*)
15729         lt_prog_compiler_wl_GCJ='-Wl,'
15730         lt_prog_compiler_pic_GCJ='-KPIC'
15731         lt_prog_compiler_static_GCJ='-static'
15732         ;;
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'
15739         ;;
15740       ccc*)
15741         lt_prog_compiler_wl_GCJ='-Wl,'
15742         # All Alpha code is PIC.
15743         lt_prog_compiler_static_GCJ='-non_shared'
15744         ;;
15745       esac
15746       ;;
15747
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'
15752       ;;
15753
15754     solaris*)
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 ';;
15760       *)
15761         lt_prog_compiler_wl_GCJ='-Wl,';;
15762       esac
15763       ;;
15764
15765     sunos4*)
15766       lt_prog_compiler_wl_GCJ='-Qoption ld '
15767       lt_prog_compiler_pic_GCJ='-PIC'
15768       lt_prog_compiler_static_GCJ='-Bstatic'
15769       ;;
15770
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'
15775       ;;
15776
15777     sysv4*MP*)
15778       if test -d /usr/nec ;then
15779         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15780         lt_prog_compiler_static_GCJ='-Bstatic'
15781       fi
15782       ;;
15783
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'
15788       ;;
15789
15790     unicos*)
15791       lt_prog_compiler_wl_GCJ='-Wl,'
15792       lt_prog_compiler_can_build_shared_GCJ=no
15793       ;;
15794
15795     uts4*)
15796       lt_prog_compiler_pic_GCJ='-pic'
15797       lt_prog_compiler_static_GCJ='-Bstatic'
15798       ;;
15799
15800     *)
15801       lt_prog_compiler_can_build_shared_GCJ=no
15802       ;;
15803     esac
15804   fi
15805
15806 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15807 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15808
15809 #
15810 # Check to make sure the PIC flag actually works.
15811 #
15812 if test -n "$lt_prog_compiler_pic_GCJ"; then
15813
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
15818 else
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)
15834    ac_status=$?
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
15844      fi
15845    fi
15846    $rm conftest*
15847
15848 fi
15849 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15850 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15851
15852 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15853     case $lt_prog_compiler_pic_GCJ in
15854      "" | " "*) ;;
15855      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15856      esac
15857 else
15858     lt_prog_compiler_pic_GCJ=
15859      lt_prog_compiler_can_build_shared_GCJ=no
15860 fi
15861
15862 fi
15863 case $host_os in
15864   # For platforms which do not support PIC, -DPIC is meaningless:
15865   *djgpp*)
15866     lt_prog_compiler_pic_GCJ=
15867     ;;
15868   *)
15869     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15870     ;;
15871 esac
15872
15873 #
15874 # Check to make sure the static flag actually works.
15875 #
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
15881 else
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
15896        fi
15897      else
15898        lt_prog_compiler_static_works_GCJ=yes
15899      fi
15900    fi
15901    $rm conftest*
15902    LDFLAGS="$save_LDFLAGS"
15903
15904 fi
15905 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15906 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15907
15908 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15909     :
15910 else
15911     lt_prog_compiler_static_GCJ=
15912 fi
15913
15914
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
15919 else
15920   lt_cv_prog_compiler_c_o_GCJ=no
15921    $rm -r conftest 2>/dev/null
15922    mkdir conftest
15923    cd conftest
15924    mkdir out
15925    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15926
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)
15938    ac_status=$?
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
15942    then
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
15949      fi
15950    fi
15951    chmod u+w . 2>&5
15952    $rm conftest*
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
15957    cd ..
15958    rmdir conftest
15959    $rm conftest*
15960
15961 fi
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
15964
15965
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
15971   hard_links=yes
15972   $rm conftest*
15973   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15974   touch conftest.a
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;}
15982     need_locks=warn
15983   fi
15984 else
15985   need_locks=no
15986 fi
15987
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
15990
15991   runpath_var=
15992   allow_undefined_flag_GCJ=
15993   enable_shared_with_static_runtimes_GCJ=no
15994   archive_cmds_GCJ=
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
16009   module_cmds_GCJ=
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
16029   case $cc_temp in
16030     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16031     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16032     \-*) ;;
16033     *) break;;
16034   esac
16035 done
16036 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16037
16038   case $host_os in
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
16044       with_gnu_ld=no
16045     fi
16046     ;;
16047   interix*)
16048     # we just hope/assume this is gcc and not c89 (= MSVC++)
16049     with_gnu_ld=yes
16050     ;;
16051   openbsd*)
16052     with_gnu_ld=no
16053     ;;
16054   esac
16055
16056   ld_shlibs_GCJ=yes
16057   if test "$with_gnu_ld" = yes; then
16058     # If archive_cmds runs LD, not CC, wlarc should be empty
16059     wlarc='${wl}'
16060
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'
16070       else
16071         whole_archive_flag_spec_GCJ=
16072     fi
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 ;;
16080     esac
16081
16082     # See if GNU ld supports shared libraries.
16083     case $host_os in
16084     aix3* | aix4* | aix5*)
16085       # On AIX/PPC, the GNU linker is very broken
16086       if test "$host_cpu" != ia64; then
16087         ld_shlibs_GCJ=no
16088         cat <<EOF 1>&2
16089
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.
16095
16096 EOF
16097       fi
16098       ;;
16099
16100     amigaos*)
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
16104
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
16110       # them.
16111       ld_shlibs_GCJ=no
16112       ;;
16113
16114     beos*)
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'
16120       else
16121         ld_shlibs_GCJ=no
16122       fi
16123       ;;
16124
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'
16133
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;
16140         else
16141           echo EXPORTS > $output_objdir/$soname.def;
16142           cat $export_symbols >> $output_objdir/$soname.def;
16143         fi~
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'
16145       else
16146         ld_shlibs_GCJ=no
16147       fi
16148       ;;
16149
16150     interix3*)
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'
16163       ;;
16164
16165     linux*)
16166       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16167         tmp_addflag=
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'
16172           ;;
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' ;;
16182         esac
16183         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16184
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'
16190         fi
16191       else
16192         ld_shlibs_GCJ=no
16193       fi
16194       ;;
16195
16196     netbsd*)
16197       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16198         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16199         wlarc=
16200       else
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'
16203       fi
16204       ;;
16205
16206     solaris*)
16207       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16208         ld_shlibs_GCJ=no
16209         cat <<EOF 1>&2
16210
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.
16217
16218 EOF
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'
16222       else
16223         ld_shlibs_GCJ=no
16224       fi
16225       ;;
16226
16227     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16228       case `$LD -v 2>&1` in
16229         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16230         ld_shlibs_GCJ=no
16231         cat <<_LT_EOF 1>&2
16232
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.
16239
16240 _LT_EOF
16241         ;;
16242         *)
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'
16247           else
16248             ld_shlibs_GCJ=no
16249           fi
16250         ;;
16251       esac
16252       ;;
16253
16254     sunos4*)
16255       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16256       wlarc=
16257       hardcode_direct_GCJ=yes
16258       hardcode_shlibpath_var_GCJ=no
16259       ;;
16260
16261     *)
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'
16265       else
16266         ld_shlibs_GCJ=no
16267       fi
16268       ;;
16269     esac
16270
16271     if test "$ld_shlibs_GCJ" = no; then
16272       runpath_var=
16273       hardcode_libdir_flag_spec_GCJ=
16274       export_dynamic_flag_spec_GCJ=
16275       whole_archive_flag_spec_GCJ=
16276     fi
16277   else
16278     # PORTME fill in a description of your system's linker (not GNU ld)
16279     case $host_os in
16280     aix3*)
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
16289         # broken collect2.
16290         hardcode_direct_GCJ=unsupported
16291       fi
16292       ;;
16293
16294     aix4* | aix5*)
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'
16300         no_entry_flag=""
16301       else
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'
16306         else
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'
16308         fi
16309         aix_use_runtimelinking=no
16310
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
16318             break
16319           fi
16320           done
16321           ;;
16322         esac
16323
16324         exp_sym_flag='-bexport'
16325         no_entry_flag='-bnoentry'
16326       fi
16327
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.
16333
16334       archive_cmds_GCJ=''
16335       hardcode_direct_GCJ=yes
16336       hardcode_libdir_separator_GCJ=':'
16337       link_all_deplibs_GCJ=yes
16338
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
16346           then
16347           # We have reworked collect2
16348           hardcode_direct_GCJ=yes
16349           else
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=
16358           fi
16359           ;;
16360         esac
16361         shared_flag='-shared'
16362         if test "$aix_use_runtimelinking" = yes; then
16363           shared_flag="$shared_flag "'${wl}-G'
16364         fi
16365       else
16366         # not using gcc
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:
16370           shared_flag='-G'
16371         else
16372           if test "$aix_use_runtimelinking" = yes; then
16373             shared_flag='${wl}-G'
16374           else
16375             shared_flag='${wl}-bM:SRE'
16376           fi
16377         fi
16378       fi
16379
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
16389 /* confdefs.h.  */
16390 _ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h.  */
16394
16395 int
16396 main ()
16397 {
16398
16399   ;
16400   return 0;
16401 }
16402 _ACEOF
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
16406   ac_status=$?
16407   grep -v '^ *+' conftest.er1 >conftest.err
16408   rm -f conftest.er1
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
16416   ac_status=$?
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
16422   ac_status=$?
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); }; }; then
16425
16426 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16427 }'`
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; }
16430 }'`; fi
16431 else
16432   echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16434
16435 fi
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
16439
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"
16442        else
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"
16447         else
16448          # Determine the default libpath from the value encoded in an empty executable.
16449          cat >conftest.$ac_ext <<_ACEOF
16450 /* confdefs.h.  */
16451 _ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h.  */
16455
16456 int
16457 main ()
16458 {
16459
16460   ;
16461   return 0;
16462 }
16463 _ACEOF
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
16467   ac_status=$?
16468   grep -v '^ *+' conftest.er1 >conftest.err
16469   rm -f conftest.er1
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
16477   ac_status=$?
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
16483   ac_status=$?
16484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485   (exit $ac_status); }; }; then
16486
16487 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16488 }'`
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; }
16491 }'`; fi
16492 else
16493   echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16495
16496 fi
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
16500
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'
16511         fi
16512       fi
16513       ;;
16514
16515     amigaos*)
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
16520       ld_shlibs_GCJ=no
16521       ;;
16522
16523     bsdi[45]*)
16524       export_dynamic_flag_spec_GCJ=-rdynamic
16525       ;;
16526
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.
16535       libext=lib
16536       # Tell ltmain to make .dll files, not .so files.
16537       shrext_cmds=".dll"
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
16546       ;;
16547
16548     darwin* | rhapsody*)
16549       case $host_os in
16550         rhapsody* | darwin1.[012])
16551          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16552          ;;
16553        *) # Darwin 1.3 on
16554          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16555            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16556          else
16557            case ${MACOSX_DEPLOYMENT_TARGET} in
16558              10.[012])
16559                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16560                ;;
16561              10.*)
16562                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16563                ;;
16564            esac
16565          fi
16566          ;;
16567       esac
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}'
16581     else
16582       case $cc_basename in
16583         xlc*)
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}'
16590           ;;
16591        *)
16592          ld_shlibs_GCJ=no
16593           ;;
16594       esac
16595     fi
16596       ;;
16597
16598     dgux*)
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
16602       ;;
16603
16604     freebsd1*)
16605       ld_shlibs_GCJ=no
16606       ;;
16607
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
16611     # extra space).
16612     freebsd2.2*)
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
16617       ;;
16618
16619     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16620     freebsd2*)
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
16625       ;;
16626
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
16633       ;;
16634
16635     hpux9*)
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'
16638       else
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'
16640       fi
16641       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16642       hardcode_libdir_separator_GCJ=:
16643       hardcode_direct_GCJ=yes
16644
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'
16649       ;;
16650
16651     hpux10*)
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'
16654       else
16655         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16656       fi
16657       if test "$with_gnu_ld" = no; then
16658         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16659         hardcode_libdir_separator_GCJ=:
16660
16661         hardcode_direct_GCJ=yes
16662         export_dynamic_flag_spec_GCJ='${wl}-E'
16663
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
16667       fi
16668       ;;
16669
16670     hpux11*)
16671       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16672         case $host_cpu in
16673         hppa*64*)
16674           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16675           ;;
16676         ia64*)
16677           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16678           ;;
16679         *)
16680           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16681           ;;
16682         esac
16683       else
16684         case $host_cpu in
16685         hppa*64*)
16686           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16687           ;;
16688         ia64*)
16689           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16690           ;;
16691         *)
16692           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16693           ;;
16694         esac
16695       fi
16696       if test "$with_gnu_ld" = no; then
16697         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16698         hardcode_libdir_separator_GCJ=:
16699
16700         case $host_cpu in
16701         hppa*64*|ia64*)
16702           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16703           hardcode_direct_GCJ=no
16704           hardcode_shlibpath_var_GCJ=no
16705           ;;
16706         *)
16707           hardcode_direct_GCJ=yes
16708           export_dynamic_flag_spec_GCJ='${wl}-E'
16709
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
16713           ;;
16714         esac
16715       fi
16716       ;;
16717
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'
16721       else
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'
16724       fi
16725       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16726       hardcode_libdir_separator_GCJ=:
16727       link_all_deplibs_GCJ=yes
16728       ;;
16729
16730     netbsd*)
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
16733       else
16734         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16735       fi
16736       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16737       hardcode_direct_GCJ=yes
16738       hardcode_shlibpath_var_GCJ=no
16739       ;;
16740
16741     newsos6)
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
16747       ;;
16748
16749     openbsd*)
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'
16757       else
16758        case $host_os in
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'
16762            ;;
16763          *)
16764            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16765            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16766            ;;
16767        esac
16768       fi
16769       ;;
16770
16771     os2*)
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'
16777       ;;
16778
16779     osf3*)
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'
16783       else
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'
16786       fi
16787       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16788       hardcode_libdir_separator_GCJ=:
16789       ;;
16790
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'
16796       else
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'
16801
16802         # Both c and cxx compiler support -rpath directly
16803         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16804       fi
16805       hardcode_libdir_separator_GCJ=:
16806       ;;
16807
16808     solaris*)
16809       no_undefined_flag_GCJ=' -z text'
16810       if test "$GCC" = yes; then
16811         wlarc='${wl}'
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'
16815       else
16816         wlarc=''
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'
16820       fi
16821       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16822       hardcode_shlibpath_var_GCJ=no
16823       case $host_os in
16824       solaris2.[0-5] | solaris2.[0-5].*) ;;
16825       *)
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?)
16831         case $wlarc in
16832         '')
16833           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16834         *)
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' ;;
16836         esac ;;
16837       esac
16838       link_all_deplibs_GCJ=yes
16839       ;;
16840
16841     sunos4*)
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'
16846       else
16847         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16848       fi
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
16853       ;;
16854
16855     sysv4)
16856       case $host_vendor in
16857         sni)
16858           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16859           hardcode_direct_GCJ=yes # is this really true???
16860         ;;
16861         siemens)
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
16867         ;;
16868         motorola)
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
16871         ;;
16872       esac
16873       runpath_var='LD_RUN_PATH'
16874       hardcode_shlibpath_var_GCJ=no
16875       ;;
16876
16877     sysv4.3*)
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'
16881       ;;
16882
16883     sysv4*MP*)
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
16889         ld_shlibs_GCJ=yes
16890       fi
16891       ;;
16892
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'
16898
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'
16902       else
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'
16905       fi
16906       ;;
16907
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
16914       # as -z defs.
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'
16924
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'
16928       else
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'
16931       fi
16932       ;;
16933
16934     uts4*)
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
16938       ;;
16939
16940     *)
16941       ld_shlibs_GCJ=no
16942       ;;
16943     esac
16944   fi
16945
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
16949
16950 #
16951 # Do we need to explicitly link libc?
16952 #
16953 case "x$archive_cmds_need_lc_GCJ" in
16954 x|xyes)
16955   # Assume -lc should be added
16956   archive_cmds_need_lc_GCJ=yes
16957
16958   if test "$enable_shared" = yes && test "$GCC" = yes; then
16959     case $archive_cmds_GCJ in
16960     *'~'*)
16961       # FIXME: we may have to deal with multi-command sequences.
16962       ;;
16963     '$CC '*)
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
16969       $rm conftest*
16970       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16971
16972       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16973   (eval $ac_compile) 2>&5
16974   ac_status=$?
16975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976   (exit $ac_status); } 2>conftest.err; then
16977         soname=conftest
16978         lib=conftest
16979         libobjs=conftest.$ac_objext
16980         deplibs=
16981         wl=$lt_prog_compiler_wl_GCJ
16982         pic_flag=$lt_prog_compiler_pic_GCJ
16983         compiler_flags=-v
16984         linker_flags=-v
16985         verstring=
16986         output_objdir=.
16987         libname=conftest
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
16992   ac_status=$?
16993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994   (exit $ac_status); }
16995         then
16996           archive_cmds_need_lc_GCJ=no
16997         else
16998           archive_cmds_need_lc_GCJ=yes
16999         fi
17000         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17001       else
17002         cat conftest.err 1>&5
17003       fi
17004       $rm conftest*
17005       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17006 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17007       ;;
17008     esac
17009   fi
17010   ;;
17011 esac
17012
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'
17017 soname_spec=
17018 shrext_cmds=".so"
17019 postinstall_cmds=
17020 postuninstall_cmds=
17021 finish_cmds=
17022 finish_eval=
17023 shlibpath_var=
17024 shlibpath_overrides_runpath=unknown
17025 version_type=none
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'`
17036   else
17037     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17038   fi
17039 else
17040   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17041 fi
17042 need_lib_prefix=unknown
17043 hardcode_into_libs=no
17044
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
17048
17049 case $host_os in
17050 aix3*)
17051   version_type=linux
17052   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17053   shlibpath_var=LIBPATH
17054
17055   # AIX 3 has no versioning support, so we append a major version to the name.
17056   soname_spec='${libname}${release}${shared_ext}$major'
17057   ;;
17058
17059 aix4* | aix5*)
17060   version_type=linux
17061   need_lib_prefix=no
17062   need_version=no
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
17068   else
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.
17074     case $host_os in
17075       aix4 | aix4.[01] | aix4.[01].*)
17076       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17077            echo ' yes '
17078            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17079         :
17080       else
17081         can_build_shared=no
17082       fi
17083       ;;
17084     esac
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}'
17093     else
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'
17098     fi
17099     shlibpath_var=LIBPATH
17100   fi
17101   ;;
17102
17103 amigaos*)
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'
17107   ;;
17108
17109 beos*)
17110   library_names_spec='${libname}${shared_ext}'
17111   dynamic_linker="$host_os ld.so"
17112   shlibpath_var=LIBRARY_PATH
17113   ;;
17114
17115 bsdi[45]*)
17116   version_type=linux
17117   need_version=no
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
17127   ;;
17128
17129 cygwin* | mingw* | pw32*)
17130   version_type=windows
17131   shrext_cmds=".dll"
17132   need_version=no
17133   need_lib_prefix=no
17134
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~
17147        $rm \$dlpath'
17148     shlibpath_overrides_runpath=yes
17149
17150     case $host_os in
17151     cygwin*)
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"
17155       ;;
17156     mingw*)
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'`
17168       else
17169         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17170       fi
17171       ;;
17172     pw32*)
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}'
17175       ;;
17176     esac
17177     ;;
17178
17179   *)
17180     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17181     ;;
17182   esac
17183   dynamic_linker='Win32 ld.exe'
17184   # FIXME: first we should search . and the directory the executable is in
17185   shlibpath_var=PATH
17186   ;;
17187
17188 darwin* | rhapsody*)
17189   dynamic_linker="$host_os dyld"
17190   version_type=darwin
17191   need_lib_prefix=no
17192   need_version=no
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"`
17201   else
17202     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17203   fi
17204   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17205   ;;
17206
17207 dgux*)
17208   version_type=linux
17209   need_lib_prefix=no
17210   need_version=no
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
17214   ;;
17215
17216 freebsd1*)
17217   dynamic_linker=no
17218   ;;
17219
17220 kfreebsd*-gnu)
17221   version_type=linux
17222   need_lib_prefix=no
17223   need_version=no
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'
17230   ;;
17231
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`
17237   else
17238     case $host_os in
17239     freebsd[123]*) objformat=aout ;;
17240     *) objformat=elf ;;
17241     esac
17242   fi
17243   version_type=freebsd-$objformat
17244   case $version_type in
17245     freebsd-elf*)
17246       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17247       need_version=no
17248       need_lib_prefix=no
17249       ;;
17250     freebsd-*)
17251       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17252       need_version=yes
17253       ;;
17254   esac
17255   shlibpath_var=LD_LIBRARY_PATH
17256   case $host_os in
17257   freebsd2*)
17258     shlibpath_overrides_runpath=yes
17259     ;;
17260   freebsd3.[01]* | freebsdelf3.[01]*)
17261     shlibpath_overrides_runpath=yes
17262     hardcode_into_libs=yes
17263     ;;
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
17268     ;;
17269   freebsd*) # from 4.6 on
17270     shlibpath_overrides_runpath=yes
17271     hardcode_into_libs=yes
17272     ;;
17273   esac
17274   ;;
17275
17276 gnu*)
17277   version_type=linux
17278   need_lib_prefix=no
17279   need_version=no
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
17284   ;;
17285
17286 hpux9* | hpux10* | hpux11*)
17287   # Give a soname corresponding to the major version so that dld.sl refuses to
17288   # link against other versions.
17289   version_type=sunos
17290   need_lib_prefix=no
17291   need_version=no
17292   case $host_cpu in
17293   ia64*)
17294     shrext_cmds='.so'
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"
17303     else
17304       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17305     fi
17306     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17307     ;;
17308    hppa*64*)
17309      shrext_cmds='.sl'
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
17318      ;;
17319    *)
17320     shrext_cmds='.sl'
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'
17326     ;;
17327   esac
17328   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17329   postinstall_cmds='chmod 555 $lib'
17330   ;;
17331
17332 interix3*)
17333   version_type=linux
17334   need_lib_prefix=no
17335   need_version=no
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
17342   ;;
17343
17344 irix5* | irix6* | nonstopux*)
17345   case $host_os in
17346     nonstopux*) version_type=nonstopux ;;
17347     *)
17348         if test "$lt_cv_prog_gnu_ld" = yes; then
17349                 version_type=linux
17350         else
17351                 version_type=irix
17352         fi ;;
17353   esac
17354   need_lib_prefix=no
17355   need_version=no
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}'
17358   case $host_os in
17359   irix5* | nonstopux*)
17360     libsuff= shlibsuff=
17361     ;;
17362   *)
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;;
17371     esac
17372     ;;
17373   esac
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
17379   ;;
17380
17381 # No shared lib support for Linux oldld, aout, or coff.
17382 linux*oldld* | linux*aout* | linux*coff*)
17383   dynamic_linker=no
17384   ;;
17385
17386 # This must be Linux ELF.
17387 linux*)
17388   version_type=linux
17389   need_lib_prefix=no
17390   need_version=no
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
17400
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"
17405   fi
17406
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'
17414   ;;
17415
17416 knetbsd*-gnu)
17417   version_type=linux
17418   need_lib_prefix=no
17419   need_version=no
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'
17426   ;;
17427
17428 netbsd*)
17429   version_type=sunos
17430   need_lib_prefix=no
17431   need_version=no
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'
17436   else
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'
17440   fi
17441   shlibpath_var=LD_LIBRARY_PATH
17442   shlibpath_overrides_runpath=yes
17443   hardcode_into_libs=yes
17444   ;;
17445
17446 newsos6)
17447   version_type=linux
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
17451   ;;
17452
17453 nto-qnx*)
17454   version_type=linux
17455   need_lib_prefix=no
17456   need_version=no
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
17461   ;;
17462
17463 openbsd*)
17464   version_type=sunos
17465   sys_lib_dlsearch_path_spec="/usr/lib"
17466   need_lib_prefix=no
17467   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17468   case $host_os in
17469     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17470     *)                         need_version=no  ;;
17471   esac
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
17476     case $host_os in
17477       openbsd2.[89] | openbsd2.[89].*)
17478         shlibpath_overrides_runpath=no
17479         ;;
17480       *)
17481         shlibpath_overrides_runpath=yes
17482         ;;
17483       esac
17484   else
17485     shlibpath_overrides_runpath=yes
17486   fi
17487   ;;
17488
17489 os2*)
17490   libname_spec='$name'
17491   shrext_cmds=".dll"
17492   need_lib_prefix=no
17493   library_names_spec='$libname${shared_ext} $libname.a'
17494   dynamic_linker='OS/2 ld.exe'
17495   shlibpath_var=LIBPATH
17496   ;;
17497
17498 osf3* | osf4* | osf5*)
17499   version_type=osf
17500   need_lib_prefix=no
17501   need_version=no
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"
17507   ;;
17508
17509 solaris*)
17510   version_type=linux
17511   need_lib_prefix=no
17512   need_version=no
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'
17520   ;;
17521
17522 sunos4*)
17523   version_type=sunos
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
17529     need_lib_prefix=no
17530   fi
17531   need_version=yes
17532   ;;
17533
17534 sysv4 | sysv4.3*)
17535   version_type=linux
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
17540     sni)
17541       shlibpath_overrides_runpath=no
17542       need_lib_prefix=no
17543       export_dynamic_flag_spec='${wl}-Blargedynsym'
17544       runpath_var=LD_RUN_PATH
17545       ;;
17546     siemens)
17547       need_lib_prefix=no
17548       ;;
17549     motorola)
17550       need_lib_prefix=no
17551       need_version=no
17552       shlibpath_overrides_runpath=no
17553       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17554       ;;
17555   esac
17556   ;;
17557
17558 sysv4*MP*)
17559   if test -d /usr/nec ;then
17560     version_type=linux
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
17564   fi
17565   ;;
17566
17567 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17568   version_type=freebsd-elf
17569   need_lib_prefix=no
17570   need_version=no
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
17578   else
17579     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17580     shlibpath_overrides_runpath=yes
17581     case $host_os in
17582       sco3.2v5*)
17583         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17584         ;;
17585     esac
17586   fi
17587   sys_lib_dlsearch_path_spec='/usr/lib'
17588   ;;
17589
17590 uts4*)
17591   version_type=linux
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
17595   ;;
17596
17597 *)
17598   dynamic_linker=no
17599   ;;
17600 esac
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
17604
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"
17608 fi
17609
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
17616
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
17626   else
17627     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17628     hardcode_action_GCJ=immediate
17629   fi
17630 else
17631   # We cannot hardcode anything, or else we can only hardcode existing
17632   # directories.
17633   hardcode_action_GCJ=unsupported
17634 fi
17635 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17636 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17637
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
17645 fi
17646
17647
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
17657   fi
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 \
17662     SED SHELL STRIP \
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 \
17670     compiler_GCJ \
17671     CC_GCJ \
17672     LD_GCJ \
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 \
17685     predeps_GCJ \
17686     postdeps_GCJ \
17687     compiler_lib_search_path_GCJ \
17688     archive_cmds_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 \
17700     module_cmds_GCJ \
17701     module_expsym_cmds_GCJ \
17702     lt_cv_prog_compiler_c_o_GCJ \
17703     exclude_expsyms_GCJ \
17704     include_expsyms_GCJ; do
17705
17706     case $var in
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\"\`\\\""
17721       ;;
17722     *)
17723       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17724       ;;
17725     esac
17726   done
17727
17728   case $lt_echo in
17729   *'\$0 --fallback-echo"')
17730     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17731     ;;
17732   esac
17733
17734 cfgfile="$ofile"
17735
17736   cat <<__EOF__ >> "$cfgfile"
17737 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17738
17739 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17740
17741 # Shell to use when invoking shell scripts.
17742 SHELL=$lt_SHELL
17743
17744 # Whether or not to build shared libraries.
17745 build_libtool_libs=$enable_shared
17746
17747 # Whether or not to build static libraries.
17748 build_old_libs=$enable_static
17749
17750 # Whether or not to add -lc for building shared libraries.
17751 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17752
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
17755
17756 # Whether or not to optimize for fast installation.
17757 fast_install=$enable_fast_install
17758
17759 # The host system.
17760 host_alias=$host_alias
17761 host=$host
17762 host_os=$host_os
17763
17764 # The build system.
17765 build_alias=$build_alias
17766 build=$build
17767 build_os=$build_os
17768
17769 # An echo program that does not interpret backslashes.
17770 echo=$lt_echo
17771
17772 # The archiver.
17773 AR=$lt_AR
17774 AR_FLAGS=$lt_AR_FLAGS
17775
17776 # A C compiler.
17777 LTCC=$lt_LTCC
17778
17779 # LTCC compiler flags.
17780 LTCFLAGS=$lt_LTCFLAGS
17781
17782 # A language-specific compiler.
17783 CC=$lt_compiler_GCJ
17784
17785 # Is the compiler the GNU C compiler?
17786 with_gcc=$GCC_GCJ
17787
17788 # An ERE matcher.
17789 EGREP=$lt_EGREP
17790
17791 # The linker used to build libraries.
17792 LD=$lt_LD_GCJ
17793
17794 # Whether we need hard or soft links.
17795 LN_S=$lt_LN_S
17796
17797 # A BSD-compatible nm program.
17798 NM=$lt_NM
17799
17800 # A symbol stripping program
17801 STRIP=$lt_STRIP
17802
17803 # Used to examine libraries when file_magic_cmd begins "file"
17804 MAGIC_CMD=$MAGIC_CMD
17805
17806 # Used on cygwin: DLL creation program.
17807 DLLTOOL="$DLLTOOL"
17808
17809 # Used on cygwin: object dumper.
17810 OBJDUMP="$OBJDUMP"
17811
17812 # Used on cygwin: assembler.
17813 AS="$AS"
17814
17815 # The name of the directory that contains temporary libtool files.
17816 objdir=$objdir
17817
17818 # How to create reloadable object files.
17819 reload_flag=$lt_reload_flag
17820 reload_cmds=$lt_reload_cmds
17821
17822 # How to pass a linker flag through the compiler.
17823 wl=$lt_lt_prog_compiler_wl_GCJ
17824
17825 # Object file suffix (normally "o").
17826 objext="$ac_objext"
17827
17828 # Old archive suffix (normally "a").
17829 libext="$libext"
17830
17831 # Shared library suffix (normally ".so").
17832 shrext_cmds='$shrext_cmds'
17833
17834 # Executable file suffix (normally "").
17835 exeext="$exeext"
17836
17837 # Additional compiler flags for building library objects.
17838 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17839 pic_mode=$pic_mode
17840
17841 # What is the maximum length of a command?
17842 max_cmd_len=$lt_cv_sys_max_cmd_len
17843
17844 # Does compiler simultaneously support -c and -o options?
17845 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17846
17847 # Must we lock files when doing compilation?
17848 need_locks=$lt_need_locks
17849
17850 # Do we need the lib prefix for modules?
17851 need_lib_prefix=$need_lib_prefix
17852
17853 # Do we need a version for libraries?
17854 need_version=$need_version
17855
17856 # Whether dlopen is supported.
17857 dlopen_support=$enable_dlopen
17858
17859 # Whether dlopen of programs is supported.
17860 dlopen_self=$enable_dlopen_self
17861
17862 # Whether dlopen of statically linked programs is supported.
17863 dlopen_self_static=$enable_dlopen_self_static
17864
17865 # Compiler flag to prevent dynamic linking.
17866 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17867
17868 # Compiler flag to turn off builtin functions.
17869 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17870
17871 # Compiler flag to allow reflexive dlopens.
17872 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17873
17874 # Compiler flag to generate shared objects directly from archives.
17875 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17876
17877 # Compiler flag to generate thread-safe objects.
17878 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17879
17880 # Library versioning type.
17881 version_type=$version_type
17882
17883 # Format of library name prefix.
17884 libname_spec=$lt_libname_spec
17885
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
17889
17890 # The coded name of the library, if different from the real name.
17891 soname_spec=$lt_soname_spec
17892
17893 # Commands used to build and install an old-style archive.
17894 RANLIB=$lt_RANLIB
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
17898
17899 # Create an old-style archive from a shared archive.
17900 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17901
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
17904
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
17910
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
17914
17915 # Commands to strip libraries.
17916 old_striplib=$lt_old_striplib
17917 striplib=$lt_striplib
17918
17919 # Dependencies to place before the objects being linked to create a
17920 # shared library.
17921 predep_objects=$lt_predep_objects_GCJ
17922
17923 # Dependencies to place after the objects being linked to create a
17924 # shared library.
17925 postdep_objects=$lt_postdep_objects_GCJ
17926
17927 # Dependencies to place before the objects being linked to create a
17928 # shared library.
17929 predeps=$lt_predeps_GCJ
17930
17931 # Dependencies to place after the objects being linked to create a
17932 # shared library.
17933 postdeps=$lt_postdeps_GCJ
17934
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
17938
17939 # Method to check whether dependent libraries are shared objects.
17940 deplibs_check_method=$lt_deplibs_check_method
17941
17942 # Command to use when deplibs_check_method == file_magic.
17943 file_magic_cmd=$lt_file_magic_cmd
17944
17945 # Flag that allows shared libraries with undefined symbols to be built.
17946 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17947
17948 # Flag that forces no undefined symbols.
17949 no_undefined_flag=$lt_no_undefined_flag_GCJ
17950
17951 # Commands used to finish a libtool library installation in a directory.
17952 finish_cmds=$lt_finish_cmds
17953
17954 # Same as above, but a single script fragment to be evaled but not shown.
17955 finish_eval=$lt_finish_eval
17956
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
17959
17960 # Transform the output of nm in a proper C declaration
17961 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17962
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
17965
17966 # This is the shared library runtime path variable.
17967 runpath_var=$runpath_var
17968
17969 # This is the shared library path variable.
17970 shlibpath_var=$shlibpath_var
17971
17972 # Is shlibpath searched before the hard-coded library search path?
17973 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17974
17975 # How to hardcode a shared library path into an executable.
17976 hardcode_action=$hardcode_action_GCJ
17977
17978 # Whether we should hardcode library paths into libraries.
17979 hardcode_into_libs=$hardcode_into_libs
17980
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
17984
17985 # If ld is used when linking, flag to hardcode \$libdir into
17986 # a binary during linking. This must work even if \$libdir does
17987 # not exist.
17988 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17989
17990 # Whether we need a single -rpath flag with a separated argument.
17991 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17992
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
17996
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
18000
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
18004
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
18008
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"
18012
18013 # Whether libtool must link a program against all its dependency libraries.
18014 link_all_deplibs=$link_all_deplibs_GCJ
18015
18016 # Compile-time system search path for libraries
18017 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18018
18019 # Run-time system search path for libraries
18020 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18021
18022 # Fix the shell variable \$srcfile for the compiler.
18023 fix_srcfile_path="$fix_srcfile_path_GCJ"
18024
18025 # Set to yes if exported symbols are required.
18026 always_export_symbols=$always_export_symbols_GCJ
18027
18028 # The commands to list exported symbols.
18029 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18030
18031 # The commands to extract the exported symbol list from a shared archive.
18032 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18033
18034 # Symbols that should not be listed in the preloaded symbols.
18035 exclude_expsyms=$lt_exclude_expsyms_GCJ
18036
18037 # Symbols that must always be exported.
18038 include_expsyms=$lt_include_expsyms_GCJ
18039
18040 # ### END LIBTOOL TAG CONFIG: $tagname
18041
18042 __EOF__
18043
18044
18045 else
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"
18052   fi
18053 fi
18054
18055
18056 ac_ext=c
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
18061
18062 CC="$lt_save_CC"
18063
18064         else
18065           tagname=""
18066         fi
18067         ;;
18068
18069       RC)
18070
18071
18072
18073 # Source file extension for RC test sources.
18074 ac_ext=rc
18075
18076 # Object file extension for compiled RC test sources.
18077 objext=o
18078 objext_RC=$objext
18079
18080 # Code to be used in simple compile tests
18081 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18082
18083 # Code to be used in simple link tests
18084 lt_simple_link_test_code="$lt_simple_compile_test_code"
18085
18086 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18087
18088 # If no C compiler was specified, use CC.
18089 LTCC=${LTCC-"$CC"}
18090
18091 # If no C compiler flags were specified, use CFLAGS.
18092 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18093
18094 # Allow CC to be a program name with arguments.
18095 compiler=$CC
18096
18097
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`
18103 $rm conftest*
18104
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`
18109 $rm conftest*
18110
18111
18112 # Allow CC to be a program name with arguments.
18113 lt_save_CC="$CC"
18114 CC=${RC-"windres"}
18115 compiler=$CC
18116 compiler_RC=$CC
18117 for cc_temp in $compiler""; do
18118   case $cc_temp in
18119     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18120     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18121     \-*) ;;
18122     *) break;;
18123   esac
18124 done
18125 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18126
18127 lt_cv_prog_compiler_c_o_RC=yes
18128
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
18138   fi
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 \
18143     SED SHELL STRIP \
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 \
18151     compiler_RC \
18152     CC_RC \
18153     LD_RC \
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 \
18166     predeps_RC \
18167     postdeps_RC \
18168     compiler_lib_search_path_RC \
18169     archive_cmds_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 \
18181     module_cmds_RC \
18182     module_expsym_cmds_RC \
18183     lt_cv_prog_compiler_c_o_RC \
18184     exclude_expsyms_RC \
18185     include_expsyms_RC; do
18186
18187     case $var in
18188     old_archive_cmds_RC | \
18189     old_archive_from_new_cmds_RC | \
18190     archive_cmds_RC | \
18191     archive_expsym_cmds_RC | \
18192     module_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\"\`\\\""
18202       ;;
18203     *)
18204       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18205       ;;
18206     esac
18207   done
18208
18209   case $lt_echo in
18210   *'\$0 --fallback-echo"')
18211     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18212     ;;
18213   esac
18214
18215 cfgfile="$ofile"
18216
18217   cat <<__EOF__ >> "$cfgfile"
18218 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18219
18220 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18221
18222 # Shell to use when invoking shell scripts.
18223 SHELL=$lt_SHELL
18224
18225 # Whether or not to build shared libraries.
18226 build_libtool_libs=$enable_shared
18227
18228 # Whether or not to build static libraries.
18229 build_old_libs=$enable_static
18230
18231 # Whether or not to add -lc for building shared libraries.
18232 build_libtool_need_lc=$archive_cmds_need_lc_RC
18233
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
18236
18237 # Whether or not to optimize for fast installation.
18238 fast_install=$enable_fast_install
18239
18240 # The host system.
18241 host_alias=$host_alias
18242 host=$host
18243 host_os=$host_os
18244
18245 # The build system.
18246 build_alias=$build_alias
18247 build=$build
18248 build_os=$build_os
18249
18250 # An echo program that does not interpret backslashes.
18251 echo=$lt_echo
18252
18253 # The archiver.
18254 AR=$lt_AR
18255 AR_FLAGS=$lt_AR_FLAGS
18256
18257 # A C compiler.
18258 LTCC=$lt_LTCC
18259
18260 # LTCC compiler flags.
18261 LTCFLAGS=$lt_LTCFLAGS
18262
18263 # A language-specific compiler.
18264 CC=$lt_compiler_RC
18265
18266 # Is the compiler the GNU C compiler?
18267 with_gcc=$GCC_RC
18268
18269 # An ERE matcher.
18270 EGREP=$lt_EGREP
18271
18272 # The linker used to build libraries.
18273 LD=$lt_LD_RC
18274
18275 # Whether we need hard or soft links.
18276 LN_S=$lt_LN_S
18277
18278 # A BSD-compatible nm program.
18279 NM=$lt_NM
18280
18281 # A symbol stripping program
18282 STRIP=$lt_STRIP
18283
18284 # Used to examine libraries when file_magic_cmd begins "file"
18285 MAGIC_CMD=$MAGIC_CMD
18286
18287 # Used on cygwin: DLL creation program.
18288 DLLTOOL="$DLLTOOL"
18289
18290 # Used on cygwin: object dumper.
18291 OBJDUMP="$OBJDUMP"
18292
18293 # Used on cygwin: assembler.
18294 AS="$AS"
18295
18296 # The name of the directory that contains temporary libtool files.
18297 objdir=$objdir
18298
18299 # How to create reloadable object files.
18300 reload_flag=$lt_reload_flag
18301 reload_cmds=$lt_reload_cmds
18302
18303 # How to pass a linker flag through the compiler.
18304 wl=$lt_lt_prog_compiler_wl_RC
18305
18306 # Object file suffix (normally "o").
18307 objext="$ac_objext"
18308
18309 # Old archive suffix (normally "a").
18310 libext="$libext"
18311
18312 # Shared library suffix (normally ".so").
18313 shrext_cmds='$shrext_cmds'
18314
18315 # Executable file suffix (normally "").
18316 exeext="$exeext"
18317
18318 # Additional compiler flags for building library objects.
18319 pic_flag=$lt_lt_prog_compiler_pic_RC
18320 pic_mode=$pic_mode
18321
18322 # What is the maximum length of a command?
18323 max_cmd_len=$lt_cv_sys_max_cmd_len
18324
18325 # Does compiler simultaneously support -c and -o options?
18326 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18327
18328 # Must we lock files when doing compilation?
18329 need_locks=$lt_need_locks
18330
18331 # Do we need the lib prefix for modules?
18332 need_lib_prefix=$need_lib_prefix
18333
18334 # Do we need a version for libraries?
18335 need_version=$need_version
18336
18337 # Whether dlopen is supported.
18338 dlopen_support=$enable_dlopen
18339
18340 # Whether dlopen of programs is supported.
18341 dlopen_self=$enable_dlopen_self
18342
18343 # Whether dlopen of statically linked programs is supported.
18344 dlopen_self_static=$enable_dlopen_self_static
18345
18346 # Compiler flag to prevent dynamic linking.
18347 link_static_flag=$lt_lt_prog_compiler_static_RC
18348
18349 # Compiler flag to turn off builtin functions.
18350 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18351
18352 # Compiler flag to allow reflexive dlopens.
18353 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18354
18355 # Compiler flag to generate shared objects directly from archives.
18356 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18357
18358 # Compiler flag to generate thread-safe objects.
18359 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18360
18361 # Library versioning type.
18362 version_type=$version_type
18363
18364 # Format of library name prefix.
18365 libname_spec=$lt_libname_spec
18366
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
18370
18371 # The coded name of the library, if different from the real name.
18372 soname_spec=$lt_soname_spec
18373
18374 # Commands used to build and install an old-style archive.
18375 RANLIB=$lt_RANLIB
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
18379
18380 # Create an old-style archive from a shared archive.
18381 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18382
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
18385
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
18391
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
18395
18396 # Commands to strip libraries.
18397 old_striplib=$lt_old_striplib
18398 striplib=$lt_striplib
18399
18400 # Dependencies to place before the objects being linked to create a
18401 # shared library.
18402 predep_objects=$lt_predep_objects_RC
18403
18404 # Dependencies to place after the objects being linked to create a
18405 # shared library.
18406 postdep_objects=$lt_postdep_objects_RC
18407
18408 # Dependencies to place before the objects being linked to create a
18409 # shared library.
18410 predeps=$lt_predeps_RC
18411
18412 # Dependencies to place after the objects being linked to create a
18413 # shared library.
18414 postdeps=$lt_postdeps_RC
18415
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
18419
18420 # Method to check whether dependent libraries are shared objects.
18421 deplibs_check_method=$lt_deplibs_check_method
18422
18423 # Command to use when deplibs_check_method == file_magic.
18424 file_magic_cmd=$lt_file_magic_cmd
18425
18426 # Flag that allows shared libraries with undefined symbols to be built.
18427 allow_undefined_flag=$lt_allow_undefined_flag_RC
18428
18429 # Flag that forces no undefined symbols.
18430 no_undefined_flag=$lt_no_undefined_flag_RC
18431
18432 # Commands used to finish a libtool library installation in a directory.
18433 finish_cmds=$lt_finish_cmds
18434
18435 # Same as above, but a single script fragment to be evaled but not shown.
18436 finish_eval=$lt_finish_eval
18437
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
18440
18441 # Transform the output of nm in a proper C declaration
18442 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18443
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
18446
18447 # This is the shared library runtime path variable.
18448 runpath_var=$runpath_var
18449
18450 # This is the shared library path variable.
18451 shlibpath_var=$shlibpath_var
18452
18453 # Is shlibpath searched before the hard-coded library search path?
18454 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18455
18456 # How to hardcode a shared library path into an executable.
18457 hardcode_action=$hardcode_action_RC
18458
18459 # Whether we should hardcode library paths into libraries.
18460 hardcode_into_libs=$hardcode_into_libs
18461
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
18465
18466 # If ld is used when linking, flag to hardcode \$libdir into
18467 # a binary during linking. This must work even if \$libdir does
18468 # not exist.
18469 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18470
18471 # Whether we need a single -rpath flag with a separated argument.
18472 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18473
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
18477
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
18481
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
18485
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
18489
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"
18493
18494 # Whether libtool must link a program against all its dependency libraries.
18495 link_all_deplibs=$link_all_deplibs_RC
18496
18497 # Compile-time system search path for libraries
18498 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18499
18500 # Run-time system search path for libraries
18501 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18502
18503 # Fix the shell variable \$srcfile for the compiler.
18504 fix_srcfile_path="$fix_srcfile_path_RC"
18505
18506 # Set to yes if exported symbols are required.
18507 always_export_symbols=$always_export_symbols_RC
18508
18509 # The commands to list exported symbols.
18510 export_symbols_cmds=$lt_export_symbols_cmds_RC
18511
18512 # The commands to extract the exported symbol list from a shared archive.
18513 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18514
18515 # Symbols that should not be listed in the preloaded symbols.
18516 exclude_expsyms=$lt_exclude_expsyms_RC
18517
18518 # Symbols that must always be exported.
18519 include_expsyms=$lt_include_expsyms_RC
18520
18521 # ### END LIBTOOL TAG CONFIG: $tagname
18522
18523 __EOF__
18524
18525
18526 else
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"
18533   fi
18534 fi
18535
18536
18537 ac_ext=c
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
18542
18543 CC="$lt_save_CC"
18544
18545         ;;
18546
18547       *)
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; }; }
18551         ;;
18552       esac
18553
18554       # Append the new tag name to the list of available tags.
18555       if test -n "$tagname" ; then
18556       available_tags="$available_tags $tagname"
18557     fi
18558     fi
18559   done
18560   IFS="$lt_save_ifs"
18561
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"
18565     chmod +x "$ofile"
18566   else
18567     rm -f "${ofile}T"
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; }; }
18571   fi
18572 fi
18573
18574
18575
18576 # This can be used to rebuild libtool when needed
18577 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18578
18579 # Always use our own libtool.
18580 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18581
18582 # Prevent multiple expansion
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
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
18609 else
18610   case $AR in
18611   [\\/]* | ?:[\\/]*)
18612   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18613   ;;
18614   *)
18615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18616 as_dummy="$PATH:/usr/ccs/bin"
18617 for as_dir in $as_dummy
18618 do
18619   IFS=$as_save_IFS
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
18625     break 2
18626   fi
18627 done
18628 done
18629
18630   test -z "$ac_cv_path_AR" && ac_cv_path_AR="/usr/bin/ar"
18631   ;;
18632 esac
18633 fi
18634 AR=$ac_cv_path_AR
18635
18636 if test -n "$AR"; then
18637   echo "$as_me:$LINENO: result: $AR" >&5
18638 echo "${ECHO_T}$AR" >&6
18639 else
18640   echo "$as_me:$LINENO: result: no" >&5
18641 echo "${ECHO_T}no" >&6
18642 fi
18643
18644
18645 # Options
18646
18647
18648
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"
18652
18653 else
18654    with_tightvnc_filetransfer=yes
18655 fi;
18656 # AC_DEFINE moved to after libpthread check.
18657
18658
18659
18660
18661 # Check whether --with-24bpp or --without-24bpp was given.
18662 if test "${with_24bpp+set}" = set; then
18663   withval="$with_24bpp"
18664
18665 else
18666    with_24bpp=yes
18667 fi;
18668 if test "x$with_24bpp" = "xyes"; then
18669         cat >>confdefs.h <<\_ACEOF
18670 #define ALLOW24BPP 1
18671 _ACEOF
18672
18673 fi
18674
18675
18676
18677 # Check whether --with-ffmpeg or --without-ffmpeg was given.
18678 if test "${with_ffmpeg+set}" = set; then
18679   withval="$with_ffmpeg"
18680
18681 fi;
18682
18683
18684
18685 if test ! -z "$with_ffmpeg"; then
18686   WITH_FFMPEG_TRUE=
18687   WITH_FFMPEG_FALSE='#'
18688 else
18689   WITH_FFMPEG_TRUE='#'
18690   WITH_FFMPEG_FALSE=
18691 fi
18692
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
18698 else
18699   ac_check_lib_save_LIBS=$LIBS
18700 LIBS="-lmp3lame  $LIBS"
18701 cat >conftest.$ac_ext <<_ACEOF
18702 /* confdefs.h.  */
18703 _ACEOF
18704 cat confdefs.h >>conftest.$ac_ext
18705 cat >>conftest.$ac_ext <<_ACEOF
18706 /* end confdefs.h.  */
18707
18708 /* Override any gcc2 internal prototype to avoid an error.  */
18709 #ifdef __cplusplus
18710 extern "C"
18711 #endif
18712 /* We use char because int might match the return type of a gcc2
18713    builtin and then its argument prototype would still apply.  */
18714 char lame_init ();
18715 int
18716 main ()
18717 {
18718 lame_init ();
18719   ;
18720   return 0;
18721 }
18722 _ACEOF
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
18726   ac_status=$?
18727   grep -v '^ *+' conftest.er1 >conftest.err
18728   rm -f conftest.er1
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
18736   ac_status=$?
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
18742   ac_status=$?
18743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744   (exit $ac_status); }; }; then
18745   ac_cv_lib_mp3lame_lame_init=yes
18746 else
18747   echo "$as_me: failed program was:" >&5
18748 sed 's/^/| /' conftest.$ac_ext >&5
18749
18750 ac_cv_lib_mp3lame_lame_init=no
18751 fi
18752 rm -f conftest.err conftest.$ac_objext \
18753       conftest$ac_exeext conftest.$ac_ext
18754 LIBS=$ac_check_lib_save_LIBS
18755 fi
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"
18760 else
18761   HAVE_MP3LAME="false"
18762 fi
18763
18764 fi
18765
18766
18767 if test "$HAVE_MP3LAME" = "true"; then
18768   HAVE_MP3LAME_TRUE=
18769   HAVE_MP3LAME_FALSE='#'
18770 else
18771   HAVE_MP3LAME_TRUE='#'
18772   HAVE_MP3LAME_FALSE=
18773 fi
18774
18775
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
18783 fi
18784 echo "$as_me:$LINENO: result: $ac_cv_header_thenonexistentheader_h" >&5
18785 echo "${ECHO_T}$ac_cv_header_thenonexistentheader_h" >&6
18786 else
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
18791 /* confdefs.h.  */
18792 _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>
18798 _ACEOF
18799 rm -f conftest.$ac_objext
18800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18801   (eval $ac_compile) 2>conftest.er1
18802   ac_status=$?
18803   grep -v '^ *+' conftest.er1 >conftest.err
18804   rm -f conftest.er1
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
18812   ac_status=$?
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
18818   ac_status=$?
18819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820   (exit $ac_status); }; }; then
18821   ac_header_compiler=yes
18822 else
18823   echo "$as_me: failed program was:" >&5
18824 sed 's/^/| /' conftest.$ac_ext >&5
18825
18826 ac_header_compiler=no
18827 fi
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
18831
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
18836 /* confdefs.h.  */
18837 _ACEOF
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h.  */
18841 #include <thenonexistentheader.h>
18842 _ACEOF
18843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18844   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18845   ac_status=$?
18846   grep -v '^ *+' conftest.er1 >conftest.err
18847   rm -f conftest.er1
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
18854   else
18855     ac_cpp_err=
18856   fi
18857 else
18858   ac_cpp_err=yes
18859 fi
18860 if test -z "$ac_cpp_err"; then
18861   ac_header_preproc=yes
18862 else
18863   echo "$as_me: failed program was:" >&5
18864 sed 's/^/| /' conftest.$ac_ext >&5
18865
18866   ac_header_preproc=no
18867 fi
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
18871
18872 # So?  What about this header?
18873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18874   yes:no: )
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
18880     ;;
18881   no: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;}
18894     (
18895       cat <<\_ASBOX
18896 ## ----------------------------------------------------------- ##
18897 ## Report this to http://sourceforge.net/projects/libvncserver ##
18898 ## ----------------------------------------------------------- ##
18899 _ASBOX
18900     ) |
18901       sed "s/^/$as_me: WARNING:     /" >&2
18902     ;;
18903 esac
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
18908 else
18909   ac_cv_header_thenonexistentheader_h=$ac_header_preproc
18910 fi
18911 echo "$as_me:$LINENO: result: $ac_cv_header_thenonexistentheader_h" >&5
18912 echo "${ECHO_T}$ac_cv_header_thenonexistentheader_h" >&6
18913
18914 fi
18915 if test $ac_cv_header_thenonexistentheader_h = yes; then
18916   HAVE_THENONEXISTENTHEADER_H="true"
18917 fi
18918
18919
18920
18921 # Checks for X libraries
18922 HAVE_X="false"
18923 echo "$as_me:$LINENO: checking for X" >&5
18924 echo $ECHO_N "checking for X... $ECHO_C" >&6
18925
18926
18927 # Check whether --with-x or --without-x was given.
18928 if test "${with_x+set}" = set; then
18929   withval="$with_x"
18930
18931 fi;
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.
18935   have_x=disabled
18936 else
18937   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
18938     # Both variables are already set.
18939     have_x=yes
18940   else
18941     if test "${ac_cv_have_x+set}" = set; then
18942   echo $ECHO_N "(cached) $ECHO_C" >&6
18943 else
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
18948   cd conftest.dir
18949   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
18950   cat >Imakefile <<'_ACEOF'
18951 acfindx:
18952         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
18953 _ACEOF
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
18962       fi
18963     done
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
18968         /usr/include) ;;
18969         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18970     esac
18971     case $ac_im_usrlibdir in
18972         /usr/lib | /lib) ;;
18973         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18974     esac
18975   fi
18976   cd ..
18977   rm -fr conftest.dir
18978 fi
18979
18980 # Standard set of common directories for X headers.
18981 # Check X11 before X11Rn because it is often a symlink to the current release.
18982 ac_x_header_dirs='
18983 /usr/X11/include
18984 /usr/X11R6/include
18985 /usr/X11R5/include
18986 /usr/X11R4/include
18987
18988 /usr/include/X11
18989 /usr/include/X11R6
18990 /usr/include/X11R5
18991 /usr/include/X11R4
18992
18993 /usr/local/X11/include
18994 /usr/local/X11R6/include
18995 /usr/local/X11R5/include
18996 /usr/local/X11R4/include
18997
18998 /usr/local/include/X11
18999 /usr/local/include/X11R6
19000 /usr/local/include/X11R5
19001 /usr/local/include/X11R4
19002
19003 /usr/X386/include
19004 /usr/x386/include
19005 /usr/XFree86/include/X11
19006
19007 /usr/include
19008 /usr/local/include
19009 /usr/unsupported/include
19010 /usr/athena/include
19011 /usr/local/x11r5/include
19012 /usr/lpp/Xamples/include
19013
19014 /usr/openwin/include
19015 /usr/openwin/share/include'
19016
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
19021 /* confdefs.h.  */
19022 _ACEOF
19023 cat confdefs.h >>conftest.$ac_ext
19024 cat >>conftest.$ac_ext <<_ACEOF
19025 /* end confdefs.h.  */
19026 #include <X11/Intrinsic.h>
19027 _ACEOF
19028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19029   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19030   ac_status=$?
19031   grep -v '^ *+' conftest.er1 >conftest.err
19032   rm -f conftest.er1
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
19039   else
19040     ac_cpp_err=
19041   fi
19042 else
19043   ac_cpp_err=yes
19044 fi
19045 if test -z "$ac_cpp_err"; then
19046   # We can compile using X headers with no special include directory.
19047 ac_x_includes=
19048 else
19049   echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19051
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
19055     break
19056   fi
19057 done
19058 fi
19059 rm -f conftest.err conftest.$ac_ext
19060 fi # $ac_x_includes = no
19061
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.
19066   ac_save_LIBS=$LIBS
19067   LIBS="-lXt $LIBS"
19068   cat >conftest.$ac_ext <<_ACEOF
19069 /* confdefs.h.  */
19070 _ACEOF
19071 cat confdefs.h >>conftest.$ac_ext
19072 cat >>conftest.$ac_ext <<_ACEOF
19073 /* end confdefs.h.  */
19074 #include <X11/Intrinsic.h>
19075 int
19076 main ()
19077 {
19078 XtMalloc (0)
19079   ;
19080   return 0;
19081 }
19082 _ACEOF
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
19086   ac_status=$?
19087   grep -v '^ *+' conftest.er1 >conftest.err
19088   rm -f conftest.er1
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
19096   ac_status=$?
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
19102   ac_status=$?
19103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104   (exit $ac_status); }; }; then
19105   LIBS=$ac_save_LIBS
19106 # We can link X programs with no special library path.
19107 ac_x_libraries=
19108 else
19109   echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19111
19112 LIBS=$ac_save_LIBS
19113 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19114 do
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
19119       break 2
19120     fi
19121   done
19122 done
19123 fi
19124 rm -f conftest.err conftest.$ac_objext \
19125       conftest$ac_exeext conftest.$ac_ext
19126 fi # $ac_x_libraries = no
19127
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"
19131 else
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"
19135 fi
19136 fi
19137
19138   fi
19139   eval "$ac_cv_have_x"
19140 fi # $with_x != no
19141
19142 if test "$have_x" != yes; then
19143   echo "$as_me:$LINENO: result: $have_x" >&5
19144 echo "${ECHO_T}$have_x" >&6
19145   no_x=yes
19146 else
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
19155 fi
19156
19157 if test "$no_x" = yes; then
19158   # Not all programs may use this symbol, but it does not hurt to define it.
19159
19160 cat >>confdefs.h <<\_ACEOF
19161 #define X_DISPLAY_MISSING 1
19162 _ACEOF
19163
19164   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19165 else
19166   if test -n "$x_includes"; then
19167     X_CFLAGS="$X_CFLAGS -I$x_includes"
19168   fi
19169
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
19176     "SunOS 5"*)
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
19181 /* confdefs.h.  */
19182 _ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h.  */
19186
19187 int
19188 main ()
19189 {
19190
19191   ;
19192   return 0;
19193 }
19194 _ACEOF
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
19198   ac_status=$?
19199   grep -v '^ *+' conftest.er1 >conftest.err
19200   rm -f conftest.er1
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
19208   ac_status=$?
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
19214   ac_status=$?
19215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216   (exit $ac_status); }; }; then
19217   ac_R_nospace=yes
19218 else
19219   echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19221
19222 ac_R_nospace=no
19223 fi
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"
19230       else
19231         LIBS="$ac_xsave_LIBS -R $x_libraries"
19232         cat >conftest.$ac_ext <<_ACEOF
19233 /* confdefs.h.  */
19234 _ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h.  */
19238
19239 int
19240 main ()
19241 {
19242
19243   ;
19244   return 0;
19245 }
19246 _ACEOF
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
19250   ac_status=$?
19251   grep -v '^ *+' conftest.er1 >conftest.err
19252   rm -f conftest.er1
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
19260   ac_status=$?
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
19266   ac_status=$?
19267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268   (exit $ac_status); }; }; then
19269   ac_R_space=yes
19270 else
19271   echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19273
19274 ac_R_space=no
19275 fi
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"
19282         else
19283           echo "$as_me:$LINENO: result: neither works" >&5
19284 echo "${ECHO_T}neither works" >&6
19285         fi
19286       fi
19287       LIBS=$ac_xsave_LIBS
19288     esac
19289   fi
19290
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.
19294
19295   if test "$ISC" = yes; then
19296     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19297   else
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
19303 /* confdefs.h.  */
19304 _ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h.  */
19308
19309 /* Override any gcc2 internal prototype to avoid an error.  */
19310 #ifdef __cplusplus
19311 extern "C"
19312 #endif
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 ();
19316 int
19317 main ()
19318 {
19319 XOpenDisplay ();
19320   ;
19321   return 0;
19322 }
19323 _ACEOF
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
19327   ac_status=$?
19328   grep -v '^ *+' conftest.er1 >conftest.err
19329   rm -f conftest.er1
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
19337   ac_status=$?
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
19343   ac_status=$?
19344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345   (exit $ac_status); }; }; then
19346   :
19347 else
19348   echo "$as_me: failed program was:" >&5
19349 sed 's/^/| /' conftest.$ac_ext >&5
19350
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
19355 else
19356   ac_check_lib_save_LIBS=$LIBS
19357 LIBS="-ldnet  $LIBS"
19358 cat >conftest.$ac_ext <<_ACEOF
19359 /* confdefs.h.  */
19360 _ACEOF
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h.  */
19364
19365 /* Override any gcc2 internal prototype to avoid an error.  */
19366 #ifdef __cplusplus
19367 extern "C"
19368 #endif
19369 /* We use char because int might match the return type of a gcc2
19370    builtin and then its argument prototype would still apply.  */
19371 char dnet_ntoa ();
19372 int
19373 main ()
19374 {
19375 dnet_ntoa ();
19376   ;
19377   return 0;
19378 }
19379 _ACEOF
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
19383   ac_status=$?
19384   grep -v '^ *+' conftest.er1 >conftest.err
19385   rm -f conftest.er1
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
19393   ac_status=$?
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
19399   ac_status=$?
19400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401   (exit $ac_status); }; }; then
19402   ac_cv_lib_dnet_dnet_ntoa=yes
19403 else
19404   echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19406
19407 ac_cv_lib_dnet_dnet_ntoa=no
19408 fi
19409 rm -f conftest.err conftest.$ac_objext \
19410       conftest$ac_exeext conftest.$ac_ext
19411 LIBS=$ac_check_lib_save_LIBS
19412 fi
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"
19417 fi
19418
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
19424 else
19425   ac_check_lib_save_LIBS=$LIBS
19426 LIBS="-ldnet_stub  $LIBS"
19427 cat >conftest.$ac_ext <<_ACEOF
19428 /* confdefs.h.  */
19429 _ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h.  */
19433
19434 /* Override any gcc2 internal prototype to avoid an error.  */
19435 #ifdef __cplusplus
19436 extern "C"
19437 #endif
19438 /* We use char because int might match the return type of a gcc2
19439    builtin and then its argument prototype would still apply.  */
19440 char dnet_ntoa ();
19441 int
19442 main ()
19443 {
19444 dnet_ntoa ();
19445   ;
19446   return 0;
19447 }
19448 _ACEOF
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
19452   ac_status=$?
19453   grep -v '^ *+' conftest.er1 >conftest.err
19454   rm -f conftest.er1
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
19462   ac_status=$?
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
19468   ac_status=$?
19469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470   (exit $ac_status); }; }; then
19471   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19472 else
19473   echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19475
19476 ac_cv_lib_dnet_stub_dnet_ntoa=no
19477 fi
19478 rm -f conftest.err conftest.$ac_objext \
19479       conftest$ac_exeext conftest.$ac_ext
19480 LIBS=$ac_check_lib_save_LIBS
19481 fi
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"
19486 fi
19487
19488     fi
19489 fi
19490 rm -f conftest.err conftest.$ac_objext \
19491       conftest$ac_exeext conftest.$ac_ext
19492     LIBS="$ac_xsave_LIBS"
19493
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)
19497     # needs -lnsl.
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
19506 else
19507   cat >conftest.$ac_ext <<_ACEOF
19508 /* confdefs.h.  */
19509 _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
19516
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.  */
19521
19522 #ifdef __STDC__
19523 # include <limits.h>
19524 #else
19525 # include <assert.h>
19526 #endif
19527
19528 #undef gethostbyname
19529
19530 /* Override any gcc2 internal prototype to avoid an error.  */
19531 #ifdef __cplusplus
19532 extern "C"
19533 {
19534 #endif
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)
19542 choke me
19543 #else
19544 char (*f) () = gethostbyname;
19545 #endif
19546 #ifdef __cplusplus
19547 }
19548 #endif
19549
19550 int
19551 main ()
19552 {
19553 return f != gethostbyname;
19554   ;
19555   return 0;
19556 }
19557 _ACEOF
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
19561   ac_status=$?
19562   grep -v '^ *+' conftest.er1 >conftest.err
19563   rm -f conftest.er1
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
19571   ac_status=$?
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
19577   ac_status=$?
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); }; }; then
19580   ac_cv_func_gethostbyname=yes
19581 else
19582   echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19584
19585 ac_cv_func_gethostbyname=no
19586 fi
19587 rm -f conftest.err conftest.$ac_objext \
19588       conftest$ac_exeext conftest.$ac_ext
19589 fi
19590 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19591 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19592
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
19598 else
19599   ac_check_lib_save_LIBS=$LIBS
19600 LIBS="-lnsl  $LIBS"
19601 cat >conftest.$ac_ext <<_ACEOF
19602 /* confdefs.h.  */
19603 _ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h.  */
19607
19608 /* Override any gcc2 internal prototype to avoid an error.  */
19609 #ifdef __cplusplus
19610 extern "C"
19611 #endif
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 ();
19615 int
19616 main ()
19617 {
19618 gethostbyname ();
19619   ;
19620   return 0;
19621 }
19622 _ACEOF
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
19626   ac_status=$?
19627   grep -v '^ *+' conftest.er1 >conftest.err
19628   rm -f conftest.er1
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
19636   ac_status=$?
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
19642   ac_status=$?
19643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644   (exit $ac_status); }; }; then
19645   ac_cv_lib_nsl_gethostbyname=yes
19646 else
19647   echo "$as_me: failed program was:" >&5
19648 sed 's/^/| /' conftest.$ac_ext >&5
19649
19650 ac_cv_lib_nsl_gethostbyname=no
19651 fi
19652 rm -f conftest.err conftest.$ac_objext \
19653       conftest$ac_exeext conftest.$ac_ext
19654 LIBS=$ac_check_lib_save_LIBS
19655 fi
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"
19660 fi
19661
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
19667 else
19668   ac_check_lib_save_LIBS=$LIBS
19669 LIBS="-lbsd  $LIBS"
19670 cat >conftest.$ac_ext <<_ACEOF
19671 /* confdefs.h.  */
19672 _ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h.  */
19676
19677 /* Override any gcc2 internal prototype to avoid an error.  */
19678 #ifdef __cplusplus
19679 extern "C"
19680 #endif
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 ();
19684 int
19685 main ()
19686 {
19687 gethostbyname ();
19688   ;
19689   return 0;
19690 }
19691 _ACEOF
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
19695   ac_status=$?
19696   grep -v '^ *+' conftest.er1 >conftest.err
19697   rm -f conftest.er1
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
19705   ac_status=$?
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
19711   ac_status=$?
19712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713   (exit $ac_status); }; }; then
19714   ac_cv_lib_bsd_gethostbyname=yes
19715 else
19716   echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19718
19719 ac_cv_lib_bsd_gethostbyname=no
19720 fi
19721 rm -f conftest.err conftest.$ac_objext \
19722       conftest$ac_exeext conftest.$ac_ext
19723 LIBS=$ac_check_lib_save_LIBS
19724 fi
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"
19729 fi
19730
19731       fi
19732     fi
19733
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
19745 else
19746   cat >conftest.$ac_ext <<_ACEOF
19747 /* confdefs.h.  */
19748 _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
19755
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.  */
19760
19761 #ifdef __STDC__
19762 # include <limits.h>
19763 #else
19764 # include <assert.h>
19765 #endif
19766
19767 #undef connect
19768
19769 /* Override any gcc2 internal prototype to avoid an error.  */
19770 #ifdef __cplusplus
19771 extern "C"
19772 {
19773 #endif
19774 /* We use char because int might match the return type of a gcc2
19775    builtin and then its argument prototype would still apply.  */
19776 char connect ();
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)
19781 choke me
19782 #else
19783 char (*f) () = connect;
19784 #endif
19785 #ifdef __cplusplus
19786 }
19787 #endif
19788
19789 int
19790 main ()
19791 {
19792 return f != connect;
19793   ;
19794   return 0;
19795 }
19796 _ACEOF
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
19800   ac_status=$?
19801   grep -v '^ *+' conftest.er1 >conftest.err
19802   rm -f conftest.er1
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
19810   ac_status=$?
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
19816   ac_status=$?
19817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818   (exit $ac_status); }; }; then
19819   ac_cv_func_connect=yes
19820 else
19821   echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19823
19824 ac_cv_func_connect=no
19825 fi
19826 rm -f conftest.err conftest.$ac_objext \
19827       conftest$ac_exeext conftest.$ac_ext
19828 fi
19829 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19830 echo "${ECHO_T}$ac_cv_func_connect" >&6
19831
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
19837 else
19838   ac_check_lib_save_LIBS=$LIBS
19839 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19840 cat >conftest.$ac_ext <<_ACEOF
19841 /* confdefs.h.  */
19842 _ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h.  */
19846
19847 /* Override any gcc2 internal prototype to avoid an error.  */
19848 #ifdef __cplusplus
19849 extern "C"
19850 #endif
19851 /* We use char because int might match the return type of a gcc2
19852    builtin and then its argument prototype would still apply.  */
19853 char connect ();
19854 int
19855 main ()
19856 {
19857 connect ();
19858   ;
19859   return 0;
19860 }
19861 _ACEOF
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
19865   ac_status=$?
19866   grep -v '^ *+' conftest.er1 >conftest.err
19867   rm -f conftest.er1
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
19875   ac_status=$?
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
19881   ac_status=$?
19882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); }; }; then
19884   ac_cv_lib_socket_connect=yes
19885 else
19886   echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19888
19889 ac_cv_lib_socket_connect=no
19890 fi
19891 rm -f conftest.err conftest.$ac_objext \
19892       conftest$ac_exeext conftest.$ac_ext
19893 LIBS=$ac_check_lib_save_LIBS
19894 fi
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"
19899 fi
19900
19901     fi
19902
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
19908 else
19909   cat >conftest.$ac_ext <<_ACEOF
19910 /* confdefs.h.  */
19911 _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
19918
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.  */
19923
19924 #ifdef __STDC__
19925 # include <limits.h>
19926 #else
19927 # include <assert.h>
19928 #endif
19929
19930 #undef remove
19931
19932 /* Override any gcc2 internal prototype to avoid an error.  */
19933 #ifdef __cplusplus
19934 extern "C"
19935 {
19936 #endif
19937 /* We use char because int might match the return type of a gcc2
19938    builtin and then its argument prototype would still apply.  */
19939 char remove ();
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)
19944 choke me
19945 #else
19946 char (*f) () = remove;
19947 #endif
19948 #ifdef __cplusplus
19949 }
19950 #endif
19951
19952 int
19953 main ()
19954 {
19955 return f != remove;
19956   ;
19957   return 0;
19958 }
19959 _ACEOF
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
19963   ac_status=$?
19964   grep -v '^ *+' conftest.er1 >conftest.err
19965   rm -f conftest.er1
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
19973   ac_status=$?
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
19979   ac_status=$?
19980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981   (exit $ac_status); }; }; then
19982   ac_cv_func_remove=yes
19983 else
19984   echo "$as_me: failed program was:" >&5
19985 sed 's/^/| /' conftest.$ac_ext >&5
19986
19987 ac_cv_func_remove=no
19988 fi
19989 rm -f conftest.err conftest.$ac_objext \
19990       conftest$ac_exeext conftest.$ac_ext
19991 fi
19992 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19993 echo "${ECHO_T}$ac_cv_func_remove" >&6
19994
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
20000 else
20001   ac_check_lib_save_LIBS=$LIBS
20002 LIBS="-lposix  $LIBS"
20003 cat >conftest.$ac_ext <<_ACEOF
20004 /* confdefs.h.  */
20005 _ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h.  */
20009
20010 /* Override any gcc2 internal prototype to avoid an error.  */
20011 #ifdef __cplusplus
20012 extern "C"
20013 #endif
20014 /* We use char because int might match the return type of a gcc2
20015    builtin and then its argument prototype would still apply.  */
20016 char remove ();
20017 int
20018 main ()
20019 {
20020 remove ();
20021   ;
20022   return 0;
20023 }
20024 _ACEOF
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
20028   ac_status=$?
20029   grep -v '^ *+' conftest.er1 >conftest.err
20030   rm -f conftest.er1
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
20038   ac_status=$?
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
20044   ac_status=$?
20045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046   (exit $ac_status); }; }; then
20047   ac_cv_lib_posix_remove=yes
20048 else
20049   echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20051
20052 ac_cv_lib_posix_remove=no
20053 fi
20054 rm -f conftest.err conftest.$ac_objext \
20055       conftest$ac_exeext conftest.$ac_ext
20056 LIBS=$ac_check_lib_save_LIBS
20057 fi
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"
20062 fi
20063
20064     fi
20065
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
20071 else
20072   cat >conftest.$ac_ext <<_ACEOF
20073 /* confdefs.h.  */
20074 _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
20081
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.  */
20086
20087 #ifdef __STDC__
20088 # include <limits.h>
20089 #else
20090 # include <assert.h>
20091 #endif
20092
20093 #undef shmat
20094
20095 /* Override any gcc2 internal prototype to avoid an error.  */
20096 #ifdef __cplusplus
20097 extern "C"
20098 {
20099 #endif
20100 /* We use char because int might match the return type of a gcc2
20101    builtin and then its argument prototype would still apply.  */
20102 char shmat ();
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)
20107 choke me
20108 #else
20109 char (*f) () = shmat;
20110 #endif
20111 #ifdef __cplusplus
20112 }
20113 #endif
20114
20115 int
20116 main ()
20117 {
20118 return f != shmat;
20119   ;
20120   return 0;
20121 }
20122 _ACEOF
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
20126   ac_status=$?
20127   grep -v '^ *+' conftest.er1 >conftest.err
20128   rm -f conftest.er1
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
20136   ac_status=$?
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
20142   ac_status=$?
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); }; }; then
20145   ac_cv_func_shmat=yes
20146 else
20147   echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20149
20150 ac_cv_func_shmat=no
20151 fi
20152 rm -f conftest.err conftest.$ac_objext \
20153       conftest$ac_exeext conftest.$ac_ext
20154 fi
20155 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20156 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20157
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
20163 else
20164   ac_check_lib_save_LIBS=$LIBS
20165 LIBS="-lipc  $LIBS"
20166 cat >conftest.$ac_ext <<_ACEOF
20167 /* confdefs.h.  */
20168 _ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h.  */
20172
20173 /* Override any gcc2 internal prototype to avoid an error.  */
20174 #ifdef __cplusplus
20175 extern "C"
20176 #endif
20177 /* We use char because int might match the return type of a gcc2
20178    builtin and then its argument prototype would still apply.  */
20179 char shmat ();
20180 int
20181 main ()
20182 {
20183 shmat ();
20184   ;
20185   return 0;
20186 }
20187 _ACEOF
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
20191   ac_status=$?
20192   grep -v '^ *+' conftest.er1 >conftest.err
20193   rm -f conftest.er1
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
20201   ac_status=$?
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
20207   ac_status=$?
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); }; }; then
20210   ac_cv_lib_ipc_shmat=yes
20211 else
20212   echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215 ac_cv_lib_ipc_shmat=no
20216 fi
20217 rm -f conftest.err conftest.$ac_objext \
20218       conftest$ac_exeext conftest.$ac_ext
20219 LIBS=$ac_check_lib_save_LIBS
20220 fi
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"
20225 fi
20226
20227     fi
20228   fi
20229
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
20243 else
20244   ac_check_lib_save_LIBS=$LIBS
20245 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20246 cat >conftest.$ac_ext <<_ACEOF
20247 /* confdefs.h.  */
20248 _ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h.  */
20252
20253 /* Override any gcc2 internal prototype to avoid an error.  */
20254 #ifdef __cplusplus
20255 extern "C"
20256 #endif
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 ();
20260 int
20261 main ()
20262 {
20263 IceConnectionNumber ();
20264   ;
20265   return 0;
20266 }
20267 _ACEOF
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
20271   ac_status=$?
20272   grep -v '^ *+' conftest.er1 >conftest.err
20273   rm -f conftest.er1
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
20281   ac_status=$?
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
20287   ac_status=$?
20288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289   (exit $ac_status); }; }; then
20290   ac_cv_lib_ICE_IceConnectionNumber=yes
20291 else
20292   echo "$as_me: failed program was:" >&5
20293 sed 's/^/| /' conftest.$ac_ext >&5
20294
20295 ac_cv_lib_ICE_IceConnectionNumber=no
20296 fi
20297 rm -f conftest.err conftest.$ac_objext \
20298       conftest$ac_exeext conftest.$ac_ext
20299 LIBS=$ac_check_lib_save_LIBS
20300 fi
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"
20305 fi
20306
20307   LDFLAGS=$ac_save_LDFLAGS
20308
20309 fi
20310
20311
20312
20313
20314 # See if we are to build x11vnc:
20315
20316
20317
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"
20321
20322 fi;
20323
20324 # Check whether --with-x11vnc or --without-x11vnc was given.
20325 if test "${with_x11vnc+set}" = set; then
20326   withval="$with_x11vnc"
20327
20328 fi;
20329
20330 if test ! -z "$with_x11vnc" -a "$with_x11vnc" = "yes"; then
20331         build_x11vnc="yes"
20332 elif test "$PACKAGE_NAME" = "x11vnc"; then
20333         build_x11vnc="yes"
20334 else
20335         build_x11vnc="no"
20336 fi
20337
20338 # x11vnc only:
20339 if test "$build_x11vnc" = "yes"; then
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381 # Check whether --with-xkeyboard or --without-xkeyboard was given.
20382 if test "${with_xkeyboard+set}" = set; then
20383   withval="$with_xkeyboard"
20384
20385 fi;
20386
20387 # Check whether --with-xinerama or --without-xinerama was given.
20388 if test "${with_xinerama+set}" = set; then
20389   withval="$with_xinerama"
20390
20391 fi;
20392
20393 # Check whether --with-xrandr or --without-xrandr was given.
20394 if test "${with_xrandr+set}" = set; then
20395   withval="$with_xrandr"
20396
20397 fi;
20398
20399 # Check whether --with-xfixes or --without-xfixes was given.
20400 if test "${with_xfixes+set}" = set; then
20401   withval="$with_xfixes"
20402
20403 fi;
20404
20405 # Check whether --with-xdamage or --without-xdamage was given.
20406 if test "${with_xdamage+set}" = set; then
20407   withval="$with_xdamage"
20408
20409 fi;
20410
20411 # Check whether --with-xtrap or --without-xtrap was given.
20412 if test "${with_xtrap+set}" = set; then
20413   withval="$with_xtrap"
20414
20415 fi;
20416
20417 # Check whether --with-xrecord or --without-xrecord was given.
20418 if test "${with_xrecord+set}" = set; then
20419   withval="$with_xrecord"
20420
20421 fi;
20422
20423 # Check whether --with-fbpm or --without-fbpm was given.
20424 if test "${with_fbpm+set}" = set; then
20425   withval="$with_fbpm"
20426
20427 fi;
20428
20429 # Check whether --with-dpms or --without-dpms was given.
20430 if test "${with_dpms+set}" = set; then
20431   withval="$with_dpms"
20432
20433 fi;
20434
20435 # Check whether --with-v4l or --without-v4l was given.
20436 if test "${with_v4l+set}" = set; then
20437   withval="$with_v4l"
20438
20439 fi;
20440
20441 # Check whether --with-fbdev or --without-fbdev was given.
20442 if test "${with_fbdev+set}" = set; then
20443   withval="$with_fbdev"
20444
20445 fi;
20446
20447 # Check whether --with-uinput or --without-uinput was given.
20448 if test "${with_uinput+set}" = set; then
20449   withval="$with_uinput"
20450
20451 fi;
20452
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"
20456
20457 fi;
20458
20459 fi
20460 # end x11vnc only.
20461
20462 if test "x$with_x" = "xno"; then
20463         HAVE_X="false"
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
20469 else
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
20473 /* confdefs.h.  */
20474 _ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h.  */
20478
20479 /* Override any gcc2 internal prototype to avoid an error.  */
20480 #ifdef __cplusplus
20481 extern "C"
20482 #endif
20483 /* We use char because int might match the return type of a gcc2
20484    builtin and then its argument prototype would still apply.  */
20485 char XGetImage ();
20486 int
20487 main ()
20488 {
20489 XGetImage ();
20490   ;
20491   return 0;
20492 }
20493 _ACEOF
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
20497   ac_status=$?
20498   grep -v '^ *+' conftest.er1 >conftest.err
20499   rm -f conftest.er1
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
20507   ac_status=$?
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
20513   ac_status=$?
20514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515   (exit $ac_status); }; }; then
20516   ac_cv_lib_X11_XGetImage=yes
20517 else
20518   echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20520
20521 ac_cv_lib_X11_XGetImage=no
20522 fi
20523 rm -f conftest.err conftest.$ac_objext \
20524       conftest$ac_exeext conftest.$ac_ext
20525 LIBS=$ac_check_lib_save_LIBS
20526 fi
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
20531 #define HAVE_X11 1
20532 _ACEOF
20533  HAVE_X="true"
20534 else
20535   HAVE_X="false"
20536 fi
20537
20538
20539         # x11vnc only:
20540         if test $HAVE_X = "true" -a "$build_x11vnc" = "yes"; then
20541                 X_PRELIBS="$X_PRELIBS -lXext"
20542
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
20547 else
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
20551 /* confdefs.h.  */
20552 _ACEOF
20553 cat confdefs.h >>conftest.$ac_ext
20554 cat >>conftest.$ac_ext <<_ACEOF
20555 /* end confdefs.h.  */
20556
20557 /* Override any gcc2 internal prototype to avoid an error.  */
20558 #ifdef __cplusplus
20559 extern "C"
20560 #endif
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 ();
20564 int
20565 main ()
20566 {
20567 XShmGetImage ();
20568   ;
20569   return 0;
20570 }
20571 _ACEOF
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
20575   ac_status=$?
20576   grep -v '^ *+' conftest.er1 >conftest.err
20577   rm -f conftest.er1
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
20585   ac_status=$?
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
20591   ac_status=$?
20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593   (exit $ac_status); }; }; then
20594   ac_cv_lib_Xext_XShmGetImage=yes
20595 else
20596   echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20598
20599 ac_cv_lib_Xext_XShmGetImage=no
20600 fi
20601 rm -f conftest.err conftest.$ac_objext \
20602       conftest$ac_exeext conftest.$ac_ext
20603 LIBS=$ac_check_lib_save_LIBS
20604 fi
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
20610 _ACEOF
20611
20612 fi
20613
20614
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
20619 else
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
20623 /* confdefs.h.  */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h.  */
20628
20629 /* Override any gcc2 internal prototype to avoid an error.  */
20630 #ifdef __cplusplus
20631 extern "C"
20632 #endif
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 ();
20636 int
20637 main ()
20638 {
20639 XReadScreen ();
20640   ;
20641   return 0;
20642 }
20643 _ACEOF
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
20647   ac_status=$?
20648   grep -v '^ *+' conftest.er1 >conftest.err
20649   rm -f conftest.er1
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
20657   ac_status=$?
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
20663   ac_status=$?
20664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665   (exit $ac_status); }; }; then
20666   ac_cv_lib_Xext_XReadScreen=yes
20667 else
20668   echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20670
20671 ac_cv_lib_Xext_XReadScreen=no
20672 fi
20673 rm -f conftest.err conftest.$ac_objext \
20674       conftest$ac_exeext conftest.$ac_ext
20675 LIBS=$ac_check_lib_save_LIBS
20676 fi
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
20682 _ACEOF
20683
20684 fi
20685
20686
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
20691 else
20692   cat >conftest.$ac_ext <<_ACEOF
20693 /* confdefs.h.  */
20694 _ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h.  */
20698 #include <X11/Xlib.h>
20699
20700 #include <X11/extensions/readdisplay.h>
20701 _ACEOF
20702 rm -f conftest.$ac_objext
20703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20704   (eval $ac_compile) 2>conftest.er1
20705   ac_status=$?
20706   grep -v '^ *+' conftest.er1 >conftest.err
20707   rm -f conftest.er1
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
20715   ac_status=$?
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
20721   ac_status=$?
20722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723   (exit $ac_status); }; }; then
20724   ac_cv_header_X11_extensions_readdisplay_h=yes
20725 else
20726   echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.$ac_ext >&5
20728
20729 ac_cv_header_X11_extensions_readdisplay_h=no
20730 fi
20731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20732 fi
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
20738 _ACEOF
20739
20740 fi
20741
20742
20743
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
20749 else
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
20753 /* confdefs.h.  */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h.  */
20758
20759 /* Override any gcc2 internal prototype to avoid an error.  */
20760 #ifdef __cplusplus
20761 extern "C"
20762 #endif
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 ();
20766 int
20767 main ()
20768 {
20769 FBPMForceLevel ();
20770   ;
20771   return 0;
20772 }
20773 _ACEOF
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
20777   ac_status=$?
20778   grep -v '^ *+' conftest.er1 >conftest.err
20779   rm -f conftest.er1
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
20787   ac_status=$?
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
20793   ac_status=$?
20794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795   (exit $ac_status); }; }; then
20796   ac_cv_lib_Xext_FBPMForceLevel=yes
20797 else
20798   echo "$as_me: failed program was:" >&5
20799 sed 's/^/| /' conftest.$ac_ext >&5
20800
20801 ac_cv_lib_Xext_FBPMForceLevel=no
20802 fi
20803 rm -f conftest.err conftest.$ac_objext \
20804       conftest$ac_exeext conftest.$ac_ext
20805 LIBS=$ac_check_lib_save_LIBS
20806 fi
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
20812 _ACEOF
20813
20814 fi
20815
20816                 fi
20817
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
20823 else
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
20827 /* confdefs.h.  */
20828 _ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h.  */
20832
20833 /* Override any gcc2 internal prototype to avoid an error.  */
20834 #ifdef __cplusplus
20835 extern "C"
20836 #endif
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 ();
20840 int
20841 main ()
20842 {
20843 DPMSForceLevel ();
20844   ;
20845   return 0;
20846 }
20847 _ACEOF
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
20851   ac_status=$?
20852   grep -v '^ *+' conftest.er1 >conftest.err
20853   rm -f conftest.er1
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
20861   ac_status=$?
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
20867   ac_status=$?
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); }; }; then
20870   ac_cv_lib_Xext_DPMSForceLevel=yes
20871 else
20872   echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20874
20875 ac_cv_lib_Xext_DPMSForceLevel=no
20876 fi
20877 rm -f conftest.err conftest.$ac_objext \
20878       conftest$ac_exeext conftest.$ac_ext
20879 LIBS=$ac_check_lib_save_LIBS
20880 fi
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
20886 _ACEOF
20887
20888 fi
20889
20890                 fi
20891
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
20896 else
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
20900 /* confdefs.h.  */
20901 _ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h.  */
20905
20906 /* Override any gcc2 internal prototype to avoid an error.  */
20907 #ifdef __cplusplus
20908 extern "C"
20909 #endif
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 ();
20913 int
20914 main ()
20915 {
20916 XTestGrabControl ();
20917   ;
20918   return 0;
20919 }
20920 _ACEOF
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
20924   ac_status=$?
20925   grep -v '^ *+' conftest.er1 >conftest.err
20926   rm -f conftest.er1
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
20934   ac_status=$?
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
20940   ac_status=$?
20941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942   (exit $ac_status); }; }; then
20943   ac_cv_lib_Xtst_XTestGrabControl=yes
20944 else
20945   echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20947
20948 ac_cv_lib_Xtst_XTestGrabControl=no
20949 fi
20950 rm -f conftest.err conftest.$ac_objext \
20951       conftest$ac_exeext conftest.$ac_ext
20952 LIBS=$ac_check_lib_save_LIBS
20953 fi
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
20960 _ACEOF
20961  HAVE_XTESTGRABCONTROL="true"
20962 fi
20963
20964
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
20969 else
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
20973 /* confdefs.h.  */
20974 _ACEOF
20975 cat confdefs.h >>conftest.$ac_ext
20976 cat >>conftest.$ac_ext <<_ACEOF
20977 /* end confdefs.h.  */
20978
20979 /* Override any gcc2 internal prototype to avoid an error.  */
20980 #ifdef __cplusplus
20981 extern "C"
20982 #endif
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 ();
20986 int
20987 main ()
20988 {
20989 XTestFakeKeyEvent ();
20990   ;
20991   return 0;
20992 }
20993 _ACEOF
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
20997   ac_status=$?
20998   grep -v '^ *+' conftest.er1 >conftest.err
20999   rm -f conftest.er1
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
21007   ac_status=$?
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
21013   ac_status=$?
21014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015   (exit $ac_status); }; }; then
21016   ac_cv_lib_Xtst_XTestFakeKeyEvent=yes
21017 else
21018   echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21020
21021 ac_cv_lib_Xtst_XTestFakeKeyEvent=no
21022 fi
21023 rm -f conftest.err conftest.$ac_objext \
21024       conftest$ac_exeext conftest.$ac_ext
21025 LIBS=$ac_check_lib_save_LIBS
21026 fi
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
21033 _ACEOF
21034  HAVE_XTEST="true"
21035 fi
21036
21037
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
21043 else
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
21047 /* confdefs.h.  */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h.  */
21052
21053 /* Override any gcc2 internal prototype to avoid an error.  */
21054 #ifdef __cplusplus
21055 extern "C"
21056 #endif
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 ();
21060 int
21061 main ()
21062 {
21063 XRecordEnableContextAsync ();
21064   ;
21065   return 0;
21066 }
21067 _ACEOF
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
21071   ac_status=$?
21072   grep -v '^ *+' conftest.er1 >conftest.err
21073   rm -f conftest.er1
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
21081   ac_status=$?
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
21087   ac_status=$?
21088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089   (exit $ac_status); }; }; then
21090   ac_cv_lib_Xtst_XRecordEnableContextAsync=yes
21091 else
21092   echo "$as_me: failed program was:" >&5
21093 sed 's/^/| /' conftest.$ac_ext >&5
21094
21095 ac_cv_lib_Xtst_XRecordEnableContextAsync=no
21096 fi
21097 rm -f conftest.err conftest.$ac_objext \
21098       conftest$ac_exeext conftest.$ac_ext
21099 LIBS=$ac_check_lib_save_LIBS
21100 fi
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
21107 _ACEOF
21108
21109 fi
21110
21111                 fi
21112
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
21120 else
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
21124 /* confdefs.h.  */
21125 _ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h.  */
21129
21130 /* Override any gcc2 internal prototype to avoid an error.  */
21131 #ifdef __cplusplus
21132 extern "C"
21133 #endif
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 ();
21137 int
21138 main ()
21139 {
21140 XETrapSetGrabServer ();
21141   ;
21142   return 0;
21143 }
21144 _ACEOF
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
21148   ac_status=$?
21149   grep -v '^ *+' conftest.er1 >conftest.err
21150   rm -f conftest.er1
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
21158   ac_status=$?
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
21164   ac_status=$?
21165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166   (exit $ac_status); }; }; then
21167   ac_cv_lib_XTrap_XETrapSetGrabServer=yes
21168 else
21169   echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21171
21172 ac_cv_lib_XTrap_XETrapSetGrabServer=no
21173 fi
21174 rm -f conftest.err conftest.$ac_objext \
21175       conftest$ac_exeext conftest.$ac_ext
21176 LIBS=$ac_check_lib_save_LIBS
21177 fi
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
21184 _ACEOF
21185
21186 fi
21187
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
21193 else
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
21197 /* confdefs.h.  */
21198 _ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h.  */
21202
21203 /* Override any gcc2 internal prototype to avoid an error.  */
21204 #ifdef __cplusplus
21205 extern "C"
21206 #endif
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 ();
21210 int
21211 main ()
21212 {
21213 XETrapSetGrabServer ();
21214   ;
21215   return 0;
21216 }
21217 _ACEOF
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
21221   ac_status=$?
21222   grep -v '^ *+' conftest.er1 >conftest.err
21223   rm -f conftest.er1
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
21231   ac_status=$?
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
21237   ac_status=$?
21238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239   (exit $ac_status); }; }; then
21240   ac_cv_lib_XETrap_XETrapSetGrabServer=yes
21241 else
21242   echo "$as_me: failed program was:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21244
21245 ac_cv_lib_XETrap_XETrapSetGrabServer=no
21246 fi
21247 rm -f conftest.err conftest.$ac_objext \
21248       conftest$ac_exeext conftest.$ac_ext
21249 LIBS=$ac_check_lib_save_LIBS
21250 fi
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
21257 _ACEOF
21258
21259 fi
21260
21261                     fi
21262                 fi
21263
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
21271 else
21272   cat >conftest.$ac_ext <<_ACEOF
21273 /* confdefs.h.  */
21274 _ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h.  */
21278 #include <X11/Xlib.h>
21279
21280 #include <X11/XKBlib.h>
21281 _ACEOF
21282 rm -f conftest.$ac_objext
21283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21284   (eval $ac_compile) 2>conftest.er1
21285   ac_status=$?
21286   grep -v '^ *+' conftest.er1 >conftest.err
21287   rm -f conftest.er1
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
21295   ac_status=$?
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
21301   ac_status=$?
21302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303   (exit $ac_status); }; }; then
21304   ac_cv_header_X11_XKBlib_h=yes
21305 else
21306   echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.$ac_ext >&5
21308
21309 ac_cv_header_X11_XKBlib_h=no
21310 fi
21311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21312 fi
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"
21317 else
21318   HAVE_XKBLIB_H="false"
21319 fi
21320
21321
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
21328 else
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
21332 /* confdefs.h.  */
21333 _ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h.  */
21337
21338 /* Override any gcc2 internal prototype to avoid an error.  */
21339 #ifdef __cplusplus
21340 extern "C"
21341 #endif
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 ();
21345 int
21346 main ()
21347 {
21348 XkbSelectEvents ();
21349   ;
21350   return 0;
21351 }
21352 _ACEOF
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
21356   ac_status=$?
21357   grep -v '^ *+' conftest.er1 >conftest.err
21358   rm -f conftest.er1
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
21366   ac_status=$?
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
21372   ac_status=$?
21373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374   (exit $ac_status); }; }; then
21375   ac_cv_lib_X11_XkbSelectEvents=yes
21376 else
21377   echo "$as_me: failed program was:" >&5
21378 sed 's/^/| /' conftest.$ac_ext >&5
21379
21380 ac_cv_lib_X11_XkbSelectEvents=no
21381 fi
21382 rm -f conftest.err conftest.$ac_objext \
21383       conftest$ac_exeext conftest.$ac_ext
21384 LIBS=$ac_check_lib_save_LIBS
21385 fi
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
21391 _ACEOF
21392
21393 fi
21394
21395                         fi
21396                 fi
21397
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
21403 else
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
21407 /* confdefs.h.  */
21408 _ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h.  */
21412
21413 /* Override any gcc2 internal prototype to avoid an error.  */
21414 #ifdef __cplusplus
21415 extern "C"
21416 #endif
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 ();
21420 int
21421 main ()
21422 {
21423 XineramaQueryScreens ();
21424   ;
21425   return 0;
21426 }
21427 _ACEOF
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
21431   ac_status=$?
21432   grep -v '^ *+' conftest.er1 >conftest.err
21433   rm -f conftest.er1
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
21441   ac_status=$?
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
21447   ac_status=$?
21448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449   (exit $ac_status); }; }; then
21450   ac_cv_lib_Xinerama_XineramaQueryScreens=yes
21451 else
21452   echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21454
21455 ac_cv_lib_Xinerama_XineramaQueryScreens=no
21456 fi
21457 rm -f conftest.err conftest.$ac_objext \
21458       conftest$ac_exeext conftest.$ac_ext
21459 LIBS=$ac_check_lib_save_LIBS
21460 fi
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
21467 _ACEOF
21468
21469 fi
21470
21471                 fi
21472
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
21478 else
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
21482 /* confdefs.h.  */
21483 _ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h.  */
21487
21488 /* Override any gcc2 internal prototype to avoid an error.  */
21489 #ifdef __cplusplus
21490 extern "C"
21491 #endif
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 ();
21495 int
21496 main ()
21497 {
21498 XRRSelectInput ();
21499   ;
21500   return 0;
21501 }
21502 _ACEOF
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
21506   ac_status=$?
21507   grep -v '^ *+' conftest.er1 >conftest.err
21508   rm -f conftest.er1
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
21516   ac_status=$?
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
21522   ac_status=$?
21523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524   (exit $ac_status); }; }; then
21525   ac_cv_lib_Xrandr_XRRSelectInput=yes
21526 else
21527   echo "$as_me: failed program was:" >&5
21528 sed 's/^/| /' conftest.$ac_ext >&5
21529
21530 ac_cv_lib_Xrandr_XRRSelectInput=no
21531 fi
21532 rm -f conftest.err conftest.$ac_objext \
21533       conftest$ac_exeext conftest.$ac_ext
21534 LIBS=$ac_check_lib_save_LIBS
21535 fi
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
21542 _ACEOF
21543  HAVE_LIBXRANDR="true"
21544 fi
21545
21546                 fi
21547
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
21553 else
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
21557 /* confdefs.h.  */
21558 _ACEOF
21559 cat confdefs.h >>conftest.$ac_ext
21560 cat >>conftest.$ac_ext <<_ACEOF
21561 /* end confdefs.h.  */
21562
21563 /* Override any gcc2 internal prototype to avoid an error.  */
21564 #ifdef __cplusplus
21565 extern "C"
21566 #endif
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 ();
21570 int
21571 main ()
21572 {
21573 XFixesGetCursorImage ();
21574   ;
21575   return 0;
21576 }
21577 _ACEOF
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
21581   ac_status=$?
21582   grep -v '^ *+' conftest.er1 >conftest.err
21583   rm -f conftest.er1
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
21591   ac_status=$?
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
21597   ac_status=$?
21598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599   (exit $ac_status); }; }; then
21600   ac_cv_lib_Xfixes_XFixesGetCursorImage=yes
21601 else
21602   echo "$as_me: failed program was:" >&5
21603 sed 's/^/| /' conftest.$ac_ext >&5
21604
21605 ac_cv_lib_Xfixes_XFixesGetCursorImage=no
21606 fi
21607 rm -f conftest.err conftest.$ac_objext \
21608       conftest$ac_exeext conftest.$ac_ext
21609 LIBS=$ac_check_lib_save_LIBS
21610 fi
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
21617 _ACEOF
21618  HAVE_LIBXFIXES="true"
21619 fi
21620
21621                 fi
21622
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
21628 else
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
21632 /* confdefs.h.  */
21633 _ACEOF
21634 cat confdefs.h >>conftest.$ac_ext
21635 cat >>conftest.$ac_ext <<_ACEOF
21636 /* end confdefs.h.  */
21637
21638 /* Override any gcc2 internal prototype to avoid an error.  */
21639 #ifdef __cplusplus
21640 extern "C"
21641 #endif
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 ();
21645 int
21646 main ()
21647 {
21648 XDamageQueryExtension ();
21649   ;
21650   return 0;
21651 }
21652 _ACEOF
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
21656   ac_status=$?
21657   grep -v '^ *+' conftest.er1 >conftest.err
21658   rm -f conftest.er1
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
21666   ac_status=$?
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
21672   ac_status=$?
21673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674   (exit $ac_status); }; }; then
21675   ac_cv_lib_Xdamage_XDamageQueryExtension=yes
21676 else
21677   echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21679
21680 ac_cv_lib_Xdamage_XDamageQueryExtension=no
21681 fi
21682 rm -f conftest.err conftest.$ac_objext \
21683       conftest$ac_exeext conftest.$ac_ext
21684 LIBS=$ac_check_lib_save_LIBS
21685 fi
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
21692 _ACEOF
21693  HAVE_LIBXDAMAGE="true"
21694 fi
21695
21696                 fi
21697
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" ;;
21702                         esac
21703                 fi
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" ;;
21708                         esac
21709                 fi
21710
21711                 X_LIBS="$X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS"
21712         fi
21713         # end x11vnc only.
21714 fi
21715
21716
21717
21718
21719 if test $HAVE_X != "false"; then
21720   HAVE_X_TRUE=
21721   HAVE_X_FALSE='#'
21722 else
21723   HAVE_X_TRUE='#'
21724   HAVE_X_FALSE=
21725 fi
21726
21727
21728 # x11vnc only:
21729 if test "$build_x11vnc" = "yes"; then
21730
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.
21742
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 ==========================================================================
21746 " >&5
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.
21757
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 ==========================================================================
21761 " >&2;}
21762    { (exit 1); exit 1; }; }
21763 fi
21764
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.
21772
21773 It is recommended that you install the necessary development packages
21774 for XTEST (perhaps it is named something like libxtst-dev) and run
21775 configure again.
21776 ==========================================================================
21777 " >&5
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.
21784
21785 It is recommended that you install the necessary development packages
21786 for XTEST (perhaps it is named something like libxtst-dev) and run
21787 configure again.
21788 ==========================================================================
21789 " >&2;}
21790         sleep 5
21791 fi
21792
21793 # set some ld -R nonsense
21794 #
21795 uname_s=`(uname -s) 2>/dev/null`
21796 ld_minus_R="yes"
21797 if test "x$uname_s" = "xHP-UX"; then
21798         ld_minus_R="no"
21799 elif test "x$uname_s" = "xOSF1"; then
21800         ld_minus_R="no"
21801 elif test "x$uname_s" = "xDarwin"; then
21802         ld_minus_R="no"
21803 fi
21804
21805
21806
21807
21808
21809 # Check whether --with-crypt or --without-crypt was given.
21810 if test "${with_crypt+set}" = set; then
21811   withval="$with_crypt"
21812
21813 fi;
21814 if test "x$with_crypt" != "xno"; then
21815
21816 for ac_func in crypt
21817 do
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
21823 else
21824   cat >conftest.$ac_ext <<_ACEOF
21825 /* confdefs.h.  */
21826 _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
21833
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.  */
21838
21839 #ifdef __STDC__
21840 # include <limits.h>
21841 #else
21842 # include <assert.h>
21843 #endif
21844
21845 #undef $ac_func
21846
21847 /* Override any gcc2 internal prototype to avoid an error.  */
21848 #ifdef __cplusplus
21849 extern "C"
21850 {
21851 #endif
21852 /* We use char because int might match the return type of a gcc2
21853    builtin and then its argument prototype would still apply.  */
21854 char $ac_func ();
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)
21859 choke me
21860 #else
21861 char (*f) () = $ac_func;
21862 #endif
21863 #ifdef __cplusplus
21864 }
21865 #endif
21866
21867 int
21868 main ()
21869 {
21870 return f != $ac_func;
21871   ;
21872   return 0;
21873 }
21874 _ACEOF
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
21878   ac_status=$?
21879   grep -v '^ *+' conftest.er1 >conftest.err
21880   rm -f conftest.er1
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
21888   ac_status=$?
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
21894   ac_status=$?
21895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896   (exit $ac_status); }; }; then
21897   eval "$as_ac_var=yes"
21898 else
21899   echo "$as_me: failed program was:" >&5
21900 sed 's/^/| /' conftest.$ac_ext >&5
21901
21902 eval "$as_ac_var=no"
21903 fi
21904 rm -f conftest.err conftest.$ac_objext \
21905       conftest$ac_exeext conftest.$ac_ext
21906 fi
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
21912 _ACEOF
21913  HAVE_LIBC_CRYPT="true"
21914 fi
21915 done
21916
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
21922 else
21923   ac_check_lib_save_LIBS=$LIBS
21924 LIBS="-lcrypt  $LIBS"
21925 cat >conftest.$ac_ext <<_ACEOF
21926 /* confdefs.h.  */
21927 _ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h.  */
21931
21932 /* Override any gcc2 internal prototype to avoid an error.  */
21933 #ifdef __cplusplus
21934 extern "C"
21935 #endif
21936 /* We use char because int might match the return type of a gcc2
21937    builtin and then its argument prototype would still apply.  */
21938 char crypt ();
21939 int
21940 main ()
21941 {
21942 crypt ();
21943   ;
21944   return 0;
21945 }
21946 _ACEOF
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
21950   ac_status=$?
21951   grep -v '^ *+' conftest.er1 >conftest.err
21952   rm -f conftest.er1
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
21960   ac_status=$?
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
21966   ac_status=$?
21967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968   (exit $ac_status); }; }; then
21969   ac_cv_lib_crypt_crypt=yes
21970 else
21971   echo "$as_me: failed program was:" >&5
21972 sed 's/^/| /' conftest.$ac_ext >&5
21973
21974 ac_cv_lib_crypt_crypt=no
21975 fi
21976 rm -f conftest.err conftest.$ac_objext \
21977       conftest$ac_exeext conftest.$ac_ext
21978 LIBS=$ac_check_lib_save_LIBS
21979 fi
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
21986 _ACEOF
21987
21988 fi
21989
21990         fi
21991 fi
21992
21993
21994 # some OS's need both -lssl and -lcrypto on link line:
21995
21996
21997
21998 # Check whether --with-crypto or --without-crypto was given.
21999 if test "${with_crypto+set}" = set; then
22000   withval="$with_crypto"
22001
22002 fi;
22003
22004
22005
22006
22007 # Check whether --with-ssl or --without-ssl was given.
22008 if test "${with_ssl+set}" = set; then
22009   withval="$with_ssl"
22010
22011 fi;
22012
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
22020                         :
22021                 elif test "x$GCC" = "xyes"; then
22022                         LDFLAGS="$LDFLAGS -Xlinker -R$with_ssl/lib"
22023                 else
22024                         LDFLAGS="$LDFLAGS -R$with_ssl/lib"
22025                 fi
22026         fi
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
22031 else
22032   ac_check_lib_save_LIBS=$LIBS
22033 LIBS="-lcrypto  $LIBS"
22034 cat >conftest.$ac_ext <<_ACEOF
22035 /* confdefs.h.  */
22036 _ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h.  */
22040
22041 /* Override any gcc2 internal prototype to avoid an error.  */
22042 #ifdef __cplusplus
22043 extern "C"
22044 #endif
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 ();
22048 int
22049 main ()
22050 {
22051 RAND_file_name ();
22052   ;
22053   return 0;
22054 }
22055 _ACEOF
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
22059   ac_status=$?
22060   grep -v '^ *+' conftest.er1 >conftest.err
22061   rm -f conftest.er1
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
22069   ac_status=$?
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
22075   ac_status=$?
22076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077   (exit $ac_status); }; }; then
22078   ac_cv_lib_crypto_RAND_file_name=yes
22079 else
22080   echo "$as_me: failed program was:" >&5
22081 sed 's/^/| /' conftest.$ac_ext >&5
22082
22083 ac_cv_lib_crypto_RAND_file_name=no
22084 fi
22085 rm -f conftest.err conftest.$ac_objext \
22086       conftest$ac_exeext conftest.$ac_ext
22087 LIBS=$ac_check_lib_save_LIBS
22088 fi
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
22094 _ACEOF
22095  HAVE_LIBCRYPTO="true"
22096 fi
22097
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"
22102                 fi
22103         fi
22104 fi
22105
22106
22107
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
22114 else
22115   ac_check_lib_save_LIBS=$LIBS
22116 LIBS="-lssl -lcrypto $LIBS"
22117 cat >conftest.$ac_ext <<_ACEOF
22118 /* confdefs.h.  */
22119 _ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h.  */
22123
22124 /* Override any gcc2 internal prototype to avoid an error.  */
22125 #ifdef __cplusplus
22126 extern "C"
22127 #endif
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 ();
22131 int
22132 main ()
22133 {
22134 SSL_library_init ();
22135   ;
22136   return 0;
22137 }
22138 _ACEOF
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
22142   ac_status=$?
22143   grep -v '^ *+' conftest.er1 >conftest.err
22144   rm -f conftest.er1
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
22152   ac_status=$?
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
22158   ac_status=$?
22159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160   (exit $ac_status); }; }; then
22161   ac_cv_lib_ssl_SSL_library_init=yes
22162 else
22163   echo "$as_me: failed program was:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22165
22166 ac_cv_lib_ssl_SSL_library_init=no
22167 fi
22168 rm -f conftest.err conftest.$ac_objext \
22169       conftest$ac_exeext conftest.$ac_ext
22170 LIBS=$ac_check_lib_save_LIBS
22171 fi
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
22178 _ACEOF
22179  HAVE_LIBSSL="true"
22180 fi
22181
22182         else
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
22187 else
22188   ac_check_lib_save_LIBS=$LIBS
22189 LIBS="-lssl  $LIBS"
22190 cat >conftest.$ac_ext <<_ACEOF
22191 /* confdefs.h.  */
22192 _ACEOF
22193 cat confdefs.h >>conftest.$ac_ext
22194 cat >>conftest.$ac_ext <<_ACEOF
22195 /* end confdefs.h.  */
22196
22197 /* Override any gcc2 internal prototype to avoid an error.  */
22198 #ifdef __cplusplus
22199 extern "C"
22200 #endif
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 ();
22204 int
22205 main ()
22206 {
22207 SSL_library_init ();
22208   ;
22209   return 0;
22210 }
22211 _ACEOF
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
22215   ac_status=$?
22216   grep -v '^ *+' conftest.er1 >conftest.err
22217   rm -f conftest.er1
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
22225   ac_status=$?
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
22231   ac_status=$?
22232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233   (exit $ac_status); }; }; then
22234   ac_cv_lib_ssl_SSL_library_init=yes
22235 else
22236   echo "$as_me: failed program was:" >&5
22237 sed 's/^/| /' conftest.$ac_ext >&5
22238
22239 ac_cv_lib_ssl_SSL_library_init=no
22240 fi
22241 rm -f conftest.err conftest.$ac_objext \
22242       conftest$ac_exeext conftest.$ac_ext
22243 LIBS=$ac_check_lib_save_LIBS
22244 fi
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
22248   SSL_LIBS="-lssl"
22249                         cat >>confdefs.h <<\_ACEOF
22250 #define HAVE_LIBSSL 1
22251 _ACEOF
22252  HAVE_LIBSSL="true"
22253 fi
22254
22255         fi
22256 fi
22257
22258
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 ==========================================================================
22267 " >&5
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 ==========================================================================
22275 " >&2;}
22276                 sleep 5
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
22282 else
22283   ac_check_lib_save_LIBS=$LIBS
22284 LIBS="-lssl $SSL_LIBS
22285                          $LIBS"
22286 cat >conftest.$ac_ext <<_ACEOF
22287 /* confdefs.h.  */
22288 _ACEOF
22289 cat confdefs.h >>conftest.$ac_ext
22290 cat >>conftest.$ac_ext <<_ACEOF
22291 /* end confdefs.h.  */
22292
22293 /* Override any gcc2 internal prototype to avoid an error.  */
22294 #ifdef __cplusplus
22295 extern "C"
22296 #endif
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 ();
22300 int
22301 main ()
22302 {
22303 X509_print_ex_fp ();
22304   ;
22305   return 0;
22306 }
22307 _ACEOF
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
22311   ac_status=$?
22312   grep -v '^ *+' conftest.er1 >conftest.err
22313   rm -f conftest.er1
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
22321   ac_status=$?
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
22327   ac_status=$?
22328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329   (exit $ac_status); }; }; then
22330   ac_cv_lib_ssl_X509_print_ex_fp=yes
22331 else
22332   echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22334
22335 ac_cv_lib_ssl_X509_print_ex_fp=no
22336 fi
22337 rm -f conftest.err conftest.$ac_objext \
22338       conftest$ac_exeext conftest.$ac_ext
22339 LIBS=$ac_check_lib_save_LIBS
22340 fi
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
22346 _ACEOF
22347  HAVE_X509_PRINT_EX_FP="true"
22348 fi
22349
22350         fi
22351
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
22358 fi
22359 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
22360 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
22361 else
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
22366 /* confdefs.h.  */
22367 _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>
22373 _ACEOF
22374 rm -f conftest.$ac_objext
22375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22376   (eval $ac_compile) 2>conftest.er1
22377   ac_status=$?
22378   grep -v '^ *+' conftest.er1 >conftest.err
22379   rm -f conftest.er1
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
22387   ac_status=$?
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
22393   ac_status=$?
22394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395   (exit $ac_status); }; }; then
22396   ac_header_compiler=yes
22397 else
22398   echo "$as_me: failed program was:" >&5
22399 sed 's/^/| /' conftest.$ac_ext >&5
22400
22401 ac_header_compiler=no
22402 fi
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
22406
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
22411 /* confdefs.h.  */
22412 _ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h.  */
22416 #include <linux/videodev.h>
22417 _ACEOF
22418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22419   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22420   ac_status=$?
22421   grep -v '^ *+' conftest.er1 >conftest.err
22422   rm -f conftest.er1
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
22429   else
22430     ac_cpp_err=
22431   fi
22432 else
22433   ac_cpp_err=yes
22434 fi
22435 if test -z "$ac_cpp_err"; then
22436   ac_header_preproc=yes
22437 else
22438   echo "$as_me: failed program was:" >&5
22439 sed 's/^/| /' conftest.$ac_ext >&5
22440
22441   ac_header_preproc=no
22442 fi
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
22446
22447 # So?  What about this header?
22448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22449   yes:no: )
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
22455     ;;
22456   no: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;}
22469     (
22470       cat <<\_ASBOX
22471 ## ----------------------------------------------------------- ##
22472 ## Report this to http://sourceforge.net/projects/libvncserver ##
22473 ## ----------------------------------------------------------- ##
22474 _ASBOX
22475     ) |
22476       sed "s/^/$as_me: WARNING:     /" >&2
22477     ;;
22478 esac
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
22483 else
22484   ac_cv_header_linux_videodev_h=$ac_header_preproc
22485 fi
22486 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
22487 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
22488
22489 fi
22490 if test $ac_cv_header_linux_videodev_h = yes; then
22491   cat >>confdefs.h <<\_ACEOF
22492 #define HAVE_LINUX_VIDEODEV_H 1
22493 _ACEOF
22494
22495 fi
22496
22497
22498 fi
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
22505 fi
22506 echo "$as_me:$LINENO: result: $ac_cv_header_linux_fb_h" >&5
22507 echo "${ECHO_T}$ac_cv_header_linux_fb_h" >&6
22508 else
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
22513 /* confdefs.h.  */
22514 _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>
22520 _ACEOF
22521 rm -f conftest.$ac_objext
22522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22523   (eval $ac_compile) 2>conftest.er1
22524   ac_status=$?
22525   grep -v '^ *+' conftest.er1 >conftest.err
22526   rm -f conftest.er1
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
22534   ac_status=$?
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
22540   ac_status=$?
22541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542   (exit $ac_status); }; }; then
22543   ac_header_compiler=yes
22544 else
22545   echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22547
22548 ac_header_compiler=no
22549 fi
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
22553
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
22558 /* confdefs.h.  */
22559 _ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h.  */
22563 #include <linux/fb.h>
22564 _ACEOF
22565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22566   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22567   ac_status=$?
22568   grep -v '^ *+' conftest.er1 >conftest.err
22569   rm -f conftest.er1
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
22576   else
22577     ac_cpp_err=
22578   fi
22579 else
22580   ac_cpp_err=yes
22581 fi
22582 if test -z "$ac_cpp_err"; then
22583   ac_header_preproc=yes
22584 else
22585   echo "$as_me: failed program was:" >&5
22586 sed 's/^/| /' conftest.$ac_ext >&5
22587
22588   ac_header_preproc=no
22589 fi
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
22593
22594 # So?  What about this header?
22595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22596   yes:no: )
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
22602     ;;
22603   no: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;}
22616     (
22617       cat <<\_ASBOX
22618 ## ----------------------------------------------------------- ##
22619 ## Report this to http://sourceforge.net/projects/libvncserver ##
22620 ## ----------------------------------------------------------- ##
22621 _ASBOX
22622     ) |
22623       sed "s/^/$as_me: WARNING:     /" >&2
22624     ;;
22625 esac
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
22630 else
22631   ac_cv_header_linux_fb_h=$ac_header_preproc
22632 fi
22633 echo "$as_me:$LINENO: result: $ac_cv_header_linux_fb_h" >&5
22634 echo "${ECHO_T}$ac_cv_header_linux_fb_h" >&6
22635
22636 fi
22637 if test $ac_cv_header_linux_fb_h = yes; then
22638   cat >>confdefs.h <<\_ACEOF
22639 #define HAVE_LINUX_FB_H 1
22640 _ACEOF
22641
22642 fi
22643
22644
22645 fi
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
22652 fi
22653 echo "$as_me:$LINENO: result: $ac_cv_header_linux_input_h" >&5
22654 echo "${ECHO_T}$ac_cv_header_linux_input_h" >&6
22655 else
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
22660 /* confdefs.h.  */
22661 _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>
22667 _ACEOF
22668 rm -f conftest.$ac_objext
22669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22670   (eval $ac_compile) 2>conftest.er1
22671   ac_status=$?
22672   grep -v '^ *+' conftest.er1 >conftest.err
22673   rm -f conftest.er1
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
22681   ac_status=$?
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
22687   ac_status=$?
22688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689   (exit $ac_status); }; }; then
22690   ac_header_compiler=yes
22691 else
22692   echo "$as_me: failed program was:" >&5
22693 sed 's/^/| /' conftest.$ac_ext >&5
22694
22695 ac_header_compiler=no
22696 fi
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
22700
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
22705 /* confdefs.h.  */
22706 _ACEOF
22707 cat confdefs.h >>conftest.$ac_ext
22708 cat >>conftest.$ac_ext <<_ACEOF
22709 /* end confdefs.h.  */
22710 #include <linux/input.h>
22711 _ACEOF
22712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22713   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22714   ac_status=$?
22715   grep -v '^ *+' conftest.er1 >conftest.err
22716   rm -f conftest.er1
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
22723   else
22724     ac_cpp_err=
22725   fi
22726 else
22727   ac_cpp_err=yes
22728 fi
22729 if test -z "$ac_cpp_err"; then
22730   ac_header_preproc=yes
22731 else
22732   echo "$as_me: failed program was:" >&5
22733 sed 's/^/| /' conftest.$ac_ext >&5
22734
22735   ac_header_preproc=no
22736 fi
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
22740
22741 # So?  What about this header?
22742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22743   yes:no: )
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
22749     ;;
22750   no: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;}
22763     (
22764       cat <<\_ASBOX
22765 ## ----------------------------------------------------------- ##
22766 ## Report this to http://sourceforge.net/projects/libvncserver ##
22767 ## ----------------------------------------------------------- ##
22768 _ASBOX
22769     ) |
22770       sed "s/^/$as_me: WARNING:     /" >&2
22771     ;;
22772 esac
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
22777 else
22778   ac_cv_header_linux_input_h=$ac_header_preproc
22779 fi
22780 echo "$as_me:$LINENO: result: $ac_cv_header_linux_input_h" >&5
22781 echo "${ECHO_T}$ac_cv_header_linux_input_h" >&6
22782
22783 fi
22784 if test $ac_cv_header_linux_input_h = yes; then
22785   cat >>confdefs.h <<\_ACEOF
22786 #define HAVE_LINUX_INPUT_H 1
22787 _ACEOF
22788  HAVE_LINUX_INPUT_H="true"
22789 fi
22790
22791
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
22797 else
22798   cat >conftest.$ac_ext <<_ACEOF
22799 /* confdefs.h.  */
22800 _ACEOF
22801 cat confdefs.h >>conftest.$ac_ext
22802 cat >>conftest.$ac_ext <<_ACEOF
22803 /* end confdefs.h.  */
22804 #include <linux/input.h>
22805
22806 #include <linux/uinput.h>
22807 _ACEOF
22808 rm -f conftest.$ac_objext
22809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22810   (eval $ac_compile) 2>conftest.er1
22811   ac_status=$?
22812   grep -v '^ *+' conftest.er1 >conftest.err
22813   rm -f conftest.er1
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
22821   ac_status=$?
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
22827   ac_status=$?
22828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829   (exit $ac_status); }; }; then
22830   ac_cv_header_linux_uinput_h=yes
22831 else
22832   echo "$as_me: failed program was:" >&5
22833 sed 's/^/| /' conftest.$ac_ext >&5
22834
22835 ac_cv_header_linux_uinput_h=no
22836 fi
22837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22838 fi
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
22844 _ACEOF
22845
22846 fi
22847
22848
22849         fi
22850 fi
22851
22852 if test "x$with_macosx_native" != "xno"; then
22853         cat >>confdefs.h <<\_ACEOF
22854 #define HAVE_MACOSX_NATIVE_DISPLAY 1
22855 _ACEOF
22856
22857 fi
22858
22859
22860
22861
22862 # Check whether --with-avahi or --without-avahi was given.
22863 if test "${with_avahi+set}" = set; then
22864   withval="$with_avahi"
22865
22866 fi;
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"
22873                 with_avahi=yes
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`
22877                 with_avahi=yes
22878                 echo yes
22879         else
22880                 with_avahi=no
22881                 echo no
22882         fi
22883 fi
22884 if test "x$with_avahi" = "xyes"; then
22885         cat >>confdefs.h <<\_ACEOF
22886 #define HAVE_AVAHI 1
22887 _ACEOF
22888
22889
22890
22891 fi
22892
22893 fi
22894 # end x11vnc only.
22895
22896 # Checks for libraries.
22897
22898 if test ! -z "$with_system_libvncserver" -a "x$with_system_libvncserver" != "xno"; then
22899         printf "checking for system libvncserver... "
22900         vneed="0.9.1"
22901         if test "X$VNEED" != "X"; then
22902                 vneed=$VNEED
22903         fi
22904         if test "x$with_system_libvncserver" != "xyes"; then
22905                 rflag=""
22906                 if test "x$ld_minus_R" = "xno"; then
22907                         :
22908                 elif test "x$GCC" = "xyes"; then
22909                         rflag="-Xlinker -R$with_system_libvncserver/lib"
22910                 else
22911                         rflag="-R$with_system_libvncserver/lib"
22912                 fi
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}'`
22918
22919                         if test $cscore -lt $nscore; then
22920                                 echo "no"
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
22926 new enough.
22927 ==========================================================================
22928 " >&5
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
22933 new enough.
22934 ==========================================================================
22935 " >&2;}
22936    { (exit 1); exit 1; }; }
22937                         else
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
22942                         fi
22943                 else
22944                         echo " *** cannot run $cmd *** " 1>&2
22945                         with_system_libvncserver=no
22946                         echo no
22947                 fi
22948         elif libvncserver-config --version 1>/dev/null 2>&1; then
22949                 rflag=""
22950                 rprefix=`libvncserver-config --prefix`
22951                 if test "x$ld_minus_R" = "xno"; then
22952                         :
22953                 elif test "x$GCC" = "xyes"; then
22954                         rflag=" -Xlinker -R$rprefix/lib "
22955                 else
22956                         rflag=" -R$rprefix/lib "
22957                 fi
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}'`
22961
22962                 if test $cscore -lt $nscore; then
22963                         echo "no"
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
22968 new enough.
22969 ==========================================================================
22970 " >&5
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
22975 new enough.
22976 ==========================================================================
22977 " >&2;}
22978    { (exit 1); exit 1; }; }
22979                 else
22980                         SYSTEM_LIBVNCSERVER_CFLAGS=`libvncserver-config --cflags`
22981                         SYSTEM_LIBVNCSERVER_LIBS="$rflag"`libvncserver-config --libs`
22982                         with_system_libvncserver=yes
22983                         echo yes
22984                 fi
22985         else
22986                 with_system_libvncserver=no
22987                 echo no
22988         fi
22989 fi
22990
22991 if test "x$with_system_libvncserver" = "xyes"; then
22992         cat >>confdefs.h <<\_ACEOF
22993 #define HAVE_SYSTEM_LIBVNCSERVER 1
22994 _ACEOF
22995
22996
22997
22998 fi
22999
23000
23001 if test "x$with_system_libvncserver" = "xyes"; then
23002   HAVE_SYSTEM_LIBVNCSERVER_TRUE=
23003   HAVE_SYSTEM_LIBVNCSERVER_FALSE='#'
23004 else
23005   HAVE_SYSTEM_LIBVNCSERVER_TRUE='#'
23006   HAVE_SYSTEM_LIBVNCSERVER_FALSE=
23007 fi
23008
23009
23010
23011
23012 # Check whether --with-jpeg or --without-jpeg was given.
23013 if test "${with_jpeg+set}" = set; then
23014   withval="$with_jpeg"
23015
23016 fi;
23017
23018 # At this point:
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"
23023
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
23032                         :
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"
23036                 else
23037                         LDFLAGS="$LDFLAGS -R$with_jpeg/lib"
23038                 fi
23039         fi
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
23045 fi
23046 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23047 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23048 else
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
23053 /* confdefs.h.  */
23054 _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>
23060 _ACEOF
23061 rm -f conftest.$ac_objext
23062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23063   (eval $ac_compile) 2>conftest.er1
23064   ac_status=$?
23065   grep -v '^ *+' conftest.er1 >conftest.err
23066   rm -f conftest.er1
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
23074   ac_status=$?
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
23080   ac_status=$?
23081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082   (exit $ac_status); }; }; then
23083   ac_header_compiler=yes
23084 else
23085   echo "$as_me: failed program was:" >&5
23086 sed 's/^/| /' conftest.$ac_ext >&5
23087
23088 ac_header_compiler=no
23089 fi
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
23093
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
23098 /* confdefs.h.  */
23099 _ACEOF
23100 cat confdefs.h >>conftest.$ac_ext
23101 cat >>conftest.$ac_ext <<_ACEOF
23102 /* end confdefs.h.  */
23103 #include <jpeglib.h>
23104 _ACEOF
23105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23106   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23107   ac_status=$?
23108   grep -v '^ *+' conftest.er1 >conftest.err
23109   rm -f conftest.er1
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
23116   else
23117     ac_cpp_err=
23118   fi
23119 else
23120   ac_cpp_err=yes
23121 fi
23122 if test -z "$ac_cpp_err"; then
23123   ac_header_preproc=yes
23124 else
23125   echo "$as_me: failed program was:" >&5
23126 sed 's/^/| /' conftest.$ac_ext >&5
23127
23128   ac_header_preproc=no
23129 fi
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
23133
23134 # So?  What about this header?
23135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23136   yes:no: )
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
23142     ;;
23143   no: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;}
23156     (
23157       cat <<\_ASBOX
23158 ## ----------------------------------------------------------- ##
23159 ## Report this to http://sourceforge.net/projects/libvncserver ##
23160 ## ----------------------------------------------------------- ##
23161 _ASBOX
23162     ) |
23163       sed "s/^/$as_me: WARNING:     /" >&2
23164     ;;
23165 esac
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
23170 else
23171   ac_cv_header_jpeglib_h=$ac_header_preproc
23172 fi
23173 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23174 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23175
23176 fi
23177 if test $ac_cv_header_jpeglib_h = yes; then
23178   HAVE_JPEGLIB_H="true"
23179 fi
23180
23181
23182         if test "x$HAVE_JPEGLIB_H" = "xtrue"; then
23183
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
23188 else
23189   ac_check_lib_save_LIBS=$LIBS
23190 LIBS="-ljpeg  $LIBS"
23191 cat >conftest.$ac_ext <<_ACEOF
23192 /* confdefs.h.  */
23193 _ACEOF
23194 cat confdefs.h >>conftest.$ac_ext
23195 cat >>conftest.$ac_ext <<_ACEOF
23196 /* end confdefs.h.  */
23197
23198 /* Override any gcc2 internal prototype to avoid an error.  */
23199 #ifdef __cplusplus
23200 extern "C"
23201 #endif
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 ();
23205 int
23206 main ()
23207 {
23208 jpeg_CreateCompress ();
23209   ;
23210   return 0;
23211 }
23212 _ACEOF
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
23216   ac_status=$?
23217   grep -v '^ *+' conftest.er1 >conftest.err
23218   rm -f conftest.er1
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
23226   ac_status=$?
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
23232   ac_status=$?
23233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234   (exit $ac_status); }; }; then
23235   ac_cv_lib_jpeg_jpeg_CreateCompress=yes
23236 else
23237   echo "$as_me: failed program was:" >&5
23238 sed 's/^/| /' conftest.$ac_ext >&5
23239
23240 ac_cv_lib_jpeg_jpeg_CreateCompress=no
23241 fi
23242 rm -f conftest.err conftest.$ac_objext \
23243       conftest$ac_exeext conftest.$ac_ext
23244 LIBS=$ac_check_lib_save_LIBS
23245 fi
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
23251 _ACEOF
23252
23253   LIBS="-ljpeg $LIBS"
23254
23255 else
23256   HAVE_JPEGLIB_H=""
23257 fi
23258
23259         fi
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"
23265                 fi
23266         fi
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 ==========================================================================
23278 " >&5
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 ==========================================================================
23288 " >&2;}
23289                         sleep 5
23290                 fi
23291         fi
23292 fi
23293
23294
23295 # Check whether --with-libz or --without-libz was given.
23296 if test "${with_libz+set}" = set; then
23297   withval="$with_libz"
23298
23299 fi;
23300
23301 # Check whether --with-zlib or --without-zlib was given.
23302 if test "${with_zlib+set}" = set; then
23303   withval="$with_zlib"
23304
23305 fi;
23306
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
23314                         :
23315                 elif test "x$GCC" = "xyes"; then
23316                         LDFLAGS="$LDFLAGS -Xlinker -R$with_zlib/lib"
23317                 else
23318                         LDFLAGS="$LDFLAGS -R$with_zlib/lib"
23319                 fi
23320         fi
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
23326 fi
23327 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23328 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23329 else
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
23334 /* confdefs.h.  */
23335 _ACEOF
23336 cat confdefs.h >>conftest.$ac_ext
23337 cat >>conftest.$ac_ext <<_ACEOF
23338 /* end confdefs.h.  */
23339 $ac_includes_default
23340 #include <zlib.h>
23341 _ACEOF
23342 rm -f conftest.$ac_objext
23343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23344   (eval $ac_compile) 2>conftest.er1
23345   ac_status=$?
23346   grep -v '^ *+' conftest.er1 >conftest.err
23347   rm -f conftest.er1
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
23355   ac_status=$?
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
23361   ac_status=$?
23362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363   (exit $ac_status); }; }; then
23364   ac_header_compiler=yes
23365 else
23366   echo "$as_me: failed program was:" >&5
23367 sed 's/^/| /' conftest.$ac_ext >&5
23368
23369 ac_header_compiler=no
23370 fi
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
23374
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
23379 /* confdefs.h.  */
23380 _ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h.  */
23384 #include <zlib.h>
23385 _ACEOF
23386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23387   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23388   ac_status=$?
23389   grep -v '^ *+' conftest.er1 >conftest.err
23390   rm -f conftest.er1
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
23397   else
23398     ac_cpp_err=
23399   fi
23400 else
23401   ac_cpp_err=yes
23402 fi
23403 if test -z "$ac_cpp_err"; then
23404   ac_header_preproc=yes
23405 else
23406   echo "$as_me: failed program was:" >&5
23407 sed 's/^/| /' conftest.$ac_ext >&5
23408
23409   ac_header_preproc=no
23410 fi
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
23414
23415 # So?  What about this header?
23416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23417   yes:no: )
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
23423     ;;
23424   no: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;}
23437     (
23438       cat <<\_ASBOX
23439 ## ----------------------------------------------------------- ##
23440 ## Report this to http://sourceforge.net/projects/libvncserver ##
23441 ## ----------------------------------------------------------- ##
23442 _ASBOX
23443     ) |
23444       sed "s/^/$as_me: WARNING:     /" >&2
23445     ;;
23446 esac
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
23451 else
23452   ac_cv_header_zlib_h=$ac_header_preproc
23453 fi
23454 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23455 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23456
23457 fi
23458 if test $ac_cv_header_zlib_h = yes; then
23459   HAVE_ZLIB_H="true"
23460 fi
23461
23462
23463         if test "x$HAVE_ZLIB_H" = "xtrue"; then
23464
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
23469 else
23470   ac_check_lib_save_LIBS=$LIBS
23471 LIBS="-lz  $LIBS"
23472 cat >conftest.$ac_ext <<_ACEOF
23473 /* confdefs.h.  */
23474 _ACEOF
23475 cat confdefs.h >>conftest.$ac_ext
23476 cat >>conftest.$ac_ext <<_ACEOF
23477 /* end confdefs.h.  */
23478
23479 /* Override any gcc2 internal prototype to avoid an error.  */
23480 #ifdef __cplusplus
23481 extern "C"
23482 #endif
23483 /* We use char because int might match the return type of a gcc2
23484    builtin and then its argument prototype would still apply.  */
23485 char deflate ();
23486 int
23487 main ()
23488 {
23489 deflate ();
23490   ;
23491   return 0;
23492 }
23493 _ACEOF
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
23497   ac_status=$?
23498   grep -v '^ *+' conftest.er1 >conftest.err
23499   rm -f conftest.er1
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
23507   ac_status=$?
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
23513   ac_status=$?
23514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515   (exit $ac_status); }; }; then
23516   ac_cv_lib_z_deflate=yes
23517 else
23518   echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23520
23521 ac_cv_lib_z_deflate=no
23522 fi
23523 rm -f conftest.err conftest.$ac_objext \
23524       conftest$ac_exeext conftest.$ac_ext
23525 LIBS=$ac_check_lib_save_LIBS
23526 fi
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
23532 _ACEOF
23533
23534   LIBS="-lz $LIBS"
23535
23536 else
23537   HAVE_ZLIB_H=""
23538 fi
23539
23540         fi
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"
23545                 fi
23546         fi
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 ==========================================================================
23557 " >&5
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 ==========================================================================
23566 " >&2;}
23567                         sleep 5
23568                 fi
23569         fi
23570 fi
23571
23572
23573 # Check whether --with-pthread or --without-pthread was given.
23574 if test "${with_pthread+set}" = set; then
23575   withval="$with_pthread"
23576
23577 fi;
23578
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
23585 fi
23586 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23587 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
23588 else
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
23593 /* confdefs.h.  */
23594 _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>
23600 _ACEOF
23601 rm -f conftest.$ac_objext
23602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23603   (eval $ac_compile) 2>conftest.er1
23604   ac_status=$?
23605   grep -v '^ *+' conftest.er1 >conftest.err
23606   rm -f conftest.er1
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
23614   ac_status=$?
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
23620   ac_status=$?
23621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622   (exit $ac_status); }; }; then
23623   ac_header_compiler=yes
23624 else
23625   echo "$as_me: failed program was:" >&5
23626 sed 's/^/| /' conftest.$ac_ext >&5
23627
23628 ac_header_compiler=no
23629 fi
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
23633
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
23638 /* confdefs.h.  */
23639 _ACEOF
23640 cat confdefs.h >>conftest.$ac_ext
23641 cat >>conftest.$ac_ext <<_ACEOF
23642 /* end confdefs.h.  */
23643 #include <pthread.h>
23644 _ACEOF
23645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23646   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23647   ac_status=$?
23648   grep -v '^ *+' conftest.er1 >conftest.err
23649   rm -f conftest.er1
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
23656   else
23657     ac_cpp_err=
23658   fi
23659 else
23660   ac_cpp_err=yes
23661 fi
23662 if test -z "$ac_cpp_err"; then
23663   ac_header_preproc=yes
23664 else
23665   echo "$as_me: failed program was:" >&5
23666 sed 's/^/| /' conftest.$ac_ext >&5
23667
23668   ac_header_preproc=no
23669 fi
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
23673
23674 # So?  What about this header?
23675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23676   yes:no: )
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
23682     ;;
23683   no: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;}
23696     (
23697       cat <<\_ASBOX
23698 ## ----------------------------------------------------------- ##
23699 ## Report this to http://sourceforge.net/projects/libvncserver ##
23700 ## ----------------------------------------------------------- ##
23701 _ASBOX
23702     ) |
23703       sed "s/^/$as_me: WARNING:     /" >&2
23704     ;;
23705 esac
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
23710 else
23711   ac_cv_header_pthread_h=$ac_header_preproc
23712 fi
23713 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23714 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
23715
23716 fi
23717 if test $ac_cv_header_pthread_h = yes; then
23718   HAVE_PTHREAD_H="true"
23719 fi
23720
23721
23722         if test ! -z "$HAVE_PTHREAD_H"; then
23723
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
23728 else
23729   ac_check_lib_save_LIBS=$LIBS
23730 LIBS="-lpthread  $LIBS"
23731 cat >conftest.$ac_ext <<_ACEOF
23732 /* confdefs.h.  */
23733 _ACEOF
23734 cat confdefs.h >>conftest.$ac_ext
23735 cat >>conftest.$ac_ext <<_ACEOF
23736 /* end confdefs.h.  */
23737
23738 /* Override any gcc2 internal prototype to avoid an error.  */
23739 #ifdef __cplusplus
23740 extern "C"
23741 #endif
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 ();
23745 int
23746 main ()
23747 {
23748 pthread_mutex_lock ();
23749   ;
23750   return 0;
23751 }
23752 _ACEOF
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
23756   ac_status=$?
23757   grep -v '^ *+' conftest.er1 >conftest.err
23758   rm -f conftest.er1
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
23766   ac_status=$?
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
23772   ac_status=$?
23773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774   (exit $ac_status); }; }; then
23775   ac_cv_lib_pthread_pthread_mutex_lock=yes
23776 else
23777   echo "$as_me: failed program was:" >&5
23778 sed 's/^/| /' conftest.$ac_ext >&5
23779
23780 ac_cv_lib_pthread_pthread_mutex_lock=no
23781 fi
23782 rm -f conftest.err conftest.$ac_objext \
23783       conftest$ac_exeext conftest.$ac_ext
23784 LIBS=$ac_check_lib_save_LIBS
23785 fi
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
23791 _ACEOF
23792
23793   LIBS="-lpthread $LIBS"
23794
23795 fi
23796
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
23801 else
23802   ac_check_lib_save_LIBS=$LIBS
23803 LIBS="-lpthread  $LIBS"
23804 cat >conftest.$ac_ext <<_ACEOF
23805 /* confdefs.h.  */
23806 _ACEOF
23807 cat confdefs.h >>conftest.$ac_ext
23808 cat >>conftest.$ac_ext <<_ACEOF
23809 /* end confdefs.h.  */
23810
23811 /* Override any gcc2 internal prototype to avoid an error.  */
23812 #ifdef __cplusplus
23813 extern "C"
23814 #endif
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 ();
23818 int
23819 main ()
23820 {
23821 pthread_mutex_lock ();
23822   ;
23823   return 0;
23824 }
23825 _ACEOF
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
23829   ac_status=$?
23830   grep -v '^ *+' conftest.er1 >conftest.err
23831   rm -f conftest.er1
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
23839   ac_status=$?
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
23845   ac_status=$?
23846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847   (exit $ac_status); }; }; then
23848   ac_cv_lib_pthread_pthread_mutex_lock=yes
23849 else
23850   echo "$as_me: failed program was:" >&5
23851 sed 's/^/| /' conftest.$ac_ext >&5
23852
23853 ac_cv_lib_pthread_pthread_mutex_lock=no
23854 fi
23855 rm -f conftest.err conftest.$ac_objext \
23856       conftest$ac_exeext conftest.$ac_ext
23857 LIBS=$ac_check_lib_save_LIBS
23858 fi
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"
23863 fi
23864
23865         fi
23866 fi
23867
23868
23869 if test ! -z "$HAVE_LIBPTHREAD"; then
23870   HAVE_LIBPTHREAD_TRUE=
23871   HAVE_LIBPTHREAD_FALSE='#'
23872 else
23873   HAVE_LIBPTHREAD_TRUE='#'
23874   HAVE_LIBPTHREAD_FALSE=
23875 fi
23876
23877
23878 # tightvnc-filetransfer implemented using threads:
23879 if test -z "$HAVE_LIBPTHREAD"; then
23880         with_tightvnc_filetransfer=""
23881 fi
23882 if test "x$with_tightvnc_filetransfer" = "xyes"; then
23883         cat >>confdefs.h <<\_ACEOF
23884 #define WITH_TIGHTVNC_FILETRANSFER 1
23885 _ACEOF
23886
23887 fi
23888
23889
23890 if test "$with_tightvnc_filetransfer" = "yes"; then
23891   WITH_TIGHTVNC_FILETRANSFER_TRUE=
23892   WITH_TIGHTVNC_FILETRANSFER_FALSE='#'
23893 else
23894   WITH_TIGHTVNC_FILETRANSFER_TRUE='#'
23895   WITH_TIGHTVNC_FILETRANSFER_FALSE=
23896 fi
23897
23898
23899
23900
23901 if test ! -z "$HAVE_ZLIB_H"; then
23902   HAVE_LIBZ_TRUE=
23903   HAVE_LIBZ_FALSE='#'
23904 else
23905   HAVE_LIBZ_TRUE='#'
23906   HAVE_LIBZ_FALSE=
23907 fi
23908
23909
23910
23911 if test ! -z "$HAVE_JPEGLIB_H"; then
23912   HAVE_LIBJPEG_TRUE=
23913   HAVE_LIBJPEG_FALSE='#'
23914 else
23915   HAVE_LIBJPEG_TRUE='#'
23916   HAVE_LIBJPEG_FALSE=
23917 fi
23918
23919
23920 if test -z "$with_sdl"; then
23921         if sdl-config --version >/dev/null 2>&1; then
23922                 with_sdl=yes
23923                 SDL_CFLAGS=`sdl-config --cflags`
23924                 SDL_LIBS=`sdl-config --libs`
23925         else
23926                 with_sdl=no
23927         fi
23928 fi
23929
23930
23931 if test "x$with_sdl" = "xyes"; then
23932   HAVE_LIBSDL_TRUE=
23933   HAVE_LIBSDL_FALSE='#'
23934 else
23935   HAVE_LIBSDL_TRUE='#'
23936   HAVE_LIBSDL_FALSE=
23937 fi
23938
23939
23940
23941
23942 MINGW=`uname -s | grep MINGW 2>/dev/null`
23943
23944
23945 if test ! -z "$MINGW" ; then
23946   MINGW_TRUE=
23947   MINGW_FALSE='#'
23948 else
23949   MINGW_TRUE='#'
23950   MINGW_FALSE=
23951 fi
23952
23953 if test ! -z "$MINGW"; then
23954         WSOCKLIB="-lws2_32"
23955 fi
23956
23957
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
23963 else
23964   cat >conftest.$ac_ext <<_ACEOF
23965 /* confdefs.h.  */
23966 _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>
23973 #include <float.h>
23974
23975 int
23976 main ()
23977 {
23978
23979   ;
23980   return 0;
23981 }
23982 _ACEOF
23983 rm -f conftest.$ac_objext
23984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23985   (eval $ac_compile) 2>conftest.er1
23986   ac_status=$?
23987   grep -v '^ *+' conftest.er1 >conftest.err
23988   rm -f conftest.er1
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
23996   ac_status=$?
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
24002   ac_status=$?
24003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004   (exit $ac_status); }; }; then
24005   ac_cv_header_stdc=yes
24006 else
24007   echo "$as_me: failed program was:" >&5
24008 sed 's/^/| /' conftest.$ac_ext >&5
24009
24010 ac_cv_header_stdc=no
24011 fi
24012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24013
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
24017 /* confdefs.h.  */
24018 _ACEOF
24019 cat confdefs.h >>conftest.$ac_ext
24020 cat >>conftest.$ac_ext <<_ACEOF
24021 /* end confdefs.h.  */
24022 #include <string.h>
24023
24024 _ACEOF
24025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24026   $EGREP "memchr" >/dev/null 2>&1; then
24027   :
24028 else
24029   ac_cv_header_stdc=no
24030 fi
24031 rm -f conftest*
24032
24033 fi
24034
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
24038 /* confdefs.h.  */
24039 _ACEOF
24040 cat confdefs.h >>conftest.$ac_ext
24041 cat >>conftest.$ac_ext <<_ACEOF
24042 /* end confdefs.h.  */
24043 #include <stdlib.h>
24044
24045 _ACEOF
24046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24047   $EGREP "free" >/dev/null 2>&1; then
24048   :
24049 else
24050   ac_cv_header_stdc=no
24051 fi
24052 rm -f conftest*
24053
24054 fi
24055
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
24059   :
24060 else
24061   cat >conftest.$ac_ext <<_ACEOF
24062 /* confdefs.h.  */
24063 _ACEOF
24064 cat confdefs.h >>conftest.$ac_ext
24065 cat >>conftest.$ac_ext <<_ACEOF
24066 /* end confdefs.h.  */
24067 #include <ctype.h>
24068 #if ((' ' & 0x0FF) == 0x020)
24069 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24070 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24071 #else
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))
24077 #endif
24078
24079 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24080 int
24081 main ()
24082 {
24083   int i;
24084   for (i = 0; i < 256; i++)
24085     if (XOR (islower (i), ISLOWER (i))
24086         || toupper (i) != TOUPPER (i))
24087       exit(2);
24088   exit (0);
24089 }
24090 _ACEOF
24091 rm -f conftest$ac_exeext
24092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24093   (eval $ac_link) 2>&5
24094   ac_status=$?
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
24099   ac_status=$?
24100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101   (exit $ac_status); }; }; then
24102   :
24103 else
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
24107
24108 ( exit $ac_status )
24109 ac_cv_header_stdc=no
24110 fi
24111 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24112 fi
24113 fi
24114 fi
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
24118
24119 cat >>confdefs.h <<\_ACEOF
24120 #define STDC_HEADERS 1
24121 _ACEOF
24122
24123 fi
24124
24125
24126
24127
24128
24129
24130
24131
24132
24133
24134
24135
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
24137 do
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
24144 fi
24145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24147 else
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
24152 /* confdefs.h.  */
24153 _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>
24159 _ACEOF
24160 rm -f conftest.$ac_objext
24161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24162   (eval $ac_compile) 2>conftest.er1
24163   ac_status=$?
24164   grep -v '^ *+' conftest.er1 >conftest.err
24165   rm -f conftest.er1
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
24173   ac_status=$?
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
24179   ac_status=$?
24180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181   (exit $ac_status); }; }; then
24182   ac_header_compiler=yes
24183 else
24184   echo "$as_me: failed program was:" >&5
24185 sed 's/^/| /' conftest.$ac_ext >&5
24186
24187 ac_header_compiler=no
24188 fi
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
24192
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
24197 /* confdefs.h.  */
24198 _ACEOF
24199 cat confdefs.h >>conftest.$ac_ext
24200 cat >>conftest.$ac_ext <<_ACEOF
24201 /* end confdefs.h.  */
24202 #include <$ac_header>
24203 _ACEOF
24204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24205   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24206   ac_status=$?
24207   grep -v '^ *+' conftest.er1 >conftest.err
24208   rm -f conftest.er1
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
24215   else
24216     ac_cpp_err=
24217   fi
24218 else
24219   ac_cpp_err=yes
24220 fi
24221 if test -z "$ac_cpp_err"; then
24222   ac_header_preproc=yes
24223 else
24224   echo "$as_me: failed program was:" >&5
24225 sed 's/^/| /' conftest.$ac_ext >&5
24226
24227   ac_header_preproc=no
24228 fi
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
24232
24233 # So?  What about this header?
24234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24235   yes:no: )
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
24241     ;;
24242   no: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;}
24255     (
24256       cat <<\_ASBOX
24257 ## ----------------------------------------------------------- ##
24258 ## Report this to http://sourceforge.net/projects/libvncserver ##
24259 ## ----------------------------------------------------------- ##
24260 _ASBOX
24261     ) |
24262       sed "s/^/$as_me: WARNING:     /" >&2
24263     ;;
24264 esac
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
24269 else
24270   eval "$as_ac_Header=\$ac_header_preproc"
24271 fi
24272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24274
24275 fi
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
24279 _ACEOF
24280
24281 fi
24282
24283 done
24284
24285
24286 # x11vnc only:
24287 if test "$build_x11vnc" = "yes"; then
24288
24289
24290
24291
24292
24293
24294 for ac_header in pwd.h sys/wait.h utmpx.h termios.h sys/ioctl.h sys/stropts.h
24295 do
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
24302 fi
24303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24305 else
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
24310 /* confdefs.h.  */
24311 _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>
24317 _ACEOF
24318 rm -f conftest.$ac_objext
24319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24320   (eval $ac_compile) 2>conftest.er1
24321   ac_status=$?
24322   grep -v '^ *+' conftest.er1 >conftest.err
24323   rm -f conftest.er1
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
24331   ac_status=$?
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
24337   ac_status=$?
24338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339   (exit $ac_status); }; }; then
24340   ac_header_compiler=yes
24341 else
24342   echo "$as_me: failed program was:" >&5
24343 sed 's/^/| /' conftest.$ac_ext >&5
24344
24345 ac_header_compiler=no
24346 fi
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
24350
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
24355 /* confdefs.h.  */
24356 _ACEOF
24357 cat confdefs.h >>conftest.$ac_ext
24358 cat >>conftest.$ac_ext <<_ACEOF
24359 /* end confdefs.h.  */
24360 #include <$ac_header>
24361 _ACEOF
24362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24363   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24364   ac_status=$?
24365   grep -v '^ *+' conftest.er1 >conftest.err
24366   rm -f conftest.er1
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
24373   else
24374     ac_cpp_err=
24375   fi
24376 else
24377   ac_cpp_err=yes
24378 fi
24379 if test -z "$ac_cpp_err"; then
24380   ac_header_preproc=yes
24381 else
24382   echo "$as_me: failed program was:" >&5
24383 sed 's/^/| /' conftest.$ac_ext >&5
24384
24385   ac_header_preproc=no
24386 fi
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
24390
24391 # So?  What about this header?
24392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24393   yes:no: )
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
24399     ;;
24400   no: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;}
24413     (
24414       cat <<\_ASBOX
24415 ## ----------------------------------------------------------- ##
24416 ## Report this to http://sourceforge.net/projects/libvncserver ##
24417 ## ----------------------------------------------------------- ##
24418 _ASBOX
24419     ) |
24420       sed "s/^/$as_me: WARNING:     /" >&2
24421     ;;
24422 esac
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
24427 else
24428   eval "$as_ac_Header=\$ac_header_preproc"
24429 fi
24430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24432
24433 fi
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
24437 _ACEOF
24438
24439 fi
24440
24441 done
24442
24443 fi
24444
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
24450 else
24451   cat >conftest.$ac_ext <<_ACEOF
24452 /* confdefs.h.  */
24453 _ACEOF
24454 cat confdefs.h >>conftest.$ac_ext
24455 cat >>conftest.$ac_ext <<_ACEOF
24456 /* end confdefs.h.  */
24457
24458 int
24459 main ()
24460 {
24461 /* FIXME: Include the comments suggested by Paul. */
24462 #ifndef __cplusplus
24463   /* Ultrix mips cc rejects this.  */
24464   typedef int charset[2];
24465   const charset x;
24466   /* SunOS 4.1.1 cc rejects this.  */
24467   char const *const *ccp;
24468   char **p;
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
24475      expression */
24476   const char *g = "string";
24477   ccp = &g + (g ? g-g : 0);
24478   /* HPUX 7.0 cc rejects these. */
24479   ++ccp;
24480   p = (char**) ccp;
24481   ccp = (char const *const *) p;
24482   { /* SCO 3.2v4 cc rejects this.  */
24483     char *t;
24484     char const *s = 0 ? (char *) 0 : (char const *) 0;
24485
24486     *t++ = 0;
24487   }
24488   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24489     int x[] = {25, 17};
24490     const int *foo = &x[0];
24491     ++foo;
24492   }
24493   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24494     typedef const int *iptr;
24495     iptr p = 0;
24496     ++p;
24497   }
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;
24502   }
24503   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24504     const int foo = 10;
24505   }
24506 #endif
24507
24508   ;
24509   return 0;
24510 }
24511 _ACEOF
24512 rm -f conftest.$ac_objext
24513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24514   (eval $ac_compile) 2>conftest.er1
24515   ac_status=$?
24516   grep -v '^ *+' conftest.er1 >conftest.err
24517   rm -f conftest.er1
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
24525   ac_status=$?
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
24531   ac_status=$?
24532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533   (exit $ac_status); }; }; then
24534   ac_cv_c_const=yes
24535 else
24536   echo "$as_me: failed program was:" >&5
24537 sed 's/^/| /' conftest.$ac_ext >&5
24538
24539 ac_cv_c_const=no
24540 fi
24541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24542 fi
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
24546
24547 cat >>confdefs.h <<\_ACEOF
24548 #define const
24549 _ACEOF
24550
24551 fi
24552
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
24557 else
24558   ac_cv_c_inline=no
24559 for ac_kw in inline __inline__ __inline; do
24560   cat >conftest.$ac_ext <<_ACEOF
24561 /* confdefs.h.  */
24562 _ACEOF
24563 cat confdefs.h >>conftest.$ac_ext
24564 cat >>conftest.$ac_ext <<_ACEOF
24565 /* end confdefs.h.  */
24566 #ifndef __cplusplus
24567 typedef int foo_t;
24568 static $ac_kw foo_t static_foo () {return 0; }
24569 $ac_kw foo_t foo () {return 0; }
24570 #endif
24571
24572 _ACEOF
24573 rm -f conftest.$ac_objext
24574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24575   (eval $ac_compile) 2>conftest.er1
24576   ac_status=$?
24577   grep -v '^ *+' conftest.er1 >conftest.err
24578   rm -f conftest.er1
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
24586   ac_status=$?
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
24592   ac_status=$?
24593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594   (exit $ac_status); }; }; then
24595   ac_cv_c_inline=$ac_kw; break
24596 else
24597   echo "$as_me: failed program was:" >&5
24598 sed 's/^/| /' conftest.$ac_ext >&5
24599
24600 fi
24601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24602 done
24603
24604 fi
24605 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24606 echo "${ECHO_T}$ac_cv_c_inline" >&6
24607
24608
24609 case $ac_cv_c_inline in
24610   inline | yes) ;;
24611   *)
24612     case $ac_cv_c_inline in
24613       no) ac_val=;;
24614       *) ac_val=$ac_cv_c_inline;;
24615     esac
24616     cat >>confdefs.h <<_ACEOF
24617 #ifndef __cplusplus
24618 #define inline $ac_val
24619 #endif
24620 _ACEOF
24621     ;;
24622 esac
24623
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
24628 else
24629   # See if sys/param.h defines the BYTE_ORDER macro.
24630 cat >conftest.$ac_ext <<_ACEOF
24631 /* confdefs.h.  */
24632 _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>
24638
24639 int
24640 main ()
24641 {
24642 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24643  bogus endian macros
24644 #endif
24645
24646   ;
24647   return 0;
24648 }
24649 _ACEOF
24650 rm -f conftest.$ac_objext
24651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24652   (eval $ac_compile) 2>conftest.er1
24653   ac_status=$?
24654   grep -v '^ *+' conftest.er1 >conftest.err
24655   rm -f conftest.er1
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
24663   ac_status=$?
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
24669   ac_status=$?
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
24674 /* confdefs.h.  */
24675 _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>
24681
24682 int
24683 main ()
24684 {
24685 #if BYTE_ORDER != BIG_ENDIAN
24686  not big endian
24687 #endif
24688
24689   ;
24690   return 0;
24691 }
24692 _ACEOF
24693 rm -f conftest.$ac_objext
24694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24695   (eval $ac_compile) 2>conftest.er1
24696   ac_status=$?
24697   grep -v '^ *+' conftest.er1 >conftest.err
24698   rm -f conftest.er1
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
24706   ac_status=$?
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
24712   ac_status=$?
24713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714   (exit $ac_status); }; }; then
24715   ac_cv_c_bigendian=yes
24716 else
24717   echo "$as_me: failed program was:" >&5
24718 sed 's/^/| /' conftest.$ac_ext >&5
24719
24720 ac_cv_c_bigendian=no
24721 fi
24722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24723 else
24724   echo "$as_me: failed program was:" >&5
24725 sed 's/^/| /' conftest.$ac_ext >&5
24726
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
24732 /* confdefs.h.  */
24733 _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; }
24743 int
24744 main ()
24745 {
24746  _ascii (); _ebcdic ();
24747   ;
24748   return 0;
24749 }
24750 _ACEOF
24751 rm -f conftest.$ac_objext
24752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24753   (eval $ac_compile) 2>conftest.er1
24754   ac_status=$?
24755   grep -v '^ *+' conftest.er1 >conftest.err
24756   rm -f conftest.er1
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
24764   ac_status=$?
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
24770   ac_status=$?
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
24775 fi
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
24779   else
24780     # finding both strings is unlikely to happen, but who knows?
24781     ac_cv_c_bigendian=unknown
24782   fi
24783 fi
24784 else
24785   echo "$as_me: failed program was:" >&5
24786 sed 's/^/| /' conftest.$ac_ext >&5
24787
24788 fi
24789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24790 else
24791   cat >conftest.$ac_ext <<_ACEOF
24792 /* confdefs.h.  */
24793 _ACEOF
24794 cat confdefs.h >>conftest.$ac_ext
24795 cat >>conftest.$ac_ext <<_ACEOF
24796 /* end confdefs.h.  */
24797 int
24798 main ()
24799 {
24800   /* Are we little or big endian?  From Harbison&Steele.  */
24801   union
24802   {
24803     long l;
24804     char c[sizeof (long)];
24805   } u;
24806   u.l = 1;
24807   exit (u.c[sizeof (long) - 1] == 1);
24808 }
24809 _ACEOF
24810 rm -f conftest$ac_exeext
24811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24812   (eval $ac_link) 2>&5
24813   ac_status=$?
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
24818   ac_status=$?
24819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820   (exit $ac_status); }; }; then
24821   ac_cv_c_bigendian=no
24822 else
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
24826
24827 ( exit $ac_status )
24828 ac_cv_c_bigendian=yes
24829 fi
24830 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24831 fi
24832 fi
24833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24834 fi
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
24838   yes)
24839
24840 cat >>confdefs.h <<\_ACEOF
24841 #define WORDS_BIGENDIAN 1
24842 _ACEOF
24843  ;;
24844   no)
24845      ;;
24846   *)
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; }; } ;;
24852 esac
24853
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
24858 else
24859   cat >conftest.$ac_ext <<_ACEOF
24860 /* confdefs.h.  */
24861 _ACEOF
24862 cat confdefs.h >>conftest.$ac_ext
24863 cat >>conftest.$ac_ext <<_ACEOF
24864 /* end confdefs.h.  */
24865 $ac_includes_default
24866 int
24867 main ()
24868 {
24869 if ((size_t *) 0)
24870   return 0;
24871 if (sizeof (size_t))
24872   return 0;
24873   ;
24874   return 0;
24875 }
24876 _ACEOF
24877 rm -f conftest.$ac_objext
24878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24879   (eval $ac_compile) 2>conftest.er1
24880   ac_status=$?
24881   grep -v '^ *+' conftest.er1 >conftest.err
24882   rm -f conftest.er1
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
24890   ac_status=$?
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
24896   ac_status=$?
24897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898   (exit $ac_status); }; }; then
24899   ac_cv_type_size_t=yes
24900 else
24901   echo "$as_me: failed program was:" >&5
24902 sed 's/^/| /' conftest.$ac_ext >&5
24903
24904 ac_cv_type_size_t=no
24905 fi
24906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24907 fi
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
24911   :
24912 else
24913
24914 cat >>confdefs.h <<_ACEOF
24915 #define size_t unsigned
24916 _ACEOF
24917
24918 fi
24919
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
24924 else
24925   cat >conftest.$ac_ext <<_ACEOF
24926 /* confdefs.h.  */
24927 _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>
24933 #include <time.h>
24934
24935 int
24936 main ()
24937 {
24938 if ((struct tm *) 0)
24939 return 0;
24940   ;
24941   return 0;
24942 }
24943 _ACEOF
24944 rm -f conftest.$ac_objext
24945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24946   (eval $ac_compile) 2>conftest.er1
24947   ac_status=$?
24948   grep -v '^ *+' conftest.er1 >conftest.err
24949   rm -f conftest.er1
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
24957   ac_status=$?
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
24963   ac_status=$?
24964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965   (exit $ac_status); }; }; then
24966   ac_cv_header_time=yes
24967 else
24968   echo "$as_me: failed program was:" >&5
24969 sed 's/^/| /' conftest.$ac_ext >&5
24970
24971 ac_cv_header_time=no
24972 fi
24973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24974 fi
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
24978
24979 cat >>confdefs.h <<\_ACEOF
24980 #define TIME_WITH_SYS_TIME 1
24981 _ACEOF
24982
24983 fi
24984
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
24989 else
24990   cat >conftest.$ac_ext <<_ACEOF
24991 /* confdefs.h.  */
24992 _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)
25000 #endif
25001 #ifndef WIFEXITED
25002 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25003 #endif
25004
25005 int
25006 main ()
25007 {
25008   int s;
25009   wait (&s);
25010   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25011   ;
25012   return 0;
25013 }
25014 _ACEOF
25015 rm -f conftest.$ac_objext
25016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25017   (eval $ac_compile) 2>conftest.er1
25018   ac_status=$?
25019   grep -v '^ *+' conftest.er1 >conftest.err
25020   rm -f conftest.er1
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
25028   ac_status=$?
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
25034   ac_status=$?
25035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036   (exit $ac_status); }; }; then
25037   ac_cv_header_sys_wait_h=yes
25038 else
25039   echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25041
25042 ac_cv_header_sys_wait_h=no
25043 fi
25044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25045 fi
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
25049
25050 cat >>confdefs.h <<\_ACEOF
25051 #define HAVE_SYS_WAIT_H 1
25052 _ACEOF
25053
25054 fi
25055
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
25060 else
25061
25062   cat >conftest.$ac_ext <<_ACEOF
25063 /* confdefs.h.  */
25064 _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>
25070 int
25071 main ()
25072 {
25073 socklen_t len = 42; return 0;
25074   ;
25075   return 0;
25076 }
25077 _ACEOF
25078 rm -f conftest.$ac_objext
25079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25080   (eval $ac_compile) 2>conftest.er1
25081   ac_status=$?
25082   grep -v '^ *+' conftest.er1 >conftest.err
25083   rm -f conftest.er1
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
25091   ac_status=$?
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
25097   ac_status=$?
25098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099   (exit $ac_status); }; }; then
25100   ac_cv_type_socklen_t=yes
25101 else
25102   echo "$as_me: failed program was:" >&5
25103 sed 's/^/| /' conftest.$ac_ext >&5
25104
25105 ac_cv_type_socklen_t=no
25106 fi
25107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25108
25109 fi
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
25115 _ACEOF
25116
25117   fi
25118
25119 if test ! -d ./rfb; then
25120         echo "creating subdir ./rfb for rfbint.h"
25121         mkdir ./rfb
25122 fi
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
25133 else
25134  echo "$as_me:$LINENO: result: \"(putting them into $ac_stdint_h)\"" >&5
25135 echo "${ECHO_T}\"(putting them into $ac_stdint_h)\"" >&6
25136 fi
25137
25138 inttype_headers=`echo inttypes.h sys/inttypes.h sys/inttypes.h  \
25139 | sed -e 's/,/ /g'`
25140
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
25151 else
25152   cat >conftest.$ac_ext <<_ACEOF
25153 /* confdefs.h.  */
25154 _ACEOF
25155 cat confdefs.h >>conftest.$ac_ext
25156 cat >>conftest.$ac_ext <<_ACEOF
25157 /* end confdefs.h.  */
25158 #include <$i>
25159
25160 int
25161 main ()
25162 {
25163 if ((uintptr_t *) 0)
25164   return 0;
25165 if (sizeof (uintptr_t))
25166   return 0;
25167   ;
25168   return 0;
25169 }
25170 _ACEOF
25171 rm -f conftest.$ac_objext
25172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25173   (eval $ac_compile) 2>conftest.er1
25174   ac_status=$?
25175   grep -v '^ *+' conftest.er1 >conftest.err
25176   rm -f conftest.er1
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
25184   ac_status=$?
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
25190   ac_status=$?
25191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192   (exit $ac_status); }; }; then
25193   ac_cv_type_uintptr_t=yes
25194 else
25195   echo "$as_me: failed program was:" >&5
25196 sed 's/^/| /' conftest.$ac_ext >&5
25197
25198 ac_cv_type_uintptr_t=no
25199 fi
25200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25201 fi
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
25206 else
25207        continue
25208 fi
25209
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
25214 else
25215   cat >conftest.$ac_ext <<_ACEOF
25216 /* confdefs.h.  */
25217 _ACEOF
25218 cat confdefs.h >>conftest.$ac_ext
25219 cat >>conftest.$ac_ext <<_ACEOF
25220 /* end confdefs.h.  */
25221 #include<$i>
25222
25223 int
25224 main ()
25225 {
25226 if ((uint64_t *) 0)
25227   return 0;
25228 if (sizeof (uint64_t))
25229   return 0;
25230   ;
25231   return 0;
25232 }
25233 _ACEOF
25234 rm -f conftest.$ac_objext
25235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25236   (eval $ac_compile) 2>conftest.er1
25237   ac_status=$?
25238   grep -v '^ *+' conftest.er1 >conftest.err
25239   rm -f conftest.er1
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
25247   ac_status=$?
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
25253   ac_status=$?
25254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255   (exit $ac_status); }; }; then
25256   ac_cv_type_uint64_t=yes
25257 else
25258   echo "$as_me: failed program was:" >&5
25259 sed 's/^/| /' conftest.$ac_ext >&5
25260
25261 ac_cv_type_uint64_t=no
25262 fi
25263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25264 fi
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)"
25269 else
25270   and64=""
25271 fi
25272
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
25275    break;
25276  done
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
25285 else
25286   cat >conftest.$ac_ext <<_ACEOF
25287 /* confdefs.h.  */
25288 _ACEOF
25289 cat confdefs.h >>conftest.$ac_ext
25290 cat >>conftest.$ac_ext <<_ACEOF
25291 /* end confdefs.h.  */
25292 #include <$i>
25293
25294 int
25295 main ()
25296 {
25297 if ((uint32_t *) 0)
25298   return 0;
25299 if (sizeof (uint32_t))
25300   return 0;
25301   ;
25302   return 0;
25303 }
25304 _ACEOF
25305 rm -f conftest.$ac_objext
25306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25307   (eval $ac_compile) 2>conftest.er1
25308   ac_status=$?
25309   grep -v '^ *+' conftest.er1 >conftest.err
25310   rm -f conftest.er1
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
25318   ac_status=$?
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
25324   ac_status=$?
25325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326   (exit $ac_status); }; }; then
25327   ac_cv_type_uint32_t=yes
25328 else
25329   echo "$as_me: failed program was:" >&5
25330 sed 's/^/| /' conftest.$ac_ext >&5
25331
25332 ac_cv_type_uint32_t=no
25333 fi
25334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25335 fi
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
25340 else
25341        continue
25342 fi
25343
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
25348 else
25349   cat >conftest.$ac_ext <<_ACEOF
25350 /* confdefs.h.  */
25351 _ACEOF
25352 cat confdefs.h >>conftest.$ac_ext
25353 cat >>conftest.$ac_ext <<_ACEOF
25354 /* end confdefs.h.  */
25355 #include<$i>
25356
25357 int
25358 main ()
25359 {
25360 if ((uint64_t *) 0)
25361   return 0;
25362 if (sizeof (uint64_t))
25363   return 0;
25364   ;
25365   return 0;
25366 }
25367 _ACEOF
25368 rm -f conftest.$ac_objext
25369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25370   (eval $ac_compile) 2>conftest.er1
25371   ac_status=$?
25372   grep -v '^ *+' conftest.er1 >conftest.err
25373   rm -f conftest.er1
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
25381   ac_status=$?
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
25387   ac_status=$?
25388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389   (exit $ac_status); }; }; then
25390   ac_cv_type_uint64_t=yes
25391 else
25392   echo "$as_me: failed program was:" >&5
25393 sed 's/^/| /' conftest.$ac_ext >&5
25394
25395 ac_cv_type_uint64_t=no
25396 fi
25397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25398 fi
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)"
25403 else
25404   and64=""
25405 fi
25406
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
25409    break;
25410  done
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
25419 else
25420   cat >conftest.$ac_ext <<_ACEOF
25421 /* confdefs.h.  */
25422 _ACEOF
25423 cat confdefs.h >>conftest.$ac_ext
25424 cat >>conftest.$ac_ext <<_ACEOF
25425 /* end confdefs.h.  */
25426 #include <$i>
25427
25428 int
25429 main ()
25430 {
25431 if ((u_int32_t *) 0)
25432   return 0;
25433 if (sizeof (u_int32_t))
25434   return 0;
25435   ;
25436   return 0;
25437 }
25438 _ACEOF
25439 rm -f conftest.$ac_objext
25440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25441   (eval $ac_compile) 2>conftest.er1
25442   ac_status=$?
25443   grep -v '^ *+' conftest.er1 >conftest.err
25444   rm -f conftest.er1
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
25452   ac_status=$?
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
25458   ac_status=$?
25459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460   (exit $ac_status); }; }; then
25461   ac_cv_type_u_int32_t=yes
25462 else
25463   echo "$as_me: failed program was:" >&5
25464 sed 's/^/| /' conftest.$ac_ext >&5
25465
25466 ac_cv_type_u_int32_t=no
25467 fi
25468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25469 fi
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
25474 else
25475        continue
25476 fi
25477
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
25482 else
25483   cat >conftest.$ac_ext <<_ACEOF
25484 /* confdefs.h.  */
25485 _ACEOF
25486 cat confdefs.h >>conftest.$ac_ext
25487 cat >>conftest.$ac_ext <<_ACEOF
25488 /* end confdefs.h.  */
25489 #include<$i>
25490
25491 int
25492 main ()
25493 {
25494 if ((uint64_t *) 0)
25495   return 0;
25496 if (sizeof (uint64_t))
25497   return 0;
25498   ;
25499   return 0;
25500 }
25501 _ACEOF
25502 rm -f conftest.$ac_objext
25503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25504   (eval $ac_compile) 2>conftest.er1
25505   ac_status=$?
25506   grep -v '^ *+' conftest.er1 >conftest.err
25507   rm -f conftest.er1
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
25515   ac_status=$?
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
25521   ac_status=$?
25522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523   (exit $ac_status); }; }; then
25524   ac_cv_type_uint64_t=yes
25525 else
25526   echo "$as_me: failed program was:" >&5
25527 sed 's/^/| /' conftest.$ac_ext >&5
25528
25529 ac_cv_type_uint64_t=no
25530 fi
25531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25532 fi
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)"
25537 else
25538   and64=""
25539 fi
25540
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
25543    break;
25544  done
25545  fi
25546  fi
25547
25548 # ----------------- DONE inttypes.h checks MAYBE C basic types --------
25549
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
25555 else
25556   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
25557   cat >conftest.$ac_ext <<_ACEOF
25558 /* confdefs.h.  */
25559 _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>
25565
25566
25567 int
25568 main ()
25569 {
25570 switch (0) case 0: case (sizeof (char) == $ac_size):;
25571   ;
25572   return 0;
25573 }
25574 _ACEOF
25575 rm -f conftest.$ac_objext
25576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25577   (eval $ac_compile) 2>conftest.er1
25578   ac_status=$?
25579   grep -v '^ *+' conftest.er1 >conftest.err
25580   rm -f conftest.er1
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
25588   ac_status=$?
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
25594   ac_status=$?
25595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596   (exit $ac_status); }; }; then
25597   ac_cv_sizeof_char=$ac_size
25598 else
25599   echo "$as_me: failed program was:" >&5
25600 sed 's/^/| /' conftest.$ac_ext >&5
25601
25602 fi
25603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25604   if test x$ac_cv_sizeof_char != x ; then break; fi
25605 done
25606
25607 fi
25608
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; }; }
25613 fi
25614 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
25615 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
25616
25617 cat >>confdefs.h <<_ACEOF
25618 #define SIZEOF_CHAR $ac_cv_sizeof_char
25619 _ACEOF
25620
25621
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
25626 else
25627   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
25628   cat >conftest.$ac_ext <<_ACEOF
25629 /* confdefs.h.  */
25630 _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>
25636
25637
25638 int
25639 main ()
25640 {
25641 switch (0) case 0: case (sizeof (short) == $ac_size):;
25642   ;
25643   return 0;
25644 }
25645 _ACEOF
25646 rm -f conftest.$ac_objext
25647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25648   (eval $ac_compile) 2>conftest.er1
25649   ac_status=$?
25650   grep -v '^ *+' conftest.er1 >conftest.err
25651   rm -f conftest.er1
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
25659   ac_status=$?
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
25665   ac_status=$?
25666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667   (exit $ac_status); }; }; then
25668   ac_cv_sizeof_short=$ac_size
25669 else
25670   echo "$as_me: failed program was:" >&5
25671 sed 's/^/| /' conftest.$ac_ext >&5
25672
25673 fi
25674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25675   if test x$ac_cv_sizeof_short != x ; then break; fi
25676 done
25677
25678 fi
25679
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; }; }
25684 fi
25685 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
25686 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
25687
25688 cat >>confdefs.h <<_ACEOF
25689 #define SIZEOF_SHORT $ac_cv_sizeof_short
25690 _ACEOF
25691
25692
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
25697 else
25698   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
25699   cat >conftest.$ac_ext <<_ACEOF
25700 /* confdefs.h.  */
25701 _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>
25707
25708
25709 int
25710 main ()
25711 {
25712 switch (0) case 0: case (sizeof (int) == $ac_size):;
25713   ;
25714   return 0;
25715 }
25716 _ACEOF
25717 rm -f conftest.$ac_objext
25718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25719   (eval $ac_compile) 2>conftest.er1
25720   ac_status=$?
25721   grep -v '^ *+' conftest.er1 >conftest.err
25722   rm -f conftest.er1
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
25730   ac_status=$?
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
25736   ac_status=$?
25737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738   (exit $ac_status); }; }; then
25739   ac_cv_sizeof_int=$ac_size
25740 else
25741   echo "$as_me: failed program was:" >&5
25742 sed 's/^/| /' conftest.$ac_ext >&5
25743
25744 fi
25745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25746   if test x$ac_cv_sizeof_int != x ; then break; fi
25747 done
25748
25749 fi
25750
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; }; }
25755 fi
25756 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
25757 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
25758
25759 cat >>confdefs.h <<_ACEOF
25760 #define SIZEOF_INT $ac_cv_sizeof_int
25761 _ACEOF
25762
25763
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
25768 else
25769   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
25770   cat >conftest.$ac_ext <<_ACEOF
25771 /* confdefs.h.  */
25772 _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>
25778
25779
25780 int
25781 main ()
25782 {
25783 switch (0) case 0: case (sizeof (long) == $ac_size):;
25784   ;
25785   return 0;
25786 }
25787 _ACEOF
25788 rm -f conftest.$ac_objext
25789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25790   (eval $ac_compile) 2>conftest.er1
25791   ac_status=$?
25792   grep -v '^ *+' conftest.er1 >conftest.err
25793   rm -f conftest.er1
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
25801   ac_status=$?
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
25807   ac_status=$?
25808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809   (exit $ac_status); }; }; then
25810   ac_cv_sizeof_long=$ac_size
25811 else
25812   echo "$as_me: failed program was:" >&5
25813 sed 's/^/| /' conftest.$ac_ext >&5
25814
25815 fi
25816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25817   if test x$ac_cv_sizeof_long != x ; then break; fi
25818 done
25819
25820 fi
25821
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; }; }
25826 fi
25827 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25828 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
25829
25830 cat >>confdefs.h <<_ACEOF
25831 #define SIZEOF_LONG $ac_cv_sizeof_long
25832 _ACEOF
25833
25834
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
25839 else
25840   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
25841   cat >conftest.$ac_ext <<_ACEOF
25842 /* confdefs.h.  */
25843 _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>
25849
25850
25851 int
25852 main ()
25853 {
25854 switch (0) case 0: case (sizeof (void*) == $ac_size):;
25855   ;
25856   return 0;
25857 }
25858 _ACEOF
25859 rm -f conftest.$ac_objext
25860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25861   (eval $ac_compile) 2>conftest.er1
25862   ac_status=$?
25863   grep -v '^ *+' conftest.er1 >conftest.err
25864   rm -f conftest.er1
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
25872   ac_status=$?
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
25878   ac_status=$?
25879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880   (exit $ac_status); }; }; then
25881   ac_cv_sizeof_voidp=$ac_size
25882 else
25883   echo "$as_me: failed program was:" >&5
25884 sed 's/^/| /' conftest.$ac_ext >&5
25885
25886 fi
25887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25888   if test x$ac_cv_sizeof_voidp != x ; then break; fi
25889 done
25890
25891 fi
25892
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; }; }
25897 fi
25898 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
25899 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
25900
25901 cat >>confdefs.h <<_ACEOF
25902 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
25903 _ACEOF
25904
25905
25906    ac_cv_header_stdint_test="yes"
25907 else
25908    ac_cv_header_stdint_test="no"
25909 fi
25910
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` "*/" \
25921   >>$ac_stdint_h
25922 else
25923   echo "/* generated using $CC */" >>$ac_stdint_h
25924 fi
25925 echo "" >>$ac_stdint_h
25926
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"
25933 else
25934    ac_cv_header_stdint="stddef.h"
25935 fi
25936
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
25944 else
25945   cat >conftest.$ac_ext <<_ACEOF
25946 /* confdefs.h.  */
25947 _ACEOF
25948 cat confdefs.h >>conftest.$ac_ext
25949 cat >>conftest.$ac_ext <<_ACEOF
25950 /* end confdefs.h.  */
25951 #include <$ac_cv_header_stdint>
25952
25953 int
25954 main ()
25955 {
25956 if ((int_least32_t *) 0)
25957   return 0;
25958 if (sizeof (int_least32_t))
25959   return 0;
25960   ;
25961   return 0;
25962 }
25963 _ACEOF
25964 rm -f conftest.$ac_objext
25965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25966   (eval $ac_compile) 2>conftest.er1
25967   ac_status=$?
25968   grep -v '^ *+' conftest.er1 >conftest.err
25969   rm -f conftest.er1
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
25977   ac_status=$?
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
25983   ac_status=$?
25984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985   (exit $ac_status); }; }; then
25986   ac_cv_type_int_least32_t=yes
25987 else
25988   echo "$as_me: failed program was:" >&5
25989 sed 's/^/| /' conftest.$ac_ext >&5
25990
25991 ac_cv_type_int_least32_t=no
25992 fi
25993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25994 fi
25995 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
25996 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
25997
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
26002 else
26003   cat >conftest.$ac_ext <<_ACEOF
26004 /* confdefs.h.  */
26005 _ACEOF
26006 cat confdefs.h >>conftest.$ac_ext
26007 cat >>conftest.$ac_ext <<_ACEOF
26008 /* end confdefs.h.  */
26009 #include<$ac_cv_header_stdint>
26010
26011 int
26012 main ()
26013 {
26014 if ((int_fast32_t *) 0)
26015   return 0;
26016 if (sizeof (int_fast32_t))
26017   return 0;
26018   ;
26019   return 0;
26020 }
26021 _ACEOF
26022 rm -f conftest.$ac_objext
26023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26024   (eval $ac_compile) 2>conftest.er1
26025   ac_status=$?
26026   grep -v '^ *+' conftest.er1 >conftest.err
26027   rm -f conftest.er1
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
26035   ac_status=$?
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
26041   ac_status=$?
26042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043   (exit $ac_status); }; }; then
26044   ac_cv_type_int_fast32_t=yes
26045 else
26046   echo "$as_me: failed program was:" >&5
26047 sed 's/^/| /' conftest.$ac_ext >&5
26048
26049 ac_cv_type_int_fast32_t=no
26050 fi
26051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26052 fi
26053 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
26054 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
26055
26056
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
26062 fi ; fi
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
26067
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
26072 else
26073    echo "$as_me:$LINENO: result: ... seen good stdint.h inttypes" >&5
26074 echo "${ECHO_T}... seen good stdint.h inttypes" >&6
26075 fi
26076
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
26081
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;
26086 EOF
26087     cat >>$ac_stdint_h <<EOF
26088
26089 /* glibc compatibility */
26090 #ifndef __int8_t_defined
26091 #define __int8_t_defined
26092 #endif
26093 EOF
26094 fi
26095
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 --------------- */
26104 EOF
26105     t="typedefs for a"
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;
26119 #endif
26120 EOF
26121 ;;
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;
26134 #endif
26135 EOF
26136 ;;
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;
26149 #endif
26150 EOF
26151 ;;
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
26155
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;
26165 #endif
26166 EOF
26167 ;;
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
26171
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;
26181 #endif
26182 EOF
26183 ;;
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
26187
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;
26197 #endif
26198 EOF
26199 ;;
26200   *)
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; }; }
26204     exit 1
26205 ;;
26206    esac
26207 fi
26208
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
26214
26215 /* system headers have good uint64_t */
26216 #ifndef _HAVE_UINT64_T
26217 #define _HAVE_UINT64_T
26218 #endif
26219 EOF
26220
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
26225
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;
26230 #endif
26231 EOF
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
26235
26236 /* -------------------- 64 BIT GENERIC SECTION -------------------- */
26237 /* here are some common heuristics using compiler runtime specifics */
26238 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ > 199901L
26239
26240 #ifndef _HAVE_UINT64_T
26241 #define _HAVE_UINT64_T
26242 typedef long long int64_t;
26243 typedef unsigned long long uint64_t;
26244 #endif
26245
26246 #elif !defined __STRICT_ANSI__
26247 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
26248
26249 #ifndef _HAVE_UINT64_T
26250 #define _HAVE_UINT64_T
26251 typedef __int64 int64_t;
26252 typedef unsigned __int64 uint64_t;
26253 #endif
26254
26255 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
26256
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;
26262 #endif
26263 #endif
26264
26265 #elif defined __alpha || (defined __mips && defined _ABIN32)
26266
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;
26272 #endif
26273 #endif
26274   /* compiler/cpu type ... or just ISO C99 */
26275 #endif
26276 #endif
26277 EOF
26278
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
26284 /* DEFAULT: */
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;
26290 #endif
26291 EOF
26292 ;;
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
26296 /* DEFAULT: */
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;
26302 #endif
26303 EOF
26304 ;;
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
26308 /* DEFAULT: */
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;
26314 #endif
26315 EOF
26316 ;;
26317    *)
26318 cat >>$ac_stdint_h <<EOF
26319 /* NOTE: */
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 */
26322 EOF
26323   esac
26324 fi
26325
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
26329
26330 /* -------------------------- INPTR SECTION --------------------------- */
26331 EOF
26332   case "$ac_cv_sizeof_x:$ac_cv_sizeof_voidp" in
26333   1:2:2)
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 */
26336
26337 typedef uint16_t uintptr_t;
26338 typedef  int16_t  intptr_t;
26339 EOF
26340 ;;
26341   1:2:4)
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 */
26344
26345 typedef uint32_t uintptr_t;
26346 typedef  int32_t  intptr_t;
26347 EOF
26348 ;;
26349   1:2:8)
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 */
26352
26353 typedef uint64_t uintptr_t;
26354 typedef  int64_t  intptr_t;
26355 EOF
26356 ;;
26357   *)
26358     a="long" ; cat >>$ac_stdint_h <<EOF
26359 /* we tested sizeof(void*) but got no guess, hence we declare it as if long */
26360
26361 typedef unsigned long uintptr_t;
26362 typedef          long  intptr_t;
26363 EOF
26364 ;;
26365   esac
26366 echo "$as_me:$LINENO: result: ..adding typedef $a intptr_t" >&5
26367 echo "${ECHO_T}..adding typedef $a intptr_t" >&6
26368 fi
26369
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
26375
26376 /* --------------GENERIC INT_LEAST ------------------ */
26377
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;
26383 #endif
26384
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;
26390 #endif
26391 EOF
26392 fi
26393
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
26399
26400 /* --------------GENERIC INT_FAST ------------------ */
26401
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;
26407 #endif
26408
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;
26414 #endif
26415 EOF
26416 fi
26417
26418 if test "$ac_cv_header_stdint_x" = "no-file" ; then
26419      cat >>$ac_stdint_h <<EOF
26420
26421 #ifdef _HAVE_INT64_T
26422 typedef int64_t        intmax_t;
26423 typedef uint64_t      uintmax_t;
26424 #else
26425 typedef long int       intmax_t;
26426 typedef unsigned long uintmax_t;
26427 #endif
26428 EOF
26429 fi
26430
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
26434
26435   /* once */
26436 #endif
26437 #endif
26438 EOF
26439
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
26444 else
26445
26446                 cat >conftest.$ac_ext <<_ACEOF
26447 /* confdefs.h.  */
26448 _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>
26454 int
26455 main ()
26456 {
26457 in_addr_t foo; return 0;
26458   ;
26459   return 0;
26460 }
26461 _ACEOF
26462 rm -f conftest.$ac_objext
26463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26464   (eval $ac_compile) 2>conftest.er1
26465   ac_status=$?
26466   grep -v '^ *+' conftest.er1 >conftest.err
26467   rm -f conftest.er1
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
26475   ac_status=$?
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
26481   ac_status=$?
26482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483   (exit $ac_status); }; }; then
26484   inaddrt=yes
26485 else
26486   echo "$as_me: failed program was:" >&5
26487 sed 's/^/| /' conftest.$ac_ext >&5
26488
26489 inaddrt=no
26490 fi
26491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext,
26492
26493 fi
26494 echo "$as_me:$LINENO: result: $inaddrt" >&5
26495 echo "${ECHO_T}$inaddrt" >&6
26496
26497
26498 if test $inaddrt = no ; then
26499   cat >>confdefs.h <<\_ACEOF
26500 #define NEED_INADDR_T 1
26501 _ACEOF
26502
26503 fi
26504
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
26510 else
26511   if test "$cross_compiling" = yes; then
26512   ac_cv_func_memcmp_working=no
26513 else
26514   cat >conftest.$ac_ext <<_ACEOF
26515 /* confdefs.h.  */
26516 _ACEOF
26517 cat confdefs.h >>conftest.$ac_ext
26518 cat >>conftest.$ac_ext <<_ACEOF
26519 /* end confdefs.h.  */
26520 $ac_includes_default
26521 int
26522 main ()
26523 {
26524
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)
26528     exit (1);
26529
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.   */
26533   {
26534     char foo[21];
26535     char bar[21];
26536     int i;
26537     for (i = 0; i < 4; i++)
26538       {
26539         char *a = foo + i;
26540         char *b = bar + i;
26541         strcpy (a, "--------01111111");
26542         strcpy (b, "--------10000000");
26543         if (memcmp (a, b, 16) >= 0)
26544           exit (1);
26545       }
26546     exit (0);
26547   }
26548
26549   ;
26550   return 0;
26551 }
26552 _ACEOF
26553 rm -f conftest$ac_exeext
26554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26555   (eval $ac_link) 2>&5
26556   ac_status=$?
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
26561   ac_status=$?
26562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563   (exit $ac_status); }; }; then
26564   ac_cv_func_memcmp_working=yes
26565 else
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
26569
26570 ( exit $ac_status )
26571 ac_cv_func_memcmp_working=no
26572 fi
26573 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26574 fi
26575 fi
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" ;;
26584 esac
26585
26586
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
26591 else
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
26597 else
26598   cat >conftest.$ac_ext <<_ACEOF
26599 /* confdefs.h.  */
26600 _ACEOF
26601 cat confdefs.h >>conftest.$ac_ext
26602 cat >>conftest.$ac_ext <<_ACEOF
26603 /* end confdefs.h.  */
26604 $ac_includes_default
26605 int
26606 main ()
26607 {
26608 struct stat sbuf;
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);
26613   ;
26614   return 0;
26615 }
26616 _ACEOF
26617 rm -f conftest$ac_exeext
26618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26619   (eval $ac_link) 2>&5
26620   ac_status=$?
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
26625   ac_status=$?
26626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627   (exit $ac_status); }; }; then
26628   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26629 else
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
26633
26634 ( exit $ac_status )
26635 ac_cv_func_lstat_dereferences_slashed_symlink=no
26636 fi
26637 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26638 fi
26639 else
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
26643 fi
26644 rm -f conftest.sym conftest.file
26645
26646 fi
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
26649
26650 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26651
26652 cat >>confdefs.h <<_ACEOF
26653 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26654 _ACEOF
26655
26656
26657 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26658   case $LIBOBJS in
26659     "lstat.$ac_objext"   | \
26660   *" lstat.$ac_objext"   | \
26661     "lstat.$ac_objext "* | \
26662   *" lstat.$ac_objext "* ) ;;
26663   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
26664 esac
26665
26666 fi
26667
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
26672 else
26673   if test "$cross_compiling" = yes; then
26674   ac_cv_func_stat_empty_string_bug=yes
26675 else
26676   cat >conftest.$ac_ext <<_ACEOF
26677 /* confdefs.h.  */
26678 _ACEOF
26679 cat confdefs.h >>conftest.$ac_ext
26680 cat >>conftest.$ac_ext <<_ACEOF
26681 /* end confdefs.h.  */
26682 $ac_includes_default
26683 int
26684 main ()
26685 {
26686 struct stat sbuf;
26687   exit (stat ("", &sbuf) ? 1 : 0);
26688   ;
26689   return 0;
26690 }
26691 _ACEOF
26692 rm -f conftest$ac_exeext
26693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26694   (eval $ac_link) 2>&5
26695   ac_status=$?
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
26700   ac_status=$?
26701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702   (exit $ac_status); }; }; then
26703   ac_cv_func_stat_empty_string_bug=yes
26704 else
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
26708
26709 ( exit $ac_status )
26710 ac_cv_func_stat_empty_string_bug=no
26711 fi
26712 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26713 fi
26714 fi
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
26718   case $LIBOBJS in
26719     "stat.$ac_objext"   | \
26720   *" stat.$ac_objext"   | \
26721     "stat.$ac_objext "* | \
26722   *" stat.$ac_objext "* ) ;;
26723   *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
26724 esac
26725
26726
26727 cat >>confdefs.h <<_ACEOF
26728 #define HAVE_STAT_EMPTY_STRING_BUG 1
26729 _ACEOF
26730
26731 fi
26732
26733
26734 for ac_func in strftime
26735 do
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
26741 else
26742   cat >conftest.$ac_ext <<_ACEOF
26743 /* confdefs.h.  */
26744 _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
26751
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.  */
26756
26757 #ifdef __STDC__
26758 # include <limits.h>
26759 #else
26760 # include <assert.h>
26761 #endif
26762
26763 #undef $ac_func
26764
26765 /* Override any gcc2 internal prototype to avoid an error.  */
26766 #ifdef __cplusplus
26767 extern "C"
26768 {
26769 #endif
26770 /* We use char because int might match the return type of a gcc2
26771    builtin and then its argument prototype would still apply.  */
26772 char $ac_func ();
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)
26777 choke me
26778 #else
26779 char (*f) () = $ac_func;
26780 #endif
26781 #ifdef __cplusplus
26782 }
26783 #endif
26784
26785 int
26786 main ()
26787 {
26788 return f != $ac_func;
26789   ;
26790   return 0;
26791 }
26792 _ACEOF
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
26796   ac_status=$?
26797   grep -v '^ *+' conftest.er1 >conftest.err
26798   rm -f conftest.er1
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
26806   ac_status=$?
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
26812   ac_status=$?
26813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814   (exit $ac_status); }; }; then
26815   eval "$as_ac_var=yes"
26816 else
26817   echo "$as_me: failed program was:" >&5
26818 sed 's/^/| /' conftest.$ac_ext >&5
26819
26820 eval "$as_ac_var=no"
26821 fi
26822 rm -f conftest.err conftest.$ac_objext \
26823       conftest$ac_exeext conftest.$ac_ext
26824 fi
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
26830 _ACEOF
26831
26832 else
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
26838 else
26839   ac_check_lib_save_LIBS=$LIBS
26840 LIBS="-lintl  $LIBS"
26841 cat >conftest.$ac_ext <<_ACEOF
26842 /* confdefs.h.  */
26843 _ACEOF
26844 cat confdefs.h >>conftest.$ac_ext
26845 cat >>conftest.$ac_ext <<_ACEOF
26846 /* end confdefs.h.  */
26847
26848 /* Override any gcc2 internal prototype to avoid an error.  */
26849 #ifdef __cplusplus
26850 extern "C"
26851 #endif
26852 /* We use char because int might match the return type of a gcc2
26853    builtin and then its argument prototype would still apply.  */
26854 char strftime ();
26855 int
26856 main ()
26857 {
26858 strftime ();
26859   ;
26860   return 0;
26861 }
26862 _ACEOF
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
26866   ac_status=$?
26867   grep -v '^ *+' conftest.er1 >conftest.err
26868   rm -f conftest.er1
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
26876   ac_status=$?
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
26882   ac_status=$?
26883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884   (exit $ac_status); }; }; then
26885   ac_cv_lib_intl_strftime=yes
26886 else
26887   echo "$as_me: failed program was:" >&5
26888 sed 's/^/| /' conftest.$ac_ext >&5
26889
26890 ac_cv_lib_intl_strftime=no
26891 fi
26892 rm -f conftest.err conftest.$ac_objext \
26893       conftest$ac_exeext conftest.$ac_ext
26894 LIBS=$ac_check_lib_save_LIBS
26895 fi
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
26901 _ACEOF
26902
26903 LIBS="-lintl $LIBS"
26904 fi
26905
26906 fi
26907 done
26908
26909
26910 for ac_func in vprintf
26911 do
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
26917 else
26918   cat >conftest.$ac_ext <<_ACEOF
26919 /* confdefs.h.  */
26920 _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
26927
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.  */
26932
26933 #ifdef __STDC__
26934 # include <limits.h>
26935 #else
26936 # include <assert.h>
26937 #endif
26938
26939 #undef $ac_func
26940
26941 /* Override any gcc2 internal prototype to avoid an error.  */
26942 #ifdef __cplusplus
26943 extern "C"
26944 {
26945 #endif
26946 /* We use char because int might match the return type of a gcc2
26947    builtin and then its argument prototype would still apply.  */
26948 char $ac_func ();
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)
26953 choke me
26954 #else
26955 char (*f) () = $ac_func;
26956 #endif
26957 #ifdef __cplusplus
26958 }
26959 #endif
26960
26961 int
26962 main ()
26963 {
26964 return f != $ac_func;
26965   ;
26966   return 0;
26967 }
26968 _ACEOF
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
26972   ac_status=$?
26973   grep -v '^ *+' conftest.er1 >conftest.err
26974   rm -f conftest.er1
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
26982   ac_status=$?
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
26988   ac_status=$?
26989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990   (exit $ac_status); }; }; then
26991   eval "$as_ac_var=yes"
26992 else
26993   echo "$as_me: failed program was:" >&5
26994 sed 's/^/| /' conftest.$ac_ext >&5
26995
26996 eval "$as_ac_var=no"
26997 fi
26998 rm -f conftest.err conftest.$ac_objext \
26999       conftest$ac_exeext conftest.$ac_ext
27000 fi
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
27006 _ACEOF
27007
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
27012 else
27013   cat >conftest.$ac_ext <<_ACEOF
27014 /* confdefs.h.  */
27015 _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
27022
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.  */
27027
27028 #ifdef __STDC__
27029 # include <limits.h>
27030 #else
27031 # include <assert.h>
27032 #endif
27033
27034 #undef _doprnt
27035
27036 /* Override any gcc2 internal prototype to avoid an error.  */
27037 #ifdef __cplusplus
27038 extern "C"
27039 {
27040 #endif
27041 /* We use char because int might match the return type of a gcc2
27042    builtin and then its argument prototype would still apply.  */
27043 char _doprnt ();
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)
27048 choke me
27049 #else
27050 char (*f) () = _doprnt;
27051 #endif
27052 #ifdef __cplusplus
27053 }
27054 #endif
27055
27056 int
27057 main ()
27058 {
27059 return f != _doprnt;
27060   ;
27061   return 0;
27062 }
27063 _ACEOF
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
27067   ac_status=$?
27068   grep -v '^ *+' conftest.er1 >conftest.err
27069   rm -f conftest.er1
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
27077   ac_status=$?
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
27083   ac_status=$?
27084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085   (exit $ac_status); }; }; then
27086   ac_cv_func__doprnt=yes
27087 else
27088   echo "$as_me: failed program was:" >&5
27089 sed 's/^/| /' conftest.$ac_ext >&5
27090
27091 ac_cv_func__doprnt=no
27092 fi
27093 rm -f conftest.err conftest.$ac_objext \
27094       conftest$ac_exeext conftest.$ac_ext
27095 fi
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
27099
27100 cat >>confdefs.h <<\_ACEOF
27101 #define HAVE_DOPRNT 1
27102 _ACEOF
27103
27104 fi
27105
27106 fi
27107 done
27108
27109
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
27114 else
27115   cat >conftest.$ac_ext <<_ACEOF
27116 /* confdefs.h.  */
27117 _ACEOF
27118 cat confdefs.h >>conftest.$ac_ext
27119 cat >>conftest.$ac_ext <<_ACEOF
27120 /* end confdefs.h.  */
27121 $ac_includes_default
27122 int
27123 main ()
27124 {
27125 if ((pid_t *) 0)
27126   return 0;
27127 if (sizeof (pid_t))
27128   return 0;
27129   ;
27130   return 0;
27131 }
27132 _ACEOF
27133 rm -f conftest.$ac_objext
27134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27135   (eval $ac_compile) 2>conftest.er1
27136   ac_status=$?
27137   grep -v '^ *+' conftest.er1 >conftest.err
27138   rm -f conftest.er1
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
27146   ac_status=$?
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
27152   ac_status=$?
27153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154   (exit $ac_status); }; }; then
27155   ac_cv_type_pid_t=yes
27156 else
27157   echo "$as_me: failed program was:" >&5
27158 sed 's/^/| /' conftest.$ac_ext >&5
27159
27160 ac_cv_type_pid_t=no
27161 fi
27162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27163 fi
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
27167   :
27168 else
27169
27170 cat >>confdefs.h <<_ACEOF
27171 #define pid_t int
27172 _ACEOF
27173
27174 fi
27175
27176
27177
27178 for ac_header in unistd.h vfork.h
27179 do
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
27186 fi
27187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27189 else
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
27194 /* confdefs.h.  */
27195 _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>
27201 _ACEOF
27202 rm -f conftest.$ac_objext
27203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27204   (eval $ac_compile) 2>conftest.er1
27205   ac_status=$?
27206   grep -v '^ *+' conftest.er1 >conftest.err
27207   rm -f conftest.er1
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
27215   ac_status=$?
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
27221   ac_status=$?
27222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223   (exit $ac_status); }; }; then
27224   ac_header_compiler=yes
27225 else
27226   echo "$as_me: failed program was:" >&5
27227 sed 's/^/| /' conftest.$ac_ext >&5
27228
27229 ac_header_compiler=no
27230 fi
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
27234
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
27239 /* confdefs.h.  */
27240 _ACEOF
27241 cat confdefs.h >>conftest.$ac_ext
27242 cat >>conftest.$ac_ext <<_ACEOF
27243 /* end confdefs.h.  */
27244 #include <$ac_header>
27245 _ACEOF
27246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27247   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27248   ac_status=$?
27249   grep -v '^ *+' conftest.er1 >conftest.err
27250   rm -f conftest.er1
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
27257   else
27258     ac_cpp_err=
27259   fi
27260 else
27261   ac_cpp_err=yes
27262 fi
27263 if test -z "$ac_cpp_err"; then
27264   ac_header_preproc=yes
27265 else
27266   echo "$as_me: failed program was:" >&5
27267 sed 's/^/| /' conftest.$ac_ext >&5
27268
27269   ac_header_preproc=no
27270 fi
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
27274
27275 # So?  What about this header?
27276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27277   yes:no: )
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
27283     ;;
27284   no: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;}
27297     (
27298       cat <<\_ASBOX
27299 ## ----------------------------------------------------------- ##
27300 ## Report this to http://sourceforge.net/projects/libvncserver ##
27301 ## ----------------------------------------------------------- ##
27302 _ASBOX
27303     ) |
27304       sed "s/^/$as_me: WARNING:     /" >&2
27305     ;;
27306 esac
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
27311 else
27312   eval "$as_ac_Header=\$ac_header_preproc"
27313 fi
27314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27316
27317 fi
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
27321 _ACEOF
27322
27323 fi
27324
27325 done
27326
27327
27328
27329 for ac_func in fork vfork
27330 do
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
27336 else
27337   cat >conftest.$ac_ext <<_ACEOF
27338 /* confdefs.h.  */
27339 _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
27346
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.  */
27351
27352 #ifdef __STDC__
27353 # include <limits.h>
27354 #else
27355 # include <assert.h>
27356 #endif
27357
27358 #undef $ac_func
27359
27360 /* Override any gcc2 internal prototype to avoid an error.  */
27361 #ifdef __cplusplus
27362 extern "C"
27363 {
27364 #endif
27365 /* We use char because int might match the return type of a gcc2
27366    builtin and then its argument prototype would still apply.  */
27367 char $ac_func ();
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)
27372 choke me
27373 #else
27374 char (*f) () = $ac_func;
27375 #endif
27376 #ifdef __cplusplus
27377 }
27378 #endif
27379
27380 int
27381 main ()
27382 {
27383 return f != $ac_func;
27384   ;
27385   return 0;
27386 }
27387 _ACEOF
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
27391   ac_status=$?
27392   grep -v '^ *+' conftest.er1 >conftest.err
27393   rm -f conftest.er1
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
27401   ac_status=$?
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
27407   ac_status=$?
27408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409   (exit $ac_status); }; }; then
27410   eval "$as_ac_var=yes"
27411 else
27412   echo "$as_me: failed program was:" >&5
27413 sed 's/^/| /' conftest.$ac_ext >&5
27414
27415 eval "$as_ac_var=no"
27416 fi
27417 rm -f conftest.err conftest.$ac_objext \
27418       conftest$ac_exeext conftest.$ac_ext
27419 fi
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
27425 _ACEOF
27426
27427 fi
27428 done
27429
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
27435 else
27436   if test "$cross_compiling" = yes; then
27437   ac_cv_func_fork_works=cross
27438 else
27439   cat >conftest.$ac_ext <<_ACEOF
27440 /* By Ruediger Kuhlmann. */
27441       #include <sys/types.h>
27442       #if HAVE_UNISTD_H
27443       # include <unistd.h>
27444       #endif
27445       /* Some systems only have a dummy stub for fork() */
27446       int main ()
27447       {
27448         if (fork() < 0)
27449           exit (1);
27450         exit (0);
27451       }
27452 _ACEOF
27453 rm -f conftest$ac_exeext
27454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27455   (eval $ac_link) 2>&5
27456   ac_status=$?
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
27461   ac_status=$?
27462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463   (exit $ac_status); }; }; then
27464   ac_cv_func_fork_works=yes
27465 else
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
27469
27470 ( exit $ac_status )
27471 ac_cv_func_fork_works=no
27472 fi
27473 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27474 fi
27475 fi
27476 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
27477 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
27478
27479 else
27480   ac_cv_func_fork_works=$ac_cv_func_fork
27481 fi
27482 if test "x$ac_cv_func_fork_works" = xcross; then
27483   case $host in
27484     *-*-amigaos* | *-*-msdosdjgpp*)
27485       # Override, as these systems have only a dummy fork() stub
27486       ac_cv_func_fork_works=no
27487       ;;
27488     *)
27489       ac_cv_func_fork_works=yes
27490       ;;
27491   esac
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;}
27494 fi
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
27501 else
27502   if test "$cross_compiling" = yes; then
27503   ac_cv_func_vfork_works=cross
27504 else
27505   cat >conftest.$ac_ext <<_ACEOF
27506 /* confdefs.h.  */
27507 _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.  */
27512 #include <stdio.h>
27513 #include <stdlib.h>
27514 #include <sys/types.h>
27515 #include <sys/stat.h>
27516 #include <sys/wait.h>
27517 #if HAVE_UNISTD_H
27518 # include <unistd.h>
27519 #endif
27520 #if HAVE_VFORK_H
27521 # include <vfork.h>
27522 #endif
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.  */
27529 static void
27530 #ifdef __cplusplus
27531 sparc_address_test (int arg)
27532 # else
27533 sparc_address_test (arg) int arg;
27534 #endif
27535 {
27536   static pid_t child;
27537   if (!child) {
27538     child = vfork ();
27539     if (child < 0) {
27540       perror ("vfork");
27541       _exit(2);
27542     }
27543     if (!child) {
27544       arg = getpid();
27545       write(-1, "", 0);
27546       _exit (arg);
27547     }
27548   }
27549 }
27550
27551 int
27552 main ()
27553 {
27554   pid_t parent = getpid ();
27555   pid_t child;
27556
27557   sparc_address_test (0);
27558
27559   child = vfork ();
27560
27561   if (child == 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.  */
27571     pid_t
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)
27578       _exit(1);
27579
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);
27585   } else {
27586     int status;
27587     struct stat st;
27588
27589     while (wait(&status) != child)
27590       ;
27591     exit(
27592          /* Was there some problem with vforking?  */
27593          child < 0
27594
27595          /* Did the child fail?  (This shouldn't happen.)  */
27596          || status
27597
27598          /* Did the vfork/compiler bug occur?  */
27599          || parent != getpid()
27600
27601          /* Did the file descriptor bug occur?  */
27602          || fstat(fileno(stdout), &st) != 0
27603          );
27604   }
27605 }
27606 _ACEOF
27607 rm -f conftest$ac_exeext
27608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27609   (eval $ac_link) 2>&5
27610   ac_status=$?
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
27615   ac_status=$?
27616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617   (exit $ac_status); }; }; then
27618   ac_cv_func_vfork_works=yes
27619 else
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
27623
27624 ( exit $ac_status )
27625 ac_cv_func_vfork_works=no
27626 fi
27627 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27628 fi
27629 fi
27630 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
27631 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
27632
27633 fi;
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;}
27638 fi
27639
27640 if test "x$ac_cv_func_vfork_works" = xyes; then
27641
27642 cat >>confdefs.h <<\_ACEOF
27643 #define HAVE_WORKING_VFORK 1
27644 _ACEOF
27645
27646 else
27647
27648 cat >>confdefs.h <<\_ACEOF
27649 #define vfork fork
27650 _ACEOF
27651
27652 fi
27653 if test "x$ac_cv_func_fork_works" = xyes; then
27654
27655 cat >>confdefs.h <<\_ACEOF
27656 #define HAVE_WORKING_FORK 1
27657 _ACEOF
27658
27659 fi
27660
27661
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
27666 else
27667   ac_check_lib_save_LIBS=$LIBS
27668 LIBS="-lnsl  $LIBS"
27669 cat >conftest.$ac_ext <<_ACEOF
27670 /* confdefs.h.  */
27671 _ACEOF
27672 cat confdefs.h >>conftest.$ac_ext
27673 cat >>conftest.$ac_ext <<_ACEOF
27674 /* end confdefs.h.  */
27675
27676 /* Override any gcc2 internal prototype to avoid an error.  */
27677 #ifdef __cplusplus
27678 extern "C"
27679 #endif
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 ();
27683 int
27684 main ()
27685 {
27686 gethostbyname ();
27687   ;
27688   return 0;
27689 }
27690 _ACEOF
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
27694   ac_status=$?
27695   grep -v '^ *+' conftest.er1 >conftest.err
27696   rm -f conftest.er1
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
27704   ac_status=$?
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
27710   ac_status=$?
27711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712   (exit $ac_status); }; }; then
27713   ac_cv_lib_nsl_gethostbyname=yes
27714 else
27715   echo "$as_me: failed program was:" >&5
27716 sed 's/^/| /' conftest.$ac_ext >&5
27717
27718 ac_cv_lib_nsl_gethostbyname=no
27719 fi
27720 rm -f conftest.err conftest.$ac_objext \
27721       conftest$ac_exeext conftest.$ac_ext
27722 LIBS=$ac_check_lib_save_LIBS
27723 fi
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
27729 _ACEOF
27730
27731   LIBS="-lnsl $LIBS"
27732
27733 fi
27734
27735
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
27740 else
27741   ac_check_lib_save_LIBS=$LIBS
27742 LIBS="-lsocket  $LIBS"
27743 cat >conftest.$ac_ext <<_ACEOF
27744 /* confdefs.h.  */
27745 _ACEOF
27746 cat confdefs.h >>conftest.$ac_ext
27747 cat >>conftest.$ac_ext <<_ACEOF
27748 /* end confdefs.h.  */
27749
27750 /* Override any gcc2 internal prototype to avoid an error.  */
27751 #ifdef __cplusplus
27752 extern "C"
27753 #endif
27754 /* We use char because int might match the return type of a gcc2
27755    builtin and then its argument prototype would still apply.  */
27756 char socket ();
27757 int
27758 main ()
27759 {
27760 socket ();
27761   ;
27762   return 0;
27763 }
27764 _ACEOF
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
27768   ac_status=$?
27769   grep -v '^ *+' conftest.er1 >conftest.err
27770   rm -f conftest.er1
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
27778   ac_status=$?
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
27784   ac_status=$?
27785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786   (exit $ac_status); }; }; then
27787   ac_cv_lib_socket_socket=yes
27788 else
27789   echo "$as_me: failed program was:" >&5
27790 sed 's/^/| /' conftest.$ac_ext >&5
27791
27792 ac_cv_lib_socket_socket=no
27793 fi
27794 rm -f conftest.err conftest.$ac_objext \
27795       conftest$ac_exeext conftest.$ac_ext
27796 LIBS=$ac_check_lib_save_LIBS
27797 fi
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
27803 _ACEOF
27804
27805   LIBS="-lsocket $LIBS"
27806
27807 fi
27808
27809
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"
27814 fi
27815
27816
27817
27818
27819
27820
27821
27822
27823
27824
27825
27826
27827
27828
27829
27830
27831
27832 for ac_func in ftime gethostbyname gethostname gettimeofday inet_ntoa memmove memset mmap mkfifo select socket strchr strcspn strdup strerror strstr
27833 do
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
27839 else
27840   cat >conftest.$ac_ext <<_ACEOF
27841 /* confdefs.h.  */
27842 _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
27849
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.  */
27854
27855 #ifdef __STDC__
27856 # include <limits.h>
27857 #else
27858 # include <assert.h>
27859 #endif
27860
27861 #undef $ac_func
27862
27863 /* Override any gcc2 internal prototype to avoid an error.  */
27864 #ifdef __cplusplus
27865 extern "C"
27866 {
27867 #endif
27868 /* We use char because int might match the return type of a gcc2
27869    builtin and then its argument prototype would still apply.  */
27870 char $ac_func ();
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)
27875 choke me
27876 #else
27877 char (*f) () = $ac_func;
27878 #endif
27879 #ifdef __cplusplus
27880 }
27881 #endif
27882
27883 int
27884 main ()
27885 {
27886 return f != $ac_func;
27887   ;
27888   return 0;
27889 }
27890 _ACEOF
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
27894   ac_status=$?
27895   grep -v '^ *+' conftest.er1 >conftest.err
27896   rm -f conftest.er1
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
27904   ac_status=$?
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
27910   ac_status=$?
27911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912   (exit $ac_status); }; }; then
27913   eval "$as_ac_var=yes"
27914 else
27915   echo "$as_me: failed program was:" >&5
27916 sed 's/^/| /' conftest.$ac_ext >&5
27917
27918 eval "$as_ac_var=no"
27919 fi
27920 rm -f conftest.err conftest.$ac_objext \
27921       conftest$ac_exeext conftest.$ac_ext
27922 fi
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
27928 _ACEOF
27929
27930 fi
27931 done
27932
27933 # x11vnc only:
27934 if test "$build_x11vnc" = "yes"; then
27935
27936
27937
27938
27939
27940
27941
27942
27943
27944
27945
27946
27947
27948
27949
27950
27951 for ac_func in setsid setpgrp getpwuid getpwnam getspnam getuid geteuid setuid setgid seteuid setegid initgroups waitpid setutxent grantpt shmat
27952 do
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
27958 else
27959   cat >conftest.$ac_ext <<_ACEOF
27960 /* confdefs.h.  */
27961 _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
27968
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.  */
27973
27974 #ifdef __STDC__
27975 # include <limits.h>
27976 #else
27977 # include <assert.h>
27978 #endif
27979
27980 #undef $ac_func
27981
27982 /* Override any gcc2 internal prototype to avoid an error.  */
27983 #ifdef __cplusplus
27984 extern "C"
27985 {
27986 #endif
27987 /* We use char because int might match the return type of a gcc2
27988    builtin and then its argument prototype would still apply.  */
27989 char $ac_func ();
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)
27994 choke me
27995 #else
27996 char (*f) () = $ac_func;
27997 #endif
27998 #ifdef __cplusplus
27999 }
28000 #endif
28001
28002 int
28003 main ()
28004 {
28005 return f != $ac_func;
28006   ;
28007   return 0;
28008 }
28009 _ACEOF
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
28013   ac_status=$?
28014   grep -v '^ *+' conftest.er1 >conftest.err
28015   rm -f conftest.er1
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
28023   ac_status=$?
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
28029   ac_status=$?
28030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28031   (exit $ac_status); }; }; then
28032   eval "$as_ac_var=yes"
28033 else
28034   echo "$as_me: failed program was:" >&5
28035 sed 's/^/| /' conftest.$ac_ext >&5
28036
28037 eval "$as_ac_var=no"
28038 fi
28039 rm -f conftest.err conftest.$ac_objext \
28040       conftest$ac_exeext conftest.$ac_ext
28041 fi
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
28047 _ACEOF
28048
28049 fi
28050 done
28051
28052 fi
28053
28054 # check, if shmget is in cygipc.a
28055
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
28060 else
28061   ac_check_lib_save_LIBS=$LIBS
28062 LIBS="-lcygipc  $LIBS"
28063 cat >conftest.$ac_ext <<_ACEOF
28064 /* confdefs.h.  */
28065 _ACEOF
28066 cat confdefs.h >>conftest.$ac_ext
28067 cat >>conftest.$ac_ext <<_ACEOF
28068 /* end confdefs.h.  */
28069
28070 /* Override any gcc2 internal prototype to avoid an error.  */
28071 #ifdef __cplusplus
28072 extern "C"
28073 #endif
28074 /* We use char because int might match the return type of a gcc2
28075    builtin and then its argument prototype would still apply.  */
28076 char shmget ();
28077 int
28078 main ()
28079 {
28080 shmget ();
28081   ;
28082   return 0;
28083 }
28084 _ACEOF
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
28088   ac_status=$?
28089   grep -v '^ *+' conftest.er1 >conftest.err
28090   rm -f conftest.er1
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
28098   ac_status=$?
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
28104   ac_status=$?
28105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28106   (exit $ac_status); }; }; then
28107   ac_cv_lib_cygipc_shmget=yes
28108 else
28109   echo "$as_me: failed program was:" >&5
28110 sed 's/^/| /' conftest.$ac_ext >&5
28111
28112 ac_cv_lib_cygipc_shmget=no
28113 fi
28114 rm -f conftest.err conftest.$ac_objext \
28115       conftest$ac_exeext conftest.$ac_ext
28116 LIBS=$ac_check_lib_save_LIBS
28117 fi
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
28123 _ACEOF
28124
28125   LIBS="-lcygipc $LIBS"
28126
28127 fi
28128
28129
28130
28131 if test "$HAVE_CYGIPC" = "true"; then
28132   CYGIPC_TRUE=
28133   CYGIPC_FALSE='#'
28134 else
28135   CYGIPC_TRUE='#'
28136   CYGIPC_FALSE=
28137 fi
28138
28139
28140 # Check if /dev/vcsa1 exists, if so, define LINUX
28141
28142
28143 if test -c /dev/vcsa1; then
28144   LINUX_TRUE=
28145   LINUX_FALSE='#'
28146 else
28147   LINUX_TRUE='#'
28148   LINUX_FALSE=
28149 fi
28150
28151
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
28158 fi
28159 echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
28160 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6
28161 else
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
28166 /* confdefs.h.  */
28167 _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>
28173 _ACEOF
28174 rm -f conftest.$ac_objext
28175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28176   (eval $ac_compile) 2>conftest.er1
28177   ac_status=$?
28178   grep -v '^ *+' conftest.er1 >conftest.err
28179   rm -f conftest.er1
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
28187   ac_status=$?
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
28193   ac_status=$?
28194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195   (exit $ac_status); }; }; then
28196   ac_header_compiler=yes
28197 else
28198   echo "$as_me: failed program was:" >&5
28199 sed 's/^/| /' conftest.$ac_ext >&5
28200
28201 ac_header_compiler=no
28202 fi
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
28206
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
28211 /* confdefs.h.  */
28212 _ACEOF
28213 cat confdefs.h >>conftest.$ac_ext
28214 cat >>conftest.$ac_ext <<_ACEOF
28215 /* end confdefs.h.  */
28216 #include <ApplicationServices/ApplicationServices.h>
28217 _ACEOF
28218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28219   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28220   ac_status=$?
28221   grep -v '^ *+' conftest.er1 >conftest.err
28222   rm -f conftest.er1
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
28229   else
28230     ac_cpp_err=
28231   fi
28232 else
28233   ac_cpp_err=yes
28234 fi
28235 if test -z "$ac_cpp_err"; then
28236   ac_header_preproc=yes
28237 else
28238   echo "$as_me: failed program was:" >&5
28239 sed 's/^/| /' conftest.$ac_ext >&5
28240
28241   ac_header_preproc=no
28242 fi
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
28246
28247 # So?  What about this header?
28248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28249   yes:no: )
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
28255     ;;
28256   no: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;}
28269     (
28270       cat <<\_ASBOX
28271 ## ----------------------------------------------------------- ##
28272 ## Report this to http://sourceforge.net/projects/libvncserver ##
28273 ## ----------------------------------------------------------- ##
28274 _ASBOX
28275     ) |
28276       sed "s/^/$as_me: WARNING:     /" >&2
28277     ;;
28278 esac
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
28283 else
28284   ac_cv_header_ApplicationServices_ApplicationServices_h=$ac_header_preproc
28285 fi
28286 echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
28287 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6
28288
28289 fi
28290 if test $ac_cv_header_ApplicationServices_ApplicationServices_h = yes; then
28291   HAVE_OSX="true"
28292 fi
28293
28294
28295
28296
28297 if test "$HAVE_OSX" = "true"; then
28298   OSX_TRUE=
28299   OSX_FALSE='#'
28300 else
28301   OSX_TRUE='#'
28302   OSX_FALSE=
28303 fi
28304
28305
28306 # On Solaris 2.7, write() returns ENOENT when it really means EAGAIN
28307
28308
28309 case `(uname -sr) 2>/dev/null` in
28310     "SunOS 5.7")
28311         cat >>confdefs.h <<\_ACEOF
28312 #define ENOENT_WORKAROUND 1
28313 _ACEOF
28314
28315     ;;
28316 esac
28317
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/"
28324         fi
28325 done
28326 echo "$RPMSOURCEDIR"
28327
28328
28329 if test "$RPMSOURCEDIR" != "NOT-FOUND"; then
28330   HAVE_RPM_TRUE=
28331   HAVE_RPM_FALSE='#'
28332 else
28333   HAVE_RPM_TRUE='#'
28334   HAVE_RPM_FALSE=
28335 fi
28336
28337
28338
28339 if test "$build_x11vnc" = "yes"; then
28340   WITH_X11VNC_TRUE=
28341   WITH_X11VNC_FALSE='#'
28342 else
28343   WITH_X11VNC_TRUE='#'
28344   WITH_X11VNC_FALSE=
28345 fi
28346
28347
28348
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"
28350
28351 #
28352 # x11vnc only:
28353 #
28354 if test "$build_x11vnc" = "yes"; then
28355         #
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:
28362         #
28363         # configure.ac:690: required file `x11vnc/Makefile.in' not found
28364         #
28365                             ac_config_files="$ac_config_files x11vnc/Makefile x11vnc/misc/Makefile"
28366
28367 fi
28368
28369           ac_config_commands="$ac_config_commands chmod-libvncserver-config"
28370
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.
28377 #
28378 # config.status only pays attention to the cache file if you give it
28379 # the --recheck option to rerun configure.
28380 #
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.
28384
28385 _ACEOF
28386
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.
28392 {
28393   (set) 2>&1 |
28394     case `(ac_space=' '; set | grep ac_space) 2>&1` in
28395     *ac_space=\ *)
28396       # `set' does not quote correctly, so add quotes (double-quote
28397       # substitution turns \\\\ into \\, and sed turns \\ into \).
28398       sed -n \
28399         "s/'/'\\\\''/g;
28400           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28401       ;;
28402     *)
28403       # `set' quotes correctly as required by POSIX, so do not add quotes.
28404       sed -n \
28405         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28406       ;;
28407     esac;
28408 } |
28409   sed '
28410      t clear
28411      : clear
28412      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28413      t end
28414      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28415      : end' >>confcache
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
28420   else
28421     echo "not updating unwritable cache $cache_file"
28422   fi
28423 fi
28424 rm -f confcache
28425
28426 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28427 # Let make expand exec_prefix.
28428 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28429
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}:*/:/;
28438 s/:*@srcdir@:*/:/;
28439 s/^\([^=]*=[     ]*\):*/\1/;
28440 s/:*$//;
28441 s/^[^=]*=[       ]*$//;
28442 }'
28443 fi
28444
28445 DEFS=-DHAVE_CONFIG_H
28446
28447 ac_libobjs=
28448 ac_ltlibobjs=
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$//'`
28453   # 2. Add them.
28454   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28455   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28456 done
28457 LIBOBJS=$ac_libobjs
28458
28459 LTLIBOBJS=$ac_ltlibobjs
28460
28461
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; }; }
28468 fi
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; }; }
28475 fi
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; }; }
28482 fi
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; }; }
28489 fi
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; }; }
28496 fi
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; }; }
28503 fi
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; }; }
28510 fi
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; }; }
28517 fi
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; }; }
28524 fi
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; }; }
28531 fi
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; }; }
28538 fi
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; }; }
28545 fi
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; }; }
28552 fi
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; }; }
28559 fi
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; }; }
28566 fi
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; }; }
28573 fi
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; }; }
28580 fi
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; }; }
28587 fi
28588
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
28595 #! $SHELL
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.
28600
28601 debug=false
28602 ac_cs_recheck=false
28603 ac_cs_silent=false
28604 SHELL=\${CONFIG_SHELL-$SHELL}
28605 _ACEOF
28606
28607 cat >>$CONFIG_STATUS <<\_ACEOF
28608 ## --------------------- ##
28609 ## M4sh Initialization.  ##
28610 ## --------------------- ##
28611
28612 # Be Bourne compatible
28613 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28614   emulate sh
28615   NULLCMD=:
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
28620   set -o posix
28621 fi
28622 DUALCASE=1; export DUALCASE # for MKS sh
28623
28624 # Support unset when possible.
28625 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28626   as_unset=unset
28627 else
28628   as_unset=false
28629 fi
28630
28631
28632 # Work around bugs in pre-3.0 UWIN ksh.
28633 $as_unset ENV MAIL MAILPATH
28634 PS1='$ '
28635 PS2='> '
28636 PS4='+ '
28637
28638 # NLS nuisances.
28639 for as_var in \
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
28643 do
28644   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28645     eval $as_var=C; export $as_var
28646   else
28647     $as_unset $as_var
28648   fi
28649 done
28650
28651 # Required to use basename.
28652 if expr a : '\(a\)' >/dev/null 2>&1; then
28653   as_expr=expr
28654 else
28655   as_expr=false
28656 fi
28657
28658 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28659   as_basename=basename
28660 else
28661   as_basename=false
28662 fi
28663
28664
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 ||
28671 echo X/"$0" |
28672     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28673           /^X\/\(\/\/\)$/{ s//\1/; q; }
28674           /^X\/\(\/\).*/{ s//\1/; q; }
28675           s/.*/./; q'`
28676
28677
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
28685
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
28690   chmod +x conf$$.sh
28691   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28692     PATH_SEPARATOR=';'
28693   else
28694     PATH_SEPARATOR=:
28695   fi
28696   rm -f conf$$.sh
28697 fi
28698
28699
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
28706   # relative or not.
28707   case $0 in
28708     *[\\/]* ) as_myself=$0 ;;
28709     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28710 for as_dir in $PATH
28711 do
28712   IFS=$as_save_IFS
28713   test -z "$as_dir" && as_dir=.
28714   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28715 done
28716
28717        ;;
28718   esac
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
28722     as_myself=$0
28723   fi
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; }; }
28728   fi
28729   case $CONFIG_SHELL in
28730   '')
28731     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28732 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28733 do
28734   IFS=$as_save_IFS
28735   test -z "$as_dir" && as_dir=.
28736   for as_base in sh bash ksh sh5; do
28737          case $as_dir in
28738          /*)
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+"$@"}
28750            fi;;
28751          esac
28752        done
28753 done
28754 ;;
28755   esac
28756
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 |
28766     sed '
28767       N
28768       s,$,-,
28769       : loop
28770       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28771       t loop
28772       s,-$,,
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; }; }
28779
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).
28783   . ./$as_me.lineno
28784   # Exit status is that of the last command.
28785   exit
28786 }
28787
28788
28789 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28790   *c*,-n*) ECHO_N= ECHO_C='
28791 ' ECHO_T='      ' ;;
28792   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28793   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
28794 esac
28795
28796 if expr a : '\(a\)' >/dev/null 2>&1; then
28797   as_expr=expr
28798 else
28799   as_expr=false
28800 fi
28801
28802 rm -f conf$$ conf$$.exe conf$$.file
28803 echo >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
28809     as_ln_s='cp -p'
28810   else
28811     as_ln_s='ln -s'
28812   fi
28813 elif ln conf$$.file conf$$ 2>/dev/null; then
28814   as_ln_s=ln
28815 else
28816   as_ln_s='cp -p'
28817 fi
28818 rm -f conf$$ conf$$.exe conf$$.file
28819
28820 if mkdir -p . 2>/dev/null; then
28821   as_mkdir_p=:
28822 else
28823   test -d ./-p && rmdir ./-p
28824   as_mkdir_p=false
28825 fi
28826
28827 as_executable_p="test -f"
28828
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'"
28831
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'"
28834
28835
28836 # IFS
28837 # We need space, tab and new line, in precisely that order.
28838 as_nl='
28839 '
28840 IFS="   $as_nl"
28841
28842 # CDPATH.
28843 $as_unset CDPATH
28844
28845 exec 6>&1
28846
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.
28850 exec 5>>config.log
28851 {
28852   echo
28853   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28854 ## Running $as_me. ##
28855 _ASBOX
28856 } >&5
28857 cat >&5 <<_CSEOF
28858
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
28861
28862   CONFIG_FILES    = $CONFIG_FILES
28863   CONFIG_HEADERS  = $CONFIG_HEADERS
28864   CONFIG_LINKS    = $CONFIG_LINKS
28865   CONFIG_COMMANDS = $CONFIG_COMMANDS
28866   $ $0 $@
28867
28868 _CSEOF
28869 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28870 echo >&5
28871 _ACEOF
28872
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
28876 fi
28877
28878 if test -n "$ac_config_headers"; then
28879   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28880 fi
28881
28882 if test -n "$ac_config_links"; then
28883   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28884 fi
28885
28886 if test -n "$ac_config_commands"; then
28887   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28888 fi
28889
28890 cat >>$CONFIG_STATUS <<\_ACEOF
28891
28892 ac_cs_usage="\
28893 \`$as_me' instantiates files from templates according to the
28894 current configuration.
28895
28896 Usage: $0 [OPTIONS] [FILE]...
28897
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
28907
28908 Configuration files:
28909 $config_files
28910
28911 Configuration headers:
28912 $config_headers
28913
28914 Configuration commands:
28915 $config_commands
28916
28917 Report bugs to <bug-autoconf@gnu.org>."
28918 _ACEOF
28919
28920 cat >>$CONFIG_STATUS <<_ACEOF
28921 ac_cs_version="\\
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'`\\"
28925
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."
28929 srcdir=$srcdir
28930 INSTALL="$INSTALL"
28931 _ACEOF
28932
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.
28936 ac_need_defaults=:
28937 while test $# != 0
28938 do
28939   case $1 in
28940   --*=*)
28941     ac_option=`expr "x$1" : 'x\([^=]*\)='`
28942     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28943     ac_shift=:
28944     ;;
28945   -*)
28946     ac_option=$1
28947     ac_optarg=$2
28948     ac_shift=shift
28949     ;;
28950   *) # This is not an option, so the user has probably given explicit
28951      # arguments.
28952      ac_option=$1
28953      ac_need_defaults=false;;
28954   esac
28955
28956   case $ac_option in
28957   # Handling of the options.
28958 _ACEOF
28959 cat >>$CONFIG_STATUS <<\_ACEOF
28960   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28961     ac_cs_recheck=: ;;
28962   --version | --vers* | -V )
28963     echo "$ac_cs_version"; exit 0 ;;
28964   --he | --h)
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 )
28974     debug=: ;;
28975   --file | --fil | --fi | --f )
28976     $ac_shift
28977     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28978     ac_need_defaults=false;;
28979   --header | --heade | --head | --hea )
28980     $ac_shift
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)
28985     ac_cs_silent=: ;;
28986
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; }; } ;;
28993
28994   *) ac_config_targets="$ac_config_targets $1" ;;
28995
28996   esac
28997   shift
28998 done
28999
29000 ac_configure_extra_args=
29001
29002 if $ac_cs_silent; then
29003   exec 6>/dev/null
29004   ac_configure_extra_args="$ac_configure_extra_args --silent"
29005 fi
29006
29007 _ACEOF
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
29012 fi
29013
29014 _ACEOF
29015
29016 cat >>$CONFIG_STATUS <<_ACEOF
29017 #
29018 # INIT-COMMANDS section.
29019 #
29020
29021 PACKAGE="$PACKAGE"
29022 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29023
29024 _ACEOF
29025
29026
29027
29028 cat >>$CONFIG_STATUS <<\_ACEOF
29029 for ac_config_target in $ac_config_targets
29030 do
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; }; };;
29054   esac
29055 done
29056
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
29065 fi
29066
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.
29071 $debug ||
29072 {
29073   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29074   trap '{ (exit 1); exit 1; }' 1 2 13 15
29075 }
29076
29077 # Create a (secure) tmp directory for tmp files.
29078
29079 {
29080   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29081   test -n "$tmp" && test -d "$tmp"
29082 }  ||
29083 {
29084   tmp=./confstat$$-$RANDOM
29085   (umask 077 && mkdir $tmp)
29086 } ||
29087 {
29088    echo "$me: cannot create a temporary directory in ." >&2
29089    { (exit 1); exit 1; }
29090 }
29091
29092 _ACEOF
29093
29094 cat >>$CONFIG_STATUS <<_ACEOF
29095
29096 #
29097 # CONFIG_FILES section.
29098 #
29099
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
29152 s,@AWK@,$AWK,;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
29158 s,@CC@,$CC,;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
29185 s,@AR@,$AR,;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
29189 s,@CPP@,$CPP,;t t
29190 s,@CXX@,$CXX,;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
29197 s,@F77@,$F77,;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
29248 CEOF
29249
29250 _ACEOF
29251
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.
29259   ac_more_lines=:
29260   ac_sed_cmds=
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
29264     else
29265       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29266     fi
29267     if test ! -s $tmp/subs.frag; then
29268       ac_more_lines=false
29269     else
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.
29274       (echo ':t
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"
29278       else
29279         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29280       fi
29281       ac_sed_frag=`expr $ac_sed_frag + 1`
29282       ac_beg=$ac_end
29283       ac_end=`expr $ac_end + $ac_max_sed_lines`
29284     fi
29285   done
29286   if test -z "$ac_sed_cmds"; then
29287     ac_sed_cmds=cat
29288   fi
29289 fi # test -n "$CONFIG_FILES"
29290
29291 _ACEOF
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".
29295   case $ac_file in
29296   - | *:- | *:-:* ) # input from stdin
29297         cat >$tmp/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 ;;
29303   esac
29304
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 ||
29312 echo X"$ac_file" |
29313     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29314           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29315           /^X\(\/\/\)$/{ s//\1/; q; }
29316           /^X\(\/\).*/{ s//\1/; q; }
29317           s/.*/./; q'`
29318   { if $as_mkdir_p; then
29319     mkdir -p "$ac_dir"
29320   else
29321     as_dir="$ac_dir"
29322     as_dirs=
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 ||
29331 echo X"$as_dir" |
29332     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29333           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29334           /^X\(\/\/\)$/{ s//\1/; q; }
29335           /^X\(\/\).*/{ s//\1/; q; }
29336           s/.*/./; q'`
29337     done
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; }; }; }
29342
29343   ac_builddir=.
29344
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'`
29349 else
29350   ac_dir_suffix= ac_top_builddir=
29351 fi
29352
29353 case $srcdir in
29354   .)  # No --srcdir option.  We are building in place.
29355     ac_srcdir=.
29356     if test -z "$ac_top_builddir"; then
29357        ac_top_srcdir=.
29358     else
29359        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29360     fi ;;
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 ;;
29367 esac
29368
29369 # Do not use `cd foo && pwd` to compute absolute paths, because
29370 # the directories may not exist.
29371 case `pwd` in
29372 .) ac_abs_builddir="$ac_dir";;
29373 *)
29374   case "$ac_dir" in
29375   .) ac_abs_builddir=`pwd`;;
29376   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29377   *) ac_abs_builddir=`pwd`/"$ac_dir";;
29378   esac;;
29379 esac
29380 case $ac_abs_builddir in
29381 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29382 *)
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}.;;
29387   esac;;
29388 esac
29389 case $ac_abs_builddir in
29390 .) ac_abs_srcdir=$ac_srcdir;;
29391 *)
29392   case $ac_srcdir in
29393   .) ac_abs_srcdir=$ac_abs_builddir;;
29394   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29395   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29396   esac;;
29397 esac
29398 case $ac_abs_builddir in
29399 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29400 *)
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;;
29405   esac;;
29406 esac
29407
29408
29409   case $INSTALL in
29410   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29411   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29412   esac
29413
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;}
29417     rm -f "$ac_file"
29418   fi
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
29423     configure_input=
29424   else
29425     configure_input="$ac_file.  "
29426   fi
29427   configure_input=$configure_input"Generated from `echo $ac_file_in |
29428                                      sed 's,.*/,,'` by configure."
29429
29430   # First look for the input files in the build tree, otherwise in the
29431   # src tree.
29432   ac_file_inputs=`IFS=:
29433     for f in $ac_file_in; do
29434       case $f in
29435       -) echo $tmp/stdin ;;
29436       [\\/$]*)
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; }; }
29441          echo "$f";;
29442       *) # Relative
29443          if test -f "$f"; then
29444            # Build tree
29445            echo "$f"
29446          elif test -f "$srcdir/$f"; then
29447            # Source tree
29448            echo "$srcdir/$f"
29449          else
29450            # /dev/null tree
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; }; }
29454          fi;;
29455       esac
29456     done` || { (exit 1); exit 1; }
29457 _ACEOF
29458 cat >>$CONFIG_STATUS <<_ACEOF
29459   sed "$ac_vpsub
29460 $extrasub
29461 _ACEOF
29462 cat >>$CONFIG_STATUS <<\_ACEOF
29463 :t
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
29476   rm -f $tmp/stdin
29477   if test x"$ac_file" != x-; then
29478     mv $tmp/out $ac_file
29479   else
29480     cat $tmp/out
29481     rm -f $tmp/out
29482   fi
29483
29484 done
29485 _ACEOF
29486 cat >>$CONFIG_STATUS <<\_ACEOF
29487
29488 #
29489 # CONFIG_HEADER section.
29490 #
29491
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.
29494 #
29495 # ac_d sets the value in "#define NAME VALUE" lines.
29496 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
29497 ac_dB='[         ].*$,\1#\2'
29498 ac_dC=' '
29499 ac_dD=',;t'
29500 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29501 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
29502 ac_uB='$,\1#\2define\3'
29503 ac_uC=' '
29504 ac_uD=',;t'
29505
29506 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29507   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29508   case $ac_file in
29509   - | *:- | *:-:* ) # input from stdin
29510         cat >$tmp/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 ;;
29516   esac
29517
29518   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29519 echo "$as_me: creating $ac_file" >&6;}
29520
29521   # First look for the input files in the build tree, otherwise in the
29522   # src tree.
29523   ac_file_inputs=`IFS=:
29524     for f in $ac_file_in; do
29525       case $f in
29526       -) echo $tmp/stdin ;;
29527       [\\/$]*)
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.
29533          echo "$f";;
29534       *) # Relative
29535          if test -f "$f"; then
29536            # Build tree
29537            echo "$f"
29538          elif test -f "$srcdir/$f"; then
29539            # Source tree
29540            echo "$srcdir/$f"
29541          else
29542            # /dev/null tree
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; }; }
29546          fi;;
29547       esac
29548     done` || { (exit 1); exit 1; }
29549   # Remove the trailing spaces.
29550   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
29551
29552 _ACEOF
29553
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.
29564 #
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
29569 s/[\\&,]/\\&/g
29570 s,[\\$`],\\&,g
29571 t clear
29572 : clear
29573 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29574 t end
29575 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29576 : end
29577 _ACEOF
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
29584
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]*,/* & */,
29590 _ACEOF
29591
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
29600 do
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
29609   echo 'CEOF
29610   sed -f $tmp/defines.sed $tmp/in >$tmp/out
29611   rm -f $tmp/in
29612   mv $tmp/out $tmp/in
29613 ' >>$CONFIG_STATUS
29614   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29615   rm -f conftest.defines
29616   mv conftest.tail conftest.defines
29617 done
29618 rm -f conftest.defines
29619 echo '  fi # grep' >>$CONFIG_STATUS
29620 echo >>$CONFIG_STATUS
29621
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
29627 do
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
29636   echo 'CEOF
29637   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29638   rm -f $tmp/in
29639   mv $tmp/out $tmp/in
29640 ' >>$CONFIG_STATUS
29641   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29642   rm -f conftest.undefs
29643   mv conftest.tail conftest.undefs
29644 done
29645 rm -f conftest.undefs
29646
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
29653   else
29654     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
29655   fi
29656   cat $tmp/in >>$tmp/config.h
29657   rm -f $tmp/in
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;}
29662     else
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 ||
29669 echo X"$ac_file" |
29670     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29671           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29672           /^X\(\/\/\)$/{ s//\1/; q; }
29673           /^X\(\/\).*/{ s//\1/; q; }
29674           s/.*/./; q'`
29675       { if $as_mkdir_p; then
29676     mkdir -p "$ac_dir"
29677   else
29678     as_dir="$ac_dir"
29679     as_dirs=
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 ||
29688 echo X"$as_dir" |
29689     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29690           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29691           /^X\(\/\/\)$/{ s//\1/; q; }
29692           /^X\(\/\).*/{ s//\1/; q; }
29693           s/.*/./; q'`
29694     done
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; }; }; }
29699
29700       rm -f $ac_file
29701       mv $tmp/config.h $ac_file
29702     fi
29703   else
29704     cat $tmp/config.h
29705     rm -f $tmp/config.h
29706   fi
29707 # Compute $ac_file's index in $config_headers.
29708 _am_stamp_count=1
29709 for _am_header in $config_headers :; do
29710   case $_am_header in
29711     $ac_file | $ac_file:* )
29712       break ;;
29713     * )
29714       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29715   esac
29716 done
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 ||
29723 echo X$ac_file |
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
29729 done
29730 _ACEOF
29731 cat >>$CONFIG_STATUS <<\_ACEOF
29732
29733 #
29734 # CONFIG_COMMANDS section.
29735 #
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 ||
29745 echo X"$ac_dest" |
29746     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29747           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29748           /^X\(\/\/\)$/{ s//\1/; q; }
29749           /^X\(\/\).*/{ s//\1/; q; }
29750           s/.*/./; q'`
29751   { if $as_mkdir_p; then
29752     mkdir -p "$ac_dir"
29753   else
29754     as_dir="$ac_dir"
29755     as_dirs=
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 ||
29764 echo X"$as_dir" |
29765     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29766           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29767           /^X\(\/\/\)$/{ s//\1/; q; }
29768           /^X\(\/\).*/{ s//\1/; q; }
29769           s/.*/./; q'`
29770     done
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; }; }; }
29775
29776   ac_builddir=.
29777
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'`
29782 else
29783   ac_dir_suffix= ac_top_builddir=
29784 fi
29785
29786 case $srcdir in
29787   .)  # No --srcdir option.  We are building in place.
29788     ac_srcdir=.
29789     if test -z "$ac_top_builddir"; then
29790        ac_top_srcdir=.
29791     else
29792        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29793     fi ;;
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 ;;
29800 esac
29801
29802 # Do not use `cd foo && pwd` to compute absolute paths, because
29803 # the directories may not exist.
29804 case `pwd` in
29805 .) ac_abs_builddir="$ac_dir";;
29806 *)
29807   case "$ac_dir" in
29808   .) ac_abs_builddir=`pwd`;;
29809   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29810   *) ac_abs_builddir=`pwd`/"$ac_dir";;
29811   esac;;
29812 esac
29813 case $ac_abs_builddir in
29814 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29815 *)
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}.;;
29820   esac;;
29821 esac
29822 case $ac_abs_builddir in
29823 .) ac_abs_srcdir=$ac_srcdir;;
29824 *)
29825   case $ac_srcdir in
29826   .) ac_abs_srcdir=$ac_abs_builddir;;
29827   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29828   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29829   esac;;
29830 esac
29831 case $ac_abs_builddir in
29832 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29833 *)
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;;
29838   esac;;
29839 esac
29840
29841
29842   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
29843 echo "$as_me: executing $ac_dest commands" >&6;}
29844   case $ac_dest in
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
29854      case $ac_file in
29855         *.h) test -f $ac_file && ac_prefix_conf_INP=$ac_file ;;
29856         *)
29857      esac
29858    done
29859 fi
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"`
29863       ;;
29864       *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
29865       ;;
29866       *) ac_prefix_conf_INP=config.h
29867       ;;
29868    esac
29869 fi
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; }; }
29874 else
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"
29877   fi fi
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
29896
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;}
29904     else
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; }
29916           s/.*/./; q'`
29917       { if $as_mkdir_p; then
29918     mkdir -p "$ac_dir"
29919   else
29920     as_dir="$ac_dir"
29921     as_dirs=
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 ||
29930 echo X"$as_dir" |
29931     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29932           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29933           /^X\(\/\/\)$/{ s//\1/; q; }
29934           /^X\(\/\).*/{ s//\1/; q; }
29935           s/.*/./; q'`
29936     done
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; }; }; }
29941
29942       rm -f "$ac_prefix_conf_OUT"
29943       mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
29944     fi
29945     cp conftest.prefix _configs.sed
29946   else
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; }; }
29950   fi
29951   rm -f conftest.*
29952 fi
29953  ;;
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 ||
29970 echo X"$mf" |
29971     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29972           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29973           /^X\(\/\/\)$/{ s//\1/; q; }
29974           /^X\(\/\).*/{ s//\1/; q; }
29975           s/.*/./; q'`
29976   else
29977     continue
29978   fi
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
29991   # expansion.
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 ||
30003 echo X"$file" |
30004     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30005           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30006           /^X\(\/\/\)$/{ s//\1/; q; }
30007           /^X\(\/\).*/{ s//\1/; q; }
30008           s/.*/./; q'`
30009     { if $as_mkdir_p; then
30010     mkdir -p $dirpart/$fdir
30011   else
30012     as_dir=$dirpart/$fdir
30013     as_dirs=
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 ||
30022 echo X"$as_dir" |
30023     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30024           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30025           /^X\(\/\/\)$/{ s//\1/; q; }
30026           /^X\(\/\).*/{ s//\1/; q; }
30027           s/.*/./; q'`
30028     done
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; }; }; }
30033
30034     # echo "creating $dirpart/$file"
30035     echo '# dummy' > "$dirpart/$file"
30036   done
30037 done
30038  ;;
30039     chmod-libvncserver-config ) chmod a+x libvncserver-config ;;
30040   esac
30041 done
30042 _ACEOF
30043
30044 cat >>$CONFIG_STATUS <<\_ACEOF
30045
30046 { (exit 0); exit 0; }
30047 _ACEOF
30048 chmod +x $CONFIG_STATUS
30049 ac_clean_files=$ac_clean_files_save
30050
30051
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
30061   ac_cs_success=:
30062   ac_config_status_args=
30063   test "$silent" = yes &&
30064     ac_config_status_args="$ac_config_status_args --quiet"
30065   exec 5>/dev/null
30066   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30067   exec 5>>config.log
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; }
30071 fi
30072
30073 chmod a+x ./libvncserver-config
30074