]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bind9/lib/bind/configure
This commit was generated by cvs2svn to compensate for changes in r167802,
[FreeBSD/FreeBSD.git] / contrib / bind9 / lib / bind / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.83.2.5.2.31 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conf$$.sh
90   echo  "exit 0"   >>conf$$.sh
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147              CONFIG_SHELL=$as_dir/$as_base
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158   # uniformly replaced by the line number.  The first 'sed' inserts a
159   # line-number line before each line; the second 'sed' does the real
160   # work.  The second script uses 'N' to pair each line-number line
161   # with the numbered line, and appends trailing '-' during
162   # substitution so that $LINENO is not a special case at line end.
163   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165   sed '=' <$as_myself |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
175   chmod +x $as_me.lineno ||
176     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177    { (exit 1); exit 1; }; }
178
179   # Don't try to exec as it changes $[0], causing all sort of problems
180   # (the dirname of $[0] is not the place where we might find the
181   # original and so on.  Autoconf is especially sensible to this).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204   # We could just check for DJGPP; but this test a) works b) is more generic
205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206   if test -f conf$$.exe; then
207     # Don't use ln at all; we don't have any links
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
222   test -d ./-p && rmdir ./-p
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=${tagnames+${tagnames},}CXX
396
397 tagnames=${tagnames+${tagnames},}F77
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME=
424 PACKAGE_TARNAME=
425 PACKAGE_VERSION=
426 PACKAGE_STRING=
427 PACKAGE_BUGREPORT=
428
429 ac_unique_file="resolv/herror.c"
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STD_CINCLUDES STD_CDEFINES STD_CWARNINGS CCOPT AR ARFLAGS LN ETAGS PERL CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP ISC_PLATFORM_NEEDSYSSELECTH WANT_IRS_GR WANT_IRS_GR_OBJS WANT_IRS_PW WANT_IRS_PW_OBJS WANT_IRS_NIS WANT_IRS_NIS_OBJS WANT_IRS_NISGR_OBJS WANT_IRS_NISPW_OBJS WANT_IRS_DBPW_OBJS ALWAYS_DEFINES DO_PTHREADS WANT_IRS_THREADSGR_OBJS WANT_IRS_THREADSPW_OBJS WANT_IRS_THREADS_OBJS WANT_THREADS_OBJS USE_IFNAMELINKID ISC_THREAD_DIR DAEMON_OBJS NEED_DAEMON STRSEP_OBJS NEED_STRSEP NEED_STRERROR MKDEPCC MKDEPCFLAGS MKDEPPROG IRIX_DNSSEC_WARNINGS_HACK purify_path PURIFY LN_S ECHO ac_ct_AR STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL O A SA LIBTOOL_MKDEP_SED LIBTOOL_MODE_COMPILE LIBTOOL_MODE_INSTALL LIBTOOL_MODE_LINK HAS_INET6_STRUCTS ISC_PLATFORM_NEEDNETINETIN6H ISC_PLATFORM_NEEDNETINET6IN6H HAS_IN_ADDR6 NEED_IN6ADDR_ANY ISC_PLATFORM_HAVEIN6PKTINFO ISC_PLATFORM_FIXIN6ISADDR ISC_IPV6_H ISC_IPV6_O ISC_ISCIPV6_O ISC_IPV6_C HAVE_SIN6_SCOPE_ID HAVE_SOCKADDR_STORAGE ISC_PLATFORM_NEEDNTOP ISC_PLATFORM_NEEDPTON ISC_PLATFORM_NEEDATON HAVE_SA_LEN HAVE_MINIMUM_IFREQ BSD_COMP SOLARIS_BITTYPES USE_FIONBIO_IOCTL PORT_NONBLOCK PORT_DIR USE_POLL HAVE_MD5 SOLARIS2 PORT_INCLUDE ISC_PLATFORM_MSGHDRFLAVOR ISC_PLATFORM_NEEDPORTT ISC_LWRES_ENDHOSTENTINT ISC_LWRES_SETNETENTINT ISC_LWRES_ENDNETENTINT ISC_LWRES_GETHOSTBYADDRVOID ISC_LWRES_NEEDHERRNO ISC_LWRES_GETIPNODEPROTO ISC_LWRES_GETADDRINFOPROTO ISC_LWRES_GETNAMEINFOPROTO NEED_PSELECT NEED_GETTIMEOFDAY HAVE_STRNDUP ISC_PLATFORM_NEEDSTRSEP ISC_PLATFORM_NEEDVSNPRINTF ISC_EXTRA_OBJS ISC_EXTRA_SRCS USE_SYSERROR_LIST ISC_PLATFORM_QUADFORMAT ISC_SOCKLEN_T GETGROUPLIST_ARGS NET_R_ARGS NET_R_BAD NET_R_COPY NET_R_COPY_ARGS NET_R_OK NET_R_SETANSWER NET_R_RETURN GETNETBYADDR_ADDR_T NETENT_DATA NET_R_ENT_ARGS NET_R_SET_RESULT NET_R_SET_RETURN NET_R_END_RESULT NET_R_END_RETURN GROUP_R_ARGS GROUP_R_BAD GROUP_R_OK GROUP_R_RETURN GROUP_R_END_RESULT GROUP_R_END_RETURN GROUP_R_ENT_ARGS GROUP_R_SET_RESULT GROUP_R_SET_RETURN HOST_R_ARGS HOST_R_BAD HOST_R_COPY HOST_R_COPY_ARGS HOST_R_ERRNO HOST_R_OK HOST_R_RETURN HOST_R_SETANSWER HOSTENT_DATA HOST_R_END_RESULT HOST_R_END_RETURN HOST_R_ENT_ARGS HOST_R_SET_RESULT HOST_R_SET_RETURN SETPWENT_VOID SETGRENT_VOID NGR_R_ARGS NGR_R_BAD NGR_R_COPY NGR_R_COPY_ARGS NGR_R_OK NGR_R_RETURN NGR_R_PRIVATE NGR_R_END_RESULT NGR_R_END_RETURN NGR_R_ENT_ARGS NGR_R_SET_RESULT NGR_R_SET_RETURN PROTO_R_ARGS PROTO_R_BAD PROTO_R_COPY PROTO_R_COPY_ARGS PROTO_R_OK PROTO_R_SETANSWER PROTO_R_RETURN PROTOENT_DATA PROTO_R_END_RESULT PROTO_R_END_RETURN PROTO_R_ENT_ARGS PROTO_R_ENT_UNUSED PROTO_R_SET_RESULT PROTO_R_SET_RETURN PASS_R_ARGS PASS_R_BAD PASS_R_COPY PASS_R_COPY_ARGS PASS_R_OK PASS_R_RETURN PASS_R_END_RESULT PASS_R_END_RETURN PASS_R_ENT_ARGS PASS_R_SET_RESULT PASS_R_SET_RETURN SERV_R_ARGS SERV_R_BAD SERV_R_COPY SERV_R_COPY_ARGS SERV_R_OK SERV_R_SETANSWER SERV_R_RETURN SERVENT_DATA SERV_R_END_RESULT SERV_R_END_RETURN SERV_R_ENT_ARGS SERV_R_ENT_UNUSED SERV_R_SET_RESULT SERV_R_SET_RETURN SETNETGRENT_ARGS INNETGR_ARGS BIND9_TOP_BUILDDIR BIND9_VERSION LIBOBJS LTLIBOBJS'
468 ac_subst_files='BIND9_INCLUDES BIND9_MAKE_RULES LIBBIND_API'
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 this package 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 System types:
1010   --build=BUILD     configure for building on BUILD [guessed]
1011   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1012 _ACEOF
1013 fi
1014
1015 if test -n "$ac_init_help"; then
1016
1017   cat <<\_ACEOF
1018
1019 Optional Features:
1020   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1021   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1022   --enable-threads      enable multithreading
1023   --enable-shared[=PKGS]
1024                           build shared libraries [default=yes]
1025   --enable-static[=PKGS]
1026                           build static libraries [default=yes]
1027   --enable-fast-install[=PKGS]
1028                           optimize for fast installation [default=yes]
1029   --disable-libtool-lock  avoid locking (might break parallel builds)
1030   --enable-ipv6         use IPv6 default=autodetect
1031
1032 Optional Packages:
1033   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1034   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1035  --with-irs-gr          Build ....
1036  --with-irs-pw          Build ....
1037  --with-irs-nis         Build ....
1038   --with-randomdev=PATH Specify path for random device
1039   --with-ptl2           on NetBSD, use the ptl2 thread library (experimental)
1040   --with-purify=PATH    use Rational purify
1041   --with-libtool        use GNU libtool (following indented options supported)
1042   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1043   --with-pic              try to use only PIC/non-PIC objects [default=use
1044                           both]
1045   --with-tags[=TAGS]
1046                           include additional configurations [automatic]
1047   --with-kame=PATH      use Kame IPv6 default path /usr/local/v6
1048
1049 Some influential environment variables:
1050   CC          C compiler command
1051   CFLAGS      C compiler flags
1052   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1053               nonstandard directory <lib dir>
1054   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055               headers in a nonstandard directory <include dir>
1056   CPP         C preprocessor
1057   CXX         C++ compiler command
1058   CXXFLAGS    C++ compiler flags
1059   CXXCPP      C++ preprocessor
1060   F77         Fortran 77 compiler command
1061   FFLAGS      Fortran 77 compiler flags
1062
1063 Use these variables to override the choices made by `configure' or to help
1064 it to find libraries and programs with nonstandard names/locations.
1065
1066 _ACEOF
1067 fi
1068
1069 if test "$ac_init_help" = "recursive"; then
1070   # If there are subdirs, report their specific --help.
1071   ac_popdir=`pwd`
1072   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1073     test -d $ac_dir || continue
1074     ac_builddir=.
1075
1076 if test "$ac_dir" != .; then
1077   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1078   # A "../" for each directory in $ac_dir_suffix.
1079   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1080 else
1081   ac_dir_suffix= ac_top_builddir=
1082 fi
1083
1084 case $srcdir in
1085   .)  # No --srcdir option.  We are building in place.
1086     ac_srcdir=.
1087     if test -z "$ac_top_builddir"; then
1088        ac_top_srcdir=.
1089     else
1090        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1091     fi ;;
1092   [\\/]* | ?:[\\/]* )  # Absolute path.
1093     ac_srcdir=$srcdir$ac_dir_suffix;
1094     ac_top_srcdir=$srcdir ;;
1095   *) # Relative path.
1096     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1097     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1098 esac
1099
1100 # Do not use `cd foo && pwd` to compute absolute paths, because
1101 # the directories may not exist.
1102 case `pwd` in
1103 .) ac_abs_builddir="$ac_dir";;
1104 *)
1105   case "$ac_dir" in
1106   .) ac_abs_builddir=`pwd`;;
1107   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1108   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1109   esac;;
1110 esac
1111 case $ac_abs_builddir in
1112 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1113 *)
1114   case ${ac_top_builddir}. in
1115   .) ac_abs_top_builddir=$ac_abs_builddir;;
1116   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1117   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1118   esac;;
1119 esac
1120 case $ac_abs_builddir in
1121 .) ac_abs_srcdir=$ac_srcdir;;
1122 *)
1123   case $ac_srcdir in
1124   .) ac_abs_srcdir=$ac_abs_builddir;;
1125   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1126   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1127   esac;;
1128 esac
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1131 *)
1132   case $ac_top_srcdir in
1133   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1134   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1135   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1136   esac;;
1137 esac
1138
1139     cd $ac_dir
1140     # Check for guested configure; otherwise get Cygnus style configure.
1141     if test -f $ac_srcdir/configure.gnu; then
1142       echo
1143       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1144     elif test -f $ac_srcdir/configure; then
1145       echo
1146       $SHELL $ac_srcdir/configure  --help=recursive
1147     elif test -f $ac_srcdir/configure.ac ||
1148            test -f $ac_srcdir/configure.in; then
1149       echo
1150       $ac_configure --help
1151     else
1152       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1153     fi
1154     cd $ac_popdir
1155   done
1156 fi
1157
1158 test -n "$ac_init_help" && exit 0
1159 if $ac_init_version; then
1160   cat <<\_ACEOF
1161
1162 Copyright (C) 2003 Free Software Foundation, Inc.
1163 This configure script is free software; the Free Software Foundation
1164 gives unlimited permission to copy, distribute and modify it.
1165 _ACEOF
1166   exit 0
1167 fi
1168 exec 5>config.log
1169 cat >&5 <<_ACEOF
1170 This file contains any messages produced by compilers while
1171 running configure, to aid debugging if configure makes a mistake.
1172
1173 It was created by $as_me, which was
1174 generated by GNU Autoconf 2.59.  Invocation command line was
1175
1176   $ $0 $@
1177
1178 _ACEOF
1179 {
1180 cat <<_ASUNAME
1181 ## --------- ##
1182 ## Platform. ##
1183 ## --------- ##
1184
1185 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1186 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1187 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1188 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1189 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1190
1191 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1192 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1193
1194 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1195 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1196 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1197 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1198 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1199 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1200 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1201
1202 _ASUNAME
1203
1204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1205 for as_dir in $PATH
1206 do
1207   IFS=$as_save_IFS
1208   test -z "$as_dir" && as_dir=.
1209   echo "PATH: $as_dir"
1210 done
1211
1212 } >&5
1213
1214 cat >&5 <<_ACEOF
1215
1216
1217 ## ----------- ##
1218 ## Core tests. ##
1219 ## ----------- ##
1220
1221 _ACEOF
1222
1223
1224 # Keep a trace of the command line.
1225 # Strip out --no-create and --no-recursion so they do not pile up.
1226 # Strip out --silent because we don't want to record it for future runs.
1227 # Also quote any args containing shell meta-characters.
1228 # Make two passes to allow for proper duplicate-argument suppression.
1229 ac_configure_args=
1230 ac_configure_args0=
1231 ac_configure_args1=
1232 ac_sep=
1233 ac_must_keep_next=false
1234 for ac_pass in 1 2
1235 do
1236   for ac_arg
1237   do
1238     case $ac_arg in
1239     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1240     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241     | -silent | --silent | --silen | --sile | --sil)
1242       continue ;;
1243     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1244       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1245     esac
1246     case $ac_pass in
1247     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1248     2)
1249       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1250       if test $ac_must_keep_next = true; then
1251         ac_must_keep_next=false # Got value, back to normal.
1252       else
1253         case $ac_arg in
1254           *=* | --config-cache | -C | -disable-* | --disable-* \
1255           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1256           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1257           | -with-* | --with-* | -without-* | --without-* | --x)
1258             case "$ac_configure_args0 " in
1259               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1260             esac
1261             ;;
1262           -* ) ac_must_keep_next=true ;;
1263         esac
1264       fi
1265       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1266       # Get rid of the leading space.
1267       ac_sep=" "
1268       ;;
1269     esac
1270   done
1271 done
1272 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1273 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1274
1275 # When interrupted or exit'd, cleanup temporary files, and complete
1276 # config.log.  We remove comments because anyway the quotes in there
1277 # would cause problems or look ugly.
1278 # WARNING: Be sure not to use single quotes in there, as some shells,
1279 # such as our DU 5.0 friend, will then `close' the trap.
1280 trap 'exit_status=$?
1281   # Save into config.log some information that might help in debugging.
1282   {
1283     echo
1284
1285     cat <<\_ASBOX
1286 ## ---------------- ##
1287 ## Cache variables. ##
1288 ## ---------------- ##
1289 _ASBOX
1290     echo
1291     # The following way of writing the cache mishandles newlines in values,
1292 {
1293   (set) 2>&1 |
1294     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1295     *ac_space=\ *)
1296       sed -n \
1297         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1298           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1299       ;;
1300     *)
1301       sed -n \
1302         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1303       ;;
1304     esac;
1305 }
1306     echo
1307
1308     cat <<\_ASBOX
1309 ## ----------------- ##
1310 ## Output variables. ##
1311 ## ----------------- ##
1312 _ASBOX
1313     echo
1314     for ac_var in $ac_subst_vars
1315     do
1316       eval ac_val=$`echo $ac_var`
1317       echo "$ac_var='"'"'$ac_val'"'"'"
1318     done | sort
1319     echo
1320
1321     if test -n "$ac_subst_files"; then
1322       cat <<\_ASBOX
1323 ## ------------- ##
1324 ## Output files. ##
1325 ## ------------- ##
1326 _ASBOX
1327       echo
1328       for ac_var in $ac_subst_files
1329       do
1330         eval ac_val=$`echo $ac_var`
1331         echo "$ac_var='"'"'$ac_val'"'"'"
1332       done | sort
1333       echo
1334     fi
1335
1336     if test -s confdefs.h; then
1337       cat <<\_ASBOX
1338 ## ----------- ##
1339 ## confdefs.h. ##
1340 ## ----------- ##
1341 _ASBOX
1342       echo
1343       sed "/^$/d" confdefs.h | sort
1344       echo
1345     fi
1346     test "$ac_signal" != 0 &&
1347       echo "$as_me: caught signal $ac_signal"
1348     echo "$as_me: exit $exit_status"
1349   } >&5
1350   rm -f core *.core &&
1351   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1352     exit $exit_status
1353      ' 0
1354 for ac_signal in 1 2 13 15; do
1355   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1356 done
1357 ac_signal=0
1358
1359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1360 rm -rf conftest* confdefs.h
1361 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1362 echo >confdefs.h
1363
1364 # Predefined preprocessor variables.
1365
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_NAME "$PACKAGE_NAME"
1368 _ACEOF
1369
1370
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1373 _ACEOF
1374
1375
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1378 _ACEOF
1379
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_STRING "$PACKAGE_STRING"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1388 _ACEOF
1389
1390
1391 # Let the site file select an alternate cache file if it wants to.
1392 # Prefer explicitly selected file to automatically selected ones.
1393 if test -z "$CONFIG_SITE"; then
1394   if test "x$prefix" != xNONE; then
1395     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1396   else
1397     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1398   fi
1399 fi
1400 for ac_site_file in $CONFIG_SITE; do
1401   if test -r "$ac_site_file"; then
1402     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1403 echo "$as_me: loading site script $ac_site_file" >&6;}
1404     sed 's/^/| /' "$ac_site_file" >&5
1405     . "$ac_site_file"
1406   fi
1407 done
1408
1409 if test -r "$cache_file"; then
1410   # Some versions of bash will fail to source /dev/null (special
1411   # files actually), so we avoid doing that.
1412   if test -f "$cache_file"; then
1413     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1414 echo "$as_me: loading cache $cache_file" >&6;}
1415     case $cache_file in
1416       [\\/]* | ?:[\\/]* ) . $cache_file;;
1417       *)                      . ./$cache_file;;
1418     esac
1419   fi
1420 else
1421   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1422 echo "$as_me: creating cache $cache_file" >&6;}
1423   >$cache_file
1424 fi
1425
1426 # Check that the precious variables saved in the cache have kept the same
1427 # value.
1428 ac_cache_corrupted=false
1429 for ac_var in `(set) 2>&1 |
1430                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1431   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1432   eval ac_new_set=\$ac_env_${ac_var}_set
1433   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1434   eval ac_new_val="\$ac_env_${ac_var}_value"
1435   case $ac_old_set,$ac_new_set in
1436     set,)
1437       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1439       ac_cache_corrupted=: ;;
1440     ,set)
1441       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1443       ac_cache_corrupted=: ;;
1444     ,);;
1445     *)
1446       if test "x$ac_old_val" != "x$ac_new_val"; then
1447         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1448 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1449         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1450 echo "$as_me:   former value:  $ac_old_val" >&2;}
1451         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1452 echo "$as_me:   current value: $ac_new_val" >&2;}
1453         ac_cache_corrupted=:
1454       fi;;
1455   esac
1456   # Pass precious variables to config.status.
1457   if test "$ac_new_set" = set; then
1458     case $ac_new_val in
1459     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1460       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1461     *) ac_arg=$ac_var=$ac_new_val ;;
1462     esac
1463     case " $ac_configure_args " in
1464       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1465       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1466     esac
1467   fi
1468 done
1469 if $ac_cache_corrupted; then
1470   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1471 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1472   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1473 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1474    { (exit 1); exit 1; }; }
1475 fi
1476
1477 ac_ext=c
1478 ac_cpp='$CPP $CPPFLAGS'
1479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503           ac_config_headers="$ac_config_headers config.h"
1504
1505
1506 ac_aux_dir=
1507 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1508   if test -f $ac_dir/install-sh; then
1509     ac_aux_dir=$ac_dir
1510     ac_install_sh="$ac_aux_dir/install-sh -c"
1511     break
1512   elif test -f $ac_dir/install.sh; then
1513     ac_aux_dir=$ac_dir
1514     ac_install_sh="$ac_aux_dir/install.sh -c"
1515     break
1516   elif test -f $ac_dir/shtool; then
1517     ac_aux_dir=$ac_dir
1518     ac_install_sh="$ac_aux_dir/shtool install -c"
1519     break
1520   fi
1521 done
1522 if test -z "$ac_aux_dir"; then
1523   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1524 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1525    { (exit 1); exit 1; }; }
1526 fi
1527 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1528 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1529 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1530
1531 # Make sure we can run config.sub.
1532 $ac_config_sub sun4 >/dev/null 2>&1 ||
1533   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1534 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1535    { (exit 1); exit 1; }; }
1536
1537 echo "$as_me:$LINENO: checking build system type" >&5
1538 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1539 if test "${ac_cv_build+set}" = set; then
1540   echo $ECHO_N "(cached) $ECHO_C" >&6
1541 else
1542   ac_cv_build_alias=$build_alias
1543 test -z "$ac_cv_build_alias" &&
1544   ac_cv_build_alias=`$ac_config_guess`
1545 test -z "$ac_cv_build_alias" &&
1546   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1547 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1548    { (exit 1); exit 1; }; }
1549 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1550   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1551 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1552    { (exit 1); exit 1; }; }
1553
1554 fi
1555 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1556 echo "${ECHO_T}$ac_cv_build" >&6
1557 build=$ac_cv_build
1558 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1559 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1560 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1561
1562
1563 echo "$as_me:$LINENO: checking host system type" >&5
1564 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1565 if test "${ac_cv_host+set}" = set; then
1566   echo $ECHO_N "(cached) $ECHO_C" >&6
1567 else
1568   ac_cv_host_alias=$host_alias
1569 test -z "$ac_cv_host_alias" &&
1570   ac_cv_host_alias=$ac_cv_build_alias
1571 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1572   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1573 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1574    { (exit 1); exit 1; }; }
1575
1576 fi
1577 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1578 echo "${ECHO_T}$ac_cv_host" >&6
1579 host=$ac_cv_host
1580 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583
1584
1585
1586 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1587 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1588 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1589 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1590   echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592   cat >conftest.make <<\_ACEOF
1593 all:
1594         @echo 'ac_maketemp="$(MAKE)"'
1595 _ACEOF
1596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1597 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1598 if test -n "$ac_maketemp"; then
1599   eval ac_cv_prog_make_${ac_make}_set=yes
1600 else
1601   eval ac_cv_prog_make_${ac_make}_set=no
1602 fi
1603 rm -f conftest.make
1604 fi
1605 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1606   echo "$as_me:$LINENO: result: yes" >&5
1607 echo "${ECHO_T}yes" >&6
1608   SET_MAKE=
1609 else
1610   echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1612   SET_MAKE="MAKE=${MAKE-make}"
1613 fi
1614
1615 if test -n "$ac_tool_prefix"; then
1616   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1618 echo "$as_me:$LINENO: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_RANLIB+set}" = set; then
1621   echo $ECHO_N "(cached) $ECHO_C" >&6
1622 else
1623   if test -n "$RANLIB"; then
1624   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1625 else
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 for as_dir in $PATH
1628 do
1629   IFS=$as_save_IFS
1630   test -z "$as_dir" && as_dir=.
1631   for ac_exec_ext in '' $ac_executable_extensions; do
1632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1633     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635     break 2
1636   fi
1637 done
1638 done
1639
1640 fi
1641 fi
1642 RANLIB=$ac_cv_prog_RANLIB
1643 if test -n "$RANLIB"; then
1644   echo "$as_me:$LINENO: result: $RANLIB" >&5
1645 echo "${ECHO_T}$RANLIB" >&6
1646 else
1647   echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1649 fi
1650
1651 fi
1652 if test -z "$ac_cv_prog_RANLIB"; then
1653   ac_ct_RANLIB=$RANLIB
1654   # Extract the first word of "ranlib", so it can be a program name with args.
1655 set dummy ranlib; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1659   echo $ECHO_N "(cached) $ECHO_C" >&6
1660 else
1661   if test -n "$ac_ct_RANLIB"; then
1662   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1663 else
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 for as_dir in $PATH
1666 do
1667   IFS=$as_save_IFS
1668   test -z "$as_dir" && as_dir=.
1669   for ac_exec_ext in '' $ac_executable_extensions; do
1670   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671     ac_cv_prog_ac_ct_RANLIB="ranlib"
1672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673     break 2
1674   fi
1675 done
1676 done
1677
1678   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1679 fi
1680 fi
1681 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1682 if test -n "$ac_ct_RANLIB"; then
1683   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1684 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1685 else
1686   echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1688 fi
1689
1690   RANLIB=$ac_ct_RANLIB
1691 else
1692   RANLIB="$ac_cv_prog_RANLIB"
1693 fi
1694
1695 # Find a good install program.  We prefer a C program (faster),
1696 # so one script is as good as another.  But avoid the broken or
1697 # incompatible versions:
1698 # SysV /etc/install, /usr/sbin/install
1699 # SunOS /usr/etc/install
1700 # IRIX /sbin/install
1701 # AIX /bin/install
1702 # AmigaOS /C/install, which installs bootblocks on floppy discs
1703 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1704 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1705 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1706 # OS/2's system install, which has a completely different semantic
1707 # ./install, which can be erroneously created by make from ./install.sh.
1708 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1709 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1710 if test -z "$INSTALL"; then
1711 if test "${ac_cv_path_install+set}" = set; then
1712   echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1716 do
1717   IFS=$as_save_IFS
1718   test -z "$as_dir" && as_dir=.
1719   # Account for people who put trailing slashes in PATH elements.
1720 case $as_dir/ in
1721   ./ | .// | /cC/* | \
1722   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1723   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1724   /usr/ucb/* ) ;;
1725   *)
1726     # OSF1 and SCO ODT 3.0 have their own names for install.
1727     # Don't use installbsd from OSF since it installs stuff as root
1728     # by default.
1729     for ac_prog in ginstall scoinst install; do
1730       for ac_exec_ext in '' $ac_executable_extensions; do
1731         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1732           if test $ac_prog = install &&
1733             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1734             # AIX install.  It has an incompatible calling convention.
1735             :
1736           elif test $ac_prog = install &&
1737             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1738             # program-specific install script used by HP pwplus--don't use.
1739             :
1740           else
1741             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1742             break 3
1743           fi
1744         fi
1745       done
1746     done
1747     ;;
1748 esac
1749 done
1750
1751
1752 fi
1753   if test "${ac_cv_path_install+set}" = set; then
1754     INSTALL=$ac_cv_path_install
1755   else
1756     # As a last resort, use the slow shell script.  We don't cache a
1757     # path for INSTALL within a source directory, because that will
1758     # break other packages using the cache if that directory is
1759     # removed, or if the path is relative.
1760     INSTALL=$ac_install_sh
1761   fi
1762 fi
1763 echo "$as_me:$LINENO: result: $INSTALL" >&5
1764 echo "${ECHO_T}$INSTALL" >&6
1765
1766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1767 # It thinks the first close brace ends the variable substitution.
1768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1769
1770 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1771
1772 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1773
1774
1775
1776
1777
1778
1779
1780 # Extract the first word of "ar", so it can be a program name with args.
1781 set dummy ar; ac_word=$2
1782 echo "$as_me:$LINENO: checking for $ac_word" >&5
1783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1784 if test "${ac_cv_path_AR+set}" = set; then
1785   echo $ECHO_N "(cached) $ECHO_C" >&6
1786 else
1787   case $AR in
1788   [\\/]* | ?:[\\/]*)
1789   ac_cv_path_AR="$AR" # Let the user override the test with a path.
1790   ;;
1791   *)
1792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793 for as_dir in $PATH
1794 do
1795   IFS=$as_save_IFS
1796   test -z "$as_dir" && as_dir=.
1797   for ac_exec_ext in '' $ac_executable_extensions; do
1798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1799     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
1800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801     break 2
1802   fi
1803 done
1804 done
1805
1806   ;;
1807 esac
1808 fi
1809 AR=$ac_cv_path_AR
1810
1811 if test -n "$AR"; then
1812   echo "$as_me:$LINENO: result: $AR" >&5
1813 echo "${ECHO_T}$AR" >&6
1814 else
1815   echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1817 fi
1818
1819 ARFLAGS="cruv"
1820
1821
1822
1823 # The POSIX ln(1) program.  Non-POSIX systems may substitute
1824 # "copy" or something.
1825 LN=ln
1826
1827
1828 case "$AR" in
1829         "")
1830                 { { echo "$as_me:$LINENO: error:
1831 ar program not found.  Please fix your PATH to include the directory in
1832 which ar resides, or set AR in the environment with the full path to ar.
1833 " >&5
1834 echo "$as_me: error:
1835 ar program not found.  Please fix your PATH to include the directory in
1836 which ar resides, or set AR in the environment with the full path to ar.
1837 " >&2;}
1838    { (exit 1); exit 1; }; }
1839
1840                 ;;
1841 esac
1842
1843 #
1844 # Etags.
1845 #
1846 for ac_prog in etags emacs-etags
1847 do
1848   # Extract the first word of "$ac_prog", so it can be a program name with args.
1849 set dummy $ac_prog; ac_word=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_path_ETAGS+set}" = set; then
1853   echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855   case $ETAGS in
1856   [\\/]* | ?:[\\/]*)
1857   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
1858   ;;
1859   *)
1860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1862 do
1863   IFS=$as_save_IFS
1864   test -z "$as_dir" && as_dir=.
1865   for ac_exec_ext in '' $ac_executable_extensions; do
1866   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
1868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869     break 2
1870   fi
1871 done
1872 done
1873
1874   ;;
1875 esac
1876 fi
1877 ETAGS=$ac_cv_path_ETAGS
1878
1879 if test -n "$ETAGS"; then
1880   echo "$as_me:$LINENO: result: $ETAGS" >&5
1881 echo "${ECHO_T}$ETAGS" >&6
1882 else
1883   echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1885 fi
1886
1887   test -n "$ETAGS" && break
1888 done
1889
1890
1891 #
1892 # Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
1893 # GNU emacs etags, and it requires the -L flag.
1894 #
1895 if test "X$ETAGS" != "X"; then
1896         echo "$as_me:$LINENO: checking for Exuberant Ctags etags" >&5
1897 echo $ECHO_N "checking for Exuberant Ctags etags... $ECHO_C" >&6
1898         if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
1899                 echo "$as_me:$LINENO: result: yes" >&5
1900 echo "${ECHO_T}yes" >&6
1901                 ETAGS="$ETAGS -L"
1902         else
1903                 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1905         fi
1906 fi
1907
1908
1909 #
1910 # Perl is optional; it is used only by some of the system test scripts.
1911 #
1912 for ac_prog in perl5 perl
1913 do
1914   # Extract the first word of "$ac_prog", so it can be a program name with args.
1915 set dummy $ac_prog; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_path_PERL+set}" = set; then
1919   echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921   case $PERL in
1922   [\\/]* | ?:[\\/]*)
1923   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1924   ;;
1925   *)
1926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1928 do
1929   IFS=$as_save_IFS
1930   test -z "$as_dir" && as_dir=.
1931   for ac_exec_ext in '' $ac_executable_extensions; do
1932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
1934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935     break 2
1936   fi
1937 done
1938 done
1939
1940   ;;
1941 esac
1942 fi
1943 PERL=$ac_cv_path_PERL
1944
1945 if test -n "$PERL"; then
1946   echo "$as_me:$LINENO: result: $PERL" >&5
1947 echo "${ECHO_T}$PERL" >&6
1948 else
1949   echo "$as_me:$LINENO: result: no" >&5
1950 echo "${ECHO_T}no" >&6
1951 fi
1952
1953   test -n "$PERL" && break
1954 done
1955
1956
1957
1958 #
1959 # isc/list.h and others clash with the rest of BIND 9
1960 #
1961 case "$includedir" in
1962         '${prefix}/include')
1963                 includedir='${prefix}/bind/include'
1964                 ;;
1965 esac
1966 case "$libdir" in
1967         '${prefix}/lib')
1968                 libdir='${prefix}/bind/lib'
1969                 ;;
1970 esac
1971
1972 #
1973 # Make sure INSTALL uses an absolute path, else it will be wrong in all
1974 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
1975 # configure based on the location of the file where it is substituted.
1976 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
1977 # subdirectory of install-sh, This relative path will be wrong for all
1978 # directories more than one level down from install-sh.
1979 #
1980 case "$INSTALL" in
1981         /*)
1982                 ;;
1983         *)
1984                 #
1985                 # Not all systems have dirname.
1986                 #
1987
1988                 ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
1989
1990
1991                 ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
1992                 test "$ac_dir" = "$ac_prog" && ac_dir=.
1993                 test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
1994                 INSTALL="$ac_dir/$ac_prog"
1995                 ;;
1996 esac
1997
1998 #
1999 # On these hosts, we really want to use cc, not gcc, even if it is
2000 # found.  The gcc that these systems have will not correctly handle
2001 # pthreads.
2002 #
2003 # However, if the user sets $CC to be something, let that override
2004 # our change.
2005 #
2006 if test "X$CC" = "X" ; then
2007         case "$host" in
2008                 *-dec-osf*)
2009                         CC="cc"
2010                         ;;
2011                 *-solaris*)
2012                         # Use Sun's cc if it is available, but watch
2013                         # out for /usr/ucb/cc; it will never be the right
2014                         # compiler to use.
2015                         #
2016                         # If setting CC here fails, the AC_PROG_CC done
2017                         # below might still find gcc.
2018                         IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
2019                         for ac_dir in $PATH; do
2020                                 test -z "$ac_dir" && ac_dir=.
2021                                 case "$ac_dir" in
2022                                 /usr/ucb)
2023                                         # exclude
2024                                         ;;
2025                                 *)
2026                                         if test -f "$ac_dir/cc"; then
2027                                                 CC="$ac_dir/cc"
2028                                                 break
2029                                         fi
2030                                         ;;
2031                                 esac
2032                         done
2033                         IFS="$ac_save_ifs"
2034                         ;;
2035                 *-hp-hpux*)
2036                         CC="cc"
2037                         ;;
2038                 mips-sgi-irix*)
2039                         CC="cc"
2040                         ;;
2041         esac
2042 fi
2043
2044
2045 ac_ext=c
2046 ac_cpp='$CPP $CPPFLAGS'
2047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2050 if test -n "$ac_tool_prefix"; then
2051   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2052 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056   echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058   if test -n "$CC"; then
2059   ac_cv_prog_CC="$CC" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064   IFS=$as_save_IFS
2065   test -z "$as_dir" && as_dir=.
2066   for ac_exec_ext in '' $ac_executable_extensions; do
2067   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070     break 2
2071   fi
2072 done
2073 done
2074
2075 fi
2076 fi
2077 CC=$ac_cv_prog_CC
2078 if test -n "$CC"; then
2079   echo "$as_me:$LINENO: result: $CC" >&5
2080 echo "${ECHO_T}$CC" >&6
2081 else
2082   echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2084 fi
2085
2086 fi
2087 if test -z "$ac_cv_prog_CC"; then
2088   ac_ct_CC=$CC
2089   # Extract the first word of "gcc", so it can be a program name with args.
2090 set dummy gcc; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2094   echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096   if test -n "$ac_ct_CC"; then
2097   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102   IFS=$as_save_IFS
2103   test -z "$as_dir" && as_dir=.
2104   for ac_exec_ext in '' $ac_executable_extensions; do
2105   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106     ac_cv_prog_ac_ct_CC="gcc"
2107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108     break 2
2109   fi
2110 done
2111 done
2112
2113 fi
2114 fi
2115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2116 if test -n "$ac_ct_CC"; then
2117   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2118 echo "${ECHO_T}$ac_ct_CC" >&6
2119 else
2120   echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2122 fi
2123
2124   CC=$ac_ct_CC
2125 else
2126   CC="$ac_cv_prog_CC"
2127 fi
2128
2129 if test -z "$CC"; then
2130   if test -n "$ac_tool_prefix"; then
2131   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2132 set dummy ${ac_tool_prefix}cc; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_CC+set}" = set; then
2136   echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138   if test -n "$CC"; then
2139   ac_cv_prog_CC="$CC" # Let the user override the test.
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144   IFS=$as_save_IFS
2145   test -z "$as_dir" && as_dir=.
2146   for ac_exec_ext in '' $ac_executable_extensions; do
2147   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148     ac_cv_prog_CC="${ac_tool_prefix}cc"
2149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150     break 2
2151   fi
2152 done
2153 done
2154
2155 fi
2156 fi
2157 CC=$ac_cv_prog_CC
2158 if test -n "$CC"; then
2159   echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6
2161 else
2162   echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2164 fi
2165
2166 fi
2167 if test -z "$ac_cv_prog_CC"; then
2168   ac_ct_CC=$CC
2169   # Extract the first word of "cc", so it can be a program name with args.
2170 set dummy cc; ac_word=$2
2171 echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2174   echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176   if test -n "$ac_ct_CC"; then
2177   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2178 else
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 for as_dir in $PATH
2181 do
2182   IFS=$as_save_IFS
2183   test -z "$as_dir" && as_dir=.
2184   for ac_exec_ext in '' $ac_executable_extensions; do
2185   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2186     ac_cv_prog_ac_ct_CC="cc"
2187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188     break 2
2189   fi
2190 done
2191 done
2192
2193 fi
2194 fi
2195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2196 if test -n "$ac_ct_CC"; then
2197   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2198 echo "${ECHO_T}$ac_ct_CC" >&6
2199 else
2200   echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6
2202 fi
2203
2204   CC=$ac_ct_CC
2205 else
2206   CC="$ac_cv_prog_CC"
2207 fi
2208
2209 fi
2210 if test -z "$CC"; then
2211   # Extract the first word of "cc", so it can be a program name with args.
2212 set dummy cc; ac_word=$2
2213 echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2215 if test "${ac_cv_prog_CC+set}" = set; then
2216   echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218   if test -n "$CC"; then
2219   ac_cv_prog_CC="$CC" # Let the user override the test.
2220 else
2221   ac_prog_rejected=no
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 for as_dir in $PATH
2224 do
2225   IFS=$as_save_IFS
2226   test -z "$as_dir" && as_dir=.
2227   for ac_exec_ext in '' $ac_executable_extensions; do
2228   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2230        ac_prog_rejected=yes
2231        continue
2232      fi
2233     ac_cv_prog_CC="cc"
2234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235     break 2
2236   fi
2237 done
2238 done
2239
2240 if test $ac_prog_rejected = yes; then
2241   # We found a bogon in the path, so make sure we never use it.
2242   set dummy $ac_cv_prog_CC
2243   shift
2244   if test $# != 0; then
2245     # We chose a different compiler from the bogus one.
2246     # However, it has the same basename, so the bogon will be chosen
2247     # first if we set CC to just the basename; use the full file name.
2248     shift
2249     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2250   fi
2251 fi
2252 fi
2253 fi
2254 CC=$ac_cv_prog_CC
2255 if test -n "$CC"; then
2256   echo "$as_me:$LINENO: result: $CC" >&5
2257 echo "${ECHO_T}$CC" >&6
2258 else
2259   echo "$as_me:$LINENO: result: no" >&5
2260 echo "${ECHO_T}no" >&6
2261 fi
2262
2263 fi
2264 if test -z "$CC"; then
2265   if test -n "$ac_tool_prefix"; then
2266   for ac_prog in cl
2267   do
2268     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2269 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2270 echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2272 if test "${ac_cv_prog_CC+set}" = set; then
2273   echo $ECHO_N "(cached) $ECHO_C" >&6
2274 else
2275   if test -n "$CC"; then
2276   ac_cv_prog_CC="$CC" # Let the user override the test.
2277 else
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2280 do
2281   IFS=$as_save_IFS
2282   test -z "$as_dir" && as_dir=.
2283   for ac_exec_ext in '' $ac_executable_extensions; do
2284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287     break 2
2288   fi
2289 done
2290 done
2291
2292 fi
2293 fi
2294 CC=$ac_cv_prog_CC
2295 if test -n "$CC"; then
2296   echo "$as_me:$LINENO: result: $CC" >&5
2297 echo "${ECHO_T}$CC" >&6
2298 else
2299   echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6
2301 fi
2302
2303     test -n "$CC" && break
2304   done
2305 fi
2306 if test -z "$CC"; then
2307   ac_ct_CC=$CC
2308   for ac_prog in cl
2309 do
2310   # Extract the first word of "$ac_prog", so it can be a program name with args.
2311 set dummy $ac_prog; ac_word=$2
2312 echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2315   echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317   if test -n "$ac_ct_CC"; then
2318   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2322 do
2323   IFS=$as_save_IFS
2324   test -z "$as_dir" && as_dir=.
2325   for ac_exec_ext in '' $ac_executable_extensions; do
2326   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327     ac_cv_prog_ac_ct_CC="$ac_prog"
2328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329     break 2
2330   fi
2331 done
2332 done
2333
2334 fi
2335 fi
2336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2337 if test -n "$ac_ct_CC"; then
2338   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2339 echo "${ECHO_T}$ac_ct_CC" >&6
2340 else
2341   echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6
2343 fi
2344
2345   test -n "$ac_ct_CC" && break
2346 done
2347
2348   CC=$ac_ct_CC
2349 fi
2350
2351 fi
2352
2353
2354 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2355 See \`config.log' for more details." >&5
2356 echo "$as_me: error: no acceptable C compiler found in \$PATH
2357 See \`config.log' for more details." >&2;}
2358    { (exit 1); exit 1; }; }
2359
2360 # Provide some information about the compiler.
2361 echo "$as_me:$LINENO:" \
2362      "checking for C compiler version" >&5
2363 ac_compiler=`set X $ac_compile; echo $2`
2364 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2365   (eval $ac_compiler --version </dev/null >&5) 2>&5
2366   ac_status=$?
2367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368   (exit $ac_status); }
2369 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2370   (eval $ac_compiler -v </dev/null >&5) 2>&5
2371   ac_status=$?
2372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373   (exit $ac_status); }
2374 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2375   (eval $ac_compiler -V </dev/null >&5) 2>&5
2376   ac_status=$?
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); }
2379
2380 cat >conftest.$ac_ext <<_ACEOF
2381 /* confdefs.h.  */
2382 _ACEOF
2383 cat confdefs.h >>conftest.$ac_ext
2384 cat >>conftest.$ac_ext <<_ACEOF
2385 /* end confdefs.h.  */
2386
2387 int
2388 main ()
2389 {
2390
2391   ;
2392   return 0;
2393 }
2394 _ACEOF
2395 ac_clean_files_save=$ac_clean_files
2396 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2397 # Try to create an executable without -o first, disregard a.out.
2398 # It will help us diagnose broken compilers, and finding out an intuition
2399 # of exeext.
2400 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2401 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2402 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2403 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2404   (eval $ac_link_default) 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); }; then
2408   # Find the output, starting from the most likely.  This scheme is
2409 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2410 # resort.
2411
2412 # Be careful to initialize this variable, since it used to be cached.
2413 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2414 ac_cv_exeext=
2415 # b.out is created by i960 compilers.
2416 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2417 do
2418   test -f "$ac_file" || continue
2419   case $ac_file in
2420     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2421         ;;
2422     conftest.$ac_ext )
2423         # This is the source file.
2424         ;;
2425     [ab].out )
2426         # We found the default executable, but exeext='' is most
2427         # certainly right.
2428         break;;
2429     *.* )
2430         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2431         # FIXME: I believe we export ac_cv_exeext for Libtool,
2432         # but it would be cool to find out if it's true.  Does anybody
2433         # maintain Libtool? --akim.
2434         export ac_cv_exeext
2435         break;;
2436     * )
2437         break;;
2438   esac
2439 done
2440 else
2441   echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443
2444 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2445 See \`config.log' for more details." >&5
2446 echo "$as_me: error: C compiler cannot create executables
2447 See \`config.log' for more details." >&2;}
2448    { (exit 77); exit 77; }; }
2449 fi
2450
2451 ac_exeext=$ac_cv_exeext
2452 echo "$as_me:$LINENO: result: $ac_file" >&5
2453 echo "${ECHO_T}$ac_file" >&6
2454
2455 # Check the compiler produces executables we can run.  If not, either
2456 # the compiler is broken, or we cross compile.
2457 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2458 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2459 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2460 # If not cross compiling, check that we can run a simple program.
2461 if test "$cross_compiling" != yes; then
2462   if { ac_try='./$ac_file'
2463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464   (eval $ac_try) 2>&5
2465   ac_status=$?
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); }; }; then
2468     cross_compiling=no
2469   else
2470     if test "$cross_compiling" = maybe; then
2471         cross_compiling=yes
2472     else
2473         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2474 If you meant to cross compile, use \`--host'.
2475 See \`config.log' for more details." >&5
2476 echo "$as_me: error: cannot run C compiled programs.
2477 If you meant to cross compile, use \`--host'.
2478 See \`config.log' for more details." >&2;}
2479    { (exit 1); exit 1; }; }
2480     fi
2481   fi
2482 fi
2483 echo "$as_me:$LINENO: result: yes" >&5
2484 echo "${ECHO_T}yes" >&6
2485
2486 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2487 ac_clean_files=$ac_clean_files_save
2488 # Check the compiler produces executables we can run.  If not, either
2489 # the compiler is broken, or we cross compile.
2490 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2491 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2492 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2493 echo "${ECHO_T}$cross_compiling" >&6
2494
2495 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2496 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2498   (eval $ac_link) 2>&5
2499   ac_status=$?
2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); }; then
2502   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2503 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2504 # work properly (i.e., refer to `conftest.exe'), while it won't with
2505 # `rm'.
2506 for ac_file in conftest.exe conftest conftest.*; do
2507   test -f "$ac_file" || continue
2508   case $ac_file in
2509     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2510     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2511           export ac_cv_exeext
2512           break;;
2513     * ) break;;
2514   esac
2515 done
2516 else
2517   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2518 See \`config.log' for more details." >&5
2519 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2520 See \`config.log' for more details." >&2;}
2521    { (exit 1); exit 1; }; }
2522 fi
2523
2524 rm -f conftest$ac_cv_exeext
2525 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2526 echo "${ECHO_T}$ac_cv_exeext" >&6
2527
2528 rm -f conftest.$ac_ext
2529 EXEEXT=$ac_cv_exeext
2530 ac_exeext=$EXEEXT
2531 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2532 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2533 if test "${ac_cv_objext+set}" = set; then
2534   echo $ECHO_N "(cached) $ECHO_C" >&6
2535 else
2536   cat >conftest.$ac_ext <<_ACEOF
2537 /* confdefs.h.  */
2538 _ACEOF
2539 cat confdefs.h >>conftest.$ac_ext
2540 cat >>conftest.$ac_ext <<_ACEOF
2541 /* end confdefs.h.  */
2542
2543 int
2544 main ()
2545 {
2546
2547   ;
2548   return 0;
2549 }
2550 _ACEOF
2551 rm -f conftest.o conftest.obj
2552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553   (eval $ac_compile) 2>&5
2554   ac_status=$?
2555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556   (exit $ac_status); }; then
2557   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2558   case $ac_file in
2559     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2560     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2561        break;;
2562   esac
2563 done
2564 else
2565   echo "$as_me: failed program was:" >&5
2566 sed 's/^/| /' conftest.$ac_ext >&5
2567
2568 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2571 See \`config.log' for more details." >&2;}
2572    { (exit 1); exit 1; }; }
2573 fi
2574
2575 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2576 fi
2577 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2578 echo "${ECHO_T}$ac_cv_objext" >&6
2579 OBJEXT=$ac_cv_objext
2580 ac_objext=$OBJEXT
2581 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2582 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2583 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2584   echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586   cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h.  */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h.  */
2592
2593 int
2594 main ()
2595 {
2596 #ifndef __GNUC__
2597        choke me
2598 #endif
2599
2600   ;
2601   return 0;
2602 }
2603 _ACEOF
2604 rm -f conftest.$ac_objext
2605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606   (eval $ac_compile) 2>conftest.er1
2607   ac_status=$?
2608   grep -v '^ *+' conftest.er1 >conftest.err
2609   rm -f conftest.er1
2610   cat conftest.err >&5
2611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612   (exit $ac_status); } &&
2613          { ac_try='test -z "$ac_c_werror_flag"
2614                          || test ! -s conftest.err'
2615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616   (eval $ac_try) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; } &&
2620          { ac_try='test -s conftest.$ac_objext'
2621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622   (eval $ac_try) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; }; then
2626   ac_compiler_gnu=yes
2627 else
2628   echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2630
2631 ac_compiler_gnu=no
2632 fi
2633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2634 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2635
2636 fi
2637 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2638 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2639 GCC=`test $ac_compiler_gnu = yes && echo yes`
2640 ac_test_CFLAGS=${CFLAGS+set}
2641 ac_save_CFLAGS=$CFLAGS
2642 CFLAGS="-g"
2643 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2644 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2645 if test "${ac_cv_prog_cc_g+set}" = set; then
2646   echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648   cat >conftest.$ac_ext <<_ACEOF
2649 /* confdefs.h.  */
2650 _ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h.  */
2654
2655 int
2656 main ()
2657 {
2658
2659   ;
2660   return 0;
2661 }
2662 _ACEOF
2663 rm -f conftest.$ac_objext
2664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665   (eval $ac_compile) 2>conftest.er1
2666   ac_status=$?
2667   grep -v '^ *+' conftest.er1 >conftest.err
2668   rm -f conftest.er1
2669   cat conftest.err >&5
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); } &&
2672          { ac_try='test -z "$ac_c_werror_flag"
2673                          || test ! -s conftest.err'
2674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675   (eval $ac_try) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }; } &&
2679          { ac_try='test -s conftest.$ac_objext'
2680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681   (eval $ac_try) 2>&5
2682   ac_status=$?
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); }; }; then
2685   ac_cv_prog_cc_g=yes
2686 else
2687   echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2689
2690 ac_cv_prog_cc_g=no
2691 fi
2692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2693 fi
2694 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2695 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2696 if test "$ac_test_CFLAGS" = set; then
2697   CFLAGS=$ac_save_CFLAGS
2698 elif test $ac_cv_prog_cc_g = yes; then
2699   if test "$GCC" = yes; then
2700     CFLAGS="-g -O2"
2701   else
2702     CFLAGS="-g"
2703   fi
2704 else
2705   if test "$GCC" = yes; then
2706     CFLAGS="-O2"
2707   else
2708     CFLAGS=
2709   fi
2710 fi
2711 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2712 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2713 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2714   echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716   ac_cv_prog_cc_stdc=no
2717 ac_save_CC=$CC
2718 cat >conftest.$ac_ext <<_ACEOF
2719 /* confdefs.h.  */
2720 _ACEOF
2721 cat confdefs.h >>conftest.$ac_ext
2722 cat >>conftest.$ac_ext <<_ACEOF
2723 /* end confdefs.h.  */
2724 #include <stdarg.h>
2725 #include <stdio.h>
2726 #include <sys/types.h>
2727 #include <sys/stat.h>
2728 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2729 struct buf { int x; };
2730 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2731 static char *e (p, i)
2732      char **p;
2733      int i;
2734 {
2735   return p[i];
2736 }
2737 static char *f (char * (*g) (char **, int), char **p, ...)
2738 {
2739   char *s;
2740   va_list v;
2741   va_start (v,p);
2742   s = g (p, va_arg (v,int));
2743   va_end (v);
2744   return s;
2745 }
2746
2747 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2748    function prototypes and stuff, but not '\xHH' hex character constants.
2749    These don't provoke an error unfortunately, instead are silently treated
2750    as 'x'.  The following induces an error, until -std1 is added to get
2751    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2752    array size at least.  It's necessary to write '\x00'==0 to get something
2753    that's true only with -std1.  */
2754 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2755
2756 int test (int i, double x);
2757 struct s1 {int (*f) (int a);};
2758 struct s2 {int (*f) (double a);};
2759 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2760 int argc;
2761 char **argv;
2762 int
2763 main ()
2764 {
2765 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2766   ;
2767   return 0;
2768 }
2769 _ACEOF
2770 # Don't try gcc -ansi; that turns off useful extensions and
2771 # breaks some systems' header files.
2772 # AIX                   -qlanglvl=ansi
2773 # Ultrix and OSF/1      -std1
2774 # HP-UX 10.20 and later -Ae
2775 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2776 # SVR4                  -Xc -D__EXTENSIONS__
2777 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2778 do
2779   CC="$ac_save_CC $ac_arg"
2780   rm -f conftest.$ac_objext
2781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2782   (eval $ac_compile) 2>conftest.er1
2783   ac_status=$?
2784   grep -v '^ *+' conftest.er1 >conftest.err
2785   rm -f conftest.er1
2786   cat conftest.err >&5
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); } &&
2789          { ac_try='test -z "$ac_c_werror_flag"
2790                          || test ! -s conftest.err'
2791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792   (eval $ac_try) 2>&5
2793   ac_status=$?
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); }; } &&
2796          { ac_try='test -s conftest.$ac_objext'
2797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798   (eval $ac_try) 2>&5
2799   ac_status=$?
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); }; }; then
2802   ac_cv_prog_cc_stdc=$ac_arg
2803 break
2804 else
2805   echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2807
2808 fi
2809 rm -f conftest.err conftest.$ac_objext
2810 done
2811 rm -f conftest.$ac_ext conftest.$ac_objext
2812 CC=$ac_save_CC
2813
2814 fi
2815
2816 case "x$ac_cv_prog_cc_stdc" in
2817   x|xno)
2818     echo "$as_me:$LINENO: result: none needed" >&5
2819 echo "${ECHO_T}none needed" >&6 ;;
2820   *)
2821     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2822 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2823     CC="$CC $ac_cv_prog_cc_stdc" ;;
2824 esac
2825
2826 # Some people use a C++ compiler to compile C.  Since we use `exit',
2827 # in C++ we need to declare it.  In case someone uses the same compiler
2828 # for both compiling C and C++ we need to have the C++ compiler decide
2829 # the declaration of exit, since it's the most demanding environment.
2830 cat >conftest.$ac_ext <<_ACEOF
2831 #ifndef __cplusplus
2832   choke me
2833 #endif
2834 _ACEOF
2835 rm -f conftest.$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837   (eval $ac_compile) 2>conftest.er1
2838   ac_status=$?
2839   grep -v '^ *+' conftest.er1 >conftest.err
2840   rm -f conftest.er1
2841   cat conftest.err >&5
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); } &&
2844          { ac_try='test -z "$ac_c_werror_flag"
2845                          || test ! -s conftest.err'
2846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847   (eval $ac_try) 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }; } &&
2851          { ac_try='test -s conftest.$ac_objext'
2852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853   (eval $ac_try) 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); }; }; then
2857   for ac_declaration in \
2858    '' \
2859    'extern "C" void std::exit (int) throw (); using std::exit;' \
2860    'extern "C" void std::exit (int); using std::exit;' \
2861    'extern "C" void exit (int) throw ();' \
2862    'extern "C" void exit (int);' \
2863    'void exit (int);'
2864 do
2865   cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h.  */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h.  */
2871 $ac_declaration
2872 #include <stdlib.h>
2873 int
2874 main ()
2875 {
2876 exit (42);
2877   ;
2878   return 0;
2879 }
2880 _ACEOF
2881 rm -f conftest.$ac_objext
2882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2883   (eval $ac_compile) 2>conftest.er1
2884   ac_status=$?
2885   grep -v '^ *+' conftest.er1 >conftest.err
2886   rm -f conftest.er1
2887   cat conftest.err >&5
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); } &&
2890          { ac_try='test -z "$ac_c_werror_flag"
2891                          || test ! -s conftest.err'
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); }; } &&
2897          { ac_try='test -s conftest.$ac_objext'
2898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899   (eval $ac_try) 2>&5
2900   ac_status=$?
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); }; }; then
2903   :
2904 else
2905   echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2907
2908 continue
2909 fi
2910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2911   cat >conftest.$ac_ext <<_ACEOF
2912 /* confdefs.h.  */
2913 _ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h.  */
2917 $ac_declaration
2918 int
2919 main ()
2920 {
2921 exit (42);
2922   ;
2923   return 0;
2924 }
2925 _ACEOF
2926 rm -f conftest.$ac_objext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928   (eval $ac_compile) 2>conftest.er1
2929   ac_status=$?
2930   grep -v '^ *+' conftest.er1 >conftest.err
2931   rm -f conftest.er1
2932   cat conftest.err >&5
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); } &&
2935          { ac_try='test -z "$ac_c_werror_flag"
2936                          || test ! -s conftest.err'
2937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938   (eval $ac_try) 2>&5
2939   ac_status=$?
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); }; } &&
2942          { ac_try='test -s conftest.$ac_objext'
2943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944   (eval $ac_try) 2>&5
2945   ac_status=$?
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); }; }; then
2948   break
2949 else
2950   echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2952
2953 fi
2954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2955 done
2956 rm -f conftest*
2957 if test -n "$ac_declaration"; then
2958   echo '#ifdef __cplusplus' >>confdefs.h
2959   echo $ac_declaration      >>confdefs.h
2960   echo '#endif'             >>confdefs.h
2961 fi
2962
2963 else
2964   echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2966
2967 fi
2968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2969 ac_ext=c
2970 ac_cpp='$CPP $CPPFLAGS'
2971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2974
2975
2976
2977 ac_ext=c
2978 ac_cpp='$CPP $CPPFLAGS'
2979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2983 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2984 # On Suns, sometimes $CPP names a directory.
2985 if test -n "$CPP" && test -d "$CPP"; then
2986   CPP=
2987 fi
2988 if test -z "$CPP"; then
2989   if test "${ac_cv_prog_CPP+set}" = set; then
2990   echo $ECHO_N "(cached) $ECHO_C" >&6
2991 else
2992       # Double quotes because CPP needs to be expanded
2993     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2994     do
2995       ac_preproc_ok=false
2996 for ac_c_preproc_warn_flag in '' yes
2997 do
2998   # Use a header file that comes with gcc, so configuring glibc
2999   # with a fresh cross-compiler works.
3000   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3001   # <limits.h> exists even on freestanding compilers.
3002   # On the NeXT, cc -E runs the code through the compiler's parser,
3003   # not just through cpp. "Syntax error" is here to catch this case.
3004   cat >conftest.$ac_ext <<_ACEOF
3005 /* confdefs.h.  */
3006 _ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h.  */
3010 #ifdef __STDC__
3011 # include <limits.h>
3012 #else
3013 # include <assert.h>
3014 #endif
3015                      Syntax error
3016 _ACEOF
3017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3018   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3019   ac_status=$?
3020   grep -v '^ *+' conftest.er1 >conftest.err
3021   rm -f conftest.er1
3022   cat conftest.err >&5
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); } >/dev/null; then
3025   if test -s conftest.err; then
3026     ac_cpp_err=$ac_c_preproc_warn_flag
3027     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3028   else
3029     ac_cpp_err=
3030   fi
3031 else
3032   ac_cpp_err=yes
3033 fi
3034 if test -z "$ac_cpp_err"; then
3035   :
3036 else
3037   echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040   # Broken: fails on valid input.
3041 continue
3042 fi
3043 rm -f conftest.err conftest.$ac_ext
3044
3045   # OK, works on sane cases.  Now check whether non-existent headers
3046   # can be detected and how.
3047   cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h.  */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h.  */
3053 #include <ac_nonexistent.h>
3054 _ACEOF
3055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3057   ac_status=$?
3058   grep -v '^ *+' conftest.er1 >conftest.err
3059   rm -f conftest.er1
3060   cat conftest.err >&5
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); } >/dev/null; then
3063   if test -s conftest.err; then
3064     ac_cpp_err=$ac_c_preproc_warn_flag
3065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3066   else
3067     ac_cpp_err=
3068   fi
3069 else
3070   ac_cpp_err=yes
3071 fi
3072 if test -z "$ac_cpp_err"; then
3073   # Broken: success on invalid input.
3074 continue
3075 else
3076   echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3078
3079   # Passes both tests.
3080 ac_preproc_ok=:
3081 break
3082 fi
3083 rm -f conftest.err conftest.$ac_ext
3084
3085 done
3086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3087 rm -f conftest.err conftest.$ac_ext
3088 if $ac_preproc_ok; then
3089   break
3090 fi
3091
3092     done
3093     ac_cv_prog_CPP=$CPP
3094
3095 fi
3096   CPP=$ac_cv_prog_CPP
3097 else
3098   ac_cv_prog_CPP=$CPP
3099 fi
3100 echo "$as_me:$LINENO: result: $CPP" >&5
3101 echo "${ECHO_T}$CPP" >&6
3102 ac_preproc_ok=false
3103 for ac_c_preproc_warn_flag in '' yes
3104 do
3105   # Use a header file that comes with gcc, so configuring glibc
3106   # with a fresh cross-compiler works.
3107   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3108   # <limits.h> exists even on freestanding compilers.
3109   # On the NeXT, cc -E runs the code through the compiler's parser,
3110   # not just through cpp. "Syntax error" is here to catch this case.
3111   cat >conftest.$ac_ext <<_ACEOF
3112 /* confdefs.h.  */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h.  */
3117 #ifdef __STDC__
3118 # include <limits.h>
3119 #else
3120 # include <assert.h>
3121 #endif
3122                      Syntax error
3123 _ACEOF
3124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3125   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3126   ac_status=$?
3127   grep -v '^ *+' conftest.er1 >conftest.err
3128   rm -f conftest.er1
3129   cat conftest.err >&5
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); } >/dev/null; then
3132   if test -s conftest.err; then
3133     ac_cpp_err=$ac_c_preproc_warn_flag
3134     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3135   else
3136     ac_cpp_err=
3137   fi
3138 else
3139   ac_cpp_err=yes
3140 fi
3141 if test -z "$ac_cpp_err"; then
3142   :
3143 else
3144   echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147   # Broken: fails on valid input.
3148 continue
3149 fi
3150 rm -f conftest.err conftest.$ac_ext
3151
3152   # OK, works on sane cases.  Now check whether non-existent headers
3153   # can be detected and how.
3154   cat >conftest.$ac_ext <<_ACEOF
3155 /* confdefs.h.  */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h.  */
3160 #include <ac_nonexistent.h>
3161 _ACEOF
3162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3163   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3164   ac_status=$?
3165   grep -v '^ *+' conftest.er1 >conftest.err
3166   rm -f conftest.er1
3167   cat conftest.err >&5
3168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); } >/dev/null; then
3170   if test -s conftest.err; then
3171     ac_cpp_err=$ac_c_preproc_warn_flag
3172     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3173   else
3174     ac_cpp_err=
3175   fi
3176 else
3177   ac_cpp_err=yes
3178 fi
3179 if test -z "$ac_cpp_err"; then
3180   # Broken: success on invalid input.
3181 continue
3182 else
3183   echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3185
3186   # Passes both tests.
3187 ac_preproc_ok=:
3188 break
3189 fi
3190 rm -f conftest.err conftest.$ac_ext
3191
3192 done
3193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3194 rm -f conftest.err conftest.$ac_ext
3195 if $ac_preproc_ok; then
3196   :
3197 else
3198   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3199 See \`config.log' for more details." >&5
3200 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3201 See \`config.log' for more details." >&2;}
3202    { (exit 1); exit 1; }; }
3203 fi
3204
3205 ac_ext=c
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210
3211
3212 echo "$as_me:$LINENO: checking for egrep" >&5
3213 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3214 if test "${ac_cv_prog_egrep+set}" = set; then
3215   echo $ECHO_N "(cached) $ECHO_C" >&6
3216 else
3217   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3218     then ac_cv_prog_egrep='grep -E'
3219     else ac_cv_prog_egrep='egrep'
3220     fi
3221 fi
3222 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3223 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3224  EGREP=$ac_cv_prog_egrep
3225
3226
3227 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3228 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3229 if test "${ac_cv_header_stdc+set}" = set; then
3230   echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232   cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h.  */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h.  */
3238 #include <stdlib.h>
3239 #include <stdarg.h>
3240 #include <string.h>
3241 #include <float.h>
3242
3243 int
3244 main ()
3245 {
3246
3247   ;
3248   return 0;
3249 }
3250 _ACEOF
3251 rm -f conftest.$ac_objext
3252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3253   (eval $ac_compile) 2>conftest.er1
3254   ac_status=$?
3255   grep -v '^ *+' conftest.er1 >conftest.err
3256   rm -f conftest.er1
3257   cat conftest.err >&5
3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); } &&
3260          { ac_try='test -z "$ac_c_werror_flag"
3261                          || test ! -s conftest.err'
3262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263   (eval $ac_try) 2>&5
3264   ac_status=$?
3265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266   (exit $ac_status); }; } &&
3267          { ac_try='test -s conftest.$ac_objext'
3268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269   (eval $ac_try) 2>&5
3270   ac_status=$?
3271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272   (exit $ac_status); }; }; then
3273   ac_cv_header_stdc=yes
3274 else
3275   echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3277
3278 ac_cv_header_stdc=no
3279 fi
3280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3281
3282 if test $ac_cv_header_stdc = yes; then
3283   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3284   cat >conftest.$ac_ext <<_ACEOF
3285 /* confdefs.h.  */
3286 _ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h.  */
3290 #include <string.h>
3291
3292 _ACEOF
3293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3294   $EGREP "memchr" >/dev/null 2>&1; then
3295   :
3296 else
3297   ac_cv_header_stdc=no
3298 fi
3299 rm -f conftest*
3300
3301 fi
3302
3303 if test $ac_cv_header_stdc = yes; then
3304   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3305   cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h.  */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h.  */
3311 #include <stdlib.h>
3312
3313 _ACEOF
3314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3315   $EGREP "free" >/dev/null 2>&1; then
3316   :
3317 else
3318   ac_cv_header_stdc=no
3319 fi
3320 rm -f conftest*
3321
3322 fi
3323
3324 if test $ac_cv_header_stdc = yes; then
3325   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3326   if test "$cross_compiling" = yes; then
3327   :
3328 else
3329   cat >conftest.$ac_ext <<_ACEOF
3330 /* confdefs.h.  */
3331 _ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h.  */
3335 #include <ctype.h>
3336 #if ((' ' & 0x0FF) == 0x020)
3337 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3338 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3339 #else
3340 # define ISLOWER(c) \
3341                    (('a' <= (c) && (c) <= 'i') \
3342                      || ('j' <= (c) && (c) <= 'r') \
3343                      || ('s' <= (c) && (c) <= 'z'))
3344 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3345 #endif
3346
3347 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3348 int
3349 main ()
3350 {
3351   int i;
3352   for (i = 0; i < 256; i++)
3353     if (XOR (islower (i), ISLOWER (i))
3354         || toupper (i) != TOUPPER (i))
3355       exit(2);
3356   exit (0);
3357 }
3358 _ACEOF
3359 rm -f conftest$ac_exeext
3360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3361   (eval $ac_link) 2>&5
3362   ac_status=$?
3363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366   (eval $ac_try) 2>&5
3367   ac_status=$?
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); }; }; then
3370   :
3371 else
3372   echo "$as_me: program exited with status $ac_status" >&5
3373 echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3375
3376 ( exit $ac_status )
3377 ac_cv_header_stdc=no
3378 fi
3379 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3380 fi
3381 fi
3382 fi
3383 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3384 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3385 if test $ac_cv_header_stdc = yes; then
3386
3387 cat >>confdefs.h <<\_ACEOF
3388 #define STDC_HEADERS 1
3389 _ACEOF
3390
3391 fi
3392
3393
3394
3395 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3406                   inttypes.h stdint.h unistd.h
3407 do
3408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3409 echo "$as_me:$LINENO: checking for $ac_header" >&5
3410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3412   echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414   cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h.  */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h.  */
3420 $ac_includes_default
3421
3422 #include <$ac_header>
3423 _ACEOF
3424 rm -f conftest.$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426   (eval $ac_compile) 2>conftest.er1
3427   ac_status=$?
3428   grep -v '^ *+' conftest.er1 >conftest.err
3429   rm -f conftest.er1
3430   cat conftest.err >&5
3431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432   (exit $ac_status); } &&
3433          { ac_try='test -z "$ac_c_werror_flag"
3434                          || test ! -s conftest.err'
3435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436   (eval $ac_try) 2>&5
3437   ac_status=$?
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); }; } &&
3440          { ac_try='test -s conftest.$ac_objext'
3441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442   (eval $ac_try) 2>&5
3443   ac_status=$?
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); }; }; then
3446   eval "$as_ac_Header=yes"
3447 else
3448   echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451 eval "$as_ac_Header=no"
3452 fi
3453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3454 fi
3455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3458   cat >>confdefs.h <<_ACEOF
3459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3460 _ACEOF
3461
3462 fi
3463
3464 done
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476 for ac_header in fcntl.h db.h paths.h sys/time.h unistd.h sys/sockio.h sys/select.h sys/timers.h stropts.h
3477 do
3478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3480   echo "$as_me:$LINENO: checking for $ac_header" >&5
3481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3483   echo $ECHO_N "(cached) $ECHO_C" >&6
3484 fi
3485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3487 else
3488   # Is the header compilable?
3489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3491 cat >conftest.$ac_ext <<_ACEOF
3492 /* confdefs.h.  */
3493 _ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h.  */
3497 $ac_includes_default
3498 #include <$ac_header>
3499 _ACEOF
3500 rm -f conftest.$ac_objext
3501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3502   (eval $ac_compile) 2>conftest.er1
3503   ac_status=$?
3504   grep -v '^ *+' conftest.er1 >conftest.err
3505   rm -f conftest.er1
3506   cat conftest.err >&5
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); } &&
3509          { ac_try='test -z "$ac_c_werror_flag"
3510                          || test ! -s conftest.err'
3511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512   (eval $ac_try) 2>&5
3513   ac_status=$?
3514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515   (exit $ac_status); }; } &&
3516          { ac_try='test -s conftest.$ac_objext'
3517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518   (eval $ac_try) 2>&5
3519   ac_status=$?
3520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521   (exit $ac_status); }; }; then
3522   ac_header_compiler=yes
3523 else
3524   echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3526
3527 ac_header_compiler=no
3528 fi
3529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3531 echo "${ECHO_T}$ac_header_compiler" >&6
3532
3533 # Is the header present?
3534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3536 cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542 #include <$ac_header>
3543 _ACEOF
3544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3545   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3546   ac_status=$?
3547   grep -v '^ *+' conftest.er1 >conftest.err
3548   rm -f conftest.er1
3549   cat conftest.err >&5
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); } >/dev/null; then
3552   if test -s conftest.err; then
3553     ac_cpp_err=$ac_c_preproc_warn_flag
3554     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3555   else
3556     ac_cpp_err=
3557   fi
3558 else
3559   ac_cpp_err=yes
3560 fi
3561 if test -z "$ac_cpp_err"; then
3562   ac_header_preproc=yes
3563 else
3564   echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3566
3567   ac_header_preproc=no
3568 fi
3569 rm -f conftest.err conftest.$ac_ext
3570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3571 echo "${ECHO_T}$ac_header_preproc" >&6
3572
3573 # So?  What about this header?
3574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3575   yes:no: )
3576     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3580     ac_header_preproc=yes
3581     ;;
3582   no:yes:* )
3583     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3585     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3586 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3587     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3589     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3590 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3593     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3595     (
3596       cat <<\_ASBOX
3597 ## ------------------------------------------ ##
3598 ## Report this to the AC_PACKAGE_NAME lists.  ##
3599 ## ------------------------------------------ ##
3600 _ASBOX
3601     ) |
3602       sed "s/^/$as_me: WARNING:     /" >&2
3603     ;;
3604 esac
3605 echo "$as_me:$LINENO: checking for $ac_header" >&5
3606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3608   echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610   eval "$as_ac_Header=\$ac_header_preproc"
3611 fi
3612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3614
3615 fi
3616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3617   cat >>confdefs.h <<_ACEOF
3618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3619 _ACEOF
3620
3621 fi
3622
3623 done
3624
3625
3626 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3627 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3628 if test "${ac_cv_c_const+set}" = set; then
3629   echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631   cat >conftest.$ac_ext <<_ACEOF
3632 /* confdefs.h.  */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h.  */
3637
3638 int
3639 main ()
3640 {
3641 /* FIXME: Include the comments suggested by Paul. */
3642 #ifndef __cplusplus
3643   /* Ultrix mips cc rejects this.  */
3644   typedef int charset[2];
3645   const charset x;
3646   /* SunOS 4.1.1 cc rejects this.  */
3647   char const *const *ccp;
3648   char **p;
3649   /* NEC SVR4.0.2 mips cc rejects this.  */
3650   struct point {int x, y;};
3651   static struct point const zero = {0,0};
3652   /* AIX XL C 1.02.0.0 rejects this.
3653      It does not let you subtract one const X* pointer from another in
3654      an arm of an if-expression whose if-part is not a constant
3655      expression */
3656   const char *g = "string";
3657   ccp = &g + (g ? g-g : 0);
3658   /* HPUX 7.0 cc rejects these. */
3659   ++ccp;
3660   p = (char**) ccp;
3661   ccp = (char const *const *) p;
3662   { /* SCO 3.2v4 cc rejects this.  */
3663     char *t;
3664     char const *s = 0 ? (char *) 0 : (char const *) 0;
3665
3666     *t++ = 0;
3667   }
3668   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3669     int x[] = {25, 17};
3670     const int *foo = &x[0];
3671     ++foo;
3672   }
3673   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3674     typedef const int *iptr;
3675     iptr p = 0;
3676     ++p;
3677   }
3678   { /* AIX XL C 1.02.0.0 rejects this saying
3679        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3680     struct s { int j; const int *ap[3]; };
3681     struct s *b; b->j = 5;
3682   }
3683   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3684     const int foo = 10;
3685   }
3686 #endif
3687
3688   ;
3689   return 0;
3690 }
3691 _ACEOF
3692 rm -f conftest.$ac_objext
3693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694   (eval $ac_compile) 2>conftest.er1
3695   ac_status=$?
3696   grep -v '^ *+' conftest.er1 >conftest.err
3697   rm -f conftest.er1
3698   cat conftest.err >&5
3699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700   (exit $ac_status); } &&
3701          { ac_try='test -z "$ac_c_werror_flag"
3702                          || test ! -s conftest.err'
3703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704   (eval $ac_try) 2>&5
3705   ac_status=$?
3706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707   (exit $ac_status); }; } &&
3708          { ac_try='test -s conftest.$ac_objext'
3709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710   (eval $ac_try) 2>&5
3711   ac_status=$?
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); }; }; then
3714   ac_cv_c_const=yes
3715 else
3716   echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3718
3719 ac_cv_c_const=no
3720 fi
3721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3722 fi
3723 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3724 echo "${ECHO_T}$ac_cv_c_const" >&6
3725 if test $ac_cv_c_const = no; then
3726
3727 cat >>confdefs.h <<\_ACEOF
3728 #define const
3729 _ACEOF
3730
3731 fi
3732
3733 echo "$as_me:$LINENO: checking for inline" >&5
3734 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3735 if test "${ac_cv_c_inline+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   ac_cv_c_inline=no
3739 for ac_kw in inline __inline__ __inline; do
3740   cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h.  */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h.  */
3746 #ifndef __cplusplus
3747 typedef int foo_t;
3748 static $ac_kw foo_t static_foo () {return 0; }
3749 $ac_kw foo_t foo () {return 0; }
3750 #endif
3751
3752 _ACEOF
3753 rm -f conftest.$ac_objext
3754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3755   (eval $ac_compile) 2>conftest.er1
3756   ac_status=$?
3757   grep -v '^ *+' conftest.er1 >conftest.err
3758   rm -f conftest.er1
3759   cat conftest.err >&5
3760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761   (exit $ac_status); } &&
3762          { ac_try='test -z "$ac_c_werror_flag"
3763                          || test ! -s conftest.err'
3764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765   (eval $ac_try) 2>&5
3766   ac_status=$?
3767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768   (exit $ac_status); }; } &&
3769          { ac_try='test -s conftest.$ac_objext'
3770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771   (eval $ac_try) 2>&5
3772   ac_status=$?
3773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774   (exit $ac_status); }; }; then
3775   ac_cv_c_inline=$ac_kw; break
3776 else
3777   echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.$ac_ext >&5
3779
3780 fi
3781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3782 done
3783
3784 fi
3785 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3786 echo "${ECHO_T}$ac_cv_c_inline" >&6
3787
3788
3789 case $ac_cv_c_inline in
3790   inline | yes) ;;
3791   *)
3792     case $ac_cv_c_inline in
3793       no) ac_val=;;
3794       *) ac_val=$ac_cv_c_inline;;
3795     esac
3796     cat >>confdefs.h <<_ACEOF
3797 #ifndef __cplusplus
3798 #define inline $ac_val
3799 #endif
3800 _ACEOF
3801     ;;
3802 esac
3803
3804 echo "$as_me:$LINENO: checking for size_t" >&5
3805 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3806 if test "${ac_cv_type_size_t+set}" = set; then
3807   echo $ECHO_N "(cached) $ECHO_C" >&6
3808 else
3809   cat >conftest.$ac_ext <<_ACEOF
3810 /* confdefs.h.  */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h.  */
3815 $ac_includes_default
3816 int
3817 main ()
3818 {
3819 if ((size_t *) 0)
3820   return 0;
3821 if (sizeof (size_t))
3822   return 0;
3823   ;
3824   return 0;
3825 }
3826 _ACEOF
3827 rm -f conftest.$ac_objext
3828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3829   (eval $ac_compile) 2>conftest.er1
3830   ac_status=$?
3831   grep -v '^ *+' conftest.er1 >conftest.err
3832   rm -f conftest.er1
3833   cat conftest.err >&5
3834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835   (exit $ac_status); } &&
3836          { ac_try='test -z "$ac_c_werror_flag"
3837                          || test ! -s conftest.err'
3838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839   (eval $ac_try) 2>&5
3840   ac_status=$?
3841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842   (exit $ac_status); }; } &&
3843          { ac_try='test -s conftest.$ac_objext'
3844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845   (eval $ac_try) 2>&5
3846   ac_status=$?
3847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848   (exit $ac_status); }; }; then
3849   ac_cv_type_size_t=yes
3850 else
3851   echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3853
3854 ac_cv_type_size_t=no
3855 fi
3856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3857 fi
3858 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3859 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3860 if test $ac_cv_type_size_t = yes; then
3861   :
3862 else
3863
3864 cat >>confdefs.h <<_ACEOF
3865 #define size_t unsigned
3866 _ACEOF
3867
3868 fi
3869
3870 echo "$as_me:$LINENO: checking for uintptr_t" >&5
3871 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
3872 if test "${ac_cv_type_uintptr_t+set}" = set; then
3873   echo $ECHO_N "(cached) $ECHO_C" >&6
3874 else
3875   cat >conftest.$ac_ext <<_ACEOF
3876 /* confdefs.h.  */
3877 _ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h.  */
3881 $ac_includes_default
3882 int
3883 main ()
3884 {
3885 if ((uintptr_t *) 0)
3886   return 0;
3887 if (sizeof (uintptr_t))
3888   return 0;
3889   ;
3890   return 0;
3891 }
3892 _ACEOF
3893 rm -f conftest.$ac_objext
3894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3895   (eval $ac_compile) 2>conftest.er1
3896   ac_status=$?
3897   grep -v '^ *+' conftest.er1 >conftest.err
3898   rm -f conftest.er1
3899   cat conftest.err >&5
3900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901   (exit $ac_status); } &&
3902          { ac_try='test -z "$ac_c_werror_flag"
3903                          || test ! -s conftest.err'
3904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905   (eval $ac_try) 2>&5
3906   ac_status=$?
3907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908   (exit $ac_status); }; } &&
3909          { ac_try='test -s conftest.$ac_objext'
3910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911   (eval $ac_try) 2>&5
3912   ac_status=$?
3913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914   (exit $ac_status); }; }; then
3915   ac_cv_type_uintptr_t=yes
3916 else
3917   echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3919
3920 ac_cv_type_uintptr_t=no
3921 fi
3922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3923 fi
3924 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
3925 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
3926 if test $ac_cv_type_uintptr_t = yes; then
3927   :
3928 else
3929
3930 cat >>confdefs.h <<_ACEOF
3931 #define uintptr_t unsigned long
3932 _ACEOF
3933
3934 fi
3935
3936 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3937 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3938 if test "${ac_cv_header_time+set}" = set; then
3939   echo $ECHO_N "(cached) $ECHO_C" >&6
3940 else
3941   cat >conftest.$ac_ext <<_ACEOF
3942 /* confdefs.h.  */
3943 _ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h.  */
3947 #include <sys/types.h>
3948 #include <sys/time.h>
3949 #include <time.h>
3950
3951 int
3952 main ()
3953 {
3954 if ((struct tm *) 0)
3955 return 0;
3956   ;
3957   return 0;
3958 }
3959 _ACEOF
3960 rm -f conftest.$ac_objext
3961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3962   (eval $ac_compile) 2>conftest.er1
3963   ac_status=$?
3964   grep -v '^ *+' conftest.er1 >conftest.err
3965   rm -f conftest.er1
3966   cat conftest.err >&5
3967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968   (exit $ac_status); } &&
3969          { ac_try='test -z "$ac_c_werror_flag"
3970                          || test ! -s conftest.err'
3971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972   (eval $ac_try) 2>&5
3973   ac_status=$?
3974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975   (exit $ac_status); }; } &&
3976          { ac_try='test -s conftest.$ac_objext'
3977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978   (eval $ac_try) 2>&5
3979   ac_status=$?
3980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981   (exit $ac_status); }; }; then
3982   ac_cv_header_time=yes
3983 else
3984   echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3986
3987 ac_cv_header_time=no
3988 fi
3989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3990 fi
3991 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3992 echo "${ECHO_T}$ac_cv_header_time" >&6
3993 if test $ac_cv_header_time = yes; then
3994
3995 cat >>confdefs.h <<\_ACEOF
3996 #define TIME_WITH_SYS_TIME 1
3997 _ACEOF
3998
3999 fi
4000
4001 #
4002 # check if we need to #include sys/select.h explicitly
4003 #
4004 case $ac_cv_header_unistd_h in
4005 yes)
4006 echo "$as_me:$LINENO: checking if unistd.h defines fd_set" >&5
4007 echo $ECHO_N "checking if unistd.h defines fd_set... $ECHO_C" >&6
4008 cat >conftest.$ac_ext <<_ACEOF
4009 /* confdefs.h.  */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h.  */
4014
4015 #include <unistd.h>
4016 int
4017 main ()
4018 {
4019 fd_set read_set; return (0);
4020   ;
4021   return 0;
4022 }
4023 _ACEOF
4024 rm -f conftest.$ac_objext
4025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4026   (eval $ac_compile) 2>conftest.er1
4027   ac_status=$?
4028   grep -v '^ *+' conftest.er1 >conftest.err
4029   rm -f conftest.er1
4030   cat conftest.err >&5
4031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032   (exit $ac_status); } &&
4033          { ac_try='test -z "$ac_c_werror_flag"
4034                          || test ! -s conftest.err'
4035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036   (eval $ac_try) 2>&5
4037   ac_status=$?
4038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039   (exit $ac_status); }; } &&
4040          { ac_try='test -s conftest.$ac_objext'
4041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042   (eval $ac_try) 2>&5
4043   ac_status=$?
4044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045   (exit $ac_status); }; }; then
4046   echo "$as_me:$LINENO: result: yes" >&5
4047 echo "${ECHO_T}yes" >&6
4048          ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH"
4049
4050 else
4051   echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4053
4054 echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6
4056         case ac_cv_header_sys_select_h in
4057         yes)
4058          ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
4059                 ;;
4060         no)
4061                 { { echo "$as_me:$LINENO: error: need either working unistd.h or sys/select.h" >&5
4062 echo "$as_me: error: need either working unistd.h or sys/select.h" >&2;}
4063    { (exit 1); exit 1; }; }
4064                 ;;
4065         esac
4066
4067 fi
4068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4069         ;;
4070 no)
4071         case ac_cv_header_sys_select_h in
4072         yes)
4073              ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
4074                 ;;
4075         no)
4076                 { { echo "$as_me:$LINENO: error: need either unistd.h or sys/select.h" >&5
4077 echo "$as_me: error: need either unistd.h or sys/select.h" >&2;}
4078    { (exit 1); exit 1; }; }
4079                 ;;
4080         esac
4081         ;;
4082 esac
4083
4084
4085 #
4086 # Find the machine's endian flavor.
4087 #
4088 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4089 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4090 if test "${ac_cv_c_bigendian+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   # See if sys/param.h defines the BYTE_ORDER macro.
4094 cat >conftest.$ac_ext <<_ACEOF
4095 /* confdefs.h.  */
4096 _ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h.  */
4100 #include <sys/types.h>
4101 #include <sys/param.h>
4102
4103 int
4104 main ()
4105 {
4106 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4107  bogus endian macros
4108 #endif
4109
4110   ;
4111   return 0;
4112 }
4113 _ACEOF
4114 rm -f conftest.$ac_objext
4115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4116   (eval $ac_compile) 2>conftest.er1
4117   ac_status=$?
4118   grep -v '^ *+' conftest.er1 >conftest.err
4119   rm -f conftest.er1
4120   cat conftest.err >&5
4121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122   (exit $ac_status); } &&
4123          { ac_try='test -z "$ac_c_werror_flag"
4124                          || test ! -s conftest.err'
4125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126   (eval $ac_try) 2>&5
4127   ac_status=$?
4128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); }; } &&
4130          { ac_try='test -s conftest.$ac_objext'
4131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132   (eval $ac_try) 2>&5
4133   ac_status=$?
4134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); }; }; then
4136   # It does; now see whether it defined to BIG_ENDIAN or not.
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h.  */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h.  */
4143 #include <sys/types.h>
4144 #include <sys/param.h>
4145
4146 int
4147 main ()
4148 {
4149 #if BYTE_ORDER != BIG_ENDIAN
4150  not big endian
4151 #endif
4152
4153   ;
4154   return 0;
4155 }
4156 _ACEOF
4157 rm -f conftest.$ac_objext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159   (eval $ac_compile) 2>conftest.er1
4160   ac_status=$?
4161   grep -v '^ *+' conftest.er1 >conftest.err
4162   rm -f conftest.er1
4163   cat conftest.err >&5
4164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); } &&
4166          { ac_try='test -z "$ac_c_werror_flag"
4167                          || test ! -s conftest.err'
4168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169   (eval $ac_try) 2>&5
4170   ac_status=$?
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); }; } &&
4173          { ac_try='test -s conftest.$ac_objext'
4174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175   (eval $ac_try) 2>&5
4176   ac_status=$?
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); }; }; then
4179   ac_cv_c_bigendian=yes
4180 else
4181   echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4183
4184 ac_cv_c_bigendian=no
4185 fi
4186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4187 else
4188   echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191 # It does not; compile a test program.
4192 if test "$cross_compiling" = yes; then
4193   # try to guess the endianness by grepping values into an object file
4194   ac_cv_c_bigendian=unknown
4195   cat >conftest.$ac_ext <<_ACEOF
4196 /* confdefs.h.  */
4197 _ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h.  */
4201 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4202 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4203 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4204 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4205 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4206 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4207 int
4208 main ()
4209 {
4210  _ascii (); _ebcdic ();
4211   ;
4212   return 0;
4213 }
4214 _ACEOF
4215 rm -f conftest.$ac_objext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4217   (eval $ac_compile) 2>conftest.er1
4218   ac_status=$?
4219   grep -v '^ *+' conftest.er1 >conftest.err
4220   rm -f conftest.er1
4221   cat conftest.err >&5
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); } &&
4224          { ac_try='test -z "$ac_c_werror_flag"
4225                          || test ! -s conftest.err'
4226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227   (eval $ac_try) 2>&5
4228   ac_status=$?
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); }; } &&
4231          { ac_try='test -s conftest.$ac_objext'
4232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233   (eval $ac_try) 2>&5
4234   ac_status=$?
4235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); }; }; then
4237   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4238   ac_cv_c_bigendian=yes
4239 fi
4240 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4241   if test "$ac_cv_c_bigendian" = unknown; then
4242     ac_cv_c_bigendian=no
4243   else
4244     # finding both strings is unlikely to happen, but who knows?
4245     ac_cv_c_bigendian=unknown
4246   fi
4247 fi
4248 else
4249   echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4251
4252 fi
4253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4254 else
4255   cat >conftest.$ac_ext <<_ACEOF
4256 /* confdefs.h.  */
4257 _ACEOF
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h.  */
4261 int
4262 main ()
4263 {
4264   /* Are we little or big endian?  From Harbison&Steele.  */
4265   union
4266   {
4267     long l;
4268     char c[sizeof (long)];
4269   } u;
4270   u.l = 1;
4271   exit (u.c[sizeof (long) - 1] == 1);
4272 }
4273 _ACEOF
4274 rm -f conftest$ac_exeext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4276   (eval $ac_link) 2>&5
4277   ac_status=$?
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281   (eval $ac_try) 2>&5
4282   ac_status=$?
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); }; }; then
4285   ac_cv_c_bigendian=no
4286 else
4287   echo "$as_me: program exited with status $ac_status" >&5
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291 ( exit $ac_status )
4292 ac_cv_c_bigendian=yes
4293 fi
4294 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4295 fi
4296 fi
4297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4298 fi
4299 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4300 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4301 case $ac_cv_c_bigendian in
4302   yes)
4303
4304 cat >>confdefs.h <<\_ACEOF
4305 #define WORDS_BIGENDIAN 1
4306 _ACEOF
4307  ;;
4308   no)
4309      ;;
4310   *)
4311     { { echo "$as_me:$LINENO: error: unknown endianness
4312 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4313 echo "$as_me: error: unknown endianness
4314 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4315    { (exit 1); exit 1; }; } ;;
4316 esac
4317
4318
4319
4320 # Check whether --with-irs-gr or --without-irs-gr was given.
4321 if test "${with_irs_gr+set}" = set; then
4322   withval="$with_irs_gr"
4323   want_irs_gr="$withval"
4324 else
4325   want_irs_gr="no"
4326 fi;
4327 case "$want_irs_gr" in
4328 yes) WANT_IRS_GR="#define WANT_IRS_GR 1"
4329      WANT_IRS_GR_OBJS="\${WANT_IRS_GR_OBJS}"
4330         ;;
4331 *) WANT_IRS_GR="#undef WANT_IRS_GR" WANT_IRS_GR_OBJS="";;
4332 esac
4333
4334
4335
4336
4337 # Check whether --with-irs-pw or --without-irs-pw was given.
4338 if test "${with_irs_pw+set}" = set; then
4339   withval="$with_irs_pw"
4340   want_irs_pw="$withval"
4341 else
4342   want_irs_pw="no"
4343 fi;
4344 case "$want_irs_pw" in
4345 yes) WANT_IRS_PW="#define WANT_IRS_PW 1"
4346      WANT_IRS_PW_OBJS="\${WANT_IRS_PW_OBJS}";;
4347 *) WANT_IRS_PW="#undef WANT_IRS_PW" WANT_IRS_PW_OBJS="";;
4348 esac
4349
4350
4351
4352
4353 # Check whether --with-irs-nis or --without-irs-nis was given.
4354 if test "${with_irs_nis+set}" = set; then
4355   withval="$with_irs_nis"
4356   want_irs_nis="$withval"
4357 else
4358   want_irs_nis="no"
4359 fi;
4360 case "$want_irs_nis" in
4361 yes)
4362         WANT_IRS_NIS="#define WANT_IRS_NIS 1"
4363         WANT_IRS_NIS_OBJS="\${WANT_IRS_NIS_OBJS}"
4364         case "$want_irs_gr" in
4365         yes)
4366                 WANT_IRS_NISGR_OBJS="\${WANT_IRS_NISGR_OBJS}";;
4367         *)
4368                 WANT_IRS_NISGR_OBJS="";;
4369         esac
4370         case "$want_irs_pw" in
4371         yes)
4372                 WANT_IRS_NISPW_OBJS="\${WANT_IRS_NISPW_OBJS}";;
4373         *)
4374                 WANT_IRS_NISPW_OBJS="";;
4375         esac
4376         ;;
4377 *)
4378         WANT_IRS_NIS="#undef WANT_IRS_NIS"
4379         WANT_IRS_NIS_OBJS=""
4380         WANT_IRS_NISGR_OBJS=""
4381         WANT_IRS_NISPW_OBJS="";;
4382 esac
4383
4384
4385
4386
4387 if test "$cross_compiling" = yes; then
4388   WANT_IRS_DBPW_OBJS=""
4389
4390 else
4391   cat >conftest.$ac_ext <<_ACEOF
4392 /* confdefs.h.  */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h.  */
4397
4398 #ifdef HAVE_DB_H
4399 int have_db_h = 1;
4400 #else
4401 int have_db_h = 0;
4402 #endif
4403 main() { return(!have_db_h); }
4404
4405 _ACEOF
4406 rm -f conftest$ac_exeext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4408   (eval $ac_link) 2>&5
4409   ac_status=$?
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413   (eval $ac_try) 2>&5
4414   ac_status=$?
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); }; }; then
4417   WANT_IRS_DBPW_OBJS="\${WANT_IRS_DBPW_OBJS}"
4418
4419 else
4420   echo "$as_me: program exited with status $ac_status" >&5
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 ( exit $ac_status )
4425 WANT_IRS_DBPW_OBJS=""
4426
4427 fi
4428 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4429 fi
4430
4431
4432 #
4433 # was --with-randomdev specified?
4434 #
4435 echo "$as_me:$LINENO: checking for random device" >&5
4436 echo $ECHO_N "checking for random device... $ECHO_C" >&6
4437
4438 # Check whether --with-randomdev or --without-randomdev was given.
4439 if test "${with_randomdev+set}" = set; then
4440   withval="$with_randomdev"
4441   use_randomdev="$withval"
4442 else
4443   use_randomdev="unspec"
4444 fi;
4445
4446 case "$use_randomdev" in
4447         unspec)
4448                 case "$host" in
4449                         *-openbsd*)
4450                                 devrandom=/dev/srandom
4451                                 ;;
4452                         *)
4453                                 devrandom=/dev/random
4454                                 ;;
4455                 esac
4456                 echo "$as_me:$LINENO: result: $devrandom" >&5
4457 echo "${ECHO_T}$devrandom" >&6
4458                 as_ac_File=`echo "ac_cv_file_$devrandom" | $as_tr_sh`
4459 echo "$as_me:$LINENO: checking for $devrandom" >&5
4460 echo $ECHO_N "checking for $devrandom... $ECHO_C" >&6
4461 if eval "test \"\${$as_ac_File+set}\" = set"; then
4462   echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464   test "$cross_compiling" = yes &&
4465   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4466 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4467    { (exit 1); exit 1; }; }
4468 if test -r "$devrandom"; then
4469   eval "$as_ac_File=yes"
4470 else
4471   eval "$as_ac_File=no"
4472 fi
4473 fi
4474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4475 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4476 if test `eval echo '${'$as_ac_File'}'` = yes; then
4477   cat >>confdefs.h <<_ACEOF
4478 #define PATH_RANDOMDEV "$devrandom"
4479 _ACEOF
4480
4481 fi
4482
4483                 ;;
4484         yes)
4485                 { { echo "$as_me:$LINENO: error: --with-randomdev must specify a path" >&5
4486 echo "$as_me: error: --with-randomdev must specify a path" >&2;}
4487    { (exit 1); exit 1; }; }
4488                 ;;
4489         *)
4490                 cat >>confdefs.h <<_ACEOF
4491 #define PATH_RANDOMDEV "$use_randomdev"
4492 _ACEOF
4493
4494                 echo "$as_me:$LINENO: result: using \"$use_randomdev\"" >&5
4495 echo "${ECHO_T}using \"$use_randomdev\"" >&6
4496                 ;;
4497 esac
4498
4499 #
4500 # Begin pthreads checking.
4501 #
4502 # First, decide whether to use multithreading or not.
4503 #
4504 # Enable multithreading by default on systems where it is known
4505 # to work well, and where debugging of multithreaded programs
4506 # is supported.
4507 #
4508
4509 echo "$as_me:$LINENO: checking whether to build with thread support" >&5
4510 echo $ECHO_N "checking whether to build with thread support... $ECHO_C" >&6
4511
4512 case $host in
4513 *-dec-osf*)
4514         use_threads=true ;;
4515 *-solaris2.[0-6])
4516         # Thread signals are broken on Solaris 2.6; they are sometimes
4517         # delivered to the wrong thread.
4518         use_threads=false ;;
4519 *-solaris*)
4520         use_threads=true ;;
4521 *-ibm-aix*)
4522         use_threads=true ;;
4523 *-hp-hpux10*)
4524         use_threads=false ;;
4525 *-hp-hpux11*)
4526         use_threads=true ;;
4527 *-sgi-irix*)
4528         use_threads=true ;;
4529 *-sco-sysv*uw*|*-*-sysv*UnixWare*)
4530         # UnixWare
4531         use_threads=false ;;
4532 *-*-sysv*OpenUNIX*)
4533         # UnixWare
4534         use_threads=true ;;
4535 *-netbsd*)
4536         if test -r /usr/lib/libpthread.so ; then
4537             use_threads=true
4538         else
4539             # Socket I/O optimizations introduced in 9.2 expose a
4540             # bug in unproven-pthreads; see PR #12650
4541             use_threads=false
4542         fi
4543         ;;
4544 *-openbsd*)
4545         # OpenBSD users have reported that named dumps core on
4546         # startup when built with threads.
4547         use_threads=false ;;
4548 *-freebsd*)
4549         use_threads=false ;;
4550 *-bsdi234*)
4551         # Thread signals do not work reliably on some versions of BSD/OS.
4552         use_threads=false ;;
4553 *-bsdi5*)
4554         use_threads=true ;;
4555 *-linux*)
4556         # Threads are disabled on Linux by default because most
4557         # Linux kernels produce unusable core dumps from multithreaded
4558         # programs, and because of limitations in setuid().
4559         use_threads=false ;;
4560 *)
4561         use_threads=false ;;
4562 esac
4563
4564 # Check whether --enable-threads or --disable-threads was given.
4565 if test "${enable_threads+set}" = set; then
4566   enableval="$enable_threads"
4567
4568 fi;
4569 case "$enable_threads" in
4570         yes)
4571                 use_threads=true
4572                 ;;
4573         no)
4574                 use_threads=false
4575                 ;;
4576         '')
4577                 # Use system-dependent default
4578                 ;;
4579         *)
4580                 { { echo "$as_me:$LINENO: error: --enable-threads takes yes or no" >&5
4581 echo "$as_me: error: --enable-threads takes yes or no" >&2;}
4582    { (exit 1); exit 1; }; }
4583                 ;;
4584 esac
4585
4586 if $use_threads
4587 then
4588         echo "$as_me:$LINENO: result: yes" >&5
4589 echo "${ECHO_T}yes" >&6
4590 else
4591         echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6
4593 fi
4594
4595 if $use_threads
4596 then
4597         #
4598         # Search for / configure pthreads in a system-dependent fashion.
4599         #
4600         case "$host" in
4601           *-netbsd*)
4602                 # NetBSD has multiple pthreads implementations.  The
4603                 # recommended one to use is "unproven-pthreads".  The
4604                 # older "mit-pthreads" may also work on some NetBSD
4605                 # versions.  The PTL2 thread library does not
4606                 # currently work with bind9, but can be chosen with
4607                 # the --with-ptl2 option for those who wish to
4608                 # experiment with it.
4609                 CC="gcc"
4610                 echo "$as_me:$LINENO: checking which NetBSD thread library to use" >&5
4611 echo $ECHO_N "checking which NetBSD thread library to use... $ECHO_C" >&6
4612
4613
4614 # Check whether --with-ptl2 or --without-ptl2 was given.
4615 if test "${with_ptl2+set}" = set; then
4616   withval="$with_ptl2"
4617   use_ptl2="$withval"
4618 else
4619   use_ptl2="no"
4620 fi;
4621
4622                 : ${LOCALBASE:=/usr/pkg}
4623
4624                 if test "X$use_ptl2" = "Xyes"
4625                 then
4626                         echo "$as_me:$LINENO: result: PTL2" >&5
4627 echo "${ECHO_T}PTL2" >&6
4628                         { echo "$as_me:$LINENO: WARNING: linking with PTL2 is highly experimental and not expected to work" >&5
4629 echo "$as_me: WARNING: linking with PTL2 is highly experimental and not expected to work" >&2;}
4630                         CC=ptlgcc
4631                 else
4632                         if test -r /usr/lib/libpthread.so
4633                         then
4634                                 echo "$as_me:$LINENO: result: native" >&5
4635 echo "${ECHO_T}native" >&6
4636                                 LIBS="-lpthread $LIBS"
4637                         else
4638                                 if test ! -d $LOCALBASE/pthreads
4639                                 then
4640                                         echo "$as_me:$LINENO: result: none" >&5
4641 echo "${ECHO_T}none" >&6
4642                                         { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
4643 echo "$as_me: error: \"could not find thread libraries\"" >&2;}
4644    { (exit 1); exit 1; }; }
4645                                 fi
4646
4647                                 if $use_threads
4648                                 then
4649                                         echo "$as_me:$LINENO: result: mit-pthreads/unproven-pthreads" >&5
4650 echo "${ECHO_T}mit-pthreads/unproven-pthreads" >&6
4651                                         pkg="$LOCALBASE/pthreads"
4652                                         lib1="-L$pkg/lib -Wl,-R$pkg/lib"
4653                                         lib2="-lpthread -lm -lgcc -lpthread"
4654                                         LIBS="$lib1 $lib2 $LIBS"
4655                                         CPPFLAGS="$CPPFLAGS -I$pkg/include"
4656                                         STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
4657                                 fi
4658                         fi
4659                 fi
4660                 ;;
4661                 *-freebsd*)
4662                         # We don't want to set -lpthread as that break
4663                         # the ability to choose threads library at final
4664                         # link time and is not valid for all architectures.
4665
4666                         PTHREAD=
4667                         if test "X$GCC" = "Xyes"; then
4668                                 saved_cc="$CC"
4669                                 CC="$CC -pthread"
4670                                 echo "$as_me:$LINENO: checking for gcc -pthread support" >&5
4671 echo $ECHO_N "checking for gcc -pthread support... $ECHO_C" >&6;
4672                                 cat >conftest.$ac_ext <<_ACEOF
4673 /* confdefs.h.  */
4674 _ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h.  */
4678 #include <pthread.h>
4679 int
4680 main ()
4681 {
4682 printf("%x\n", pthread_create);
4683   ;
4684   return 0;
4685 }
4686 _ACEOF
4687 rm -f conftest.$ac_objext conftest$ac_exeext
4688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4689   (eval $ac_link) 2>conftest.er1
4690   ac_status=$?
4691   grep -v '^ *+' conftest.er1 >conftest.err
4692   rm -f conftest.er1
4693   cat conftest.err >&5
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); } &&
4696          { ac_try='test -z "$ac_c_werror_flag"
4697                          || test ! -s conftest.err'
4698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699   (eval $ac_try) 2>&5
4700   ac_status=$?
4701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702   (exit $ac_status); }; } &&
4703          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4709   PTHREAD="yes"
4710                                             echo "$as_me:$LINENO: result: yes" >&5
4711 echo "${ECHO_T}yes" >&6
4712 else
4713   echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.$ac_ext >&5
4715
4716 echo "$as_me:$LINENO: result: no" >&5
4717 echo "${ECHO_T}no" >&6
4718 fi
4719 rm -f conftest.err conftest.$ac_objext \
4720       conftest$ac_exeext conftest.$ac_ext
4721                                 CC="$saved_cc"
4722                         fi
4723                         if test "X$PTHREAD" != "Xyes"; then
4724
4725 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4726 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
4727 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4728   echo $ECHO_N "(cached) $ECHO_C" >&6
4729 else
4730   ac_check_lib_save_LIBS=$LIBS
4731 LIBS="-lpthread  $LIBS"
4732 cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h.  */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h.  */
4738
4739 /* Override any gcc2 internal prototype to avoid an error.  */
4740 #ifdef __cplusplus
4741 extern "C"
4742 #endif
4743 /* We use char because int might match the return type of a gcc2
4744    builtin and then its argument prototype would still apply.  */
4745 char pthread_create ();
4746 int
4747 main ()
4748 {
4749 pthread_create ();
4750   ;
4751   return 0;
4752 }
4753 _ACEOF
4754 rm -f conftest.$ac_objext conftest$ac_exeext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4756   (eval $ac_link) 2>conftest.er1
4757   ac_status=$?
4758   grep -v '^ *+' conftest.er1 >conftest.err
4759   rm -f conftest.er1
4760   cat conftest.err >&5
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); } &&
4763          { ac_try='test -z "$ac_c_werror_flag"
4764                          || test ! -s conftest.err'
4765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766   (eval $ac_try) 2>&5
4767   ac_status=$?
4768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769   (exit $ac_status); }; } &&
4770          { ac_try='test -s conftest$ac_exeext'
4771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772   (eval $ac_try) 2>&5
4773   ac_status=$?
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); }; }; then
4776   ac_cv_lib_pthread_pthread_create=yes
4777 else
4778   echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4780
4781 ac_cv_lib_pthread_pthread_create=no
4782 fi
4783 rm -f conftest.err conftest.$ac_objext \
4784       conftest$ac_exeext conftest.$ac_ext
4785 LIBS=$ac_check_lib_save_LIBS
4786 fi
4787 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
4788 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
4789 if test $ac_cv_lib_pthread_pthread_create = yes; then
4790   cat >>confdefs.h <<_ACEOF
4791 #define HAVE_LIBPTHREAD 1
4792 _ACEOF
4793
4794   LIBS="-lpthread $LIBS"
4795
4796 else
4797
4798 echo "$as_me:$LINENO: checking for thread_create in -lthr" >&5
4799 echo $ECHO_N "checking for thread_create in -lthr... $ECHO_C" >&6
4800 if test "${ac_cv_lib_thr_thread_create+set}" = set; then
4801   echo $ECHO_N "(cached) $ECHO_C" >&6
4802 else
4803   ac_check_lib_save_LIBS=$LIBS
4804 LIBS="-lthr  $LIBS"
4805 cat >conftest.$ac_ext <<_ACEOF
4806 /* confdefs.h.  */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h.  */
4811
4812 /* Override any gcc2 internal prototype to avoid an error.  */
4813 #ifdef __cplusplus
4814 extern "C"
4815 #endif
4816 /* We use char because int might match the return type of a gcc2
4817    builtin and then its argument prototype would still apply.  */
4818 char thread_create ();
4819 int
4820 main ()
4821 {
4822 thread_create ();
4823   ;
4824   return 0;
4825 }
4826 _ACEOF
4827 rm -f conftest.$ac_objext conftest$ac_exeext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4829   (eval $ac_link) 2>conftest.er1
4830   ac_status=$?
4831   grep -v '^ *+' conftest.er1 >conftest.err
4832   rm -f conftest.er1
4833   cat conftest.err >&5
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); } &&
4836          { ac_try='test -z "$ac_c_werror_flag"
4837                          || test ! -s conftest.err'
4838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839   (eval $ac_try) 2>&5
4840   ac_status=$?
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); }; } &&
4843          { ac_try='test -s conftest$ac_exeext'
4844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845   (eval $ac_try) 2>&5
4846   ac_status=$?
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); }; }; then
4849   ac_cv_lib_thr_thread_create=yes
4850 else
4851   echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4853
4854 ac_cv_lib_thr_thread_create=no
4855 fi
4856 rm -f conftest.err conftest.$ac_objext \
4857       conftest$ac_exeext conftest.$ac_ext
4858 LIBS=$ac_check_lib_save_LIBS
4859 fi
4860 echo "$as_me:$LINENO: result: $ac_cv_lib_thr_thread_create" >&5
4861 echo "${ECHO_T}$ac_cv_lib_thr_thread_create" >&6
4862 if test $ac_cv_lib_thr_thread_create = yes; then
4863   cat >>confdefs.h <<_ACEOF
4864 #define HAVE_LIBTHR 1
4865 _ACEOF
4866
4867   LIBS="-lthr $LIBS"
4868
4869 else
4870
4871 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
4872 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
4873 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
4874   echo $ECHO_N "(cached) $ECHO_C" >&6
4875 else
4876   ac_check_lib_save_LIBS=$LIBS
4877 LIBS="-lc_r  $LIBS"
4878 cat >conftest.$ac_ext <<_ACEOF
4879 /* confdefs.h.  */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h.  */
4884
4885 /* Override any gcc2 internal prototype to avoid an error.  */
4886 #ifdef __cplusplus
4887 extern "C"
4888 #endif
4889 /* We use char because int might match the return type of a gcc2
4890    builtin and then its argument prototype would still apply.  */
4891 char pthread_create ();
4892 int
4893 main ()
4894 {
4895 pthread_create ();
4896   ;
4897   return 0;
4898 }
4899 _ACEOF
4900 rm -f conftest.$ac_objext conftest$ac_exeext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4902   (eval $ac_link) 2>conftest.er1
4903   ac_status=$?
4904   grep -v '^ *+' conftest.er1 >conftest.err
4905   rm -f conftest.er1
4906   cat conftest.err >&5
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); } &&
4909          { ac_try='test -z "$ac_c_werror_flag"
4910                          || test ! -s conftest.err'
4911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912   (eval $ac_try) 2>&5
4913   ac_status=$?
4914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); }; } &&
4916          { ac_try='test -s conftest$ac_exeext'
4917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918   (eval $ac_try) 2>&5
4919   ac_status=$?
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); }; }; then
4922   ac_cv_lib_c_r_pthread_create=yes
4923 else
4924   echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4926
4927 ac_cv_lib_c_r_pthread_create=no
4928 fi
4929 rm -f conftest.err conftest.$ac_objext \
4930       conftest$ac_exeext conftest.$ac_ext
4931 LIBS=$ac_check_lib_save_LIBS
4932 fi
4933 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
4934 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
4935 if test $ac_cv_lib_c_r_pthread_create = yes; then
4936   cat >>confdefs.h <<_ACEOF
4937 #define HAVE_LIBC_R 1
4938 _ACEOF
4939
4940   LIBS="-lc_r $LIBS"
4941
4942 else
4943
4944 echo "$as_me:$LINENO: checking for pthread_create in -lc" >&5
4945 echo $ECHO_N "checking for pthread_create in -lc... $ECHO_C" >&6
4946 if test "${ac_cv_lib_c_pthread_create+set}" = set; then
4947   echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949   ac_check_lib_save_LIBS=$LIBS
4950 LIBS="-lc  $LIBS"
4951 cat >conftest.$ac_ext <<_ACEOF
4952 /* confdefs.h.  */
4953 _ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h.  */
4957
4958 /* Override any gcc2 internal prototype to avoid an error.  */
4959 #ifdef __cplusplus
4960 extern "C"
4961 #endif
4962 /* We use char because int might match the return type of a gcc2
4963    builtin and then its argument prototype would still apply.  */
4964 char pthread_create ();
4965 int
4966 main ()
4967 {
4968 pthread_create ();
4969   ;
4970   return 0;
4971 }
4972 _ACEOF
4973 rm -f conftest.$ac_objext conftest$ac_exeext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4975   (eval $ac_link) 2>conftest.er1
4976   ac_status=$?
4977   grep -v '^ *+' conftest.er1 >conftest.err
4978   rm -f conftest.er1
4979   cat conftest.err >&5
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); } &&
4982          { ac_try='test -z "$ac_c_werror_flag"
4983                          || test ! -s conftest.err'
4984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985   (eval $ac_try) 2>&5
4986   ac_status=$?
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); }; } &&
4989          { ac_try='test -s conftest$ac_exeext'
4990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991   (eval $ac_try) 2>&5
4992   ac_status=$?
4993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994   (exit $ac_status); }; }; then
4995   ac_cv_lib_c_pthread_create=yes
4996 else
4997   echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
4999
5000 ac_cv_lib_c_pthread_create=no
5001 fi
5002 rm -f conftest.err conftest.$ac_objext \
5003       conftest$ac_exeext conftest.$ac_ext
5004 LIBS=$ac_check_lib_save_LIBS
5005 fi
5006 echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_create" >&5
5007 echo "${ECHO_T}$ac_cv_lib_c_pthread_create" >&6
5008 if test $ac_cv_lib_c_pthread_create = yes; then
5009   cat >>confdefs.h <<_ACEOF
5010 #define HAVE_LIBC 1
5011 _ACEOF
5012
5013   LIBS="-lc $LIBS"
5014
5015 else
5016   { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
5017 echo "$as_me: error: \"could not find thread libraries\"" >&2;}
5018    { (exit 1); exit 1; }; }
5019 fi
5020
5021 fi
5022
5023 fi
5024
5025 fi
5026
5027                         fi
5028                         ;;
5029                 *)
5030
5031 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5032 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
5033 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
5034   echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036   ac_check_lib_save_LIBS=$LIBS
5037 LIBS="-lpthread  $LIBS"
5038 cat >conftest.$ac_ext <<_ACEOF
5039 /* confdefs.h.  */
5040 _ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h.  */
5044
5045 /* Override any gcc2 internal prototype to avoid an error.  */
5046 #ifdef __cplusplus
5047 extern "C"
5048 #endif
5049 /* We use char because int might match the return type of a gcc2
5050    builtin and then its argument prototype would still apply.  */
5051 char pthread_create ();
5052 int
5053 main ()
5054 {
5055 pthread_create ();
5056   ;
5057   return 0;
5058 }
5059 _ACEOF
5060 rm -f conftest.$ac_objext conftest$ac_exeext
5061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5062   (eval $ac_link) 2>conftest.er1
5063   ac_status=$?
5064   grep -v '^ *+' conftest.er1 >conftest.err
5065   rm -f conftest.er1
5066   cat conftest.err >&5
5067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068   (exit $ac_status); } &&
5069          { ac_try='test -z "$ac_c_werror_flag"
5070                          || test ! -s conftest.err'
5071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072   (eval $ac_try) 2>&5
5073   ac_status=$?
5074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075   (exit $ac_status); }; } &&
5076          { ac_try='test -s conftest$ac_exeext'
5077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078   (eval $ac_try) 2>&5
5079   ac_status=$?
5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081   (exit $ac_status); }; }; then
5082   ac_cv_lib_pthread_pthread_create=yes
5083 else
5084   echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5086
5087 ac_cv_lib_pthread_pthread_create=no
5088 fi
5089 rm -f conftest.err conftest.$ac_objext \
5090       conftest$ac_exeext conftest.$ac_ext
5091 LIBS=$ac_check_lib_save_LIBS
5092 fi
5093 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5094 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
5095 if test $ac_cv_lib_pthread_pthread_create = yes; then
5096   cat >>confdefs.h <<_ACEOF
5097 #define HAVE_LIBPTHREAD 1
5098 _ACEOF
5099
5100   LIBS="-lpthread $LIBS"
5101
5102 else
5103
5104 echo "$as_me:$LINENO: checking for __pthread_create in -lpthread" >&5
5105 echo $ECHO_N "checking for __pthread_create in -lpthread... $ECHO_C" >&6
5106 if test "${ac_cv_lib_pthread___pthread_create+set}" = set; then
5107   echo $ECHO_N "(cached) $ECHO_C" >&6
5108 else
5109   ac_check_lib_save_LIBS=$LIBS
5110 LIBS="-lpthread  $LIBS"
5111 cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h.  */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h.  */
5117
5118 /* Override any gcc2 internal prototype to avoid an error.  */
5119 #ifdef __cplusplus
5120 extern "C"
5121 #endif
5122 /* We use char because int might match the return type of a gcc2
5123    builtin and then its argument prototype would still apply.  */
5124 char __pthread_create ();
5125 int
5126 main ()
5127 {
5128 __pthread_create ();
5129   ;
5130   return 0;
5131 }
5132 _ACEOF
5133 rm -f conftest.$ac_objext conftest$ac_exeext
5134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5135   (eval $ac_link) 2>conftest.er1
5136   ac_status=$?
5137   grep -v '^ *+' conftest.er1 >conftest.err
5138   rm -f conftest.er1
5139   cat conftest.err >&5
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); } &&
5142          { ac_try='test -z "$ac_c_werror_flag"
5143                          || test ! -s conftest.err'
5144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145   (eval $ac_try) 2>&5
5146   ac_status=$?
5147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148   (exit $ac_status); }; } &&
5149          { ac_try='test -s conftest$ac_exeext'
5150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151   (eval $ac_try) 2>&5
5152   ac_status=$?
5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154   (exit $ac_status); }; }; then
5155   ac_cv_lib_pthread___pthread_create=yes
5156 else
5157   echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5159
5160 ac_cv_lib_pthread___pthread_create=no
5161 fi
5162 rm -f conftest.err conftest.$ac_objext \
5163       conftest$ac_exeext conftest.$ac_ext
5164 LIBS=$ac_check_lib_save_LIBS
5165 fi
5166 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create" >&5
5167 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create" >&6
5168 if test $ac_cv_lib_pthread___pthread_create = yes; then
5169   cat >>confdefs.h <<_ACEOF
5170 #define HAVE_LIBPTHREAD 1
5171 _ACEOF
5172
5173   LIBS="-lpthread $LIBS"
5174
5175 else
5176
5177 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
5178 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
5179 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
5180   echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182   ac_check_lib_save_LIBS=$LIBS
5183 LIBS="-lpthread  $LIBS"
5184 cat >conftest.$ac_ext <<_ACEOF
5185 /* confdefs.h.  */
5186 _ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h.  */
5190
5191 /* Override any gcc2 internal prototype to avoid an error.  */
5192 #ifdef __cplusplus
5193 extern "C"
5194 #endif
5195 /* We use char because int might match the return type of a gcc2
5196    builtin and then its argument prototype would still apply.  */
5197 char __pthread_create_system ();
5198 int
5199 main ()
5200 {
5201 __pthread_create_system ();
5202   ;
5203   return 0;
5204 }
5205 _ACEOF
5206 rm -f conftest.$ac_objext conftest$ac_exeext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5208   (eval $ac_link) 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); } &&
5215          { ac_try='test -z "$ac_c_werror_flag"
5216                          || test ! -s conftest.err'
5217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218   (eval $ac_try) 2>&5
5219   ac_status=$?
5220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221   (exit $ac_status); }; } &&
5222          { ac_try='test -s conftest$ac_exeext'
5223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224   (eval $ac_try) 2>&5
5225   ac_status=$?
5226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227   (exit $ac_status); }; }; then
5228   ac_cv_lib_pthread___pthread_create_system=yes
5229 else
5230   echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5232
5233 ac_cv_lib_pthread___pthread_create_system=no
5234 fi
5235 rm -f conftest.err conftest.$ac_objext \
5236       conftest$ac_exeext conftest.$ac_ext
5237 LIBS=$ac_check_lib_save_LIBS
5238 fi
5239 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
5240 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
5241 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
5242   cat >>confdefs.h <<_ACEOF
5243 #define HAVE_LIBPTHREAD 1
5244 _ACEOF
5245
5246   LIBS="-lpthread $LIBS"
5247
5248 else
5249
5250 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
5251 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
5252 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
5253   echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255   ac_check_lib_save_LIBS=$LIBS
5256 LIBS="-lc_r  $LIBS"
5257 cat >conftest.$ac_ext <<_ACEOF
5258 /* confdefs.h.  */
5259 _ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h.  */
5263
5264 /* Override any gcc2 internal prototype to avoid an error.  */
5265 #ifdef __cplusplus
5266 extern "C"
5267 #endif
5268 /* We use char because int might match the return type of a gcc2
5269    builtin and then its argument prototype would still apply.  */
5270 char pthread_create ();
5271 int
5272 main ()
5273 {
5274 pthread_create ();
5275   ;
5276   return 0;
5277 }
5278 _ACEOF
5279 rm -f conftest.$ac_objext conftest$ac_exeext
5280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5281   (eval $ac_link) 2>conftest.er1
5282   ac_status=$?
5283   grep -v '^ *+' conftest.er1 >conftest.err
5284   rm -f conftest.er1
5285   cat conftest.err >&5
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); } &&
5288          { ac_try='test -z "$ac_c_werror_flag"
5289                          || test ! -s conftest.err'
5290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291   (eval $ac_try) 2>&5
5292   ac_status=$?
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); }; } &&
5295          { ac_try='test -s conftest$ac_exeext'
5296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297   (eval $ac_try) 2>&5
5298   ac_status=$?
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); }; }; then
5301   ac_cv_lib_c_r_pthread_create=yes
5302 else
5303   echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5305
5306 ac_cv_lib_c_r_pthread_create=no
5307 fi
5308 rm -f conftest.err conftest.$ac_objext \
5309       conftest$ac_exeext conftest.$ac_ext
5310 LIBS=$ac_check_lib_save_LIBS
5311 fi
5312 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
5313 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
5314 if test $ac_cv_lib_c_r_pthread_create = yes; then
5315   cat >>confdefs.h <<_ACEOF
5316 #define HAVE_LIBC_R 1
5317 _ACEOF
5318
5319   LIBS="-lc_r $LIBS"
5320
5321 else
5322
5323 echo "$as_me:$LINENO: checking for pthread_create in -lc" >&5
5324 echo $ECHO_N "checking for pthread_create in -lc... $ECHO_C" >&6
5325 if test "${ac_cv_lib_c_pthread_create+set}" = set; then
5326   echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328   ac_check_lib_save_LIBS=$LIBS
5329 LIBS="-lc  $LIBS"
5330 cat >conftest.$ac_ext <<_ACEOF
5331 /* confdefs.h.  */
5332 _ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h.  */
5336
5337 /* Override any gcc2 internal prototype to avoid an error.  */
5338 #ifdef __cplusplus
5339 extern "C"
5340 #endif
5341 /* We use char because int might match the return type of a gcc2
5342    builtin and then its argument prototype would still apply.  */
5343 char pthread_create ();
5344 int
5345 main ()
5346 {
5347 pthread_create ();
5348   ;
5349   return 0;
5350 }
5351 _ACEOF
5352 rm -f conftest.$ac_objext conftest$ac_exeext
5353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5354   (eval $ac_link) 2>conftest.er1
5355   ac_status=$?
5356   grep -v '^ *+' conftest.er1 >conftest.err
5357   rm -f conftest.er1
5358   cat conftest.err >&5
5359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360   (exit $ac_status); } &&
5361          { ac_try='test -z "$ac_c_werror_flag"
5362                          || test ! -s conftest.err'
5363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364   (eval $ac_try) 2>&5
5365   ac_status=$?
5366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367   (exit $ac_status); }; } &&
5368          { ac_try='test -s conftest$ac_exeext'
5369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370   (eval $ac_try) 2>&5
5371   ac_status=$?
5372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373   (exit $ac_status); }; }; then
5374   ac_cv_lib_c_pthread_create=yes
5375 else
5376   echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5378
5379 ac_cv_lib_c_pthread_create=no
5380 fi
5381 rm -f conftest.err conftest.$ac_objext \
5382       conftest$ac_exeext conftest.$ac_ext
5383 LIBS=$ac_check_lib_save_LIBS
5384 fi
5385 echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_create" >&5
5386 echo "${ECHO_T}$ac_cv_lib_c_pthread_create" >&6
5387 if test $ac_cv_lib_c_pthread_create = yes; then
5388   cat >>confdefs.h <<_ACEOF
5389 #define HAVE_LIBC 1
5390 _ACEOF
5391
5392   LIBS="-lc $LIBS"
5393
5394 else
5395   { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
5396 echo "$as_me: error: \"could not find thread libraries\"" >&2;}
5397    { (exit 1); exit 1; }; }
5398 fi
5399
5400 fi
5401
5402 fi
5403
5404 fi
5405
5406 fi
5407
5408                 ;;
5409         esac
5410 fi
5411
5412 if $use_threads
5413 then
5414         if test "X$GCC" = "Xyes"; then
5415                 case "$host" in
5416                 *-freebsd*)
5417                         CC="$CC -pthread"
5418                         CCOPT="$CCOPT -pthread"
5419                         STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
5420                         ;;
5421                 *-openbsd*)
5422                         CC="$CC -pthread"
5423                         CCOPT="$CCOPT -pthread"
5424                         ;;
5425                 *-solaris*)
5426                         LIBS="$LIBS -lthread"
5427                         ;;
5428                 *-ibm-aix*)
5429                         STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
5430                         ;;
5431                 esac
5432         else
5433                 case $host in
5434                 *-dec-osf*)
5435                         CC="$CC -pthread"
5436                         CCOPT="$CCOPT -pthread"
5437                         ;;
5438                 *-solaris*)
5439                         CC="$CC -mt"
5440                         CCOPT="$CCOPT -mt"
5441                         ;;
5442                 *-ibm-aix*)
5443                         STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
5444                         ;;
5445                 *-UnixWare*)
5446                         CC="$CC -Kthread"
5447                         CCOPT="$CCOPT -Kthread"
5448                         ;;
5449                 esac
5450         fi
5451         cat >>confdefs.h <<\_ACEOF
5452 #define _REENTRANT 1
5453 _ACEOF
5454
5455         ALWAYS_DEFINES="-D_REENTRANT"
5456         DO_PTHREADS="#define DO_PTHREADS 1"
5457         WANT_IRS_THREADSGR_OBJS="\${WANT_IRS_THREADSGR_OBJS}"
5458         WANT_IRS_THREADSPW_OBJS="\${WANT_IRS_THREADSPW_OBJS}"
5459         case $host in
5460         ia64-hp-hpux11.*)
5461                 WANT_IRS_THREADS_OBJS="";;
5462         *)
5463                 WANT_IRS_THREADS_OBJS="\${WANT_IRS_THREADS_OBJS}";;
5464         esac
5465         WANT_THREADS_OBJS="\${WANT_THREADS_OBJS}"
5466         thread_dir=pthreads
5467
5468         #
5469         # We'd like to use sigwait() too
5470         #
5471         echo "$as_me:$LINENO: checking for sigwait" >&5
5472 echo $ECHO_N "checking for sigwait... $ECHO_C" >&6
5473 if test "${ac_cv_func_sigwait+set}" = set; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476   cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h.  */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h.  */
5482 /* Define sigwait to an innocuous variant, in case <limits.h> declares sigwait.
5483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5484 #define sigwait innocuous_sigwait
5485
5486 /* System header to define __stub macros and hopefully few prototypes,
5487     which can conflict with char sigwait (); below.
5488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5489     <limits.h> exists even on freestanding compilers.  */
5490
5491 #ifdef __STDC__
5492 # include <limits.h>
5493 #else
5494 # include <assert.h>
5495 #endif
5496
5497 #undef sigwait
5498
5499 /* Override any gcc2 internal prototype to avoid an error.  */
5500 #ifdef __cplusplus
5501 extern "C"
5502 {
5503 #endif
5504 /* We use char because int might match the return type of a gcc2
5505    builtin and then its argument prototype would still apply.  */
5506 char sigwait ();
5507 /* The GNU C library defines this for functions which it implements
5508     to always fail with ENOSYS.  Some functions are actually named
5509     something starting with __ and the normal name is an alias.  */
5510 #if defined (__stub_sigwait) || defined (__stub___sigwait)
5511 choke me
5512 #else
5513 char (*f) () = sigwait;
5514 #endif
5515 #ifdef __cplusplus
5516 }
5517 #endif
5518
5519 int
5520 main ()
5521 {
5522 return f != sigwait;
5523   ;
5524   return 0;
5525 }
5526 _ACEOF
5527 rm -f conftest.$ac_objext conftest$ac_exeext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529   (eval $ac_link) 2>conftest.er1
5530   ac_status=$?
5531   grep -v '^ *+' conftest.er1 >conftest.err
5532   rm -f conftest.er1
5533   cat conftest.err >&5
5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535   (exit $ac_status); } &&
5536          { ac_try='test -z "$ac_c_werror_flag"
5537                          || test ! -s conftest.err'
5538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539   (eval $ac_try) 2>&5
5540   ac_status=$?
5541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542   (exit $ac_status); }; } &&
5543          { ac_try='test -s conftest$ac_exeext'
5544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545   (eval $ac_try) 2>&5
5546   ac_status=$?
5547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548   (exit $ac_status); }; }; then
5549   ac_cv_func_sigwait=yes
5550 else
5551   echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5553
5554 ac_cv_func_sigwait=no
5555 fi
5556 rm -f conftest.err conftest.$ac_objext \
5557       conftest$ac_exeext conftest.$ac_ext
5558 fi
5559 echo "$as_me:$LINENO: result: $ac_cv_func_sigwait" >&5
5560 echo "${ECHO_T}$ac_cv_func_sigwait" >&6
5561 if test $ac_cv_func_sigwait = yes; then
5562   cat >>confdefs.h <<\_ACEOF
5563 #define HAVE_SIGWAIT 1
5564 _ACEOF
5565
5566 else
5567   echo "$as_me:$LINENO: checking for sigwait in -lc" >&5
5568 echo $ECHO_N "checking for sigwait in -lc... $ECHO_C" >&6
5569 if test "${ac_cv_lib_c_sigwait+set}" = set; then
5570   echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572   ac_check_lib_save_LIBS=$LIBS
5573 LIBS="-lc  $LIBS"
5574 cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h.  */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h.  */
5580
5581 /* Override any gcc2 internal prototype to avoid an error.  */
5582 #ifdef __cplusplus
5583 extern "C"
5584 #endif
5585 /* We use char because int might match the return type of a gcc2
5586    builtin and then its argument prototype would still apply.  */
5587 char sigwait ();
5588 int
5589 main ()
5590 {
5591 sigwait ();
5592   ;
5593   return 0;
5594 }
5595 _ACEOF
5596 rm -f conftest.$ac_objext conftest$ac_exeext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598   (eval $ac_link) 2>conftest.er1
5599   ac_status=$?
5600   grep -v '^ *+' conftest.er1 >conftest.err
5601   rm -f conftest.er1
5602   cat conftest.err >&5
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); } &&
5605          { ac_try='test -z "$ac_c_werror_flag"
5606                          || test ! -s conftest.err'
5607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608   (eval $ac_try) 2>&5
5609   ac_status=$?
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); }; } &&
5612          { ac_try='test -s conftest$ac_exeext'
5613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614   (eval $ac_try) 2>&5
5615   ac_status=$?
5616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); }; }; then
5618   ac_cv_lib_c_sigwait=yes
5619 else
5620   echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5622
5623 ac_cv_lib_c_sigwait=no
5624 fi
5625 rm -f conftest.err conftest.$ac_objext \
5626       conftest$ac_exeext conftest.$ac_ext
5627 LIBS=$ac_check_lib_save_LIBS
5628 fi
5629 echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigwait" >&5
5630 echo "${ECHO_T}$ac_cv_lib_c_sigwait" >&6
5631 if test $ac_cv_lib_c_sigwait = yes; then
5632   cat >>confdefs.h <<\_ACEOF
5633 #define HAVE_SIGWAIT 1
5634 _ACEOF
5635
5636 else
5637   echo "$as_me:$LINENO: checking for sigwait in -lpthread" >&5
5638 echo $ECHO_N "checking for sigwait in -lpthread... $ECHO_C" >&6
5639 if test "${ac_cv_lib_pthread_sigwait+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   ac_check_lib_save_LIBS=$LIBS
5643 LIBS="-lpthread  $LIBS"
5644 cat >conftest.$ac_ext <<_ACEOF
5645 /* confdefs.h.  */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h.  */
5650
5651 /* Override any gcc2 internal prototype to avoid an error.  */
5652 #ifdef __cplusplus
5653 extern "C"
5654 #endif
5655 /* We use char because int might match the return type of a gcc2
5656    builtin and then its argument prototype would still apply.  */
5657 char sigwait ();
5658 int
5659 main ()
5660 {
5661 sigwait ();
5662   ;
5663   return 0;
5664 }
5665 _ACEOF
5666 rm -f conftest.$ac_objext conftest$ac_exeext
5667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5668   (eval $ac_link) 2>conftest.er1
5669   ac_status=$?
5670   grep -v '^ *+' conftest.er1 >conftest.err
5671   rm -f conftest.er1
5672   cat conftest.err >&5
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); } &&
5675          { ac_try='test -z "$ac_c_werror_flag"
5676                          || test ! -s conftest.err'
5677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678   (eval $ac_try) 2>&5
5679   ac_status=$?
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); }; } &&
5682          { ac_try='test -s conftest$ac_exeext'
5683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684   (eval $ac_try) 2>&5
5685   ac_status=$?
5686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687   (exit $ac_status); }; }; then
5688   ac_cv_lib_pthread_sigwait=yes
5689 else
5690   echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5692
5693 ac_cv_lib_pthread_sigwait=no
5694 fi
5695 rm -f conftest.err conftest.$ac_objext \
5696       conftest$ac_exeext conftest.$ac_ext
5697 LIBS=$ac_check_lib_save_LIBS
5698 fi
5699 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sigwait" >&5
5700 echo "${ECHO_T}$ac_cv_lib_pthread_sigwait" >&6
5701 if test $ac_cv_lib_pthread_sigwait = yes; then
5702   cat >>confdefs.h <<\_ACEOF
5703 #define HAVE_SIGWAIT 1
5704 _ACEOF
5705
5706 else
5707   echo "$as_me:$LINENO: checking for _Psigwait in -lpthread" >&5
5708 echo $ECHO_N "checking for _Psigwait in -lpthread... $ECHO_C" >&6
5709 if test "${ac_cv_lib_pthread__Psigwait+set}" = set; then
5710   echo $ECHO_N "(cached) $ECHO_C" >&6
5711 else
5712   ac_check_lib_save_LIBS=$LIBS
5713 LIBS="-lpthread  $LIBS"
5714 cat >conftest.$ac_ext <<_ACEOF
5715 /* confdefs.h.  */
5716 _ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h.  */
5720
5721 /* Override any gcc2 internal prototype to avoid an error.  */
5722 #ifdef __cplusplus
5723 extern "C"
5724 #endif
5725 /* We use char because int might match the return type of a gcc2
5726    builtin and then its argument prototype would still apply.  */
5727 char _Psigwait ();
5728 int
5729 main ()
5730 {
5731 _Psigwait ();
5732   ;
5733   return 0;
5734 }
5735 _ACEOF
5736 rm -f conftest.$ac_objext conftest$ac_exeext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5738   (eval $ac_link) 2>conftest.er1
5739   ac_status=$?
5740   grep -v '^ *+' conftest.er1 >conftest.err
5741   rm -f conftest.er1
5742   cat conftest.err >&5
5743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); } &&
5745          { ac_try='test -z "$ac_c_werror_flag"
5746                          || test ! -s conftest.err'
5747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748   (eval $ac_try) 2>&5
5749   ac_status=$?
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); }; } &&
5752          { ac_try='test -s conftest$ac_exeext'
5753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754   (eval $ac_try) 2>&5
5755   ac_status=$?
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); }; }; then
5758   ac_cv_lib_pthread__Psigwait=yes
5759 else
5760   echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5762
5763 ac_cv_lib_pthread__Psigwait=no
5764 fi
5765 rm -f conftest.err conftest.$ac_objext \
5766       conftest$ac_exeext conftest.$ac_ext
5767 LIBS=$ac_check_lib_save_LIBS
5768 fi
5769 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread__Psigwait" >&5
5770 echo "${ECHO_T}$ac_cv_lib_pthread__Psigwait" >&6
5771 if test $ac_cv_lib_pthread__Psigwait = yes; then
5772   cat >>confdefs.h <<\_ACEOF
5773 #define HAVE_SIGWAIT 1
5774 _ACEOF
5775
5776 fi
5777
5778 fi
5779
5780 fi
5781
5782 fi
5783
5784
5785         echo "$as_me:$LINENO: checking for pthread_attr_getstacksize" >&5
5786 echo $ECHO_N "checking for pthread_attr_getstacksize... $ECHO_C" >&6
5787 if test "${ac_cv_func_pthread_attr_getstacksize+set}" = set; then
5788   echo $ECHO_N "(cached) $ECHO_C" >&6
5789 else
5790   cat >conftest.$ac_ext <<_ACEOF
5791 /* confdefs.h.  */
5792 _ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h.  */
5796 /* Define pthread_attr_getstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_getstacksize.
5797    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5798 #define pthread_attr_getstacksize innocuous_pthread_attr_getstacksize
5799
5800 /* System header to define __stub macros and hopefully few prototypes,
5801     which can conflict with char pthread_attr_getstacksize (); below.
5802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5803     <limits.h> exists even on freestanding compilers.  */
5804
5805 #ifdef __STDC__
5806 # include <limits.h>
5807 #else
5808 # include <assert.h>
5809 #endif
5810
5811 #undef pthread_attr_getstacksize
5812
5813 /* Override any gcc2 internal prototype to avoid an error.  */
5814 #ifdef __cplusplus
5815 extern "C"
5816 {
5817 #endif
5818 /* We use char because int might match the return type of a gcc2
5819    builtin and then its argument prototype would still apply.  */
5820 char pthread_attr_getstacksize ();
5821 /* The GNU C library defines this for functions which it implements
5822     to always fail with ENOSYS.  Some functions are actually named
5823     something starting with __ and the normal name is an alias.  */
5824 #if defined (__stub_pthread_attr_getstacksize) || defined (__stub___pthread_attr_getstacksize)
5825 choke me
5826 #else
5827 char (*f) () = pthread_attr_getstacksize;
5828 #endif
5829 #ifdef __cplusplus
5830 }
5831 #endif
5832
5833 int
5834 main ()
5835 {
5836 return f != pthread_attr_getstacksize;
5837   ;
5838   return 0;
5839 }
5840 _ACEOF
5841 rm -f conftest.$ac_objext conftest$ac_exeext
5842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5843   (eval $ac_link) 2>conftest.er1
5844   ac_status=$?
5845   grep -v '^ *+' conftest.er1 >conftest.err
5846   rm -f conftest.er1
5847   cat conftest.err >&5
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); } &&
5850          { ac_try='test -z "$ac_c_werror_flag"
5851                          || test ! -s conftest.err'
5852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853   (eval $ac_try) 2>&5
5854   ac_status=$?
5855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856   (exit $ac_status); }; } &&
5857          { ac_try='test -s conftest$ac_exeext'
5858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859   (eval $ac_try) 2>&5
5860   ac_status=$?
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); }; }; then
5863   ac_cv_func_pthread_attr_getstacksize=yes
5864 else
5865   echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5867
5868 ac_cv_func_pthread_attr_getstacksize=no
5869 fi
5870 rm -f conftest.err conftest.$ac_objext \
5871       conftest$ac_exeext conftest.$ac_ext
5872 fi
5873 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getstacksize" >&5
5874 echo "${ECHO_T}$ac_cv_func_pthread_attr_getstacksize" >&6
5875 if test $ac_cv_func_pthread_attr_getstacksize = yes; then
5876   cat >>confdefs.h <<\_ACEOF
5877 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
5878 _ACEOF
5879
5880 fi
5881
5882
5883         #
5884         # Additional OS-specific issues related to pthreads and sigwait.
5885         #
5886         case "$host" in
5887                 #
5888                 # One more place to look for sigwait.
5889                 #
5890                 *-freebsd*)
5891                         echo "$as_me:$LINENO: checking for sigwait in -lc_r" >&5
5892 echo $ECHO_N "checking for sigwait in -lc_r... $ECHO_C" >&6
5893 if test "${ac_cv_lib_c_r_sigwait+set}" = set; then
5894   echo $ECHO_N "(cached) $ECHO_C" >&6
5895 else
5896   ac_check_lib_save_LIBS=$LIBS
5897 LIBS="-lc_r  $LIBS"
5898 cat >conftest.$ac_ext <<_ACEOF
5899 /* confdefs.h.  */
5900 _ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h.  */
5904
5905 /* Override any gcc2 internal prototype to avoid an error.  */
5906 #ifdef __cplusplus
5907 extern "C"
5908 #endif
5909 /* We use char because int might match the return type of a gcc2
5910    builtin and then its argument prototype would still apply.  */
5911 char sigwait ();
5912 int
5913 main ()
5914 {
5915 sigwait ();
5916   ;
5917   return 0;
5918 }
5919 _ACEOF
5920 rm -f conftest.$ac_objext conftest$ac_exeext
5921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5922   (eval $ac_link) 2>conftest.er1
5923   ac_status=$?
5924   grep -v '^ *+' conftest.er1 >conftest.err
5925   rm -f conftest.er1
5926   cat conftest.err >&5
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); } &&
5929          { ac_try='test -z "$ac_c_werror_flag"
5930                          || test ! -s conftest.err'
5931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932   (eval $ac_try) 2>&5
5933   ac_status=$?
5934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935   (exit $ac_status); }; } &&
5936          { ac_try='test -s conftest$ac_exeext'
5937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938   (eval $ac_try) 2>&5
5939   ac_status=$?
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); }; }; then
5942   ac_cv_lib_c_r_sigwait=yes
5943 else
5944   echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5946
5947 ac_cv_lib_c_r_sigwait=no
5948 fi
5949 rm -f conftest.err conftest.$ac_objext \
5950       conftest$ac_exeext conftest.$ac_ext
5951 LIBS=$ac_check_lib_save_LIBS
5952 fi
5953 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_sigwait" >&5
5954 echo "${ECHO_T}$ac_cv_lib_c_r_sigwait" >&6
5955 if test $ac_cv_lib_c_r_sigwait = yes; then
5956   cat >>confdefs.h <<\_ACEOF
5957 #define HAVE_SIGWAIT 1
5958 _ACEOF
5959
5960 fi
5961
5962                         ;;
5963                 #
5964                 # BSDI 3.0 through 4.0.1 needs pthread_init() to be
5965                 # called before certain pthreads calls.  This is deprecated
5966                 # in BSD/OS 4.1.
5967                 #
5968                 *-bsdi3.*|*-bsdi4.0*)
5969                         cat >>confdefs.h <<\_ACEOF
5970 #define NEED_PTHREAD_INIT 1
5971 _ACEOF
5972
5973                         ;;
5974                 #
5975                 # LinuxThreads requires some changes to the way we
5976                 # deal with signals.
5977                 #
5978                 *-linux*)
5979                         cat >>confdefs.h <<\_ACEOF
5980 #define HAVE_LINUXTHREADS 1
5981 _ACEOF
5982
5983                         ;;
5984                 #
5985                 # Ensure the right sigwait() semantics on Solaris and make
5986                 # sure we call pthread_setconcurrency.
5987                 #
5988                 *-solaris*)
5989                         cat >>confdefs.h <<\_ACEOF
5990 #define _POSIX_PTHREAD_SEMANTICS 1
5991 _ACEOF
5992
5993                         echo "$as_me:$LINENO: checking for pthread_setconcurrency" >&5
5994 echo $ECHO_N "checking for pthread_setconcurrency... $ECHO_C" >&6
5995 if test "${ac_cv_func_pthread_setconcurrency+set}" = set; then
5996   echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998   cat >conftest.$ac_ext <<_ACEOF
5999 /* confdefs.h.  */
6000 _ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h.  */
6004 /* Define pthread_setconcurrency to an innocuous variant, in case <limits.h> declares pthread_setconcurrency.
6005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6006 #define pthread_setconcurrency innocuous_pthread_setconcurrency
6007
6008 /* System header to define __stub macros and hopefully few prototypes,
6009     which can conflict with char pthread_setconcurrency (); below.
6010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6011     <limits.h> exists even on freestanding compilers.  */
6012
6013 #ifdef __STDC__
6014 # include <limits.h>
6015 #else
6016 # include <assert.h>
6017 #endif
6018
6019 #undef pthread_setconcurrency
6020
6021 /* Override any gcc2 internal prototype to avoid an error.  */
6022 #ifdef __cplusplus
6023 extern "C"
6024 {
6025 #endif
6026 /* We use char because int might match the return type of a gcc2
6027    builtin and then its argument prototype would still apply.  */
6028 char pthread_setconcurrency ();
6029 /* The GNU C library defines this for functions which it implements
6030     to always fail with ENOSYS.  Some functions are actually named
6031     something starting with __ and the normal name is an alias.  */
6032 #if defined (__stub_pthread_setconcurrency) || defined (__stub___pthread_setconcurrency)
6033 choke me
6034 #else
6035 char (*f) () = pthread_setconcurrency;
6036 #endif
6037 #ifdef __cplusplus
6038 }
6039 #endif
6040
6041 int
6042 main ()
6043 {
6044 return f != pthread_setconcurrency;
6045   ;
6046   return 0;
6047 }
6048 _ACEOF
6049 rm -f conftest.$ac_objext conftest$ac_exeext
6050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6051   (eval $ac_link) 2>conftest.er1
6052   ac_status=$?
6053   grep -v '^ *+' conftest.er1 >conftest.err
6054   rm -f conftest.er1
6055   cat conftest.err >&5
6056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057   (exit $ac_status); } &&
6058          { ac_try='test -z "$ac_c_werror_flag"
6059                          || test ! -s conftest.err'
6060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061   (eval $ac_try) 2>&5
6062   ac_status=$?
6063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064   (exit $ac_status); }; } &&
6065          { ac_try='test -s conftest$ac_exeext'
6066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067   (eval $ac_try) 2>&5
6068   ac_status=$?
6069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070   (exit $ac_status); }; }; then
6071   ac_cv_func_pthread_setconcurrency=yes
6072 else
6073   echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6075
6076 ac_cv_func_pthread_setconcurrency=no
6077 fi
6078 rm -f conftest.err conftest.$ac_objext \
6079       conftest$ac_exeext conftest.$ac_ext
6080 fi
6081 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_setconcurrency" >&5
6082 echo "${ECHO_T}$ac_cv_func_pthread_setconcurrency" >&6
6083 if test $ac_cv_func_pthread_setconcurrency = yes; then
6084   cat >>confdefs.h <<\_ACEOF
6085 #define CALL_PTHREAD_SETCONCURRENCY 1
6086 _ACEOF
6087
6088 fi
6089
6090                         cat >>confdefs.h <<\_ACEOF
6091 #define POSIX_GETPWUID_R 1
6092 _ACEOF
6093
6094                         cat >>confdefs.h <<\_ACEOF
6095 #define POSIX_GETPWNAM_R 1
6096 _ACEOF
6097
6098                         cat >>confdefs.h <<\_ACEOF
6099 #define POSIX_GETGRGID_R 1
6100 _ACEOF
6101
6102                         cat >>confdefs.h <<\_ACEOF
6103 #define POSIX_GETGRNAM_R 1
6104 _ACEOF
6105
6106                         ;;
6107                 *hpux11*)
6108                         cat >>confdefs.h <<\_ACEOF
6109 #define NEED_ENDNETGRENT_R 1
6110 _ACEOF
6111
6112                         cat >>confdefs.h <<\_ACEOF
6113 #define _PTHREADS_DRAFT4 1
6114 _ACEOF
6115
6116                         ;;
6117                 #
6118                 # UnixWare does things its own way.
6119                 #
6120                 *-UnixWare*)
6121                         cat >>confdefs.h <<\_ACEOF
6122 #define HAVE_UNIXWARE_SIGWAIT 1
6123 _ACEOF
6124
6125                         ;;
6126         esac
6127
6128         #
6129         # Look for sysconf to allow detection of the number of processors.
6130         #
6131         echo "$as_me:$LINENO: checking for sysconf" >&5
6132 echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
6133 if test "${ac_cv_func_sysconf+set}" = set; then
6134   echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136   cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h.  */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h.  */
6142 /* Define sysconf to an innocuous variant, in case <limits.h> declares sysconf.
6143    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6144 #define sysconf innocuous_sysconf
6145
6146 /* System header to define __stub macros and hopefully few prototypes,
6147     which can conflict with char sysconf (); below.
6148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6149     <limits.h> exists even on freestanding compilers.  */
6150
6151 #ifdef __STDC__
6152 # include <limits.h>
6153 #else
6154 # include <assert.h>
6155 #endif
6156
6157 #undef sysconf
6158
6159 /* Override any gcc2 internal prototype to avoid an error.  */
6160 #ifdef __cplusplus
6161 extern "C"
6162 {
6163 #endif
6164 /* We use char because int might match the return type of a gcc2
6165    builtin and then its argument prototype would still apply.  */
6166 char sysconf ();
6167 /* The GNU C library defines this for functions which it implements
6168     to always fail with ENOSYS.  Some functions are actually named
6169     something starting with __ and the normal name is an alias.  */
6170 #if defined (__stub_sysconf) || defined (__stub___sysconf)
6171 choke me
6172 #else
6173 char (*f) () = sysconf;
6174 #endif
6175 #ifdef __cplusplus
6176 }
6177 #endif
6178
6179 int
6180 main ()
6181 {
6182 return f != sysconf;
6183   ;
6184   return 0;
6185 }
6186 _ACEOF
6187 rm -f conftest.$ac_objext conftest$ac_exeext
6188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6189   (eval $ac_link) 2>conftest.er1
6190   ac_status=$?
6191   grep -v '^ *+' conftest.er1 >conftest.err
6192   rm -f conftest.er1
6193   cat conftest.err >&5
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); } &&
6196          { ac_try='test -z "$ac_c_werror_flag"
6197                          || test ! -s conftest.err'
6198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199   (eval $ac_try) 2>&5
6200   ac_status=$?
6201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202   (exit $ac_status); }; } &&
6203          { ac_try='test -s conftest$ac_exeext'
6204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205   (eval $ac_try) 2>&5
6206   ac_status=$?
6207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); }; }; then
6209   ac_cv_func_sysconf=yes
6210 else
6211   echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6213
6214 ac_cv_func_sysconf=no
6215 fi
6216 rm -f conftest.err conftest.$ac_objext \
6217       conftest$ac_exeext conftest.$ac_ext
6218 fi
6219 echo "$as_me:$LINENO: result: $ac_cv_func_sysconf" >&5
6220 echo "${ECHO_T}$ac_cv_func_sysconf" >&6
6221 if test $ac_cv_func_sysconf = yes; then
6222   cat >>confdefs.h <<\_ACEOF
6223 #define HAVE_SYSCONF 1
6224 _ACEOF
6225
6226 fi
6227
6228
6229 else
6230         ALWAYS_DEFINES=""
6231         DO_PTHREADS="#undef DO_PTHREADS"
6232         WANT_IRS_THREADSGR_OBJS=""
6233         WANT_IRS_THREADSPW_OBJS=""
6234         WANT_IRS_THREADS_OBJS=""
6235         WANT_THREADS_OBJS=""
6236         thread_dir=nothreads
6237 fi
6238
6239
6240
6241
6242
6243
6244
6245
6246 echo "$as_me:$LINENO: checking for strlcat" >&5
6247 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
6248 if test "${ac_cv_func_strlcat+set}" = set; then
6249   echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251   cat >conftest.$ac_ext <<_ACEOF
6252 /* confdefs.h.  */
6253 _ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h.  */
6257 /* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
6258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6259 #define strlcat innocuous_strlcat
6260
6261 /* System header to define __stub macros and hopefully few prototypes,
6262     which can conflict with char strlcat (); below.
6263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6264     <limits.h> exists even on freestanding compilers.  */
6265
6266 #ifdef __STDC__
6267 # include <limits.h>
6268 #else
6269 # include <assert.h>
6270 #endif
6271
6272 #undef strlcat
6273
6274 /* Override any gcc2 internal prototype to avoid an error.  */
6275 #ifdef __cplusplus
6276 extern "C"
6277 {
6278 #endif
6279 /* We use char because int might match the return type of a gcc2
6280    builtin and then its argument prototype would still apply.  */
6281 char strlcat ();
6282 /* The GNU C library defines this for functions which it implements
6283     to always fail with ENOSYS.  Some functions are actually named
6284     something starting with __ and the normal name is an alias.  */
6285 #if defined (__stub_strlcat) || defined (__stub___strlcat)
6286 choke me
6287 #else
6288 char (*f) () = strlcat;
6289 #endif
6290 #ifdef __cplusplus
6291 }
6292 #endif
6293
6294 int
6295 main ()
6296 {
6297 return f != strlcat;
6298   ;
6299   return 0;
6300 }
6301 _ACEOF
6302 rm -f conftest.$ac_objext conftest$ac_exeext
6303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6304   (eval $ac_link) 2>conftest.er1
6305   ac_status=$?
6306   grep -v '^ *+' conftest.er1 >conftest.err
6307   rm -f conftest.er1
6308   cat conftest.err >&5
6309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); } &&
6311          { ac_try='test -z "$ac_c_werror_flag"
6312                          || test ! -s conftest.err'
6313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314   (eval $ac_try) 2>&5
6315   ac_status=$?
6316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317   (exit $ac_status); }; } &&
6318          { ac_try='test -s conftest$ac_exeext'
6319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320   (eval $ac_try) 2>&5
6321   ac_status=$?
6322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323   (exit $ac_status); }; }; then
6324   ac_cv_func_strlcat=yes
6325 else
6326   echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.$ac_ext >&5
6328
6329 ac_cv_func_strlcat=no
6330 fi
6331 rm -f conftest.err conftest.$ac_objext \
6332       conftest$ac_exeext conftest.$ac_ext
6333 fi
6334 echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
6335 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
6336 if test $ac_cv_func_strlcat = yes; then
6337   cat >>confdefs.h <<\_ACEOF
6338 #define HAVE_STRLCAT 1
6339 _ACEOF
6340
6341 fi
6342
6343
6344 echo "$as_me:$LINENO: checking for if_nametoindex" >&5
6345 echo $ECHO_N "checking for if_nametoindex... $ECHO_C" >&6
6346 if test "${ac_cv_func_if_nametoindex+set}" = set; then
6347   echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349   cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h.  */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h.  */
6355 /* Define if_nametoindex to an innocuous variant, in case <limits.h> declares if_nametoindex.
6356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6357 #define if_nametoindex innocuous_if_nametoindex
6358
6359 /* System header to define __stub macros and hopefully few prototypes,
6360     which can conflict with char if_nametoindex (); below.
6361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6362     <limits.h> exists even on freestanding compilers.  */
6363
6364 #ifdef __STDC__
6365 # include <limits.h>
6366 #else
6367 # include <assert.h>
6368 #endif
6369
6370 #undef if_nametoindex
6371
6372 /* Override any gcc2 internal prototype to avoid an error.  */
6373 #ifdef __cplusplus
6374 extern "C"
6375 {
6376 #endif
6377 /* We use char because int might match the return type of a gcc2
6378    builtin and then its argument prototype would still apply.  */
6379 char if_nametoindex ();
6380 /* The GNU C library defines this for functions which it implements
6381     to always fail with ENOSYS.  Some functions are actually named
6382     something starting with __ and the normal name is an alias.  */
6383 #if defined (__stub_if_nametoindex) || defined (__stub___if_nametoindex)
6384 choke me
6385 #else
6386 char (*f) () = if_nametoindex;
6387 #endif
6388 #ifdef __cplusplus
6389 }
6390 #endif
6391
6392 int
6393 main ()
6394 {
6395 return f != if_nametoindex;
6396   ;
6397   return 0;
6398 }
6399 _ACEOF
6400 rm -f conftest.$ac_objext conftest$ac_exeext
6401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6402   (eval $ac_link) 2>conftest.er1
6403   ac_status=$?
6404   grep -v '^ *+' conftest.er1 >conftest.err
6405   rm -f conftest.er1
6406   cat conftest.err >&5
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); } &&
6409          { ac_try='test -z "$ac_c_werror_flag"
6410                          || test ! -s conftest.err'
6411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412   (eval $ac_try) 2>&5
6413   ac_status=$?
6414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415   (exit $ac_status); }; } &&
6416          { ac_try='test -s conftest$ac_exeext'
6417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418   (eval $ac_try) 2>&5
6419   ac_status=$?
6420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421   (exit $ac_status); }; }; then
6422   ac_cv_func_if_nametoindex=yes
6423 else
6424   echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6426
6427 ac_cv_func_if_nametoindex=no
6428 fi
6429 rm -f conftest.err conftest.$ac_objext \
6430       conftest$ac_exeext conftest.$ac_ext
6431 fi
6432 echo "$as_me:$LINENO: result: $ac_cv_func_if_nametoindex" >&5
6433 echo "${ECHO_T}$ac_cv_func_if_nametoindex" >&6
6434 if test $ac_cv_func_if_nametoindex = yes; then
6435   USE_IFNAMELINKID="#define USE_IFNAMELINKID 1"
6436 else
6437   USE_IFNAMELINKID="#undef USE_IFNAMELINKID"
6438 fi
6439
6440
6441
6442 ISC_THREAD_DIR=$thread_dir
6443
6444
6445 echo "$as_me:$LINENO: checking for daemon" >&5
6446 echo $ECHO_N "checking for daemon... $ECHO_C" >&6
6447 if test "${ac_cv_func_daemon+set}" = set; then
6448   echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450   cat >conftest.$ac_ext <<_ACEOF
6451 /* confdefs.h.  */
6452 _ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h.  */
6456 /* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
6457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6458 #define daemon innocuous_daemon
6459
6460 /* System header to define __stub macros and hopefully few prototypes,
6461     which can conflict with char daemon (); below.
6462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6463     <limits.h> exists even on freestanding compilers.  */
6464
6465 #ifdef __STDC__
6466 # include <limits.h>
6467 #else
6468 # include <assert.h>
6469 #endif
6470
6471 #undef daemon
6472
6473 /* Override any gcc2 internal prototype to avoid an error.  */
6474 #ifdef __cplusplus
6475 extern "C"
6476 {
6477 #endif
6478 /* We use char because int might match the return type of a gcc2
6479    builtin and then its argument prototype would still apply.  */
6480 char daemon ();
6481 /* The GNU C library defines this for functions which it implements
6482     to always fail with ENOSYS.  Some functions are actually named
6483     something starting with __ and the normal name is an alias.  */
6484 #if defined (__stub_daemon) || defined (__stub___daemon)
6485 choke me
6486 #else
6487 char (*f) () = daemon;
6488 #endif
6489 #ifdef __cplusplus
6490 }
6491 #endif
6492
6493 int
6494 main ()
6495 {
6496 return f != daemon;
6497   ;
6498   return 0;
6499 }
6500 _ACEOF
6501 rm -f conftest.$ac_objext conftest$ac_exeext
6502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6503   (eval $ac_link) 2>conftest.er1
6504   ac_status=$?
6505   grep -v '^ *+' conftest.er1 >conftest.err
6506   rm -f conftest.er1
6507   cat conftest.err >&5
6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509   (exit $ac_status); } &&
6510          { ac_try='test -z "$ac_c_werror_flag"
6511                          || test ! -s conftest.err'
6512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513   (eval $ac_try) 2>&5
6514   ac_status=$?
6515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516   (exit $ac_status); }; } &&
6517          { ac_try='test -s conftest$ac_exeext'
6518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519   (eval $ac_try) 2>&5
6520   ac_status=$?
6521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522   (exit $ac_status); }; }; then
6523   ac_cv_func_daemon=yes
6524 else
6525   echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6527
6528 ac_cv_func_daemon=no
6529 fi
6530 rm -f conftest.err conftest.$ac_objext \
6531       conftest$ac_exeext conftest.$ac_ext
6532 fi
6533 echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
6534 echo "${ECHO_T}$ac_cv_func_daemon" >&6
6535 if test $ac_cv_func_daemon = yes; then
6536   DAEMON_OBJS="" NEED_DAEMON="#undef NEED_DAEMON"
6537
6538 else
6539   DAEMON_OBJS="\${DAEMON_OBJS}" NEED_DAEMON="#define NEED_DAEMON 1"
6540
6541 fi
6542
6543
6544
6545
6546 echo "$as_me:$LINENO: checking for strsep" >&5
6547 echo $ECHO_N "checking for strsep... $ECHO_C" >&6
6548 if test "${ac_cv_func_strsep+set}" = set; then
6549   echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551   cat >conftest.$ac_ext <<_ACEOF
6552 /* confdefs.h.  */
6553 _ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h.  */
6557 /* Define strsep to an innocuous variant, in case <limits.h> declares strsep.
6558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6559 #define strsep innocuous_strsep
6560
6561 /* System header to define __stub macros and hopefully few prototypes,
6562     which can conflict with char strsep (); below.
6563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6564     <limits.h> exists even on freestanding compilers.  */
6565
6566 #ifdef __STDC__
6567 # include <limits.h>
6568 #else
6569 # include <assert.h>
6570 #endif
6571
6572 #undef strsep
6573
6574 /* Override any gcc2 internal prototype to avoid an error.  */
6575 #ifdef __cplusplus
6576 extern "C"
6577 {
6578 #endif
6579 /* We use char because int might match the return type of a gcc2
6580    builtin and then its argument prototype would still apply.  */
6581 char strsep ();
6582 /* The GNU C library defines this for functions which it implements
6583     to always fail with ENOSYS.  Some functions are actually named
6584     something starting with __ and the normal name is an alias.  */
6585 #if defined (__stub_strsep) || defined (__stub___strsep)
6586 choke me
6587 #else
6588 char (*f) () = strsep;
6589 #endif
6590 #ifdef __cplusplus
6591 }
6592 #endif
6593
6594 int
6595 main ()
6596 {
6597 return f != strsep;
6598   ;
6599   return 0;
6600 }
6601 _ACEOF
6602 rm -f conftest.$ac_objext conftest$ac_exeext
6603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6604   (eval $ac_link) 2>conftest.er1
6605   ac_status=$?
6606   grep -v '^ *+' conftest.er1 >conftest.err
6607   rm -f conftest.er1
6608   cat conftest.err >&5
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); } &&
6611          { ac_try='test -z "$ac_c_werror_flag"
6612                          || test ! -s conftest.err'
6613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614   (eval $ac_try) 2>&5
6615   ac_status=$?
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); }; } &&
6618          { ac_try='test -s conftest$ac_exeext'
6619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620   (eval $ac_try) 2>&5
6621   ac_status=$?
6622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623   (exit $ac_status); }; }; then
6624   ac_cv_func_strsep=yes
6625 else
6626   echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6628
6629 ac_cv_func_strsep=no
6630 fi
6631 rm -f conftest.err conftest.$ac_objext \
6632       conftest$ac_exeext conftest.$ac_ext
6633 fi
6634 echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
6635 echo "${ECHO_T}$ac_cv_func_strsep" >&6
6636 if test $ac_cv_func_strsep = yes; then
6637   STRSEP_OBJS="" NEED_STRSEP="#undef NEED_STRSEP"
6638
6639 else
6640   STRSEP_OBJS="\${STRSEP_OBJS}" NEED_STRSEP="#define NEED_STRSEP 1"
6641
6642 fi
6643
6644
6645
6646
6647 echo "$as_me:$LINENO: checking for strerror" >&5
6648 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
6649 if test "${ac_cv_func_strerror+set}" = set; then
6650   echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652   cat >conftest.$ac_ext <<_ACEOF
6653 /* confdefs.h.  */
6654 _ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h.  */
6658 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
6659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6660 #define strerror innocuous_strerror
6661
6662 /* System header to define __stub macros and hopefully few prototypes,
6663     which can conflict with char strerror (); below.
6664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6665     <limits.h> exists even on freestanding compilers.  */
6666
6667 #ifdef __STDC__
6668 # include <limits.h>
6669 #else
6670 # include <assert.h>
6671 #endif
6672
6673 #undef strerror
6674
6675 /* Override any gcc2 internal prototype to avoid an error.  */
6676 #ifdef __cplusplus
6677 extern "C"
6678 {
6679 #endif
6680 /* We use char because int might match the return type of a gcc2
6681    builtin and then its argument prototype would still apply.  */
6682 char strerror ();
6683 /* The GNU C library defines this for functions which it implements
6684     to always fail with ENOSYS.  Some functions are actually named
6685     something starting with __ and the normal name is an alias.  */
6686 #if defined (__stub_strerror) || defined (__stub___strerror)
6687 choke me
6688 #else
6689 char (*f) () = strerror;
6690 #endif
6691 #ifdef __cplusplus
6692 }
6693 #endif
6694
6695 int
6696 main ()
6697 {
6698 return f != strerror;
6699   ;
6700   return 0;
6701 }
6702 _ACEOF
6703 rm -f conftest.$ac_objext conftest$ac_exeext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6705   (eval $ac_link) 2>conftest.er1
6706   ac_status=$?
6707   grep -v '^ *+' conftest.er1 >conftest.err
6708   rm -f conftest.er1
6709   cat conftest.err >&5
6710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711   (exit $ac_status); } &&
6712          { ac_try='test -z "$ac_c_werror_flag"
6713                          || test ! -s conftest.err'
6714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715   (eval $ac_try) 2>&5
6716   ac_status=$?
6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); }; } &&
6719          { ac_try='test -s conftest$ac_exeext'
6720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721   (eval $ac_try) 2>&5
6722   ac_status=$?
6723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724   (exit $ac_status); }; }; then
6725   ac_cv_func_strerror=yes
6726 else
6727   echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6729
6730 ac_cv_func_strerror=no
6731 fi
6732 rm -f conftest.err conftest.$ac_objext \
6733       conftest$ac_exeext conftest.$ac_ext
6734 fi
6735 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
6736 echo "${ECHO_T}$ac_cv_func_strerror" >&6
6737 if test $ac_cv_func_strerror = yes; then
6738   NEED_STRERROR="#undef NEED_STRERROR"
6739 else
6740   NEED_STRERROR="#define NEED_STRERROR 1"
6741 fi
6742
6743
6744
6745 #
6746 # flockfile is usually provided by pthreads, but we may want to use it
6747 # even if compiled with --disable-threads.
6748 #
6749 echo "$as_me:$LINENO: checking for flockfile" >&5
6750 echo $ECHO_N "checking for flockfile... $ECHO_C" >&6
6751 if test "${ac_cv_func_flockfile+set}" = set; then
6752   echo $ECHO_N "(cached) $ECHO_C" >&6
6753 else
6754   cat >conftest.$ac_ext <<_ACEOF
6755 /* confdefs.h.  */
6756 _ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h.  */
6760 /* Define flockfile to an innocuous variant, in case <limits.h> declares flockfile.
6761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6762 #define flockfile innocuous_flockfile
6763
6764 /* System header to define __stub macros and hopefully few prototypes,
6765     which can conflict with char flockfile (); below.
6766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6767     <limits.h> exists even on freestanding compilers.  */
6768
6769 #ifdef __STDC__
6770 # include <limits.h>
6771 #else
6772 # include <assert.h>
6773 #endif
6774
6775 #undef flockfile
6776
6777 /* Override any gcc2 internal prototype to avoid an error.  */
6778 #ifdef __cplusplus
6779 extern "C"
6780 {
6781 #endif
6782 /* We use char because int might match the return type of a gcc2
6783    builtin and then its argument prototype would still apply.  */
6784 char flockfile ();
6785 /* The GNU C library defines this for functions which it implements
6786     to always fail with ENOSYS.  Some functions are actually named
6787     something starting with __ and the normal name is an alias.  */
6788 #if defined (__stub_flockfile) || defined (__stub___flockfile)
6789 choke me
6790 #else
6791 char (*f) () = flockfile;
6792 #endif
6793 #ifdef __cplusplus
6794 }
6795 #endif
6796
6797 int
6798 main ()
6799 {
6800 return f != flockfile;
6801   ;
6802   return 0;
6803 }
6804 _ACEOF
6805 rm -f conftest.$ac_objext conftest$ac_exeext
6806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6807   (eval $ac_link) 2>conftest.er1
6808   ac_status=$?
6809   grep -v '^ *+' conftest.er1 >conftest.err
6810   rm -f conftest.er1
6811   cat conftest.err >&5
6812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813   (exit $ac_status); } &&
6814          { ac_try='test -z "$ac_c_werror_flag"
6815                          || test ! -s conftest.err'
6816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817   (eval $ac_try) 2>&5
6818   ac_status=$?
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); }; } &&
6821          { ac_try='test -s conftest$ac_exeext'
6822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823   (eval $ac_try) 2>&5
6824   ac_status=$?
6825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826   (exit $ac_status); }; }; then
6827   ac_cv_func_flockfile=yes
6828 else
6829   echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6831
6832 ac_cv_func_flockfile=no
6833 fi
6834 rm -f conftest.err conftest.$ac_objext \
6835       conftest$ac_exeext conftest.$ac_ext
6836 fi
6837 echo "$as_me:$LINENO: result: $ac_cv_func_flockfile" >&5
6838 echo "${ECHO_T}$ac_cv_func_flockfile" >&6
6839 if test $ac_cv_func_flockfile = yes; then
6840   cat >>confdefs.h <<\_ACEOF
6841 #define HAVE_FLOCKFILE 1
6842 _ACEOF
6843
6844 fi
6845
6846
6847 #
6848 # Indicate what the final decision was regarding threads.
6849 #
6850 echo "$as_me:$LINENO: checking whether to build with threads" >&5
6851 echo $ECHO_N "checking whether to build with threads... $ECHO_C" >&6
6852 if $use_threads; then
6853         echo "$as_me:$LINENO: result: yes" >&5
6854 echo "${ECHO_T}yes" >&6
6855 else
6856         echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6
6858 fi
6859
6860 #
6861 # End of pthreads stuff.
6862 #
6863
6864 #
6865 # Additional compiler settings.
6866 #
6867 MKDEPCC="$CC"
6868 MKDEPCFLAGS="-M"
6869 IRIX_DNSSEC_WARNINGS_HACK=""
6870
6871 if test "X$GCC" = "Xyes"; then
6872         echo "$as_me:$LINENO: checking if \"$CC\" supports -fno-strict-aliasing" >&5
6873 echo $ECHO_N "checking if \"$CC\" supports -fno-strict-aliasing... $ECHO_C" >&6
6874         SAVE_CFLAGS=$CFLAGS
6875         CFLAGS=-fno-strict-aliasing
6876         cat >conftest.$ac_ext <<_ACEOF
6877 /* confdefs.h.  */
6878 _ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h.  */
6882
6883 int
6884 main ()
6885 {
6886
6887   ;
6888   return 0;
6889 }
6890 _ACEOF
6891 rm -f conftest.$ac_objext
6892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6893   (eval $ac_compile) 2>conftest.er1
6894   ac_status=$?
6895   grep -v '^ *+' conftest.er1 >conftest.err
6896   rm -f conftest.er1
6897   cat conftest.err >&5
6898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899   (exit $ac_status); } &&
6900          { ac_try='test -z "$ac_c_werror_flag"
6901                          || test ! -s conftest.err'
6902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903   (eval $ac_try) 2>&5
6904   ac_status=$?
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); }; } &&
6907          { ac_try='test -s conftest.$ac_objext'
6908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909   (eval $ac_try) 2>&5
6910   ac_status=$?
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); }; }; then
6913   FNOSTRICTALIASING=yes
6914 else
6915   echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6917
6918 FNOSTRICTALIASING=no
6919 fi
6920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6921         CFLAGS=$SAVE_CFLAGS
6922         if test "$FNOSTRICTALIASING" = "yes"; then
6923                 echo "$as_me:$LINENO: result: yes" >&5
6924 echo "${ECHO_T}yes" >&6
6925                 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing"
6926         else
6927                 echo "$as_me:$LINENO: result: no" >&5
6928 echo "${ECHO_T}no" >&6
6929                 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
6930         fi
6931 else
6932         case $host in
6933         *-dec-osf*)
6934                 CC="$CC -std"
6935                 CCOPT="$CCOPT -std"
6936                 MKDEPCC="$CC"
6937                 ;;
6938         *-hp-hpux*)
6939                 CC="$CC -Ae -z"
6940                 # The version of the C compiler that constantly warns about
6941                 # 'const' as well as alignment issues is unfortunately not
6942                 # able to be discerned via the version of the operating
6943                 # system, nor does cc have a version flag.
6944                 case "`$CC +W 123 2>&1`" in
6945                 *Unknown?option*)
6946                         STD_CWARNINGS="+w1"
6947                         ;;
6948                 *)
6949                         # Turn off the pointlessly noisy warnings.
6950                         STD_CWARNINGS="+w1 +W 474,530,2193,2236"
6951                         ;;
6952                 esac
6953                 CCOPT="$CCOPT -Ae -z"
6954                 LIBS="-Wl,+vnocompatwarnings $LIBS"
6955 MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>&1 | awk '"'"'BEGIN {colon=0; rec="";} { for (i = 0 ; i < NF; i++) { if (colon && a$i) continue; if ($i == "\\") continue; if (!colon) { rec =  $i continue; } if ($i == ":") { rec = rec " :" colon = 1 continue; } if (length(rec $i) > 76) { print rec " \\"; rec = "\t" $i; a$i = 1; } else { rec = rec " " $i a$i = 1; } } } END {print rec}'"'"' >>$TMP'
6956                 MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
6957                 ;;
6958         *-sgi-irix*)
6959                 STD_CWARNINGS="-fullwarn -woff 1209"
6960                 #
6961                 # Silence more than 250 instances of
6962                 #   "prototyped function redeclared without prototype"
6963                 # and 11 instances of
6964                 #   "variable ... was set but never used"
6965                 # from lib/dns/sec/openssl.
6966                 #
6967                 IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
6968                 ;;
6969         *-solaris*)
6970                 MKDEPCFLAGS="-xM"
6971                 ;;
6972         *-UnixWare*)
6973                 CC="$CC -w"
6974                 ;;
6975         esac
6976 fi
6977
6978 #
6979 # _GNU_SOURCE is needed to access the fd_bits field of struct fd_set, which
6980 # is supposed to be opaque.
6981 #
6982 case $host in
6983         *linux*)
6984                 STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE"
6985                 ;;
6986 esac
6987
6988
6989
6990
6991
6992
6993 #
6994 # NLS
6995 #
6996 echo "$as_me:$LINENO: checking for catgets" >&5
6997 echo $ECHO_N "checking for catgets... $ECHO_C" >&6
6998 if test "${ac_cv_func_catgets+set}" = set; then
6999   echo $ECHO_N "(cached) $ECHO_C" >&6
7000 else
7001   cat >conftest.$ac_ext <<_ACEOF
7002 /* confdefs.h.  */
7003 _ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h.  */
7007 /* Define catgets to an innocuous variant, in case <limits.h> declares catgets.
7008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7009 #define catgets innocuous_catgets
7010
7011 /* System header to define __stub macros and hopefully few prototypes,
7012     which can conflict with char catgets (); below.
7013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7014     <limits.h> exists even on freestanding compilers.  */
7015
7016 #ifdef __STDC__
7017 # include <limits.h>
7018 #else
7019 # include <assert.h>
7020 #endif
7021
7022 #undef catgets
7023
7024 /* Override any gcc2 internal prototype to avoid an error.  */
7025 #ifdef __cplusplus
7026 extern "C"
7027 {
7028 #endif
7029 /* We use char because int might match the return type of a gcc2
7030    builtin and then its argument prototype would still apply.  */
7031 char catgets ();
7032 /* The GNU C library defines this for functions which it implements
7033     to always fail with ENOSYS.  Some functions are actually named
7034     something starting with __ and the normal name is an alias.  */
7035 #if defined (__stub_catgets) || defined (__stub___catgets)
7036 choke me
7037 #else
7038 char (*f) () = catgets;
7039 #endif
7040 #ifdef __cplusplus
7041 }
7042 #endif
7043
7044 int
7045 main ()
7046 {
7047 return f != catgets;
7048   ;
7049   return 0;
7050 }
7051 _ACEOF
7052 rm -f conftest.$ac_objext conftest$ac_exeext
7053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7054   (eval $ac_link) 2>conftest.er1
7055   ac_status=$?
7056   grep -v '^ *+' conftest.er1 >conftest.err
7057   rm -f conftest.er1
7058   cat conftest.err >&5
7059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060   (exit $ac_status); } &&
7061          { ac_try='test -z "$ac_c_werror_flag"
7062                          || test ! -s conftest.err'
7063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064   (eval $ac_try) 2>&5
7065   ac_status=$?
7066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067   (exit $ac_status); }; } &&
7068          { ac_try='test -s conftest$ac_exeext'
7069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070   (eval $ac_try) 2>&5
7071   ac_status=$?
7072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073   (exit $ac_status); }; }; then
7074   ac_cv_func_catgets=yes
7075 else
7076   echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7078
7079 ac_cv_func_catgets=no
7080 fi
7081 rm -f conftest.err conftest.$ac_objext \
7082       conftest$ac_exeext conftest.$ac_ext
7083 fi
7084 echo "$as_me:$LINENO: result: $ac_cv_func_catgets" >&5
7085 echo "${ECHO_T}$ac_cv_func_catgets" >&6
7086 if test $ac_cv_func_catgets = yes; then
7087   cat >>confdefs.h <<\_ACEOF
7088 #define HAVE_CATGETS 1
7089 _ACEOF
7090
7091 fi
7092
7093
7094 #
7095 # -lxnet buys us one big porting headache...  standards, gotta love 'em.
7096 #
7097 # AC_CHECK_LIB(xnet, socket, ,
7098 #    AC_CHECK_LIB(socket, socket)
7099 #    AC_CHECK_LIB(nsl, inet_ntoa)
7100 # )
7101 #
7102 # Use this for now, instead:
7103 #
7104 case "$host" in
7105         mips-sgi-irix*)
7106                 ;;
7107         ia64-hp-hpux11.*)
7108
7109 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7110 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7111 if test "${ac_cv_lib_socket_socket+set}" = set; then
7112   echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114   ac_check_lib_save_LIBS=$LIBS
7115 LIBS="-lsocket  $LIBS"
7116 cat >conftest.$ac_ext <<_ACEOF
7117 /* confdefs.h.  */
7118 _ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h.  */
7122
7123 /* Override any gcc2 internal prototype to avoid an error.  */
7124 #ifdef __cplusplus
7125 extern "C"
7126 #endif
7127 /* We use char because int might match the return type of a gcc2
7128    builtin and then its argument prototype would still apply.  */
7129 char socket ();
7130 int
7131 main ()
7132 {
7133 socket ();
7134   ;
7135   return 0;
7136 }
7137 _ACEOF
7138 rm -f conftest.$ac_objext conftest$ac_exeext
7139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7140   (eval $ac_link) 2>conftest.er1
7141   ac_status=$?
7142   grep -v '^ *+' conftest.er1 >conftest.err
7143   rm -f conftest.er1
7144   cat conftest.err >&5
7145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146   (exit $ac_status); } &&
7147          { ac_try='test -z "$ac_c_werror_flag"
7148                          || test ! -s conftest.err'
7149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150   (eval $ac_try) 2>&5
7151   ac_status=$?
7152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153   (exit $ac_status); }; } &&
7154          { ac_try='test -s conftest$ac_exeext'
7155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156   (eval $ac_try) 2>&5
7157   ac_status=$?
7158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159   (exit $ac_status); }; }; then
7160   ac_cv_lib_socket_socket=yes
7161 else
7162   echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7164
7165 ac_cv_lib_socket_socket=no
7166 fi
7167 rm -f conftest.err conftest.$ac_objext \
7168       conftest$ac_exeext conftest.$ac_ext
7169 LIBS=$ac_check_lib_save_LIBS
7170 fi
7171 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7172 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7173 if test $ac_cv_lib_socket_socket = yes; then
7174   cat >>confdefs.h <<_ACEOF
7175 #define HAVE_LIBSOCKET 1
7176 _ACEOF
7177
7178   LIBS="-lsocket $LIBS"
7179
7180 fi
7181
7182
7183 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
7184 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
7185 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
7186   echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188   ac_check_lib_save_LIBS=$LIBS
7189 LIBS="-lnsl  $LIBS"
7190 cat >conftest.$ac_ext <<_ACEOF
7191 /* confdefs.h.  */
7192 _ACEOF
7193 cat confdefs.h >>conftest.$ac_ext
7194 cat >>conftest.$ac_ext <<_ACEOF
7195 /* end confdefs.h.  */
7196
7197 /* Override any gcc2 internal prototype to avoid an error.  */
7198 #ifdef __cplusplus
7199 extern "C"
7200 #endif
7201 /* We use char because int might match the return type of a gcc2
7202    builtin and then its argument prototype would still apply.  */
7203 char inet_ntoa ();
7204 int
7205 main ()
7206 {
7207 inet_ntoa ();
7208   ;
7209   return 0;
7210 }
7211 _ACEOF
7212 rm -f conftest.$ac_objext conftest$ac_exeext
7213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7214   (eval $ac_link) 2>conftest.er1
7215   ac_status=$?
7216   grep -v '^ *+' conftest.er1 >conftest.err
7217   rm -f conftest.er1
7218   cat conftest.err >&5
7219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220   (exit $ac_status); } &&
7221          { ac_try='test -z "$ac_c_werror_flag"
7222                          || test ! -s conftest.err'
7223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224   (eval $ac_try) 2>&5
7225   ac_status=$?
7226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227   (exit $ac_status); }; } &&
7228          { ac_try='test -s conftest$ac_exeext'
7229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230   (eval $ac_try) 2>&5
7231   ac_status=$?
7232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233   (exit $ac_status); }; }; then
7234   ac_cv_lib_nsl_inet_ntoa=yes
7235 else
7236   echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7238
7239 ac_cv_lib_nsl_inet_ntoa=no
7240 fi
7241 rm -f conftest.err conftest.$ac_objext \
7242       conftest$ac_exeext conftest.$ac_ext
7243 LIBS=$ac_check_lib_save_LIBS
7244 fi
7245 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
7246 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
7247 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
7248   cat >>confdefs.h <<_ACEOF
7249 #define HAVE_LIBNSL 1
7250 _ACEOF
7251
7252   LIBS="-lnsl $LIBS"
7253
7254 fi
7255
7256                 ;;
7257         *)
7258
7259 echo "$as_me:$LINENO: checking for gethostbyname_r in -ld4r" >&5
7260 echo $ECHO_N "checking for gethostbyname_r in -ld4r... $ECHO_C" >&6
7261 if test "${ac_cv_lib_d4r_gethostbyname_r+set}" = set; then
7262   echo $ECHO_N "(cached) $ECHO_C" >&6
7263 else
7264   ac_check_lib_save_LIBS=$LIBS
7265 LIBS="-ld4r  $LIBS"
7266 cat >conftest.$ac_ext <<_ACEOF
7267 /* confdefs.h.  */
7268 _ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h.  */
7272
7273 /* Override any gcc2 internal prototype to avoid an error.  */
7274 #ifdef __cplusplus
7275 extern "C"
7276 #endif
7277 /* We use char because int might match the return type of a gcc2
7278    builtin and then its argument prototype would still apply.  */
7279 char gethostbyname_r ();
7280 int
7281 main ()
7282 {
7283 gethostbyname_r ();
7284   ;
7285   return 0;
7286 }
7287 _ACEOF
7288 rm -f conftest.$ac_objext conftest$ac_exeext
7289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7290   (eval $ac_link) 2>conftest.er1
7291   ac_status=$?
7292   grep -v '^ *+' conftest.er1 >conftest.err
7293   rm -f conftest.er1
7294   cat conftest.err >&5
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); } &&
7297          { ac_try='test -z "$ac_c_werror_flag"
7298                          || test ! -s conftest.err'
7299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300   (eval $ac_try) 2>&5
7301   ac_status=$?
7302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303   (exit $ac_status); }; } &&
7304          { ac_try='test -s conftest$ac_exeext'
7305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306   (eval $ac_try) 2>&5
7307   ac_status=$?
7308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309   (exit $ac_status); }; }; then
7310   ac_cv_lib_d4r_gethostbyname_r=yes
7311 else
7312   echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7314
7315 ac_cv_lib_d4r_gethostbyname_r=no
7316 fi
7317 rm -f conftest.err conftest.$ac_objext \
7318       conftest$ac_exeext conftest.$ac_ext
7319 LIBS=$ac_check_lib_save_LIBS
7320 fi
7321 echo "$as_me:$LINENO: result: $ac_cv_lib_d4r_gethostbyname_r" >&5
7322 echo "${ECHO_T}$ac_cv_lib_d4r_gethostbyname_r" >&6
7323 if test $ac_cv_lib_d4r_gethostbyname_r = yes; then
7324   cat >>confdefs.h <<_ACEOF
7325 #define HAVE_LIBD4R 1
7326 _ACEOF
7327
7328   LIBS="-ld4r $LIBS"
7329
7330 fi
7331
7332
7333 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7334 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7335 if test "${ac_cv_lib_socket_socket+set}" = set; then
7336   echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338   ac_check_lib_save_LIBS=$LIBS
7339 LIBS="-lsocket  $LIBS"
7340 cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h.  */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h.  */
7346
7347 /* Override any gcc2 internal prototype to avoid an error.  */
7348 #ifdef __cplusplus
7349 extern "C"
7350 #endif
7351 /* We use char because int might match the return type of a gcc2
7352    builtin and then its argument prototype would still apply.  */
7353 char socket ();
7354 int
7355 main ()
7356 {
7357 socket ();
7358   ;
7359   return 0;
7360 }
7361 _ACEOF
7362 rm -f conftest.$ac_objext conftest$ac_exeext
7363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7364   (eval $ac_link) 2>conftest.er1
7365   ac_status=$?
7366   grep -v '^ *+' conftest.er1 >conftest.err
7367   rm -f conftest.er1
7368   cat conftest.err >&5
7369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370   (exit $ac_status); } &&
7371          { ac_try='test -z "$ac_c_werror_flag"
7372                          || test ! -s conftest.err'
7373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374   (eval $ac_try) 2>&5
7375   ac_status=$?
7376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377   (exit $ac_status); }; } &&
7378          { ac_try='test -s conftest$ac_exeext'
7379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380   (eval $ac_try) 2>&5
7381   ac_status=$?
7382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383   (exit $ac_status); }; }; then
7384   ac_cv_lib_socket_socket=yes
7385 else
7386   echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.$ac_ext >&5
7388
7389 ac_cv_lib_socket_socket=no
7390 fi
7391 rm -f conftest.err conftest.$ac_objext \
7392       conftest$ac_exeext conftest.$ac_ext
7393 LIBS=$ac_check_lib_save_LIBS
7394 fi
7395 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7396 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7397 if test $ac_cv_lib_socket_socket = yes; then
7398   cat >>confdefs.h <<_ACEOF
7399 #define HAVE_LIBSOCKET 1
7400 _ACEOF
7401
7402   LIBS="-lsocket $LIBS"
7403
7404 fi
7405
7406
7407 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
7408 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
7409 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
7410   echo $ECHO_N "(cached) $ECHO_C" >&6
7411 else
7412   ac_check_lib_save_LIBS=$LIBS
7413 LIBS="-lnsl  $LIBS"
7414 cat >conftest.$ac_ext <<_ACEOF
7415 /* confdefs.h.  */
7416 _ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h.  */
7420
7421 /* Override any gcc2 internal prototype to avoid an error.  */
7422 #ifdef __cplusplus
7423 extern "C"
7424 #endif
7425 /* We use char because int might match the return type of a gcc2
7426    builtin and then its argument prototype would still apply.  */
7427 char inet_ntoa ();
7428 int
7429 main ()
7430 {
7431 inet_ntoa ();
7432   ;
7433   return 0;
7434 }
7435 _ACEOF
7436 rm -f conftest.$ac_objext conftest$ac_exeext
7437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7438   (eval $ac_link) 2>conftest.er1
7439   ac_status=$?
7440   grep -v '^ *+' conftest.er1 >conftest.err
7441   rm -f conftest.er1
7442   cat conftest.err >&5
7443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444   (exit $ac_status); } &&
7445          { ac_try='test -z "$ac_c_werror_flag"
7446                          || test ! -s conftest.err'
7447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448   (eval $ac_try) 2>&5
7449   ac_status=$?
7450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451   (exit $ac_status); }; } &&
7452          { ac_try='test -s conftest$ac_exeext'
7453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454   (eval $ac_try) 2>&5
7455   ac_status=$?
7456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457   (exit $ac_status); }; }; then
7458   ac_cv_lib_nsl_inet_ntoa=yes
7459 else
7460   echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7462
7463 ac_cv_lib_nsl_inet_ntoa=no
7464 fi
7465 rm -f conftest.err conftest.$ac_objext \
7466       conftest$ac_exeext conftest.$ac_ext
7467 LIBS=$ac_check_lib_save_LIBS
7468 fi
7469 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
7470 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
7471 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
7472   cat >>confdefs.h <<_ACEOF
7473 #define HAVE_LIBNSL 1
7474 _ACEOF
7475
7476   LIBS="-lnsl $LIBS"
7477
7478 fi
7479
7480                 ;;
7481 esac
7482
7483 #
7484 # Purify support
7485 #
7486 echo "$as_me:$LINENO: checking whether to use purify" >&5
7487 echo $ECHO_N "checking whether to use purify... $ECHO_C" >&6
7488
7489 # Check whether --with-purify or --without-purify was given.
7490 if test "${with_purify+set}" = set; then
7491   withval="$with_purify"
7492   use_purify="$withval"
7493 else
7494   use_purify="no"
7495 fi;
7496
7497 case "$use_purify" in
7498         no)
7499                 ;;
7500         yes)
7501                 # Extract the first word of "purify", so it can be a program name with args.
7502 set dummy purify; ac_word=$2
7503 echo "$as_me:$LINENO: checking for $ac_word" >&5
7504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7505 if test "${ac_cv_path_purify_path+set}" = set; then
7506   echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508   case $purify_path in
7509   [\\/]* | ?:[\\/]*)
7510   ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
7511   ;;
7512   *)
7513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH
7515 do
7516   IFS=$as_save_IFS
7517   test -z "$as_dir" && as_dir=.
7518   for ac_exec_ext in '' $ac_executable_extensions; do
7519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7520     ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
7521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7522     break 2
7523   fi
7524 done
7525 done
7526
7527   test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
7528   ;;
7529 esac
7530 fi
7531 purify_path=$ac_cv_path_purify_path
7532
7533 if test -n "$purify_path"; then
7534   echo "$as_me:$LINENO: result: $purify_path" >&5
7535 echo "${ECHO_T}$purify_path" >&6
7536 else
7537   echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6
7539 fi
7540
7541                 ;;
7542         *)
7543                 purify_path="$use_purify"
7544                 ;;
7545 esac
7546
7547 case "$use_purify" in
7548         no)
7549                 echo "$as_me:$LINENO: result: no" >&5
7550 echo "${ECHO_T}no" >&6
7551                 PURIFY=""
7552                 ;;
7553         *)
7554                 if test -f $purify_path || test $purify_path = purify; then
7555                         echo "$as_me:$LINENO: result: $purify_path" >&5
7556 echo "${ECHO_T}$purify_path" >&6
7557                         PURIFYFLAGS="`echo $PURIFYOPTIONS`"
7558                         PURIFY="$purify_path $PURIFYFLAGS"
7559                 else
7560                         { { echo "$as_me:$LINENO: error: $purify_path not found.
7561
7562 Please choose the proper path with the following command:
7563
7564     configure --with-purify=PATH
7565 " >&5
7566 echo "$as_me: error: $purify_path not found.
7567
7568 Please choose the proper path with the following command:
7569
7570     configure --with-purify=PATH
7571 " >&2;}
7572    { (exit 1); exit 1; }; }
7573                 fi
7574                 ;;
7575 esac
7576
7577
7578
7579 #
7580 # GNU libtool support
7581 #
7582
7583 # Check whether --with-libtool or --without-libtool was given.
7584 if test "${with_libtool+set}" = set; then
7585   withval="$with_libtool"
7586   use_libtool="$withval"
7587 else
7588   use_libtool="no"
7589 fi;
7590
7591 case $use_libtool in
7592         yes)
7593                 # Check whether --enable-shared or --disable-shared was given.
7594 if test "${enable_shared+set}" = set; then
7595   enableval="$enable_shared"
7596   p=${PACKAGE-default}
7597     case $enableval in
7598     yes) enable_shared=yes ;;
7599     no) enable_shared=no ;;
7600     *)
7601       enable_shared=no
7602       # Look at the argument we got.  We use all the common list separators.
7603       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7604       for pkg in $enableval; do
7605         IFS="$lt_save_ifs"
7606         if test "X$pkg" = "X$p"; then
7607           enable_shared=yes
7608         fi
7609       done
7610       IFS="$lt_save_ifs"
7611       ;;
7612     esac
7613 else
7614   enable_shared=yes
7615 fi;
7616
7617 # Check whether --enable-static or --disable-static was given.
7618 if test "${enable_static+set}" = set; then
7619   enableval="$enable_static"
7620   p=${PACKAGE-default}
7621     case $enableval in
7622     yes) enable_static=yes ;;
7623     no) enable_static=no ;;
7624     *)
7625      enable_static=no
7626       # Look at the argument we got.  We use all the common list separators.
7627       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7628       for pkg in $enableval; do
7629         IFS="$lt_save_ifs"
7630         if test "X$pkg" = "X$p"; then
7631           enable_static=yes
7632         fi
7633       done
7634       IFS="$lt_save_ifs"
7635       ;;
7636     esac
7637 else
7638   enable_static=yes
7639 fi;
7640
7641 # Check whether --enable-fast-install or --disable-fast-install was given.
7642 if test "${enable_fast_install+set}" = set; then
7643   enableval="$enable_fast_install"
7644   p=${PACKAGE-default}
7645     case $enableval in
7646     yes) enable_fast_install=yes ;;
7647     no) enable_fast_install=no ;;
7648     *)
7649       enable_fast_install=no
7650       # Look at the argument we got.  We use all the common list separators.
7651       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7652       for pkg in $enableval; do
7653         IFS="$lt_save_ifs"
7654         if test "X$pkg" = "X$p"; then
7655           enable_fast_install=yes
7656         fi
7657       done
7658       IFS="$lt_save_ifs"
7659       ;;
7660     esac
7661 else
7662   enable_fast_install=yes
7663 fi;
7664
7665 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7666 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
7667 if test "${lt_cv_path_SED+set}" = set; then
7668   echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670   # Loop through the user's path and test for sed and gsed.
7671 # Then use that list of sed's as ones to test for truncation.
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7674 do
7675   IFS=$as_save_IFS
7676   test -z "$as_dir" && as_dir=.
7677   for lt_ac_prog in sed gsed; do
7678     for ac_exec_ext in '' $ac_executable_extensions; do
7679       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7680         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7681       fi
7682     done
7683   done
7684 done
7685 lt_ac_max=0
7686 lt_ac_count=0
7687 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7688 # along with /bin/sed that truncates output.
7689 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7690   test ! -f $lt_ac_sed && break
7691   cat /dev/null > conftest.in
7692   lt_ac_count=0
7693   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7694   # Check for GNU sed and select it if it is found.
7695   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7696     lt_cv_path_SED=$lt_ac_sed
7697     break
7698   fi
7699   while true; do
7700     cat conftest.in conftest.in >conftest.tmp
7701     mv conftest.tmp conftest.in
7702     cp conftest.in conftest.nl
7703     echo >>conftest.nl
7704     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7705     cmp -s conftest.out conftest.nl || break
7706     # 10000 chars as input seems more than enough
7707     test $lt_ac_count -gt 10 && break
7708     lt_ac_count=`expr $lt_ac_count + 1`
7709     if test $lt_ac_count -gt $lt_ac_max; then
7710       lt_ac_max=$lt_ac_count
7711       lt_cv_path_SED=$lt_ac_sed
7712     fi
7713   done
7714 done
7715
7716 fi
7717
7718 SED=$lt_cv_path_SED
7719 echo "$as_me:$LINENO: result: $SED" >&5
7720 echo "${ECHO_T}$SED" >&6
7721
7722
7723 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7724 if test "${with_gnu_ld+set}" = set; then
7725   withval="$with_gnu_ld"
7726   test "$withval" = no || with_gnu_ld=yes
7727 else
7728   with_gnu_ld=no
7729 fi;
7730 ac_prog=ld
7731 if test "$GCC" = yes; then
7732   # Check if gcc -print-prog-name=ld gives a path.
7733   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7734 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
7735   case $host in
7736   *-*-mingw*)
7737     # gcc leaves a trailing carriage return which upsets mingw
7738     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7739   *)
7740     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7741   esac
7742   case $ac_prog in
7743     # Accept absolute paths.
7744     [\\/]* | ?:[\\/]*)
7745       re_direlt='/[^/][^/]*/\.\./'
7746       # Canonicalize the pathname of ld
7747       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7748       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7749         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7750       done
7751       test -z "$LD" && LD="$ac_prog"
7752       ;;
7753   "")
7754     # If it fails, then pretend we aren't using GCC.
7755     ac_prog=ld
7756     ;;
7757   *)
7758     # If it is relative, then search for the first ld in PATH.
7759     with_gnu_ld=unknown
7760     ;;
7761   esac
7762 elif test "$with_gnu_ld" = yes; then
7763   echo "$as_me:$LINENO: checking for GNU ld" >&5
7764 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7765 else
7766   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7767 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7768 fi
7769 if test "${lt_cv_path_LD+set}" = set; then
7770   echo $ECHO_N "(cached) $ECHO_C" >&6
7771 else
7772   if test -z "$LD"; then
7773   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7774   for ac_dir in $PATH; do
7775     IFS="$lt_save_ifs"
7776     test -z "$ac_dir" && ac_dir=.
7777     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7778       lt_cv_path_LD="$ac_dir/$ac_prog"
7779       # Check to see if the program is GNU ld.  I'd rather use --version,
7780       # but apparently some GNU ld's only accept -v.
7781       # Break only if it was the GNU/non-GNU ld that we prefer.
7782       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7783       *GNU* | *'with BFD'*)
7784         test "$with_gnu_ld" != no && break
7785         ;;
7786       *)
7787         test "$with_gnu_ld" != yes && break
7788         ;;
7789       esac
7790     fi
7791   done
7792   IFS="$lt_save_ifs"
7793 else
7794   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7795 fi
7796 fi
7797
7798 LD="$lt_cv_path_LD"
7799 if test -n "$LD"; then
7800   echo "$as_me:$LINENO: result: $LD" >&5
7801 echo "${ECHO_T}$LD" >&6
7802 else
7803   echo "$as_me:$LINENO: result: no" >&5
7804 echo "${ECHO_T}no" >&6
7805 fi
7806 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7807 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7808    { (exit 1); exit 1; }; }
7809 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7810 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7811 if test "${lt_cv_prog_gnu_ld+set}" = set; then
7812   echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7815 case `$LD -v 2>&1 </dev/null` in
7816 *GNU* | *'with BFD'*)
7817   lt_cv_prog_gnu_ld=yes
7818   ;;
7819 *)
7820   lt_cv_prog_gnu_ld=no
7821   ;;
7822 esac
7823 fi
7824 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7825 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
7826 with_gnu_ld=$lt_cv_prog_gnu_ld
7827
7828
7829 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7830 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
7831 if test "${lt_cv_ld_reload_flag+set}" = set; then
7832   echo $ECHO_N "(cached) $ECHO_C" >&6
7833 else
7834   lt_cv_ld_reload_flag='-r'
7835 fi
7836 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7837 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
7838 reload_flag=$lt_cv_ld_reload_flag
7839 case $reload_flag in
7840 "" | " "*) ;;
7841 *) reload_flag=" $reload_flag" ;;
7842 esac
7843 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7844 case $host_os in
7845   darwin*)
7846     if test "$GCC" = yes; then
7847       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
7848     else
7849       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7850     fi
7851     ;;
7852 esac
7853
7854 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7855 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7856 if test "${lt_cv_path_NM+set}" = set; then
7857   echo $ECHO_N "(cached) $ECHO_C" >&6
7858 else
7859   if test -n "$NM"; then
7860   # Let the user override the test.
7861   lt_cv_path_NM="$NM"
7862 else
7863   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7864   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7865     IFS="$lt_save_ifs"
7866     test -z "$ac_dir" && ac_dir=.
7867     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7868     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7869       # Check to see if the nm accepts a BSD-compat flag.
7870       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7871       #   nm: unknown option "B" ignored
7872       # Tru64's nm complains that /dev/null is an invalid object file
7873       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7874       */dev/null* | *'Invalid file or object type'*)
7875         lt_cv_path_NM="$tmp_nm -B"
7876         break
7877         ;;
7878       *)
7879         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7880         */dev/null*)
7881           lt_cv_path_NM="$tmp_nm -p"
7882           break
7883           ;;
7884         *)
7885           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7886           continue # so that we can try to find one that supports BSD flags
7887           ;;
7888         esac
7889       esac
7890     fi
7891   done
7892   IFS="$lt_save_ifs"
7893   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7894 fi
7895 fi
7896 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7897 echo "${ECHO_T}$lt_cv_path_NM" >&6
7898 NM="$lt_cv_path_NM"
7899
7900 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7901 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7902 LN_S=$as_ln_s
7903 if test "$LN_S" = "ln -s"; then
7904   echo "$as_me:$LINENO: result: yes" >&5
7905 echo "${ECHO_T}yes" >&6
7906 else
7907   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7908 echo "${ECHO_T}no, using $LN_S" >&6
7909 fi
7910
7911 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7912 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7913 if test "${lt_cv_deplibs_check_method+set}" = set; then
7914   echo $ECHO_N "(cached) $ECHO_C" >&6
7915 else
7916   lt_cv_file_magic_cmd='$MAGIC_CMD'
7917 lt_cv_file_magic_test_file=
7918 lt_cv_deplibs_check_method='unknown'
7919 # Need to set the preceding variable on all platforms that support
7920 # interlibrary dependencies.
7921 # 'none' -- dependencies not supported.
7922 # `unknown' -- same as none, but documents that we really don't know.
7923 # 'pass_all' -- all dependencies passed with no checks.
7924 # 'test_compile' -- check by making test program.
7925 # 'file_magic [[regex]]' -- check by looking for files in library path
7926 # which responds to the $file_magic_cmd with a given extended regex.
7927 # If you have `file' or equivalent on your system and you're not sure
7928 # whether `pass_all' will *always* work, you probably want this one.
7929
7930 case $host_os in
7931 aix4* | aix5*)
7932   lt_cv_deplibs_check_method=pass_all
7933   ;;
7934
7935 beos*)
7936   lt_cv_deplibs_check_method=pass_all
7937   ;;
7938
7939 bsdi[45]*)
7940   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7941   lt_cv_file_magic_cmd='/usr/bin/file -L'
7942   lt_cv_file_magic_test_file=/shlib/libc.so
7943   ;;
7944
7945 cygwin*)
7946   # func_win32_libid is a shell function defined in ltmain.sh
7947   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7948   lt_cv_file_magic_cmd='func_win32_libid'
7949   ;;
7950
7951 mingw* | pw32*)
7952   # Base MSYS/MinGW do not provide the 'file' command needed by
7953   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7954   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7955   lt_cv_file_magic_cmd='$OBJDUMP -f'
7956   ;;
7957
7958 darwin* | rhapsody*)
7959   lt_cv_deplibs_check_method=pass_all
7960   ;;
7961
7962 freebsd* | kfreebsd*-gnu)
7963   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7964     case $host_cpu in
7965     i*86 )
7966       # Not sure whether the presence of OpenBSD here was a mistake.
7967       # Let's accept both of them until this is cleared up.
7968       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
7969       lt_cv_file_magic_cmd=/usr/bin/file
7970       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7971       ;;
7972     esac
7973   else
7974     lt_cv_deplibs_check_method=pass_all
7975   fi
7976   ;;
7977
7978 gnu*)
7979   lt_cv_deplibs_check_method=pass_all
7980   ;;
7981
7982 hpux10.20* | hpux11*)
7983   lt_cv_file_magic_cmd=/usr/bin/file
7984   case "$host_cpu" in
7985   ia64*)
7986     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7987     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7988     ;;
7989   hppa*64*)
7990     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]'
7991     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7992     ;;
7993   *)
7994     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7995     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7996     ;;
7997   esac
7998   ;;
7999
8000 irix5* | irix6* | nonstopux*)
8001   case $LD in
8002   *-32|*"-32 ") libmagic=32-bit;;
8003   *-n32|*"-n32 ") libmagic=N32;;
8004   *-64|*"-64 ") libmagic=64-bit;;
8005   *) libmagic=never-match;;
8006   esac
8007   lt_cv_deplibs_check_method=pass_all
8008   ;;
8009
8010 # This must be Linux ELF.
8011 linux*)
8012   lt_cv_deplibs_check_method=pass_all
8013   ;;
8014
8015 netbsd*)
8016   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8017     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8018   else
8019     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8020   fi
8021   ;;
8022
8023 newos6*)
8024   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8025   lt_cv_file_magic_cmd=/usr/bin/file
8026   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8027   ;;
8028
8029 nto-qnx*)
8030   lt_cv_deplibs_check_method=unknown
8031   ;;
8032
8033 openbsd*)
8034   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8035     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8036   else
8037     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8038   fi
8039   ;;
8040
8041 osf3* | osf4* | osf5*)
8042   lt_cv_deplibs_check_method=pass_all
8043   ;;
8044
8045 sco3.2v5*)
8046   lt_cv_deplibs_check_method=pass_all
8047   ;;
8048
8049 solaris*)
8050   lt_cv_deplibs_check_method=pass_all
8051   ;;
8052
8053 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8054   case $host_vendor in
8055   motorola)
8056     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]'
8057     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8058     ;;
8059   ncr)
8060     lt_cv_deplibs_check_method=pass_all
8061     ;;
8062   sequent)
8063     lt_cv_file_magic_cmd='/bin/file'
8064     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8065     ;;
8066   sni)
8067     lt_cv_file_magic_cmd='/bin/file'
8068     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8069     lt_cv_file_magic_test_file=/lib/libc.so
8070     ;;
8071   siemens)
8072     lt_cv_deplibs_check_method=pass_all
8073     ;;
8074   esac
8075   ;;
8076
8077 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
8078   lt_cv_deplibs_check_method=pass_all
8079   ;;
8080 esac
8081
8082 fi
8083 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8084 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
8085 file_magic_cmd=$lt_cv_file_magic_cmd
8086 deplibs_check_method=$lt_cv_deplibs_check_method
8087 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8088
8089
8090
8091
8092 # If no C compiler was specified, use CC.
8093 LTCC=${LTCC-"$CC"}
8094
8095 # Allow CC to be a program name with arguments.
8096 compiler=$CC
8097
8098 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8099 if test "${enable_libtool_lock+set}" = set; then
8100   enableval="$enable_libtool_lock"
8101
8102 fi;
8103 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8104
8105 # Some flags need to be propagated to the compiler or linker for good
8106 # libtool support.
8107 case $host in
8108 ia64-*-hpux*)
8109   # Find out which ABI we are using.
8110   echo 'int i;' > conftest.$ac_ext
8111   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8112   (eval $ac_compile) 2>&5
8113   ac_status=$?
8114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115   (exit $ac_status); }; then
8116     case `/usr/bin/file conftest.$ac_objext` in
8117     *ELF-32*)
8118       HPUX_IA64_MODE="32"
8119       ;;
8120     *ELF-64*)
8121       HPUX_IA64_MODE="64"
8122       ;;
8123     esac
8124   fi
8125   rm -rf conftest*
8126   ;;
8127 *-*-irix6*)
8128   # Find out which ABI we are using.
8129   echo '#line 8129 "configure"' > conftest.$ac_ext
8130   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8131   (eval $ac_compile) 2>&5
8132   ac_status=$?
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); }; then
8135    if test "$lt_cv_prog_gnu_ld" = yes; then
8136     case `/usr/bin/file conftest.$ac_objext` in
8137     *32-bit*)
8138       LD="${LD-ld} -melf32bsmip"
8139       ;;
8140     *N32*)
8141       LD="${LD-ld} -melf32bmipn32"
8142       ;;
8143     *64-bit*)
8144       LD="${LD-ld} -melf64bmip"
8145       ;;
8146     esac
8147    else
8148     case `/usr/bin/file conftest.$ac_objext` in
8149     *32-bit*)
8150       LD="${LD-ld} -32"
8151       ;;
8152     *N32*)
8153       LD="${LD-ld} -n32"
8154       ;;
8155     *64-bit*)
8156       LD="${LD-ld} -64"
8157       ;;
8158     esac
8159    fi
8160   fi
8161   rm -rf conftest*
8162   ;;
8163
8164 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
8165   # Find out which ABI we are using.
8166   echo 'int i;' > conftest.$ac_ext
8167   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8168   (eval $ac_compile) 2>&5
8169   ac_status=$?
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); }; then
8172     case "`/usr/bin/file conftest.o`" in
8173     *32-bit*)
8174       case $host in
8175         x86_64-*linux*)
8176           LD="${LD-ld} -m elf_i386"
8177           ;;
8178         ppc64-*linux*|powerpc64-*linux*)
8179           LD="${LD-ld} -m elf32ppclinux"
8180           ;;
8181         s390x-*linux*)
8182           LD="${LD-ld} -m elf_s390"
8183           ;;
8184         sparc64-*linux*)
8185           LD="${LD-ld} -m elf32_sparc"
8186           ;;
8187       esac
8188       ;;
8189     *64-bit*)
8190       case $host in
8191         x86_64-*linux*)
8192           LD="${LD-ld} -m elf_x86_64"
8193           ;;
8194         ppc*-*linux*|powerpc*-*linux*)
8195           LD="${LD-ld} -m elf64ppc"
8196           ;;
8197         s390*-*linux*)
8198           LD="${LD-ld} -m elf64_s390"
8199           ;;
8200         sparc*-*linux*)
8201           LD="${LD-ld} -m elf64_sparc"
8202           ;;
8203       esac
8204       ;;
8205     esac
8206   fi
8207   rm -rf conftest*
8208   ;;
8209
8210 *-*-sco3.2v5*)
8211   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8212   SAVE_CFLAGS="$CFLAGS"
8213   CFLAGS="$CFLAGS -belf"
8214   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8215 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
8216 if test "${lt_cv_cc_needs_belf+set}" = set; then
8217   echo $ECHO_N "(cached) $ECHO_C" >&6
8218 else
8219   ac_ext=c
8220 ac_cpp='$CPP $CPPFLAGS'
8221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8224
8225      cat >conftest.$ac_ext <<_ACEOF
8226 /* confdefs.h.  */
8227 _ACEOF
8228 cat confdefs.h >>conftest.$ac_ext
8229 cat >>conftest.$ac_ext <<_ACEOF
8230 /* end confdefs.h.  */
8231
8232 int
8233 main ()
8234 {
8235
8236   ;
8237   return 0;
8238 }
8239 _ACEOF
8240 rm -f conftest.$ac_objext conftest$ac_exeext
8241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8242   (eval $ac_link) 2>conftest.er1
8243   ac_status=$?
8244   grep -v '^ *+' conftest.er1 >conftest.err
8245   rm -f conftest.er1
8246   cat conftest.err >&5
8247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248   (exit $ac_status); } &&
8249          { ac_try='test -z "$ac_c_werror_flag"
8250                          || test ! -s conftest.err'
8251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252   (eval $ac_try) 2>&5
8253   ac_status=$?
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); }; } &&
8256          { ac_try='test -s conftest$ac_exeext'
8257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258   (eval $ac_try) 2>&5
8259   ac_status=$?
8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); }; }; then
8262   lt_cv_cc_needs_belf=yes
8263 else
8264   echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8266
8267 lt_cv_cc_needs_belf=no
8268 fi
8269 rm -f conftest.err conftest.$ac_objext \
8270       conftest$ac_exeext conftest.$ac_ext
8271      ac_ext=c
8272 ac_cpp='$CPP $CPPFLAGS'
8273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8276
8277 fi
8278 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8279 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
8280   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8281     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8282     CFLAGS="$SAVE_CFLAGS"
8283   fi
8284   ;;
8285
8286 esac
8287
8288 need_locks="$enable_libtool_lock"
8289
8290
8291
8292 for ac_header in dlfcn.h
8293 do
8294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8296   echo "$as_me:$LINENO: checking for $ac_header" >&5
8297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 fi
8301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8303 else
8304   # Is the header compilable?
8305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8307 cat >conftest.$ac_ext <<_ACEOF
8308 /* confdefs.h.  */
8309 _ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h.  */
8313 $ac_includes_default
8314 #include <$ac_header>
8315 _ACEOF
8316 rm -f conftest.$ac_objext
8317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8318   (eval $ac_compile) 2>conftest.er1
8319   ac_status=$?
8320   grep -v '^ *+' conftest.er1 >conftest.err
8321   rm -f conftest.er1
8322   cat conftest.err >&5
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); } &&
8325          { ac_try='test -z "$ac_c_werror_flag"
8326                          || test ! -s conftest.err'
8327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328   (eval $ac_try) 2>&5
8329   ac_status=$?
8330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); }; } &&
8332          { ac_try='test -s conftest.$ac_objext'
8333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334   (eval $ac_try) 2>&5
8335   ac_status=$?
8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337   (exit $ac_status); }; }; then
8338   ac_header_compiler=yes
8339 else
8340   echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8342
8343 ac_header_compiler=no
8344 fi
8345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8347 echo "${ECHO_T}$ac_header_compiler" >&6
8348
8349 # Is the header present?
8350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8352 cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h.  */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h.  */
8358 #include <$ac_header>
8359 _ACEOF
8360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8362   ac_status=$?
8363   grep -v '^ *+' conftest.er1 >conftest.err
8364   rm -f conftest.er1
8365   cat conftest.err >&5
8366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367   (exit $ac_status); } >/dev/null; then
8368   if test -s conftest.err; then
8369     ac_cpp_err=$ac_c_preproc_warn_flag
8370     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8371   else
8372     ac_cpp_err=
8373   fi
8374 else
8375   ac_cpp_err=yes
8376 fi
8377 if test -z "$ac_cpp_err"; then
8378   ac_header_preproc=yes
8379 else
8380   echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8382
8383   ac_header_preproc=no
8384 fi
8385 rm -f conftest.err conftest.$ac_ext
8386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8387 echo "${ECHO_T}$ac_header_preproc" >&6
8388
8389 # So?  What about this header?
8390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8391   yes:no: )
8392     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8396     ac_header_preproc=yes
8397     ;;
8398   no:yes:* )
8399     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8401     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8402 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8403     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8405     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8406 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8409     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8411     (
8412       cat <<\_ASBOX
8413 ## ------------------------------------------ ##
8414 ## Report this to the AC_PACKAGE_NAME lists.  ##
8415 ## ------------------------------------------ ##
8416 _ASBOX
8417     ) |
8418       sed "s/^/$as_me: WARNING:     /" >&2
8419     ;;
8420 esac
8421 echo "$as_me:$LINENO: checking for $ac_header" >&5
8422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8424   echo $ECHO_N "(cached) $ECHO_C" >&6
8425 else
8426   eval "$as_ac_Header=\$ac_header_preproc"
8427 fi
8428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8430
8431 fi
8432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8433   cat >>confdefs.h <<_ACEOF
8434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8435 _ACEOF
8436
8437 fi
8438
8439 done
8440
8441 ac_ext=cc
8442 ac_cpp='$CXXCPP $CPPFLAGS'
8443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8446 if test -n "$ac_tool_prefix"; then
8447   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8448   do
8449     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8450 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8451 echo "$as_me:$LINENO: checking for $ac_word" >&5
8452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8453 if test "${ac_cv_prog_CXX+set}" = set; then
8454   echo $ECHO_N "(cached) $ECHO_C" >&6
8455 else
8456   if test -n "$CXX"; then
8457   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8458 else
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 for as_dir in $PATH
8461 do
8462   IFS=$as_save_IFS
8463   test -z "$as_dir" && as_dir=.
8464   for ac_exec_ext in '' $ac_executable_extensions; do
8465   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8466     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8468     break 2
8469   fi
8470 done
8471 done
8472
8473 fi
8474 fi
8475 CXX=$ac_cv_prog_CXX
8476 if test -n "$CXX"; then
8477   echo "$as_me:$LINENO: result: $CXX" >&5
8478 echo "${ECHO_T}$CXX" >&6
8479 else
8480   echo "$as_me:$LINENO: result: no" >&5
8481 echo "${ECHO_T}no" >&6
8482 fi
8483
8484     test -n "$CXX" && break
8485   done
8486 fi
8487 if test -z "$CXX"; then
8488   ac_ct_CXX=$CXX
8489   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8490 do
8491   # Extract the first word of "$ac_prog", so it can be a program name with args.
8492 set dummy $ac_prog; ac_word=$2
8493 echo "$as_me:$LINENO: checking for $ac_word" >&5
8494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8495 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8496   echo $ECHO_N "(cached) $ECHO_C" >&6
8497 else
8498   if test -n "$ac_ct_CXX"; then
8499   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8500 else
8501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8502 for as_dir in $PATH
8503 do
8504   IFS=$as_save_IFS
8505   test -z "$as_dir" && as_dir=.
8506   for ac_exec_ext in '' $ac_executable_extensions; do
8507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8508     ac_cv_prog_ac_ct_CXX="$ac_prog"
8509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8510     break 2
8511   fi
8512 done
8513 done
8514
8515 fi
8516 fi
8517 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8518 if test -n "$ac_ct_CXX"; then
8519   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8520 echo "${ECHO_T}$ac_ct_CXX" >&6
8521 else
8522   echo "$as_me:$LINENO: result: no" >&5
8523 echo "${ECHO_T}no" >&6
8524 fi
8525
8526   test -n "$ac_ct_CXX" && break
8527 done
8528 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8529
8530   CXX=$ac_ct_CXX
8531 fi
8532
8533
8534 # Provide some information about the compiler.
8535 echo "$as_me:$LINENO:" \
8536      "checking for C++ compiler version" >&5
8537 ac_compiler=`set X $ac_compile; echo $2`
8538 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8539   (eval $ac_compiler --version </dev/null >&5) 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }
8543 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8544   (eval $ac_compiler -v </dev/null >&5) 2>&5
8545   ac_status=$?
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); }
8548 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8549   (eval $ac_compiler -V </dev/null >&5) 2>&5
8550   ac_status=$?
8551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552   (exit $ac_status); }
8553
8554 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8555 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8556 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8557   echo $ECHO_N "(cached) $ECHO_C" >&6
8558 else
8559   cat >conftest.$ac_ext <<_ACEOF
8560 /* confdefs.h.  */
8561 _ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h.  */
8565
8566 int
8567 main ()
8568 {
8569 #ifndef __GNUC__
8570        choke me
8571 #endif
8572
8573   ;
8574   return 0;
8575 }
8576 _ACEOF
8577 rm -f conftest.$ac_objext
8578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8579   (eval $ac_compile) 2>conftest.er1
8580   ac_status=$?
8581   grep -v '^ *+' conftest.er1 >conftest.err
8582   rm -f conftest.er1
8583   cat conftest.err >&5
8584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585   (exit $ac_status); } &&
8586          { ac_try='test -z "$ac_cxx_werror_flag"
8587                          || test ! -s conftest.err'
8588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589   (eval $ac_try) 2>&5
8590   ac_status=$?
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); }; } &&
8593          { ac_try='test -s conftest.$ac_objext'
8594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595   (eval $ac_try) 2>&5
8596   ac_status=$?
8597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598   (exit $ac_status); }; }; then
8599   ac_compiler_gnu=yes
8600 else
8601   echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8603
8604 ac_compiler_gnu=no
8605 fi
8606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8607 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8608
8609 fi
8610 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8611 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8612 GXX=`test $ac_compiler_gnu = yes && echo yes`
8613 ac_test_CXXFLAGS=${CXXFLAGS+set}
8614 ac_save_CXXFLAGS=$CXXFLAGS
8615 CXXFLAGS="-g"
8616 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8617 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8618 if test "${ac_cv_prog_cxx_g+set}" = set; then
8619   echo $ECHO_N "(cached) $ECHO_C" >&6
8620 else
8621   cat >conftest.$ac_ext <<_ACEOF
8622 /* confdefs.h.  */
8623 _ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h.  */
8627
8628 int
8629 main ()
8630 {
8631
8632   ;
8633   return 0;
8634 }
8635 _ACEOF
8636 rm -f conftest.$ac_objext
8637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8638   (eval $ac_compile) 2>conftest.er1
8639   ac_status=$?
8640   grep -v '^ *+' conftest.er1 >conftest.err
8641   rm -f conftest.er1
8642   cat conftest.err >&5
8643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644   (exit $ac_status); } &&
8645          { ac_try='test -z "$ac_cxx_werror_flag"
8646                          || test ! -s conftest.err'
8647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648   (eval $ac_try) 2>&5
8649   ac_status=$?
8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651   (exit $ac_status); }; } &&
8652          { ac_try='test -s conftest.$ac_objext'
8653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654   (eval $ac_try) 2>&5
8655   ac_status=$?
8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); }; }; then
8658   ac_cv_prog_cxx_g=yes
8659 else
8660   echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8662
8663 ac_cv_prog_cxx_g=no
8664 fi
8665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8666 fi
8667 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8668 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8669 if test "$ac_test_CXXFLAGS" = set; then
8670   CXXFLAGS=$ac_save_CXXFLAGS
8671 elif test $ac_cv_prog_cxx_g = yes; then
8672   if test "$GXX" = yes; then
8673     CXXFLAGS="-g -O2"
8674   else
8675     CXXFLAGS="-g"
8676   fi
8677 else
8678   if test "$GXX" = yes; then
8679     CXXFLAGS="-O2"
8680   else
8681     CXXFLAGS=
8682   fi
8683 fi
8684 for ac_declaration in \
8685    '' \
8686    'extern "C" void std::exit (int) throw (); using std::exit;' \
8687    'extern "C" void std::exit (int); using std::exit;' \
8688    'extern "C" void exit (int) throw ();' \
8689    'extern "C" void exit (int);' \
8690    'void exit (int);'
8691 do
8692   cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h.  */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h.  */
8698 $ac_declaration
8699 #include <stdlib.h>
8700 int
8701 main ()
8702 {
8703 exit (42);
8704   ;
8705   return 0;
8706 }
8707 _ACEOF
8708 rm -f conftest.$ac_objext
8709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8710   (eval $ac_compile) 2>conftest.er1
8711   ac_status=$?
8712   grep -v '^ *+' conftest.er1 >conftest.err
8713   rm -f conftest.er1
8714   cat conftest.err >&5
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); } &&
8717          { ac_try='test -z "$ac_cxx_werror_flag"
8718                          || test ! -s conftest.err'
8719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720   (eval $ac_try) 2>&5
8721   ac_status=$?
8722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723   (exit $ac_status); }; } &&
8724          { ac_try='test -s conftest.$ac_objext'
8725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726   (eval $ac_try) 2>&5
8727   ac_status=$?
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); }; }; then
8730   :
8731 else
8732   echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8734
8735 continue
8736 fi
8737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8738   cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h.  */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h.  */
8744 $ac_declaration
8745 int
8746 main ()
8747 {
8748 exit (42);
8749   ;
8750   return 0;
8751 }
8752 _ACEOF
8753 rm -f conftest.$ac_objext
8754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8755   (eval $ac_compile) 2>conftest.er1
8756   ac_status=$?
8757   grep -v '^ *+' conftest.er1 >conftest.err
8758   rm -f conftest.er1
8759   cat conftest.err >&5
8760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761   (exit $ac_status); } &&
8762          { ac_try='test -z "$ac_cxx_werror_flag"
8763                          || test ! -s conftest.err'
8764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765   (eval $ac_try) 2>&5
8766   ac_status=$?
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); }; } &&
8769          { ac_try='test -s conftest.$ac_objext'
8770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771   (eval $ac_try) 2>&5
8772   ac_status=$?
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   (exit $ac_status); }; }; then
8775   break
8776 else
8777   echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8779
8780 fi
8781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8782 done
8783 rm -f conftest*
8784 if test -n "$ac_declaration"; then
8785   echo '#ifdef __cplusplus' >>confdefs.h
8786   echo $ac_declaration      >>confdefs.h
8787   echo '#endif'             >>confdefs.h
8788 fi
8789
8790 ac_ext=cc
8791 ac_cpp='$CXXCPP $CPPFLAGS'
8792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8795
8796
8797
8798 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8799     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8800     (test "X$CXX" != "Xg++"))) ; then
8801   ac_ext=cc
8802 ac_cpp='$CXXCPP $CPPFLAGS'
8803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8806 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8807 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8808 if test -z "$CXXCPP"; then
8809   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8810   echo $ECHO_N "(cached) $ECHO_C" >&6
8811 else
8812       # Double quotes because CXXCPP needs to be expanded
8813     for CXXCPP in "$CXX -E" "/lib/cpp"
8814     do
8815       ac_preproc_ok=false
8816 for ac_cxx_preproc_warn_flag in '' yes
8817 do
8818   # Use a header file that comes with gcc, so configuring glibc
8819   # with a fresh cross-compiler works.
8820   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8821   # <limits.h> exists even on freestanding compilers.
8822   # On the NeXT, cc -E runs the code through the compiler's parser,
8823   # not just through cpp. "Syntax error" is here to catch this case.
8824   cat >conftest.$ac_ext <<_ACEOF
8825 /* confdefs.h.  */
8826 _ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h.  */
8830 #ifdef __STDC__
8831 # include <limits.h>
8832 #else
8833 # include <assert.h>
8834 #endif
8835                      Syntax error
8836 _ACEOF
8837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8838   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8839   ac_status=$?
8840   grep -v '^ *+' conftest.er1 >conftest.err
8841   rm -f conftest.er1
8842   cat conftest.err >&5
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); } >/dev/null; then
8845   if test -s conftest.err; then
8846     ac_cpp_err=$ac_cxx_preproc_warn_flag
8847     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8848   else
8849     ac_cpp_err=
8850   fi
8851 else
8852   ac_cpp_err=yes
8853 fi
8854 if test -z "$ac_cpp_err"; then
8855   :
8856 else
8857   echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8859
8860   # Broken: fails on valid input.
8861 continue
8862 fi
8863 rm -f conftest.err conftest.$ac_ext
8864
8865   # OK, works on sane cases.  Now check whether non-existent headers
8866   # can be detected and how.
8867   cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h.  */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h.  */
8873 #include <ac_nonexistent.h>
8874 _ACEOF
8875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8876   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8877   ac_status=$?
8878   grep -v '^ *+' conftest.er1 >conftest.err
8879   rm -f conftest.er1
8880   cat conftest.err >&5
8881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882   (exit $ac_status); } >/dev/null; then
8883   if test -s conftest.err; then
8884     ac_cpp_err=$ac_cxx_preproc_warn_flag
8885     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8886   else
8887     ac_cpp_err=
8888   fi
8889 else
8890   ac_cpp_err=yes
8891 fi
8892 if test -z "$ac_cpp_err"; then
8893   # Broken: success on invalid input.
8894 continue
8895 else
8896   echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.$ac_ext >&5
8898
8899   # Passes both tests.
8900 ac_preproc_ok=:
8901 break
8902 fi
8903 rm -f conftest.err conftest.$ac_ext
8904
8905 done
8906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8907 rm -f conftest.err conftest.$ac_ext
8908 if $ac_preproc_ok; then
8909   break
8910 fi
8911
8912     done
8913     ac_cv_prog_CXXCPP=$CXXCPP
8914
8915 fi
8916   CXXCPP=$ac_cv_prog_CXXCPP
8917 else
8918   ac_cv_prog_CXXCPP=$CXXCPP
8919 fi
8920 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8921 echo "${ECHO_T}$CXXCPP" >&6
8922 ac_preproc_ok=false
8923 for ac_cxx_preproc_warn_flag in '' yes
8924 do
8925   # Use a header file that comes with gcc, so configuring glibc
8926   # with a fresh cross-compiler works.
8927   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8928   # <limits.h> exists even on freestanding compilers.
8929   # On the NeXT, cc -E runs the code through the compiler's parser,
8930   # not just through cpp. "Syntax error" is here to catch this case.
8931   cat >conftest.$ac_ext <<_ACEOF
8932 /* confdefs.h.  */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h.  */
8937 #ifdef __STDC__
8938 # include <limits.h>
8939 #else
8940 # include <assert.h>
8941 #endif
8942                      Syntax error
8943 _ACEOF
8944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8945   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8946   ac_status=$?
8947   grep -v '^ *+' conftest.er1 >conftest.err
8948   rm -f conftest.er1
8949   cat conftest.err >&5
8950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951   (exit $ac_status); } >/dev/null; then
8952   if test -s conftest.err; then
8953     ac_cpp_err=$ac_cxx_preproc_warn_flag
8954     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8955   else
8956     ac_cpp_err=
8957   fi
8958 else
8959   ac_cpp_err=yes
8960 fi
8961 if test -z "$ac_cpp_err"; then
8962   :
8963 else
8964   echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8966
8967   # Broken: fails on valid input.
8968 continue
8969 fi
8970 rm -f conftest.err conftest.$ac_ext
8971
8972   # OK, works on sane cases.  Now check whether non-existent headers
8973   # can be detected and how.
8974   cat >conftest.$ac_ext <<_ACEOF
8975 /* confdefs.h.  */
8976 _ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h.  */
8980 #include <ac_nonexistent.h>
8981 _ACEOF
8982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8983   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8984   ac_status=$?
8985   grep -v '^ *+' conftest.er1 >conftest.err
8986   rm -f conftest.er1
8987   cat conftest.err >&5
8988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989   (exit $ac_status); } >/dev/null; then
8990   if test -s conftest.err; then
8991     ac_cpp_err=$ac_cxx_preproc_warn_flag
8992     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8993   else
8994     ac_cpp_err=
8995   fi
8996 else
8997   ac_cpp_err=yes
8998 fi
8999 if test -z "$ac_cpp_err"; then
9000   # Broken: success on invalid input.
9001 continue
9002 else
9003   echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9005
9006   # Passes both tests.
9007 ac_preproc_ok=:
9008 break
9009 fi
9010 rm -f conftest.err conftest.$ac_ext
9011
9012 done
9013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9014 rm -f conftest.err conftest.$ac_ext
9015 if $ac_preproc_ok; then
9016   :
9017 else
9018   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9019 See \`config.log' for more details." >&5
9020 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9021 See \`config.log' for more details." >&2;}
9022    { (exit 1); exit 1; }; }
9023 fi
9024
9025 ac_ext=cc
9026 ac_cpp='$CXXCPP $CPPFLAGS'
9027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9030
9031 fi
9032
9033
9034 ac_ext=f
9035 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9036 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9037 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9038 if test -n "$ac_tool_prefix"; then
9039   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
9040   do
9041     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9043 echo "$as_me:$LINENO: checking for $ac_word" >&5
9044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9045 if test "${ac_cv_prog_F77+set}" = set; then
9046   echo $ECHO_N "(cached) $ECHO_C" >&6
9047 else
9048   if test -n "$F77"; then
9049   ac_cv_prog_F77="$F77" # Let the user override the test.
9050 else
9051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052 for as_dir in $PATH
9053 do
9054   IFS=$as_save_IFS
9055   test -z "$as_dir" && as_dir=.
9056   for ac_exec_ext in '' $ac_executable_extensions; do
9057   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9058     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
9059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9060     break 2
9061   fi
9062 done
9063 done
9064
9065 fi
9066 fi
9067 F77=$ac_cv_prog_F77
9068 if test -n "$F77"; then
9069   echo "$as_me:$LINENO: result: $F77" >&5
9070 echo "${ECHO_T}$F77" >&6
9071 else
9072   echo "$as_me:$LINENO: result: no" >&5
9073 echo "${ECHO_T}no" >&6
9074 fi
9075
9076     test -n "$F77" && break
9077   done
9078 fi
9079 if test -z "$F77"; then
9080   ac_ct_F77=$F77
9081   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
9082 do
9083   # Extract the first word of "$ac_prog", so it can be a program name with args.
9084 set dummy $ac_prog; ac_word=$2
9085 echo "$as_me:$LINENO: checking for $ac_word" >&5
9086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9087 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
9088   echo $ECHO_N "(cached) $ECHO_C" >&6
9089 else
9090   if test -n "$ac_ct_F77"; then
9091   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
9092 else
9093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094 for as_dir in $PATH
9095 do
9096   IFS=$as_save_IFS
9097   test -z "$as_dir" && as_dir=.
9098   for ac_exec_ext in '' $ac_executable_extensions; do
9099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9100     ac_cv_prog_ac_ct_F77="$ac_prog"
9101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9102     break 2
9103   fi
9104 done
9105 done
9106
9107 fi
9108 fi
9109 ac_ct_F77=$ac_cv_prog_ac_ct_F77
9110 if test -n "$ac_ct_F77"; then
9111   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
9112 echo "${ECHO_T}$ac_ct_F77" >&6
9113 else
9114   echo "$as_me:$LINENO: result: no" >&5
9115 echo "${ECHO_T}no" >&6
9116 fi
9117
9118   test -n "$ac_ct_F77" && break
9119 done
9120
9121   F77=$ac_ct_F77
9122 fi
9123
9124
9125 # Provide some information about the compiler.
9126 echo "$as_me:9126:" \
9127      "checking for Fortran 77 compiler version" >&5
9128 ac_compiler=`set X $ac_compile; echo $2`
9129 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
9130   (eval $ac_compiler --version </dev/null >&5) 2>&5
9131   ac_status=$?
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); }
9134 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
9135   (eval $ac_compiler -v </dev/null >&5) 2>&5
9136   ac_status=$?
9137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138   (exit $ac_status); }
9139 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
9140   (eval $ac_compiler -V </dev/null >&5) 2>&5
9141   ac_status=$?
9142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143   (exit $ac_status); }
9144 rm -f a.out
9145
9146 # If we don't use `.F' as extension, the preprocessor is not run on the
9147 # input file.  (Note that this only needs to work for GNU compilers.)
9148 ac_save_ext=$ac_ext
9149 ac_ext=F
9150 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
9151 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
9152 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
9153   echo $ECHO_N "(cached) $ECHO_C" >&6
9154 else
9155   cat >conftest.$ac_ext <<_ACEOF
9156       program main
9157 #ifndef __GNUC__
9158        choke me
9159 #endif
9160
9161       end
9162 _ACEOF
9163 rm -f conftest.$ac_objext
9164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9165   (eval $ac_compile) 2>conftest.er1
9166   ac_status=$?
9167   grep -v '^ *+' conftest.er1 >conftest.err
9168   rm -f conftest.er1
9169   cat conftest.err >&5
9170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171   (exit $ac_status); } &&
9172          { ac_try='test -z "$ac_f77_werror_flag"
9173                          || test ! -s conftest.err'
9174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175   (eval $ac_try) 2>&5
9176   ac_status=$?
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); }; } &&
9179          { ac_try='test -s conftest.$ac_objext'
9180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181   (eval $ac_try) 2>&5
9182   ac_status=$?
9183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184   (exit $ac_status); }; }; then
9185   ac_compiler_gnu=yes
9186 else
9187   echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9189
9190 ac_compiler_gnu=no
9191 fi
9192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9193 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
9194
9195 fi
9196 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
9197 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
9198 ac_ext=$ac_save_ext
9199 ac_test_FFLAGS=${FFLAGS+set}
9200 ac_save_FFLAGS=$FFLAGS
9201 FFLAGS=
9202 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
9203 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
9204 if test "${ac_cv_prog_f77_g+set}" = set; then
9205   echo $ECHO_N "(cached) $ECHO_C" >&6
9206 else
9207   FFLAGS=-g
9208 cat >conftest.$ac_ext <<_ACEOF
9209       program main
9210
9211       end
9212 _ACEOF
9213 rm -f conftest.$ac_objext
9214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9215   (eval $ac_compile) 2>conftest.er1
9216   ac_status=$?
9217   grep -v '^ *+' conftest.er1 >conftest.err
9218   rm -f conftest.er1
9219   cat conftest.err >&5
9220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221   (exit $ac_status); } &&
9222          { ac_try='test -z "$ac_f77_werror_flag"
9223                          || test ! -s conftest.err'
9224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225   (eval $ac_try) 2>&5
9226   ac_status=$?
9227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228   (exit $ac_status); }; } &&
9229          { ac_try='test -s conftest.$ac_objext'
9230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231   (eval $ac_try) 2>&5
9232   ac_status=$?
9233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234   (exit $ac_status); }; }; then
9235   ac_cv_prog_f77_g=yes
9236 else
9237   echo "$as_me: failed program was:" >&5
9238 sed 's/^/| /' conftest.$ac_ext >&5
9239
9240 ac_cv_prog_f77_g=no
9241 fi
9242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9243
9244 fi
9245 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
9246 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
9247 if test "$ac_test_FFLAGS" = set; then
9248   FFLAGS=$ac_save_FFLAGS
9249 elif test $ac_cv_prog_f77_g = yes; then
9250   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9251     FFLAGS="-g -O2"
9252   else
9253     FFLAGS="-g"
9254   fi
9255 else
9256   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9257     FFLAGS="-O2"
9258   else
9259     FFLAGS=
9260   fi
9261 fi
9262
9263 G77=`test $ac_compiler_gnu = yes && echo yes`
9264 ac_ext=c
9265 ac_cpp='$CPP $CPPFLAGS'
9266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9269
9270
9271
9272 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9273
9274 # find the maximum length of command line arguments
9275 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9276 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
9277 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9278   echo $ECHO_N "(cached) $ECHO_C" >&6
9279 else
9280     i=0
9281   teststring="ABCD"
9282
9283   case $build_os in
9284   msdosdjgpp*)
9285     # On DJGPP, this test can blow up pretty badly due to problems in libc
9286     # (any single argument exceeding 2000 bytes causes a buffer overrun
9287     # during glob expansion).  Even if it were fixed, the result of this
9288     # check would be larger than it should be.
9289     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9290     ;;
9291
9292   gnu*)
9293     # Under GNU Hurd, this test is not required because there is
9294     # no limit to the length of command line arguments.
9295     # Libtool will interpret -1 as no limit whatsoever
9296     lt_cv_sys_max_cmd_len=-1;
9297     ;;
9298
9299   cygwin* | mingw*)
9300     # On Win9x/ME, this test blows up -- it succeeds, but takes
9301     # about 5 minutes as the teststring grows exponentially.
9302     # Worse, since 9x/ME are not pre-emptively multitasking,
9303     # you end up with a "frozen" computer, even though with patience
9304     # the test eventually succeeds (with a max line length of 256k).
9305     # Instead, let's just punt: use the minimum linelength reported by
9306     # all of the supported platforms: 8192 (on NT/2K/XP).
9307     lt_cv_sys_max_cmd_len=8192;
9308     ;;
9309
9310   amigaos*)
9311     # On AmigaOS with pdksh, this test takes hours, literally.
9312     # So we just punt and use a minimum line length of 8192.
9313     lt_cv_sys_max_cmd_len=8192;
9314     ;;
9315
9316   netbsd* | freebsd* | openbsd* | darwin* )
9317     # This has been around since 386BSD, at least.  Likely further.
9318     if test -x /sbin/sysctl; then
9319       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9320     elif test -x /usr/sbin/sysctl; then
9321       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9322     else
9323       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
9324     fi
9325     # And add a safety zone
9326     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9327     ;;
9328
9329  *)
9330     # If test is not a shell built-in, we'll probably end up computing a
9331     # maximum length that is only half of the actual maximum length, but
9332     # we can't tell.
9333     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9334     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9335                = "XX$teststring") >/dev/null 2>&1 &&
9336             new_result=`expr "X$teststring" : ".*" 2>&1` &&
9337             lt_cv_sys_max_cmd_len=$new_result &&
9338             test $i != 17 # 1/2 MB should be enough
9339     do
9340       i=`expr $i + 1`
9341       teststring=$teststring$teststring
9342     done
9343     teststring=
9344     # Add a significant safety factor because C++ compilers can tack on massive
9345     # amounts of additional arguments before passing them to the linker.
9346     # It appears as though 1/2 is a usable value.
9347     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9348     ;;
9349   esac
9350
9351 fi
9352
9353 if test -n $lt_cv_sys_max_cmd_len ; then
9354   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9355 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
9356 else
9357   echo "$as_me:$LINENO: result: none" >&5
9358 echo "${ECHO_T}none" >&6
9359 fi
9360
9361
9362
9363
9364 # Check for command to grab the raw symbol name followed by C symbol from nm.
9365 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9366 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
9367 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9368   echo $ECHO_N "(cached) $ECHO_C" >&6
9369 else
9370
9371 # These are sane defaults that work on at least a few old systems.
9372 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9373
9374 # Character class describing NM global symbol codes.
9375 symcode='[BCDEGRST]'
9376
9377 # Regexp to match symbols that can be accessed directly from C.
9378 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9379
9380 # Transform the above into a raw symbol and a C symbol.
9381 symxfrm='\1 \2\3 \3'
9382
9383 # Transform an extracted symbol line into a proper C declaration
9384 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9385
9386 # Transform an extracted symbol line into symbol name and symbol address
9387 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'"
9388
9389 # Define system-specific variables.
9390 case $host_os in
9391 aix*)
9392   symcode='[BCDT]'
9393   ;;
9394 cygwin* | mingw* | pw32*)
9395   symcode='[ABCDGISTW]'
9396   ;;
9397 hpux*) # Its linker distinguishes data from code symbols
9398   if test "$host_cpu" = ia64; then
9399     symcode='[ABCDEGRST]'
9400   fi
9401   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9402   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'"
9403   ;;
9404 linux*)
9405   if test "$host_cpu" = ia64; then
9406     symcode='[ABCDGIRSTW]'
9407     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9408     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'"
9409   fi
9410   ;;
9411 irix* | nonstopux*)
9412   symcode='[BCDEGRST]'
9413   ;;
9414 osf*)
9415   symcode='[BCDEGQRST]'
9416   ;;
9417 solaris* | sysv5*)
9418   symcode='[BDRT]'
9419   ;;
9420 sysv4)
9421   symcode='[DFNSTU]'
9422   ;;
9423 esac
9424
9425 # Handle CRLF in mingw tool chain
9426 opt_cr=
9427 case $build_os in
9428 mingw*)
9429   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9430   ;;
9431 esac
9432
9433 # If we're using GNU nm, then use its standard symbol codes.
9434 case `$NM -V 2>&1` in
9435 *GNU* | *'with BFD'*)
9436   symcode='[ABCDGIRSTW]' ;;
9437 esac
9438
9439 # Try without a prefix undercore, then with it.
9440 for ac_symprfx in "" "_"; do
9441
9442   # Write the raw and C identifiers.
9443   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
9444
9445   # Check to see that the pipe works correctly.
9446   pipe_works=no
9447
9448   rm -f conftest*
9449   cat > conftest.$ac_ext <<EOF
9450 #ifdef __cplusplus
9451 extern "C" {
9452 #endif
9453 char nm_test_var;
9454 void nm_test_func(){}
9455 #ifdef __cplusplus
9456 }
9457 #endif
9458 int main(){nm_test_var='a';nm_test_func();return(0);}
9459 EOF
9460
9461   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9462   (eval $ac_compile) 2>&5
9463   ac_status=$?
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); }; then
9466     # Now try to grab the symbols.
9467     nlist=conftest.nm
9468     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9469   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9470   ac_status=$?
9471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472   (exit $ac_status); } && test -s "$nlist"; then
9473       # Try sorting and uniquifying the output.
9474       if sort "$nlist" | uniq > "$nlist"T; then
9475         mv -f "$nlist"T "$nlist"
9476       else
9477         rm -f "$nlist"T
9478       fi
9479
9480       # Make sure that we snagged all the symbols we need.
9481       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9482         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9483           cat <<EOF > conftest.$ac_ext
9484 #ifdef __cplusplus
9485 extern "C" {
9486 #endif
9487
9488 EOF
9489           # Now generate the symbol file.
9490           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9491
9492           cat <<EOF >> conftest.$ac_ext
9493 #if defined (__STDC__) && __STDC__
9494 # define lt_ptr_t void *
9495 #else
9496 # define lt_ptr_t char *
9497 # define const
9498 #endif
9499
9500 /* The mapping between symbol names and symbols. */
9501 const struct {
9502   const char *name;
9503   lt_ptr_t address;
9504 }
9505 lt_preloaded_symbols[] =
9506 {
9507 EOF
9508           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9509           cat <<\EOF >> conftest.$ac_ext
9510   {0, (lt_ptr_t) 0}
9511 };
9512
9513 #ifdef __cplusplus
9514 }
9515 #endif
9516 EOF
9517           # Now try linking the two files.
9518           mv conftest.$ac_objext conftstm.$ac_objext
9519           lt_save_LIBS="$LIBS"
9520           lt_save_CFLAGS="$CFLAGS"
9521           LIBS="conftstm.$ac_objext"
9522           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9523           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9524   (eval $ac_link) 2>&5
9525   ac_status=$?
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9528             pipe_works=yes
9529           fi
9530           LIBS="$lt_save_LIBS"
9531           CFLAGS="$lt_save_CFLAGS"
9532         else
9533           echo "cannot find nm_test_func in $nlist" >&5
9534         fi
9535       else
9536         echo "cannot find nm_test_var in $nlist" >&5
9537       fi
9538     else
9539       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9540     fi
9541   else
9542     echo "$progname: failed program was:" >&5
9543     cat conftest.$ac_ext >&5
9544   fi
9545   rm -f conftest* conftst*
9546
9547   # Do not use the global_symbol_pipe unless it works.
9548   if test "$pipe_works" = yes; then
9549     break
9550   else
9551     lt_cv_sys_global_symbol_pipe=
9552   fi
9553 done
9554
9555 fi
9556
9557 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9558   lt_cv_sys_global_symbol_to_cdecl=
9559 fi
9560 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9561   echo "$as_me:$LINENO: result: failed" >&5
9562 echo "${ECHO_T}failed" >&6
9563 else
9564   echo "$as_me:$LINENO: result: ok" >&5
9565 echo "${ECHO_T}ok" >&6
9566 fi
9567
9568 echo "$as_me:$LINENO: checking for objdir" >&5
9569 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9570 if test "${lt_cv_objdir+set}" = set; then
9571   echo $ECHO_N "(cached) $ECHO_C" >&6
9572 else
9573   rm -f .libs 2>/dev/null
9574 mkdir .libs 2>/dev/null
9575 if test -d .libs; then
9576   lt_cv_objdir=.libs
9577 else
9578   # MS-DOS does not allow filenames that begin with a dot.
9579   lt_cv_objdir=_libs
9580 fi
9581 rmdir .libs 2>/dev/null
9582 fi
9583 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9584 echo "${ECHO_T}$lt_cv_objdir" >&6
9585 objdir=$lt_cv_objdir
9586
9587
9588
9589
9590
9591 case $host_os in
9592 aix3*)
9593   # AIX sometimes has problems with the GCC collect2 program.  For some
9594   # reason, if we set the COLLECT_NAMES environment variable, the problems
9595   # vanish in a puff of smoke.
9596   if test "X${COLLECT_NAMES+set}" != Xset; then
9597     COLLECT_NAMES=
9598     export COLLECT_NAMES
9599   fi
9600   ;;
9601 esac
9602
9603 # Sed substitution that helps us do robust quoting.  It backslashifies
9604 # metacharacters that are still active within double-quoted strings.
9605 Xsed='sed -e s/^X//'
9606 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9607
9608 # Same as above, but do not quote variable references.
9609 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9610
9611 # Sed substitution to delay expansion of an escaped shell variable in a
9612 # double_quote_subst'ed string.
9613 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9614
9615 # Sed substitution to avoid accidental globbing in evaled expressions
9616 no_glob_subst='s/\*/\\\*/g'
9617
9618 # Constants:
9619 rm="rm -f"
9620
9621 # Global variables:
9622 default_ofile=libtool
9623 can_build_shared=yes
9624
9625 # All known linkers require a `.a' archive for static linking (except M$VC,
9626 # which needs '.lib').
9627 libext=a
9628 ltmain="$ac_aux_dir/ltmain.sh"
9629 ofile="$default_ofile"
9630 with_gnu_ld="$lt_cv_prog_gnu_ld"
9631
9632 if test -n "$ac_tool_prefix"; then
9633   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9634 set dummy ${ac_tool_prefix}ar; ac_word=$2
9635 echo "$as_me:$LINENO: checking for $ac_word" >&5
9636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9637 if test "${ac_cv_prog_AR+set}" = set; then
9638   echo $ECHO_N "(cached) $ECHO_C" >&6
9639 else
9640   if test -n "$AR"; then
9641   ac_cv_prog_AR="$AR" # Let the user override the test.
9642 else
9643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644 for as_dir in $PATH
9645 do
9646   IFS=$as_save_IFS
9647   test -z "$as_dir" && as_dir=.
9648   for ac_exec_ext in '' $ac_executable_extensions; do
9649   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9650     ac_cv_prog_AR="${ac_tool_prefix}ar"
9651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9652     break 2
9653   fi
9654 done
9655 done
9656
9657 fi
9658 fi
9659 AR=$ac_cv_prog_AR
9660 if test -n "$AR"; then
9661   echo "$as_me:$LINENO: result: $AR" >&5
9662 echo "${ECHO_T}$AR" >&6
9663 else
9664   echo "$as_me:$LINENO: result: no" >&5
9665 echo "${ECHO_T}no" >&6
9666 fi
9667
9668 fi
9669 if test -z "$ac_cv_prog_AR"; then
9670   ac_ct_AR=$AR
9671   # Extract the first word of "ar", so it can be a program name with args.
9672 set dummy ar; ac_word=$2
9673 echo "$as_me:$LINENO: checking for $ac_word" >&5
9674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9675 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9676   echo $ECHO_N "(cached) $ECHO_C" >&6
9677 else
9678   if test -n "$ac_ct_AR"; then
9679   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9680 else
9681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682 for as_dir in $PATH
9683 do
9684   IFS=$as_save_IFS
9685   test -z "$as_dir" && as_dir=.
9686   for ac_exec_ext in '' $ac_executable_extensions; do
9687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9688     ac_cv_prog_ac_ct_AR="ar"
9689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9690     break 2
9691   fi
9692 done
9693 done
9694
9695   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9696 fi
9697 fi
9698 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9699 if test -n "$ac_ct_AR"; then
9700   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9701 echo "${ECHO_T}$ac_ct_AR" >&6
9702 else
9703   echo "$as_me:$LINENO: result: no" >&5
9704 echo "${ECHO_T}no" >&6
9705 fi
9706
9707   AR=$ac_ct_AR
9708 else
9709   AR="$ac_cv_prog_AR"
9710 fi
9711
9712 if test -n "$ac_tool_prefix"; then
9713   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9714 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9715 echo "$as_me:$LINENO: checking for $ac_word" >&5
9716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9717 if test "${ac_cv_prog_RANLIB+set}" = set; then
9718   echo $ECHO_N "(cached) $ECHO_C" >&6
9719 else
9720   if test -n "$RANLIB"; then
9721   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9722 else
9723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724 for as_dir in $PATH
9725 do
9726   IFS=$as_save_IFS
9727   test -z "$as_dir" && as_dir=.
9728   for ac_exec_ext in '' $ac_executable_extensions; do
9729   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9730     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9732     break 2
9733   fi
9734 done
9735 done
9736
9737 fi
9738 fi
9739 RANLIB=$ac_cv_prog_RANLIB
9740 if test -n "$RANLIB"; then
9741   echo "$as_me:$LINENO: result: $RANLIB" >&5
9742 echo "${ECHO_T}$RANLIB" >&6
9743 else
9744   echo "$as_me:$LINENO: result: no" >&5
9745 echo "${ECHO_T}no" >&6
9746 fi
9747
9748 fi
9749 if test -z "$ac_cv_prog_RANLIB"; then
9750   ac_ct_RANLIB=$RANLIB
9751   # Extract the first word of "ranlib", so it can be a program name with args.
9752 set dummy ranlib; ac_word=$2
9753 echo "$as_me:$LINENO: checking for $ac_word" >&5
9754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9755 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9756   echo $ECHO_N "(cached) $ECHO_C" >&6
9757 else
9758   if test -n "$ac_ct_RANLIB"; then
9759   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9760 else
9761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762 for as_dir in $PATH
9763 do
9764   IFS=$as_save_IFS
9765   test -z "$as_dir" && as_dir=.
9766   for ac_exec_ext in '' $ac_executable_extensions; do
9767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9768     ac_cv_prog_ac_ct_RANLIB="ranlib"
9769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9770     break 2
9771   fi
9772 done
9773 done
9774
9775   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9776 fi
9777 fi
9778 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9779 if test -n "$ac_ct_RANLIB"; then
9780   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9781 echo "${ECHO_T}$ac_ct_RANLIB" >&6
9782 else
9783   echo "$as_me:$LINENO: result: no" >&5
9784 echo "${ECHO_T}no" >&6
9785 fi
9786
9787   RANLIB=$ac_ct_RANLIB
9788 else
9789   RANLIB="$ac_cv_prog_RANLIB"
9790 fi
9791
9792 if test -n "$ac_tool_prefix"; then
9793   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9794 set dummy ${ac_tool_prefix}strip; ac_word=$2
9795 echo "$as_me:$LINENO: checking for $ac_word" >&5
9796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9797 if test "${ac_cv_prog_STRIP+set}" = set; then
9798   echo $ECHO_N "(cached) $ECHO_C" >&6
9799 else
9800   if test -n "$STRIP"; then
9801   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9802 else
9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804 for as_dir in $PATH
9805 do
9806   IFS=$as_save_IFS
9807   test -z "$as_dir" && as_dir=.
9808   for ac_exec_ext in '' $ac_executable_extensions; do
9809   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9810     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9812     break 2
9813   fi
9814 done
9815 done
9816
9817 fi
9818 fi
9819 STRIP=$ac_cv_prog_STRIP
9820 if test -n "$STRIP"; then
9821   echo "$as_me:$LINENO: result: $STRIP" >&5
9822 echo "${ECHO_T}$STRIP" >&6
9823 else
9824   echo "$as_me:$LINENO: result: no" >&5
9825 echo "${ECHO_T}no" >&6
9826 fi
9827
9828 fi
9829 if test -z "$ac_cv_prog_STRIP"; then
9830   ac_ct_STRIP=$STRIP
9831   # Extract the first word of "strip", so it can be a program name with args.
9832 set dummy strip; ac_word=$2
9833 echo "$as_me:$LINENO: checking for $ac_word" >&5
9834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9835 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9836   echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838   if test -n "$ac_ct_STRIP"; then
9839   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9840 else
9841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9842 for as_dir in $PATH
9843 do
9844   IFS=$as_save_IFS
9845   test -z "$as_dir" && as_dir=.
9846   for ac_exec_ext in '' $ac_executable_extensions; do
9847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9848     ac_cv_prog_ac_ct_STRIP="strip"
9849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9850     break 2
9851   fi
9852 done
9853 done
9854
9855   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9856 fi
9857 fi
9858 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9859 if test -n "$ac_ct_STRIP"; then
9860   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9861 echo "${ECHO_T}$ac_ct_STRIP" >&6
9862 else
9863   echo "$as_me:$LINENO: result: no" >&5
9864 echo "${ECHO_T}no" >&6
9865 fi
9866
9867   STRIP=$ac_ct_STRIP
9868 else
9869   STRIP="$ac_cv_prog_STRIP"
9870 fi
9871
9872
9873 old_CC="$CC"
9874 old_CFLAGS="$CFLAGS"
9875
9876 # Set sane defaults for various variables
9877 test -z "$AR" && AR=ar
9878 test -z "$AR_FLAGS" && AR_FLAGS=cru
9879 test -z "$AS" && AS=as
9880 test -z "$CC" && CC=cc
9881 test -z "$LTCC" && LTCC=$CC
9882 test -z "$DLLTOOL" && DLLTOOL=dlltool
9883 test -z "$LD" && LD=ld
9884 test -z "$LN_S" && LN_S="ln -s"
9885 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9886 test -z "$NM" && NM=nm
9887 test -z "$SED" && SED=sed
9888 test -z "$OBJDUMP" && OBJDUMP=objdump
9889 test -z "$RANLIB" && RANLIB=:
9890 test -z "$STRIP" && STRIP=:
9891 test -z "$ac_objext" && ac_objext=o
9892
9893 # Determine commands to create old-style static archives.
9894 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9895 old_postinstall_cmds='chmod 644 $oldlib'
9896 old_postuninstall_cmds=
9897
9898 if test -n "$RANLIB"; then
9899   case $host_os in
9900   openbsd*)
9901     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
9902     ;;
9903   *)
9904     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
9905     ;;
9906   esac
9907   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9908 fi
9909
9910 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9911
9912 # Only perform the check for file, if the check method requires it
9913 case $deplibs_check_method in
9914 file_magic*)
9915   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9916     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9917 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9918 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9919   echo $ECHO_N "(cached) $ECHO_C" >&6
9920 else
9921   case $MAGIC_CMD in
9922 [\\/*] |  ?:[\\/]*)
9923   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9924   ;;
9925 *)
9926   lt_save_MAGIC_CMD="$MAGIC_CMD"
9927   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9928   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9929   for ac_dir in $ac_dummy; do
9930     IFS="$lt_save_ifs"
9931     test -z "$ac_dir" && ac_dir=.
9932     if test -f $ac_dir/${ac_tool_prefix}file; then
9933       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9934       if test -n "$file_magic_test_file"; then
9935         case $deplibs_check_method in
9936         "file_magic "*)
9937           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
9938           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9939           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9940             $EGREP "$file_magic_regex" > /dev/null; then
9941             :
9942           else
9943             cat <<EOF 1>&2
9944
9945 *** Warning: the command libtool uses to detect shared libraries,
9946 *** $file_magic_cmd, produces output that libtool cannot recognize.
9947 *** The result is that libtool may fail to recognize shared libraries
9948 *** as such.  This will affect the creation of libtool libraries that
9949 *** depend on shared libraries, but programs linked with such libtool
9950 *** libraries will work regardless of this problem.  Nevertheless, you
9951 *** may want to report the problem to your system manager and/or to
9952 *** bug-libtool@gnu.org
9953
9954 EOF
9955           fi ;;
9956         esac
9957       fi
9958       break
9959     fi
9960   done
9961   IFS="$lt_save_ifs"
9962   MAGIC_CMD="$lt_save_MAGIC_CMD"
9963   ;;
9964 esac
9965 fi
9966
9967 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9968 if test -n "$MAGIC_CMD"; then
9969   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9970 echo "${ECHO_T}$MAGIC_CMD" >&6
9971 else
9972   echo "$as_me:$LINENO: result: no" >&5
9973 echo "${ECHO_T}no" >&6
9974 fi
9975
9976 if test -z "$lt_cv_path_MAGIC_CMD"; then
9977   if test -n "$ac_tool_prefix"; then
9978     echo "$as_me:$LINENO: checking for file" >&5
9979 echo $ECHO_N "checking for file... $ECHO_C" >&6
9980 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9981   echo $ECHO_N "(cached) $ECHO_C" >&6
9982 else
9983   case $MAGIC_CMD in
9984 [\\/*] |  ?:[\\/]*)
9985   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9986   ;;
9987 *)
9988   lt_save_MAGIC_CMD="$MAGIC_CMD"
9989   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9990   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9991   for ac_dir in $ac_dummy; do
9992     IFS="$lt_save_ifs"
9993     test -z "$ac_dir" && ac_dir=.
9994     if test -f $ac_dir/file; then
9995       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9996       if test -n "$file_magic_test_file"; then
9997         case $deplibs_check_method in
9998         "file_magic "*)
9999           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
10000           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10001           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10002             $EGREP "$file_magic_regex" > /dev/null; then
10003             :
10004           else
10005             cat <<EOF 1>&2
10006
10007 *** Warning: the command libtool uses to detect shared libraries,
10008 *** $file_magic_cmd, produces output that libtool cannot recognize.
10009 *** The result is that libtool may fail to recognize shared libraries
10010 *** as such.  This will affect the creation of libtool libraries that
10011 *** depend on shared libraries, but programs linked with such libtool
10012 *** libraries will work regardless of this problem.  Nevertheless, you
10013 *** may want to report the problem to your system manager and/or to
10014 *** bug-libtool@gnu.org
10015
10016 EOF
10017           fi ;;
10018         esac
10019       fi
10020       break
10021     fi
10022   done
10023   IFS="$lt_save_ifs"
10024   MAGIC_CMD="$lt_save_MAGIC_CMD"
10025   ;;
10026 esac
10027 fi
10028
10029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10030 if test -n "$MAGIC_CMD"; then
10031   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10032 echo "${ECHO_T}$MAGIC_CMD" >&6
10033 else
10034   echo "$as_me:$LINENO: result: no" >&5
10035 echo "${ECHO_T}no" >&6
10036 fi
10037
10038   else
10039     MAGIC_CMD=:
10040   fi
10041 fi
10042
10043   fi
10044   ;;
10045 esac
10046
10047 enable_dlopen=no
10048 enable_win32_dll=no
10049
10050 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10051 if test "${enable_libtool_lock+set}" = set; then
10052   enableval="$enable_libtool_lock"
10053
10054 fi;
10055 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10056
10057
10058 # Check whether --with-pic or --without-pic was given.
10059 if test "${with_pic+set}" = set; then
10060   withval="$with_pic"
10061   pic_mode="$withval"
10062 else
10063   pic_mode=default
10064 fi;
10065 test -z "$pic_mode" && pic_mode=default
10066
10067 # Use C for the default configuration in the libtool script
10068 tagname=
10069 lt_save_CC="$CC"
10070 ac_ext=c
10071 ac_cpp='$CPP $CPPFLAGS'
10072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10075
10076
10077 # Source file extension for C test sources.
10078 ac_ext=c
10079
10080 # Object file extension for compiled C test sources.
10081 objext=o
10082 objext=$objext
10083
10084 # Code to be used in simple compile tests
10085 lt_simple_compile_test_code="int some_variable = 0;\n"
10086
10087 # Code to be used in simple link tests
10088 lt_simple_link_test_code='int main(){return(0);}\n'
10089
10090
10091 # If no C compiler was specified, use CC.
10092 LTCC=${LTCC-"$CC"}
10093
10094 # Allow CC to be a program name with arguments.
10095 compiler=$CC
10096
10097
10098 #
10099 # Check for any special shared library compilation flags.
10100 #
10101 lt_prog_cc_shlib=
10102 if test "$GCC" = no; then
10103   case $host_os in
10104   sco3.2v5*)
10105     lt_prog_cc_shlib='-belf'
10106     ;;
10107   esac
10108 fi
10109 if test -n "$lt_prog_cc_shlib"; then
10110   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
10111 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
10112   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
10113   else
10114     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
10115 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
10116     lt_cv_prog_cc_can_build_shared=no
10117   fi
10118 fi
10119
10120
10121 #
10122 # Check to make sure the static flag actually works.
10123 #
10124 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
10125 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
10126 if test "${lt_prog_compiler_static_works+set}" = set; then
10127   echo $ECHO_N "(cached) $ECHO_C" >&6
10128 else
10129   lt_prog_compiler_static_works=no
10130    save_LDFLAGS="$LDFLAGS"
10131    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
10132    printf "$lt_simple_link_test_code" > conftest.$ac_ext
10133    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10134      # The compiler can only warn and ignore the option if not recognized
10135      # So say no if there are warnings
10136      if test -s conftest.err; then
10137        # Append any errors to the config.log.
10138        cat conftest.err 1>&5
10139      else
10140        lt_prog_compiler_static_works=yes
10141      fi
10142    fi
10143    $rm conftest*
10144    LDFLAGS="$save_LDFLAGS"
10145
10146 fi
10147 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10148 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
10149
10150 if test x"$lt_prog_compiler_static_works" = xyes; then
10151     :
10152 else
10153     lt_prog_compiler_static=
10154 fi
10155
10156
10157
10158 ## CAVEAT EMPTOR:
10159 ## There is no encapsulation within the following macros, do not change
10160 ## the running order or otherwise move them around unless you know exactly
10161 ## what you are doing...
10162
10163 lt_prog_compiler_no_builtin_flag=
10164
10165 if test "$GCC" = yes; then
10166   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10167
10168
10169 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10170 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
10171 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10172   echo $ECHO_N "(cached) $ECHO_C" >&6
10173 else
10174   lt_cv_prog_compiler_rtti_exceptions=no
10175   ac_outfile=conftest.$ac_objext
10176    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10177    lt_compiler_flag="-fno-rtti -fno-exceptions"
10178    # Insert the option either (1) after the last *FLAGS variable, or
10179    # (2) before a word containing "conftest.", or (3) at the end.
10180    # Note that $ac_compile itself does not contain backslashes and begins
10181    # with a dollar sign (not a hyphen), so the echo should work correctly.
10182    # The option is referenced via a variable to avoid confusing sed.
10183    lt_compile=`echo "$ac_compile" | $SED \
10184    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10185    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10186    -e 's:$: $lt_compiler_flag:'`
10187    (eval echo "\"\$as_me:10187: $lt_compile\"" >&5)
10188    (eval "$lt_compile" 2>conftest.err)
10189    ac_status=$?
10190    cat conftest.err >&5
10191    echo "$as_me:10191: \$? = $ac_status" >&5
10192    if (exit $ac_status) && test -s "$ac_outfile"; then
10193      # The compiler can only warn and ignore the option if not recognized
10194      # So say no if there are warnings
10195      if test ! -s conftest.err; then
10196        lt_cv_prog_compiler_rtti_exceptions=yes
10197      fi
10198    fi
10199    $rm conftest*
10200
10201 fi
10202 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10203 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
10204
10205 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10206     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10207 else
10208     :
10209 fi
10210
10211 fi
10212
10213 lt_prog_compiler_wl=
10214 lt_prog_compiler_pic=
10215 lt_prog_compiler_static=
10216
10217 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10218 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10219
10220   if test "$GCC" = yes; then
10221     lt_prog_compiler_wl='-Wl,'
10222     lt_prog_compiler_static='-static'
10223
10224     case $host_os in
10225       aix*)
10226       # All AIX code is PIC.
10227       if test "$host_cpu" = ia64; then
10228         # AIX 5 now supports IA64 processor
10229         lt_prog_compiler_static='-Bstatic'
10230       fi
10231       ;;
10232
10233     amigaos*)
10234       # FIXME: we need at least 68020 code to build shared libraries, but
10235       # adding the `-m68020' flag to GCC prevents building anything better,
10236       # like `-m68040'.
10237       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10238       ;;
10239
10240     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10241       # PIC is the default for these OSes.
10242       ;;
10243
10244     mingw* | pw32* | os2*)
10245       # This hack is so that the source file can tell whether it is being
10246       # built for inclusion in a dll (and should export symbols for example).
10247       lt_prog_compiler_pic='-DDLL_EXPORT'
10248       ;;
10249
10250     darwin* | rhapsody*)
10251       # PIC is the default on this platform
10252       # Common symbols not allowed in MH_DYLIB files
10253       lt_prog_compiler_pic='-fno-common'
10254       ;;
10255
10256     msdosdjgpp*)
10257       # Just because we use GCC doesn't mean we suddenly get shared libraries
10258       # on systems that don't support them.
10259       lt_prog_compiler_can_build_shared=no
10260       enable_shared=no
10261       ;;
10262
10263     sysv4*MP*)
10264       if test -d /usr/nec; then
10265         lt_prog_compiler_pic=-Kconform_pic
10266       fi
10267       ;;
10268
10269     hpux*)
10270       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10271       # not for PA HP-UX.
10272       case "$host_cpu" in
10273       hppa*64*|ia64*)
10274         # +Z the default
10275         ;;
10276       *)
10277         lt_prog_compiler_pic='-fPIC'
10278         ;;
10279       esac
10280       ;;
10281
10282     *)
10283       lt_prog_compiler_pic='-fPIC'
10284       ;;
10285     esac
10286   else
10287     # PORTME Check for flag to pass linker flags through the system compiler.
10288     case $host_os in
10289     aix*)
10290       lt_prog_compiler_wl='-Wl,'
10291       if test "$host_cpu" = ia64; then
10292         # AIX 5 now supports IA64 processor
10293         lt_prog_compiler_static='-Bstatic'
10294       else
10295         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10296       fi
10297       ;;
10298       darwin*)
10299         # PIC is the default on this platform
10300         # Common symbols not allowed in MH_DYLIB files
10301        case "$cc_basename" in
10302          xlc*)
10303          lt_prog_compiler_pic='-qnocommon'
10304          lt_prog_compiler_wl='-Wl,'
10305          ;;
10306        esac
10307        ;;
10308
10309     mingw* | pw32* | os2*)
10310       # This hack is so that the source file can tell whether it is being
10311       # built for inclusion in a dll (and should export symbols for example).
10312       lt_prog_compiler_pic='-DDLL_EXPORT'
10313       ;;
10314
10315     hpux9* | hpux10* | hpux11*)
10316       lt_prog_compiler_wl='-Wl,'
10317       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10318       # not for PA HP-UX.
10319       case "$host_cpu" in
10320       hppa*64*|ia64*)
10321         # +Z the default
10322         ;;
10323       *)
10324         lt_prog_compiler_pic='+Z'
10325         ;;
10326       esac
10327       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10328       lt_prog_compiler_static='${wl}-a ${wl}archive'
10329       ;;
10330
10331     irix5* | irix6* | nonstopux*)
10332       lt_prog_compiler_wl='-Wl,'
10333       # PIC (with -KPIC) is the default.
10334       lt_prog_compiler_static='-non_shared'
10335       ;;
10336
10337     newsos6)
10338       lt_prog_compiler_pic='-KPIC'
10339       lt_prog_compiler_static='-Bstatic'
10340       ;;
10341
10342     linux*)
10343       case $CC in
10344       icc* | ecc*)
10345         lt_prog_compiler_wl='-Wl,'
10346         lt_prog_compiler_pic='-KPIC'
10347         lt_prog_compiler_static='-static'
10348         ;;
10349       ccc*)
10350         lt_prog_compiler_wl='-Wl,'
10351         # All Alpha code is PIC.
10352         lt_prog_compiler_static='-non_shared'
10353         ;;
10354       esac
10355       ;;
10356
10357     osf3* | osf4* | osf5*)
10358       lt_prog_compiler_wl='-Wl,'
10359       # All OSF/1 code is PIC.
10360       lt_prog_compiler_static='-non_shared'
10361       ;;
10362
10363     sco3.2v5*)
10364       lt_prog_compiler_pic='-Kpic'
10365       lt_prog_compiler_static='-dn'
10366       ;;
10367
10368     solaris*)
10369       lt_prog_compiler_wl='-Wl,'
10370       lt_prog_compiler_pic='-KPIC'
10371       lt_prog_compiler_static='-Bstatic'
10372       ;;
10373
10374     sunos4*)
10375       lt_prog_compiler_wl='-Qoption ld '
10376       lt_prog_compiler_pic='-PIC'
10377       lt_prog_compiler_static='-Bstatic'
10378       ;;
10379
10380     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10381       lt_prog_compiler_wl='-Wl,'
10382       lt_prog_compiler_pic='-KPIC'
10383       lt_prog_compiler_static='-Bstatic'
10384       ;;
10385
10386     sysv4*MP*)
10387       if test -d /usr/nec ;then
10388         lt_prog_compiler_pic='-Kconform_pic'
10389         lt_prog_compiler_static='-Bstatic'
10390       fi
10391       ;;
10392
10393     uts4*)
10394       lt_prog_compiler_pic='-pic'
10395       lt_prog_compiler_static='-Bstatic'
10396       ;;
10397
10398     *)
10399       lt_prog_compiler_can_build_shared=no
10400       ;;
10401     esac
10402   fi
10403
10404 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10405 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
10406
10407 #
10408 # Check to make sure the PIC flag actually works.
10409 #
10410 if test -n "$lt_prog_compiler_pic"; then
10411
10412 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10413 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
10414 if test "${lt_prog_compiler_pic_works+set}" = set; then
10415   echo $ECHO_N "(cached) $ECHO_C" >&6
10416 else
10417   lt_prog_compiler_pic_works=no
10418   ac_outfile=conftest.$ac_objext
10419    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10420    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10421    # Insert the option either (1) after the last *FLAGS variable, or
10422    # (2) before a word containing "conftest.", or (3) at the end.
10423    # Note that $ac_compile itself does not contain backslashes and begins
10424    # with a dollar sign (not a hyphen), so the echo should work correctly.
10425    # The option is referenced via a variable to avoid confusing sed.
10426    lt_compile=`echo "$ac_compile" | $SED \
10427    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10428    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10429    -e 's:$: $lt_compiler_flag:'`
10430    (eval echo "\"\$as_me:10430: $lt_compile\"" >&5)
10431    (eval "$lt_compile" 2>conftest.err)
10432    ac_status=$?
10433    cat conftest.err >&5
10434    echo "$as_me:10434: \$? = $ac_status" >&5
10435    if (exit $ac_status) && test -s "$ac_outfile"; then
10436      # The compiler can only warn and ignore the option if not recognized
10437      # So say no if there are warnings
10438      if test ! -s conftest.err; then
10439        lt_prog_compiler_pic_works=yes
10440      fi
10441    fi
10442    $rm conftest*
10443
10444 fi
10445 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10446 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
10447
10448 if test x"$lt_prog_compiler_pic_works" = xyes; then
10449     case $lt_prog_compiler_pic in
10450      "" | " "*) ;;
10451      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10452      esac
10453 else
10454     lt_prog_compiler_pic=
10455      lt_prog_compiler_can_build_shared=no
10456 fi
10457
10458 fi
10459 case "$host_os" in
10460   # For platforms which do not support PIC, -DPIC is meaningless:
10461   *djgpp*)
10462     lt_prog_compiler_pic=
10463     ;;
10464   *)
10465     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10466     ;;
10467 esac
10468
10469 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10470 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10471 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10472   echo $ECHO_N "(cached) $ECHO_C" >&6
10473 else
10474   lt_cv_prog_compiler_c_o=no
10475    $rm -r conftest 2>/dev/null
10476    mkdir conftest
10477    cd conftest
10478    mkdir out
10479    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10480
10481    lt_compiler_flag="-o out/conftest2.$ac_objext"
10482    # Insert the option either (1) after the last *FLAGS variable, or
10483    # (2) before a word containing "conftest.", or (3) at the end.
10484    # Note that $ac_compile itself does not contain backslashes and begins
10485    # with a dollar sign (not a hyphen), so the echo should work correctly.
10486    lt_compile=`echo "$ac_compile" | $SED \
10487    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10488    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10489    -e 's:$: $lt_compiler_flag:'`
10490    (eval echo "\"\$as_me:10490: $lt_compile\"" >&5)
10491    (eval "$lt_compile" 2>out/conftest.err)
10492    ac_status=$?
10493    cat out/conftest.err >&5
10494    echo "$as_me:10494: \$? = $ac_status" >&5
10495    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10496    then
10497      # The compiler can only warn and ignore the option if not recognized
10498      # So say no if there are warnings
10499      if test ! -s out/conftest.err; then
10500        lt_cv_prog_compiler_c_o=yes
10501      fi
10502    fi
10503    chmod u+w .
10504    $rm conftest*
10505    # SGI C++ compiler will create directory out/ii_files/ for
10506    # template instantiation
10507    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10508    $rm out/* && rmdir out
10509    cd ..
10510    rmdir conftest
10511    $rm conftest*
10512
10513 fi
10514 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10515 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10516
10517
10518 hard_links="nottested"
10519 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10520   # do not overwrite the value of need_locks provided by the user
10521   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10522 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10523   hard_links=yes
10524   $rm conftest*
10525   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10526   touch conftest.a
10527   ln conftest.a conftest.b 2>&5 || hard_links=no
10528   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10529   echo "$as_me:$LINENO: result: $hard_links" >&5
10530 echo "${ECHO_T}$hard_links" >&6
10531   if test "$hard_links" = no; then
10532     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10533 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10534     need_locks=warn
10535   fi
10536 else
10537   need_locks=no
10538 fi
10539
10540 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10541 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10542
10543   runpath_var=
10544   allow_undefined_flag=
10545   enable_shared_with_static_runtimes=no
10546   archive_cmds=
10547   archive_expsym_cmds=
10548   old_archive_From_new_cmds=
10549   old_archive_from_expsyms_cmds=
10550   export_dynamic_flag_spec=
10551   whole_archive_flag_spec=
10552   thread_safe_flag_spec=
10553   hardcode_libdir_flag_spec=
10554   hardcode_libdir_flag_spec_ld=
10555   hardcode_libdir_separator=
10556   hardcode_direct=no
10557   hardcode_minus_L=no
10558   hardcode_shlibpath_var=unsupported
10559   link_all_deplibs=unknown
10560   hardcode_automatic=no
10561   module_cmds=
10562   module_expsym_cmds=
10563   always_export_symbols=no
10564   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10565   # include_expsyms should be a list of space-separated symbols to be *always*
10566   # included in the symbol list
10567   include_expsyms=
10568   # exclude_expsyms can be an extended regexp of symbols to exclude
10569   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10570   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10571   # as well as any symbol that contains `d'.
10572   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10573   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10574   # platforms (ab)use it in PIC code, but their linkers get confused if
10575   # the symbol is explicitly referenced.  Since portable code cannot
10576   # rely on this symbol name, it's probably fine to never include it in
10577   # preloaded symbol tables.
10578   extract_expsyms_cmds=
10579
10580   case $host_os in
10581   cygwin* | mingw* | pw32*)
10582     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10583     # When not using gcc, we currently assume that we are using
10584     # Microsoft Visual C++.
10585     if test "$GCC" != yes; then
10586       with_gnu_ld=no
10587     fi
10588     ;;
10589   openbsd*)
10590     with_gnu_ld=no
10591     ;;
10592   esac
10593
10594   ld_shlibs=yes
10595   if test "$with_gnu_ld" = yes; then
10596     # If archive_cmds runs LD, not CC, wlarc should be empty
10597     wlarc='${wl}'
10598
10599     # See if GNU ld supports shared libraries.
10600     case $host_os in
10601     aix3* | aix4* | aix5*)
10602       # On AIX/PPC, the GNU linker is very broken
10603       if test "$host_cpu" != ia64; then
10604         ld_shlibs=no
10605         cat <<EOF 1>&2
10606
10607 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10608 *** to be unable to reliably create shared libraries on AIX.
10609 *** Therefore, libtool is disabling shared libraries support.  If you
10610 *** really care for shared libraries, you may want to modify your PATH
10611 *** so that a non-GNU linker is found, and then restart.
10612
10613 EOF
10614       fi
10615       ;;
10616
10617     amigaos*)
10618       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)'
10619       hardcode_libdir_flag_spec='-L$libdir'
10620       hardcode_minus_L=yes
10621
10622       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10623       # that the semantics of dynamic libraries on AmigaOS, at least up
10624       # to version 4, is to share data among multiple programs linked
10625       # with the same dynamic library.  Since this doesn't match the
10626       # behavior of shared libraries on other platforms, we can't use
10627       # them.
10628       ld_shlibs=no
10629       ;;
10630
10631     beos*)
10632       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10633         allow_undefined_flag=unsupported
10634         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10635         # support --undefined.  This deserves some investigation.  FIXME
10636         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10637       else
10638         ld_shlibs=no
10639       fi
10640       ;;
10641
10642     cygwin* | mingw* | pw32*)
10643       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10644       # as there is no search path for DLLs.
10645       hardcode_libdir_flag_spec='-L$libdir'
10646       allow_undefined_flag=unsupported
10647       always_export_symbols=no
10648       enable_shared_with_static_runtimes=yes
10649       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10650
10651       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10652         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10653         # If the export-symbols file already is a .def file (1st line
10654         # is EXPORTS), use it as is; otherwise, prepend...
10655         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10656           cp $export_symbols $output_objdir/$soname.def;
10657         else
10658           echo EXPORTS > $output_objdir/$soname.def;
10659           cat $export_symbols >> $output_objdir/$soname.def;
10660         fi~
10661         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
10662       else
10663         ld_shlibs=no
10664       fi
10665       ;;
10666
10667     netbsd*)
10668       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10669         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10670         wlarc=
10671       else
10672         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10673         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10674       fi
10675       ;;
10676
10677     solaris* | sysv5*)
10678       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10679         ld_shlibs=no
10680         cat <<EOF 1>&2
10681
10682 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10683 *** create shared libraries on Solaris systems.  Therefore, libtool
10684 *** is disabling shared libraries support.  We urge you to upgrade GNU
10685 *** binutils to release 2.9.1 or newer.  Another option is to modify
10686 *** your PATH or compiler configuration so that the native linker is
10687 *** used, and then restart.
10688
10689 EOF
10690       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10691         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10692         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10693       else
10694         ld_shlibs=no
10695       fi
10696       ;;
10697
10698     sunos4*)
10699       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10700       wlarc=
10701       hardcode_direct=yes
10702       hardcode_shlibpath_var=no
10703       ;;
10704
10705   linux*)
10706     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10707         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10708         archive_cmds="$tmp_archive_cmds"
10709       supports_anon_versioning=no
10710       case `$LD -v 2>/dev/null` in
10711         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10712         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10713         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10714         *\ 2.11.*) ;; # other 2.11 versions
10715         *) supports_anon_versioning=yes ;;
10716       esac
10717       if test $supports_anon_versioning = yes; then
10718         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10719 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10720 $echo "local: *; };" >> $output_objdir/$libname.ver~
10721         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10722       else
10723         archive_expsym_cmds="$tmp_archive_cmds"
10724       fi
10725     else
10726       ld_shlibs=no
10727     fi
10728     ;;
10729
10730     *)
10731       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10732         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10733         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10734       else
10735         ld_shlibs=no
10736       fi
10737       ;;
10738     esac
10739
10740     if test "$ld_shlibs" = yes; then
10741       runpath_var=LD_RUN_PATH
10742       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10743       export_dynamic_flag_spec='${wl}--export-dynamic'
10744       # ancient GNU ld didn't support --whole-archive et. al.
10745       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10746         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10747       else
10748         whole_archive_flag_spec=
10749       fi
10750     fi
10751   else
10752     # PORTME fill in a description of your system's linker (not GNU ld)
10753     case $host_os in
10754     aix3*)
10755       allow_undefined_flag=unsupported
10756       always_export_symbols=yes
10757       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'
10758       # Note: this linker hardcodes the directories in LIBPATH if there
10759       # are no directories specified by -L.
10760       hardcode_minus_L=yes
10761       if test "$GCC" = yes && test -z "$link_static_flag"; then
10762         # Neither direct hardcoding nor static linking is supported with a
10763         # broken collect2.
10764         hardcode_direct=unsupported
10765       fi
10766       ;;
10767
10768     aix4* | aix5*)
10769       if test "$host_cpu" = ia64; then
10770         # On IA64, the linker does run time linking by default, so we don't
10771         # have to do anything special.
10772         aix_use_runtimelinking=no
10773         exp_sym_flag='-Bexport'
10774         no_entry_flag=""
10775       else
10776         # If we're using GNU nm, then we don't want the "-C" option.
10777         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10778         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10779           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'
10780         else
10781           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'
10782         fi
10783         aix_use_runtimelinking=no
10784
10785         # Test if we are trying to use run time linking or normal
10786         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10787         # need to do runtime linking.
10788         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10789           for ld_flag in $LDFLAGS; do
10790           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10791             aix_use_runtimelinking=yes
10792             break
10793           fi
10794           done
10795         esac
10796
10797         exp_sym_flag='-bexport'
10798         no_entry_flag='-bnoentry'
10799       fi
10800
10801       # When large executables or shared objects are built, AIX ld can
10802       # have problems creating the table of contents.  If linking a library
10803       # or program results in "error TOC overflow" add -mminimal-toc to
10804       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10805       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10806
10807       archive_cmds=''
10808       hardcode_direct=yes
10809       hardcode_libdir_separator=':'
10810       link_all_deplibs=yes
10811
10812       if test "$GCC" = yes; then
10813         case $host_os in aix4.012|aix4.012.*)
10814         # We only want to do this on AIX 4.2 and lower, the check
10815         # below for broken collect2 doesn't work under 4.3+
10816           collect2name=`${CC} -print-prog-name=collect2`
10817           if test -f "$collect2name" && \
10818            strings "$collect2name" | grep resolve_lib_name >/dev/null
10819           then
10820           # We have reworked collect2
10821           hardcode_direct=yes
10822           else
10823           # We have old collect2
10824           hardcode_direct=unsupported
10825           # It fails to find uninstalled libraries when the uninstalled
10826           # path is not listed in the libpath.  Setting hardcode_minus_L
10827           # to unsupported forces relinking
10828           hardcode_minus_L=yes
10829           hardcode_libdir_flag_spec='-L$libdir'
10830           hardcode_libdir_separator=
10831           fi
10832         esac
10833         shared_flag='-shared'
10834       else
10835         # not using gcc
10836         if test "$host_cpu" = ia64; then
10837         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10838         # chokes on -Wl,-G. The following line is correct:
10839           shared_flag='-G'
10840         else
10841         if test "$aix_use_runtimelinking" = yes; then
10842             shared_flag='${wl}-G'
10843           else
10844             shared_flag='${wl}-bM:SRE'
10845         fi
10846         fi
10847       fi
10848
10849       # It seems that -bexpall does not export symbols beginning with
10850       # underscore (_), so it is better to generate a list of symbols to export.
10851       always_export_symbols=yes
10852       if test "$aix_use_runtimelinking" = yes; then
10853         # Warning - without using the other runtime loading flags (-brtl),
10854         # -berok will link without error, but may produce a broken library.
10855         allow_undefined_flag='-berok'
10856        # Determine the default libpath from the value encoded in an empty executable.
10857        cat >conftest.$ac_ext <<_ACEOF
10858 /* confdefs.h.  */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h.  */
10863
10864 int
10865 main ()
10866 {
10867
10868   ;
10869   return 0;
10870 }
10871 _ACEOF
10872 rm -f conftest.$ac_objext conftest$ac_exeext
10873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10874   (eval $ac_link) 2>conftest.er1
10875   ac_status=$?
10876   grep -v '^ *+' conftest.er1 >conftest.err
10877   rm -f conftest.er1
10878   cat conftest.err >&5
10879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880   (exit $ac_status); } &&
10881          { ac_try='test -z "$ac_c_werror_flag"
10882                          || test ! -s conftest.err'
10883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884   (eval $ac_try) 2>&5
10885   ac_status=$?
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); }; } &&
10888          { ac_try='test -s conftest$ac_exeext'
10889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890   (eval $ac_try) 2>&5
10891   ac_status=$?
10892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893   (exit $ac_status); }; }; then
10894
10895 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10896 }'`
10897 # Check for a 64-bit object if we didn't find anything.
10898 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; }
10899 }'`; fi
10900 else
10901   echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10903
10904 fi
10905 rm -f conftest.err conftest.$ac_objext \
10906       conftest$ac_exeext conftest.$ac_ext
10907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10908
10909        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10910         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10911        else
10912         if test "$host_cpu" = ia64; then
10913           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10914           allow_undefined_flag="-z nodefs"
10915           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10916         else
10917          # Determine the default libpath from the value encoded in an empty executable.
10918          cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h.  */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h.  */
10924
10925 int
10926 main ()
10927 {
10928
10929   ;
10930   return 0;
10931 }
10932 _ACEOF
10933 rm -f conftest.$ac_objext conftest$ac_exeext
10934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10935   (eval $ac_link) 2>conftest.er1
10936   ac_status=$?
10937   grep -v '^ *+' conftest.er1 >conftest.err
10938   rm -f conftest.er1
10939   cat conftest.err >&5
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); } &&
10942          { ac_try='test -z "$ac_c_werror_flag"
10943                          || test ! -s conftest.err'
10944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945   (eval $ac_try) 2>&5
10946   ac_status=$?
10947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); }; } &&
10949          { ac_try='test -s conftest$ac_exeext'
10950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951   (eval $ac_try) 2>&5
10952   ac_status=$?
10953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954   (exit $ac_status); }; }; then
10955
10956 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10957 }'`
10958 # Check for a 64-bit object if we didn't find anything.
10959 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; }
10960 }'`; fi
10961 else
10962   echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10964
10965 fi
10966 rm -f conftest.err conftest.$ac_objext \
10967       conftest$ac_exeext conftest.$ac_ext
10968 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10969
10970          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10971           # Warning - without using the other run time loading flags,
10972           # -berok will link without error, but may produce a broken library.
10973           no_undefined_flag=' ${wl}-bernotok'
10974           allow_undefined_flag=' ${wl}-berok'
10975           # -bexpall does not export symbols beginning with underscore (_)
10976           always_export_symbols=yes
10977           # Exported symbols can be pulled into shared objects from archives
10978           whole_archive_flag_spec=' '
10979           archive_cmds_need_lc=yes
10980           # This is similar to how AIX traditionally builds it's shared libraries.
10981           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10982         fi
10983       fi
10984       ;;
10985
10986     amigaos*)
10987       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)'
10988       hardcode_libdir_flag_spec='-L$libdir'
10989       hardcode_minus_L=yes
10990       # see comment about different semantics on the GNU ld section
10991       ld_shlibs=no
10992       ;;
10993
10994     bsdi[45]*)
10995       export_dynamic_flag_spec=-rdynamic
10996       ;;
10997
10998     cygwin* | mingw* | pw32*)
10999       # When not using gcc, we currently assume that we are using
11000       # Microsoft Visual C++.
11001       # hardcode_libdir_flag_spec is actually meaningless, as there is
11002       # no search path for DLLs.
11003       hardcode_libdir_flag_spec=' '
11004       allow_undefined_flag=unsupported
11005       # Tell ltmain to make .lib files, not .a files.
11006       libext=lib
11007       # Tell ltmain to make .dll files, not .so files.
11008       shrext_cmds=".dll"
11009       # FIXME: Setting linknames here is a bad hack.
11010       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11011       # The linker will automatically build a .lib file if we build a DLL.
11012       old_archive_From_new_cmds='true'
11013       # FIXME: Should let the user specify the lib program.
11014       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
11015       fix_srcfile_path='`cygpath -w "$srcfile"`'
11016       enable_shared_with_static_runtimes=yes
11017       ;;
11018
11019     darwin* | rhapsody*)
11020       case "$host_os" in
11021         rhapsody* | darwin1.[012])
11022          allow_undefined_flag='${wl}-undefined ${wl}suppress'
11023          ;;
11024        *) # Darwin 1.3 on
11025          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11026            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11027          else
11028            case ${MACOSX_DEPLOYMENT_TARGET} in
11029              10.[012])
11030                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11031                ;;
11032              10.*)
11033                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
11034                ;;
11035            esac
11036          fi
11037          ;;
11038       esac
11039       archive_cmds_need_lc=no
11040       hardcode_direct=no
11041       hardcode_automatic=yes
11042       hardcode_shlibpath_var=unsupported
11043       whole_archive_flag_spec=''
11044       link_all_deplibs=yes
11045     if test "$GCC" = yes ; then
11046         output_verbose_link_cmd='echo'
11047         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11048       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11049       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11050       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}'
11051       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}'
11052     else
11053       case "$cc_basename" in
11054         xlc*)
11055          output_verbose_link_cmd='echo'
11056          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11057          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11058           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11059          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}'
11060           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}'
11061           ;;
11062        *)
11063          ld_shlibs=no
11064           ;;
11065       esac
11066     fi
11067       ;;
11068
11069     dgux*)
11070       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11071       hardcode_libdir_flag_spec='-L$libdir'
11072       hardcode_shlibpath_var=no
11073       ;;
11074
11075     freebsd1*)
11076       ld_shlibs=no
11077       ;;
11078
11079     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11080     # support.  Future versions do this automatically, but an explicit c++rt0.o
11081     # does not break anything, and helps significantly (at the cost of a little
11082     # extra space).
11083     freebsd2.2*)
11084       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11085       hardcode_libdir_flag_spec='-R$libdir'
11086       hardcode_direct=yes
11087       hardcode_shlibpath_var=no
11088       ;;
11089
11090     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11091     freebsd2*)
11092       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11093       hardcode_direct=yes
11094       hardcode_minus_L=yes
11095       hardcode_shlibpath_var=no
11096       ;;
11097
11098     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11099     freebsd* | kfreebsd*-gnu)
11100       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11101       hardcode_libdir_flag_spec='-R$libdir'
11102       hardcode_direct=yes
11103       hardcode_shlibpath_var=no
11104       ;;
11105
11106     hpux9*)
11107       if test "$GCC" = yes; then
11108         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'
11109       else
11110         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'
11111       fi
11112       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11113       hardcode_libdir_separator=:
11114       hardcode_direct=yes
11115
11116       # hardcode_minus_L: Not really in the search PATH,
11117       # but as the default location of the library.
11118       hardcode_minus_L=yes
11119       export_dynamic_flag_spec='${wl}-E'
11120       ;;
11121
11122     hpux10* | hpux11*)
11123       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11124         case "$host_cpu" in
11125         hppa*64*|ia64*)
11126           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11127           ;;
11128         *)
11129           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11130           ;;
11131         esac
11132       else
11133         case "$host_cpu" in
11134         hppa*64*|ia64*)
11135           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
11136           ;;
11137         *)
11138           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11139           ;;
11140         esac
11141       fi
11142       if test "$with_gnu_ld" = no; then
11143         case "$host_cpu" in
11144         hppa*64*)
11145           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11146           hardcode_libdir_flag_spec_ld='+b $libdir'
11147           hardcode_libdir_separator=:
11148           hardcode_direct=no
11149           hardcode_shlibpath_var=no
11150           ;;
11151         ia64*)
11152           hardcode_libdir_flag_spec='-L$libdir'
11153           hardcode_direct=no
11154           hardcode_shlibpath_var=no
11155
11156           # hardcode_minus_L: Not really in the search PATH,
11157           # but as the default location of the library.
11158           hardcode_minus_L=yes
11159           ;;
11160         *)
11161           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11162           hardcode_libdir_separator=:
11163           hardcode_direct=yes
11164           export_dynamic_flag_spec='${wl}-E'
11165
11166           # hardcode_minus_L: Not really in the search PATH,
11167           # but as the default location of the library.
11168           hardcode_minus_L=yes
11169           ;;
11170         esac
11171       fi
11172       ;;
11173
11174     irix5* | irix6* | nonstopux*)
11175       if test "$GCC" = yes; then
11176         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'
11177       else
11178         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'
11179         hardcode_libdir_flag_spec_ld='-rpath $libdir'
11180       fi
11181       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11182       hardcode_libdir_separator=:
11183       link_all_deplibs=yes
11184       ;;
11185
11186     netbsd*)
11187       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11188         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11189       else
11190         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11191       fi
11192       hardcode_libdir_flag_spec='-R$libdir'
11193       hardcode_direct=yes
11194       hardcode_shlibpath_var=no
11195       ;;
11196
11197     newsos6)
11198       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11199       hardcode_direct=yes
11200       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11201       hardcode_libdir_separator=:
11202       hardcode_shlibpath_var=no
11203       ;;
11204
11205     openbsd*)
11206       hardcode_direct=yes
11207       hardcode_shlibpath_var=no
11208       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11209         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11210         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11211         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11212         export_dynamic_flag_spec='${wl}-E'
11213       else
11214        case $host_os in
11215          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11216            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11217            hardcode_libdir_flag_spec='-R$libdir'
11218            ;;
11219          *)
11220            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11221            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11222            ;;
11223        esac
11224       fi
11225       ;;
11226
11227     os2*)
11228       hardcode_libdir_flag_spec='-L$libdir'
11229       hardcode_minus_L=yes
11230       allow_undefined_flag=unsupported
11231       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'
11232       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11233       ;;
11234
11235     osf3*)
11236       if test "$GCC" = yes; then
11237         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11238         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'
11239       else
11240         allow_undefined_flag=' -expect_unresolved \*'
11241         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'
11242       fi
11243       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11244       hardcode_libdir_separator=:
11245       ;;
11246
11247     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11248       if test "$GCC" = yes; then
11249         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11250         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'
11251         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11252       else
11253         allow_undefined_flag=' -expect_unresolved \*'
11254         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'
11255         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11256         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
11257
11258         # Both c and cxx compiler support -rpath directly
11259         hardcode_libdir_flag_spec='-rpath $libdir'
11260       fi
11261       hardcode_libdir_separator=:
11262       ;;
11263
11264     sco3.2v5*)
11265       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11266       hardcode_shlibpath_var=no
11267       export_dynamic_flag_spec='${wl}-Bexport'
11268       runpath_var=LD_RUN_PATH
11269       hardcode_runpath_var=yes
11270       ;;
11271
11272     solaris*)
11273       no_undefined_flag=' -z text'
11274       if test "$GCC" = yes; then
11275         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11276         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11277           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11278       else
11279         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11280         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11281         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11282       fi
11283       hardcode_libdir_flag_spec='-R$libdir'
11284       hardcode_shlibpath_var=no
11285       case $host_os in
11286       solaris2.[0-5] | solaris2.[0-5].*) ;;
11287       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
11288         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
11289       esac
11290       link_all_deplibs=yes
11291       ;;
11292
11293     sunos4*)
11294       if test "x$host_vendor" = xsequent; then
11295         # Use $CC to link under sequent, because it throws in some extra .o
11296         # files that make .init and .fini sections work.
11297         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11298       else
11299         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11300       fi
11301       hardcode_libdir_flag_spec='-L$libdir'
11302       hardcode_direct=yes
11303       hardcode_minus_L=yes
11304       hardcode_shlibpath_var=no
11305       ;;
11306
11307     sysv4)
11308       case $host_vendor in
11309         sni)
11310           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11311           hardcode_direct=yes # is this really true???
11312         ;;
11313         siemens)
11314           ## LD is ld it makes a PLAMLIB
11315           ## CC just makes a GrossModule.
11316           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11317           reload_cmds='$CC -r -o $output$reload_objs'
11318           hardcode_direct=no
11319         ;;
11320         motorola)
11321           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11322           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11323         ;;
11324       esac
11325       runpath_var='LD_RUN_PATH'
11326       hardcode_shlibpath_var=no
11327       ;;
11328
11329     sysv4.3*)
11330       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11331       hardcode_shlibpath_var=no
11332       export_dynamic_flag_spec='-Bexport'
11333       ;;
11334
11335     sysv4*MP*)
11336       if test -d /usr/nec; then
11337         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11338         hardcode_shlibpath_var=no
11339         runpath_var=LD_RUN_PATH
11340         hardcode_runpath_var=yes
11341         ld_shlibs=yes
11342       fi
11343       ;;
11344
11345     sysv4.2uw2*)
11346       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11347       hardcode_direct=yes
11348       hardcode_minus_L=no
11349       hardcode_shlibpath_var=no
11350       hardcode_runpath_var=yes
11351       runpath_var=LD_RUN_PATH
11352       ;;
11353
11354    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
11355       no_undefined_flag='${wl}-z ${wl}text'
11356       if test "$GCC" = yes; then
11357         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11358       else
11359         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11360       fi
11361       runpath_var='LD_RUN_PATH'
11362       hardcode_shlibpath_var=no
11363       ;;
11364
11365     sysv5*)
11366       no_undefined_flag=' -z text'
11367       # $CC -shared without GNU ld will not create a library from C++
11368       # object files and a static libstdc++, better avoid it by now
11369       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11370       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11371                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11372       hardcode_libdir_flag_spec=
11373       hardcode_shlibpath_var=no
11374       runpath_var='LD_RUN_PATH'
11375       ;;
11376
11377     uts4*)
11378       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11379       hardcode_libdir_flag_spec='-L$libdir'
11380       hardcode_shlibpath_var=no
11381       ;;
11382
11383     *)
11384       ld_shlibs=no
11385       ;;
11386     esac
11387   fi
11388
11389 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11390 echo "${ECHO_T}$ld_shlibs" >&6
11391 test "$ld_shlibs" = no && can_build_shared=no
11392
11393 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11394 if test "$GCC" = yes; then
11395   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11396 fi
11397
11398 #
11399 # Do we need to explicitly link libc?
11400 #
11401 case "x$archive_cmds_need_lc" in
11402 x|xyes)
11403   # Assume -lc should be added
11404   archive_cmds_need_lc=yes
11405
11406   if test "$enable_shared" = yes && test "$GCC" = yes; then
11407     case $archive_cmds in
11408     *'~'*)
11409       # FIXME: we may have to deal with multi-command sequences.
11410       ;;
11411     '$CC '*)
11412       # Test whether the compiler implicitly links with -lc since on some
11413       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11414       # to ld, don't add -lc before -lgcc.
11415       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11416 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11417       $rm conftest*
11418       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11419
11420       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11421   (eval $ac_compile) 2>&5
11422   ac_status=$?
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); } 2>conftest.err; then
11425         soname=conftest
11426         lib=conftest
11427         libobjs=conftest.$ac_objext
11428         deplibs=
11429         wl=$lt_prog_compiler_wl
11430         compiler_flags=-v
11431         linker_flags=-v
11432         verstring=
11433         output_objdir=.
11434         libname=conftest
11435         lt_save_allow_undefined_flag=$allow_undefined_flag
11436         allow_undefined_flag=
11437         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11438   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11439   ac_status=$?
11440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441   (exit $ac_status); }
11442         then
11443           archive_cmds_need_lc=no
11444         else
11445           archive_cmds_need_lc=yes
11446         fi
11447         allow_undefined_flag=$lt_save_allow_undefined_flag
11448       else
11449         cat conftest.err 1>&5
11450       fi
11451       $rm conftest*
11452       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11453 echo "${ECHO_T}$archive_cmds_need_lc" >&6
11454       ;;
11455     esac
11456   fi
11457   ;;
11458 esac
11459
11460 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11461 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11462 library_names_spec=
11463 libname_spec='lib$name'
11464 soname_spec=
11465 shrext_cmds=".so"
11466 postinstall_cmds=
11467 postuninstall_cmds=
11468 finish_cmds=
11469 finish_eval=
11470 shlibpath_var=
11471 shlibpath_overrides_runpath=unknown
11472 version_type=none
11473 dynamic_linker="$host_os ld.so"
11474 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11475 if test "$GCC" = yes; then
11476   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11477   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11478     # if the path contains ";" then we assume it to be the separator
11479     # otherwise default to the standard path separator (i.e. ":") - it is
11480     # assumed that no part of a normal pathname contains ";" but that should
11481     # okay in the real world where ";" in dirpaths is itself problematic.
11482     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11483   else
11484     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11485   fi
11486 else
11487   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11488 fi
11489 need_lib_prefix=unknown
11490 hardcode_into_libs=no
11491
11492 # when you set need_version to no, make sure it does not cause -set_version
11493 # flags to be left without arguments
11494 need_version=unknown
11495
11496 case $host_os in
11497 aix3*)
11498   version_type=linux
11499   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11500   shlibpath_var=LIBPATH
11501
11502   # AIX 3 has no versioning support, so we append a major version to the name.
11503   soname_spec='${libname}${release}${shared_ext}$major'
11504   ;;
11505
11506 aix4* | aix5*)
11507   version_type=linux
11508   need_lib_prefix=no
11509   need_version=no
11510   hardcode_into_libs=yes
11511   if test "$host_cpu" = ia64; then
11512     # AIX 5 supports IA64
11513     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11514     shlibpath_var=LD_LIBRARY_PATH
11515   else
11516     # With GCC up to 2.95.x, collect2 would create an import file
11517     # for dependence libraries.  The import file would start with
11518     # the line `#! .'.  This would cause the generated library to
11519     # depend on `.', always an invalid library.  This was fixed in
11520     # development snapshots of GCC prior to 3.0.
11521     case $host_os in
11522       aix4 | aix4.[01] | aix4.[01].*)
11523       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11524            echo ' yes '
11525            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11526         :
11527       else
11528         can_build_shared=no
11529       fi
11530       ;;
11531     esac
11532     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11533     # soname into executable. Probably we can add versioning support to
11534     # collect2, so additional links can be useful in future.
11535     if test "$aix_use_runtimelinking" = yes; then
11536       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11537       # instead of lib<name>.a to let people know that these are not
11538       # typical AIX shared libraries.
11539       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540     else
11541       # We preserve .a as extension for shared libraries through AIX4.2
11542       # and later when we are not doing run time linking.
11543       library_names_spec='${libname}${release}.a $libname.a'
11544       soname_spec='${libname}${release}${shared_ext}$major'
11545     fi
11546     shlibpath_var=LIBPATH
11547   fi
11548   ;;
11549
11550 amigaos*)
11551   library_names_spec='$libname.ixlibrary $libname.a'
11552   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11553   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'
11554   ;;
11555
11556 beos*)
11557   library_names_spec='${libname}${shared_ext}'
11558   dynamic_linker="$host_os ld.so"
11559   shlibpath_var=LIBRARY_PATH
11560   ;;
11561
11562 bsdi[45]*)
11563   version_type=linux
11564   need_version=no
11565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11566   soname_spec='${libname}${release}${shared_ext}$major'
11567   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11568   shlibpath_var=LD_LIBRARY_PATH
11569   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11570   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11571   # the default ld.so.conf also contains /usr/contrib/lib and
11572   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11573   # libtool to hard-code these into programs
11574   ;;
11575
11576 cygwin* | mingw* | pw32*)
11577   version_type=windows
11578   shrext_cmds=".dll"
11579   need_version=no
11580   need_lib_prefix=no
11581
11582   case $GCC,$host_os in
11583   yes,cygwin* | yes,mingw* | yes,pw32*)
11584     library_names_spec='$libname.dll.a'
11585     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11586     postinstall_cmds='base_file=`basename \${file}`~
11587       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11588       dldir=$destdir/`dirname \$dlpath`~
11589       test -d \$dldir || mkdir -p \$dldir~
11590       $install_prog $dir/$dlname \$dldir/$dlname'
11591     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11592       dlpath=$dir/\$dldll~
11593        $rm \$dlpath'
11594     shlibpath_overrides_runpath=yes
11595
11596     case $host_os in
11597     cygwin*)
11598       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11599       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11600       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11601       ;;
11602     mingw*)
11603       # MinGW DLLs use traditional 'lib' prefix
11604       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11605       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11606       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11607         # It is most probably a Windows format PATH printed by
11608         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11609         # path with ; separators, and with drive letters. We can handle the
11610         # drive letters (cygwin fileutils understands them), so leave them,
11611         # especially as we might pass files found there to a mingw objdump,
11612         # which wouldn't understand a cygwinified path. Ahh.
11613         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11614       else
11615         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11616       fi
11617       ;;
11618     pw32*)
11619       # pw32 DLLs use 'pw' prefix rather than 'lib'
11620       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11621       ;;
11622     esac
11623     ;;
11624
11625   *)
11626     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11627     ;;
11628   esac
11629   dynamic_linker='Win32 ld.exe'
11630   # FIXME: first we should search . and the directory the executable is in
11631   shlibpath_var=PATH
11632   ;;
11633
11634 darwin* | rhapsody*)
11635   dynamic_linker="$host_os dyld"
11636   version_type=darwin
11637   need_lib_prefix=no
11638   need_version=no
11639   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11640   soname_spec='${libname}${release}${major}$shared_ext'
11641   shlibpath_overrides_runpath=yes
11642   shlibpath_var=DYLD_LIBRARY_PATH
11643   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11644   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11645   if test "$GCC" = yes; then
11646     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"`
11647   else
11648     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11649   fi
11650   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11651   ;;
11652
11653 dgux*)
11654   version_type=linux
11655   need_lib_prefix=no
11656   need_version=no
11657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11658   soname_spec='${libname}${release}${shared_ext}$major'
11659   shlibpath_var=LD_LIBRARY_PATH
11660   ;;
11661
11662 freebsd1*)
11663   dynamic_linker=no
11664   ;;
11665
11666 kfreebsd*-gnu)
11667   version_type=linux
11668   need_lib_prefix=no
11669   need_version=no
11670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11671   soname_spec='${libname}${release}${shared_ext}$major'
11672   shlibpath_var=LD_LIBRARY_PATH
11673   shlibpath_overrides_runpath=no
11674   hardcode_into_libs=yes
11675   dynamic_linker='GNU ld.so'
11676   ;;
11677
11678 freebsd*)
11679   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11680   version_type=freebsd-$objformat
11681   case $version_type in
11682     freebsd-elf*)
11683       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11684       need_version=no
11685       need_lib_prefix=no
11686       ;;
11687     freebsd-*)
11688       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11689       need_version=yes
11690       ;;
11691   esac
11692   shlibpath_var=LD_LIBRARY_PATH
11693   case $host_os in
11694   freebsd2*)
11695     shlibpath_overrides_runpath=yes
11696     ;;
11697   freebsd3.01* | freebsdelf3.01*)
11698     shlibpath_overrides_runpath=yes
11699     hardcode_into_libs=yes
11700     ;;
11701   *) # from 3.2 on
11702     shlibpath_overrides_runpath=no
11703     hardcode_into_libs=yes
11704     ;;
11705   esac
11706   ;;
11707
11708 gnu*)
11709   version_type=linux
11710   need_lib_prefix=no
11711   need_version=no
11712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11713   soname_spec='${libname}${release}${shared_ext}$major'
11714   shlibpath_var=LD_LIBRARY_PATH
11715   hardcode_into_libs=yes
11716   ;;
11717
11718 hpux9* | hpux10* | hpux11*)
11719   # Give a soname corresponding to the major version so that dld.sl refuses to
11720   # link against other versions.
11721   version_type=sunos
11722   need_lib_prefix=no
11723   need_version=no
11724   case "$host_cpu" in
11725   ia64*)
11726     shrext_cmds='.so'
11727     hardcode_into_libs=yes
11728     dynamic_linker="$host_os dld.so"
11729     shlibpath_var=LD_LIBRARY_PATH
11730     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11732     soname_spec='${libname}${release}${shared_ext}$major'
11733     if test "X$HPUX_IA64_MODE" = X32; then
11734       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11735     else
11736       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11737     fi
11738     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11739     ;;
11740    hppa*64*)
11741      shrext_cmds='.sl'
11742      hardcode_into_libs=yes
11743      dynamic_linker="$host_os dld.sl"
11744      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11745      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11746      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11747      soname_spec='${libname}${release}${shared_ext}$major'
11748      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11749      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11750      ;;
11751    *)
11752     shrext_cmds='.sl'
11753     dynamic_linker="$host_os dld.sl"
11754     shlibpath_var=SHLIB_PATH
11755     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11756     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11757     soname_spec='${libname}${release}${shared_ext}$major'
11758     ;;
11759   esac
11760   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11761   postinstall_cmds='chmod 555 $lib'
11762   ;;
11763
11764 irix5* | irix6* | nonstopux*)
11765   case $host_os in
11766     nonstopux*) version_type=nonstopux ;;
11767     *)
11768         if test "$lt_cv_prog_gnu_ld" = yes; then
11769                 version_type=linux
11770         else
11771                 version_type=irix
11772         fi ;;
11773   esac
11774   need_lib_prefix=no
11775   need_version=no
11776   soname_spec='${libname}${release}${shared_ext}$major'
11777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11778   case $host_os in
11779   irix5* | nonstopux*)
11780     libsuff= shlibsuff=
11781     ;;
11782   *)
11783     case $LD in # libtool.m4 will add one of these switches to LD
11784     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11785       libsuff= shlibsuff= libmagic=32-bit;;
11786     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11787       libsuff=32 shlibsuff=N32 libmagic=N32;;
11788     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11789       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11790     *) libsuff= shlibsuff= libmagic=never-match;;
11791     esac
11792     ;;
11793   esac
11794   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11795   shlibpath_overrides_runpath=no
11796   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11797   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11798   hardcode_into_libs=yes
11799   ;;
11800
11801 # No shared lib support for Linux oldld, aout, or coff.
11802 linux*oldld* | linux*aout* | linux*coff*)
11803   dynamic_linker=no
11804   ;;
11805
11806 # This must be Linux ELF.
11807 linux*)
11808   version_type=linux
11809   need_lib_prefix=no
11810   need_version=no
11811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11812   soname_spec='${libname}${release}${shared_ext}$major'
11813   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11814   shlibpath_var=LD_LIBRARY_PATH
11815   shlibpath_overrides_runpath=no
11816   # This implies no fast_install, which is unacceptable.
11817   # Some rework will be needed to allow for fast_install
11818   # before this can be enabled.
11819   hardcode_into_libs=yes
11820
11821   # Append ld.so.conf contents to the search path
11822   if test -f /etc/ld.so.conf; then
11823     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11824     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11825   fi
11826
11827   # We used to test for /lib/ld.so.1 and disable shared libraries on
11828   # powerpc, because MkLinux only supported shared libraries with the
11829   # GNU dynamic linker.  Since this was broken with cross compilers,
11830   # most powerpc-linux boxes support dynamic linking these days and
11831   # people can always --disable-shared, the test was removed, and we
11832   # assume the GNU/Linux dynamic linker is in use.
11833   dynamic_linker='GNU/Linux ld.so'
11834   ;;
11835
11836 knetbsd*-gnu)
11837   version_type=linux
11838   need_lib_prefix=no
11839   need_version=no
11840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11841   soname_spec='${libname}${release}${shared_ext}$major'
11842   shlibpath_var=LD_LIBRARY_PATH
11843   shlibpath_overrides_runpath=no
11844   hardcode_into_libs=yes
11845   dynamic_linker='GNU ld.so'
11846   ;;
11847
11848 netbsd*)
11849   version_type=sunos
11850   need_lib_prefix=no
11851   need_version=no
11852   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11853     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11854     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11855     dynamic_linker='NetBSD (a.out) ld.so'
11856   else
11857     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11858     soname_spec='${libname}${release}${shared_ext}$major'
11859     dynamic_linker='NetBSD ld.elf_so'
11860   fi
11861   shlibpath_var=LD_LIBRARY_PATH
11862   shlibpath_overrides_runpath=yes
11863   hardcode_into_libs=yes
11864   ;;
11865
11866 newsos6)
11867   version_type=linux
11868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11869   shlibpath_var=LD_LIBRARY_PATH
11870   shlibpath_overrides_runpath=yes
11871   ;;
11872
11873 nto-qnx*)
11874   version_type=linux
11875   need_lib_prefix=no
11876   need_version=no
11877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11878   soname_spec='${libname}${release}${shared_ext}$major'
11879   shlibpath_var=LD_LIBRARY_PATH
11880   shlibpath_overrides_runpath=yes
11881   ;;
11882
11883 openbsd*)
11884   version_type=sunos
11885   need_lib_prefix=no
11886   need_version=no
11887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11888   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11889   shlibpath_var=LD_LIBRARY_PATH
11890   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11891     case $host_os in
11892       openbsd2.[89] | openbsd2.[89].*)
11893         shlibpath_overrides_runpath=no
11894         ;;
11895       *)
11896         shlibpath_overrides_runpath=yes
11897         ;;
11898       esac
11899   else
11900     shlibpath_overrides_runpath=yes
11901   fi
11902   ;;
11903
11904 os2*)
11905   libname_spec='$name'
11906   shrext_cmds=".dll"
11907   need_lib_prefix=no
11908   library_names_spec='$libname${shared_ext} $libname.a'
11909   dynamic_linker='OS/2 ld.exe'
11910   shlibpath_var=LIBPATH
11911   ;;
11912
11913 osf3* | osf4* | osf5*)
11914   version_type=osf
11915   need_lib_prefix=no
11916   need_version=no
11917   soname_spec='${libname}${release}${shared_ext}$major'
11918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11919   shlibpath_var=LD_LIBRARY_PATH
11920   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11921   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11922   ;;
11923
11924 sco3.2v5*)
11925   version_type=osf
11926   soname_spec='${libname}${release}${shared_ext}$major'
11927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11928   shlibpath_var=LD_LIBRARY_PATH
11929   ;;
11930
11931 solaris*)
11932   version_type=linux
11933   need_lib_prefix=no
11934   need_version=no
11935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11936   soname_spec='${libname}${release}${shared_ext}$major'
11937   shlibpath_var=LD_LIBRARY_PATH
11938   shlibpath_overrides_runpath=yes
11939   hardcode_into_libs=yes
11940   # ldd complains unless libraries are executable
11941   postinstall_cmds='chmod +x $lib'
11942   ;;
11943
11944 sunos4*)
11945   version_type=sunos
11946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11947   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11948   shlibpath_var=LD_LIBRARY_PATH
11949   shlibpath_overrides_runpath=yes
11950   if test "$with_gnu_ld" = yes; then
11951     need_lib_prefix=no
11952   fi
11953   need_version=yes
11954   ;;
11955
11956 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11957   version_type=linux
11958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11959   soname_spec='${libname}${release}${shared_ext}$major'
11960   shlibpath_var=LD_LIBRARY_PATH
11961   case $host_vendor in
11962     sni)
11963       shlibpath_overrides_runpath=no
11964       need_lib_prefix=no
11965       export_dynamic_flag_spec='${wl}-Blargedynsym'
11966       runpath_var=LD_RUN_PATH
11967       ;;
11968     siemens)
11969       need_lib_prefix=no
11970       ;;
11971     motorola)
11972       need_lib_prefix=no
11973       need_version=no
11974       shlibpath_overrides_runpath=no
11975       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11976       ;;
11977   esac
11978   ;;
11979
11980 sysv4*MP*)
11981   if test -d /usr/nec ;then
11982     version_type=linux
11983     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11984     soname_spec='$libname${shared_ext}.$major'
11985     shlibpath_var=LD_LIBRARY_PATH
11986   fi
11987   ;;
11988
11989 uts4*)
11990   version_type=linux
11991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11992   soname_spec='${libname}${release}${shared_ext}$major'
11993   shlibpath_var=LD_LIBRARY_PATH
11994   ;;
11995
11996 *)
11997   dynamic_linker=no
11998   ;;
11999 esac
12000 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12001 echo "${ECHO_T}$dynamic_linker" >&6
12002 test "$dynamic_linker" = no && can_build_shared=no
12003
12004 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12005 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12006 hardcode_action=
12007 if test -n "$hardcode_libdir_flag_spec" || \
12008    test -n "$runpath_var" || \
12009    test "X$hardcode_automatic" = "Xyes" ; then
12010
12011   # We can hardcode non-existant directories.
12012   if test "$hardcode_direct" != no &&
12013      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12014      # have to relink, otherwise we might link with an installed library
12015      # when we should be linking with a yet-to-be-installed one
12016      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
12017      test "$hardcode_minus_L" != no; then
12018     # Linking always hardcodes the temporary library directory.
12019     hardcode_action=relink
12020   else
12021     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12022     hardcode_action=immediate
12023   fi
12024 else
12025   # We cannot hardcode anything, or else we can only hardcode existing
12026   # directories.
12027   hardcode_action=unsupported
12028 fi
12029 echo "$as_me:$LINENO: result: $hardcode_action" >&5
12030 echo "${ECHO_T}$hardcode_action" >&6
12031
12032 if test "$hardcode_action" = relink; then
12033   # Fast installation is not supported
12034   enable_fast_install=no
12035 elif test "$shlibpath_overrides_runpath" = yes ||
12036      test "$enable_shared" = no; then
12037   # Fast installation is not necessary
12038   enable_fast_install=needless
12039 fi
12040
12041 striplib=
12042 old_striplib=
12043 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12044 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12045 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12046   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12047   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12048   echo "$as_me:$LINENO: result: yes" >&5
12049 echo "${ECHO_T}yes" >&6
12050 else
12051 # FIXME - insert some real tests, host_os isn't really good enough
12052   case $host_os in
12053    darwin*)
12054        if test -n "$STRIP" ; then
12055          striplib="$STRIP -x"
12056          echo "$as_me:$LINENO: result: yes" >&5
12057 echo "${ECHO_T}yes" >&6
12058        else
12059   echo "$as_me:$LINENO: result: no" >&5
12060 echo "${ECHO_T}no" >&6
12061 fi
12062        ;;
12063    *)
12064   echo "$as_me:$LINENO: result: no" >&5
12065 echo "${ECHO_T}no" >&6
12066     ;;
12067   esac
12068 fi
12069
12070 if test "x$enable_dlopen" != xyes; then
12071   enable_dlopen=unknown
12072   enable_dlopen_self=unknown
12073   enable_dlopen_self_static=unknown
12074 else
12075   lt_cv_dlopen=no
12076   lt_cv_dlopen_libs=
12077
12078   case $host_os in
12079   beos*)
12080     lt_cv_dlopen="load_add_on"
12081     lt_cv_dlopen_libs=
12082     lt_cv_dlopen_self=yes
12083     ;;
12084
12085   mingw* | pw32*)
12086     lt_cv_dlopen="LoadLibrary"
12087     lt_cv_dlopen_libs=
12088    ;;
12089
12090   cygwin*)
12091     lt_cv_dlopen="dlopen"
12092     lt_cv_dlopen_libs=
12093    ;;
12094
12095   darwin*)
12096   # if libdl is installed we need to link against it
12097     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12098 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12099 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12100   echo $ECHO_N "(cached) $ECHO_C" >&6
12101 else
12102   ac_check_lib_save_LIBS=$LIBS
12103 LIBS="-ldl  $LIBS"
12104 cat >conftest.$ac_ext <<_ACEOF
12105 /* confdefs.h.  */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h.  */
12110
12111 /* Override any gcc2 internal prototype to avoid an error.  */
12112 #ifdef __cplusplus
12113 extern "C"
12114 #endif
12115 /* We use char because int might match the return type of a gcc2
12116    builtin and then its argument prototype would still apply.  */
12117 char dlopen ();
12118 int
12119 main ()
12120 {
12121 dlopen ();
12122   ;
12123   return 0;
12124 }
12125 _ACEOF
12126 rm -f conftest.$ac_objext conftest$ac_exeext
12127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128   (eval $ac_link) 2>conftest.er1
12129   ac_status=$?
12130   grep -v '^ *+' conftest.er1 >conftest.err
12131   rm -f conftest.er1
12132   cat conftest.err >&5
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); } &&
12135          { ac_try='test -z "$ac_c_werror_flag"
12136                          || test ! -s conftest.err'
12137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138   (eval $ac_try) 2>&5
12139   ac_status=$?
12140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141   (exit $ac_status); }; } &&
12142          { ac_try='test -s conftest$ac_exeext'
12143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144   (eval $ac_try) 2>&5
12145   ac_status=$?
12146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147   (exit $ac_status); }; }; then
12148   ac_cv_lib_dl_dlopen=yes
12149 else
12150   echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12152
12153 ac_cv_lib_dl_dlopen=no
12154 fi
12155 rm -f conftest.err conftest.$ac_objext \
12156       conftest$ac_exeext conftest.$ac_ext
12157 LIBS=$ac_check_lib_save_LIBS
12158 fi
12159 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12160 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12161 if test $ac_cv_lib_dl_dlopen = yes; then
12162   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12163 else
12164
12165     lt_cv_dlopen="dyld"
12166     lt_cv_dlopen_libs=
12167     lt_cv_dlopen_self=yes
12168
12169 fi
12170
12171    ;;
12172
12173   *)
12174     echo "$as_me:$LINENO: checking for shl_load" >&5
12175 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12176 if test "${ac_cv_func_shl_load+set}" = set; then
12177   echo $ECHO_N "(cached) $ECHO_C" >&6
12178 else
12179   cat >conftest.$ac_ext <<_ACEOF
12180 /* confdefs.h.  */
12181 _ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h.  */
12185 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12187 #define shl_load innocuous_shl_load
12188
12189 /* System header to define __stub macros and hopefully few prototypes,
12190     which can conflict with char shl_load (); below.
12191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12192     <limits.h> exists even on freestanding compilers.  */
12193
12194 #ifdef __STDC__
12195 # include <limits.h>
12196 #else
12197 # include <assert.h>
12198 #endif
12199
12200 #undef shl_load
12201
12202 /* Override any gcc2 internal prototype to avoid an error.  */
12203 #ifdef __cplusplus
12204 extern "C"
12205 {
12206 #endif
12207 /* We use char because int might match the return type of a gcc2
12208    builtin and then its argument prototype would still apply.  */
12209 char shl_load ();
12210 /* The GNU C library defines this for functions which it implements
12211     to always fail with ENOSYS.  Some functions are actually named
12212     something starting with __ and the normal name is an alias.  */
12213 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12214 choke me
12215 #else
12216 char (*f) () = shl_load;
12217 #endif
12218 #ifdef __cplusplus
12219 }
12220 #endif
12221
12222 int
12223 main ()
12224 {
12225 return f != shl_load;
12226   ;
12227   return 0;
12228 }
12229 _ACEOF
12230 rm -f conftest.$ac_objext conftest$ac_exeext
12231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12232   (eval $ac_link) 2>conftest.er1
12233   ac_status=$?
12234   grep -v '^ *+' conftest.er1 >conftest.err
12235   rm -f conftest.er1
12236   cat conftest.err >&5
12237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238   (exit $ac_status); } &&
12239          { ac_try='test -z "$ac_c_werror_flag"
12240                          || test ! -s conftest.err'
12241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242   (eval $ac_try) 2>&5
12243   ac_status=$?
12244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245   (exit $ac_status); }; } &&
12246          { ac_try='test -s conftest$ac_exeext'
12247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248   (eval $ac_try) 2>&5
12249   ac_status=$?
12250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251   (exit $ac_status); }; }; then
12252   ac_cv_func_shl_load=yes
12253 else
12254   echo "$as_me: failed program was:" >&5
12255 sed 's/^/| /' conftest.$ac_ext >&5
12256
12257 ac_cv_func_shl_load=no
12258 fi
12259 rm -f conftest.err conftest.$ac_objext \
12260       conftest$ac_exeext conftest.$ac_ext
12261 fi
12262 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12263 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12264 if test $ac_cv_func_shl_load = yes; then
12265   lt_cv_dlopen="shl_load"
12266 else
12267   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12268 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12269 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12270   echo $ECHO_N "(cached) $ECHO_C" >&6
12271 else
12272   ac_check_lib_save_LIBS=$LIBS
12273 LIBS="-ldld  $LIBS"
12274 cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h.  */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h.  */
12280
12281 /* Override any gcc2 internal prototype to avoid an error.  */
12282 #ifdef __cplusplus
12283 extern "C"
12284 #endif
12285 /* We use char because int might match the return type of a gcc2
12286    builtin and then its argument prototype would still apply.  */
12287 char shl_load ();
12288 int
12289 main ()
12290 {
12291 shl_load ();
12292   ;
12293   return 0;
12294 }
12295 _ACEOF
12296 rm -f conftest.$ac_objext conftest$ac_exeext
12297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12298   (eval $ac_link) 2>conftest.er1
12299   ac_status=$?
12300   grep -v '^ *+' conftest.er1 >conftest.err
12301   rm -f conftest.er1
12302   cat conftest.err >&5
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); } &&
12305          { ac_try='test -z "$ac_c_werror_flag"
12306                          || test ! -s conftest.err'
12307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308   (eval $ac_try) 2>&5
12309   ac_status=$?
12310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311   (exit $ac_status); }; } &&
12312          { ac_try='test -s conftest$ac_exeext'
12313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314   (eval $ac_try) 2>&5
12315   ac_status=$?
12316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317   (exit $ac_status); }; }; then
12318   ac_cv_lib_dld_shl_load=yes
12319 else
12320   echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12322
12323 ac_cv_lib_dld_shl_load=no
12324 fi
12325 rm -f conftest.err conftest.$ac_objext \
12326       conftest$ac_exeext conftest.$ac_ext
12327 LIBS=$ac_check_lib_save_LIBS
12328 fi
12329 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12330 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12331 if test $ac_cv_lib_dld_shl_load = yes; then
12332   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12333 else
12334   echo "$as_me:$LINENO: checking for dlopen" >&5
12335 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12336 if test "${ac_cv_func_dlopen+set}" = set; then
12337   echo $ECHO_N "(cached) $ECHO_C" >&6
12338 else
12339   cat >conftest.$ac_ext <<_ACEOF
12340 /* confdefs.h.  */
12341 _ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h.  */
12345 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12347 #define dlopen innocuous_dlopen
12348
12349 /* System header to define __stub macros and hopefully few prototypes,
12350     which can conflict with char dlopen (); below.
12351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12352     <limits.h> exists even on freestanding compilers.  */
12353
12354 #ifdef __STDC__
12355 # include <limits.h>
12356 #else
12357 # include <assert.h>
12358 #endif
12359
12360 #undef dlopen
12361
12362 /* Override any gcc2 internal prototype to avoid an error.  */
12363 #ifdef __cplusplus
12364 extern "C"
12365 {
12366 #endif
12367 /* We use char because int might match the return type of a gcc2
12368    builtin and then its argument prototype would still apply.  */
12369 char dlopen ();
12370 /* The GNU C library defines this for functions which it implements
12371     to always fail with ENOSYS.  Some functions are actually named
12372     something starting with __ and the normal name is an alias.  */
12373 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12374 choke me
12375 #else
12376 char (*f) () = dlopen;
12377 #endif
12378 #ifdef __cplusplus
12379 }
12380 #endif
12381
12382 int
12383 main ()
12384 {
12385 return f != dlopen;
12386   ;
12387   return 0;
12388 }
12389 _ACEOF
12390 rm -f conftest.$ac_objext conftest$ac_exeext
12391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12392   (eval $ac_link) 2>conftest.er1
12393   ac_status=$?
12394   grep -v '^ *+' conftest.er1 >conftest.err
12395   rm -f conftest.er1
12396   cat conftest.err >&5
12397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398   (exit $ac_status); } &&
12399          { ac_try='test -z "$ac_c_werror_flag"
12400                          || test ! -s conftest.err'
12401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402   (eval $ac_try) 2>&5
12403   ac_status=$?
12404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405   (exit $ac_status); }; } &&
12406          { ac_try='test -s conftest$ac_exeext'
12407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408   (eval $ac_try) 2>&5
12409   ac_status=$?
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); }; }; then
12412   ac_cv_func_dlopen=yes
12413 else
12414   echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12416
12417 ac_cv_func_dlopen=no
12418 fi
12419 rm -f conftest.err conftest.$ac_objext \
12420       conftest$ac_exeext conftest.$ac_ext
12421 fi
12422 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12423 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12424 if test $ac_cv_func_dlopen = yes; then
12425   lt_cv_dlopen="dlopen"
12426 else
12427   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12428 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12429 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12430   echo $ECHO_N "(cached) $ECHO_C" >&6
12431 else
12432   ac_check_lib_save_LIBS=$LIBS
12433 LIBS="-ldl  $LIBS"
12434 cat >conftest.$ac_ext <<_ACEOF
12435 /* confdefs.h.  */
12436 _ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h.  */
12440
12441 /* Override any gcc2 internal prototype to avoid an error.  */
12442 #ifdef __cplusplus
12443 extern "C"
12444 #endif
12445 /* We use char because int might match the return type of a gcc2
12446    builtin and then its argument prototype would still apply.  */
12447 char dlopen ();
12448 int
12449 main ()
12450 {
12451 dlopen ();
12452   ;
12453   return 0;
12454 }
12455 _ACEOF
12456 rm -f conftest.$ac_objext conftest$ac_exeext
12457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12458   (eval $ac_link) 2>conftest.er1
12459   ac_status=$?
12460   grep -v '^ *+' conftest.er1 >conftest.err
12461   rm -f conftest.er1
12462   cat conftest.err >&5
12463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464   (exit $ac_status); } &&
12465          { ac_try='test -z "$ac_c_werror_flag"
12466                          || test ! -s conftest.err'
12467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468   (eval $ac_try) 2>&5
12469   ac_status=$?
12470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471   (exit $ac_status); }; } &&
12472          { ac_try='test -s conftest$ac_exeext'
12473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474   (eval $ac_try) 2>&5
12475   ac_status=$?
12476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477   (exit $ac_status); }; }; then
12478   ac_cv_lib_dl_dlopen=yes
12479 else
12480   echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12482
12483 ac_cv_lib_dl_dlopen=no
12484 fi
12485 rm -f conftest.err conftest.$ac_objext \
12486       conftest$ac_exeext conftest.$ac_ext
12487 LIBS=$ac_check_lib_save_LIBS
12488 fi
12489 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12490 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12491 if test $ac_cv_lib_dl_dlopen = yes; then
12492   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12493 else
12494   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12495 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12496 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12497   echo $ECHO_N "(cached) $ECHO_C" >&6
12498 else
12499   ac_check_lib_save_LIBS=$LIBS
12500 LIBS="-lsvld  $LIBS"
12501 cat >conftest.$ac_ext <<_ACEOF
12502 /* confdefs.h.  */
12503 _ACEOF
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h.  */
12507
12508 /* Override any gcc2 internal prototype to avoid an error.  */
12509 #ifdef __cplusplus
12510 extern "C"
12511 #endif
12512 /* We use char because int might match the return type of a gcc2
12513    builtin and then its argument prototype would still apply.  */
12514 char dlopen ();
12515 int
12516 main ()
12517 {
12518 dlopen ();
12519   ;
12520   return 0;
12521 }
12522 _ACEOF
12523 rm -f conftest.$ac_objext conftest$ac_exeext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12525   (eval $ac_link) 2>conftest.er1
12526   ac_status=$?
12527   grep -v '^ *+' conftest.er1 >conftest.err
12528   rm -f conftest.er1
12529   cat conftest.err >&5
12530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531   (exit $ac_status); } &&
12532          { ac_try='test -z "$ac_c_werror_flag"
12533                          || test ! -s conftest.err'
12534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535   (eval $ac_try) 2>&5
12536   ac_status=$?
12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538   (exit $ac_status); }; } &&
12539          { ac_try='test -s conftest$ac_exeext'
12540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541   (eval $ac_try) 2>&5
12542   ac_status=$?
12543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544   (exit $ac_status); }; }; then
12545   ac_cv_lib_svld_dlopen=yes
12546 else
12547   echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12549
12550 ac_cv_lib_svld_dlopen=no
12551 fi
12552 rm -f conftest.err conftest.$ac_objext \
12553       conftest$ac_exeext conftest.$ac_ext
12554 LIBS=$ac_check_lib_save_LIBS
12555 fi
12556 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12557 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12558 if test $ac_cv_lib_svld_dlopen = yes; then
12559   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12560 else
12561   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12562 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12563 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12564   echo $ECHO_N "(cached) $ECHO_C" >&6
12565 else
12566   ac_check_lib_save_LIBS=$LIBS
12567 LIBS="-ldld  $LIBS"
12568 cat >conftest.$ac_ext <<_ACEOF
12569 /* confdefs.h.  */
12570 _ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h.  */
12574
12575 /* Override any gcc2 internal prototype to avoid an error.  */
12576 #ifdef __cplusplus
12577 extern "C"
12578 #endif
12579 /* We use char because int might match the return type of a gcc2
12580    builtin and then its argument prototype would still apply.  */
12581 char dld_link ();
12582 int
12583 main ()
12584 {
12585 dld_link ();
12586   ;
12587   return 0;
12588 }
12589 _ACEOF
12590 rm -f conftest.$ac_objext conftest$ac_exeext
12591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12592   (eval $ac_link) 2>conftest.er1
12593   ac_status=$?
12594   grep -v '^ *+' conftest.er1 >conftest.err
12595   rm -f conftest.er1
12596   cat conftest.err >&5
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); } &&
12599          { ac_try='test -z "$ac_c_werror_flag"
12600                          || test ! -s conftest.err'
12601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602   (eval $ac_try) 2>&5
12603   ac_status=$?
12604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605   (exit $ac_status); }; } &&
12606          { ac_try='test -s conftest$ac_exeext'
12607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608   (eval $ac_try) 2>&5
12609   ac_status=$?
12610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611   (exit $ac_status); }; }; then
12612   ac_cv_lib_dld_dld_link=yes
12613 else
12614   echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12616
12617 ac_cv_lib_dld_dld_link=no
12618 fi
12619 rm -f conftest.err conftest.$ac_objext \
12620       conftest$ac_exeext conftest.$ac_ext
12621 LIBS=$ac_check_lib_save_LIBS
12622 fi
12623 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12624 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12625 if test $ac_cv_lib_dld_dld_link = yes; then
12626   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12627 fi
12628
12629
12630 fi
12631
12632
12633 fi
12634
12635
12636 fi
12637
12638
12639 fi
12640
12641
12642 fi
12643
12644     ;;
12645   esac
12646
12647   if test "x$lt_cv_dlopen" != xno; then
12648     enable_dlopen=yes
12649   else
12650     enable_dlopen=no
12651   fi
12652
12653   case $lt_cv_dlopen in
12654   dlopen)
12655     save_CPPFLAGS="$CPPFLAGS"
12656     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12657
12658     save_LDFLAGS="$LDFLAGS"
12659     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12660
12661     save_LIBS="$LIBS"
12662     LIBS="$lt_cv_dlopen_libs $LIBS"
12663
12664     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12665 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12666 if test "${lt_cv_dlopen_self+set}" = set; then
12667   echo $ECHO_N "(cached) $ECHO_C" >&6
12668 else
12669           if test "$cross_compiling" = yes; then :
12670   lt_cv_dlopen_self=cross
12671 else
12672   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12673   lt_status=$lt_dlunknown
12674   cat > conftest.$ac_ext <<EOF
12675 #line 12675 "configure"
12676 #include "confdefs.h"
12677
12678 #if HAVE_DLFCN_H
12679 #include <dlfcn.h>
12680 #endif
12681
12682 #include <stdio.h>
12683
12684 #ifdef RTLD_GLOBAL
12685 #  define LT_DLGLOBAL           RTLD_GLOBAL
12686 #else
12687 #  ifdef DL_GLOBAL
12688 #    define LT_DLGLOBAL         DL_GLOBAL
12689 #  else
12690 #    define LT_DLGLOBAL         0
12691 #  endif
12692 #endif
12693
12694 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12695    find out it does not work in some platform. */
12696 #ifndef LT_DLLAZY_OR_NOW
12697 #  ifdef RTLD_LAZY
12698 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12699 #  else
12700 #    ifdef DL_LAZY
12701 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12702 #    else
12703 #      ifdef RTLD_NOW
12704 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12705 #      else
12706 #        ifdef DL_NOW
12707 #          define LT_DLLAZY_OR_NOW      DL_NOW
12708 #        else
12709 #          define LT_DLLAZY_OR_NOW      0
12710 #        endif
12711 #      endif
12712 #    endif
12713 #  endif
12714 #endif
12715
12716 #ifdef __cplusplus
12717 extern "C" void exit (int);
12718 #endif
12719
12720 void fnord() { int i=42;}
12721 int main ()
12722 {
12723   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12724   int status = $lt_dlunknown;
12725
12726   if (self)
12727     {
12728       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12729       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12730       /* dlclose (self); */
12731     }
12732
12733     exit (status);
12734 }
12735 EOF
12736   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12737   (eval $ac_link) 2>&5
12738   ac_status=$?
12739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12741     (./conftest; exit; ) 2>/dev/null
12742     lt_status=$?
12743     case x$lt_status in
12744       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12745       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12746       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12747     esac
12748   else :
12749     # compilation failed
12750     lt_cv_dlopen_self=no
12751   fi
12752 fi
12753 rm -fr conftest*
12754
12755
12756 fi
12757 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12758 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12759
12760     if test "x$lt_cv_dlopen_self" = xyes; then
12761       LDFLAGS="$LDFLAGS $link_static_flag"
12762       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12763 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12764 if test "${lt_cv_dlopen_self_static+set}" = set; then
12765   echo $ECHO_N "(cached) $ECHO_C" >&6
12766 else
12767           if test "$cross_compiling" = yes; then :
12768   lt_cv_dlopen_self_static=cross
12769 else
12770   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12771   lt_status=$lt_dlunknown
12772   cat > conftest.$ac_ext <<EOF
12773 #line 12773 "configure"
12774 #include "confdefs.h"
12775
12776 #if HAVE_DLFCN_H
12777 #include <dlfcn.h>
12778 #endif
12779
12780 #include <stdio.h>
12781
12782 #ifdef RTLD_GLOBAL
12783 #  define LT_DLGLOBAL           RTLD_GLOBAL
12784 #else
12785 #  ifdef DL_GLOBAL
12786 #    define LT_DLGLOBAL         DL_GLOBAL
12787 #  else
12788 #    define LT_DLGLOBAL         0
12789 #  endif
12790 #endif
12791
12792 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12793    find out it does not work in some platform. */
12794 #ifndef LT_DLLAZY_OR_NOW
12795 #  ifdef RTLD_LAZY
12796 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12797 #  else
12798 #    ifdef DL_LAZY
12799 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12800 #    else
12801 #      ifdef RTLD_NOW
12802 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12803 #      else
12804 #        ifdef DL_NOW
12805 #          define LT_DLLAZY_OR_NOW      DL_NOW
12806 #        else
12807 #          define LT_DLLAZY_OR_NOW      0
12808 #        endif
12809 #      endif
12810 #    endif
12811 #  endif
12812 #endif
12813
12814 #ifdef __cplusplus
12815 extern "C" void exit (int);
12816 #endif
12817
12818 void fnord() { int i=42;}
12819 int main ()
12820 {
12821   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12822   int status = $lt_dlunknown;
12823
12824   if (self)
12825     {
12826       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12827       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12828       /* dlclose (self); */
12829     }
12830
12831     exit (status);
12832 }
12833 EOF
12834   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12835   (eval $ac_link) 2>&5
12836   ac_status=$?
12837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12839     (./conftest; exit; ) 2>/dev/null
12840     lt_status=$?
12841     case x$lt_status in
12842       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12843       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12844       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12845     esac
12846   else :
12847     # compilation failed
12848     lt_cv_dlopen_self_static=no
12849   fi
12850 fi
12851 rm -fr conftest*
12852
12853
12854 fi
12855 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12856 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12857     fi
12858
12859     CPPFLAGS="$save_CPPFLAGS"
12860     LDFLAGS="$save_LDFLAGS"
12861     LIBS="$save_LIBS"
12862     ;;
12863   esac
12864
12865   case $lt_cv_dlopen_self in
12866   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12867   *) enable_dlopen_self=unknown ;;
12868   esac
12869
12870   case $lt_cv_dlopen_self_static in
12871   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12872   *) enable_dlopen_self_static=unknown ;;
12873   esac
12874 fi
12875
12876
12877 # Report which libraries types will actually be built
12878 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12879 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12880 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12881 echo "${ECHO_T}$can_build_shared" >&6
12882
12883 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12884 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12885 test "$can_build_shared" = "no" && enable_shared=no
12886
12887 # On AIX, shared libraries and static libraries use the same namespace, and
12888 # are all built from PIC.
12889 case "$host_os" in
12890 aix3*)
12891   test "$enable_shared" = yes && enable_static=no
12892   if test -n "$RANLIB"; then
12893     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12894     postinstall_cmds='$RANLIB $lib'
12895   fi
12896   ;;
12897
12898 aix4* | aix5*)
12899   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12900     test "$enable_shared" = yes && enable_static=no
12901   fi
12902     ;;
12903 esac
12904 echo "$as_me:$LINENO: result: $enable_shared" >&5
12905 echo "${ECHO_T}$enable_shared" >&6
12906
12907 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12908 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12909 # Make sure either enable_shared or enable_static is yes.
12910 test "$enable_shared" = yes || enable_static=yes
12911 echo "$as_me:$LINENO: result: $enable_static" >&5
12912 echo "${ECHO_T}$enable_static" >&6
12913
12914 # The else clause should only fire when bootstrapping the
12915 # libtool distribution, otherwise you forgot to ship ltmain.sh
12916 # with your package, and you will get complaints that there are
12917 # no rules to generate ltmain.sh.
12918 if test -f "$ltmain"; then
12919   # See if we are running on zsh, and set the options which allow our commands through
12920   # without removal of \ escapes.
12921   if test -n "${ZSH_VERSION+set}" ; then
12922     setopt NO_GLOB_SUBST
12923   fi
12924   # Now quote all the things that may contain metacharacters while being
12925   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12926   # variables and quote the copies for generation of the libtool script.
12927   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12928     SED SHELL STRIP \
12929     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12930     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12931     deplibs_check_method reload_flag reload_cmds need_locks \
12932     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12933     lt_cv_sys_global_symbol_to_c_name_address \
12934     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12935     old_postinstall_cmds old_postuninstall_cmds \
12936     compiler \
12937     CC \
12938     LD \
12939     lt_prog_compiler_wl \
12940     lt_prog_compiler_pic \
12941     lt_prog_compiler_static \
12942     lt_prog_compiler_no_builtin_flag \
12943     export_dynamic_flag_spec \
12944     thread_safe_flag_spec \
12945     whole_archive_flag_spec \
12946     enable_shared_with_static_runtimes \
12947     old_archive_cmds \
12948     old_archive_from_new_cmds \
12949     predep_objects \
12950     postdep_objects \
12951     predeps \
12952     postdeps \
12953     compiler_lib_search_path \
12954     archive_cmds \
12955     archive_expsym_cmds \
12956     postinstall_cmds \
12957     postuninstall_cmds \
12958     old_archive_from_expsyms_cmds \
12959     allow_undefined_flag \
12960     no_undefined_flag \
12961     export_symbols_cmds \
12962     hardcode_libdir_flag_spec \
12963     hardcode_libdir_flag_spec_ld \
12964     hardcode_libdir_separator \
12965     hardcode_automatic \
12966     module_cmds \
12967     module_expsym_cmds \
12968     lt_cv_prog_compiler_c_o \
12969     exclude_expsyms \
12970     include_expsyms; do
12971
12972     case $var in
12973     old_archive_cmds | \
12974     old_archive_from_new_cmds | \
12975     archive_cmds | \
12976     archive_expsym_cmds | \
12977     module_cmds | \
12978     module_expsym_cmds | \
12979     old_archive_from_expsyms_cmds | \
12980     export_symbols_cmds | \
12981     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12982     postinstall_cmds | postuninstall_cmds | \
12983     old_postinstall_cmds | old_postuninstall_cmds | \
12984     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12985       # Double-quote double-evaled strings.
12986       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12987       ;;
12988     *)
12989       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12990       ;;
12991     esac
12992   done
12993
12994   case $lt_echo in
12995   *'\$0 --fallback-echo"')
12996     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12997     ;;
12998   esac
12999
13000 cfgfile="${ofile}T"
13001   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
13002   $rm -f "$cfgfile"
13003   { echo "$as_me:$LINENO: creating $ofile" >&5
13004 echo "$as_me: creating $ofile" >&6;}
13005
13006   cat <<__EOF__ >> "$cfgfile"
13007 #! $SHELL
13008
13009 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13010 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
13011 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13012 #
13013 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
13014 # Free Software Foundation, Inc.
13015 #
13016 # This file is part of GNU Libtool:
13017 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13018 #
13019 # This program is free software; you can redistribute it and/or modify
13020 # it under the terms of the GNU General Public License as published by
13021 # the Free Software Foundation; either version 2 of the License, or
13022 # (at your option) any later version.
13023 #
13024 # This program is distributed in the hope that it will be useful, but
13025 # WITHOUT ANY WARRANTY; without even the implied warranty of
13026 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13027 # General Public License for more details.
13028 #
13029 # You should have received a copy of the GNU General Public License
13030 # along with this program; if not, write to the Free Software
13031 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
13032 #
13033 # As a special exception to the GNU General Public License, if you
13034 # distribute this file as part of a program that contains a
13035 # configuration script generated by Autoconf, you may include it under
13036 # the same distribution terms that you use for the rest of that program.
13037
13038 # A sed program that does not truncate output.
13039 SED=$lt_SED
13040
13041 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13042 Xsed="$SED -e s/^X//"
13043
13044 # The HP-UX ksh and POSIX shell print the target directory to stdout
13045 # if CDPATH is set.
13046 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13047
13048 # The names of the tagged configurations supported by this script.
13049 available_tags=
13050
13051 # ### BEGIN LIBTOOL CONFIG
13052
13053 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13054
13055 # Shell to use when invoking shell scripts.
13056 SHELL=$lt_SHELL
13057
13058 # Whether or not to build shared libraries.
13059 build_libtool_libs=$enable_shared
13060
13061 # Whether or not to build static libraries.
13062 build_old_libs=$enable_static
13063
13064 # Whether or not to add -lc for building shared libraries.
13065 build_libtool_need_lc=$archive_cmds_need_lc
13066
13067 # Whether or not to disallow shared libs when runtime libs are static
13068 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13069
13070 # Whether or not to optimize for fast installation.
13071 fast_install=$enable_fast_install
13072
13073 # The host system.
13074 host_alias=$host_alias
13075 host=$host
13076
13077 # An echo program that does not interpret backslashes.
13078 echo=$lt_echo
13079
13080 # The archiver.
13081 AR=$lt_AR
13082 AR_FLAGS=$lt_AR_FLAGS
13083
13084 # A C compiler.
13085 LTCC=$lt_LTCC
13086
13087 # A language-specific compiler.
13088 CC=$lt_compiler
13089
13090 # Is the compiler the GNU C compiler?
13091 with_gcc=$GCC
13092
13093 # An ERE matcher.
13094 EGREP=$lt_EGREP
13095
13096 # The linker used to build libraries.
13097 LD=$lt_LD
13098
13099 # Whether we need hard or soft links.
13100 LN_S=$lt_LN_S
13101
13102 # A BSD-compatible nm program.
13103 NM=$lt_NM
13104
13105 # A symbol stripping program
13106 STRIP=$lt_STRIP
13107
13108 # Used to examine libraries when file_magic_cmd begins "file"
13109 MAGIC_CMD=$MAGIC_CMD
13110
13111 # Used on cygwin: DLL creation program.
13112 DLLTOOL="$DLLTOOL"
13113
13114 # Used on cygwin: object dumper.
13115 OBJDUMP="$OBJDUMP"
13116
13117 # Used on cygwin: assembler.
13118 AS="$AS"
13119
13120 # The name of the directory that contains temporary libtool files.
13121 objdir=$objdir
13122
13123 # How to create reloadable object files.
13124 reload_flag=$lt_reload_flag
13125 reload_cmds=$lt_reload_cmds
13126
13127 # How to pass a linker flag through the compiler.
13128 wl=$lt_lt_prog_compiler_wl
13129
13130 # Object file suffix (normally "o").
13131 objext="$ac_objext"
13132
13133 # Old archive suffix (normally "a").
13134 libext="$libext"
13135
13136 # Shared library suffix (normally ".so").
13137 shrext_cmds='$shrext_cmds'
13138
13139 # Executable file suffix (normally "").
13140 exeext="$exeext"
13141
13142 # Additional compiler flags for building library objects.
13143 pic_flag=$lt_lt_prog_compiler_pic
13144 pic_mode=$pic_mode
13145
13146 # What is the maximum length of a command?
13147 max_cmd_len=$lt_cv_sys_max_cmd_len
13148
13149 # Does compiler simultaneously support -c and -o options?
13150 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13151
13152 # Must we lock files when doing compilation ?
13153 need_locks=$lt_need_locks
13154
13155 # Do we need the lib prefix for modules?
13156 need_lib_prefix=$need_lib_prefix
13157
13158 # Do we need a version for libraries?
13159 need_version=$need_version
13160
13161 # Whether dlopen is supported.
13162 dlopen_support=$enable_dlopen
13163
13164 # Whether dlopen of programs is supported.
13165 dlopen_self=$enable_dlopen_self
13166
13167 # Whether dlopen of statically linked programs is supported.
13168 dlopen_self_static=$enable_dlopen_self_static
13169
13170 # Compiler flag to prevent dynamic linking.
13171 link_static_flag=$lt_lt_prog_compiler_static
13172
13173 # Compiler flag to turn off builtin functions.
13174 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13175
13176 # Compiler flag to allow reflexive dlopens.
13177 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13178
13179 # Compiler flag to generate shared objects directly from archives.
13180 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13181
13182 # Compiler flag to generate thread-safe objects.
13183 thread_safe_flag_spec=$lt_thread_safe_flag_spec
13184
13185 # Library versioning type.
13186 version_type=$version_type
13187
13188 # Format of library name prefix.
13189 libname_spec=$lt_libname_spec
13190
13191 # List of archive names.  First name is the real one, the rest are links.
13192 # The last name is the one that the linker finds with -lNAME.
13193 library_names_spec=$lt_library_names_spec
13194
13195 # The coded name of the library, if different from the real name.
13196 soname_spec=$lt_soname_spec
13197
13198 # Commands used to build and install an old-style archive.
13199 RANLIB=$lt_RANLIB
13200 old_archive_cmds=$lt_old_archive_cmds
13201 old_postinstall_cmds=$lt_old_postinstall_cmds
13202 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13203
13204 # Create an old-style archive from a shared archive.
13205 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13206
13207 # Create a temporary old-style archive to link instead of a shared archive.
13208 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13209
13210 # Commands used to build and install a shared archive.
13211 archive_cmds=$lt_archive_cmds
13212 archive_expsym_cmds=$lt_archive_expsym_cmds
13213 postinstall_cmds=$lt_postinstall_cmds
13214 postuninstall_cmds=$lt_postuninstall_cmds
13215
13216 # Commands used to build a loadable module (assumed same as above if empty)
13217 module_cmds=$lt_module_cmds
13218 module_expsym_cmds=$lt_module_expsym_cmds
13219
13220 # Commands to strip libraries.
13221 old_striplib=$lt_old_striplib
13222 striplib=$lt_striplib
13223
13224 # Dependencies to place before the objects being linked to create a
13225 # shared library.
13226 predep_objects=$lt_predep_objects
13227
13228 # Dependencies to place after the objects being linked to create a
13229 # shared library.
13230 postdep_objects=$lt_postdep_objects
13231
13232 # Dependencies to place before the objects being linked to create a
13233 # shared library.
13234 predeps=$lt_predeps
13235
13236 # Dependencies to place after the objects being linked to create a
13237 # shared library.
13238 postdeps=$lt_postdeps
13239
13240 # The library search path used internally by the compiler when linking
13241 # a shared library.
13242 compiler_lib_search_path=$lt_compiler_lib_search_path
13243
13244 # Method to check whether dependent libraries are shared objects.
13245 deplibs_check_method=$lt_deplibs_check_method
13246
13247 # Command to use when deplibs_check_method == file_magic.
13248 file_magic_cmd=$lt_file_magic_cmd
13249
13250 # Flag that allows shared libraries with undefined symbols to be built.
13251 allow_undefined_flag=$lt_allow_undefined_flag
13252
13253 # Flag that forces no undefined symbols.
13254 no_undefined_flag=$lt_no_undefined_flag
13255
13256 # Commands used to finish a libtool library installation in a directory.
13257 finish_cmds=$lt_finish_cmds
13258
13259 # Same as above, but a single script fragment to be evaled but not shown.
13260 finish_eval=$lt_finish_eval
13261
13262 # Take the output of nm and produce a listing of raw symbols and C names.
13263 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13264
13265 # Transform the output of nm in a proper C declaration
13266 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13267
13268 # Transform the output of nm in a C name address pair
13269 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13270
13271 # This is the shared library runtime path variable.
13272 runpath_var=$runpath_var
13273
13274 # This is the shared library path variable.
13275 shlibpath_var=$shlibpath_var
13276
13277 # Is shlibpath searched before the hard-coded library search path?
13278 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13279
13280 # How to hardcode a shared library path into an executable.
13281 hardcode_action=$hardcode_action
13282
13283 # Whether we should hardcode library paths into libraries.
13284 hardcode_into_libs=$hardcode_into_libs
13285
13286 # Flag to hardcode \$libdir into a binary during linking.
13287 # This must work even if \$libdir does not exist.
13288 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13289
13290 # If ld is used when linking, flag to hardcode \$libdir into
13291 # a binary during linking. This must work even if \$libdir does
13292 # not exist.
13293 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13294
13295 # Whether we need a single -rpath flag with a separated argument.
13296 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13297
13298 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13299 # resulting binary.
13300 hardcode_direct=$hardcode_direct
13301
13302 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13303 # resulting binary.
13304 hardcode_minus_L=$hardcode_minus_L
13305
13306 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13307 # the resulting binary.
13308 hardcode_shlibpath_var=$hardcode_shlibpath_var
13309
13310 # Set to yes if building a shared library automatically hardcodes DIR into the library
13311 # and all subsequent libraries and executables linked against it.
13312 hardcode_automatic=$hardcode_automatic
13313
13314 # Variables whose values should be saved in libtool wrapper scripts and
13315 # restored at relink time.
13316 variables_saved_for_relink="$variables_saved_for_relink"
13317
13318 # Whether libtool must link a program against all its dependency libraries.
13319 link_all_deplibs=$link_all_deplibs
13320
13321 # Compile-time system search path for libraries
13322 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13323
13324 # Run-time system search path for libraries
13325 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13326
13327 # Fix the shell variable \$srcfile for the compiler.
13328 fix_srcfile_path="$fix_srcfile_path"
13329
13330 # Set to yes if exported symbols are required.
13331 always_export_symbols=$always_export_symbols
13332
13333 # The commands to list exported symbols.
13334 export_symbols_cmds=$lt_export_symbols_cmds
13335
13336 # The commands to extract the exported symbol list from a shared archive.
13337 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13338
13339 # Symbols that should not be listed in the preloaded symbols.
13340 exclude_expsyms=$lt_exclude_expsyms
13341
13342 # Symbols that must always be exported.
13343 include_expsyms=$lt_include_expsyms
13344
13345 # ### END LIBTOOL CONFIG
13346
13347 __EOF__
13348
13349
13350   case $host_os in
13351   aix3*)
13352     cat <<\EOF >> "$cfgfile"
13353
13354 # AIX sometimes has problems with the GCC collect2 program.  For some
13355 # reason, if we set the COLLECT_NAMES environment variable, the problems
13356 # vanish in a puff of smoke.
13357 if test "X${COLLECT_NAMES+set}" != Xset; then
13358   COLLECT_NAMES=
13359   export COLLECT_NAMES
13360 fi
13361 EOF
13362     ;;
13363   esac
13364
13365   # We use sed instead of cat because bash on DJGPP gets confused if
13366   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13367   # text mode, it properly converts lines to CR/LF.  This bash problem
13368   # is reportedly fixed, but why not run on old versions too?
13369   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
13370
13371   mv -f "$cfgfile" "$ofile" || \
13372     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13373   chmod +x "$ofile"
13374
13375 else
13376   # If there is no Makefile yet, we rely on a make rule to execute
13377   # `config.status --recheck' to rerun these tests and create the
13378   # libtool script then.
13379   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13380   if test -f "$ltmain_in"; then
13381     test -f Makefile && make "$ltmain"
13382   fi
13383 fi
13384
13385
13386 ac_ext=c
13387 ac_cpp='$CPP $CPPFLAGS'
13388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13391
13392 CC="$lt_save_CC"
13393
13394
13395 # Check whether --with-tags or --without-tags was given.
13396 if test "${with_tags+set}" = set; then
13397   withval="$with_tags"
13398   tagnames="$withval"
13399 fi;
13400
13401 if test -f "$ltmain" && test -n "$tagnames"; then
13402   if test ! -f "${ofile}"; then
13403     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
13404 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
13405   fi
13406
13407   if test -z "$LTCC"; then
13408     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
13409     if test -z "$LTCC"; then
13410       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
13411 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
13412     else
13413       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
13414 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
13415     fi
13416   fi
13417
13418   # Extract list of available tagged configurations in $ofile.
13419   # Note that this assumes the entire list is on one line.
13420   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
13421
13422   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13423   for tagname in $tagnames; do
13424     IFS="$lt_save_ifs"
13425     # Check whether tagname contains only valid characters
13426     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
13427     "") ;;
13428     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
13429 echo "$as_me: error: invalid tag name: $tagname" >&2;}
13430    { (exit 1); exit 1; }; }
13431         ;;
13432     esac
13433
13434     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
13435     then
13436       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
13437 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
13438    { (exit 1); exit 1; }; }
13439     fi
13440
13441     # Update the list of available tags.
13442     if test -n "$tagname"; then
13443       echo appending configuration tag \"$tagname\" to $ofile
13444
13445       case $tagname in
13446       CXX)
13447         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13448             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13449             (test "X$CXX" != "Xg++"))) ; then
13450           ac_ext=cc
13451 ac_cpp='$CXXCPP $CPPFLAGS'
13452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13455
13456
13457
13458
13459 archive_cmds_need_lc_CXX=no
13460 allow_undefined_flag_CXX=
13461 always_export_symbols_CXX=no
13462 archive_expsym_cmds_CXX=
13463 export_dynamic_flag_spec_CXX=
13464 hardcode_direct_CXX=no
13465 hardcode_libdir_flag_spec_CXX=
13466 hardcode_libdir_flag_spec_ld_CXX=
13467 hardcode_libdir_separator_CXX=
13468 hardcode_minus_L_CXX=no
13469 hardcode_automatic_CXX=no
13470 module_cmds_CXX=
13471 module_expsym_cmds_CXX=
13472 link_all_deplibs_CXX=unknown
13473 old_archive_cmds_CXX=$old_archive_cmds
13474 no_undefined_flag_CXX=
13475 whole_archive_flag_spec_CXX=
13476 enable_shared_with_static_runtimes_CXX=no
13477
13478 # Dependencies to place before and after the object being linked:
13479 predep_objects_CXX=
13480 postdep_objects_CXX=
13481 predeps_CXX=
13482 postdeps_CXX=
13483 compiler_lib_search_path_CXX=
13484
13485 # Source file extension for C++ test sources.
13486 ac_ext=cc
13487
13488 # Object file extension for compiled C++ test sources.
13489 objext=o
13490 objext_CXX=$objext
13491
13492 # Code to be used in simple compile tests
13493 lt_simple_compile_test_code="int some_variable = 0;\n"
13494
13495 # Code to be used in simple link tests
13496 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
13497
13498 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13499
13500 # If no C compiler was specified, use CC.
13501 LTCC=${LTCC-"$CC"}
13502
13503 # Allow CC to be a program name with arguments.
13504 compiler=$CC
13505
13506
13507 # Allow CC to be a program name with arguments.
13508 lt_save_CC=$CC
13509 lt_save_LD=$LD
13510 lt_save_GCC=$GCC
13511 GCC=$GXX
13512 lt_save_with_gnu_ld=$with_gnu_ld
13513 lt_save_path_LD=$lt_cv_path_LD
13514 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13515   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13516 else
13517   unset lt_cv_prog_gnu_ld
13518 fi
13519 if test -n "${lt_cv_path_LDCXX+set}"; then
13520   lt_cv_path_LD=$lt_cv_path_LDCXX
13521 else
13522   unset lt_cv_path_LD
13523 fi
13524 test -z "${LDCXX+set}" || LD=$LDCXX
13525 CC=${CXX-"c++"}
13526 compiler=$CC
13527 compiler_CXX=$CC
13528 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13529
13530 # We don't want -fno-exception wen compiling C++ code, so set the
13531 # no_builtin_flag separately
13532 if test "$GXX" = yes; then
13533   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13534 else
13535   lt_prog_compiler_no_builtin_flag_CXX=
13536 fi
13537
13538 if test "$GXX" = yes; then
13539   # Set up default GNU C++ configuration
13540
13541
13542 # Check whether --with-gnu-ld or --without-gnu-ld was given.
13543 if test "${with_gnu_ld+set}" = set; then
13544   withval="$with_gnu_ld"
13545   test "$withval" = no || with_gnu_ld=yes
13546 else
13547   with_gnu_ld=no
13548 fi;
13549 ac_prog=ld
13550 if test "$GCC" = yes; then
13551   # Check if gcc -print-prog-name=ld gives a path.
13552   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13553 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13554   case $host in
13555   *-*-mingw*)
13556     # gcc leaves a trailing carriage return which upsets mingw
13557     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13558   *)
13559     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13560   esac
13561   case $ac_prog in
13562     # Accept absolute paths.
13563     [\\/]* | ?:[\\/]*)
13564       re_direlt='/[^/][^/]*/\.\./'
13565       # Canonicalize the pathname of ld
13566       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13567       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13568         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13569       done
13570       test -z "$LD" && LD="$ac_prog"
13571       ;;
13572   "")
13573     # If it fails, then pretend we aren't using GCC.
13574     ac_prog=ld
13575     ;;
13576   *)
13577     # If it is relative, then search for the first ld in PATH.
13578     with_gnu_ld=unknown
13579     ;;
13580   esac
13581 elif test "$with_gnu_ld" = yes; then
13582   echo "$as_me:$LINENO: checking for GNU ld" >&5
13583 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13584 else
13585   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13586 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13587 fi
13588 if test "${lt_cv_path_LD+set}" = set; then
13589   echo $ECHO_N "(cached) $ECHO_C" >&6
13590 else
13591   if test -z "$LD"; then
13592   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13593   for ac_dir in $PATH; do
13594     IFS="$lt_save_ifs"
13595     test -z "$ac_dir" && ac_dir=.
13596     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13597       lt_cv_path_LD="$ac_dir/$ac_prog"
13598       # Check to see if the program is GNU ld.  I'd rather use --version,
13599       # but apparently some GNU ld's only accept -v.
13600       # Break only if it was the GNU/non-GNU ld that we prefer.
13601       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13602       *GNU* | *'with BFD'*)
13603         test "$with_gnu_ld" != no && break
13604         ;;
13605       *)
13606         test "$with_gnu_ld" != yes && break
13607         ;;
13608       esac
13609     fi
13610   done
13611   IFS="$lt_save_ifs"
13612 else
13613   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13614 fi
13615 fi
13616
13617 LD="$lt_cv_path_LD"
13618 if test -n "$LD"; then
13619   echo "$as_me:$LINENO: result: $LD" >&5
13620 echo "${ECHO_T}$LD" >&6
13621 else
13622   echo "$as_me:$LINENO: result: no" >&5
13623 echo "${ECHO_T}no" >&6
13624 fi
13625 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13626 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13627    { (exit 1); exit 1; }; }
13628 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13629 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13630 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13631   echo $ECHO_N "(cached) $ECHO_C" >&6
13632 else
13633   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13634 case `$LD -v 2>&1 </dev/null` in
13635 *GNU* | *'with BFD'*)
13636   lt_cv_prog_gnu_ld=yes
13637   ;;
13638 *)
13639   lt_cv_prog_gnu_ld=no
13640   ;;
13641 esac
13642 fi
13643 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13644 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13645 with_gnu_ld=$lt_cv_prog_gnu_ld
13646
13647
13648
13649   # Check if GNU C++ uses GNU ld as the underlying linker, since the
13650   # archiving commands below assume that GNU ld is being used.
13651   if test "$with_gnu_ld" = yes; then
13652     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13653     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'
13654
13655     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13656     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13657
13658     # If archive_cmds runs LD, not CC, wlarc should be empty
13659     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13660     #     investigate it a little bit more. (MM)
13661     wlarc='${wl}'
13662
13663     # ancient GNU ld didn't support --whole-archive et. al.
13664     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13665         grep 'no-whole-archive' > /dev/null; then
13666       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13667     else
13668       whole_archive_flag_spec_CXX=
13669     fi
13670   else
13671     with_gnu_ld=no
13672     wlarc=
13673
13674     # A generic and very simple default shared library creation
13675     # command for GNU C++ for the case where it uses the native
13676     # linker, instead of GNU ld.  If possible, this setting should
13677     # overridden to take advantage of the native linker features on
13678     # the platform it is being used on.
13679     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13680   fi
13681
13682   # Commands to make compiler produce verbose output that lists
13683   # what "hidden" libraries, object files and flags are used when
13684   # linking a shared library.
13685   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13686
13687 else
13688   GXX=no
13689   with_gnu_ld=no
13690   wlarc=
13691 fi
13692
13693 # PORTME: fill in a description of your system's C++ link characteristics
13694 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13695 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13696 ld_shlibs_CXX=yes
13697 case $host_os in
13698   aix3*)
13699     # FIXME: insert proper C++ library support
13700     ld_shlibs_CXX=no
13701     ;;
13702   aix4* | aix5*)
13703     if test "$host_cpu" = ia64; then
13704       # On IA64, the linker does run time linking by default, so we don't
13705       # have to do anything special.
13706       aix_use_runtimelinking=no
13707       exp_sym_flag='-Bexport'
13708       no_entry_flag=""
13709     else
13710       aix_use_runtimelinking=no
13711
13712       # Test if we are trying to use run time linking or normal
13713       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13714       # need to do runtime linking.
13715       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13716         for ld_flag in $LDFLAGS; do
13717           case $ld_flag in
13718           *-brtl*)
13719             aix_use_runtimelinking=yes
13720             break
13721             ;;
13722           esac
13723         done
13724       esac
13725
13726       exp_sym_flag='-bexport'
13727       no_entry_flag='-bnoentry'
13728     fi
13729
13730     # When large executables or shared objects are built, AIX ld can
13731     # have problems creating the table of contents.  If linking a library
13732     # or program results in "error TOC overflow" add -mminimal-toc to
13733     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13734     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13735
13736     archive_cmds_CXX=''
13737     hardcode_direct_CXX=yes
13738     hardcode_libdir_separator_CXX=':'
13739     link_all_deplibs_CXX=yes
13740
13741     if test "$GXX" = yes; then
13742       case $host_os in aix4.012|aix4.012.*)
13743       # We only want to do this on AIX 4.2 and lower, the check
13744       # below for broken collect2 doesn't work under 4.3+
13745         collect2name=`${CC} -print-prog-name=collect2`
13746         if test -f "$collect2name" && \
13747            strings "$collect2name" | grep resolve_lib_name >/dev/null
13748         then
13749           # We have reworked collect2
13750           hardcode_direct_CXX=yes
13751         else
13752           # We have old collect2
13753           hardcode_direct_CXX=unsupported
13754           # It fails to find uninstalled libraries when the uninstalled
13755           # path is not listed in the libpath.  Setting hardcode_minus_L
13756           # to unsupported forces relinking
13757           hardcode_minus_L_CXX=yes
13758           hardcode_libdir_flag_spec_CXX='-L$libdir'
13759           hardcode_libdir_separator_CXX=
13760         fi
13761       esac
13762       shared_flag='-shared'
13763     else
13764       # not using gcc
13765       if test "$host_cpu" = ia64; then
13766         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13767         # chokes on -Wl,-G. The following line is correct:
13768         shared_flag='-G'
13769       else
13770         if test "$aix_use_runtimelinking" = yes; then
13771           shared_flag='${wl}-G'
13772         else
13773           shared_flag='${wl}-bM:SRE'
13774         fi
13775       fi
13776     fi
13777
13778     # It seems that -bexpall does not export symbols beginning with
13779     # underscore (_), so it is better to generate a list of symbols to export.
13780     always_export_symbols_CXX=yes
13781     if test "$aix_use_runtimelinking" = yes; then
13782       # Warning - without using the other runtime loading flags (-brtl),
13783       # -berok will link without error, but may produce a broken library.
13784       allow_undefined_flag_CXX='-berok'
13785       # Determine the default libpath from the value encoded in an empty executable.
13786       cat >conftest.$ac_ext <<_ACEOF
13787 /* confdefs.h.  */
13788 _ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h.  */
13792
13793 int
13794 main ()
13795 {
13796
13797   ;
13798   return 0;
13799 }
13800 _ACEOF
13801 rm -f conftest.$ac_objext conftest$ac_exeext
13802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13803   (eval $ac_link) 2>conftest.er1
13804   ac_status=$?
13805   grep -v '^ *+' conftest.er1 >conftest.err
13806   rm -f conftest.er1
13807   cat conftest.err >&5
13808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809   (exit $ac_status); } &&
13810          { ac_try='test -z "$ac_cxx_werror_flag"
13811                          || test ! -s conftest.err'
13812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813   (eval $ac_try) 2>&5
13814   ac_status=$?
13815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816   (exit $ac_status); }; } &&
13817          { ac_try='test -s conftest$ac_exeext'
13818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819   (eval $ac_try) 2>&5
13820   ac_status=$?
13821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); }; }; then
13823
13824 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13825 }'`
13826 # Check for a 64-bit object if we didn't find anything.
13827 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; }
13828 }'`; fi
13829 else
13830   echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13832
13833 fi
13834 rm -f conftest.err conftest.$ac_objext \
13835       conftest$ac_exeext conftest.$ac_ext
13836 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13837
13838       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13839
13840       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13841      else
13842       if test "$host_cpu" = ia64; then
13843         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13844         allow_undefined_flag_CXX="-z nodefs"
13845         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13846       else
13847         # Determine the default libpath from the value encoded in an empty executable.
13848         cat >conftest.$ac_ext <<_ACEOF
13849 /* confdefs.h.  */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h.  */
13854
13855 int
13856 main ()
13857 {
13858
13859   ;
13860   return 0;
13861 }
13862 _ACEOF
13863 rm -f conftest.$ac_objext conftest$ac_exeext
13864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13865   (eval $ac_link) 2>conftest.er1
13866   ac_status=$?
13867   grep -v '^ *+' conftest.er1 >conftest.err
13868   rm -f conftest.er1
13869   cat conftest.err >&5
13870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871   (exit $ac_status); } &&
13872          { ac_try='test -z "$ac_cxx_werror_flag"
13873                          || test ! -s conftest.err'
13874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875   (eval $ac_try) 2>&5
13876   ac_status=$?
13877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878   (exit $ac_status); }; } &&
13879          { ac_try='test -s conftest$ac_exeext'
13880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881   (eval $ac_try) 2>&5
13882   ac_status=$?
13883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884   (exit $ac_status); }; }; then
13885
13886 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13887 }'`
13888 # Check for a 64-bit object if we didn't find anything.
13889 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; }
13890 }'`; fi
13891 else
13892   echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13894
13895 fi
13896 rm -f conftest.err conftest.$ac_objext \
13897       conftest$ac_exeext conftest.$ac_ext
13898 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13899
13900         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13901         # Warning - without using the other run time loading flags,
13902         # -berok will link without error, but may produce a broken library.
13903         no_undefined_flag_CXX=' ${wl}-bernotok'
13904         allow_undefined_flag_CXX=' ${wl}-berok'
13905         # -bexpall does not export symbols beginning with underscore (_)
13906         always_export_symbols_CXX=yes
13907         # Exported symbols can be pulled into shared objects from archives
13908         whole_archive_flag_spec_CXX=' '
13909         archive_cmds_need_lc_CXX=yes
13910         # This is similar to how AIX traditionally builds it's shared libraries.
13911         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13912       fi
13913     fi
13914     ;;
13915   chorus*)
13916     case $cc_basename in
13917       *)
13918         # FIXME: insert proper C++ library support
13919         ld_shlibs_CXX=no
13920         ;;
13921     esac
13922     ;;
13923
13924
13925   cygwin* | mingw* | pw32*)
13926     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13927     # as there is no search path for DLLs.
13928     hardcode_libdir_flag_spec_CXX='-L$libdir'
13929     allow_undefined_flag_CXX=unsupported
13930     always_export_symbols_CXX=no
13931     enable_shared_with_static_runtimes_CXX=yes
13932
13933     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13934       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13935       # If the export-symbols file already is a .def file (1st line
13936       # is EXPORTS), use it as is; otherwise, prepend...
13937       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13938         cp $export_symbols $output_objdir/$soname.def;
13939       else
13940         echo EXPORTS > $output_objdir/$soname.def;
13941         cat $export_symbols >> $output_objdir/$soname.def;
13942       fi~
13943       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13944     else
13945       ld_shlibs_CXX=no
13946     fi
13947   ;;
13948       darwin* | rhapsody*)
13949         case "$host_os" in
13950         rhapsody* | darwin1.[012])
13951          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13952          ;;
13953        *) # Darwin 1.3 on
13954          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13955            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13956          else
13957            case ${MACOSX_DEPLOYMENT_TARGET} in
13958              10.[012])
13959                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13960                ;;
13961              10.*)
13962                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13963                ;;
13964            esac
13965          fi
13966          ;;
13967         esac
13968       archive_cmds_need_lc_CXX=no
13969       hardcode_direct_CXX=no
13970       hardcode_automatic_CXX=yes
13971       hardcode_shlibpath_var_CXX=unsupported
13972       whole_archive_flag_spec_CXX=''
13973       link_all_deplibs_CXX=yes
13974
13975     if test "$GXX" = yes ; then
13976       lt_int_apple_cc_single_mod=no
13977       output_verbose_link_cmd='echo'
13978       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13979        lt_int_apple_cc_single_mod=yes
13980       fi
13981       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13982        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13983       else
13984           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'
13985         fi
13986         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13987         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13988           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13989             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}'
13990           else
13991             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}'
13992           fi
13993             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}'
13994       else
13995       case "$cc_basename" in
13996         xlc*)
13997          output_verbose_link_cmd='echo'
13998           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'
13999           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14000           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14001           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}'
14002           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}'
14003           ;;
14004        *)
14005          ld_shlibs_CXX=no
14006           ;;
14007       esac
14008       fi
14009         ;;
14010
14011   dgux*)
14012     case $cc_basename in
14013       ec++)
14014         # FIXME: insert proper C++ library support
14015         ld_shlibs_CXX=no
14016         ;;
14017       ghcx)
14018         # Green Hills C++ Compiler
14019         # FIXME: insert proper C++ library support
14020         ld_shlibs_CXX=no
14021         ;;
14022       *)
14023         # FIXME: insert proper C++ library support
14024         ld_shlibs_CXX=no
14025         ;;
14026     esac
14027     ;;
14028   freebsd12*)
14029     # C++ shared libraries reported to be fairly broken before switch to ELF
14030     ld_shlibs_CXX=no
14031     ;;
14032   freebsd-elf*)
14033     archive_cmds_need_lc_CXX=no
14034     ;;
14035   freebsd* | kfreebsd*-gnu)
14036     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14037     # conventions
14038     ld_shlibs_CXX=yes
14039     ;;
14040   gnu*)
14041     ;;
14042   hpux9*)
14043     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14044     hardcode_libdir_separator_CXX=:
14045     export_dynamic_flag_spec_CXX='${wl}-E'
14046     hardcode_direct_CXX=yes
14047     hardcode_minus_L_CXX=yes # Not in the search PATH,
14048                                 # but as the default
14049                                 # location of the library.
14050
14051     case $cc_basename in
14052     CC)
14053       # FIXME: insert proper C++ library support
14054       ld_shlibs_CXX=no
14055       ;;
14056     aCC)
14057       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'
14058       # Commands to make compiler produce verbose output that lists
14059       # what "hidden" libraries, object files and flags are used when
14060       # linking a shared library.
14061       #
14062       # There doesn't appear to be a way to prevent this compiler from
14063       # explicitly linking system object files so we need to strip them
14064       # from the output so that they don't get included in the library
14065       # dependencies.
14066       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'
14067       ;;
14068     *)
14069       if test "$GXX" = yes; then
14070         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'
14071       else
14072         # FIXME: insert proper C++ library support
14073         ld_shlibs_CXX=no
14074       fi
14075       ;;
14076     esac
14077     ;;
14078   hpux10*|hpux11*)
14079     if test $with_gnu_ld = no; then
14080       case "$host_cpu" in
14081       hppa*64*)
14082         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14083         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
14084         hardcode_libdir_separator_CXX=:
14085         ;;
14086       ia64*)
14087         hardcode_libdir_flag_spec_CXX='-L$libdir'
14088         ;;
14089       *)
14090         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14091         hardcode_libdir_separator_CXX=:
14092         export_dynamic_flag_spec_CXX='${wl}-E'
14093         ;;
14094       esac
14095     fi
14096     case "$host_cpu" in
14097     hppa*64*)
14098       hardcode_direct_CXX=no
14099       hardcode_shlibpath_var_CXX=no
14100       ;;
14101     ia64*)
14102       hardcode_direct_CXX=no
14103       hardcode_shlibpath_var_CXX=no
14104       hardcode_minus_L_CXX=yes # Not in the search PATH,
14105                                               # but as the default
14106                                               # location of the library.
14107       ;;
14108     *)
14109       hardcode_direct_CXX=yes
14110       hardcode_minus_L_CXX=yes # Not in the search PATH,
14111                                               # but as the default
14112                                               # location of the library.
14113       ;;
14114     esac
14115
14116     case $cc_basename in
14117       CC)
14118         # FIXME: insert proper C++ library support
14119         ld_shlibs_CXX=no
14120         ;;
14121       aCC)
14122         case "$host_cpu" in
14123         hppa*64*|ia64*)
14124           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
14125           ;;
14126         *)
14127           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14128           ;;
14129         esac
14130         # Commands to make compiler produce verbose output that lists
14131         # what "hidden" libraries, object files and flags are used when
14132         # linking a shared library.
14133         #
14134         # There doesn't appear to be a way to prevent this compiler from
14135         # explicitly linking system object files so we need to strip them
14136         # from the output so that they don't get included in the library
14137         # dependencies.
14138         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'
14139         ;;
14140       *)
14141         if test "$GXX" = yes; then
14142           if test $with_gnu_ld = no; then
14143             case "$host_cpu" in
14144             ia64*|hppa*64*)
14145               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
14146               ;;
14147             *)
14148               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'
14149               ;;
14150             esac
14151           fi
14152         else
14153           # FIXME: insert proper C++ library support
14154           ld_shlibs_CXX=no
14155         fi
14156         ;;
14157     esac
14158     ;;
14159   irix5* | irix6*)
14160     case $cc_basename in
14161       CC)
14162         # SGI C++
14163         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 ${objdir}/so_locations -o $lib'
14164
14165         # Archives containing C++ object files must be created using
14166         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14167         # necessary to make sure instantiated templates are included
14168         # in the archive.
14169         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14170         ;;
14171       *)
14172         if test "$GXX" = yes; then
14173           if test "$with_gnu_ld" = no; then
14174             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}${objdir}/so_locations -o $lib'
14175           else
14176             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'
14177           fi
14178         fi
14179         link_all_deplibs_CXX=yes
14180         ;;
14181     esac
14182     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14183     hardcode_libdir_separator_CXX=:
14184     ;;
14185   linux*)
14186     case $cc_basename in
14187       KCC)
14188         # Kuck and Associates, Inc. (KAI) C++ Compiler
14189
14190         # KCC will only create a shared library if the output file
14191         # ends with ".so" (or ".sl" for HP-UX), so rename the library
14192         # to its proper name (with version) after linking.
14193         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'
14194         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'
14195         # Commands to make compiler produce verbose output that lists
14196         # what "hidden" libraries, object files and flags are used when
14197         # linking a shared library.
14198         #
14199         # There doesn't appear to be a way to prevent this compiler from
14200         # explicitly linking system object files so we need to strip them
14201         # from the output so that they don't get included in the library
14202         # dependencies.
14203         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'
14204
14205         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
14206         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14207
14208         # Archives containing C++ object files must be created using
14209         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14210         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14211         ;;
14212       icpc)
14213         # Intel C++
14214         with_gnu_ld=yes
14215         # version 8.0 and above of icpc choke on multiply defined symbols
14216         # if we add $predep_objects and $postdep_objects, however 7.1 and
14217         # earlier do not add the objects themselves.
14218         case `$CC -V 2>&1` in
14219         *"Version 7."*)
14220           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14221           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'
14222           ;;
14223         *)  # Version 8.0 or newer
14224           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14225         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14226           ;;
14227         esac
14228         archive_cmds_need_lc_CXX=no
14229         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14230         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14231         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14232         ;;
14233       cxx)
14234         # Compaq C++
14235         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14236         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'
14237
14238         runpath_var=LD_RUN_PATH
14239         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14240         hardcode_libdir_separator_CXX=:
14241
14242         # Commands to make compiler produce verbose output that lists
14243         # what "hidden" libraries, object files and flags are used when
14244         # linking a shared library.
14245         #
14246         # There doesn't appear to be a way to prevent this compiler from
14247         # explicitly linking system object files so we need to strip them
14248         # from the output so that they don't get included in the library
14249         # dependencies.
14250         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'
14251         ;;
14252     esac
14253     ;;
14254   lynxos*)
14255     # FIXME: insert proper C++ library support
14256     ld_shlibs_CXX=no
14257     ;;
14258   m88k*)
14259     # FIXME: insert proper C++ library support
14260     ld_shlibs_CXX=no
14261     ;;
14262   mvs*)
14263     case $cc_basename in
14264       cxx)
14265         # FIXME: insert proper C++ library support
14266         ld_shlibs_CXX=no
14267         ;;
14268       *)
14269         # FIXME: insert proper C++ library support
14270         ld_shlibs_CXX=no
14271         ;;
14272     esac
14273     ;;
14274   netbsd*)
14275     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14276       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14277       wlarc=
14278       hardcode_libdir_flag_spec_CXX='-R$libdir'
14279       hardcode_direct_CXX=yes
14280       hardcode_shlibpath_var_CXX=no
14281     fi
14282     # Workaround some broken pre-1.5 toolchains
14283     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14284     ;;
14285   openbsd2*)
14286     # C++ shared libraries are fairly broken
14287     ld_shlibs_CXX=no
14288     ;;
14289   openbsd*)
14290     hardcode_direct_CXX=yes
14291     hardcode_shlibpath_var_CXX=no
14292     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14293     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14294     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14295       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14296       export_dynamic_flag_spec_CXX='${wl}-E'
14297       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14298     fi
14299     output_verbose_link_cmd='echo'
14300     ;;
14301   osf3*)
14302     case $cc_basename in
14303       KCC)
14304         # Kuck and Associates, Inc. (KAI) C++ Compiler
14305
14306         # KCC will only create a shared library if the output file
14307         # ends with ".so" (or ".sl" for HP-UX), so rename the library
14308         # to its proper name (with version) after linking.
14309         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'
14310
14311         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14312         hardcode_libdir_separator_CXX=:
14313
14314         # Archives containing C++ object files must be created using
14315         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14316         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14317
14318         ;;
14319       RCC)
14320         # Rational C++ 2.4.1
14321         # FIXME: insert proper C++ library support
14322         ld_shlibs_CXX=no
14323         ;;
14324       cxx)
14325         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14326         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 ${objdir}/so_locations -o $lib'
14327
14328         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14329         hardcode_libdir_separator_CXX=:
14330
14331         # Commands to make compiler produce verbose output that lists
14332         # what "hidden" libraries, object files and flags are used when
14333         # linking a shared library.
14334         #
14335         # There doesn't appear to be a way to prevent this compiler from
14336         # explicitly linking system object files so we need to strip them
14337         # from the output so that they don't get included in the library
14338         # dependencies.
14339         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'
14340         ;;
14341       *)
14342         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14343           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14344           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}${objdir}/so_locations -o $lib'
14345
14346           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14347           hardcode_libdir_separator_CXX=:
14348
14349           # Commands to make compiler produce verbose output that lists
14350           # what "hidden" libraries, object files and flags are used when
14351           # linking a shared library.
14352           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14353
14354         else
14355           # FIXME: insert proper C++ library support
14356           ld_shlibs_CXX=no
14357         fi
14358         ;;
14359     esac
14360     ;;
14361   osf4* | osf5*)
14362     case $cc_basename in
14363       KCC)
14364         # Kuck and Associates, Inc. (KAI) C++ Compiler
14365
14366         # KCC will only create a shared library if the output file
14367         # ends with ".so" (or ".sl" for HP-UX), so rename the library
14368         # to its proper name (with version) after linking.
14369         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'
14370
14371         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14372         hardcode_libdir_separator_CXX=:
14373
14374         # Archives containing C++ object files must be created using
14375         # the KAI C++ compiler.
14376         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
14377         ;;
14378       RCC)
14379         # Rational C++ 2.4.1
14380         # FIXME: insert proper C++ library support
14381         ld_shlibs_CXX=no
14382         ;;
14383       cxx)
14384         allow_undefined_flag_CXX=' -expect_unresolved \*'
14385         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 ${objdir}/so_locations -o $lib'
14386         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14387           echo "-hidden">> $lib.exp~
14388           $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 $objdir/so_locations -o $lib~
14389           $rm $lib.exp'
14390
14391         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14392         hardcode_libdir_separator_CXX=:
14393
14394         # Commands to make compiler produce verbose output that lists
14395         # what "hidden" libraries, object files and flags are used when
14396         # linking a shared library.
14397         #
14398         # There doesn't appear to be a way to prevent this compiler from
14399         # explicitly linking system object files so we need to strip them
14400         # from the output so that they don't get included in the library
14401         # dependencies.
14402         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'
14403         ;;
14404       *)
14405         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14406           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14407          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}${objdir}/so_locations -o $lib'
14408
14409           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14410           hardcode_libdir_separator_CXX=:
14411
14412           # Commands to make compiler produce verbose output that lists
14413           # what "hidden" libraries, object files and flags are used when
14414           # linking a shared library.
14415           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14416
14417         else
14418           # FIXME: insert proper C++ library support
14419           ld_shlibs_CXX=no
14420         fi
14421         ;;
14422     esac
14423     ;;
14424   psos*)
14425     # FIXME: insert proper C++ library support
14426     ld_shlibs_CXX=no
14427     ;;
14428   sco*)
14429     archive_cmds_need_lc_CXX=no
14430     case $cc_basename in
14431       CC)
14432         # FIXME: insert proper C++ library support
14433         ld_shlibs_CXX=no
14434         ;;
14435       *)
14436         # FIXME: insert proper C++ library support
14437         ld_shlibs_CXX=no
14438         ;;
14439     esac
14440     ;;
14441   sunos4*)
14442     case $cc_basename in
14443       CC)
14444         # Sun C++ 4.x
14445         # FIXME: insert proper C++ library support
14446         ld_shlibs_CXX=no
14447         ;;
14448       lcc)
14449         # Lucid
14450         # FIXME: insert proper C++ library support
14451         ld_shlibs_CXX=no
14452         ;;
14453       *)
14454         # FIXME: insert proper C++ library support
14455         ld_shlibs_CXX=no
14456         ;;
14457     esac
14458     ;;
14459   solaris*)
14460     case $cc_basename in
14461       CC)
14462         # Sun C++ 4.2, 5.x and Centerline C++
14463         no_undefined_flag_CXX=' -zdefs'
14464         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14465         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14466         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14467
14468         hardcode_libdir_flag_spec_CXX='-R$libdir'
14469         hardcode_shlibpath_var_CXX=no
14470         case $host_os in
14471           solaris2.0-5 | solaris2.0-5.*) ;;
14472           *)
14473             # The C++ compiler is used as linker so we must use $wl
14474             # flag to pass the commands to the underlying system
14475             # linker.
14476             # Supported since Solaris 2.6 (maybe 2.5.1?)
14477             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14478             ;;
14479         esac
14480         link_all_deplibs_CXX=yes
14481
14482         # Commands to make compiler produce verbose output that lists
14483         # what "hidden" libraries, object files and flags are used when
14484         # linking a shared library.
14485         #
14486         # There doesn't appear to be a way to prevent this compiler from
14487         # explicitly linking system object files so we need to strip them
14488         # from the output so that they don't get included in the library
14489         # dependencies.
14490         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14491
14492         # Archives containing C++ object files must be created using
14493         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14494         # necessary to make sure instantiated templates are included
14495         # in the archive.
14496         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14497         ;;
14498       gcx)
14499         # Green Hills C++ Compiler
14500         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14501
14502         # The C++ compiler must be used to create the archive.
14503         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14504         ;;
14505       *)
14506         # GNU C++ compiler with Solaris linker
14507         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14508           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14509           if $CC --version | grep -v '^2\.7' > /dev/null; then
14510             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14511             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14512                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14513
14514             # Commands to make compiler produce verbose output that lists
14515             # what "hidden" libraries, object files and flags are used when
14516             # linking a shared library.
14517             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14518           else
14519             # g++ 2.7 appears to require `-G' NOT `-shared' on this
14520             # platform.
14521             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14522             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14523                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14524
14525             # Commands to make compiler produce verbose output that lists
14526             # what "hidden" libraries, object files and flags are used when
14527             # linking a shared library.
14528             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14529           fi
14530
14531           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14532         fi
14533         ;;
14534     esac
14535     ;;
14536   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14537     archive_cmds_need_lc_CXX=no
14538     ;;
14539   tandem*)
14540     case $cc_basename in
14541       NCC)
14542         # NonStop-UX NCC 3.20
14543         # FIXME: insert proper C++ library support
14544         ld_shlibs_CXX=no
14545         ;;
14546       *)
14547         # FIXME: insert proper C++ library support
14548         ld_shlibs_CXX=no
14549         ;;
14550     esac
14551     ;;
14552   vxworks*)
14553     # FIXME: insert proper C++ library support
14554     ld_shlibs_CXX=no
14555     ;;
14556   *)
14557     # FIXME: insert proper C++ library support
14558     ld_shlibs_CXX=no
14559     ;;
14560 esac
14561 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14562 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14563 test "$ld_shlibs_CXX" = no && can_build_shared=no
14564
14565 GCC_CXX="$GXX"
14566 LD_CXX="$LD"
14567
14568 ## CAVEAT EMPTOR:
14569 ## There is no encapsulation within the following macros, do not change
14570 ## the running order or otherwise move them around unless you know exactly
14571 ## what you are doing...
14572
14573 cat > conftest.$ac_ext <<EOF
14574 class Foo
14575 {
14576 public:
14577   Foo (void) { a = 0; }
14578 private:
14579   int a;
14580 };
14581 EOF
14582
14583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14584   (eval $ac_compile) 2>&5
14585   ac_status=$?
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   (exit $ac_status); }; then
14588   # Parse the compiler output and extract the necessary
14589   # objects, libraries and library flags.
14590
14591   # Sentinel used to keep track of whether or not we are before
14592   # the conftest object file.
14593   pre_test_object_deps_done=no
14594
14595   # The `*' in the case matches for architectures that use `case' in
14596   # $output_verbose_cmd can trigger glob expansion during the loop
14597   # eval without this substitution.
14598   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
14599
14600   for p in `eval $output_verbose_link_cmd`; do
14601     case $p in
14602
14603     -L* | -R* | -l*)
14604        # Some compilers place space between "-{L,R}" and the path.
14605        # Remove the space.
14606        if test $p = "-L" \
14607           || test $p = "-R"; then
14608          prev=$p
14609          continue
14610        else
14611          prev=
14612        fi
14613
14614        if test "$pre_test_object_deps_done" = no; then
14615          case $p in
14616          -L* | -R*)
14617            # Internal compiler library paths should come after those
14618            # provided the user.  The postdeps already come after the
14619            # user supplied libs so there is no need to process them.
14620            if test -z "$compiler_lib_search_path_CXX"; then
14621              compiler_lib_search_path_CXX="${prev}${p}"
14622            else
14623              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14624            fi
14625            ;;
14626          # The "-l" case would never come before the object being
14627          # linked, so don't bother handling this case.
14628          esac
14629        else
14630          if test -z "$postdeps_CXX"; then
14631            postdeps_CXX="${prev}${p}"
14632          else
14633            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14634          fi
14635        fi
14636        ;;
14637
14638     *.$objext)
14639        # This assumes that the test object file only shows up
14640        # once in the compiler output.
14641        if test "$p" = "conftest.$objext"; then
14642          pre_test_object_deps_done=yes
14643          continue
14644        fi
14645
14646        if test "$pre_test_object_deps_done" = no; then
14647          if test -z "$predep_objects_CXX"; then
14648            predep_objects_CXX="$p"
14649          else
14650            predep_objects_CXX="$predep_objects_CXX $p"
14651          fi
14652        else
14653          if test -z "$postdep_objects_CXX"; then
14654            postdep_objects_CXX="$p"
14655          else
14656            postdep_objects_CXX="$postdep_objects_CXX $p"
14657          fi
14658        fi
14659        ;;
14660
14661     *) ;; # Ignore the rest.
14662
14663     esac
14664   done
14665
14666   # Clean up.
14667   rm -f a.out a.exe
14668 else
14669   echo "libtool.m4: error: problem compiling CXX test program"
14670 fi
14671
14672 $rm -f confest.$objext
14673
14674 case " $postdeps_CXX " in
14675 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14676 esac
14677
14678 lt_prog_compiler_wl_CXX=
14679 lt_prog_compiler_pic_CXX=
14680 lt_prog_compiler_static_CXX=
14681
14682 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14683 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14684
14685   # C++ specific cases for pic, static, wl, etc.
14686   if test "$GXX" = yes; then
14687     lt_prog_compiler_wl_CXX='-Wl,'
14688     lt_prog_compiler_static_CXX='-static'
14689
14690     case $host_os in
14691     aix*)
14692       # All AIX code is PIC.
14693       if test "$host_cpu" = ia64; then
14694         # AIX 5 now supports IA64 processor
14695         lt_prog_compiler_static_CXX='-Bstatic'
14696       fi
14697       ;;
14698     amigaos*)
14699       # FIXME: we need at least 68020 code to build shared libraries, but
14700       # adding the `-m68020' flag to GCC prevents building anything better,
14701       # like `-m68040'.
14702       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14703       ;;
14704     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14705       # PIC is the default for these OSes.
14706       ;;
14707     mingw* | os2* | pw32*)
14708       # This hack is so that the source file can tell whether it is being
14709       # built for inclusion in a dll (and should export symbols for example).
14710       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14711       ;;
14712     darwin* | rhapsody*)
14713       # PIC is the default on this platform
14714       # Common symbols not allowed in MH_DYLIB files
14715       lt_prog_compiler_pic_CXX='-fno-common'
14716       ;;
14717     *djgpp*)
14718       # DJGPP does not support shared libraries at all
14719       lt_prog_compiler_pic_CXX=
14720       ;;
14721     sysv4*MP*)
14722       if test -d /usr/nec; then
14723         lt_prog_compiler_pic_CXX=-Kconform_pic
14724       fi
14725       ;;
14726     hpux*)
14727       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14728       # not for PA HP-UX.
14729       case "$host_cpu" in
14730       hppa*64*|ia64*)
14731         ;;
14732       *)
14733         lt_prog_compiler_pic_CXX='-fPIC'
14734         ;;
14735       esac
14736       ;;
14737     *)
14738       lt_prog_compiler_pic_CXX='-fPIC'
14739       ;;
14740     esac
14741   else
14742     case $host_os in
14743       aix4* | aix5*)
14744         # All AIX code is PIC.
14745         if test "$host_cpu" = ia64; then
14746           # AIX 5 now supports IA64 processor
14747           lt_prog_compiler_static_CXX='-Bstatic'
14748         else
14749           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14750         fi
14751         ;;
14752       chorus*)
14753         case $cc_basename in
14754         cxch68)
14755           # Green Hills C++ Compiler
14756           # _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"
14757           ;;
14758         esac
14759         ;;
14760        darwin*)
14761          # PIC is the default on this platform
14762          # Common symbols not allowed in MH_DYLIB files
14763          case "$cc_basename" in
14764            xlc*)
14765            lt_prog_compiler_pic_CXX='-qnocommon'
14766            lt_prog_compiler_wl_CXX='-Wl,'
14767            ;;
14768          esac
14769        ;;
14770       dgux*)
14771         case $cc_basename in
14772           ec++)
14773             lt_prog_compiler_pic_CXX='-KPIC'
14774             ;;
14775           ghcx)
14776             # Green Hills C++ Compiler
14777             lt_prog_compiler_pic_CXX='-pic'
14778             ;;
14779           *)
14780             ;;
14781         esac
14782         ;;
14783       freebsd* | kfreebsd*-gnu)
14784         # FreeBSD uses GNU C++
14785         ;;
14786       hpux9* | hpux10* | hpux11*)
14787         case $cc_basename in
14788           CC)
14789             lt_prog_compiler_wl_CXX='-Wl,'
14790             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14791             if test "$host_cpu" != ia64; then
14792               lt_prog_compiler_pic_CXX='+Z'
14793             fi
14794             ;;
14795           aCC)
14796             lt_prog_compiler_wl_CXX='-Wl,'
14797             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14798             case "$host_cpu" in
14799             hppa*64*|ia64*)
14800               # +Z the default
14801               ;;
14802             *)
14803               lt_prog_compiler_pic_CXX='+Z'
14804               ;;
14805             esac
14806             ;;
14807           *)
14808             ;;
14809         esac
14810         ;;
14811       irix5* | irix6* | nonstopux*)
14812         case $cc_basename in
14813           CC)
14814             lt_prog_compiler_wl_CXX='-Wl,'
14815             lt_prog_compiler_static_CXX='-non_shared'
14816             # CC pic flag -KPIC is the default.
14817             ;;
14818           *)
14819             ;;
14820         esac
14821         ;;
14822       linux*)
14823         case $cc_basename in
14824           KCC)
14825             # KAI C++ Compiler
14826             lt_prog_compiler_wl_CXX='--backend -Wl,'
14827             lt_prog_compiler_pic_CXX='-fPIC'
14828             ;;
14829           icpc)
14830             # Intel C++
14831             lt_prog_compiler_wl_CXX='-Wl,'
14832             lt_prog_compiler_pic_CXX='-KPIC'
14833             lt_prog_compiler_static_CXX='-static'
14834             ;;
14835           cxx)
14836             # Compaq C++
14837             # Make sure the PIC flag is empty.  It appears that all Alpha
14838             # Linux and Compaq Tru64 Unix objects are PIC.
14839             lt_prog_compiler_pic_CXX=
14840             lt_prog_compiler_static_CXX='-non_shared'
14841             ;;
14842           *)
14843             ;;
14844         esac
14845         ;;
14846       lynxos*)
14847         ;;
14848       m88k*)
14849         ;;
14850       mvs*)
14851         case $cc_basename in
14852           cxx)
14853             lt_prog_compiler_pic_CXX='-W c,exportall'
14854             ;;
14855           *)
14856             ;;
14857         esac
14858         ;;
14859       netbsd*)
14860         ;;
14861       osf3* | osf4* | osf5*)
14862         case $cc_basename in
14863           KCC)
14864             lt_prog_compiler_wl_CXX='--backend -Wl,'
14865             ;;
14866           RCC)
14867             # Rational C++ 2.4.1
14868             lt_prog_compiler_pic_CXX='-pic'
14869             ;;
14870           cxx)
14871             # Digital/Compaq C++
14872             lt_prog_compiler_wl_CXX='-Wl,'
14873             # Make sure the PIC flag is empty.  It appears that all Alpha
14874             # Linux and Compaq Tru64 Unix objects are PIC.
14875             lt_prog_compiler_pic_CXX=
14876             lt_prog_compiler_static_CXX='-non_shared'
14877             ;;
14878           *)
14879             ;;
14880         esac
14881         ;;
14882       psos*)
14883         ;;
14884       sco*)
14885         case $cc_basename in
14886           CC)
14887             lt_prog_compiler_pic_CXX='-fPIC'
14888             ;;
14889           *)
14890             ;;
14891         esac
14892         ;;
14893       solaris*)
14894         case $cc_basename in
14895           CC)
14896             # Sun C++ 4.2, 5.x and Centerline C++
14897             lt_prog_compiler_pic_CXX='-KPIC'
14898             lt_prog_compiler_static_CXX='-Bstatic'
14899             lt_prog_compiler_wl_CXX='-Qoption ld '
14900             ;;
14901           gcx)
14902             # Green Hills C++ Compiler
14903             lt_prog_compiler_pic_CXX='-PIC'
14904             ;;
14905           *)
14906             ;;
14907         esac
14908         ;;
14909       sunos4*)
14910         case $cc_basename in
14911           CC)
14912             # Sun C++ 4.x
14913             lt_prog_compiler_pic_CXX='-pic'
14914             lt_prog_compiler_static_CXX='-Bstatic'
14915             ;;
14916           lcc)
14917             # Lucid
14918             lt_prog_compiler_pic_CXX='-pic'
14919             ;;
14920           *)
14921             ;;
14922         esac
14923         ;;
14924       tandem*)
14925         case $cc_basename in
14926           NCC)
14927             # NonStop-UX NCC 3.20
14928             lt_prog_compiler_pic_CXX='-KPIC'
14929             ;;
14930           *)
14931             ;;
14932         esac
14933         ;;
14934       unixware*)
14935         ;;
14936       vxworks*)
14937         ;;
14938       *)
14939         lt_prog_compiler_can_build_shared_CXX=no
14940         ;;
14941     esac
14942   fi
14943
14944 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14945 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14946
14947 #
14948 # Check to make sure the PIC flag actually works.
14949 #
14950 if test -n "$lt_prog_compiler_pic_CXX"; then
14951
14952 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14953 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14954 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14955   echo $ECHO_N "(cached) $ECHO_C" >&6
14956 else
14957   lt_prog_compiler_pic_works_CXX=no
14958   ac_outfile=conftest.$ac_objext
14959    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14960    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14961    # Insert the option either (1) after the last *FLAGS variable, or
14962    # (2) before a word containing "conftest.", or (3) at the end.
14963    # Note that $ac_compile itself does not contain backslashes and begins
14964    # with a dollar sign (not a hyphen), so the echo should work correctly.
14965    # The option is referenced via a variable to avoid confusing sed.
14966    lt_compile=`echo "$ac_compile" | $SED \
14967    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14968    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14969    -e 's:$: $lt_compiler_flag:'`
14970    (eval echo "\"\$as_me:14970: $lt_compile\"" >&5)
14971    (eval "$lt_compile" 2>conftest.err)
14972    ac_status=$?
14973    cat conftest.err >&5
14974    echo "$as_me:14974: \$? = $ac_status" >&5
14975    if (exit $ac_status) && test -s "$ac_outfile"; then
14976      # The compiler can only warn and ignore the option if not recognized
14977      # So say no if there are warnings
14978      if test ! -s conftest.err; then
14979        lt_prog_compiler_pic_works_CXX=yes
14980      fi
14981    fi
14982    $rm conftest*
14983
14984 fi
14985 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14986 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
14987
14988 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14989     case $lt_prog_compiler_pic_CXX in
14990      "" | " "*) ;;
14991      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14992      esac
14993 else
14994     lt_prog_compiler_pic_CXX=
14995      lt_prog_compiler_can_build_shared_CXX=no
14996 fi
14997
14998 fi
14999 case "$host_os" in
15000   # For platforms which do not support PIC, -DPIC is meaningless:
15001   *djgpp*)
15002     lt_prog_compiler_pic_CXX=
15003     ;;
15004   *)
15005     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15006     ;;
15007 esac
15008
15009 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15010 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15011 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15012   echo $ECHO_N "(cached) $ECHO_C" >&6
15013 else
15014   lt_cv_prog_compiler_c_o_CXX=no
15015    $rm -r conftest 2>/dev/null
15016    mkdir conftest
15017    cd conftest
15018    mkdir out
15019    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15020
15021    lt_compiler_flag="-o out/conftest2.$ac_objext"
15022    # Insert the option either (1) after the last *FLAGS variable, or
15023    # (2) before a word containing "conftest.", or (3) at the end.
15024    # Note that $ac_compile itself does not contain backslashes and begins
15025    # with a dollar sign (not a hyphen), so the echo should work correctly.
15026    lt_compile=`echo "$ac_compile" | $SED \
15027    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15028    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15029    -e 's:$: $lt_compiler_flag:'`
15030    (eval echo "\"\$as_me:15030: $lt_compile\"" >&5)
15031    (eval "$lt_compile" 2>out/conftest.err)
15032    ac_status=$?
15033    cat out/conftest.err >&5
15034    echo "$as_me:15034: \$? = $ac_status" >&5
15035    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15036    then
15037      # The compiler can only warn and ignore the option if not recognized
15038      # So say no if there are warnings
15039      if test ! -s out/conftest.err; then
15040        lt_cv_prog_compiler_c_o_CXX=yes
15041      fi
15042    fi
15043    chmod u+w .
15044    $rm conftest*
15045    # SGI C++ compiler will create directory out/ii_files/ for
15046    # template instantiation
15047    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15048    $rm out/* && rmdir out
15049    cd ..
15050    rmdir conftest
15051    $rm conftest*
15052
15053 fi
15054 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15055 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15056
15057
15058 hard_links="nottested"
15059 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15060   # do not overwrite the value of need_locks provided by the user
15061   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15062 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15063   hard_links=yes
15064   $rm conftest*
15065   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15066   touch conftest.a
15067   ln conftest.a conftest.b 2>&5 || hard_links=no
15068   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15069   echo "$as_me:$LINENO: result: $hard_links" >&5
15070 echo "${ECHO_T}$hard_links" >&6
15071   if test "$hard_links" = no; then
15072     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15073 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15074     need_locks=warn
15075   fi
15076 else
15077   need_locks=no
15078 fi
15079
15080 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15081 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15082
15083   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15084   case $host_os in
15085   aix4* | aix5*)
15086     # If we're using GNU nm, then we don't want the "-C" option.
15087     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15088     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15089       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'
15090     else
15091       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'
15092     fi
15093     ;;
15094   pw32*)
15095     export_symbols_cmds_CXX="$ltdll_cmds"
15096   ;;
15097   cygwin* | mingw*)
15098     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15099   ;;
15100   *)
15101     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15102   ;;
15103   esac
15104
15105 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15106 echo "${ECHO_T}$ld_shlibs_CXX" >&6
15107 test "$ld_shlibs_CXX" = no && can_build_shared=no
15108
15109 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15110 if test "$GCC" = yes; then
15111   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15112 fi
15113
15114 #
15115 # Do we need to explicitly link libc?
15116 #
15117 case "x$archive_cmds_need_lc_CXX" in
15118 x|xyes)
15119   # Assume -lc should be added
15120   archive_cmds_need_lc_CXX=yes
15121
15122   if test "$enable_shared" = yes && test "$GCC" = yes; then
15123     case $archive_cmds_CXX in
15124     *'~'*)
15125       # FIXME: we may have to deal with multi-command sequences.
15126       ;;
15127     '$CC '*)
15128       # Test whether the compiler implicitly links with -lc since on some
15129       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15130       # to ld, don't add -lc before -lgcc.
15131       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15132 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15133       $rm conftest*
15134       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15135
15136       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15137   (eval $ac_compile) 2>&5
15138   ac_status=$?
15139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140   (exit $ac_status); } 2>conftest.err; then
15141         soname=conftest
15142         lib=conftest
15143         libobjs=conftest.$ac_objext
15144         deplibs=
15145         wl=$lt_prog_compiler_wl_CXX
15146         compiler_flags=-v
15147         linker_flags=-v
15148         verstring=
15149         output_objdir=.
15150         libname=conftest
15151         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15152         allow_undefined_flag_CXX=
15153         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15154   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15155   ac_status=$?
15156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157   (exit $ac_status); }
15158         then
15159           archive_cmds_need_lc_CXX=no
15160         else
15161           archive_cmds_need_lc_CXX=yes
15162         fi
15163         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15164       else
15165         cat conftest.err 1>&5
15166       fi
15167       $rm conftest*
15168       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15169 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
15170       ;;
15171     esac
15172   fi
15173   ;;
15174 esac
15175
15176 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15177 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15178 library_names_spec=
15179 libname_spec='lib$name'
15180 soname_spec=
15181 shrext_cmds=".so"
15182 postinstall_cmds=
15183 postuninstall_cmds=
15184 finish_cmds=
15185 finish_eval=
15186 shlibpath_var=
15187 shlibpath_overrides_runpath=unknown
15188 version_type=none
15189 dynamic_linker="$host_os ld.so"
15190 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15191 if test "$GCC" = yes; then
15192   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15193   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15194     # if the path contains ";" then we assume it to be the separator
15195     # otherwise default to the standard path separator (i.e. ":") - it is
15196     # assumed that no part of a normal pathname contains ";" but that should
15197     # okay in the real world where ";" in dirpaths is itself problematic.
15198     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15199   else
15200     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15201   fi
15202 else
15203   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15204 fi
15205 need_lib_prefix=unknown
15206 hardcode_into_libs=no
15207
15208 # when you set need_version to no, make sure it does not cause -set_version
15209 # flags to be left without arguments
15210 need_version=unknown
15211
15212 case $host_os in
15213 aix3*)
15214   version_type=linux
15215   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15216   shlibpath_var=LIBPATH
15217
15218   # AIX 3 has no versioning support, so we append a major version to the name.
15219   soname_spec='${libname}${release}${shared_ext}$major'
15220   ;;
15221
15222 aix4* | aix5*)
15223   version_type=linux
15224   need_lib_prefix=no
15225   need_version=no
15226   hardcode_into_libs=yes
15227   if test "$host_cpu" = ia64; then
15228     # AIX 5 supports IA64
15229     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15230     shlibpath_var=LD_LIBRARY_PATH
15231   else
15232     # With GCC up to 2.95.x, collect2 would create an import file
15233     # for dependence libraries.  The import file would start with
15234     # the line `#! .'.  This would cause the generated library to
15235     # depend on `.', always an invalid library.  This was fixed in
15236     # development snapshots of GCC prior to 3.0.
15237     case $host_os in
15238       aix4 | aix4.[01] | aix4.[01].*)
15239       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15240            echo ' yes '
15241            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15242         :
15243       else
15244         can_build_shared=no
15245       fi
15246       ;;
15247     esac
15248     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15249     # soname into executable. Probably we can add versioning support to
15250     # collect2, so additional links can be useful in future.
15251     if test "$aix_use_runtimelinking" = yes; then
15252       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15253       # instead of lib<name>.a to let people know that these are not
15254       # typical AIX shared libraries.
15255       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15256     else
15257       # We preserve .a as extension for shared libraries through AIX4.2
15258       # and later when we are not doing run time linking.
15259       library_names_spec='${libname}${release}.a $libname.a'
15260       soname_spec='${libname}${release}${shared_ext}$major'
15261     fi
15262     shlibpath_var=LIBPATH
15263   fi
15264   ;;
15265
15266 amigaos*)
15267   library_names_spec='$libname.ixlibrary $libname.a'
15268   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15269   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'
15270   ;;
15271
15272 beos*)
15273   library_names_spec='${libname}${shared_ext}'
15274   dynamic_linker="$host_os ld.so"
15275   shlibpath_var=LIBRARY_PATH
15276   ;;
15277
15278 bsdi[45]*)
15279   version_type=linux
15280   need_version=no
15281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15282   soname_spec='${libname}${release}${shared_ext}$major'
15283   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15284   shlibpath_var=LD_LIBRARY_PATH
15285   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15286   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15287   # the default ld.so.conf also contains /usr/contrib/lib and
15288   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15289   # libtool to hard-code these into programs
15290   ;;
15291
15292 cygwin* | mingw* | pw32*)
15293   version_type=windows
15294   shrext_cmds=".dll"
15295   need_version=no
15296   need_lib_prefix=no
15297
15298   case $GCC,$host_os in
15299   yes,cygwin* | yes,mingw* | yes,pw32*)
15300     library_names_spec='$libname.dll.a'
15301     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15302     postinstall_cmds='base_file=`basename \${file}`~
15303       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15304       dldir=$destdir/`dirname \$dlpath`~
15305       test -d \$dldir || mkdir -p \$dldir~
15306       $install_prog $dir/$dlname \$dldir/$dlname'
15307     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15308       dlpath=$dir/\$dldll~
15309        $rm \$dlpath'
15310     shlibpath_overrides_runpath=yes
15311
15312     case $host_os in
15313     cygwin*)
15314       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15315       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15316       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15317       ;;
15318     mingw*)
15319       # MinGW DLLs use traditional 'lib' prefix
15320       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15321       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15322       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15323         # It is most probably a Windows format PATH printed by
15324         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15325         # path with ; separators, and with drive letters. We can handle the
15326         # drive letters (cygwin fileutils understands them), so leave them,
15327         # especially as we might pass files found there to a mingw objdump,
15328         # which wouldn't understand a cygwinified path. Ahh.
15329         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15330       else
15331         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15332       fi
15333       ;;
15334     pw32*)
15335       # pw32 DLLs use 'pw' prefix rather than 'lib'
15336       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15337       ;;
15338     esac
15339     ;;
15340
15341   *)
15342     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15343     ;;
15344   esac
15345   dynamic_linker='Win32 ld.exe'
15346   # FIXME: first we should search . and the directory the executable is in
15347   shlibpath_var=PATH
15348   ;;
15349
15350 darwin* | rhapsody*)
15351   dynamic_linker="$host_os dyld"
15352   version_type=darwin
15353   need_lib_prefix=no
15354   need_version=no
15355   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15356   soname_spec='${libname}${release}${major}$shared_ext'
15357   shlibpath_overrides_runpath=yes
15358   shlibpath_var=DYLD_LIBRARY_PATH
15359   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15360   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15361   if test "$GCC" = yes; then
15362     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"`
15363   else
15364     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15365   fi
15366   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15367   ;;
15368
15369 dgux*)
15370   version_type=linux
15371   need_lib_prefix=no
15372   need_version=no
15373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15374   soname_spec='${libname}${release}${shared_ext}$major'
15375   shlibpath_var=LD_LIBRARY_PATH
15376   ;;
15377
15378 freebsd1*)
15379   dynamic_linker=no
15380   ;;
15381
15382 kfreebsd*-gnu)
15383   version_type=linux
15384   need_lib_prefix=no
15385   need_version=no
15386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15387   soname_spec='${libname}${release}${shared_ext}$major'
15388   shlibpath_var=LD_LIBRARY_PATH
15389   shlibpath_overrides_runpath=no
15390   hardcode_into_libs=yes
15391   dynamic_linker='GNU ld.so'
15392   ;;
15393
15394 freebsd*)
15395   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15396   version_type=freebsd-$objformat
15397   case $version_type in
15398     freebsd-elf*)
15399       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15400       need_version=no
15401       need_lib_prefix=no
15402       ;;
15403     freebsd-*)
15404       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15405       need_version=yes
15406       ;;
15407   esac
15408   shlibpath_var=LD_LIBRARY_PATH
15409   case $host_os in
15410   freebsd2*)
15411     shlibpath_overrides_runpath=yes
15412     ;;
15413   freebsd3.01* | freebsdelf3.01*)
15414     shlibpath_overrides_runpath=yes
15415     hardcode_into_libs=yes
15416     ;;
15417   *) # from 3.2 on
15418     shlibpath_overrides_runpath=no
15419     hardcode_into_libs=yes
15420     ;;
15421   esac
15422   ;;
15423
15424 gnu*)
15425   version_type=linux
15426   need_lib_prefix=no
15427   need_version=no
15428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15429   soname_spec='${libname}${release}${shared_ext}$major'
15430   shlibpath_var=LD_LIBRARY_PATH
15431   hardcode_into_libs=yes
15432   ;;
15433
15434 hpux9* | hpux10* | hpux11*)
15435   # Give a soname corresponding to the major version so that dld.sl refuses to
15436   # link against other versions.
15437   version_type=sunos
15438   need_lib_prefix=no
15439   need_version=no
15440   case "$host_cpu" in
15441   ia64*)
15442     shrext_cmds='.so'
15443     hardcode_into_libs=yes
15444     dynamic_linker="$host_os dld.so"
15445     shlibpath_var=LD_LIBRARY_PATH
15446     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15447     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15448     soname_spec='${libname}${release}${shared_ext}$major'
15449     if test "X$HPUX_IA64_MODE" = X32; then
15450       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15451     else
15452       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15453     fi
15454     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15455     ;;
15456    hppa*64*)
15457      shrext_cmds='.sl'
15458      hardcode_into_libs=yes
15459      dynamic_linker="$host_os dld.sl"
15460      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15461      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15462      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15463      soname_spec='${libname}${release}${shared_ext}$major'
15464      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15465      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15466      ;;
15467    *)
15468     shrext_cmds='.sl'
15469     dynamic_linker="$host_os dld.sl"
15470     shlibpath_var=SHLIB_PATH
15471     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15472     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15473     soname_spec='${libname}${release}${shared_ext}$major'
15474     ;;
15475   esac
15476   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15477   postinstall_cmds='chmod 555 $lib'
15478   ;;
15479
15480 irix5* | irix6* | nonstopux*)
15481   case $host_os in
15482     nonstopux*) version_type=nonstopux ;;
15483     *)
15484         if test "$lt_cv_prog_gnu_ld" = yes; then
15485                 version_type=linux
15486         else
15487                 version_type=irix
15488         fi ;;
15489   esac
15490   need_lib_prefix=no
15491   need_version=no
15492   soname_spec='${libname}${release}${shared_ext}$major'
15493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15494   case $host_os in
15495   irix5* | nonstopux*)
15496     libsuff= shlibsuff=
15497     ;;
15498   *)
15499     case $LD in # libtool.m4 will add one of these switches to LD
15500     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15501       libsuff= shlibsuff= libmagic=32-bit;;
15502     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15503       libsuff=32 shlibsuff=N32 libmagic=N32;;
15504     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15505       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15506     *) libsuff= shlibsuff= libmagic=never-match;;
15507     esac
15508     ;;
15509   esac
15510   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15511   shlibpath_overrides_runpath=no
15512   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15513   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15514   hardcode_into_libs=yes
15515   ;;
15516
15517 # No shared lib support for Linux oldld, aout, or coff.
15518 linux*oldld* | linux*aout* | linux*coff*)
15519   dynamic_linker=no
15520   ;;
15521
15522 # This must be Linux ELF.
15523 linux*)
15524   version_type=linux
15525   need_lib_prefix=no
15526   need_version=no
15527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15528   soname_spec='${libname}${release}${shared_ext}$major'
15529   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15530   shlibpath_var=LD_LIBRARY_PATH
15531   shlibpath_overrides_runpath=no
15532   # This implies no fast_install, which is unacceptable.
15533   # Some rework will be needed to allow for fast_install
15534   # before this can be enabled.
15535   hardcode_into_libs=yes
15536
15537   # Append ld.so.conf contents to the search path
15538   if test -f /etc/ld.so.conf; then
15539     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15540     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15541   fi
15542
15543   # We used to test for /lib/ld.so.1 and disable shared libraries on
15544   # powerpc, because MkLinux only supported shared libraries with the
15545   # GNU dynamic linker.  Since this was broken with cross compilers,
15546   # most powerpc-linux boxes support dynamic linking these days and
15547   # people can always --disable-shared, the test was removed, and we
15548   # assume the GNU/Linux dynamic linker is in use.
15549   dynamic_linker='GNU/Linux ld.so'
15550   ;;
15551
15552 knetbsd*-gnu)
15553   version_type=linux
15554   need_lib_prefix=no
15555   need_version=no
15556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15557   soname_spec='${libname}${release}${shared_ext}$major'
15558   shlibpath_var=LD_LIBRARY_PATH
15559   shlibpath_overrides_runpath=no
15560   hardcode_into_libs=yes
15561   dynamic_linker='GNU ld.so'
15562   ;;
15563
15564 netbsd*)
15565   version_type=sunos
15566   need_lib_prefix=no
15567   need_version=no
15568   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15570     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15571     dynamic_linker='NetBSD (a.out) ld.so'
15572   else
15573     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15574     soname_spec='${libname}${release}${shared_ext}$major'
15575     dynamic_linker='NetBSD ld.elf_so'
15576   fi
15577   shlibpath_var=LD_LIBRARY_PATH
15578   shlibpath_overrides_runpath=yes
15579   hardcode_into_libs=yes
15580   ;;
15581
15582 newsos6)
15583   version_type=linux
15584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15585   shlibpath_var=LD_LIBRARY_PATH
15586   shlibpath_overrides_runpath=yes
15587   ;;
15588
15589 nto-qnx*)
15590   version_type=linux
15591   need_lib_prefix=no
15592   need_version=no
15593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594   soname_spec='${libname}${release}${shared_ext}$major'
15595   shlibpath_var=LD_LIBRARY_PATH
15596   shlibpath_overrides_runpath=yes
15597   ;;
15598
15599 openbsd*)
15600   version_type=sunos
15601   need_lib_prefix=no
15602   need_version=no
15603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15604   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15605   shlibpath_var=LD_LIBRARY_PATH
15606   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15607     case $host_os in
15608       openbsd2.[89] | openbsd2.[89].*)
15609         shlibpath_overrides_runpath=no
15610         ;;
15611       *)
15612         shlibpath_overrides_runpath=yes
15613         ;;
15614       esac
15615   else
15616     shlibpath_overrides_runpath=yes
15617   fi
15618   ;;
15619
15620 os2*)
15621   libname_spec='$name'
15622   shrext_cmds=".dll"
15623   need_lib_prefix=no
15624   library_names_spec='$libname${shared_ext} $libname.a'
15625   dynamic_linker='OS/2 ld.exe'
15626   shlibpath_var=LIBPATH
15627   ;;
15628
15629 osf3* | osf4* | osf5*)
15630   version_type=osf
15631   need_lib_prefix=no
15632   need_version=no
15633   soname_spec='${libname}${release}${shared_ext}$major'
15634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635   shlibpath_var=LD_LIBRARY_PATH
15636   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15637   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15638   ;;
15639
15640 sco3.2v5*)
15641   version_type=osf
15642   soname_spec='${libname}${release}${shared_ext}$major'
15643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15644   shlibpath_var=LD_LIBRARY_PATH
15645   ;;
15646
15647 solaris*)
15648   version_type=linux
15649   need_lib_prefix=no
15650   need_version=no
15651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15652   soname_spec='${libname}${release}${shared_ext}$major'
15653   shlibpath_var=LD_LIBRARY_PATH
15654   shlibpath_overrides_runpath=yes
15655   hardcode_into_libs=yes
15656   # ldd complains unless libraries are executable
15657   postinstall_cmds='chmod +x $lib'
15658   ;;
15659
15660 sunos4*)
15661   version_type=sunos
15662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15663   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15664   shlibpath_var=LD_LIBRARY_PATH
15665   shlibpath_overrides_runpath=yes
15666   if test "$with_gnu_ld" = yes; then
15667     need_lib_prefix=no
15668   fi
15669   need_version=yes
15670   ;;
15671
15672 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15673   version_type=linux
15674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15675   soname_spec='${libname}${release}${shared_ext}$major'
15676   shlibpath_var=LD_LIBRARY_PATH
15677   case $host_vendor in
15678     sni)
15679       shlibpath_overrides_runpath=no
15680       need_lib_prefix=no
15681       export_dynamic_flag_spec='${wl}-Blargedynsym'
15682       runpath_var=LD_RUN_PATH
15683       ;;
15684     siemens)
15685       need_lib_prefix=no
15686       ;;
15687     motorola)
15688       need_lib_prefix=no
15689       need_version=no
15690       shlibpath_overrides_runpath=no
15691       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15692       ;;
15693   esac
15694   ;;
15695
15696 sysv4*MP*)
15697   if test -d /usr/nec ;then
15698     version_type=linux
15699     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15700     soname_spec='$libname${shared_ext}.$major'
15701     shlibpath_var=LD_LIBRARY_PATH
15702   fi
15703   ;;
15704
15705 uts4*)
15706   version_type=linux
15707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15708   soname_spec='${libname}${release}${shared_ext}$major'
15709   shlibpath_var=LD_LIBRARY_PATH
15710   ;;
15711
15712 *)
15713   dynamic_linker=no
15714   ;;
15715 esac
15716 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15717 echo "${ECHO_T}$dynamic_linker" >&6
15718 test "$dynamic_linker" = no && can_build_shared=no
15719
15720 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15721 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15722 hardcode_action_CXX=
15723 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15724    test -n "$runpath_var_CXX" || \
15725    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15726
15727   # We can hardcode non-existant directories.
15728   if test "$hardcode_direct_CXX" != no &&
15729      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15730      # have to relink, otherwise we might link with an installed library
15731      # when we should be linking with a yet-to-be-installed one
15732      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15733      test "$hardcode_minus_L_CXX" != no; then
15734     # Linking always hardcodes the temporary library directory.
15735     hardcode_action_CXX=relink
15736   else
15737     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15738     hardcode_action_CXX=immediate
15739   fi
15740 else
15741   # We cannot hardcode anything, or else we can only hardcode existing
15742   # directories.
15743   hardcode_action_CXX=unsupported
15744 fi
15745 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15746 echo "${ECHO_T}$hardcode_action_CXX" >&6
15747
15748 if test "$hardcode_action_CXX" = relink; then
15749   # Fast installation is not supported
15750   enable_fast_install=no
15751 elif test "$shlibpath_overrides_runpath" = yes ||
15752      test "$enable_shared" = no; then
15753   # Fast installation is not necessary
15754   enable_fast_install=needless
15755 fi
15756
15757 striplib=
15758 old_striplib=
15759 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15760 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15761 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15762   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15763   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15764   echo "$as_me:$LINENO: result: yes" >&5
15765 echo "${ECHO_T}yes" >&6
15766 else
15767 # FIXME - insert some real tests, host_os isn't really good enough
15768   case $host_os in
15769    darwin*)
15770        if test -n "$STRIP" ; then
15771          striplib="$STRIP -x"
15772          echo "$as_me:$LINENO: result: yes" >&5
15773 echo "${ECHO_T}yes" >&6
15774        else
15775   echo "$as_me:$LINENO: result: no" >&5
15776 echo "${ECHO_T}no" >&6
15777 fi
15778        ;;
15779    *)
15780   echo "$as_me:$LINENO: result: no" >&5
15781 echo "${ECHO_T}no" >&6
15782     ;;
15783   esac
15784 fi
15785
15786 if test "x$enable_dlopen" != xyes; then
15787   enable_dlopen=unknown
15788   enable_dlopen_self=unknown
15789   enable_dlopen_self_static=unknown
15790 else
15791   lt_cv_dlopen=no
15792   lt_cv_dlopen_libs=
15793
15794   case $host_os in
15795   beos*)
15796     lt_cv_dlopen="load_add_on"
15797     lt_cv_dlopen_libs=
15798     lt_cv_dlopen_self=yes
15799     ;;
15800
15801   mingw* | pw32*)
15802     lt_cv_dlopen="LoadLibrary"
15803     lt_cv_dlopen_libs=
15804    ;;
15805
15806   cygwin*)
15807     lt_cv_dlopen="dlopen"
15808     lt_cv_dlopen_libs=
15809    ;;
15810
15811   darwin*)
15812   # if libdl is installed we need to link against it
15813     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15814 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15815 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15816   echo $ECHO_N "(cached) $ECHO_C" >&6
15817 else
15818   ac_check_lib_save_LIBS=$LIBS
15819 LIBS="-ldl  $LIBS"
15820 cat >conftest.$ac_ext <<_ACEOF
15821 /* confdefs.h.  */
15822 _ACEOF
15823 cat confdefs.h >>conftest.$ac_ext
15824 cat >>conftest.$ac_ext <<_ACEOF
15825 /* end confdefs.h.  */
15826
15827 /* Override any gcc2 internal prototype to avoid an error.  */
15828 #ifdef __cplusplus
15829 extern "C"
15830 #endif
15831 /* We use char because int might match the return type of a gcc2
15832    builtin and then its argument prototype would still apply.  */
15833 char dlopen ();
15834 int
15835 main ()
15836 {
15837 dlopen ();
15838   ;
15839   return 0;
15840 }
15841 _ACEOF
15842 rm -f conftest.$ac_objext conftest$ac_exeext
15843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15844   (eval $ac_link) 2>conftest.er1
15845   ac_status=$?
15846   grep -v '^ *+' conftest.er1 >conftest.err
15847   rm -f conftest.er1
15848   cat conftest.err >&5
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); } &&
15851          { ac_try='test -z "$ac_cxx_werror_flag"
15852                          || test ! -s conftest.err'
15853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854   (eval $ac_try) 2>&5
15855   ac_status=$?
15856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857   (exit $ac_status); }; } &&
15858          { ac_try='test -s conftest$ac_exeext'
15859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860   (eval $ac_try) 2>&5
15861   ac_status=$?
15862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863   (exit $ac_status); }; }; then
15864   ac_cv_lib_dl_dlopen=yes
15865 else
15866   echo "$as_me: failed program was:" >&5
15867 sed 's/^/| /' conftest.$ac_ext >&5
15868
15869 ac_cv_lib_dl_dlopen=no
15870 fi
15871 rm -f conftest.err conftest.$ac_objext \
15872       conftest$ac_exeext conftest.$ac_ext
15873 LIBS=$ac_check_lib_save_LIBS
15874 fi
15875 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15876 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15877 if test $ac_cv_lib_dl_dlopen = yes; then
15878   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15879 else
15880
15881     lt_cv_dlopen="dyld"
15882     lt_cv_dlopen_libs=
15883     lt_cv_dlopen_self=yes
15884
15885 fi
15886
15887    ;;
15888
15889   *)
15890     echo "$as_me:$LINENO: checking for shl_load" >&5
15891 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15892 if test "${ac_cv_func_shl_load+set}" = set; then
15893   echo $ECHO_N "(cached) $ECHO_C" >&6
15894 else
15895   cat >conftest.$ac_ext <<_ACEOF
15896 /* confdefs.h.  */
15897 _ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h.  */
15901 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15903 #define shl_load innocuous_shl_load
15904
15905 /* System header to define __stub macros and hopefully few prototypes,
15906     which can conflict with char shl_load (); below.
15907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15908     <limits.h> exists even on freestanding compilers.  */
15909
15910 #ifdef __STDC__
15911 # include <limits.h>
15912 #else
15913 # include <assert.h>
15914 #endif
15915
15916 #undef shl_load
15917
15918 /* Override any gcc2 internal prototype to avoid an error.  */
15919 #ifdef __cplusplus
15920 extern "C"
15921 {
15922 #endif
15923 /* We use char because int might match the return type of a gcc2
15924    builtin and then its argument prototype would still apply.  */
15925 char shl_load ();
15926 /* The GNU C library defines this for functions which it implements
15927     to always fail with ENOSYS.  Some functions are actually named
15928     something starting with __ and the normal name is an alias.  */
15929 #if defined (__stub_shl_load) || defined (__stub___shl_load)
15930 choke me
15931 #else
15932 char (*f) () = shl_load;
15933 #endif
15934 #ifdef __cplusplus
15935 }
15936 #endif
15937
15938 int
15939 main ()
15940 {
15941 return f != shl_load;
15942   ;
15943   return 0;
15944 }
15945 _ACEOF
15946 rm -f conftest.$ac_objext conftest$ac_exeext
15947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15948   (eval $ac_link) 2>conftest.er1
15949   ac_status=$?
15950   grep -v '^ *+' conftest.er1 >conftest.err
15951   rm -f conftest.er1
15952   cat conftest.err >&5
15953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954   (exit $ac_status); } &&
15955          { ac_try='test -z "$ac_cxx_werror_flag"
15956                          || test ! -s conftest.err'
15957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958   (eval $ac_try) 2>&5
15959   ac_status=$?
15960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961   (exit $ac_status); }; } &&
15962          { ac_try='test -s conftest$ac_exeext'
15963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964   (eval $ac_try) 2>&5
15965   ac_status=$?
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); }; }; then
15968   ac_cv_func_shl_load=yes
15969 else
15970   echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15972
15973 ac_cv_func_shl_load=no
15974 fi
15975 rm -f conftest.err conftest.$ac_objext \
15976       conftest$ac_exeext conftest.$ac_ext
15977 fi
15978 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15979 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15980 if test $ac_cv_func_shl_load = yes; then
15981   lt_cv_dlopen="shl_load"
15982 else
15983   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15984 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15985 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15986   echo $ECHO_N "(cached) $ECHO_C" >&6
15987 else
15988   ac_check_lib_save_LIBS=$LIBS
15989 LIBS="-ldld  $LIBS"
15990 cat >conftest.$ac_ext <<_ACEOF
15991 /* confdefs.h.  */
15992 _ACEOF
15993 cat confdefs.h >>conftest.$ac_ext
15994 cat >>conftest.$ac_ext <<_ACEOF
15995 /* end confdefs.h.  */
15996
15997 /* Override any gcc2 internal prototype to avoid an error.  */
15998 #ifdef __cplusplus
15999 extern "C"
16000 #endif
16001 /* We use char because int might match the return type of a gcc2
16002    builtin and then its argument prototype would still apply.  */
16003 char shl_load ();
16004 int
16005 main ()
16006 {
16007 shl_load ();
16008   ;
16009   return 0;
16010 }
16011 _ACEOF
16012 rm -f conftest.$ac_objext conftest$ac_exeext
16013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16014   (eval $ac_link) 2>conftest.er1
16015   ac_status=$?
16016   grep -v '^ *+' conftest.er1 >conftest.err
16017   rm -f conftest.er1
16018   cat conftest.err >&5
16019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020   (exit $ac_status); } &&
16021          { ac_try='test -z "$ac_cxx_werror_flag"
16022                          || test ! -s conftest.err'
16023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16024   (eval $ac_try) 2>&5
16025   ac_status=$?
16026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027   (exit $ac_status); }; } &&
16028          { ac_try='test -s conftest$ac_exeext'
16029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030   (eval $ac_try) 2>&5
16031   ac_status=$?
16032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033   (exit $ac_status); }; }; then
16034   ac_cv_lib_dld_shl_load=yes
16035 else
16036   echo "$as_me: failed program was:" >&5
16037 sed 's/^/| /' conftest.$ac_ext >&5
16038
16039 ac_cv_lib_dld_shl_load=no
16040 fi
16041 rm -f conftest.err conftest.$ac_objext \
16042       conftest$ac_exeext conftest.$ac_ext
16043 LIBS=$ac_check_lib_save_LIBS
16044 fi
16045 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16046 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16047 if test $ac_cv_lib_dld_shl_load = yes; then
16048   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16049 else
16050   echo "$as_me:$LINENO: checking for dlopen" >&5
16051 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16052 if test "${ac_cv_func_dlopen+set}" = set; then
16053   echo $ECHO_N "(cached) $ECHO_C" >&6
16054 else
16055   cat >conftest.$ac_ext <<_ACEOF
16056 /* confdefs.h.  */
16057 _ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h.  */
16061 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16063 #define dlopen innocuous_dlopen
16064
16065 /* System header to define __stub macros and hopefully few prototypes,
16066     which can conflict with char dlopen (); below.
16067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16068     <limits.h> exists even on freestanding compilers.  */
16069
16070 #ifdef __STDC__
16071 # include <limits.h>
16072 #else
16073 # include <assert.h>
16074 #endif
16075
16076 #undef dlopen
16077
16078 /* Override any gcc2 internal prototype to avoid an error.  */
16079 #ifdef __cplusplus
16080 extern "C"
16081 {
16082 #endif
16083 /* We use char because int might match the return type of a gcc2
16084    builtin and then its argument prototype would still apply.  */
16085 char dlopen ();
16086 /* The GNU C library defines this for functions which it implements
16087     to always fail with ENOSYS.  Some functions are actually named
16088     something starting with __ and the normal name is an alias.  */
16089 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16090 choke me
16091 #else
16092 char (*f) () = dlopen;
16093 #endif
16094 #ifdef __cplusplus
16095 }
16096 #endif
16097
16098 int
16099 main ()
16100 {
16101 return f != dlopen;
16102   ;
16103   return 0;
16104 }
16105 _ACEOF
16106 rm -f conftest.$ac_objext conftest$ac_exeext
16107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16108   (eval $ac_link) 2>conftest.er1
16109   ac_status=$?
16110   grep -v '^ *+' conftest.er1 >conftest.err
16111   rm -f conftest.er1
16112   cat conftest.err >&5
16113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114   (exit $ac_status); } &&
16115          { ac_try='test -z "$ac_cxx_werror_flag"
16116                          || test ! -s conftest.err'
16117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118   (eval $ac_try) 2>&5
16119   ac_status=$?
16120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121   (exit $ac_status); }; } &&
16122          { ac_try='test -s conftest$ac_exeext'
16123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124   (eval $ac_try) 2>&5
16125   ac_status=$?
16126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127   (exit $ac_status); }; }; then
16128   ac_cv_func_dlopen=yes
16129 else
16130   echo "$as_me: failed program was:" >&5
16131 sed 's/^/| /' conftest.$ac_ext >&5
16132
16133 ac_cv_func_dlopen=no
16134 fi
16135 rm -f conftest.err conftest.$ac_objext \
16136       conftest$ac_exeext conftest.$ac_ext
16137 fi
16138 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16139 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16140 if test $ac_cv_func_dlopen = yes; then
16141   lt_cv_dlopen="dlopen"
16142 else
16143   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16144 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16145 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16146   echo $ECHO_N "(cached) $ECHO_C" >&6
16147 else
16148   ac_check_lib_save_LIBS=$LIBS
16149 LIBS="-ldl  $LIBS"
16150 cat >conftest.$ac_ext <<_ACEOF
16151 /* confdefs.h.  */
16152 _ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h.  */
16156
16157 /* Override any gcc2 internal prototype to avoid an error.  */
16158 #ifdef __cplusplus
16159 extern "C"
16160 #endif
16161 /* We use char because int might match the return type of a gcc2
16162    builtin and then its argument prototype would still apply.  */
16163 char dlopen ();
16164 int
16165 main ()
16166 {
16167 dlopen ();
16168   ;
16169   return 0;
16170 }
16171 _ACEOF
16172 rm -f conftest.$ac_objext conftest$ac_exeext
16173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16174   (eval $ac_link) 2>conftest.er1
16175   ac_status=$?
16176   grep -v '^ *+' conftest.er1 >conftest.err
16177   rm -f conftest.er1
16178   cat conftest.err >&5
16179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); } &&
16181          { ac_try='test -z "$ac_cxx_werror_flag"
16182                          || test ! -s conftest.err'
16183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16184   (eval $ac_try) 2>&5
16185   ac_status=$?
16186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187   (exit $ac_status); }; } &&
16188          { ac_try='test -s conftest$ac_exeext'
16189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190   (eval $ac_try) 2>&5
16191   ac_status=$?
16192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193   (exit $ac_status); }; }; then
16194   ac_cv_lib_dl_dlopen=yes
16195 else
16196   echo "$as_me: failed program was:" >&5
16197 sed 's/^/| /' conftest.$ac_ext >&5
16198
16199 ac_cv_lib_dl_dlopen=no
16200 fi
16201 rm -f conftest.err conftest.$ac_objext \
16202       conftest$ac_exeext conftest.$ac_ext
16203 LIBS=$ac_check_lib_save_LIBS
16204 fi
16205 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16206 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16207 if test $ac_cv_lib_dl_dlopen = yes; then
16208   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16209 else
16210   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16211 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16212 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16213   echo $ECHO_N "(cached) $ECHO_C" >&6
16214 else
16215   ac_check_lib_save_LIBS=$LIBS
16216 LIBS="-lsvld  $LIBS"
16217 cat >conftest.$ac_ext <<_ACEOF
16218 /* confdefs.h.  */
16219 _ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h.  */
16223
16224 /* Override any gcc2 internal prototype to avoid an error.  */
16225 #ifdef __cplusplus
16226 extern "C"
16227 #endif
16228 /* We use char because int might match the return type of a gcc2
16229    builtin and then its argument prototype would still apply.  */
16230 char dlopen ();
16231 int
16232 main ()
16233 {
16234 dlopen ();
16235   ;
16236   return 0;
16237 }
16238 _ACEOF
16239 rm -f conftest.$ac_objext conftest$ac_exeext
16240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16241   (eval $ac_link) 2>conftest.er1
16242   ac_status=$?
16243   grep -v '^ *+' conftest.er1 >conftest.err
16244   rm -f conftest.er1
16245   cat conftest.err >&5
16246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247   (exit $ac_status); } &&
16248          { ac_try='test -z "$ac_cxx_werror_flag"
16249                          || test ! -s conftest.err'
16250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251   (eval $ac_try) 2>&5
16252   ac_status=$?
16253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); }; } &&
16255          { ac_try='test -s conftest$ac_exeext'
16256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16257   (eval $ac_try) 2>&5
16258   ac_status=$?
16259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260   (exit $ac_status); }; }; then
16261   ac_cv_lib_svld_dlopen=yes
16262 else
16263   echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16265
16266 ac_cv_lib_svld_dlopen=no
16267 fi
16268 rm -f conftest.err conftest.$ac_objext \
16269       conftest$ac_exeext conftest.$ac_ext
16270 LIBS=$ac_check_lib_save_LIBS
16271 fi
16272 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16273 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16274 if test $ac_cv_lib_svld_dlopen = yes; then
16275   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16276 else
16277   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16278 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16279 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16280   echo $ECHO_N "(cached) $ECHO_C" >&6
16281 else
16282   ac_check_lib_save_LIBS=$LIBS
16283 LIBS="-ldld  $LIBS"
16284 cat >conftest.$ac_ext <<_ACEOF
16285 /* confdefs.h.  */
16286 _ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h.  */
16290
16291 /* Override any gcc2 internal prototype to avoid an error.  */
16292 #ifdef __cplusplus
16293 extern "C"
16294 #endif
16295 /* We use char because int might match the return type of a gcc2
16296    builtin and then its argument prototype would still apply.  */
16297 char dld_link ();
16298 int
16299 main ()
16300 {
16301 dld_link ();
16302   ;
16303   return 0;
16304 }
16305 _ACEOF
16306 rm -f conftest.$ac_objext conftest$ac_exeext
16307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16308   (eval $ac_link) 2>conftest.er1
16309   ac_status=$?
16310   grep -v '^ *+' conftest.er1 >conftest.err
16311   rm -f conftest.er1
16312   cat conftest.err >&5
16313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314   (exit $ac_status); } &&
16315          { ac_try='test -z "$ac_cxx_werror_flag"
16316                          || test ! -s conftest.err'
16317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318   (eval $ac_try) 2>&5
16319   ac_status=$?
16320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321   (exit $ac_status); }; } &&
16322          { ac_try='test -s conftest$ac_exeext'
16323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324   (eval $ac_try) 2>&5
16325   ac_status=$?
16326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327   (exit $ac_status); }; }; then
16328   ac_cv_lib_dld_dld_link=yes
16329 else
16330   echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16332
16333 ac_cv_lib_dld_dld_link=no
16334 fi
16335 rm -f conftest.err conftest.$ac_objext \
16336       conftest$ac_exeext conftest.$ac_ext
16337 LIBS=$ac_check_lib_save_LIBS
16338 fi
16339 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16340 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16341 if test $ac_cv_lib_dld_dld_link = yes; then
16342   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16343 fi
16344
16345
16346 fi
16347
16348
16349 fi
16350
16351
16352 fi
16353
16354
16355 fi
16356
16357
16358 fi
16359
16360     ;;
16361   esac
16362
16363   if test "x$lt_cv_dlopen" != xno; then
16364     enable_dlopen=yes
16365   else
16366     enable_dlopen=no
16367   fi
16368
16369   case $lt_cv_dlopen in
16370   dlopen)
16371     save_CPPFLAGS="$CPPFLAGS"
16372     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16373
16374     save_LDFLAGS="$LDFLAGS"
16375     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16376
16377     save_LIBS="$LIBS"
16378     LIBS="$lt_cv_dlopen_libs $LIBS"
16379
16380     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16381 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16382 if test "${lt_cv_dlopen_self+set}" = set; then
16383   echo $ECHO_N "(cached) $ECHO_C" >&6
16384 else
16385           if test "$cross_compiling" = yes; then :
16386   lt_cv_dlopen_self=cross
16387 else
16388   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16389   lt_status=$lt_dlunknown
16390   cat > conftest.$ac_ext <<EOF
16391 #line 16391 "configure"
16392 #include "confdefs.h"
16393
16394 #if HAVE_DLFCN_H
16395 #include <dlfcn.h>
16396 #endif
16397
16398 #include <stdio.h>
16399
16400 #ifdef RTLD_GLOBAL
16401 #  define LT_DLGLOBAL           RTLD_GLOBAL
16402 #else
16403 #  ifdef DL_GLOBAL
16404 #    define LT_DLGLOBAL         DL_GLOBAL
16405 #  else
16406 #    define LT_DLGLOBAL         0
16407 #  endif
16408 #endif
16409
16410 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16411    find out it does not work in some platform. */
16412 #ifndef LT_DLLAZY_OR_NOW
16413 #  ifdef RTLD_LAZY
16414 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16415 #  else
16416 #    ifdef DL_LAZY
16417 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16418 #    else
16419 #      ifdef RTLD_NOW
16420 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16421 #      else
16422 #        ifdef DL_NOW
16423 #          define LT_DLLAZY_OR_NOW      DL_NOW
16424 #        else
16425 #          define LT_DLLAZY_OR_NOW      0
16426 #        endif
16427 #      endif
16428 #    endif
16429 #  endif
16430 #endif
16431
16432 #ifdef __cplusplus
16433 extern "C" void exit (int);
16434 #endif
16435
16436 void fnord() { int i=42;}
16437 int main ()
16438 {
16439   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16440   int status = $lt_dlunknown;
16441
16442   if (self)
16443     {
16444       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16445       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16446       /* dlclose (self); */
16447     }
16448
16449     exit (status);
16450 }
16451 EOF
16452   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16453   (eval $ac_link) 2>&5
16454   ac_status=$?
16455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16457     (./conftest; exit; ) 2>/dev/null
16458     lt_status=$?
16459     case x$lt_status in
16460       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16461       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16462       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16463     esac
16464   else :
16465     # compilation failed
16466     lt_cv_dlopen_self=no
16467   fi
16468 fi
16469 rm -fr conftest*
16470
16471
16472 fi
16473 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16474 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16475
16476     if test "x$lt_cv_dlopen_self" = xyes; then
16477       LDFLAGS="$LDFLAGS $link_static_flag"
16478       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16479 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16480 if test "${lt_cv_dlopen_self_static+set}" = set; then
16481   echo $ECHO_N "(cached) $ECHO_C" >&6
16482 else
16483           if test "$cross_compiling" = yes; then :
16484   lt_cv_dlopen_self_static=cross
16485 else
16486   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16487   lt_status=$lt_dlunknown
16488   cat > conftest.$ac_ext <<EOF
16489 #line 16489 "configure"
16490 #include "confdefs.h"
16491
16492 #if HAVE_DLFCN_H
16493 #include <dlfcn.h>
16494 #endif
16495
16496 #include <stdio.h>
16497
16498 #ifdef RTLD_GLOBAL
16499 #  define LT_DLGLOBAL           RTLD_GLOBAL
16500 #else
16501 #  ifdef DL_GLOBAL
16502 #    define LT_DLGLOBAL         DL_GLOBAL
16503 #  else
16504 #    define LT_DLGLOBAL         0
16505 #  endif
16506 #endif
16507
16508 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16509    find out it does not work in some platform. */
16510 #ifndef LT_DLLAZY_OR_NOW
16511 #  ifdef RTLD_LAZY
16512 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16513 #  else
16514 #    ifdef DL_LAZY
16515 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16516 #    else
16517 #      ifdef RTLD_NOW
16518 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16519 #      else
16520 #        ifdef DL_NOW
16521 #          define LT_DLLAZY_OR_NOW      DL_NOW
16522 #        else
16523 #          define LT_DLLAZY_OR_NOW      0
16524 #        endif
16525 #      endif
16526 #    endif
16527 #  endif
16528 #endif
16529
16530 #ifdef __cplusplus
16531 extern "C" void exit (int);
16532 #endif
16533
16534 void fnord() { int i=42;}
16535 int main ()
16536 {
16537   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16538   int status = $lt_dlunknown;
16539
16540   if (self)
16541     {
16542       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16543       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16544       /* dlclose (self); */
16545     }
16546
16547     exit (status);
16548 }
16549 EOF
16550   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16551   (eval $ac_link) 2>&5
16552   ac_status=$?
16553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16555     (./conftest; exit; ) 2>/dev/null
16556     lt_status=$?
16557     case x$lt_status in
16558       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16559       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16560       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16561     esac
16562   else :
16563     # compilation failed
16564     lt_cv_dlopen_self_static=no
16565   fi
16566 fi
16567 rm -fr conftest*
16568
16569
16570 fi
16571 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16572 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16573     fi
16574
16575     CPPFLAGS="$save_CPPFLAGS"
16576     LDFLAGS="$save_LDFLAGS"
16577     LIBS="$save_LIBS"
16578     ;;
16579   esac
16580
16581   case $lt_cv_dlopen_self in
16582   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16583   *) enable_dlopen_self=unknown ;;
16584   esac
16585
16586   case $lt_cv_dlopen_self_static in
16587   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16588   *) enable_dlopen_self_static=unknown ;;
16589   esac
16590 fi
16591
16592
16593 # The else clause should only fire when bootstrapping the
16594 # libtool distribution, otherwise you forgot to ship ltmain.sh
16595 # with your package, and you will get complaints that there are
16596 # no rules to generate ltmain.sh.
16597 if test -f "$ltmain"; then
16598   # See if we are running on zsh, and set the options which allow our commands through
16599   # without removal of \ escapes.
16600   if test -n "${ZSH_VERSION+set}" ; then
16601     setopt NO_GLOB_SUBST
16602   fi
16603   # Now quote all the things that may contain metacharacters while being
16604   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16605   # variables and quote the copies for generation of the libtool script.
16606   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16607     SED SHELL STRIP \
16608     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16609     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16610     deplibs_check_method reload_flag reload_cmds need_locks \
16611     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16612     lt_cv_sys_global_symbol_to_c_name_address \
16613     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16614     old_postinstall_cmds old_postuninstall_cmds \
16615     compiler_CXX \
16616     CC_CXX \
16617     LD_CXX \
16618     lt_prog_compiler_wl_CXX \
16619     lt_prog_compiler_pic_CXX \
16620     lt_prog_compiler_static_CXX \
16621     lt_prog_compiler_no_builtin_flag_CXX \
16622     export_dynamic_flag_spec_CXX \
16623     thread_safe_flag_spec_CXX \
16624     whole_archive_flag_spec_CXX \
16625     enable_shared_with_static_runtimes_CXX \
16626     old_archive_cmds_CXX \
16627     old_archive_from_new_cmds_CXX \
16628     predep_objects_CXX \
16629     postdep_objects_CXX \
16630     predeps_CXX \
16631     postdeps_CXX \
16632     compiler_lib_search_path_CXX \
16633     archive_cmds_CXX \
16634     archive_expsym_cmds_CXX \
16635     postinstall_cmds_CXX \
16636     postuninstall_cmds_CXX \
16637     old_archive_from_expsyms_cmds_CXX \
16638     allow_undefined_flag_CXX \
16639     no_undefined_flag_CXX \
16640     export_symbols_cmds_CXX \
16641     hardcode_libdir_flag_spec_CXX \
16642     hardcode_libdir_flag_spec_ld_CXX \
16643     hardcode_libdir_separator_CXX \
16644     hardcode_automatic_CXX \
16645     module_cmds_CXX \
16646     module_expsym_cmds_CXX \
16647     lt_cv_prog_compiler_c_o_CXX \
16648     exclude_expsyms_CXX \
16649     include_expsyms_CXX; do
16650
16651     case $var in
16652     old_archive_cmds_CXX | \
16653     old_archive_from_new_cmds_CXX | \
16654     archive_cmds_CXX | \
16655     archive_expsym_cmds_CXX | \
16656     module_cmds_CXX | \
16657     module_expsym_cmds_CXX | \
16658     old_archive_from_expsyms_cmds_CXX | \
16659     export_symbols_cmds_CXX | \
16660     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16661     postinstall_cmds | postuninstall_cmds | \
16662     old_postinstall_cmds | old_postuninstall_cmds | \
16663     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16664       # Double-quote double-evaled strings.
16665       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16666       ;;
16667     *)
16668       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16669       ;;
16670     esac
16671   done
16672
16673   case $lt_echo in
16674   *'\$0 --fallback-echo"')
16675     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16676     ;;
16677   esac
16678
16679 cfgfile="$ofile"
16680
16681   cat <<__EOF__ >> "$cfgfile"
16682 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16683
16684 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16685
16686 # Shell to use when invoking shell scripts.
16687 SHELL=$lt_SHELL
16688
16689 # Whether or not to build shared libraries.
16690 build_libtool_libs=$enable_shared
16691
16692 # Whether or not to build static libraries.
16693 build_old_libs=$enable_static
16694
16695 # Whether or not to add -lc for building shared libraries.
16696 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16697
16698 # Whether or not to disallow shared libs when runtime libs are static
16699 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16700
16701 # Whether or not to optimize for fast installation.
16702 fast_install=$enable_fast_install
16703
16704 # The host system.
16705 host_alias=$host_alias
16706 host=$host
16707
16708 # An echo program that does not interpret backslashes.
16709 echo=$lt_echo
16710
16711 # The archiver.
16712 AR=$lt_AR
16713 AR_FLAGS=$lt_AR_FLAGS
16714
16715 # A C compiler.
16716 LTCC=$lt_LTCC
16717
16718 # A language-specific compiler.
16719 CC=$lt_compiler_CXX
16720
16721 # Is the compiler the GNU C compiler?
16722 with_gcc=$GCC_CXX
16723
16724 # An ERE matcher.
16725 EGREP=$lt_EGREP
16726
16727 # The linker used to build libraries.
16728 LD=$lt_LD_CXX
16729
16730 # Whether we need hard or soft links.
16731 LN_S=$lt_LN_S
16732
16733 # A BSD-compatible nm program.
16734 NM=$lt_NM
16735
16736 # A symbol stripping program
16737 STRIP=$lt_STRIP
16738
16739 # Used to examine libraries when file_magic_cmd begins "file"
16740 MAGIC_CMD=$MAGIC_CMD
16741
16742 # Used on cygwin: DLL creation program.
16743 DLLTOOL="$DLLTOOL"
16744
16745 # Used on cygwin: object dumper.
16746 OBJDUMP="$OBJDUMP"
16747
16748 # Used on cygwin: assembler.
16749 AS="$AS"
16750
16751 # The name of the directory that contains temporary libtool files.
16752 objdir=$objdir
16753
16754 # How to create reloadable object files.
16755 reload_flag=$lt_reload_flag
16756 reload_cmds=$lt_reload_cmds
16757
16758 # How to pass a linker flag through the compiler.
16759 wl=$lt_lt_prog_compiler_wl_CXX
16760
16761 # Object file suffix (normally "o").
16762 objext="$ac_objext"
16763
16764 # Old archive suffix (normally "a").
16765 libext="$libext"
16766
16767 # Shared library suffix (normally ".so").
16768 shrext_cmds='$shrext_cmds'
16769
16770 # Executable file suffix (normally "").
16771 exeext="$exeext"
16772
16773 # Additional compiler flags for building library objects.
16774 pic_flag=$lt_lt_prog_compiler_pic_CXX
16775 pic_mode=$pic_mode
16776
16777 # What is the maximum length of a command?
16778 max_cmd_len=$lt_cv_sys_max_cmd_len
16779
16780 # Does compiler simultaneously support -c and -o options?
16781 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16782
16783 # Must we lock files when doing compilation ?
16784 need_locks=$lt_need_locks
16785
16786 # Do we need the lib prefix for modules?
16787 need_lib_prefix=$need_lib_prefix
16788
16789 # Do we need a version for libraries?
16790 need_version=$need_version
16791
16792 # Whether dlopen is supported.
16793 dlopen_support=$enable_dlopen
16794
16795 # Whether dlopen of programs is supported.
16796 dlopen_self=$enable_dlopen_self
16797
16798 # Whether dlopen of statically linked programs is supported.
16799 dlopen_self_static=$enable_dlopen_self_static
16800
16801 # Compiler flag to prevent dynamic linking.
16802 link_static_flag=$lt_lt_prog_compiler_static_CXX
16803
16804 # Compiler flag to turn off builtin functions.
16805 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16806
16807 # Compiler flag to allow reflexive dlopens.
16808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16809
16810 # Compiler flag to generate shared objects directly from archives.
16811 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16812
16813 # Compiler flag to generate thread-safe objects.
16814 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16815
16816 # Library versioning type.
16817 version_type=$version_type
16818
16819 # Format of library name prefix.
16820 libname_spec=$lt_libname_spec
16821
16822 # List of archive names.  First name is the real one, the rest are links.
16823 # The last name is the one that the linker finds with -lNAME.
16824 library_names_spec=$lt_library_names_spec
16825
16826 # The coded name of the library, if different from the real name.
16827 soname_spec=$lt_soname_spec
16828
16829 # Commands used to build and install an old-style archive.
16830 RANLIB=$lt_RANLIB
16831 old_archive_cmds=$lt_old_archive_cmds_CXX
16832 old_postinstall_cmds=$lt_old_postinstall_cmds
16833 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16834
16835 # Create an old-style archive from a shared archive.
16836 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16837
16838 # Create a temporary old-style archive to link instead of a shared archive.
16839 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16840
16841 # Commands used to build and install a shared archive.
16842 archive_cmds=$lt_archive_cmds_CXX
16843 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16844 postinstall_cmds=$lt_postinstall_cmds
16845 postuninstall_cmds=$lt_postuninstall_cmds
16846
16847 # Commands used to build a loadable module (assumed same as above if empty)
16848 module_cmds=$lt_module_cmds_CXX
16849 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16850
16851 # Commands to strip libraries.
16852 old_striplib=$lt_old_striplib
16853 striplib=$lt_striplib
16854
16855 # Dependencies to place before the objects being linked to create a
16856 # shared library.
16857 predep_objects=$lt_predep_objects_CXX
16858
16859 # Dependencies to place after the objects being linked to create a
16860 # shared library.
16861 postdep_objects=$lt_postdep_objects_CXX
16862
16863 # Dependencies to place before the objects being linked to create a
16864 # shared library.
16865 predeps=$lt_predeps_CXX
16866
16867 # Dependencies to place after the objects being linked to create a
16868 # shared library.
16869 postdeps=$lt_postdeps_CXX
16870
16871 # The library search path used internally by the compiler when linking
16872 # a shared library.
16873 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16874
16875 # Method to check whether dependent libraries are shared objects.
16876 deplibs_check_method=$lt_deplibs_check_method
16877
16878 # Command to use when deplibs_check_method == file_magic.
16879 file_magic_cmd=$lt_file_magic_cmd
16880
16881 # Flag that allows shared libraries with undefined symbols to be built.
16882 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16883
16884 # Flag that forces no undefined symbols.
16885 no_undefined_flag=$lt_no_undefined_flag_CXX
16886
16887 # Commands used to finish a libtool library installation in a directory.
16888 finish_cmds=$lt_finish_cmds
16889
16890 # Same as above, but a single script fragment to be evaled but not shown.
16891 finish_eval=$lt_finish_eval
16892
16893 # Take the output of nm and produce a listing of raw symbols and C names.
16894 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16895
16896 # Transform the output of nm in a proper C declaration
16897 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16898
16899 # Transform the output of nm in a C name address pair
16900 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16901
16902 # This is the shared library runtime path variable.
16903 runpath_var=$runpath_var
16904
16905 # This is the shared library path variable.
16906 shlibpath_var=$shlibpath_var
16907
16908 # Is shlibpath searched before the hard-coded library search path?
16909 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16910
16911 # How to hardcode a shared library path into an executable.
16912 hardcode_action=$hardcode_action_CXX
16913
16914 # Whether we should hardcode library paths into libraries.
16915 hardcode_into_libs=$hardcode_into_libs
16916
16917 # Flag to hardcode \$libdir into a binary during linking.
16918 # This must work even if \$libdir does not exist.
16919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16920
16921 # If ld is used when linking, flag to hardcode \$libdir into
16922 # a binary during linking. This must work even if \$libdir does
16923 # not exist.
16924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16925
16926 # Whether we need a single -rpath flag with a separated argument.
16927 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16928
16929 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16930 # resulting binary.
16931 hardcode_direct=$hardcode_direct_CXX
16932
16933 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16934 # resulting binary.
16935 hardcode_minus_L=$hardcode_minus_L_CXX
16936
16937 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16938 # the resulting binary.
16939 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16940
16941 # Set to yes if building a shared library automatically hardcodes DIR into the library
16942 # and all subsequent libraries and executables linked against it.
16943 hardcode_automatic=$hardcode_automatic_CXX
16944
16945 # Variables whose values should be saved in libtool wrapper scripts and
16946 # restored at relink time.
16947 variables_saved_for_relink="$variables_saved_for_relink"
16948
16949 # Whether libtool must link a program against all its dependency libraries.
16950 link_all_deplibs=$link_all_deplibs_CXX
16951
16952 # Compile-time system search path for libraries
16953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16954
16955 # Run-time system search path for libraries
16956 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16957
16958 # Fix the shell variable \$srcfile for the compiler.
16959 fix_srcfile_path="$fix_srcfile_path_CXX"
16960
16961 # Set to yes if exported symbols are required.
16962 always_export_symbols=$always_export_symbols_CXX
16963
16964 # The commands to list exported symbols.
16965 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16966
16967 # The commands to extract the exported symbol list from a shared archive.
16968 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16969
16970 # Symbols that should not be listed in the preloaded symbols.
16971 exclude_expsyms=$lt_exclude_expsyms_CXX
16972
16973 # Symbols that must always be exported.
16974 include_expsyms=$lt_include_expsyms_CXX
16975
16976 # ### END LIBTOOL TAG CONFIG: $tagname
16977
16978 __EOF__
16979
16980
16981 else
16982   # If there is no Makefile yet, we rely on a make rule to execute
16983   # `config.status --recheck' to rerun these tests and create the
16984   # libtool script then.
16985   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16986   if test -f "$ltmain_in"; then
16987     test -f Makefile && make "$ltmain"
16988   fi
16989 fi
16990
16991
16992 ac_ext=c
16993 ac_cpp='$CPP $CPPFLAGS'
16994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16997
16998 CC=$lt_save_CC
16999 LDCXX=$LD
17000 LD=$lt_save_LD
17001 GCC=$lt_save_GCC
17002 with_gnu_ldcxx=$with_gnu_ld
17003 with_gnu_ld=$lt_save_with_gnu_ld
17004 lt_cv_path_LDCXX=$lt_cv_path_LD
17005 lt_cv_path_LD=$lt_save_path_LD
17006 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17007 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17008
17009         else
17010           tagname=""
17011         fi
17012         ;;
17013
17014       F77)
17015         if test -n "$F77" && test "X$F77" != "Xno"; then
17016
17017 ac_ext=f
17018 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17019 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17020 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17021
17022
17023 archive_cmds_need_lc_F77=no
17024 allow_undefined_flag_F77=
17025 always_export_symbols_F77=no
17026 archive_expsym_cmds_F77=
17027 export_dynamic_flag_spec_F77=
17028 hardcode_direct_F77=no
17029 hardcode_libdir_flag_spec_F77=
17030 hardcode_libdir_flag_spec_ld_F77=
17031 hardcode_libdir_separator_F77=
17032 hardcode_minus_L_F77=no
17033 hardcode_automatic_F77=no
17034 module_cmds_F77=
17035 module_expsym_cmds_F77=
17036 link_all_deplibs_F77=unknown
17037 old_archive_cmds_F77=$old_archive_cmds
17038 no_undefined_flag_F77=
17039 whole_archive_flag_spec_F77=
17040 enable_shared_with_static_runtimes_F77=no
17041
17042 # Source file extension for f77 test sources.
17043 ac_ext=f
17044
17045 # Object file extension for compiled f77 test sources.
17046 objext=o
17047 objext_F77=$objext
17048
17049 # Code to be used in simple compile tests
17050 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
17051
17052 # Code to be used in simple link tests
17053 lt_simple_link_test_code="      program t\n      end\n"
17054
17055 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17056
17057 # If no C compiler was specified, use CC.
17058 LTCC=${LTCC-"$CC"}
17059
17060 # Allow CC to be a program name with arguments.
17061 compiler=$CC
17062
17063
17064 # Allow CC to be a program name with arguments.
17065 lt_save_CC="$CC"
17066 CC=${F77-"f77"}
17067 compiler=$CC
17068 compiler_F77=$CC
17069 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
17070
17071 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17072 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
17073 echo "$as_me:$LINENO: result: $can_build_shared" >&5
17074 echo "${ECHO_T}$can_build_shared" >&6
17075
17076 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17077 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
17078 test "$can_build_shared" = "no" && enable_shared=no
17079
17080 # On AIX, shared libraries and static libraries use the same namespace, and
17081 # are all built from PIC.
17082 case "$host_os" in
17083 aix3*)
17084   test "$enable_shared" = yes && enable_static=no
17085   if test -n "$RANLIB"; then
17086     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17087     postinstall_cmds='$RANLIB $lib'
17088   fi
17089   ;;
17090 aix4* | aix5*)
17091   test "$enable_shared" = yes && enable_static=no
17092   ;;
17093 esac
17094 echo "$as_me:$LINENO: result: $enable_shared" >&5
17095 echo "${ECHO_T}$enable_shared" >&6
17096
17097 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17098 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
17099 # Make sure either enable_shared or enable_static is yes.
17100 test "$enable_shared" = yes || enable_static=yes
17101 echo "$as_me:$LINENO: result: $enable_static" >&5
17102 echo "${ECHO_T}$enable_static" >&6
17103
17104 test "$ld_shlibs_F77" = no && can_build_shared=no
17105
17106 GCC_F77="$G77"
17107 LD_F77="$LD"
17108
17109 lt_prog_compiler_wl_F77=
17110 lt_prog_compiler_pic_F77=
17111 lt_prog_compiler_static_F77=
17112
17113 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17114 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17115
17116   if test "$GCC" = yes; then
17117     lt_prog_compiler_wl_F77='-Wl,'
17118     lt_prog_compiler_static_F77='-static'
17119
17120     case $host_os in
17121       aix*)
17122       # All AIX code is PIC.
17123       if test "$host_cpu" = ia64; then
17124         # AIX 5 now supports IA64 processor
17125         lt_prog_compiler_static_F77='-Bstatic'
17126       fi
17127       ;;
17128
17129     amigaos*)
17130       # FIXME: we need at least 68020 code to build shared libraries, but
17131       # adding the `-m68020' flag to GCC prevents building anything better,
17132       # like `-m68040'.
17133       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
17134       ;;
17135
17136     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17137       # PIC is the default for these OSes.
17138       ;;
17139
17140     mingw* | pw32* | os2*)
17141       # This hack is so that the source file can tell whether it is being
17142       # built for inclusion in a dll (and should export symbols for example).
17143       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17144       ;;
17145
17146     darwin* | rhapsody*)
17147       # PIC is the default on this platform
17148       # Common symbols not allowed in MH_DYLIB files
17149       lt_prog_compiler_pic_F77='-fno-common'
17150       ;;
17151
17152     msdosdjgpp*)
17153       # Just because we use GCC doesn't mean we suddenly get shared libraries
17154       # on systems that don't support them.
17155       lt_prog_compiler_can_build_shared_F77=no
17156       enable_shared=no
17157       ;;
17158
17159     sysv4*MP*)
17160       if test -d /usr/nec; then
17161         lt_prog_compiler_pic_F77=-Kconform_pic
17162       fi
17163       ;;
17164
17165     hpux*)
17166       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17167       # not for PA HP-UX.
17168       case "$host_cpu" in
17169       hppa*64*|ia64*)
17170         # +Z the default
17171         ;;
17172       *)
17173         lt_prog_compiler_pic_F77='-fPIC'
17174         ;;
17175       esac
17176       ;;
17177
17178     *)
17179       lt_prog_compiler_pic_F77='-fPIC'
17180       ;;
17181     esac
17182   else
17183     # PORTME Check for flag to pass linker flags through the system compiler.
17184     case $host_os in
17185     aix*)
17186       lt_prog_compiler_wl_F77='-Wl,'
17187       if test "$host_cpu" = ia64; then
17188         # AIX 5 now supports IA64 processor
17189         lt_prog_compiler_static_F77='-Bstatic'
17190       else
17191         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
17192       fi
17193       ;;
17194       darwin*)
17195         # PIC is the default on this platform
17196         # Common symbols not allowed in MH_DYLIB files
17197        case "$cc_basename" in
17198          xlc*)
17199          lt_prog_compiler_pic_F77='-qnocommon'
17200          lt_prog_compiler_wl_F77='-Wl,'
17201          ;;
17202        esac
17203        ;;
17204
17205     mingw* | pw32* | os2*)
17206       # This hack is so that the source file can tell whether it is being
17207       # built for inclusion in a dll (and should export symbols for example).
17208       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17209       ;;
17210
17211     hpux9* | hpux10* | hpux11*)
17212       lt_prog_compiler_wl_F77='-Wl,'
17213       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17214       # not for PA HP-UX.
17215       case "$host_cpu" in
17216       hppa*64*|ia64*)
17217         # +Z the default
17218         ;;
17219       *)
17220         lt_prog_compiler_pic_F77='+Z'
17221         ;;
17222       esac
17223       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17224       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
17225       ;;
17226
17227     irix5* | irix6* | nonstopux*)
17228       lt_prog_compiler_wl_F77='-Wl,'
17229       # PIC (with -KPIC) is the default.
17230       lt_prog_compiler_static_F77='-non_shared'
17231       ;;
17232
17233     newsos6)
17234       lt_prog_compiler_pic_F77='-KPIC'
17235       lt_prog_compiler_static_F77='-Bstatic'
17236       ;;
17237
17238     linux*)
17239       case $CC in
17240       icc* | ecc*)
17241         lt_prog_compiler_wl_F77='-Wl,'
17242         lt_prog_compiler_pic_F77='-KPIC'
17243         lt_prog_compiler_static_F77='-static'
17244         ;;
17245       ccc*)
17246         lt_prog_compiler_wl_F77='-Wl,'
17247         # All Alpha code is PIC.
17248         lt_prog_compiler_static_F77='-non_shared'
17249         ;;
17250       esac
17251       ;;
17252
17253     osf3* | osf4* | osf5*)
17254       lt_prog_compiler_wl_F77='-Wl,'
17255       # All OSF/1 code is PIC.
17256       lt_prog_compiler_static_F77='-non_shared'
17257       ;;
17258
17259     sco3.2v5*)
17260       lt_prog_compiler_pic_F77='-Kpic'
17261       lt_prog_compiler_static_F77='-dn'
17262       ;;
17263
17264     solaris*)
17265       lt_prog_compiler_wl_F77='-Wl,'
17266       lt_prog_compiler_pic_F77='-KPIC'
17267       lt_prog_compiler_static_F77='-Bstatic'
17268       ;;
17269
17270     sunos4*)
17271       lt_prog_compiler_wl_F77='-Qoption ld '
17272       lt_prog_compiler_pic_F77='-PIC'
17273       lt_prog_compiler_static_F77='-Bstatic'
17274       ;;
17275
17276     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17277       lt_prog_compiler_wl_F77='-Wl,'
17278       lt_prog_compiler_pic_F77='-KPIC'
17279       lt_prog_compiler_static_F77='-Bstatic'
17280       ;;
17281
17282     sysv4*MP*)
17283       if test -d /usr/nec ;then
17284         lt_prog_compiler_pic_F77='-Kconform_pic'
17285         lt_prog_compiler_static_F77='-Bstatic'
17286       fi
17287       ;;
17288
17289     uts4*)
17290       lt_prog_compiler_pic_F77='-pic'
17291       lt_prog_compiler_static_F77='-Bstatic'
17292       ;;
17293
17294     *)
17295       lt_prog_compiler_can_build_shared_F77=no
17296       ;;
17297     esac
17298   fi
17299
17300 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
17301 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
17302
17303 #
17304 # Check to make sure the PIC flag actually works.
17305 #
17306 if test -n "$lt_prog_compiler_pic_F77"; then
17307
17308 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
17309 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
17310 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
17311   echo $ECHO_N "(cached) $ECHO_C" >&6
17312 else
17313   lt_prog_compiler_pic_works_F77=no
17314   ac_outfile=conftest.$ac_objext
17315    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17316    lt_compiler_flag="$lt_prog_compiler_pic_F77"
17317    # Insert the option either (1) after the last *FLAGS variable, or
17318    # (2) before a word containing "conftest.", or (3) at the end.
17319    # Note that $ac_compile itself does not contain backslashes and begins
17320    # with a dollar sign (not a hyphen), so the echo should work correctly.
17321    # The option is referenced via a variable to avoid confusing sed.
17322    lt_compile=`echo "$ac_compile" | $SED \
17323    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17324    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17325    -e 's:$: $lt_compiler_flag:'`
17326    (eval echo "\"\$as_me:17326: $lt_compile\"" >&5)
17327    (eval "$lt_compile" 2>conftest.err)
17328    ac_status=$?
17329    cat conftest.err >&5
17330    echo "$as_me:17330: \$? = $ac_status" >&5
17331    if (exit $ac_status) && test -s "$ac_outfile"; then
17332      # The compiler can only warn and ignore the option if not recognized
17333      # So say no if there are warnings
17334      if test ! -s conftest.err; then
17335        lt_prog_compiler_pic_works_F77=yes
17336      fi
17337    fi
17338    $rm conftest*
17339
17340 fi
17341 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
17342 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
17343
17344 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
17345     case $lt_prog_compiler_pic_F77 in
17346      "" | " "*) ;;
17347      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
17348      esac
17349 else
17350     lt_prog_compiler_pic_F77=
17351      lt_prog_compiler_can_build_shared_F77=no
17352 fi
17353
17354 fi
17355 case "$host_os" in
17356   # For platforms which do not support PIC, -DPIC is meaningless:
17357   *djgpp*)
17358     lt_prog_compiler_pic_F77=
17359     ;;
17360   *)
17361     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
17362     ;;
17363 esac
17364
17365 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17366 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17367 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
17368   echo $ECHO_N "(cached) $ECHO_C" >&6
17369 else
17370   lt_cv_prog_compiler_c_o_F77=no
17371    $rm -r conftest 2>/dev/null
17372    mkdir conftest
17373    cd conftest
17374    mkdir out
17375    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17376
17377    lt_compiler_flag="-o out/conftest2.$ac_objext"
17378    # Insert the option either (1) after the last *FLAGS variable, or
17379    # (2) before a word containing "conftest.", or (3) at the end.
17380    # Note that $ac_compile itself does not contain backslashes and begins
17381    # with a dollar sign (not a hyphen), so the echo should work correctly.
17382    lt_compile=`echo "$ac_compile" | $SED \
17383    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17384    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17385    -e 's:$: $lt_compiler_flag:'`
17386    (eval echo "\"\$as_me:17386: $lt_compile\"" >&5)
17387    (eval "$lt_compile" 2>out/conftest.err)
17388    ac_status=$?
17389    cat out/conftest.err >&5
17390    echo "$as_me:17390: \$? = $ac_status" >&5
17391    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17392    then
17393      # The compiler can only warn and ignore the option if not recognized
17394      # So say no if there are warnings
17395      if test ! -s out/conftest.err; then
17396        lt_cv_prog_compiler_c_o_F77=yes
17397      fi
17398    fi
17399    chmod u+w .
17400    $rm conftest*
17401    # SGI C++ compiler will create directory out/ii_files/ for
17402    # template instantiation
17403    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17404    $rm out/* && rmdir out
17405    cd ..
17406    rmdir conftest
17407    $rm conftest*
17408
17409 fi
17410 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
17411 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
17412
17413
17414 hard_links="nottested"
17415 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
17416   # do not overwrite the value of need_locks provided by the user
17417   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17418 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17419   hard_links=yes
17420   $rm conftest*
17421   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17422   touch conftest.a
17423   ln conftest.a conftest.b 2>&5 || hard_links=no
17424   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17425   echo "$as_me:$LINENO: result: $hard_links" >&5
17426 echo "${ECHO_T}$hard_links" >&6
17427   if test "$hard_links" = no; then
17428     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17429 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17430     need_locks=warn
17431   fi
17432 else
17433   need_locks=no
17434 fi
17435
17436 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17437 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17438
17439   runpath_var=
17440   allow_undefined_flag_F77=
17441   enable_shared_with_static_runtimes_F77=no
17442   archive_cmds_F77=
17443   archive_expsym_cmds_F77=
17444   old_archive_From_new_cmds_F77=
17445   old_archive_from_expsyms_cmds_F77=
17446   export_dynamic_flag_spec_F77=
17447   whole_archive_flag_spec_F77=
17448   thread_safe_flag_spec_F77=
17449   hardcode_libdir_flag_spec_F77=
17450   hardcode_libdir_flag_spec_ld_F77=
17451   hardcode_libdir_separator_F77=
17452   hardcode_direct_F77=no
17453   hardcode_minus_L_F77=no
17454   hardcode_shlibpath_var_F77=unsupported
17455   link_all_deplibs_F77=unknown
17456   hardcode_automatic_F77=no
17457   module_cmds_F77=
17458   module_expsym_cmds_F77=
17459   always_export_symbols_F77=no
17460   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17461   # include_expsyms should be a list of space-separated symbols to be *always*
17462   # included in the symbol list
17463   include_expsyms_F77=
17464   # exclude_expsyms can be an extended regexp of symbols to exclude
17465   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17466   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17467   # as well as any symbol that contains `d'.
17468   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
17469   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17470   # platforms (ab)use it in PIC code, but their linkers get confused if
17471   # the symbol is explicitly referenced.  Since portable code cannot
17472   # rely on this symbol name, it's probably fine to never include it in
17473   # preloaded symbol tables.
17474   extract_expsyms_cmds=
17475
17476   case $host_os in
17477   cygwin* | mingw* | pw32*)
17478     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17479     # When not using gcc, we currently assume that we are using
17480     # Microsoft Visual C++.
17481     if test "$GCC" != yes; then
17482       with_gnu_ld=no
17483     fi
17484     ;;
17485   openbsd*)
17486     with_gnu_ld=no
17487     ;;
17488   esac
17489
17490   ld_shlibs_F77=yes
17491   if test "$with_gnu_ld" = yes; then
17492     # If archive_cmds runs LD, not CC, wlarc should be empty
17493     wlarc='${wl}'
17494
17495     # See if GNU ld supports shared libraries.
17496     case $host_os in
17497     aix3* | aix4* | aix5*)
17498       # On AIX/PPC, the GNU linker is very broken
17499       if test "$host_cpu" != ia64; then
17500         ld_shlibs_F77=no
17501         cat <<EOF 1>&2
17502
17503 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17504 *** to be unable to reliably create shared libraries on AIX.
17505 *** Therefore, libtool is disabling shared libraries support.  If you
17506 *** really care for shared libraries, you may want to modify your PATH
17507 *** so that a non-GNU linker is found, and then restart.
17508
17509 EOF
17510       fi
17511       ;;
17512
17513     amigaos*)
17514       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)'
17515       hardcode_libdir_flag_spec_F77='-L$libdir'
17516       hardcode_minus_L_F77=yes
17517
17518       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17519       # that the semantics of dynamic libraries on AmigaOS, at least up
17520       # to version 4, is to share data among multiple programs linked
17521       # with the same dynamic library.  Since this doesn't match the
17522       # behavior of shared libraries on other platforms, we can't use
17523       # them.
17524       ld_shlibs_F77=no
17525       ;;
17526
17527     beos*)
17528       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17529         allow_undefined_flag_F77=unsupported
17530         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17531         # support --undefined.  This deserves some investigation.  FIXME
17532         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17533       else
17534         ld_shlibs_F77=no
17535       fi
17536       ;;
17537
17538     cygwin* | mingw* | pw32*)
17539       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17540       # as there is no search path for DLLs.
17541       hardcode_libdir_flag_spec_F77='-L$libdir'
17542       allow_undefined_flag_F77=unsupported
17543       always_export_symbols_F77=no
17544       enable_shared_with_static_runtimes_F77=yes
17545       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17546
17547       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17548         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17549         # If the export-symbols file already is a .def file (1st line
17550         # is EXPORTS), use it as is; otherwise, prepend...
17551         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17552           cp $export_symbols $output_objdir/$soname.def;
17553         else
17554           echo EXPORTS > $output_objdir/$soname.def;
17555           cat $export_symbols >> $output_objdir/$soname.def;
17556         fi~
17557         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17558       else
17559         ld_shlibs=no
17560       fi
17561       ;;
17562
17563     netbsd*)
17564       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17565         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17566         wlarc=
17567       else
17568         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17569         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17570       fi
17571       ;;
17572
17573     solaris* | sysv5*)
17574       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17575         ld_shlibs_F77=no
17576         cat <<EOF 1>&2
17577
17578 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17579 *** create shared libraries on Solaris systems.  Therefore, libtool
17580 *** is disabling shared libraries support.  We urge you to upgrade GNU
17581 *** binutils to release 2.9.1 or newer.  Another option is to modify
17582 *** your PATH or compiler configuration so that the native linker is
17583 *** used, and then restart.
17584
17585 EOF
17586       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17587         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17588         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17589       else
17590         ld_shlibs_F77=no
17591       fi
17592       ;;
17593
17594     sunos4*)
17595       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17596       wlarc=
17597       hardcode_direct_F77=yes
17598       hardcode_shlibpath_var_F77=no
17599       ;;
17600
17601   linux*)
17602     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17603         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17604         archive_cmds_F77="$tmp_archive_cmds"
17605       supports_anon_versioning=no
17606       case `$LD -v 2>/dev/null` in
17607         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17608         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17609         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17610         *\ 2.11.*) ;; # other 2.11 versions
17611         *) supports_anon_versioning=yes ;;
17612       esac
17613       if test $supports_anon_versioning = yes; then
17614         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
17615 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17616 $echo "local: *; };" >> $output_objdir/$libname.ver~
17617         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17618       else
17619         archive_expsym_cmds_F77="$tmp_archive_cmds"
17620       fi
17621     else
17622       ld_shlibs_F77=no
17623     fi
17624     ;;
17625
17626     *)
17627       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17628         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17629         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17630       else
17631         ld_shlibs_F77=no
17632       fi
17633       ;;
17634     esac
17635
17636     if test "$ld_shlibs_F77" = yes; then
17637       runpath_var=LD_RUN_PATH
17638       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17639       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17640       # ancient GNU ld didn't support --whole-archive et. al.
17641       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17642         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17643       else
17644         whole_archive_flag_spec_F77=
17645       fi
17646     fi
17647   else
17648     # PORTME fill in a description of your system's linker (not GNU ld)
17649     case $host_os in
17650     aix3*)
17651       allow_undefined_flag_F77=unsupported
17652       always_export_symbols_F77=yes
17653       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'
17654       # Note: this linker hardcodes the directories in LIBPATH if there
17655       # are no directories specified by -L.
17656       hardcode_minus_L_F77=yes
17657       if test "$GCC" = yes && test -z "$link_static_flag"; then
17658         # Neither direct hardcoding nor static linking is supported with a
17659         # broken collect2.
17660         hardcode_direct_F77=unsupported
17661       fi
17662       ;;
17663
17664     aix4* | aix5*)
17665       if test "$host_cpu" = ia64; then
17666         # On IA64, the linker does run time linking by default, so we don't
17667         # have to do anything special.
17668         aix_use_runtimelinking=no
17669         exp_sym_flag='-Bexport'
17670         no_entry_flag=""
17671       else
17672         # If we're using GNU nm, then we don't want the "-C" option.
17673         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17674         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17675           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'
17676         else
17677           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'
17678         fi
17679         aix_use_runtimelinking=no
17680
17681         # Test if we are trying to use run time linking or normal
17682         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17683         # need to do runtime linking.
17684         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17685           for ld_flag in $LDFLAGS; do
17686           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17687             aix_use_runtimelinking=yes
17688             break
17689           fi
17690           done
17691         esac
17692
17693         exp_sym_flag='-bexport'
17694         no_entry_flag='-bnoentry'
17695       fi
17696
17697       # When large executables or shared objects are built, AIX ld can
17698       # have problems creating the table of contents.  If linking a library
17699       # or program results in "error TOC overflow" add -mminimal-toc to
17700       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17701       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17702
17703       archive_cmds_F77=''
17704       hardcode_direct_F77=yes
17705       hardcode_libdir_separator_F77=':'
17706       link_all_deplibs_F77=yes
17707
17708       if test "$GCC" = yes; then
17709         case $host_os in aix4.012|aix4.012.*)
17710         # We only want to do this on AIX 4.2 and lower, the check
17711         # below for broken collect2 doesn't work under 4.3+
17712           collect2name=`${CC} -print-prog-name=collect2`
17713           if test -f "$collect2name" && \
17714            strings "$collect2name" | grep resolve_lib_name >/dev/null
17715           then
17716           # We have reworked collect2
17717           hardcode_direct_F77=yes
17718           else
17719           # We have old collect2
17720           hardcode_direct_F77=unsupported
17721           # It fails to find uninstalled libraries when the uninstalled
17722           # path is not listed in the libpath.  Setting hardcode_minus_L
17723           # to unsupported forces relinking
17724           hardcode_minus_L_F77=yes
17725           hardcode_libdir_flag_spec_F77='-L$libdir'
17726           hardcode_libdir_separator_F77=
17727           fi
17728         esac
17729         shared_flag='-shared'
17730       else
17731         # not using gcc
17732         if test "$host_cpu" = ia64; then
17733         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17734         # chokes on -Wl,-G. The following line is correct:
17735           shared_flag='-G'
17736         else
17737         if test "$aix_use_runtimelinking" = yes; then
17738             shared_flag='${wl}-G'
17739           else
17740             shared_flag='${wl}-bM:SRE'
17741         fi
17742         fi
17743       fi
17744
17745       # It seems that -bexpall does not export symbols beginning with
17746       # underscore (_), so it is better to generate a list of symbols to export.
17747       always_export_symbols_F77=yes
17748       if test "$aix_use_runtimelinking" = yes; then
17749         # Warning - without using the other runtime loading flags (-brtl),
17750         # -berok will link without error, but may produce a broken library.
17751         allow_undefined_flag_F77='-berok'
17752        # Determine the default libpath from the value encoded in an empty executable.
17753        cat >conftest.$ac_ext <<_ACEOF
17754       program main
17755
17756       end
17757 _ACEOF
17758 rm -f conftest.$ac_objext conftest$ac_exeext
17759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17760   (eval $ac_link) 2>conftest.er1
17761   ac_status=$?
17762   grep -v '^ *+' conftest.er1 >conftest.err
17763   rm -f conftest.er1
17764   cat conftest.err >&5
17765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766   (exit $ac_status); } &&
17767          { ac_try='test -z "$ac_f77_werror_flag"
17768                          || test ! -s conftest.err'
17769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770   (eval $ac_try) 2>&5
17771   ac_status=$?
17772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); }; } &&
17774          { ac_try='test -s conftest$ac_exeext'
17775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776   (eval $ac_try) 2>&5
17777   ac_status=$?
17778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779   (exit $ac_status); }; }; then
17780
17781 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17782 }'`
17783 # Check for a 64-bit object if we didn't find anything.
17784 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; }
17785 }'`; fi
17786 else
17787   echo "$as_me: failed program was:" >&5
17788 sed 's/^/| /' conftest.$ac_ext >&5
17789
17790 fi
17791 rm -f conftest.err conftest.$ac_objext \
17792       conftest$ac_exeext conftest.$ac_ext
17793 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17794
17795        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17796         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17797        else
17798         if test "$host_cpu" = ia64; then
17799           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17800           allow_undefined_flag_F77="-z nodefs"
17801           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17802         else
17803          # Determine the default libpath from the value encoded in an empty executable.
17804          cat >conftest.$ac_ext <<_ACEOF
17805       program main
17806
17807       end
17808 _ACEOF
17809 rm -f conftest.$ac_objext conftest$ac_exeext
17810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17811   (eval $ac_link) 2>conftest.er1
17812   ac_status=$?
17813   grep -v '^ *+' conftest.er1 >conftest.err
17814   rm -f conftest.er1
17815   cat conftest.err >&5
17816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817   (exit $ac_status); } &&
17818          { ac_try='test -z "$ac_f77_werror_flag"
17819                          || test ! -s conftest.err'
17820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821   (eval $ac_try) 2>&5
17822   ac_status=$?
17823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824   (exit $ac_status); }; } &&
17825          { ac_try='test -s conftest$ac_exeext'
17826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17827   (eval $ac_try) 2>&5
17828   ac_status=$?
17829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830   (exit $ac_status); }; }; then
17831
17832 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17833 }'`
17834 # Check for a 64-bit object if we didn't find anything.
17835 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; }
17836 }'`; fi
17837 else
17838   echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17840
17841 fi
17842 rm -f conftest.err conftest.$ac_objext \
17843       conftest$ac_exeext conftest.$ac_ext
17844 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17845
17846          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17847           # Warning - without using the other run time loading flags,
17848           # -berok will link without error, but may produce a broken library.
17849           no_undefined_flag_F77=' ${wl}-bernotok'
17850           allow_undefined_flag_F77=' ${wl}-berok'
17851           # -bexpall does not export symbols beginning with underscore (_)
17852           always_export_symbols_F77=yes
17853           # Exported symbols can be pulled into shared objects from archives
17854           whole_archive_flag_spec_F77=' '
17855           archive_cmds_need_lc_F77=yes
17856           # This is similar to how AIX traditionally builds it's shared libraries.
17857           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17858         fi
17859       fi
17860       ;;
17861
17862     amigaos*)
17863       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)'
17864       hardcode_libdir_flag_spec_F77='-L$libdir'
17865       hardcode_minus_L_F77=yes
17866       # see comment about different semantics on the GNU ld section
17867       ld_shlibs_F77=no
17868       ;;
17869
17870     bsdi[45]*)
17871       export_dynamic_flag_spec_F77=-rdynamic
17872       ;;
17873
17874     cygwin* | mingw* | pw32*)
17875       # When not using gcc, we currently assume that we are using
17876       # Microsoft Visual C++.
17877       # hardcode_libdir_flag_spec is actually meaningless, as there is
17878       # no search path for DLLs.
17879       hardcode_libdir_flag_spec_F77=' '
17880       allow_undefined_flag_F77=unsupported
17881       # Tell ltmain to make .lib files, not .a files.
17882       libext=lib
17883       # Tell ltmain to make .dll files, not .so files.
17884       shrext_cmds=".dll"
17885       # FIXME: Setting linknames here is a bad hack.
17886       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17887       # The linker will automatically build a .lib file if we build a DLL.
17888       old_archive_From_new_cmds_F77='true'
17889       # FIXME: Should let the user specify the lib program.
17890       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
17891       fix_srcfile_path='`cygpath -w "$srcfile"`'
17892       enable_shared_with_static_runtimes_F77=yes
17893       ;;
17894
17895     darwin* | rhapsody*)
17896       case "$host_os" in
17897         rhapsody* | darwin1.[012])
17898          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
17899          ;;
17900        *) # Darwin 1.3 on
17901          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17902            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17903          else
17904            case ${MACOSX_DEPLOYMENT_TARGET} in
17905              10.[012])
17906                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17907                ;;
17908              10.*)
17909                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
17910                ;;
17911            esac
17912          fi
17913          ;;
17914       esac
17915       archive_cmds_need_lc_F77=no
17916       hardcode_direct_F77=no
17917       hardcode_automatic_F77=yes
17918       hardcode_shlibpath_var_F77=unsupported
17919       whole_archive_flag_spec_F77=''
17920       link_all_deplibs_F77=yes
17921     if test "$GCC" = yes ; then
17922         output_verbose_link_cmd='echo'
17923         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17924       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17925       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17926       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}'
17927       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}'
17928     else
17929       case "$cc_basename" in
17930         xlc*)
17931          output_verbose_link_cmd='echo'
17932          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17933          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17934           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17935          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}'
17936           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}'
17937           ;;
17938        *)
17939          ld_shlibs_F77=no
17940           ;;
17941       esac
17942     fi
17943       ;;
17944
17945     dgux*)
17946       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17947       hardcode_libdir_flag_spec_F77='-L$libdir'
17948       hardcode_shlibpath_var_F77=no
17949       ;;
17950
17951     freebsd1*)
17952       ld_shlibs_F77=no
17953       ;;
17954
17955     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17956     # support.  Future versions do this automatically, but an explicit c++rt0.o
17957     # does not break anything, and helps significantly (at the cost of a little
17958     # extra space).
17959     freebsd2.2*)
17960       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17961       hardcode_libdir_flag_spec_F77='-R$libdir'
17962       hardcode_direct_F77=yes
17963       hardcode_shlibpath_var_F77=no
17964       ;;
17965
17966     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17967     freebsd2*)
17968       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17969       hardcode_direct_F77=yes
17970       hardcode_minus_L_F77=yes
17971       hardcode_shlibpath_var_F77=no
17972       ;;
17973
17974     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17975     freebsd* | kfreebsd*-gnu)
17976       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17977       hardcode_libdir_flag_spec_F77='-R$libdir'
17978       hardcode_direct_F77=yes
17979       hardcode_shlibpath_var_F77=no
17980       ;;
17981
17982     hpux9*)
17983       if test "$GCC" = yes; then
17984         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'
17985       else
17986         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'
17987       fi
17988       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17989       hardcode_libdir_separator_F77=:
17990       hardcode_direct_F77=yes
17991
17992       # hardcode_minus_L: Not really in the search PATH,
17993       # but as the default location of the library.
17994       hardcode_minus_L_F77=yes
17995       export_dynamic_flag_spec_F77='${wl}-E'
17996       ;;
17997
17998     hpux10* | hpux11*)
17999       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18000         case "$host_cpu" in
18001         hppa*64*|ia64*)
18002           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18003           ;;
18004         *)
18005           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18006           ;;
18007         esac
18008       else
18009         case "$host_cpu" in
18010         hppa*64*|ia64*)
18011           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18012           ;;
18013         *)
18014           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18015           ;;
18016         esac
18017       fi
18018       if test "$with_gnu_ld" = no; then
18019         case "$host_cpu" in
18020         hppa*64*)
18021           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18022           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
18023           hardcode_libdir_separator_F77=:
18024           hardcode_direct_F77=no
18025           hardcode_shlibpath_var_F77=no
18026           ;;
18027         ia64*)
18028           hardcode_libdir_flag_spec_F77='-L$libdir'
18029           hardcode_direct_F77=no
18030           hardcode_shlibpath_var_F77=no
18031
18032           # hardcode_minus_L: Not really in the search PATH,
18033           # but as the default location of the library.
18034           hardcode_minus_L_F77=yes
18035           ;;
18036         *)
18037           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18038           hardcode_libdir_separator_F77=:
18039           hardcode_direct_F77=yes
18040           export_dynamic_flag_spec_F77='${wl}-E'
18041
18042           # hardcode_minus_L: Not really in the search PATH,
18043           # but as the default location of the library.
18044           hardcode_minus_L_F77=yes
18045           ;;
18046         esac
18047       fi
18048       ;;
18049
18050     irix5* | irix6* | nonstopux*)
18051       if test "$GCC" = yes; then
18052         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'
18053       else
18054         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'
18055         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
18056       fi
18057       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18058       hardcode_libdir_separator_F77=:
18059       link_all_deplibs_F77=yes
18060       ;;
18061
18062     netbsd*)
18063       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18064         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18065       else
18066         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18067       fi
18068       hardcode_libdir_flag_spec_F77='-R$libdir'
18069       hardcode_direct_F77=yes
18070       hardcode_shlibpath_var_F77=no
18071       ;;
18072
18073     newsos6)
18074       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18075       hardcode_direct_F77=yes
18076       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18077       hardcode_libdir_separator_F77=:
18078       hardcode_shlibpath_var_F77=no
18079       ;;
18080
18081     openbsd*)
18082       hardcode_direct_F77=yes
18083       hardcode_shlibpath_var_F77=no
18084       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18085         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18086         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18087         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18088         export_dynamic_flag_spec_F77='${wl}-E'
18089       else
18090        case $host_os in
18091          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18092            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18093            hardcode_libdir_flag_spec_F77='-R$libdir'
18094            ;;
18095          *)
18096            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18097            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18098            ;;
18099        esac
18100       fi
18101       ;;
18102
18103     os2*)
18104       hardcode_libdir_flag_spec_F77='-L$libdir'
18105       hardcode_minus_L_F77=yes
18106       allow_undefined_flag_F77=unsupported
18107       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'
18108       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18109       ;;
18110
18111     osf3*)
18112       if test "$GCC" = yes; then
18113         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18114         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'
18115       else
18116         allow_undefined_flag_F77=' -expect_unresolved \*'
18117         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'
18118       fi
18119       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18120       hardcode_libdir_separator_F77=:
18121       ;;
18122
18123     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18124       if test "$GCC" = yes; then
18125         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18126         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'
18127         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18128       else
18129         allow_undefined_flag_F77=' -expect_unresolved \*'
18130         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'
18131         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~
18132         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
18133
18134         # Both c and cxx compiler support -rpath directly
18135         hardcode_libdir_flag_spec_F77='-rpath $libdir'
18136       fi
18137       hardcode_libdir_separator_F77=:
18138       ;;
18139
18140     sco3.2v5*)
18141       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18142       hardcode_shlibpath_var_F77=no
18143       export_dynamic_flag_spec_F77='${wl}-Bexport'
18144       runpath_var=LD_RUN_PATH
18145       hardcode_runpath_var=yes
18146       ;;
18147
18148     solaris*)
18149       no_undefined_flag_F77=' -z text'
18150       if test "$GCC" = yes; then
18151         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18152         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18153           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18154       else
18155         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18156         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18157         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18158       fi
18159       hardcode_libdir_flag_spec_F77='-R$libdir'
18160       hardcode_shlibpath_var_F77=no
18161       case $host_os in
18162       solaris2.[0-5] | solaris2.[0-5].*) ;;
18163       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18164         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
18165       esac
18166       link_all_deplibs_F77=yes
18167       ;;
18168
18169     sunos4*)
18170       if test "x$host_vendor" = xsequent; then
18171         # Use $CC to link under sequent, because it throws in some extra .o
18172         # files that make .init and .fini sections work.
18173         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18174       else
18175         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18176       fi
18177       hardcode_libdir_flag_spec_F77='-L$libdir'
18178       hardcode_direct_F77=yes
18179       hardcode_minus_L_F77=yes
18180       hardcode_shlibpath_var_F77=no
18181       ;;
18182
18183     sysv4)
18184       case $host_vendor in
18185         sni)
18186           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18187           hardcode_direct_F77=yes # is this really true???
18188         ;;
18189         siemens)
18190           ## LD is ld it makes a PLAMLIB
18191           ## CC just makes a GrossModule.
18192           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18193           reload_cmds_F77='$CC -r -o $output$reload_objs'
18194           hardcode_direct_F77=no
18195         ;;
18196         motorola)
18197           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18198           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
18199         ;;
18200       esac
18201       runpath_var='LD_RUN_PATH'
18202       hardcode_shlibpath_var_F77=no
18203       ;;
18204
18205     sysv4.3*)
18206       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18207       hardcode_shlibpath_var_F77=no
18208       export_dynamic_flag_spec_F77='-Bexport'
18209       ;;
18210
18211     sysv4*MP*)
18212       if test -d /usr/nec; then
18213         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18214         hardcode_shlibpath_var_F77=no
18215         runpath_var=LD_RUN_PATH
18216         hardcode_runpath_var=yes
18217         ld_shlibs_F77=yes
18218       fi
18219       ;;
18220
18221     sysv4.2uw2*)
18222       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18223       hardcode_direct_F77=yes
18224       hardcode_minus_L_F77=no
18225       hardcode_shlibpath_var_F77=no
18226       hardcode_runpath_var=yes
18227       runpath_var=LD_RUN_PATH
18228       ;;
18229
18230    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18231       no_undefined_flag_F77='${wl}-z ${wl}text'
18232       if test "$GCC" = yes; then
18233         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18234       else
18235         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18236       fi
18237       runpath_var='LD_RUN_PATH'
18238       hardcode_shlibpath_var_F77=no
18239       ;;
18240
18241     sysv5*)
18242       no_undefined_flag_F77=' -z text'
18243       # $CC -shared without GNU ld will not create a library from C++
18244       # object files and a static libstdc++, better avoid it by now
18245       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18246       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18247                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18248       hardcode_libdir_flag_spec_F77=
18249       hardcode_shlibpath_var_F77=no
18250       runpath_var='LD_RUN_PATH'
18251       ;;
18252
18253     uts4*)
18254       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18255       hardcode_libdir_flag_spec_F77='-L$libdir'
18256       hardcode_shlibpath_var_F77=no
18257       ;;
18258
18259     *)
18260       ld_shlibs_F77=no
18261       ;;
18262     esac
18263   fi
18264
18265 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
18266 echo "${ECHO_T}$ld_shlibs_F77" >&6
18267 test "$ld_shlibs_F77" = no && can_build_shared=no
18268
18269 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18270 if test "$GCC" = yes; then
18271   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18272 fi
18273
18274 #
18275 # Do we need to explicitly link libc?
18276 #
18277 case "x$archive_cmds_need_lc_F77" in
18278 x|xyes)
18279   # Assume -lc should be added
18280   archive_cmds_need_lc_F77=yes
18281
18282   if test "$enable_shared" = yes && test "$GCC" = yes; then
18283     case $archive_cmds_F77 in
18284     *'~'*)
18285       # FIXME: we may have to deal with multi-command sequences.
18286       ;;
18287     '$CC '*)
18288       # Test whether the compiler implicitly links with -lc since on some
18289       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18290       # to ld, don't add -lc before -lgcc.
18291       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18292 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18293       $rm conftest*
18294       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18295
18296       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18297   (eval $ac_compile) 2>&5
18298   ac_status=$?
18299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300   (exit $ac_status); } 2>conftest.err; then
18301         soname=conftest
18302         lib=conftest
18303         libobjs=conftest.$ac_objext
18304         deplibs=
18305         wl=$lt_prog_compiler_wl_F77
18306         compiler_flags=-v
18307         linker_flags=-v
18308         verstring=
18309         output_objdir=.
18310         libname=conftest
18311         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
18312         allow_undefined_flag_F77=
18313         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18314   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18315   ac_status=$?
18316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317   (exit $ac_status); }
18318         then
18319           archive_cmds_need_lc_F77=no
18320         else
18321           archive_cmds_need_lc_F77=yes
18322         fi
18323         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
18324       else
18325         cat conftest.err 1>&5
18326       fi
18327       $rm conftest*
18328       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
18329 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
18330       ;;
18331     esac
18332   fi
18333   ;;
18334 esac
18335
18336 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18337 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18338 library_names_spec=
18339 libname_spec='lib$name'
18340 soname_spec=
18341 shrext_cmds=".so"
18342 postinstall_cmds=
18343 postuninstall_cmds=
18344 finish_cmds=
18345 finish_eval=
18346 shlibpath_var=
18347 shlibpath_overrides_runpath=unknown
18348 version_type=none
18349 dynamic_linker="$host_os ld.so"
18350 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18351 if test "$GCC" = yes; then
18352   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18353   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18354     # if the path contains ";" then we assume it to be the separator
18355     # otherwise default to the standard path separator (i.e. ":") - it is
18356     # assumed that no part of a normal pathname contains ";" but that should
18357     # okay in the real world where ";" in dirpaths is itself problematic.
18358     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18359   else
18360     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18361   fi
18362 else
18363   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18364 fi
18365 need_lib_prefix=unknown
18366 hardcode_into_libs=no
18367
18368 # when you set need_version to no, make sure it does not cause -set_version
18369 # flags to be left without arguments
18370 need_version=unknown
18371
18372 case $host_os in
18373 aix3*)
18374   version_type=linux
18375   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18376   shlibpath_var=LIBPATH
18377
18378   # AIX 3 has no versioning support, so we append a major version to the name.
18379   soname_spec='${libname}${release}${shared_ext}$major'
18380   ;;
18381
18382 aix4* | aix5*)
18383   version_type=linux
18384   need_lib_prefix=no
18385   need_version=no
18386   hardcode_into_libs=yes
18387   if test "$host_cpu" = ia64; then
18388     # AIX 5 supports IA64
18389     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18390     shlibpath_var=LD_LIBRARY_PATH
18391   else
18392     # With GCC up to 2.95.x, collect2 would create an import file
18393     # for dependence libraries.  The import file would start with
18394     # the line `#! .'.  This would cause the generated library to
18395     # depend on `.', always an invalid library.  This was fixed in
18396     # development snapshots of GCC prior to 3.0.
18397     case $host_os in
18398       aix4 | aix4.[01] | aix4.[01].*)
18399       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18400            echo ' yes '
18401            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18402         :
18403       else
18404         can_build_shared=no
18405       fi
18406       ;;
18407     esac
18408     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18409     # soname into executable. Probably we can add versioning support to
18410     # collect2, so additional links can be useful in future.
18411     if test "$aix_use_runtimelinking" = yes; then
18412       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18413       # instead of lib<name>.a to let people know that these are not
18414       # typical AIX shared libraries.
18415       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18416     else
18417       # We preserve .a as extension for shared libraries through AIX4.2
18418       # and later when we are not doing run time linking.
18419       library_names_spec='${libname}${release}.a $libname.a'
18420       soname_spec='${libname}${release}${shared_ext}$major'
18421     fi
18422     shlibpath_var=LIBPATH
18423   fi
18424   ;;
18425
18426 amigaos*)
18427   library_names_spec='$libname.ixlibrary $libname.a'
18428   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18429   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'
18430   ;;
18431
18432 beos*)
18433   library_names_spec='${libname}${shared_ext}'
18434   dynamic_linker="$host_os ld.so"
18435   shlibpath_var=LIBRARY_PATH
18436   ;;
18437
18438 bsdi[45]*)
18439   version_type=linux
18440   need_version=no
18441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18442   soname_spec='${libname}${release}${shared_ext}$major'
18443   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18444   shlibpath_var=LD_LIBRARY_PATH
18445   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18446   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18447   # the default ld.so.conf also contains /usr/contrib/lib and
18448   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18449   # libtool to hard-code these into programs
18450   ;;
18451
18452 cygwin* | mingw* | pw32*)
18453   version_type=windows
18454   shrext_cmds=".dll"
18455   need_version=no
18456   need_lib_prefix=no
18457
18458   case $GCC,$host_os in
18459   yes,cygwin* | yes,mingw* | yes,pw32*)
18460     library_names_spec='$libname.dll.a'
18461     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18462     postinstall_cmds='base_file=`basename \${file}`~
18463       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18464       dldir=$destdir/`dirname \$dlpath`~
18465       test -d \$dldir || mkdir -p \$dldir~
18466       $install_prog $dir/$dlname \$dldir/$dlname'
18467     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18468       dlpath=$dir/\$dldll~
18469        $rm \$dlpath'
18470     shlibpath_overrides_runpath=yes
18471
18472     case $host_os in
18473     cygwin*)
18474       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18475       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18476       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18477       ;;
18478     mingw*)
18479       # MinGW DLLs use traditional 'lib' prefix
18480       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18481       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18482       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18483         # It is most probably a Windows format PATH printed by
18484         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18485         # path with ; separators, and with drive letters. We can handle the
18486         # drive letters (cygwin fileutils understands them), so leave them,
18487         # especially as we might pass files found there to a mingw objdump,
18488         # which wouldn't understand a cygwinified path. Ahh.
18489         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18490       else
18491         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18492       fi
18493       ;;
18494     pw32*)
18495       # pw32 DLLs use 'pw' prefix rather than 'lib'
18496       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18497       ;;
18498     esac
18499     ;;
18500
18501   *)
18502     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18503     ;;
18504   esac
18505   dynamic_linker='Win32 ld.exe'
18506   # FIXME: first we should search . and the directory the executable is in
18507   shlibpath_var=PATH
18508   ;;
18509
18510 darwin* | rhapsody*)
18511   dynamic_linker="$host_os dyld"
18512   version_type=darwin
18513   need_lib_prefix=no
18514   need_version=no
18515   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18516   soname_spec='${libname}${release}${major}$shared_ext'
18517   shlibpath_overrides_runpath=yes
18518   shlibpath_var=DYLD_LIBRARY_PATH
18519   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18520   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18521   if test "$GCC" = yes; then
18522     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"`
18523   else
18524     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18525   fi
18526   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18527   ;;
18528
18529 dgux*)
18530   version_type=linux
18531   need_lib_prefix=no
18532   need_version=no
18533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18534   soname_spec='${libname}${release}${shared_ext}$major'
18535   shlibpath_var=LD_LIBRARY_PATH
18536   ;;
18537
18538 freebsd1*)
18539   dynamic_linker=no
18540   ;;
18541
18542 kfreebsd*-gnu)
18543   version_type=linux
18544   need_lib_prefix=no
18545   need_version=no
18546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18547   soname_spec='${libname}${release}${shared_ext}$major'
18548   shlibpath_var=LD_LIBRARY_PATH
18549   shlibpath_overrides_runpath=no
18550   hardcode_into_libs=yes
18551   dynamic_linker='GNU ld.so'
18552   ;;
18553
18554 freebsd*)
18555   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18556   version_type=freebsd-$objformat
18557   case $version_type in
18558     freebsd-elf*)
18559       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18560       need_version=no
18561       need_lib_prefix=no
18562       ;;
18563     freebsd-*)
18564       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18565       need_version=yes
18566       ;;
18567   esac
18568   shlibpath_var=LD_LIBRARY_PATH
18569   case $host_os in
18570   freebsd2*)
18571     shlibpath_overrides_runpath=yes
18572     ;;
18573   freebsd3.01* | freebsdelf3.01*)
18574     shlibpath_overrides_runpath=yes
18575     hardcode_into_libs=yes
18576     ;;
18577   *) # from 3.2 on
18578     shlibpath_overrides_runpath=no
18579     hardcode_into_libs=yes
18580     ;;
18581   esac
18582   ;;
18583
18584 gnu*)
18585   version_type=linux
18586   need_lib_prefix=no
18587   need_version=no
18588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18589   soname_spec='${libname}${release}${shared_ext}$major'
18590   shlibpath_var=LD_LIBRARY_PATH
18591   hardcode_into_libs=yes
18592   ;;
18593
18594 hpux9* | hpux10* | hpux11*)
18595   # Give a soname corresponding to the major version so that dld.sl refuses to
18596   # link against other versions.
18597   version_type=sunos
18598   need_lib_prefix=no
18599   need_version=no
18600   case "$host_cpu" in
18601   ia64*)
18602     shrext_cmds='.so'
18603     hardcode_into_libs=yes
18604     dynamic_linker="$host_os dld.so"
18605     shlibpath_var=LD_LIBRARY_PATH
18606     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18607     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18608     soname_spec='${libname}${release}${shared_ext}$major'
18609     if test "X$HPUX_IA64_MODE" = X32; then
18610       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18611     else
18612       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18613     fi
18614     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18615     ;;
18616    hppa*64*)
18617      shrext_cmds='.sl'
18618      hardcode_into_libs=yes
18619      dynamic_linker="$host_os dld.sl"
18620      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18621      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18622      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18623      soname_spec='${libname}${release}${shared_ext}$major'
18624      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18625      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18626      ;;
18627    *)
18628     shrext_cmds='.sl'
18629     dynamic_linker="$host_os dld.sl"
18630     shlibpath_var=SHLIB_PATH
18631     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18632     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18633     soname_spec='${libname}${release}${shared_ext}$major'
18634     ;;
18635   esac
18636   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18637   postinstall_cmds='chmod 555 $lib'
18638   ;;
18639
18640 irix5* | irix6* | nonstopux*)
18641   case $host_os in
18642     nonstopux*) version_type=nonstopux ;;
18643     *)
18644         if test "$lt_cv_prog_gnu_ld" = yes; then
18645                 version_type=linux
18646         else
18647                 version_type=irix
18648         fi ;;
18649   esac
18650   need_lib_prefix=no
18651   need_version=no
18652   soname_spec='${libname}${release}${shared_ext}$major'
18653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18654   case $host_os in
18655   irix5* | nonstopux*)
18656     libsuff= shlibsuff=
18657     ;;
18658   *)
18659     case $LD in # libtool.m4 will add one of these switches to LD
18660     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18661       libsuff= shlibsuff= libmagic=32-bit;;
18662     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18663       libsuff=32 shlibsuff=N32 libmagic=N32;;
18664     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18665       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18666     *) libsuff= shlibsuff= libmagic=never-match;;
18667     esac
18668     ;;
18669   esac
18670   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18671   shlibpath_overrides_runpath=no
18672   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18673   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18674   hardcode_into_libs=yes
18675   ;;
18676
18677 # No shared lib support for Linux oldld, aout, or coff.
18678 linux*oldld* | linux*aout* | linux*coff*)
18679   dynamic_linker=no
18680   ;;
18681
18682 # This must be Linux ELF.
18683 linux*)
18684   version_type=linux
18685   need_lib_prefix=no
18686   need_version=no
18687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18688   soname_spec='${libname}${release}${shared_ext}$major'
18689   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18690   shlibpath_var=LD_LIBRARY_PATH
18691   shlibpath_overrides_runpath=no
18692   # This implies no fast_install, which is unacceptable.
18693   # Some rework will be needed to allow for fast_install
18694   # before this can be enabled.
18695   hardcode_into_libs=yes
18696
18697   # Append ld.so.conf contents to the search path
18698   if test -f /etc/ld.so.conf; then
18699     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18700     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18701   fi
18702
18703   # We used to test for /lib/ld.so.1 and disable shared libraries on
18704   # powerpc, because MkLinux only supported shared libraries with the
18705   # GNU dynamic linker.  Since this was broken with cross compilers,
18706   # most powerpc-linux boxes support dynamic linking these days and
18707   # people can always --disable-shared, the test was removed, and we
18708   # assume the GNU/Linux dynamic linker is in use.
18709   dynamic_linker='GNU/Linux ld.so'
18710   ;;
18711
18712 knetbsd*-gnu)
18713   version_type=linux
18714   need_lib_prefix=no
18715   need_version=no
18716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18717   soname_spec='${libname}${release}${shared_ext}$major'
18718   shlibpath_var=LD_LIBRARY_PATH
18719   shlibpath_overrides_runpath=no
18720   hardcode_into_libs=yes
18721   dynamic_linker='GNU ld.so'
18722   ;;
18723
18724 netbsd*)
18725   version_type=sunos
18726   need_lib_prefix=no
18727   need_version=no
18728   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18729     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18730     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18731     dynamic_linker='NetBSD (a.out) ld.so'
18732   else
18733     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18734     soname_spec='${libname}${release}${shared_ext}$major'
18735     dynamic_linker='NetBSD ld.elf_so'
18736   fi
18737   shlibpath_var=LD_LIBRARY_PATH
18738   shlibpath_overrides_runpath=yes
18739   hardcode_into_libs=yes
18740   ;;
18741
18742 newsos6)
18743   version_type=linux
18744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18745   shlibpath_var=LD_LIBRARY_PATH
18746   shlibpath_overrides_runpath=yes
18747   ;;
18748
18749 nto-qnx*)
18750   version_type=linux
18751   need_lib_prefix=no
18752   need_version=no
18753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18754   soname_spec='${libname}${release}${shared_ext}$major'
18755   shlibpath_var=LD_LIBRARY_PATH
18756   shlibpath_overrides_runpath=yes
18757   ;;
18758
18759 openbsd*)
18760   version_type=sunos
18761   need_lib_prefix=no
18762   need_version=no
18763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18764   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18765   shlibpath_var=LD_LIBRARY_PATH
18766   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18767     case $host_os in
18768       openbsd2.[89] | openbsd2.[89].*)
18769         shlibpath_overrides_runpath=no
18770         ;;
18771       *)
18772         shlibpath_overrides_runpath=yes
18773         ;;
18774       esac
18775   else
18776     shlibpath_overrides_runpath=yes
18777   fi
18778   ;;
18779
18780 os2*)
18781   libname_spec='$name'
18782   shrext_cmds=".dll"
18783   need_lib_prefix=no
18784   library_names_spec='$libname${shared_ext} $libname.a'
18785   dynamic_linker='OS/2 ld.exe'
18786   shlibpath_var=LIBPATH
18787   ;;
18788
18789 osf3* | osf4* | osf5*)
18790   version_type=osf
18791   need_lib_prefix=no
18792   need_version=no
18793   soname_spec='${libname}${release}${shared_ext}$major'
18794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18795   shlibpath_var=LD_LIBRARY_PATH
18796   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18797   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18798   ;;
18799
18800 sco3.2v5*)
18801   version_type=osf
18802   soname_spec='${libname}${release}${shared_ext}$major'
18803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18804   shlibpath_var=LD_LIBRARY_PATH
18805   ;;
18806
18807 solaris*)
18808   version_type=linux
18809   need_lib_prefix=no
18810   need_version=no
18811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18812   soname_spec='${libname}${release}${shared_ext}$major'
18813   shlibpath_var=LD_LIBRARY_PATH
18814   shlibpath_overrides_runpath=yes
18815   hardcode_into_libs=yes
18816   # ldd complains unless libraries are executable
18817   postinstall_cmds='chmod +x $lib'
18818   ;;
18819
18820 sunos4*)
18821   version_type=sunos
18822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18823   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18824   shlibpath_var=LD_LIBRARY_PATH
18825   shlibpath_overrides_runpath=yes
18826   if test "$with_gnu_ld" = yes; then
18827     need_lib_prefix=no
18828   fi
18829   need_version=yes
18830   ;;
18831
18832 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18833   version_type=linux
18834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18835   soname_spec='${libname}${release}${shared_ext}$major'
18836   shlibpath_var=LD_LIBRARY_PATH
18837   case $host_vendor in
18838     sni)
18839       shlibpath_overrides_runpath=no
18840       need_lib_prefix=no
18841       export_dynamic_flag_spec='${wl}-Blargedynsym'
18842       runpath_var=LD_RUN_PATH
18843       ;;
18844     siemens)
18845       need_lib_prefix=no
18846       ;;
18847     motorola)
18848       need_lib_prefix=no
18849       need_version=no
18850       shlibpath_overrides_runpath=no
18851       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18852       ;;
18853   esac
18854   ;;
18855
18856 sysv4*MP*)
18857   if test -d /usr/nec ;then
18858     version_type=linux
18859     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18860     soname_spec='$libname${shared_ext}.$major'
18861     shlibpath_var=LD_LIBRARY_PATH
18862   fi
18863   ;;
18864
18865 uts4*)
18866   version_type=linux
18867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18868   soname_spec='${libname}${release}${shared_ext}$major'
18869   shlibpath_var=LD_LIBRARY_PATH
18870   ;;
18871
18872 *)
18873   dynamic_linker=no
18874   ;;
18875 esac
18876 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18877 echo "${ECHO_T}$dynamic_linker" >&6
18878 test "$dynamic_linker" = no && can_build_shared=no
18879
18880 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18881 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18882 hardcode_action_F77=
18883 if test -n "$hardcode_libdir_flag_spec_F77" || \
18884    test -n "$runpath_var_F77" || \
18885    test "X$hardcode_automatic_F77" = "Xyes" ; then
18886
18887   # We can hardcode non-existant directories.
18888   if test "$hardcode_direct_F77" != no &&
18889      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18890      # have to relink, otherwise we might link with an installed library
18891      # when we should be linking with a yet-to-be-installed one
18892      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18893      test "$hardcode_minus_L_F77" != no; then
18894     # Linking always hardcodes the temporary library directory.
18895     hardcode_action_F77=relink
18896   else
18897     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18898     hardcode_action_F77=immediate
18899   fi
18900 else
18901   # We cannot hardcode anything, or else we can only hardcode existing
18902   # directories.
18903   hardcode_action_F77=unsupported
18904 fi
18905 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18906 echo "${ECHO_T}$hardcode_action_F77" >&6
18907
18908 if test "$hardcode_action_F77" = relink; then
18909   # Fast installation is not supported
18910   enable_fast_install=no
18911 elif test "$shlibpath_overrides_runpath" = yes ||
18912      test "$enable_shared" = no; then
18913   # Fast installation is not necessary
18914   enable_fast_install=needless
18915 fi
18916
18917 striplib=
18918 old_striplib=
18919 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18920 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18921 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18922   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18923   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18924   echo "$as_me:$LINENO: result: yes" >&5
18925 echo "${ECHO_T}yes" >&6
18926 else
18927 # FIXME - insert some real tests, host_os isn't really good enough
18928   case $host_os in
18929    darwin*)
18930        if test -n "$STRIP" ; then
18931          striplib="$STRIP -x"
18932          echo "$as_me:$LINENO: result: yes" >&5
18933 echo "${ECHO_T}yes" >&6
18934        else
18935   echo "$as_me:$LINENO: result: no" >&5
18936 echo "${ECHO_T}no" >&6
18937 fi
18938        ;;
18939    *)
18940   echo "$as_me:$LINENO: result: no" >&5
18941 echo "${ECHO_T}no" >&6
18942     ;;
18943   esac
18944 fi
18945
18946
18947
18948 # The else clause should only fire when bootstrapping the
18949 # libtool distribution, otherwise you forgot to ship ltmain.sh
18950 # with your package, and you will get complaints that there are
18951 # no rules to generate ltmain.sh.
18952 if test -f "$ltmain"; then
18953   # See if we are running on zsh, and set the options which allow our commands through
18954   # without removal of \ escapes.
18955   if test -n "${ZSH_VERSION+set}" ; then
18956     setopt NO_GLOB_SUBST
18957   fi
18958   # Now quote all the things that may contain metacharacters while being
18959   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18960   # variables and quote the copies for generation of the libtool script.
18961   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18962     SED SHELL STRIP \
18963     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18964     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18965     deplibs_check_method reload_flag reload_cmds need_locks \
18966     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18967     lt_cv_sys_global_symbol_to_c_name_address \
18968     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18969     old_postinstall_cmds old_postuninstall_cmds \
18970     compiler_F77 \
18971     CC_F77 \
18972     LD_F77 \
18973     lt_prog_compiler_wl_F77 \
18974     lt_prog_compiler_pic_F77 \
18975     lt_prog_compiler_static_F77 \
18976     lt_prog_compiler_no_builtin_flag_F77 \
18977     export_dynamic_flag_spec_F77 \
18978     thread_safe_flag_spec_F77 \
18979     whole_archive_flag_spec_F77 \
18980     enable_shared_with_static_runtimes_F77 \
18981     old_archive_cmds_F77 \
18982     old_archive_from_new_cmds_F77 \
18983     predep_objects_F77 \
18984     postdep_objects_F77 \
18985     predeps_F77 \
18986     postdeps_F77 \
18987     compiler_lib_search_path_F77 \
18988     archive_cmds_F77 \
18989     archive_expsym_cmds_F77 \
18990     postinstall_cmds_F77 \
18991     postuninstall_cmds_F77 \
18992     old_archive_from_expsyms_cmds_F77 \
18993     allow_undefined_flag_F77 \
18994     no_undefined_flag_F77 \
18995     export_symbols_cmds_F77 \
18996     hardcode_libdir_flag_spec_F77 \
18997     hardcode_libdir_flag_spec_ld_F77 \
18998     hardcode_libdir_separator_F77 \
18999     hardcode_automatic_F77 \
19000     module_cmds_F77 \
19001     module_expsym_cmds_F77 \
19002     lt_cv_prog_compiler_c_o_F77 \
19003     exclude_expsyms_F77 \
19004     include_expsyms_F77; do
19005
19006     case $var in
19007     old_archive_cmds_F77 | \
19008     old_archive_from_new_cmds_F77 | \
19009     archive_cmds_F77 | \
19010     archive_expsym_cmds_F77 | \
19011     module_cmds_F77 | \
19012     module_expsym_cmds_F77 | \
19013     old_archive_from_expsyms_cmds_F77 | \
19014     export_symbols_cmds_F77 | \
19015     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19016     postinstall_cmds | postuninstall_cmds | \
19017     old_postinstall_cmds | old_postuninstall_cmds | \
19018     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19019       # Double-quote double-evaled strings.
19020       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19021       ;;
19022     *)
19023       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19024       ;;
19025     esac
19026   done
19027
19028   case $lt_echo in
19029   *'\$0 --fallback-echo"')
19030     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19031     ;;
19032   esac
19033
19034 cfgfile="$ofile"
19035
19036   cat <<__EOF__ >> "$cfgfile"
19037 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19038
19039 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19040
19041 # Shell to use when invoking shell scripts.
19042 SHELL=$lt_SHELL
19043
19044 # Whether or not to build shared libraries.
19045 build_libtool_libs=$enable_shared
19046
19047 # Whether or not to build static libraries.
19048 build_old_libs=$enable_static
19049
19050 # Whether or not to add -lc for building shared libraries.
19051 build_libtool_need_lc=$archive_cmds_need_lc_F77
19052
19053 # Whether or not to disallow shared libs when runtime libs are static
19054 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
19055
19056 # Whether or not to optimize for fast installation.
19057 fast_install=$enable_fast_install
19058
19059 # The host system.
19060 host_alias=$host_alias
19061 host=$host
19062
19063 # An echo program that does not interpret backslashes.
19064 echo=$lt_echo
19065
19066 # The archiver.
19067 AR=$lt_AR
19068 AR_FLAGS=$lt_AR_FLAGS
19069
19070 # A C compiler.
19071 LTCC=$lt_LTCC
19072
19073 # A language-specific compiler.
19074 CC=$lt_compiler_F77
19075
19076 # Is the compiler the GNU C compiler?
19077 with_gcc=$GCC_F77
19078
19079 # An ERE matcher.
19080 EGREP=$lt_EGREP
19081
19082 # The linker used to build libraries.
19083 LD=$lt_LD_F77
19084
19085 # Whether we need hard or soft links.
19086 LN_S=$lt_LN_S
19087
19088 # A BSD-compatible nm program.
19089 NM=$lt_NM
19090
19091 # A symbol stripping program
19092 STRIP=$lt_STRIP
19093
19094 # Used to examine libraries when file_magic_cmd begins "file"
19095 MAGIC_CMD=$MAGIC_CMD
19096
19097 # Used on cygwin: DLL creation program.
19098 DLLTOOL="$DLLTOOL"
19099
19100 # Used on cygwin: object dumper.
19101 OBJDUMP="$OBJDUMP"
19102
19103 # Used on cygwin: assembler.
19104 AS="$AS"
19105
19106 # The name of the directory that contains temporary libtool files.
19107 objdir=$objdir
19108
19109 # How to create reloadable object files.
19110 reload_flag=$lt_reload_flag
19111 reload_cmds=$lt_reload_cmds
19112
19113 # How to pass a linker flag through the compiler.
19114 wl=$lt_lt_prog_compiler_wl_F77
19115
19116 # Object file suffix (normally "o").
19117 objext="$ac_objext"
19118
19119 # Old archive suffix (normally "a").
19120 libext="$libext"
19121
19122 # Shared library suffix (normally ".so").
19123 shrext_cmds='$shrext_cmds'
19124
19125 # Executable file suffix (normally "").
19126 exeext="$exeext"
19127
19128 # Additional compiler flags for building library objects.
19129 pic_flag=$lt_lt_prog_compiler_pic_F77
19130 pic_mode=$pic_mode
19131
19132 # What is the maximum length of a command?
19133 max_cmd_len=$lt_cv_sys_max_cmd_len
19134
19135 # Does compiler simultaneously support -c and -o options?
19136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
19137
19138 # Must we lock files when doing compilation ?
19139 need_locks=$lt_need_locks
19140
19141 # Do we need the lib prefix for modules?
19142 need_lib_prefix=$need_lib_prefix
19143
19144 # Do we need a version for libraries?
19145 need_version=$need_version
19146
19147 # Whether dlopen is supported.
19148 dlopen_support=$enable_dlopen
19149
19150 # Whether dlopen of programs is supported.
19151 dlopen_self=$enable_dlopen_self
19152
19153 # Whether dlopen of statically linked programs is supported.
19154 dlopen_self_static=$enable_dlopen_self_static
19155
19156 # Compiler flag to prevent dynamic linking.
19157 link_static_flag=$lt_lt_prog_compiler_static_F77
19158
19159 # Compiler flag to turn off builtin functions.
19160 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
19161
19162 # Compiler flag to allow reflexive dlopens.
19163 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
19164
19165 # Compiler flag to generate shared objects directly from archives.
19166 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
19167
19168 # Compiler flag to generate thread-safe objects.
19169 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
19170
19171 # Library versioning type.
19172 version_type=$version_type
19173
19174 # Format of library name prefix.
19175 libname_spec=$lt_libname_spec
19176
19177 # List of archive names.  First name is the real one, the rest are links.
19178 # The last name is the one that the linker finds with -lNAME.
19179 library_names_spec=$lt_library_names_spec
19180
19181 # The coded name of the library, if different from the real name.
19182 soname_spec=$lt_soname_spec
19183
19184 # Commands used to build and install an old-style archive.
19185 RANLIB=$lt_RANLIB
19186 old_archive_cmds=$lt_old_archive_cmds_F77
19187 old_postinstall_cmds=$lt_old_postinstall_cmds
19188 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19189
19190 # Create an old-style archive from a shared archive.
19191 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
19192
19193 # Create a temporary old-style archive to link instead of a shared archive.
19194 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
19195
19196 # Commands used to build and install a shared archive.
19197 archive_cmds=$lt_archive_cmds_F77
19198 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
19199 postinstall_cmds=$lt_postinstall_cmds
19200 postuninstall_cmds=$lt_postuninstall_cmds
19201
19202 # Commands used to build a loadable module (assumed same as above if empty)
19203 module_cmds=$lt_module_cmds_F77
19204 module_expsym_cmds=$lt_module_expsym_cmds_F77
19205
19206 # Commands to strip libraries.
19207 old_striplib=$lt_old_striplib
19208 striplib=$lt_striplib
19209
19210 # Dependencies to place before the objects being linked to create a
19211 # shared library.
19212 predep_objects=$lt_predep_objects_F77
19213
19214 # Dependencies to place after the objects being linked to create a
19215 # shared library.
19216 postdep_objects=$lt_postdep_objects_F77
19217
19218 # Dependencies to place before the objects being linked to create a
19219 # shared library.
19220 predeps=$lt_predeps_F77
19221
19222 # Dependencies to place after the objects being linked to create a
19223 # shared library.
19224 postdeps=$lt_postdeps_F77
19225
19226 # The library search path used internally by the compiler when linking
19227 # a shared library.
19228 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
19229
19230 # Method to check whether dependent libraries are shared objects.
19231 deplibs_check_method=$lt_deplibs_check_method
19232
19233 # Command to use when deplibs_check_method == file_magic.
19234 file_magic_cmd=$lt_file_magic_cmd
19235
19236 # Flag that allows shared libraries with undefined symbols to be built.
19237 allow_undefined_flag=$lt_allow_undefined_flag_F77
19238
19239 # Flag that forces no undefined symbols.
19240 no_undefined_flag=$lt_no_undefined_flag_F77
19241
19242 # Commands used to finish a libtool library installation in a directory.
19243 finish_cmds=$lt_finish_cmds
19244
19245 # Same as above, but a single script fragment to be evaled but not shown.
19246 finish_eval=$lt_finish_eval
19247
19248 # Take the output of nm and produce a listing of raw symbols and C names.
19249 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19250
19251 # Transform the output of nm in a proper C declaration
19252 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19253
19254 # Transform the output of nm in a C name address pair
19255 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19256
19257 # This is the shared library runtime path variable.
19258 runpath_var=$runpath_var
19259
19260 # This is the shared library path variable.
19261 shlibpath_var=$shlibpath_var
19262
19263 # Is shlibpath searched before the hard-coded library search path?
19264 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19265
19266 # How to hardcode a shared library path into an executable.
19267 hardcode_action=$hardcode_action_F77
19268
19269 # Whether we should hardcode library paths into libraries.
19270 hardcode_into_libs=$hardcode_into_libs
19271
19272 # Flag to hardcode \$libdir into a binary during linking.
19273 # This must work even if \$libdir does not exist.
19274 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
19275
19276 # If ld is used when linking, flag to hardcode \$libdir into
19277 # a binary during linking. This must work even if \$libdir does
19278 # not exist.
19279 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
19280
19281 # Whether we need a single -rpath flag with a separated argument.
19282 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
19283
19284 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19285 # resulting binary.
19286 hardcode_direct=$hardcode_direct_F77
19287
19288 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19289 # resulting binary.
19290 hardcode_minus_L=$hardcode_minus_L_F77
19291
19292 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19293 # the resulting binary.
19294 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
19295
19296 # Set to yes if building a shared library automatically hardcodes DIR into the library
19297 # and all subsequent libraries and executables linked against it.
19298 hardcode_automatic=$hardcode_automatic_F77
19299
19300 # Variables whose values should be saved in libtool wrapper scripts and
19301 # restored at relink time.
19302 variables_saved_for_relink="$variables_saved_for_relink"
19303
19304 # Whether libtool must link a program against all its dependency libraries.
19305 link_all_deplibs=$link_all_deplibs_F77
19306
19307 # Compile-time system search path for libraries
19308 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19309
19310 # Run-time system search path for libraries
19311 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19312
19313 # Fix the shell variable \$srcfile for the compiler.
19314 fix_srcfile_path="$fix_srcfile_path_F77"
19315
19316 # Set to yes if exported symbols are required.
19317 always_export_symbols=$always_export_symbols_F77
19318
19319 # The commands to list exported symbols.
19320 export_symbols_cmds=$lt_export_symbols_cmds_F77
19321
19322 # The commands to extract the exported symbol list from a shared archive.
19323 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19324
19325 # Symbols that should not be listed in the preloaded symbols.
19326 exclude_expsyms=$lt_exclude_expsyms_F77
19327
19328 # Symbols that must always be exported.
19329 include_expsyms=$lt_include_expsyms_F77
19330
19331 # ### END LIBTOOL TAG CONFIG: $tagname
19332
19333 __EOF__
19334
19335
19336 else
19337   # If there is no Makefile yet, we rely on a make rule to execute
19338   # `config.status --recheck' to rerun these tests and create the
19339   # libtool script then.
19340   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19341   if test -f "$ltmain_in"; then
19342     test -f Makefile && make "$ltmain"
19343   fi
19344 fi
19345
19346
19347 ac_ext=c
19348 ac_cpp='$CPP $CPPFLAGS'
19349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19352
19353 CC="$lt_save_CC"
19354
19355         else
19356           tagname=""
19357         fi
19358         ;;
19359
19360       GCJ)
19361         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
19362
19363
19364
19365 # Source file extension for Java test sources.
19366 ac_ext=java
19367
19368 # Object file extension for compiled Java test sources.
19369 objext=o
19370 objext_GCJ=$objext
19371
19372 # Code to be used in simple compile tests
19373 lt_simple_compile_test_code="class foo {}\n"
19374
19375 # Code to be used in simple link tests
19376 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
19377
19378 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19379
19380 # If no C compiler was specified, use CC.
19381 LTCC=${LTCC-"$CC"}
19382
19383 # Allow CC to be a program name with arguments.
19384 compiler=$CC
19385
19386
19387 # Allow CC to be a program name with arguments.
19388 lt_save_CC="$CC"
19389 CC=${GCJ-"gcj"}
19390 compiler=$CC
19391 compiler_GCJ=$CC
19392
19393 # GCJ did not exist at the time GCC didn't implicitly link libc in.
19394 archive_cmds_need_lc_GCJ=no
19395
19396 ## CAVEAT EMPTOR:
19397 ## There is no encapsulation within the following macros, do not change
19398 ## the running order or otherwise move them around unless you know exactly
19399 ## what you are doing...
19400
19401 lt_prog_compiler_no_builtin_flag_GCJ=
19402
19403 if test "$GCC" = yes; then
19404   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
19405
19406
19407 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19408 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
19409 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
19410   echo $ECHO_N "(cached) $ECHO_C" >&6
19411 else
19412   lt_cv_prog_compiler_rtti_exceptions=no
19413   ac_outfile=conftest.$ac_objext
19414    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19415    lt_compiler_flag="-fno-rtti -fno-exceptions"
19416    # Insert the option either (1) after the last *FLAGS variable, or
19417    # (2) before a word containing "conftest.", or (3) at the end.
19418    # Note that $ac_compile itself does not contain backslashes and begins
19419    # with a dollar sign (not a hyphen), so the echo should work correctly.
19420    # The option is referenced via a variable to avoid confusing sed.
19421    lt_compile=`echo "$ac_compile" | $SED \
19422    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19423    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19424    -e 's:$: $lt_compiler_flag:'`
19425    (eval echo "\"\$as_me:19425: $lt_compile\"" >&5)
19426    (eval "$lt_compile" 2>conftest.err)
19427    ac_status=$?
19428    cat conftest.err >&5
19429    echo "$as_me:19429: \$? = $ac_status" >&5
19430    if (exit $ac_status) && test -s "$ac_outfile"; then
19431      # The compiler can only warn and ignore the option if not recognized
19432      # So say no if there are warnings
19433      if test ! -s conftest.err; then
19434        lt_cv_prog_compiler_rtti_exceptions=yes
19435      fi
19436    fi
19437    $rm conftest*
19438
19439 fi
19440 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19441 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
19442
19443 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19444     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19445 else
19446     :
19447 fi
19448
19449 fi
19450
19451 lt_prog_compiler_wl_GCJ=
19452 lt_prog_compiler_pic_GCJ=
19453 lt_prog_compiler_static_GCJ=
19454
19455 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19456 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19457
19458   if test "$GCC" = yes; then
19459     lt_prog_compiler_wl_GCJ='-Wl,'
19460     lt_prog_compiler_static_GCJ='-static'
19461
19462     case $host_os in
19463       aix*)
19464       # All AIX code is PIC.
19465       if test "$host_cpu" = ia64; then
19466         # AIX 5 now supports IA64 processor
19467         lt_prog_compiler_static_GCJ='-Bstatic'
19468       fi
19469       ;;
19470
19471     amigaos*)
19472       # FIXME: we need at least 68020 code to build shared libraries, but
19473       # adding the `-m68020' flag to GCC prevents building anything better,
19474       # like `-m68040'.
19475       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
19476       ;;
19477
19478     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19479       # PIC is the default for these OSes.
19480       ;;
19481
19482     mingw* | pw32* | os2*)
19483       # This hack is so that the source file can tell whether it is being
19484       # built for inclusion in a dll (and should export symbols for example).
19485       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19486       ;;
19487
19488     darwin* | rhapsody*)
19489       # PIC is the default on this platform
19490       # Common symbols not allowed in MH_DYLIB files
19491       lt_prog_compiler_pic_GCJ='-fno-common'
19492       ;;
19493
19494     msdosdjgpp*)
19495       # Just because we use GCC doesn't mean we suddenly get shared libraries
19496       # on systems that don't support them.
19497       lt_prog_compiler_can_build_shared_GCJ=no
19498       enable_shared=no
19499       ;;
19500
19501     sysv4*MP*)
19502       if test -d /usr/nec; then
19503         lt_prog_compiler_pic_GCJ=-Kconform_pic
19504       fi
19505       ;;
19506
19507     hpux*)
19508       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19509       # not for PA HP-UX.
19510       case "$host_cpu" in
19511       hppa*64*|ia64*)
19512         # +Z the default
19513         ;;
19514       *)
19515         lt_prog_compiler_pic_GCJ='-fPIC'
19516         ;;
19517       esac
19518       ;;
19519
19520     *)
19521       lt_prog_compiler_pic_GCJ='-fPIC'
19522       ;;
19523     esac
19524   else
19525     # PORTME Check for flag to pass linker flags through the system compiler.
19526     case $host_os in
19527     aix*)
19528       lt_prog_compiler_wl_GCJ='-Wl,'
19529       if test "$host_cpu" = ia64; then
19530         # AIX 5 now supports IA64 processor
19531         lt_prog_compiler_static_GCJ='-Bstatic'
19532       else
19533         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19534       fi
19535       ;;
19536       darwin*)
19537         # PIC is the default on this platform
19538         # Common symbols not allowed in MH_DYLIB files
19539        case "$cc_basename" in
19540          xlc*)
19541          lt_prog_compiler_pic_GCJ='-qnocommon'
19542          lt_prog_compiler_wl_GCJ='-Wl,'
19543          ;;
19544        esac
19545        ;;
19546
19547     mingw* | pw32* | os2*)
19548       # This hack is so that the source file can tell whether it is being
19549       # built for inclusion in a dll (and should export symbols for example).
19550       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19551       ;;
19552
19553     hpux9* | hpux10* | hpux11*)
19554       lt_prog_compiler_wl_GCJ='-Wl,'
19555       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19556       # not for PA HP-UX.
19557       case "$host_cpu" in
19558       hppa*64*|ia64*)
19559         # +Z the default
19560         ;;
19561       *)
19562         lt_prog_compiler_pic_GCJ='+Z'
19563         ;;
19564       esac
19565       # Is there a better lt_prog_compiler_static that works with the bundled CC?
19566       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19567       ;;
19568
19569     irix5* | irix6* | nonstopux*)
19570       lt_prog_compiler_wl_GCJ='-Wl,'
19571       # PIC (with -KPIC) is the default.
19572       lt_prog_compiler_static_GCJ='-non_shared'
19573       ;;
19574
19575     newsos6)
19576       lt_prog_compiler_pic_GCJ='-KPIC'
19577       lt_prog_compiler_static_GCJ='-Bstatic'
19578       ;;
19579
19580     linux*)
19581       case $CC in
19582       icc* | ecc*)
19583         lt_prog_compiler_wl_GCJ='-Wl,'
19584         lt_prog_compiler_pic_GCJ='-KPIC'
19585         lt_prog_compiler_static_GCJ='-static'
19586         ;;
19587       ccc*)
19588         lt_prog_compiler_wl_GCJ='-Wl,'
19589         # All Alpha code is PIC.
19590         lt_prog_compiler_static_GCJ='-non_shared'
19591         ;;
19592       esac
19593       ;;
19594
19595     osf3* | osf4* | osf5*)
19596       lt_prog_compiler_wl_GCJ='-Wl,'
19597       # All OSF/1 code is PIC.
19598       lt_prog_compiler_static_GCJ='-non_shared'
19599       ;;
19600
19601     sco3.2v5*)
19602       lt_prog_compiler_pic_GCJ='-Kpic'
19603       lt_prog_compiler_static_GCJ='-dn'
19604       ;;
19605
19606     solaris*)
19607       lt_prog_compiler_wl_GCJ='-Wl,'
19608       lt_prog_compiler_pic_GCJ='-KPIC'
19609       lt_prog_compiler_static_GCJ='-Bstatic'
19610       ;;
19611
19612     sunos4*)
19613       lt_prog_compiler_wl_GCJ='-Qoption ld '
19614       lt_prog_compiler_pic_GCJ='-PIC'
19615       lt_prog_compiler_static_GCJ='-Bstatic'
19616       ;;
19617
19618     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19619       lt_prog_compiler_wl_GCJ='-Wl,'
19620       lt_prog_compiler_pic_GCJ='-KPIC'
19621       lt_prog_compiler_static_GCJ='-Bstatic'
19622       ;;
19623
19624     sysv4*MP*)
19625       if test -d /usr/nec ;then
19626         lt_prog_compiler_pic_GCJ='-Kconform_pic'
19627         lt_prog_compiler_static_GCJ='-Bstatic'
19628       fi
19629       ;;
19630
19631     uts4*)
19632       lt_prog_compiler_pic_GCJ='-pic'
19633       lt_prog_compiler_static_GCJ='-Bstatic'
19634       ;;
19635
19636     *)
19637       lt_prog_compiler_can_build_shared_GCJ=no
19638       ;;
19639     esac
19640   fi
19641
19642 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19643 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
19644
19645 #
19646 # Check to make sure the PIC flag actually works.
19647 #
19648 if test -n "$lt_prog_compiler_pic_GCJ"; then
19649
19650 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19651 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
19652 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
19653   echo $ECHO_N "(cached) $ECHO_C" >&6
19654 else
19655   lt_prog_compiler_pic_works_GCJ=no
19656   ac_outfile=conftest.$ac_objext
19657    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19658    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19659    # Insert the option either (1) after the last *FLAGS variable, or
19660    # (2) before a word containing "conftest.", or (3) at the end.
19661    # Note that $ac_compile itself does not contain backslashes and begins
19662    # with a dollar sign (not a hyphen), so the echo should work correctly.
19663    # The option is referenced via a variable to avoid confusing sed.
19664    lt_compile=`echo "$ac_compile" | $SED \
19665    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19666    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19667    -e 's:$: $lt_compiler_flag:'`
19668    (eval echo "\"\$as_me:19668: $lt_compile\"" >&5)
19669    (eval "$lt_compile" 2>conftest.err)
19670    ac_status=$?
19671    cat conftest.err >&5
19672    echo "$as_me:19672: \$? = $ac_status" >&5
19673    if (exit $ac_status) && test -s "$ac_outfile"; then
19674      # The compiler can only warn and ignore the option if not recognized
19675      # So say no if there are warnings
19676      if test ! -s conftest.err; then
19677        lt_prog_compiler_pic_works_GCJ=yes
19678      fi
19679    fi
19680    $rm conftest*
19681
19682 fi
19683 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
19684 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
19685
19686 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
19687     case $lt_prog_compiler_pic_GCJ in
19688      "" | " "*) ;;
19689      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19690      esac
19691 else
19692     lt_prog_compiler_pic_GCJ=
19693      lt_prog_compiler_can_build_shared_GCJ=no
19694 fi
19695
19696 fi
19697 case "$host_os" in
19698   # For platforms which do not support PIC, -DPIC is meaningless:
19699   *djgpp*)
19700     lt_prog_compiler_pic_GCJ=
19701     ;;
19702   *)
19703     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19704     ;;
19705 esac
19706
19707 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19708 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19709 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19710   echo $ECHO_N "(cached) $ECHO_C" >&6
19711 else
19712   lt_cv_prog_compiler_c_o_GCJ=no
19713    $rm -r conftest 2>/dev/null
19714    mkdir conftest
19715    cd conftest
19716    mkdir out
19717    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19718
19719    lt_compiler_flag="-o out/conftest2.$ac_objext"
19720    # Insert the option either (1) after the last *FLAGS variable, or
19721    # (2) before a word containing "conftest.", or (3) at the end.
19722    # Note that $ac_compile itself does not contain backslashes and begins
19723    # with a dollar sign (not a hyphen), so the echo should work correctly.
19724    lt_compile=`echo "$ac_compile" | $SED \
19725    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19726    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19727    -e 's:$: $lt_compiler_flag:'`
19728    (eval echo "\"\$as_me:19728: $lt_compile\"" >&5)
19729    (eval "$lt_compile" 2>out/conftest.err)
19730    ac_status=$?
19731    cat out/conftest.err >&5
19732    echo "$as_me:19732: \$? = $ac_status" >&5
19733    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19734    then
19735      # The compiler can only warn and ignore the option if not recognized
19736      # So say no if there are warnings
19737      if test ! -s out/conftest.err; then
19738        lt_cv_prog_compiler_c_o_GCJ=yes
19739      fi
19740    fi
19741    chmod u+w .
19742    $rm conftest*
19743    # SGI C++ compiler will create directory out/ii_files/ for
19744    # template instantiation
19745    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19746    $rm out/* && rmdir out
19747    cd ..
19748    rmdir conftest
19749    $rm conftest*
19750
19751 fi
19752 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19753 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
19754
19755
19756 hard_links="nottested"
19757 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19758   # do not overwrite the value of need_locks provided by the user
19759   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19760 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19761   hard_links=yes
19762   $rm conftest*
19763   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19764   touch conftest.a
19765   ln conftest.a conftest.b 2>&5 || hard_links=no
19766   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19767   echo "$as_me:$LINENO: result: $hard_links" >&5
19768 echo "${ECHO_T}$hard_links" >&6
19769   if test "$hard_links" = no; then
19770     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19771 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19772     need_locks=warn
19773   fi
19774 else
19775   need_locks=no
19776 fi
19777
19778 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19779 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19780
19781   runpath_var=
19782   allow_undefined_flag_GCJ=
19783   enable_shared_with_static_runtimes_GCJ=no
19784   archive_cmds_GCJ=
19785   archive_expsym_cmds_GCJ=
19786   old_archive_From_new_cmds_GCJ=
19787   old_archive_from_expsyms_cmds_GCJ=
19788   export_dynamic_flag_spec_GCJ=
19789   whole_archive_flag_spec_GCJ=
19790   thread_safe_flag_spec_GCJ=
19791   hardcode_libdir_flag_spec_GCJ=
19792   hardcode_libdir_flag_spec_ld_GCJ=
19793   hardcode_libdir_separator_GCJ=
19794   hardcode_direct_GCJ=no
19795   hardcode_minus_L_GCJ=no
19796   hardcode_shlibpath_var_GCJ=unsupported
19797   link_all_deplibs_GCJ=unknown
19798   hardcode_automatic_GCJ=no
19799   module_cmds_GCJ=
19800   module_expsym_cmds_GCJ=
19801   always_export_symbols_GCJ=no
19802   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19803   # include_expsyms should be a list of space-separated symbols to be *always*
19804   # included in the symbol list
19805   include_expsyms_GCJ=
19806   # exclude_expsyms can be an extended regexp of symbols to exclude
19807   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19808   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19809   # as well as any symbol that contains `d'.
19810   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
19811   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19812   # platforms (ab)use it in PIC code, but their linkers get confused if
19813   # the symbol is explicitly referenced.  Since portable code cannot
19814   # rely on this symbol name, it's probably fine to never include it in
19815   # preloaded symbol tables.
19816   extract_expsyms_cmds=
19817
19818   case $host_os in
19819   cygwin* | mingw* | pw32*)
19820     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19821     # When not using gcc, we currently assume that we are using
19822     # Microsoft Visual C++.
19823     if test "$GCC" != yes; then
19824       with_gnu_ld=no
19825     fi
19826     ;;
19827   openbsd*)
19828     with_gnu_ld=no
19829     ;;
19830   esac
19831
19832   ld_shlibs_GCJ=yes
19833   if test "$with_gnu_ld" = yes; then
19834     # If archive_cmds runs LD, not CC, wlarc should be empty
19835     wlarc='${wl}'
19836
19837     # See if GNU ld supports shared libraries.
19838     case $host_os in
19839     aix3* | aix4* | aix5*)
19840       # On AIX/PPC, the GNU linker is very broken
19841       if test "$host_cpu" != ia64; then
19842         ld_shlibs_GCJ=no
19843         cat <<EOF 1>&2
19844
19845 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19846 *** to be unable to reliably create shared libraries on AIX.
19847 *** Therefore, libtool is disabling shared libraries support.  If you
19848 *** really care for shared libraries, you may want to modify your PATH
19849 *** so that a non-GNU linker is found, and then restart.
19850
19851 EOF
19852       fi
19853       ;;
19854
19855     amigaos*)
19856       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)'
19857       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19858       hardcode_minus_L_GCJ=yes
19859
19860       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19861       # that the semantics of dynamic libraries on AmigaOS, at least up
19862       # to version 4, is to share data among multiple programs linked
19863       # with the same dynamic library.  Since this doesn't match the
19864       # behavior of shared libraries on other platforms, we can't use
19865       # them.
19866       ld_shlibs_GCJ=no
19867       ;;
19868
19869     beos*)
19870       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19871         allow_undefined_flag_GCJ=unsupported
19872         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19873         # support --undefined.  This deserves some investigation.  FIXME
19874         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19875       else
19876         ld_shlibs_GCJ=no
19877       fi
19878       ;;
19879
19880     cygwin* | mingw* | pw32*)
19881       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19882       # as there is no search path for DLLs.
19883       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19884       allow_undefined_flag_GCJ=unsupported
19885       always_export_symbols_GCJ=no
19886       enable_shared_with_static_runtimes_GCJ=yes
19887       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19888
19889       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19890         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19891         # If the export-symbols file already is a .def file (1st line
19892         # is EXPORTS), use it as is; otherwise, prepend...
19893         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19894           cp $export_symbols $output_objdir/$soname.def;
19895         else
19896           echo EXPORTS > $output_objdir/$soname.def;
19897           cat $export_symbols >> $output_objdir/$soname.def;
19898         fi~
19899         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19900       else
19901         ld_shlibs=no
19902       fi
19903       ;;
19904
19905     netbsd*)
19906       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19907         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19908         wlarc=
19909       else
19910         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19911         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19912       fi
19913       ;;
19914
19915     solaris* | sysv5*)
19916       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19917         ld_shlibs_GCJ=no
19918         cat <<EOF 1>&2
19919
19920 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19921 *** create shared libraries on Solaris systems.  Therefore, libtool
19922 *** is disabling shared libraries support.  We urge you to upgrade GNU
19923 *** binutils to release 2.9.1 or newer.  Another option is to modify
19924 *** your PATH or compiler configuration so that the native linker is
19925 *** used, and then restart.
19926
19927 EOF
19928       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19929         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19930         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19931       else
19932         ld_shlibs_GCJ=no
19933       fi
19934       ;;
19935
19936     sunos4*)
19937       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19938       wlarc=
19939       hardcode_direct_GCJ=yes
19940       hardcode_shlibpath_var_GCJ=no
19941       ;;
19942
19943   linux*)
19944     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19945         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19946         archive_cmds_GCJ="$tmp_archive_cmds"
19947       supports_anon_versioning=no
19948       case `$LD -v 2>/dev/null` in
19949         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19950         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19951         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19952         *\ 2.11.*) ;; # other 2.11 versions
19953         *) supports_anon_versioning=yes ;;
19954       esac
19955       if test $supports_anon_versioning = yes; then
19956         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19957 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19958 $echo "local: *; };" >> $output_objdir/$libname.ver~
19959         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19960       else
19961         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
19962       fi
19963     else
19964       ld_shlibs_GCJ=no
19965     fi
19966     ;;
19967
19968     *)
19969       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19970         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19971         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19972       else
19973         ld_shlibs_GCJ=no
19974       fi
19975       ;;
19976     esac
19977
19978     if test "$ld_shlibs_GCJ" = yes; then
19979       runpath_var=LD_RUN_PATH
19980       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19981       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19982       # ancient GNU ld didn't support --whole-archive et. al.
19983       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19984         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19985       else
19986         whole_archive_flag_spec_GCJ=
19987       fi
19988     fi
19989   else
19990     # PORTME fill in a description of your system's linker (not GNU ld)
19991     case $host_os in
19992     aix3*)
19993       allow_undefined_flag_GCJ=unsupported
19994       always_export_symbols_GCJ=yes
19995       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'
19996       # Note: this linker hardcodes the directories in LIBPATH if there
19997       # are no directories specified by -L.
19998       hardcode_minus_L_GCJ=yes
19999       if test "$GCC" = yes && test -z "$link_static_flag"; then
20000         # Neither direct hardcoding nor static linking is supported with a
20001         # broken collect2.
20002         hardcode_direct_GCJ=unsupported
20003       fi
20004       ;;
20005
20006     aix4* | aix5*)
20007       if test "$host_cpu" = ia64; then
20008         # On IA64, the linker does run time linking by default, so we don't
20009         # have to do anything special.
20010         aix_use_runtimelinking=no
20011         exp_sym_flag='-Bexport'
20012         no_entry_flag=""
20013       else
20014         # If we're using GNU nm, then we don't want the "-C" option.
20015         # -C means demangle to AIX nm, but means don't demangle with GNU nm
20016         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20017           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'
20018         else
20019           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'
20020         fi
20021         aix_use_runtimelinking=no
20022
20023         # Test if we are trying to use run time linking or normal
20024         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20025         # need to do runtime linking.
20026         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20027           for ld_flag in $LDFLAGS; do
20028           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20029             aix_use_runtimelinking=yes
20030             break
20031           fi
20032           done
20033         esac
20034
20035         exp_sym_flag='-bexport'
20036         no_entry_flag='-bnoentry'
20037       fi
20038
20039       # When large executables or shared objects are built, AIX ld can
20040       # have problems creating the table of contents.  If linking a library
20041       # or program results in "error TOC overflow" add -mminimal-toc to
20042       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20043       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20044
20045       archive_cmds_GCJ=''
20046       hardcode_direct_GCJ=yes
20047       hardcode_libdir_separator_GCJ=':'
20048       link_all_deplibs_GCJ=yes
20049
20050       if test "$GCC" = yes; then
20051         case $host_os in aix4.012|aix4.012.*)
20052         # We only want to do this on AIX 4.2 and lower, the check
20053         # below for broken collect2 doesn't work under 4.3+
20054           collect2name=`${CC} -print-prog-name=collect2`
20055           if test -f "$collect2name" && \
20056            strings "$collect2name" | grep resolve_lib_name >/dev/null
20057           then
20058           # We have reworked collect2
20059           hardcode_direct_GCJ=yes
20060           else
20061           # We have old collect2
20062           hardcode_direct_GCJ=unsupported
20063           # It fails to find uninstalled libraries when the uninstalled
20064           # path is not listed in the libpath.  Setting hardcode_minus_L
20065           # to unsupported forces relinking
20066           hardcode_minus_L_GCJ=yes
20067           hardcode_libdir_flag_spec_GCJ='-L$libdir'
20068           hardcode_libdir_separator_GCJ=
20069           fi
20070         esac
20071         shared_flag='-shared'
20072       else
20073         # not using gcc
20074         if test "$host_cpu" = ia64; then
20075         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20076         # chokes on -Wl,-G. The following line is correct:
20077           shared_flag='-G'
20078         else
20079         if test "$aix_use_runtimelinking" = yes; then
20080             shared_flag='${wl}-G'
20081           else
20082             shared_flag='${wl}-bM:SRE'
20083         fi
20084         fi
20085       fi
20086
20087       # It seems that -bexpall does not export symbols beginning with
20088       # underscore (_), so it is better to generate a list of symbols to export.
20089       always_export_symbols_GCJ=yes
20090       if test "$aix_use_runtimelinking" = yes; then
20091         # Warning - without using the other runtime loading flags (-brtl),
20092         # -berok will link without error, but may produce a broken library.
20093         allow_undefined_flag_GCJ='-berok'
20094        # Determine the default libpath from the value encoded in an empty executable.
20095        cat >conftest.$ac_ext <<_ACEOF
20096 /* confdefs.h.  */
20097 _ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h.  */
20101
20102 int
20103 main ()
20104 {
20105
20106   ;
20107   return 0;
20108 }
20109 _ACEOF
20110 rm -f conftest.$ac_objext conftest$ac_exeext
20111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20112   (eval $ac_link) 2>conftest.er1
20113   ac_status=$?
20114   grep -v '^ *+' conftest.er1 >conftest.err
20115   rm -f conftest.er1
20116   cat conftest.err >&5
20117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118   (exit $ac_status); } &&
20119          { ac_try='test -z "$ac_c_werror_flag"
20120                          || test ! -s conftest.err'
20121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122   (eval $ac_try) 2>&5
20123   ac_status=$?
20124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125   (exit $ac_status); }; } &&
20126          { ac_try='test -s conftest$ac_exeext'
20127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128   (eval $ac_try) 2>&5
20129   ac_status=$?
20130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131   (exit $ac_status); }; }; then
20132
20133 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20134 }'`
20135 # Check for a 64-bit object if we didn't find anything.
20136 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; }
20137 }'`; fi
20138 else
20139   echo "$as_me: failed program was:" >&5
20140 sed 's/^/| /' conftest.$ac_ext >&5
20141
20142 fi
20143 rm -f conftest.err conftest.$ac_objext \
20144       conftest$ac_exeext conftest.$ac_ext
20145 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20146
20147        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20148         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
20149        else
20150         if test "$host_cpu" = ia64; then
20151           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
20152           allow_undefined_flag_GCJ="-z nodefs"
20153           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
20154         else
20155          # Determine the default libpath from the value encoded in an empty executable.
20156          cat >conftest.$ac_ext <<_ACEOF
20157 /* confdefs.h.  */
20158 _ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h.  */
20162
20163 int
20164 main ()
20165 {
20166
20167   ;
20168   return 0;
20169 }
20170 _ACEOF
20171 rm -f conftest.$ac_objext conftest$ac_exeext
20172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20173   (eval $ac_link) 2>conftest.er1
20174   ac_status=$?
20175   grep -v '^ *+' conftest.er1 >conftest.err
20176   rm -f conftest.er1
20177   cat conftest.err >&5
20178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179   (exit $ac_status); } &&
20180          { ac_try='test -z "$ac_c_werror_flag"
20181                          || test ! -s conftest.err'
20182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20183   (eval $ac_try) 2>&5
20184   ac_status=$?
20185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186   (exit $ac_status); }; } &&
20187          { ac_try='test -s conftest$ac_exeext'
20188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20189   (eval $ac_try) 2>&5
20190   ac_status=$?
20191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192   (exit $ac_status); }; }; then
20193
20194 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20195 }'`
20196 # Check for a 64-bit object if we didn't find anything.
20197 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; }
20198 }'`; fi
20199 else
20200   echo "$as_me: failed program was:" >&5
20201 sed 's/^/| /' conftest.$ac_ext >&5
20202
20203 fi
20204 rm -f conftest.err conftest.$ac_objext \
20205       conftest$ac_exeext conftest.$ac_ext
20206 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20207
20208          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20209           # Warning - without using the other run time loading flags,
20210           # -berok will link without error, but may produce a broken library.
20211           no_undefined_flag_GCJ=' ${wl}-bernotok'
20212           allow_undefined_flag_GCJ=' ${wl}-berok'
20213           # -bexpall does not export symbols beginning with underscore (_)
20214           always_export_symbols_GCJ=yes
20215           # Exported symbols can be pulled into shared objects from archives
20216           whole_archive_flag_spec_GCJ=' '
20217           archive_cmds_need_lc_GCJ=yes
20218           # This is similar to how AIX traditionally builds it's shared libraries.
20219           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
20220         fi
20221       fi
20222       ;;
20223
20224     amigaos*)
20225       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)'
20226       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20227       hardcode_minus_L_GCJ=yes
20228       # see comment about different semantics on the GNU ld section
20229       ld_shlibs_GCJ=no
20230       ;;
20231
20232     bsdi[45]*)
20233       export_dynamic_flag_spec_GCJ=-rdynamic
20234       ;;
20235
20236     cygwin* | mingw* | pw32*)
20237       # When not using gcc, we currently assume that we are using
20238       # Microsoft Visual C++.
20239       # hardcode_libdir_flag_spec is actually meaningless, as there is
20240       # no search path for DLLs.
20241       hardcode_libdir_flag_spec_GCJ=' '
20242       allow_undefined_flag_GCJ=unsupported
20243       # Tell ltmain to make .lib files, not .a files.
20244       libext=lib
20245       # Tell ltmain to make .dll files, not .so files.
20246       shrext_cmds=".dll"
20247       # FIXME: Setting linknames here is a bad hack.
20248       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20249       # The linker will automatically build a .lib file if we build a DLL.
20250       old_archive_From_new_cmds_GCJ='true'
20251       # FIXME: Should let the user specify the lib program.
20252       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
20253       fix_srcfile_path='`cygpath -w "$srcfile"`'
20254       enable_shared_with_static_runtimes_GCJ=yes
20255       ;;
20256
20257     darwin* | rhapsody*)
20258       case "$host_os" in
20259         rhapsody* | darwin1.[012])
20260          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
20261          ;;
20262        *) # Darwin 1.3 on
20263          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20264            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20265          else
20266            case ${MACOSX_DEPLOYMENT_TARGET} in
20267              10.[012])
20268                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20269                ;;
20270              10.*)
20271                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
20272                ;;
20273            esac
20274          fi
20275          ;;
20276       esac
20277       archive_cmds_need_lc_GCJ=no
20278       hardcode_direct_GCJ=no
20279       hardcode_automatic_GCJ=yes
20280       hardcode_shlibpath_var_GCJ=unsupported
20281       whole_archive_flag_spec_GCJ=''
20282       link_all_deplibs_GCJ=yes
20283     if test "$GCC" = yes ; then
20284         output_verbose_link_cmd='echo'
20285         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20286       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20287       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20288       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}'
20289       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}'
20290     else
20291       case "$cc_basename" in
20292         xlc*)
20293          output_verbose_link_cmd='echo'
20294          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20295          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20296           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20297          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}'
20298           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}'
20299           ;;
20300        *)
20301          ld_shlibs_GCJ=no
20302           ;;
20303       esac
20304     fi
20305       ;;
20306
20307     dgux*)
20308       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20309       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20310       hardcode_shlibpath_var_GCJ=no
20311       ;;
20312
20313     freebsd1*)
20314       ld_shlibs_GCJ=no
20315       ;;
20316
20317     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20318     # support.  Future versions do this automatically, but an explicit c++rt0.o
20319     # does not break anything, and helps significantly (at the cost of a little
20320     # extra space).
20321     freebsd2.2*)
20322       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20323       hardcode_libdir_flag_spec_GCJ='-R$libdir'
20324       hardcode_direct_GCJ=yes
20325       hardcode_shlibpath_var_GCJ=no
20326       ;;
20327
20328     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20329     freebsd2*)
20330       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20331       hardcode_direct_GCJ=yes
20332       hardcode_minus_L_GCJ=yes
20333       hardcode_shlibpath_var_GCJ=no
20334       ;;
20335
20336     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20337     freebsd* | kfreebsd*-gnu)
20338       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20339       hardcode_libdir_flag_spec_GCJ='-R$libdir'
20340       hardcode_direct_GCJ=yes
20341       hardcode_shlibpath_var_GCJ=no
20342       ;;
20343
20344     hpux9*)
20345       if test "$GCC" = yes; then
20346         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'
20347       else
20348         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'
20349       fi
20350       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20351       hardcode_libdir_separator_GCJ=:
20352       hardcode_direct_GCJ=yes
20353
20354       # hardcode_minus_L: Not really in the search PATH,
20355       # but as the default location of the library.
20356       hardcode_minus_L_GCJ=yes
20357       export_dynamic_flag_spec_GCJ='${wl}-E'
20358       ;;
20359
20360     hpux10* | hpux11*)
20361       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20362         case "$host_cpu" in
20363         hppa*64*|ia64*)
20364           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20365           ;;
20366         *)
20367           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20368           ;;
20369         esac
20370       else
20371         case "$host_cpu" in
20372         hppa*64*|ia64*)
20373           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20374           ;;
20375         *)
20376           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20377           ;;
20378         esac
20379       fi
20380       if test "$with_gnu_ld" = no; then
20381         case "$host_cpu" in
20382         hppa*64*)
20383           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20384           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20385           hardcode_libdir_separator_GCJ=:
20386           hardcode_direct_GCJ=no
20387           hardcode_shlibpath_var_GCJ=no
20388           ;;
20389         ia64*)
20390           hardcode_libdir_flag_spec_GCJ='-L$libdir'
20391           hardcode_direct_GCJ=no
20392           hardcode_shlibpath_var_GCJ=no
20393
20394           # hardcode_minus_L: Not really in the search PATH,
20395           # but as the default location of the library.
20396           hardcode_minus_L_GCJ=yes
20397           ;;
20398         *)
20399           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20400           hardcode_libdir_separator_GCJ=:
20401           hardcode_direct_GCJ=yes
20402           export_dynamic_flag_spec_GCJ='${wl}-E'
20403
20404           # hardcode_minus_L: Not really in the search PATH,
20405           # but as the default location of the library.
20406           hardcode_minus_L_GCJ=yes
20407           ;;
20408         esac
20409       fi
20410       ;;
20411
20412     irix5* | irix6* | nonstopux*)
20413       if test "$GCC" = yes; then
20414         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'
20415       else
20416         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'
20417         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
20418       fi
20419       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20420       hardcode_libdir_separator_GCJ=:
20421       link_all_deplibs_GCJ=yes
20422       ;;
20423
20424     netbsd*)
20425       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20426         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
20427       else
20428         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
20429       fi
20430       hardcode_libdir_flag_spec_GCJ='-R$libdir'
20431       hardcode_direct_GCJ=yes
20432       hardcode_shlibpath_var_GCJ=no
20433       ;;
20434
20435     newsos6)
20436       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20437       hardcode_direct_GCJ=yes
20438       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20439       hardcode_libdir_separator_GCJ=:
20440       hardcode_shlibpath_var_GCJ=no
20441       ;;
20442
20443     openbsd*)
20444       hardcode_direct_GCJ=yes
20445       hardcode_shlibpath_var_GCJ=no
20446       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20447         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20448         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20449         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20450         export_dynamic_flag_spec_GCJ='${wl}-E'
20451       else
20452        case $host_os in
20453          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20454            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20455            hardcode_libdir_flag_spec_GCJ='-R$libdir'
20456            ;;
20457          *)
20458            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20459            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20460            ;;
20461        esac
20462       fi
20463       ;;
20464
20465     os2*)
20466       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20467       hardcode_minus_L_GCJ=yes
20468       allow_undefined_flag_GCJ=unsupported
20469       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'
20470       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20471       ;;
20472
20473     osf3*)
20474       if test "$GCC" = yes; then
20475         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20476         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'
20477       else
20478         allow_undefined_flag_GCJ=' -expect_unresolved \*'
20479         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'
20480       fi
20481       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20482       hardcode_libdir_separator_GCJ=:
20483       ;;
20484
20485     osf4* | osf5*)      # as osf3* with the addition of -msym flag
20486       if test "$GCC" = yes; then
20487         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20488         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'
20489         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20490       else
20491         allow_undefined_flag_GCJ=' -expect_unresolved \*'
20492         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'
20493         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~
20494         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
20495
20496         # Both c and cxx compiler support -rpath directly
20497         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
20498       fi
20499       hardcode_libdir_separator_GCJ=:
20500       ;;
20501
20502     sco3.2v5*)
20503       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20504       hardcode_shlibpath_var_GCJ=no
20505       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20506       runpath_var=LD_RUN_PATH
20507       hardcode_runpath_var=yes
20508       ;;
20509
20510     solaris*)
20511       no_undefined_flag_GCJ=' -z text'
20512       if test "$GCC" = yes; then
20513         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20514         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20515           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20516       else
20517         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20518         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20519         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20520       fi
20521       hardcode_libdir_flag_spec_GCJ='-R$libdir'
20522       hardcode_shlibpath_var_GCJ=no
20523       case $host_os in
20524       solaris2.[0-5] | solaris2.[0-5].*) ;;
20525       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20526         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
20527       esac
20528       link_all_deplibs_GCJ=yes
20529       ;;
20530
20531     sunos4*)
20532       if test "x$host_vendor" = xsequent; then
20533         # Use $CC to link under sequent, because it throws in some extra .o
20534         # files that make .init and .fini sections work.
20535         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20536       else
20537         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20538       fi
20539       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20540       hardcode_direct_GCJ=yes
20541       hardcode_minus_L_GCJ=yes
20542       hardcode_shlibpath_var_GCJ=no
20543       ;;
20544
20545     sysv4)
20546       case $host_vendor in
20547         sni)
20548           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20549           hardcode_direct_GCJ=yes # is this really true???
20550         ;;
20551         siemens)
20552           ## LD is ld it makes a PLAMLIB
20553           ## CC just makes a GrossModule.
20554           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20555           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20556           hardcode_direct_GCJ=no
20557         ;;
20558         motorola)
20559           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20560           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20561         ;;
20562       esac
20563       runpath_var='LD_RUN_PATH'
20564       hardcode_shlibpath_var_GCJ=no
20565       ;;
20566
20567     sysv4.3*)
20568       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20569       hardcode_shlibpath_var_GCJ=no
20570       export_dynamic_flag_spec_GCJ='-Bexport'
20571       ;;
20572
20573     sysv4*MP*)
20574       if test -d /usr/nec; then
20575         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20576         hardcode_shlibpath_var_GCJ=no
20577         runpath_var=LD_RUN_PATH
20578         hardcode_runpath_var=yes
20579         ld_shlibs_GCJ=yes
20580       fi
20581       ;;
20582
20583     sysv4.2uw2*)
20584       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20585       hardcode_direct_GCJ=yes
20586       hardcode_minus_L_GCJ=no
20587       hardcode_shlibpath_var_GCJ=no
20588       hardcode_runpath_var=yes
20589       runpath_var=LD_RUN_PATH
20590       ;;
20591
20592    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
20593       no_undefined_flag_GCJ='${wl}-z ${wl}text'
20594       if test "$GCC" = yes; then
20595         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20596       else
20597         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20598       fi
20599       runpath_var='LD_RUN_PATH'
20600       hardcode_shlibpath_var_GCJ=no
20601       ;;
20602
20603     sysv5*)
20604       no_undefined_flag_GCJ=' -z text'
20605       # $CC -shared without GNU ld will not create a library from C++
20606       # object files and a static libstdc++, better avoid it by now
20607       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20608       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20609                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20610       hardcode_libdir_flag_spec_GCJ=
20611       hardcode_shlibpath_var_GCJ=no
20612       runpath_var='LD_RUN_PATH'
20613       ;;
20614
20615     uts4*)
20616       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20617       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20618       hardcode_shlibpath_var_GCJ=no
20619       ;;
20620
20621     *)
20622       ld_shlibs_GCJ=no
20623       ;;
20624     esac
20625   fi
20626
20627 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20628 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
20629 test "$ld_shlibs_GCJ" = no && can_build_shared=no
20630
20631 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20632 if test "$GCC" = yes; then
20633   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20634 fi
20635
20636 #
20637 # Do we need to explicitly link libc?
20638 #
20639 case "x$archive_cmds_need_lc_GCJ" in
20640 x|xyes)
20641   # Assume -lc should be added
20642   archive_cmds_need_lc_GCJ=yes
20643
20644   if test "$enable_shared" = yes && test "$GCC" = yes; then
20645     case $archive_cmds_GCJ in
20646     *'~'*)
20647       # FIXME: we may have to deal with multi-command sequences.
20648       ;;
20649     '$CC '*)
20650       # Test whether the compiler implicitly links with -lc since on some
20651       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20652       # to ld, don't add -lc before -lgcc.
20653       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20654 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20655       $rm conftest*
20656       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20657
20658       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20659   (eval $ac_compile) 2>&5
20660   ac_status=$?
20661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662   (exit $ac_status); } 2>conftest.err; then
20663         soname=conftest
20664         lib=conftest
20665         libobjs=conftest.$ac_objext
20666         deplibs=
20667         wl=$lt_prog_compiler_wl_GCJ
20668         compiler_flags=-v
20669         linker_flags=-v
20670         verstring=
20671         output_objdir=.
20672         libname=conftest
20673         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20674         allow_undefined_flag_GCJ=
20675         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20676   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20677   ac_status=$?
20678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679   (exit $ac_status); }
20680         then
20681           archive_cmds_need_lc_GCJ=no
20682         else
20683           archive_cmds_need_lc_GCJ=yes
20684         fi
20685         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20686       else
20687         cat conftest.err 1>&5
20688       fi
20689       $rm conftest*
20690       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20691 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
20692       ;;
20693     esac
20694   fi
20695   ;;
20696 esac
20697
20698 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20699 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20700 library_names_spec=
20701 libname_spec='lib$name'
20702 soname_spec=
20703 shrext_cmds=".so"
20704 postinstall_cmds=
20705 postuninstall_cmds=
20706 finish_cmds=
20707 finish_eval=
20708 shlibpath_var=
20709 shlibpath_overrides_runpath=unknown
20710 version_type=none
20711 dynamic_linker="$host_os ld.so"
20712 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20713 if test "$GCC" = yes; then
20714   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20715   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20716     # if the path contains ";" then we assume it to be the separator
20717     # otherwise default to the standard path separator (i.e. ":") - it is
20718     # assumed that no part of a normal pathname contains ";" but that should
20719     # okay in the real world where ";" in dirpaths is itself problematic.
20720     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20721   else
20722     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20723   fi
20724 else
20725   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20726 fi
20727 need_lib_prefix=unknown
20728 hardcode_into_libs=no
20729
20730 # when you set need_version to no, make sure it does not cause -set_version
20731 # flags to be left without arguments
20732 need_version=unknown
20733
20734 case $host_os in
20735 aix3*)
20736   version_type=linux
20737   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20738   shlibpath_var=LIBPATH
20739
20740   # AIX 3 has no versioning support, so we append a major version to the name.
20741   soname_spec='${libname}${release}${shared_ext}$major'
20742   ;;
20743
20744 aix4* | aix5*)
20745   version_type=linux
20746   need_lib_prefix=no
20747   need_version=no
20748   hardcode_into_libs=yes
20749   if test "$host_cpu" = ia64; then
20750     # AIX 5 supports IA64
20751     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20752     shlibpath_var=LD_LIBRARY_PATH
20753   else
20754     # With GCC up to 2.95.x, collect2 would create an import file
20755     # for dependence libraries.  The import file would start with
20756     # the line `#! .'.  This would cause the generated library to
20757     # depend on `.', always an invalid library.  This was fixed in
20758     # development snapshots of GCC prior to 3.0.
20759     case $host_os in
20760       aix4 | aix4.[01] | aix4.[01].*)
20761       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20762            echo ' yes '
20763            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20764         :
20765       else
20766         can_build_shared=no
20767       fi
20768       ;;
20769     esac
20770     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20771     # soname into executable. Probably we can add versioning support to
20772     # collect2, so additional links can be useful in future.
20773     if test "$aix_use_runtimelinking" = yes; then
20774       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20775       # instead of lib<name>.a to let people know that these are not
20776       # typical AIX shared libraries.
20777       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20778     else
20779       # We preserve .a as extension for shared libraries through AIX4.2
20780       # and later when we are not doing run time linking.
20781       library_names_spec='${libname}${release}.a $libname.a'
20782       soname_spec='${libname}${release}${shared_ext}$major'
20783     fi
20784     shlibpath_var=LIBPATH
20785   fi
20786   ;;
20787
20788 amigaos*)
20789   library_names_spec='$libname.ixlibrary $libname.a'
20790   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20791   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'
20792   ;;
20793
20794 beos*)
20795   library_names_spec='${libname}${shared_ext}'
20796   dynamic_linker="$host_os ld.so"
20797   shlibpath_var=LIBRARY_PATH
20798   ;;
20799
20800 bsdi[45]*)
20801   version_type=linux
20802   need_version=no
20803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20804   soname_spec='${libname}${release}${shared_ext}$major'
20805   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20806   shlibpath_var=LD_LIBRARY_PATH
20807   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20808   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20809   # the default ld.so.conf also contains /usr/contrib/lib and
20810   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20811   # libtool to hard-code these into programs
20812   ;;
20813
20814 cygwin* | mingw* | pw32*)
20815   version_type=windows
20816   shrext_cmds=".dll"
20817   need_version=no
20818   need_lib_prefix=no
20819
20820   case $GCC,$host_os in
20821   yes,cygwin* | yes,mingw* | yes,pw32*)
20822     library_names_spec='$libname.dll.a'
20823     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20824     postinstall_cmds='base_file=`basename \${file}`~
20825       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20826       dldir=$destdir/`dirname \$dlpath`~
20827       test -d \$dldir || mkdir -p \$dldir~
20828       $install_prog $dir/$dlname \$dldir/$dlname'
20829     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20830       dlpath=$dir/\$dldll~
20831        $rm \$dlpath'
20832     shlibpath_overrides_runpath=yes
20833
20834     case $host_os in
20835     cygwin*)
20836       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20837       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20838       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20839       ;;
20840     mingw*)
20841       # MinGW DLLs use traditional 'lib' prefix
20842       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20843       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20844       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20845         # It is most probably a Windows format PATH printed by
20846         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20847         # path with ; separators, and with drive letters. We can handle the
20848         # drive letters (cygwin fileutils understands them), so leave them,
20849         # especially as we might pass files found there to a mingw objdump,
20850         # which wouldn't understand a cygwinified path. Ahh.
20851         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20852       else
20853         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20854       fi
20855       ;;
20856     pw32*)
20857       # pw32 DLLs use 'pw' prefix rather than 'lib'
20858       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20859       ;;
20860     esac
20861     ;;
20862
20863   *)
20864     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20865     ;;
20866   esac
20867   dynamic_linker='Win32 ld.exe'
20868   # FIXME: first we should search . and the directory the executable is in
20869   shlibpath_var=PATH
20870   ;;
20871
20872 darwin* | rhapsody*)
20873   dynamic_linker="$host_os dyld"
20874   version_type=darwin
20875   need_lib_prefix=no
20876   need_version=no
20877   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20878   soname_spec='${libname}${release}${major}$shared_ext'
20879   shlibpath_overrides_runpath=yes
20880   shlibpath_var=DYLD_LIBRARY_PATH
20881   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20882   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20883   if test "$GCC" = yes; then
20884     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"`
20885   else
20886     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20887   fi
20888   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20889   ;;
20890
20891 dgux*)
20892   version_type=linux
20893   need_lib_prefix=no
20894   need_version=no
20895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20896   soname_spec='${libname}${release}${shared_ext}$major'
20897   shlibpath_var=LD_LIBRARY_PATH
20898   ;;
20899
20900 freebsd1*)
20901   dynamic_linker=no
20902   ;;
20903
20904 kfreebsd*-gnu)
20905   version_type=linux
20906   need_lib_prefix=no
20907   need_version=no
20908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20909   soname_spec='${libname}${release}${shared_ext}$major'
20910   shlibpath_var=LD_LIBRARY_PATH
20911   shlibpath_overrides_runpath=no
20912   hardcode_into_libs=yes
20913   dynamic_linker='GNU ld.so'
20914   ;;
20915
20916 freebsd*)
20917   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20918   version_type=freebsd-$objformat
20919   case $version_type in
20920     freebsd-elf*)
20921       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20922       need_version=no
20923       need_lib_prefix=no
20924       ;;
20925     freebsd-*)
20926       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20927       need_version=yes
20928       ;;
20929   esac
20930   shlibpath_var=LD_LIBRARY_PATH
20931   case $host_os in
20932   freebsd2*)
20933     shlibpath_overrides_runpath=yes
20934     ;;
20935   freebsd3.01* | freebsdelf3.01*)
20936     shlibpath_overrides_runpath=yes
20937     hardcode_into_libs=yes
20938     ;;
20939   *) # from 3.2 on
20940     shlibpath_overrides_runpath=no
20941     hardcode_into_libs=yes
20942     ;;
20943   esac
20944   ;;
20945
20946 gnu*)
20947   version_type=linux
20948   need_lib_prefix=no
20949   need_version=no
20950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20951   soname_spec='${libname}${release}${shared_ext}$major'
20952   shlibpath_var=LD_LIBRARY_PATH
20953   hardcode_into_libs=yes
20954   ;;
20955
20956 hpux9* | hpux10* | hpux11*)
20957   # Give a soname corresponding to the major version so that dld.sl refuses to
20958   # link against other versions.
20959   version_type=sunos
20960   need_lib_prefix=no
20961   need_version=no
20962   case "$host_cpu" in
20963   ia64*)
20964     shrext_cmds='.so'
20965     hardcode_into_libs=yes
20966     dynamic_linker="$host_os dld.so"
20967     shlibpath_var=LD_LIBRARY_PATH
20968     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20970     soname_spec='${libname}${release}${shared_ext}$major'
20971     if test "X$HPUX_IA64_MODE" = X32; then
20972       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20973     else
20974       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20975     fi
20976     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20977     ;;
20978    hppa*64*)
20979      shrext_cmds='.sl'
20980      hardcode_into_libs=yes
20981      dynamic_linker="$host_os dld.sl"
20982      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20983      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20984      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20985      soname_spec='${libname}${release}${shared_ext}$major'
20986      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20987      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20988      ;;
20989    *)
20990     shrext_cmds='.sl'
20991     dynamic_linker="$host_os dld.sl"
20992     shlibpath_var=SHLIB_PATH
20993     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20994     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20995     soname_spec='${libname}${release}${shared_ext}$major'
20996     ;;
20997   esac
20998   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20999   postinstall_cmds='chmod 555 $lib'
21000   ;;
21001
21002 irix5* | irix6* | nonstopux*)
21003   case $host_os in
21004     nonstopux*) version_type=nonstopux ;;
21005     *)
21006         if test "$lt_cv_prog_gnu_ld" = yes; then
21007                 version_type=linux
21008         else
21009                 version_type=irix
21010         fi ;;
21011   esac
21012   need_lib_prefix=no
21013   need_version=no
21014   soname_spec='${libname}${release}${shared_ext}$major'
21015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21016   case $host_os in
21017   irix5* | nonstopux*)
21018     libsuff= shlibsuff=
21019     ;;
21020   *)
21021     case $LD in # libtool.m4 will add one of these switches to LD
21022     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21023       libsuff= shlibsuff= libmagic=32-bit;;
21024     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21025       libsuff=32 shlibsuff=N32 libmagic=N32;;
21026     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21027       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21028     *) libsuff= shlibsuff= libmagic=never-match;;
21029     esac
21030     ;;
21031   esac
21032   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21033   shlibpath_overrides_runpath=no
21034   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21035   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21036   hardcode_into_libs=yes
21037   ;;
21038
21039 # No shared lib support for Linux oldld, aout, or coff.
21040 linux*oldld* | linux*aout* | linux*coff*)
21041   dynamic_linker=no
21042   ;;
21043
21044 # This must be Linux ELF.
21045 linux*)
21046   version_type=linux
21047   need_lib_prefix=no
21048   need_version=no
21049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21050   soname_spec='${libname}${release}${shared_ext}$major'
21051   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21052   shlibpath_var=LD_LIBRARY_PATH
21053   shlibpath_overrides_runpath=no
21054   # This implies no fast_install, which is unacceptable.
21055   # Some rework will be needed to allow for fast_install
21056   # before this can be enabled.
21057   hardcode_into_libs=yes
21058
21059   # Append ld.so.conf contents to the search path
21060   if test -f /etc/ld.so.conf; then
21061     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
21062     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21063   fi
21064
21065   # We used to test for /lib/ld.so.1 and disable shared libraries on
21066   # powerpc, because MkLinux only supported shared libraries with the
21067   # GNU dynamic linker.  Since this was broken with cross compilers,
21068   # most powerpc-linux boxes support dynamic linking these days and
21069   # people can always --disable-shared, the test was removed, and we
21070   # assume the GNU/Linux dynamic linker is in use.
21071   dynamic_linker='GNU/Linux ld.so'
21072   ;;
21073
21074 knetbsd*-gnu)
21075   version_type=linux
21076   need_lib_prefix=no
21077   need_version=no
21078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21079   soname_spec='${libname}${release}${shared_ext}$major'
21080   shlibpath_var=LD_LIBRARY_PATH
21081   shlibpath_overrides_runpath=no
21082   hardcode_into_libs=yes
21083   dynamic_linker='GNU ld.so'
21084   ;;
21085
21086 netbsd*)
21087   version_type=sunos
21088   need_lib_prefix=no
21089   need_version=no
21090   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21091     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21092     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21093     dynamic_linker='NetBSD (a.out) ld.so'
21094   else
21095     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21096     soname_spec='${libname}${release}${shared_ext}$major'
21097     dynamic_linker='NetBSD ld.elf_so'
21098   fi
21099   shlibpath_var=LD_LIBRARY_PATH
21100   shlibpath_overrides_runpath=yes
21101   hardcode_into_libs=yes
21102   ;;
21103
21104 newsos6)
21105   version_type=linux
21106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21107   shlibpath_var=LD_LIBRARY_PATH
21108   shlibpath_overrides_runpath=yes
21109   ;;
21110
21111 nto-qnx*)
21112   version_type=linux
21113   need_lib_prefix=no
21114   need_version=no
21115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21116   soname_spec='${libname}${release}${shared_ext}$major'
21117   shlibpath_var=LD_LIBRARY_PATH
21118   shlibpath_overrides_runpath=yes
21119   ;;
21120
21121 openbsd*)
21122   version_type=sunos
21123   need_lib_prefix=no
21124   need_version=no
21125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21126   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21127   shlibpath_var=LD_LIBRARY_PATH
21128   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21129     case $host_os in
21130       openbsd2.[89] | openbsd2.[89].*)
21131         shlibpath_overrides_runpath=no
21132         ;;
21133       *)
21134         shlibpath_overrides_runpath=yes
21135         ;;
21136       esac
21137   else
21138     shlibpath_overrides_runpath=yes
21139   fi
21140   ;;
21141
21142 os2*)
21143   libname_spec='$name'
21144   shrext_cmds=".dll"
21145   need_lib_prefix=no
21146   library_names_spec='$libname${shared_ext} $libname.a'
21147   dynamic_linker='OS/2 ld.exe'
21148   shlibpath_var=LIBPATH
21149   ;;
21150
21151 osf3* | osf4* | osf5*)
21152   version_type=osf
21153   need_lib_prefix=no
21154   need_version=no
21155   soname_spec='${libname}${release}${shared_ext}$major'
21156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21157   shlibpath_var=LD_LIBRARY_PATH
21158   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21159   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21160   ;;
21161
21162 sco3.2v5*)
21163   version_type=osf
21164   soname_spec='${libname}${release}${shared_ext}$major'
21165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21166   shlibpath_var=LD_LIBRARY_PATH
21167   ;;
21168
21169 solaris*)
21170   version_type=linux
21171   need_lib_prefix=no
21172   need_version=no
21173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21174   soname_spec='${libname}${release}${shared_ext}$major'
21175   shlibpath_var=LD_LIBRARY_PATH
21176   shlibpath_overrides_runpath=yes
21177   hardcode_into_libs=yes
21178   # ldd complains unless libraries are executable
21179   postinstall_cmds='chmod +x $lib'
21180   ;;
21181
21182 sunos4*)
21183   version_type=sunos
21184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21185   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21186   shlibpath_var=LD_LIBRARY_PATH
21187   shlibpath_overrides_runpath=yes
21188   if test "$with_gnu_ld" = yes; then
21189     need_lib_prefix=no
21190   fi
21191   need_version=yes
21192   ;;
21193
21194 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21195   version_type=linux
21196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21197   soname_spec='${libname}${release}${shared_ext}$major'
21198   shlibpath_var=LD_LIBRARY_PATH
21199   case $host_vendor in
21200     sni)
21201       shlibpath_overrides_runpath=no
21202       need_lib_prefix=no
21203       export_dynamic_flag_spec='${wl}-Blargedynsym'
21204       runpath_var=LD_RUN_PATH
21205       ;;
21206     siemens)
21207       need_lib_prefix=no
21208       ;;
21209     motorola)
21210       need_lib_prefix=no
21211       need_version=no
21212       shlibpath_overrides_runpath=no
21213       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21214       ;;
21215   esac
21216   ;;
21217
21218 sysv4*MP*)
21219   if test -d /usr/nec ;then
21220     version_type=linux
21221     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21222     soname_spec='$libname${shared_ext}.$major'
21223     shlibpath_var=LD_LIBRARY_PATH
21224   fi
21225   ;;
21226
21227 uts4*)
21228   version_type=linux
21229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21230   soname_spec='${libname}${release}${shared_ext}$major'
21231   shlibpath_var=LD_LIBRARY_PATH
21232   ;;
21233
21234 *)
21235   dynamic_linker=no
21236   ;;
21237 esac
21238 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21239 echo "${ECHO_T}$dynamic_linker" >&6
21240 test "$dynamic_linker" = no && can_build_shared=no
21241
21242 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21243 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21244 hardcode_action_GCJ=
21245 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21246    test -n "$runpath_var_GCJ" || \
21247    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
21248
21249   # We can hardcode non-existant directories.
21250   if test "$hardcode_direct_GCJ" != no &&
21251      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21252      # have to relink, otherwise we might link with an installed library
21253      # when we should be linking with a yet-to-be-installed one
21254      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21255      test "$hardcode_minus_L_GCJ" != no; then
21256     # Linking always hardcodes the temporary library directory.
21257     hardcode_action_GCJ=relink
21258   else
21259     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21260     hardcode_action_GCJ=immediate
21261   fi
21262 else
21263   # We cannot hardcode anything, or else we can only hardcode existing
21264   # directories.
21265   hardcode_action_GCJ=unsupported
21266 fi
21267 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
21268 echo "${ECHO_T}$hardcode_action_GCJ" >&6
21269
21270 if test "$hardcode_action_GCJ" = relink; then
21271   # Fast installation is not supported
21272   enable_fast_install=no
21273 elif test "$shlibpath_overrides_runpath" = yes ||
21274      test "$enable_shared" = no; then
21275   # Fast installation is not necessary
21276   enable_fast_install=needless
21277 fi
21278
21279 striplib=
21280 old_striplib=
21281 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21282 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21283 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21284   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21285   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21286   echo "$as_me:$LINENO: result: yes" >&5
21287 echo "${ECHO_T}yes" >&6
21288 else
21289 # FIXME - insert some real tests, host_os isn't really good enough
21290   case $host_os in
21291    darwin*)
21292        if test -n "$STRIP" ; then
21293          striplib="$STRIP -x"
21294          echo "$as_me:$LINENO: result: yes" >&5
21295 echo "${ECHO_T}yes" >&6
21296        else
21297   echo "$as_me:$LINENO: result: no" >&5
21298 echo "${ECHO_T}no" >&6
21299 fi
21300        ;;
21301    *)
21302   echo "$as_me:$LINENO: result: no" >&5
21303 echo "${ECHO_T}no" >&6
21304     ;;
21305   esac
21306 fi
21307
21308 if test "x$enable_dlopen" != xyes; then
21309   enable_dlopen=unknown
21310   enable_dlopen_self=unknown
21311   enable_dlopen_self_static=unknown
21312 else
21313   lt_cv_dlopen=no
21314   lt_cv_dlopen_libs=
21315
21316   case $host_os in
21317   beos*)
21318     lt_cv_dlopen="load_add_on"
21319     lt_cv_dlopen_libs=
21320     lt_cv_dlopen_self=yes
21321     ;;
21322
21323   mingw* | pw32*)
21324     lt_cv_dlopen="LoadLibrary"
21325     lt_cv_dlopen_libs=
21326    ;;
21327
21328   cygwin*)
21329     lt_cv_dlopen="dlopen"
21330     lt_cv_dlopen_libs=
21331    ;;
21332
21333   darwin*)
21334   # if libdl is installed we need to link against it
21335     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21336 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21337 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21338   echo $ECHO_N "(cached) $ECHO_C" >&6
21339 else
21340   ac_check_lib_save_LIBS=$LIBS
21341 LIBS="-ldl  $LIBS"
21342 cat >conftest.$ac_ext <<_ACEOF
21343 /* confdefs.h.  */
21344 _ACEOF
21345 cat confdefs.h >>conftest.$ac_ext
21346 cat >>conftest.$ac_ext <<_ACEOF
21347 /* end confdefs.h.  */
21348
21349 /* Override any gcc2 internal prototype to avoid an error.  */
21350 #ifdef __cplusplus
21351 extern "C"
21352 #endif
21353 /* We use char because int might match the return type of a gcc2
21354    builtin and then its argument prototype would still apply.  */
21355 char dlopen ();
21356 int
21357 main ()
21358 {
21359 dlopen ();
21360   ;
21361   return 0;
21362 }
21363 _ACEOF
21364 rm -f conftest.$ac_objext conftest$ac_exeext
21365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21366   (eval $ac_link) 2>conftest.er1
21367   ac_status=$?
21368   grep -v '^ *+' conftest.er1 >conftest.err
21369   rm -f conftest.er1
21370   cat conftest.err >&5
21371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372   (exit $ac_status); } &&
21373          { ac_try='test -z "$ac_c_werror_flag"
21374                          || test ! -s conftest.err'
21375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376   (eval $ac_try) 2>&5
21377   ac_status=$?
21378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379   (exit $ac_status); }; } &&
21380          { ac_try='test -s conftest$ac_exeext'
21381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21382   (eval $ac_try) 2>&5
21383   ac_status=$?
21384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385   (exit $ac_status); }; }; then
21386   ac_cv_lib_dl_dlopen=yes
21387 else
21388   echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21390
21391 ac_cv_lib_dl_dlopen=no
21392 fi
21393 rm -f conftest.err conftest.$ac_objext \
21394       conftest$ac_exeext conftest.$ac_ext
21395 LIBS=$ac_check_lib_save_LIBS
21396 fi
21397 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21398 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21399 if test $ac_cv_lib_dl_dlopen = yes; then
21400   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21401 else
21402
21403     lt_cv_dlopen="dyld"
21404     lt_cv_dlopen_libs=
21405     lt_cv_dlopen_self=yes
21406
21407 fi
21408
21409    ;;
21410
21411   *)
21412     echo "$as_me:$LINENO: checking for shl_load" >&5
21413 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
21414 if test "${ac_cv_func_shl_load+set}" = set; then
21415   echo $ECHO_N "(cached) $ECHO_C" >&6
21416 else
21417   cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h.  */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h.  */
21423 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
21424    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21425 #define shl_load innocuous_shl_load
21426
21427 /* System header to define __stub macros and hopefully few prototypes,
21428     which can conflict with char shl_load (); below.
21429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21430     <limits.h> exists even on freestanding compilers.  */
21431
21432 #ifdef __STDC__
21433 # include <limits.h>
21434 #else
21435 # include <assert.h>
21436 #endif
21437
21438 #undef shl_load
21439
21440 /* Override any gcc2 internal prototype to avoid an error.  */
21441 #ifdef __cplusplus
21442 extern "C"
21443 {
21444 #endif
21445 /* We use char because int might match the return type of a gcc2
21446    builtin and then its argument prototype would still apply.  */
21447 char shl_load ();
21448 /* The GNU C library defines this for functions which it implements
21449     to always fail with ENOSYS.  Some functions are actually named
21450     something starting with __ and the normal name is an alias.  */
21451 #if defined (__stub_shl_load) || defined (__stub___shl_load)
21452 choke me
21453 #else
21454 char (*f) () = shl_load;
21455 #endif
21456 #ifdef __cplusplus
21457 }
21458 #endif
21459
21460 int
21461 main ()
21462 {
21463 return f != shl_load;
21464   ;
21465   return 0;
21466 }
21467 _ACEOF
21468 rm -f conftest.$ac_objext conftest$ac_exeext
21469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21470   (eval $ac_link) 2>conftest.er1
21471   ac_status=$?
21472   grep -v '^ *+' conftest.er1 >conftest.err
21473   rm -f conftest.er1
21474   cat conftest.err >&5
21475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476   (exit $ac_status); } &&
21477          { ac_try='test -z "$ac_c_werror_flag"
21478                          || test ! -s conftest.err'
21479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21480   (eval $ac_try) 2>&5
21481   ac_status=$?
21482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483   (exit $ac_status); }; } &&
21484          { ac_try='test -s conftest$ac_exeext'
21485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21486   (eval $ac_try) 2>&5
21487   ac_status=$?
21488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489   (exit $ac_status); }; }; then
21490   ac_cv_func_shl_load=yes
21491 else
21492   echo "$as_me: failed program was:" >&5
21493 sed 's/^/| /' conftest.$ac_ext >&5
21494
21495 ac_cv_func_shl_load=no
21496 fi
21497 rm -f conftest.err conftest.$ac_objext \
21498       conftest$ac_exeext conftest.$ac_ext
21499 fi
21500 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
21501 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
21502 if test $ac_cv_func_shl_load = yes; then
21503   lt_cv_dlopen="shl_load"
21504 else
21505   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
21506 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
21507 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
21508   echo $ECHO_N "(cached) $ECHO_C" >&6
21509 else
21510   ac_check_lib_save_LIBS=$LIBS
21511 LIBS="-ldld  $LIBS"
21512 cat >conftest.$ac_ext <<_ACEOF
21513 /* confdefs.h.  */
21514 _ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h.  */
21518
21519 /* Override any gcc2 internal prototype to avoid an error.  */
21520 #ifdef __cplusplus
21521 extern "C"
21522 #endif
21523 /* We use char because int might match the return type of a gcc2
21524    builtin and then its argument prototype would still apply.  */
21525 char shl_load ();
21526 int
21527 main ()
21528 {
21529 shl_load ();
21530   ;
21531   return 0;
21532 }
21533 _ACEOF
21534 rm -f conftest.$ac_objext conftest$ac_exeext
21535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21536   (eval $ac_link) 2>conftest.er1
21537   ac_status=$?
21538   grep -v '^ *+' conftest.er1 >conftest.err
21539   rm -f conftest.er1
21540   cat conftest.err >&5
21541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542   (exit $ac_status); } &&
21543          { ac_try='test -z "$ac_c_werror_flag"
21544                          || test ! -s conftest.err'
21545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21546   (eval $ac_try) 2>&5
21547   ac_status=$?
21548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549   (exit $ac_status); }; } &&
21550          { ac_try='test -s conftest$ac_exeext'
21551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21552   (eval $ac_try) 2>&5
21553   ac_status=$?
21554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555   (exit $ac_status); }; }; then
21556   ac_cv_lib_dld_shl_load=yes
21557 else
21558   echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21560
21561 ac_cv_lib_dld_shl_load=no
21562 fi
21563 rm -f conftest.err conftest.$ac_objext \
21564       conftest$ac_exeext conftest.$ac_ext
21565 LIBS=$ac_check_lib_save_LIBS
21566 fi
21567 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
21568 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
21569 if test $ac_cv_lib_dld_shl_load = yes; then
21570   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
21571 else
21572   echo "$as_me:$LINENO: checking for dlopen" >&5
21573 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
21574 if test "${ac_cv_func_dlopen+set}" = set; then
21575   echo $ECHO_N "(cached) $ECHO_C" >&6
21576 else
21577   cat >conftest.$ac_ext <<_ACEOF
21578 /* confdefs.h.  */
21579 _ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h.  */
21583 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
21584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21585 #define dlopen innocuous_dlopen
21586
21587 /* System header to define __stub macros and hopefully few prototypes,
21588     which can conflict with char dlopen (); below.
21589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21590     <limits.h> exists even on freestanding compilers.  */
21591
21592 #ifdef __STDC__
21593 # include <limits.h>
21594 #else
21595 # include <assert.h>
21596 #endif
21597
21598 #undef dlopen
21599
21600 /* Override any gcc2 internal prototype to avoid an error.  */
21601 #ifdef __cplusplus
21602 extern "C"
21603 {
21604 #endif
21605 /* We use char because int might match the return type of a gcc2
21606    builtin and then its argument prototype would still apply.  */
21607 char dlopen ();
21608 /* The GNU C library defines this for functions which it implements
21609     to always fail with ENOSYS.  Some functions are actually named
21610     something starting with __ and the normal name is an alias.  */
21611 #if defined (__stub_dlopen) || defined (__stub___dlopen)
21612 choke me
21613 #else
21614 char (*f) () = dlopen;
21615 #endif
21616 #ifdef __cplusplus
21617 }
21618 #endif
21619
21620 int
21621 main ()
21622 {
21623 return f != dlopen;
21624   ;
21625   return 0;
21626 }
21627 _ACEOF
21628 rm -f conftest.$ac_objext conftest$ac_exeext
21629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21630   (eval $ac_link) 2>conftest.er1
21631   ac_status=$?
21632   grep -v '^ *+' conftest.er1 >conftest.err
21633   rm -f conftest.er1
21634   cat conftest.err >&5
21635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636   (exit $ac_status); } &&
21637          { ac_try='test -z "$ac_c_werror_flag"
21638                          || test ! -s conftest.err'
21639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640   (eval $ac_try) 2>&5
21641   ac_status=$?
21642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643   (exit $ac_status); }; } &&
21644          { ac_try='test -s conftest$ac_exeext'
21645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646   (eval $ac_try) 2>&5
21647   ac_status=$?
21648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649   (exit $ac_status); }; }; then
21650   ac_cv_func_dlopen=yes
21651 else
21652   echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21654
21655 ac_cv_func_dlopen=no
21656 fi
21657 rm -f conftest.err conftest.$ac_objext \
21658       conftest$ac_exeext conftest.$ac_ext
21659 fi
21660 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
21661 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
21662 if test $ac_cv_func_dlopen = yes; then
21663   lt_cv_dlopen="dlopen"
21664 else
21665   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21666 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21667 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21668   echo $ECHO_N "(cached) $ECHO_C" >&6
21669 else
21670   ac_check_lib_save_LIBS=$LIBS
21671 LIBS="-ldl  $LIBS"
21672 cat >conftest.$ac_ext <<_ACEOF
21673 /* confdefs.h.  */
21674 _ACEOF
21675 cat confdefs.h >>conftest.$ac_ext
21676 cat >>conftest.$ac_ext <<_ACEOF
21677 /* end confdefs.h.  */
21678
21679 /* Override any gcc2 internal prototype to avoid an error.  */
21680 #ifdef __cplusplus
21681 extern "C"
21682 #endif
21683 /* We use char because int might match the return type of a gcc2
21684    builtin and then its argument prototype would still apply.  */
21685 char dlopen ();
21686 int
21687 main ()
21688 {
21689 dlopen ();
21690   ;
21691   return 0;
21692 }
21693 _ACEOF
21694 rm -f conftest.$ac_objext conftest$ac_exeext
21695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21696   (eval $ac_link) 2>conftest.er1
21697   ac_status=$?
21698   grep -v '^ *+' conftest.er1 >conftest.err
21699   rm -f conftest.er1
21700   cat conftest.err >&5
21701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702   (exit $ac_status); } &&
21703          { ac_try='test -z "$ac_c_werror_flag"
21704                          || test ! -s conftest.err'
21705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21706   (eval $ac_try) 2>&5
21707   ac_status=$?
21708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709   (exit $ac_status); }; } &&
21710          { ac_try='test -s conftest$ac_exeext'
21711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21712   (eval $ac_try) 2>&5
21713   ac_status=$?
21714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715   (exit $ac_status); }; }; then
21716   ac_cv_lib_dl_dlopen=yes
21717 else
21718   echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21720
21721 ac_cv_lib_dl_dlopen=no
21722 fi
21723 rm -f conftest.err conftest.$ac_objext \
21724       conftest$ac_exeext conftest.$ac_ext
21725 LIBS=$ac_check_lib_save_LIBS
21726 fi
21727 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21728 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21729 if test $ac_cv_lib_dl_dlopen = yes; then
21730   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21731 else
21732   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
21733 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
21734 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
21735   echo $ECHO_N "(cached) $ECHO_C" >&6
21736 else
21737   ac_check_lib_save_LIBS=$LIBS
21738 LIBS="-lsvld  $LIBS"
21739 cat >conftest.$ac_ext <<_ACEOF
21740 /* confdefs.h.  */
21741 _ACEOF
21742 cat confdefs.h >>conftest.$ac_ext
21743 cat >>conftest.$ac_ext <<_ACEOF
21744 /* end confdefs.h.  */
21745
21746 /* Override any gcc2 internal prototype to avoid an error.  */
21747 #ifdef __cplusplus
21748 extern "C"
21749 #endif
21750 /* We use char because int might match the return type of a gcc2
21751    builtin and then its argument prototype would still apply.  */
21752 char dlopen ();
21753 int
21754 main ()
21755 {
21756 dlopen ();
21757   ;
21758   return 0;
21759 }
21760 _ACEOF
21761 rm -f conftest.$ac_objext conftest$ac_exeext
21762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21763   (eval $ac_link) 2>conftest.er1
21764   ac_status=$?
21765   grep -v '^ *+' conftest.er1 >conftest.err
21766   rm -f conftest.er1
21767   cat conftest.err >&5
21768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769   (exit $ac_status); } &&
21770          { ac_try='test -z "$ac_c_werror_flag"
21771                          || test ! -s conftest.err'
21772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21773   (eval $ac_try) 2>&5
21774   ac_status=$?
21775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776   (exit $ac_status); }; } &&
21777          { ac_try='test -s conftest$ac_exeext'
21778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21779   (eval $ac_try) 2>&5
21780   ac_status=$?
21781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782   (exit $ac_status); }; }; then
21783   ac_cv_lib_svld_dlopen=yes
21784 else
21785   echo "$as_me: failed program was:" >&5
21786 sed 's/^/| /' conftest.$ac_ext >&5
21787
21788 ac_cv_lib_svld_dlopen=no
21789 fi
21790 rm -f conftest.err conftest.$ac_objext \
21791       conftest$ac_exeext conftest.$ac_ext
21792 LIBS=$ac_check_lib_save_LIBS
21793 fi
21794 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21795 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
21796 if test $ac_cv_lib_svld_dlopen = yes; then
21797   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21798 else
21799   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21800 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
21801 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21802   echo $ECHO_N "(cached) $ECHO_C" >&6
21803 else
21804   ac_check_lib_save_LIBS=$LIBS
21805 LIBS="-ldld  $LIBS"
21806 cat >conftest.$ac_ext <<_ACEOF
21807 /* confdefs.h.  */
21808 _ACEOF
21809 cat confdefs.h >>conftest.$ac_ext
21810 cat >>conftest.$ac_ext <<_ACEOF
21811 /* end confdefs.h.  */
21812
21813 /* Override any gcc2 internal prototype to avoid an error.  */
21814 #ifdef __cplusplus
21815 extern "C"
21816 #endif
21817 /* We use char because int might match the return type of a gcc2
21818    builtin and then its argument prototype would still apply.  */
21819 char dld_link ();
21820 int
21821 main ()
21822 {
21823 dld_link ();
21824   ;
21825   return 0;
21826 }
21827 _ACEOF
21828 rm -f conftest.$ac_objext conftest$ac_exeext
21829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21830   (eval $ac_link) 2>conftest.er1
21831   ac_status=$?
21832   grep -v '^ *+' conftest.er1 >conftest.err
21833   rm -f conftest.er1
21834   cat conftest.err >&5
21835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836   (exit $ac_status); } &&
21837          { ac_try='test -z "$ac_c_werror_flag"
21838                          || test ! -s conftest.err'
21839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21840   (eval $ac_try) 2>&5
21841   ac_status=$?
21842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843   (exit $ac_status); }; } &&
21844          { ac_try='test -s conftest$ac_exeext'
21845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846   (eval $ac_try) 2>&5
21847   ac_status=$?
21848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849   (exit $ac_status); }; }; then
21850   ac_cv_lib_dld_dld_link=yes
21851 else
21852   echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21854
21855 ac_cv_lib_dld_dld_link=no
21856 fi
21857 rm -f conftest.err conftest.$ac_objext \
21858       conftest$ac_exeext conftest.$ac_ext
21859 LIBS=$ac_check_lib_save_LIBS
21860 fi
21861 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21862 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
21863 if test $ac_cv_lib_dld_dld_link = yes; then
21864   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
21865 fi
21866
21867
21868 fi
21869
21870
21871 fi
21872
21873
21874 fi
21875
21876
21877 fi
21878
21879
21880 fi
21881
21882     ;;
21883   esac
21884
21885   if test "x$lt_cv_dlopen" != xno; then
21886     enable_dlopen=yes
21887   else
21888     enable_dlopen=no
21889   fi
21890
21891   case $lt_cv_dlopen in
21892   dlopen)
21893     save_CPPFLAGS="$CPPFLAGS"
21894     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21895
21896     save_LDFLAGS="$LDFLAGS"
21897     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21898
21899     save_LIBS="$LIBS"
21900     LIBS="$lt_cv_dlopen_libs $LIBS"
21901
21902     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
21903 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
21904 if test "${lt_cv_dlopen_self+set}" = set; then
21905   echo $ECHO_N "(cached) $ECHO_C" >&6
21906 else
21907           if test "$cross_compiling" = yes; then :
21908   lt_cv_dlopen_self=cross
21909 else
21910   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21911   lt_status=$lt_dlunknown
21912   cat > conftest.$ac_ext <<EOF
21913 #line 21913 "configure"
21914 #include "confdefs.h"
21915
21916 #if HAVE_DLFCN_H
21917 #include <dlfcn.h>
21918 #endif
21919
21920 #include <stdio.h>
21921
21922 #ifdef RTLD_GLOBAL
21923 #  define LT_DLGLOBAL           RTLD_GLOBAL
21924 #else
21925 #  ifdef DL_GLOBAL
21926 #    define LT_DLGLOBAL         DL_GLOBAL
21927 #  else
21928 #    define LT_DLGLOBAL         0
21929 #  endif
21930 #endif
21931
21932 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21933    find out it does not work in some platform. */
21934 #ifndef LT_DLLAZY_OR_NOW
21935 #  ifdef RTLD_LAZY
21936 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
21937 #  else
21938 #    ifdef DL_LAZY
21939 #      define LT_DLLAZY_OR_NOW          DL_LAZY
21940 #    else
21941 #      ifdef RTLD_NOW
21942 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
21943 #      else
21944 #        ifdef DL_NOW
21945 #          define LT_DLLAZY_OR_NOW      DL_NOW
21946 #        else
21947 #          define LT_DLLAZY_OR_NOW      0
21948 #        endif
21949 #      endif
21950 #    endif
21951 #  endif
21952 #endif
21953
21954 #ifdef __cplusplus
21955 extern "C" void exit (int);
21956 #endif
21957
21958 void fnord() { int i=42;}
21959 int main ()
21960 {
21961   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21962   int status = $lt_dlunknown;
21963
21964   if (self)
21965     {
21966       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21967       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21968       /* dlclose (self); */
21969     }
21970
21971     exit (status);
21972 }
21973 EOF
21974   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21975   (eval $ac_link) 2>&5
21976   ac_status=$?
21977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21979     (./conftest; exit; ) 2>/dev/null
21980     lt_status=$?
21981     case x$lt_status in
21982       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21983       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21984       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
21985     esac
21986   else :
21987     # compilation failed
21988     lt_cv_dlopen_self=no
21989   fi
21990 fi
21991 rm -fr conftest*
21992
21993
21994 fi
21995 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21996 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
21997
21998     if test "x$lt_cv_dlopen_self" = xyes; then
21999       LDFLAGS="$LDFLAGS $link_static_flag"
22000       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
22001 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
22002 if test "${lt_cv_dlopen_self_static+set}" = set; then
22003   echo $ECHO_N "(cached) $ECHO_C" >&6
22004 else
22005           if test "$cross_compiling" = yes; then :
22006   lt_cv_dlopen_self_static=cross
22007 else
22008   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22009   lt_status=$lt_dlunknown
22010   cat > conftest.$ac_ext <<EOF
22011 #line 22011 "configure"
22012 #include "confdefs.h"
22013
22014 #if HAVE_DLFCN_H
22015 #include <dlfcn.h>
22016 #endif
22017
22018 #include <stdio.h>
22019
22020 #ifdef RTLD_GLOBAL
22021 #  define LT_DLGLOBAL           RTLD_GLOBAL
22022 #else
22023 #  ifdef DL_GLOBAL
22024 #    define LT_DLGLOBAL         DL_GLOBAL
22025 #  else
22026 #    define LT_DLGLOBAL         0
22027 #  endif
22028 #endif
22029
22030 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22031    find out it does not work in some platform. */
22032 #ifndef LT_DLLAZY_OR_NOW
22033 #  ifdef RTLD_LAZY
22034 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
22035 #  else
22036 #    ifdef DL_LAZY
22037 #      define LT_DLLAZY_OR_NOW          DL_LAZY
22038 #    else
22039 #      ifdef RTLD_NOW
22040 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
22041 #      else
22042 #        ifdef DL_NOW
22043 #          define LT_DLLAZY_OR_NOW      DL_NOW
22044 #        else
22045 #          define LT_DLLAZY_OR_NOW      0
22046 #        endif
22047 #      endif
22048 #    endif
22049 #  endif
22050 #endif
22051
22052 #ifdef __cplusplus
22053 extern "C" void exit (int);
22054 #endif
22055
22056 void fnord() { int i=42;}
22057 int main ()
22058 {
22059   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22060   int status = $lt_dlunknown;
22061
22062   if (self)
22063     {
22064       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
22065       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22066       /* dlclose (self); */
22067     }
22068
22069     exit (status);
22070 }
22071 EOF
22072   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22073   (eval $ac_link) 2>&5
22074   ac_status=$?
22075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
22077     (./conftest; exit; ) 2>/dev/null
22078     lt_status=$?
22079     case x$lt_status in
22080       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
22081       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
22082       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
22083     esac
22084   else :
22085     # compilation failed
22086     lt_cv_dlopen_self_static=no
22087   fi
22088 fi
22089 rm -fr conftest*
22090
22091
22092 fi
22093 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
22094 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
22095     fi
22096
22097     CPPFLAGS="$save_CPPFLAGS"
22098     LDFLAGS="$save_LDFLAGS"
22099     LIBS="$save_LIBS"
22100     ;;
22101   esac
22102
22103   case $lt_cv_dlopen_self in
22104   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
22105   *) enable_dlopen_self=unknown ;;
22106   esac
22107
22108   case $lt_cv_dlopen_self_static in
22109   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
22110   *) enable_dlopen_self_static=unknown ;;
22111   esac
22112 fi
22113
22114
22115 # The else clause should only fire when bootstrapping the
22116 # libtool distribution, otherwise you forgot to ship ltmain.sh
22117 # with your package, and you will get complaints that there are
22118 # no rules to generate ltmain.sh.
22119 if test -f "$ltmain"; then
22120   # See if we are running on zsh, and set the options which allow our commands through
22121   # without removal of \ escapes.
22122   if test -n "${ZSH_VERSION+set}" ; then
22123     setopt NO_GLOB_SUBST
22124   fi
22125   # Now quote all the things that may contain metacharacters while being
22126   # careful not to overquote the AC_SUBSTed values.  We take copies of the
22127   # variables and quote the copies for generation of the libtool script.
22128   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
22129     SED SHELL STRIP \
22130     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22131     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22132     deplibs_check_method reload_flag reload_cmds need_locks \
22133     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22134     lt_cv_sys_global_symbol_to_c_name_address \
22135     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22136     old_postinstall_cmds old_postuninstall_cmds \
22137     compiler_GCJ \
22138     CC_GCJ \
22139     LD_GCJ \
22140     lt_prog_compiler_wl_GCJ \
22141     lt_prog_compiler_pic_GCJ \
22142     lt_prog_compiler_static_GCJ \
22143     lt_prog_compiler_no_builtin_flag_GCJ \
22144     export_dynamic_flag_spec_GCJ \
22145     thread_safe_flag_spec_GCJ \
22146     whole_archive_flag_spec_GCJ \
22147     enable_shared_with_static_runtimes_GCJ \
22148     old_archive_cmds_GCJ \
22149     old_archive_from_new_cmds_GCJ \
22150     predep_objects_GCJ \
22151     postdep_objects_GCJ \
22152     predeps_GCJ \
22153     postdeps_GCJ \
22154     compiler_lib_search_path_GCJ \
22155     archive_cmds_GCJ \
22156     archive_expsym_cmds_GCJ \
22157     postinstall_cmds_GCJ \
22158     postuninstall_cmds_GCJ \
22159     old_archive_from_expsyms_cmds_GCJ \
22160     allow_undefined_flag_GCJ \
22161     no_undefined_flag_GCJ \
22162     export_symbols_cmds_GCJ \
22163     hardcode_libdir_flag_spec_GCJ \
22164     hardcode_libdir_flag_spec_ld_GCJ \
22165     hardcode_libdir_separator_GCJ \
22166     hardcode_automatic_GCJ \
22167     module_cmds_GCJ \
22168     module_expsym_cmds_GCJ \
22169     lt_cv_prog_compiler_c_o_GCJ \
22170     exclude_expsyms_GCJ \
22171     include_expsyms_GCJ; do
22172
22173     case $var in
22174     old_archive_cmds_GCJ | \
22175     old_archive_from_new_cmds_GCJ | \
22176     archive_cmds_GCJ | \
22177     archive_expsym_cmds_GCJ | \
22178     module_cmds_GCJ | \
22179     module_expsym_cmds_GCJ | \
22180     old_archive_from_expsyms_cmds_GCJ | \
22181     export_symbols_cmds_GCJ | \
22182     extract_expsyms_cmds | reload_cmds | finish_cmds | \
22183     postinstall_cmds | postuninstall_cmds | \
22184     old_postinstall_cmds | old_postuninstall_cmds | \
22185     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22186       # Double-quote double-evaled strings.
22187       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22188       ;;
22189     *)
22190       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22191       ;;
22192     esac
22193   done
22194
22195   case $lt_echo in
22196   *'\$0 --fallback-echo"')
22197     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22198     ;;
22199   esac
22200
22201 cfgfile="$ofile"
22202
22203   cat <<__EOF__ >> "$cfgfile"
22204 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22205
22206 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22207
22208 # Shell to use when invoking shell scripts.
22209 SHELL=$lt_SHELL
22210
22211 # Whether or not to build shared libraries.
22212 build_libtool_libs=$enable_shared
22213
22214 # Whether or not to build static libraries.
22215 build_old_libs=$enable_static
22216
22217 # Whether or not to add -lc for building shared libraries.
22218 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
22219
22220 # Whether or not to disallow shared libs when runtime libs are static
22221 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
22222
22223 # Whether or not to optimize for fast installation.
22224 fast_install=$enable_fast_install
22225
22226 # The host system.
22227 host_alias=$host_alias
22228 host=$host
22229
22230 # An echo program that does not interpret backslashes.
22231 echo=$lt_echo
22232
22233 # The archiver.
22234 AR=$lt_AR
22235 AR_FLAGS=$lt_AR_FLAGS
22236
22237 # A C compiler.
22238 LTCC=$lt_LTCC
22239
22240 # A language-specific compiler.
22241 CC=$lt_compiler_GCJ
22242
22243 # Is the compiler the GNU C compiler?
22244 with_gcc=$GCC_GCJ
22245
22246 # An ERE matcher.
22247 EGREP=$lt_EGREP
22248
22249 # The linker used to build libraries.
22250 LD=$lt_LD_GCJ
22251
22252 # Whether we need hard or soft links.
22253 LN_S=$lt_LN_S
22254
22255 # A BSD-compatible nm program.
22256 NM=$lt_NM
22257
22258 # A symbol stripping program
22259 STRIP=$lt_STRIP
22260
22261 # Used to examine libraries when file_magic_cmd begins "file"
22262 MAGIC_CMD=$MAGIC_CMD
22263
22264 # Used on cygwin: DLL creation program.
22265 DLLTOOL="$DLLTOOL"
22266
22267 # Used on cygwin: object dumper.
22268 OBJDUMP="$OBJDUMP"
22269
22270 # Used on cygwin: assembler.
22271 AS="$AS"
22272
22273 # The name of the directory that contains temporary libtool files.
22274 objdir=$objdir
22275
22276 # How to create reloadable object files.
22277 reload_flag=$lt_reload_flag
22278 reload_cmds=$lt_reload_cmds
22279
22280 # How to pass a linker flag through the compiler.
22281 wl=$lt_lt_prog_compiler_wl_GCJ
22282
22283 # Object file suffix (normally "o").
22284 objext="$ac_objext"
22285
22286 # Old archive suffix (normally "a").
22287 libext="$libext"
22288
22289 # Shared library suffix (normally ".so").
22290 shrext_cmds='$shrext_cmds'
22291
22292 # Executable file suffix (normally "").
22293 exeext="$exeext"
22294
22295 # Additional compiler flags for building library objects.
22296 pic_flag=$lt_lt_prog_compiler_pic_GCJ
22297 pic_mode=$pic_mode
22298
22299 # What is the maximum length of a command?
22300 max_cmd_len=$lt_cv_sys_max_cmd_len
22301
22302 # Does compiler simultaneously support -c and -o options?
22303 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
22304
22305 # Must we lock files when doing compilation ?
22306 need_locks=$lt_need_locks
22307
22308 # Do we need the lib prefix for modules?
22309 need_lib_prefix=$need_lib_prefix
22310
22311 # Do we need a version for libraries?
22312 need_version=$need_version
22313
22314 # Whether dlopen is supported.
22315 dlopen_support=$enable_dlopen
22316
22317 # Whether dlopen of programs is supported.
22318 dlopen_self=$enable_dlopen_self
22319
22320 # Whether dlopen of statically linked programs is supported.
22321 dlopen_self_static=$enable_dlopen_self_static
22322
22323 # Compiler flag to prevent dynamic linking.
22324 link_static_flag=$lt_lt_prog_compiler_static_GCJ
22325
22326 # Compiler flag to turn off builtin functions.
22327 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
22328
22329 # Compiler flag to allow reflexive dlopens.
22330 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
22331
22332 # Compiler flag to generate shared objects directly from archives.
22333 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
22334
22335 # Compiler flag to generate thread-safe objects.
22336 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
22337
22338 # Library versioning type.
22339 version_type=$version_type
22340
22341 # Format of library name prefix.
22342 libname_spec=$lt_libname_spec
22343
22344 # List of archive names.  First name is the real one, the rest are links.
22345 # The last name is the one that the linker finds with -lNAME.
22346 library_names_spec=$lt_library_names_spec
22347
22348 # The coded name of the library, if different from the real name.
22349 soname_spec=$lt_soname_spec
22350
22351 # Commands used to build and install an old-style archive.
22352 RANLIB=$lt_RANLIB
22353 old_archive_cmds=$lt_old_archive_cmds_GCJ
22354 old_postinstall_cmds=$lt_old_postinstall_cmds
22355 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22356
22357 # Create an old-style archive from a shared archive.
22358 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
22359
22360 # Create a temporary old-style archive to link instead of a shared archive.
22361 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
22362
22363 # Commands used to build and install a shared archive.
22364 archive_cmds=$lt_archive_cmds_GCJ
22365 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
22366 postinstall_cmds=$lt_postinstall_cmds
22367 postuninstall_cmds=$lt_postuninstall_cmds
22368
22369 # Commands used to build a loadable module (assumed same as above if empty)
22370 module_cmds=$lt_module_cmds_GCJ
22371 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
22372
22373 # Commands to strip libraries.
22374 old_striplib=$lt_old_striplib
22375 striplib=$lt_striplib
22376
22377 # Dependencies to place before the objects being linked to create a
22378 # shared library.
22379 predep_objects=$lt_predep_objects_GCJ
22380
22381 # Dependencies to place after the objects being linked to create a
22382 # shared library.
22383 postdep_objects=$lt_postdep_objects_GCJ
22384
22385 # Dependencies to place before the objects being linked to create a
22386 # shared library.
22387 predeps=$lt_predeps_GCJ
22388
22389 # Dependencies to place after the objects being linked to create a
22390 # shared library.
22391 postdeps=$lt_postdeps_GCJ
22392
22393 # The library search path used internally by the compiler when linking
22394 # a shared library.
22395 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
22396
22397 # Method to check whether dependent libraries are shared objects.
22398 deplibs_check_method=$lt_deplibs_check_method
22399
22400 # Command to use when deplibs_check_method == file_magic.
22401 file_magic_cmd=$lt_file_magic_cmd
22402
22403 # Flag that allows shared libraries with undefined symbols to be built.
22404 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
22405
22406 # Flag that forces no undefined symbols.
22407 no_undefined_flag=$lt_no_undefined_flag_GCJ
22408
22409 # Commands used to finish a libtool library installation in a directory.
22410 finish_cmds=$lt_finish_cmds
22411
22412 # Same as above, but a single script fragment to be evaled but not shown.
22413 finish_eval=$lt_finish_eval
22414
22415 # Take the output of nm and produce a listing of raw symbols and C names.
22416 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22417
22418 # Transform the output of nm in a proper C declaration
22419 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22420
22421 # Transform the output of nm in a C name address pair
22422 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22423
22424 # This is the shared library runtime path variable.
22425 runpath_var=$runpath_var
22426
22427 # This is the shared library path variable.
22428 shlibpath_var=$shlibpath_var
22429
22430 # Is shlibpath searched before the hard-coded library search path?
22431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22432
22433 # How to hardcode a shared library path into an executable.
22434 hardcode_action=$hardcode_action_GCJ
22435
22436 # Whether we should hardcode library paths into libraries.
22437 hardcode_into_libs=$hardcode_into_libs
22438
22439 # Flag to hardcode \$libdir into a binary during linking.
22440 # This must work even if \$libdir does not exist.
22441 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
22442
22443 # If ld is used when linking, flag to hardcode \$libdir into
22444 # a binary during linking. This must work even if \$libdir does
22445 # not exist.
22446 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
22447
22448 # Whether we need a single -rpath flag with a separated argument.
22449 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
22450
22451 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22452 # resulting binary.
22453 hardcode_direct=$hardcode_direct_GCJ
22454
22455 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22456 # resulting binary.
22457 hardcode_minus_L=$hardcode_minus_L_GCJ
22458
22459 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22460 # the resulting binary.
22461 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
22462
22463 # Set to yes if building a shared library automatically hardcodes DIR into the library
22464 # and all subsequent libraries and executables linked against it.
22465 hardcode_automatic=$hardcode_automatic_GCJ
22466
22467 # Variables whose values should be saved in libtool wrapper scripts and
22468 # restored at relink time.
22469 variables_saved_for_relink="$variables_saved_for_relink"
22470
22471 # Whether libtool must link a program against all its dependency libraries.
22472 link_all_deplibs=$link_all_deplibs_GCJ
22473
22474 # Compile-time system search path for libraries
22475 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22476
22477 # Run-time system search path for libraries
22478 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22479
22480 # Fix the shell variable \$srcfile for the compiler.
22481 fix_srcfile_path="$fix_srcfile_path_GCJ"
22482
22483 # Set to yes if exported symbols are required.
22484 always_export_symbols=$always_export_symbols_GCJ
22485
22486 # The commands to list exported symbols.
22487 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
22488
22489 # The commands to extract the exported symbol list from a shared archive.
22490 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22491
22492 # Symbols that should not be listed in the preloaded symbols.
22493 exclude_expsyms=$lt_exclude_expsyms_GCJ
22494
22495 # Symbols that must always be exported.
22496 include_expsyms=$lt_include_expsyms_GCJ
22497
22498 # ### END LIBTOOL TAG CONFIG: $tagname
22499
22500 __EOF__
22501
22502
22503 else
22504   # If there is no Makefile yet, we rely on a make rule to execute
22505   # `config.status --recheck' to rerun these tests and create the
22506   # libtool script then.
22507   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22508   if test -f "$ltmain_in"; then
22509     test -f Makefile && make "$ltmain"
22510   fi
22511 fi
22512
22513
22514 ac_ext=c
22515 ac_cpp='$CPP $CPPFLAGS'
22516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22519
22520 CC="$lt_save_CC"
22521
22522         else
22523           tagname=""
22524         fi
22525         ;;
22526
22527       RC)
22528
22529
22530
22531 # Source file extension for RC test sources.
22532 ac_ext=rc
22533
22534 # Object file extension for compiled RC test sources.
22535 objext=o
22536 objext_RC=$objext
22537
22538 # Code to be used in simple compile tests
22539 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
22540
22541 # Code to be used in simple link tests
22542 lt_simple_link_test_code="$lt_simple_compile_test_code"
22543
22544 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22545
22546 # If no C compiler was specified, use CC.
22547 LTCC=${LTCC-"$CC"}
22548
22549 # Allow CC to be a program name with arguments.
22550 compiler=$CC
22551
22552
22553 # Allow CC to be a program name with arguments.
22554 lt_save_CC="$CC"
22555 CC=${RC-"windres"}
22556 compiler=$CC
22557 compiler_RC=$CC
22558 lt_cv_prog_compiler_c_o_RC=yes
22559
22560 # The else clause should only fire when bootstrapping the
22561 # libtool distribution, otherwise you forgot to ship ltmain.sh
22562 # with your package, and you will get complaints that there are
22563 # no rules to generate ltmain.sh.
22564 if test -f "$ltmain"; then
22565   # See if we are running on zsh, and set the options which allow our commands through
22566   # without removal of \ escapes.
22567   if test -n "${ZSH_VERSION+set}" ; then
22568     setopt NO_GLOB_SUBST
22569   fi
22570   # Now quote all the things that may contain metacharacters while being
22571   # careful not to overquote the AC_SUBSTed values.  We take copies of the
22572   # variables and quote the copies for generation of the libtool script.
22573   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
22574     SED SHELL STRIP \
22575     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22576     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22577     deplibs_check_method reload_flag reload_cmds need_locks \
22578     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22579     lt_cv_sys_global_symbol_to_c_name_address \
22580     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22581     old_postinstall_cmds old_postuninstall_cmds \
22582     compiler_RC \
22583     CC_RC \
22584     LD_RC \
22585     lt_prog_compiler_wl_RC \
22586     lt_prog_compiler_pic_RC \
22587     lt_prog_compiler_static_RC \
22588     lt_prog_compiler_no_builtin_flag_RC \
22589     export_dynamic_flag_spec_RC \
22590     thread_safe_flag_spec_RC \
22591     whole_archive_flag_spec_RC \
22592     enable_shared_with_static_runtimes_RC \
22593     old_archive_cmds_RC \
22594     old_archive_from_new_cmds_RC \
22595     predep_objects_RC \
22596     postdep_objects_RC \
22597     predeps_RC \
22598     postdeps_RC \
22599     compiler_lib_search_path_RC \
22600     archive_cmds_RC \
22601     archive_expsym_cmds_RC \
22602     postinstall_cmds_RC \
22603     postuninstall_cmds_RC \
22604     old_archive_from_expsyms_cmds_RC \
22605     allow_undefined_flag_RC \
22606     no_undefined_flag_RC \
22607     export_symbols_cmds_RC \
22608     hardcode_libdir_flag_spec_RC \
22609     hardcode_libdir_flag_spec_ld_RC \
22610     hardcode_libdir_separator_RC \
22611     hardcode_automatic_RC \
22612     module_cmds_RC \
22613     module_expsym_cmds_RC \
22614     lt_cv_prog_compiler_c_o_RC \
22615     exclude_expsyms_RC \
22616     include_expsyms_RC; do
22617
22618     case $var in
22619     old_archive_cmds_RC | \
22620     old_archive_from_new_cmds_RC | \
22621     archive_cmds_RC | \
22622     archive_expsym_cmds_RC | \
22623     module_cmds_RC | \
22624     module_expsym_cmds_RC | \
22625     old_archive_from_expsyms_cmds_RC | \
22626     export_symbols_cmds_RC | \
22627     extract_expsyms_cmds | reload_cmds | finish_cmds | \
22628     postinstall_cmds | postuninstall_cmds | \
22629     old_postinstall_cmds | old_postuninstall_cmds | \
22630     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22631       # Double-quote double-evaled strings.
22632       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22633       ;;
22634     *)
22635       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22636       ;;
22637     esac
22638   done
22639
22640   case $lt_echo in
22641   *'\$0 --fallback-echo"')
22642     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22643     ;;
22644   esac
22645
22646 cfgfile="$ofile"
22647
22648   cat <<__EOF__ >> "$cfgfile"
22649 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22650
22651 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22652
22653 # Shell to use when invoking shell scripts.
22654 SHELL=$lt_SHELL
22655
22656 # Whether or not to build shared libraries.
22657 build_libtool_libs=$enable_shared
22658
22659 # Whether or not to build static libraries.
22660 build_old_libs=$enable_static
22661
22662 # Whether or not to add -lc for building shared libraries.
22663 build_libtool_need_lc=$archive_cmds_need_lc_RC
22664
22665 # Whether or not to disallow shared libs when runtime libs are static
22666 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22667
22668 # Whether or not to optimize for fast installation.
22669 fast_install=$enable_fast_install
22670
22671 # The host system.
22672 host_alias=$host_alias
22673 host=$host
22674
22675 # An echo program that does not interpret backslashes.
22676 echo=$lt_echo
22677
22678 # The archiver.
22679 AR=$lt_AR
22680 AR_FLAGS=$lt_AR_FLAGS
22681
22682 # A C compiler.
22683 LTCC=$lt_LTCC
22684
22685 # A language-specific compiler.
22686 CC=$lt_compiler_RC
22687
22688 # Is the compiler the GNU C compiler?
22689 with_gcc=$GCC_RC
22690
22691 # An ERE matcher.
22692 EGREP=$lt_EGREP
22693
22694 # The linker used to build libraries.
22695 LD=$lt_LD_RC
22696
22697 # Whether we need hard or soft links.
22698 LN_S=$lt_LN_S
22699
22700 # A BSD-compatible nm program.
22701 NM=$lt_NM
22702
22703 # A symbol stripping program
22704 STRIP=$lt_STRIP
22705
22706 # Used to examine libraries when file_magic_cmd begins "file"
22707 MAGIC_CMD=$MAGIC_CMD
22708
22709 # Used on cygwin: DLL creation program.
22710 DLLTOOL="$DLLTOOL"
22711
22712 # Used on cygwin: object dumper.
22713 OBJDUMP="$OBJDUMP"
22714
22715 # Used on cygwin: assembler.
22716 AS="$AS"
22717
22718 # The name of the directory that contains temporary libtool files.
22719 objdir=$objdir
22720
22721 # How to create reloadable object files.
22722 reload_flag=$lt_reload_flag
22723 reload_cmds=$lt_reload_cmds
22724
22725 # How to pass a linker flag through the compiler.
22726 wl=$lt_lt_prog_compiler_wl_RC
22727
22728 # Object file suffix (normally "o").
22729 objext="$ac_objext"
22730
22731 # Old archive suffix (normally "a").
22732 libext="$libext"
22733
22734 # Shared library suffix (normally ".so").
22735 shrext_cmds='$shrext_cmds'
22736
22737 # Executable file suffix (normally "").
22738 exeext="$exeext"
22739
22740 # Additional compiler flags for building library objects.
22741 pic_flag=$lt_lt_prog_compiler_pic_RC
22742 pic_mode=$pic_mode
22743
22744 # What is the maximum length of a command?
22745 max_cmd_len=$lt_cv_sys_max_cmd_len
22746
22747 # Does compiler simultaneously support -c and -o options?
22748 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22749
22750 # Must we lock files when doing compilation ?
22751 need_locks=$lt_need_locks
22752
22753 # Do we need the lib prefix for modules?
22754 need_lib_prefix=$need_lib_prefix
22755
22756 # Do we need a version for libraries?
22757 need_version=$need_version
22758
22759 # Whether dlopen is supported.
22760 dlopen_support=$enable_dlopen
22761
22762 # Whether dlopen of programs is supported.
22763 dlopen_self=$enable_dlopen_self
22764
22765 # Whether dlopen of statically linked programs is supported.
22766 dlopen_self_static=$enable_dlopen_self_static
22767
22768 # Compiler flag to prevent dynamic linking.
22769 link_static_flag=$lt_lt_prog_compiler_static_RC
22770
22771 # Compiler flag to turn off builtin functions.
22772 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22773
22774 # Compiler flag to allow reflexive dlopens.
22775 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22776
22777 # Compiler flag to generate shared objects directly from archives.
22778 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22779
22780 # Compiler flag to generate thread-safe objects.
22781 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
22782
22783 # Library versioning type.
22784 version_type=$version_type
22785
22786 # Format of library name prefix.
22787 libname_spec=$lt_libname_spec
22788
22789 # List of archive names.  First name is the real one, the rest are links.
22790 # The last name is the one that the linker finds with -lNAME.
22791 library_names_spec=$lt_library_names_spec
22792
22793 # The coded name of the library, if different from the real name.
22794 soname_spec=$lt_soname_spec
22795
22796 # Commands used to build and install an old-style archive.
22797 RANLIB=$lt_RANLIB
22798 old_archive_cmds=$lt_old_archive_cmds_RC
22799 old_postinstall_cmds=$lt_old_postinstall_cmds
22800 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22801
22802 # Create an old-style archive from a shared archive.
22803 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22804
22805 # Create a temporary old-style archive to link instead of a shared archive.
22806 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22807
22808 # Commands used to build and install a shared archive.
22809 archive_cmds=$lt_archive_cmds_RC
22810 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22811 postinstall_cmds=$lt_postinstall_cmds
22812 postuninstall_cmds=$lt_postuninstall_cmds
22813
22814 # Commands used to build a loadable module (assumed same as above if empty)
22815 module_cmds=$lt_module_cmds_RC
22816 module_expsym_cmds=$lt_module_expsym_cmds_RC
22817
22818 # Commands to strip libraries.
22819 old_striplib=$lt_old_striplib
22820 striplib=$lt_striplib
22821
22822 # Dependencies to place before the objects being linked to create a
22823 # shared library.
22824 predep_objects=$lt_predep_objects_RC
22825
22826 # Dependencies to place after the objects being linked to create a
22827 # shared library.
22828 postdep_objects=$lt_postdep_objects_RC
22829
22830 # Dependencies to place before the objects being linked to create a
22831 # shared library.
22832 predeps=$lt_predeps_RC
22833
22834 # Dependencies to place after the objects being linked to create a
22835 # shared library.
22836 postdeps=$lt_postdeps_RC
22837
22838 # The library search path used internally by the compiler when linking
22839 # a shared library.
22840 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22841
22842 # Method to check whether dependent libraries are shared objects.
22843 deplibs_check_method=$lt_deplibs_check_method
22844
22845 # Command to use when deplibs_check_method == file_magic.
22846 file_magic_cmd=$lt_file_magic_cmd
22847
22848 # Flag that allows shared libraries with undefined symbols to be built.
22849 allow_undefined_flag=$lt_allow_undefined_flag_RC
22850
22851 # Flag that forces no undefined symbols.
22852 no_undefined_flag=$lt_no_undefined_flag_RC
22853
22854 # Commands used to finish a libtool library installation in a directory.
22855 finish_cmds=$lt_finish_cmds
22856
22857 # Same as above, but a single script fragment to be evaled but not shown.
22858 finish_eval=$lt_finish_eval
22859
22860 # Take the output of nm and produce a listing of raw symbols and C names.
22861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22862
22863 # Transform the output of nm in a proper C declaration
22864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22865
22866 # Transform the output of nm in a C name address pair
22867 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22868
22869 # This is the shared library runtime path variable.
22870 runpath_var=$runpath_var
22871
22872 # This is the shared library path variable.
22873 shlibpath_var=$shlibpath_var
22874
22875 # Is shlibpath searched before the hard-coded library search path?
22876 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22877
22878 # How to hardcode a shared library path into an executable.
22879 hardcode_action=$hardcode_action_RC
22880
22881 # Whether we should hardcode library paths into libraries.
22882 hardcode_into_libs=$hardcode_into_libs
22883
22884 # Flag to hardcode \$libdir into a binary during linking.
22885 # This must work even if \$libdir does not exist.
22886 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22887
22888 # If ld is used when linking, flag to hardcode \$libdir into
22889 # a binary during linking. This must work even if \$libdir does
22890 # not exist.
22891 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22892
22893 # Whether we need a single -rpath flag with a separated argument.
22894 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22895
22896 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22897 # resulting binary.
22898 hardcode_direct=$hardcode_direct_RC
22899
22900 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22901 # resulting binary.
22902 hardcode_minus_L=$hardcode_minus_L_RC
22903
22904 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22905 # the resulting binary.
22906 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22907
22908 # Set to yes if building a shared library automatically hardcodes DIR into the library
22909 # and all subsequent libraries and executables linked against it.
22910 hardcode_automatic=$hardcode_automatic_RC
22911
22912 # Variables whose values should be saved in libtool wrapper scripts and
22913 # restored at relink time.
22914 variables_saved_for_relink="$variables_saved_for_relink"
22915
22916 # Whether libtool must link a program against all its dependency libraries.
22917 link_all_deplibs=$link_all_deplibs_RC
22918
22919 # Compile-time system search path for libraries
22920 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22921
22922 # Run-time system search path for libraries
22923 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22924
22925 # Fix the shell variable \$srcfile for the compiler.
22926 fix_srcfile_path="$fix_srcfile_path_RC"
22927
22928 # Set to yes if exported symbols are required.
22929 always_export_symbols=$always_export_symbols_RC
22930
22931 # The commands to list exported symbols.
22932 export_symbols_cmds=$lt_export_symbols_cmds_RC
22933
22934 # The commands to extract the exported symbol list from a shared archive.
22935 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22936
22937 # Symbols that should not be listed in the preloaded symbols.
22938 exclude_expsyms=$lt_exclude_expsyms_RC
22939
22940 # Symbols that must always be exported.
22941 include_expsyms=$lt_include_expsyms_RC
22942
22943 # ### END LIBTOOL TAG CONFIG: $tagname
22944
22945 __EOF__
22946
22947
22948 else
22949   # If there is no Makefile yet, we rely on a make rule to execute
22950   # `config.status --recheck' to rerun these tests and create the
22951   # libtool script then.
22952   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22953   if test -f "$ltmain_in"; then
22954     test -f Makefile && make "$ltmain"
22955   fi
22956 fi
22957
22958
22959 ac_ext=c
22960 ac_cpp='$CPP $CPPFLAGS'
22961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22964
22965 CC="$lt_save_CC"
22966
22967         ;;
22968
22969       *)
22970         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22971 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22972    { (exit 1); exit 1; }; }
22973         ;;
22974       esac
22975
22976       # Append the new tag name to the list of available tags.
22977       if test -n "$tagname" ; then
22978       available_tags="$available_tags $tagname"
22979     fi
22980     fi
22981   done
22982   IFS="$lt_save_ifs"
22983
22984   # Now substitute the updated list of available tags.
22985   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22986     mv "${ofile}T" "$ofile"
22987     chmod +x "$ofile"
22988   else
22989     rm -f "${ofile}T"
22990     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22991 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22992    { (exit 1); exit 1; }; }
22993   fi
22994 fi
22995
22996
22997
22998 # This can be used to rebuild libtool when needed
22999 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
23000
23001 # Always use our own libtool.
23002 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
23003
23004 # Prevent multiple expansion
23005
23006
23007
23008
23009
23010
23011
23012
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025                 O=lo
23026                 A=la
23027                 LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
23028                 LIBTOOL_MODE_COMPILE='--mode=compile'
23029                 LIBTOOL_MODE_INSTALL='--mode=install'
23030                 LIBTOOL_MODE_LINK='--mode=link'
23031                 ;;
23032         *)
23033                 O=o
23034                 A=a
23035                 LIBTOOL=
23036
23037                 LIBTOOL_MKDEP_SED=
23038                 LIBTOOL_MODE_COMPILE=
23039                 LIBTOOL_MODE_INSTALL=
23040                 LIBTOOL_MODE_LINK=
23041                 ;;
23042 esac
23043
23044 #
23045 # File name extension for static archive files, for those few places
23046 # where they are treated differently from dynamic ones.
23047 #
23048 SA=a
23049
23050
23051
23052
23053
23054
23055
23056
23057
23058 #
23059 # Here begins a very long section to determine the system's networking
23060 # capabilities.  The order of the tests is signficant.
23061 #
23062
23063 #
23064 # IPv6
23065 #
23066 # Check whether --enable-ipv6 or --disable-ipv6 was given.
23067 if test "${enable_ipv6+set}" = set; then
23068   enableval="$enable_ipv6"
23069
23070 fi;
23071
23072 case "$enable_ipv6" in
23073         yes|''|autodetect)
23074                 cat >>confdefs.h <<\_ACEOF
23075 #define WANT_IPV6 1
23076 _ACEOF
23077
23078                 ;;
23079         no)
23080                 ;;
23081 esac
23082
23083 #
23084 # We do the IPv6 compilation checking after libtool so that we can put
23085 # the right suffix on the files.
23086 #
23087 echo "$as_me:$LINENO: checking for IPv6 structures" >&5
23088 echo $ECHO_N "checking for IPv6 structures... $ECHO_C" >&6
23089 cat >conftest.$ac_ext <<_ACEOF
23090 /* confdefs.h.  */
23091 _ACEOF
23092 cat confdefs.h >>conftest.$ac_ext
23093 cat >>conftest.$ac_ext <<_ACEOF
23094 /* end confdefs.h.  */
23095
23096 #include <sys/types.h>
23097 #include <sys/socket.h>
23098 #include <netinet/in.h>
23099 int
23100 main ()
23101 {
23102 struct sockaddr_in6 sin6; return (0);
23103   ;
23104   return 0;
23105 }
23106 _ACEOF
23107 rm -f conftest.$ac_objext
23108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23109   (eval $ac_compile) 2>conftest.er1
23110   ac_status=$?
23111   grep -v '^ *+' conftest.er1 >conftest.err
23112   rm -f conftest.er1
23113   cat conftest.err >&5
23114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115   (exit $ac_status); } &&
23116          { ac_try='test -z "$ac_c_werror_flag"
23117                          || test ! -s conftest.err'
23118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23119   (eval $ac_try) 2>&5
23120   ac_status=$?
23121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122   (exit $ac_status); }; } &&
23123          { ac_try='test -s conftest.$ac_objext'
23124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23125   (eval $ac_try) 2>&5
23126   ac_status=$?
23127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128   (exit $ac_status); }; }; then
23129   echo "$as_me:$LINENO: result: yes" >&5
23130 echo "${ECHO_T}yes" >&6
23131          found_ipv6=yes
23132 else
23133   echo "$as_me: failed program was:" >&5
23134 sed 's/^/| /' conftest.$ac_ext >&5
23135
23136 echo "$as_me:$LINENO: result: no" >&5
23137 echo "${ECHO_T}no" >&6
23138          found_ipv6=no
23139 fi
23140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23141
23142 #
23143 # See whether IPv6 support is provided via a Kame add-on.
23144 # This is done before other IPv6 linking tests to LIBS is properly set.
23145 #
23146 echo "$as_me:$LINENO: checking for Kame IPv6 support" >&5
23147 echo $ECHO_N "checking for Kame IPv6 support... $ECHO_C" >&6
23148
23149 # Check whether --with-kame or --without-kame was given.
23150 if test "${with_kame+set}" = set; then
23151   withval="$with_kame"
23152   use_kame="$withval"
23153 else
23154   use_kame="no"
23155 fi;
23156
23157 case "$use_kame" in
23158         no)
23159                 ;;
23160         yes)
23161                 kame_path=/usr/local/v6
23162                 ;;
23163         *)
23164                 kame_path="$use_kame"
23165                 ;;
23166 esac
23167
23168 case "$use_kame" in
23169         no)
23170                 echo "$as_me:$LINENO: result: no" >&5
23171 echo "${ECHO_T}no" >&6
23172                 ;;
23173         *)
23174                 if test -f $kame_path/lib/libinet6.a; then
23175                         echo "$as_me:$LINENO: result: $kame_path/lib/libinet6.a" >&5
23176 echo "${ECHO_T}$kame_path/lib/libinet6.a" >&6
23177                         LIBS="-L$kame_path/lib -linet6 $LIBS"
23178                 else
23179                         { { echo "$as_me:$LINENO: error: $kame_path/lib/libinet6.a not found.
23180
23181 Please choose the proper path with the following command:
23182
23183     configure --with-kame=PATH
23184 " >&5
23185 echo "$as_me: error: $kame_path/lib/libinet6.a not found.
23186
23187 Please choose the proper path with the following command:
23188
23189     configure --with-kame=PATH
23190 " >&2;}
23191    { (exit 1); exit 1; }; }
23192                 fi
23193                 ;;
23194 esac
23195
23196 #
23197 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
23198 # Including it on Kame-using platforms is very bad, though, because
23199 # Kame uses #error against direct inclusion.   So include it on only
23200 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
23201 # This is done before the in6_pktinfo check because that's what
23202 # netinet6/in6.h is needed for.
23203 #
23204
23205 case "$host" in
23206 *-bsdi4.[01]*)
23207         ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
23208         isc_netinet6in6_hack="#include <netinet6/in6.h>"
23209         ;;
23210 *)
23211         ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
23212         isc_netinet6in6_hack=""
23213         ;;
23214 esac
23215
23216
23217 #
23218 # This is similar to the netinet6/in6.h issue.
23219 #
23220 case "$host" in
23221 *-UnixWare*)
23222         ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
23223         ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1"
23224         isc_netinetin6_hack="#include <netinet/in6.h>"
23225         ;;
23226 *)
23227         ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
23228         ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
23229         isc_netinetin6_hack=""
23230         ;;
23231 esac
23232
23233 #
23234 # Now delve deeper into the suitability of the IPv6 support.
23235 #
23236 case "$found_ipv6" in
23237         yes)
23238                 HAS_INET6_STRUCTS="#define HAS_INET6_STRUCTS 1"
23239
23240                 echo "$as_me:$LINENO: checking for in6_addr" >&5
23241 echo $ECHO_N "checking for in6_addr... $ECHO_C" >&6
23242                 cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h.  */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h.  */
23248
23249 #include <sys/types.h>
23250 #include <sys/socket.h>
23251 #include <netinet/in.h>
23252 $isc_netinetin6_hack
23253 $isc_netinet6in6_hack
23254
23255 int
23256 main ()
23257 {
23258 struct in6_addr in6; return (0);
23259   ;
23260   return 0;
23261 }
23262 _ACEOF
23263 rm -f conftest.$ac_objext
23264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23265   (eval $ac_compile) 2>conftest.er1
23266   ac_status=$?
23267   grep -v '^ *+' conftest.er1 >conftest.err
23268   rm -f conftest.er1
23269   cat conftest.err >&5
23270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271   (exit $ac_status); } &&
23272          { ac_try='test -z "$ac_c_werror_flag"
23273                          || test ! -s conftest.err'
23274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275   (eval $ac_try) 2>&5
23276   ac_status=$?
23277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278   (exit $ac_status); }; } &&
23279          { ac_try='test -s conftest.$ac_objext'
23280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23281   (eval $ac_try) 2>&5
23282   ac_status=$?
23283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284   (exit $ac_status); }; }; then
23285   echo "$as_me:$LINENO: result: yes" >&5
23286 echo "${ECHO_T}yes" >&6
23287                  HAS_IN_ADDR6="#undef HAS_IN_ADDR6"
23288                  isc_in_addr6_hack=""
23289 else
23290   echo "$as_me: failed program was:" >&5
23291 sed 's/^/| /' conftest.$ac_ext >&5
23292
23293 echo "$as_me:$LINENO: result: no" >&5
23294 echo "${ECHO_T}no" >&6
23295                  HAS_IN_ADDR6="#define HAS_IN_ADDR6 1"
23296                  isc_in_addr6_hack="#define in6_addr in_addr6"
23297 fi
23298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23299
23300                 echo "$as_me:$LINENO: checking for in6addr_any" >&5
23301 echo $ECHO_N "checking for in6addr_any... $ECHO_C" >&6
23302                 cat >conftest.$ac_ext <<_ACEOF
23303 /* confdefs.h.  */
23304 _ACEOF
23305 cat confdefs.h >>conftest.$ac_ext
23306 cat >>conftest.$ac_ext <<_ACEOF
23307 /* end confdefs.h.  */
23308
23309 #include <sys/types.h>
23310 #include <sys/socket.h>
23311 #include <netinet/in.h>
23312 $isc_netinetin6_hack
23313 $isc_netinet6in6_hack
23314 $isc_in_addr6_hack
23315
23316 int
23317 main ()
23318 {
23319 struct in6_addr in6; in6 = in6addr_any; return (0);
23320   ;
23321   return 0;
23322 }
23323 _ACEOF
23324 rm -f conftest.$ac_objext conftest$ac_exeext
23325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23326   (eval $ac_link) 2>conftest.er1
23327   ac_status=$?
23328   grep -v '^ *+' conftest.er1 >conftest.err
23329   rm -f conftest.er1
23330   cat conftest.err >&5
23331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332   (exit $ac_status); } &&
23333          { ac_try='test -z "$ac_c_werror_flag"
23334                          || test ! -s conftest.err'
23335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23336   (eval $ac_try) 2>&5
23337   ac_status=$?
23338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339   (exit $ac_status); }; } &&
23340          { ac_try='test -s conftest$ac_exeext'
23341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23342   (eval $ac_try) 2>&5
23343   ac_status=$?
23344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345   (exit $ac_status); }; }; then
23346   echo "$as_me:$LINENO: result: yes" >&5
23347 echo "${ECHO_T}yes" >&6
23348                          NEED_IN6ADDR_ANY="#undef NEED_IN6ADDR_ANY"
23349 else
23350   echo "$as_me: failed program was:" >&5
23351 sed 's/^/| /' conftest.$ac_ext >&5
23352
23353 echo "$as_me:$LINENO: result: no" >&5
23354 echo "${ECHO_T}no" >&6
23355                          NEED_IN6ADDR_ANY="#define NEED_IN6ADDR_ANY 1"
23356 fi
23357 rm -f conftest.err conftest.$ac_objext \
23358       conftest$ac_exeext conftest.$ac_ext
23359
23360                 echo "$as_me:$LINENO: checking for sin6_scope_id in struct sockaddr_in6" >&5
23361 echo $ECHO_N "checking for sin6_scope_id in struct sockaddr_in6... $ECHO_C" >&6
23362                 cat >conftest.$ac_ext <<_ACEOF
23363 /* confdefs.h.  */
23364 _ACEOF
23365 cat confdefs.h >>conftest.$ac_ext
23366 cat >>conftest.$ac_ext <<_ACEOF
23367 /* end confdefs.h.  */
23368
23369 #include <sys/types.h>
23370 #include <sys/socket.h>
23371 #include <netinet/in.h>
23372 $isc_netinetin6_hack
23373 $isc_netinet6in6_hack
23374
23375 int
23376 main ()
23377 {
23378 struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
23379   ;
23380   return 0;
23381 }
23382 _ACEOF
23383 rm -f conftest.$ac_objext
23384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23385   (eval $ac_compile) 2>conftest.er1
23386   ac_status=$?
23387   grep -v '^ *+' conftest.er1 >conftest.err
23388   rm -f conftest.er1
23389   cat conftest.err >&5
23390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391   (exit $ac_status); } &&
23392          { ac_try='test -z "$ac_c_werror_flag"
23393                          || test ! -s conftest.err'
23394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23395   (eval $ac_try) 2>&5
23396   ac_status=$?
23397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398   (exit $ac_status); }; } &&
23399          { ac_try='test -s conftest.$ac_objext'
23400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23401   (eval $ac_try) 2>&5
23402   ac_status=$?
23403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404   (exit $ac_status); }; }; then
23405   echo "$as_me:$LINENO: result: yes" >&5
23406 echo "${ECHO_T}yes" >&6
23407                          result="#define HAVE_SIN6_SCOPE_ID 1"
23408 else
23409   echo "$as_me: failed program was:" >&5
23410 sed 's/^/| /' conftest.$ac_ext >&5
23411
23412 echo "$as_me:$LINENO: result: no" >&5
23413 echo "${ECHO_T}no" >&6
23414                          result="#undef HAVE_SIN6_SCOPE_ID"
23415 fi
23416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23417                 HAVE_SIN6_SCOPE_ID="$result"
23418
23419                 echo "$as_me:$LINENO: checking for in6_pktinfo" >&5
23420 echo $ECHO_N "checking for in6_pktinfo... $ECHO_C" >&6
23421                 cat >conftest.$ac_ext <<_ACEOF
23422 /* confdefs.h.  */
23423 _ACEOF
23424 cat confdefs.h >>conftest.$ac_ext
23425 cat >>conftest.$ac_ext <<_ACEOF
23426 /* end confdefs.h.  */
23427
23428 #include <sys/types.h>
23429 #include <sys/socket.h>
23430 #include <netinet/in.h>
23431 $isc_netinetin6_hack
23432 $isc_netinet6in6_hack
23433
23434 int
23435 main ()
23436 {
23437 struct in6_pktinfo xyzzy; return (0);
23438   ;
23439   return 0;
23440 }
23441 _ACEOF
23442 rm -f conftest.$ac_objext
23443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23444   (eval $ac_compile) 2>conftest.er1
23445   ac_status=$?
23446   grep -v '^ *+' conftest.er1 >conftest.err
23447   rm -f conftest.er1
23448   cat conftest.err >&5
23449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450   (exit $ac_status); } &&
23451          { ac_try='test -z "$ac_c_werror_flag"
23452                          || test ! -s conftest.err'
23453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23454   (eval $ac_try) 2>&5
23455   ac_status=$?
23456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457   (exit $ac_status); }; } &&
23458          { ac_try='test -s conftest.$ac_objext'
23459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23460   (eval $ac_try) 2>&5
23461   ac_status=$?
23462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463   (exit $ac_status); }; }; then
23464   echo "$as_me:$LINENO: result: yes" >&5
23465 echo "${ECHO_T}yes" >&6
23466                          ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
23467 else
23468   echo "$as_me: failed program was:" >&5
23469 sed 's/^/| /' conftest.$ac_ext >&5
23470
23471 echo "$as_me:$LINENO: result: no -- disabling runtime ipv6 support" >&5
23472 echo "${ECHO_T}no -- disabling runtime ipv6 support" >&6
23473                          ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
23474 fi
23475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23476
23477                 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
23478 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
23479                 cat >conftest.$ac_ext <<_ACEOF
23480 /* confdefs.h.  */
23481 _ACEOF
23482 cat confdefs.h >>conftest.$ac_ext
23483 cat >>conftest.$ac_ext <<_ACEOF
23484 /* end confdefs.h.  */
23485
23486 #include <sys/types.h>
23487 #include <sys/socket.h>
23488 #include <netinet/in.h>
23489 $isc_netinetin6_hack
23490 $isc_netinet6in6_hack
23491
23492 int
23493 main ()
23494 {
23495 struct sockaddr_storage xyzzy; return (0);
23496   ;
23497   return 0;
23498 }
23499 _ACEOF
23500 rm -f conftest.$ac_objext
23501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23502   (eval $ac_compile) 2>conftest.er1
23503   ac_status=$?
23504   grep -v '^ *+' conftest.er1 >conftest.err
23505   rm -f conftest.er1
23506   cat conftest.err >&5
23507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508   (exit $ac_status); } &&
23509          { ac_try='test -z "$ac_c_werror_flag"
23510                          || test ! -s conftest.err'
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); }; } &&
23516          { ac_try='test -s conftest.$ac_objext'
23517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518   (eval $ac_try) 2>&5
23519   ac_status=$?
23520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521   (exit $ac_status); }; }; then
23522   echo "$as_me:$LINENO: result: yes" >&5
23523 echo "${ECHO_T}yes" >&6
23524                          HAVE_SOCKADDR_STORAGE="#define HAVE_SOCKADDR_STORAGE 1"
23525 else
23526   echo "$as_me: failed program was:" >&5
23527 sed 's/^/| /' conftest.$ac_ext >&5
23528
23529 echo "$as_me:$LINENO: result: no" >&5
23530 echo "${ECHO_T}no" >&6
23531                          HAVE_SOCKADDR_STORAGE="#undef HAVE_SOCKADDR_STORAGE"
23532 fi
23533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23534                 ;;
23535         no)
23536                 HAS_INET6_STRUCTS="#undef HAS_INET6_STRUCTS"
23537                 NEED_IN6ADDR_ANY="#undef NEED_IN6ADDR_ANY"
23538                 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
23539                 HAVE_SIN6_SCOPE_ID="#define HAVE_SIN6_SCOPE_ID 1"
23540                 HAVE_SOCKADDR_STORAGE="#undef HAVE_SOCKADDR_STORAGE"
23541                 ISC_IPV6_H="ipv6.h"
23542                 ISC_IPV6_O="ipv6.$O"
23543                 ISC_ISCIPV6_O="unix/ipv6.$O"
23544                 ISC_IPV6_C="ipv6.c"
23545                 ;;
23546 esac
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562 #
23563 # Check for network functions that are often missing.  We do this
23564 # after the libtool checking, so we can put the right suffix on
23565 # the files.  It also needs to come after checking for a Kame add-on,
23566 # which provides some (all?) of the desired functions.
23567 #
23568 echo "$as_me:$LINENO: checking for inet_ntop" >&5
23569 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
23570 cat >conftest.$ac_ext <<_ACEOF
23571 /* confdefs.h.  */
23572 _ACEOF
23573 cat confdefs.h >>conftest.$ac_ext
23574 cat >>conftest.$ac_ext <<_ACEOF
23575 /* end confdefs.h.  */
23576
23577 #include <sys/types.h>
23578 #include <netinet/in.h>
23579 #include <arpa/inet.h>
23580 int
23581 main ()
23582 {
23583 inet_ntop(0, 0, 0, 0); return (0);
23584   ;
23585   return 0;
23586 }
23587 _ACEOF
23588 rm -f conftest.$ac_objext conftest$ac_exeext
23589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23590   (eval $ac_link) 2>conftest.er1
23591   ac_status=$?
23592   grep -v '^ *+' conftest.er1 >conftest.err
23593   rm -f conftest.er1
23594   cat conftest.err >&5
23595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596   (exit $ac_status); } &&
23597          { ac_try='test -z "$ac_c_werror_flag"
23598                          || test ! -s conftest.err'
23599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23600   (eval $ac_try) 2>&5
23601   ac_status=$?
23602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603   (exit $ac_status); }; } &&
23604          { ac_try='test -s conftest$ac_exeext'
23605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23606   (eval $ac_try) 2>&5
23607   ac_status=$?
23608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609   (exit $ac_status); }; }; then
23610   echo "$as_me:$LINENO: result: yes" >&5
23611 echo "${ECHO_T}yes" >&6
23612         ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
23613 else
23614   echo "$as_me: failed program was:" >&5
23615 sed 's/^/| /' conftest.$ac_ext >&5
23616
23617 echo "$as_me:$LINENO: result: no" >&5
23618 echo "${ECHO_T}no" >&6
23619         ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
23620         ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
23621         ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
23622 fi
23623 rm -f conftest.err conftest.$ac_objext \
23624       conftest$ac_exeext conftest.$ac_ext
23625 echo "$as_me:$LINENO: checking for inet_pton" >&5
23626 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
23627 cat >conftest.$ac_ext <<_ACEOF
23628 /* confdefs.h.  */
23629 _ACEOF
23630 cat confdefs.h >>conftest.$ac_ext
23631 cat >>conftest.$ac_ext <<_ACEOF
23632 /* end confdefs.h.  */
23633
23634 #include <sys/types.h>
23635 #include <netinet/in.h>
23636 #include <arpa/inet.h>
23637 int
23638 main ()
23639 {
23640 inet_pton(0, 0, 0); return (0);
23641   ;
23642   return 0;
23643 }
23644 _ACEOF
23645 rm -f conftest.$ac_objext conftest$ac_exeext
23646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23647   (eval $ac_link) 2>conftest.er1
23648   ac_status=$?
23649   grep -v '^ *+' conftest.er1 >conftest.err
23650   rm -f conftest.er1
23651   cat conftest.err >&5
23652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653   (exit $ac_status); } &&
23654          { ac_try='test -z "$ac_c_werror_flag"
23655                          || test ! -s conftest.err'
23656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657   (eval $ac_try) 2>&5
23658   ac_status=$?
23659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660   (exit $ac_status); }; } &&
23661          { ac_try='test -s conftest$ac_exeext'
23662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23663   (eval $ac_try) 2>&5
23664   ac_status=$?
23665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666   (exit $ac_status); }; }; then
23667   echo "$as_me:$LINENO: result: yes" >&5
23668 echo "${ECHO_T}yes" >&6
23669         ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
23670 else
23671   echo "$as_me: failed program was:" >&5
23672 sed 's/^/| /' conftest.$ac_ext >&5
23673
23674 echo "$as_me:$LINENO: result: no" >&5
23675 echo "${ECHO_T}no" >&6
23676         ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
23677         ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
23678         ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
23679 fi
23680 rm -f conftest.err conftest.$ac_objext \
23681       conftest$ac_exeext conftest.$ac_ext
23682 echo "$as_me:$LINENO: checking for inet_aton" >&5
23683 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
23684 cat >conftest.$ac_ext <<_ACEOF
23685 /* confdefs.h.  */
23686 _ACEOF
23687 cat confdefs.h >>conftest.$ac_ext
23688 cat >>conftest.$ac_ext <<_ACEOF
23689 /* end confdefs.h.  */
23690
23691 #include <sys/types.h>
23692 #include <netinet/in.h>
23693 #include <arpa/inet.h>
23694 int
23695 main ()
23696 {
23697 struct in_addr in; inet_aton(0, &in); return (0);
23698   ;
23699   return 0;
23700 }
23701 _ACEOF
23702 rm -f conftest.$ac_objext conftest$ac_exeext
23703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23704   (eval $ac_link) 2>conftest.er1
23705   ac_status=$?
23706   grep -v '^ *+' conftest.er1 >conftest.err
23707   rm -f conftest.er1
23708   cat conftest.err >&5
23709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710   (exit $ac_status); } &&
23711          { ac_try='test -z "$ac_c_werror_flag"
23712                          || test ! -s conftest.err'
23713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23714   (eval $ac_try) 2>&5
23715   ac_status=$?
23716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717   (exit $ac_status); }; } &&
23718          { ac_try='test -s conftest$ac_exeext'
23719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23720   (eval $ac_try) 2>&5
23721   ac_status=$?
23722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723   (exit $ac_status); }; }; then
23724   echo "$as_me:$LINENO: result: yes" >&5
23725 echo "${ECHO_T}yes" >&6
23726         ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
23727 else
23728   echo "$as_me: failed program was:" >&5
23729 sed 's/^/| /' conftest.$ac_ext >&5
23730
23731 echo "$as_me:$LINENO: result: no" >&5
23732 echo "${ECHO_T}no" >&6
23733         ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.$O"
23734         ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_aton.c"
23735         ISC_PLATFORM_NEEDATON="#define ISC_PLATFORM_NEEDATON 1"
23736 fi
23737 rm -f conftest.err conftest.$ac_objext \
23738       conftest$ac_exeext conftest.$ac_ext
23739
23740
23741
23742
23743
23744 #
23745 # Look for a 4.4BSD-style sa_len member in struct sockaddr.
23746 #
23747 case "$host" in
23748         *-dec-osf*)
23749                 # Turn on 4.4BSD style sa_len support.
23750                 cat >>confdefs.h <<\_ACEOF
23751 #define _SOCKADDR_LEN 1
23752 _ACEOF
23753
23754                 ;;
23755 esac
23756
23757 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
23758 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
23759 cat >conftest.$ac_ext <<_ACEOF
23760 /* confdefs.h.  */
23761 _ACEOF
23762 cat confdefs.h >>conftest.$ac_ext
23763 cat >>conftest.$ac_ext <<_ACEOF
23764 /* end confdefs.h.  */
23765
23766 #include <sys/types.h>
23767 #include <sys/socket.h>
23768 int
23769 main ()
23770 {
23771 struct sockaddr sa; sa.sa_len = 0; return (0);
23772   ;
23773   return 0;
23774 }
23775 _ACEOF
23776 rm -f conftest.$ac_objext
23777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23778   (eval $ac_compile) 2>conftest.er1
23779   ac_status=$?
23780   grep -v '^ *+' conftest.er1 >conftest.err
23781   rm -f conftest.er1
23782   cat conftest.err >&5
23783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784   (exit $ac_status); } &&
23785          { ac_try='test -z "$ac_c_werror_flag"
23786                          || test ! -s conftest.err'
23787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23788   (eval $ac_try) 2>&5
23789   ac_status=$?
23790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791   (exit $ac_status); }; } &&
23792          { ac_try='test -s conftest.$ac_objext'
23793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23794   (eval $ac_try) 2>&5
23795   ac_status=$?
23796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797   (exit $ac_status); }; }; then
23798   echo "$as_me:$LINENO: result: yes" >&5
23799 echo "${ECHO_T}yes" >&6
23800         HAVE_SA_LEN="#define HAVE_SA_LEN 1"
23801 else
23802   echo "$as_me: failed program was:" >&5
23803 sed 's/^/| /' conftest.$ac_ext >&5
23804
23805 echo "$as_me:$LINENO: result: no" >&5
23806 echo "${ECHO_T}no" >&6
23807         HAVE_SA_LEN="#undef HAVE_SA_LEN"
23808 fi
23809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23810
23811
23812 # HAVE_MINIMUM_IFREQ
23813
23814 case "$host" in
23815         *-bsdi2345*)    have_minimum_ifreq=yes;;
23816         *-darwin*)      have_minimum_ifreq=yes;;
23817         *-freebsd*)     have_minimum_ifreq=yes;;
23818         *-lynxos*)      have_minimum_ifreq=yes;;
23819         *-netbsd*)      have_minimum_ifreq=yes;;
23820         *-next*)        have_minimum_ifreq=yes;;
23821         *-openbsd*)     have_minimum_ifreq=yes;;
23822         *-rhapsody*)    have_minimum_ifreq=yes;;
23823 esac
23824
23825 case "$have_minimum_ifreq" in
23826         yes)
23827                 HAVE_MINIMUM_IFREQ="#define HAVE_MINIMUM_IFREQ 1";;
23828         no)
23829                 HAVE_MINIMUM_IFREQ="#undef HAVE_MINIMUM_IFREQ";;
23830         *)
23831                 HAVE_MINIMUM_IFREQ="#undef HAVE_MINIMUM_IFREQ";;
23832 esac
23833
23834
23835 # PORT_DIR
23836 PORT_DIR=port/unknown
23837 SOLARIS_BITTYPES="#undef NEED_SOLARIS_BITTYPES"
23838 BSD_COMP="#undef BSD_COMP"
23839 USE_FIONBIO_IOCTL="#undef USE_FIONBIO_IOCTL"
23840 PORT_NONBLOCK="#define PORT_NONBLOCK O_NONBLOCK"
23841 HAVE_MD5="#undef HAVE_MD5"
23842 USE_POLL="#undef HAVE_POLL"
23843 SOLARIS2="#undef SOLARIS2"
23844 case "$host" in
23845         *aix3.2*)       PORT_DIR="port/aix32";;
23846         *aix4*)         PORT_DIR="port/aix4";;
23847         *aix5*)         PORT_DIR="port/aix5";;
23848         *aux3*)         PORT_DIR="port/aux3";;
23849         *-bsdi2*)       PORT_DIR="port/bsdos2";;
23850         *-bsdi*)        PORT_DIR="port/bsdos";;
23851         *-cygwin*)
23852                         PORT_NONBLOCK="#define PORT_NONBLOCK O_NDELAY"
23853                         PORT_DIR="port/cygwin";;
23854         *-darwin*)      PORT_DIR="port/darwin";;
23855         *-osf*)         PORT_DIR="port/decunix";;
23856         *-freebsd*)     PORT_DIR="port/freebsd";;
23857         *-hpux9*)       PORT_DIR="port/hpux9";;
23858         *-hpux10*)      PORT_DIR="port/hpux10";;
23859         *-hpux11*)      PORT_DIR="port/hpux";;
23860         *-irix*)        PORT_DIR="port/irix";;
23861         *-linux*)       PORT_DIR="port/linux";;
23862         *-lynxos*)      PORT_DIR="port/lynxos";;
23863         *-mpe*)         PORT_DIR="port/mpe";;
23864         *-netbsd*)      PORT_DIR="port/netbsd";;
23865         *-next*)        PORT_DIR="port/next";;
23866         *-openbsd*)     PORT_DIR="port/openbsd";;
23867         *-qnx*)         PORT_DIR="port/qnx";;
23868         *-rhapsody*)    PORT_DIR="port/rhapsody";;
23869         *-sunos4*)
23870                         PORT_NONBLOCK="#define PORT_NONBLOCK O_NDELAY"
23871                         PORT_DIR="port/sunos";;
23872         *-solaris2.[01234])
23873                         BSD_COMP="#define BSD_COMP 1"
23874                         SOLARIS_BITTYPES="#define NEED_SOLARIS_BITTYPES 1"
23875                         USE_FIONBIO_IOCTL="#define USE_FIONBIO_IOCTL 1"
23876                         SOLARIS2="#define SOLARIS2 1"
23877                         PORT_DIR="port/solaris";;
23878         *-solaris2.5)
23879                         BSD_COMP="#define BSD_COMP 1"
23880                         SOLARIS_BITTYPES="#define NEED_SOLARIS_BITTYPES 1"
23881                         SOLARIS2="#define SOLARIS2 1"
23882                         PORT_DIR="port/solaris";;
23883         *-solaris2.[67])
23884                         BSD_COMP="#define BSD_COMP 1"
23885                         SOLARIS2="#define SOLARIS2 1"
23886                         PORT_DIR="port/solaris";;
23887         *-solaris2*)    BSD_COMP="#define BSD_COMP 1"
23888                         USE_POLL="#define USE_POLL 1"
23889                         HAVE_MD5="#define HAVE_MD5 1"
23890                         SOLARIS2="#define SOLARIS2 1"
23891                         PORT_DIR="port/solaris";;
23892         *-ultrix*)      PORT_DIR="port/ultrix";;
23893         *-sco-sysv*uw2.0*)      PORT_DIR="port/unixware20";;
23894         *-sco-sysv*uw2.1.2*)    PORT_DIR="port/unixware212";;
23895         *-sco-sysv*uw7*)        PORT_DIR="port/unixware7";;
23896 esac
23897
23898
23899
23900
23901
23902
23903
23904
23905
23906 PORT_INCLUDE=${PORT_DIR}/include
23907
23908
23909 #
23910 # Look for a 4.4BSD or 4.3BSD struct msghdr
23911 #
23912 echo "$as_me:$LINENO: checking for struct msghdr flavor" >&5
23913 echo $ECHO_N "checking for struct msghdr flavor... $ECHO_C" >&6
23914 cat >conftest.$ac_ext <<_ACEOF
23915 /* confdefs.h.  */
23916 _ACEOF
23917 cat confdefs.h >>conftest.$ac_ext
23918 cat >>conftest.$ac_ext <<_ACEOF
23919 /* end confdefs.h.  */
23920
23921 #include <sys/types.h>
23922 #include <sys/socket.h>
23923 int
23924 main ()
23925 {
23926 struct msghdr msg; msg.msg_flags = 0; return (0);
23927   ;
23928   return 0;
23929 }
23930 _ACEOF
23931 rm -f conftest.$ac_objext
23932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23933   (eval $ac_compile) 2>conftest.er1
23934   ac_status=$?
23935   grep -v '^ *+' conftest.er1 >conftest.err
23936   rm -f conftest.er1
23937   cat conftest.err >&5
23938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939   (exit $ac_status); } &&
23940          { ac_try='test -z "$ac_c_werror_flag"
23941                          || test ! -s conftest.err'
23942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23943   (eval $ac_try) 2>&5
23944   ac_status=$?
23945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946   (exit $ac_status); }; } &&
23947          { ac_try='test -s conftest.$ac_objext'
23948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23949   (eval $ac_try) 2>&5
23950   ac_status=$?
23951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952   (exit $ac_status); }; }; then
23953   echo "$as_me:$LINENO: result: 4.4BSD" >&5
23954 echo "${ECHO_T}4.4BSD" >&6
23955         ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
23956 else
23957   echo "$as_me: failed program was:" >&5
23958 sed 's/^/| /' conftest.$ac_ext >&5
23959
23960 echo "$as_me:$LINENO: result: 4.3BSD" >&5
23961 echo "${ECHO_T}4.3BSD" >&6
23962         ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
23963 fi
23964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23965
23966
23967 #
23968 # Look for in_port_t.
23969 #
23970 echo "$as_me:$LINENO: checking for type in_port_t" >&5
23971 echo $ECHO_N "checking for type in_port_t... $ECHO_C" >&6
23972 cat >conftest.$ac_ext <<_ACEOF
23973 /* confdefs.h.  */
23974 _ACEOF
23975 cat confdefs.h >>conftest.$ac_ext
23976 cat >>conftest.$ac_ext <<_ACEOF
23977 /* end confdefs.h.  */
23978
23979 #include <sys/types.h>
23980 #include <netinet/in.h>
23981 int
23982 main ()
23983 {
23984 in_port_t port = 25; return (0);
23985   ;
23986   return 0;
23987 }
23988 _ACEOF
23989 rm -f conftest.$ac_objext
23990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23991   (eval $ac_compile) 2>conftest.er1
23992   ac_status=$?
23993   grep -v '^ *+' conftest.er1 >conftest.err
23994   rm -f conftest.er1
23995   cat conftest.err >&5
23996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997   (exit $ac_status); } &&
23998          { ac_try='test -z "$ac_c_werror_flag"
23999                          || test ! -s conftest.err'
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); }; } &&
24005          { ac_try='test -s conftest.$ac_objext'
24006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24007   (eval $ac_try) 2>&5
24008   ac_status=$?
24009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010   (exit $ac_status); }; }; then
24011   echo "$as_me:$LINENO: result: yes" >&5
24012 echo "${ECHO_T}yes" >&6
24013         ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
24014 else
24015   echo "$as_me: failed program was:" >&5
24016 sed 's/^/| /' conftest.$ac_ext >&5
24017
24018 echo "$as_me:$LINENO: result: no" >&5
24019 echo "${ECHO_T}no" >&6
24020         ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
24021 fi
24022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24023
24024
24025 #
24026 # Check for addrinfo
24027 #
24028 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24029 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
24030 cat >conftest.$ac_ext <<_ACEOF
24031 /* confdefs.h.  */
24032 _ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h.  */
24036
24037 #include <netdb.h>
24038 int
24039 main ()
24040 {
24041 struct addrinfo a; return (0);
24042   ;
24043   return 0;
24044 }
24045 _ACEOF
24046 rm -f conftest.$ac_objext
24047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24048   (eval $ac_compile) 2>conftest.er1
24049   ac_status=$?
24050   grep -v '^ *+' conftest.er1 >conftest.err
24051   rm -f conftest.er1
24052   cat conftest.err >&5
24053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054   (exit $ac_status); } &&
24055          { ac_try='test -z "$ac_c_werror_flag"
24056                          || test ! -s conftest.err'
24057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24058   (eval $ac_try) 2>&5
24059   ac_status=$?
24060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061   (exit $ac_status); }; } &&
24062          { ac_try='test -s conftest.$ac_objext'
24063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24064   (eval $ac_try) 2>&5
24065   ac_status=$?
24066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067   (exit $ac_status); }; }; then
24068   echo "$as_me:$LINENO: result: yes" >&5
24069 echo "${ECHO_T}yes" >&6
24070         cat >>confdefs.h <<\_ACEOF
24071 #define HAVE_ADDRINFO 1
24072 _ACEOF
24073
24074 else
24075   echo "$as_me: failed program was:" >&5
24076 sed 's/^/| /' conftest.$ac_ext >&5
24077
24078 echo "$as_me:$LINENO: result: no" >&5
24079 echo "${ECHO_T}no" >&6
24080 fi
24081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24082
24083 echo "$as_me:$LINENO: checking for int sethostent" >&5
24084 echo $ECHO_N "checking for int sethostent... $ECHO_C" >&6
24085 cat >conftest.$ac_ext <<_ACEOF
24086 /* confdefs.h.  */
24087 _ACEOF
24088 cat confdefs.h >>conftest.$ac_ext
24089 cat >>conftest.$ac_ext <<_ACEOF
24090 /* end confdefs.h.  */
24091
24092 #include <netdb.h>
24093 int
24094 main ()
24095 {
24096 int i = sethostent(0); return(0);
24097   ;
24098   return 0;
24099 }
24100 _ACEOF
24101 rm -f conftest.$ac_objext
24102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24103   (eval $ac_compile) 2>conftest.er1
24104   ac_status=$?
24105   grep -v '^ *+' conftest.er1 >conftest.err
24106   rm -f conftest.er1
24107   cat conftest.err >&5
24108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109   (exit $ac_status); } &&
24110          { ac_try='test -z "$ac_c_werror_flag"
24111                          || test ! -s conftest.err'
24112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24113   (eval $ac_try) 2>&5
24114   ac_status=$?
24115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116   (exit $ac_status); }; } &&
24117          { ac_try='test -s conftest.$ac_objext'
24118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24119   (eval $ac_try) 2>&5
24120   ac_status=$?
24121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122   (exit $ac_status); }; }; then
24123   echo "$as_me:$LINENO: result: yes" >&5
24124 echo "${ECHO_T}yes" >&6
24125 else
24126   echo "$as_me: failed program was:" >&5
24127 sed 's/^/| /' conftest.$ac_ext >&5
24128
24129 echo "$as_me:$LINENO: result: no" >&5
24130 echo "${ECHO_T}no" >&6
24131 fi
24132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24133
24134 echo "$as_me:$LINENO: checking for int endhostent" >&5
24135 echo $ECHO_N "checking for int endhostent... $ECHO_C" >&6
24136 cat >conftest.$ac_ext <<_ACEOF
24137 /* confdefs.h.  */
24138 _ACEOF
24139 cat confdefs.h >>conftest.$ac_ext
24140 cat >>conftest.$ac_ext <<_ACEOF
24141 /* end confdefs.h.  */
24142
24143 #include <netdb.h>
24144 int
24145 main ()
24146 {
24147 int i = endhostent(); return(0);
24148   ;
24149   return 0;
24150 }
24151 _ACEOF
24152 rm -f conftest.$ac_objext
24153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24154   (eval $ac_compile) 2>conftest.er1
24155   ac_status=$?
24156   grep -v '^ *+' conftest.er1 >conftest.err
24157   rm -f conftest.er1
24158   cat conftest.err >&5
24159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160   (exit $ac_status); } &&
24161          { ac_try='test -z "$ac_c_werror_flag"
24162                          || test ! -s conftest.err'
24163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24164   (eval $ac_try) 2>&5
24165   ac_status=$?
24166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167   (exit $ac_status); }; } &&
24168          { ac_try='test -s conftest.$ac_objext'
24169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24170   (eval $ac_try) 2>&5
24171   ac_status=$?
24172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173   (exit $ac_status); }; }; then
24174   echo "$as_me:$LINENO: result: yes" >&5
24175 echo "${ECHO_T}yes" >&6
24176         ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
24177 else
24178   echo "$as_me: failed program was:" >&5
24179 sed 's/^/| /' conftest.$ac_ext >&5
24180
24181 echo "$as_me:$LINENO: result: no" >&5
24182 echo "${ECHO_T}no" >&6
24183         ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
24184 fi
24185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24186
24187
24188 echo "$as_me:$LINENO: checking for int setnetent" >&5
24189 echo $ECHO_N "checking for int setnetent... $ECHO_C" >&6
24190 cat >conftest.$ac_ext <<_ACEOF
24191 /* confdefs.h.  */
24192 _ACEOF
24193 cat confdefs.h >>conftest.$ac_ext
24194 cat >>conftest.$ac_ext <<_ACEOF
24195 /* end confdefs.h.  */
24196
24197 #include <netdb.h>
24198 int
24199 main ()
24200 {
24201 int i = setnetent(0); return(0);
24202   ;
24203   return 0;
24204 }
24205 _ACEOF
24206 rm -f conftest.$ac_objext
24207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24208   (eval $ac_compile) 2>conftest.er1
24209   ac_status=$?
24210   grep -v '^ *+' conftest.er1 >conftest.err
24211   rm -f conftest.er1
24212   cat conftest.err >&5
24213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214   (exit $ac_status); } &&
24215          { ac_try='test -z "$ac_c_werror_flag"
24216                          || test ! -s conftest.err'
24217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24218   (eval $ac_try) 2>&5
24219   ac_status=$?
24220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221   (exit $ac_status); }; } &&
24222          { ac_try='test -s conftest.$ac_objext'
24223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24224   (eval $ac_try) 2>&5
24225   ac_status=$?
24226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227   (exit $ac_status); }; }; then
24228   echo "$as_me:$LINENO: result: yes" >&5
24229 echo "${ECHO_T}yes" >&6
24230         ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
24231 else
24232   echo "$as_me: failed program was:" >&5
24233 sed 's/^/| /' conftest.$ac_ext >&5
24234
24235 echo "$as_me:$LINENO: result: no" >&5
24236 echo "${ECHO_T}no" >&6
24237         ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
24238 fi
24239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24240
24241
24242 echo "$as_me:$LINENO: checking for int endnetent" >&5
24243 echo $ECHO_N "checking for int endnetent... $ECHO_C" >&6
24244 cat >conftest.$ac_ext <<_ACEOF
24245 /* confdefs.h.  */
24246 _ACEOF
24247 cat confdefs.h >>conftest.$ac_ext
24248 cat >>conftest.$ac_ext <<_ACEOF
24249 /* end confdefs.h.  */
24250
24251 #include <netdb.h>
24252 int
24253 main ()
24254 {
24255 int i = endnetent(); return(0);
24256   ;
24257   return 0;
24258 }
24259 _ACEOF
24260 rm -f conftest.$ac_objext
24261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24262   (eval $ac_compile) 2>conftest.er1
24263   ac_status=$?
24264   grep -v '^ *+' conftest.er1 >conftest.err
24265   rm -f conftest.er1
24266   cat conftest.err >&5
24267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268   (exit $ac_status); } &&
24269          { ac_try='test -z "$ac_c_werror_flag"
24270                          || test ! -s conftest.err'
24271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24272   (eval $ac_try) 2>&5
24273   ac_status=$?
24274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275   (exit $ac_status); }; } &&
24276          { ac_try='test -s conftest.$ac_objext'
24277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24278   (eval $ac_try) 2>&5
24279   ac_status=$?
24280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24281   (exit $ac_status); }; }; then
24282   echo "$as_me:$LINENO: result: yes" >&5
24283 echo "${ECHO_T}yes" >&6
24284         ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
24285 else
24286   echo "$as_me: failed program was:" >&5
24287 sed 's/^/| /' conftest.$ac_ext >&5
24288
24289 echo "$as_me:$LINENO: result: no" >&5
24290 echo "${ECHO_T}no" >&6
24291         ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
24292 fi
24293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24294
24295
24296 echo "$as_me:$LINENO: checking for gethostbyaddr(const void *, size_t, ...)" >&5
24297 echo $ECHO_N "checking for gethostbyaddr(const void *, size_t, ...)... $ECHO_C" >&6
24298 cat >conftest.$ac_ext <<_ACEOF
24299 /* confdefs.h.  */
24300 _ACEOF
24301 cat confdefs.h >>conftest.$ac_ext
24302 cat >>conftest.$ac_ext <<_ACEOF
24303 /* end confdefs.h.  */
24304
24305 #include <netdb.h>
24306 struct hostent *gethostbyaddr(const void *, size_t, int);
24307 int
24308 main ()
24309 {
24310 return(0);
24311   ;
24312   return 0;
24313 }
24314 _ACEOF
24315 rm -f conftest.$ac_objext
24316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24317   (eval $ac_compile) 2>conftest.er1
24318   ac_status=$?
24319   grep -v '^ *+' conftest.er1 >conftest.err
24320   rm -f conftest.er1
24321   cat conftest.err >&5
24322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323   (exit $ac_status); } &&
24324          { ac_try='test -z "$ac_c_werror_flag"
24325                          || test ! -s conftest.err'
24326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327   (eval $ac_try) 2>&5
24328   ac_status=$?
24329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330   (exit $ac_status); }; } &&
24331          { ac_try='test -s conftest.$ac_objext'
24332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24333   (eval $ac_try) 2>&5
24334   ac_status=$?
24335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336   (exit $ac_status); }; }; then
24337   echo "$as_me:$LINENO: result: yes" >&5
24338 echo "${ECHO_T}yes" >&6
24339         ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
24340 else
24341   echo "$as_me: failed program was:" >&5
24342 sed 's/^/| /' conftest.$ac_ext >&5
24343
24344 echo "$as_me:$LINENO: result: no" >&5
24345 echo "${ECHO_T}no" >&6
24346         ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
24347 fi
24348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24349
24350
24351 echo "$as_me:$LINENO: checking for h_errno in netdb.h" >&5
24352 echo $ECHO_N "checking for h_errno in netdb.h... $ECHO_C" >&6
24353 cat >conftest.$ac_ext <<_ACEOF
24354 /* confdefs.h.  */
24355 _ACEOF
24356 cat confdefs.h >>conftest.$ac_ext
24357 cat >>conftest.$ac_ext <<_ACEOF
24358 /* end confdefs.h.  */
24359
24360 #include <netdb.h>
24361 int
24362 main ()
24363 {
24364 h_errno = 1; return(0);
24365   ;
24366   return 0;
24367 }
24368 _ACEOF
24369 rm -f conftest.$ac_objext
24370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24371   (eval $ac_compile) 2>conftest.er1
24372   ac_status=$?
24373   grep -v '^ *+' conftest.er1 >conftest.err
24374   rm -f conftest.er1
24375   cat conftest.err >&5
24376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377   (exit $ac_status); } &&
24378          { ac_try='test -z "$ac_c_werror_flag"
24379                          || test ! -s conftest.err'
24380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24381   (eval $ac_try) 2>&5
24382   ac_status=$?
24383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384   (exit $ac_status); }; } &&
24385          { ac_try='test -s conftest.$ac_objext'
24386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24387   (eval $ac_try) 2>&5
24388   ac_status=$?
24389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390   (exit $ac_status); }; }; then
24391   echo "$as_me:$LINENO: result: yes" >&5
24392 echo "${ECHO_T}yes" >&6
24393         ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
24394 else
24395   echo "$as_me: failed program was:" >&5
24396 sed 's/^/| /' conftest.$ac_ext >&5
24397
24398 echo "$as_me:$LINENO: result: no" >&5
24399 echo "${ECHO_T}no" >&6
24400         ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
24401 fi
24402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24403
24404
24405 echo "$as_me:$LINENO: checking for getipnodebyname" >&5
24406 echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6
24407 if test "${ac_cv_func_getipnodebyname+set}" = set; then
24408   echo $ECHO_N "(cached) $ECHO_C" >&6
24409 else
24410   cat >conftest.$ac_ext <<_ACEOF
24411 /* confdefs.h.  */
24412 _ACEOF
24413 cat confdefs.h >>conftest.$ac_ext
24414 cat >>conftest.$ac_ext <<_ACEOF
24415 /* end confdefs.h.  */
24416 /* Define getipnodebyname to an innocuous variant, in case <limits.h> declares getipnodebyname.
24417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24418 #define getipnodebyname innocuous_getipnodebyname
24419
24420 /* System header to define __stub macros and hopefully few prototypes,
24421     which can conflict with char getipnodebyname (); below.
24422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24423     <limits.h> exists even on freestanding compilers.  */
24424
24425 #ifdef __STDC__
24426 # include <limits.h>
24427 #else
24428 # include <assert.h>
24429 #endif
24430
24431 #undef getipnodebyname
24432
24433 /* Override any gcc2 internal prototype to avoid an error.  */
24434 #ifdef __cplusplus
24435 extern "C"
24436 {
24437 #endif
24438 /* We use char because int might match the return type of a gcc2
24439    builtin and then its argument prototype would still apply.  */
24440 char getipnodebyname ();
24441 /* The GNU C library defines this for functions which it implements
24442     to always fail with ENOSYS.  Some functions are actually named
24443     something starting with __ and the normal name is an alias.  */
24444 #if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
24445 choke me
24446 #else
24447 char (*f) () = getipnodebyname;
24448 #endif
24449 #ifdef __cplusplus
24450 }
24451 #endif
24452
24453 int
24454 main ()
24455 {
24456 return f != getipnodebyname;
24457   ;
24458   return 0;
24459 }
24460 _ACEOF
24461 rm -f conftest.$ac_objext conftest$ac_exeext
24462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24463   (eval $ac_link) 2>conftest.er1
24464   ac_status=$?
24465   grep -v '^ *+' conftest.er1 >conftest.err
24466   rm -f conftest.er1
24467   cat conftest.err >&5
24468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469   (exit $ac_status); } &&
24470          { ac_try='test -z "$ac_c_werror_flag"
24471                          || test ! -s conftest.err'
24472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473   (eval $ac_try) 2>&5
24474   ac_status=$?
24475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476   (exit $ac_status); }; } &&
24477          { ac_try='test -s conftest$ac_exeext'
24478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479   (eval $ac_try) 2>&5
24480   ac_status=$?
24481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482   (exit $ac_status); }; }; then
24483   ac_cv_func_getipnodebyname=yes
24484 else
24485   echo "$as_me: failed program was:" >&5
24486 sed 's/^/| /' conftest.$ac_ext >&5
24487
24488 ac_cv_func_getipnodebyname=no
24489 fi
24490 rm -f conftest.err conftest.$ac_objext \
24491       conftest$ac_exeext conftest.$ac_ext
24492 fi
24493 echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
24494 echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6
24495 if test $ac_cv_func_getipnodebyname = yes; then
24496   ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
24497 else
24498   ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
24499 fi
24500
24501 echo "$as_me:$LINENO: checking for getnameinfo" >&5
24502 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
24503 if test "${ac_cv_func_getnameinfo+set}" = set; then
24504   echo $ECHO_N "(cached) $ECHO_C" >&6
24505 else
24506   cat >conftest.$ac_ext <<_ACEOF
24507 /* confdefs.h.  */
24508 _ACEOF
24509 cat confdefs.h >>conftest.$ac_ext
24510 cat >>conftest.$ac_ext <<_ACEOF
24511 /* end confdefs.h.  */
24512 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
24513    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24514 #define getnameinfo innocuous_getnameinfo
24515
24516 /* System header to define __stub macros and hopefully few prototypes,
24517     which can conflict with char getnameinfo (); below.
24518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24519     <limits.h> exists even on freestanding compilers.  */
24520
24521 #ifdef __STDC__
24522 # include <limits.h>
24523 #else
24524 # include <assert.h>
24525 #endif
24526
24527 #undef getnameinfo
24528
24529 /* Override any gcc2 internal prototype to avoid an error.  */
24530 #ifdef __cplusplus
24531 extern "C"
24532 {
24533 #endif
24534 /* We use char because int might match the return type of a gcc2
24535    builtin and then its argument prototype would still apply.  */
24536 char getnameinfo ();
24537 /* The GNU C library defines this for functions which it implements
24538     to always fail with ENOSYS.  Some functions are actually named
24539     something starting with __ and the normal name is an alias.  */
24540 #if defined (__stub_getnameinfo) || defined (__stub___getnameinfo)
24541 choke me
24542 #else
24543 char (*f) () = getnameinfo;
24544 #endif
24545 #ifdef __cplusplus
24546 }
24547 #endif
24548
24549 int
24550 main ()
24551 {
24552 return f != getnameinfo;
24553   ;
24554   return 0;
24555 }
24556 _ACEOF
24557 rm -f conftest.$ac_objext conftest$ac_exeext
24558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24559   (eval $ac_link) 2>conftest.er1
24560   ac_status=$?
24561   grep -v '^ *+' conftest.er1 >conftest.err
24562   rm -f conftest.er1
24563   cat conftest.err >&5
24564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565   (exit $ac_status); } &&
24566          { ac_try='test -z "$ac_c_werror_flag"
24567                          || test ! -s conftest.err'
24568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24569   (eval $ac_try) 2>&5
24570   ac_status=$?
24571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572   (exit $ac_status); }; } &&
24573          { ac_try='test -s conftest$ac_exeext'
24574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24575   (eval $ac_try) 2>&5
24576   ac_status=$?
24577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24578   (exit $ac_status); }; }; then
24579   ac_cv_func_getnameinfo=yes
24580 else
24581   echo "$as_me: failed program was:" >&5
24582 sed 's/^/| /' conftest.$ac_ext >&5
24583
24584 ac_cv_func_getnameinfo=no
24585 fi
24586 rm -f conftest.err conftest.$ac_objext \
24587       conftest$ac_exeext conftest.$ac_ext
24588 fi
24589 echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
24590 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6
24591 if test $ac_cv_func_getnameinfo = yes; then
24592   ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
24593 else
24594   ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
24595 fi
24596
24597 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
24598 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
24599 if test "${ac_cv_func_getaddrinfo+set}" = set; then
24600   echo $ECHO_N "(cached) $ECHO_C" >&6
24601 else
24602   cat >conftest.$ac_ext <<_ACEOF
24603 /* confdefs.h.  */
24604 _ACEOF
24605 cat confdefs.h >>conftest.$ac_ext
24606 cat >>conftest.$ac_ext <<_ACEOF
24607 /* end confdefs.h.  */
24608 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
24609    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24610 #define getaddrinfo innocuous_getaddrinfo
24611
24612 /* System header to define __stub macros and hopefully few prototypes,
24613     which can conflict with char getaddrinfo (); below.
24614     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24615     <limits.h> exists even on freestanding compilers.  */
24616
24617 #ifdef __STDC__
24618 # include <limits.h>
24619 #else
24620 # include <assert.h>
24621 #endif
24622
24623 #undef getaddrinfo
24624
24625 /* Override any gcc2 internal prototype to avoid an error.  */
24626 #ifdef __cplusplus
24627 extern "C"
24628 {
24629 #endif
24630 /* We use char because int might match the return type of a gcc2
24631    builtin and then its argument prototype would still apply.  */
24632 char getaddrinfo ();
24633 /* The GNU C library defines this for functions which it implements
24634     to always fail with ENOSYS.  Some functions are actually named
24635     something starting with __ and the normal name is an alias.  */
24636 #if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
24637 choke me
24638 #else
24639 char (*f) () = getaddrinfo;
24640 #endif
24641 #ifdef __cplusplus
24642 }
24643 #endif
24644
24645 int
24646 main ()
24647 {
24648 return f != getaddrinfo;
24649   ;
24650   return 0;
24651 }
24652 _ACEOF
24653 rm -f conftest.$ac_objext conftest$ac_exeext
24654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24655   (eval $ac_link) 2>conftest.er1
24656   ac_status=$?
24657   grep -v '^ *+' conftest.er1 >conftest.err
24658   rm -f conftest.er1
24659   cat conftest.err >&5
24660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661   (exit $ac_status); } &&
24662          { ac_try='test -z "$ac_c_werror_flag"
24663                          || test ! -s conftest.err'
24664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24665   (eval $ac_try) 2>&5
24666   ac_status=$?
24667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668   (exit $ac_status); }; } &&
24669          { ac_try='test -s conftest$ac_exeext'
24670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24671   (eval $ac_try) 2>&5
24672   ac_status=$?
24673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674   (exit $ac_status); }; }; then
24675   ac_cv_func_getaddrinfo=yes
24676 else
24677   echo "$as_me: failed program was:" >&5
24678 sed 's/^/| /' conftest.$ac_ext >&5
24679
24680 ac_cv_func_getaddrinfo=no
24681 fi
24682 rm -f conftest.err conftest.$ac_objext \
24683       conftest$ac_exeext conftest.$ac_ext
24684 fi
24685 echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
24686 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
24687 if test $ac_cv_func_getaddrinfo = yes; then
24688   ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
24689         cat >>confdefs.h <<\_ACEOF
24690 #define HAVE_GETADDRINFO 1
24691 _ACEOF
24692
24693 else
24694   ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
24695 fi
24696
24697 echo "$as_me:$LINENO: checking for gai_strerror" >&5
24698 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
24699 if test "${ac_cv_func_gai_strerror+set}" = set; then
24700   echo $ECHO_N "(cached) $ECHO_C" >&6
24701 else
24702   cat >conftest.$ac_ext <<_ACEOF
24703 /* confdefs.h.  */
24704 _ACEOF
24705 cat confdefs.h >>conftest.$ac_ext
24706 cat >>conftest.$ac_ext <<_ACEOF
24707 /* end confdefs.h.  */
24708 /* Define gai_strerror to an innocuous variant, in case <limits.h> declares gai_strerror.
24709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24710 #define gai_strerror innocuous_gai_strerror
24711
24712 /* System header to define __stub macros and hopefully few prototypes,
24713     which can conflict with char gai_strerror (); below.
24714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24715     <limits.h> exists even on freestanding compilers.  */
24716
24717 #ifdef __STDC__
24718 # include <limits.h>
24719 #else
24720 # include <assert.h>
24721 #endif
24722
24723 #undef gai_strerror
24724
24725 /* Override any gcc2 internal prototype to avoid an error.  */
24726 #ifdef __cplusplus
24727 extern "C"
24728 {
24729 #endif
24730 /* We use char because int might match the return type of a gcc2
24731    builtin and then its argument prototype would still apply.  */
24732 char gai_strerror ();
24733 /* The GNU C library defines this for functions which it implements
24734     to always fail with ENOSYS.  Some functions are actually named
24735     something starting with __ and the normal name is an alias.  */
24736 #if defined (__stub_gai_strerror) || defined (__stub___gai_strerror)
24737 choke me
24738 #else
24739 char (*f) () = gai_strerror;
24740 #endif
24741 #ifdef __cplusplus
24742 }
24743 #endif
24744
24745 int
24746 main ()
24747 {
24748 return f != gai_strerror;
24749   ;
24750   return 0;
24751 }
24752 _ACEOF
24753 rm -f conftest.$ac_objext conftest$ac_exeext
24754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24755   (eval $ac_link) 2>conftest.er1
24756   ac_status=$?
24757   grep -v '^ *+' conftest.er1 >conftest.err
24758   rm -f conftest.er1
24759   cat conftest.err >&5
24760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761   (exit $ac_status); } &&
24762          { ac_try='test -z "$ac_c_werror_flag"
24763                          || test ! -s conftest.err'
24764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24765   (eval $ac_try) 2>&5
24766   ac_status=$?
24767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768   (exit $ac_status); }; } &&
24769          { ac_try='test -s conftest$ac_exeext'
24770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24771   (eval $ac_try) 2>&5
24772   ac_status=$?
24773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774   (exit $ac_status); }; }; then
24775   ac_cv_func_gai_strerror=yes
24776 else
24777   echo "$as_me: failed program was:" >&5
24778 sed 's/^/| /' conftest.$ac_ext >&5
24779
24780 ac_cv_func_gai_strerror=no
24781 fi
24782 rm -f conftest.err conftest.$ac_objext \
24783       conftest$ac_exeext conftest.$ac_ext
24784 fi
24785 echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5
24786 echo "${ECHO_T}$ac_cv_func_gai_strerror" >&6
24787 if test $ac_cv_func_gai_strerror = yes; then
24788   cat >>confdefs.h <<\_ACEOF
24789 #define HAVE_GAISTRERROR 1
24790 _ACEOF
24791
24792 fi
24793
24794
24795
24796
24797 echo "$as_me:$LINENO: checking for pselect" >&5
24798 echo $ECHO_N "checking for pselect... $ECHO_C" >&6
24799 if test "${ac_cv_func_pselect+set}" = set; then
24800   echo $ECHO_N "(cached) $ECHO_C" >&6
24801 else
24802   cat >conftest.$ac_ext <<_ACEOF
24803 /* confdefs.h.  */
24804 _ACEOF
24805 cat confdefs.h >>conftest.$ac_ext
24806 cat >>conftest.$ac_ext <<_ACEOF
24807 /* end confdefs.h.  */
24808 /* Define pselect to an innocuous variant, in case <limits.h> declares pselect.
24809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24810 #define pselect innocuous_pselect
24811
24812 /* System header to define __stub macros and hopefully few prototypes,
24813     which can conflict with char pselect (); below.
24814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24815     <limits.h> exists even on freestanding compilers.  */
24816
24817 #ifdef __STDC__
24818 # include <limits.h>
24819 #else
24820 # include <assert.h>
24821 #endif
24822
24823 #undef pselect
24824
24825 /* Override any gcc2 internal prototype to avoid an error.  */
24826 #ifdef __cplusplus
24827 extern "C"
24828 {
24829 #endif
24830 /* We use char because int might match the return type of a gcc2
24831    builtin and then its argument prototype would still apply.  */
24832 char pselect ();
24833 /* The GNU C library defines this for functions which it implements
24834     to always fail with ENOSYS.  Some functions are actually named
24835     something starting with __ and the normal name is an alias.  */
24836 #if defined (__stub_pselect) || defined (__stub___pselect)
24837 choke me
24838 #else
24839 char (*f) () = pselect;
24840 #endif
24841 #ifdef __cplusplus
24842 }
24843 #endif
24844
24845 int
24846 main ()
24847 {
24848 return f != pselect;
24849   ;
24850   return 0;
24851 }
24852 _ACEOF
24853 rm -f conftest.$ac_objext conftest$ac_exeext
24854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24855   (eval $ac_link) 2>conftest.er1
24856   ac_status=$?
24857   grep -v '^ *+' conftest.er1 >conftest.err
24858   rm -f conftest.er1
24859   cat conftest.err >&5
24860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861   (exit $ac_status); } &&
24862          { ac_try='test -z "$ac_c_werror_flag"
24863                          || test ! -s conftest.err'
24864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24865   (eval $ac_try) 2>&5
24866   ac_status=$?
24867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868   (exit $ac_status); }; } &&
24869          { ac_try='test -s conftest$ac_exeext'
24870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24871   (eval $ac_try) 2>&5
24872   ac_status=$?
24873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874   (exit $ac_status); }; }; then
24875   ac_cv_func_pselect=yes
24876 else
24877   echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24879
24880 ac_cv_func_pselect=no
24881 fi
24882 rm -f conftest.err conftest.$ac_objext \
24883       conftest$ac_exeext conftest.$ac_ext
24884 fi
24885 echo "$as_me:$LINENO: result: $ac_cv_func_pselect" >&5
24886 echo "${ECHO_T}$ac_cv_func_pselect" >&6
24887 if test $ac_cv_func_pselect = yes; then
24888   NEED_PSELECT="#undef NEED_PSELECT"
24889 else
24890   NEED_PSELECT="#define NEED_PSELECT"
24891 fi
24892
24893
24894 echo "$as_me:$LINENO: checking for gettimeofday" >&5
24895 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
24896 if test "${ac_cv_func_gettimeofday+set}" = set; then
24897   echo $ECHO_N "(cached) $ECHO_C" >&6
24898 else
24899   cat >conftest.$ac_ext <<_ACEOF
24900 /* confdefs.h.  */
24901 _ACEOF
24902 cat confdefs.h >>conftest.$ac_ext
24903 cat >>conftest.$ac_ext <<_ACEOF
24904 /* end confdefs.h.  */
24905 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
24906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24907 #define gettimeofday innocuous_gettimeofday
24908
24909 /* System header to define __stub macros and hopefully few prototypes,
24910     which can conflict with char gettimeofday (); below.
24911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24912     <limits.h> exists even on freestanding compilers.  */
24913
24914 #ifdef __STDC__
24915 # include <limits.h>
24916 #else
24917 # include <assert.h>
24918 #endif
24919
24920 #undef gettimeofday
24921
24922 /* Override any gcc2 internal prototype to avoid an error.  */
24923 #ifdef __cplusplus
24924 extern "C"
24925 {
24926 #endif
24927 /* We use char because int might match the return type of a gcc2
24928    builtin and then its argument prototype would still apply.  */
24929 char gettimeofday ();
24930 /* The GNU C library defines this for functions which it implements
24931     to always fail with ENOSYS.  Some functions are actually named
24932     something starting with __ and the normal name is an alias.  */
24933 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
24934 choke me
24935 #else
24936 char (*f) () = gettimeofday;
24937 #endif
24938 #ifdef __cplusplus
24939 }
24940 #endif
24941
24942 int
24943 main ()
24944 {
24945 return f != gettimeofday;
24946   ;
24947   return 0;
24948 }
24949 _ACEOF
24950 rm -f conftest.$ac_objext conftest$ac_exeext
24951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24952   (eval $ac_link) 2>conftest.er1
24953   ac_status=$?
24954   grep -v '^ *+' conftest.er1 >conftest.err
24955   rm -f conftest.er1
24956   cat conftest.err >&5
24957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958   (exit $ac_status); } &&
24959          { ac_try='test -z "$ac_c_werror_flag"
24960                          || test ! -s conftest.err'
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); }; } &&
24966          { ac_try='test -s conftest$ac_exeext'
24967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24968   (eval $ac_try) 2>&5
24969   ac_status=$?
24970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971   (exit $ac_status); }; }; then
24972   ac_cv_func_gettimeofday=yes
24973 else
24974   echo "$as_me: failed program was:" >&5
24975 sed 's/^/| /' conftest.$ac_ext >&5
24976
24977 ac_cv_func_gettimeofday=no
24978 fi
24979 rm -f conftest.err conftest.$ac_objext \
24980       conftest$ac_exeext conftest.$ac_ext
24981 fi
24982 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
24983 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
24984 if test $ac_cv_func_gettimeofday = yes; then
24985   NEED_GETTIMEOFDAY="#undef NEED_GETTIMEOFDAY"
24986 else
24987   NEED_GETTIMEOFDAY="#define NEED_GETTIMEOFDAY 1"
24988 fi
24989
24990
24991 echo "$as_me:$LINENO: checking for strndup" >&5
24992 echo $ECHO_N "checking for strndup... $ECHO_C" >&6
24993 if test "${ac_cv_func_strndup+set}" = set; then
24994   echo $ECHO_N "(cached) $ECHO_C" >&6
24995 else
24996   cat >conftest.$ac_ext <<_ACEOF
24997 /* confdefs.h.  */
24998 _ACEOF
24999 cat confdefs.h >>conftest.$ac_ext
25000 cat >>conftest.$ac_ext <<_ACEOF
25001 /* end confdefs.h.  */
25002 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
25003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25004 #define strndup innocuous_strndup
25005
25006 /* System header to define __stub macros and hopefully few prototypes,
25007     which can conflict with char strndup (); below.
25008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25009     <limits.h> exists even on freestanding compilers.  */
25010
25011 #ifdef __STDC__
25012 # include <limits.h>
25013 #else
25014 # include <assert.h>
25015 #endif
25016
25017 #undef strndup
25018
25019 /* Override any gcc2 internal prototype to avoid an error.  */
25020 #ifdef __cplusplus
25021 extern "C"
25022 {
25023 #endif
25024 /* We use char because int might match the return type of a gcc2
25025    builtin and then its argument prototype would still apply.  */
25026 char strndup ();
25027 /* The GNU C library defines this for functions which it implements
25028     to always fail with ENOSYS.  Some functions are actually named
25029     something starting with __ and the normal name is an alias.  */
25030 #if defined (__stub_strndup) || defined (__stub___strndup)
25031 choke me
25032 #else
25033 char (*f) () = strndup;
25034 #endif
25035 #ifdef __cplusplus
25036 }
25037 #endif
25038
25039 int
25040 main ()
25041 {
25042 return f != strndup;
25043   ;
25044   return 0;
25045 }
25046 _ACEOF
25047 rm -f conftest.$ac_objext conftest$ac_exeext
25048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25049   (eval $ac_link) 2>conftest.er1
25050   ac_status=$?
25051   grep -v '^ *+' conftest.er1 >conftest.err
25052   rm -f conftest.er1
25053   cat conftest.err >&5
25054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055   (exit $ac_status); } &&
25056          { ac_try='test -z "$ac_c_werror_flag"
25057                          || test ! -s conftest.err'
25058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25059   (eval $ac_try) 2>&5
25060   ac_status=$?
25061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062   (exit $ac_status); }; } &&
25063          { ac_try='test -s conftest$ac_exeext'
25064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25065   (eval $ac_try) 2>&5
25066   ac_status=$?
25067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068   (exit $ac_status); }; }; then
25069   ac_cv_func_strndup=yes
25070 else
25071   echo "$as_me: failed program was:" >&5
25072 sed 's/^/| /' conftest.$ac_ext >&5
25073
25074 ac_cv_func_strndup=no
25075 fi
25076 rm -f conftest.err conftest.$ac_objext \
25077       conftest$ac_exeext conftest.$ac_ext
25078 fi
25079 echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
25080 echo "${ECHO_T}$ac_cv_func_strndup" >&6
25081 if test $ac_cv_func_strndup = yes; then
25082   HAVE_STRNDUP="#define HAVE_STRNDUP 1"
25083 else
25084   HAVE_STRNDUP="#undef HAVE_STRNDUP"
25085 fi
25086
25087
25088
25089 #
25090 # Look for a sysctl call to get the list of network interfaces.
25091 #
25092 echo "$as_me:$LINENO: checking for interface list sysctl" >&5
25093 echo $ECHO_N "checking for interface list sysctl... $ECHO_C" >&6
25094 cat >conftest.$ac_ext <<_ACEOF
25095 /* confdefs.h.  */
25096 _ACEOF
25097 cat confdefs.h >>conftest.$ac_ext
25098 cat >>conftest.$ac_ext <<_ACEOF
25099 /* end confdefs.h.  */
25100
25101 #include <sys/param.h>
25102 #include <sys/sysctl.h>
25103 #include <sys/socket.h>
25104 #ifdef NET_RT_IFLIST
25105 found_rt_iflist
25106 #endif
25107
25108 _ACEOF
25109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25110   $EGREP "found_rt_iflist" >/dev/null 2>&1; then
25111   echo "$as_me:$LINENO: result: yes" >&5
25112 echo "${ECHO_T}yes" >&6
25113          cat >>confdefs.h <<\_ACEOF
25114 #define HAVE_IFLIST_SYSCTL 1
25115 _ACEOF
25116
25117 else
25118   echo "$as_me:$LINENO: result: no" >&5
25119 echo "${ECHO_T}no" >&6
25120 fi
25121 rm -f conftest*
25122
25123
25124 #
25125 # Check for some other useful functions that are not ever-present.
25126 #
25127 echo "$as_me:$LINENO: checking for strsep" >&5
25128 echo $ECHO_N "checking for strsep... $ECHO_C" >&6
25129 if test "${ac_cv_func_strsep+set}" = set; then
25130   echo $ECHO_N "(cached) $ECHO_C" >&6
25131 else
25132   cat >conftest.$ac_ext <<_ACEOF
25133 /* confdefs.h.  */
25134 _ACEOF
25135 cat confdefs.h >>conftest.$ac_ext
25136 cat >>conftest.$ac_ext <<_ACEOF
25137 /* end confdefs.h.  */
25138 /* Define strsep to an innocuous variant, in case <limits.h> declares strsep.
25139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25140 #define strsep innocuous_strsep
25141
25142 /* System header to define __stub macros and hopefully few prototypes,
25143     which can conflict with char strsep (); below.
25144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25145     <limits.h> exists even on freestanding compilers.  */
25146
25147 #ifdef __STDC__
25148 # include <limits.h>
25149 #else
25150 # include <assert.h>
25151 #endif
25152
25153 #undef strsep
25154
25155 /* Override any gcc2 internal prototype to avoid an error.  */
25156 #ifdef __cplusplus
25157 extern "C"
25158 {
25159 #endif
25160 /* We use char because int might match the return type of a gcc2
25161    builtin and then its argument prototype would still apply.  */
25162 char strsep ();
25163 /* The GNU C library defines this for functions which it implements
25164     to always fail with ENOSYS.  Some functions are actually named
25165     something starting with __ and the normal name is an alias.  */
25166 #if defined (__stub_strsep) || defined (__stub___strsep)
25167 choke me
25168 #else
25169 char (*f) () = strsep;
25170 #endif
25171 #ifdef __cplusplus
25172 }
25173 #endif
25174
25175 int
25176 main ()
25177 {
25178 return f != strsep;
25179   ;
25180   return 0;
25181 }
25182 _ACEOF
25183 rm -f conftest.$ac_objext conftest$ac_exeext
25184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25185   (eval $ac_link) 2>conftest.er1
25186   ac_status=$?
25187   grep -v '^ *+' conftest.er1 >conftest.err
25188   rm -f conftest.er1
25189   cat conftest.err >&5
25190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191   (exit $ac_status); } &&
25192          { ac_try='test -z "$ac_c_werror_flag"
25193                          || test ! -s conftest.err'
25194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25195   (eval $ac_try) 2>&5
25196   ac_status=$?
25197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198   (exit $ac_status); }; } &&
25199          { ac_try='test -s conftest$ac_exeext'
25200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25201   (eval $ac_try) 2>&5
25202   ac_status=$?
25203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204   (exit $ac_status); }; }; then
25205   ac_cv_func_strsep=yes
25206 else
25207   echo "$as_me: failed program was:" >&5
25208 sed 's/^/| /' conftest.$ac_ext >&5
25209
25210 ac_cv_func_strsep=no
25211 fi
25212 rm -f conftest.err conftest.$ac_objext \
25213       conftest$ac_exeext conftest.$ac_ext
25214 fi
25215 echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
25216 echo "${ECHO_T}$ac_cv_func_strsep" >&6
25217 if test $ac_cv_func_strsep = yes; then
25218   ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
25219 else
25220   ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
25221 fi
25222
25223 echo "$as_me:$LINENO: checking for vsnprintf" >&5
25224 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
25225 if test "${ac_cv_func_vsnprintf+set}" = set; then
25226   echo $ECHO_N "(cached) $ECHO_C" >&6
25227 else
25228   cat >conftest.$ac_ext <<_ACEOF
25229 /* confdefs.h.  */
25230 _ACEOF
25231 cat confdefs.h >>conftest.$ac_ext
25232 cat >>conftest.$ac_ext <<_ACEOF
25233 /* end confdefs.h.  */
25234 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
25235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25236 #define vsnprintf innocuous_vsnprintf
25237
25238 /* System header to define __stub macros and hopefully few prototypes,
25239     which can conflict with char vsnprintf (); below.
25240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25241     <limits.h> exists even on freestanding compilers.  */
25242
25243 #ifdef __STDC__
25244 # include <limits.h>
25245 #else
25246 # include <assert.h>
25247 #endif
25248
25249 #undef vsnprintf
25250
25251 /* Override any gcc2 internal prototype to avoid an error.  */
25252 #ifdef __cplusplus
25253 extern "C"
25254 {
25255 #endif
25256 /* We use char because int might match the return type of a gcc2
25257    builtin and then its argument prototype would still apply.  */
25258 char vsnprintf ();
25259 /* The GNU C library defines this for functions which it implements
25260     to always fail with ENOSYS.  Some functions are actually named
25261     something starting with __ and the normal name is an alias.  */
25262 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
25263 choke me
25264 #else
25265 char (*f) () = vsnprintf;
25266 #endif
25267 #ifdef __cplusplus
25268 }
25269 #endif
25270
25271 int
25272 main ()
25273 {
25274 return f != vsnprintf;
25275   ;
25276   return 0;
25277 }
25278 _ACEOF
25279 rm -f conftest.$ac_objext conftest$ac_exeext
25280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25281   (eval $ac_link) 2>conftest.er1
25282   ac_status=$?
25283   grep -v '^ *+' conftest.er1 >conftest.err
25284   rm -f conftest.er1
25285   cat conftest.err >&5
25286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25287   (exit $ac_status); } &&
25288          { ac_try='test -z "$ac_c_werror_flag"
25289                          || test ! -s conftest.err'
25290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25291   (eval $ac_try) 2>&5
25292   ac_status=$?
25293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294   (exit $ac_status); }; } &&
25295          { ac_try='test -s conftest$ac_exeext'
25296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25297   (eval $ac_try) 2>&5
25298   ac_status=$?
25299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300   (exit $ac_status); }; }; then
25301   ac_cv_func_vsnprintf=yes
25302 else
25303   echo "$as_me: failed program was:" >&5
25304 sed 's/^/| /' conftest.$ac_ext >&5
25305
25306 ac_cv_func_vsnprintf=no
25307 fi
25308 rm -f conftest.err conftest.$ac_objext \
25309       conftest$ac_exeext conftest.$ac_ext
25310 fi
25311 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
25312 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
25313 if test $ac_cv_func_vsnprintf = yes; then
25314   ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
25315 else
25316   ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS print.$O"
25317          ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS print.c"
25318          ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
25319 fi
25320
25321
25322
25323
25324
25325
25326 echo "$as_me:$LINENO: checking for strerror" >&5
25327 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
25328 if test "${ac_cv_func_strerror+set}" = set; then
25329   echo $ECHO_N "(cached) $ECHO_C" >&6
25330 else
25331   cat >conftest.$ac_ext <<_ACEOF
25332 /* confdefs.h.  */
25333 _ACEOF
25334 cat confdefs.h >>conftest.$ac_ext
25335 cat >>conftest.$ac_ext <<_ACEOF
25336 /* end confdefs.h.  */
25337 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
25338    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25339 #define strerror innocuous_strerror
25340
25341 /* System header to define __stub macros and hopefully few prototypes,
25342     which can conflict with char strerror (); below.
25343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25344     <limits.h> exists even on freestanding compilers.  */
25345
25346 #ifdef __STDC__
25347 # include <limits.h>
25348 #else
25349 # include <assert.h>
25350 #endif
25351
25352 #undef strerror
25353
25354 /* Override any gcc2 internal prototype to avoid an error.  */
25355 #ifdef __cplusplus
25356 extern "C"
25357 {
25358 #endif
25359 /* We use char because int might match the return type of a gcc2
25360    builtin and then its argument prototype would still apply.  */
25361 char strerror ();
25362 /* The GNU C library defines this for functions which it implements
25363     to always fail with ENOSYS.  Some functions are actually named
25364     something starting with __ and the normal name is an alias.  */
25365 #if defined (__stub_strerror) || defined (__stub___strerror)
25366 choke me
25367 #else
25368 char (*f) () = strerror;
25369 #endif
25370 #ifdef __cplusplus
25371 }
25372 #endif
25373
25374 int
25375 main ()
25376 {
25377 return f != strerror;
25378   ;
25379   return 0;
25380 }
25381 _ACEOF
25382 rm -f conftest.$ac_objext conftest$ac_exeext
25383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25384   (eval $ac_link) 2>conftest.er1
25385   ac_status=$?
25386   grep -v '^ *+' conftest.er1 >conftest.err
25387   rm -f conftest.er1
25388   cat conftest.err >&5
25389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390   (exit $ac_status); } &&
25391          { ac_try='test -z "$ac_c_werror_flag"
25392                          || test ! -s conftest.err'
25393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25394   (eval $ac_try) 2>&5
25395   ac_status=$?
25396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397   (exit $ac_status); }; } &&
25398          { ac_try='test -s conftest$ac_exeext'
25399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25400   (eval $ac_try) 2>&5
25401   ac_status=$?
25402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403   (exit $ac_status); }; }; then
25404   ac_cv_func_strerror=yes
25405 else
25406   echo "$as_me: failed program was:" >&5
25407 sed 's/^/| /' conftest.$ac_ext >&5
25408
25409 ac_cv_func_strerror=no
25410 fi
25411 rm -f conftest.err conftest.$ac_objext \
25412       conftest$ac_exeext conftest.$ac_ext
25413 fi
25414 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
25415 echo "${ECHO_T}$ac_cv_func_strerror" >&6
25416 if test $ac_cv_func_strerror = yes; then
25417   USE_SYSERROR_LIST="#undef USE_SYSERROR_LIST"
25418 else
25419   USE_SYSERROR_LIST="#define USE_SYSERROR_LIST 1"
25420 fi
25421
25422
25423
25424 #
25425 # Determine the printf format characters to use when printing
25426 # values of type isc_int64_t.  We make the assumption that platforms
25427 # where a "long long" is the same size as a "long" (e.g., Alpha/OSF1)
25428 # want "%ld" and everyone else can use "%lld".  Win32 uses "%I64d",
25429 # but that's defined elsewhere since we don't use configure on Win32.
25430 #
25431 echo "$as_me:$LINENO: checking printf format modifier for 64-bit integers" >&5
25432 echo $ECHO_N "checking printf format modifier for 64-bit integers... $ECHO_C" >&6
25433 if test "$cross_compiling" = yes; then
25434   echo "$as_me:$LINENO: result: default ll" >&5
25435 echo "${ECHO_T}default ll" >&6
25436         ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
25437 else
25438   cat >conftest.$ac_ext <<_ACEOF
25439 /* confdefs.h.  */
25440 _ACEOF
25441 cat confdefs.h >>conftest.$ac_ext
25442 cat >>conftest.$ac_ext <<_ACEOF
25443 /* end confdefs.h.  */
25444 main() { exit(!(sizeof(long long int) == sizeof(long int))); }
25445 _ACEOF
25446 rm -f conftest$ac_exeext
25447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25448   (eval $ac_link) 2>&5
25449   ac_status=$?
25450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25453   (eval $ac_try) 2>&5
25454   ac_status=$?
25455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456   (exit $ac_status); }; }; then
25457   echo "$as_me:$LINENO: result: l" >&5
25458 echo "${ECHO_T}l" >&6
25459         ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"'
25460 else
25461   echo "$as_me: program exited with status $ac_status" >&5
25462 echo "$as_me: failed program was:" >&5
25463 sed 's/^/| /' conftest.$ac_ext >&5
25464
25465 ( exit $ac_status )
25466 echo "$as_me:$LINENO: result: ll" >&5
25467 echo "${ECHO_T}ll" >&6
25468         ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
25469 fi
25470 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25471 fi
25472
25473
25474 #
25475 # Security Stuff
25476 #
25477 echo "$as_me:$LINENO: checking for chroot" >&5
25478 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
25479 if test "${ac_cv_func_chroot+set}" = set; then
25480   echo $ECHO_N "(cached) $ECHO_C" >&6
25481 else
25482   cat >conftest.$ac_ext <<_ACEOF
25483 /* confdefs.h.  */
25484 _ACEOF
25485 cat confdefs.h >>conftest.$ac_ext
25486 cat >>conftest.$ac_ext <<_ACEOF
25487 /* end confdefs.h.  */
25488 /* Define chroot to an innocuous variant, in case <limits.h> declares chroot.
25489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25490 #define chroot innocuous_chroot
25491
25492 /* System header to define __stub macros and hopefully few prototypes,
25493     which can conflict with char chroot (); below.
25494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25495     <limits.h> exists even on freestanding compilers.  */
25496
25497 #ifdef __STDC__
25498 # include <limits.h>
25499 #else
25500 # include <assert.h>
25501 #endif
25502
25503 #undef chroot
25504
25505 /* Override any gcc2 internal prototype to avoid an error.  */
25506 #ifdef __cplusplus
25507 extern "C"
25508 {
25509 #endif
25510 /* We use char because int might match the return type of a gcc2
25511    builtin and then its argument prototype would still apply.  */
25512 char chroot ();
25513 /* The GNU C library defines this for functions which it implements
25514     to always fail with ENOSYS.  Some functions are actually named
25515     something starting with __ and the normal name is an alias.  */
25516 #if defined (__stub_chroot) || defined (__stub___chroot)
25517 choke me
25518 #else
25519 char (*f) () = chroot;
25520 #endif
25521 #ifdef __cplusplus
25522 }
25523 #endif
25524
25525 int
25526 main ()
25527 {
25528 return f != chroot;
25529   ;
25530   return 0;
25531 }
25532 _ACEOF
25533 rm -f conftest.$ac_objext conftest$ac_exeext
25534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25535   (eval $ac_link) 2>conftest.er1
25536   ac_status=$?
25537   grep -v '^ *+' conftest.er1 >conftest.err
25538   rm -f conftest.er1
25539   cat conftest.err >&5
25540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541   (exit $ac_status); } &&
25542          { ac_try='test -z "$ac_c_werror_flag"
25543                          || test ! -s conftest.err'
25544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25545   (eval $ac_try) 2>&5
25546   ac_status=$?
25547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548   (exit $ac_status); }; } &&
25549          { ac_try='test -s conftest$ac_exeext'
25550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25551   (eval $ac_try) 2>&5
25552   ac_status=$?
25553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554   (exit $ac_status); }; }; then
25555   ac_cv_func_chroot=yes
25556 else
25557   echo "$as_me: failed program was:" >&5
25558 sed 's/^/| /' conftest.$ac_ext >&5
25559
25560 ac_cv_func_chroot=no
25561 fi
25562 rm -f conftest.err conftest.$ac_objext \
25563       conftest$ac_exeext conftest.$ac_ext
25564 fi
25565 echo "$as_me:$LINENO: result: $ac_cv_func_chroot" >&5
25566 echo "${ECHO_T}$ac_cv_func_chroot" >&6
25567 if test $ac_cv_func_chroot = yes; then
25568   cat >>confdefs.h <<\_ACEOF
25569 #define HAVE_CHROOT 1
25570 _ACEOF
25571
25572 fi
25573
25574
25575 #
25576 # for accept, recvfrom, getpeername etc.
25577 #
25578 echo "$as_me:$LINENO: checking for socket length type" >&5
25579 echo $ECHO_N "checking for socket length type... $ECHO_C" >&6
25580 cat >conftest.$ac_ext <<_ACEOF
25581 /* confdefs.h.  */
25582 _ACEOF
25583 cat confdefs.h >>conftest.$ac_ext
25584 cat >>conftest.$ac_ext <<_ACEOF
25585 /* end confdefs.h.  */
25586
25587 #include <sys/types.h>
25588 #include <sys/socket.h>
25589 int accept(int, struct sockaddr *, socklen_t *);
25590
25591 int
25592 main ()
25593 {
25594
25595   ;
25596   return 0;
25597 }
25598 _ACEOF
25599 rm -f conftest.$ac_objext
25600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25601   (eval $ac_compile) 2>conftest.er1
25602   ac_status=$?
25603   grep -v '^ *+' conftest.er1 >conftest.err
25604   rm -f conftest.er1
25605   cat conftest.err >&5
25606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607   (exit $ac_status); } &&
25608          { ac_try='test -z "$ac_c_werror_flag"
25609                          || test ! -s conftest.err'
25610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25611   (eval $ac_try) 2>&5
25612   ac_status=$?
25613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614   (exit $ac_status); }; } &&
25615          { ac_try='test -s conftest.$ac_objext'
25616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25617   (eval $ac_try) 2>&5
25618   ac_status=$?
25619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620   (exit $ac_status); }; }; then
25621   ISC_SOCKLEN_T="#define ISC_SOCKLEN_T socklen_t"
25622 echo "$as_me:$LINENO: result: socklen_t" >&5
25623 echo "${ECHO_T}socklen_t" >&6
25624
25625 else
25626   echo "$as_me: failed program was:" >&5
25627 sed 's/^/| /' conftest.$ac_ext >&5
25628
25629 cat >conftest.$ac_ext <<_ACEOF
25630 /* confdefs.h.  */
25631 _ACEOF
25632 cat confdefs.h >>conftest.$ac_ext
25633 cat >>conftest.$ac_ext <<_ACEOF
25634 /* end confdefs.h.  */
25635
25636 #include <sys/types.h>
25637 #include <sys/socket.h>
25638 int accept(int, struct sockaddr *, unsigned int *);
25639
25640 int
25641 main ()
25642 {
25643
25644   ;
25645   return 0;
25646 }
25647 _ACEOF
25648 rm -f conftest.$ac_objext
25649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25650   (eval $ac_compile) 2>conftest.er1
25651   ac_status=$?
25652   grep -v '^ *+' conftest.er1 >conftest.err
25653   rm -f conftest.er1
25654   cat conftest.err >&5
25655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656   (exit $ac_status); } &&
25657          { ac_try='test -z "$ac_c_werror_flag"
25658                          || test ! -s conftest.err'
25659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25660   (eval $ac_try) 2>&5
25661   ac_status=$?
25662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25663   (exit $ac_status); }; } &&
25664          { ac_try='test -s conftest.$ac_objext'
25665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25666   (eval $ac_try) 2>&5
25667   ac_status=$?
25668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669   (exit $ac_status); }; }; then
25670   ISC_SOCKLEN_T="#define ISC_SOCKLEN_T unsigned int"
25671 echo "$as_me:$LINENO: result: unsigned int" >&5
25672 echo "${ECHO_T}unsigned int" >&6
25673
25674 else
25675   echo "$as_me: failed program was:" >&5
25676 sed 's/^/| /' conftest.$ac_ext >&5
25677
25678 cat >conftest.$ac_ext <<_ACEOF
25679 /* confdefs.h.  */
25680 _ACEOF
25681 cat confdefs.h >>conftest.$ac_ext
25682 cat >>conftest.$ac_ext <<_ACEOF
25683 /* end confdefs.h.  */
25684
25685 #include <sys/types.h>
25686 #include <sys/socket.h>
25687 int accept(int, struct sockaddr *, unsigned long *);
25688
25689 int
25690 main ()
25691 {
25692
25693   ;
25694   return 0;
25695 }
25696 _ACEOF
25697 rm -f conftest.$ac_objext
25698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25699   (eval $ac_compile) 2>conftest.er1
25700   ac_status=$?
25701   grep -v '^ *+' conftest.er1 >conftest.err
25702   rm -f conftest.er1
25703   cat conftest.err >&5
25704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705   (exit $ac_status); } &&
25706          { ac_try='test -z "$ac_c_werror_flag"
25707                          || test ! -s conftest.err'
25708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25709   (eval $ac_try) 2>&5
25710   ac_status=$?
25711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712   (exit $ac_status); }; } &&
25713          { ac_try='test -s conftest.$ac_objext'
25714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25715   (eval $ac_try) 2>&5
25716   ac_status=$?
25717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718   (exit $ac_status); }; }; then
25719   ISC_SOCKLEN_T="#define ISC_SOCKLEN_T unsigned long"
25720 echo "$as_me:$LINENO: result: unsigned long" >&5
25721 echo "${ECHO_T}unsigned long" >&6
25722
25723 else
25724   echo "$as_me: failed program was:" >&5
25725 sed 's/^/| /' conftest.$ac_ext >&5
25726
25727 cat >conftest.$ac_ext <<_ACEOF
25728 /* confdefs.h.  */
25729 _ACEOF
25730 cat confdefs.h >>conftest.$ac_ext
25731 cat >>conftest.$ac_ext <<_ACEOF
25732 /* end confdefs.h.  */
25733
25734 #include <sys/types.h>
25735 #include <sys/socket.h>
25736 int accept(int, struct sockaddr *, long *);
25737
25738 int
25739 main ()
25740 {
25741
25742   ;
25743   return 0;
25744 }
25745 _ACEOF
25746 rm -f conftest.$ac_objext
25747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25748   (eval $ac_compile) 2>conftest.er1
25749   ac_status=$?
25750   grep -v '^ *+' conftest.er1 >conftest.err
25751   rm -f conftest.er1
25752   cat conftest.err >&5
25753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754   (exit $ac_status); } &&
25755          { ac_try='test -z "$ac_c_werror_flag"
25756                          || test ! -s conftest.err'
25757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25758   (eval $ac_try) 2>&5
25759   ac_status=$?
25760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761   (exit $ac_status); }; } &&
25762          { ac_try='test -s conftest.$ac_objext'
25763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764   (eval $ac_try) 2>&5
25765   ac_status=$?
25766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767   (exit $ac_status); }; }; then
25768   ISC_SOCKLEN_T="#define ISC_SOCKLEN_T long"
25769 echo "$as_me:$LINENO: result: long" >&5
25770 echo "${ECHO_T}long" >&6
25771
25772 else
25773   echo "$as_me: failed program was:" >&5
25774 sed 's/^/| /' conftest.$ac_ext >&5
25775
25776 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T int"
25777 echo "$as_me:$LINENO: result: int" >&5
25778 echo "${ECHO_T}int" >&6
25779
25780 fi
25781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25782 fi
25783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25784 fi
25785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25786 fi
25787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25788
25789
25790 echo "$as_me:$LINENO: checking for getgrouplist" >&5
25791 echo $ECHO_N "checking for getgrouplist... $ECHO_C" >&6
25792 if test "${ac_cv_func_getgrouplist+set}" = set; then
25793   echo $ECHO_N "(cached) $ECHO_C" >&6
25794 else
25795   cat >conftest.$ac_ext <<_ACEOF
25796 /* confdefs.h.  */
25797 _ACEOF
25798 cat confdefs.h >>conftest.$ac_ext
25799 cat >>conftest.$ac_ext <<_ACEOF
25800 /* end confdefs.h.  */
25801 /* Define getgrouplist to an innocuous variant, in case <limits.h> declares getgrouplist.
25802    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25803 #define getgrouplist innocuous_getgrouplist
25804
25805 /* System header to define __stub macros and hopefully few prototypes,
25806     which can conflict with char getgrouplist (); below.
25807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25808     <limits.h> exists even on freestanding compilers.  */
25809
25810 #ifdef __STDC__
25811 # include <limits.h>
25812 #else
25813 # include <assert.h>
25814 #endif
25815
25816 #undef getgrouplist
25817
25818 /* Override any gcc2 internal prototype to avoid an error.  */
25819 #ifdef __cplusplus
25820 extern "C"
25821 {
25822 #endif
25823 /* We use char because int might match the return type of a gcc2
25824    builtin and then its argument prototype would still apply.  */
25825 char getgrouplist ();
25826 /* The GNU C library defines this for functions which it implements
25827     to always fail with ENOSYS.  Some functions are actually named
25828     something starting with __ and the normal name is an alias.  */
25829 #if defined (__stub_getgrouplist) || defined (__stub___getgrouplist)
25830 choke me
25831 #else
25832 char (*f) () = getgrouplist;
25833 #endif
25834 #ifdef __cplusplus
25835 }
25836 #endif
25837
25838 int
25839 main ()
25840 {
25841 return f != getgrouplist;
25842   ;
25843   return 0;
25844 }
25845 _ACEOF
25846 rm -f conftest.$ac_objext conftest$ac_exeext
25847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25848   (eval $ac_link) 2>conftest.er1
25849   ac_status=$?
25850   grep -v '^ *+' conftest.er1 >conftest.err
25851   rm -f conftest.er1
25852   cat conftest.err >&5
25853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854   (exit $ac_status); } &&
25855          { ac_try='test -z "$ac_c_werror_flag"
25856                          || test ! -s conftest.err'
25857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25858   (eval $ac_try) 2>&5
25859   ac_status=$?
25860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861   (exit $ac_status); }; } &&
25862          { ac_try='test -s conftest$ac_exeext'
25863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25864   (eval $ac_try) 2>&5
25865   ac_status=$?
25866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867   (exit $ac_status); }; }; then
25868   ac_cv_func_getgrouplist=yes
25869 else
25870   echo "$as_me: failed program was:" >&5
25871 sed 's/^/| /' conftest.$ac_ext >&5
25872
25873 ac_cv_func_getgrouplist=no
25874 fi
25875 rm -f conftest.err conftest.$ac_objext \
25876       conftest$ac_exeext conftest.$ac_ext
25877 fi
25878 echo "$as_me:$LINENO: result: $ac_cv_func_getgrouplist" >&5
25879 echo "${ECHO_T}$ac_cv_func_getgrouplist" >&6
25880 if test $ac_cv_func_getgrouplist = yes; then
25881   cat >conftest.$ac_ext <<_ACEOF
25882 /* confdefs.h.  */
25883 _ACEOF
25884 cat confdefs.h >>conftest.$ac_ext
25885 cat >>conftest.$ac_ext <<_ACEOF
25886 /* end confdefs.h.  */
25887 #include <unistd.h>
25888 int
25889 getgrouplist(const char *name, int basegid, int *groups, int *ngroups) {
25890 }
25891
25892 int
25893 main ()
25894 {
25895 return (0);
25896   ;
25897   return 0;
25898 }
25899 _ACEOF
25900 rm -f conftest.$ac_objext
25901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25902   (eval $ac_compile) 2>conftest.er1
25903   ac_status=$?
25904   grep -v '^ *+' conftest.er1 >conftest.err
25905   rm -f conftest.er1
25906   cat conftest.err >&5
25907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908   (exit $ac_status); } &&
25909          { ac_try='test -z "$ac_c_werror_flag"
25910                          || test ! -s conftest.err'
25911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25912   (eval $ac_try) 2>&5
25913   ac_status=$?
25914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915   (exit $ac_status); }; } &&
25916          { ac_try='test -s conftest.$ac_objext'
25917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25918   (eval $ac_try) 2>&5
25919   ac_status=$?
25920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921   (exit $ac_status); }; }; then
25922   GETGROUPLIST_ARGS="#define GETGROUPLIST_ARGS const char *name, int basegid, int *groups, int *ngroups"
25923
25924 else
25925   echo "$as_me: failed program was:" >&5
25926 sed 's/^/| /' conftest.$ac_ext >&5
25927
25928 GETGROUPLIST_ARGS="#define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, int *ngroups"
25929
25930 fi
25931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25932 else
25933   GETGROUPLIST_ARGS="#define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, int *ngroups"
25934 cat >>confdefs.h <<\_ACEOF
25935 #define NEED_GETGROUPLIST 1
25936 _ACEOF
25937
25938
25939 fi
25940
25941
25942
25943 echo "$as_me:$LINENO: checking for setgroupent" >&5
25944 echo $ECHO_N "checking for setgroupent... $ECHO_C" >&6
25945 if test "${ac_cv_func_setgroupent+set}" = set; then
25946   echo $ECHO_N "(cached) $ECHO_C" >&6
25947 else
25948   cat >conftest.$ac_ext <<_ACEOF
25949 /* confdefs.h.  */
25950 _ACEOF
25951 cat confdefs.h >>conftest.$ac_ext
25952 cat >>conftest.$ac_ext <<_ACEOF
25953 /* end confdefs.h.  */
25954 /* Define setgroupent to an innocuous variant, in case <limits.h> declares setgroupent.
25955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25956 #define setgroupent innocuous_setgroupent
25957
25958 /* System header to define __stub macros and hopefully few prototypes,
25959     which can conflict with char setgroupent (); below.
25960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25961     <limits.h> exists even on freestanding compilers.  */
25962
25963 #ifdef __STDC__
25964 # include <limits.h>
25965 #else
25966 # include <assert.h>
25967 #endif
25968
25969 #undef setgroupent
25970
25971 /* Override any gcc2 internal prototype to avoid an error.  */
25972 #ifdef __cplusplus
25973 extern "C"
25974 {
25975 #endif
25976 /* We use char because int might match the return type of a gcc2
25977    builtin and then its argument prototype would still apply.  */
25978 char setgroupent ();
25979 /* The GNU C library defines this for functions which it implements
25980     to always fail with ENOSYS.  Some functions are actually named
25981     something starting with __ and the normal name is an alias.  */
25982 #if defined (__stub_setgroupent) || defined (__stub___setgroupent)
25983 choke me
25984 #else
25985 char (*f) () = setgroupent;
25986 #endif
25987 #ifdef __cplusplus
25988 }
25989 #endif
25990
25991 int
25992 main ()
25993 {
25994 return f != setgroupent;
25995   ;
25996   return 0;
25997 }
25998 _ACEOF
25999 rm -f conftest.$ac_objext conftest$ac_exeext
26000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26001   (eval $ac_link) 2>conftest.er1
26002   ac_status=$?
26003   grep -v '^ *+' conftest.er1 >conftest.err
26004   rm -f conftest.er1
26005   cat conftest.err >&5
26006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007   (exit $ac_status); } &&
26008          { ac_try='test -z "$ac_c_werror_flag"
26009                          || test ! -s conftest.err'
26010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26011   (eval $ac_try) 2>&5
26012   ac_status=$?
26013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014   (exit $ac_status); }; } &&
26015          { ac_try='test -s conftest$ac_exeext'
26016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26017   (eval $ac_try) 2>&5
26018   ac_status=$?
26019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020   (exit $ac_status); }; }; then
26021   ac_cv_func_setgroupent=yes
26022 else
26023   echo "$as_me: failed program was:" >&5
26024 sed 's/^/| /' conftest.$ac_ext >&5
26025
26026 ac_cv_func_setgroupent=no
26027 fi
26028 rm -f conftest.err conftest.$ac_objext \
26029       conftest$ac_exeext conftest.$ac_ext
26030 fi
26031 echo "$as_me:$LINENO: result: $ac_cv_func_setgroupent" >&5
26032 echo "${ECHO_T}$ac_cv_func_setgroupent" >&6
26033 if test $ac_cv_func_setgroupent = yes; then
26034   :
26035 else
26036   cat >>confdefs.h <<\_ACEOF
26037 #define NEED_SETGROUPENT 1
26038 _ACEOF
26039
26040 fi
26041
26042
26043 case $host in
26044 ia64-hp-hpux11.*)
26045 ;;
26046 *)
26047 echo "$as_me:$LINENO: checking for getnetbyaddr_r" >&5
26048 echo $ECHO_N "checking for getnetbyaddr_r... $ECHO_C" >&6
26049 if test "${ac_cv_func_getnetbyaddr_r+set}" = set; then
26050   echo $ECHO_N "(cached) $ECHO_C" >&6
26051 else
26052   cat >conftest.$ac_ext <<_ACEOF
26053 /* confdefs.h.  */
26054 _ACEOF
26055 cat confdefs.h >>conftest.$ac_ext
26056 cat >>conftest.$ac_ext <<_ACEOF
26057 /* end confdefs.h.  */
26058 /* Define getnetbyaddr_r to an innocuous variant, in case <limits.h> declares getnetbyaddr_r.
26059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26060 #define getnetbyaddr_r innocuous_getnetbyaddr_r
26061
26062 /* System header to define __stub macros and hopefully few prototypes,
26063     which can conflict with char getnetbyaddr_r (); below.
26064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26065     <limits.h> exists even on freestanding compilers.  */
26066
26067 #ifdef __STDC__
26068 # include <limits.h>
26069 #else
26070 # include <assert.h>
26071 #endif
26072
26073 #undef getnetbyaddr_r
26074
26075 /* Override any gcc2 internal prototype to avoid an error.  */
26076 #ifdef __cplusplus
26077 extern "C"
26078 {
26079 #endif
26080 /* We use char because int might match the return type of a gcc2
26081    builtin and then its argument prototype would still apply.  */
26082 char getnetbyaddr_r ();
26083 /* The GNU C library defines this for functions which it implements
26084     to always fail with ENOSYS.  Some functions are actually named
26085     something starting with __ and the normal name is an alias.  */
26086 #if defined (__stub_getnetbyaddr_r) || defined (__stub___getnetbyaddr_r)
26087 choke me
26088 #else
26089 char (*f) () = getnetbyaddr_r;
26090 #endif
26091 #ifdef __cplusplus
26092 }
26093 #endif
26094
26095 int
26096 main ()
26097 {
26098 return f != getnetbyaddr_r;
26099   ;
26100   return 0;
26101 }
26102 _ACEOF
26103 rm -f conftest.$ac_objext conftest$ac_exeext
26104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26105   (eval $ac_link) 2>conftest.er1
26106   ac_status=$?
26107   grep -v '^ *+' conftest.er1 >conftest.err
26108   rm -f conftest.er1
26109   cat conftest.err >&5
26110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111   (exit $ac_status); } &&
26112          { ac_try='test -z "$ac_c_werror_flag"
26113                          || test ! -s conftest.err'
26114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26115   (eval $ac_try) 2>&5
26116   ac_status=$?
26117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118   (exit $ac_status); }; } &&
26119          { ac_try='test -s conftest$ac_exeext'
26120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26121   (eval $ac_try) 2>&5
26122   ac_status=$?
26123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124   (exit $ac_status); }; }; then
26125   ac_cv_func_getnetbyaddr_r=yes
26126 else
26127   echo "$as_me: failed program was:" >&5
26128 sed 's/^/| /' conftest.$ac_ext >&5
26129
26130 ac_cv_func_getnetbyaddr_r=no
26131 fi
26132 rm -f conftest.err conftest.$ac_objext \
26133       conftest$ac_exeext conftest.$ac_ext
26134 fi
26135 echo "$as_me:$LINENO: result: $ac_cv_func_getnetbyaddr_r" >&5
26136 echo "${ECHO_T}$ac_cv_func_getnetbyaddr_r" >&6
26137 if test $ac_cv_func_getnetbyaddr_r = yes; then
26138   cat >conftest.$ac_ext <<_ACEOF
26139 /* confdefs.h.  */
26140 _ACEOF
26141 cat confdefs.h >>conftest.$ac_ext
26142 cat >>conftest.$ac_ext <<_ACEOF
26143 /* end confdefs.h.  */
26144
26145 #undef _REENTRANT
26146 #define _REENTRANT
26147 #define _OSF_SOURCE
26148 #undef __USE_MISC
26149 #define __USE_MISC
26150 #include <netdb.h>
26151 struct netent *
26152 getnetbyaddr_r(long net, int type, struct netent *result, char *buffer,
26153 int buflen) {}
26154
26155 int
26156 main ()
26157 {
26158 return (0)
26159   ;
26160   return 0;
26161 }
26162 _ACEOF
26163 rm -f conftest.$ac_objext
26164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26165   (eval $ac_compile) 2>conftest.er1
26166   ac_status=$?
26167   grep -v '^ *+' conftest.er1 >conftest.err
26168   rm -f conftest.er1
26169   cat conftest.err >&5
26170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171   (exit $ac_status); } &&
26172          { ac_try='test -z "$ac_c_werror_flag"
26173                          || test ! -s conftest.err'
26174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26175   (eval $ac_try) 2>&5
26176   ac_status=$?
26177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178   (exit $ac_status); }; } &&
26179          { ac_try='test -s conftest.$ac_objext'
26180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181   (eval $ac_try) 2>&5
26182   ac_status=$?
26183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184   (exit $ac_status); }; }; then
26185
26186 NET_R_ARGS="#define NET_R_ARGS char *buf, int buflen"
26187 NET_R_BAD="#define NET_R_BAD NULL"
26188 NET_R_COPY="#define NET_R_COPY buf, buflen"
26189 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS NET_R_ARGS"
26190 NET_R_OK="#define NET_R_OK nptr"
26191 NET_R_SETANSWER="#undef NET_R_SETANSWER"
26192 NET_R_RETURN="#define NET_R_RETURN struct netent *"
26193 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long"
26194 NETENT_DATA="#undef NETENT_DATA"
26195
26196 else
26197   echo "$as_me: failed program was:" >&5
26198 sed 's/^/| /' conftest.$ac_ext >&5
26199
26200 cat >conftest.$ac_ext <<_ACEOF
26201 /* confdefs.h.  */
26202 _ACEOF
26203 cat confdefs.h >>conftest.$ac_ext
26204 cat >>conftest.$ac_ext <<_ACEOF
26205 /* end confdefs.h.  */
26206
26207 #undef _REENTRANT
26208 #define _REENTRANT
26209 #define _OSF_SOURCE
26210 #undef __USE_MISC
26211 #define __USE_MISC
26212 #include <netdb.h>
26213 int getnetbyaddr_r (unsigned long int, int, struct netent *,
26214                     char *, size_t, struct netent **, int *);
26215
26216 int
26217 main ()
26218 {
26219 return (0)
26220   ;
26221   return 0;
26222 }
26223 _ACEOF
26224 rm -f conftest.$ac_objext
26225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26226   (eval $ac_compile) 2>conftest.er1
26227   ac_status=$?
26228   grep -v '^ *+' conftest.er1 >conftest.err
26229   rm -f conftest.er1
26230   cat conftest.err >&5
26231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232   (exit $ac_status); } &&
26233          { ac_try='test -z "$ac_c_werror_flag"
26234                          || test ! -s conftest.err'
26235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26236   (eval $ac_try) 2>&5
26237   ac_status=$?
26238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26239   (exit $ac_status); }; } &&
26240          { ac_try='test -s conftest.$ac_objext'
26241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26242   (eval $ac_try) 2>&5
26243   ac_status=$?
26244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245   (exit $ac_status); }; }; then
26246
26247 NET_R_ARGS="#define NET_R_ARGS char *buf, size_t buflen, struct netent **answerp, int *h_errnop"
26248 NET_R_BAD="#define NET_R_BAD ERANGE"
26249 NET_R_COPY="#define NET_R_COPY buf, buflen"
26250 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS char *buf, size_t buflen"
26251 NET_R_OK="#define NET_R_OK 0"
26252 NET_R_SETANSWER="#define NET_R_SETANSWER 1"
26253 NET_R_RETURN="#define NET_R_RETURN int"
26254 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T unsigned long int"
26255 NETENT_DATA="#undef NETENT_DATA"
26256
26257 else
26258   echo "$as_me: failed program was:" >&5
26259 sed 's/^/| /' conftest.$ac_ext >&5
26260
26261 cat >conftest.$ac_ext <<_ACEOF
26262 /* confdefs.h.  */
26263 _ACEOF
26264 cat confdefs.h >>conftest.$ac_ext
26265 cat >>conftest.$ac_ext <<_ACEOF
26266 /* end confdefs.h.  */
26267
26268 #undef _REENTRANT
26269 #define _REENTRANT
26270 #define _OSF_SOURCE
26271 #undef __USE_MISC
26272 #define __USE_MISC
26273 #include <netdb.h>
26274 extern int getnetbyaddr_r(int, int, struct netent *, struct netent_data *);
26275
26276 int
26277 main ()
26278 {
26279 return (0)
26280   ;
26281   return 0;
26282 }
26283 _ACEOF
26284 rm -f conftest.$ac_objext
26285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26286   (eval $ac_compile) 2>conftest.er1
26287   ac_status=$?
26288   grep -v '^ *+' conftest.er1 >conftest.err
26289   rm -f conftest.er1
26290   cat conftest.err >&5
26291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292   (exit $ac_status); } &&
26293          { ac_try='test -z "$ac_c_werror_flag"
26294                          || test ! -s conftest.err'
26295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26296   (eval $ac_try) 2>&5
26297   ac_status=$?
26298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299   (exit $ac_status); }; } &&
26300          { ac_try='test -s conftest.$ac_objext'
26301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26302   (eval $ac_try) 2>&5
26303   ac_status=$?
26304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305   (exit $ac_status); }; }; then
26306
26307 NET_R_ARGS="#define NET_R_ARGS struct netent_data *ndptr"
26308 NET_R_BAD="#define NET_R_BAD (-1)"
26309 NET_R_COPY="#define NET_R_COPY ndptr"
26310 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS struct netent_data *ndptr"
26311 NET_R_OK="#define NET_R_OK 0"
26312 NET_R_SETANSWER="#undef NET_R_SETANSWER"
26313 NET_R_RETURN="#define NET_R_RETURN int"
26314 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T int"
26315 NETENT_DATA="#define NETENT_DATA 1"
26316
26317 else
26318   echo "$as_me: failed program was:" >&5
26319 sed 's/^/| /' conftest.$ac_ext >&5
26320
26321 cat >conftest.$ac_ext <<_ACEOF
26322 /* confdefs.h.  */
26323 _ACEOF
26324 cat confdefs.h >>conftest.$ac_ext
26325 cat >>conftest.$ac_ext <<_ACEOF
26326 /* end confdefs.h.  */
26327 #undef __USE_MISC
26328 #define __USE_MISC
26329 #include <netdb.h>
26330 int getnetbyaddr_r (in_addr_t, int, struct netent *, struct netent_data *);
26331
26332 int
26333 main ()
26334 {
26335 return (0)
26336   ;
26337   return 0;
26338 }
26339 _ACEOF
26340 rm -f conftest.$ac_objext
26341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26342   (eval $ac_compile) 2>conftest.er1
26343   ac_status=$?
26344   grep -v '^ *+' conftest.er1 >conftest.err
26345   rm -f conftest.er1
26346   cat conftest.err >&5
26347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348   (exit $ac_status); } &&
26349          { ac_try='test -z "$ac_c_werror_flag"
26350                          || test ! -s conftest.err'
26351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26352   (eval $ac_try) 2>&5
26353   ac_status=$?
26354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355   (exit $ac_status); }; } &&
26356          { ac_try='test -s conftest.$ac_objext'
26357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26358   (eval $ac_try) 2>&5
26359   ac_status=$?
26360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361   (exit $ac_status); }; }; then
26362
26363 NET_R_ARGS="#define NET_R_ARGS struct netent_data *ndptr"
26364 NET_R_BAD="#define NET_R_BAD (-1)"
26365 NET_R_COPY="#define NET_R_COPY ndptr"
26366 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS struct netent_data *ndptr"
26367 NET_R_OK="#define NET_R_OK 0"
26368 NET_R_SETANSWER="#undef NET_R_SETANSWER"
26369 NET_R_RETURN="#define NET_R_RETURN int"
26370 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long"
26371 NETENT_DATA="#define NETENT_DATA 1"
26372
26373 else
26374   echo "$as_me: failed program was:" >&5
26375 sed 's/^/| /' conftest.$ac_ext >&5
26376
26377 cat >conftest.$ac_ext <<_ACEOF
26378 /* confdefs.h.  */
26379 _ACEOF
26380 cat confdefs.h >>conftest.$ac_ext
26381 cat >>conftest.$ac_ext <<_ACEOF
26382 /* end confdefs.h.  */
26383 #undef __USE_MISC
26384 #define __USE_MISC
26385 #include <netdb.h>
26386 int getnetbyaddr_r (long, int, struct netent *, struct netent_data *);
26387
26388 int
26389 main ()
26390 {
26391 return (0)
26392   ;
26393   return 0;
26394 }
26395 _ACEOF
26396 rm -f conftest.$ac_objext
26397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26398   (eval $ac_compile) 2>conftest.er1
26399   ac_status=$?
26400   grep -v '^ *+' conftest.er1 >conftest.err
26401   rm -f conftest.er1
26402   cat conftest.err >&5
26403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404   (exit $ac_status); } &&
26405          { ac_try='test -z "$ac_c_werror_flag"
26406                          || test ! -s conftest.err'
26407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26408   (eval $ac_try) 2>&5
26409   ac_status=$?
26410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411   (exit $ac_status); }; } &&
26412          { ac_try='test -s conftest.$ac_objext'
26413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414   (eval $ac_try) 2>&5
26415   ac_status=$?
26416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417   (exit $ac_status); }; }; then
26418
26419 NET_R_ARGS="#define NET_R_ARGS struct netent_data *ndptr"
26420 NET_R_BAD="#define NET_R_BAD (-1)"
26421 NET_R_COPY="#define NET_R_COPY ndptr"
26422 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS struct netent_data *ndptr"
26423 NET_R_OK="#define NET_R_OK 0"
26424 NET_R_SETANSWER="#undef NET_R_SETANSWER"
26425 NET_R_RETURN="#define NET_R_RETURN int"
26426 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long"
26427 NETENT_DATA="#define NETENT_DATA 1"
26428
26429 else
26430   echo "$as_me: failed program was:" >&5
26431 sed 's/^/| /' conftest.$ac_ext >&5
26432
26433 cat >conftest.$ac_ext <<_ACEOF
26434 /* confdefs.h.  */
26435 _ACEOF
26436 cat confdefs.h >>conftest.$ac_ext
26437 cat >>conftest.$ac_ext <<_ACEOF
26438 /* end confdefs.h.  */
26439 #undef __USE_MISC
26440 #define __USE_MISC
26441 #include <netdb.h>
26442 int getnetbyaddr_r (uint32_t, int, struct netent *,
26443                     char *, size_t, struct netent **, int *);
26444
26445 int
26446 main ()
26447 {
26448 return (0)
26449   ;
26450   return 0;
26451 }
26452 _ACEOF
26453 rm -f conftest.$ac_objext
26454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26455   (eval $ac_compile) 2>conftest.er1
26456   ac_status=$?
26457   grep -v '^ *+' conftest.er1 >conftest.err
26458   rm -f conftest.er1
26459   cat conftest.err >&5
26460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461   (exit $ac_status); } &&
26462          { ac_try='test -z "$ac_c_werror_flag"
26463                          || test ! -s conftest.err'
26464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26465   (eval $ac_try) 2>&5
26466   ac_status=$?
26467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468   (exit $ac_status); }; } &&
26469          { ac_try='test -s conftest.$ac_objext'
26470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26471   (eval $ac_try) 2>&5
26472   ac_status=$?
26473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474   (exit $ac_status); }; }; then
26475
26476 NET_R_ARGS="#define NET_R_ARGS char *buf, size_t buflen, struct netent **answerp, int *h_errnop"
26477 NET_R_BAD="#define NET_R_BAD ERANGE"
26478 NET_R_COPY="#define NET_R_COPY buf, buflen"
26479 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS char *buf, size_t buflen"
26480 NET_R_OK="#define NET_R_OK 0"
26481 NET_R_SETANSWER="#define NET_R_SETANSWER 1"
26482 NET_R_RETURN="#define NET_R_RETURN int"
26483 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T unsigned long int"
26484 NETENT_DATA="#undef NETENT_DATA"
26485
26486 else
26487   echo "$as_me: failed program was:" >&5
26488 sed 's/^/| /' conftest.$ac_ext >&5
26489
26490 fi
26491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26492
26493 fi
26494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26495
26496 fi
26497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26498
26499 fi
26500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26501
26502 fi
26503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26504
26505 fi
26506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26507
26508 else
26509   NET_R_ARGS="#define NET_R_ARGS char *buf, int buflen"
26510 NET_R_BAD="#define NET_R_BAD NULL"
26511 NET_R_COPY="#define NET_R_COPY buf, buflen"
26512 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS NET_R_ARGS"
26513 NET_R_OK="#define NET_R_OK nptr"
26514 NET_R_SETANSWER="#undef NET_R_SETANSWER"
26515 NET_R_RETURN="#define NET_R_RETURN struct netent *"
26516 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long"
26517 NETENT_DATA="#undef NETENT_DATA"
26518
26519 fi
26520
26521 esac
26522
26523 case "$host" in
26524 *dec-osf*) GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T int" ;;
26525 esac
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536 echo "$as_me:$LINENO: checking for setnetent_r" >&5
26537 echo $ECHO_N "checking for setnetent_r... $ECHO_C" >&6
26538 if test "${ac_cv_func_setnetent_r+set}" = set; then
26539   echo $ECHO_N "(cached) $ECHO_C" >&6
26540 else
26541   cat >conftest.$ac_ext <<_ACEOF
26542 /* confdefs.h.  */
26543 _ACEOF
26544 cat confdefs.h >>conftest.$ac_ext
26545 cat >>conftest.$ac_ext <<_ACEOF
26546 /* end confdefs.h.  */
26547 /* Define setnetent_r to an innocuous variant, in case <limits.h> declares setnetent_r.
26548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26549 #define setnetent_r innocuous_setnetent_r
26550
26551 /* System header to define __stub macros and hopefully few prototypes,
26552     which can conflict with char setnetent_r (); below.
26553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26554     <limits.h> exists even on freestanding compilers.  */
26555
26556 #ifdef __STDC__
26557 # include <limits.h>
26558 #else
26559 # include <assert.h>
26560 #endif
26561
26562 #undef setnetent_r
26563
26564 /* Override any gcc2 internal prototype to avoid an error.  */
26565 #ifdef __cplusplus
26566 extern "C"
26567 {
26568 #endif
26569 /* We use char because int might match the return type of a gcc2
26570    builtin and then its argument prototype would still apply.  */
26571 char setnetent_r ();
26572 /* The GNU C library defines this for functions which it implements
26573     to always fail with ENOSYS.  Some functions are actually named
26574     something starting with __ and the normal name is an alias.  */
26575 #if defined (__stub_setnetent_r) || defined (__stub___setnetent_r)
26576 choke me
26577 #else
26578 char (*f) () = setnetent_r;
26579 #endif
26580 #ifdef __cplusplus
26581 }
26582 #endif
26583
26584 int
26585 main ()
26586 {
26587 return f != setnetent_r;
26588   ;
26589   return 0;
26590 }
26591 _ACEOF
26592 rm -f conftest.$ac_objext conftest$ac_exeext
26593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26594   (eval $ac_link) 2>conftest.er1
26595   ac_status=$?
26596   grep -v '^ *+' conftest.er1 >conftest.err
26597   rm -f conftest.er1
26598   cat conftest.err >&5
26599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600   (exit $ac_status); } &&
26601          { ac_try='test -z "$ac_c_werror_flag"
26602                          || test ! -s conftest.err'
26603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26604   (eval $ac_try) 2>&5
26605   ac_status=$?
26606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607   (exit $ac_status); }; } &&
26608          { ac_try='test -s conftest$ac_exeext'
26609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610   (eval $ac_try) 2>&5
26611   ac_status=$?
26612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613   (exit $ac_status); }; }; then
26614   ac_cv_func_setnetent_r=yes
26615 else
26616   echo "$as_me: failed program was:" >&5
26617 sed 's/^/| /' conftest.$ac_ext >&5
26618
26619 ac_cv_func_setnetent_r=no
26620 fi
26621 rm -f conftest.err conftest.$ac_objext \
26622       conftest$ac_exeext conftest.$ac_ext
26623 fi
26624 echo "$as_me:$LINENO: result: $ac_cv_func_setnetent_r" >&5
26625 echo "${ECHO_T}$ac_cv_func_setnetent_r" >&6
26626 if test $ac_cv_func_setnetent_r = yes; then
26627   cat >conftest.$ac_ext <<_ACEOF
26628 /* confdefs.h.  */
26629 _ACEOF
26630 cat confdefs.h >>conftest.$ac_ext
26631 cat >>conftest.$ac_ext <<_ACEOF
26632 /* end confdefs.h.  */
26633
26634 #undef __USE_MISC
26635 #define __USE_MISC
26636 #include <netdb.h>
26637 void  setnetent_r (int);
26638
26639 int
26640 main ()
26641 {
26642 return (0);
26643   ;
26644   return 0;
26645 }
26646 _ACEOF
26647 rm -f conftest.$ac_objext
26648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26649   (eval $ac_compile) 2>conftest.er1
26650   ac_status=$?
26651   grep -v '^ *+' conftest.er1 >conftest.err
26652   rm -f conftest.er1
26653   cat conftest.err >&5
26654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655   (exit $ac_status); } &&
26656          { ac_try='test -z "$ac_c_werror_flag"
26657                          || test ! -s conftest.err'
26658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26659   (eval $ac_try) 2>&5
26660   ac_status=$?
26661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26662   (exit $ac_status); }; } &&
26663          { ac_try='test -s conftest.$ac_objext'
26664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26665   (eval $ac_try) 2>&5
26666   ac_status=$?
26667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668   (exit $ac_status); }; }; then
26669
26670 NET_R_ENT_ARGS="#undef NET_R_ENT_ARGS /*empty*/"
26671 NET_R_SET_RESULT="#undef NET_R_SET_RESULT /*empty*/"
26672 NET_R_SET_RETURN="#define NET_R_SET_RETURN void"
26673
26674 else
26675   echo "$as_me: failed program was:" >&5
26676 sed 's/^/| /' conftest.$ac_ext >&5
26677
26678 cat >conftest.$ac_ext <<_ACEOF
26679 /* confdefs.h.  */
26680 _ACEOF
26681 cat confdefs.h >>conftest.$ac_ext
26682 cat >>conftest.$ac_ext <<_ACEOF
26683 /* end confdefs.h.  */
26684
26685 #define _REENTRANT
26686 #undef __USE_MISC
26687 #define __USE_MISC
26688 #include <netdb.h>
26689 extern int setnetent_r(int, struct netent_data *);
26690
26691 int
26692 main ()
26693 {
26694 return (0);
26695   ;
26696   return 0;
26697 }
26698 _ACEOF
26699 rm -f conftest.$ac_objext
26700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26701   (eval $ac_compile) 2>conftest.er1
26702   ac_status=$?
26703   grep -v '^ *+' conftest.er1 >conftest.err
26704   rm -f conftest.er1
26705   cat conftest.err >&5
26706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707   (exit $ac_status); } &&
26708          { ac_try='test -z "$ac_c_werror_flag"
26709                          || test ! -s conftest.err'
26710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26711   (eval $ac_try) 2>&5
26712   ac_status=$?
26713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714   (exit $ac_status); }; } &&
26715          { ac_try='test -s conftest.$ac_objext'
26716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26717   (eval $ac_try) 2>&5
26718   ac_status=$?
26719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26720   (exit $ac_status); }; }; then
26721
26722 NET_R_ENT_ARGS="#define NET_R_ENT_ARGS struct netent_data *ndptr"
26723 NET_R_SET_RESULT="#define NET_R_SET_RESULT NET_R_OK"
26724 NET_R_SET_RETURN="#define NET_R_SET_RETURN int"
26725
26726 else
26727   echo "$as_me: failed program was:" >&5
26728 sed 's/^/| /' conftest.$ac_ext >&5
26729
26730 fi
26731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26732
26733 fi
26734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26735
26736 else
26737   NET_R_ENT_ARGS="#undef NET_R_ENT_ARGS /*empty*/"
26738 NET_R_SET_RESULT="#undef NET_R_SET_RESULT /*empty*/"
26739 NET_R_SET_RETURN="#define NET_R_SET_RETURN void"
26740
26741 fi
26742
26743
26744
26745
26746
26747
26748 case $host in
26749 ia64-hp-hpux11.*)
26750 ;;
26751 *)
26752 echo "$as_me:$LINENO: checking for endnetent_r" >&5
26753 echo $ECHO_N "checking for endnetent_r... $ECHO_C" >&6
26754 if test "${ac_cv_func_endnetent_r+set}" = set; then
26755   echo $ECHO_N "(cached) $ECHO_C" >&6
26756 else
26757   cat >conftest.$ac_ext <<_ACEOF
26758 /* confdefs.h.  */
26759 _ACEOF
26760 cat confdefs.h >>conftest.$ac_ext
26761 cat >>conftest.$ac_ext <<_ACEOF
26762 /* end confdefs.h.  */
26763 /* Define endnetent_r to an innocuous variant, in case <limits.h> declares endnetent_r.
26764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26765 #define endnetent_r innocuous_endnetent_r
26766
26767 /* System header to define __stub macros and hopefully few prototypes,
26768     which can conflict with char endnetent_r (); below.
26769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26770     <limits.h> exists even on freestanding compilers.  */
26771
26772 #ifdef __STDC__
26773 # include <limits.h>
26774 #else
26775 # include <assert.h>
26776 #endif
26777
26778 #undef endnetent_r
26779
26780 /* Override any gcc2 internal prototype to avoid an error.  */
26781 #ifdef __cplusplus
26782 extern "C"
26783 {
26784 #endif
26785 /* We use char because int might match the return type of a gcc2
26786    builtin and then its argument prototype would still apply.  */
26787 char endnetent_r ();
26788 /* The GNU C library defines this for functions which it implements
26789     to always fail with ENOSYS.  Some functions are actually named
26790     something starting with __ and the normal name is an alias.  */
26791 #if defined (__stub_endnetent_r) || defined (__stub___endnetent_r)
26792 choke me
26793 #else
26794 char (*f) () = endnetent_r;
26795 #endif
26796 #ifdef __cplusplus
26797 }
26798 #endif
26799
26800 int
26801 main ()
26802 {
26803 return f != endnetent_r;
26804   ;
26805   return 0;
26806 }
26807 _ACEOF
26808 rm -f conftest.$ac_objext conftest$ac_exeext
26809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26810   (eval $ac_link) 2>conftest.er1
26811   ac_status=$?
26812   grep -v '^ *+' conftest.er1 >conftest.err
26813   rm -f conftest.er1
26814   cat conftest.err >&5
26815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816   (exit $ac_status); } &&
26817          { ac_try='test -z "$ac_c_werror_flag"
26818                          || test ! -s conftest.err'
26819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26820   (eval $ac_try) 2>&5
26821   ac_status=$?
26822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823   (exit $ac_status); }; } &&
26824          { ac_try='test -s conftest$ac_exeext'
26825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26826   (eval $ac_try) 2>&5
26827   ac_status=$?
26828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829   (exit $ac_status); }; }; then
26830   ac_cv_func_endnetent_r=yes
26831 else
26832   echo "$as_me: failed program was:" >&5
26833 sed 's/^/| /' conftest.$ac_ext >&5
26834
26835 ac_cv_func_endnetent_r=no
26836 fi
26837 rm -f conftest.err conftest.$ac_objext \
26838       conftest$ac_exeext conftest.$ac_ext
26839 fi
26840 echo "$as_me:$LINENO: result: $ac_cv_func_endnetent_r" >&5
26841 echo "${ECHO_T}$ac_cv_func_endnetent_r" >&6
26842 if test $ac_cv_func_endnetent_r = yes; then
26843   cat >conftest.$ac_ext <<_ACEOF
26844 /* confdefs.h.  */
26845 _ACEOF
26846 cat confdefs.h >>conftest.$ac_ext
26847 cat >>conftest.$ac_ext <<_ACEOF
26848 /* end confdefs.h.  */
26849
26850 #undef _REENTRANT
26851 #define _REENTRANT
26852 #undef __USE_MISC
26853 #define __USE_MISC
26854 #include <netdb.h>
26855 void  endnetent_r (void);
26856
26857 int
26858 main ()
26859 {
26860 return (0);
26861   ;
26862   return 0;
26863 }
26864 _ACEOF
26865 rm -f conftest.$ac_objext
26866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26867   (eval $ac_compile) 2>conftest.er1
26868   ac_status=$?
26869   grep -v '^ *+' conftest.er1 >conftest.err
26870   rm -f conftest.er1
26871   cat conftest.err >&5
26872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873   (exit $ac_status); } &&
26874          { ac_try='test -z "$ac_c_werror_flag"
26875                          || test ! -s conftest.err'
26876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26877   (eval $ac_try) 2>&5
26878   ac_status=$?
26879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880   (exit $ac_status); }; } &&
26881          { ac_try='test -s conftest.$ac_objext'
26882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26883   (eval $ac_try) 2>&5
26884   ac_status=$?
26885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886   (exit $ac_status); }; }; then
26887
26888 NET_R_END_RESULT="#define NET_R_END_RESULT(x) /*empty*/"
26889 NET_R_END_RETURN="#define NET_R_END_RETURN void"
26890
26891 else
26892   echo "$as_me: failed program was:" >&5
26893 sed 's/^/| /' conftest.$ac_ext >&5
26894
26895 cat >conftest.$ac_ext <<_ACEOF
26896 /* confdefs.h.  */
26897 _ACEOF
26898 cat confdefs.h >>conftest.$ac_ext
26899 cat >>conftest.$ac_ext <<_ACEOF
26900 /* end confdefs.h.  */
26901
26902 #undef _REENTRANT
26903 #define _REENTRANT
26904 #undef __USE_MISC
26905 #define __USE_MISC
26906 #include <netdb.h>
26907 extern int endnetent_r(struct netent_data *);
26908
26909 int
26910 main ()
26911 {
26912 return (0);
26913   ;
26914   return 0;
26915 }
26916 _ACEOF
26917 rm -f conftest.$ac_objext
26918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26919   (eval $ac_compile) 2>conftest.er1
26920   ac_status=$?
26921   grep -v '^ *+' conftest.er1 >conftest.err
26922   rm -f conftest.er1
26923   cat conftest.err >&5
26924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925   (exit $ac_status); } &&
26926          { ac_try='test -z "$ac_c_werror_flag"
26927                          || test ! -s conftest.err'
26928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26929   (eval $ac_try) 2>&5
26930   ac_status=$?
26931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932   (exit $ac_status); }; } &&
26933          { ac_try='test -s conftest.$ac_objext'
26934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26935   (eval $ac_try) 2>&5
26936   ac_status=$?
26937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938   (exit $ac_status); }; }; then
26939
26940 NET_R_END_RESULT="#define NET_R_END_RESULT(x) return (x)"
26941 NET_R_END_RETURN="#define NET_R_END_RETURN int"
26942
26943 else
26944   echo "$as_me: failed program was:" >&5
26945 sed 's/^/| /' conftest.$ac_ext >&5
26946
26947 cat >conftest.$ac_ext <<_ACEOF
26948 /* confdefs.h.  */
26949 _ACEOF
26950 cat confdefs.h >>conftest.$ac_ext
26951 cat >>conftest.$ac_ext <<_ACEOF
26952 /* end confdefs.h.  */
26953
26954 #undef _REENTRANT
26955 #define _REENTRANT
26956 #undef __USE_MISC
26957 #define __USE_MISC
26958 #include <netdb.h>
26959 extern void endnetent_r(struct netent_data *);
26960
26961 int
26962 main ()
26963 {
26964 return (0);
26965   ;
26966   return 0;
26967 }
26968 _ACEOF
26969 rm -f conftest.$ac_objext
26970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26971   (eval $ac_compile) 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_objext'
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
26992 NET_R_END_RESULT="#define NET_R_END_RESULT(x) /*empty*/"
26993 NET_R_END_RETURN="#define NET_R_END_RETURN void"
26994
26995 else
26996   echo "$as_me: failed program was:" >&5
26997 sed 's/^/| /' conftest.$ac_ext >&5
26998
26999 fi
27000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27001
27002 fi
27003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27004
27005 fi
27006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27007
27008 else
27009   NET_R_END_RESULT="#define NET_R_END_RESULT(x) /*empty*/"
27010 NET_R_END_RETURN="#define NET_R_END_RETURN void"
27011
27012 fi
27013
27014 esac
27015
27016
27017
27018 echo "$as_me:$LINENO: checking for getgrnam_r" >&5
27019 echo $ECHO_N "checking for getgrnam_r... $ECHO_C" >&6
27020 if test "${ac_cv_func_getgrnam_r+set}" = set; then
27021   echo $ECHO_N "(cached) $ECHO_C" >&6
27022 else
27023   cat >conftest.$ac_ext <<_ACEOF
27024 /* confdefs.h.  */
27025 _ACEOF
27026 cat confdefs.h >>conftest.$ac_ext
27027 cat >>conftest.$ac_ext <<_ACEOF
27028 /* end confdefs.h.  */
27029 /* Define getgrnam_r to an innocuous variant, in case <limits.h> declares getgrnam_r.
27030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27031 #define getgrnam_r innocuous_getgrnam_r
27032
27033 /* System header to define __stub macros and hopefully few prototypes,
27034     which can conflict with char getgrnam_r (); below.
27035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27036     <limits.h> exists even on freestanding compilers.  */
27037
27038 #ifdef __STDC__
27039 # include <limits.h>
27040 #else
27041 # include <assert.h>
27042 #endif
27043
27044 #undef getgrnam_r
27045
27046 /* Override any gcc2 internal prototype to avoid an error.  */
27047 #ifdef __cplusplus
27048 extern "C"
27049 {
27050 #endif
27051 /* We use char because int might match the return type of a gcc2
27052    builtin and then its argument prototype would still apply.  */
27053 char getgrnam_r ();
27054 /* The GNU C library defines this for functions which it implements
27055     to always fail with ENOSYS.  Some functions are actually named
27056     something starting with __ and the normal name is an alias.  */
27057 #if defined (__stub_getgrnam_r) || defined (__stub___getgrnam_r)
27058 choke me
27059 #else
27060 char (*f) () = getgrnam_r;
27061 #endif
27062 #ifdef __cplusplus
27063 }
27064 #endif
27065
27066 int
27067 main ()
27068 {
27069 return f != getgrnam_r;
27070   ;
27071   return 0;
27072 }
27073 _ACEOF
27074 rm -f conftest.$ac_objext conftest$ac_exeext
27075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27076   (eval $ac_link) 2>conftest.er1
27077   ac_status=$?
27078   grep -v '^ *+' conftest.er1 >conftest.err
27079   rm -f conftest.er1
27080   cat conftest.err >&5
27081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082   (exit $ac_status); } &&
27083          { ac_try='test -z "$ac_c_werror_flag"
27084                          || test ! -s conftest.err'
27085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27086   (eval $ac_try) 2>&5
27087   ac_status=$?
27088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089   (exit $ac_status); }; } &&
27090          { ac_try='test -s conftest$ac_exeext'
27091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27092   (eval $ac_try) 2>&5
27093   ac_status=$?
27094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095   (exit $ac_status); }; }; then
27096   ac_cv_func_getgrnam_r=yes
27097 else
27098   echo "$as_me: failed program was:" >&5
27099 sed 's/^/| /' conftest.$ac_ext >&5
27100
27101 ac_cv_func_getgrnam_r=no
27102 fi
27103 rm -f conftest.err conftest.$ac_objext \
27104       conftest$ac_exeext conftest.$ac_ext
27105 fi
27106 echo "$as_me:$LINENO: result: $ac_cv_func_getgrnam_r" >&5
27107 echo "${ECHO_T}$ac_cv_func_getgrnam_r" >&6
27108 if test $ac_cv_func_getgrnam_r = yes; then
27109   :
27110 else
27111   cat >>confdefs.h <<\_ACEOF
27112 #define NEED_GETGRNAM_R 1
27113 _ACEOF
27114
27115 fi
27116
27117 echo "$as_me:$LINENO: checking for getgrgid_r" >&5
27118 echo $ECHO_N "checking for getgrgid_r... $ECHO_C" >&6
27119 if test "${ac_cv_func_getgrgid_r+set}" = set; then
27120   echo $ECHO_N "(cached) $ECHO_C" >&6
27121 else
27122   cat >conftest.$ac_ext <<_ACEOF
27123 /* confdefs.h.  */
27124 _ACEOF
27125 cat confdefs.h >>conftest.$ac_ext
27126 cat >>conftest.$ac_ext <<_ACEOF
27127 /* end confdefs.h.  */
27128 /* Define getgrgid_r to an innocuous variant, in case <limits.h> declares getgrgid_r.
27129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27130 #define getgrgid_r innocuous_getgrgid_r
27131
27132 /* System header to define __stub macros and hopefully few prototypes,
27133     which can conflict with char getgrgid_r (); below.
27134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27135     <limits.h> exists even on freestanding compilers.  */
27136
27137 #ifdef __STDC__
27138 # include <limits.h>
27139 #else
27140 # include <assert.h>
27141 #endif
27142
27143 #undef getgrgid_r
27144
27145 /* Override any gcc2 internal prototype to avoid an error.  */
27146 #ifdef __cplusplus
27147 extern "C"
27148 {
27149 #endif
27150 /* We use char because int might match the return type of a gcc2
27151    builtin and then its argument prototype would still apply.  */
27152 char getgrgid_r ();
27153 /* The GNU C library defines this for functions which it implements
27154     to always fail with ENOSYS.  Some functions are actually named
27155     something starting with __ and the normal name is an alias.  */
27156 #if defined (__stub_getgrgid_r) || defined (__stub___getgrgid_r)
27157 choke me
27158 #else
27159 char (*f) () = getgrgid_r;
27160 #endif
27161 #ifdef __cplusplus
27162 }
27163 #endif
27164
27165 int
27166 main ()
27167 {
27168 return f != getgrgid_r;
27169   ;
27170   return 0;
27171 }
27172 _ACEOF
27173 rm -f conftest.$ac_objext conftest$ac_exeext
27174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27175   (eval $ac_link) 2>conftest.er1
27176   ac_status=$?
27177   grep -v '^ *+' conftest.er1 >conftest.err
27178   rm -f conftest.er1
27179   cat conftest.err >&5
27180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27181   (exit $ac_status); } &&
27182          { ac_try='test -z "$ac_c_werror_flag"
27183                          || test ! -s conftest.err'
27184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27185   (eval $ac_try) 2>&5
27186   ac_status=$?
27187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188   (exit $ac_status); }; } &&
27189          { ac_try='test -s conftest$ac_exeext'
27190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27191   (eval $ac_try) 2>&5
27192   ac_status=$?
27193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194   (exit $ac_status); }; }; then
27195   ac_cv_func_getgrgid_r=yes
27196 else
27197   echo "$as_me: failed program was:" >&5
27198 sed 's/^/| /' conftest.$ac_ext >&5
27199
27200 ac_cv_func_getgrgid_r=no
27201 fi
27202 rm -f conftest.err conftest.$ac_objext \
27203       conftest$ac_exeext conftest.$ac_ext
27204 fi
27205 echo "$as_me:$LINENO: result: $ac_cv_func_getgrgid_r" >&5
27206 echo "${ECHO_T}$ac_cv_func_getgrgid_r" >&6
27207 if test $ac_cv_func_getgrgid_r = yes; then
27208   :
27209 else
27210   cat >>confdefs.h <<\_ACEOF
27211 #define NEED_GETGRGID_R 1
27212 _ACEOF
27213
27214 fi
27215
27216
27217 echo "$as_me:$LINENO: checking for getgrent_r" >&5
27218 echo $ECHO_N "checking for getgrent_r... $ECHO_C" >&6
27219 if test "${ac_cv_func_getgrent_r+set}" = set; then
27220   echo $ECHO_N "(cached) $ECHO_C" >&6
27221 else
27222   cat >conftest.$ac_ext <<_ACEOF
27223 /* confdefs.h.  */
27224 _ACEOF
27225 cat confdefs.h >>conftest.$ac_ext
27226 cat >>conftest.$ac_ext <<_ACEOF
27227 /* end confdefs.h.  */
27228 /* Define getgrent_r to an innocuous variant, in case <limits.h> declares getgrent_r.
27229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27230 #define getgrent_r innocuous_getgrent_r
27231
27232 /* System header to define __stub macros and hopefully few prototypes,
27233     which can conflict with char getgrent_r (); below.
27234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27235     <limits.h> exists even on freestanding compilers.  */
27236
27237 #ifdef __STDC__
27238 # include <limits.h>
27239 #else
27240 # include <assert.h>
27241 #endif
27242
27243 #undef getgrent_r
27244
27245 /* Override any gcc2 internal prototype to avoid an error.  */
27246 #ifdef __cplusplus
27247 extern "C"
27248 {
27249 #endif
27250 /* We use char because int might match the return type of a gcc2
27251    builtin and then its argument prototype would still apply.  */
27252 char getgrent_r ();
27253 /* The GNU C library defines this for functions which it implements
27254     to always fail with ENOSYS.  Some functions are actually named
27255     something starting with __ and the normal name is an alias.  */
27256 #if defined (__stub_getgrent_r) || defined (__stub___getgrent_r)
27257 choke me
27258 #else
27259 char (*f) () = getgrent_r;
27260 #endif
27261 #ifdef __cplusplus
27262 }
27263 #endif
27264
27265 int
27266 main ()
27267 {
27268 return f != getgrent_r;
27269   ;
27270   return 0;
27271 }
27272 _ACEOF
27273 rm -f conftest.$ac_objext conftest$ac_exeext
27274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27275   (eval $ac_link) 2>conftest.er1
27276   ac_status=$?
27277   grep -v '^ *+' conftest.er1 >conftest.err
27278   rm -f conftest.er1
27279   cat conftest.err >&5
27280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281   (exit $ac_status); } &&
27282          { ac_try='test -z "$ac_c_werror_flag"
27283                          || test ! -s conftest.err'
27284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27285   (eval $ac_try) 2>&5
27286   ac_status=$?
27287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288   (exit $ac_status); }; } &&
27289          { ac_try='test -s conftest$ac_exeext'
27290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27291   (eval $ac_try) 2>&5
27292   ac_status=$?
27293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294   (exit $ac_status); }; }; then
27295   ac_cv_func_getgrent_r=yes
27296 else
27297   echo "$as_me: failed program was:" >&5
27298 sed 's/^/| /' conftest.$ac_ext >&5
27299
27300 ac_cv_func_getgrent_r=no
27301 fi
27302 rm -f conftest.err conftest.$ac_objext \
27303       conftest$ac_exeext conftest.$ac_ext
27304 fi
27305 echo "$as_me:$LINENO: result: $ac_cv_func_getgrent_r" >&5
27306 echo "${ECHO_T}$ac_cv_func_getgrent_r" >&6
27307 if test $ac_cv_func_getgrent_r = yes; then
27308   cat >conftest.$ac_ext <<_ACEOF
27309 /* confdefs.h.  */
27310 _ACEOF
27311 cat confdefs.h >>conftest.$ac_ext
27312 cat >>conftest.$ac_ext <<_ACEOF
27313 /* end confdefs.h.  */
27314
27315 #include <grp.h>
27316 struct group *getgrent_r(struct group *grp, char *buffer,
27317            int buflen) {}
27318
27319 int
27320 main ()
27321 {
27322 return (0);
27323   ;
27324   return 0;
27325 }
27326 _ACEOF
27327 rm -f conftest.$ac_objext
27328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27329   (eval $ac_compile) 2>conftest.er1
27330   ac_status=$?
27331   grep -v '^ *+' conftest.er1 >conftest.err
27332   rm -f conftest.er1
27333   cat conftest.err >&5
27334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335   (exit $ac_status); } &&
27336          { ac_try='test -z "$ac_c_werror_flag"
27337                          || test ! -s conftest.err'
27338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27339   (eval $ac_try) 2>&5
27340   ac_status=$?
27341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27342   (exit $ac_status); }; } &&
27343          { ac_try='test -s conftest.$ac_objext'
27344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27345   (eval $ac_try) 2>&5
27346   ac_status=$?
27347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348   (exit $ac_status); }; }; then
27349
27350 GROUP_R_ARGS="#define GROUP_R_ARGS char *buf, int buflen"
27351 GROUP_R_BAD="#define GROUP_R_BAD NULL"
27352 GROUP_R_OK="#define GROUP_R_OK gptr"
27353 GROUP_R_RETURN="#define GROUP_R_RETURN struct group *"
27354
27355 else
27356   echo "$as_me: failed program was:" >&5
27357 sed 's/^/| /' conftest.$ac_ext >&5
27358
27359 fi
27360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27361
27362 else
27363   GROUP_R_ARGS="#define GROUP_R_ARGS char *buf, int buflen"
27364 GROUP_R_BAD="#define GROUP_R_BAD NULL"
27365 GROUP_R_OK="#define GROUP_R_OK gptr"
27366 GROUP_R_RETURN="#define GROUP_R_RETURN struct group *"
27367 cat >>confdefs.h <<\_ACEOF
27368 #define NEED_GETGRENT_R 1
27369 _ACEOF
27370
27371
27372 fi
27373
27374
27375
27376
27377
27378
27379 echo "$as_me:$LINENO: checking for endgrent_r" >&5
27380 echo $ECHO_N "checking for endgrent_r... $ECHO_C" >&6
27381 if test "${ac_cv_func_endgrent_r+set}" = set; then
27382   echo $ECHO_N "(cached) $ECHO_C" >&6
27383 else
27384   cat >conftest.$ac_ext <<_ACEOF
27385 /* confdefs.h.  */
27386 _ACEOF
27387 cat confdefs.h >>conftest.$ac_ext
27388 cat >>conftest.$ac_ext <<_ACEOF
27389 /* end confdefs.h.  */
27390 /* Define endgrent_r to an innocuous variant, in case <limits.h> declares endgrent_r.
27391    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27392 #define endgrent_r innocuous_endgrent_r
27393
27394 /* System header to define __stub macros and hopefully few prototypes,
27395     which can conflict with char endgrent_r (); below.
27396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27397     <limits.h> exists even on freestanding compilers.  */
27398
27399 #ifdef __STDC__
27400 # include <limits.h>
27401 #else
27402 # include <assert.h>
27403 #endif
27404
27405 #undef endgrent_r
27406
27407 /* Override any gcc2 internal prototype to avoid an error.  */
27408 #ifdef __cplusplus
27409 extern "C"
27410 {
27411 #endif
27412 /* We use char because int might match the return type of a gcc2
27413    builtin and then its argument prototype would still apply.  */
27414 char endgrent_r ();
27415 /* The GNU C library defines this for functions which it implements
27416     to always fail with ENOSYS.  Some functions are actually named
27417     something starting with __ and the normal name is an alias.  */
27418 #if defined (__stub_endgrent_r) || defined (__stub___endgrent_r)
27419 choke me
27420 #else
27421 char (*f) () = endgrent_r;
27422 #endif
27423 #ifdef __cplusplus
27424 }
27425 #endif
27426
27427 int
27428 main ()
27429 {
27430 return f != endgrent_r;
27431   ;
27432   return 0;
27433 }
27434 _ACEOF
27435 rm -f conftest.$ac_objext conftest$ac_exeext
27436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27437   (eval $ac_link) 2>conftest.er1
27438   ac_status=$?
27439   grep -v '^ *+' conftest.er1 >conftest.err
27440   rm -f conftest.er1
27441   cat conftest.err >&5
27442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443   (exit $ac_status); } &&
27444          { ac_try='test -z "$ac_c_werror_flag"
27445                          || test ! -s conftest.err'
27446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27447   (eval $ac_try) 2>&5
27448   ac_status=$?
27449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450   (exit $ac_status); }; } &&
27451          { ac_try='test -s conftest$ac_exeext'
27452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27453   (eval $ac_try) 2>&5
27454   ac_status=$?
27455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456   (exit $ac_status); }; }; then
27457   ac_cv_func_endgrent_r=yes
27458 else
27459   echo "$as_me: failed program was:" >&5
27460 sed 's/^/| /' conftest.$ac_ext >&5
27461
27462 ac_cv_func_endgrent_r=no
27463 fi
27464 rm -f conftest.err conftest.$ac_objext \
27465       conftest$ac_exeext conftest.$ac_ext
27466 fi
27467 echo "$as_me:$LINENO: result: $ac_cv_func_endgrent_r" >&5
27468 echo "${ECHO_T}$ac_cv_func_endgrent_r" >&6
27469 if test $ac_cv_func_endgrent_r = yes; then
27470   :
27471 else
27472   GROUP_R_END_RESULT="#define GROUP_R_END_RESULT(x) /*empty*/"
27473 GROUP_R_END_RETURN="#define GROUP_R_END_RETURN void"
27474 GROUP_R_ENT_ARGS="#define GROUP_R_ENT_ARGS void"
27475 cat >>confdefs.h <<\_ACEOF
27476 #define NEED_ENDGRENT_R 1
27477 _ACEOF
27478
27479
27480 fi
27481
27482
27483
27484
27485
27486 echo "$as_me:$LINENO: checking for setgrent_r" >&5
27487 echo $ECHO_N "checking for setgrent_r... $ECHO_C" >&6
27488 if test "${ac_cv_func_setgrent_r+set}" = set; then
27489   echo $ECHO_N "(cached) $ECHO_C" >&6
27490 else
27491   cat >conftest.$ac_ext <<_ACEOF
27492 /* confdefs.h.  */
27493 _ACEOF
27494 cat confdefs.h >>conftest.$ac_ext
27495 cat >>conftest.$ac_ext <<_ACEOF
27496 /* end confdefs.h.  */
27497 /* Define setgrent_r to an innocuous variant, in case <limits.h> declares setgrent_r.
27498    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27499 #define setgrent_r innocuous_setgrent_r
27500
27501 /* System header to define __stub macros and hopefully few prototypes,
27502     which can conflict with char setgrent_r (); below.
27503     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27504     <limits.h> exists even on freestanding compilers.  */
27505
27506 #ifdef __STDC__
27507 # include <limits.h>
27508 #else
27509 # include <assert.h>
27510 #endif
27511
27512 #undef setgrent_r
27513
27514 /* Override any gcc2 internal prototype to avoid an error.  */
27515 #ifdef __cplusplus
27516 extern "C"
27517 {
27518 #endif
27519 /* We use char because int might match the return type of a gcc2
27520    builtin and then its argument prototype would still apply.  */
27521 char setgrent_r ();
27522 /* The GNU C library defines this for functions which it implements
27523     to always fail with ENOSYS.  Some functions are actually named
27524     something starting with __ and the normal name is an alias.  */
27525 #if defined (__stub_setgrent_r) || defined (__stub___setgrent_r)
27526 choke me
27527 #else
27528 char (*f) () = setgrent_r;
27529 #endif
27530 #ifdef __cplusplus
27531 }
27532 #endif
27533
27534 int
27535 main ()
27536 {
27537 return f != setgrent_r;
27538   ;
27539   return 0;
27540 }
27541 _ACEOF
27542 rm -f conftest.$ac_objext conftest$ac_exeext
27543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27544   (eval $ac_link) 2>conftest.er1
27545   ac_status=$?
27546   grep -v '^ *+' conftest.er1 >conftest.err
27547   rm -f conftest.er1
27548   cat conftest.err >&5
27549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550   (exit $ac_status); } &&
27551          { ac_try='test -z "$ac_c_werror_flag"
27552                          || test ! -s conftest.err'
27553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27554   (eval $ac_try) 2>&5
27555   ac_status=$?
27556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557   (exit $ac_status); }; } &&
27558          { ac_try='test -s conftest$ac_exeext'
27559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27560   (eval $ac_try) 2>&5
27561   ac_status=$?
27562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563   (exit $ac_status); }; }; then
27564   ac_cv_func_setgrent_r=yes
27565 else
27566   echo "$as_me: failed program was:" >&5
27567 sed 's/^/| /' conftest.$ac_ext >&5
27568
27569 ac_cv_func_setgrent_r=no
27570 fi
27571 rm -f conftest.err conftest.$ac_objext \
27572       conftest$ac_exeext conftest.$ac_ext
27573 fi
27574 echo "$as_me:$LINENO: result: $ac_cv_func_setgrent_r" >&5
27575 echo "${ECHO_T}$ac_cv_func_setgrent_r" >&6
27576 if test $ac_cv_func_setgrent_r = yes; then
27577   :
27578 else
27579   GROUP_R_SET_RESULT="#undef GROUP_R_SET_RESULT /*empty*/"
27580 GROUP_R_SET_RETURN="#define GROUP_R_SET_RETURN void"
27581 cat >>confdefs.h <<\_ACEOF
27582 #define NEED_SETGRENT_R 1
27583 _ACEOF
27584
27585
27586 fi
27587
27588
27589
27590
27591
27592 case $host in
27593 ia64-hp-hpux11.*)
27594 ;;
27595 *)
27596 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27597 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
27598 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27599   echo $ECHO_N "(cached) $ECHO_C" >&6
27600 else
27601   cat >conftest.$ac_ext <<_ACEOF
27602 /* confdefs.h.  */
27603 _ACEOF
27604 cat confdefs.h >>conftest.$ac_ext
27605 cat >>conftest.$ac_ext <<_ACEOF
27606 /* end confdefs.h.  */
27607 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27609 #define gethostbyname_r innocuous_gethostbyname_r
27610
27611 /* System header to define __stub macros and hopefully few prototypes,
27612     which can conflict with char gethostbyname_r (); below.
27613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27614     <limits.h> exists even on freestanding compilers.  */
27615
27616 #ifdef __STDC__
27617 # include <limits.h>
27618 #else
27619 # include <assert.h>
27620 #endif
27621
27622 #undef gethostbyname_r
27623
27624 /* Override any gcc2 internal prototype to avoid an error.  */
27625 #ifdef __cplusplus
27626 extern "C"
27627 {
27628 #endif
27629 /* We use char because int might match the return type of a gcc2
27630    builtin and then its argument prototype would still apply.  */
27631 char gethostbyname_r ();
27632 /* The GNU C library defines this for functions which it implements
27633     to always fail with ENOSYS.  Some functions are actually named
27634     something starting with __ and the normal name is an alias.  */
27635 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
27636 choke me
27637 #else
27638 char (*f) () = gethostbyname_r;
27639 #endif
27640 #ifdef __cplusplus
27641 }
27642 #endif
27643
27644 int
27645 main ()
27646 {
27647 return f != gethostbyname_r;
27648   ;
27649   return 0;
27650 }
27651 _ACEOF
27652 rm -f conftest.$ac_objext conftest$ac_exeext
27653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27654   (eval $ac_link) 2>conftest.er1
27655   ac_status=$?
27656   grep -v '^ *+' conftest.er1 >conftest.err
27657   rm -f conftest.er1
27658   cat conftest.err >&5
27659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660   (exit $ac_status); } &&
27661          { ac_try='test -z "$ac_c_werror_flag"
27662                          || test ! -s conftest.err'
27663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27664   (eval $ac_try) 2>&5
27665   ac_status=$?
27666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667   (exit $ac_status); }; } &&
27668          { ac_try='test -s conftest$ac_exeext'
27669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27670   (eval $ac_try) 2>&5
27671   ac_status=$?
27672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673   (exit $ac_status); }; }; then
27674   ac_cv_func_gethostbyname_r=yes
27675 else
27676   echo "$as_me: failed program was:" >&5
27677 sed 's/^/| /' conftest.$ac_ext >&5
27678
27679 ac_cv_func_gethostbyname_r=no
27680 fi
27681 rm -f conftest.err conftest.$ac_objext \
27682       conftest$ac_exeext conftest.$ac_ext
27683 fi
27684 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27685 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
27686 if test $ac_cv_func_gethostbyname_r = yes; then
27687   cat >conftest.$ac_ext <<_ACEOF
27688 /* confdefs.h.  */
27689 _ACEOF
27690 cat confdefs.h >>conftest.$ac_ext
27691 cat >>conftest.$ac_ext <<_ACEOF
27692 /* end confdefs.h.  */
27693
27694 #undef __USE_MISC
27695 #define __USE_MISC
27696 #include <netdb.h>
27697 struct hostent  *gethostbyname_r
27698 (const char *name, struct hostent *hp, char *buf, int len, int *h_errnop) {}
27699
27700 int
27701 main ()
27702 {
27703 return (0);
27704   ;
27705   return 0;
27706 }
27707 _ACEOF
27708 rm -f conftest.$ac_objext
27709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27710   (eval $ac_compile) 2>conftest.er1
27711   ac_status=$?
27712   grep -v '^ *+' conftest.er1 >conftest.err
27713   rm -f conftest.er1
27714   cat conftest.err >&5
27715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716   (exit $ac_status); } &&
27717          { ac_try='test -z "$ac_c_werror_flag"
27718                          || test ! -s conftest.err'
27719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27720   (eval $ac_try) 2>&5
27721   ac_status=$?
27722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723   (exit $ac_status); }; } &&
27724          { ac_try='test -s conftest.$ac_objext'
27725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27726   (eval $ac_try) 2>&5
27727   ac_status=$?
27728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729   (exit $ac_status); }; }; then
27730
27731 HOST_R_ARGS="#define HOST_R_ARGS char *buf, int buflen, int *h_errnop"
27732 HOST_R_BAD="#define HOST_R_BAD NULL"
27733 HOST_R_COPY="#define HOST_R_COPY buf, buflen"
27734 HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS char *buf, int buflen"
27735 HOST_R_ERRNO="#define HOST_R_ERRNO *h_errnop = h_errno"
27736 HOST_R_OK="#define HOST_R_OK hptr"
27737 HOST_R_RETURN="#define HOST_R_RETURN struct hostent *"
27738 HOST_R_SETANSWER="#undef HOST_R_SETANSWER"
27739 HOSTENT_DATA="#undef HOSTENT_DATA"
27740
27741
27742 else
27743   echo "$as_me: failed program was:" >&5
27744 sed 's/^/| /' conftest.$ac_ext >&5
27745
27746 cat >conftest.$ac_ext <<_ACEOF
27747 /* confdefs.h.  */
27748 _ACEOF
27749 cat confdefs.h >>conftest.$ac_ext
27750 cat >>conftest.$ac_ext <<_ACEOF
27751 /* end confdefs.h.  */
27752
27753 #undef __USE_MISC
27754 #define __USE_MISC
27755 #include <netdb.h>
27756 int gethostbyname_r(const char *name,
27757                           struct hostent *result,
27758                           struct hostent_data *hdptr);
27759
27760 int
27761 main ()
27762 {
27763
27764   ;
27765   return 0;
27766 }
27767 _ACEOF
27768 rm -f conftest.$ac_objext
27769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27770   (eval $ac_compile) 2>conftest.er1
27771   ac_status=$?
27772   grep -v '^ *+' conftest.er1 >conftest.err
27773   rm -f conftest.er1
27774   cat conftest.err >&5
27775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776   (exit $ac_status); } &&
27777          { ac_try='test -z "$ac_c_werror_flag"
27778                          || test ! -s conftest.err'
27779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27780   (eval $ac_try) 2>&5
27781   ac_status=$?
27782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783   (exit $ac_status); }; } &&
27784          { ac_try='test -s conftest.$ac_objext'
27785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27786   (eval $ac_try) 2>&5
27787   ac_status=$?
27788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789   (exit $ac_status); }; }; then
27790
27791 HOST_R_ARGS="#define HOST_R_ARGS struct hostent_data *hdptr"
27792 HOST_R_BAD="#define HOST_R_BAD (-1)"
27793 HOST_R_COPY="#define HOST_R_COPY hdptr"
27794 HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS HOST_R_ARGS"
27795 HOST_R_ERRNO="#undef HOST_R_ERRNO"
27796 HOST_R_OK="#define HOST_R_OK 0"
27797 HOST_R_RETURN="#define HOST_R_RETURN int"
27798 HOST_R_SETANSWER="#undef HOST_R_SETANSWER"
27799 HOSTENT_DATA="#define HOSTENT_DATA 1"
27800
27801 else
27802   echo "$as_me: failed program was:" >&5
27803 sed 's/^/| /' conftest.$ac_ext >&5
27804
27805 cat >conftest.$ac_ext <<_ACEOF
27806 /* confdefs.h.  */
27807 _ACEOF
27808 cat confdefs.h >>conftest.$ac_ext
27809 cat >>conftest.$ac_ext <<_ACEOF
27810 /* end confdefs.h.  */
27811
27812 #undef __USE_MISC
27813 #define __USE_MISC
27814 #include <netdb.h>
27815 extern int gethostbyname_r (const char *,
27816                                  struct hostent *,
27817                                  char *, size_t,
27818                                  struct hostent **,
27819                                  int *);
27820
27821 int
27822 main ()
27823 {
27824
27825   ;
27826   return 0;
27827 }
27828 _ACEOF
27829 rm -f conftest.$ac_objext
27830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27831   (eval $ac_compile) 2>conftest.er1
27832   ac_status=$?
27833   grep -v '^ *+' conftest.er1 >conftest.err
27834   rm -f conftest.er1
27835   cat conftest.err >&5
27836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837   (exit $ac_status); } &&
27838          { ac_try='test -z "$ac_c_werror_flag"
27839                          || test ! -s conftest.err'
27840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27841   (eval $ac_try) 2>&5
27842   ac_status=$?
27843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844   (exit $ac_status); }; } &&
27845          { ac_try='test -s conftest.$ac_objext'
27846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27847   (eval $ac_try) 2>&5
27848   ac_status=$?
27849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850   (exit $ac_status); }; }; then
27851
27852 HOST_R_ARGS="#define HOST_R_ARGS char *buf, size_t buflen, struct hostent **answerp, int *h_errnop"
27853 HOST_R_BAD="#define HOST_R_BAD ERANGE"
27854 HOST_R_COPY="#define HOST_R_COPY buf, buflen"
27855 HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS char *buf, int buflen"
27856 HOST_R_ERRNO="#define HOST_R_ERRNO *h_errnop = h_errno"
27857 HOST_R_OK="#define HOST_R_OK 0"
27858 HOST_R_RETURN="#define HOST_R_RETURN int"
27859 HOST_R_SETANSWER="#define HOST_R_SETANSWER 1"
27860 HOSTENT_DATA="#undef HOSTENT_DATA"
27861
27862 else
27863   echo "$as_me: failed program was:" >&5
27864 sed 's/^/| /' conftest.$ac_ext >&5
27865
27866 fi
27867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27868 fi
27869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27870 fi
27871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27872
27873 else
27874   HOST_R_ARGS="#define HOST_R_ARGS char *buf, int buflen, int *h_errnop"
27875 HOST_R_BAD="#define HOST_R_BAD NULL"
27876 HOST_R_COPY="#define HOST_R_COPY buf, buflen"
27877 HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS char *buf, int buflen"
27878 HOST_R_ERRNO="#define HOST_R_ERRNO *h_errnop = h_errno"
27879 HOST_R_OK="#define HOST_R_OK hptr"
27880 HOST_R_RETURN="#define HOST_R_RETURN struct hostent *"
27881 HOST_R_SETANSWER="#undef HOST_R_SETANSWER"
27882 HOSTENT_DATA="#undef HOSTENT_DATA"
27883
27884 fi
27885
27886 esac
27887
27888
27889
27890
27891
27892
27893
27894
27895
27896
27897 case $host in
27898 ia64-hp-hpux11.*)
27899 ;;
27900 *)
27901 echo "$as_me:$LINENO: checking for endhostent_r" >&5
27902 echo $ECHO_N "checking for endhostent_r... $ECHO_C" >&6
27903 if test "${ac_cv_func_endhostent_r+set}" = set; then
27904   echo $ECHO_N "(cached) $ECHO_C" >&6
27905 else
27906   cat >conftest.$ac_ext <<_ACEOF
27907 /* confdefs.h.  */
27908 _ACEOF
27909 cat confdefs.h >>conftest.$ac_ext
27910 cat >>conftest.$ac_ext <<_ACEOF
27911 /* end confdefs.h.  */
27912 /* Define endhostent_r to an innocuous variant, in case <limits.h> declares endhostent_r.
27913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27914 #define endhostent_r innocuous_endhostent_r
27915
27916 /* System header to define __stub macros and hopefully few prototypes,
27917     which can conflict with char endhostent_r (); below.
27918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27919     <limits.h> exists even on freestanding compilers.  */
27920
27921 #ifdef __STDC__
27922 # include <limits.h>
27923 #else
27924 # include <assert.h>
27925 #endif
27926
27927 #undef endhostent_r
27928
27929 /* Override any gcc2 internal prototype to avoid an error.  */
27930 #ifdef __cplusplus
27931 extern "C"
27932 {
27933 #endif
27934 /* We use char because int might match the return type of a gcc2
27935    builtin and then its argument prototype would still apply.  */
27936 char endhostent_r ();
27937 /* The GNU C library defines this for functions which it implements
27938     to always fail with ENOSYS.  Some functions are actually named
27939     something starting with __ and the normal name is an alias.  */
27940 #if defined (__stub_endhostent_r) || defined (__stub___endhostent_r)
27941 choke me
27942 #else
27943 char (*f) () = endhostent_r;
27944 #endif
27945 #ifdef __cplusplus
27946 }
27947 #endif
27948
27949 int
27950 main ()
27951 {
27952 return f != endhostent_r;
27953   ;
27954   return 0;
27955 }
27956 _ACEOF
27957 rm -f conftest.$ac_objext conftest$ac_exeext
27958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27959   (eval $ac_link) 2>conftest.er1
27960   ac_status=$?
27961   grep -v '^ *+' conftest.er1 >conftest.err
27962   rm -f conftest.er1
27963   cat conftest.err >&5
27964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965   (exit $ac_status); } &&
27966          { ac_try='test -z "$ac_c_werror_flag"
27967                          || test ! -s conftest.err'
27968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27969   (eval $ac_try) 2>&5
27970   ac_status=$?
27971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972   (exit $ac_status); }; } &&
27973          { ac_try='test -s conftest$ac_exeext'
27974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27975   (eval $ac_try) 2>&5
27976   ac_status=$?
27977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978   (exit $ac_status); }; }; then
27979   ac_cv_func_endhostent_r=yes
27980 else
27981   echo "$as_me: failed program was:" >&5
27982 sed 's/^/| /' conftest.$ac_ext >&5
27983
27984 ac_cv_func_endhostent_r=no
27985 fi
27986 rm -f conftest.err conftest.$ac_objext \
27987       conftest$ac_exeext conftest.$ac_ext
27988 fi
27989 echo "$as_me:$LINENO: result: $ac_cv_func_endhostent_r" >&5
27990 echo "${ECHO_T}$ac_cv_func_endhostent_r" >&6
27991 if test $ac_cv_func_endhostent_r = yes; then
27992   cat >conftest.$ac_ext <<_ACEOF
27993 /* confdefs.h.  */
27994 _ACEOF
27995 cat confdefs.h >>conftest.$ac_ext
27996 cat >>conftest.$ac_ext <<_ACEOF
27997 /* end confdefs.h.  */
27998
27999 #undef _REENTRANT
28000 #define _REENTRANT
28001 #undef __USE_MISC
28002 #define __USE_MISC
28003 #include <netdb.h>
28004 int endhostent_r(struct hostent_data *buffer);
28005
28006 int
28007 main ()
28008 {
28009
28010   ;
28011   return 0;
28012 }
28013 _ACEOF
28014 rm -f conftest.$ac_objext
28015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28016   (eval $ac_compile) 2>conftest.er1
28017   ac_status=$?
28018   grep -v '^ *+' conftest.er1 >conftest.err
28019   rm -f conftest.er1
28020   cat conftest.err >&5
28021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022   (exit $ac_status); } &&
28023          { ac_try='test -z "$ac_c_werror_flag"
28024                          || test ! -s conftest.err'
28025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28026   (eval $ac_try) 2>&5
28027   ac_status=$?
28028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029   (exit $ac_status); }; } &&
28030          { ac_try='test -s conftest.$ac_objext'
28031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28032   (eval $ac_try) 2>&5
28033   ac_status=$?
28034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035   (exit $ac_status); }; }; then
28036   HOST_R_END_RESULT="#define HOST_R_END_RESULT(x) return (x)"
28037 HOST_R_END_RETURN="#define HOST_R_END_RETURN int"
28038 HOST_R_ENT_ARGS="#define HOST_R_ENT_ARGS struct hostent_data *hdptr"
28039
28040 else
28041   echo "$as_me: failed program was:" >&5
28042 sed 's/^/| /' conftest.$ac_ext >&5
28043
28044 cat >conftest.$ac_ext <<_ACEOF
28045 /* confdefs.h.  */
28046 _ACEOF
28047 cat confdefs.h >>conftest.$ac_ext
28048 cat >>conftest.$ac_ext <<_ACEOF
28049 /* end confdefs.h.  */
28050
28051 #undef _REENTRANT
28052 #define _REENTRANT
28053 #undef __USE_MISC
28054 #define __USE_MISC
28055 #include <netdb.h>
28056 extern void endhostent_r(struct hostent_data *ht_data);
28057
28058 int
28059 main ()
28060 {
28061
28062   ;
28063   return 0;
28064 }
28065 _ACEOF
28066 rm -f conftest.$ac_objext
28067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28068   (eval $ac_compile) 2>conftest.er1
28069   ac_status=$?
28070   grep -v '^ *+' conftest.er1 >conftest.err
28071   rm -f conftest.er1
28072   cat conftest.err >&5
28073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074   (exit $ac_status); } &&
28075          { ac_try='test -z "$ac_c_werror_flag"
28076                          || test ! -s conftest.err'
28077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28078   (eval $ac_try) 2>&5
28079   ac_status=$?
28080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081   (exit $ac_status); }; } &&
28082          { ac_try='test -s conftest.$ac_objext'
28083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28084   (eval $ac_try) 2>&5
28085   ac_status=$?
28086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087   (exit $ac_status); }; }; then
28088
28089 HOST_R_END_RESULT="#define HOST_R_END_RESULT(x)"
28090 HOST_R_END_RETURN="#define HOST_R_END_RETURN void"
28091 HOST_R_ENT_ARGS="#define HOST_R_ENT_ARGS struct hostent_data *hdptr"
28092
28093 else
28094   echo "$as_me: failed program was:" >&5
28095 sed 's/^/| /' conftest.$ac_ext >&5
28096
28097 cat >conftest.$ac_ext <<_ACEOF
28098 /* confdefs.h.  */
28099 _ACEOF
28100 cat confdefs.h >>conftest.$ac_ext
28101 cat >>conftest.$ac_ext <<_ACEOF
28102 /* end confdefs.h.  */
28103
28104 #undef _REENTRANT
28105 #define _REENTRANT
28106 #undef __USE_MISC
28107 #define __USE_MISC
28108 #include <netdb.h>
28109 extern void endhostent_r(void);
28110
28111 int
28112 main ()
28113 {
28114
28115   ;
28116   return 0;
28117 }
28118 _ACEOF
28119 rm -f conftest.$ac_objext
28120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28121   (eval $ac_compile) 2>conftest.er1
28122   ac_status=$?
28123   grep -v '^ *+' conftest.er1 >conftest.err
28124   rm -f conftest.er1
28125   cat conftest.err >&5
28126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127   (exit $ac_status); } &&
28128          { ac_try='test -z "$ac_c_werror_flag"
28129                          || test ! -s conftest.err'
28130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28131   (eval $ac_try) 2>&5
28132   ac_status=$?
28133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134   (exit $ac_status); }; } &&
28135          { ac_try='test -s conftest.$ac_objext'
28136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28137   (eval $ac_try) 2>&5
28138   ac_status=$?
28139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28140   (exit $ac_status); }; }; then
28141
28142 HOST_R_END_RESULT="#define HOST_R_END_RESULT(x) /*empty*/"
28143 HOST_R_END_RETURN="#define HOST_R_END_RETURN void"
28144 HOST_R_ENT_ARGS="#undef HOST_R_ENT_ARGS /*empty*/"
28145
28146 else
28147   echo "$as_me: failed program was:" >&5
28148 sed 's/^/| /' conftest.$ac_ext >&5
28149
28150 fi
28151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28152
28153 fi
28154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28155
28156 fi
28157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28158
28159 else
28160   HOST_R_END_RESULT="#define HOST_R_END_RESULT(x) /*empty*/"
28161 HOST_R_END_RETURN="#define HOST_R_END_RETURN void"
28162 HOST_R_ENT_ARGS="#undef HOST_R_ENT_ARGS /*empty*/"
28163
28164 fi
28165
28166 esac;
28167
28168
28169
28170
28171 case $host in
28172 ia64-hp-hpux11.*)
28173 ;;
28174 *)
28175 echo "$as_me:$LINENO: checking for sethostent_r" >&5
28176 echo $ECHO_N "checking for sethostent_r... $ECHO_C" >&6
28177 if test "${ac_cv_func_sethostent_r+set}" = set; then
28178   echo $ECHO_N "(cached) $ECHO_C" >&6
28179 else
28180   cat >conftest.$ac_ext <<_ACEOF
28181 /* confdefs.h.  */
28182 _ACEOF
28183 cat confdefs.h >>conftest.$ac_ext
28184 cat >>conftest.$ac_ext <<_ACEOF
28185 /* end confdefs.h.  */
28186 /* Define sethostent_r to an innocuous variant, in case <limits.h> declares sethostent_r.
28187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28188 #define sethostent_r innocuous_sethostent_r
28189
28190 /* System header to define __stub macros and hopefully few prototypes,
28191     which can conflict with char sethostent_r (); below.
28192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28193     <limits.h> exists even on freestanding compilers.  */
28194
28195 #ifdef __STDC__
28196 # include <limits.h>
28197 #else
28198 # include <assert.h>
28199 #endif
28200
28201 #undef sethostent_r
28202
28203 /* Override any gcc2 internal prototype to avoid an error.  */
28204 #ifdef __cplusplus
28205 extern "C"
28206 {
28207 #endif
28208 /* We use char because int might match the return type of a gcc2
28209    builtin and then its argument prototype would still apply.  */
28210 char sethostent_r ();
28211 /* The GNU C library defines this for functions which it implements
28212     to always fail with ENOSYS.  Some functions are actually named
28213     something starting with __ and the normal name is an alias.  */
28214 #if defined (__stub_sethostent_r) || defined (__stub___sethostent_r)
28215 choke me
28216 #else
28217 char (*f) () = sethostent_r;
28218 #endif
28219 #ifdef __cplusplus
28220 }
28221 #endif
28222
28223 int
28224 main ()
28225 {
28226 return f != sethostent_r;
28227   ;
28228   return 0;
28229 }
28230 _ACEOF
28231 rm -f conftest.$ac_objext conftest$ac_exeext
28232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28233   (eval $ac_link) 2>conftest.er1
28234   ac_status=$?
28235   grep -v '^ *+' conftest.er1 >conftest.err
28236   rm -f conftest.er1
28237   cat conftest.err >&5
28238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239   (exit $ac_status); } &&
28240          { ac_try='test -z "$ac_c_werror_flag"
28241                          || test ! -s conftest.err'
28242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28243   (eval $ac_try) 2>&5
28244   ac_status=$?
28245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246   (exit $ac_status); }; } &&
28247          { ac_try='test -s conftest$ac_exeext'
28248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28249   (eval $ac_try) 2>&5
28250   ac_status=$?
28251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252   (exit $ac_status); }; }; then
28253   ac_cv_func_sethostent_r=yes
28254 else
28255   echo "$as_me: failed program was:" >&5
28256 sed 's/^/| /' conftest.$ac_ext >&5
28257
28258 ac_cv_func_sethostent_r=no
28259 fi
28260 rm -f conftest.err conftest.$ac_objext \
28261       conftest$ac_exeext conftest.$ac_ext
28262 fi
28263 echo "$as_me:$LINENO: result: $ac_cv_func_sethostent_r" >&5
28264 echo "${ECHO_T}$ac_cv_func_sethostent_r" >&6
28265 if test $ac_cv_func_sethostent_r = yes; then
28266   cat >conftest.$ac_ext <<_ACEOF
28267 /* confdefs.h.  */
28268 _ACEOF
28269 cat confdefs.h >>conftest.$ac_ext
28270 cat >>conftest.$ac_ext <<_ACEOF
28271 /* end confdefs.h.  */
28272
28273 #undef _REENTRANT
28274 #define _REENTRANT
28275 #undef __USE_MISC
28276 #define __USE_MISC
28277 #include <netdb.h>
28278 extern void sethostent_r(int flag, struct hostent_data *ht_data);
28279 int
28280 main ()
28281 {
28282
28283   ;
28284   return 0;
28285 }
28286 _ACEOF
28287 rm -f conftest.$ac_objext
28288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28289   (eval $ac_compile) 2>conftest.er1
28290   ac_status=$?
28291   grep -v '^ *+' conftest.er1 >conftest.err
28292   rm -f conftest.er1
28293   cat conftest.err >&5
28294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295   (exit $ac_status); } &&
28296          { ac_try='test -z "$ac_c_werror_flag"
28297                          || test ! -s conftest.err'
28298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28299   (eval $ac_try) 2>&5
28300   ac_status=$?
28301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302   (exit $ac_status); }; } &&
28303          { ac_try='test -s conftest.$ac_objext'
28304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28305   (eval $ac_try) 2>&5
28306   ac_status=$?
28307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308   (exit $ac_status); }; }; then
28309   HOST_R_SET_RESULT="#undef HOST_R_SET_RESULT /*empty*/"
28310 HOST_R_SET_RETURN="#define HOST_R_SET_RETURN void"
28311 else
28312   echo "$as_me: failed program was:" >&5
28313 sed 's/^/| /' conftest.$ac_ext >&5
28314
28315 cat >conftest.$ac_ext <<_ACEOF
28316 /* confdefs.h.  */
28317 _ACEOF
28318 cat confdefs.h >>conftest.$ac_ext
28319 cat >>conftest.$ac_ext <<_ACEOF
28320 /* end confdefs.h.  */
28321
28322 #undef _REENTRANT
28323 #define _REENTRANT
28324 #undef __USE_MISC
28325 #define __USE_MISC
28326 #include <netdb.h>
28327 extern int sethostent_r(int flag, struct hostent_data *ht_data);
28328 int
28329 main ()
28330 {
28331
28332   ;
28333   return 0;
28334 }
28335 _ACEOF
28336 rm -f conftest.$ac_objext
28337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28338   (eval $ac_compile) 2>conftest.er1
28339   ac_status=$?
28340   grep -v '^ *+' conftest.er1 >conftest.err
28341   rm -f conftest.er1
28342   cat conftest.err >&5
28343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344   (exit $ac_status); } &&
28345          { ac_try='test -z "$ac_c_werror_flag"
28346                          || test ! -s conftest.err'
28347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28348   (eval $ac_try) 2>&5
28349   ac_status=$?
28350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351   (exit $ac_status); }; } &&
28352          { ac_try='test -s conftest.$ac_objext'
28353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28354   (eval $ac_try) 2>&5
28355   ac_status=$?
28356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357   (exit $ac_status); }; }; then
28358   HOST_R_SET_RESULT="#define HOST_R_SET_RESULT 0"
28359 HOST_R_SET_RETURN="#define HOST_R_SET_RETURN int"
28360 else
28361   echo "$as_me: failed program was:" >&5
28362 sed 's/^/| /' conftest.$ac_ext >&5
28363
28364 cat >conftest.$ac_ext <<_ACEOF
28365 /* confdefs.h.  */
28366 _ACEOF
28367 cat confdefs.h >>conftest.$ac_ext
28368 cat >>conftest.$ac_ext <<_ACEOF
28369 /* end confdefs.h.  */
28370
28371 #undef _REENTRANT
28372 #define _REENTRANT
28373 #undef __USE_MISC
28374 #define __USE_MISC
28375 #include <netdb.h>
28376 void            sethostent_r (int);
28377 int
28378 main ()
28379 {
28380
28381   ;
28382   return 0;
28383 }
28384 _ACEOF
28385 rm -f conftest.$ac_objext
28386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28387   (eval $ac_compile) 2>conftest.er1
28388   ac_status=$?
28389   grep -v '^ *+' conftest.er1 >conftest.err
28390   rm -f conftest.er1
28391   cat conftest.err >&5
28392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393   (exit $ac_status); } &&
28394          { ac_try='test -z "$ac_c_werror_flag"
28395                          || test ! -s conftest.err'
28396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28397   (eval $ac_try) 2>&5
28398   ac_status=$?
28399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400   (exit $ac_status); }; } &&
28401          { ac_try='test -s conftest.$ac_objext'
28402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28403   (eval $ac_try) 2>&5
28404   ac_status=$?
28405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406   (exit $ac_status); }; }; then
28407   HOST_R_SET_RESULT="#undef HOST_R_SET_RESULT"
28408 HOST_R_SET_RETURN="#define HOST_R_SET_RETURN void"
28409 else
28410   echo "$as_me: failed program was:" >&5
28411 sed 's/^/| /' conftest.$ac_ext >&5
28412
28413 fi
28414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28415
28416 fi
28417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28418
28419 fi
28420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28421
28422 else
28423   HOST_R_SET_RESULT="#undef HOST_R_SET_RESULT"
28424 HOST_R_SET_RETURN="#define HOST_R_SET_RETURN void"
28425
28426 fi
28427
28428 esac
28429
28430
28431
28432
28433 echo "$as_me:$LINENO: checking struct passwd element pw_class" >&5
28434 echo $ECHO_N "checking struct passwd element pw_class... $ECHO_C" >&6
28435 cat >conftest.$ac_ext <<_ACEOF
28436 /* confdefs.h.  */
28437 _ACEOF
28438 cat confdefs.h >>conftest.$ac_ext
28439 cat >>conftest.$ac_ext <<_ACEOF
28440 /* end confdefs.h.  */
28441
28442 #include <sys/types.h>
28443 #include <pwd.h>
28444
28445 int
28446 main ()
28447 {
28448 struct passwd *pw; pw->pw_class = "";
28449   ;
28450   return 0;
28451 }
28452 _ACEOF
28453 rm -f conftest.$ac_objext
28454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28455   (eval $ac_compile) 2>conftest.er1
28456   ac_status=$?
28457   grep -v '^ *+' conftest.er1 >conftest.err
28458   rm -f conftest.er1
28459   cat conftest.err >&5
28460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461   (exit $ac_status); } &&
28462          { ac_try='test -z "$ac_c_werror_flag"
28463                          || test ! -s conftest.err'
28464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28465   (eval $ac_try) 2>&5
28466   ac_status=$?
28467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28468   (exit $ac_status); }; } &&
28469          { ac_try='test -s conftest.$ac_objext'
28470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28471   (eval $ac_try) 2>&5
28472   ac_status=$?
28473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474   (exit $ac_status); }; }; then
28475   echo "$as_me:$LINENO: result: yes" >&5
28476 echo "${ECHO_T}yes" >&6
28477 cat >>confdefs.h <<\_ACEOF
28478 #define HAS_PW_CLASS 1
28479 _ACEOF
28480
28481
28482 else
28483   echo "$as_me: failed program was:" >&5
28484 sed 's/^/| /' conftest.$ac_ext >&5
28485
28486 echo "$as_me:$LINENO: result: no" >&5
28487 echo "${ECHO_T}no" >&6
28488
28489 fi
28490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28491
28492 cat >conftest.$ac_ext <<_ACEOF
28493 /* confdefs.h.  */
28494 _ACEOF
28495 cat confdefs.h >>conftest.$ac_ext
28496 cat >>conftest.$ac_ext <<_ACEOF
28497 /* end confdefs.h.  */
28498
28499 #include <sys/types.h>
28500 #include <pwd.h>
28501 void
28502 setpwent(void) {}
28503
28504 int
28505 main ()
28506 {
28507 return (0);
28508   ;
28509   return 0;
28510 }
28511 _ACEOF
28512 rm -f conftest.$ac_objext
28513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28514   (eval $ac_compile) 2>conftest.er1
28515   ac_status=$?
28516   grep -v '^ *+' conftest.er1 >conftest.err
28517   rm -f conftest.er1
28518   cat conftest.err >&5
28519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520   (exit $ac_status); } &&
28521          { ac_try='test -z "$ac_c_werror_flag"
28522                          || test ! -s conftest.err'
28523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28524   (eval $ac_try) 2>&5
28525   ac_status=$?
28526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527   (exit $ac_status); }; } &&
28528          { ac_try='test -s conftest.$ac_objext'
28529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28530   (eval $ac_try) 2>&5
28531   ac_status=$?
28532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533   (exit $ac_status); }; }; then
28534   SETPWENT_VOID="#define SETPWENT_VOID 1"
28535
28536 else
28537   echo "$as_me: failed program was:" >&5
28538 sed 's/^/| /' conftest.$ac_ext >&5
28539
28540 SETPWENT_VOID="#undef SETPWENT_VOID"
28541
28542 fi
28543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28544
28545
28546 cat >conftest.$ac_ext <<_ACEOF
28547 /* confdefs.h.  */
28548 _ACEOF
28549 cat confdefs.h >>conftest.$ac_ext
28550 cat >>conftest.$ac_ext <<_ACEOF
28551 /* end confdefs.h.  */
28552
28553 #include <sys/types.h>
28554 #include <grp.h>
28555 void
28556 setgrent(void) {}
28557
28558 int
28559 main ()
28560 {
28561 return (0);
28562   ;
28563   return 0;
28564 }
28565 _ACEOF
28566 rm -f conftest.$ac_objext
28567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28568   (eval $ac_compile) 2>conftest.er1
28569   ac_status=$?
28570   grep -v '^ *+' conftest.er1 >conftest.err
28571   rm -f conftest.er1
28572   cat conftest.err >&5
28573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28574   (exit $ac_status); } &&
28575          { ac_try='test -z "$ac_c_werror_flag"
28576                          || test ! -s conftest.err'
28577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28578   (eval $ac_try) 2>&5
28579   ac_status=$?
28580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581   (exit $ac_status); }; } &&
28582          { ac_try='test -s conftest.$ac_objext'
28583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28584   (eval $ac_try) 2>&5
28585   ac_status=$?
28586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28587   (exit $ac_status); }; }; then
28588   SETGRENT_VOID="#define SETGRENT_VOID 1"
28589
28590 else
28591   echo "$as_me: failed program was:" >&5
28592 sed 's/^/| /' conftest.$ac_ext >&5
28593
28594 SETGRENT_VOID="#undef SETGRENT_VOID"
28595
28596 fi
28597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28598
28599
28600 case $host in
28601 ia64-hp-hpux11.*)
28602 ;;
28603 *)
28604 echo "$as_me:$LINENO: checking for getnetgrent_r" >&5
28605 echo $ECHO_N "checking for getnetgrent_r... $ECHO_C" >&6
28606 if test "${ac_cv_func_getnetgrent_r+set}" = set; then
28607   echo $ECHO_N "(cached) $ECHO_C" >&6
28608 else
28609   cat >conftest.$ac_ext <<_ACEOF
28610 /* confdefs.h.  */
28611 _ACEOF
28612 cat confdefs.h >>conftest.$ac_ext
28613 cat >>conftest.$ac_ext <<_ACEOF
28614 /* end confdefs.h.  */
28615 /* Define getnetgrent_r to an innocuous variant, in case <limits.h> declares getnetgrent_r.
28616    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28617 #define getnetgrent_r innocuous_getnetgrent_r
28618
28619 /* System header to define __stub macros and hopefully few prototypes,
28620     which can conflict with char getnetgrent_r (); below.
28621     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28622     <limits.h> exists even on freestanding compilers.  */
28623
28624 #ifdef __STDC__
28625 # include <limits.h>
28626 #else
28627 # include <assert.h>
28628 #endif
28629
28630 #undef getnetgrent_r
28631
28632 /* Override any gcc2 internal prototype to avoid an error.  */
28633 #ifdef __cplusplus
28634 extern "C"
28635 {
28636 #endif
28637 /* We use char because int might match the return type of a gcc2
28638    builtin and then its argument prototype would still apply.  */
28639 char getnetgrent_r ();
28640 /* The GNU C library defines this for functions which it implements
28641     to always fail with ENOSYS.  Some functions are actually named
28642     something starting with __ and the normal name is an alias.  */
28643 #if defined (__stub_getnetgrent_r) || defined (__stub___getnetgrent_r)
28644 choke me
28645 #else
28646 char (*f) () = getnetgrent_r;
28647 #endif
28648 #ifdef __cplusplus
28649 }
28650 #endif
28651
28652 int
28653 main ()
28654 {
28655 return f != getnetgrent_r;
28656   ;
28657   return 0;
28658 }
28659 _ACEOF
28660 rm -f conftest.$ac_objext conftest$ac_exeext
28661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28662   (eval $ac_link) 2>conftest.er1
28663   ac_status=$?
28664   grep -v '^ *+' conftest.er1 >conftest.err
28665   rm -f conftest.er1
28666   cat conftest.err >&5
28667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668   (exit $ac_status); } &&
28669          { ac_try='test -z "$ac_c_werror_flag"
28670                          || test ! -s conftest.err'
28671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672   (eval $ac_try) 2>&5
28673   ac_status=$?
28674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675   (exit $ac_status); }; } &&
28676          { ac_try='test -s conftest$ac_exeext'
28677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28678   (eval $ac_try) 2>&5
28679   ac_status=$?
28680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681   (exit $ac_status); }; }; then
28682   ac_cv_func_getnetgrent_r=yes
28683 else
28684   echo "$as_me: failed program was:" >&5
28685 sed 's/^/| /' conftest.$ac_ext >&5
28686
28687 ac_cv_func_getnetgrent_r=no
28688 fi
28689 rm -f conftest.err conftest.$ac_objext \
28690       conftest$ac_exeext conftest.$ac_ext
28691 fi
28692 echo "$as_me:$LINENO: result: $ac_cv_func_getnetgrent_r" >&5
28693 echo "${ECHO_T}$ac_cv_func_getnetgrent_r" >&6
28694 if test $ac_cv_func_getnetgrent_r = yes; then
28695   cat >conftest.$ac_ext <<_ACEOF
28696 /* confdefs.h.  */
28697 _ACEOF
28698 cat confdefs.h >>conftest.$ac_ext
28699 cat >>conftest.$ac_ext <<_ACEOF
28700 /* end confdefs.h.  */
28701
28702 #undef __USE_MISC
28703 #define __USE_MISC
28704 #include <netdb.h>
28705 int getnetgrent_r(char **m, char **u, char **d, char *b, int l) {}
28706
28707
28708 int
28709 main ()
28710 {
28711 return (0);
28712   ;
28713   return 0;
28714 }
28715 _ACEOF
28716 rm -f conftest.$ac_objext
28717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28718   (eval $ac_compile) 2>conftest.er1
28719   ac_status=$?
28720   grep -v '^ *+' conftest.er1 >conftest.err
28721   rm -f conftest.er1
28722   cat conftest.err >&5
28723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724   (exit $ac_status); } &&
28725          { ac_try='test -z "$ac_c_werror_flag"
28726                          || test ! -s conftest.err'
28727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28728   (eval $ac_try) 2>&5
28729   ac_status=$?
28730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28731   (exit $ac_status); }; } &&
28732          { ac_try='test -s conftest.$ac_objext'
28733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28734   (eval $ac_try) 2>&5
28735   ac_status=$?
28736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737   (exit $ac_status); }; }; then
28738
28739 NGR_R_ARGS="#define NGR_R_ARGS char *buf, int buflen"
28740 NGR_R_BAD="#define NGR_R_BAD (0)"
28741 NGR_R_COPY="#define NGR_R_COPY buf, buflen"
28742 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"
28743 NGR_R_OK="#define NGR_R_OK 1"
28744 NGR_R_RETURN="#define NGR_R_RETURN int"
28745
28746
28747 else
28748   echo "$as_me: failed program was:" >&5
28749 sed 's/^/| /' conftest.$ac_ext >&5
28750
28751 cat >conftest.$ac_ext <<_ACEOF
28752 /* confdefs.h.  */
28753 _ACEOF
28754 cat confdefs.h >>conftest.$ac_ext
28755 cat >>conftest.$ac_ext <<_ACEOF
28756 /* end confdefs.h.  */
28757
28758 #undef __USE_MISC
28759 #define __USE_MISC
28760 #include <netdb.h>
28761 int getnetgrent_r(char **m, char **u, char **d, char *b, size_t l) {}
28762
28763
28764 int
28765 main ()
28766 {
28767 return (0);
28768   ;
28769   return 0;
28770 }
28771 _ACEOF
28772 rm -f conftest.$ac_objext
28773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28774   (eval $ac_compile) 2>conftest.er1
28775   ac_status=$?
28776   grep -v '^ *+' conftest.er1 >conftest.err
28777   rm -f conftest.er1
28778   cat conftest.err >&5
28779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780   (exit $ac_status); } &&
28781          { ac_try='test -z "$ac_c_werror_flag"
28782                          || test ! -s conftest.err'
28783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28784   (eval $ac_try) 2>&5
28785   ac_status=$?
28786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787   (exit $ac_status); }; } &&
28788          { ac_try='test -s conftest.$ac_objext'
28789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28790   (eval $ac_try) 2>&5
28791   ac_status=$?
28792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793   (exit $ac_status); }; }; then
28794
28795 NGR_R_ARGS="#define NGR_R_ARGS char *buf, size_t buflen"
28796 NGR_R_BAD="#define NGR_R_BAD (0)"
28797 NGR_R_COPY="#define NGR_R_COPY buf, buflen"
28798 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"
28799 NGR_R_OK="#define NGR_R_OK 1"
28800 NGR_R_RETURN="#define NGR_R_RETURN int"
28801
28802
28803 else
28804   echo "$as_me: failed program was:" >&5
28805 sed 's/^/| /' conftest.$ac_ext >&5
28806
28807 cat >conftest.$ac_ext <<_ACEOF
28808 /* confdefs.h.  */
28809 _ACEOF
28810 cat confdefs.h >>conftest.$ac_ext
28811 cat >>conftest.$ac_ext <<_ACEOF
28812 /* end confdefs.h.  */
28813
28814 #undef __USE_MISC
28815 #define __USE_MISC
28816 #include <netdb.h>
28817 extern int getnetgrent_r( char **, char **, char **, void **);
28818
28819
28820 int
28821 main ()
28822 {
28823 return (0);
28824   ;
28825   return 0;
28826 }
28827 _ACEOF
28828 rm -f conftest.$ac_objext
28829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28830   (eval $ac_compile) 2>conftest.er1
28831   ac_status=$?
28832   grep -v '^ *+' conftest.er1 >conftest.err
28833   rm -f conftest.er1
28834   cat conftest.err >&5
28835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836   (exit $ac_status); } &&
28837          { ac_try='test -z "$ac_c_werror_flag"
28838                          || test ! -s conftest.err'
28839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28840   (eval $ac_try) 2>&5
28841   ac_status=$?
28842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843   (exit $ac_status); }; } &&
28844          { ac_try='test -s conftest.$ac_objext'
28845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28846   (eval $ac_try) 2>&5
28847   ac_status=$?
28848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849   (exit $ac_status); }; }; then
28850
28851 NGR_R_ARGS="#define NGR_R_ARGS void **buf"
28852 NGR_R_BAD="#define NGR_R_BAD (0)"
28853 NGR_R_COPY="#define NGR_R_COPY buf"
28854 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"
28855 NGR_R_OK="#define NGR_R_OK 1"
28856 NGR_R_RETURN="#define NGR_R_RETURN int"
28857 NGR_R_PRIVATE="#define NGR_R_PRIVATE 1"
28858
28859
28860 else
28861   echo "$as_me: failed program was:" >&5
28862 sed 's/^/| /' conftest.$ac_ext >&5
28863
28864 fi
28865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28866
28867 fi
28868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28869
28870 fi
28871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28872
28873 else
28874   NGR_R_ARGS="#define NGR_R_ARGS char *buf, int buflen"
28875 NGR_R_BAD="#define NGR_R_BAD (0)"
28876 NGR_R_COPY="#define NGR_R_COPY buf, buflen"
28877 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"
28878 NGR_R_OK="#define NGR_R_OK 1"
28879 NGR_R_RETURN="#define NGR_R_RETURN int"
28880
28881 fi
28882
28883 esac
28884
28885
28886
28887
28888
28889
28890
28891
28892 echo "$as_me:$LINENO: checking for endnetgrent_r" >&5
28893 echo $ECHO_N "checking for endnetgrent_r... $ECHO_C" >&6
28894 if test "${ac_cv_func_endnetgrent_r+set}" = set; then
28895   echo $ECHO_N "(cached) $ECHO_C" >&6
28896 else
28897   cat >conftest.$ac_ext <<_ACEOF
28898 /* confdefs.h.  */
28899 _ACEOF
28900 cat confdefs.h >>conftest.$ac_ext
28901 cat >>conftest.$ac_ext <<_ACEOF
28902 /* end confdefs.h.  */
28903 /* Define endnetgrent_r to an innocuous variant, in case <limits.h> declares endnetgrent_r.
28904    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28905 #define endnetgrent_r innocuous_endnetgrent_r
28906
28907 /* System header to define __stub macros and hopefully few prototypes,
28908     which can conflict with char endnetgrent_r (); below.
28909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28910     <limits.h> exists even on freestanding compilers.  */
28911
28912 #ifdef __STDC__
28913 # include <limits.h>
28914 #else
28915 # include <assert.h>
28916 #endif
28917
28918 #undef endnetgrent_r
28919
28920 /* Override any gcc2 internal prototype to avoid an error.  */
28921 #ifdef __cplusplus
28922 extern "C"
28923 {
28924 #endif
28925 /* We use char because int might match the return type of a gcc2
28926    builtin and then its argument prototype would still apply.  */
28927 char endnetgrent_r ();
28928 /* The GNU C library defines this for functions which it implements
28929     to always fail with ENOSYS.  Some functions are actually named
28930     something starting with __ and the normal name is an alias.  */
28931 #if defined (__stub_endnetgrent_r) || defined (__stub___endnetgrent_r)
28932 choke me
28933 #else
28934 char (*f) () = endnetgrent_r;
28935 #endif
28936 #ifdef __cplusplus
28937 }
28938 #endif
28939
28940 int
28941 main ()
28942 {
28943 return f != endnetgrent_r;
28944   ;
28945   return 0;
28946 }
28947 _ACEOF
28948 rm -f conftest.$ac_objext conftest$ac_exeext
28949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28950   (eval $ac_link) 2>conftest.er1
28951   ac_status=$?
28952   grep -v '^ *+' conftest.er1 >conftest.err
28953   rm -f conftest.er1
28954   cat conftest.err >&5
28955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956   (exit $ac_status); } &&
28957          { ac_try='test -z "$ac_c_werror_flag"
28958                          || test ! -s conftest.err'
28959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28960   (eval $ac_try) 2>&5
28961   ac_status=$?
28962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963   (exit $ac_status); }; } &&
28964          { ac_try='test -s conftest$ac_exeext'
28965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28966   (eval $ac_try) 2>&5
28967   ac_status=$?
28968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969   (exit $ac_status); }; }; then
28970   ac_cv_func_endnetgrent_r=yes
28971 else
28972   echo "$as_me: failed program was:" >&5
28973 sed 's/^/| /' conftest.$ac_ext >&5
28974
28975 ac_cv_func_endnetgrent_r=no
28976 fi
28977 rm -f conftest.err conftest.$ac_objext \
28978       conftest$ac_exeext conftest.$ac_ext
28979 fi
28980 echo "$as_me:$LINENO: result: $ac_cv_func_endnetgrent_r" >&5
28981 echo "${ECHO_T}$ac_cv_func_endnetgrent_r" >&6
28982 if test $ac_cv_func_endnetgrent_r = yes; then
28983   cat >conftest.$ac_ext <<_ACEOF
28984 /* confdefs.h.  */
28985 _ACEOF
28986 cat confdefs.h >>conftest.$ac_ext
28987 cat >>conftest.$ac_ext <<_ACEOF
28988 /* end confdefs.h.  */
28989
28990 #undef __USE_MISC
28991 #define __USE_MISC
28992 #include <netdb.h>
28993 void endnetgrent_r(void **ptr);
28994
28995
28996 int
28997 main ()
28998 {
28999 return (0);
29000
29001   ;
29002   return 0;
29003 }
29004 _ACEOF
29005 rm -f conftest.$ac_objext
29006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29007   (eval $ac_compile) 2>conftest.er1
29008   ac_status=$?
29009   grep -v '^ *+' conftest.er1 >conftest.err
29010   rm -f conftest.er1
29011   cat conftest.err >&5
29012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013   (exit $ac_status); } &&
29014          { ac_try='test -z "$ac_c_werror_flag"
29015                          || test ! -s conftest.err'
29016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29017   (eval $ac_try) 2>&5
29018   ac_status=$?
29019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29020   (exit $ac_status); }; } &&
29021          { ac_try='test -s conftest.$ac_objext'
29022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29023   (eval $ac_try) 2>&5
29024   ac_status=$?
29025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026   (exit $ac_status); }; }; then
29027
29028 NGR_R_END_RESULT="#define NGR_R_END_RESULT(x)  /* empty */"
29029 NGR_R_END_RETURN="#define NGR_R_END_RETURN void"
29030 NGR_R_ENT_ARGS="#define NGR_R_ENT_ARGS NGR_R_ARGS"
29031
29032
29033 else
29034   echo "$as_me: failed program was:" >&5
29035 sed 's/^/| /' conftest.$ac_ext >&5
29036
29037
29038 NGR_R_END_RESULT="#define NGR_R_END_RESULT(x)  return (x)"
29039 NGR_R_END_RETURN="#define NGR_R_END_RETURN int"
29040 NGR_R_ENT_ARGS="#define NGR_R_ENT_ARGS NGR_R_ARGS"
29041
29042
29043 fi
29044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29045
29046 else
29047   NGR_R_END_RESULT="#define NGR_R_END_RESULT(x)  /*empty*/"
29048 NGR_R_END_RETURN="#define NGR_R_END_RETURN void"
29049 NGR_R_ENT_ARGS="#undef NGR_R_ENT_ARGS /*empty*/"
29050 cat >>confdefs.h <<\_ACEOF
29051 #define NEED_ENDNETGRENT_R 1
29052 _ACEOF
29053
29054
29055 fi
29056
29057
29058
29059
29060
29061 echo "$as_me:$LINENO: checking for setnetgrent_r" >&5
29062 echo $ECHO_N "checking for setnetgrent_r... $ECHO_C" >&6
29063 if test "${ac_cv_func_setnetgrent_r+set}" = set; then
29064   echo $ECHO_N "(cached) $ECHO_C" >&6
29065 else
29066   cat >conftest.$ac_ext <<_ACEOF
29067 /* confdefs.h.  */
29068 _ACEOF
29069 cat confdefs.h >>conftest.$ac_ext
29070 cat >>conftest.$ac_ext <<_ACEOF
29071 /* end confdefs.h.  */
29072 /* Define setnetgrent_r to an innocuous variant, in case <limits.h> declares setnetgrent_r.
29073    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29074 #define setnetgrent_r innocuous_setnetgrent_r
29075
29076 /* System header to define __stub macros and hopefully few prototypes,
29077     which can conflict with char setnetgrent_r (); below.
29078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29079     <limits.h> exists even on freestanding compilers.  */
29080
29081 #ifdef __STDC__
29082 # include <limits.h>
29083 #else
29084 # include <assert.h>
29085 #endif
29086
29087 #undef setnetgrent_r
29088
29089 /* Override any gcc2 internal prototype to avoid an error.  */
29090 #ifdef __cplusplus
29091 extern "C"
29092 {
29093 #endif
29094 /* We use char because int might match the return type of a gcc2
29095    builtin and then its argument prototype would still apply.  */
29096 char setnetgrent_r ();
29097 /* The GNU C library defines this for functions which it implements
29098     to always fail with ENOSYS.  Some functions are actually named
29099     something starting with __ and the normal name is an alias.  */
29100 #if defined (__stub_setnetgrent_r) || defined (__stub___setnetgrent_r)
29101 choke me
29102 #else
29103 char (*f) () = setnetgrent_r;
29104 #endif
29105 #ifdef __cplusplus
29106 }
29107 #endif
29108
29109 int
29110 main ()
29111 {
29112 return f != setnetgrent_r;
29113   ;
29114   return 0;
29115 }
29116 _ACEOF
29117 rm -f conftest.$ac_objext conftest$ac_exeext
29118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29119   (eval $ac_link) 2>conftest.er1
29120   ac_status=$?
29121   grep -v '^ *+' conftest.er1 >conftest.err
29122   rm -f conftest.er1
29123   cat conftest.err >&5
29124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125   (exit $ac_status); } &&
29126          { ac_try='test -z "$ac_c_werror_flag"
29127                          || test ! -s conftest.err'
29128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29129   (eval $ac_try) 2>&5
29130   ac_status=$?
29131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132   (exit $ac_status); }; } &&
29133          { ac_try='test -s conftest$ac_exeext'
29134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29135   (eval $ac_try) 2>&5
29136   ac_status=$?
29137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138   (exit $ac_status); }; }; then
29139   ac_cv_func_setnetgrent_r=yes
29140 else
29141   echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29143
29144 ac_cv_func_setnetgrent_r=no
29145 fi
29146 rm -f conftest.err conftest.$ac_objext \
29147       conftest$ac_exeext conftest.$ac_ext
29148 fi
29149 echo "$as_me:$LINENO: result: $ac_cv_func_setnetgrent_r" >&5
29150 echo "${ECHO_T}$ac_cv_func_setnetgrent_r" >&6
29151 if test $ac_cv_func_setnetgrent_r = yes; then
29152
29153 case "$host" in
29154 *bsdi*)
29155         NGR_R_SET_RESULT="#undef NGR_R_SET_RESULT /*empty*/"
29156         NGR_R_SET_RETURN="#define NGR_R_SET_RETURN void"
29157         ;;
29158 *)
29159         NGR_R_SET_RESULT="#define NGR_R_SET_RESULT NGR_R_OK"
29160         NGR_R_SET_RETURN="#define NGR_R_SET_RETURN int"
29161         ;;
29162 esac
29163
29164
29165 else
29166   NGR_R_SET_RESULT="#undef NGR_R_SET_RESULT /*empty*/"
29167 NGR_R_SET_RETURN="#define NGR_R_SET_RETURN void"
29168
29169 fi
29170
29171
29172
29173
29174 echo "$as_me:$LINENO: checking for innetgr_r" >&5
29175 echo $ECHO_N "checking for innetgr_r... $ECHO_C" >&6
29176 if test "${ac_cv_func_innetgr_r+set}" = set; then
29177   echo $ECHO_N "(cached) $ECHO_C" >&6
29178 else
29179   cat >conftest.$ac_ext <<_ACEOF
29180 /* confdefs.h.  */
29181 _ACEOF
29182 cat confdefs.h >>conftest.$ac_ext
29183 cat >>conftest.$ac_ext <<_ACEOF
29184 /* end confdefs.h.  */
29185 /* Define innetgr_r to an innocuous variant, in case <limits.h> declares innetgr_r.
29186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29187 #define innetgr_r innocuous_innetgr_r
29188
29189 /* System header to define __stub macros and hopefully few prototypes,
29190     which can conflict with char innetgr_r (); below.
29191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29192     <limits.h> exists even on freestanding compilers.  */
29193
29194 #ifdef __STDC__
29195 # include <limits.h>
29196 #else
29197 # include <assert.h>
29198 #endif
29199
29200 #undef innetgr_r
29201
29202 /* Override any gcc2 internal prototype to avoid an error.  */
29203 #ifdef __cplusplus
29204 extern "C"
29205 {
29206 #endif
29207 /* We use char because int might match the return type of a gcc2
29208    builtin and then its argument prototype would still apply.  */
29209 char innetgr_r ();
29210 /* The GNU C library defines this for functions which it implements
29211     to always fail with ENOSYS.  Some functions are actually named
29212     something starting with __ and the normal name is an alias.  */
29213 #if defined (__stub_innetgr_r) || defined (__stub___innetgr_r)
29214 choke me
29215 #else
29216 char (*f) () = innetgr_r;
29217 #endif
29218 #ifdef __cplusplus
29219 }
29220 #endif
29221
29222 int
29223 main ()
29224 {
29225 return f != innetgr_r;
29226   ;
29227   return 0;
29228 }
29229 _ACEOF
29230 rm -f conftest.$ac_objext conftest$ac_exeext
29231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29232   (eval $ac_link) 2>conftest.er1
29233   ac_status=$?
29234   grep -v '^ *+' conftest.er1 >conftest.err
29235   rm -f conftest.er1
29236   cat conftest.err >&5
29237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238   (exit $ac_status); } &&
29239          { ac_try='test -z "$ac_c_werror_flag"
29240                          || test ! -s conftest.err'
29241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29242   (eval $ac_try) 2>&5
29243   ac_status=$?
29244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245   (exit $ac_status); }; } &&
29246          { ac_try='test -s conftest$ac_exeext'
29247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29248   (eval $ac_try) 2>&5
29249   ac_status=$?
29250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251   (exit $ac_status); }; }; then
29252   ac_cv_func_innetgr_r=yes
29253 else
29254   echo "$as_me: failed program was:" >&5
29255 sed 's/^/| /' conftest.$ac_ext >&5
29256
29257 ac_cv_func_innetgr_r=no
29258 fi
29259 rm -f conftest.err conftest.$ac_objext \
29260       conftest$ac_exeext conftest.$ac_ext
29261 fi
29262 echo "$as_me:$LINENO: result: $ac_cv_func_innetgr_r" >&5
29263 echo "${ECHO_T}$ac_cv_func_innetgr_r" >&6
29264 if test $ac_cv_func_innetgr_r = yes; then
29265   :
29266 else
29267   cat >>confdefs.h <<\_ACEOF
29268 #define NEED_INNETGR_R 1
29269 _ACEOF
29270
29271 fi
29272
29273
29274 case $host in
29275 ia64-hp-hpux11.*)
29276 ;;
29277 *)
29278 echo "$as_me:$LINENO: checking for getprotoent_r" >&5
29279 echo $ECHO_N "checking for getprotoent_r... $ECHO_C" >&6
29280 if test "${ac_cv_func_getprotoent_r+set}" = set; then
29281   echo $ECHO_N "(cached) $ECHO_C" >&6
29282 else
29283   cat >conftest.$ac_ext <<_ACEOF
29284 /* confdefs.h.  */
29285 _ACEOF
29286 cat confdefs.h >>conftest.$ac_ext
29287 cat >>conftest.$ac_ext <<_ACEOF
29288 /* end confdefs.h.  */
29289 /* Define getprotoent_r to an innocuous variant, in case <limits.h> declares getprotoent_r.
29290    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29291 #define getprotoent_r innocuous_getprotoent_r
29292
29293 /* System header to define __stub macros and hopefully few prototypes,
29294     which can conflict with char getprotoent_r (); below.
29295     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29296     <limits.h> exists even on freestanding compilers.  */
29297
29298 #ifdef __STDC__
29299 # include <limits.h>
29300 #else
29301 # include <assert.h>
29302 #endif
29303
29304 #undef getprotoent_r
29305
29306 /* Override any gcc2 internal prototype to avoid an error.  */
29307 #ifdef __cplusplus
29308 extern "C"
29309 {
29310 #endif
29311 /* We use char because int might match the return type of a gcc2
29312    builtin and then its argument prototype would still apply.  */
29313 char getprotoent_r ();
29314 /* The GNU C library defines this for functions which it implements
29315     to always fail with ENOSYS.  Some functions are actually named
29316     something starting with __ and the normal name is an alias.  */
29317 #if defined (__stub_getprotoent_r) || defined (__stub___getprotoent_r)
29318 choke me
29319 #else
29320 char (*f) () = getprotoent_r;
29321 #endif
29322 #ifdef __cplusplus
29323 }
29324 #endif
29325
29326 int
29327 main ()
29328 {
29329 return f != getprotoent_r;
29330   ;
29331   return 0;
29332 }
29333 _ACEOF
29334 rm -f conftest.$ac_objext conftest$ac_exeext
29335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29336   (eval $ac_link) 2>conftest.er1
29337   ac_status=$?
29338   grep -v '^ *+' conftest.er1 >conftest.err
29339   rm -f conftest.er1
29340   cat conftest.err >&5
29341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342   (exit $ac_status); } &&
29343          { ac_try='test -z "$ac_c_werror_flag"
29344                          || test ! -s conftest.err'
29345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29346   (eval $ac_try) 2>&5
29347   ac_status=$?
29348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349   (exit $ac_status); }; } &&
29350          { ac_try='test -s conftest$ac_exeext'
29351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29352   (eval $ac_try) 2>&5
29353   ac_status=$?
29354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355   (exit $ac_status); }; }; then
29356   ac_cv_func_getprotoent_r=yes
29357 else
29358   echo "$as_me: failed program was:" >&5
29359 sed 's/^/| /' conftest.$ac_ext >&5
29360
29361 ac_cv_func_getprotoent_r=no
29362 fi
29363 rm -f conftest.err conftest.$ac_objext \
29364       conftest$ac_exeext conftest.$ac_ext
29365 fi
29366 echo "$as_me:$LINENO: result: $ac_cv_func_getprotoent_r" >&5
29367 echo "${ECHO_T}$ac_cv_func_getprotoent_r" >&6
29368 if test $ac_cv_func_getprotoent_r = yes; then
29369   cat >conftest.$ac_ext <<_ACEOF
29370 /* confdefs.h.  */
29371 _ACEOF
29372 cat confdefs.h >>conftest.$ac_ext
29373 cat >>conftest.$ac_ext <<_ACEOF
29374 /* end confdefs.h.  */
29375
29376 #undef __USE_MISC
29377 #define __USE_MISC
29378 #include <netdb.h>
29379 struct protoent *getprotoent_r(struct protoent *result,
29380                  char *buffer, int buflen) {}
29381
29382
29383 int
29384 main ()
29385 {
29386 return (0);
29387
29388   ;
29389   return 0;
29390 }
29391 _ACEOF
29392 rm -f conftest.$ac_objext
29393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29394   (eval $ac_compile) 2>conftest.er1
29395   ac_status=$?
29396   grep -v '^ *+' conftest.er1 >conftest.err
29397   rm -f conftest.er1
29398   cat conftest.err >&5
29399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400   (exit $ac_status); } &&
29401          { ac_try='test -z "$ac_c_werror_flag"
29402                          || test ! -s conftest.err'
29403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29404   (eval $ac_try) 2>&5
29405   ac_status=$?
29406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407   (exit $ac_status); }; } &&
29408          { ac_try='test -s conftest.$ac_objext'
29409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29410   (eval $ac_try) 2>&5
29411   ac_status=$?
29412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413   (exit $ac_status); }; }; then
29414
29415 PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, int buflen"
29416 PROTO_R_BAD="#define PROTO_R_BAD NULL"
29417 PROTO_R_COPY="#define PROTO_R_COPY buf, buflen"
29418 PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS PROTO_R_ARGS"
29419 PROTO_R_OK="#define PROTO_R_OK pptr"
29420 PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER"
29421 PROTO_R_RETURN="#define PROTO_R_RETURN struct protoent *"
29422 PROTOENT_DATA="#undef PROTOENT_DATA"
29423
29424
29425 else
29426   echo "$as_me: failed program was:" >&5
29427 sed 's/^/| /' conftest.$ac_ext >&5
29428
29429 cat >conftest.$ac_ext <<_ACEOF
29430 /* confdefs.h.  */
29431 _ACEOF
29432 cat confdefs.h >>conftest.$ac_ext
29433 cat >>conftest.$ac_ext <<_ACEOF
29434 /* end confdefs.h.  */
29435
29436 #undef __USE_MISC
29437 #define __USE_MISC
29438 #include <netdb.h>
29439 int getprotoent_r (struct protoent *, char *, size_t, struct protoent **);
29440
29441
29442
29443 int
29444 main ()
29445 {
29446 return (0);
29447
29448   ;
29449   return 0;
29450 }
29451 _ACEOF
29452 rm -f conftest.$ac_objext
29453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29454   (eval $ac_compile) 2>conftest.er1
29455   ac_status=$?
29456   grep -v '^ *+' conftest.er1 >conftest.err
29457   rm -f conftest.er1
29458   cat conftest.err >&5
29459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460   (exit $ac_status); } &&
29461          { ac_try='test -z "$ac_c_werror_flag"
29462                          || test ! -s conftest.err'
29463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29464   (eval $ac_try) 2>&5
29465   ac_status=$?
29466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467   (exit $ac_status); }; } &&
29468          { ac_try='test -s conftest.$ac_objext'
29469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29470   (eval $ac_try) 2>&5
29471   ac_status=$?
29472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473   (exit $ac_status); }; }; then
29474
29475 PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, size_t buflen, struct protoent **answerp"
29476 PROTO_R_BAD="#define PROTO_R_BAD ERANGE"
29477 PROTO_R_COPY="#define PROTO_R_COPY buf, buflen"
29478 PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS char *buf, size_t buflen"
29479 PROTO_R_OK="#define PROTO_R_OK 0"
29480 PROTO_R_SETANSWER="#define PROTO_R_SETANSWER 1"
29481 PROTO_R_RETURN="#define PROTO_R_RETURN int"
29482 PROTOENT_DATA="#undef PROTOENT_DATA"
29483
29484
29485 else
29486   echo "$as_me: failed program was:" >&5
29487 sed 's/^/| /' conftest.$ac_ext >&5
29488
29489 cat >conftest.$ac_ext <<_ACEOF
29490 /* confdefs.h.  */
29491 _ACEOF
29492 cat confdefs.h >>conftest.$ac_ext
29493 cat >>conftest.$ac_ext <<_ACEOF
29494 /* end confdefs.h.  */
29495
29496 #undef __USE_MISC
29497 #define __USE_MISC
29498 #include <netdb.h>
29499 int getprotoent_r (struct protoent *, struct protoent_data *prot_data);
29500
29501
29502
29503 int
29504 main ()
29505 {
29506 return (0);
29507
29508   ;
29509   return 0;
29510 }
29511 _ACEOF
29512 rm -f conftest.$ac_objext
29513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29514   (eval $ac_compile) 2>conftest.er1
29515   ac_status=$?
29516   grep -v '^ *+' conftest.er1 >conftest.err
29517   rm -f conftest.er1
29518   cat conftest.err >&5
29519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29520   (exit $ac_status); } &&
29521          { ac_try='test -z "$ac_c_werror_flag"
29522                          || test ! -s conftest.err'
29523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29524   (eval $ac_try) 2>&5
29525   ac_status=$?
29526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527   (exit $ac_status); }; } &&
29528          { ac_try='test -s conftest.$ac_objext'
29529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29530   (eval $ac_try) 2>&5
29531   ac_status=$?
29532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533   (exit $ac_status); }; }; then
29534
29535 PROTO_R_ARGS="#define PROTO_R_ARGS struct protoent_data *prot_data"
29536 PROTO_R_BAD="#define PROTO_R_BAD (-1)"
29537 PROTO_R_COPY="#define PROTO_R_COPY prot_data"
29538 PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS struct protoent_data *pdptr"
29539 PROTO_R_OK="#define PROTO_R_OK 0"
29540 PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER"
29541 PROTO_R_RETURN="#define PROTO_R_RETURN int"
29542 PROTOENT_DATA="#define PROTOENT_DATA 1"
29543
29544
29545 else
29546   echo "$as_me: failed program was:" >&5
29547 sed 's/^/| /' conftest.$ac_ext >&5
29548
29549 fi
29550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29551
29552 fi
29553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29554
29555 fi
29556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29557
29558 else
29559   PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, int buflen"
29560 PROTO_R_BAD="#define PROTO_R_BAD NULL"
29561 PROTO_R_COPY="#define PROTO_R_COPY buf, buflen"
29562 PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS PROTO_R_ARGS"
29563 PROTO_R_OK="#define PROTO_R_OK pptr"
29564 PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER"
29565 PROTO_R_RETURN="#define PROTO_R_RETURN struct protoent *"
29566 PROTOENT_DATA="#undef PROTOENT_DATA"
29567
29568 fi
29569
29570 ;;
29571 esac
29572
29573
29574
29575
29576
29577
29578
29579
29580
29581 case $host in
29582 ia64-hp-hpux11.*)
29583 ;;
29584 *)
29585 echo "$as_me:$LINENO: checking for endprotoent_r" >&5
29586 echo $ECHO_N "checking for endprotoent_r... $ECHO_C" >&6
29587 if test "${ac_cv_func_endprotoent_r+set}" = set; then
29588   echo $ECHO_N "(cached) $ECHO_C" >&6
29589 else
29590   cat >conftest.$ac_ext <<_ACEOF
29591 /* confdefs.h.  */
29592 _ACEOF
29593 cat confdefs.h >>conftest.$ac_ext
29594 cat >>conftest.$ac_ext <<_ACEOF
29595 /* end confdefs.h.  */
29596 /* Define endprotoent_r to an innocuous variant, in case <limits.h> declares endprotoent_r.
29597    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29598 #define endprotoent_r innocuous_endprotoent_r
29599
29600 /* System header to define __stub macros and hopefully few prototypes,
29601     which can conflict with char endprotoent_r (); below.
29602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29603     <limits.h> exists even on freestanding compilers.  */
29604
29605 #ifdef __STDC__
29606 # include <limits.h>
29607 #else
29608 # include <assert.h>
29609 #endif
29610
29611 #undef endprotoent_r
29612
29613 /* Override any gcc2 internal prototype to avoid an error.  */
29614 #ifdef __cplusplus
29615 extern "C"
29616 {
29617 #endif
29618 /* We use char because int might match the return type of a gcc2
29619    builtin and then its argument prototype would still apply.  */
29620 char endprotoent_r ();
29621 /* The GNU C library defines this for functions which it implements
29622     to always fail with ENOSYS.  Some functions are actually named
29623     something starting with __ and the normal name is an alias.  */
29624 #if defined (__stub_endprotoent_r) || defined (__stub___endprotoent_r)
29625 choke me
29626 #else
29627 char (*f) () = endprotoent_r;
29628 #endif
29629 #ifdef __cplusplus
29630 }
29631 #endif
29632
29633 int
29634 main ()
29635 {
29636 return f != endprotoent_r;
29637   ;
29638   return 0;
29639 }
29640 _ACEOF
29641 rm -f conftest.$ac_objext conftest$ac_exeext
29642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29643   (eval $ac_link) 2>conftest.er1
29644   ac_status=$?
29645   grep -v '^ *+' conftest.er1 >conftest.err
29646   rm -f conftest.er1
29647   cat conftest.err >&5
29648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649   (exit $ac_status); } &&
29650          { ac_try='test -z "$ac_c_werror_flag"
29651                          || test ! -s conftest.err'
29652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29653   (eval $ac_try) 2>&5
29654   ac_status=$?
29655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656   (exit $ac_status); }; } &&
29657          { ac_try='test -s conftest$ac_exeext'
29658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29659   (eval $ac_try) 2>&5
29660   ac_status=$?
29661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662   (exit $ac_status); }; }; then
29663   ac_cv_func_endprotoent_r=yes
29664 else
29665   echo "$as_me: failed program was:" >&5
29666 sed 's/^/| /' conftest.$ac_ext >&5
29667
29668 ac_cv_func_endprotoent_r=no
29669 fi
29670 rm -f conftest.err conftest.$ac_objext \
29671       conftest$ac_exeext conftest.$ac_ext
29672 fi
29673 echo "$as_me:$LINENO: result: $ac_cv_func_endprotoent_r" >&5
29674 echo "${ECHO_T}$ac_cv_func_endprotoent_r" >&6
29675 if test $ac_cv_func_endprotoent_r = yes; then
29676   cat >conftest.$ac_ext <<_ACEOF
29677 /* confdefs.h.  */
29678 _ACEOF
29679 cat confdefs.h >>conftest.$ac_ext
29680 cat >>conftest.$ac_ext <<_ACEOF
29681 /* end confdefs.h.  */
29682
29683 #undef _REENTRANT
29684 #define _REENTRANT
29685 #undef __USE_MISC
29686 #define __USE_MISC
29687 #include <netdb.h>
29688 void endprotoent_r(void);
29689
29690
29691 int
29692 main ()
29693 {
29694
29695   ;
29696   return 0;
29697 }
29698 _ACEOF
29699 rm -f conftest.$ac_objext
29700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29701   (eval $ac_compile) 2>conftest.er1
29702   ac_status=$?
29703   grep -v '^ *+' conftest.er1 >conftest.err
29704   rm -f conftest.er1
29705   cat conftest.err >&5
29706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707   (exit $ac_status); } &&
29708          { ac_try='test -z "$ac_c_werror_flag"
29709                          || test ! -s conftest.err'
29710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29711   (eval $ac_try) 2>&5
29712   ac_status=$?
29713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714   (exit $ac_status); }; } &&
29715          { ac_try='test -s conftest.$ac_objext'
29716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29717   (eval $ac_try) 2>&5
29718   ac_status=$?
29719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29720   (exit $ac_status); }; }; then
29721
29722 PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/"
29723 PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void"
29724 PROTO_R_ENT_ARGS="#undef PROTO_R_ENT_ARGS"
29725 PROTO_R_ENT_UNUSED="#undef PROTO_R_ENT_UNUSED"
29726
29727
29728 else
29729   echo "$as_me: failed program was:" >&5
29730 sed 's/^/| /' conftest.$ac_ext >&5
29731
29732 cat >conftest.$ac_ext <<_ACEOF
29733 /* confdefs.h.  */
29734 _ACEOF
29735 cat confdefs.h >>conftest.$ac_ext
29736 cat >>conftest.$ac_ext <<_ACEOF
29737 /* end confdefs.h.  */
29738
29739 #undef _REENTRANT
29740 #define _REENTRANT
29741 #undef __USE_MISC
29742 #define __USE_MISC
29743 #include <netdb.h>
29744 void endprotoent_r(struct protoent_data *);
29745
29746
29747 int
29748 main ()
29749 {
29750
29751   ;
29752   return 0;
29753 }
29754 _ACEOF
29755 rm -f conftest.$ac_objext
29756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29757   (eval $ac_compile) 2>conftest.er1
29758   ac_status=$?
29759   grep -v '^ *+' conftest.er1 >conftest.err
29760   rm -f conftest.er1
29761   cat conftest.err >&5
29762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763   (exit $ac_status); } &&
29764          { ac_try='test -z "$ac_c_werror_flag"
29765                          || test ! -s conftest.err'
29766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29767   (eval $ac_try) 2>&5
29768   ac_status=$?
29769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29770   (exit $ac_status); }; } &&
29771          { ac_try='test -s conftest.$ac_objext'
29772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29773   (eval $ac_try) 2>&5
29774   ac_status=$?
29775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776   (exit $ac_status); }; }; then
29777
29778 PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/"
29779 PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void"
29780 PROTO_R_ENT_ARGS="#define PROTO_R_ENT_ARGS struct protoent_data *proto_data"
29781 PROTO_R_ENT_UNUSED="#define PROTO_R_ENT_UNUSED UNUSED(proto_data)"
29782
29783
29784 else
29785   echo "$as_me: failed program was:" >&5
29786 sed 's/^/| /' conftest.$ac_ext >&5
29787
29788 cat >conftest.$ac_ext <<_ACEOF
29789 /* confdefs.h.  */
29790 _ACEOF
29791 cat confdefs.h >>conftest.$ac_ext
29792 cat >>conftest.$ac_ext <<_ACEOF
29793 /* end confdefs.h.  */
29794
29795 #undef _REENTRANT
29796 #define _REENTRANT
29797 #undef __USE_MISC
29798 #define __USE_MISC
29799 #include <netdb.h>
29800 int endprotoent_r(struct protoent_data *);
29801
29802
29803 int
29804 main ()
29805 {
29806
29807   ;
29808   return 0;
29809 }
29810 _ACEOF
29811 rm -f conftest.$ac_objext
29812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29813   (eval $ac_compile) 2>conftest.er1
29814   ac_status=$?
29815   grep -v '^ *+' conftest.er1 >conftest.err
29816   rm -f conftest.er1
29817   cat conftest.err >&5
29818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819   (exit $ac_status); } &&
29820          { ac_try='test -z "$ac_c_werror_flag"
29821                          || test ! -s conftest.err'
29822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29823   (eval $ac_try) 2>&5
29824   ac_status=$?
29825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826   (exit $ac_status); }; } &&
29827          { ac_try='test -s conftest.$ac_objext'
29828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29829   (eval $ac_try) 2>&5
29830   ac_status=$?
29831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832   (exit $ac_status); }; }; then
29833
29834 PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) return(0)"
29835 PROTO_R_END_RETURN="#define PROTO_R_END_RETURN int"
29836 PROTO_R_ENT_ARGS="#define PROTO_R_ENT_ARGS struct protoent_data *proto_data"
29837 PROTO_R_ENT_UNUSED="#define PROTO_R_ENT_UNUSED UNUSED(proto_data)"
29838
29839
29840 else
29841   echo "$as_me: failed program was:" >&5
29842 sed 's/^/| /' conftest.$ac_ext >&5
29843
29844 fi
29845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29846
29847 fi
29848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29849
29850 fi
29851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29852
29853 else
29854   PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/"
29855 PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void"
29856 PROTO_R_ENT_ARGS="#undef PROTO_R_ENT_ARGS /*empty*/"
29857 PROTO_R_ENT_UNUSED="#undef PROTO_R_ENT_UNUSED"
29858
29859 fi
29860
29861 esac
29862
29863
29864
29865
29866
29867 case $host in
29868 ia64-hp-hpux11.*)
29869 ;;
29870 *)
29871 echo "$as_me:$LINENO: checking for setprotoent_r" >&5
29872 echo $ECHO_N "checking for setprotoent_r... $ECHO_C" >&6
29873 if test "${ac_cv_func_setprotoent_r+set}" = set; then
29874   echo $ECHO_N "(cached) $ECHO_C" >&6
29875 else
29876   cat >conftest.$ac_ext <<_ACEOF
29877 /* confdefs.h.  */
29878 _ACEOF
29879 cat confdefs.h >>conftest.$ac_ext
29880 cat >>conftest.$ac_ext <<_ACEOF
29881 /* end confdefs.h.  */
29882 /* Define setprotoent_r to an innocuous variant, in case <limits.h> declares setprotoent_r.
29883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29884 #define setprotoent_r innocuous_setprotoent_r
29885
29886 /* System header to define __stub macros and hopefully few prototypes,
29887     which can conflict with char setprotoent_r (); below.
29888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29889     <limits.h> exists even on freestanding compilers.  */
29890
29891 #ifdef __STDC__
29892 # include <limits.h>
29893 #else
29894 # include <assert.h>
29895 #endif
29896
29897 #undef setprotoent_r
29898
29899 /* Override any gcc2 internal prototype to avoid an error.  */
29900 #ifdef __cplusplus
29901 extern "C"
29902 {
29903 #endif
29904 /* We use char because int might match the return type of a gcc2
29905    builtin and then its argument prototype would still apply.  */
29906 char setprotoent_r ();
29907 /* The GNU C library defines this for functions which it implements
29908     to always fail with ENOSYS.  Some functions are actually named
29909     something starting with __ and the normal name is an alias.  */
29910 #if defined (__stub_setprotoent_r) || defined (__stub___setprotoent_r)
29911 choke me
29912 #else
29913 char (*f) () = setprotoent_r;
29914 #endif
29915 #ifdef __cplusplus
29916 }
29917 #endif
29918
29919 int
29920 main ()
29921 {
29922 return f != setprotoent_r;
29923   ;
29924   return 0;
29925 }
29926 _ACEOF
29927 rm -f conftest.$ac_objext conftest$ac_exeext
29928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29929   (eval $ac_link) 2>conftest.er1
29930   ac_status=$?
29931   grep -v '^ *+' conftest.er1 >conftest.err
29932   rm -f conftest.er1
29933   cat conftest.err >&5
29934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935   (exit $ac_status); } &&
29936          { ac_try='test -z "$ac_c_werror_flag"
29937                          || test ! -s conftest.err'
29938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29939   (eval $ac_try) 2>&5
29940   ac_status=$?
29941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942   (exit $ac_status); }; } &&
29943          { ac_try='test -s conftest$ac_exeext'
29944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29945   (eval $ac_try) 2>&5
29946   ac_status=$?
29947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948   (exit $ac_status); }; }; then
29949   ac_cv_func_setprotoent_r=yes
29950 else
29951   echo "$as_me: failed program was:" >&5
29952 sed 's/^/| /' conftest.$ac_ext >&5
29953
29954 ac_cv_func_setprotoent_r=no
29955 fi
29956 rm -f conftest.err conftest.$ac_objext \
29957       conftest$ac_exeext conftest.$ac_ext
29958 fi
29959 echo "$as_me:$LINENO: result: $ac_cv_func_setprotoent_r" >&5
29960 echo "${ECHO_T}$ac_cv_func_setprotoent_r" >&6
29961 if test $ac_cv_func_setprotoent_r = yes; then
29962   cat >conftest.$ac_ext <<_ACEOF
29963 /* confdefs.h.  */
29964 _ACEOF
29965 cat confdefs.h >>conftest.$ac_ext
29966 cat >>conftest.$ac_ext <<_ACEOF
29967 /* end confdefs.h.  */
29968
29969 #undef _REENTRANT
29970 #define _REENTRANT
29971 #undef __USE_MISC
29972 #define __USE_MISC
29973 #include <netdb.h>
29974 void               setprotoent_r __P((int));
29975
29976 int
29977 main ()
29978 {
29979
29980   ;
29981   return 0;
29982 }
29983 _ACEOF
29984 rm -f conftest.$ac_objext
29985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29986   (eval $ac_compile) 2>conftest.er1
29987   ac_status=$?
29988   grep -v '^ *+' conftest.er1 >conftest.err
29989   rm -f conftest.er1
29990   cat conftest.err >&5
29991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992   (exit $ac_status); } &&
29993          { ac_try='test -z "$ac_c_werror_flag"
29994                          || test ! -s conftest.err'
29995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29996   (eval $ac_try) 2>&5
29997   ac_status=$?
29998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999   (exit $ac_status); }; } &&
30000          { ac_try='test -s conftest.$ac_objext'
30001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30002   (eval $ac_try) 2>&5
30003   ac_status=$?
30004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005   (exit $ac_status); }; }; then
30006   PROTO_R_SET_RESULT="#undef PROTO_R_SET_RESULT"
30007 PROTO_R_SET_RETURN="#define PROTO_R_SET_RETURN void"
30008
30009 else
30010   echo "$as_me: failed program was:" >&5
30011 sed 's/^/| /' conftest.$ac_ext >&5
30012
30013 cat >conftest.$ac_ext <<_ACEOF
30014 /* confdefs.h.  */
30015 _ACEOF
30016 cat confdefs.h >>conftest.$ac_ext
30017 cat >>conftest.$ac_ext <<_ACEOF
30018 /* end confdefs.h.  */
30019
30020 #undef _REENTRANT
30021 #define _REENTRANT
30022 #undef __USE_MISC
30023 #define __USE_MISC
30024 #include <netdb.h>
30025 int setprotoent_r (int, struct protoent_data *);
30026
30027 int
30028 main ()
30029 {
30030
30031   ;
30032   return 0;
30033 }
30034 _ACEOF
30035 rm -f conftest.$ac_objext
30036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30037   (eval $ac_compile) 2>conftest.er1
30038   ac_status=$?
30039   grep -v '^ *+' conftest.er1 >conftest.err
30040   rm -f conftest.er1
30041   cat conftest.err >&5
30042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30043   (exit $ac_status); } &&
30044          { ac_try='test -z "$ac_c_werror_flag"
30045                          || test ! -s conftest.err'
30046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30047   (eval $ac_try) 2>&5
30048   ac_status=$?
30049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30050   (exit $ac_status); }; } &&
30051          { ac_try='test -s conftest.$ac_objext'
30052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30053   (eval $ac_try) 2>&5
30054   ac_status=$?
30055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056   (exit $ac_status); }; }; then
30057   PROTO_R_SET_RESULT="#define PROTO_R_SET_RESULT (0)"
30058 PROTO_R_SET_RETURN="#define PROTO_R_SET_RETURN int"
30059
30060 else
30061   echo "$as_me: failed program was:" >&5
30062 sed 's/^/| /' conftest.$ac_ext >&5
30063
30064 fi
30065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30066
30067 fi
30068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30069
30070 else
30071   PROTO_R_SET_RESULT="#undef PROTO_R_SET_RESULT"
30072 PROTO_R_SET_RETURN="#define PROTO_R_SET_RETURN void"
30073
30074 fi
30075
30076 esac
30077
30078
30079
30080 echo "$as_me:$LINENO: checking for getpwent_r" >&5
30081 echo $ECHO_N "checking for getpwent_r... $ECHO_C" >&6
30082 if test "${ac_cv_func_getpwent_r+set}" = set; then
30083   echo $ECHO_N "(cached) $ECHO_C" >&6
30084 else
30085   cat >conftest.$ac_ext <<_ACEOF
30086 /* confdefs.h.  */
30087 _ACEOF
30088 cat confdefs.h >>conftest.$ac_ext
30089 cat >>conftest.$ac_ext <<_ACEOF
30090 /* end confdefs.h.  */
30091 /* Define getpwent_r to an innocuous variant, in case <limits.h> declares getpwent_r.
30092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30093 #define getpwent_r innocuous_getpwent_r
30094
30095 /* System header to define __stub macros and hopefully few prototypes,
30096     which can conflict with char getpwent_r (); below.
30097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30098     <limits.h> exists even on freestanding compilers.  */
30099
30100 #ifdef __STDC__
30101 # include <limits.h>
30102 #else
30103 # include <assert.h>
30104 #endif
30105
30106 #undef getpwent_r
30107
30108 /* Override any gcc2 internal prototype to avoid an error.  */
30109 #ifdef __cplusplus
30110 extern "C"
30111 {
30112 #endif
30113 /* We use char because int might match the return type of a gcc2
30114    builtin and then its argument prototype would still apply.  */
30115 char getpwent_r ();
30116 /* The GNU C library defines this for functions which it implements
30117     to always fail with ENOSYS.  Some functions are actually named
30118     something starting with __ and the normal name is an alias.  */
30119 #if defined (__stub_getpwent_r) || defined (__stub___getpwent_r)
30120 choke me
30121 #else
30122 char (*f) () = getpwent_r;
30123 #endif
30124 #ifdef __cplusplus
30125 }
30126 #endif
30127
30128 int
30129 main ()
30130 {
30131 return f != getpwent_r;
30132   ;
30133   return 0;
30134 }
30135 _ACEOF
30136 rm -f conftest.$ac_objext conftest$ac_exeext
30137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30138   (eval $ac_link) 2>conftest.er1
30139   ac_status=$?
30140   grep -v '^ *+' conftest.er1 >conftest.err
30141   rm -f conftest.er1
30142   cat conftest.err >&5
30143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144   (exit $ac_status); } &&
30145          { ac_try='test -z "$ac_c_werror_flag"
30146                          || test ! -s conftest.err'
30147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30148   (eval $ac_try) 2>&5
30149   ac_status=$?
30150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151   (exit $ac_status); }; } &&
30152          { ac_try='test -s conftest$ac_exeext'
30153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30154   (eval $ac_try) 2>&5
30155   ac_status=$?
30156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157   (exit $ac_status); }; }; then
30158   ac_cv_func_getpwent_r=yes
30159 else
30160   echo "$as_me: failed program was:" >&5
30161 sed 's/^/| /' conftest.$ac_ext >&5
30162
30163 ac_cv_func_getpwent_r=no
30164 fi
30165 rm -f conftest.err conftest.$ac_objext \
30166       conftest$ac_exeext conftest.$ac_ext
30167 fi
30168 echo "$as_me:$LINENO: result: $ac_cv_func_getpwent_r" >&5
30169 echo "${ECHO_T}$ac_cv_func_getpwent_r" >&6
30170 if test $ac_cv_func_getpwent_r = yes; then
30171   cat >conftest.$ac_ext <<_ACEOF
30172 /* confdefs.h.  */
30173 _ACEOF
30174 cat confdefs.h >>conftest.$ac_ext
30175 cat >>conftest.$ac_ext <<_ACEOF
30176 /* end confdefs.h.  */
30177
30178 #include <sys/types.h>
30179 #include <pwd.h>
30180 struct passwd *
30181 getpwent_r(struct passwd *pwptr, char *buf, int buflen) {}
30182
30183
30184 int
30185 main ()
30186 {
30187
30188
30189   ;
30190   return 0;
30191 }
30192 _ACEOF
30193 rm -f conftest.$ac_objext
30194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30195   (eval $ac_compile) 2>conftest.er1
30196   ac_status=$?
30197   grep -v '^ *+' conftest.er1 >conftest.err
30198   rm -f conftest.er1
30199   cat conftest.err >&5
30200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30201   (exit $ac_status); } &&
30202          { ac_try='test -z "$ac_c_werror_flag"
30203                          || test ! -s conftest.err'
30204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30205   (eval $ac_try) 2>&5
30206   ac_status=$?
30207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30208   (exit $ac_status); }; } &&
30209          { ac_try='test -s conftest.$ac_objext'
30210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30211   (eval $ac_try) 2>&5
30212   ac_status=$?
30213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30214   (exit $ac_status); }; }; then
30215   PASS_R_ARGS="#define PASS_R_ARGS char *buf, int buflen"
30216 PASS_R_BAD="#define PASS_R_BAD NULL"
30217 PASS_R_COPY="#define PASS_R_COPY buf, buflen"
30218 PASS_R_COPY_ARGS="#define PASS_R_COPY_ARGS PASS_R_ARGS"
30219 PASS_R_OK="#define PASS_R_OK pwptr"
30220 PASS_R_RETURN="#define PASS_R_RETURN struct passwd *"
30221
30222 else
30223   echo "$as_me: failed program was:" >&5
30224 sed 's/^/| /' conftest.$ac_ext >&5
30225
30226 fi
30227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30228
30229 else
30230   PASS_R_ARGS="#define PASS_R_ARGS char *buf, int buflen"
30231 PASS_R_BAD="#define PASS_R_BAD NULL"
30232 PASS_R_COPY="#define PASS_R_COPY buf, buflen"
30233 PASS_R_COPY_ARGS="#define PASS_R_COPY_ARGS PASS_R_ARGS"
30234 PASS_R_OK="#define PASS_R_OK pwptr"
30235 PASS_R_RETURN="#define PASS_R_RETURN struct passwd *"
30236 cat >>confdefs.h <<\_ACEOF
30237 #define NEED_GETPWENT_R 1
30238 _ACEOF
30239
30240
30241 fi
30242
30243
30244
30245
30246
30247
30248
30249
30250 echo "$as_me:$LINENO: checking for endpwent_r" >&5
30251 echo $ECHO_N "checking for endpwent_r... $ECHO_C" >&6
30252 if test "${ac_cv_func_endpwent_r+set}" = set; then
30253   echo $ECHO_N "(cached) $ECHO_C" >&6
30254 else
30255   cat >conftest.$ac_ext <<_ACEOF
30256 /* confdefs.h.  */
30257 _ACEOF
30258 cat confdefs.h >>conftest.$ac_ext
30259 cat >>conftest.$ac_ext <<_ACEOF
30260 /* end confdefs.h.  */
30261 /* Define endpwent_r to an innocuous variant, in case <limits.h> declares endpwent_r.
30262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30263 #define endpwent_r innocuous_endpwent_r
30264
30265 /* System header to define __stub macros and hopefully few prototypes,
30266     which can conflict with char endpwent_r (); below.
30267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30268     <limits.h> exists even on freestanding compilers.  */
30269
30270 #ifdef __STDC__
30271 # include <limits.h>
30272 #else
30273 # include <assert.h>
30274 #endif
30275
30276 #undef endpwent_r
30277
30278 /* Override any gcc2 internal prototype to avoid an error.  */
30279 #ifdef __cplusplus
30280 extern "C"
30281 {
30282 #endif
30283 /* We use char because int might match the return type of a gcc2
30284    builtin and then its argument prototype would still apply.  */
30285 char endpwent_r ();
30286 /* The GNU C library defines this for functions which it implements
30287     to always fail with ENOSYS.  Some functions are actually named
30288     something starting with __ and the normal name is an alias.  */
30289 #if defined (__stub_endpwent_r) || defined (__stub___endpwent_r)
30290 choke me
30291 #else
30292 char (*f) () = endpwent_r;
30293 #endif
30294 #ifdef __cplusplus
30295 }
30296 #endif
30297
30298 int
30299 main ()
30300 {
30301 return f != endpwent_r;
30302   ;
30303   return 0;
30304 }
30305 _ACEOF
30306 rm -f conftest.$ac_objext conftest$ac_exeext
30307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30308   (eval $ac_link) 2>conftest.er1
30309   ac_status=$?
30310   grep -v '^ *+' conftest.er1 >conftest.err
30311   rm -f conftest.er1
30312   cat conftest.err >&5
30313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314   (exit $ac_status); } &&
30315          { ac_try='test -z "$ac_c_werror_flag"
30316                          || test ! -s conftest.err'
30317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30318   (eval $ac_try) 2>&5
30319   ac_status=$?
30320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321   (exit $ac_status); }; } &&
30322          { ac_try='test -s conftest$ac_exeext'
30323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30324   (eval $ac_try) 2>&5
30325   ac_status=$?
30326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327   (exit $ac_status); }; }; then
30328   ac_cv_func_endpwent_r=yes
30329 else
30330   echo "$as_me: failed program was:" >&5
30331 sed 's/^/| /' conftest.$ac_ext >&5
30332
30333 ac_cv_func_endpwent_r=no
30334 fi
30335 rm -f conftest.err conftest.$ac_objext \
30336       conftest$ac_exeext conftest.$ac_ext
30337 fi
30338 echo "$as_me:$LINENO: result: $ac_cv_func_endpwent_r" >&5
30339 echo "${ECHO_T}$ac_cv_func_endpwent_r" >&6
30340 if test $ac_cv_func_endpwent_r = yes; then
30341   cat >conftest.$ac_ext <<_ACEOF
30342 /* confdefs.h.  */
30343 _ACEOF
30344 cat confdefs.h >>conftest.$ac_ext
30345 cat >>conftest.$ac_ext <<_ACEOF
30346 /* end confdefs.h.  */
30347
30348 #include <pwd.h>
30349 void endpwent_r(FILE **pwfp);
30350
30351 int
30352 main ()
30353 {
30354
30355   ;
30356   return 0;
30357 }
30358 _ACEOF
30359 rm -f conftest.$ac_objext
30360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30361   (eval $ac_compile) 2>conftest.er1
30362   ac_status=$?
30363   grep -v '^ *+' conftest.er1 >conftest.err
30364   rm -f conftest.er1
30365   cat conftest.err >&5
30366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367   (exit $ac_status); } &&
30368          { ac_try='test -z "$ac_c_werror_flag"
30369                          || test ! -s conftest.err'
30370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30371   (eval $ac_try) 2>&5
30372   ac_status=$?
30373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374   (exit $ac_status); }; } &&
30375          { ac_try='test -s conftest.$ac_objext'
30376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30377   (eval $ac_try) 2>&5
30378   ac_status=$?
30379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30380   (exit $ac_status); }; }; then
30381   PASS_R_END_RESULT="#define PASS_R_END_RESULT(x) /*empty*/"
30382 PASS_R_END_RETURN="#define PASS_R_END_RETURN void"
30383 PASS_R_ENT_ARGS="#define PASS_R_ENT_ARGS FILE **pwptr"
30384
30385 else
30386   echo "$as_me: failed program was:" >&5
30387 sed 's/^/| /' conftest.$ac_ext >&5
30388
30389 fi
30390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30391
30392 else
30393   PASS_R_END_RESULT="#define PASS_R_END_RESULT(x) /*empty*/"
30394 PASS_R_END_RETURN="#define PASS_R_END_RETURN void"
30395 PASS_R_ENT_ARGS="#undef PASS_R_ENT_ARGS"
30396 cat >>confdefs.h <<\_ACEOF
30397 #define NEED_ENDPWENT_R 1
30398 _ACEOF
30399
30400
30401 fi
30402
30403
30404
30405
30406 echo "$as_me:$LINENO: checking for setpassent_r" >&5
30407 echo $ECHO_N "checking for setpassent_r... $ECHO_C" >&6
30408 if test "${ac_cv_func_setpassent_r+set}" = set; then
30409   echo $ECHO_N "(cached) $ECHO_C" >&6
30410 else
30411   cat >conftest.$ac_ext <<_ACEOF
30412 /* confdefs.h.  */
30413 _ACEOF
30414 cat confdefs.h >>conftest.$ac_ext
30415 cat >>conftest.$ac_ext <<_ACEOF
30416 /* end confdefs.h.  */
30417 /* Define setpassent_r to an innocuous variant, in case <limits.h> declares setpassent_r.
30418    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30419 #define setpassent_r innocuous_setpassent_r
30420
30421 /* System header to define __stub macros and hopefully few prototypes,
30422     which can conflict with char setpassent_r (); below.
30423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30424     <limits.h> exists even on freestanding compilers.  */
30425
30426 #ifdef __STDC__
30427 # include <limits.h>
30428 #else
30429 # include <assert.h>
30430 #endif
30431
30432 #undef setpassent_r
30433
30434 /* Override any gcc2 internal prototype to avoid an error.  */
30435 #ifdef __cplusplus
30436 extern "C"
30437 {
30438 #endif
30439 /* We use char because int might match the return type of a gcc2
30440    builtin and then its argument prototype would still apply.  */
30441 char setpassent_r ();
30442 /* The GNU C library defines this for functions which it implements
30443     to always fail with ENOSYS.  Some functions are actually named
30444     something starting with __ and the normal name is an alias.  */
30445 #if defined (__stub_setpassent_r) || defined (__stub___setpassent_r)
30446 choke me
30447 #else
30448 char (*f) () = setpassent_r;
30449 #endif
30450 #ifdef __cplusplus
30451 }
30452 #endif
30453
30454 int
30455 main ()
30456 {
30457 return f != setpassent_r;
30458   ;
30459   return 0;
30460 }
30461 _ACEOF
30462 rm -f conftest.$ac_objext conftest$ac_exeext
30463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30464   (eval $ac_link) 2>conftest.er1
30465   ac_status=$?
30466   grep -v '^ *+' conftest.er1 >conftest.err
30467   rm -f conftest.er1
30468   cat conftest.err >&5
30469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470   (exit $ac_status); } &&
30471          { ac_try='test -z "$ac_c_werror_flag"
30472                          || test ! -s conftest.err'
30473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30474   (eval $ac_try) 2>&5
30475   ac_status=$?
30476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477   (exit $ac_status); }; } &&
30478          { ac_try='test -s conftest$ac_exeext'
30479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30480   (eval $ac_try) 2>&5
30481   ac_status=$?
30482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30483   (exit $ac_status); }; }; then
30484   ac_cv_func_setpassent_r=yes
30485 else
30486   echo "$as_me: failed program was:" >&5
30487 sed 's/^/| /' conftest.$ac_ext >&5
30488
30489 ac_cv_func_setpassent_r=no
30490 fi
30491 rm -f conftest.err conftest.$ac_objext \
30492       conftest$ac_exeext conftest.$ac_ext
30493 fi
30494 echo "$as_me:$LINENO: result: $ac_cv_func_setpassent_r" >&5
30495 echo "${ECHO_T}$ac_cv_func_setpassent_r" >&6
30496 if test $ac_cv_func_setpassent_r = yes; then
30497   :
30498 else
30499   cat >>confdefs.h <<\_ACEOF
30500 #define NEED_SETPASSENT_R 1
30501 _ACEOF
30502
30503 fi
30504
30505 echo "$as_me:$LINENO: checking for setpassent" >&5
30506 echo $ECHO_N "checking for setpassent... $ECHO_C" >&6
30507 if test "${ac_cv_func_setpassent+set}" = set; then
30508   echo $ECHO_N "(cached) $ECHO_C" >&6
30509 else
30510   cat >conftest.$ac_ext <<_ACEOF
30511 /* confdefs.h.  */
30512 _ACEOF
30513 cat confdefs.h >>conftest.$ac_ext
30514 cat >>conftest.$ac_ext <<_ACEOF
30515 /* end confdefs.h.  */
30516 /* Define setpassent to an innocuous variant, in case <limits.h> declares setpassent.
30517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30518 #define setpassent innocuous_setpassent
30519
30520 /* System header to define __stub macros and hopefully few prototypes,
30521     which can conflict with char setpassent (); below.
30522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30523     <limits.h> exists even on freestanding compilers.  */
30524
30525 #ifdef __STDC__
30526 # include <limits.h>
30527 #else
30528 # include <assert.h>
30529 #endif
30530
30531 #undef setpassent
30532
30533 /* Override any gcc2 internal prototype to avoid an error.  */
30534 #ifdef __cplusplus
30535 extern "C"
30536 {
30537 #endif
30538 /* We use char because int might match the return type of a gcc2
30539    builtin and then its argument prototype would still apply.  */
30540 char setpassent ();
30541 /* The GNU C library defines this for functions which it implements
30542     to always fail with ENOSYS.  Some functions are actually named
30543     something starting with __ and the normal name is an alias.  */
30544 #if defined (__stub_setpassent) || defined (__stub___setpassent)
30545 choke me
30546 #else
30547 char (*f) () = setpassent;
30548 #endif
30549 #ifdef __cplusplus
30550 }
30551 #endif
30552
30553 int
30554 main ()
30555 {
30556 return f != setpassent;
30557   ;
30558   return 0;
30559 }
30560 _ACEOF
30561 rm -f conftest.$ac_objext conftest$ac_exeext
30562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30563   (eval $ac_link) 2>conftest.er1
30564   ac_status=$?
30565   grep -v '^ *+' conftest.er1 >conftest.err
30566   rm -f conftest.er1
30567   cat conftest.err >&5
30568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30569   (exit $ac_status); } &&
30570          { ac_try='test -z "$ac_c_werror_flag"
30571                          || test ! -s conftest.err'
30572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30573   (eval $ac_try) 2>&5
30574   ac_status=$?
30575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576   (exit $ac_status); }; } &&
30577          { ac_try='test -s conftest$ac_exeext'
30578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30579   (eval $ac_try) 2>&5
30580   ac_status=$?
30581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582   (exit $ac_status); }; }; then
30583   ac_cv_func_setpassent=yes
30584 else
30585   echo "$as_me: failed program was:" >&5
30586 sed 's/^/| /' conftest.$ac_ext >&5
30587
30588 ac_cv_func_setpassent=no
30589 fi
30590 rm -f conftest.err conftest.$ac_objext \
30591       conftest$ac_exeext conftest.$ac_ext
30592 fi
30593 echo "$as_me:$LINENO: result: $ac_cv_func_setpassent" >&5
30594 echo "${ECHO_T}$ac_cv_func_setpassent" >&6
30595 if test $ac_cv_func_setpassent = yes; then
30596   :
30597 else
30598   cat >>confdefs.h <<\_ACEOF
30599 #define NEED_SETPASSENT 1
30600 _ACEOF
30601
30602 fi
30603
30604
30605 echo "$as_me:$LINENO: checking for setpwent_r" >&5
30606 echo $ECHO_N "checking for setpwent_r... $ECHO_C" >&6
30607 if test "${ac_cv_func_setpwent_r+set}" = set; then
30608   echo $ECHO_N "(cached) $ECHO_C" >&6
30609 else
30610   cat >conftest.$ac_ext <<_ACEOF
30611 /* confdefs.h.  */
30612 _ACEOF
30613 cat confdefs.h >>conftest.$ac_ext
30614 cat >>conftest.$ac_ext <<_ACEOF
30615 /* end confdefs.h.  */
30616 /* Define setpwent_r to an innocuous variant, in case <limits.h> declares setpwent_r.
30617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30618 #define setpwent_r innocuous_setpwent_r
30619
30620 /* System header to define __stub macros and hopefully few prototypes,
30621     which can conflict with char setpwent_r (); below.
30622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30623     <limits.h> exists even on freestanding compilers.  */
30624
30625 #ifdef __STDC__
30626 # include <limits.h>
30627 #else
30628 # include <assert.h>
30629 #endif
30630
30631 #undef setpwent_r
30632
30633 /* Override any gcc2 internal prototype to avoid an error.  */
30634 #ifdef __cplusplus
30635 extern "C"
30636 {
30637 #endif
30638 /* We use char because int might match the return type of a gcc2
30639    builtin and then its argument prototype would still apply.  */
30640 char setpwent_r ();
30641 /* The GNU C library defines this for functions which it implements
30642     to always fail with ENOSYS.  Some functions are actually named
30643     something starting with __ and the normal name is an alias.  */
30644 #if defined (__stub_setpwent_r) || defined (__stub___setpwent_r)
30645 choke me
30646 #else
30647 char (*f) () = setpwent_r;
30648 #endif
30649 #ifdef __cplusplus
30650 }
30651 #endif
30652
30653 int
30654 main ()
30655 {
30656 return f != setpwent_r;
30657   ;
30658   return 0;
30659 }
30660 _ACEOF
30661 rm -f conftest.$ac_objext conftest$ac_exeext
30662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30663   (eval $ac_link) 2>conftest.er1
30664   ac_status=$?
30665   grep -v '^ *+' conftest.er1 >conftest.err
30666   rm -f conftest.er1
30667   cat conftest.err >&5
30668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669   (exit $ac_status); } &&
30670          { ac_try='test -z "$ac_c_werror_flag"
30671                          || test ! -s conftest.err'
30672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30673   (eval $ac_try) 2>&5
30674   ac_status=$?
30675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30676   (exit $ac_status); }; } &&
30677          { ac_try='test -s conftest$ac_exeext'
30678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30679   (eval $ac_try) 2>&5
30680   ac_status=$?
30681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30682   (exit $ac_status); }; }; then
30683   ac_cv_func_setpwent_r=yes
30684 else
30685   echo "$as_me: failed program was:" >&5
30686 sed 's/^/| /' conftest.$ac_ext >&5
30687
30688 ac_cv_func_setpwent_r=no
30689 fi
30690 rm -f conftest.err conftest.$ac_objext \
30691       conftest$ac_exeext conftest.$ac_ext
30692 fi
30693 echo "$as_me:$LINENO: result: $ac_cv_func_setpwent_r" >&5
30694 echo "${ECHO_T}$ac_cv_func_setpwent_r" >&6
30695 if test $ac_cv_func_setpwent_r = yes; then
30696   cat >conftest.$ac_ext <<_ACEOF
30697 /* confdefs.h.  */
30698 _ACEOF
30699 cat confdefs.h >>conftest.$ac_ext
30700 cat >>conftest.$ac_ext <<_ACEOF
30701 /* end confdefs.h.  */
30702
30703 #include <pwd.h>
30704 void setpwent_r(FILE **pwfp);
30705
30706 int
30707 main ()
30708 {
30709
30710   ;
30711   return 0;
30712 }
30713 _ACEOF
30714 rm -f conftest.$ac_objext
30715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30716   (eval $ac_compile) 2>conftest.er1
30717   ac_status=$?
30718   grep -v '^ *+' conftest.er1 >conftest.err
30719   rm -f conftest.er1
30720   cat conftest.err >&5
30721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722   (exit $ac_status); } &&
30723          { ac_try='test -z "$ac_c_werror_flag"
30724                          || test ! -s conftest.err'
30725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30726   (eval $ac_try) 2>&5
30727   ac_status=$?
30728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30729   (exit $ac_status); }; } &&
30730          { ac_try='test -s conftest.$ac_objext'
30731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30732   (eval $ac_try) 2>&5
30733   ac_status=$?
30734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30735   (exit $ac_status); }; }; then
30736   PASS_R_SET_RESULT="#undef PASS_R_SET_RESULT /* empty */"
30737 PASS_R_SET_RETURN="#define PASS_R_SET_RETURN int"
30738
30739 else
30740   echo "$as_me: failed program was:" >&5
30741 sed 's/^/| /' conftest.$ac_ext >&5
30742
30743 cat >conftest.$ac_ext <<_ACEOF
30744 /* confdefs.h.  */
30745 _ACEOF
30746 cat confdefs.h >>conftest.$ac_ext
30747 cat >>conftest.$ac_ext <<_ACEOF
30748 /* end confdefs.h.  */
30749
30750 #include <pwd.h>
30751 int setpwent_r(FILE **pwfp);
30752
30753 int
30754 main ()
30755 {
30756
30757   ;
30758   return 0;
30759 }
30760 _ACEOF
30761 rm -f conftest.$ac_objext
30762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30763   (eval $ac_compile) 2>conftest.er1
30764   ac_status=$?
30765   grep -v '^ *+' conftest.er1 >conftest.err
30766   rm -f conftest.er1
30767   cat conftest.err >&5
30768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30769   (exit $ac_status); } &&
30770          { ac_try='test -z "$ac_c_werror_flag"
30771                          || test ! -s conftest.err'
30772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30773   (eval $ac_try) 2>&5
30774   ac_status=$?
30775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30776   (exit $ac_status); }; } &&
30777          { ac_try='test -s conftest.$ac_objext'
30778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30779   (eval $ac_try) 2>&5
30780   ac_status=$?
30781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782   (exit $ac_status); }; }; then
30783   PASS_R_SET_RESULT="#define PASS_R_SET_RESULT 0"
30784 PASS_R_SET_RETURN="#define PASS_R_SET_RETURN int"
30785
30786 else
30787   echo "$as_me: failed program was:" >&5
30788 sed 's/^/| /' conftest.$ac_ext >&5
30789
30790 fi
30791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30792
30793 fi
30794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30795
30796 else
30797   PASS_R_SET_RESULT="#undef PASS_R_SET_RESULT /*empty*/"
30798 PASS_R_SET_RETURN="#define PASS_R_SET_RETURN void"
30799 cat >>confdefs.h <<\_ACEOF
30800 #define NEED_SETPWENT_R 1
30801 _ACEOF
30802
30803
30804 fi
30805
30806
30807
30808
30809 echo "$as_me:$LINENO: checking for getpwnam_r" >&5
30810 echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
30811 if test "${ac_cv_func_getpwnam_r+set}" = set; then
30812   echo $ECHO_N "(cached) $ECHO_C" >&6
30813 else
30814   cat >conftest.$ac_ext <<_ACEOF
30815 /* confdefs.h.  */
30816 _ACEOF
30817 cat confdefs.h >>conftest.$ac_ext
30818 cat >>conftest.$ac_ext <<_ACEOF
30819 /* end confdefs.h.  */
30820 /* Define getpwnam_r to an innocuous variant, in case <limits.h> declares getpwnam_r.
30821    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30822 #define getpwnam_r innocuous_getpwnam_r
30823
30824 /* System header to define __stub macros and hopefully few prototypes,
30825     which can conflict with char getpwnam_r (); below.
30826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30827     <limits.h> exists even on freestanding compilers.  */
30828
30829 #ifdef __STDC__
30830 # include <limits.h>
30831 #else
30832 # include <assert.h>
30833 #endif
30834
30835 #undef getpwnam_r
30836
30837 /* Override any gcc2 internal prototype to avoid an error.  */
30838 #ifdef __cplusplus
30839 extern "C"
30840 {
30841 #endif
30842 /* We use char because int might match the return type of a gcc2
30843    builtin and then its argument prototype would still apply.  */
30844 char getpwnam_r ();
30845 /* The GNU C library defines this for functions which it implements
30846     to always fail with ENOSYS.  Some functions are actually named
30847     something starting with __ and the normal name is an alias.  */
30848 #if defined (__stub_getpwnam_r) || defined (__stub___getpwnam_r)
30849 choke me
30850 #else
30851 char (*f) () = getpwnam_r;
30852 #endif
30853 #ifdef __cplusplus
30854 }
30855 #endif
30856
30857 int
30858 main ()
30859 {
30860 return f != getpwnam_r;
30861   ;
30862   return 0;
30863 }
30864 _ACEOF
30865 rm -f conftest.$ac_objext conftest$ac_exeext
30866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30867   (eval $ac_link) 2>conftest.er1
30868   ac_status=$?
30869   grep -v '^ *+' conftest.er1 >conftest.err
30870   rm -f conftest.er1
30871   cat conftest.err >&5
30872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873   (exit $ac_status); } &&
30874          { ac_try='test -z "$ac_c_werror_flag"
30875                          || test ! -s conftest.err'
30876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30877   (eval $ac_try) 2>&5
30878   ac_status=$?
30879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880   (exit $ac_status); }; } &&
30881          { ac_try='test -s conftest$ac_exeext'
30882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30883   (eval $ac_try) 2>&5
30884   ac_status=$?
30885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886   (exit $ac_status); }; }; then
30887   ac_cv_func_getpwnam_r=yes
30888 else
30889   echo "$as_me: failed program was:" >&5
30890 sed 's/^/| /' conftest.$ac_ext >&5
30891
30892 ac_cv_func_getpwnam_r=no
30893 fi
30894 rm -f conftest.err conftest.$ac_objext \
30895       conftest$ac_exeext conftest.$ac_ext
30896 fi
30897 echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r" >&5
30898 echo "${ECHO_T}$ac_cv_func_getpwnam_r" >&6
30899 if test $ac_cv_func_getpwnam_r = yes; then
30900   :
30901 else
30902   cat >>confdefs.h <<\_ACEOF
30903 #define NEED_GETPWNAM_R 1
30904 _ACEOF
30905
30906 fi
30907
30908 echo "$as_me:$LINENO: checking for getpwuid_r" >&5
30909 echo $ECHO_N "checking for getpwuid_r... $ECHO_C" >&6
30910 if test "${ac_cv_func_getpwuid_r+set}" = set; then
30911   echo $ECHO_N "(cached) $ECHO_C" >&6
30912 else
30913   cat >conftest.$ac_ext <<_ACEOF
30914 /* confdefs.h.  */
30915 _ACEOF
30916 cat confdefs.h >>conftest.$ac_ext
30917 cat >>conftest.$ac_ext <<_ACEOF
30918 /* end confdefs.h.  */
30919 /* Define getpwuid_r to an innocuous variant, in case <limits.h> declares getpwuid_r.
30920    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30921 #define getpwuid_r innocuous_getpwuid_r
30922
30923 /* System header to define __stub macros and hopefully few prototypes,
30924     which can conflict with char getpwuid_r (); below.
30925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30926     <limits.h> exists even on freestanding compilers.  */
30927
30928 #ifdef __STDC__
30929 # include <limits.h>
30930 #else
30931 # include <assert.h>
30932 #endif
30933
30934 #undef getpwuid_r
30935
30936 /* Override any gcc2 internal prototype to avoid an error.  */
30937 #ifdef __cplusplus
30938 extern "C"
30939 {
30940 #endif
30941 /* We use char because int might match the return type of a gcc2
30942    builtin and then its argument prototype would still apply.  */
30943 char getpwuid_r ();
30944 /* The GNU C library defines this for functions which it implements
30945     to always fail with ENOSYS.  Some functions are actually named
30946     something starting with __ and the normal name is an alias.  */
30947 #if defined (__stub_getpwuid_r) || defined (__stub___getpwuid_r)
30948 choke me
30949 #else
30950 char (*f) () = getpwuid_r;
30951 #endif
30952 #ifdef __cplusplus
30953 }
30954 #endif
30955
30956 int
30957 main ()
30958 {
30959 return f != getpwuid_r;
30960   ;
30961   return 0;
30962 }
30963 _ACEOF
30964 rm -f conftest.$ac_objext conftest$ac_exeext
30965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30966   (eval $ac_link) 2>conftest.er1
30967   ac_status=$?
30968   grep -v '^ *+' conftest.er1 >conftest.err
30969   rm -f conftest.er1
30970   cat conftest.err >&5
30971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30972   (exit $ac_status); } &&
30973          { ac_try='test -z "$ac_c_werror_flag"
30974                          || test ! -s conftest.err'
30975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30976   (eval $ac_try) 2>&5
30977   ac_status=$?
30978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30979   (exit $ac_status); }; } &&
30980          { ac_try='test -s conftest$ac_exeext'
30981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30982   (eval $ac_try) 2>&5
30983   ac_status=$?
30984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30985   (exit $ac_status); }; }; then
30986   ac_cv_func_getpwuid_r=yes
30987 else
30988   echo "$as_me: failed program was:" >&5
30989 sed 's/^/| /' conftest.$ac_ext >&5
30990
30991 ac_cv_func_getpwuid_r=no
30992 fi
30993 rm -f conftest.err conftest.$ac_objext \
30994       conftest$ac_exeext conftest.$ac_ext
30995 fi
30996 echo "$as_me:$LINENO: result: $ac_cv_func_getpwuid_r" >&5
30997 echo "${ECHO_T}$ac_cv_func_getpwuid_r" >&6
30998 if test $ac_cv_func_getpwuid_r = yes; then
30999   :
31000 else
31001   cat >>confdefs.h <<\_ACEOF
31002 #define NEED_GETPWUID_R 1
31003 _ACEOF
31004
31005 fi
31006
31007
31008 case $host in
31009 ia64-hp-hpux11.*)
31010 ;;
31011 *)
31012 echo "$as_me:$LINENO: checking for getservent_r" >&5
31013 echo $ECHO_N "checking for getservent_r... $ECHO_C" >&6
31014 if test "${ac_cv_func_getservent_r+set}" = set; then
31015   echo $ECHO_N "(cached) $ECHO_C" >&6
31016 else
31017   cat >conftest.$ac_ext <<_ACEOF
31018 /* confdefs.h.  */
31019 _ACEOF
31020 cat confdefs.h >>conftest.$ac_ext
31021 cat >>conftest.$ac_ext <<_ACEOF
31022 /* end confdefs.h.  */
31023 /* Define getservent_r to an innocuous variant, in case <limits.h> declares getservent_r.
31024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31025 #define getservent_r innocuous_getservent_r
31026
31027 /* System header to define __stub macros and hopefully few prototypes,
31028     which can conflict with char getservent_r (); below.
31029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31030     <limits.h> exists even on freestanding compilers.  */
31031
31032 #ifdef __STDC__
31033 # include <limits.h>
31034 #else
31035 # include <assert.h>
31036 #endif
31037
31038 #undef getservent_r
31039
31040 /* Override any gcc2 internal prototype to avoid an error.  */
31041 #ifdef __cplusplus
31042 extern "C"
31043 {
31044 #endif
31045 /* We use char because int might match the return type of a gcc2
31046    builtin and then its argument prototype would still apply.  */
31047 char getservent_r ();
31048 /* The GNU C library defines this for functions which it implements
31049     to always fail with ENOSYS.  Some functions are actually named
31050     something starting with __ and the normal name is an alias.  */
31051 #if defined (__stub_getservent_r) || defined (__stub___getservent_r)
31052 choke me
31053 #else
31054 char (*f) () = getservent_r;
31055 #endif
31056 #ifdef __cplusplus
31057 }
31058 #endif
31059
31060 int
31061 main ()
31062 {
31063 return f != getservent_r;
31064   ;
31065   return 0;
31066 }
31067 _ACEOF
31068 rm -f conftest.$ac_objext conftest$ac_exeext
31069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31070   (eval $ac_link) 2>conftest.er1
31071   ac_status=$?
31072   grep -v '^ *+' conftest.er1 >conftest.err
31073   rm -f conftest.er1
31074   cat conftest.err >&5
31075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076   (exit $ac_status); } &&
31077          { ac_try='test -z "$ac_c_werror_flag"
31078                          || test ! -s conftest.err'
31079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31080   (eval $ac_try) 2>&5
31081   ac_status=$?
31082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31083   (exit $ac_status); }; } &&
31084          { ac_try='test -s conftest$ac_exeext'
31085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31086   (eval $ac_try) 2>&5
31087   ac_status=$?
31088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089   (exit $ac_status); }; }; then
31090   ac_cv_func_getservent_r=yes
31091 else
31092   echo "$as_me: failed program was:" >&5
31093 sed 's/^/| /' conftest.$ac_ext >&5
31094
31095 ac_cv_func_getservent_r=no
31096 fi
31097 rm -f conftest.err conftest.$ac_objext \
31098       conftest$ac_exeext conftest.$ac_ext
31099 fi
31100 echo "$as_me:$LINENO: result: $ac_cv_func_getservent_r" >&5
31101 echo "${ECHO_T}$ac_cv_func_getservent_r" >&6
31102 if test $ac_cv_func_getservent_r = yes; then
31103   cat >conftest.$ac_ext <<_ACEOF
31104 /* confdefs.h.  */
31105 _ACEOF
31106 cat confdefs.h >>conftest.$ac_ext
31107 cat >>conftest.$ac_ext <<_ACEOF
31108 /* end confdefs.h.  */
31109
31110 #undef __USE_MISC
31111 #define __USE_MISC
31112 #include <netdb.h>
31113 struct servent *
31114 getservent_r(struct servent *result, char *buffer, int buflen) {}
31115
31116 int
31117 main ()
31118 {
31119 return (0);
31120   ;
31121   return 0;
31122 }
31123 _ACEOF
31124 rm -f conftest.$ac_objext
31125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31126   (eval $ac_compile) 2>conftest.er1
31127   ac_status=$?
31128   grep -v '^ *+' conftest.er1 >conftest.err
31129   rm -f conftest.er1
31130   cat conftest.err >&5
31131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31132   (exit $ac_status); } &&
31133          { ac_try='test -z "$ac_c_werror_flag"
31134                          || test ! -s conftest.err'
31135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31136   (eval $ac_try) 2>&5
31137   ac_status=$?
31138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139   (exit $ac_status); }; } &&
31140          { ac_try='test -s conftest.$ac_objext'
31141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31142   (eval $ac_try) 2>&5
31143   ac_status=$?
31144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145   (exit $ac_status); }; }; then
31146
31147 SERV_R_ARGS="#define SERV_R_ARGS char *buf, int buflen"
31148 SERV_R_BAD="#define SERV_R_BAD NULL"
31149 SERV_R_COPY="#define SERV_R_COPY buf, buflen"
31150 SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS SERV_R_ARGS"
31151 SERV_R_OK="#define SERV_R_OK sptr"
31152 SERV_R_SETANSWER="#undef SERV_R_SETANSWER"
31153 SERV_R_RETURN="#define SERV_R_RETURN struct servent *"
31154
31155
31156 else
31157   echo "$as_me: failed program was:" >&5
31158 sed 's/^/| /' conftest.$ac_ext >&5
31159
31160 cat >conftest.$ac_ext <<_ACEOF
31161 /* confdefs.h.  */
31162 _ACEOF
31163 cat confdefs.h >>conftest.$ac_ext
31164 cat >>conftest.$ac_ext <<_ACEOF
31165 /* end confdefs.h.  */
31166
31167 #undef __USE_MISC
31168 #define __USE_MISC
31169 #include <netdb.h>
31170 int
31171 getservent_r (struct servent *, char *, size_t, struct servent **);
31172
31173 int
31174 main ()
31175 {
31176 return (0);
31177   ;
31178   return 0;
31179 }
31180 _ACEOF
31181 rm -f conftest.$ac_objext
31182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31183   (eval $ac_compile) 2>conftest.er1
31184   ac_status=$?
31185   grep -v '^ *+' conftest.er1 >conftest.err
31186   rm -f conftest.er1
31187   cat conftest.err >&5
31188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31189   (exit $ac_status); } &&
31190          { ac_try='test -z "$ac_c_werror_flag"
31191                          || test ! -s conftest.err'
31192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31193   (eval $ac_try) 2>&5
31194   ac_status=$?
31195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196   (exit $ac_status); }; } &&
31197          { ac_try='test -s conftest.$ac_objext'
31198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31199   (eval $ac_try) 2>&5
31200   ac_status=$?
31201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31202   (exit $ac_status); }; }; then
31203
31204 SERV_R_ARGS="#define SERV_R_ARGS char *buf, size_t buflen, struct servent **answerp"
31205 SERV_R_BAD="#define SERV_R_BAD ERANGE"
31206 SERV_R_COPY="#define SERV_R_COPY buf, buflen"
31207 SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS char *buf, size_t buflen"
31208 SERV_R_OK="#define SERV_R_OK (0)"
31209 SERV_R_SETANSWER="#define SERV_R_SETANSWER 1"
31210 SERV_R_RETURN="#define SERV_R_RETURN int"
31211
31212
31213 else
31214   echo "$as_me: failed program was:" >&5
31215 sed 's/^/| /' conftest.$ac_ext >&5
31216
31217 cat >conftest.$ac_ext <<_ACEOF
31218 /* confdefs.h.  */
31219 _ACEOF
31220 cat confdefs.h >>conftest.$ac_ext
31221 cat >>conftest.$ac_ext <<_ACEOF
31222 /* end confdefs.h.  */
31223
31224 #undef __USE_MISC
31225 #define __USE_MISC
31226 #include <netdb.h>
31227 int
31228 getservent_r (struct servent *, struct servent_data *serv_data);
31229
31230 int
31231 main ()
31232 {
31233 return (0);
31234   ;
31235   return 0;
31236 }
31237 _ACEOF
31238 rm -f conftest.$ac_objext
31239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31240   (eval $ac_compile) 2>conftest.er1
31241   ac_status=$?
31242   grep -v '^ *+' conftest.er1 >conftest.err
31243   rm -f conftest.er1
31244   cat conftest.err >&5
31245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246   (exit $ac_status); } &&
31247          { ac_try='test -z "$ac_c_werror_flag"
31248                          || test ! -s conftest.err'
31249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31250   (eval $ac_try) 2>&5
31251   ac_status=$?
31252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31253   (exit $ac_status); }; } &&
31254          { ac_try='test -s conftest.$ac_objext'
31255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31256   (eval $ac_try) 2>&5
31257   ac_status=$?
31258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259   (exit $ac_status); }; }; then
31260
31261 SERV_R_ARGS="#define SERV_R_ARGS struct servent_data *serv_data"
31262 SERV_R_BAD="#define SERV_R_BAD (-1)"
31263 SERV_R_COPY="#define SERV_R_COPY serv_data"
31264 SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS struct servent_data *sdptr"
31265 SERV_R_OK="#define SERV_R_OK (0)"
31266 SERV_R_SETANSWER="#undef SERV_R_SETANSWER"
31267 SERV_R_RETURN="#define SERV_R_RETURN int"
31268 SERVENT_DATA="#define SERVENT_DATA 1"
31269
31270
31271 else
31272   echo "$as_me: failed program was:" >&5
31273 sed 's/^/| /' conftest.$ac_ext >&5
31274
31275 fi
31276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31277
31278 fi
31279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31280
31281 fi
31282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31283
31284 else
31285   SERV_R_ARGS="#define SERV_R_ARGS char *buf, int buflen"
31286 SERV_R_BAD="#define SERV_R_BAD NULL"
31287 SERV_R_COPY="#define SERV_R_COPY buf, buflen"
31288 SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS SERV_R_ARGS"
31289 SERV_R_OK="#define SERV_R_OK sptr"
31290 SERV_R_SETANSWER="#undef SERV_R_SETANSWER"
31291 SERV_R_RETURN="#define SERV_R_RETURN struct servent *"
31292
31293 fi
31294
31295 esac
31296
31297
31298
31299
31300
31301
31302
31303
31304
31305 case $host in
31306 ia64-hp-hpux11.*)
31307 ;;
31308 *)
31309 echo "$as_me:$LINENO: checking for endservent_r" >&5
31310 echo $ECHO_N "checking for endservent_r... $ECHO_C" >&6
31311 if test "${ac_cv_func_endservent_r+set}" = set; then
31312   echo $ECHO_N "(cached) $ECHO_C" >&6
31313 else
31314   cat >conftest.$ac_ext <<_ACEOF
31315 /* confdefs.h.  */
31316 _ACEOF
31317 cat confdefs.h >>conftest.$ac_ext
31318 cat >>conftest.$ac_ext <<_ACEOF
31319 /* end confdefs.h.  */
31320 /* Define endservent_r to an innocuous variant, in case <limits.h> declares endservent_r.
31321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31322 #define endservent_r innocuous_endservent_r
31323
31324 /* System header to define __stub macros and hopefully few prototypes,
31325     which can conflict with char endservent_r (); below.
31326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31327     <limits.h> exists even on freestanding compilers.  */
31328
31329 #ifdef __STDC__
31330 # include <limits.h>
31331 #else
31332 # include <assert.h>
31333 #endif
31334
31335 #undef endservent_r
31336
31337 /* Override any gcc2 internal prototype to avoid an error.  */
31338 #ifdef __cplusplus
31339 extern "C"
31340 {
31341 #endif
31342 /* We use char because int might match the return type of a gcc2
31343    builtin and then its argument prototype would still apply.  */
31344 char endservent_r ();
31345 /* The GNU C library defines this for functions which it implements
31346     to always fail with ENOSYS.  Some functions are actually named
31347     something starting with __ and the normal name is an alias.  */
31348 #if defined (__stub_endservent_r) || defined (__stub___endservent_r)
31349 choke me
31350 #else
31351 char (*f) () = endservent_r;
31352 #endif
31353 #ifdef __cplusplus
31354 }
31355 #endif
31356
31357 int
31358 main ()
31359 {
31360 return f != endservent_r;
31361   ;
31362   return 0;
31363 }
31364 _ACEOF
31365 rm -f conftest.$ac_objext conftest$ac_exeext
31366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31367   (eval $ac_link) 2>conftest.er1
31368   ac_status=$?
31369   grep -v '^ *+' conftest.er1 >conftest.err
31370   rm -f conftest.er1
31371   cat conftest.err >&5
31372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373   (exit $ac_status); } &&
31374          { ac_try='test -z "$ac_c_werror_flag"
31375                          || test ! -s conftest.err'
31376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31377   (eval $ac_try) 2>&5
31378   ac_status=$?
31379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31380   (exit $ac_status); }; } &&
31381          { ac_try='test -s conftest$ac_exeext'
31382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31383   (eval $ac_try) 2>&5
31384   ac_status=$?
31385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31386   (exit $ac_status); }; }; then
31387   ac_cv_func_endservent_r=yes
31388 else
31389   echo "$as_me: failed program was:" >&5
31390 sed 's/^/| /' conftest.$ac_ext >&5
31391
31392 ac_cv_func_endservent_r=no
31393 fi
31394 rm -f conftest.err conftest.$ac_objext \
31395       conftest$ac_exeext conftest.$ac_ext
31396 fi
31397 echo "$as_me:$LINENO: result: $ac_cv_func_endservent_r" >&5
31398 echo "${ECHO_T}$ac_cv_func_endservent_r" >&6
31399 if test $ac_cv_func_endservent_r = yes; then
31400   cat >conftest.$ac_ext <<_ACEOF
31401 /* confdefs.h.  */
31402 _ACEOF
31403 cat confdefs.h >>conftest.$ac_ext
31404 cat >>conftest.$ac_ext <<_ACEOF
31405 /* end confdefs.h.  */
31406
31407 #undef _REENTRANT
31408 #define _REENTRANT
31409 #undef __USE_MISC
31410 #define __USE_MISC
31411 #include <netdb.h>
31412 void endservent_r(void);
31413
31414
31415 int
31416 main ()
31417 {
31418
31419   ;
31420   return 0;
31421 }
31422 _ACEOF
31423 rm -f conftest.$ac_objext
31424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31425   (eval $ac_compile) 2>conftest.er1
31426   ac_status=$?
31427   grep -v '^ *+' conftest.er1 >conftest.err
31428   rm -f conftest.er1
31429   cat conftest.err >&5
31430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31431   (exit $ac_status); } &&
31432          { ac_try='test -z "$ac_c_werror_flag"
31433                          || test ! -s conftest.err'
31434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31435   (eval $ac_try) 2>&5
31436   ac_status=$?
31437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31438   (exit $ac_status); }; } &&
31439          { ac_try='test -s conftest.$ac_objext'
31440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31441   (eval $ac_try) 2>&5
31442   ac_status=$?
31443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31444   (exit $ac_status); }; }; then
31445
31446 SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/"
31447 SERV_R_END_RETURN="#define SERV_R_END_RETURN void "
31448 SERV_R_ENT_ARGS="#undef SERV_R_ENT_ARGS /*empty*/"
31449 SERV_R_ENT_UNUSED="#undef SERV_R_ENT_UNUSED /*empty*/"
31450
31451
31452 else
31453   echo "$as_me: failed program was:" >&5
31454 sed 's/^/| /' conftest.$ac_ext >&5
31455
31456 cat >conftest.$ac_ext <<_ACEOF
31457 /* confdefs.h.  */
31458 _ACEOF
31459 cat confdefs.h >>conftest.$ac_ext
31460 cat >>conftest.$ac_ext <<_ACEOF
31461 /* end confdefs.h.  */
31462
31463 #undef _REENTRANT
31464 #define _REENTRANT
31465 #undef __USE_MISC
31466 #define __USE_MISC
31467 #include <netdb.h>
31468 void endservent_r(struct servent_data *serv_data);
31469
31470
31471 int
31472 main ()
31473 {
31474
31475   ;
31476   return 0;
31477 }
31478 _ACEOF
31479 rm -f conftest.$ac_objext
31480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31481   (eval $ac_compile) 2>conftest.er1
31482   ac_status=$?
31483   grep -v '^ *+' conftest.er1 >conftest.err
31484   rm -f conftest.er1
31485   cat conftest.err >&5
31486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487   (exit $ac_status); } &&
31488          { ac_try='test -z "$ac_c_werror_flag"
31489                          || test ! -s conftest.err'
31490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31491   (eval $ac_try) 2>&5
31492   ac_status=$?
31493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494   (exit $ac_status); }; } &&
31495          { ac_try='test -s conftest.$ac_objext'
31496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31497   (eval $ac_try) 2>&5
31498   ac_status=$?
31499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500   (exit $ac_status); }; }; then
31501
31502 SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/"
31503 SERV_R_END_RETURN="#define SERV_R_END_RETURN void "
31504 SERV_R_ENT_ARGS="#define SERV_R_ENT_ARGS struct servent_data *serv_data"
31505 SERV_R_ENT_UNUSED="#define SERV_R_ENT_UNUSED UNUSED(serv_data)"
31506
31507
31508 else
31509   echo "$as_me: failed program was:" >&5
31510 sed 's/^/| /' conftest.$ac_ext >&5
31511
31512 cat >conftest.$ac_ext <<_ACEOF
31513 /* confdefs.h.  */
31514 _ACEOF
31515 cat confdefs.h >>conftest.$ac_ext
31516 cat >>conftest.$ac_ext <<_ACEOF
31517 /* end confdefs.h.  */
31518
31519 #undef _REENTRANT
31520 #define _REENTRANT
31521 #undef __USE_MISC
31522 #define __USE_MISC
31523 #include <netdb.h>
31524 int endservent_r(struct servent_data *serv_data);
31525
31526
31527 int
31528 main ()
31529 {
31530
31531   ;
31532   return 0;
31533 }
31534 _ACEOF
31535 rm -f conftest.$ac_objext
31536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31537   (eval $ac_compile) 2>conftest.er1
31538   ac_status=$?
31539   grep -v '^ *+' conftest.er1 >conftest.err
31540   rm -f conftest.er1
31541   cat conftest.err >&5
31542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543   (exit $ac_status); } &&
31544          { ac_try='test -z "$ac_c_werror_flag"
31545                          || test ! -s conftest.err'
31546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31547   (eval $ac_try) 2>&5
31548   ac_status=$?
31549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550   (exit $ac_status); }; } &&
31551          { ac_try='test -s conftest.$ac_objext'
31552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31553   (eval $ac_try) 2>&5
31554   ac_status=$?
31555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556   (exit $ac_status); }; }; then
31557
31558 SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) return(x)"
31559 SERV_R_END_RETURN="#define SERV_R_END_RETURN int "
31560 SERV_R_ENT_ARGS="#define SERV_R_ENT_ARGS struct servent_data *serv_data"
31561 SERV_R_ENT_UNUSED="#define SERV_R_ENT_UNUSED UNUSED(serv_data)"
31562
31563
31564 else
31565   echo "$as_me: failed program was:" >&5
31566 sed 's/^/| /' conftest.$ac_ext >&5
31567
31568 fi
31569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31570
31571 fi
31572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31573
31574 fi
31575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31576
31577 else
31578   SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/"
31579 SERV_R_END_RETURN="#define SERV_R_END_RETURN void "
31580 SERV_R_ENT_ARGS="#undef SERV_R_ENT_ARGS /*empty*/"
31581 SERV_R_ENT_UNUSED="#undef SERV_R_ENT_UNUSED /*empty*/"
31582
31583 fi
31584
31585 esac
31586
31587
31588
31589
31590
31591 case $host in
31592 ia64-hp-hpux11.*)
31593 ;;
31594 *)
31595 echo "$as_me:$LINENO: checking for setservent_r" >&5
31596 echo $ECHO_N "checking for setservent_r... $ECHO_C" >&6
31597 if test "${ac_cv_func_setservent_r+set}" = set; then
31598   echo $ECHO_N "(cached) $ECHO_C" >&6
31599 else
31600   cat >conftest.$ac_ext <<_ACEOF
31601 /* confdefs.h.  */
31602 _ACEOF
31603 cat confdefs.h >>conftest.$ac_ext
31604 cat >>conftest.$ac_ext <<_ACEOF
31605 /* end confdefs.h.  */
31606 /* Define setservent_r to an innocuous variant, in case <limits.h> declares setservent_r.
31607    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31608 #define setservent_r innocuous_setservent_r
31609
31610 /* System header to define __stub macros and hopefully few prototypes,
31611     which can conflict with char setservent_r (); below.
31612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31613     <limits.h> exists even on freestanding compilers.  */
31614
31615 #ifdef __STDC__
31616 # include <limits.h>
31617 #else
31618 # include <assert.h>
31619 #endif
31620
31621 #undef setservent_r
31622
31623 /* Override any gcc2 internal prototype to avoid an error.  */
31624 #ifdef __cplusplus
31625 extern "C"
31626 {
31627 #endif
31628 /* We use char because int might match the return type of a gcc2
31629    builtin and then its argument prototype would still apply.  */
31630 char setservent_r ();
31631 /* The GNU C library defines this for functions which it implements
31632     to always fail with ENOSYS.  Some functions are actually named
31633     something starting with __ and the normal name is an alias.  */
31634 #if defined (__stub_setservent_r) || defined (__stub___setservent_r)
31635 choke me
31636 #else
31637 char (*f) () = setservent_r;
31638 #endif
31639 #ifdef __cplusplus
31640 }
31641 #endif
31642
31643 int
31644 main ()
31645 {
31646 return f != setservent_r;
31647   ;
31648   return 0;
31649 }
31650 _ACEOF
31651 rm -f conftest.$ac_objext conftest$ac_exeext
31652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31653   (eval $ac_link) 2>conftest.er1
31654   ac_status=$?
31655   grep -v '^ *+' conftest.er1 >conftest.err
31656   rm -f conftest.er1
31657   cat conftest.err >&5
31658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31659   (exit $ac_status); } &&
31660          { ac_try='test -z "$ac_c_werror_flag"
31661                          || test ! -s conftest.err'
31662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31663   (eval $ac_try) 2>&5
31664   ac_status=$?
31665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666   (exit $ac_status); }; } &&
31667          { ac_try='test -s conftest$ac_exeext'
31668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31669   (eval $ac_try) 2>&5
31670   ac_status=$?
31671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672   (exit $ac_status); }; }; then
31673   ac_cv_func_setservent_r=yes
31674 else
31675   echo "$as_me: failed program was:" >&5
31676 sed 's/^/| /' conftest.$ac_ext >&5
31677
31678 ac_cv_func_setservent_r=no
31679 fi
31680 rm -f conftest.err conftest.$ac_objext \
31681       conftest$ac_exeext conftest.$ac_ext
31682 fi
31683 echo "$as_me:$LINENO: result: $ac_cv_func_setservent_r" >&5
31684 echo "${ECHO_T}$ac_cv_func_setservent_r" >&6
31685 if test $ac_cv_func_setservent_r = yes; then
31686   cat >conftest.$ac_ext <<_ACEOF
31687 /* confdefs.h.  */
31688 _ACEOF
31689 cat confdefs.h >>conftest.$ac_ext
31690 cat >>conftest.$ac_ext <<_ACEOF
31691 /* end confdefs.h.  */
31692
31693 #undef _REENTRANT
31694 #define _REENTRANT
31695 #undef __USE_MISC
31696 #define __USE_MISC
31697 #include <netdb.h>
31698 void setservent_r(int);
31699
31700
31701 int
31702 main ()
31703 {
31704
31705   ;
31706   return 0;
31707 }
31708 _ACEOF
31709 rm -f conftest.$ac_objext
31710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31711   (eval $ac_compile) 2>conftest.er1
31712   ac_status=$?
31713   grep -v '^ *+' conftest.er1 >conftest.err
31714   rm -f conftest.er1
31715   cat conftest.err >&5
31716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31717   (exit $ac_status); } &&
31718          { ac_try='test -z "$ac_c_werror_flag"
31719                          || test ! -s conftest.err'
31720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31721   (eval $ac_try) 2>&5
31722   ac_status=$?
31723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724   (exit $ac_status); }; } &&
31725          { ac_try='test -s conftest.$ac_objext'
31726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31727   (eval $ac_try) 2>&5
31728   ac_status=$?
31729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730   (exit $ac_status); }; }; then
31731
31732 SERV_R_SET_RESULT="#undef SERV_R_SET_RESULT"
31733 SERV_R_SET_RETURN="#define SERV_R_SET_RETURN void"
31734
31735
31736 else
31737   echo "$as_me: failed program was:" >&5
31738 sed 's/^/| /' conftest.$ac_ext >&5
31739
31740 cat >conftest.$ac_ext <<_ACEOF
31741 /* confdefs.h.  */
31742 _ACEOF
31743 cat confdefs.h >>conftest.$ac_ext
31744 cat >>conftest.$ac_ext <<_ACEOF
31745 /* end confdefs.h.  */
31746
31747 #undef _REENTRANT
31748 #define _REENTRANT
31749 #undef __USE_MISC
31750 #define __USE_MISC
31751 #include <netdb.h>
31752 int setservent_r(int, struct servent_data *);
31753
31754
31755 int
31756 main ()
31757 {
31758
31759   ;
31760   return 0;
31761 }
31762 _ACEOF
31763 rm -f conftest.$ac_objext
31764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31765   (eval $ac_compile) 2>conftest.er1
31766   ac_status=$?
31767   grep -v '^ *+' conftest.er1 >conftest.err
31768   rm -f conftest.er1
31769   cat conftest.err >&5
31770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771   (exit $ac_status); } &&
31772          { ac_try='test -z "$ac_c_werror_flag"
31773                          || test ! -s conftest.err'
31774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31775   (eval $ac_try) 2>&5
31776   ac_status=$?
31777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31778   (exit $ac_status); }; } &&
31779          { ac_try='test -s conftest.$ac_objext'
31780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31781   (eval $ac_try) 2>&5
31782   ac_status=$?
31783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784   (exit $ac_status); }; }; then
31785
31786 SERV_R_SET_RESULT="#define SERV_R_SET_RESULT (0)"
31787 SERV_R_SET_RETURN="#define SERV_R_SET_RETURN int"
31788
31789
31790 else
31791   echo "$as_me: failed program was:" >&5
31792 sed 's/^/| /' conftest.$ac_ext >&5
31793
31794 fi
31795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31796
31797 fi
31798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31799
31800 else
31801   SERV_R_SET_RESULT="#undef SERV_R_SET_RESULT"
31802 SERV_R_SET_RETURN="#define SERV_R_SET_RETURN void"
31803
31804 fi
31805
31806 esac
31807
31808
31809
31810 cat >conftest.$ac_ext <<_ACEOF
31811 /* confdefs.h.  */
31812 _ACEOF
31813 cat confdefs.h >>conftest.$ac_ext
31814 cat >>conftest.$ac_ext <<_ACEOF
31815 /* end confdefs.h.  */
31816
31817 #undef _REENTRANT
31818 #define _REENTRANT
31819 #undef __USE_MISC
31820 #define __USE_MISC
31821 #include <unistd.h>
31822 #include <netdb.h>
31823 int innetgr(const char *netgroup, const char *host, const char *user, const char *domain);
31824
31825
31826 int
31827 main ()
31828 {
31829
31830   ;
31831   return 0;
31832 }
31833 _ACEOF
31834 rm -f conftest.$ac_objext
31835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31836   (eval $ac_compile) 2>conftest.er1
31837   ac_status=$?
31838   grep -v '^ *+' conftest.er1 >conftest.err
31839   rm -f conftest.er1
31840   cat conftest.err >&5
31841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842   (exit $ac_status); } &&
31843          { ac_try='test -z "$ac_c_werror_flag"
31844                          || test ! -s conftest.err'
31845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31846   (eval $ac_try) 2>&5
31847   ac_status=$?
31848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849   (exit $ac_status); }; } &&
31850          { ac_try='test -s conftest.$ac_objext'
31851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31852   (eval $ac_try) 2>&5
31853   ac_status=$?
31854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31855   (exit $ac_status); }; }; then
31856
31857 INNETGR_ARGS="#undef INNETGR_ARGS"
31858
31859
31860 else
31861   echo "$as_me: failed program was:" >&5
31862 sed 's/^/| /' conftest.$ac_ext >&5
31863
31864 cat >conftest.$ac_ext <<_ACEOF
31865 /* confdefs.h.  */
31866 _ACEOF
31867 cat confdefs.h >>conftest.$ac_ext
31868 cat >>conftest.$ac_ext <<_ACEOF
31869 /* end confdefs.h.  */
31870
31871 #undef _REENTRANT
31872 #define _REENTRANT
31873 #undef __USE_MISC
31874 #define __USE_MISC
31875 #include <unistd.h>
31876 #include <netdb.h>
31877 int innetgr(char *netgroup, char *host, char *user, char *domain);
31878
31879
31880 int
31881 main ()
31882 {
31883
31884   ;
31885   return 0;
31886 }
31887 _ACEOF
31888 rm -f conftest.$ac_objext
31889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31890   (eval $ac_compile) 2>conftest.er1
31891   ac_status=$?
31892   grep -v '^ *+' conftest.er1 >conftest.err
31893   rm -f conftest.er1
31894   cat conftest.err >&5
31895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31896   (exit $ac_status); } &&
31897          { ac_try='test -z "$ac_c_werror_flag"
31898                          || test ! -s conftest.err'
31899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31900   (eval $ac_try) 2>&5
31901   ac_status=$?
31902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903   (exit $ac_status); }; } &&
31904          { ac_try='test -s conftest.$ac_objext'
31905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31906   (eval $ac_try) 2>&5
31907   ac_status=$?
31908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31909   (exit $ac_status); }; }; then
31910
31911 INNETGR_ARGS="#define INNETGR_ARGS char *netgroup, char *host, char *user, char *domain"
31912
31913
31914 else
31915   echo "$as_me: failed program was:" >&5
31916 sed 's/^/| /' conftest.$ac_ext >&5
31917
31918 fi
31919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31920 fi
31921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31922
31923 cat >conftest.$ac_ext <<_ACEOF
31924 /* confdefs.h.  */
31925 _ACEOF
31926 cat confdefs.h >>conftest.$ac_ext
31927 cat >>conftest.$ac_ext <<_ACEOF
31928 /* end confdefs.h.  */
31929
31930 #undef _REENTRANT
31931 #define _REENTRANT
31932 #undef __USE_MISC
31933 #define __USE_MISC
31934 #include <unistd.h>
31935 #include <netdb.h>
31936 void setnetgrent(const char *);
31937
31938
31939 int
31940 main ()
31941 {
31942
31943   ;
31944   return 0;
31945 }
31946 _ACEOF
31947 rm -f conftest.$ac_objext
31948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31949   (eval $ac_compile) 2>conftest.er1
31950   ac_status=$?
31951   grep -v '^ *+' conftest.er1 >conftest.err
31952   rm -f conftest.er1
31953   cat conftest.err >&5
31954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31955   (exit $ac_status); } &&
31956          { ac_try='test -z "$ac_c_werror_flag"
31957                          || test ! -s conftest.err'
31958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31959   (eval $ac_try) 2>&5
31960   ac_status=$?
31961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31962   (exit $ac_status); }; } &&
31963          { ac_try='test -s conftest.$ac_objext'
31964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31965   (eval $ac_try) 2>&5
31966   ac_status=$?
31967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31968   (exit $ac_status); }; }; then
31969
31970 SETNETGRENT_ARGS="#undef SETNETGRENT_ARGS"
31971
31972
31973 else
31974   echo "$as_me: failed program was:" >&5
31975 sed 's/^/| /' conftest.$ac_ext >&5
31976
31977 cat >conftest.$ac_ext <<_ACEOF
31978 /* confdefs.h.  */
31979 _ACEOF
31980 cat confdefs.h >>conftest.$ac_ext
31981 cat >>conftest.$ac_ext <<_ACEOF
31982 /* end confdefs.h.  */
31983
31984 #undef _REENTRANT
31985 #define _REENTRANT
31986 #undef __USE_MISC
31987 #define __USE_MISC
31988 #include <unistd.h>
31989 #include <netdb.h>
31990 void setnetgrent(char *);
31991
31992
31993 int
31994 main ()
31995 {
31996
31997   ;
31998   return 0;
31999 }
32000 _ACEOF
32001 rm -f conftest.$ac_objext
32002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32003   (eval $ac_compile) 2>conftest.er1
32004   ac_status=$?
32005   grep -v '^ *+' conftest.er1 >conftest.err
32006   rm -f conftest.er1
32007   cat conftest.err >&5
32008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009   (exit $ac_status); } &&
32010          { ac_try='test -z "$ac_c_werror_flag"
32011                          || test ! -s conftest.err'
32012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32013   (eval $ac_try) 2>&5
32014   ac_status=$?
32015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016   (exit $ac_status); }; } &&
32017          { ac_try='test -s conftest.$ac_objext'
32018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32019   (eval $ac_try) 2>&5
32020   ac_status=$?
32021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022   (exit $ac_status); }; }; then
32023
32024 SETNETGRENT_ARGS="#define SETNETGRENT_ARGS char *netgroup"
32025
32026
32027 else
32028   echo "$as_me: failed program was:" >&5
32029 sed 's/^/| /' conftest.$ac_ext >&5
32030
32031 fi
32032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32033 fi
32034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32035
32036
32037
32038 #
32039 # Random remaining OS-specific issues involving compiler warnings.
32040 # XXXDCL print messages to indicate some compensation is being done?
32041 #
32042 BROKEN_IN6ADDR_INIT_MACROS="#undef BROKEN_IN6ADDR_INIT_MACROS"
32043
32044 case "$host" in
32045         *-aix5.1.*)
32046                 hack_shutup_pthreadmutexinit=yes
32047                 hack_shutup_in6addr_init_macros=yes
32048                 ;;
32049         *-aix5.[23].*)
32050                 hack_shutup_in6addr_init_macros=yes
32051                 ;;
32052         *-bsdi3.1*)
32053                 hack_shutup_sputaux=yes
32054                 ;;
32055         *-bsdi4.0*)
32056                 hack_shutup_sigwait=yes
32057                 hack_shutup_sputaux=yes
32058                 hack_shutup_in6addr_init_macros=yes
32059                 ;;
32060         *-bsdi4.1*)
32061                 hack_shutup_stdargcast=yes
32062                 ;;
32063         *-hpux11.11)
32064                 hack_shutup_in6addr_init_macros=yes
32065                 ;;
32066         *-osf5.1|*-osf5.1b)
32067                 hack_shutup_in6addr_init_macros=yes
32068                 ;;
32069         *-solaris2.8)
32070                 hack_shutup_in6addr_init_macros=yes
32071                 ;;
32072         *-solaris2.9)
32073                 hack_shutup_in6addr_init_macros=yes
32074                 ;;
32075         *-solaris2.10)
32076                 hack_shutup_in6addr_init_macros=yes
32077                 ;;
32078 esac
32079
32080 case "$hack_shutup_pthreadmutexinit" in
32081         yes)
32082                 #
32083                 # Shut up PTHREAD_MUTEX_INITIALIZER unbraced
32084                 # initializer warnings.
32085                 #
32086                 cat >>confdefs.h <<\_ACEOF
32087 #define SHUTUP_MUTEX_INITIALIZER 1
32088 _ACEOF
32089
32090                 ;;
32091 esac
32092
32093 case "$hack_shutup_sigwait" in
32094         yes)
32095                 #
32096                 # Shut up a -Wmissing-prototypes warning for sigwait().
32097                 #
32098                 cat >>confdefs.h <<\_ACEOF
32099 #define SHUTUP_SIGWAIT 1
32100 _ACEOF
32101
32102                 ;;
32103 esac
32104
32105 case "$hack_shutup_sputaux" in
32106         yes)
32107                 #
32108                 # Shut up a -Wmissing-prototypes warning from <stdio.h>.
32109                 #
32110                 cat >>confdefs.h <<\_ACEOF
32111 #define SHUTUP_SPUTAUX 1
32112 _ACEOF
32113
32114                 ;;
32115 esac
32116
32117 case "$hack_shutup_stdargcast" in
32118         yes)
32119                 #
32120                 # Shut up a -Wcast-qual warning from va_start().
32121                 #
32122                 cat >>confdefs.h <<\_ACEOF
32123 #define SHUTUP_STDARG_CAST 1
32124 _ACEOF
32125
32126                 ;;
32127 esac
32128
32129 case "$hack_shutup_in6addr_init_macros" in
32130         yes)
32131
32132 cat >>confdefs.h <<\_ACEOF
32133 #define BROKEN_IN6ADDR_INIT_MACROS 1
32134 _ACEOF
32135
32136                 ;;
32137 esac
32138
32139 #
32140 # Substitutions
32141 #
32142
32143 BIND9_TOP_BUILDDIR=`pwd`
32144
32145
32146 BIND9_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
32147
32148
32149 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
32150
32151 . $srcdir/../../version
32152 BIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}"
32153
32154
32155
32156 LIBBIND_API=$srcdir/api
32157
32158                                                                                                                                                                           ac_config_files="$ac_config_files make/rules make/mkdep make/includes Makefile bsd/Makefile dst/Makefile include/Makefile inet/Makefile irs/Makefile isc/Makefile nameser/Makefile port_after.h port_before.h resolv/Makefile port/Makefile ${PORT_DIR}/Makefile ${PORT_INCLUDE}/Makefile"
32159 cat >confcache <<\_ACEOF
32160 # This file is a shell script that caches the results of configure
32161 # tests run on this system so they can be shared between configure
32162 # scripts and configure runs, see configure's option --config-cache.
32163 # It is not useful on other systems.  If it contains results you don't
32164 # want to keep, you may remove or edit it.
32165 #
32166 # config.status only pays attention to the cache file if you give it
32167 # the --recheck option to rerun configure.
32168 #
32169 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32170 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32171 # following values.
32172
32173 _ACEOF
32174
32175 # The following way of writing the cache mishandles newlines in values,
32176 # but we know of no workaround that is simple, portable, and efficient.
32177 # So, don't put newlines in cache variables' values.
32178 # Ultrix sh set writes to stderr and can't be redirected directly,
32179 # and sets the high bit in the cache file unless we assign to the vars.
32180 {
32181   (set) 2>&1 |
32182     case `(ac_space=' '; set | grep ac_space) 2>&1` in
32183     *ac_space=\ *)
32184       # `set' does not quote correctly, so add quotes (double-quote
32185       # substitution turns \\\\ into \\, and sed turns \\ into \).
32186       sed -n \
32187         "s/'/'\\\\''/g;
32188           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32189       ;;
32190     *)
32191       # `set' quotes correctly as required by POSIX, so do not add quotes.
32192       sed -n \
32193         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
32194       ;;
32195     esac;
32196 } |
32197   sed '
32198      t clear
32199      : clear
32200      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32201      t end
32202      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32203      : end' >>confcache
32204 if diff $cache_file confcache >/dev/null 2>&1; then :; else
32205   if test -w $cache_file; then
32206     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32207     cat confcache >$cache_file
32208   else
32209     echo "not updating unwritable cache $cache_file"
32210   fi
32211 fi
32212 rm -f confcache
32213
32214 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32215 # Let make expand exec_prefix.
32216 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32217
32218 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32219 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32220 # trailing colons and then remove the whole line if VPATH becomes empty
32221 # (actually we leave an empty line to preserve line numbers).
32222 if test "x$srcdir" = x.; then
32223   ac_vpsub='/^[  ]*VPATH[        ]*=/{
32224 s/:*\$(srcdir):*/:/;
32225 s/:*\${srcdir}:*/:/;
32226 s/:*@srcdir@:*/:/;
32227 s/^\([^=]*=[     ]*\):*/\1/;
32228 s/:*$//;
32229 s/^[^=]*=[       ]*$//;
32230 }'
32231 fi
32232
32233 DEFS=-DHAVE_CONFIG_H
32234
32235 ac_libobjs=
32236 ac_ltlibobjs=
32237 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32238   # 1. Remove the extension, and $U if already installed.
32239   ac_i=`echo "$ac_i" |
32240          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
32241   # 2. Add them.
32242   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
32243   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
32244 done
32245 LIBOBJS=$ac_libobjs
32246
32247 LTLIBOBJS=$ac_ltlibobjs
32248
32249
32250
32251 : ${CONFIG_STATUS=./config.status}
32252 ac_clean_files_save=$ac_clean_files
32253 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32254 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32255 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32256 cat >$CONFIG_STATUS <<_ACEOF
32257 #! $SHELL
32258 # Generated by $as_me.
32259 # Run this file to recreate the current configuration.
32260 # Compiler output produced by configure, useful for debugging
32261 # configure, is in config.log if it exists.
32262
32263 debug=false
32264 ac_cs_recheck=false
32265 ac_cs_silent=false
32266 SHELL=\${CONFIG_SHELL-$SHELL}
32267 _ACEOF
32268
32269 cat >>$CONFIG_STATUS <<\_ACEOF
32270 ## --------------------- ##
32271 ## M4sh Initialization.  ##
32272 ## --------------------- ##
32273
32274 # Be Bourne compatible
32275 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32276   emulate sh
32277   NULLCMD=:
32278   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32279   # is contrary to our usage.  Disable this feature.
32280   alias -g '${1+"$@"}'='"$@"'
32281 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32282   set -o posix
32283 fi
32284 DUALCASE=1; export DUALCASE # for MKS sh
32285
32286 # Support unset when possible.
32287 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32288   as_unset=unset
32289 else
32290   as_unset=false
32291 fi
32292
32293
32294 # Work around bugs in pre-3.0 UWIN ksh.
32295 $as_unset ENV MAIL MAILPATH
32296 PS1='$ '
32297 PS2='> '
32298 PS4='+ '
32299
32300 # NLS nuisances.
32301 for as_var in \
32302   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32303   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32304   LC_TELEPHONE LC_TIME
32305 do
32306   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32307     eval $as_var=C; export $as_var
32308   else
32309     $as_unset $as_var
32310   fi
32311 done
32312
32313 # Required to use basename.
32314 if expr a : '\(a\)' >/dev/null 2>&1; then
32315   as_expr=expr
32316 else
32317   as_expr=false
32318 fi
32319
32320 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
32321   as_basename=basename
32322 else
32323   as_basename=false
32324 fi
32325
32326
32327 # Name of the executable.
32328 as_me=`$as_basename "$0" ||
32329 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32330          X"$0" : 'X\(//\)$' \| \
32331          X"$0" : 'X\(/\)$' \| \
32332          .     : '\(.\)' 2>/dev/null ||
32333 echo X/"$0" |
32334     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
32335           /^X\/\(\/\/\)$/{ s//\1/; q; }
32336           /^X\/\(\/\).*/{ s//\1/; q; }
32337           s/.*/./; q'`
32338
32339
32340 # PATH needs CR, and LINENO needs CR and PATH.
32341 # Avoid depending upon Character Ranges.
32342 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32343 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32344 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32345 as_cr_digits='0123456789'
32346 as_cr_alnum=$as_cr_Letters$as_cr_digits
32347
32348 # The user is always right.
32349 if test "${PATH_SEPARATOR+set}" != set; then
32350   echo "#! /bin/sh" >conf$$.sh
32351   echo  "exit 0"   >>conf$$.sh
32352   chmod +x conf$$.sh
32353   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32354     PATH_SEPARATOR=';'
32355   else
32356     PATH_SEPARATOR=:
32357   fi
32358   rm -f conf$$.sh
32359 fi
32360
32361
32362   as_lineno_1=$LINENO
32363   as_lineno_2=$LINENO
32364   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
32365   test "x$as_lineno_1" != "x$as_lineno_2" &&
32366   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
32367   # Find who we are.  Look in the path if we contain no path at all
32368   # relative or not.
32369   case $0 in
32370     *[\\/]* ) as_myself=$0 ;;
32371     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32372 for as_dir in $PATH
32373 do
32374   IFS=$as_save_IFS
32375   test -z "$as_dir" && as_dir=.
32376   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32377 done
32378
32379        ;;
32380   esac
32381   # We did not find ourselves, most probably we were run as `sh COMMAND'
32382   # in which case we are not to be found in the path.
32383   if test "x$as_myself" = x; then
32384     as_myself=$0
32385   fi
32386   if test ! -f "$as_myself"; then
32387     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
32388 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
32389    { (exit 1); exit 1; }; }
32390   fi
32391   case $CONFIG_SHELL in
32392   '')
32393     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32394 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
32395 do
32396   IFS=$as_save_IFS
32397   test -z "$as_dir" && as_dir=.
32398   for as_base in sh bash ksh sh5; do
32399          case $as_dir in
32400          /*)
32401            if ("$as_dir/$as_base" -c '
32402   as_lineno_1=$LINENO
32403   as_lineno_2=$LINENO
32404   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
32405   test "x$as_lineno_1" != "x$as_lineno_2" &&
32406   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
32407              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
32408              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
32409              CONFIG_SHELL=$as_dir/$as_base
32410              export CONFIG_SHELL
32411              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
32412            fi;;
32413          esac
32414        done
32415 done
32416 ;;
32417   esac
32418
32419   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32420   # uniformly replaced by the line number.  The first 'sed' inserts a
32421   # line-number line before each line; the second 'sed' does the real
32422   # work.  The second script uses 'N' to pair each line-number line
32423   # with the numbered line, and appends trailing '-' during
32424   # substitution so that $LINENO is not a special case at line end.
32425   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32426   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
32427   sed '=' <$as_myself |
32428     sed '
32429       N
32430       s,$,-,
32431       : loop
32432       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
32433       t loop
32434       s,-$,,
32435       s,^['$as_cr_digits']*\n,,
32436     ' >$as_me.lineno &&
32437   chmod +x $as_me.lineno ||
32438     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
32439 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
32440    { (exit 1); exit 1; }; }
32441
32442   # Don't try to exec as it changes $[0], causing all sort of problems
32443   # (the dirname of $[0] is not the place where we might find the
32444   # original and so on.  Autoconf is especially sensible to this).
32445   . ./$as_me.lineno
32446   # Exit status is that of the last command.
32447   exit
32448 }
32449
32450
32451 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
32452   *c*,-n*) ECHO_N= ECHO_C='
32453 ' ECHO_T='      ' ;;
32454   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
32455   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
32456 esac
32457
32458 if expr a : '\(a\)' >/dev/null 2>&1; then
32459   as_expr=expr
32460 else
32461   as_expr=false
32462 fi
32463
32464 rm -f conf$$ conf$$.exe conf$$.file
32465 echo >conf$$.file
32466 if ln -s conf$$.file conf$$ 2>/dev/null; then
32467   # We could just check for DJGPP; but this test a) works b) is more generic
32468   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
32469   if test -f conf$$.exe; then
32470     # Don't use ln at all; we don't have any links
32471     as_ln_s='cp -p'
32472   else
32473     as_ln_s='ln -s'
32474   fi
32475 elif ln conf$$.file conf$$ 2>/dev/null; then
32476   as_ln_s=ln
32477 else
32478   as_ln_s='cp -p'
32479 fi
32480 rm -f conf$$ conf$$.exe conf$$.file
32481
32482 if mkdir -p . 2>/dev/null; then
32483   as_mkdir_p=:
32484 else
32485   test -d ./-p && rmdir ./-p
32486   as_mkdir_p=false
32487 fi
32488
32489 as_executable_p="test -f"
32490
32491 # Sed expression to map a string onto a valid CPP name.
32492 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32493
32494 # Sed expression to map a string onto a valid variable name.
32495 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32496
32497
32498 # IFS
32499 # We need space, tab and new line, in precisely that order.
32500 as_nl='
32501 '
32502 IFS="   $as_nl"
32503
32504 # CDPATH.
32505 $as_unset CDPATH
32506
32507 exec 6>&1
32508
32509 # Open the log real soon, to keep \$[0] and so on meaningful, and to
32510 # report actual input values of CONFIG_FILES etc. instead of their
32511 # values after options handling.  Logging --version etc. is OK.
32512 exec 5>>config.log
32513 {
32514   echo
32515   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32516 ## Running $as_me. ##
32517 _ASBOX
32518 } >&5
32519 cat >&5 <<_CSEOF
32520
32521 This file was extended by $as_me, which was
32522 generated by GNU Autoconf 2.59.  Invocation command line was
32523
32524   CONFIG_FILES    = $CONFIG_FILES
32525   CONFIG_HEADERS  = $CONFIG_HEADERS
32526   CONFIG_LINKS    = $CONFIG_LINKS
32527   CONFIG_COMMANDS = $CONFIG_COMMANDS
32528   $ $0 $@
32529
32530 _CSEOF
32531 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
32532 echo >&5
32533 _ACEOF
32534
32535 # Files that config.status was made for.
32536 if test -n "$ac_config_files"; then
32537   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
32538 fi
32539
32540 if test -n "$ac_config_headers"; then
32541   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
32542 fi
32543
32544 if test -n "$ac_config_links"; then
32545   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
32546 fi
32547
32548 if test -n "$ac_config_commands"; then
32549   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
32550 fi
32551
32552 cat >>$CONFIG_STATUS <<\_ACEOF
32553
32554 ac_cs_usage="\
32555 \`$as_me' instantiates files from templates according to the
32556 current configuration.
32557
32558 Usage: $0 [OPTIONS] [FILE]...
32559
32560   -h, --help       print this help, then exit
32561   -V, --version    print version number, then exit
32562   -q, --quiet      do not print progress messages
32563   -d, --debug      don't remove temporary files
32564       --recheck    update $as_me by reconfiguring in the same conditions
32565   --file=FILE[:TEMPLATE]
32566                    instantiate the configuration file FILE
32567   --header=FILE[:TEMPLATE]
32568                    instantiate the configuration header FILE
32569
32570 Configuration files:
32571 $config_files
32572
32573 Configuration headers:
32574 $config_headers
32575
32576 Report bugs to <bug-autoconf@gnu.org>."
32577 _ACEOF
32578
32579 cat >>$CONFIG_STATUS <<_ACEOF
32580 ac_cs_version="\\
32581 config.status
32582 configured by $0, generated by GNU Autoconf 2.59,
32583   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
32584
32585 Copyright (C) 2003 Free Software Foundation, Inc.
32586 This config.status script is free software; the Free Software Foundation
32587 gives unlimited permission to copy, distribute and modify it."
32588 srcdir=$srcdir
32589 INSTALL="$INSTALL"
32590 _ACEOF
32591
32592 cat >>$CONFIG_STATUS <<\_ACEOF
32593 # If no file are specified by the user, then we need to provide default
32594 # value.  By we need to know if files were specified by the user.
32595 ac_need_defaults=:
32596 while test $# != 0
32597 do
32598   case $1 in
32599   --*=*)
32600     ac_option=`expr "x$1" : 'x\([^=]*\)='`
32601     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
32602     ac_shift=:
32603     ;;
32604   -*)
32605     ac_option=$1
32606     ac_optarg=$2
32607     ac_shift=shift
32608     ;;
32609   *) # This is not an option, so the user has probably given explicit
32610      # arguments.
32611      ac_option=$1
32612      ac_need_defaults=false;;
32613   esac
32614
32615   case $ac_option in
32616   # Handling of the options.
32617 _ACEOF
32618 cat >>$CONFIG_STATUS <<\_ACEOF
32619   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32620     ac_cs_recheck=: ;;
32621   --version | --vers* | -V )
32622     echo "$ac_cs_version"; exit 0 ;;
32623   --he | --h)
32624     # Conflict between --help and --header
32625     { { echo "$as_me:$LINENO: error: ambiguous option: $1
32626 Try \`$0 --help' for more information." >&5
32627 echo "$as_me: error: ambiguous option: $1
32628 Try \`$0 --help' for more information." >&2;}
32629    { (exit 1); exit 1; }; };;
32630   --help | --hel | -h )
32631     echo "$ac_cs_usage"; exit 0 ;;
32632   --debug | --d* | -d )
32633     debug=: ;;
32634   --file | --fil | --fi | --f )
32635     $ac_shift
32636     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32637     ac_need_defaults=false;;
32638   --header | --heade | --head | --hea )
32639     $ac_shift
32640     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32641     ac_need_defaults=false;;
32642   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32643   | -silent | --silent | --silen | --sile | --sil | --si | --s)
32644     ac_cs_silent=: ;;
32645
32646   # This is an error.
32647   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
32648 Try \`$0 --help' for more information." >&5
32649 echo "$as_me: error: unrecognized option: $1
32650 Try \`$0 --help' for more information." >&2;}
32651    { (exit 1); exit 1; }; } ;;
32652
32653   *) ac_config_targets="$ac_config_targets $1" ;;
32654
32655   esac
32656   shift
32657 done
32658
32659 ac_configure_extra_args=
32660
32661 if $ac_cs_silent; then
32662   exec 6>/dev/null
32663   ac_configure_extra_args="$ac_configure_extra_args --silent"
32664 fi
32665
32666 _ACEOF
32667 cat >>$CONFIG_STATUS <<_ACEOF
32668 if \$ac_cs_recheck; then
32669   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32670   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32671 fi
32672
32673 _ACEOF
32674
32675
32676
32677
32678
32679 cat >>$CONFIG_STATUS <<\_ACEOF
32680 for ac_config_target in $ac_config_targets
32681 do
32682   case "$ac_config_target" in
32683   # Handling of arguments.
32684   "make/rules" ) CONFIG_FILES="$CONFIG_FILES make/rules" ;;
32685   "make/mkdep" ) CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
32686   "make/includes" ) CONFIG_FILES="$CONFIG_FILES make/includes" ;;
32687   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32688   "bsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bsd/Makefile" ;;
32689   "dst/Makefile" ) CONFIG_FILES="$CONFIG_FILES dst/Makefile" ;;
32690   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
32691   "inet/Makefile" ) CONFIG_FILES="$CONFIG_FILES inet/Makefile" ;;
32692   "irs/Makefile" ) CONFIG_FILES="$CONFIG_FILES irs/Makefile" ;;
32693   "isc/Makefile" ) CONFIG_FILES="$CONFIG_FILES isc/Makefile" ;;
32694   "nameser/Makefile" ) CONFIG_FILES="$CONFIG_FILES nameser/Makefile" ;;
32695   "port_after.h" ) CONFIG_FILES="$CONFIG_FILES port_after.h" ;;
32696   "port_before.h" ) CONFIG_FILES="$CONFIG_FILES port_before.h" ;;
32697   "resolv/Makefile" ) CONFIG_FILES="$CONFIG_FILES resolv/Makefile" ;;
32698   "port/Makefile" ) CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
32699   "${PORT_DIR}/Makefile" ) CONFIG_FILES="$CONFIG_FILES ${PORT_DIR}/Makefile" ;;
32700   "${PORT_INCLUDE}/Makefile" ) CONFIG_FILES="$CONFIG_FILES ${PORT_INCLUDE}/Makefile" ;;
32701   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32702   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32703 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32704    { (exit 1); exit 1; }; };;
32705   esac
32706 done
32707
32708 # If the user did not use the arguments to specify the items to instantiate,
32709 # then the envvar interface is used.  Set only those that are not.
32710 # We use the long form for the default assignment because of an extremely
32711 # bizarre bug on SunOS 4.1.3.
32712 if $ac_need_defaults; then
32713   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32714   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32715 fi
32716
32717 # Have a temporary directory for convenience.  Make it in the build tree
32718 # simply because there is no reason to put it here, and in addition,
32719 # creating and moving files from /tmp can sometimes cause problems.
32720 # Create a temporary directory, and hook for its removal unless debugging.
32721 $debug ||
32722 {
32723   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
32724   trap '{ (exit 1); exit 1; }' 1 2 13 15
32725 }
32726
32727 # Create a (secure) tmp directory for tmp files.
32728
32729 {
32730   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
32731   test -n "$tmp" && test -d "$tmp"
32732 }  ||
32733 {
32734   tmp=./confstat$$-$RANDOM
32735   (umask 077 && mkdir $tmp)
32736 } ||
32737 {
32738    echo "$me: cannot create a temporary directory in ." >&2
32739    { (exit 1); exit 1; }
32740 }
32741
32742 _ACEOF
32743
32744 cat >>$CONFIG_STATUS <<_ACEOF
32745
32746 #
32747 # CONFIG_FILES section.
32748 #
32749
32750 # No need to generate the scripts if there are no CONFIG_FILES.
32751 # This happens for instance when ./config.status config.h
32752 if test -n "\$CONFIG_FILES"; then
32753   # Protect against being on the right side of a sed subst in config.status.
32754   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
32755    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
32756 s,@SHELL@,$SHELL,;t t
32757 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
32758 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
32759 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
32760 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
32761 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
32762 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
32763 s,@exec_prefix@,$exec_prefix,;t t
32764 s,@prefix@,$prefix,;t t
32765 s,@program_transform_name@,$program_transform_name,;t t
32766 s,@bindir@,$bindir,;t t
32767 s,@sbindir@,$sbindir,;t t
32768 s,@libexecdir@,$libexecdir,;t t
32769 s,@datadir@,$datadir,;t t
32770 s,@sysconfdir@,$sysconfdir,;t t
32771 s,@sharedstatedir@,$sharedstatedir,;t t
32772 s,@localstatedir@,$localstatedir,;t t
32773 s,@libdir@,$libdir,;t t
32774 s,@includedir@,$includedir,;t t
32775 s,@oldincludedir@,$oldincludedir,;t t
32776 s,@infodir@,$infodir,;t t
32777 s,@mandir@,$mandir,;t t
32778 s,@build_alias@,$build_alias,;t t
32779 s,@host_alias@,$host_alias,;t t
32780 s,@target_alias@,$target_alias,;t t
32781 s,@DEFS@,$DEFS,;t t
32782 s,@ECHO_C@,$ECHO_C,;t t
32783 s,@ECHO_N@,$ECHO_N,;t t
32784 s,@ECHO_T@,$ECHO_T,;t t
32785 s,@LIBS@,$LIBS,;t t
32786 s,@build@,$build,;t t
32787 s,@build_cpu@,$build_cpu,;t t
32788 s,@build_vendor@,$build_vendor,;t t
32789 s,@build_os@,$build_os,;t t
32790 s,@host@,$host,;t t
32791 s,@host_cpu@,$host_cpu,;t t
32792 s,@host_vendor@,$host_vendor,;t t
32793 s,@host_os@,$host_os,;t t
32794 s,@SET_MAKE@,$SET_MAKE,;t t
32795 s,@RANLIB@,$RANLIB,;t t
32796 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
32797 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
32798 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
32799 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
32800 s,@STD_CINCLUDES@,$STD_CINCLUDES,;t t
32801 s,@STD_CDEFINES@,$STD_CDEFINES,;t t
32802 s,@STD_CWARNINGS@,$STD_CWARNINGS,;t t
32803 s,@CCOPT@,$CCOPT,;t t
32804 s,@AR@,$AR,;t t
32805 s,@ARFLAGS@,$ARFLAGS,;t t
32806 s,@LN@,$LN,;t t
32807 s,@ETAGS@,$ETAGS,;t t
32808 s,@PERL@,$PERL,;t t
32809 s,@CC@,$CC,;t t
32810 s,@CFLAGS@,$CFLAGS,;t t
32811 s,@LDFLAGS@,$LDFLAGS,;t t
32812 s,@CPPFLAGS@,$CPPFLAGS,;t t
32813 s,@ac_ct_CC@,$ac_ct_CC,;t t
32814 s,@EXEEXT@,$EXEEXT,;t t
32815 s,@OBJEXT@,$OBJEXT,;t t
32816 s,@CPP@,$CPP,;t t
32817 s,@EGREP@,$EGREP,;t t
32818 s,@ISC_PLATFORM_NEEDSYSSELECTH@,$ISC_PLATFORM_NEEDSYSSELECTH,;t t
32819 s,@WANT_IRS_GR@,$WANT_IRS_GR,;t t
32820 s,@WANT_IRS_GR_OBJS@,$WANT_IRS_GR_OBJS,;t t
32821 s,@WANT_IRS_PW@,$WANT_IRS_PW,;t t
32822 s,@WANT_IRS_PW_OBJS@,$WANT_IRS_PW_OBJS,;t t
32823 s,@WANT_IRS_NIS@,$WANT_IRS_NIS,;t t
32824 s,@WANT_IRS_NIS_OBJS@,$WANT_IRS_NIS_OBJS,;t t
32825 s,@WANT_IRS_NISGR_OBJS@,$WANT_IRS_NISGR_OBJS,;t t
32826 s,@WANT_IRS_NISPW_OBJS@,$WANT_IRS_NISPW_OBJS,;t t
32827 s,@WANT_IRS_DBPW_OBJS@,$WANT_IRS_DBPW_OBJS,;t t
32828 s,@ALWAYS_DEFINES@,$ALWAYS_DEFINES,;t t
32829 s,@DO_PTHREADS@,$DO_PTHREADS,;t t
32830 s,@WANT_IRS_THREADSGR_OBJS@,$WANT_IRS_THREADSGR_OBJS,;t t
32831 s,@WANT_IRS_THREADSPW_OBJS@,$WANT_IRS_THREADSPW_OBJS,;t t
32832 s,@WANT_IRS_THREADS_OBJS@,$WANT_IRS_THREADS_OBJS,;t t
32833 s,@WANT_THREADS_OBJS@,$WANT_THREADS_OBJS,;t t
32834 s,@USE_IFNAMELINKID@,$USE_IFNAMELINKID,;t t
32835 s,@ISC_THREAD_DIR@,$ISC_THREAD_DIR,;t t
32836 s,@DAEMON_OBJS@,$DAEMON_OBJS,;t t
32837 s,@NEED_DAEMON@,$NEED_DAEMON,;t t
32838 s,@STRSEP_OBJS@,$STRSEP_OBJS,;t t
32839 s,@NEED_STRSEP@,$NEED_STRSEP,;t t
32840 s,@NEED_STRERROR@,$NEED_STRERROR,;t t
32841 s,@MKDEPCC@,$MKDEPCC,;t t
32842 s,@MKDEPCFLAGS@,$MKDEPCFLAGS,;t t
32843 s,@MKDEPPROG@,$MKDEPPROG,;t t
32844 s,@IRIX_DNSSEC_WARNINGS_HACK@,$IRIX_DNSSEC_WARNINGS_HACK,;t t
32845 s,@purify_path@,$purify_path,;t t
32846 s,@PURIFY@,$PURIFY,;t t
32847 s,@LN_S@,$LN_S,;t t
32848 s,@ECHO@,$ECHO,;t t
32849 s,@ac_ct_AR@,$ac_ct_AR,;t t
32850 s,@STRIP@,$STRIP,;t t
32851 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
32852 s,@CXX@,$CXX,;t t
32853 s,@CXXFLAGS@,$CXXFLAGS,;t t
32854 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
32855 s,@CXXCPP@,$CXXCPP,;t t
32856 s,@F77@,$F77,;t t
32857 s,@FFLAGS@,$FFLAGS,;t t
32858 s,@ac_ct_F77@,$ac_ct_F77,;t t
32859 s,@LIBTOOL@,$LIBTOOL,;t t
32860 s,@O@,$O,;t t
32861 s,@A@,$A,;t t
32862 s,@SA@,$SA,;t t
32863 s,@LIBTOOL_MKDEP_SED@,$LIBTOOL_MKDEP_SED,;t t
32864 s,@LIBTOOL_MODE_COMPILE@,$LIBTOOL_MODE_COMPILE,;t t
32865 s,@LIBTOOL_MODE_INSTALL@,$LIBTOOL_MODE_INSTALL,;t t
32866 s,@LIBTOOL_MODE_LINK@,$LIBTOOL_MODE_LINK,;t t
32867 s,@HAS_INET6_STRUCTS@,$HAS_INET6_STRUCTS,;t t
32868 s,@ISC_PLATFORM_NEEDNETINETIN6H@,$ISC_PLATFORM_NEEDNETINETIN6H,;t t
32869 s,@ISC_PLATFORM_NEEDNETINET6IN6H@,$ISC_PLATFORM_NEEDNETINET6IN6H,;t t
32870 s,@HAS_IN_ADDR6@,$HAS_IN_ADDR6,;t t
32871 s,@NEED_IN6ADDR_ANY@,$NEED_IN6ADDR_ANY,;t t
32872 s,@ISC_PLATFORM_HAVEIN6PKTINFO@,$ISC_PLATFORM_HAVEIN6PKTINFO,;t t
32873 s,@ISC_PLATFORM_FIXIN6ISADDR@,$ISC_PLATFORM_FIXIN6ISADDR,;t t
32874 s,@ISC_IPV6_H@,$ISC_IPV6_H,;t t
32875 s,@ISC_IPV6_O@,$ISC_IPV6_O,;t t
32876 s,@ISC_ISCIPV6_O@,$ISC_ISCIPV6_O,;t t
32877 s,@ISC_IPV6_C@,$ISC_IPV6_C,;t t
32878 s,@HAVE_SIN6_SCOPE_ID@,$HAVE_SIN6_SCOPE_ID,;t t
32879 s,@HAVE_SOCKADDR_STORAGE@,$HAVE_SOCKADDR_STORAGE,;t t
32880 s,@ISC_PLATFORM_NEEDNTOP@,$ISC_PLATFORM_NEEDNTOP,;t t
32881 s,@ISC_PLATFORM_NEEDPTON@,$ISC_PLATFORM_NEEDPTON,;t t
32882 s,@ISC_PLATFORM_NEEDATON@,$ISC_PLATFORM_NEEDATON,;t t
32883 s,@HAVE_SA_LEN@,$HAVE_SA_LEN,;t t
32884 s,@HAVE_MINIMUM_IFREQ@,$HAVE_MINIMUM_IFREQ,;t t
32885 s,@BSD_COMP@,$BSD_COMP,;t t
32886 s,@SOLARIS_BITTYPES@,$SOLARIS_BITTYPES,;t t
32887 s,@USE_FIONBIO_IOCTL@,$USE_FIONBIO_IOCTL,;t t
32888 s,@PORT_NONBLOCK@,$PORT_NONBLOCK,;t t
32889 s,@PORT_DIR@,$PORT_DIR,;t t
32890 s,@USE_POLL@,$USE_POLL,;t t
32891 s,@HAVE_MD5@,$HAVE_MD5,;t t
32892 s,@SOLARIS2@,$SOLARIS2,;t t
32893 s,@PORT_INCLUDE@,$PORT_INCLUDE,;t t
32894 s,@ISC_PLATFORM_MSGHDRFLAVOR@,$ISC_PLATFORM_MSGHDRFLAVOR,;t t
32895 s,@ISC_PLATFORM_NEEDPORTT@,$ISC_PLATFORM_NEEDPORTT,;t t
32896 s,@ISC_LWRES_ENDHOSTENTINT@,$ISC_LWRES_ENDHOSTENTINT,;t t
32897 s,@ISC_LWRES_SETNETENTINT@,$ISC_LWRES_SETNETENTINT,;t t
32898 s,@ISC_LWRES_ENDNETENTINT@,$ISC_LWRES_ENDNETENTINT,;t t
32899 s,@ISC_LWRES_GETHOSTBYADDRVOID@,$ISC_LWRES_GETHOSTBYADDRVOID,;t t
32900 s,@ISC_LWRES_NEEDHERRNO@,$ISC_LWRES_NEEDHERRNO,;t t
32901 s,@ISC_LWRES_GETIPNODEPROTO@,$ISC_LWRES_GETIPNODEPROTO,;t t
32902 s,@ISC_LWRES_GETADDRINFOPROTO@,$ISC_LWRES_GETADDRINFOPROTO,;t t
32903 s,@ISC_LWRES_GETNAMEINFOPROTO@,$ISC_LWRES_GETNAMEINFOPROTO,;t t
32904 s,@NEED_PSELECT@,$NEED_PSELECT,;t t
32905 s,@NEED_GETTIMEOFDAY@,$NEED_GETTIMEOFDAY,;t t
32906 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
32907 s,@ISC_PLATFORM_NEEDSTRSEP@,$ISC_PLATFORM_NEEDSTRSEP,;t t
32908 s,@ISC_PLATFORM_NEEDVSNPRINTF@,$ISC_PLATFORM_NEEDVSNPRINTF,;t t
32909 s,@ISC_EXTRA_OBJS@,$ISC_EXTRA_OBJS,;t t
32910 s,@ISC_EXTRA_SRCS@,$ISC_EXTRA_SRCS,;t t
32911 s,@USE_SYSERROR_LIST@,$USE_SYSERROR_LIST,;t t
32912 s,@ISC_PLATFORM_QUADFORMAT@,$ISC_PLATFORM_QUADFORMAT,;t t
32913 s,@ISC_SOCKLEN_T@,$ISC_SOCKLEN_T,;t t
32914 s,@GETGROUPLIST_ARGS@,$GETGROUPLIST_ARGS,;t t
32915 s,@NET_R_ARGS@,$NET_R_ARGS,;t t
32916 s,@NET_R_BAD@,$NET_R_BAD,;t t
32917 s,@NET_R_COPY@,$NET_R_COPY,;t t
32918 s,@NET_R_COPY_ARGS@,$NET_R_COPY_ARGS,;t t
32919 s,@NET_R_OK@,$NET_R_OK,;t t
32920 s,@NET_R_SETANSWER@,$NET_R_SETANSWER,;t t
32921 s,@NET_R_RETURN@,$NET_R_RETURN,;t t
32922 s,@GETNETBYADDR_ADDR_T@,$GETNETBYADDR_ADDR_T,;t t
32923 s,@NETENT_DATA@,$NETENT_DATA,;t t
32924 s,@NET_R_ENT_ARGS@,$NET_R_ENT_ARGS,;t t
32925 s,@NET_R_SET_RESULT@,$NET_R_SET_RESULT,;t t
32926 s,@NET_R_SET_RETURN@,$NET_R_SET_RETURN,;t t
32927 s,@NET_R_END_RESULT@,$NET_R_END_RESULT,;t t
32928 s,@NET_R_END_RETURN@,$NET_R_END_RETURN,;t t
32929 s,@GROUP_R_ARGS@,$GROUP_R_ARGS,;t t
32930 s,@GROUP_R_BAD@,$GROUP_R_BAD,;t t
32931 s,@GROUP_R_OK@,$GROUP_R_OK,;t t
32932 s,@GROUP_R_RETURN@,$GROUP_R_RETURN,;t t
32933 s,@GROUP_R_END_RESULT@,$GROUP_R_END_RESULT,;t t
32934 s,@GROUP_R_END_RETURN@,$GROUP_R_END_RETURN,;t t
32935 s,@GROUP_R_ENT_ARGS@,$GROUP_R_ENT_ARGS,;t t
32936 s,@GROUP_R_SET_RESULT@,$GROUP_R_SET_RESULT,;t t
32937 s,@GROUP_R_SET_RETURN@,$GROUP_R_SET_RETURN,;t t
32938 s,@HOST_R_ARGS@,$HOST_R_ARGS,;t t
32939 s,@HOST_R_BAD@,$HOST_R_BAD,;t t
32940 s,@HOST_R_COPY@,$HOST_R_COPY,;t t
32941 s,@HOST_R_COPY_ARGS@,$HOST_R_COPY_ARGS,;t t
32942 s,@HOST_R_ERRNO@,$HOST_R_ERRNO,;t t
32943 s,@HOST_R_OK@,$HOST_R_OK,;t t
32944 s,@HOST_R_RETURN@,$HOST_R_RETURN,;t t
32945 s,@HOST_R_SETANSWER@,$HOST_R_SETANSWER,;t t
32946 s,@HOSTENT_DATA@,$HOSTENT_DATA,;t t
32947 s,@HOST_R_END_RESULT@,$HOST_R_END_RESULT,;t t
32948 s,@HOST_R_END_RETURN@,$HOST_R_END_RETURN,;t t
32949 s,@HOST_R_ENT_ARGS@,$HOST_R_ENT_ARGS,;t t
32950 s,@HOST_R_SET_RESULT@,$HOST_R_SET_RESULT,;t t
32951 s,@HOST_R_SET_RETURN@,$HOST_R_SET_RETURN,;t t
32952 s,@SETPWENT_VOID@,$SETPWENT_VOID,;t t
32953 s,@SETGRENT_VOID@,$SETGRENT_VOID,;t t
32954 s,@NGR_R_ARGS@,$NGR_R_ARGS,;t t
32955 s,@NGR_R_BAD@,$NGR_R_BAD,;t t
32956 s,@NGR_R_COPY@,$NGR_R_COPY,;t t
32957 s,@NGR_R_COPY_ARGS@,$NGR_R_COPY_ARGS,;t t
32958 s,@NGR_R_OK@,$NGR_R_OK,;t t
32959 s,@NGR_R_RETURN@,$NGR_R_RETURN,;t t
32960 s,@NGR_R_PRIVATE@,$NGR_R_PRIVATE,;t t
32961 s,@NGR_R_END_RESULT@,$NGR_R_END_RESULT,;t t
32962 s,@NGR_R_END_RETURN@,$NGR_R_END_RETURN,;t t
32963 s,@NGR_R_ENT_ARGS@,$NGR_R_ENT_ARGS,;t t
32964 s,@NGR_R_SET_RESULT@,$NGR_R_SET_RESULT,;t t
32965 s,@NGR_R_SET_RETURN@,$NGR_R_SET_RETURN,;t t
32966 s,@PROTO_R_ARGS@,$PROTO_R_ARGS,;t t
32967 s,@PROTO_R_BAD@,$PROTO_R_BAD,;t t
32968 s,@PROTO_R_COPY@,$PROTO_R_COPY,;t t
32969 s,@PROTO_R_COPY_ARGS@,$PROTO_R_COPY_ARGS,;t t
32970 s,@PROTO_R_OK@,$PROTO_R_OK,;t t
32971 s,@PROTO_R_SETANSWER@,$PROTO_R_SETANSWER,;t t
32972 s,@PROTO_R_RETURN@,$PROTO_R_RETURN,;t t
32973 s,@PROTOENT_DATA@,$PROTOENT_DATA,;t t
32974 s,@PROTO_R_END_RESULT@,$PROTO_R_END_RESULT,;t t
32975 s,@PROTO_R_END_RETURN@,$PROTO_R_END_RETURN,;t t
32976 s,@PROTO_R_ENT_ARGS@,$PROTO_R_ENT_ARGS,;t t
32977 s,@PROTO_R_ENT_UNUSED@,$PROTO_R_ENT_UNUSED,;t t
32978 s,@PROTO_R_SET_RESULT@,$PROTO_R_SET_RESULT,;t t
32979 s,@PROTO_R_SET_RETURN@,$PROTO_R_SET_RETURN,;t t
32980 s,@PASS_R_ARGS@,$PASS_R_ARGS,;t t
32981 s,@PASS_R_BAD@,$PASS_R_BAD,;t t
32982 s,@PASS_R_COPY@,$PASS_R_COPY,;t t
32983 s,@PASS_R_COPY_ARGS@,$PASS_R_COPY_ARGS,;t t
32984 s,@PASS_R_OK@,$PASS_R_OK,;t t
32985 s,@PASS_R_RETURN@,$PASS_R_RETURN,;t t
32986 s,@PASS_R_END_RESULT@,$PASS_R_END_RESULT,;t t
32987 s,@PASS_R_END_RETURN@,$PASS_R_END_RETURN,;t t
32988 s,@PASS_R_ENT_ARGS@,$PASS_R_ENT_ARGS,;t t
32989 s,@PASS_R_SET_RESULT@,$PASS_R_SET_RESULT,;t t
32990 s,@PASS_R_SET_RETURN@,$PASS_R_SET_RETURN,;t t
32991 s,@SERV_R_ARGS@,$SERV_R_ARGS,;t t
32992 s,@SERV_R_BAD@,$SERV_R_BAD,;t t
32993 s,@SERV_R_COPY@,$SERV_R_COPY,;t t
32994 s,@SERV_R_COPY_ARGS@,$SERV_R_COPY_ARGS,;t t
32995 s,@SERV_R_OK@,$SERV_R_OK,;t t
32996 s,@SERV_R_SETANSWER@,$SERV_R_SETANSWER,;t t
32997 s,@SERV_R_RETURN@,$SERV_R_RETURN,;t t
32998 s,@SERVENT_DATA@,$SERVENT_DATA,;t t
32999 s,@SERV_R_END_RESULT@,$SERV_R_END_RESULT,;t t
33000 s,@SERV_R_END_RETURN@,$SERV_R_END_RETURN,;t t
33001 s,@SERV_R_ENT_ARGS@,$SERV_R_ENT_ARGS,;t t
33002 s,@SERV_R_ENT_UNUSED@,$SERV_R_ENT_UNUSED,;t t
33003 s,@SERV_R_SET_RESULT@,$SERV_R_SET_RESULT,;t t
33004 s,@SERV_R_SET_RETURN@,$SERV_R_SET_RETURN,;t t
33005 s,@SETNETGRENT_ARGS@,$SETNETGRENT_ARGS,;t t
33006 s,@INNETGR_ARGS@,$INNETGR_ARGS,;t t
33007 s,@BIND9_TOP_BUILDDIR@,$BIND9_TOP_BUILDDIR,;t t
33008 s,@BIND9_VERSION@,$BIND9_VERSION,;t t
33009 s,@LIBOBJS@,$LIBOBJS,;t t
33010 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
33011 /@BIND9_INCLUDES@/r $BIND9_INCLUDES
33012 s,@BIND9_INCLUDES@,,;t t
33013 /@BIND9_MAKE_RULES@/r $BIND9_MAKE_RULES
33014 s,@BIND9_MAKE_RULES@,,;t t
33015 /@LIBBIND_API@/r $LIBBIND_API
33016 s,@LIBBIND_API@,,;t t
33017 CEOF
33018
33019 _ACEOF
33020
33021   cat >>$CONFIG_STATUS <<\_ACEOF
33022   # Split the substitutions into bite-sized pieces for seds with
33023   # small command number limits, like on Digital OSF/1 and HP-UX.
33024   ac_max_sed_lines=48
33025   ac_sed_frag=1 # Number of current file.
33026   ac_beg=1 # First line for current file.
33027   ac_end=$ac_max_sed_lines # Line after last line for current file.
33028   ac_more_lines=:
33029   ac_sed_cmds=
33030   while $ac_more_lines; do
33031     if test $ac_beg -gt 1; then
33032       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
33033     else
33034       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
33035     fi
33036     if test ! -s $tmp/subs.frag; then
33037       ac_more_lines=false
33038     else
33039       # The purpose of the label and of the branching condition is to
33040       # speed up the sed processing (if there are no `@' at all, there
33041       # is no need to browse any of the substitutions).
33042       # These are the two extra sed commands mentioned above.
33043       (echo ':t
33044   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
33045       if test -z "$ac_sed_cmds"; then
33046         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
33047       else
33048         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
33049       fi
33050       ac_sed_frag=`expr $ac_sed_frag + 1`
33051       ac_beg=$ac_end
33052       ac_end=`expr $ac_end + $ac_max_sed_lines`
33053     fi
33054   done
33055   if test -z "$ac_sed_cmds"; then
33056     ac_sed_cmds=cat
33057   fi
33058 fi # test -n "$CONFIG_FILES"
33059
33060 _ACEOF
33061 cat >>$CONFIG_STATUS <<\_ACEOF
33062 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
33063   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
33064   case $ac_file in
33065   - | *:- | *:-:* ) # input from stdin
33066         cat >$tmp/stdin
33067         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33068         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33069   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33070         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33071   * )   ac_file_in=$ac_file.in ;;
33072   esac
33073
33074   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
33075   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
33076 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33077          X"$ac_file" : 'X\(//\)[^/]' \| \
33078          X"$ac_file" : 'X\(//\)$' \| \
33079          X"$ac_file" : 'X\(/\)' \| \
33080          .     : '\(.\)' 2>/dev/null ||
33081 echo X"$ac_file" |
33082     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33083           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33084           /^X\(\/\/\)$/{ s//\1/; q; }
33085           /^X\(\/\).*/{ s//\1/; q; }
33086           s/.*/./; q'`
33087   { if $as_mkdir_p; then
33088     mkdir -p "$ac_dir"
33089   else
33090     as_dir="$ac_dir"
33091     as_dirs=
33092     while test ! -d "$as_dir"; do
33093       as_dirs="$as_dir $as_dirs"
33094       as_dir=`(dirname "$as_dir") 2>/dev/null ||
33095 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33096          X"$as_dir" : 'X\(//\)[^/]' \| \
33097          X"$as_dir" : 'X\(//\)$' \| \
33098          X"$as_dir" : 'X\(/\)' \| \
33099          .     : '\(.\)' 2>/dev/null ||
33100 echo X"$as_dir" |
33101     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33102           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33103           /^X\(\/\/\)$/{ s//\1/; q; }
33104           /^X\(\/\).*/{ s//\1/; q; }
33105           s/.*/./; q'`
33106     done
33107     test ! -n "$as_dirs" || mkdir $as_dirs
33108   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33109 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33110    { (exit 1); exit 1; }; }; }
33111
33112   ac_builddir=.
33113
33114 if test "$ac_dir" != .; then
33115   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33116   # A "../" for each directory in $ac_dir_suffix.
33117   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
33118 else
33119   ac_dir_suffix= ac_top_builddir=
33120 fi
33121
33122 case $srcdir in
33123   .)  # No --srcdir option.  We are building in place.
33124     ac_srcdir=.
33125     if test -z "$ac_top_builddir"; then
33126        ac_top_srcdir=.
33127     else
33128        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
33129     fi ;;
33130   [\\/]* | ?:[\\/]* )  # Absolute path.
33131     ac_srcdir=$srcdir$ac_dir_suffix;
33132     ac_top_srcdir=$srcdir ;;
33133   *) # Relative path.
33134     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
33135     ac_top_srcdir=$ac_top_builddir$srcdir ;;
33136 esac
33137
33138 # Do not use `cd foo && pwd` to compute absolute paths, because
33139 # the directories may not exist.
33140 case `pwd` in
33141 .) ac_abs_builddir="$ac_dir";;
33142 *)
33143   case "$ac_dir" in
33144   .) ac_abs_builddir=`pwd`;;
33145   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
33146   *) ac_abs_builddir=`pwd`/"$ac_dir";;
33147   esac;;
33148 esac
33149 case $ac_abs_builddir in
33150 .) ac_abs_top_builddir=${ac_top_builddir}.;;
33151 *)
33152   case ${ac_top_builddir}. in
33153   .) ac_abs_top_builddir=$ac_abs_builddir;;
33154   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
33155   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
33156   esac;;
33157 esac
33158 case $ac_abs_builddir in
33159 .) ac_abs_srcdir=$ac_srcdir;;
33160 *)
33161   case $ac_srcdir in
33162   .) ac_abs_srcdir=$ac_abs_builddir;;
33163   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
33164   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
33165   esac;;
33166 esac
33167 case $ac_abs_builddir in
33168 .) ac_abs_top_srcdir=$ac_top_srcdir;;
33169 *)
33170   case $ac_top_srcdir in
33171   .) ac_abs_top_srcdir=$ac_abs_builddir;;
33172   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
33173   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
33174   esac;;
33175 esac
33176
33177
33178   case $INSTALL in
33179   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33180   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
33181   esac
33182
33183   if test x"$ac_file" != x-; then
33184     { echo "$as_me:$LINENO: creating $ac_file" >&5
33185 echo "$as_me: creating $ac_file" >&6;}
33186     rm -f "$ac_file"
33187   fi
33188   # Let's still pretend it is `configure' which instantiates (i.e., don't
33189   # use $as_me), people would be surprised to read:
33190   #    /* config.h.  Generated by config.status.  */
33191   if test x"$ac_file" = x-; then
33192     configure_input=
33193   else
33194     configure_input="$ac_file.  "
33195   fi
33196   configure_input=$configure_input"Generated from `echo $ac_file_in |
33197                                      sed 's,.*/,,'` by configure."
33198
33199   # First look for the input files in the build tree, otherwise in the
33200   # src tree.
33201   ac_file_inputs=`IFS=:
33202     for f in $ac_file_in; do
33203       case $f in
33204       -) echo $tmp/stdin ;;
33205       [\\/$]*)
33206          # Absolute (can't be DOS-style, as IFS=:)
33207          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33208 echo "$as_me: error: cannot find input file: $f" >&2;}
33209    { (exit 1); exit 1; }; }
33210          echo "$f";;
33211       *) # Relative
33212          if test -f "$f"; then
33213            # Build tree
33214            echo "$f"
33215          elif test -f "$srcdir/$f"; then
33216            # Source tree
33217            echo "$srcdir/$f"
33218          else
33219            # /dev/null tree
33220            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33221 echo "$as_me: error: cannot find input file: $f" >&2;}
33222    { (exit 1); exit 1; }; }
33223          fi;;
33224       esac
33225     done` || { (exit 1); exit 1; }
33226 _ACEOF
33227 cat >>$CONFIG_STATUS <<_ACEOF
33228   sed "$ac_vpsub
33229 $extrasub
33230 _ACEOF
33231 cat >>$CONFIG_STATUS <<\_ACEOF
33232 :t
33233 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33234 s,@configure_input@,$configure_input,;t t
33235 s,@srcdir@,$ac_srcdir,;t t
33236 s,@abs_srcdir@,$ac_abs_srcdir,;t t
33237 s,@top_srcdir@,$ac_top_srcdir,;t t
33238 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
33239 s,@builddir@,$ac_builddir,;t t
33240 s,@abs_builddir@,$ac_abs_builddir,;t t
33241 s,@top_builddir@,$ac_top_builddir,;t t
33242 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
33243 s,@INSTALL@,$ac_INSTALL,;t t
33244 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
33245   rm -f $tmp/stdin
33246   if test x"$ac_file" != x-; then
33247     mv $tmp/out $ac_file
33248   else
33249     cat $tmp/out
33250     rm -f $tmp/out
33251   fi
33252
33253 done
33254 _ACEOF
33255 cat >>$CONFIG_STATUS <<\_ACEOF
33256
33257 #
33258 # CONFIG_HEADER section.
33259 #
33260
33261 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
33262 # NAME is the cpp macro being defined and VALUE is the value it is being given.
33263 #
33264 # ac_d sets the value in "#define NAME VALUE" lines.
33265 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
33266 ac_dB='[         ].*$,\1#\2'
33267 ac_dC=' '
33268 ac_dD=',;t'
33269 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
33270 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
33271 ac_uB='$,\1#\2define\3'
33272 ac_uC=' '
33273 ac_uD=',;t'
33274
33275 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
33276   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
33277   case $ac_file in
33278   - | *:- | *:-:* ) # input from stdin
33279         cat >$tmp/stdin
33280         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33281         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33282   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33283         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33284   * )   ac_file_in=$ac_file.in ;;
33285   esac
33286
33287   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
33288 echo "$as_me: creating $ac_file" >&6;}
33289
33290   # First look for the input files in the build tree, otherwise in the
33291   # src tree.
33292   ac_file_inputs=`IFS=:
33293     for f in $ac_file_in; do
33294       case $f in
33295       -) echo $tmp/stdin ;;
33296       [\\/$]*)
33297          # Absolute (can't be DOS-style, as IFS=:)
33298          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33299 echo "$as_me: error: cannot find input file: $f" >&2;}
33300    { (exit 1); exit 1; }; }
33301          # Do quote $f, to prevent DOS paths from being IFS'd.
33302          echo "$f";;
33303       *) # Relative
33304          if test -f "$f"; then
33305            # Build tree
33306            echo "$f"
33307          elif test -f "$srcdir/$f"; then
33308            # Source tree
33309            echo "$srcdir/$f"
33310          else
33311            # /dev/null tree
33312            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33313 echo "$as_me: error: cannot find input file: $f" >&2;}
33314    { (exit 1); exit 1; }; }
33315          fi;;
33316       esac
33317     done` || { (exit 1); exit 1; }
33318   # Remove the trailing spaces.
33319   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
33320
33321 _ACEOF
33322
33323 # Transform confdefs.h into two sed scripts, `conftest.defines' and
33324 # `conftest.undefs', that substitutes the proper values into
33325 # config.h.in to produce config.h.  The first handles `#define'
33326 # templates, and the second `#undef' templates.
33327 # And first: Protect against being on the right side of a sed subst in
33328 # config.status.  Protect against being in an unquoted here document
33329 # in config.status.
33330 rm -f conftest.defines conftest.undefs
33331 # Using a here document instead of a string reduces the quoting nightmare.
33332 # Putting comments in sed scripts is not portable.
33333 #
33334 # `end' is used to avoid that the second main sed command (meant for
33335 # 0-ary CPP macros) applies to n-ary macro definitions.
33336 # See the Autoconf documentation for `clear'.
33337 cat >confdef2sed.sed <<\_ACEOF
33338 s/[\\&,]/\\&/g
33339 s,[\\$`],\\&,g
33340 t clear
33341 : clear
33342 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
33343 t end
33344 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
33345 : end
33346 _ACEOF
33347 # If some macros were called several times there might be several times
33348 # the same #defines, which is useless.  Nevertheless, we may not want to
33349 # sort them, since we want the *last* AC-DEFINE to be honored.
33350 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
33351 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
33352 rm -f confdef2sed.sed
33353
33354 # This sed command replaces #undef with comments.  This is necessary, for
33355 # example, in the case of _POSIX_SOURCE, which is predefined and required
33356 # on some systems where configure will not decide to define it.
33357 cat >>conftest.undefs <<\_ACEOF
33358 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
33359 _ACEOF
33360
33361 # Break up conftest.defines because some shells have a limit on the size
33362 # of here documents, and old seds have small limits too (100 cmds).
33363 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
33364 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
33365 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
33366 echo '  :' >>$CONFIG_STATUS
33367 rm -f conftest.tail
33368 while grep . conftest.defines >/dev/null
33369 do
33370   # Write a limited-size here document to $tmp/defines.sed.
33371   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
33372   # Speed up: don't consider the non `#define' lines.
33373   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
33374   # Work around the forget-to-reset-the-flag bug.
33375   echo 't clr' >>$CONFIG_STATUS
33376   echo ': clr' >>$CONFIG_STATUS
33377   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
33378   echo 'CEOF
33379   sed -f $tmp/defines.sed $tmp/in >$tmp/out
33380   rm -f $tmp/in
33381   mv $tmp/out $tmp/in
33382 ' >>$CONFIG_STATUS
33383   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
33384   rm -f conftest.defines
33385   mv conftest.tail conftest.defines
33386 done
33387 rm -f conftest.defines
33388 echo '  fi # grep' >>$CONFIG_STATUS
33389 echo >>$CONFIG_STATUS
33390
33391 # Break up conftest.undefs because some shells have a limit on the size
33392 # of here documents, and old seds have small limits too (100 cmds).
33393 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
33394 rm -f conftest.tail
33395 while grep . conftest.undefs >/dev/null
33396 do
33397   # Write a limited-size here document to $tmp/undefs.sed.
33398   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
33399   # Speed up: don't consider the non `#undef'
33400   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
33401   # Work around the forget-to-reset-the-flag bug.
33402   echo 't clr' >>$CONFIG_STATUS
33403   echo ': clr' >>$CONFIG_STATUS
33404   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
33405   echo 'CEOF
33406   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
33407   rm -f $tmp/in
33408   mv $tmp/out $tmp/in
33409 ' >>$CONFIG_STATUS
33410   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
33411   rm -f conftest.undefs
33412   mv conftest.tail conftest.undefs
33413 done
33414 rm -f conftest.undefs
33415
33416 cat >>$CONFIG_STATUS <<\_ACEOF
33417   # Let's still pretend it is `configure' which instantiates (i.e., don't
33418   # use $as_me), people would be surprised to read:
33419   #    /* config.h.  Generated by config.status.  */
33420   if test x"$ac_file" = x-; then
33421     echo "/* Generated by configure.  */" >$tmp/config.h
33422   else
33423     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
33424   fi
33425   cat $tmp/in >>$tmp/config.h
33426   rm -f $tmp/in
33427   if test x"$ac_file" != x-; then
33428     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
33429       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33430 echo "$as_me: $ac_file is unchanged" >&6;}
33431     else
33432       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
33433 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33434          X"$ac_file" : 'X\(//\)[^/]' \| \
33435          X"$ac_file" : 'X\(//\)$' \| \
33436          X"$ac_file" : 'X\(/\)' \| \
33437          .     : '\(.\)' 2>/dev/null ||
33438 echo X"$ac_file" |
33439     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33440           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33441           /^X\(\/\/\)$/{ s//\1/; q; }
33442           /^X\(\/\).*/{ s//\1/; q; }
33443           s/.*/./; q'`
33444       { if $as_mkdir_p; then
33445     mkdir -p "$ac_dir"
33446   else
33447     as_dir="$ac_dir"
33448     as_dirs=
33449     while test ! -d "$as_dir"; do
33450       as_dirs="$as_dir $as_dirs"
33451       as_dir=`(dirname "$as_dir") 2>/dev/null ||
33452 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33453          X"$as_dir" : 'X\(//\)[^/]' \| \
33454          X"$as_dir" : 'X\(//\)$' \| \
33455          X"$as_dir" : 'X\(/\)' \| \
33456          .     : '\(.\)' 2>/dev/null ||
33457 echo X"$as_dir" |
33458     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33459           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33460           /^X\(\/\/\)$/{ s//\1/; q; }
33461           /^X\(\/\).*/{ s//\1/; q; }
33462           s/.*/./; q'`
33463     done
33464     test ! -n "$as_dirs" || mkdir $as_dirs
33465   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33466 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33467    { (exit 1); exit 1; }; }; }
33468
33469       rm -f $ac_file
33470       mv $tmp/config.h $ac_file
33471     fi
33472   else
33473     cat $tmp/config.h
33474     rm -f $tmp/config.h
33475   fi
33476 done
33477 _ACEOF
33478
33479 cat >>$CONFIG_STATUS <<\_ACEOF
33480
33481 { (exit 0); exit 0; }
33482 _ACEOF
33483 chmod +x $CONFIG_STATUS
33484 ac_clean_files=$ac_clean_files_save
33485
33486
33487 # configure is writing to config.log, and then calls config.status.
33488 # config.status does its own redirection, appending to config.log.
33489 # Unfortunately, on DOS this fails, as config.log is still kept open
33490 # by configure, so config.status won't be able to write to it; its
33491 # output is simply discarded.  So we exec the FD to /dev/null,
33492 # effectively closing config.log, so it can be properly (re)opened and
33493 # appended to by config.status.  When coming back to configure, we
33494 # need to make the FD available again.
33495 if test "$no_create" != yes; then
33496   ac_cs_success=:
33497   ac_config_status_args=
33498   test "$silent" = yes &&
33499     ac_config_status_args="$ac_config_status_args --quiet"
33500   exec 5>/dev/null
33501   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33502   exec 5>>config.log
33503   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33504   # would make configure fail if this is the last instruction.
33505   $ac_cs_success || { (exit 1); exit 1; }
33506 fi
33507
33508
33509 # Tell Emacs to edit this file in shell mode.
33510 # Local Variables:
33511 # mode: sh
33512 # End: