chiark / gitweb /
WIP, before change sm timeout machinery to count down and general counter
[inn-innduct.git] / configure
1 #! /bin/sh
2
3 # From configure.in Revision: 7466 
4 # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
5 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001
6 ## Free Software Foundation, Inc.
7 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8 ##
9 ## This program is free software; you can redistribute it and/or modify
10 ## it under the terms of the GNU General Public License as published by
11 ## the Free Software Foundation; either version 2 of the License, or
12 ## (at your option) any later version.
13 ##
14 ## This program is distributed in the hope that it will be useful, but
15 ## WITHOUT ANY WARRANTY; without even the implied warranty of
16 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 ## General Public License for more details.
18 ##
19 ## You should have received a copy of the GNU General Public License
20 ## along with this program; if not, write to the Free Software
21 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 ##
23 ## As a special exception to the GNU General Public License, if you
24 ## distribute this file as part of a program that contains a
25 ## configuration script generated by Autoconf, you may include it under
26 ## the same distribution terms that you use for the rest of that program.
27
28 # serial 46 AC_PROG_LIBTOOL
29
30
31
32
33
34 # AC_LIBTOOL_HEADER_ASSERT
35 # ------------------------
36 # AC_LIBTOOL_HEADER_ASSERT
37
38 # _LT_AC_CHECK_DLFCN
39 # --------------------
40 # _LT_AC_CHECK_DLFCN
41
42 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
43 # ---------------------------------
44  # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
45
46 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
47 # ---------------------------------
48 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
49
50 # _LT_AC_PROG_ECHO_BACKSLASH
51 # --------------------------
52 # Add some code to the start of the generated configure script which
53 # will find an echo command which doesn't interpret backslashes.
54 # _LT_AC_PROG_ECHO_BACKSLASH
55
56 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
57 #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
58 # ------------------------------------------------------------------
59 # _LT_AC_TRY_DLOPEN_SELF
60
61 # AC_LIBTOOL_DLOPEN_SELF
62 # -------------------
63 # AC_LIBTOOL_DLOPEN_SELF
64
65 # _LT_AC_LTCONFIG_HACK
66
67 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
68
69
70 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
71
72
73 # AC_ENABLE_SHARED - implement the --enable-shared flag
74 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
75 #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
76 #   `yes'.
77
78
79 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
80
81
82 # AC_ENABLE_STATIC - implement the --enable-static flag
83 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
84 #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
85 #   `yes'.
86
87
88 # AC_DISABLE_STATIC - set the default static flag to --disable-static
89
90
91
92 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
93 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
94 #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
95 #   `yes'.
96
97
98 # AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
99
100
101 # AC_LIBTOOL_PICMODE - implement the --with-pic flag
102 # Usage: AC_LIBTOOL_PICMODE[(MODE)]
103 #   Where MODE is either `yes' or `no'.  If omitted, it defaults to
104 #   `both'.
105
106
107
108 # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
109
110
111
112 # AC_PATH_MAGIC - find a file program which can recognise a shared library
113
114
115
116 # AC_PROG_LD - find the path to the GNU or non-GNU linker
117
118
119 # AC_PROG_LD_GNU -
120
121
122 # AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
123 #   -- PORTME Some linkers may need a different reload flag.
124
125
126 # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
127 #  -- PORTME fill in with the dynamic library characteristics
128
129
130
131 # AC_PROG_NM - find the path to a BSD-compatible name lister
132
133
134 # AC_CHECK_LIBM - check for math library
135
136
137 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
138 # the libltdl convenience library and INCLTDL to the include flags for
139 # the libltdl header and adds --enable-ltdl-convenience to the
140 # configure arguments.  Note that LIBLTDL and INCLTDL are not
141 # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not
142 # provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed
143 # with '${top_builddir}/' and INCLTDL will be prefixed with
144 # '${top_srcdir}/' (note the single quotes!).  If your package is not
145 # flat and you're not using automake, define top_builddir and
146 # top_srcdir appropriately in the Makefiles.
147
148
149 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
150 # the libltdl installable library and INCLTDL to the include flags for
151 # the libltdl header and adds --enable-ltdl-install to the configure
152 # arguments.  Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
153 # AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed
154 # libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will
155 # be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
156 # with '${top_srcdir}/' (note the single quotes!).  If your package is
157 # not flat and you're not using automake, define top_builddir and
158 # top_srcdir appropriately in the Makefiles.
159 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
160
161
162 # old names
163
164
165
166
167
168
169
170
171 # This is just to silence aclocal about the macro not being used
172
173 # Guess values for system-dependent variables and create Makefiles.
174 # Generated automatically using autoconf version 2.13 
175 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
176 #
177 # This configure script is free software; the Free Software Foundation
178 # gives unlimited permission to copy, distribute and modify it.
179
180 # Defaults:
181 ac_help=
182 ac_default_prefix=/usr/local
183 # Any additions from configure.in:
184 ac_default_prefix=/usr/local/news
185 ac_help="$ac_help
186   --enable-libtool        Use libtool for lib generation [default=no]"
187 ac_help="$ac_help
188   --enable-shared[=PKGS]  build shared libraries [default=yes]"
189 ac_help="$ac_help
190   --enable-static[=PKGS]  build static libraries [default=yes]"
191 ac_help="$ac_help
192   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
193 ac_help="$ac_help
194   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
195
196 # Find the correct PATH separator.  Usually this is `:', but
197 # DJGPP uses `;' like DOS.
198 if test "X${PATH_SEPARATOR+set}" != Xset; then
199   UNAME=${UNAME-`uname 2>/dev/null`}
200   case X$UNAME in
201     *-DOS) lt_cv_sys_path_separator=';' ;;
202     *)     lt_cv_sys_path_separator=':' ;;
203   esac
204   PATH_SEPARATOR=$lt_cv_sys_path_separator
205 fi
206
207
208 # Check that we are running under the correct shell.
209 SHELL=${CONFIG_SHELL-/bin/sh}
210
211 case X$ECHO in
212 X*--fallback-echo)
213   # Remove one level of quotation (which was required for Make).
214   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
215   ;;
216 esac
217
218 echo=${ECHO-echo}
219 if test "X$1" = X--no-reexec; then
220   # Discard the --no-reexec flag, and continue.
221   shift
222 elif test "X$1" = X--fallback-echo; then
223   # Avoid inline document here, it may be left over
224   :
225 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
226   # Yippee, $echo works!
227   :
228 else
229   # Restart under the correct shell.
230   exec $SHELL "$0" --no-reexec ${1+"$@"}
231 fi
232
233 if test "X$1" = X--fallback-echo; then
234   # used as fallback echo
235   shift
236   cat <<EOF
237
238 EOF
239   exit 0
240 fi
241
242 # The HP-UX ksh and POSIX shell print the target directory to stdout
243 # if CDPATH is set.
244 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
245
246 if test -z "$ECHO"; then
247 if test "X${echo_test_string+set}" != Xset; then
248 # find a string as large as possible, as long as the shell can cope with it
249   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
250     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
251     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
252        echo_test_string="`eval $cmd`" &&
253        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
254     then
255       break
256     fi
257   done
258 fi
259
260 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
261    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
262    test "X$echo_testing_string" = "X$echo_test_string"; then
263   :
264 else
265   # The Solaris, AIX, and Digital Unix default echo programs unquote
266   # backslashes.  This makes it impossible to quote backslashes using
267   #   echo "$something" | sed 's/\\/\\\\/g'
268   #
269   # So, first we look for a working echo in the user's PATH.
270
271   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
272   for dir in $PATH /usr/ucb; do
273     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
274        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
275        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
276        test "X$echo_testing_string" = "X$echo_test_string"; then
277       echo="$dir/echo"
278       break
279     fi
280   done
281   IFS="$save_ifs"
282
283   if test "X$echo" = Xecho; then
284     # We didn't find a better echo, so look for alternatives.
285     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
286        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
287        test "X$echo_testing_string" = "X$echo_test_string"; then
288       # This shell has a builtin print -r that does the trick.
289       echo='print -r'
290     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
291          test "X$CONFIG_SHELL" != X/bin/ksh; then
292       # If we have ksh, try running configure again with it.
293       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
294       export ORIGINAL_CONFIG_SHELL
295       CONFIG_SHELL=/bin/ksh
296       export CONFIG_SHELL
297       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
298     else
299       # Try using printf.
300       echo='printf %s\n'
301       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303          test "X$echo_testing_string" = "X$echo_test_string"; then
304         # Cool, printf works
305         :
306       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
307            test "X$echo_testing_string" = 'X\t' &&
308            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
309            test "X$echo_testing_string" = "X$echo_test_string"; then
310         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
311         export CONFIG_SHELL
312         SHELL="$CONFIG_SHELL"
313         export SHELL
314         echo="$CONFIG_SHELL $0 --fallback-echo"
315       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
316            test "X$echo_testing_string" = 'X\t' &&
317            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
318            test "X$echo_testing_string" = "X$echo_test_string"; then
319         echo="$CONFIG_SHELL $0 --fallback-echo"
320       else
321         # maybe with a smaller string...
322         prev=:
323
324         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
325           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
326           then
327             break
328           fi
329           prev="$cmd"
330         done
331
332         if test "$prev" != 'sed 50q "$0"'; then
333           echo_test_string=`eval $prev`
334           export echo_test_string
335           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
336         else
337           # Oops.  We lost completely, so just stick with echo.
338           echo=echo
339         fi
340       fi
341     fi
342   fi
343 fi
344 fi
345
346 # Copy echo and quote the copy suitably for passing to libtool from
347 # the Makefile, instead of quoting the original, which is used later.
348 ECHO=$echo
349 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
350    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
351 fi
352
353
354 ac_help="$ac_help
355   --disable-libtool-lock  avoid locking (might break parallel builds)"
356 ac_help="$ac_help
357   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
358 ac_help="$ac_help
359   --with-control-dir=PATH Path for control programs [PREFIX/bin/control]"
360 ac_help="$ac_help
361   --with-db-dir=PATH      Path for news database files [PREFIX/db]"
362 ac_help="$ac_help
363   --with-doc-dir=PATH     Path for news documentation [PREFIX/doc]"
364 ac_help="$ac_help
365   --with-etc-dir=PATH     Path for news config files [PREFIX/etc]"
366 ac_help="$ac_help
367   --with-filter-dir=PATH  Path for embedded filters [PREFIX/bin/filter]"
368 ac_help="$ac_help
369   --with-lib-dir=PATH     Path for news library files [PREFIX/lib]"
370 ac_help="$ac_help
371   --with-log-dir=PATH     Path for news logs [PREFIX/log]"
372 ac_help="$ac_help
373   --with-run-dir=PATH     Path for news PID/runtime files [PREFIX/run]"
374 ac_help="$ac_help
375   --with-spool-dir=PATH   Path for news storage [PREFIX/spool]"
376 ac_help="$ac_help
377   --with-tmp-dir=PATH     Path for temporary files [PREFIX/tmp]"
378 ac_help="$ac_help
379   --with-syslog-facility=LOG_FAC  Syslog facility [LOG_NEWS or LOG_LOCAL1]"
380 ac_help="$ac_help
381   --with-news-user=USER   News user name [news]"
382 ac_help="$ac_help
383   --with-news-group=GROUP News group name [news]"
384 ac_help="$ac_help
385   --with-news-master=USER News master (address for reports) [usenet]"
386 ac_help="$ac_help
387   --with-news-umask=UMASK umask for news files [002]"
388 ac_help="$ac_help
389   --enable-setgid-inews   Install inews setgid"
390 ac_help="$ac_help
391   --enable-uucp-rnews     Install rnews setuid, group uucp"
392 ac_help="$ac_help
393   --with-log-compress=METHOD   Log compression method [gzip]"
394 ac_help="$ac_help
395   --with-innd-port=PORT   Additional low-numbered port for inndstart"
396 ac_help="$ac_help
397   --enable-ipv6           Enable IPv6 support"
398 ac_help="$ac_help
399   --with-max-sockets=N    Maximum number of listening sockets in innd"
400 ac_help="$ac_help
401   --enable-tagged-hash    Use tagged hash table for history"
402 ac_help="$ac_help
403   --enable-keywords       Automatic keyword generation support"
404 ac_help="$ac_help
405   --enable-largefiles     Support for files larger than 2GB [default=no]"
406 ac_help="$ac_help
407   --with-sendmail=PATH    Path to sendmail"
408 ac_help="$ac_help
409   --with-kerberos=PATH    Path to Kerberos v5 (for auth_krb5)"
410 ac_help="$ac_help
411   --with-perl             Embedded Perl script support [default=no]"
412 ac_help="$ac_help
413   --with-python           Embedded Python module support [default=no]"
414 ac_help="$ac_help
415   --with-berkeleydb[=PATH]  Enable BerkeleyDB (for ovdb overview method)"
416 ac_help="$ac_help
417   --with-openssl=PATH     Enable OpenSSL (for NNTP over SSL support)"
418 ac_help="$ac_help
419   --with-sasl=PATH        Enable SASL (for imapfeed authentication)"
420
421 # Initialize some variables set by options.
422 # The variables have the same names as the options, with
423 # dashes changed to underlines.
424 build=NONE
425 cache_file=./config.cache
426 exec_prefix=NONE
427 host=NONE
428 no_create=
429 nonopt=NONE
430 no_recursion=
431 prefix=NONE
432 program_prefix=NONE
433 program_suffix=NONE
434 program_transform_name=s,x,x,
435 silent=
436 site=
437 srcdir=
438 target=NONE
439 verbose=
440 x_includes=NONE
441 x_libraries=NONE
442 bindir='${exec_prefix}/bin'
443 sbindir='${exec_prefix}/sbin'
444 libexecdir='${exec_prefix}/libexec'
445 datadir='${prefix}/share'
446 sysconfdir='${prefix}/etc'
447 sharedstatedir='${prefix}/com'
448 localstatedir='${prefix}/var'
449 libdir='${exec_prefix}/lib'
450 includedir='${prefix}/include'
451 oldincludedir='/usr/include'
452 infodir='${prefix}/info'
453 mandir='${prefix}/man'
454
455 # Initialize some other variables.
456 subdirs=
457 MFLAGS= MAKEFLAGS=
458 SHELL=${CONFIG_SHELL-/bin/sh}
459 # Maximum number of lines to put in a shell here document.
460 ac_max_here_lines=12
461
462 ac_prev=
463 for ac_option
464 do
465
466   # If the previous option needs an argument, assign it.
467   if test -n "$ac_prev"; then
468     eval "$ac_prev=\$ac_option"
469     ac_prev=
470     continue
471   fi
472
473   case "$ac_option" in
474   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
475   *) ac_optarg= ;;
476   esac
477
478   # Accept the important Cygnus configure options, so we can diagnose typos.
479
480   case "$ac_option" in
481
482   -bindir | --bindir | --bindi | --bind | --bin | --bi)
483     ac_prev=bindir ;;
484   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
485     bindir="$ac_optarg" ;;
486
487   -build | --build | --buil | --bui | --bu)
488     ac_prev=build ;;
489   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
490     build="$ac_optarg" ;;
491
492   -cache-file | --cache-file | --cache-fil | --cache-fi \
493   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
494     ac_prev=cache_file ;;
495   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
496   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
497     cache_file="$ac_optarg" ;;
498
499   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
500     ac_prev=datadir ;;
501   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
502   | --da=*)
503     datadir="$ac_optarg" ;;
504
505   -disable-* | --disable-*)
506     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
507     # Reject names that are not valid shell variable names.
508     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
509       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
510     fi
511     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
512     eval "enable_${ac_feature}=no" ;;
513
514   -enable-* | --enable-*)
515     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
516     # Reject names that are not valid shell variable names.
517     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
518       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
519     fi
520     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
521     case "$ac_option" in
522       *=*) ;;
523       *) ac_optarg=yes ;;
524     esac
525     eval "enable_${ac_feature}='$ac_optarg'" ;;
526
527   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
528   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
529   | --exec | --exe | --ex)
530     ac_prev=exec_prefix ;;
531   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
532   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
533   | --exec=* | --exe=* | --ex=*)
534     exec_prefix="$ac_optarg" ;;
535
536   -gas | --gas | --ga | --g)
537     # Obsolete; use --with-gas.
538     with_gas=yes ;;
539
540   -help | --help | --hel | --he)
541     # Omit some internal or obsolete options to make the list less imposing.
542     # This message is too long to be a string in the A/UX 3.1 sh.
543     cat << EOF
544 Usage: configure [options] [host]
545 Options: [defaults in brackets after descriptions]
546 Configuration:
547   --cache-file=FILE       cache test results in FILE
548   --help                  print this message
549   --no-create             do not create output files
550   --quiet, --silent       do not print \`checking...' messages
551   --version               print the version of autoconf that created configure
552 Directory and file names:
553   --prefix=PREFIX         install architecture-independent files in PREFIX
554                           [$ac_default_prefix]
555   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
556                           [same as prefix]
557   --bindir=DIR            user executables in DIR [EPREFIX/bin]
558   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
559   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
560   --datadir=DIR           read-only architecture-independent data in DIR
561                           [PREFIX/share]
562   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
563   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
564                           [PREFIX/com]
565   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
566   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
567   --includedir=DIR        C header files in DIR [PREFIX/include]
568   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
569   --infodir=DIR           info documentation in DIR [PREFIX/info]
570   --mandir=DIR            man documentation in DIR [PREFIX/man]
571   --srcdir=DIR            find the sources in DIR [configure dir or ..]
572   --program-prefix=PREFIX prepend PREFIX to installed program names
573   --program-suffix=SUFFIX append SUFFIX to installed program names
574   --program-transform-name=PROGRAM
575                           run sed PROGRAM on installed program names
576 EOF
577     cat << EOF
578 Host type:
579   --build=BUILD           configure for building on BUILD [BUILD=HOST]
580   --host=HOST             configure for HOST [guessed]
581   --target=TARGET         configure for TARGET [TARGET=HOST]
582 Features and packages:
583   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
584   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
585   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
586   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
587   --x-includes=DIR        X include files are in DIR
588   --x-libraries=DIR       X library files are in DIR
589 EOF
590     if test -n "$ac_help"; then
591       echo "--enable and --with options recognized:$ac_help"
592     fi
593     exit 0 ;;
594
595   -host | --host | --hos | --ho)
596     ac_prev=host ;;
597   -host=* | --host=* | --hos=* | --ho=*)
598     host="$ac_optarg" ;;
599
600   -includedir | --includedir | --includedi | --included | --include \
601   | --includ | --inclu | --incl | --inc)
602     ac_prev=includedir ;;
603   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604   | --includ=* | --inclu=* | --incl=* | --inc=*)
605     includedir="$ac_optarg" ;;
606
607   -infodir | --infodir | --infodi | --infod | --info | --inf)
608     ac_prev=infodir ;;
609   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610     infodir="$ac_optarg" ;;
611
612   -libdir | --libdir | --libdi | --libd)
613     ac_prev=libdir ;;
614   -libdir=* | --libdir=* | --libdi=* | --libd=*)
615     libdir="$ac_optarg" ;;
616
617   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618   | --libexe | --libex | --libe)
619     ac_prev=libexecdir ;;
620   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621   | --libexe=* | --libex=* | --libe=*)
622     libexecdir="$ac_optarg" ;;
623
624   -localstatedir | --localstatedir | --localstatedi | --localstated \
625   | --localstate | --localstat | --localsta | --localst \
626   | --locals | --local | --loca | --loc | --lo)
627     ac_prev=localstatedir ;;
628   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631     localstatedir="$ac_optarg" ;;
632
633   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634     ac_prev=mandir ;;
635   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636     mandir="$ac_optarg" ;;
637
638   -nfp | --nfp | --nf)
639     # Obsolete; use --without-fp.
640     with_fp=no ;;
641
642   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643   | --no-cr | --no-c)
644     no_create=yes ;;
645
646   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648     no_recursion=yes ;;
649
650   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652   | --oldin | --oldi | --old | --ol | --o)
653     ac_prev=oldincludedir ;;
654   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657     oldincludedir="$ac_optarg" ;;
658
659   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660     ac_prev=prefix ;;
661   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662     prefix="$ac_optarg" ;;
663
664   -program-prefix | --program-prefix | --program-prefi | --program-pref \
665   | --program-pre | --program-pr | --program-p)
666     ac_prev=program_prefix ;;
667   -program-prefix=* | --program-prefix=* | --program-prefi=* \
668   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669     program_prefix="$ac_optarg" ;;
670
671   -program-suffix | --program-suffix | --program-suffi | --program-suff \
672   | --program-suf | --program-su | --program-s)
673     ac_prev=program_suffix ;;
674   -program-suffix=* | --program-suffix=* | --program-suffi=* \
675   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676     program_suffix="$ac_optarg" ;;
677
678   -program-transform-name | --program-transform-name \
679   | --program-transform-nam | --program-transform-na \
680   | --program-transform-n | --program-transform- \
681   | --program-transform | --program-transfor \
682   | --program-transfo | --program-transf \
683   | --program-trans | --program-tran \
684   | --progr-tra | --program-tr | --program-t)
685     ac_prev=program_transform_name ;;
686   -program-transform-name=* | --program-transform-name=* \
687   | --program-transform-nam=* | --program-transform-na=* \
688   | --program-transform-n=* | --program-transform-=* \
689   | --program-transform=* | --program-transfor=* \
690   | --program-transfo=* | --program-transf=* \
691   | --program-trans=* | --program-tran=* \
692   | --progr-tra=* | --program-tr=* | --program-t=*)
693     program_transform_name="$ac_optarg" ;;
694
695   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696   | -silent | --silent | --silen | --sile | --sil)
697     silent=yes ;;
698
699   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700     ac_prev=sbindir ;;
701   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702   | --sbi=* | --sb=*)
703     sbindir="$ac_optarg" ;;
704
705   -sharedstatedir | --sharedstatedir | --sharedstatedi \
706   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707   | --sharedst | --shareds | --shared | --share | --shar \
708   | --sha | --sh)
709     ac_prev=sharedstatedir ;;
710   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713   | --sha=* | --sh=*)
714     sharedstatedir="$ac_optarg" ;;
715
716   -site | --site | --sit)
717     ac_prev=site ;;
718   -site=* | --site=* | --sit=*)
719     site="$ac_optarg" ;;
720
721   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722     ac_prev=srcdir ;;
723   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724     srcdir="$ac_optarg" ;;
725
726   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727   | --syscon | --sysco | --sysc | --sys | --sy)
728     ac_prev=sysconfdir ;;
729   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731     sysconfdir="$ac_optarg" ;;
732
733   -target | --target | --targe | --targ | --tar | --ta | --t)
734     ac_prev=target ;;
735   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736     target="$ac_optarg" ;;
737
738   -v | -verbose | --verbose | --verbos | --verbo | --verb)
739     verbose=yes ;;
740
741   -version | --version | --versio | --versi | --vers)
742     echo "configure generated by autoconf version 2.13"
743     exit 0 ;;
744
745   -with-* | --with-*)
746     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
747     # Reject names that are not valid shell variable names.
748     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
749       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
750     fi
751     ac_package=`echo $ac_package| sed 's/-/_/g'`
752     case "$ac_option" in
753       *=*) ;;
754       *) ac_optarg=yes ;;
755     esac
756     eval "with_${ac_package}='$ac_optarg'" ;;
757
758   -without-* | --without-*)
759     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
760     # Reject names that are not valid shell variable names.
761     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
762       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
763     fi
764     ac_package=`echo $ac_package| sed 's/-/_/g'`
765     eval "with_${ac_package}=no" ;;
766
767   --x)
768     # Obsolete; use --with-x.
769     with_x=yes ;;
770
771   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772   | --x-incl | --x-inc | --x-in | --x-i)
773     ac_prev=x_includes ;;
774   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776     x_includes="$ac_optarg" ;;
777
778   -x-libraries | --x-libraries | --x-librarie | --x-librari \
779   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780     ac_prev=x_libraries ;;
781   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783     x_libraries="$ac_optarg" ;;
784
785   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
786     ;;
787
788   *)
789     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
790       echo "configure: warning: $ac_option: invalid host type" 1>&2
791     fi
792     if test "x$nonopt" != xNONE; then
793       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
794     fi
795     nonopt="$ac_option"
796     ;;
797
798   esac
799 done
800
801 if test -n "$ac_prev"; then
802   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
803 fi
804
805 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
806
807 # File descriptor usage:
808 # 0 standard input
809 # 1 file creation
810 # 2 errors and warnings
811 # 3 some systems may open it to /dev/tty
812 # 4 used on the Kubota Titan
813 # 6 checking for... messages and results
814 # 5 compiler messages saved in config.log
815 if test "$silent" = yes; then
816   exec 6>/dev/null
817 else
818   exec 6>&1
819 fi
820 exec 5>./config.log
821
822 echo "\
823 This file contains any messages produced by compilers while
824 running configure, to aid debugging if configure makes a mistake.
825 " 1>&5
826
827 # Strip out --no-create and --no-recursion so they do not pile up.
828 # Also quote any args containing shell metacharacters.
829 ac_configure_args=
830 for ac_arg
831 do
832   case "$ac_arg" in
833   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
834   | --no-cr | --no-c) ;;
835   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
836   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
837   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
838   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
839   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
840   esac
841 done
842
843 # NLS nuisances.
844 # Only set these to C if already set.  These must not be set unconditionally
845 # because not all systems understand e.g. LANG=C (notably SCO).
846 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
847 # Non-C LC_CTYPE values break the ctype check.
848 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
849 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
850 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
851 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
852
853 # confdefs.h avoids OS command line length limits that DEFS can exceed.
854 rm -rf conftest* confdefs.h
855 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
856 echo > confdefs.h
857
858 # A filename unique to this package, relative to the directory that
859 # configure is in, which we can look for to find out if srcdir is correct.
860 ac_unique_file=Makefile.global.in
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864   ac_srcdir_defaulted=yes
865   # Try the directory containing this script, then its parent.
866   ac_prog=$0
867   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
868   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
869   srcdir=$ac_confdir
870   if test ! -r $srcdir/$ac_unique_file; then
871     srcdir=..
872   fi
873 else
874   ac_srcdir_defaulted=no
875 fi
876 if test ! -r $srcdir/$ac_unique_file; then
877   if test "$ac_srcdir_defaulted" = yes; then
878     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
879   else
880     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
881   fi
882 fi
883 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
884
885 # Prefer explicitly selected file to automatically selected ones.
886 if test -z "$CONFIG_SITE"; then
887   if test "x$prefix" != xNONE; then
888     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
889   else
890     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
891   fi
892 fi
893 for ac_site_file in $CONFIG_SITE; do
894   if test -r "$ac_site_file"; then
895     echo "loading site script $ac_site_file"
896     . "$ac_site_file"
897   fi
898 done
899
900 if test -r "$cache_file"; then
901   echo "loading cache $cache_file"
902   . $cache_file
903 else
904   echo "creating cache $cache_file"
905   > $cache_file
906 fi
907
908 ac_ext=c
909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
910 ac_cpp='$CPP $CPPFLAGS'
911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
913 cross_compiling=$ac_cv_prog_cc_cross
914
915 ac_exeext=
916 ac_objext=o
917 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
918   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
919   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
920     ac_n= ac_c='
921 ' ac_t='        '
922   else
923     ac_n=-n ac_c= ac_t=
924   fi
925 else
926   ac_n= ac_c='\c' ac_t=
927 fi
928
929
930 ac_aux_dir=
931 for ac_dir in support $srcdir/support; do
932   if test -f $ac_dir/install-sh; then
933     ac_aux_dir=$ac_dir
934     ac_install_sh="$ac_aux_dir/install-sh -c"
935     break
936   elif test -f $ac_dir/install.sh; then
937     ac_aux_dir=$ac_dir
938     ac_install_sh="$ac_aux_dir/install.sh -c"
939     break
940   fi
941 done
942 if test -z "$ac_aux_dir"; then
943   { echo "configure: error: can not find install-sh or install.sh in support $srcdir/support" 1>&2; exit 1; }
944 fi
945 ac_config_guess=$ac_aux_dir/config.guess
946 ac_config_sub=$ac_aux_dir/config.sub
947 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
948
949
950
951 test x"$prefix" = xNONE && prefix="$ac_default_prefix"
952
953 builddir=`pwd`
954
955
956 if test x"$with_largefiles" != x ; then
957     { echo "configure: error: Use --enable-largefiles instead of --with-largefiles" 1>&2; exit 1; }
958 fi
959
960
961
962 # Extract the first word of "gcc", so it can be a program name with args.
963 set dummy gcc; ac_word=$2
964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
965 echo "configure:966: checking for $ac_word" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
967   echo $ac_n "(cached) $ac_c" 1>&6
968 else
969   if test -n "$CC"; then
970   ac_cv_prog_CC="$CC" # Let the user override the test.
971 else
972   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
973   ac_dummy="$PATH"
974   for ac_dir in $ac_dummy; do
975     test -z "$ac_dir" && ac_dir=.
976     if test -f $ac_dir/$ac_word; then
977       ac_cv_prog_CC="gcc"
978       break
979     fi
980   done
981   IFS="$ac_save_ifs"
982 fi
983 fi
984 CC="$ac_cv_prog_CC"
985 if test -n "$CC"; then
986   echo "$ac_t""$CC" 1>&6
987 else
988   echo "$ac_t""no" 1>&6
989 fi
990
991 if test -z "$CC"; then
992   # Extract the first word of "cc", so it can be a program name with args.
993 set dummy cc; ac_word=$2
994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
995 echo "configure:996: checking for $ac_word" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
997   echo $ac_n "(cached) $ac_c" 1>&6
998 else
999   if test -n "$CC"; then
1000   ac_cv_prog_CC="$CC" # Let the user override the test.
1001 else
1002   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1003   ac_prog_rejected=no
1004   ac_dummy="$PATH"
1005   for ac_dir in $ac_dummy; do
1006     test -z "$ac_dir" && ac_dir=.
1007     if test -f $ac_dir/$ac_word; then
1008       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1009         ac_prog_rejected=yes
1010         continue
1011       fi
1012       ac_cv_prog_CC="cc"
1013       break
1014     fi
1015   done
1016   IFS="$ac_save_ifs"
1017 if test $ac_prog_rejected = yes; then
1018   # We found a bogon in the path, so make sure we never use it.
1019   set dummy $ac_cv_prog_CC
1020   shift
1021   if test $# -gt 0; then
1022     # We chose a different compiler from the bogus one.
1023     # However, it has the same basename, so the bogon will be chosen
1024     # first if we set CC to just the basename; use the full file name.
1025     shift
1026     set dummy "$ac_dir/$ac_word" "$@"
1027     shift
1028     ac_cv_prog_CC="$@"
1029   fi
1030 fi
1031 fi
1032 fi
1033 CC="$ac_cv_prog_CC"
1034 if test -n "$CC"; then
1035   echo "$ac_t""$CC" 1>&6
1036 else
1037   echo "$ac_t""no" 1>&6
1038 fi
1039
1040   if test -z "$CC"; then
1041     case "`uname -s`" in
1042     *win32* | *WIN32*)
1043       # Extract the first word of "cl", so it can be a program name with args.
1044 set dummy cl; ac_word=$2
1045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1046 echo "configure:1047: checking for $ac_word" >&5
1047 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1048   echo $ac_n "(cached) $ac_c" 1>&6
1049 else
1050   if test -n "$CC"; then
1051   ac_cv_prog_CC="$CC" # Let the user override the test.
1052 else
1053   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1054   ac_dummy="$PATH"
1055   for ac_dir in $ac_dummy; do
1056     test -z "$ac_dir" && ac_dir=.
1057     if test -f $ac_dir/$ac_word; then
1058       ac_cv_prog_CC="cl"
1059       break
1060     fi
1061   done
1062   IFS="$ac_save_ifs"
1063 fi
1064 fi
1065 CC="$ac_cv_prog_CC"
1066 if test -n "$CC"; then
1067   echo "$ac_t""$CC" 1>&6
1068 else
1069   echo "$ac_t""no" 1>&6
1070 fi
1071  ;;
1072     esac
1073   fi
1074   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1075 fi
1076
1077 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1078 echo "configure:1079: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1079
1080 ac_ext=c
1081 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1082 ac_cpp='$CPP $CPPFLAGS'
1083 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1084 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1085 cross_compiling=$ac_cv_prog_cc_cross
1086
1087 cat > conftest.$ac_ext << EOF
1088
1089 #line 1090 "configure"
1090 #include "confdefs.h"
1091
1092 main(){return(0);}
1093 EOF
1094 if { (eval echo configure:1095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1095   ac_cv_prog_cc_works=yes
1096   # If we can't run a trivial program, we are probably using a cross compiler.
1097   if (./conftest; exit) 2>/dev/null; then
1098     ac_cv_prog_cc_cross=no
1099   else
1100     ac_cv_prog_cc_cross=yes
1101   fi
1102 else
1103   echo "configure: failed program was:" >&5
1104   cat conftest.$ac_ext >&5
1105   ac_cv_prog_cc_works=no
1106 fi
1107 rm -fr conftest*
1108 ac_ext=c
1109 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1110 ac_cpp='$CPP $CPPFLAGS'
1111 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1112 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1113 cross_compiling=$ac_cv_prog_cc_cross
1114
1115 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1116 if test $ac_cv_prog_cc_works = no; then
1117   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1118 fi
1119 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1120 echo "configure:1121: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1121 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1122 cross_compiling=$ac_cv_prog_cc_cross
1123
1124 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1125 echo "configure:1126: checking whether we are using GNU C" >&5
1126 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1127   echo $ac_n "(cached) $ac_c" 1>&6
1128 else
1129   cat > conftest.c <<EOF
1130 #ifdef __GNUC__
1131   yes;
1132 #endif
1133 EOF
1134 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1135   ac_cv_prog_gcc=yes
1136 else
1137   ac_cv_prog_gcc=no
1138 fi
1139 fi
1140
1141 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1142
1143 if test $ac_cv_prog_gcc = yes; then
1144   GCC=yes
1145 else
1146   GCC=
1147 fi
1148
1149 ac_test_CFLAGS="${CFLAGS+set}"
1150 ac_save_CFLAGS="$CFLAGS"
1151 CFLAGS=
1152 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1153 echo "configure:1154: checking whether ${CC-cc} accepts -g" >&5
1154 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1155   echo $ac_n "(cached) $ac_c" 1>&6
1156 else
1157   echo 'void f(){}' > conftest.c
1158 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1159   ac_cv_prog_cc_g=yes
1160 else
1161   ac_cv_prog_cc_g=no
1162 fi
1163 rm -f conftest*
1164
1165 fi
1166
1167 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1168 if test "$ac_test_CFLAGS" = set; then
1169   CFLAGS="$ac_save_CFLAGS"
1170 elif test $ac_cv_prog_cc_g = yes; then
1171   if test "$GCC" = yes; then
1172     CFLAGS="-g -O2"
1173   else
1174     CFLAGS="-g"
1175   fi
1176 else
1177   if test "$GCC" = yes; then
1178     CFLAGS="-O2"
1179   else
1180     CFLAGS=
1181   fi
1182 fi
1183
1184 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1185 echo "configure:1186: checking how to run the C preprocessor" >&5
1186 # On Suns, sometimes $CPP names a directory.
1187 if test -n "$CPP" && test -d "$CPP"; then
1188   CPP=
1189 fi
1190 if test -z "$CPP"; then
1191 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1192   echo $ac_n "(cached) $ac_c" 1>&6
1193 else
1194     # This must be in double quotes, not single quotes, because CPP may get
1195   # substituted into the Makefile and "${CC-cc}" will confuse make.
1196   CPP="${CC-cc} -E"
1197   # On the NeXT, cc -E runs the code through the compiler's parser,
1198   # not just through cpp.
1199   cat > conftest.$ac_ext <<EOF
1200 #line 1201 "configure"
1201 #include "confdefs.h"
1202 #include <assert.h>
1203 Syntax Error
1204 EOF
1205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1206 { (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1208 if test -z "$ac_err"; then
1209   :
1210 else
1211   echo "$ac_err" >&5
1212   echo "configure: failed program was:" >&5
1213   cat conftest.$ac_ext >&5
1214   rm -rf conftest*
1215   CPP="${CC-cc} -E -traditional-cpp"
1216   cat > conftest.$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1219 #include <assert.h>
1220 Syntax Error
1221 EOF
1222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1223 { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1225 if test -z "$ac_err"; then
1226   :
1227 else
1228   echo "$ac_err" >&5
1229   echo "configure: failed program was:" >&5
1230   cat conftest.$ac_ext >&5
1231   rm -rf conftest*
1232   CPP="${CC-cc} -nologo -E"
1233   cat > conftest.$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1236 #include <assert.h>
1237 Syntax Error
1238 EOF
1239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1240 { (eval echo configure:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1242 if test -z "$ac_err"; then
1243   :
1244 else
1245   echo "$ac_err" >&5
1246   echo "configure: failed program was:" >&5
1247   cat conftest.$ac_ext >&5
1248   rm -rf conftest*
1249   CPP=/lib/cpp
1250 fi
1251 rm -f conftest*
1252 fi
1253 rm -f conftest*
1254 fi
1255 rm -f conftest*
1256   ac_cv_prog_CPP="$CPP"
1257 fi
1258   CPP="$ac_cv_prog_CPP"
1259 else
1260   ac_cv_prog_CPP="$CPP"
1261 fi
1262 echo "$ac_t""$CPP" 1>&6
1263
1264 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1265 echo "configure:1266: checking for AIX" >&5
1266 cat > conftest.$ac_ext <<EOF
1267 #line 1268 "configure"
1268 #include "confdefs.h"
1269 #ifdef _AIX
1270   yes
1271 #endif
1272
1273 EOF
1274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1275   egrep "yes" >/dev/null 2>&1; then
1276   rm -rf conftest*
1277   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1278 #define _ALL_SOURCE 1
1279 EOF
1280
1281 else
1282   rm -rf conftest*
1283   echo "$ac_t""no" 1>&6
1284 fi
1285 rm -f conftest*
1286
1287
1288 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1289 echo "configure:1290: checking for POSIXized ISC" >&5
1290 if test -d /etc/conf/kconfig.d &&
1291   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1292 then
1293   echo "$ac_t""yes" 1>&6
1294   ISC=yes # If later tests want to check for ISC.
1295   cat >> confdefs.h <<\EOF
1296 #define _POSIX_SOURCE 1
1297 EOF
1298
1299   if test "$GCC" = yes; then
1300     CC="$CC -posix"
1301   else
1302     CC="$CC -Xp"
1303   fi
1304 else
1305   echo "$ac_t""no" 1>&6
1306   ISC=
1307 fi
1308
1309 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1310 echo "configure:1311: checking for object suffix" >&5
1311 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1312   echo $ac_n "(cached) $ac_c" 1>&6
1313 else
1314   rm -f conftest*
1315 echo 'int i = 1;' > conftest.$ac_ext
1316 if { (eval echo configure:1317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1317   for ac_file in conftest.*; do
1318     case $ac_file in
1319     *.c) ;;
1320     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1321     esac
1322   done
1323 else
1324   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1325 fi
1326 rm -f conftest*
1327 fi
1328
1329 echo "$ac_t""$ac_cv_objext" 1>&6
1330 OBJEXT=$ac_cv_objext
1331 ac_objext=$ac_cv_objext
1332
1333
1334 echo $ac_n "checking if $CC supports -c -o file.$ac_objext""... $ac_c" 1>&6
1335 echo "configure:1336: checking if $CC supports -c -o file.$ac_objext" >&5
1336 if eval "test \"`echo '$''{'inn_cv_compiler_c_o'+set}'`\" = set"; then
1337   echo $ac_n "(cached) $ac_c" 1>&6
1338 else
1339   rm -f -r conftest 2>/dev/null
1340 mkdir conftest
1341 cd conftest
1342 echo "int some_variable = 0;" > conftest.$ac_ext
1343 mkdir out
1344 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
1345 # that will create temporary files in the current directory regardless of
1346 # the output directory.  Thus, making CWD read-only will cause this test
1347 # to fail, enabling locking or at least warning the user not to do parallel
1348 # builds.
1349 chmod -w .
1350 save_CFLAGS="$CFLAGS"
1351 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
1352 compiler_c_o=no
1353 if { (eval $ac_compile) 2> out/conftest.err; } \
1354     && test -s out/conftest2.$ac_objext; then
1355   # The compiler can only warn and ignore the option if not recognized
1356   # So say no if there are warnings
1357   if test -s out/conftest.err; then
1358     inn_cv_compiler_c_o=no
1359   else
1360     inn_cv_compiler_c_o=yes
1361   fi
1362 else
1363   # Append any errors to the config.log.
1364   cat out/conftest.err 1>&5
1365   inn_cv_compiler_c_o=no
1366 fi
1367 CFLAGS="$save_CFLAGS"
1368 chmod u+w .
1369 rm -f conftest* out/*
1370 rmdir out
1371 cd ..
1372 rmdir conftest
1373 rm -f -r conftest 2>/dev/null
1374 fi
1375
1376 compiler_c_o=$inn_cv_compiler_c_o
1377 echo "$ac_t""$compiler_c_o" 1>&6
1378
1379 inn_use_libtool=no
1380 # Check whether --enable-libtool or --disable-libtool was given.
1381 if test "${enable_libtool+set}" = set; then
1382   enableval="$enable_libtool"
1383   if test "$enableval" = yes ; then
1384         inn_use_libtool=yes
1385     fi
1386 fi
1387
1388 if test x"$inn_use_libtool" = xyes ; then
1389     # Find the correct PATH separator.  Usually this is `:', but
1390 # DJGPP uses `;' like DOS.
1391 if test "X${PATH_SEPARATOR+set}" != Xset; then
1392   UNAME=${UNAME-`uname 2>/dev/null`}
1393   case X$UNAME in
1394     *-DOS) lt_cv_sys_path_separator=';' ;;
1395     *)     lt_cv_sys_path_separator=':' ;;
1396   esac
1397   PATH_SEPARATOR=$lt_cv_sys_path_separator
1398 fi
1399
1400 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1401 echo "configure:1402: checking for Cygwin environment" >&5
1402 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1403   echo $ac_n "(cached) $ac_c" 1>&6
1404 else
1405   cat > conftest.$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1408
1409 int main() {
1410
1411 #ifndef __CYGWIN__
1412 #define __CYGWIN__ __CYGWIN32__
1413 #endif
1414 return __CYGWIN__;
1415 ; return 0; }
1416 EOF
1417 if { (eval echo configure:1418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1418   rm -rf conftest*
1419   ac_cv_cygwin=yes
1420 else
1421   echo "configure: failed program was:" >&5
1422   cat conftest.$ac_ext >&5
1423   rm -rf conftest*
1424   ac_cv_cygwin=no
1425 fi
1426 rm -f conftest*
1427 rm -f conftest*
1428 fi
1429
1430 echo "$ac_t""$ac_cv_cygwin" 1>&6
1431 CYGWIN=
1432 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1433 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1434 echo "configure:1435: checking for mingw32 environment" >&5
1435 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1436   echo $ac_n "(cached) $ac_c" 1>&6
1437 else
1438   cat > conftest.$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1441
1442 int main() {
1443 return __MINGW32__;
1444 ; return 0; }
1445 EOF
1446 if { (eval echo configure:1447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1447   rm -rf conftest*
1448   ac_cv_mingw32=yes
1449 else
1450   echo "configure: failed program was:" >&5
1451   cat conftest.$ac_ext >&5
1452   rm -rf conftest*
1453   ac_cv_mingw32=no
1454 fi
1455 rm -f conftest*
1456 rm -f conftest*
1457 fi
1458
1459 echo "$ac_t""$ac_cv_mingw32" 1>&6
1460 MINGW32=
1461 test "$ac_cv_mingw32" = yes && MINGW32=yes
1462 # Check whether --enable-shared or --disable-shared was given.
1463 if test "${enable_shared+set}" = set; then
1464   enableval="$enable_shared"
1465   p=${PACKAGE-default}
1466 case $enableval in
1467 yes) enable_shared=yes ;;
1468 no) enable_shared=no ;;
1469 *)
1470   enable_shared=no
1471   # Look at the argument we got.  We use all the common list separators.
1472   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1473   for pkg in $enableval; do
1474     if test "X$pkg" = "X$p"; then
1475       enable_shared=yes
1476     fi
1477   done
1478   IFS="$ac_save_ifs"
1479   ;;
1480 esac
1481 else
1482   enable_shared=yes
1483 fi
1484
1485 # Check whether --enable-static or --disable-static was given.
1486 if test "${enable_static+set}" = set; then
1487   enableval="$enable_static"
1488   p=${PACKAGE-default}
1489 case $enableval in
1490 yes) enable_static=yes ;;
1491 no) enable_static=no ;;
1492 *)
1493   enable_static=no
1494   # Look at the argument we got.  We use all the common list separators.
1495   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1496   for pkg in $enableval; do
1497     if test "X$pkg" = "X$p"; then
1498       enable_static=yes
1499     fi
1500   done
1501   IFS="$ac_save_ifs"
1502   ;;
1503 esac
1504 else
1505   enable_static=yes
1506 fi
1507
1508 # Check whether --enable-fast-install or --disable-fast-install was given.
1509 if test "${enable_fast_install+set}" = set; then
1510   enableval="$enable_fast_install"
1511   p=${PACKAGE-default}
1512 case $enableval in
1513 yes) enable_fast_install=yes ;;
1514 no) enable_fast_install=no ;;
1515 *)
1516   enable_fast_install=no
1517   # Look at the argument we got.  We use all the common list separators.
1518   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1519   for pkg in $enableval; do
1520     if test "X$pkg" = "X$p"; then
1521       enable_fast_install=yes
1522     fi
1523   done
1524   IFS="$ac_save_ifs"
1525   ;;
1526 esac
1527 else
1528   enable_fast_install=yes
1529 fi
1530
1531
1532 # Make sure we can run config.sub.
1533 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1534 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1535 fi
1536
1537 echo $ac_n "checking host system type""... $ac_c" 1>&6
1538 echo "configure:1539: checking host system type" >&5
1539
1540 host_alias=$host
1541 case "$host_alias" in
1542 NONE)
1543   case $nonopt in
1544   NONE)
1545     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1546     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1547     fi ;;
1548   *) host_alias=$nonopt ;;
1549   esac ;;
1550 esac
1551
1552 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1553 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556 echo "$ac_t""$host" 1>&6
1557
1558 echo $ac_n "checking build system type""... $ac_c" 1>&6
1559 echo "configure:1560: checking build system type" >&5
1560
1561 build_alias=$build
1562 case "$build_alias" in
1563 NONE)
1564   case $nonopt in
1565   NONE) build_alias=$host_alias ;;
1566   *) build_alias=$nonopt ;;
1567   esac ;;
1568 esac
1569
1570 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1571 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1572 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1573 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1574 echo "$ac_t""$build" 1>&6
1575
1576 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1577 if test "${with_gnu_ld+set}" = set; then
1578   withval="$with_gnu_ld"
1579   test "$withval" = no || with_gnu_ld=yes
1580 else
1581   with_gnu_ld=no
1582 fi
1583
1584 ac_prog=ld
1585 if test "$GCC" = yes; then
1586   # Check if gcc -print-prog-name=ld gives a path.
1587   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1588 echo "configure:1589: checking for ld used by GCC" >&5
1589   case $host in
1590   *-*-mingw*)
1591     # gcc leaves a trailing carriage return which upsets mingw
1592     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1593   *)
1594     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1595   esac
1596   case $ac_prog in
1597     # Accept absolute paths.
1598     [\\/]* | [A-Za-z]:[\\/]*)
1599       re_direlt='/[^/][^/]*/\.\./'
1600       # Canonicalize the path of ld
1601       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1602       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1603         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1604       done
1605       test -z "$LD" && LD="$ac_prog"
1606       ;;
1607   "")
1608     # If it fails, then pretend we aren't using GCC.
1609     ac_prog=ld
1610     ;;
1611   *)
1612     # If it is relative, then search for the first ld in PATH.
1613     with_gnu_ld=unknown
1614     ;;
1615   esac
1616 elif test "$with_gnu_ld" = yes; then
1617   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1618 echo "configure:1619: checking for GNU ld" >&5
1619 else
1620   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1621 echo "configure:1622: checking for non-GNU ld" >&5
1622 fi
1623 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1624   echo $ac_n "(cached) $ac_c" 1>&6
1625 else
1626   if test -z "$LD"; then
1627   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1628   for ac_dir in $PATH; do
1629     test -z "$ac_dir" && ac_dir=.
1630     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1631       lt_cv_path_LD="$ac_dir/$ac_prog"
1632       # Check to see if the program is GNU ld.  I'd rather use --version,
1633       # but apparently some GNU ld's only accept -v.
1634       # Break only if it was the GNU/non-GNU ld that we prefer.
1635       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1636         test "$with_gnu_ld" != no && break
1637       else
1638         test "$with_gnu_ld" != yes && break
1639       fi
1640     fi
1641   done
1642   IFS="$ac_save_ifs"
1643 else
1644   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1645 fi
1646 fi
1647
1648 LD="$lt_cv_path_LD"
1649 if test -n "$LD"; then
1650   echo "$ac_t""$LD" 1>&6
1651 else
1652   echo "$ac_t""no" 1>&6
1653 fi
1654 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1655 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1656 echo "configure:1657: checking if the linker ($LD) is GNU ld" >&5
1657 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1658   echo $ac_n "(cached) $ac_c" 1>&6
1659 else
1660   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1661 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1662   lt_cv_prog_gnu_ld=yes
1663 else
1664   lt_cv_prog_gnu_ld=no
1665 fi
1666 fi
1667
1668 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1669 with_gnu_ld=$lt_cv_prog_gnu_ld
1670
1671
1672 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1673 echo "configure:1674: checking for $LD option to reload object files" >&5
1674 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1675   echo $ac_n "(cached) $ac_c" 1>&6
1676 else
1677   lt_cv_ld_reload_flag='-r'
1678 fi
1679
1680 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1681 reload_flag=$lt_cv_ld_reload_flag
1682 test -n "$reload_flag" && reload_flag=" $reload_flag"
1683
1684 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1685 echo "configure:1686: checking for BSD-compatible nm" >&5
1686 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1687   echo $ac_n "(cached) $ac_c" 1>&6
1688 else
1689   if test -n "$NM"; then
1690   # Let the user override the test.
1691   lt_cv_path_NM="$NM"
1692 else
1693   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1694   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1695     test -z "$ac_dir" && ac_dir=.
1696     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1697     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1698       # Check to see if the nm accepts a BSD-compat flag.
1699       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1700       #   nm: unknown option "B" ignored
1701       # Tru64's nm complains that /dev/null is an invalid object file
1702       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1703         lt_cv_path_NM="$tmp_nm -B"
1704         break
1705       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1706         lt_cv_path_NM="$tmp_nm -p"
1707         break
1708       else
1709         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1710         continue # so that we can try to find one that supports BSD flags
1711       fi
1712     fi
1713   done
1714   IFS="$ac_save_ifs"
1715   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1716 fi
1717 fi
1718
1719 NM="$lt_cv_path_NM"
1720 echo "$ac_t""$NM" 1>&6
1721
1722 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1723 echo "configure:1724: checking whether ln -s works" >&5
1724 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1725   echo $ac_n "(cached) $ac_c" 1>&6
1726 else
1727   rm -f conftestdata
1728 if ln -s X conftestdata 2>/dev/null
1729 then
1730   rm -f conftestdata
1731   ac_cv_prog_LN_S="ln -s"
1732 else
1733   ac_cv_prog_LN_S=ln
1734 fi
1735 fi
1736 LN_S="$ac_cv_prog_LN_S"
1737 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1738   echo "$ac_t""yes" 1>&6
1739 else
1740   echo "$ac_t""no" 1>&6
1741 fi
1742
1743 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1744 echo "configure:1745: checking how to recognise dependant libraries" >&5
1745 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1746   echo $ac_n "(cached) $ac_c" 1>&6
1747 else
1748   lt_cv_file_magic_cmd='$MAGIC_CMD'
1749 lt_cv_file_magic_test_file=
1750 lt_cv_deplibs_check_method='unknown'
1751 # Need to set the preceding variable on all platforms that support
1752 # interlibrary dependencies.
1753 # 'none' -- dependencies not supported.
1754 # `unknown' -- same as none, but documents that we really don't know.
1755 # 'pass_all' -- all dependencies passed with no checks.
1756 # 'test_compile' -- check by making test program.
1757 # 'file_magic [[regex]]' -- check by looking for files in library path
1758 # which responds to the $file_magic_cmd with a given egrep regex.
1759 # If you have `file' or equivalent on your system and you're not sure
1760 # whether `pass_all' will *always* work, you probably want this one.
1761
1762 case $host_os in
1763 aix4* | aix5*)
1764   lt_cv_deplibs_check_method=pass_all
1765   ;;
1766
1767 beos*)
1768   lt_cv_deplibs_check_method=pass_all
1769   ;;
1770
1771 bsdi4*)
1772   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1773   lt_cv_file_magic_cmd='/usr/bin/file -L'
1774   lt_cv_file_magic_test_file=/shlib/libc.so
1775   ;;
1776
1777 cygwin* | mingw* | pw32*)
1778   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1779   lt_cv_file_magic_cmd='$OBJDUMP -f'
1780   ;;
1781
1782 darwin* | rhapsody*)
1783   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1784   lt_cv_file_magic_cmd='/usr/bin/file -L'
1785   case "$host_os" in
1786   rhapsody* | darwin1.[012])
1787     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1788     ;;
1789   *) # Darwin 1.3 on
1790     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1791     ;;
1792   esac
1793   ;;
1794
1795 freebsd*)
1796   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1797     case $host_cpu in
1798     i*86 )
1799       # Not sure whether the presence of OpenBSD here was a mistake.
1800       # Let's accept both of them until this is cleared up.
1801       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1802       lt_cv_file_magic_cmd=/usr/bin/file
1803       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1804       ;;
1805     esac
1806   else
1807     lt_cv_deplibs_check_method=pass_all
1808   fi
1809   ;;
1810
1811 gnu*)
1812   lt_cv_deplibs_check_method=pass_all
1813   ;;
1814
1815 hpux10.20*|hpux11*)
1816   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1817   lt_cv_file_magic_cmd=/usr/bin/file
1818   lt_cv_file_magic_test_file=/usr/lib/libc.sl
1819   ;;
1820
1821 irix5* | irix6*)
1822   case $host_os in
1823   irix5*)
1824     # this will be overridden with pass_all, but let us keep it just in case
1825     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1826     ;;
1827   *)
1828     case $LD in
1829     *-32|*"-32 ") libmagic=32-bit;;
1830     *-n32|*"-n32 ") libmagic=N32;;
1831     *-64|*"-64 ") libmagic=64-bit;;
1832     *) libmagic=never-match;;
1833     esac
1834     # this will be overridden with pass_all, but let us keep it just in case
1835     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1836     ;;
1837   esac
1838   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1839   lt_cv_deplibs_check_method=pass_all
1840   ;;
1841
1842 # This must be Linux ELF.
1843 linux-gnu*)
1844   case $host_cpu in
1845   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1846     lt_cv_deplibs_check_method=pass_all ;;
1847   *)
1848     # glibc up to 2.1.1 does not perform some relocations on ARM
1849     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1850   esac
1851   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1852   ;;
1853
1854 netbsd*)
1855   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1856     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1857   else
1858     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1859   fi
1860   ;;
1861
1862 newos6*)
1863   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1864   lt_cv_file_magic_cmd=/usr/bin/file
1865   lt_cv_file_magic_test_file=/usr/lib/libnls.so
1866   ;;
1867
1868 openbsd*)
1869   lt_cv_file_magic_cmd=/usr/bin/file
1870   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1871   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1872     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1873   else
1874     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1875   fi
1876   ;;
1877
1878 osf3* | osf4* | osf5*)
1879   # this will be overridden with pass_all, but let us keep it just in case
1880   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1881   lt_cv_file_magic_test_file=/shlib/libc.so
1882   lt_cv_deplibs_check_method=pass_all
1883   ;;
1884
1885 sco3.2v5*)
1886   lt_cv_deplibs_check_method=pass_all
1887   ;;
1888
1889 solaris*)
1890   lt_cv_deplibs_check_method=pass_all
1891   lt_cv_file_magic_test_file=/lib/libc.so
1892   ;;
1893
1894 sysv5uw[78]* | sysv4*uw2*)
1895   lt_cv_deplibs_check_method=pass_all
1896   ;;
1897
1898 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1899   case $host_vendor in
1900   motorola)
1901     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]'
1902     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1903     ;;
1904   ncr)
1905     lt_cv_deplibs_check_method=pass_all
1906     ;;
1907   sequent)
1908     lt_cv_file_magic_cmd='/bin/file'
1909     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1910     ;;
1911   sni)
1912     lt_cv_file_magic_cmd='/bin/file'
1913     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1914     lt_cv_file_magic_test_file=/lib/libc.so
1915     ;;
1916   esac
1917   ;;
1918 esac
1919
1920 fi
1921
1922 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1923 file_magic_cmd=$lt_cv_file_magic_cmd
1924 deplibs_check_method=$lt_cv_deplibs_check_method
1925
1926
1927
1928 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1929 echo "configure:1930: checking for executable suffix" >&5
1930 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1931   echo $ac_n "(cached) $ac_c" 1>&6
1932 else
1933   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1934   ac_cv_exeext=.exe
1935 else
1936   rm -f conftest*
1937   echo 'int main () { return 0; }' > conftest.$ac_ext
1938   ac_cv_exeext=
1939   if { (eval echo configure:1940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1940     for file in conftest.*; do
1941       case $file in
1942       *.$ac_ext | *.c | *.o | *.obj) ;;
1943       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1944       esac
1945     done
1946   else
1947     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1948   fi
1949   rm -f conftest*
1950   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1951 fi
1952 fi
1953
1954 EXEEXT=""
1955 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1956 echo "$ac_t""${ac_cv_exeext}" 1>&6
1957 ac_exeext=$EXEEXT
1958
1959 if test $host != $build; then
1960   ac_tool_prefix=${host_alias}-
1961 else
1962   ac_tool_prefix=
1963 fi
1964
1965
1966
1967
1968 # Check for command to grab the raw symbol name followed by C symbol from nm.
1969 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1970 echo "configure:1971: checking command to parse $NM output" >&5
1971 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1972   echo $ac_n "(cached) $ac_c" 1>&6
1973 else
1974   
1975 # These are sane defaults that work on at least a few old systems.
1976 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
1977
1978 # Character class describing NM global symbol codes.
1979 symcode='[BCDEGRST]'
1980
1981 # Regexp to match symbols that can be accessed directly from C.
1982 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1983
1984 # Transform the above into a raw symbol and a C symbol.
1985 symxfrm='\1 \2\3 \3'
1986
1987 # Transform an extracted symbol line into a proper C declaration
1988 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1989
1990 # Transform an extracted symbol line into symbol name and symbol address
1991 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
1992
1993 # Define system-specific variables.
1994 case $host_os in
1995 aix*)
1996   symcode='[BCDT]'
1997   ;;
1998 cygwin* | mingw* | pw32*)
1999   symcode='[ABCDGISTW]'
2000   ;;
2001 hpux*) # Its linker distinguishes data from code symbols
2002   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2003   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
2004   ;;
2005 irix*)
2006   symcode='[BCDEGRST]'
2007   ;;
2008 solaris* | sysv5*)
2009   symcode='[BDT]'
2010   ;;
2011 sysv4)
2012   symcode='[DFNSTU]'
2013   ;;
2014 esac
2015
2016 # Handle CRLF in mingw tool chain
2017 opt_cr=
2018 case $host_os in
2019 mingw*)
2020   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2021   ;;
2022 esac
2023
2024 # If we're using GNU nm, then use its standard symbol codes.
2025 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2026   symcode='[ABCDGISTW]'
2027 fi
2028
2029 # Try without a prefix undercore, then with it.
2030 for ac_symprfx in "" "_"; do
2031
2032   # Write the raw and C identifiers.
2033 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2034
2035   # Check to see that the pipe works correctly.
2036   pipe_works=no
2037   rm -f conftest*
2038   cat > conftest.$ac_ext <<EOF
2039 #ifdef __cplusplus
2040 extern "C" {
2041 #endif
2042 char nm_test_var;
2043 void nm_test_func(){}
2044 #ifdef __cplusplus
2045 }
2046 #endif
2047 int main(){nm_test_var='a';nm_test_func();return(0);}
2048 EOF
2049
2050   if { (eval echo configure:2051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2051     # Now try to grab the symbols.
2052     nlist=conftest.nm
2053     if { (eval echo configure:2054: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
2054       # Try sorting and uniquifying the output.
2055       if sort "$nlist" | uniq > "$nlist"T; then
2056         mv -f "$nlist"T "$nlist"
2057       else
2058         rm -f "$nlist"T
2059       fi
2060
2061       # Make sure that we snagged all the symbols we need.
2062       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2063         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2064           cat <<EOF > conftest.$ac_ext
2065 #ifdef __cplusplus
2066 extern "C" {
2067 #endif
2068
2069 EOF
2070           # Now generate the symbol file.
2071           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2072
2073           cat <<EOF >> conftest.$ac_ext
2074 #if defined (__STDC__) && __STDC__
2075 # define lt_ptr void *
2076 #else
2077 # define lt_ptr char *
2078 # define const
2079 #endif
2080
2081 /* The mapping between symbol names and symbols. */
2082 const struct {
2083   const char *name;
2084   lt_ptr address;
2085 }
2086 lt_preloaded_symbols[] =
2087 {
2088 EOF
2089           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2090           cat <<\EOF >> conftest.$ac_ext
2091   {0, (lt_ptr) 0}
2092 };
2093
2094 #ifdef __cplusplus
2095 }
2096 #endif
2097 EOF
2098           # Now try linking the two files.
2099           mv conftest.$ac_objext conftstm.$ac_objext
2100           save_LIBS="$LIBS"
2101           save_CFLAGS="$CFLAGS"
2102           LIBS="conftstm.$ac_objext"
2103           CFLAGS="$CFLAGS$no_builtin_flag"
2104           if { (eval echo configure:2105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2105             pipe_works=yes
2106           fi
2107           LIBS="$save_LIBS"
2108           CFLAGS="$save_CFLAGS"
2109         else
2110           echo "cannot find nm_test_func in $nlist" >&5
2111         fi
2112       else
2113         echo "cannot find nm_test_var in $nlist" >&5
2114       fi
2115     else
2116       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2117     fi
2118   else
2119     echo "$progname: failed program was:" >&5
2120     cat conftest.$ac_ext >&5
2121   fi
2122   rm -f conftest* conftst*
2123
2124   # Do not use the global_symbol_pipe unless it works.
2125   if test "$pipe_works" = yes; then
2126     break
2127   else
2128     lt_cv_sys_global_symbol_pipe=
2129   fi
2130 done
2131
2132 fi
2133
2134 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2135 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2136   global_symbol_to_cdecl=
2137   global_symbol_to_c_name_address=
2138 else
2139   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2140   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2141 fi
2142 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2143 then
2144   echo "$ac_t""failed" 1>&6
2145 else
2146   echo "$ac_t""ok" 1>&6
2147 fi
2148
2149 for ac_hdr in dlfcn.h
2150 do
2151 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2152 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2153 echo "configure:2154: checking for $ac_hdr" >&5
2154 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2155   echo $ac_n "(cached) $ac_c" 1>&6
2156 else
2157   cat > conftest.$ac_ext <<EOF
2158 #line 2159 "configure"
2159 #include "confdefs.h"
2160 #include <$ac_hdr>
2161 EOF
2162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2163 { (eval echo configure:2164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2165 if test -z "$ac_err"; then
2166   rm -rf conftest*
2167   eval "ac_cv_header_$ac_safe=yes"
2168 else
2169   echo "$ac_err" >&5
2170   echo "configure: failed program was:" >&5
2171   cat conftest.$ac_ext >&5
2172   rm -rf conftest*
2173   eval "ac_cv_header_$ac_safe=no"
2174 fi
2175 rm -f conftest*
2176 fi
2177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2178   echo "$ac_t""yes" 1>&6
2179     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2180   cat >> confdefs.h <<EOF
2181 #define $ac_tr_hdr 1
2182 EOF
2183  
2184 else
2185   echo "$ac_t""no" 1>&6
2186 fi
2187 done
2188
2189
2190
2191
2192
2193 # Only perform the check for file, if the check method requires it
2194 case $deplibs_check_method in
2195 file_magic*)
2196   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2197     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2198 echo "configure:2199: checking for ${ac_tool_prefix}file" >&5
2199 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2200   echo $ac_n "(cached) $ac_c" 1>&6
2201 else
2202   case $MAGIC_CMD in
2203   /*)
2204   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2205   ;;
2206   ?:/*)
2207   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2208   ;;
2209   *)
2210   ac_save_MAGIC_CMD="$MAGIC_CMD"
2211   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2212   ac_dummy="/usr/bin:$PATH"
2213   for ac_dir in $ac_dummy; do
2214     test -z "$ac_dir" && ac_dir=.
2215     if test -f $ac_dir/${ac_tool_prefix}file; then
2216       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2217       if test -n "$file_magic_test_file"; then
2218         case $deplibs_check_method in
2219         "file_magic "*)
2220           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2221           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2222           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2223             egrep "$file_magic_regex" > /dev/null; then
2224             :
2225           else
2226             cat <<EOF 1>&2
2227
2228 *** Warning: the command libtool uses to detect shared libraries,
2229 *** $file_magic_cmd, produces output that libtool cannot recognize.
2230 *** The result is that libtool may fail to recognize shared libraries
2231 *** as such.  This will affect the creation of libtool libraries that
2232 *** depend on shared libraries, but programs linked with such libtool
2233 *** libraries will work regardless of this problem.  Nevertheless, you
2234 *** may want to report the problem to your system manager and/or to
2235 *** bug-libtool@gnu.org
2236
2237 EOF
2238           fi ;;
2239         esac
2240       fi
2241       break
2242     fi
2243   done
2244   IFS="$ac_save_ifs"
2245   MAGIC_CMD="$ac_save_MAGIC_CMD"
2246   ;;
2247 esac
2248 fi
2249
2250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2251 if test -n "$MAGIC_CMD"; then
2252   echo "$ac_t""$MAGIC_CMD" 1>&6
2253 else
2254   echo "$ac_t""no" 1>&6
2255 fi
2256
2257 if test -z "$lt_cv_path_MAGIC_CMD"; then
2258   if test -n "$ac_tool_prefix"; then
2259     echo $ac_n "checking for file""... $ac_c" 1>&6
2260 echo "configure:2261: checking for file" >&5
2261 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2262   echo $ac_n "(cached) $ac_c" 1>&6
2263 else
2264   case $MAGIC_CMD in
2265   /*)
2266   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2267   ;;
2268   ?:/*)
2269   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2270   ;;
2271   *)
2272   ac_save_MAGIC_CMD="$MAGIC_CMD"
2273   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2274   ac_dummy="/usr/bin:$PATH"
2275   for ac_dir in $ac_dummy; do
2276     test -z "$ac_dir" && ac_dir=.
2277     if test -f $ac_dir/file; then
2278       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2279       if test -n "$file_magic_test_file"; then
2280         case $deplibs_check_method in
2281         "file_magic "*)
2282           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2283           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2284           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2285             egrep "$file_magic_regex" > /dev/null; then
2286             :
2287           else
2288             cat <<EOF 1>&2
2289
2290 *** Warning: the command libtool uses to detect shared libraries,
2291 *** $file_magic_cmd, produces output that libtool cannot recognize.
2292 *** The result is that libtool may fail to recognize shared libraries
2293 *** as such.  This will affect the creation of libtool libraries that
2294 *** depend on shared libraries, but programs linked with such libtool
2295 *** libraries will work regardless of this problem.  Nevertheless, you
2296 *** may want to report the problem to your system manager and/or to
2297 *** bug-libtool@gnu.org
2298
2299 EOF
2300           fi ;;
2301         esac
2302       fi
2303       break
2304     fi
2305   done
2306   IFS="$ac_save_ifs"
2307   MAGIC_CMD="$ac_save_MAGIC_CMD"
2308   ;;
2309 esac
2310 fi
2311
2312 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2313 if test -n "$MAGIC_CMD"; then
2314   echo "$ac_t""$MAGIC_CMD" 1>&6
2315 else
2316   echo "$ac_t""no" 1>&6
2317 fi
2318
2319   else
2320     MAGIC_CMD=:
2321   fi
2322 fi
2323
2324   fi
2325   ;;
2326 esac
2327
2328 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2329 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2331 echo "configure:2332: checking for $ac_word" >&5
2332 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2333   echo $ac_n "(cached) $ac_c" 1>&6
2334 else
2335   if test -n "$RANLIB"; then
2336   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2337 else
2338   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2339   ac_dummy="$PATH"
2340   for ac_dir in $ac_dummy; do
2341     test -z "$ac_dir" && ac_dir=.
2342     if test -f $ac_dir/$ac_word; then
2343       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2344       break
2345     fi
2346   done
2347   IFS="$ac_save_ifs"
2348 fi
2349 fi
2350 RANLIB="$ac_cv_prog_RANLIB"
2351 if test -n "$RANLIB"; then
2352   echo "$ac_t""$RANLIB" 1>&6
2353 else
2354   echo "$ac_t""no" 1>&6
2355 fi
2356
2357
2358 if test -z "$ac_cv_prog_RANLIB"; then
2359 if test -n "$ac_tool_prefix"; then
2360   # Extract the first word of "ranlib", so it can be a program name with args.
2361 set dummy ranlib; ac_word=$2
2362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2363 echo "configure:2364: checking for $ac_word" >&5
2364 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2365   echo $ac_n "(cached) $ac_c" 1>&6
2366 else
2367   if test -n "$RANLIB"; then
2368   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2369 else
2370   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2371   ac_dummy="$PATH"
2372   for ac_dir in $ac_dummy; do
2373     test -z "$ac_dir" && ac_dir=.
2374     if test -f $ac_dir/$ac_word; then
2375       ac_cv_prog_RANLIB="ranlib"
2376       break
2377     fi
2378   done
2379   IFS="$ac_save_ifs"
2380   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2381 fi
2382 fi
2383 RANLIB="$ac_cv_prog_RANLIB"
2384 if test -n "$RANLIB"; then
2385   echo "$ac_t""$RANLIB" 1>&6
2386 else
2387   echo "$ac_t""no" 1>&6
2388 fi
2389
2390 else
2391   RANLIB=":"
2392 fi
2393 fi
2394
2395 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2396 set dummy ${ac_tool_prefix}strip; ac_word=$2
2397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2398 echo "configure:2399: checking for $ac_word" >&5
2399 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2400   echo $ac_n "(cached) $ac_c" 1>&6
2401 else
2402   if test -n "$STRIP"; then
2403   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2404 else
2405   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2406   ac_dummy="$PATH"
2407   for ac_dir in $ac_dummy; do
2408     test -z "$ac_dir" && ac_dir=.
2409     if test -f $ac_dir/$ac_word; then
2410       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2411       break
2412     fi
2413   done
2414   IFS="$ac_save_ifs"
2415 fi
2416 fi
2417 STRIP="$ac_cv_prog_STRIP"
2418 if test -n "$STRIP"; then
2419   echo "$ac_t""$STRIP" 1>&6
2420 else
2421   echo "$ac_t""no" 1>&6
2422 fi
2423
2424
2425 if test -z "$ac_cv_prog_STRIP"; then
2426 if test -n "$ac_tool_prefix"; then
2427   # Extract the first word of "strip", so it can be a program name with args.
2428 set dummy strip; ac_word=$2
2429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2430 echo "configure:2431: checking for $ac_word" >&5
2431 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2432   echo $ac_n "(cached) $ac_c" 1>&6
2433 else
2434   if test -n "$STRIP"; then
2435   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2436 else
2437   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2438   ac_dummy="$PATH"
2439   for ac_dir in $ac_dummy; do
2440     test -z "$ac_dir" && ac_dir=.
2441     if test -f $ac_dir/$ac_word; then
2442       ac_cv_prog_STRIP="strip"
2443       break
2444     fi
2445   done
2446   IFS="$ac_save_ifs"
2447   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2448 fi
2449 fi
2450 STRIP="$ac_cv_prog_STRIP"
2451 if test -n "$STRIP"; then
2452   echo "$ac_t""$STRIP" 1>&6
2453 else
2454   echo "$ac_t""no" 1>&6
2455 fi
2456
2457 else
2458   STRIP=":"
2459 fi
2460 fi
2461
2462
2463 enable_dlopen=no
2464 enable_win32_dll=no
2465
2466 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2467 if test "${enable_libtool_lock+set}" = set; then
2468   enableval="$enable_libtool_lock"
2469   :
2470 fi
2471
2472 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2473
2474 # Some flags need to be propagated to the compiler or linker for good
2475 # libtool support.
2476 case $host in
2477 *-*-irix6*)
2478   # Find out which ABI we are using.
2479   echo '#line 2480 "configure"' > conftest.$ac_ext
2480   if { (eval echo configure:2481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2481     case `/usr/bin/file conftest.$ac_objext` in
2482     *32-bit*)
2483       LD="${LD-ld} -32"
2484       ;;
2485     *N32*)
2486       LD="${LD-ld} -n32"
2487       ;;
2488     *64-bit*)
2489       LD="${LD-ld} -64"
2490       ;;
2491     esac
2492   fi
2493   rm -rf conftest*
2494   ;;
2495
2496 *-*-sco3.2v5*)
2497   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2498   SAVE_CFLAGS="$CFLAGS"
2499   CFLAGS="$CFLAGS -belf"
2500   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2501 echo "configure:2502: checking whether the C compiler needs -belf" >&5
2502 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2503   echo $ac_n "(cached) $ac_c" 1>&6
2504 else
2505   
2506      ac_ext=c
2507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2511 cross_compiling=$ac_cv_prog_cc_cross
2512
2513      cat > conftest.$ac_ext <<EOF
2514 #line 2515 "configure"
2515 #include "confdefs.h"
2516
2517 int main() {
2518
2519 ; return 0; }
2520 EOF
2521 if { (eval echo configure:2522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2522   rm -rf conftest*
2523   lt_cv_cc_needs_belf=yes
2524 else
2525   echo "configure: failed program was:" >&5
2526   cat conftest.$ac_ext >&5
2527   rm -rf conftest*
2528   lt_cv_cc_needs_belf=no
2529 fi
2530 rm -f conftest*
2531      ac_ext=c
2532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2533 ac_cpp='$CPP $CPPFLAGS'
2534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2535 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2536 cross_compiling=$ac_cv_prog_cc_cross
2537
2538 fi
2539
2540 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2541   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2542     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2543     CFLAGS="$SAVE_CFLAGS"
2544   fi
2545   ;;
2546
2547
2548 esac
2549
2550 # Sed substitution that helps us do robust quoting.  It backslashifies
2551 # metacharacters that are still active within double-quoted strings.
2552 Xsed='sed -e s/^X//'
2553 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2554
2555 # Same as above, but do not quote variable references.
2556 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2557
2558 # Sed substitution to delay expansion of an escaped shell variable in a
2559 # double_quote_subst'ed string.
2560 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2561
2562 # Constants:
2563 rm="rm -f"
2564
2565 # Global variables:
2566 default_ofile=libtool
2567 can_build_shared=yes
2568
2569 # All known linkers require a `.a' archive for static linking (except M$VC,
2570 # which needs '.lib').
2571 libext=a
2572 ltmain="$ac_aux_dir/ltmain.sh"
2573 ofile="$default_ofile"
2574 with_gnu_ld="$lt_cv_prog_gnu_ld"
2575 need_locks="$enable_libtool_lock"
2576
2577 old_CC="$CC"
2578 old_CFLAGS="$CFLAGS"
2579
2580 # Set sane defaults for various variables
2581 test -z "$AR" && AR=ar
2582 test -z "$AR_FLAGS" && AR_FLAGS=cru
2583 test -z "$AS" && AS=as
2584 test -z "$CC" && CC=cc
2585 test -z "$DLLTOOL" && DLLTOOL=dlltool
2586 test -z "$LD" && LD=ld
2587 test -z "$LN_S" && LN_S="ln -s"
2588 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2589 test -z "$NM" && NM=nm
2590 test -z "$OBJDUMP" && OBJDUMP=objdump
2591 test -z "$RANLIB" && RANLIB=:
2592 test -z "$STRIP" && STRIP=:
2593 test -z "$ac_objext" && ac_objext=o
2594
2595 if test x"$host" != x"$build"; then
2596   ac_tool_prefix=${host_alias}-
2597 else
2598   ac_tool_prefix=
2599 fi
2600
2601 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2602 case $host_os in
2603 linux-gnu*) ;;
2604 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2605 esac
2606
2607 case $host_os in
2608 aix3*)
2609   # AIX sometimes has problems with the GCC collect2 program.  For some
2610   # reason, if we set the COLLECT_NAMES environment variable, the problems
2611   # vanish in a puff of smoke.
2612   if test "X${COLLECT_NAMES+set}" != Xset; then
2613     COLLECT_NAMES=
2614     export COLLECT_NAMES
2615   fi
2616   ;;
2617 esac
2618
2619 # Determine commands to create old-style static archives.
2620 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2621 old_postinstall_cmds='chmod 644 $oldlib'
2622 old_postuninstall_cmds=
2623
2624 if test -n "$RANLIB"; then
2625   case $host_os in
2626   openbsd*)
2627     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2628     ;;
2629   *)
2630     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2631     ;;
2632   esac
2633   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2634 fi
2635
2636 # Allow CC to be a program name with arguments.
2637 set dummy $CC
2638 compiler="$2"
2639
2640 ## FIXME: this should be a separate macro
2641 ##
2642 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2643 echo "configure:2644: checking for objdir" >&5
2644 rm -f .libs 2>/dev/null
2645 mkdir .libs 2>/dev/null
2646 if test -d .libs; then
2647   objdir=.libs
2648 else
2649   # MS-DOS does not allow filenames that begin with a dot.
2650   objdir=_libs
2651 fi
2652 rmdir .libs 2>/dev/null
2653 echo "$ac_t""$objdir" 1>&6
2654 ##
2655 ## END FIXME
2656
2657
2658 ## FIXME: this should be a separate macro
2659 ##
2660 # Check whether --with-pic or --without-pic was given.
2661 if test "${with_pic+set}" = set; then
2662   withval="$with_pic"
2663   pic_mode="$withval"
2664 else
2665   pic_mode=default
2666 fi
2667
2668 test -z "$pic_mode" && pic_mode=default
2669
2670 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2671 # in isolation, and that seeing it set (from the cache) indicates that
2672 # the associated values are set (in the cache) correctly too.
2673 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2674 echo "configure:2675: checking for $compiler option to produce PIC" >&5
2675 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2676   echo $ac_n "(cached) $ac_c" 1>&6
2677 else
2678    lt_cv_prog_cc_pic=
2679   lt_cv_prog_cc_shlib=
2680   lt_cv_prog_cc_wl=
2681   lt_cv_prog_cc_static=
2682   lt_cv_prog_cc_no_builtin=
2683   lt_cv_prog_cc_can_build_shared=$can_build_shared
2684
2685   if test "$GCC" = yes; then
2686     lt_cv_prog_cc_wl='-Wl,'
2687     lt_cv_prog_cc_static='-static'
2688
2689     case $host_os in
2690     aix*)
2691       # Below there is a dirty hack to force normal static linking with -ldl
2692       # The problem is because libdl dynamically linked with both libc and
2693       # libC (AIX C++ library), which obviously doesn't included in libraries
2694       # list by gcc. This cause undefined symbols with -static flags.
2695       # This hack allows C programs to be linked with "-static -ldl", but
2696       # not sure about C++ programs.
2697       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2698       ;;
2699     amigaos*)
2700       # FIXME: we need at least 68020 code to build shared libraries, but
2701       # adding the `-m68020' flag to GCC prevents building anything better,
2702       # like `-m68040'.
2703       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2704       ;;
2705     beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
2706       # PIC is the default for these OSes.
2707       ;;
2708     darwin* | rhapsody*)
2709       # PIC is the default on this platform
2710       # Common symbols not allowed in MH_DYLIB files
2711       lt_cv_prog_cc_pic='-fno-common'
2712       ;;
2713     cygwin* | mingw* | pw32* | os2*)
2714       # This hack is so that the source file can tell whether it is being
2715       # built for inclusion in a dll (and should export symbols for example).
2716       lt_cv_prog_cc_pic='-DDLL_EXPORT'
2717       ;;
2718     sysv4*MP*)
2719       if test -d /usr/nec; then
2720          lt_cv_prog_cc_pic=-Kconform_pic
2721       fi
2722       ;;
2723     *)
2724       lt_cv_prog_cc_pic='-fPIC'
2725       ;;
2726     esac
2727   else
2728     # PORTME Check for PIC flags for the system compiler.
2729     case $host_os in
2730     aix3* | aix4* | aix5*)
2731       lt_cv_prog_cc_wl='-Wl,'
2732       # All AIX code is PIC.
2733       if test "$host_cpu" = ia64; then
2734         # AIX 5 now supports IA64 processor
2735         lt_cv_prog_cc_static='-Bstatic'
2736       else
2737         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2738       fi
2739       ;;
2740
2741     hpux9* | hpux10* | hpux11*)
2742       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2743       lt_cv_prog_cc_wl='-Wl,'
2744       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2745       lt_cv_prog_cc_pic='+Z'
2746       ;;
2747
2748     irix5* | irix6*)
2749       lt_cv_prog_cc_wl='-Wl,'
2750       lt_cv_prog_cc_static='-non_shared'
2751       # PIC (with -KPIC) is the default.
2752       ;;
2753
2754     cygwin* | mingw* | pw32* | os2*)
2755       # This hack is so that the source file can tell whether it is being
2756       # built for inclusion in a dll (and should export symbols for example).
2757       lt_cv_prog_cc_pic='-DDLL_EXPORT'
2758       ;;
2759
2760     newsos6)
2761       lt_cv_prog_cc_pic='-KPIC'
2762       lt_cv_prog_cc_static='-Bstatic'
2763       ;;
2764
2765     osf3* | osf4* | osf5*)
2766       # All OSF/1 code is PIC.
2767       lt_cv_prog_cc_wl='-Wl,'
2768       lt_cv_prog_cc_static='-non_shared'
2769       ;;
2770
2771     sco3.2v5*)
2772       lt_cv_prog_cc_pic='-Kpic'
2773       lt_cv_prog_cc_static='-dn'
2774       lt_cv_prog_cc_shlib='-belf'
2775       ;;
2776
2777     solaris*)
2778       lt_cv_prog_cc_pic='-KPIC'
2779       lt_cv_prog_cc_static='-Bstatic'
2780       lt_cv_prog_cc_wl='-Wl,'
2781       ;;
2782
2783     sunos4*)
2784       lt_cv_prog_cc_pic='-PIC'
2785       lt_cv_prog_cc_static='-Bstatic'
2786       lt_cv_prog_cc_wl='-Qoption ld '
2787       ;;
2788
2789     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2790       lt_cv_prog_cc_pic='-KPIC'
2791       lt_cv_prog_cc_static='-Bstatic'
2792       if test "x$host_vendor" = xsni; then
2793         lt_cv_prog_cc_wl='-LD'
2794       else
2795         lt_cv_prog_cc_wl='-Wl,'
2796       fi
2797       ;;
2798
2799     uts4*)
2800       lt_cv_prog_cc_pic='-pic'
2801       lt_cv_prog_cc_static='-Bstatic'
2802       ;;
2803
2804     sysv4*MP*)
2805       if test -d /usr/nec ;then
2806         lt_cv_prog_cc_pic='-Kconform_pic'
2807         lt_cv_prog_cc_static='-Bstatic'
2808       fi
2809       ;;
2810
2811     *)
2812       lt_cv_prog_cc_can_build_shared=no
2813       ;;
2814     esac
2815   fi
2816
2817 fi
2818
2819 if test -z "$lt_cv_prog_cc_pic"; then
2820   echo "$ac_t""none" 1>&6
2821 else
2822   echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2823
2824   # Check to make sure the pic_flag actually works.
2825   echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2826 echo "configure:2827: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2827   if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2828   echo $ac_n "(cached) $ac_c" 1>&6
2829 else
2830       save_CFLAGS="$CFLAGS"
2831     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2832     cat > conftest.$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2835
2836 int main() {
2837
2838 ; return 0; }
2839 EOF
2840 if { (eval echo configure:2841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2841   rm -rf conftest*
2842         case $host_os in
2843       hpux9* | hpux10* | hpux11*)
2844         # On HP-UX, both CC and GCC only warn that PIC is supported... then
2845         # they create non-PIC objects.  So, if there were any warnings, we
2846         # assume that PIC is not supported.
2847         if test -s conftest.err; then
2848           lt_cv_prog_cc_pic_works=no
2849         else
2850           lt_cv_prog_cc_pic_works=yes
2851         fi
2852         ;;
2853       *)
2854         lt_cv_prog_cc_pic_works=yes
2855         ;;
2856       esac
2857     
2858 else
2859   echo "configure: failed program was:" >&5
2860   cat conftest.$ac_ext >&5
2861   rm -rf conftest*
2862         lt_cv_prog_cc_pic_works=no
2863     
2864 fi
2865 rm -f conftest*
2866     CFLAGS="$save_CFLAGS"
2867   
2868 fi
2869
2870
2871   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2872     lt_cv_prog_cc_pic=
2873     lt_cv_prog_cc_can_build_shared=no
2874   else
2875     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2876   fi
2877
2878   echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2879 fi
2880 ##
2881 ## END FIXME
2882
2883 # Check for any special shared library compilation flags.
2884 if test -n "$lt_cv_prog_cc_shlib"; then
2885   echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2886   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
2887   else
2888    echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2889     lt_cv_prog_cc_can_build_shared=no
2890   fi
2891 fi
2892
2893 ## FIXME: this should be a separate macro
2894 ##
2895 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2896 echo "configure:2897: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2897 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2898   echo $ac_n "(cached) $ac_c" 1>&6
2899 else
2900     lt_cv_prog_cc_static_works=no
2901   save_LDFLAGS="$LDFLAGS"
2902   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2903   cat > conftest.$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2906
2907 int main() {
2908
2909 ; return 0; }
2910 EOF
2911 if { (eval echo configure:2912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2912   rm -rf conftest*
2913   lt_cv_prog_cc_static_works=yes
2914 else
2915   echo "configure: failed program was:" >&5
2916   cat conftest.$ac_ext >&5
2917 fi
2918 rm -f conftest*
2919   LDFLAGS="$save_LDFLAGS"
2920
2921 fi
2922
2923
2924 # Belt *and* braces to stop my trousers falling down:
2925 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2926 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
2927
2928 pic_flag="$lt_cv_prog_cc_pic"
2929 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2930 wl="$lt_cv_prog_cc_wl"
2931 link_static_flag="$lt_cv_prog_cc_static"
2932 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2933 can_build_shared="$lt_cv_prog_cc_can_build_shared"
2934 ##
2935 ## END FIXME
2936
2937
2938 ## FIXME: this should be a separate macro
2939 ##
2940 # Check to see if options -o and -c are simultaneously supported by compiler
2941 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2942 echo "configure:2943: checking if $compiler supports -c -o file.$ac_objext" >&5
2943 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
2944   echo $ac_n "(cached) $ac_c" 1>&6
2945 else
2946   
2947 $rm -r conftest 2>/dev/null
2948 mkdir conftest
2949 cd conftest
2950 echo "int some_variable = 0;" > conftest.$ac_ext
2951 mkdir out
2952 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2953 # that will create temporary files in the current directory regardless of
2954 # the output directory.  Thus, making CWD read-only will cause this test
2955 # to fail, enabling locking or at least warning the user not to do parallel
2956 # builds.
2957 chmod -w .
2958 save_CFLAGS="$CFLAGS"
2959 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2960 compiler_c_o=no
2961 if { (eval echo configure:2962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2962   # The compiler can only warn and ignore the option if not recognized
2963   # So say no if there are warnings
2964   if test -s out/conftest.err; then
2965     lt_cv_compiler_c_o=no
2966   else
2967     lt_cv_compiler_c_o=yes
2968   fi
2969 else
2970   # Append any errors to the config.log.
2971   cat out/conftest.err 1>&5
2972   lt_cv_compiler_c_o=no
2973 fi
2974 CFLAGS="$save_CFLAGS"
2975 chmod u+w .
2976 $rm conftest* out/*
2977 rmdir out
2978 cd ..
2979 rmdir conftest
2980 $rm -r conftest 2>/dev/null
2981
2982 fi
2983
2984 compiler_c_o=$lt_cv_compiler_c_o
2985 echo "$ac_t""$compiler_c_o" 1>&6
2986
2987 if test x"$compiler_c_o" = x"yes"; then
2988   # Check to see if we can write to a .lo
2989   echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2990 echo "configure:2991: checking if $compiler supports -c -o file.lo" >&5
2991   if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
2992   echo $ac_n "(cached) $ac_c" 1>&6
2993 else
2994   
2995   lt_cv_compiler_o_lo=no
2996   save_CFLAGS="$CFLAGS"
2997   CFLAGS="$CFLAGS -c -o conftest.lo"
2998   save_objext="$ac_objext"
2999   ac_objext=lo
3000   cat > conftest.$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3003
3004 int main() {
3005 int some_variable = 0;
3006 ; return 0; }
3007 EOF
3008 if { (eval echo configure:3009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3009   rm -rf conftest*
3010       # The compiler can only warn and ignore the option if not recognized
3011     # So say no if there are warnings
3012     if test -s conftest.err; then
3013       lt_cv_compiler_o_lo=no
3014     else
3015       lt_cv_compiler_o_lo=yes
3016     fi
3017   
3018 else
3019   echo "configure: failed program was:" >&5
3020   cat conftest.$ac_ext >&5
3021 fi
3022 rm -f conftest*
3023   ac_objext="$save_objext"
3024   CFLAGS="$save_CFLAGS"
3025   
3026 fi
3027
3028   compiler_o_lo=$lt_cv_compiler_o_lo
3029   echo "$ac_t""$compiler_o_lo" 1>&6
3030 else
3031   compiler_o_lo=no
3032 fi
3033 ##
3034 ## END FIXME
3035
3036 ## FIXME: this should be a separate macro
3037 ##
3038 # Check to see if we can do hard links to lock some files if needed
3039 hard_links="nottested"
3040 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3041   # do not overwrite the value of need_locks provided by the user
3042   echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3043 echo "configure:3044: checking if we can lock with hard links" >&5
3044   hard_links=yes
3045   $rm conftest*
3046   ln conftest.a conftest.b 2>/dev/null && hard_links=no
3047   touch conftest.a
3048   ln conftest.a conftest.b 2>&5 || hard_links=no
3049   ln conftest.a conftest.b 2>/dev/null && hard_links=no
3050   echo "$ac_t""$hard_links" 1>&6
3051   if test "$hard_links" = no; then
3052     echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3053     need_locks=warn
3054   fi
3055 else
3056   need_locks=no
3057 fi
3058 ##
3059 ## END FIXME
3060
3061 ## FIXME: this should be a separate macro
3062 ##
3063 if test "$GCC" = yes; then
3064   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3065   echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3066 echo "configure:3067: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3067   echo "int some_variable = 0;" > conftest.$ac_ext
3068   save_CFLAGS="$CFLAGS"
3069   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3070   compiler_rtti_exceptions=no
3071   cat > conftest.$ac_ext <<EOF
3072 #line 3073 "configure"
3073 #include "confdefs.h"
3074
3075 int main() {
3076 int some_variable = 0;
3077 ; return 0; }
3078 EOF
3079 if { (eval echo configure:3080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3080   rm -rf conftest*
3081       # The compiler can only warn and ignore the option if not recognized
3082     # So say no if there are warnings
3083     if test -s conftest.err; then
3084       compiler_rtti_exceptions=no
3085     else
3086       compiler_rtti_exceptions=yes
3087     fi
3088   
3089 else
3090   echo "configure: failed program was:" >&5
3091   cat conftest.$ac_ext >&5
3092 fi
3093 rm -f conftest*
3094   CFLAGS="$save_CFLAGS"
3095   echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3096
3097   if test "$compiler_rtti_exceptions" = "yes"; then
3098     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3099   else
3100     no_builtin_flag=' -fno-builtin'
3101   fi
3102 fi
3103 ##
3104 ## END FIXME
3105
3106 ## FIXME: this should be a separate macro
3107 ##
3108 # See if the linker supports building shared libraries.
3109 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3110 echo "configure:3111: checking whether the linker ($LD) supports shared libraries" >&5
3111
3112 allow_undefined_flag=
3113 no_undefined_flag=
3114 need_lib_prefix=unknown
3115 need_version=unknown
3116 # when you set need_version to no, make sure it does not cause -set_version
3117 # flags to be left without arguments
3118 archive_cmds=
3119 archive_expsym_cmds=
3120 old_archive_from_new_cmds=
3121 old_archive_from_expsyms_cmds=
3122 export_dynamic_flag_spec=
3123 whole_archive_flag_spec=
3124 thread_safe_flag_spec=
3125 hardcode_into_libs=no
3126 hardcode_libdir_flag_spec=
3127 hardcode_libdir_separator=
3128 hardcode_direct=no
3129 hardcode_minus_L=no
3130 hardcode_shlibpath_var=unsupported
3131 runpath_var=
3132 link_all_deplibs=unknown
3133 always_export_symbols=no
3134 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3135 # include_expsyms should be a list of space-separated symbols to be *always*
3136 # included in the symbol list
3137 include_expsyms=
3138 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3139 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3140 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3141 # as well as any symbol that contains `d'.
3142 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3143 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3144 # platforms (ab)use it in PIC code, but their linkers get confused if
3145 # the symbol is explicitly referenced.  Since portable code cannot
3146 # rely on this symbol name, it's probably fine to never include it in
3147 # preloaded symbol tables.
3148 extract_expsyms_cmds=
3149
3150 case $host_os in
3151 cygwin* | mingw* | pw32*)
3152   # FIXME: the MSVC++ port hasn't been tested in a loooong time
3153   # When not using gcc, we currently assume that we are using
3154   # Microsoft Visual C++.
3155   if test "$GCC" != yes; then
3156     with_gnu_ld=no
3157   fi
3158   ;;
3159 openbsd*)
3160   with_gnu_ld=no
3161   ;;
3162 esac
3163
3164 ld_shlibs=yes
3165 if test "$with_gnu_ld" = yes; then
3166   # If archive_cmds runs LD, not CC, wlarc should be empty
3167   wlarc='${wl}'
3168
3169   # See if GNU ld supports shared libraries.
3170   case $host_os in
3171   aix3* | aix4* | aix5*)
3172     # On AIX, the GNU linker is very broken
3173     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3174     ld_shlibs=no
3175     cat <<EOF 1>&2
3176
3177 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3178 *** to be unable to reliably create shared libraries on AIX.
3179 *** Therefore, libtool is disabling shared libraries support.  If you
3180 *** really care for shared libraries, you may want to modify your PATH
3181 *** so that a non-GNU linker is found, and then restart.
3182
3183 EOF
3184     ;;
3185
3186   amigaos*)
3187     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)'
3188     hardcode_libdir_flag_spec='-L$libdir'
3189     hardcode_minus_L=yes
3190
3191     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3192     # that the semantics of dynamic libraries on AmigaOS, at least up
3193     # to version 4, is to share data among multiple programs linked
3194     # with the same dynamic library.  Since this doesn't match the
3195     # behavior of shared libraries on other platforms, we can use
3196     # them.
3197     ld_shlibs=no
3198     ;;
3199
3200   beos*)
3201     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3202       allow_undefined_flag=unsupported
3203       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3204       # support --undefined.  This deserves some investigation.  FIXME
3205       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3206     else
3207       ld_shlibs=no
3208     fi
3209     ;;
3210
3211   cygwin* | mingw* | pw32*)
3212     # hardcode_libdir_flag_spec is actually meaningless, as there is
3213     # no search path for DLLs.
3214     hardcode_libdir_flag_spec='-L$libdir'
3215     allow_undefined_flag=unsupported
3216     always_export_symbols=yes
3217
3218     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3219       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3220       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3221       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3222       else $CC -o impgen impgen.c ; fi)~
3223       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3224
3225     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3226
3227     # cygwin and mingw dlls have different entry points and sets of symbols
3228     # to exclude.
3229     # FIXME: what about values for MSVC?
3230     dll_entry=__cygwin_dll_entry@12
3231     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3232     case $host_os in
3233     mingw*)
3234       # mingw values
3235       dll_entry=_DllMainCRTStartup@12
3236       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3237       ;;
3238     esac
3239
3240     # mingw and cygwin differ, and it's simplest to just exclude the union
3241     # of the two symbol sets.
3242     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3243
3244     # recent cygwin and mingw systems supply a stub DllMain which the user
3245     # can override, but on older systems we have to supply one (in ltdll.c)
3246     if test "x$lt_cv_need_dllmain" = "xyes"; then
3247       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3248       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
3249         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3250     else
3251       ltdll_obj=
3252       ltdll_cmds=
3253     fi
3254
3255     # Extract the symbol export list from an `--export-all' def file,
3256     # then regenerate the def file from the symbol export list, so that
3257     # the compiled dll only exports the symbol export list.
3258     # Be careful not to strip the DATA tag left be newer dlltools.
3259     export_symbols_cmds="$ltdll_cmds"'
3260       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3261       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3262
3263     # If the export-symbols file already is a .def file (1st line
3264     # is EXPORTS), use it as is.
3265     # If DATA tags from a recent dlltool are present, honour them!
3266     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3267         cp $export_symbols $output_objdir/$soname-def;
3268       else
3269         echo EXPORTS > $output_objdir/$soname-def;
3270         _lt_hint=1;
3271         cat $export_symbols | while read symbol; do
3272          set dummy \$symbol;
3273          case \$# in
3274            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3275            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3276          esac;
3277          _lt_hint=`expr 1 + \$_lt_hint`;
3278         done;
3279       fi~
3280       '"$ltdll_cmds"'
3281       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3282       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
3283       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3284       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
3285       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3286     ;;
3287
3288   netbsd*)
3289     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3290       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3291       wlarc=
3292     else
3293       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3294       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3295     fi
3296     ;;
3297
3298   solaris* | sysv5*)
3299     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3300       ld_shlibs=no
3301       cat <<EOF 1>&2
3302
3303 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3304 *** create shared libraries on Solaris systems.  Therefore, libtool
3305 *** is disabling shared libraries support.  We urge you to upgrade GNU
3306 *** binutils to release 2.9.1 or newer.  Another option is to modify
3307 *** your PATH or compiler configuration so that the native linker is
3308 *** used, and then restart.
3309
3310 EOF
3311     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3312       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3313       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3314     else
3315       ld_shlibs=no
3316     fi
3317     ;;
3318
3319   sunos4*)
3320     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3321     wlarc=
3322     hardcode_direct=yes
3323     hardcode_shlibpath_var=no
3324     ;;
3325
3326   *)
3327     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3328       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3329       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3330     else
3331       ld_shlibs=no
3332     fi
3333     ;;
3334   esac
3335
3336   if test "$ld_shlibs" = yes; then
3337     runpath_var=LD_RUN_PATH
3338     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3339     export_dynamic_flag_spec='${wl}--export-dynamic'
3340     case $host_os in
3341     cygwin* | mingw* | pw32*)
3342       # dlltool doesn't understand --whole-archive et. al.
3343       whole_archive_flag_spec=
3344       ;;
3345     *)
3346       # ancient GNU ld didn't support --whole-archive et. al.
3347       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3348         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3349       else
3350         whole_archive_flag_spec=
3351       fi
3352       ;;
3353     esac
3354   fi
3355 else
3356   # PORTME fill in a description of your system's linker (not GNU ld)
3357   case $host_os in
3358   aix3*)
3359     allow_undefined_flag=unsupported
3360     always_export_symbols=yes
3361     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'
3362     # Note: this linker hardcodes the directories in LIBPATH if there
3363     # are no directories specified by -L.
3364     hardcode_minus_L=yes
3365     if test "$GCC" = yes && test -z "$link_static_flag"; then
3366       # Neither direct hardcoding nor static linking is supported with a
3367       # broken collect2.
3368       hardcode_direct=unsupported
3369     fi
3370     ;;
3371
3372   aix4* | aix5*)
3373     if test "$host_cpu" = ia64; then
3374       # On IA64, the linker does run time linking by default, so we don't
3375       # have to do anything special.
3376       aix_use_runtimelinking=no
3377       exp_sym_flag='-Bexport'
3378       no_entry_flag=""
3379     else
3380       aix_use_runtimelinking=no
3381
3382       # Test if we are trying to use run time linking or normal
3383       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3384       # need to do runtime linking.
3385       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3386         for ld_flag in $LDFLAGS; do
3387           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3388             aix_use_runtimelinking=yes
3389             break
3390           fi
3391         done
3392       esac
3393
3394       exp_sym_flag='-bexport'
3395       no_entry_flag='-bnoentry'
3396     fi
3397
3398     # When large executables or shared objects are built, AIX ld can
3399     # have problems creating the table of contents.  If linking a library
3400     # or program results in "error TOC overflow" add -mminimal-toc to
3401     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
3402     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3403
3404     hardcode_direct=yes
3405     archive_cmds=''
3406     hardcode_libdir_separator=':'
3407     if test "$GCC" = yes; then
3408       case $host_os in aix4.[012]|aix4.[012].*)
3409         collect2name=`${CC} -print-prog-name=collect2`
3410         if test -f "$collect2name" && \
3411           strings "$collect2name" | grep resolve_lib_name >/dev/null
3412         then
3413           # We have reworked collect2
3414           hardcode_direct=yes
3415         else
3416           # We have old collect2
3417           hardcode_direct=unsupported
3418           # It fails to find uninstalled libraries when the uninstalled
3419           # path is not listed in the libpath.  Setting hardcode_minus_L
3420           # to unsupported forces relinking
3421           hardcode_minus_L=yes
3422           hardcode_libdir_flag_spec='-L$libdir'
3423           hardcode_libdir_separator=
3424         fi
3425       esac
3426
3427       shared_flag='-shared'
3428     else
3429       # not using gcc
3430       if test "$host_cpu" = ia64; then
3431         shared_flag='${wl}-G'
3432       else
3433         if test "$aix_use_runtimelinking" = yes; then
3434           shared_flag='${wl}-G'
3435         else
3436           shared_flag='${wl}-bM:SRE'
3437         fi
3438       fi
3439     fi
3440
3441     # It seems that -bexpall can do strange things, so it is better to
3442     # generate a list of symbols to export.
3443     always_export_symbols=yes
3444     if test "$aix_use_runtimelinking" = yes; then
3445       # Warning - without using the other runtime loading flags (-brtl),
3446       # -berok will link without error, but may produce a broken library.
3447       allow_undefined_flag='-berok'
3448       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3449       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"
3450     else
3451       if test "$host_cpu" = ia64; then
3452         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3453         allow_undefined_flag="-z nodefs"
3454         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3455       else
3456         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3457         # Warning - without using the other run time loading flags,
3458         # -berok will link without error, but may produce a broken library.
3459         allow_undefined_flag='${wl}-berok'
3460         # This is a bit strange, but is similar to how AIX traditionally builds
3461         # it's shared libraries.
3462         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
3463       fi
3464     fi
3465     ;;
3466
3467   amigaos*)
3468     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)'
3469     hardcode_libdir_flag_spec='-L$libdir'
3470     hardcode_minus_L=yes
3471     # see comment about different semantics on the GNU ld section
3472     ld_shlibs=no
3473     ;;
3474
3475   cygwin* | mingw* | pw32*)
3476     # When not using gcc, we currently assume that we are using
3477     # Microsoft Visual C++.
3478     # hardcode_libdir_flag_spec is actually meaningless, as there is
3479     # no search path for DLLs.
3480     hardcode_libdir_flag_spec=' '
3481     allow_undefined_flag=unsupported
3482     # Tell ltmain to make .lib files, not .a files.
3483     libext=lib
3484     # FIXME: Setting linknames here is a bad hack.
3485     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3486     # The linker will automatically build a .lib file if we build a DLL.
3487     old_archive_from_new_cmds='true'
3488     # FIXME: Should let the user specify the lib program.
3489     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3490     fix_srcfile_path='`cygpath -w "$srcfile"`'
3491     ;;
3492
3493   darwin* | rhapsody*)
3494     case "$host_os" in
3495     rhapsody* | darwin1.[012])
3496       allow_undefined_flag='-undefined suppress'
3497       ;;
3498     *) # Darwin 1.3 on
3499       allow_undefined_flag='-flat_namespace -undefined suppress'
3500       ;;
3501     esac
3502     # FIXME: Relying on posixy $() will cause problems for
3503     #        cross-compilation, but unfortunately the echo tests do not
3504     #        yet detect zsh echo's removal of \ escapes.
3505     archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
3506     # We need to add '_' to the symbols in $export_symbols first
3507     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3508     hardcode_direct=yes
3509     hardcode_shlibpath_var=no
3510     whole_archive_flag_spec='-all_load $convenience'
3511     ;;
3512
3513   freebsd1*)
3514     ld_shlibs=no
3515     ;;
3516
3517   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3518   # support.  Future versions do this automatically, but an explicit c++rt0.o
3519   # does not break anything, and helps significantly (at the cost of a little
3520   # extra space).
3521   freebsd2.2*)
3522     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3523     hardcode_libdir_flag_spec='-R$libdir'
3524     hardcode_direct=yes
3525     hardcode_shlibpath_var=no
3526     ;;
3527
3528   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3529   freebsd2*)
3530     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3531     hardcode_direct=yes
3532     hardcode_minus_L=yes
3533     hardcode_shlibpath_var=no
3534     ;;
3535
3536   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3537   freebsd*)
3538     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3539     hardcode_libdir_flag_spec='-R$libdir'
3540     hardcode_direct=yes
3541     hardcode_shlibpath_var=no
3542     ;;
3543
3544   hpux9* | hpux10* | hpux11*)
3545     case $host_os in
3546     hpux9*) 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' ;;
3547     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3548     esac
3549     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3550     hardcode_libdir_separator=:
3551     hardcode_direct=yes
3552     hardcode_minus_L=yes # Not in the search PATH, but as the default
3553                          # location of the library.
3554     export_dynamic_flag_spec='${wl}-E'
3555     ;;
3556
3557   irix5* | irix6*)
3558     if test "$GCC" = yes; then
3559       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'
3560     else
3561       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'
3562     fi
3563     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3564     hardcode_libdir_separator=:
3565     link_all_deplibs=yes
3566     ;;
3567
3568   netbsd*)
3569     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3570       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
3571     else
3572       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
3573     fi
3574     hardcode_libdir_flag_spec='-R$libdir'
3575     hardcode_direct=yes
3576     hardcode_shlibpath_var=no
3577     ;;
3578
3579   newsos6)
3580     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3581     hardcode_direct=yes
3582     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3583     hardcode_libdir_separator=:
3584     hardcode_shlibpath_var=no
3585     ;;
3586
3587   openbsd*)
3588     hardcode_direct=yes
3589     hardcode_shlibpath_var=no
3590     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3591       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3592       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3593       export_dynamic_flag_spec='${wl}-E'
3594     else
3595       case "$host_os" in
3596       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3597         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3598         hardcode_libdir_flag_spec='-R$libdir'
3599         ;;
3600       *)
3601         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3602         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3603         ;;
3604       esac
3605     fi
3606     ;;
3607
3608   os2*)
3609     hardcode_libdir_flag_spec='-L$libdir'
3610     hardcode_minus_L=yes
3611     allow_undefined_flag=unsupported
3612     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'
3613     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3614     ;;
3615
3616   osf3*)
3617     if test "$GCC" = yes; then
3618       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3619       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'
3620     else
3621       allow_undefined_flag=' -expect_unresolved \*'
3622       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'
3623     fi
3624     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3625     hardcode_libdir_separator=:
3626     ;;
3627
3628   osf4* | osf5*)        # as osf3* with the addition of -msym flag
3629     if test "$GCC" = yes; then
3630       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3631       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'
3632       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3633     else
3634       allow_undefined_flag=' -expect_unresolved \*'
3635       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'
3636       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3637       $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'
3638
3639       #Both c and cxx compiler support -rpath directly
3640       hardcode_libdir_flag_spec='-rpath $libdir'
3641     fi
3642     hardcode_libdir_separator=:
3643     ;;
3644
3645   sco3.2v5*)
3646     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3647     hardcode_shlibpath_var=no
3648     runpath_var=LD_RUN_PATH
3649     hardcode_runpath_var=yes
3650     export_dynamic_flag_spec='${wl}-Bexport'
3651     ;;
3652
3653   solaris*)
3654     # gcc --version < 3.0 without binutils cannot create self contained
3655     # shared libraries reliably, requiring libgcc.a to resolve some of
3656     # the object symbols generated in some cases.  Libraries that use
3657     # assert need libgcc.a to resolve __eprintf, for example.  Linking
3658     # a copy of libgcc.a into every shared library to guarantee resolving
3659     # such symbols causes other problems:  According to Tim Van Holder
3660     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
3661     # (to the application) exception stack for one thing.
3662     no_undefined_flag=' -z defs'
3663     if test "$GCC" = yes; then
3664       case `$CC --version 2>/dev/null` in
3665       [12].*)
3666         cat <<EOF 1>&2
3667
3668 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
3669 *** create self contained shared libraries on Solaris systems, without
3670 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
3671 *** -no-undefined support, which will at least allow you to build shared
3672 *** libraries.  However, you may find that when you link such libraries
3673 *** into an application without using GCC, you have to manually add
3674 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
3675 *** upgrade to a newer version of GCC.  Another option is to rebuild your
3676 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
3677
3678 EOF
3679         no_undefined_flag=
3680         ;;
3681       esac
3682     fi
3683     # $CC -shared without GNU ld will not create a library from C++
3684     # object files and a static libstdc++, better avoid it by now
3685     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3686     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3687                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3688     hardcode_libdir_flag_spec='-R$libdir'
3689     hardcode_shlibpath_var=no
3690     case $host_os in
3691     solaris2.[0-5] | solaris2.[0-5].*) ;;
3692     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3693       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3694     esac
3695     link_all_deplibs=yes
3696     ;;
3697
3698   sunos4*)
3699     if test "x$host_vendor" = xsequent; then
3700       # Use $CC to link under sequent, because it throws in some extra .o
3701       # files that make .init and .fini sections work.
3702       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3703     else
3704       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3705     fi
3706     hardcode_libdir_flag_spec='-L$libdir'
3707     hardcode_direct=yes
3708     hardcode_minus_L=yes
3709     hardcode_shlibpath_var=no
3710     ;;
3711
3712   sysv4)
3713     if test "x$host_vendor" = xsno; then
3714       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
3715       hardcode_direct=yes # is this really true???
3716     else
3717       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3718       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3719     fi
3720     runpath_var='LD_RUN_PATH'
3721     hardcode_shlibpath_var=no
3722     ;;
3723
3724   sysv4.3*)
3725     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3726     hardcode_shlibpath_var=no
3727     export_dynamic_flag_spec='-Bexport'
3728     ;;
3729
3730   sysv5*)
3731     no_undefined_flag=' -z text'
3732     # $CC -shared without GNU ld will not create a library from C++
3733     # object files and a static libstdc++, better avoid it by now
3734     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3735     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3736                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3737     hardcode_libdir_flag_spec=
3738     hardcode_shlibpath_var=no
3739     runpath_var='LD_RUN_PATH'
3740     ;;
3741
3742   uts4*)
3743     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3744     hardcode_libdir_flag_spec='-L$libdir'
3745     hardcode_shlibpath_var=no
3746     ;;
3747
3748   dgux*)
3749     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3750     hardcode_libdir_flag_spec='-L$libdir'
3751     hardcode_shlibpath_var=no
3752     ;;
3753
3754   sysv4*MP*)
3755     if test -d /usr/nec; then
3756       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3757       hardcode_shlibpath_var=no
3758       runpath_var=LD_RUN_PATH
3759       hardcode_runpath_var=yes
3760       ld_shlibs=yes
3761     fi
3762     ;;
3763
3764   sysv4.2uw2*)
3765     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3766     hardcode_direct=yes
3767     hardcode_minus_L=no
3768     hardcode_shlibpath_var=no
3769     hardcode_runpath_var=yes
3770     runpath_var=LD_RUN_PATH
3771     ;;
3772
3773   sysv5uw7* | unixware7*)
3774     no_undefined_flag='${wl}-z ${wl}text'
3775     if test "$GCC" = yes; then
3776       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3777     else
3778       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3779     fi
3780     runpath_var='LD_RUN_PATH'
3781     hardcode_shlibpath_var=no
3782     ;;
3783
3784   *)
3785     ld_shlibs=no
3786     ;;
3787   esac
3788 fi
3789 echo "$ac_t""$ld_shlibs" 1>&6
3790 test "$ld_shlibs" = no && can_build_shared=no
3791 ##
3792 ## END FIXME
3793
3794 ## FIXME: this should be a separate macro
3795 ##
3796 # Check hardcoding attributes.
3797 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3798 echo "configure:3799: checking how to hardcode library paths into programs" >&5
3799 hardcode_action=
3800 if test -n "$hardcode_libdir_flag_spec" || \
3801    test -n "$runpath_var"; then
3802
3803   # We can hardcode non-existant directories.
3804   if test "$hardcode_direct" != no &&
3805      # If the only mechanism to avoid hardcoding is shlibpath_var, we
3806      # have to relink, otherwise we might link with an installed library
3807      # when we should be linking with a yet-to-be-installed one
3808      ## test "$hardcode_shlibpath_var" != no &&
3809      test "$hardcode_minus_L" != no; then
3810     # Linking always hardcodes the temporary library directory.
3811     hardcode_action=relink
3812   else
3813     # We can link without hardcoding, and we can hardcode nonexisting dirs.
3814     hardcode_action=immediate
3815   fi
3816 else
3817   # We cannot hardcode anything, or else we can only hardcode existing
3818   # directories.
3819   hardcode_action=unsupported
3820 fi
3821 echo "$ac_t""$hardcode_action" 1>&6
3822 ##
3823 ## END FIXME
3824
3825 ## FIXME: this should be a separate macro
3826 ##
3827 striplib=
3828 old_striplib=
3829 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3830 echo "configure:3831: checking whether stripping libraries is possible" >&5
3831 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3832   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3833   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3834   echo "$ac_t""yes" 1>&6
3835 else
3836   echo "$ac_t""no" 1>&6
3837 fi
3838 ##
3839 ## END FIXME
3840
3841 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3842 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3843
3844 ## FIXME: this should be a separate macro
3845 ##
3846 # PORTME Fill in your ld.so characteristics
3847 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3848 echo "configure:3849: checking dynamic linker characteristics" >&5
3849 library_names_spec=
3850 libname_spec='lib$name'
3851 soname_spec=
3852 postinstall_cmds=
3853 postuninstall_cmds=
3854 finish_cmds=
3855 finish_eval=
3856 shlibpath_var=
3857 shlibpath_overrides_runpath=unknown
3858 version_type=none
3859 dynamic_linker="$host_os ld.so"
3860 sys_lib_dlsearch_path_spec="/lib /usr/lib"
3861 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3862
3863 case $host_os in
3864 aix3*)
3865   version_type=linux
3866   library_names_spec='${libname}${release}.so$versuffix $libname.a'
3867   shlibpath_var=LIBPATH
3868
3869   # AIX has no versioning support, so we append a major version to the name.
3870   soname_spec='${libname}${release}.so$major'
3871   ;;
3872
3873 aix4* | aix5*)
3874   version_type=linux
3875   if test "$host_cpu" = ia64; then
3876     # AIX 5 supports IA64
3877     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3878     shlibpath_var=LD_LIBRARY_PATH
3879   else
3880     # With GCC up to 2.95.x, collect2 would create an import file
3881     # for dependence libraries.  The import file would start with
3882     # the line `#! .'.  This would cause the generated library to
3883     # depend on `.', always an invalid library.  This was fixed in
3884     # development snapshots of GCC prior to 3.0.
3885     case $host_os in
3886       aix4 | aix4.[01] | aix4.[01].*)
3887         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3888              echo ' yes '
3889              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3890           :
3891         else
3892           can_build_shared=no
3893         fi
3894         ;;
3895     esac
3896     # AIX (on Power*) has no versioning support, so currently we can
3897     # not hardcode correct soname into executable. Probably we can
3898     # add versioning support to collect2, so additional links can
3899     # be useful in future.
3900     if test "$aix_use_runtimelinking" = yes; then
3901       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3902       # instead of lib<name>.a to let people know that these are not
3903       # typical AIX shared libraries.
3904       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3905     else
3906       # We preserve .a as extension for shared libraries through AIX4.2
3907       # and later when we are not doing run time linking.
3908       library_names_spec='${libname}${release}.a $libname.a'
3909       soname_spec='${libname}${release}.so$major'
3910     fi
3911     shlibpath_var=LIBPATH
3912   fi
3913   ;;
3914
3915 amigaos*)
3916   library_names_spec='$libname.ixlibrary $libname.a'
3917   # Create ${libname}_ixlibrary.a entries in /sys/libs.
3918   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'
3919   ;;
3920
3921 beos*)
3922   library_names_spec='${libname}.so'
3923   dynamic_linker="$host_os ld.so"
3924   shlibpath_var=LIBRARY_PATH
3925   ;;
3926
3927 bsdi4*)
3928   version_type=linux
3929   need_version=no
3930   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3931   soname_spec='${libname}${release}.so$major'
3932   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3933   shlibpath_var=LD_LIBRARY_PATH
3934   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3935   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3936   export_dynamic_flag_spec=-rdynamic
3937   # the default ld.so.conf also contains /usr/contrib/lib and
3938   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3939   # libtool to hard-code these into programs
3940   ;;
3941
3942 cygwin* | mingw* | pw32*)
3943   version_type=windows
3944   need_version=no
3945   need_lib_prefix=no
3946   case $GCC,$host_os in
3947   yes,cygwin*)
3948     library_names_spec='$libname.dll.a'
3949     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3950     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
3951       dldir=$destdir/`dirname \$dlpath`~
3952       test -d \$dldir || mkdir -p \$dldir~
3953       $install_prog .libs/$dlname \$dldir/$dlname'
3954     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
3955       dlpath=$dir/\$dldll~
3956        $rm \$dlpath'
3957     ;;
3958   yes,mingw*)
3959     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3960     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
3961     ;;
3962   yes,pw32*)
3963     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
3964     ;;
3965   *)
3966     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
3967     ;;
3968   esac
3969   dynamic_linker='Win32 ld.exe'
3970   # FIXME: first we should search . and the directory the executable is in
3971   shlibpath_var=PATH
3972   ;;
3973
3974 darwin* | rhapsody*)
3975   dynamic_linker="$host_os dyld"
3976   version_type=darwin
3977   need_lib_prefix=no
3978   need_version=no
3979   # FIXME: Relying on posixy $() will cause problems for
3980   #        cross-compilation, but unfortunately the echo tests do not
3981   #        yet detect zsh echo's removal of \ escapes.
3982   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
3983   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
3984   shlibpath_overrides_runpath=yes
3985   shlibpath_var=DYLD_LIBRARY_PATH
3986   ;;
3987
3988 freebsd1*)
3989   dynamic_linker=no
3990   ;;
3991
3992 freebsd*)
3993   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3994   version_type=freebsd-$objformat
3995   case $version_type in
3996     freebsd-elf*)
3997       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3998       need_version=no
3999       need_lib_prefix=no
4000       ;;
4001     freebsd-*)
4002       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
4003       need_version=yes
4004       ;;
4005   esac
4006   shlibpath_var=LD_LIBRARY_PATH
4007   case $host_os in
4008   freebsd2*)
4009     shlibpath_overrides_runpath=yes
4010     ;;
4011   *)
4012     shlibpath_overrides_runpath=no
4013     hardcode_into_libs=yes
4014     ;;
4015   esac
4016   ;;
4017
4018 gnu*)
4019   version_type=linux
4020   need_lib_prefix=no
4021   need_version=no
4022   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
4023   soname_spec='${libname}${release}.so$major'
4024   shlibpath_var=LD_LIBRARY_PATH
4025   hardcode_into_libs=yes
4026   ;;
4027
4028 hpux9* | hpux10* | hpux11*)
4029   # Give a soname corresponding to the major version so that dld.sl refuses to
4030   # link against other versions.
4031   dynamic_linker="$host_os dld.sl"
4032   version_type=sunos
4033   need_lib_prefix=no
4034   need_version=no
4035   shlibpath_var=SHLIB_PATH
4036   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4037   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4038   soname_spec='${libname}${release}.sl$major'
4039   # HP-UX runs *really* slowly unless shared libraries are mode 555.
4040   postinstall_cmds='chmod 555 $lib'
4041   ;;
4042
4043 irix5* | irix6*)
4044   version_type=irix
4045   need_lib_prefix=no
4046   need_version=no
4047   soname_spec='${libname}${release}.so$major'
4048   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4049   case $host_os in
4050   irix5*)
4051     libsuff= shlibsuff=
4052     ;;
4053   *)
4054     case $LD in # libtool.m4 will add one of these switches to LD
4055     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
4056     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
4057     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
4058     *) libsuff= shlibsuff= libmagic=never-match;;
4059     esac
4060     ;;
4061   esac
4062   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4063   shlibpath_overrides_runpath=no
4064   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4065   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4066   ;;
4067
4068 # No shared lib support for Linux oldld, aout, or coff.
4069 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4070   dynamic_linker=no
4071   ;;
4072
4073 # This must be Linux ELF.
4074 linux-gnu*)
4075   version_type=linux
4076   need_lib_prefix=no
4077   need_version=no
4078   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4079   soname_spec='${libname}${release}.so$major'
4080   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4081   shlibpath_var=LD_LIBRARY_PATH
4082   shlibpath_overrides_runpath=no
4083   # This implies no fast_install, which is unacceptable.
4084   # Some rework will be needed to allow for fast_install
4085   # before this can be enabled.
4086   hardcode_into_libs=yes
4087
4088   # We used to test for /lib/ld.so.1 and disable shared libraries on
4089   # powerpc, because MkLinux only supported shared libraries with the
4090   # GNU dynamic linker.  Since this was broken with cross compilers,
4091   # most powerpc-linux boxes support dynamic linking these days and
4092   # people can always --disable-shared, the test was removed, and we
4093   # assume the GNU/Linux dynamic linker is in use.
4094   dynamic_linker='GNU/Linux ld.so'
4095   ;;
4096
4097 netbsd*)
4098   version_type=sunos
4099   need_lib_prefix=no
4100   need_version=no
4101   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4102     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4103     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4104     dynamic_linker='NetBSD (a.out) ld.so'
4105   else
4106     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4107     soname_spec='${libname}${release}.so$major'
4108     dynamic_linker='NetBSD ld.elf_so'
4109   fi
4110   shlibpath_var=LD_LIBRARY_PATH
4111   shlibpath_overrides_runpath=yes
4112   hardcode_into_libs=yes
4113   ;;
4114
4115 newsos6)
4116   version_type=linux
4117   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4118   shlibpath_var=LD_LIBRARY_PATH
4119   shlibpath_overrides_runpath=yes
4120   ;;
4121
4122 openbsd*)
4123   version_type=sunos
4124   need_lib_prefix=no
4125   need_version=no
4126   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4127     case "$host_os" in
4128     openbsd2.[89] | openbsd2.[89].*)
4129       shlibpath_overrides_runpath=no
4130       ;;
4131     *)
4132       shlibpath_overrides_runpath=yes
4133       ;;
4134     esac
4135   else
4136     shlibpath_overrides_runpath=yes
4137   fi
4138   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4139   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4140   shlibpath_var=LD_LIBRARY_PATH
4141   ;;
4142
4143 os2*)
4144   libname_spec='$name'
4145   need_lib_prefix=no
4146   library_names_spec='$libname.dll $libname.a'
4147   dynamic_linker='OS/2 ld.exe'
4148   shlibpath_var=LIBPATH
4149   ;;
4150
4151 osf3* | osf4* | osf5*)
4152   version_type=osf
4153   need_version=no
4154   soname_spec='${libname}${release}.so'
4155   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4156   shlibpath_var=LD_LIBRARY_PATH
4157   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4158   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4159   ;;
4160
4161 sco3.2v5*)
4162   version_type=osf
4163   soname_spec='${libname}${release}.so$major'
4164   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4165   shlibpath_var=LD_LIBRARY_PATH
4166   ;;
4167
4168 solaris*)
4169   version_type=linux
4170   need_lib_prefix=no
4171   need_version=no
4172   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4173   soname_spec='${libname}${release}.so$major'
4174   shlibpath_var=LD_LIBRARY_PATH
4175   shlibpath_overrides_runpath=yes
4176   hardcode_into_libs=yes
4177   # ldd complains unless libraries are executable
4178   postinstall_cmds='chmod +x $lib'
4179   ;;
4180
4181 sunos4*)
4182   version_type=sunos
4183   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4184   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4185   shlibpath_var=LD_LIBRARY_PATH
4186   shlibpath_overrides_runpath=yes
4187   if test "$with_gnu_ld" = yes; then
4188     need_lib_prefix=no
4189   fi
4190   need_version=yes
4191   ;;
4192
4193 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4194   version_type=linux
4195   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4196   soname_spec='${libname}${release}.so$major'
4197   shlibpath_var=LD_LIBRARY_PATH
4198   case $host_vendor in
4199     sni)
4200       shlibpath_overrides_runpath=no
4201       ;;
4202     motorola)
4203       need_lib_prefix=no
4204       need_version=no
4205       shlibpath_overrides_runpath=no
4206       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4207       ;;
4208   esac
4209   ;;
4210
4211 uts4*)
4212   version_type=linux
4213   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4214   soname_spec='${libname}${release}.so$major'
4215   shlibpath_var=LD_LIBRARY_PATH
4216   ;;
4217
4218 dgux*)
4219   version_type=linux
4220   need_lib_prefix=no
4221   need_version=no
4222   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4223   soname_spec='${libname}${release}.so$major'
4224   shlibpath_var=LD_LIBRARY_PATH
4225   ;;
4226
4227 sysv4*MP*)
4228   if test -d /usr/nec ;then
4229     version_type=linux
4230     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4231     soname_spec='$libname.so.$major'
4232     shlibpath_var=LD_LIBRARY_PATH
4233   fi
4234   ;;
4235
4236 *)
4237   dynamic_linker=no
4238   ;;
4239 esac
4240 echo "$ac_t""$dynamic_linker" 1>&6
4241 test "$dynamic_linker" = no && can_build_shared=no
4242 ##
4243 ## END FIXME
4244
4245 ## FIXME: this should be a separate macro
4246 ##
4247 # Report the final consequences.
4248 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4249 echo "configure:4250: checking if libtool supports shared libraries" >&5
4250 echo "$ac_t""$can_build_shared" 1>&6
4251 ##
4252 ## END FIXME
4253
4254 ## FIXME: this should be a separate macro
4255 ##
4256 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
4257 echo "configure:4258: checking whether to build shared libraries" >&5
4258 test "$can_build_shared" = "no" && enable_shared=no
4259
4260 # On AIX, shared libraries and static libraries use the same namespace, and
4261 # are all built from PIC.
4262 case "$host_os" in
4263 aix3*)
4264   test "$enable_shared" = yes && enable_static=no
4265   if test -n "$RANLIB"; then
4266     archive_cmds="$archive_cmds~\$RANLIB \$lib"
4267     postinstall_cmds='$RANLIB $lib'
4268   fi
4269   ;;
4270
4271 aix4*)
4272   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4273     test "$enable_shared" = yes && enable_static=no
4274   fi
4275   ;;
4276 esac
4277 echo "$ac_t""$enable_shared" 1>&6
4278 ##
4279 ## END FIXME
4280
4281 ## FIXME: this should be a separate macro
4282 ##
4283 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
4284 echo "configure:4285: checking whether to build static libraries" >&5
4285 # Make sure either enable_shared or enable_static is yes.
4286 test "$enable_shared" = yes || enable_static=yes
4287 echo "$ac_t""$enable_static" 1>&6
4288 ##
4289 ## END FIXME
4290
4291 if test "$hardcode_action" = relink; then
4292   # Fast installation is not supported
4293   enable_fast_install=no
4294 elif test "$shlibpath_overrides_runpath" = yes ||
4295      test "$enable_shared" = no; then
4296   # Fast installation is not necessary
4297   enable_fast_install=needless
4298 fi
4299
4300 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4301 if test "$GCC" = yes; then
4302   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4303 fi
4304
4305 if test "x$enable_dlopen" != xyes; then
4306   enable_dlopen=unknown
4307   enable_dlopen_self=unknown
4308   enable_dlopen_self_static=unknown
4309 else
4310   lt_cv_dlopen=no
4311   lt_cv_dlopen_libs=
4312
4313   case $host_os in
4314   beos*)
4315     lt_cv_dlopen="load_add_on"
4316     lt_cv_dlopen_libs=
4317     lt_cv_dlopen_self=yes
4318     ;;
4319
4320   cygwin* | mingw* | pw32*)
4321     lt_cv_dlopen="LoadLibrary"
4322     lt_cv_dlopen_libs=
4323    ;;
4324
4325   *)
4326     echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4327 echo "configure:4328: checking for shl_load" >&5
4328 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4329   echo $ac_n "(cached) $ac_c" 1>&6
4330 else
4331   cat > conftest.$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4334 /* System header to define __stub macros and hopefully few prototypes,
4335     which can conflict with char shl_load(); below.  */
4336 #include <assert.h>
4337 /* Override any gcc2 internal prototype to avoid an error.  */
4338 /* We use char because int might match the return type of a gcc2
4339     builtin and then its argument prototype would still apply.  */
4340 char shl_load();
4341
4342 int main() {
4343
4344 /* The GNU C library defines this for functions which it implements
4345     to always fail with ENOSYS.  Some functions are actually named
4346     something starting with __ and the normal name is an alias.  */
4347 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4348 choke me
4349 #else
4350 shl_load();
4351 #endif
4352
4353 ; return 0; }
4354 EOF
4355 if { (eval echo configure:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4356   rm -rf conftest*
4357   eval "ac_cv_func_shl_load=yes"
4358 else
4359   echo "configure: failed program was:" >&5
4360   cat conftest.$ac_ext >&5
4361   rm -rf conftest*
4362   eval "ac_cv_func_shl_load=no"
4363 fi
4364 rm -f conftest*
4365 fi
4366
4367 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4368   echo "$ac_t""yes" 1>&6
4369   lt_cv_dlopen="shl_load"
4370 else
4371   echo "$ac_t""no" 1>&6
4372 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4373 echo "configure:4374: checking for shl_load in -ldld" >&5
4374 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4376   echo $ac_n "(cached) $ac_c" 1>&6
4377 else
4378   ac_save_LIBS="$LIBS"
4379 LIBS="-ldld  $LIBS"
4380 cat > conftest.$ac_ext <<EOF
4381 #line 4382 "configure"
4382 #include "confdefs.h"
4383 /* Override any gcc2 internal prototype to avoid an error.  */
4384 /* We use char because int might match the return type of a gcc2
4385     builtin and then its argument prototype would still apply.  */
4386 char shl_load();
4387
4388 int main() {
4389 shl_load()
4390 ; return 0; }
4391 EOF
4392 if { (eval echo configure:4393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4393   rm -rf conftest*
4394   eval "ac_cv_lib_$ac_lib_var=yes"
4395 else
4396   echo "configure: failed program was:" >&5
4397   cat conftest.$ac_ext >&5
4398   rm -rf conftest*
4399   eval "ac_cv_lib_$ac_lib_var=no"
4400 fi
4401 rm -f conftest*
4402 LIBS="$ac_save_LIBS"
4403
4404 fi
4405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4406   echo "$ac_t""yes" 1>&6
4407   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
4408 else
4409   echo "$ac_t""no" 1>&6
4410 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4411 echo "configure:4412: checking for dlopen" >&5
4412 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4413   echo $ac_n "(cached) $ac_c" 1>&6
4414 else
4415   cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4418 /* System header to define __stub macros and hopefully few prototypes,
4419     which can conflict with char dlopen(); below.  */
4420 #include <assert.h>
4421 /* Override any gcc2 internal prototype to avoid an error.  */
4422 /* We use char because int might match the return type of a gcc2
4423     builtin and then its argument prototype would still apply.  */
4424 char dlopen();
4425
4426 int main() {
4427
4428 /* The GNU C library defines this for functions which it implements
4429     to always fail with ENOSYS.  Some functions are actually named
4430     something starting with __ and the normal name is an alias.  */
4431 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4432 choke me
4433 #else
4434 dlopen();
4435 #endif
4436
4437 ; return 0; }
4438 EOF
4439 if { (eval echo configure:4440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4440   rm -rf conftest*
4441   eval "ac_cv_func_dlopen=yes"
4442 else
4443   echo "configure: failed program was:" >&5
4444   cat conftest.$ac_ext >&5
4445   rm -rf conftest*
4446   eval "ac_cv_func_dlopen=no"
4447 fi
4448 rm -f conftest*
4449 fi
4450
4451 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4452   echo "$ac_t""yes" 1>&6
4453   lt_cv_dlopen="dlopen"
4454 else
4455   echo "$ac_t""no" 1>&6
4456 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4457 echo "configure:4458: checking for dlopen in -ldl" >&5
4458 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4459 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4460   echo $ac_n "(cached) $ac_c" 1>&6
4461 else
4462   ac_save_LIBS="$LIBS"
4463 LIBS="-ldl  $LIBS"
4464 cat > conftest.$ac_ext <<EOF
4465 #line 4466 "configure"
4466 #include "confdefs.h"
4467 /* Override any gcc2 internal prototype to avoid an error.  */
4468 /* We use char because int might match the return type of a gcc2
4469     builtin and then its argument prototype would still apply.  */
4470 char dlopen();
4471
4472 int main() {
4473 dlopen()
4474 ; return 0; }
4475 EOF
4476 if { (eval echo configure:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4477   rm -rf conftest*
4478   eval "ac_cv_lib_$ac_lib_var=yes"
4479 else
4480   echo "configure: failed program was:" >&5
4481   cat conftest.$ac_ext >&5
4482   rm -rf conftest*
4483   eval "ac_cv_lib_$ac_lib_var=no"
4484 fi
4485 rm -f conftest*
4486 LIBS="$ac_save_LIBS"
4487
4488 fi
4489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4490   echo "$ac_t""yes" 1>&6
4491   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4492 else
4493   echo "$ac_t""no" 1>&6
4494 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4495 echo "configure:4496: checking for dlopen in -lsvld" >&5
4496 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4498   echo $ac_n "(cached) $ac_c" 1>&6
4499 else
4500   ac_save_LIBS="$LIBS"
4501 LIBS="-lsvld  $LIBS"
4502 cat > conftest.$ac_ext <<EOF
4503 #line 4504 "configure"
4504 #include "confdefs.h"
4505 /* Override any gcc2 internal prototype to avoid an error.  */
4506 /* We use char because int might match the return type of a gcc2
4507     builtin and then its argument prototype would still apply.  */
4508 char dlopen();
4509
4510 int main() {
4511 dlopen()
4512 ; return 0; }
4513 EOF
4514 if { (eval echo configure:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4515   rm -rf conftest*
4516   eval "ac_cv_lib_$ac_lib_var=yes"
4517 else
4518   echo "configure: failed program was:" >&5
4519   cat conftest.$ac_ext >&5
4520   rm -rf conftest*
4521   eval "ac_cv_lib_$ac_lib_var=no"
4522 fi
4523 rm -f conftest*
4524 LIBS="$ac_save_LIBS"
4525
4526 fi
4527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4528   echo "$ac_t""yes" 1>&6
4529   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4530 else
4531   echo "$ac_t""no" 1>&6
4532 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4533 echo "configure:4534: checking for dld_link in -ldld" >&5
4534 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4535 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4536   echo $ac_n "(cached) $ac_c" 1>&6
4537 else
4538   ac_save_LIBS="$LIBS"
4539 LIBS="-ldld  $LIBS"
4540 cat > conftest.$ac_ext <<EOF
4541 #line 4542 "configure"
4542 #include "confdefs.h"
4543 /* Override any gcc2 internal prototype to avoid an error.  */
4544 /* We use char because int might match the return type of a gcc2
4545     builtin and then its argument prototype would still apply.  */
4546 char dld_link();
4547
4548 int main() {
4549 dld_link()
4550 ; return 0; }
4551 EOF
4552 if { (eval echo configure:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4553   rm -rf conftest*
4554   eval "ac_cv_lib_$ac_lib_var=yes"
4555 else
4556   echo "configure: failed program was:" >&5
4557   cat conftest.$ac_ext >&5
4558   rm -rf conftest*
4559   eval "ac_cv_lib_$ac_lib_var=no"
4560 fi
4561 rm -f conftest*
4562 LIBS="$ac_save_LIBS"
4563
4564 fi
4565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4566   echo "$ac_t""yes" 1>&6
4567   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4568 else
4569   echo "$ac_t""no" 1>&6
4570 fi
4571
4572               
4573 fi
4574
4575             
4576 fi
4577
4578           
4579 fi
4580
4581         
4582 fi
4583
4584       
4585 fi
4586
4587     ;;
4588   esac
4589
4590   if test "x$lt_cv_dlopen" != xno; then
4591     enable_dlopen=yes
4592   else
4593     enable_dlopen=no
4594   fi
4595
4596   case $lt_cv_dlopen in
4597   dlopen)
4598     save_CPPFLAGS="$CPPFLAGS"
4599         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4600
4601     save_LDFLAGS="$LDFLAGS"
4602     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4603
4604     save_LIBS="$LIBS"
4605     LIBS="$lt_cv_dlopen_libs $LIBS"
4606
4607     echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4608 echo "configure:4609: checking whether a program can dlopen itself" >&5
4609 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4610   echo $ac_n "(cached) $ac_c" 1>&6
4611 else
4612           if test "$cross_compiling" = yes; then :
4613   lt_cv_dlopen_self=cross
4614 else
4615     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4616   lt_status=$lt_dlunknown
4617   cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4620
4621 #if HAVE_DLFCN_H
4622 #include <dlfcn.h>
4623 #endif
4624
4625 #include <stdio.h>
4626
4627 #ifdef RTLD_GLOBAL
4628 #  define LT_DLGLOBAL           RTLD_GLOBAL
4629 #else
4630 #  ifdef DL_GLOBAL
4631 #    define LT_DLGLOBAL         DL_GLOBAL
4632 #  else
4633 #    define LT_DLGLOBAL         0
4634 #  endif
4635 #endif
4636
4637 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4638    find out it does not work in some platform. */
4639 #ifndef LT_DLLAZY_OR_NOW
4640 #  ifdef RTLD_LAZY
4641 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
4642 #  else
4643 #    ifdef DL_LAZY
4644 #      define LT_DLLAZY_OR_NOW          DL_LAZY
4645 #    else
4646 #      ifdef RTLD_NOW
4647 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
4648 #      else
4649 #        ifdef DL_NOW
4650 #          define LT_DLLAZY_OR_NOW      DL_NOW
4651 #        else
4652 #          define LT_DLLAZY_OR_NOW      0
4653 #        endif
4654 #      endif
4655 #    endif
4656 #  endif
4657 #endif
4658
4659 #ifdef __cplusplus
4660 extern "C" void exit (int);
4661 #endif
4662
4663 void fnord() { int i=42;}
4664 int main ()
4665 {
4666   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4667   int status = $lt_dlunknown;
4668
4669   if (self)
4670     {
4671       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
4672       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4673       /* dlclose (self); */
4674     }
4675
4676     exit (status);
4677 }
4678 EOF
4679   if { (eval echo configure:4680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4680     (./conftest; exit; ) 2>/dev/null
4681     lt_status=$?
4682     case x$lt_status in
4683       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4684       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4685       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4686     esac
4687   else :
4688     # compilation failed
4689     lt_cv_dlopen_self=no
4690   fi
4691 fi
4692 rm -fr conftest*
4693
4694     
4695 fi
4696
4697 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4698
4699     if test "x$lt_cv_dlopen_self" = xyes; then
4700       LDFLAGS="$LDFLAGS $link_static_flag"
4701       echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4702 echo "configure:4703: checking whether a statically linked program can dlopen itself" >&5
4703 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4704   echo $ac_n "(cached) $ac_c" 1>&6
4705 else
4706           if test "$cross_compiling" = yes; then :
4707   lt_cv_dlopen_self_static=cross
4708 else
4709     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4710   lt_status=$lt_dlunknown
4711   cat > conftest.$ac_ext <<EOF
4712 #line 4713 "configure"
4713 #include "confdefs.h"
4714
4715 #if HAVE_DLFCN_H
4716 #include <dlfcn.h>
4717 #endif
4718
4719 #include <stdio.h>
4720
4721 #ifdef RTLD_GLOBAL
4722 #  define LT_DLGLOBAL           RTLD_GLOBAL
4723 #else
4724 #  ifdef DL_GLOBAL
4725 #    define LT_DLGLOBAL         DL_GLOBAL
4726 #  else
4727 #    define LT_DLGLOBAL         0
4728 #  endif
4729 #endif
4730
4731 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4732    find out it does not work in some platform. */
4733 #ifndef LT_DLLAZY_OR_NOW
4734 #  ifdef RTLD_LAZY
4735 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
4736 #  else
4737 #    ifdef DL_LAZY
4738 #      define LT_DLLAZY_OR_NOW          DL_LAZY
4739 #    else
4740 #      ifdef RTLD_NOW
4741 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
4742 #      else
4743 #        ifdef DL_NOW
4744 #          define LT_DLLAZY_OR_NOW      DL_NOW
4745 #        else
4746 #          define LT_DLLAZY_OR_NOW      0
4747 #        endif
4748 #      endif
4749 #    endif
4750 #  endif
4751 #endif
4752
4753 #ifdef __cplusplus
4754 extern "C" void exit (int);
4755 #endif
4756
4757 void fnord() { int i=42;}
4758 int main ()
4759 {
4760   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4761   int status = $lt_dlunknown;
4762
4763   if (self)
4764     {
4765       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
4766       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4767       /* dlclose (self); */
4768     }
4769
4770     exit (status);
4771 }
4772 EOF
4773   if { (eval echo configure:4774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4774     (./conftest; exit; ) 2>/dev/null
4775     lt_status=$?
4776     case x$lt_status in
4777       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4778       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4779       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
4780     esac
4781   else :
4782     # compilation failed
4783     lt_cv_dlopen_self_static=no
4784   fi
4785 fi
4786 rm -fr conftest*
4787
4788       
4789 fi
4790
4791 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4792     fi
4793
4794     CPPFLAGS="$save_CPPFLAGS"
4795     LDFLAGS="$save_LDFLAGS"
4796     LIBS="$save_LIBS"
4797     ;;
4798   esac
4799
4800   case $lt_cv_dlopen_self in
4801   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4802   *) enable_dlopen_self=unknown ;;
4803   esac
4804
4805   case $lt_cv_dlopen_self_static in
4806   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4807   *) enable_dlopen_self_static=unknown ;;
4808   esac
4809 fi
4810
4811
4812 ## FIXME: this should be a separate macro
4813 ##
4814 if test "$enable_shared" = yes && test "$GCC" = yes; then
4815   case $archive_cmds in
4816   *'~'*)
4817     # FIXME: we may have to deal with multi-command sequences.
4818     ;;
4819   '$CC '*)
4820     # Test whether the compiler implicitly links with -lc since on some
4821     # systems, -lgcc has to come before -lc. If gcc already passes -lc
4822     # to ld, don't add -lc before -lgcc.
4823     echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4824 echo "configure:4825: checking whether -lc should be explicitly linked in" >&5
4825     if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4826   echo $ac_n "(cached) $ac_c" 1>&6
4827 else
4828   $rm conftest*
4829     echo 'static int dummy;' > conftest.$ac_ext
4830
4831     if { (eval echo configure:4832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4832       soname=conftest
4833       lib=conftest
4834       libobjs=conftest.$ac_objext
4835       deplibs=
4836       wl=$lt_cv_prog_cc_wl
4837       compiler_flags=-v
4838       linker_flags=-v
4839       verstring=
4840       output_objdir=.
4841       libname=conftest
4842       save_allow_undefined_flag=$allow_undefined_flag
4843       allow_undefined_flag=
4844       if { (eval echo configure:4845: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
4845       then
4846         lt_cv_archive_cmds_need_lc=no
4847       else
4848         lt_cv_archive_cmds_need_lc=yes
4849       fi
4850       allow_undefined_flag=$save_allow_undefined_flag
4851     else
4852       cat conftest.err 1>&5
4853     fi
4854 fi
4855
4856     echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
4857     ;;
4858   esac
4859 fi
4860 need_lc=${lt_cv_archive_cmds_need_lc-yes}
4861 ##
4862 ## END FIXME
4863
4864 ## FIXME: this should be a separate macro
4865 ##
4866 # The second clause should only fire when bootstrapping the
4867 # libtool distribution, otherwise you forgot to ship ltmain.sh
4868 # with your package, and you will get complaints that there are
4869 # no rules to generate ltmain.sh.
4870 if test -f "$ltmain"; then
4871   :
4872 else
4873   # If there is no Makefile yet, we rely on a make rule to execute
4874   # `config.status --recheck' to rerun these tests and create the
4875   # libtool script then.
4876   test -f Makefile && make "$ltmain"
4877 fi
4878
4879 if test -f "$ltmain"; then
4880   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
4881   $rm -f "${ofile}T"
4882
4883   echo creating $ofile
4884
4885   # Now quote all the things that may contain metacharacters while being
4886   # careful not to overquote the AC_SUBSTed values.  We take copies of the
4887   # variables and quote the copies for generation of the libtool script.
4888   for var in echo old_CC old_CFLAGS \
4889     AR AR_FLAGS CC LD LN_S NM SHELL \
4890     reload_flag reload_cmds wl \
4891     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
4892     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
4893     library_names_spec soname_spec \
4894     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
4895     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
4896     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
4897     old_striplib striplib file_magic_cmd export_symbols_cmds \
4898     deplibs_check_method allow_undefined_flag no_undefined_flag \
4899     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
4900     global_symbol_to_c_name_address \
4901     hardcode_libdir_flag_spec hardcode_libdir_separator  \
4902     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4903     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
4904
4905     case $var in
4906     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4907     old_postinstall_cmds | old_postuninstall_cmds | \
4908     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
4909     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
4910     postinstall_cmds | postuninstall_cmds | \
4911     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4912       # Double-quote double-evaled strings.
4913       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4914       ;;
4915     *)
4916       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4917       ;;
4918     esac
4919   done
4920
4921   cat <<__EOF__ > "${ofile}T"
4922 #! $SHELL
4923
4924 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4925 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4926 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4927 #
4928 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
4929 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4930 #
4931 # This program is free software; you can redistribute it and/or modify
4932 # it under the terms of the GNU General Public License as published by
4933 # the Free Software Foundation; either version 2 of the License, or
4934 # (at your option) any later version.
4935 #
4936 # This program is distributed in the hope that it will be useful, but
4937 # WITHOUT ANY WARRANTY; without even the implied warranty of
4938 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
4939 # General Public License for more details.
4940 #
4941 # You should have received a copy of the GNU General Public License
4942 # along with this program; if not, write to the Free Software
4943 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4944 #
4945 # As a special exception to the GNU General Public License, if you
4946 # distribute this file as part of a program that contains a
4947 # configuration script generated by Autoconf, you may include it under
4948 # the same distribution terms that you use for the rest of that program.
4949
4950 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4951 Xsed="sed -e s/^X//"
4952
4953 # The HP-UX ksh and POSIX shell print the target directory to stdout
4954 # if CDPATH is set.
4955 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4956
4957 # ### BEGIN LIBTOOL CONFIG
4958
4959 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4960
4961 # Shell to use when invoking shell scripts.
4962 SHELL=$lt_SHELL
4963
4964 # Whether or not to build shared libraries.
4965 build_libtool_libs=$enable_shared
4966
4967 # Whether or not to build static libraries.
4968 build_old_libs=$enable_static
4969
4970 # Whether or not to add -lc for building shared libraries.
4971 build_libtool_need_lc=$need_lc
4972
4973 # Whether or not to optimize for fast installation.
4974 fast_install=$enable_fast_install
4975
4976 # The host system.
4977 host_alias=$host_alias
4978 host=$host
4979
4980 # An echo program that does not interpret backslashes.
4981 echo=$lt_echo
4982
4983 # The archiver.
4984 AR=$lt_AR
4985 AR_FLAGS=$lt_AR_FLAGS
4986
4987 # The default C compiler.
4988 CC=$lt_CC
4989
4990 # Is the compiler the GNU C compiler?
4991 with_gcc=$GCC
4992
4993 # The linker used to build libraries.
4994 LD=$lt_LD
4995
4996 # Whether we need hard or soft links.
4997 LN_S=$lt_LN_S
4998
4999 # A BSD-compatible nm program.
5000 NM=$lt_NM
5001
5002 # A symbol stripping program
5003 STRIP=$STRIP
5004
5005 # Used to examine libraries when file_magic_cmd begins "file"
5006 MAGIC_CMD=$MAGIC_CMD
5007
5008 # Used on cygwin: DLL creation program.
5009 DLLTOOL="$DLLTOOL"
5010
5011 # Used on cygwin: object dumper.
5012 OBJDUMP="$OBJDUMP"
5013
5014 # Used on cygwin: assembler.
5015 AS="$AS"
5016
5017 # The name of the directory that contains temporary libtool files.
5018 objdir=$objdir
5019
5020 # How to create reloadable object files.
5021 reload_flag=$lt_reload_flag
5022 reload_cmds=$lt_reload_cmds
5023
5024 # How to pass a linker flag through the compiler.
5025 wl=$lt_wl
5026
5027 # Object file suffix (normally "o").
5028 objext="$ac_objext"
5029
5030 # Old archive suffix (normally "a").
5031 libext="$libext"
5032
5033 # Executable file suffix (normally "").
5034 exeext="$exeext"
5035
5036 # Additional compiler flags for building library objects.
5037 pic_flag=$lt_pic_flag
5038 pic_mode=$pic_mode
5039
5040 # Does compiler simultaneously support -c and -o options?
5041 compiler_c_o=$lt_compiler_c_o
5042
5043 # Can we write directly to a .lo ?
5044 compiler_o_lo=$lt_compiler_o_lo
5045
5046 # Must we lock files when doing compilation ?
5047 need_locks=$lt_need_locks
5048
5049 # Do we need the lib prefix for modules?
5050 need_lib_prefix=$need_lib_prefix
5051
5052 # Do we need a version for libraries?
5053 need_version=$need_version
5054
5055 # Whether dlopen is supported.
5056 dlopen_support=$enable_dlopen
5057
5058 # Whether dlopen of programs is supported.
5059 dlopen_self=$enable_dlopen_self
5060
5061 # Whether dlopen of statically linked programs is supported.
5062 dlopen_self_static=$enable_dlopen_self_static
5063
5064 # Compiler flag to prevent dynamic linking.
5065 link_static_flag=$lt_link_static_flag
5066
5067 # Compiler flag to turn off builtin functions.
5068 no_builtin_flag=$lt_no_builtin_flag
5069
5070 # Compiler flag to allow reflexive dlopens.
5071 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5072
5073 # Compiler flag to generate shared objects directly from archives.
5074 whole_archive_flag_spec=$lt_whole_archive_flag_spec
5075
5076 # Compiler flag to generate thread-safe objects.
5077 thread_safe_flag_spec=$lt_thread_safe_flag_spec
5078
5079 # Library versioning type.
5080 version_type=$version_type
5081
5082 # Format of library name prefix.
5083 libname_spec=$lt_libname_spec
5084
5085 # List of archive names.  First name is the real one, the rest are links.
5086 # The last name is the one that the linker finds with -lNAME.
5087 library_names_spec=$lt_library_names_spec
5088
5089 # The coded name of the library, if different from the real name.
5090 soname_spec=$lt_soname_spec
5091
5092 # Commands used to build and install an old-style archive.
5093 RANLIB=$lt_RANLIB
5094 old_archive_cmds=$lt_old_archive_cmds
5095 old_postinstall_cmds=$lt_old_postinstall_cmds
5096 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5097
5098 # Create an old-style archive from a shared archive.
5099 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5100
5101 # Create a temporary old-style archive to link instead of a shared archive.
5102 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5103
5104 # Commands used to build and install a shared archive.
5105 archive_cmds=$lt_archive_cmds
5106 archive_expsym_cmds=$lt_archive_expsym_cmds
5107 postinstall_cmds=$lt_postinstall_cmds
5108 postuninstall_cmds=$lt_postuninstall_cmds
5109
5110 # Commands to strip libraries.
5111 old_striplib=$lt_old_striplib
5112 striplib=$lt_striplib
5113
5114 # Method to check whether dependent libraries are shared objects.
5115 deplibs_check_method=$lt_deplibs_check_method
5116
5117 # Command to use when deplibs_check_method == file_magic.
5118 file_magic_cmd=$lt_file_magic_cmd
5119
5120 # Flag that allows shared libraries with undefined symbols to be built.
5121 allow_undefined_flag=$lt_allow_undefined_flag
5122
5123 # Flag that forces no undefined symbols.
5124 no_undefined_flag=$lt_no_undefined_flag
5125
5126 # Commands used to finish a libtool library installation in a directory.
5127 finish_cmds=$lt_finish_cmds
5128
5129 # Same as above, but a single script fragment to be evaled but not shown.
5130 finish_eval=$lt_finish_eval
5131
5132 # Take the output of nm and produce a listing of raw symbols and C names.
5133 global_symbol_pipe=$lt_global_symbol_pipe
5134
5135 # Transform the output of nm in a proper C declaration
5136 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5137
5138 # Transform the output of nm in a C name address pair
5139 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
5140
5141 # This is the shared library runtime path variable.
5142 runpath_var=$runpath_var
5143
5144 # This is the shared library path variable.
5145 shlibpath_var=$shlibpath_var
5146
5147 # Is shlibpath searched before the hard-coded library search path?
5148 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5149
5150 # How to hardcode a shared library path into an executable.
5151 hardcode_action=$hardcode_action
5152
5153 # Whether we should hardcode library paths into libraries.
5154 hardcode_into_libs=$hardcode_into_libs
5155
5156 # Flag to hardcode \$libdir into a binary during linking.
5157 # This must work even if \$libdir does not exist.
5158 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5159
5160 # Whether we need a single -rpath flag with a separated argument.
5161 hardcode_libdir_separator=$lt_hardcode_libdir_separator
5162
5163 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5164 # resulting binary.
5165 hardcode_direct=$hardcode_direct
5166
5167 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5168 # resulting binary.
5169 hardcode_minus_L=$hardcode_minus_L
5170
5171 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5172 # the resulting binary.
5173 hardcode_shlibpath_var=$hardcode_shlibpath_var
5174
5175 # Variables whose values should be saved in libtool wrapper scripts and
5176 # restored at relink time.
5177 variables_saved_for_relink="$variables_saved_for_relink"
5178
5179 # Whether libtool must link a program against all its dependency libraries.
5180 link_all_deplibs=$link_all_deplibs
5181
5182 # Compile-time system search path for libraries
5183 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5184
5185 # Run-time system search path for libraries
5186 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5187
5188 # Fix the shell variable \$srcfile for the compiler.
5189 fix_srcfile_path="$fix_srcfile_path"
5190
5191 # Set to yes if exported symbols are required.
5192 always_export_symbols=$always_export_symbols
5193
5194 # The commands to list exported symbols.
5195 export_symbols_cmds=$lt_export_symbols_cmds
5196
5197 # The commands to extract the exported symbol list from a shared archive.
5198 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5199
5200 # Symbols that should not be listed in the preloaded symbols.
5201 exclude_expsyms=$lt_exclude_expsyms
5202
5203 # Symbols that must always be exported.
5204 include_expsyms=$lt_include_expsyms
5205
5206 # ### END LIBTOOL CONFIG
5207
5208 __EOF__
5209
5210   case $host_os in
5211   aix3*)
5212     cat <<\EOF >> "${ofile}T"
5213
5214 # AIX sometimes has problems with the GCC collect2 program.  For some
5215 # reason, if we set the COLLECT_NAMES environment variable, the problems
5216 # vanish in a puff of smoke.
5217 if test "X${COLLECT_NAMES+set}" != Xset; then
5218   COLLECT_NAMES=
5219   export COLLECT_NAMES
5220 fi
5221 EOF
5222     ;;
5223   esac
5224
5225   case $host_os in
5226   cygwin* | mingw* | pw32* | os2*)
5227     cat <<'EOF' >> "${ofile}T"
5228       # This is a source program that is used to create dlls on Windows
5229       # Don't remove nor modify the starting and closing comments
5230 # /* ltdll.c starts here */
5231 # #define WIN32_LEAN_AND_MEAN
5232 # #include <windows.h>
5233 # #undef WIN32_LEAN_AND_MEAN
5234 # #include <stdio.h>
5235 #
5236 # #ifndef __CYGWIN__
5237 # #  ifdef __CYGWIN32__
5238 # #    define __CYGWIN__ __CYGWIN32__
5239 # #  endif
5240 # #endif
5241 #
5242 # #ifdef __cplusplus
5243 # extern "C" {
5244 # #endif
5245 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5246 # #ifdef __cplusplus
5247 # }
5248 # #endif
5249 #
5250 # #ifdef __CYGWIN__
5251 # #include <cygwin/cygwin_dll.h>
5252 # DECLARE_CYGWIN_DLL( DllMain );
5253 # #endif
5254 # HINSTANCE __hDllInstance_base;
5255 #
5256 # BOOL APIENTRY
5257 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5258 # {
5259 #   __hDllInstance_base = hInst;
5260 #   return TRUE;
5261 # }
5262 # /* ltdll.c ends here */
5263         # This is a source program that is used to create import libraries
5264         # on Windows for dlls which lack them. Don't remove nor modify the
5265         # starting and closing comments
5266 # /* impgen.c starts here */
5267 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
5268 #
5269 #  This file is part of GNU libtool.
5270 #
5271 #  This program is free software; you can redistribute it and/or modify
5272 #  it under the terms of the GNU General Public License as published by
5273 #  the Free Software Foundation; either version 2 of the License, or
5274 #  (at your option) any later version.
5275 #
5276 #  This program is distributed in the hope that it will be useful,
5277 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
5278 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5279 #  GNU General Public License for more details.
5280 #
5281 #  You should have received a copy of the GNU General Public License
5282 #  along with this program; if not, write to the Free Software
5283 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5284 #  */
5285 #
5286 # #include <stdio.h>            /* for printf() */
5287 # #include <unistd.h>           /* for open(), lseek(), read() */
5288 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
5289 # #include <string.h>           /* for strdup() */
5290 #
5291 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
5292 # #ifndef O_BINARY
5293 # #define O_BINARY 0
5294 # #endif
5295 #
5296 # static unsigned int
5297 # pe_get16 (fd, offset)
5298 #      int fd;
5299 #      int offset;
5300 # {
5301 #   unsigned char b[2];
5302 #   lseek (fd, offset, SEEK_SET);
5303 #   read (fd, b, 2);
5304 #   return b[0] + (b[1]<<8);
5305 # }
5306 #
5307 # static unsigned int
5308 # pe_get32 (fd, offset)
5309 #     int fd;
5310 #     int offset;
5311 # {
5312 #   unsigned char b[4];
5313 #   lseek (fd, offset, SEEK_SET);
5314 #   read (fd, b, 4);
5315 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5316 # }
5317 #
5318 # static unsigned int
5319 # pe_as32 (ptr)
5320 #      void *ptr;
5321 # {
5322 #   unsigned char *b = ptr;
5323 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5324 # }
5325 #
5326 # int
5327 # main (argc, argv)
5328 #     int argc;
5329 #     char *argv[];
5330 # {
5331 #     int dll;
5332 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5333 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
5334 #     unsigned long name_rvas, nexp;
5335 #     unsigned char *expdata, *erva;
5336 #     char *filename, *dll_name;
5337 #
5338 #     filename = argv[1];
5339 #
5340 #     dll = open(filename, O_RDONLY|O_BINARY);
5341 #     if (dll < 1)
5342 #       return 1;
5343 #
5344 #     dll_name = filename;
5345 #
5346 #     for (i=0; filename[i]; i++)
5347 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
5348 #           dll_name = filename + i +1;
5349 #
5350 #     pe_header_offset = pe_get32 (dll, 0x3c);
5351 #     opthdr_ofs = pe_header_offset + 4 + 20;
5352 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
5353 #
5354 #     if (num_entries < 1) /* no exports */
5355 #       return 1;
5356 #
5357 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
5358 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
5359 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5360 #     secptr = (pe_header_offset + 4 + 20 +
5361 #             pe_get16 (dll, pe_header_offset + 4 + 16));
5362 #
5363 #     expptr = 0;
5364 #     for (i = 0; i < nsections; i++)
5365 #     {
5366 #       char sname[8];
5367 #       unsigned long secptr1 = secptr + 40 * i;
5368 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5369 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5370 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5371 #       lseek(dll, secptr1, SEEK_SET);
5372 #       read(dll, sname, 8);
5373 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
5374 #       {
5375 #           expptr = fptr + (export_rva - vaddr);
5376 #           if (export_rva + export_size > vaddr + vsize)
5377 #               export_size = vsize - (export_rva - vaddr);
5378 #           break;
5379 #       }
5380 #     }
5381 #
5382 #     expdata = (unsigned char*)malloc(export_size);
5383 #     lseek (dll, expptr, SEEK_SET);
5384 #     read (dll, expdata, export_size);
5385 #     erva = expdata - export_rva;
5386 #
5387 #     nexp = pe_as32 (expdata+24);
5388 #     name_rvas = pe_as32 (expdata+32);
5389 #
5390 #     printf ("EXPORTS\n");
5391 #     for (i = 0; i<nexp; i++)
5392 #     {
5393 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5394 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5395 #     }
5396 #
5397 #     return 0;
5398 # }
5399 # /* impgen.c ends here */
5400
5401 EOF
5402     ;;
5403   esac
5404
5405   # We use sed instead of cat because bash on DJGPP gets confused if
5406   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
5407   # text mode, it properly converts lines to CR/LF.  This bash problem
5408   # is reportedly fixed, but why not run on old versions too?
5409   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5410
5411   mv -f "${ofile}T" "$ofile" || \
5412     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5413   chmod +x "$ofile"
5414 fi
5415 ##
5416 ## END FIXME
5417
5418
5419
5420
5421
5422 # This can be used to rebuild libtool when needed
5423 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5424
5425 # Always use our own libtool.
5426 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5427
5428 # Prevent multiple expansion
5429
5430
5431     EXTLIB='la'
5432     EXTOBJ='lo'
5433     LIBTOOL='$(top)/libtool'
5434     LIBTOOLCC='$(top)/libtool --mode=compile'
5435     LIBTOOLLD='$(top)/libtool --mode=link'
5436     CCOUTPUT='-c -o $@ $<'
5437 else
5438     
5439 # Make sure we can run config.sub.
5440 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
5441 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5442 fi
5443
5444 echo $ac_n "checking host system type""... $ac_c" 1>&6
5445 echo "configure:5446: checking host system type" >&5
5446
5447 host_alias=$host
5448 case "$host_alias" in
5449 NONE)
5450   case $nonopt in
5451   NONE)
5452     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
5453     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5454     fi ;;
5455   *) host_alias=$nonopt ;;
5456   esac ;;
5457 esac
5458
5459 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
5460 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5461 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5462 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5463 echo "$ac_t""$host" 1>&6
5464
5465     EXTLIB='a'
5466     EXTOBJ='o'
5467     LIBTOOL=''
5468     LIBTOOLCC=''
5469     LIBTOOLLD=''
5470     if test x"$compiler_c_o" = xyes ; then
5471         CCOUTPUT='-c -o $@ $<'
5472     else
5473         CCOUTPUT='-c $< && if test x"$(@F)" != x"$@" ; then mv $(@F) $@ ; fi'
5474     fi
5475     
5476 fi
5477
5478
5479
5480
5481
5482
5483
5484
5485 # Check whether --with-control-dir or --without-control-dir was given.
5486 if test "${with_control_dir+set}" = set; then
5487   withval="$with_control_dir"
5488   CONTROLDIR=$with_control_dir
5489 else
5490   CONTROLDIR=$prefix/bin/control
5491 fi
5492
5493
5494 # Check whether --with-db-dir or --without-db-dir was given.
5495 if test "${with_db_dir+set}" = set; then
5496   withval="$with_db_dir"
5497   DBDIR=$with_db_dir
5498 else
5499   DBDIR=$prefix/db
5500 fi
5501
5502
5503 # Check whether --with-doc-dir or --without-doc-dir was given.
5504 if test "${with_doc_dir+set}" = set; then
5505   withval="$with_doc_dir"
5506   DOCDIR=$with_doc_dir
5507 else
5508   DOCDIR=$prefix/doc
5509 fi
5510
5511
5512 # Check whether --with-etc-dir or --without-etc-dir was given.
5513 if test "${with_etc_dir+set}" = set; then
5514   withval="$with_etc_dir"
5515   ETCDIR=$with_etc_dir
5516 else
5517   ETCDIR=$prefix/etc
5518 fi
5519
5520
5521 # Check whether --with-filter-dir or --without-filter-dir was given.
5522 if test "${with_filter_dir+set}" = set; then
5523   withval="$with_filter_dir"
5524   FILTERDIR=$with_filter_dir
5525 else
5526   FILTERDIR=$prefix/bin/filter
5527 fi
5528
5529
5530 # Check whether --with-lib-dir or --without-lib-dir was given.
5531 if test "${with_lib_dir+set}" = set; then
5532   withval="$with_lib_dir"
5533   LIBDIR=$with_lib_dir
5534 else
5535   LIBDIR=$prefix/lib
5536 fi
5537
5538
5539 # Check whether --with-log-dir or --without-log-dir was given.
5540 if test "${with_log_dir+set}" = set; then
5541   withval="$with_log_dir"
5542   LOGDIR=$with_log_dir
5543 else
5544   LOGDIR=$prefix/log
5545 fi
5546
5547
5548 # Check whether --with-run-dir or --without-run-dir was given.
5549 if test "${with_run_dir+set}" = set; then
5550   withval="$with_run_dir"
5551   RUNDIR=$with_run_dir
5552 else
5553   RUNDIR=$prefix/run
5554 fi
5555
5556
5557 # Check whether --with-spool-dir or --without-spool-dir was given.
5558 if test "${with_spool_dir+set}" = set; then
5559   withval="$with_spool_dir"
5560   SPOOLDIR=$with_spool_dir
5561 else
5562   SPOOLDIR=$prefix/spool
5563 fi
5564
5565
5566 # Check whether --with-tmp-dir or --without-tmp-dir was given.
5567 if test "${with_tmp_dir+set}" = set; then
5568   withval="$with_tmp_dir"
5569   tmpdir=$with_tmp_dir
5570 else
5571   tmpdir=$prefix/tmp
5572 fi
5573
5574
5575
5576 # Check whether --with-syslog-facility or --without-syslog-facility was given.
5577 if test "${with_syslog_facility+set}" = set; then
5578   withval="$with_syslog_facility"
5579   SYSLOG_FACILITY=$with_syslog_facility
5580 else
5581   SYSLOG_FACILITY=none
5582 fi
5583
5584
5585
5586
5587 # Check whether --with-news-user or --without-news-user was given.
5588 if test "${with_news_user+set}" = set; then
5589   withval="$with_news_user"
5590   NEWSUSER=$with_news_user
5591 else
5592   NEWSUSER=news
5593 fi
5594
5595
5596 cat >> confdefs.h <<EOF
5597 #define NEWSUSER "$NEWSUSER"
5598 EOF
5599
5600 # Check whether --with-news-group or --without-news-group was given.
5601 if test "${with_news_group+set}" = set; then
5602   withval="$with_news_group"
5603   NEWSGRP=$with_news_group
5604 else
5605   NEWSGRP=news
5606 fi
5607
5608
5609 cat >> confdefs.h <<EOF
5610 #define NEWSGRP "$NEWSGRP"
5611 EOF
5612
5613 # Check whether --with-news-master or --without-news-master was given.
5614 if test "${with_news_master+set}" = set; then
5615   withval="$with_news_master"
5616   NEWSMASTER=$with_news_master
5617 else
5618   NEWSMASTER=usenet
5619 fi
5620
5621
5622 cat >> confdefs.h <<EOF
5623 #define NEWSMASTER "$NEWSMASTER"
5624 EOF
5625
5626
5627 NEWSUMASK=02
5628 FILEMODE=0664
5629 DIRMODE=0775
5630 RUNDIRMODE=0770
5631 # Check whether --with-news-umask or --without-news-umask was given.
5632 if test "${with_news_umask+set}" = set; then
5633   withval="$with_news_umask"
5634   with_news_umask=`echo "$with_news_umask" | sed 's/^0*//'`
5635     if test "x$with_news_umask" = x22 ; then
5636         NEWSUMASK=022
5637         FILEMODE=0644
5638         DIRMODE=0755
5639         RUNDIRMODE=0750
5640     else
5641         if test "x$with_news_umask" != x2 ; then
5642             { echo "configure: error: Valid umasks are 02 or 022" 1>&2; exit 1; }
5643         fi
5644     fi
5645 fi
5646
5647
5648
5649
5650
5651 cat >> confdefs.h <<EOF
5652 #define ARTFILE_MODE $FILEMODE
5653 EOF
5654
5655 cat >> confdefs.h <<EOF
5656 #define BATCHFILE_MODE $FILEMODE
5657 EOF
5658
5659 cat >> confdefs.h <<EOF
5660 #define GROUPDIR_MODE $DIRMODE
5661 EOF
5662
5663 cat >> confdefs.h <<EOF
5664 #define NEWSUMASK $NEWSUMASK
5665 EOF
5666
5667
5668 INEWSMODE=0550
5669 # Check whether --enable-setgid-inews or --disable-setgid-inews was given.
5670 if test "${enable_setgid_inews+set}" = set; then
5671   enableval="$enable_setgid_inews"
5672   if test "x$enableval" = xyes ; then
5673         INEWSMODE=02555
5674     fi
5675 fi
5676
5677
5678
5679 RNEWSGRP=$NEWSGRP
5680 RNEWSMODE=0500
5681 # Check whether --enable-uucp-rnews or --disable-uucp-rnews was given.
5682 if test "${enable_uucp_rnews+set}" = set; then
5683   enableval="$enable_uucp_rnews"
5684   if test "x$enableval" = xyes ; then
5685         RNEWSGRP=uucp
5686         RNEWSMODE=04550
5687     fi
5688 fi
5689
5690
5691
5692
5693 # Check whether --with-log-compress or --without-log-compress was given.
5694 if test "${with_log_compress+set}" = set; then
5695   withval="$with_log_compress"
5696   LOG_COMPRESS=$with_log_compress
5697 else
5698   LOG_COMPRESS=gzip
5699 fi
5700
5701 case "$LOG_COMPRESS" in
5702 bzip2) LOG_COMPRESSEXT=".bz2" ;;
5703 gzip)  LOG_COMPRESSEXT=".gz"  ;;
5704 *)     LOG_COMPRESSEXT=".Z"   ;;
5705 esac
5706
5707
5708
5709 # Check whether --with-innd-port or --without-innd-port was given.
5710 if test "${with_innd_port+set}" = set; then
5711   withval="$with_innd_port"
5712   cat >> confdefs.h <<EOF
5713 #define INND_PORT $with_innd_port
5714 EOF
5715
5716 fi
5717
5718
5719 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5720 if test "${enable_ipv6+set}" = set; then
5721   enableval="$enable_ipv6"
5722   if test "x$enableval" = xyes ; then
5723         inn_enable_ipv6_tests=yes
5724         cat >> confdefs.h <<\EOF
5725 #define HAVE_INET6 1
5726 EOF
5727
5728     fi
5729 fi
5730
5731
5732 # Check whether --with-max-sockets or --without-max-sockets was given.
5733 if test "${with_max_sockets+set}" = set; then
5734   withval="$with_max_sockets"
5735   :
5736 else
5737   with_max_sockets=15
5738 fi
5739
5740 cat >> confdefs.h <<EOF
5741 #define MAX_SOCKETS $with_max_sockets
5742 EOF
5743
5744
5745 # Check whether --enable-tagged-hash or --disable-tagged-hash was given.
5746 if test "${enable_tagged_hash+set}" = set; then
5747   enableval="$enable_tagged_hash"
5748   if test "x$enableval" = xyes ; then
5749         DO_DBZ_TAGGED_HASH=DO
5750         cat >> confdefs.h <<\EOF
5751 #define DO_TAGGED_HASH 1
5752 EOF
5753
5754     else
5755         DO_DBZ_TAGGED_HASH=DONT
5756     fi
5757 fi
5758
5759
5760
5761 inn_enable_keywords=0
5762 # Check whether --enable-keywords or --disable-keywords was given.
5763 if test "${enable_keywords+set}" = set; then
5764   enableval="$enable_keywords"
5765   if test x"$enableval" = xyes ; then
5766         inn_enable_keywords=1
5767     fi
5768 fi
5769
5770 cat >> confdefs.h <<EOF
5771 #define DO_KEYWORDS $inn_enable_keywords
5772 EOF
5773
5774
5775 # Check whether --enable-largefiles or --disable-largefiles was given.
5776 if test "${enable_largefiles+set}" = set; then
5777   enableval="$enable_largefiles"
5778   case "${enableval}" in
5779     yes) inn_enable_largefiles=yes
5780          if test x"$DO_DBZ_TAGGED_HASH" = xDO ; then
5781 { echo "configure: error: --enable-tagged-hash conflicts with --enable-largefiles." 1>&2; exit 1; }
5782          fi ;;
5783     no)  inn_enable_largefiles=no ;;
5784     *)   { echo "configure: error: invalid argument to --enable-largefiles" 1>&2; exit 1; } ;;
5785     esac
5786 fi
5787
5788
5789 # Check whether --with-sendmail or --without-sendmail was given.
5790 if test "${with_sendmail+set}" = set; then
5791   withval="$with_sendmail"
5792   SENDMAIL=$with_sendmail
5793 fi
5794
5795
5796 # Check whether --with-kerberos or --without-kerberos was given.
5797 if test "${with_kerberos+set}" = set; then
5798   withval="$with_kerberos"
5799   if test x"$with_kerberos" != xno ; then
5800          KRB5_LDFLAGS="-L$with_kerberos/lib"
5801          KRB5_INC="-I$with_kerberos/include"
5802      fi
5803 fi
5804
5805
5806 # Check whether --with-perl or --without-perl was given.
5807 if test "${with_perl+set}" = set; then
5808   withval="$with_perl"
5809   case "${withval}" in
5810     yes) DO_PERL=DO
5811          cat >> confdefs.h <<\EOF
5812 #define DO_PERL 1
5813 EOF
5814
5815          ;;
5816     no)  DO_PERL=DONT ;;
5817     *)   { echo "configure: error: invalid argument to --with-perl" 1>&2; exit 1; } ;;
5818     esac
5819 else
5820   DO_PERL=DONT
5821 fi
5822
5823
5824 # Check whether --with-python or --without-python was given.
5825 if test "${with_python+set}" = set; then
5826   withval="$with_python"
5827   case "${withval}" in
5828     yes) DO_PYTHON=define
5829          cat >> confdefs.h <<\EOF
5830 #define DO_PYTHON 1
5831 EOF
5832
5833          ;;
5834     no)  DO_PYTHON=DONT ;;
5835     *)   { echo "configure: error: invalid argument to --with-python" 1>&2; exit 1; } ;;
5836     esac
5837 else
5838   DO_PYTHON=DONT
5839 fi
5840
5841
5842 HOSTNAME=server.example.net
5843
5844
5845 if test $ac_cv_prog_gcc = yes; then
5846     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
5847 echo "configure:5848: checking whether ${CC-cc} needs -traditional" >&5
5848 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
5849   echo $ac_n "(cached) $ac_c" 1>&6
5850 else
5851     ac_pattern="Autoconf.*'x'"
5852   cat > conftest.$ac_ext <<EOF
5853 #line 5854 "configure"
5854 #include "confdefs.h"
5855 #include <sgtty.h>
5856 Autoconf TIOCGETP
5857 EOF
5858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5859   egrep "$ac_pattern" >/dev/null 2>&1; then
5860   rm -rf conftest*
5861   ac_cv_prog_gcc_traditional=yes
5862 else
5863   rm -rf conftest*
5864   ac_cv_prog_gcc_traditional=no
5865 fi
5866 rm -f conftest*
5867
5868
5869   if test $ac_cv_prog_gcc_traditional = no; then
5870     cat > conftest.$ac_ext <<EOF
5871 #line 5872 "configure"
5872 #include "confdefs.h"
5873 #include <termio.h>
5874 Autoconf TCGETA
5875 EOF
5876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5877   egrep "$ac_pattern" >/dev/null 2>&1; then
5878   rm -rf conftest*
5879   ac_cv_prog_gcc_traditional=yes
5880 fi
5881 rm -f conftest*
5882
5883   fi
5884 fi
5885
5886 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
5887   if test $ac_cv_prog_gcc_traditional = yes; then
5888     CC="$CC -traditional"
5889   fi
5890 fi
5891
5892 # Extract the first word of "flex", so it can be a program name with args.
5893 set dummy flex; ac_word=$2
5894 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5895 echo "configure:5896: checking for $ac_word" >&5
5896 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
5897   echo $ac_n "(cached) $ac_c" 1>&6
5898 else
5899   if test -n "$LEX"; then
5900   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5901 else
5902   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5903   ac_dummy="$PATH"
5904   for ac_dir in $ac_dummy; do
5905     test -z "$ac_dir" && ac_dir=.
5906     if test -f $ac_dir/$ac_word; then
5907       ac_cv_prog_LEX="flex"
5908       break
5909     fi
5910   done
5911   IFS="$ac_save_ifs"
5912   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
5913 fi
5914 fi
5915 LEX="$ac_cv_prog_LEX"
5916 if test -n "$LEX"; then
5917   echo "$ac_t""$LEX" 1>&6
5918 else
5919   echo "$ac_t""no" 1>&6
5920 fi
5921
5922 if test -z "$LEXLIB"
5923 then
5924   case "$LEX" in
5925   flex*) ac_lib=fl ;;
5926   *) ac_lib=l ;;
5927   esac
5928   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
5929 echo "configure:5930: checking for yywrap in -l$ac_lib" >&5
5930 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
5931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5932   echo $ac_n "(cached) $ac_c" 1>&6
5933 else
5934   ac_save_LIBS="$LIBS"
5935 LIBS="-l$ac_lib  $LIBS"
5936 cat > conftest.$ac_ext <<EOF
5937 #line 5938 "configure"
5938 #include "confdefs.h"
5939 /* Override any gcc2 internal prototype to avoid an error.  */
5940 /* We use char because int might match the return type of a gcc2
5941     builtin and then its argument prototype would still apply.  */
5942 char yywrap();
5943
5944 int main() {
5945 yywrap()
5946 ; return 0; }
5947 EOF
5948 if { (eval echo configure:5949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5949   rm -rf conftest*
5950   eval "ac_cv_lib_$ac_lib_var=yes"
5951 else
5952   echo "configure: failed program was:" >&5
5953   cat conftest.$ac_ext >&5
5954   rm -rf conftest*
5955   eval "ac_cv_lib_$ac_lib_var=no"
5956 fi
5957 rm -f conftest*
5958 LIBS="$ac_save_LIBS"
5959
5960 fi
5961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5962   echo "$ac_t""yes" 1>&6
5963   LEXLIB="-l$ac_lib"
5964 else
5965   echo "$ac_t""no" 1>&6
5966 fi
5967
5968 fi
5969
5970 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
5971 echo "configure:5972: checking whether ${MAKE-make} sets \${MAKE}" >&5
5972 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
5973 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
5974   echo $ac_n "(cached) $ac_c" 1>&6
5975 else
5976   cat > conftestmake <<\EOF
5977 all:
5978         @echo 'ac_maketemp="${MAKE}"'
5979 EOF
5980 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5981 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
5982 if test -n "$ac_maketemp"; then
5983   eval ac_cv_prog_make_${ac_make}_set=yes
5984 else
5985   eval ac_cv_prog_make_${ac_make}_set=no
5986 fi
5987 rm -f conftestmake
5988 fi
5989 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5990   echo "$ac_t""yes" 1>&6
5991   SET_MAKE=
5992 else
5993   echo "$ac_t""no" 1>&6
5994   SET_MAKE="MAKE=${MAKE-make}"
5995 fi
5996
5997 # Extract the first word of "ranlib", so it can be a program name with args.
5998 set dummy ranlib; ac_word=$2
5999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6000 echo "configure:6001: checking for $ac_word" >&5
6001 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6002   echo $ac_n "(cached) $ac_c" 1>&6
6003 else
6004   if test -n "$RANLIB"; then
6005   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6006 else
6007   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6008   ac_dummy="$PATH"
6009   for ac_dir in $ac_dummy; do
6010     test -z "$ac_dir" && ac_dir=.
6011     if test -f $ac_dir/$ac_word; then
6012       ac_cv_prog_RANLIB="ranlib"
6013       break
6014     fi
6015   done
6016   IFS="$ac_save_ifs"
6017   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6018 fi
6019 fi
6020 RANLIB="$ac_cv_prog_RANLIB"
6021 if test -n "$RANLIB"; then
6022   echo "$ac_t""$RANLIB" 1>&6
6023 else
6024   echo "$ac_t""no" 1>&6
6025 fi
6026
6027 for ac_prog in 'bison -y' byacc
6028 do
6029 # Extract the first word of "$ac_prog", so it can be a program name with args.
6030 set dummy $ac_prog; ac_word=$2
6031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6032 echo "configure:6033: checking for $ac_word" >&5
6033 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6034   echo $ac_n "(cached) $ac_c" 1>&6
6035 else
6036   if test -n "$YACC"; then
6037   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6038 else
6039   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6040   ac_dummy="$PATH"
6041   for ac_dir in $ac_dummy; do
6042     test -z "$ac_dir" && ac_dir=.
6043     if test -f $ac_dir/$ac_word; then
6044       ac_cv_prog_YACC="$ac_prog"
6045       break
6046     fi
6047   done
6048   IFS="$ac_save_ifs"
6049 fi
6050 fi
6051 YACC="$ac_cv_prog_YACC"
6052 if test -n "$YACC"; then
6053   echo "$ac_t""$YACC" 1>&6
6054 else
6055   echo "$ac_t""no" 1>&6
6056 fi
6057
6058 test -n "$YACC" && break
6059 done
6060 test -n "$YACC" || YACC="yacc"
6061
6062
6063 case "$CPP" in
6064 *-traditional-cpp*)
6065     CFLAGS="-traditional-cpp $CFLAGS"
6066     ;;
6067 esac
6068
6069 case "$host" in
6070
6071 *hpux*)
6072     if test x"$GCC" != xyes ; then
6073                 CFLAGS="$CFLAGS -Ae"
6074
6075                 case "$CFLAGS" in
6076         *-g*)
6077             LDFLAGS="$LDFLAGS -g"
6078             ;;
6079         esac
6080     fi
6081     ;;
6082
6083 *darwin*)
6084     LDFLAGS="$LDFLAGS -multiply_defined suppress"
6085     ;;
6086
6087 *UnixWare*|*unixware*|*-sco3*)
6088     if test x"$GCC" != xyes ; then
6089         CFLAGS="$CFLAGS -Kalloca"
6090     fi
6091 esac
6092   
6093
6094 # Extract the first word of "ctags", so it can be a program name with args.
6095 set dummy ctags; ac_word=$2
6096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6097 echo "configure:6098: checking for $ac_word" >&5
6098 if eval "test \"`echo '$''{'ac_cv_path_CTAGS'+set}'`\" = set"; then
6099   echo $ac_n "(cached) $ac_c" 1>&6
6100 else
6101   case "$CTAGS" in
6102   /*)
6103   ac_cv_path_CTAGS="$CTAGS" # Let the user override the test with a path.
6104   ;;
6105   ?:/*)                  
6106   ac_cv_path_CTAGS="$CTAGS" # Let the user override the test with a dos path.
6107   ;;
6108   *)
6109   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6110   ac_dummy="$PATH"
6111   for ac_dir in $ac_dummy; do 
6112     test -z "$ac_dir" && ac_dir=.
6113     if test -f $ac_dir/$ac_word; then
6114       ac_cv_path_CTAGS="$ac_dir/$ac_word"
6115       break
6116     fi
6117   done
6118   IFS="$ac_save_ifs"
6119   test -z "$ac_cv_path_CTAGS" && ac_cv_path_CTAGS="echo"
6120   ;;
6121 esac
6122 fi
6123 CTAGS="$ac_cv_path_CTAGS"
6124 if test -n "$CTAGS"; then
6125   echo "$ac_t""$CTAGS" 1>&6
6126 else
6127   echo "$ac_t""no" 1>&6
6128 fi
6129
6130 if test x"$CTAGS" != xecho ; then
6131     CTAGS="$CTAGS -t -w"
6132 fi
6133
6134
6135
6136 # Extract the first word of "awk", so it can be a program name with args.
6137 set dummy awk; ac_word=$2
6138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6139 echo "configure:6140: checking for $ac_word" >&5
6140 if eval "test \"`echo '$''{'ac_cv_path__PATH_AWK'+set}'`\" = set"; then
6141   echo $ac_n "(cached) $ac_c" 1>&6
6142 else
6143   case "$_PATH_AWK" in
6144   /*)
6145   ac_cv_path__PATH_AWK="$_PATH_AWK" # Let the user override the test with a path.
6146   ;;
6147   ?:/*)                  
6148   ac_cv_path__PATH_AWK="$_PATH_AWK" # Let the user override the test with a dos path.
6149   ;;
6150   *)
6151   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6152   ac_dummy="$PATH"
6153   for ac_dir in $ac_dummy; do 
6154     test -z "$ac_dir" && ac_dir=.
6155     if test -f $ac_dir/$ac_word; then
6156       ac_cv_path__PATH_AWK="$ac_dir/$ac_word"
6157       break
6158     fi
6159   done
6160   IFS="$ac_save_ifs"
6161   ;;
6162 esac
6163 fi
6164 _PATH_AWK="$ac_cv_path__PATH_AWK"
6165 if test -n "$_PATH_AWK"; then
6166   echo "$ac_t""$_PATH_AWK" 1>&6
6167 else
6168   echo "$ac_t""no" 1>&6
6169 fi
6170
6171 if test -z "${_PATH_AWK}" ; then
6172     { echo "configure: error: awk was not found in path and is required" 1>&2; exit 1; }
6173 fi
6174 # Extract the first word of "egrep", so it can be a program name with args.
6175 set dummy egrep; ac_word=$2
6176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6177 echo "configure:6178: checking for $ac_word" >&5
6178 if eval "test \"`echo '$''{'ac_cv_path__PATH_EGREP'+set}'`\" = set"; then
6179   echo $ac_n "(cached) $ac_c" 1>&6
6180 else
6181   case "$_PATH_EGREP" in
6182   /*)
6183   ac_cv_path__PATH_EGREP="$_PATH_EGREP" # Let the user override the test with a path.
6184   ;;
6185   ?:/*)                  
6186   ac_cv_path__PATH_EGREP="$_PATH_EGREP" # Let the user override the test with a dos path.
6187   ;;
6188   *)
6189   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6190   ac_dummy="$PATH"
6191   for ac_dir in $ac_dummy; do 
6192     test -z "$ac_dir" && ac_dir=.
6193     if test -f $ac_dir/$ac_word; then
6194       ac_cv_path__PATH_EGREP="$ac_dir/$ac_word"
6195       break
6196     fi
6197   done
6198   IFS="$ac_save_ifs"
6199   ;;
6200 esac
6201 fi
6202 _PATH_EGREP="$ac_cv_path__PATH_EGREP"
6203 if test -n "$_PATH_EGREP"; then
6204   echo "$ac_t""$_PATH_EGREP" 1>&6
6205 else
6206   echo "$ac_t""no" 1>&6
6207 fi
6208
6209 if test -z "${_PATH_EGREP}" ; then
6210     { echo "configure: error: egrep was not found in path and is required" 1>&2; exit 1; }
6211 fi
6212 # Extract the first word of "perl", so it can be a program name with args.
6213 set dummy perl; ac_word=$2
6214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6215 echo "configure:6216: checking for $ac_word" >&5
6216 if eval "test \"`echo '$''{'ac_cv_path__PATH_PERL'+set}'`\" = set"; then
6217   echo $ac_n "(cached) $ac_c" 1>&6
6218 else
6219   case "$_PATH_PERL" in
6220   /*)
6221   ac_cv_path__PATH_PERL="$_PATH_PERL" # Let the user override the test with a path.
6222   ;;
6223   ?:/*)                  
6224   ac_cv_path__PATH_PERL="$_PATH_PERL" # Let the user override the test with a dos path.
6225   ;;
6226   *)
6227   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6228   ac_dummy="$PATH"
6229   for ac_dir in $ac_dummy; do 
6230     test -z "$ac_dir" && ac_dir=.
6231     if test -f $ac_dir/$ac_word; then
6232       ac_cv_path__PATH_PERL="$ac_dir/$ac_word"
6233       break
6234     fi
6235   done
6236   IFS="$ac_save_ifs"
6237   ;;
6238 esac
6239 fi
6240 _PATH_PERL="$ac_cv_path__PATH_PERL"
6241 if test -n "$_PATH_PERL"; then
6242   echo "$ac_t""$_PATH_PERL" 1>&6
6243 else
6244   echo "$ac_t""no" 1>&6
6245 fi
6246
6247 if test -z "${_PATH_PERL}" ; then
6248     { echo "configure: error: perl was not found in path and is required" 1>&2; exit 1; }
6249 fi
6250 # Extract the first word of "sh", so it can be a program name with args.
6251 set dummy sh; ac_word=$2
6252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6253 echo "configure:6254: checking for $ac_word" >&5
6254 if eval "test \"`echo '$''{'ac_cv_path__PATH_SH'+set}'`\" = set"; then
6255   echo $ac_n "(cached) $ac_c" 1>&6
6256 else
6257   case "$_PATH_SH" in
6258   /*)
6259   ac_cv_path__PATH_SH="$_PATH_SH" # Let the user override the test with a path.
6260   ;;
6261   ?:/*)                  
6262   ac_cv_path__PATH_SH="$_PATH_SH" # Let the user override the test with a dos path.
6263   ;;
6264   *)
6265   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6266   ac_dummy="$PATH"
6267   for ac_dir in $ac_dummy; do 
6268     test -z "$ac_dir" && ac_dir=.
6269     if test -f $ac_dir/$ac_word; then
6270       ac_cv_path__PATH_SH="$ac_dir/$ac_word"
6271       break
6272     fi
6273   done
6274   IFS="$ac_save_ifs"
6275   ;;
6276 esac
6277 fi
6278 _PATH_SH="$ac_cv_path__PATH_SH"
6279 if test -n "$_PATH_SH"; then
6280   echo "$ac_t""$_PATH_SH" 1>&6
6281 else
6282   echo "$ac_t""no" 1>&6
6283 fi
6284
6285 if test -z "${_PATH_SH}" ; then
6286     { echo "configure: error: sh was not found in path and is required" 1>&2; exit 1; }
6287 fi
6288 # Extract the first word of "sed", so it can be a program name with args.
6289 set dummy sed; ac_word=$2
6290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6291 echo "configure:6292: checking for $ac_word" >&5
6292 if eval "test \"`echo '$''{'ac_cv_path__PATH_SED'+set}'`\" = set"; then
6293   echo $ac_n "(cached) $ac_c" 1>&6
6294 else
6295   case "$_PATH_SED" in
6296   /*)
6297   ac_cv_path__PATH_SED="$_PATH_SED" # Let the user override the test with a path.
6298   ;;
6299   ?:/*)                  
6300   ac_cv_path__PATH_SED="$_PATH_SED" # Let the user override the test with a dos path.
6301   ;;
6302   *)
6303   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6304   ac_dummy="$PATH"
6305   for ac_dir in $ac_dummy; do 
6306     test -z "$ac_dir" && ac_dir=.
6307     if test -f $ac_dir/$ac_word; then
6308       ac_cv_path__PATH_SED="$ac_dir/$ac_word"
6309       break
6310     fi
6311   done
6312   IFS="$ac_save_ifs"
6313   ;;
6314 esac
6315 fi
6316 _PATH_SED="$ac_cv_path__PATH_SED"
6317 if test -n "$_PATH_SED"; then
6318   echo "$ac_t""$_PATH_SED" 1>&6
6319 else
6320   echo "$ac_t""no" 1>&6
6321 fi
6322
6323 if test -z "${_PATH_SED}" ; then
6324     { echo "configure: error: sed was not found in path and is required" 1>&2; exit 1; }
6325 fi
6326 # Extract the first word of "sort", so it can be a program name with args.
6327 set dummy sort; ac_word=$2
6328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6329 echo "configure:6330: checking for $ac_word" >&5
6330 if eval "test \"`echo '$''{'ac_cv_path__PATH_SORT'+set}'`\" = set"; then
6331   echo $ac_n "(cached) $ac_c" 1>&6
6332 else
6333   case "$_PATH_SORT" in
6334   /*)
6335   ac_cv_path__PATH_SORT="$_PATH_SORT" # Let the user override the test with a path.
6336   ;;
6337   ?:/*)                  
6338   ac_cv_path__PATH_SORT="$_PATH_SORT" # Let the user override the test with a dos path.
6339   ;;
6340   *)
6341   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6342   ac_dummy="$PATH"
6343   for ac_dir in $ac_dummy; do 
6344     test -z "$ac_dir" && ac_dir=.
6345     if test -f $ac_dir/$ac_word; then
6346       ac_cv_path__PATH_SORT="$ac_dir/$ac_word"
6347       break
6348     fi
6349   done
6350   IFS="$ac_save_ifs"
6351   ;;
6352 esac
6353 fi
6354 _PATH_SORT="$ac_cv_path__PATH_SORT"
6355 if test -n "$_PATH_SORT"; then
6356   echo "$ac_t""$_PATH_SORT" 1>&6
6357 else
6358   echo "$ac_t""no" 1>&6
6359 fi
6360
6361 if test -z "${_PATH_SORT}" ; then
6362     { echo "configure: error: sort was not found in path and is required" 1>&2; exit 1; }
6363 fi
6364 for ac_prog in uux
6365 do
6366 # Extract the first word of "$ac_prog", so it can be a program name with args.
6367 set dummy $ac_prog; ac_word=$2
6368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6369 echo "configure:6370: checking for $ac_word" >&5
6370 if eval "test \"`echo '$''{'ac_cv_path__PATH_UUX'+set}'`\" = set"; then
6371   echo $ac_n "(cached) $ac_c" 1>&6
6372 else
6373   case "$_PATH_UUX" in
6374   /*)
6375   ac_cv_path__PATH_UUX="$_PATH_UUX" # Let the user override the test with a path.
6376   ;;
6377   ?:/*)                  
6378   ac_cv_path__PATH_UUX="$_PATH_UUX" # Let the user override the test with a dos path.
6379   ;;
6380   *)
6381   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6382   ac_dummy="$PATH"
6383   for ac_dir in $ac_dummy; do 
6384     test -z "$ac_dir" && ac_dir=.
6385     if test -f $ac_dir/$ac_word; then
6386       ac_cv_path__PATH_UUX="$ac_dir/$ac_word"
6387       break
6388     fi
6389   done
6390   IFS="$ac_save_ifs"
6391   ;;
6392 esac
6393 fi
6394 _PATH_UUX="$ac_cv_path__PATH_UUX"
6395 if test -n "$_PATH_UUX"; then
6396   echo "$ac_t""$_PATH_UUX" 1>&6
6397 else
6398   echo "$ac_t""no" 1>&6
6399 fi
6400
6401 test -n "$_PATH_UUX" && break
6402 done
6403 test -n "$_PATH_UUX" || _PATH_UUX="uux"
6404
6405
6406 inn_perl_command='print $]'
6407
6408
6409 echo $ac_n "checking for Perl version""... $ac_c" 1>&6
6410 echo "configure:6411: checking for Perl version" >&5
6411 if eval "test \"`echo '$''{'inn_cv_perl_version'+set}'`\" = set"; then
6412   echo $ac_n "(cached) $ac_c" 1>&6
6413 else
6414   if $_PATH_PERL -e 'require 5.004_03;' > /dev/null 2>&1 ; then
6415     inn_cv_perl_version=`$_PATH_PERL -e "$inn_perl_command"`
6416 else
6417     { echo "configure: error: Perl 5.004_03 or greater is required" 1>&2; exit 1; }
6418 fi
6419 fi
6420
6421 echo "$ac_t""$inn_cv_perl_version" 1>&6
6422
6423 pgpverify=true
6424 for ac_prog in gpgv
6425 do
6426 # Extract the first word of "$ac_prog", so it can be a program name with args.
6427 set dummy $ac_prog; ac_word=$2
6428 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6429 echo "configure:6430: checking for $ac_word" >&5
6430 if eval "test \"`echo '$''{'ac_cv_path_PATH_GPGV'+set}'`\" = set"; then
6431   echo $ac_n "(cached) $ac_c" 1>&6
6432 else
6433   case "$PATH_GPGV" in
6434   /*)
6435   ac_cv_path_PATH_GPGV="$PATH_GPGV" # Let the user override the test with a path.
6436   ;;
6437   ?:/*)                  
6438   ac_cv_path_PATH_GPGV="$PATH_GPGV" # Let the user override the test with a dos path.
6439   ;;
6440   *)
6441   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6442   ac_dummy="$PATH"
6443   for ac_dir in $ac_dummy; do 
6444     test -z "$ac_dir" && ac_dir=.
6445     if test -f $ac_dir/$ac_word; then
6446       ac_cv_path_PATH_GPGV="$ac_dir/$ac_word"
6447       break
6448     fi
6449   done
6450   IFS="$ac_save_ifs"
6451   ;;
6452 esac
6453 fi
6454 PATH_GPGV="$ac_cv_path_PATH_GPGV"
6455 if test -n "$PATH_GPGV"; then
6456   echo "$ac_t""$PATH_GPGV" 1>&6
6457 else
6458   echo "$ac_t""no" 1>&6
6459 fi
6460
6461 test -n "$PATH_GPGV" && break
6462 done
6463
6464 for ac_prog in pgpv pgp pgpgpg
6465 do
6466 # Extract the first word of "$ac_prog", so it can be a program name with args.
6467 set dummy $ac_prog; ac_word=$2
6468 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6469 echo "configure:6470: checking for $ac_word" >&5
6470 if eval "test \"`echo '$''{'ac_cv_path__PATH_PGP'+set}'`\" = set"; then
6471   echo $ac_n "(cached) $ac_c" 1>&6
6472 else
6473   case "$_PATH_PGP" in
6474   /*)
6475   ac_cv_path__PATH_PGP="$_PATH_PGP" # Let the user override the test with a path.
6476   ;;
6477   ?:/*)                  
6478   ac_cv_path__PATH_PGP="$_PATH_PGP" # Let the user override the test with a dos path.
6479   ;;
6480   *)
6481   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6482   ac_dummy="$PATH"
6483   for ac_dir in $ac_dummy; do 
6484     test -z "$ac_dir" && ac_dir=.
6485     if test -f $ac_dir/$ac_word; then
6486       ac_cv_path__PATH_PGP="$ac_dir/$ac_word"
6487       break
6488     fi
6489   done
6490   IFS="$ac_save_ifs"
6491   ;;
6492 esac
6493 fi
6494 _PATH_PGP="$ac_cv_path__PATH_PGP"
6495 if test -n "$_PATH_PGP"; then
6496   echo "$ac_t""$_PATH_PGP" 1>&6
6497 else
6498   echo "$ac_t""no" 1>&6
6499 fi
6500
6501 test -n "$_PATH_PGP" && break
6502 done
6503
6504 if test -z "$_PATH_PGP" && test -z "$PATH_GPGV" ; then
6505     pgpverify=false
6506 fi
6507
6508
6509 for ac_prog in wget ncftpget ncftp
6510 do
6511 # Extract the first word of "$ac_prog", so it can be a program name with args.
6512 set dummy $ac_prog; ac_word=$2
6513 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6514 echo "configure:6515: checking for $ac_word" >&5
6515 if eval "test \"`echo '$''{'ac_cv_path_GETFTP'+set}'`\" = set"; then
6516   echo $ac_n "(cached) $ac_c" 1>&6
6517 else
6518   case "$GETFTP" in
6519   /*)
6520   ac_cv_path_GETFTP="$GETFTP" # Let the user override the test with a path.
6521   ;;
6522   ?:/*)                  
6523   ac_cv_path_GETFTP="$GETFTP" # Let the user override the test with a dos path.
6524   ;;
6525   *)
6526   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6527   ac_dummy="$PATH"
6528   for ac_dir in $ac_dummy; do 
6529     test -z "$ac_dir" && ac_dir=.
6530     if test -f $ac_dir/$ac_word; then
6531       ac_cv_path_GETFTP="$ac_dir/$ac_word"
6532       break
6533     fi
6534   done
6535   IFS="$ac_save_ifs"
6536   ;;
6537 esac
6538 fi
6539 GETFTP="$ac_cv_path_GETFTP"
6540 if test -n "$GETFTP"; then
6541   echo "$ac_t""$GETFTP" 1>&6
6542 else
6543   echo "$ac_t""no" 1>&6
6544 fi
6545
6546 test -n "$GETFTP" && break
6547 done
6548 test -n "$GETFTP" || GETFTP="$prefix/bin/simpleftp"
6549
6550
6551 case "$LOG_COMPRESS" in
6552 compress|gzip) ;;
6553 *)             # Extract the first word of ""$LOG_COMPRESS"", so it can be a program name with args.
6554 set dummy "$LOG_COMPRESS"; ac_word=$2
6555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6556 echo "configure:6557: checking for $ac_word" >&5
6557 if eval "test \"`echo '$''{'ac_cv_path_LOG_COMPRESS'+set}'`\" = set"; then
6558   echo $ac_n "(cached) $ac_c" 1>&6
6559 else
6560   case "$LOG_COMPRESS" in
6561   /*)
6562   ac_cv_path_LOG_COMPRESS="$LOG_COMPRESS" # Let the user override the test with a path.
6563   ;;
6564   ?:/*)                  
6565   ac_cv_path_LOG_COMPRESS="$LOG_COMPRESS" # Let the user override the test with a dos path.
6566   ;;
6567   *)
6568   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6569   ac_dummy="$PATH"
6570   for ac_dir in $ac_dummy; do 
6571     test -z "$ac_dir" && ac_dir=.
6572     if test -f $ac_dir/$ac_word; then
6573       ac_cv_path_LOG_COMPRESS="$ac_dir/$ac_word"
6574       break
6575     fi
6576   done
6577   IFS="$ac_save_ifs"
6578   ;;
6579 esac
6580 fi
6581 LOG_COMPRESS="$ac_cv_path_LOG_COMPRESS"
6582 if test -n "$LOG_COMPRESS"; then
6583   echo "$ac_t""$LOG_COMPRESS" 1>&6
6584 else
6585   echo "$ac_t""no" 1>&6
6586 fi
6587
6588 if test -z "${LOG_COMPRESS}" ; then
6589     { echo "configure: error: "$LOG_COMPRESS" was not found in path and is required" 1>&2; exit 1; }
6590 fi
6591 esac
6592 # Extract the first word of "compress", so it can be a program name with args.
6593 set dummy compress; ac_word=$2
6594 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6595 echo "configure:6596: checking for $ac_word" >&5
6596 if eval "test \"`echo '$''{'ac_cv_path_COMPRESS'+set}'`\" = set"; then
6597   echo $ac_n "(cached) $ac_c" 1>&6
6598 else
6599   case "$COMPRESS" in
6600   /*)
6601   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6602   ;;
6603   ?:/*)                  
6604   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a dos path.
6605   ;;
6606   *)
6607   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6608   ac_dummy="$PATH"
6609   for ac_dir in $ac_dummy; do 
6610     test -z "$ac_dir" && ac_dir=.
6611     if test -f $ac_dir/$ac_word; then
6612       ac_cv_path_COMPRESS="$ac_dir/$ac_word"
6613       break
6614     fi
6615   done
6616   IFS="$ac_save_ifs"
6617   test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS="compress"
6618   ;;
6619 esac
6620 fi
6621 COMPRESS="$ac_cv_path_COMPRESS"
6622 if test -n "$COMPRESS"; then
6623   echo "$ac_t""$COMPRESS" 1>&6
6624 else
6625   echo "$ac_t""no" 1>&6
6626 fi
6627
6628 if test x"$LOG_COMPRESS" = xcompress ; then
6629     if test x"$COMPRESS" = xcompress ; then
6630         { echo "configure: error: compress not found but specified for log compression" 1>&2; exit 1; }
6631     fi
6632     LOG_COMPRESS="$COMPRESS"
6633 fi
6634 # Extract the first word of "gzip", so it can be a program name with args.
6635 set dummy gzip; ac_word=$2
6636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6637 echo "configure:6638: checking for $ac_word" >&5
6638 if eval "test \"`echo '$''{'ac_cv_path_GZIP'+set}'`\" = set"; then
6639   echo $ac_n "(cached) $ac_c" 1>&6
6640 else
6641   case "$GZIP" in
6642   /*)
6643   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
6644   ;;
6645   ?:/*)                  
6646   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a dos path.
6647   ;;
6648   *)
6649   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6650   ac_dummy="$PATH"
6651   for ac_dir in $ac_dummy; do 
6652     test -z "$ac_dir" && ac_dir=.
6653     if test -f $ac_dir/$ac_word; then
6654       ac_cv_path_GZIP="$ac_dir/$ac_word"
6655       break
6656     fi
6657   done
6658   IFS="$ac_save_ifs"
6659   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="gzip"
6660   ;;
6661 esac
6662 fi
6663 GZIP="$ac_cv_path_GZIP"
6664 if test -n "$GZIP"; then
6665   echo "$ac_t""$GZIP" 1>&6
6666 else
6667   echo "$ac_t""no" 1>&6
6668 fi
6669
6670 if test x"$LOG_COMPRESS" = xgzip ; then
6671     if test x"$GZIP" = xgzip ; then
6672         { echo "configure: error: gzip not found but specified for log compression" 1>&2; exit 1; }
6673     fi
6674     LOG_COMPRESS="$GZIP"
6675 fi
6676
6677 if test x"$COMPRESS" = xcompress && test x"$GZIP" != xgzip ; then
6678     UNCOMPRESS="$GZIP -d"
6679 else
6680     UNCOMPRESS="$COMPRESS -d"
6681 fi
6682
6683
6684 if test "${with_sendmail+set}" = set ; then
6685     echo $ac_n "checking for sendmail""... $ac_c" 1>&6
6686 echo "configure:6687: checking for sendmail" >&5
6687     echo "$ac_t""$SENDMAIL" 1>&6
6688 else
6689     # Extract the first word of "sendmail", so it can be a program name with args.
6690 set dummy sendmail; ac_word=$2
6691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6692 echo "configure:6693: checking for $ac_word" >&5
6693 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
6694   echo $ac_n "(cached) $ac_c" 1>&6
6695 else
6696   case "$SENDMAIL" in
6697   /*)
6698   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
6699   ;;
6700   ?:/*)                  
6701   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
6702   ;;
6703   *)
6704   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6705   ac_dummy=""/usr/sbin:/usr/lib""
6706   for ac_dir in $ac_dummy; do 
6707     test -z "$ac_dir" && ac_dir=.
6708     if test -f $ac_dir/$ac_word; then
6709       ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
6710       break
6711     fi
6712   done
6713   IFS="$ac_save_ifs"
6714   ;;
6715 esac
6716 fi
6717 SENDMAIL="$ac_cv_path_SENDMAIL"
6718 if test -n "$SENDMAIL"; then
6719   echo "$ac_t""$SENDMAIL" 1>&6
6720 else
6721   echo "$ac_t""no" 1>&6
6722 fi
6723
6724     if test -z "$SENDMAIL" ; then
6725         { echo "configure: error: sendmail not found" 1>&2; exit 1; }
6726     fi
6727 fi
6728
6729 # Extract the first word of "uustat", so it can be a program name with args.
6730 set dummy uustat; ac_word=$2
6731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6732 echo "configure:6733: checking for $ac_word" >&5
6733 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_UUSTAT'+set}'`\" = set"; then
6734   echo $ac_n "(cached) $ac_c" 1>&6
6735 else
6736   if test -n "$HAVE_UUSTAT"; then
6737   ac_cv_prog_HAVE_UUSTAT="$HAVE_UUSTAT" # Let the user override the test.
6738 else
6739   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6740   ac_dummy="$PATH"
6741   for ac_dir in $ac_dummy; do
6742     test -z "$ac_dir" && ac_dir=.
6743     if test -f $ac_dir/$ac_word; then
6744       ac_cv_prog_HAVE_UUSTAT="DO"
6745       break
6746     fi
6747   done
6748   IFS="$ac_save_ifs"
6749   test -z "$ac_cv_prog_HAVE_UUSTAT" && ac_cv_prog_HAVE_UUSTAT="DONT"
6750 fi
6751 fi
6752 HAVE_UUSTAT="$ac_cv_prog_HAVE_UUSTAT"
6753 if test -n "$HAVE_UUSTAT"; then
6754   echo "$ac_t""$HAVE_UUSTAT" 1>&6
6755 else
6756   echo "$ac_t""no" 1>&6
6757 fi
6758
6759
6760
6761 if test x"$DO_PYTHON" = xdefine ; then
6762     # Extract the first word of "python", so it can be a program name with args.
6763 set dummy python; ac_word=$2
6764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6765 echo "configure:6766: checking for $ac_word" >&5
6766 if eval "test \"`echo '$''{'ac_cv_path__PATH_PYTHON'+set}'`\" = set"; then
6767   echo $ac_n "(cached) $ac_c" 1>&6
6768 else
6769   case "$_PATH_PYTHON" in
6770   /*)
6771   ac_cv_path__PATH_PYTHON="$_PATH_PYTHON" # Let the user override the test with a path.
6772   ;;
6773   ?:/*)                  
6774   ac_cv_path__PATH_PYTHON="$_PATH_PYTHON" # Let the user override the test with a dos path.
6775   ;;
6776   *)
6777   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6778   ac_dummy="$PATH"
6779   for ac_dir in $ac_dummy; do 
6780     test -z "$ac_dir" && ac_dir=.
6781     if test -f $ac_dir/$ac_word; then
6782       ac_cv_path__PATH_PYTHON="$ac_dir/$ac_word"
6783       break
6784     fi
6785   done
6786   IFS="$ac_save_ifs"
6787   ;;
6788 esac
6789 fi
6790 _PATH_PYTHON="$ac_cv_path__PATH_PYTHON"
6791 if test -n "$_PATH_PYTHON"; then
6792   echo "$ac_t""$_PATH_PYTHON" 1>&6
6793 else
6794   echo "$ac_t""no" 1>&6
6795 fi
6796
6797 if test -z "${_PATH_PYTHON}" ; then
6798     { echo "configure: error: python was not found in path and is required" 1>&2; exit 1; }
6799 fi
6800 fi
6801
6802
6803
6804
6805
6806 echo $ac_n "checking for library containing setproctitle""... $ac_c" 1>&6
6807 echo "configure:6808: checking for library containing setproctitle" >&5
6808 if eval "test \"`echo '$''{'ac_cv_search_setproctitle'+set}'`\" = set"; then
6809   echo $ac_n "(cached) $ac_c" 1>&6
6810 else
6811   ac_func_search_save_LIBS="$LIBS"
6812 ac_cv_search_setproctitle="no"
6813 cat > conftest.$ac_ext <<EOF
6814 #line 6815 "configure"
6815 #include "confdefs.h"
6816 /* Override any gcc2 internal prototype to avoid an error.  */
6817 /* We use char because int might match the return type of a gcc2
6818     builtin and then its argument prototype would still apply.  */
6819 char setproctitle();
6820
6821 int main() {
6822 setproctitle()
6823 ; return 0; }
6824 EOF
6825 if { (eval echo configure:6826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6826   rm -rf conftest*
6827   ac_cv_search_setproctitle="none required"
6828 else
6829   echo "configure: failed program was:" >&5
6830   cat conftest.$ac_ext >&5
6831 fi
6832 rm -f conftest*
6833 test "$ac_cv_search_setproctitle" = "no" && for i in util; do
6834 LIBS="-l$i  $ac_func_search_save_LIBS"
6835 cat > conftest.$ac_ext <<EOF
6836 #line 6837 "configure"
6837 #include "confdefs.h"
6838 /* Override any gcc2 internal prototype to avoid an error.  */
6839 /* We use char because int might match the return type of a gcc2
6840     builtin and then its argument prototype would still apply.  */
6841 char setproctitle();
6842
6843 int main() {
6844 setproctitle()
6845 ; return 0; }
6846 EOF
6847 if { (eval echo configure:6848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6848   rm -rf conftest*
6849   ac_cv_search_setproctitle="-l$i"
6850 break
6851 else
6852   echo "configure: failed program was:" >&5
6853   cat conftest.$ac_ext >&5
6854 fi
6855 rm -f conftest*
6856 done
6857 LIBS="$ac_func_search_save_LIBS"
6858 fi
6859
6860 echo "$ac_t""$ac_cv_search_setproctitle" 1>&6
6861 if test "$ac_cv_search_setproctitle" != "no"; then
6862   test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
6863   cat >> confdefs.h <<\EOF
6864 #define HAVE_SETPROCTITLE 1
6865 EOF
6866
6867 else :
6868   LIBOBJS="$LIBOBJS setproctitle.o"
6869      for ac_func in pstat
6870 do
6871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6872 echo "configure:6873: checking for $ac_func" >&5
6873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6874   echo $ac_n "(cached) $ac_c" 1>&6
6875 else
6876   cat > conftest.$ac_ext <<EOF
6877 #line 6878 "configure"
6878 #include "confdefs.h"
6879 /* System header to define __stub macros and hopefully few prototypes,
6880     which can conflict with char $ac_func(); below.  */
6881 #include <assert.h>
6882 /* Override any gcc2 internal prototype to avoid an error.  */
6883 /* We use char because int might match the return type of a gcc2
6884     builtin and then its argument prototype would still apply.  */
6885 char $ac_func();
6886
6887 int main() {
6888
6889 /* The GNU C library defines this for functions which it implements
6890     to always fail with ENOSYS.  Some functions are actually named
6891     something starting with __ and the normal name is an alias.  */
6892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6893 choke me
6894 #else
6895 $ac_func();
6896 #endif
6897
6898 ; return 0; }
6899 EOF
6900 if { (eval echo configure:6901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6901   rm -rf conftest*
6902   eval "ac_cv_func_$ac_func=yes"
6903 else
6904   echo "configure: failed program was:" >&5
6905   cat conftest.$ac_ext >&5
6906   rm -rf conftest*
6907   eval "ac_cv_func_$ac_func=no"
6908 fi
6909 rm -f conftest*
6910 fi
6911
6912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6913   echo "$ac_t""yes" 1>&6
6914     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6915   cat >> confdefs.h <<EOF
6916 #define $ac_tr_func 1
6917 EOF
6918  
6919 else
6920   echo "$ac_t""no" 1>&6
6921 fi
6922 done
6923
6924 fi
6925
6926
6927 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
6928 echo "configure:6929: checking for library containing gethostbyname" >&5
6929 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
6930   echo $ac_n "(cached) $ac_c" 1>&6
6931 else
6932   ac_func_search_save_LIBS="$LIBS"
6933 ac_cv_search_gethostbyname="no"
6934 cat > conftest.$ac_ext <<EOF
6935 #line 6936 "configure"
6936 #include "confdefs.h"
6937 /* Override any gcc2 internal prototype to avoid an error.  */
6938 /* We use char because int might match the return type of a gcc2
6939     builtin and then its argument prototype would still apply.  */
6940 char gethostbyname();
6941
6942 int main() {
6943 gethostbyname()
6944 ; return 0; }
6945 EOF
6946 if { (eval echo configure:6947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6947   rm -rf conftest*
6948   ac_cv_search_gethostbyname="none required"
6949 else
6950   echo "configure: failed program was:" >&5
6951   cat conftest.$ac_ext >&5
6952 fi
6953 rm -f conftest*
6954 test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; do
6955 LIBS="-l$i  $ac_func_search_save_LIBS"
6956 cat > conftest.$ac_ext <<EOF
6957 #line 6958 "configure"
6958 #include "confdefs.h"
6959 /* Override any gcc2 internal prototype to avoid an error.  */
6960 /* We use char because int might match the return type of a gcc2
6961     builtin and then its argument prototype would still apply.  */
6962 char gethostbyname();
6963
6964 int main() {
6965 gethostbyname()
6966 ; return 0; }
6967 EOF
6968 if { (eval echo configure:6969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6969   rm -rf conftest*
6970   ac_cv_search_gethostbyname="-l$i"
6971 break
6972 else
6973   echo "configure: failed program was:" >&5
6974   cat conftest.$ac_ext >&5
6975 fi
6976 rm -f conftest*
6977 done
6978 LIBS="$ac_func_search_save_LIBS"
6979 fi
6980
6981 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
6982 if test "$ac_cv_search_gethostbyname" != "no"; then
6983   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
6984   
6985 else :
6986   
6987 fi
6988
6989 echo $ac_n "checking for library containing socket""... $ac_c" 1>&6
6990 echo "configure:6991: checking for library containing socket" >&5
6991 if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then
6992   echo $ac_n "(cached) $ac_c" 1>&6
6993 else
6994   ac_func_search_save_LIBS="$LIBS"
6995 ac_cv_search_socket="no"
6996 cat > conftest.$ac_ext <<EOF
6997 #line 6998 "configure"
6998 #include "confdefs.h"
6999 /* Override any gcc2 internal prototype to avoid an error.  */
7000 /* We use char because int might match the return type of a gcc2
7001     builtin and then its argument prototype would still apply.  */
7002 char socket();
7003
7004 int main() {
7005 socket()
7006 ; return 0; }
7007 EOF
7008 if { (eval echo configure:7009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7009   rm -rf conftest*
7010   ac_cv_search_socket="none required"
7011 else
7012   echo "configure: failed program was:" >&5
7013   cat conftest.$ac_ext >&5
7014 fi
7015 rm -f conftest*
7016 test "$ac_cv_search_socket" = "no" && for i in socket; do
7017 LIBS="-l$i  $ac_func_search_save_LIBS"
7018 cat > conftest.$ac_ext <<EOF
7019 #line 7020 "configure"
7020 #include "confdefs.h"
7021 /* Override any gcc2 internal prototype to avoid an error.  */
7022 /* We use char because int might match the return type of a gcc2
7023     builtin and then its argument prototype would still apply.  */
7024 char socket();
7025
7026 int main() {
7027 socket()
7028 ; return 0; }
7029 EOF
7030 if { (eval echo configure:7031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7031   rm -rf conftest*
7032   ac_cv_search_socket="-l$i"
7033 break
7034 else
7035   echo "configure: failed program was:" >&5
7036   cat conftest.$ac_ext >&5
7037 fi
7038 rm -f conftest*
7039 done
7040 LIBS="$ac_func_search_save_LIBS"
7041 fi
7042
7043 echo "$ac_t""$ac_cv_search_socket" 1>&6
7044 if test "$ac_cv_search_socket" != "no"; then
7045   test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
7046   
7047 else :
7048   echo $ac_n "checking for socket in -lnsl""... $ac_c" 1>&6
7049 echo "configure:7050: checking for socket in -lnsl" >&5
7050 ac_lib_var=`echo nsl'_'socket | sed 'y%./+-%__p_%'`
7051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7052   echo $ac_n "(cached) $ac_c" 1>&6
7053 else
7054   ac_save_LIBS="$LIBS"
7055 LIBS="-lnsl -lsocket $LIBS"
7056 cat > conftest.$ac_ext <<EOF
7057 #line 7058 "configure"
7058 #include "confdefs.h"
7059 /* Override any gcc2 internal prototype to avoid an error.  */
7060 /* We use char because int might match the return type of a gcc2
7061     builtin and then its argument prototype would still apply.  */
7062 char socket();
7063
7064 int main() {
7065 socket()
7066 ; return 0; }
7067 EOF
7068 if { (eval echo configure:7069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7069   rm -rf conftest*
7070   eval "ac_cv_lib_$ac_lib_var=yes"
7071 else
7072   echo "configure: failed program was:" >&5
7073   cat conftest.$ac_ext >&5
7074   rm -rf conftest*
7075   eval "ac_cv_lib_$ac_lib_var=no"
7076 fi
7077 rm -f conftest*
7078 LIBS="$ac_save_LIBS"
7079
7080 fi
7081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7082   echo "$ac_t""yes" 1>&6
7083   LIBS="$LIBS -lsocket -lnsl"
7084 else
7085   echo "$ac_t""no" 1>&6
7086 fi
7087
7088 fi
7089
7090
7091 echo $ac_n "checking for library containing inet_aton""... $ac_c" 1>&6
7092 echo "configure:7093: checking for library containing inet_aton" >&5
7093 if eval "test \"`echo '$''{'ac_cv_search_inet_aton'+set}'`\" = set"; then
7094   echo $ac_n "(cached) $ac_c" 1>&6
7095 else
7096   ac_func_search_save_LIBS="$LIBS"
7097 ac_cv_search_inet_aton="no"
7098 cat > conftest.$ac_ext <<EOF
7099 #line 7100 "configure"
7100 #include "confdefs.h"
7101 /* Override any gcc2 internal prototype to avoid an error.  */
7102 /* We use char because int might match the return type of a gcc2
7103     builtin and then its argument prototype would still apply.  */
7104 char inet_aton();
7105
7106 int main() {
7107 inet_aton()
7108 ; return 0; }
7109 EOF
7110 if { (eval echo configure:7111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7111   rm -rf conftest*
7112   ac_cv_search_inet_aton="none required"
7113 else
7114   echo "configure: failed program was:" >&5
7115   cat conftest.$ac_ext >&5
7116 fi
7117 rm -f conftest*
7118 test "$ac_cv_search_inet_aton" = "no" && for i in resolv; do
7119 LIBS="-l$i  $ac_func_search_save_LIBS"
7120 cat > conftest.$ac_ext <<EOF
7121 #line 7122 "configure"
7122 #include "confdefs.h"
7123 /* Override any gcc2 internal prototype to avoid an error.  */
7124 /* We use char because int might match the return type of a gcc2
7125     builtin and then its argument prototype would still apply.  */
7126 char inet_aton();
7127
7128 int main() {
7129 inet_aton()
7130 ; return 0; }
7131 EOF
7132 if { (eval echo configure:7133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7133   rm -rf conftest*
7134   ac_cv_search_inet_aton="-l$i"
7135 break
7136 else
7137   echo "configure: failed program was:" >&5
7138   cat conftest.$ac_ext >&5
7139 fi
7140 rm -f conftest*
7141 done
7142 LIBS="$ac_func_search_save_LIBS"
7143 fi
7144
7145 echo "$ac_t""$ac_cv_search_inet_aton" 1>&6
7146 if test "$ac_cv_search_inet_aton" != "no"; then
7147   test "$ac_cv_search_inet_aton" = "none required" || LIBS="$ac_cv_search_inet_aton $LIBS"
7148   
7149 else :
7150   
7151 fi
7152
7153 inn_save_LIBS=$LIBS
7154 LIBS=${CRYPT_LIB}
7155
7156 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
7157 echo "configure:7158: checking for library containing crypt" >&5
7158 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
7159   echo $ac_n "(cached) $ac_c" 1>&6
7160 else
7161   ac_func_search_save_LIBS="$LIBS"
7162 ac_cv_search_crypt="no"
7163 cat > conftest.$ac_ext <<EOF
7164 #line 7165 "configure"
7165 #include "confdefs.h"
7166 /* Override any gcc2 internal prototype to avoid an error.  */
7167 /* We use char because int might match the return type of a gcc2
7168     builtin and then its argument prototype would still apply.  */
7169 char crypt();
7170
7171 int main() {
7172 crypt()
7173 ; return 0; }
7174 EOF
7175 if { (eval echo configure:7176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7176   rm -rf conftest*
7177   ac_cv_search_crypt="none required"
7178 else
7179   echo "configure: failed program was:" >&5
7180   cat conftest.$ac_ext >&5
7181 fi
7182 rm -f conftest*
7183 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
7184 LIBS="-l$i  $ac_func_search_save_LIBS"
7185 cat > conftest.$ac_ext <<EOF
7186 #line 7187 "configure"
7187 #include "confdefs.h"
7188 /* Override any gcc2 internal prototype to avoid an error.  */
7189 /* We use char because int might match the return type of a gcc2
7190     builtin and then its argument prototype would still apply.  */
7191 char crypt();
7192
7193 int main() {
7194 crypt()
7195 ; return 0; }
7196 EOF
7197 if { (eval echo configure:7198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7198   rm -rf conftest*
7199   ac_cv_search_crypt="-l$i"
7200 break
7201 else
7202   echo "configure: failed program was:" >&5
7203   cat conftest.$ac_ext >&5
7204 fi
7205 rm -f conftest*
7206 done
7207 LIBS="$ac_func_search_save_LIBS"
7208 fi
7209
7210 echo "$ac_t""$ac_cv_search_crypt" 1>&6
7211 if test "$ac_cv_search_crypt" != "no"; then
7212   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
7213   CRYPT_LIB=$LIBS
7214                 
7215 else :
7216   
7217 fi
7218 LIBS=$inn_save_LIBS
7219
7220 inn_save_LIBS=$LIBS
7221 LIBS=${SHADOW_LIB}
7222
7223 echo $ac_n "checking for library containing getspnam""... $ac_c" 1>&6
7224 echo "configure:7225: checking for library containing getspnam" >&5
7225 if eval "test \"`echo '$''{'ac_cv_search_getspnam'+set}'`\" = set"; then
7226   echo $ac_n "(cached) $ac_c" 1>&6
7227 else
7228   ac_func_search_save_LIBS="$LIBS"
7229 ac_cv_search_getspnam="no"
7230 cat > conftest.$ac_ext <<EOF
7231 #line 7232 "configure"
7232 #include "confdefs.h"
7233 /* Override any gcc2 internal prototype to avoid an error.  */
7234 /* We use char because int might match the return type of a gcc2
7235     builtin and then its argument prototype would still apply.  */
7236 char getspnam();
7237
7238 int main() {
7239 getspnam()
7240 ; return 0; }
7241 EOF
7242 if { (eval echo configure:7243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7243   rm -rf conftest*
7244   ac_cv_search_getspnam="none required"
7245 else
7246   echo "configure: failed program was:" >&5
7247   cat conftest.$ac_ext >&5
7248 fi
7249 rm -f conftest*
7250 test "$ac_cv_search_getspnam" = "no" && for i in shadow; do
7251 LIBS="-l$i  $ac_func_search_save_LIBS"
7252 cat > conftest.$ac_ext <<EOF
7253 #line 7254 "configure"
7254 #include "confdefs.h"
7255 /* Override any gcc2 internal prototype to avoid an error.  */
7256 /* We use char because int might match the return type of a gcc2
7257     builtin and then its argument prototype would still apply.  */
7258 char getspnam();
7259
7260 int main() {
7261 getspnam()
7262 ; return 0; }
7263 EOF
7264 if { (eval echo configure:7265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7265   rm -rf conftest*
7266   ac_cv_search_getspnam="-l$i"
7267 break
7268 else
7269   echo "configure: failed program was:" >&5
7270   cat conftest.$ac_ext >&5
7271 fi
7272 rm -f conftest*
7273 done
7274 LIBS="$ac_func_search_save_LIBS"
7275 fi
7276
7277 echo "$ac_t""$ac_cv_search_getspnam" 1>&6
7278 if test "$ac_cv_search_getspnam" != "no"; then
7279   test "$ac_cv_search_getspnam" = "none required" || LIBS="$ac_cv_search_getspnam $LIBS"
7280   SHADOW_LIB=$LIBS
7281                 
7282 else :
7283   
7284 fi
7285 LIBS=$inn_save_LIBS
7286
7287
7288 inn_check_pam=1
7289 for ac_hdr in pam/pam_appl.h
7290 do
7291 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7292 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7293 echo "configure:7294: checking for $ac_hdr" >&5
7294 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7295   echo $ac_n "(cached) $ac_c" 1>&6
7296 else
7297   cat > conftest.$ac_ext <<EOF
7298 #line 7299 "configure"
7299 #include "confdefs.h"
7300 #include <$ac_hdr>
7301 EOF
7302 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7303 { (eval echo configure:7304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7304 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7305 if test -z "$ac_err"; then
7306   rm -rf conftest*
7307   eval "ac_cv_header_$ac_safe=yes"
7308 else
7309   echo "$ac_err" >&5
7310   echo "configure: failed program was:" >&5
7311   cat conftest.$ac_ext >&5
7312   rm -rf conftest*
7313   eval "ac_cv_header_$ac_safe=no"
7314 fi
7315 rm -f conftest*
7316 fi
7317 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7318   echo "$ac_t""yes" 1>&6
7319     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7320   cat >> confdefs.h <<EOF
7321 #define $ac_tr_hdr 1
7322 EOF
7323  
7324 else
7325   echo "$ac_t""no" 1>&6
7326 ac_safe=`echo "security/pam_appl.h" | sed 'y%./+-%__p_%'`
7327 echo $ac_n "checking for security/pam_appl.h""... $ac_c" 1>&6
7328 echo "configure:7329: checking for security/pam_appl.h" >&5
7329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7330   echo $ac_n "(cached) $ac_c" 1>&6
7331 else
7332   cat > conftest.$ac_ext <<EOF
7333 #line 7334 "configure"
7334 #include "confdefs.h"
7335 #include <security/pam_appl.h>
7336 EOF
7337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7338 { (eval echo configure:7339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7340 if test -z "$ac_err"; then
7341   rm -rf conftest*
7342   eval "ac_cv_header_$ac_safe=yes"
7343 else
7344   echo "$ac_err" >&5
7345   echo "configure: failed program was:" >&5
7346   cat conftest.$ac_ext >&5
7347   rm -rf conftest*
7348   eval "ac_cv_header_$ac_safe=no"
7349 fi
7350 rm -f conftest*
7351 fi
7352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7353   echo "$ac_t""yes" 1>&6
7354   :
7355 else
7356   echo "$ac_t""no" 1>&6
7357 inn_check_pam=0
7358 fi
7359
7360 fi
7361 done
7362
7363 if test x"$inn_check_pam" = x1; then
7364     inn_save_LIBS=$LIBS
7365 LIBS=${PAM_LIB}
7366
7367 echo $ac_n "checking for library containing pam_start""... $ac_c" 1>&6
7368 echo "configure:7369: checking for library containing pam_start" >&5
7369 if eval "test \"`echo '$''{'ac_cv_search_pam_start'+set}'`\" = set"; then
7370   echo $ac_n "(cached) $ac_c" 1>&6
7371 else
7372   ac_func_search_save_LIBS="$LIBS"
7373 ac_cv_search_pam_start="no"
7374 cat > conftest.$ac_ext <<EOF
7375 #line 7376 "configure"
7376 #include "confdefs.h"
7377 /* Override any gcc2 internal prototype to avoid an error.  */
7378 /* We use char because int might match the return type of a gcc2
7379     builtin and then its argument prototype would still apply.  */
7380 char pam_start();
7381
7382 int main() {
7383 pam_start()
7384 ; return 0; }
7385 EOF
7386 if { (eval echo configure:7387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7387   rm -rf conftest*
7388   ac_cv_search_pam_start="none required"
7389 else
7390   echo "configure: failed program was:" >&5
7391   cat conftest.$ac_ext >&5
7392 fi
7393 rm -f conftest*
7394 test "$ac_cv_search_pam_start" = "no" && for i in pam; do
7395 LIBS="-l$i  $ac_func_search_save_LIBS"
7396 cat > conftest.$ac_ext <<EOF
7397 #line 7398 "configure"
7398 #include "confdefs.h"
7399 /* Override any gcc2 internal prototype to avoid an error.  */
7400 /* We use char because int might match the return type of a gcc2
7401     builtin and then its argument prototype would still apply.  */
7402 char pam_start();
7403
7404 int main() {
7405 pam_start()
7406 ; return 0; }
7407 EOF
7408 if { (eval echo configure:7409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7409   rm -rf conftest*
7410   ac_cv_search_pam_start="-l$i"
7411 break
7412 else
7413   echo "configure: failed program was:" >&5
7414   cat conftest.$ac_ext >&5
7415 fi
7416 rm -f conftest*
7417 done
7418 LIBS="$ac_func_search_save_LIBS"
7419 fi
7420
7421 echo "$ac_t""$ac_cv_search_pam_start" 1>&6
7422 if test "$ac_cv_search_pam_start" != "no"; then
7423   test "$ac_cv_search_pam_start" = "none required" || LIBS="$ac_cv_search_pam_start $LIBS"
7424   PAM_LIB=$LIBS
7425                 cat >> confdefs.h <<\EOF
7426 #define HAVE_PAM 1
7427 EOF
7428
7429 else :
7430   
7431 fi
7432 LIBS=$inn_save_LIBS
7433
7434 fi
7435
7436 if test x"$inn_enable_keywords" = x1 ; then
7437     inn_save_LIBS=$LIBS
7438 LIBS=${REGEX_LIB}
7439
7440 echo $ac_n "checking for library containing regexec""... $ac_c" 1>&6
7441 echo "configure:7442: checking for library containing regexec" >&5
7442 if eval "test \"`echo '$''{'ac_cv_search_regexec'+set}'`\" = set"; then
7443   echo $ac_n "(cached) $ac_c" 1>&6
7444 else
7445   ac_func_search_save_LIBS="$LIBS"
7446 ac_cv_search_regexec="no"
7447 cat > conftest.$ac_ext <<EOF
7448 #line 7449 "configure"
7449 #include "confdefs.h"
7450 /* Override any gcc2 internal prototype to avoid an error.  */
7451 /* We use char because int might match the return type of a gcc2
7452     builtin and then its argument prototype would still apply.  */
7453 char regexec();
7454
7455 int main() {
7456 regexec()
7457 ; return 0; }
7458 EOF
7459 if { (eval echo configure:7460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7460   rm -rf conftest*
7461   ac_cv_search_regexec="none required"
7462 else
7463   echo "configure: failed program was:" >&5
7464   cat conftest.$ac_ext >&5
7465 fi
7466 rm -f conftest*
7467 test "$ac_cv_search_regexec" = "no" && for i in regex; do
7468 LIBS="-l$i  $ac_func_search_save_LIBS"
7469 cat > conftest.$ac_ext <<EOF
7470 #line 7471 "configure"
7471 #include "confdefs.h"
7472 /* Override any gcc2 internal prototype to avoid an error.  */
7473 /* We use char because int might match the return type of a gcc2
7474     builtin and then its argument prototype would still apply.  */
7475 char regexec();
7476
7477 int main() {
7478 regexec()
7479 ; return 0; }
7480 EOF
7481 if { (eval echo configure:7482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7482   rm -rf conftest*
7483   ac_cv_search_regexec="-l$i"
7484 break
7485 else
7486   echo "configure: failed program was:" >&5
7487   cat conftest.$ac_ext >&5
7488 fi
7489 rm -f conftest*
7490 done
7491 LIBS="$ac_func_search_save_LIBS"
7492 fi
7493
7494 echo "$ac_t""$ac_cv_search_regexec" 1>&6
7495 if test "$ac_cv_search_regexec" != "no"; then
7496   test "$ac_cv_search_regexec" = "none required" || LIBS="$ac_cv_search_regexec $LIBS"
7497   REGEX_LIB=$LIBS
7498                 
7499 else :
7500   { echo "configure: error: no usable regular expression library found" 1>&2; exit 1; }
7501 fi
7502 LIBS=$inn_save_LIBS
7503
7504 fi
7505
7506
7507 # Check whether --with-berkeleydb or --without-berkeleydb was given.
7508 if test "${with_berkeleydb+set}" = set; then
7509   withval="$with_berkeleydb"
7510   BERKELEY_DB_DIR=$with_berkeleydb
7511 else
7512   BERKELEY_DB_DIR=no
7513 fi
7514
7515 echo $ac_n "checking if BerkeleyDB is desired""... $ac_c" 1>&6
7516 echo "configure:7517: checking if BerkeleyDB is desired" >&5
7517 if test x"$BERKELEY_DB_DIR" = xno ; then
7518     echo "$ac_t""no" 1>&6
7519     BERKELEY_DB_LDFLAGS=
7520     BERKELEY_DB_CFLAGS=
7521     BERKELEY_DB_LIB=
7522 else
7523     echo "$ac_t""yes" 1>&6
7524     echo $ac_n "checking for BerkeleyDB location""... $ac_c" 1>&6
7525 echo "configure:7526: checking for BerkeleyDB location" >&5
7526     if test x"$BERKELEY_DB_DIR" = xyes ; then
7527         for v in BerkeleyDB BerkeleyDB.3.0 BerkeleyDB.3.1 BerkeleyDB.3.2 \
7528                  BerkeleyDB.3.3 BerkeleyDB.4.0 BerkeleyDB.4.1 BerkeleyDB.4.2 \
7529                  BerkeleyDB.4.3 BerkeleyDB.4.4 BerkeleyDB.4.5 BerkeleyDB.4.6; do
7530             for d in $prefix /usr/local /opt /usr ; do
7531                 if test -d "$d/$v" ; then
7532                     BERKELEY_DB_DIR="$d/$v"
7533                     break
7534                 fi
7535             done
7536         done
7537     fi
7538     if test x"$BERKELEY_DB_DIR" = xyes ; then
7539         for v in db46 db45 db44 db43 db42 db41 db4 db3 db2 ; do
7540             if test -d "/usr/local/include/$v" ; then
7541                 BERKELEY_DB_LDFLAGS="-L/usr/local/lib"
7542                 BERKELEY_DB_CFLAGS="-I/usr/local/include/$v"
7543                 BERKELEY_DB_LIB="-l$v"
7544                 echo "$ac_t""FreeBSD locations" 1>&6
7545                 break
7546             fi
7547         done
7548         if test x"$BERKELEY_DB_LIB" = x ; then
7549             for v in db44 db43 db42 db41 db4 db3 db2 ; do
7550                 if test -d "/usr/include/$v" ; then
7551                     BERKELEY_DB_CFLAGS="-I/usr/include/$v"
7552                     BERKELEY_DB_LIB="-l$v"
7553                     echo "$ac_t""Linux locations" 1>&6
7554                     break
7555                 fi
7556             done
7557             if test x"$BERKELEY_DB_LIB" = x ; then        
7558                 BERKELEY_DB_LIB=-ldb
7559                 echo "$ac_t""trying -ldb" 1>&6
7560             fi
7561         fi
7562     else
7563         BERKELEY_DB_LDFLAGS="-L$BERKELEY_DB_DIR/lib"
7564         BERKELEY_DB_CFLAGS="-I$BERKELEY_DB_DIR/include"
7565         BERKELEY_DB_LIB="-ldb"
7566         echo "$ac_t""$BERKELEY_DB_DIR" 1>&6
7567     fi
7568     cat >> confdefs.h <<\EOF
7569 #define USE_BERKELEY_DB 1
7570 EOF
7571
7572 fi
7573
7574
7575
7576
7577 if test x"$BERKELEY_DB_LIB" != x ; then
7578     DBM_INC="$BERKELEY_DB_CFLAGS"
7579     DBM_LIB="$BERKELEY_DB_LDFLAGS $BERKELEY_DB_LIB"
7580     
7581     cat >> confdefs.h <<\EOF
7582 #define HAVE_BDB_DBM 1
7583 EOF
7584
7585 else
7586     inn_save_LIBS=$LIBS
7587 LIBS=${DBM_LIB}
7588
7589 echo $ac_n "checking for library containing dbm_open""... $ac_c" 1>&6
7590 echo "configure:7591: checking for library containing dbm_open" >&5
7591 if eval "test \"`echo '$''{'ac_cv_search_dbm_open'+set}'`\" = set"; then
7592   echo $ac_n "(cached) $ac_c" 1>&6
7593 else
7594   ac_func_search_save_LIBS="$LIBS"
7595 ac_cv_search_dbm_open="no"
7596 cat > conftest.$ac_ext <<EOF
7597 #line 7598 "configure"
7598 #include "confdefs.h"
7599 /* Override any gcc2 internal prototype to avoid an error.  */
7600 /* We use char because int might match the return type of a gcc2
7601     builtin and then its argument prototype would still apply.  */
7602 char dbm_open();
7603
7604 int main() {
7605 dbm_open()
7606 ; return 0; }
7607 EOF
7608 if { (eval echo configure:7609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7609   rm -rf conftest*
7610   ac_cv_search_dbm_open="none required"
7611 else
7612   echo "configure: failed program was:" >&5
7613   cat conftest.$ac_ext >&5
7614 fi
7615 rm -f conftest*
7616 test "$ac_cv_search_dbm_open" = "no" && for i in ndbm dbm; do
7617 LIBS="-l$i  $ac_func_search_save_LIBS"
7618 cat > conftest.$ac_ext <<EOF
7619 #line 7620 "configure"
7620 #include "confdefs.h"
7621 /* Override any gcc2 internal prototype to avoid an error.  */
7622 /* We use char because int might match the return type of a gcc2
7623     builtin and then its argument prototype would still apply.  */
7624 char dbm_open();
7625
7626 int main() {
7627 dbm_open()
7628 ; return 0; }
7629 EOF
7630 if { (eval echo configure:7631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7631   rm -rf conftest*
7632   ac_cv_search_dbm_open="-l$i"
7633 break
7634 else
7635   echo "configure: failed program was:" >&5
7636   cat conftest.$ac_ext >&5
7637 fi
7638 rm -f conftest*
7639 done
7640 LIBS="$ac_func_search_save_LIBS"
7641 fi
7642
7643 echo "$ac_t""$ac_cv_search_dbm_open" 1>&6
7644 if test "$ac_cv_search_dbm_open" != "no"; then
7645   test "$ac_cv_search_dbm_open" = "none required" || LIBS="$ac_cv_search_dbm_open $LIBS"
7646   DBM_LIB=$LIBS
7647                 cat >> confdefs.h <<\EOF
7648 #define HAVE_DBM 1
7649 EOF
7650
7651 else :
7652   
7653 fi
7654 LIBS=$inn_save_LIBS
7655
7656     DBM_INC=
7657 fi
7658
7659
7660
7661 # Check whether --with-openssl or --without-openssl was given.
7662 if test "${with_openssl+set}" = set; then
7663   withval="$with_openssl"
7664   OPENSSL_DIR=$with_openssl
7665 else
7666   OPENSSL_DIR=no
7667 fi
7668
7669 echo $ac_n "checking if OpenSSL is desired""... $ac_c" 1>&6
7670 echo "configure:7671: checking if OpenSSL is desired" >&5
7671 if test x"$OPENSSL_DIR" = xno ; then
7672     echo "$ac_t""no" 1>&6
7673     SSL_BIN=
7674     SSL_INC=
7675     SSL_LIB=
7676 else
7677     echo "$ac_t""yes" 1>&6
7678     echo $ac_n "checking for OpenSSL location""... $ac_c" 1>&6
7679 echo "configure:7680: checking for OpenSSL location" >&5
7680     if test x"$OPENSSL_DIR" = xyes ; then
7681         for dir in $prefix /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg \
7682                    /usr/local /usr ; do
7683             if test -f "$dir/include/openssl/ssl.h" ; then
7684                 OPENSSL_DIR=$dir
7685                 break
7686             fi
7687         done
7688     fi
7689     if test x"$OPENSSL_DIR" = xyes ; then
7690         { echo "configure: error: Can not find OpenSSL" 1>&2; exit 1; }
7691     else
7692         echo "$ac_t""$OPENSSL_DIR" 1>&6
7693         SSL_BIN="${OPENSSL_DIR}/bin"
7694         SSL_INC="-I${OPENSSL_DIR}/include"
7695
7696         # This is mildly tricky.  In order to satisfy most linkers, libraries
7697         # have to be listed in the right order, which means that libraries
7698         # with dependencies on other libraries need to be listed first.  But
7699         # the -L flag for the OpenSSL library directory needs to go first of
7700         # all.  So put the -L flag into LIBS and accumulate actual libraries
7701         # into SSL_LIB, and then at the end, restore LIBS and move -L to the
7702         # beginning of SSL_LIB.
7703         inn_save_LIBS=$LIBS
7704         LIBS="$LIBS -L${OPENSSL_DIR}/lib"
7705         SSL_LIB=''
7706         echo $ac_n "checking for RSAPublicEncrypt in -lrsaref""... $ac_c" 1>&6
7707 echo "configure:7708: checking for RSAPublicEncrypt in -lrsaref" >&5
7708 ac_lib_var=`echo rsaref'_'RSAPublicEncrypt | sed 'y%./+-%__p_%'`
7709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7710   echo $ac_n "(cached) $ac_c" 1>&6
7711 else
7712   ac_save_LIBS="$LIBS"
7713 LIBS="-lrsaref  $LIBS"
7714 cat > conftest.$ac_ext <<EOF
7715 #line 7716 "configure"
7716 #include "confdefs.h"
7717 /* Override any gcc2 internal prototype to avoid an error.  */
7718 /* We use char because int might match the return type of a gcc2
7719     builtin and then its argument prototype would still apply.  */
7720 char RSAPublicEncrypt();
7721
7722 int main() {
7723 RSAPublicEncrypt()
7724 ; return 0; }
7725 EOF
7726 if { (eval echo configure:7727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7727   rm -rf conftest*
7728   eval "ac_cv_lib_$ac_lib_var=yes"
7729 else
7730   echo "configure: failed program was:" >&5
7731   cat conftest.$ac_ext >&5
7732   rm -rf conftest*
7733   eval "ac_cv_lib_$ac_lib_var=no"
7734 fi
7735 rm -f conftest*
7736 LIBS="$ac_save_LIBS"
7737
7738 fi
7739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7740   echo "$ac_t""yes" 1>&6
7741   echo $ac_n "checking for RSAPublicEncrypt in -lRSAglue""... $ac_c" 1>&6
7742 echo "configure:7743: checking for RSAPublicEncrypt in -lRSAglue" >&5
7743 ac_lib_var=`echo RSAglue'_'RSAPublicEncrypt | sed 'y%./+-%__p_%'`
7744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7745   echo $ac_n "(cached) $ac_c" 1>&6
7746 else
7747   ac_save_LIBS="$LIBS"
7748 LIBS="-lRSAglue -lrsaref $LIBS"
7749 cat > conftest.$ac_ext <<EOF
7750 #line 7751 "configure"
7751 #include "confdefs.h"
7752 /* Override any gcc2 internal prototype to avoid an error.  */
7753 /* We use char because int might match the return type of a gcc2
7754     builtin and then its argument prototype would still apply.  */
7755 char RSAPublicEncrypt();
7756
7757 int main() {
7758 RSAPublicEncrypt()
7759 ; return 0; }
7760 EOF
7761 if { (eval echo configure:7762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7762   rm -rf conftest*
7763   eval "ac_cv_lib_$ac_lib_var=yes"
7764 else
7765   echo "configure: failed program was:" >&5
7766   cat conftest.$ac_ext >&5
7767   rm -rf conftest*
7768   eval "ac_cv_lib_$ac_lib_var=no"
7769 fi
7770 rm -f conftest*
7771 LIBS="$ac_save_LIBS"
7772
7773 fi
7774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7775   echo "$ac_t""yes" 1>&6
7776   SSL_LIB="-lRSAglue -lrsaref"
7777 else
7778   echo "$ac_t""no" 1>&6
7779 fi
7780
7781 else
7782   echo "$ac_t""no" 1>&6
7783 fi
7784
7785         echo $ac_n "checking for BIO_new in -lcrypto""... $ac_c" 1>&6
7786 echo "configure:7787: checking for BIO_new in -lcrypto" >&5
7787 ac_lib_var=`echo crypto'_'BIO_new | sed 'y%./+-%__p_%'`
7788 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7789   echo $ac_n "(cached) $ac_c" 1>&6
7790 else
7791   ac_save_LIBS="$LIBS"
7792 LIBS="-lcrypto $SSL_LIB $LIBS"
7793 cat > conftest.$ac_ext <<EOF
7794 #line 7795 "configure"
7795 #include "confdefs.h"
7796 /* Override any gcc2 internal prototype to avoid an error.  */
7797 /* We use char because int might match the return type of a gcc2
7798     builtin and then its argument prototype would still apply.  */
7799 char BIO_new();
7800
7801 int main() {
7802 BIO_new()
7803 ; return 0; }
7804 EOF
7805 if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7806   rm -rf conftest*
7807   eval "ac_cv_lib_$ac_lib_var=yes"
7808 else
7809   echo "configure: failed program was:" >&5
7810   cat conftest.$ac_ext >&5
7811   rm -rf conftest*
7812   eval "ac_cv_lib_$ac_lib_var=no"
7813 fi
7814 rm -f conftest*
7815 LIBS="$ac_save_LIBS"
7816
7817 fi
7818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7819   echo "$ac_t""yes" 1>&6
7820   echo $ac_n "checking for DSO_load in -ldl""... $ac_c" 1>&6
7821 echo "configure:7822: checking for DSO_load in -ldl" >&5
7822 ac_lib_var=`echo dl'_'DSO_load | sed 'y%./+-%__p_%'`
7823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7824   echo $ac_n "(cached) $ac_c" 1>&6
7825 else
7826   ac_save_LIBS="$LIBS"
7827 LIBS="-ldl -lcrypto -ldl $SSL_LIB $LIBS"
7828 cat > conftest.$ac_ext <<EOF
7829 #line 7830 "configure"
7830 #include "confdefs.h"
7831 /* Override any gcc2 internal prototype to avoid an error.  */
7832 /* We use char because int might match the return type of a gcc2
7833     builtin and then its argument prototype would still apply.  */
7834 char DSO_load();
7835
7836 int main() {
7837 DSO_load()
7838 ; return 0; }
7839 EOF
7840 if { (eval echo configure:7841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7841   rm -rf conftest*
7842   eval "ac_cv_lib_$ac_lib_var=yes"
7843 else
7844   echo "configure: failed program was:" >&5
7845   cat conftest.$ac_ext >&5
7846   rm -rf conftest*
7847   eval "ac_cv_lib_$ac_lib_var=no"
7848 fi
7849 rm -f conftest*
7850 LIBS="$ac_save_LIBS"
7851
7852 fi
7853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7854   echo "$ac_t""yes" 1>&6
7855   SSL_LIB="-lcrypto -ldl $SSL_LIB"
7856 else
7857   echo "$ac_t""no" 1>&6
7858 SSL_LIB="-lcrypto $SSL_LIB"
7859 fi
7860
7861 else
7862   echo "$ac_t""no" 1>&6
7863 { echo "configure: error: Can not find OpenSSL" 1>&2; exit 1; }
7864 fi
7865
7866         echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
7867 echo "configure:7868: checking for SSL_library_init in -lssl" >&5
7868 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
7869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7870   echo $ac_n "(cached) $ac_c" 1>&6
7871 else
7872   ac_save_LIBS="$LIBS"
7873 LIBS="-lssl $SSL_LIB $LIBS"
7874 cat > conftest.$ac_ext <<EOF
7875 #line 7876 "configure"
7876 #include "confdefs.h"
7877 /* Override any gcc2 internal prototype to avoid an error.  */
7878 /* We use char because int might match the return type of a gcc2
7879     builtin and then its argument prototype would still apply.  */
7880 char SSL_library_init();
7881
7882 int main() {
7883 SSL_library_init()
7884 ; return 0; }
7885 EOF
7886 if { (eval echo configure:7887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7887   rm -rf conftest*
7888   eval "ac_cv_lib_$ac_lib_var=yes"
7889 else
7890   echo "configure: failed program was:" >&5
7891   cat conftest.$ac_ext >&5
7892   rm -rf conftest*
7893   eval "ac_cv_lib_$ac_lib_var=no"
7894 fi
7895 rm -f conftest*
7896 LIBS="$ac_save_LIBS"
7897
7898 fi
7899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7900   echo "$ac_t""yes" 1>&6
7901   SSL_LIB="-lssl $SSL_LIB"
7902 else
7903   echo "$ac_t""no" 1>&6
7904 { echo "configure: error: Can not find OpenSSL" 1>&2; exit 1; }
7905 fi
7906
7907         SSL_LIB="-L${OPENSSL_DIR}/lib $SSL_LIB"
7908         LIBS=$inn_save_LIBS
7909         cat >> confdefs.h <<\EOF
7910 #define HAVE_SSL 1
7911 EOF
7912
7913     fi
7914 fi
7915
7916
7917
7918
7919
7920 # Check whether --with-sasl or --without-sasl was given.
7921 if test "${with_sasl+set}" = set; then
7922   withval="$with_sasl"
7923   SASL_DIR=$with_sasl
7924 else
7925   SASL_DIR=no
7926 fi
7927
7928 echo $ac_n "checking if SASL is desired""... $ac_c" 1>&6
7929 echo "configure:7930: checking if SASL is desired" >&5
7930 if test x"$SASL_DIR" = xno ; then
7931     echo "$ac_t""no" 1>&6
7932     SASL_INC=
7933     SASL_LIB=
7934 else
7935     echo "$ac_t""yes" 1>&6
7936     echo $ac_n "checking for SASL location""... $ac_c" 1>&6
7937 echo "configure:7938: checking for SASL location" >&5
7938     if test x"$SASL_DIR" = xyes ; then
7939         for dir in $prefix /usr/local/sasl /usr/sasl /usr/pkg /usr/local ; do
7940             if test -f "$dir/include/sasl/sasl.h" ; then
7941                 SASL_DIR=$dir
7942                 break
7943             fi
7944         done
7945     fi
7946     if test x"$SASL_DIR" = xyes ; then
7947         if test -f "/usr/include/sasl/sasl.h" ; then
7948             SASL_INC=-I/usr/include/sasl
7949             SASL_DIR=/usr
7950             echo "$ac_t""$SASL_DIR" 1>&6
7951             inn_save_LIBS=$LIBS
7952             echo $ac_n "checking for sasl_getprop in -lsasl2""... $ac_c" 1>&6
7953 echo "configure:7954: checking for sasl_getprop in -lsasl2" >&5
7954 ac_lib_var=`echo sasl2'_'sasl_getprop | sed 'y%./+-%__p_%'`
7955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7956   echo $ac_n "(cached) $ac_c" 1>&6
7957 else
7958   ac_save_LIBS="$LIBS"
7959 LIBS="-lsasl2  $LIBS"
7960 cat > conftest.$ac_ext <<EOF
7961 #line 7962 "configure"
7962 #include "confdefs.h"
7963 /* Override any gcc2 internal prototype to avoid an error.  */
7964 /* We use char because int might match the return type of a gcc2
7965     builtin and then its argument prototype would still apply.  */
7966 char sasl_getprop();
7967
7968 int main() {
7969 sasl_getprop()
7970 ; return 0; }
7971 EOF
7972 if { (eval echo configure:7973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7973   rm -rf conftest*
7974   eval "ac_cv_lib_$ac_lib_var=yes"
7975 else
7976   echo "configure: failed program was:" >&5
7977   cat conftest.$ac_ext >&5
7978   rm -rf conftest*
7979   eval "ac_cv_lib_$ac_lib_var=no"
7980 fi
7981 rm -f conftest*
7982 LIBS="$ac_save_LIBS"
7983
7984 fi
7985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7986   echo "$ac_t""yes" 1>&6
7987   SASL_LIB=-lsasl2
7988 else
7989   echo "$ac_t""no" 1>&6
7990 { echo "configure: error: Can not find SASL" 1>&2; exit 1; }
7991 fi
7992
7993             LIBS=$inn_save_LIBS
7994             cat >> confdefs.h <<\EOF
7995 #define HAVE_SASL 1
7996 EOF
7997
7998         else
7999             { echo "configure: error: Can not find SASL" 1>&2; exit 1; }
8000         fi
8001     else
8002         echo "$ac_t""$SASL_DIR" 1>&6
8003         SASL_INC="-I${SASL_DIR}/include"
8004
8005         inn_save_LIBS=$LIBS
8006         LIBS="$LIBS -L${SASL_DIR}/lib"
8007         echo $ac_n "checking for sasl_getprop in -lsasl2""... $ac_c" 1>&6
8008 echo "configure:8009: checking for sasl_getprop in -lsasl2" >&5
8009 ac_lib_var=`echo sasl2'_'sasl_getprop | sed 'y%./+-%__p_%'`
8010 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8011   echo $ac_n "(cached) $ac_c" 1>&6
8012 else
8013   ac_save_LIBS="$LIBS"
8014 LIBS="-lsasl2  $LIBS"
8015 cat > conftest.$ac_ext <<EOF
8016 #line 8017 "configure"
8017 #include "confdefs.h"
8018 /* Override any gcc2 internal prototype to avoid an error.  */
8019 /* We use char because int might match the return type of a gcc2
8020     builtin and then its argument prototype would still apply.  */
8021 char sasl_getprop();
8022
8023 int main() {
8024 sasl_getprop()
8025 ; return 0; }
8026 EOF
8027 if { (eval echo configure:8028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8028   rm -rf conftest*
8029   eval "ac_cv_lib_$ac_lib_var=yes"
8030 else
8031   echo "configure: failed program was:" >&5
8032   cat conftest.$ac_ext >&5
8033   rm -rf conftest*
8034   eval "ac_cv_lib_$ac_lib_var=no"
8035 fi
8036 rm -f conftest*
8037 LIBS="$ac_save_LIBS"
8038
8039 fi
8040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8041   echo "$ac_t""yes" 1>&6
8042   SASL_LIB="-L${SASL_DIR}/lib -lsasl2"
8043 else
8044   echo "$ac_t""no" 1>&6
8045 { echo "configure: error: Can not find SASL" 1>&2; exit 1; }
8046 fi
8047
8048         LIBS=$inn_save_LIBS
8049         cat >> confdefs.h <<\EOF
8050 #define HAVE_SASL 1
8051 EOF
8052
8053     fi
8054 fi
8055
8056
8057 if test x"${KRB5_INC}" != x; then
8058 inn_save_LIBS=$LIBS
8059 LIBS=${KRB5_LIB}
8060
8061 echo $ac_n "checking for library containing krb5_parse_name""... $ac_c" 1>&6
8062 echo "configure:8063: checking for library containing krb5_parse_name" >&5
8063 if eval "test \"`echo '$''{'ac_cv_search_krb5_parse_name'+set}'`\" = set"; then
8064   echo $ac_n "(cached) $ac_c" 1>&6
8065 else
8066   ac_func_search_save_LIBS="$LIBS"
8067 ac_cv_search_krb5_parse_name="no"
8068 cat > conftest.$ac_ext <<EOF
8069 #line 8070 "configure"
8070 #include "confdefs.h"
8071 /* Override any gcc2 internal prototype to avoid an error.  */
8072 /* We use char because int might match the return type of a gcc2
8073     builtin and then its argument prototype would still apply.  */
8074 char krb5_parse_name();
8075
8076 int main() {
8077 krb5_parse_name()
8078 ; return 0; }
8079 EOF
8080 if { (eval echo configure:8081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8081   rm -rf conftest*
8082   ac_cv_search_krb5_parse_name="none required"
8083 else
8084   echo "configure: failed program was:" >&5
8085   cat conftest.$ac_ext >&5
8086 fi
8087 rm -f conftest*
8088 test "$ac_cv_search_krb5_parse_name" = "no" && for i in krb5; do
8089 LIBS="-l$i $LIBS -lk5crypto -lcom_err $ac_func_search_save_LIBS"
8090 cat > conftest.$ac_ext <<EOF
8091 #line 8092 "configure"
8092 #include "confdefs.h"
8093 /* Override any gcc2 internal prototype to avoid an error.  */
8094 /* We use char because int might match the return type of a gcc2
8095     builtin and then its argument prototype would still apply.  */
8096 char krb5_parse_name();
8097
8098 int main() {
8099 krb5_parse_name()
8100 ; return 0; }
8101 EOF
8102 if { (eval echo configure:8103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8103   rm -rf conftest*
8104   ac_cv_search_krb5_parse_name="-l$i"
8105 break
8106 else
8107   echo "configure: failed program was:" >&5
8108   cat conftest.$ac_ext >&5
8109 fi
8110 rm -f conftest*
8111 done
8112 LIBS="$ac_func_search_save_LIBS"
8113 fi
8114
8115 echo "$ac_t""$ac_cv_search_krb5_parse_name" 1>&6
8116 if test "$ac_cv_search_krb5_parse_name" != "no"; then
8117   test "$ac_cv_search_krb5_parse_name" = "none required" || LIBS="$ac_cv_search_krb5_parse_name $LIBS"
8118   KRB5_LIB=$LIBS
8119                 KRB5_AUTH="auth_krb5"
8120      KRB5_LIB="$KRB5_LDFLAGS $KRB5_LIB -lk5crypto -lcom_err"
8121      
8122      
8123      for ac_hdr in et/com_err.h
8124 do
8125 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8127 echo "configure:8128: checking for $ac_hdr" >&5
8128 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8129   echo $ac_n "(cached) $ac_c" 1>&6
8130 else
8131   cat > conftest.$ac_ext <<EOF
8132 #line 8133 "configure"
8133 #include "confdefs.h"
8134 #include <$ac_hdr>
8135 EOF
8136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8137 { (eval echo configure:8138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8139 if test -z "$ac_err"; then
8140   rm -rf conftest*
8141   eval "ac_cv_header_$ac_safe=yes"
8142 else
8143   echo "$ac_err" >&5
8144   echo "configure: failed program was:" >&5
8145   cat conftest.$ac_ext >&5
8146   rm -rf conftest*
8147   eval "ac_cv_header_$ac_safe=no"
8148 fi
8149 rm -f conftest*
8150 fi
8151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8152   echo "$ac_t""yes" 1>&6
8153     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8154   cat >> confdefs.h <<EOF
8155 #define $ac_tr_hdr 1
8156 EOF
8157  
8158 else
8159   echo "$ac_t""no" 1>&6
8160 fi
8161 done
8162
8163 else :
8164   
8165 fi
8166 LIBS=$inn_save_LIBS
8167
8168
8169 inn_save_LIBS=$LIBS
8170 LIBS=$KRB5_LIB
8171 for ac_func in krb5_init_ets
8172 do
8173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8174 echo "configure:8175: checking for $ac_func" >&5
8175 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8176   echo $ac_n "(cached) $ac_c" 1>&6
8177 else
8178   cat > conftest.$ac_ext <<EOF
8179 #line 8180 "configure"
8180 #include "confdefs.h"
8181 /* System header to define __stub macros and hopefully few prototypes,
8182     which can conflict with char $ac_func(); below.  */
8183 #include <assert.h>
8184 /* Override any gcc2 internal prototype to avoid an error.  */
8185 /* We use char because int might match the return type of a gcc2
8186     builtin and then its argument prototype would still apply.  */
8187 char $ac_func();
8188
8189 int main() {
8190
8191 /* The GNU C library defines this for functions which it implements
8192     to always fail with ENOSYS.  Some functions are actually named
8193     something starting with __ and the normal name is an alias.  */
8194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8195 choke me
8196 #else
8197 $ac_func();
8198 #endif
8199
8200 ; return 0; }
8201 EOF
8202 if { (eval echo configure:8203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8203   rm -rf conftest*
8204   eval "ac_cv_func_$ac_func=yes"
8205 else
8206   echo "configure: failed program was:" >&5
8207   cat conftest.$ac_ext >&5
8208   rm -rf conftest*
8209   eval "ac_cv_func_$ac_func=no"
8210 fi
8211 rm -f conftest*
8212 fi
8213
8214 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8215   echo "$ac_t""yes" 1>&6
8216     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8217   cat >> confdefs.h <<EOF
8218 #define $ac_tr_func 1
8219 EOF
8220  
8221 else
8222   echo "$ac_t""no" 1>&6
8223 fi
8224 done
8225 fi # test x"${KRB5_INC}" != x;
8226
8227 LIBS=$inn_save_LIBS
8228
8229 if test x"$DO_PERL" = xDO ; then
8230     echo $ac_n "checking for Perl linkage""... $ac_c" 1>&6
8231 echo "configure:8231: checking for Perl linkage" >&5
8232     inn_perl_core_path=`$_PATH_PERL -MConfig -e 'print $Config{archlibexp}'`
8233     inn_perl_core_flags=`$_PATH_PERL -MExtUtils::Embed -e ccopts`
8234     inn_perl_core_libs=`$_PATH_PERL -MExtUtils::Embed -e ldopts 2>&1 | tail -1`
8235     inn_perl_core_libs=" $inn_perl_core_libs "
8236     inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed 's/ -lc / /'`
8237     for i in $LIBS ; do
8238         inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed "s/ $i / /"`
8239     done
8240     case $host in
8241     *-linux*)
8242         inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed 's/ -lgdbm / /'`
8243         ;;
8244     *-cygwin*)
8245         inn_perl_libname=`$_PATH_PERL -MConfig -e 'print $Config{libperl}'`
8246         inn_perl_libname=`echo "$inn_perl_libname" | sed 's/^lib//; s/\.a$//'`
8247         inn_perl_core_libs="${inn_perl_core_libs}-l$inn_perl_libname"
8248         ;;
8249     esac
8250     inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed 's/^  *//'`
8251     inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed 's/  *$//'`
8252     inn_perl_core_flags=" $inn_perl_core_flags "
8253     if test x"$inn_enable_largefiles" != xyes ; then
8254         for f in -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES ; do
8255             inn_perl_core_flags=`echo "$inn_perl_core_flags" | sed "s/ $f / /"`
8256         done
8257     fi
8258     inn_perl_core_flags=`echo "$inn_perl_core_flags" | sed 's/^  *//'`
8259     inn_perl_core_flags=`echo "$inn_perl_core_flags" | sed 's/  *$//'`
8260     PERL_INC="$inn_perl_core_flags"
8261     PERL_LIB="$inn_perl_core_libs"
8262     echo "$ac_t""$inn_perl_core_path" 1>&6
8263 else
8264     PERL_INC=''
8265     PERL_LIB=''
8266 fi
8267
8268
8269
8270 if test x"$DO_PYTHON" = xdefine ; then
8271     echo $ac_n "checking for Python linkage""... $ac_c" 1>&6
8272 echo "configure:8272: checking for Python linkage" >&5
8273     py_prefix=`$_PATH_PYTHON -c 'import sys; print sys.prefix'`
8274     py_ver=`$_PATH_PYTHON -c 'import sys; print sys.version[:3]'`
8275     py_libdir="${py_prefix}/lib/python${py_ver}"
8276     PYTHON_INC="-I${py_prefix}/include/python${py_ver}"
8277     py_linkage=""
8278     for py_linkpart in LIBS LIBC LIBM LOCALMODLIBS BASEMODLIBS \
8279                        LINKFORSHARED LDFLAGS ; do
8280         py_linkage="$py_linkage "`grep "^${py_linkpart}=" \
8281                                        $py_libdir/config/Makefile \
8282                                   | sed -e 's/^.*=//'`
8283     done
8284     PYTHON_LIB="-L$py_libdir/config -lpython$py_ver $py_linkage"
8285     PYTHON_LIB=`echo $PYTHON_LIB | sed -e 's/ \\t*/ /g'`
8286     echo "$ac_t""$py_libdir" 1>&6
8287 else
8288     PYTHON_LIB=""
8289     PYTHON_INC=""
8290 fi
8291
8292
8293
8294 if test x"$inn_enable_largefiles" = xyes ; then
8295     echo $ac_n "checking for largefile linkage""... $ac_c" 1>&6
8296 echo "configure:8296: checking for largefile linkage" >&5
8297     case "$host" in
8298     *-aix4.01*)
8299         echo "$ac_t""no" 1>&6
8300         { echo "configure: error: AIX before 4.2 does not support large files" 1>&2; exit 1; }
8301         ;;
8302     *-aix4*)
8303         echo "$ac_t""ok" 1>&6
8304         LFS_CFLAGS="-D_LARGE_FILES"
8305         LFS_LDFLAGS=""
8306         LFS_LIBS=""
8307         ;;
8308     *-hpux*)
8309         echo "$ac_t""ok" 1>&6
8310         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8311         LFS_LDFLAGS=""
8312         LFS_LIBS=""
8313         ;;
8314     *-irix*)
8315         echo "$ac_t""no" 1>&6
8316         { echo "configure: error: Large files not supported on this platform" 1>&2; exit 1; }
8317         ;;
8318     *-linux*)
8319         echo "$ac_t""maybe" 1>&6
8320         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8321         LFS_LDFLAGS=""
8322         LFS_LIBS=""
8323         cat >> confdefs.h <<\EOF
8324 #define _GNU_SOURCE 1
8325 EOF
8326
8327         ;;
8328     *-solaris*)
8329         echo "$ac_t""ok" 1>&6
8330         # Extract the first word of "getconf", so it can be a program name with args.
8331 set dummy getconf; ac_word=$2
8332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8333 echo "configure:8333: checking for $ac_word" >&5
8334 if eval "test \"`echo '$''{'ac_cv_path_GETCONF'+set}'`\" = set"; then
8335   echo $ac_n "(cached) $ac_c" 1>&6
8336 else
8337   case "$GETCONF" in
8338   /*)
8339   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
8340   ;;
8341   ?:/*)                  
8342   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a dos path.
8343   ;;
8344   *)
8345   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8346   ac_dummy="$PATH"
8347   for ac_dir in $ac_dummy; do 
8348     test -z "$ac_dir" && ac_dir=.
8349     if test -f $ac_dir/$ac_word; then
8350       ac_cv_path_GETCONF="$ac_dir/$ac_word"
8351       break
8352     fi
8353   done
8354   IFS="$ac_save_ifs"
8355   ;;
8356 esac
8357 fi
8358 GETCONF="$ac_cv_path_GETCONF"
8359 if test -n "$GETCONF"; then
8360   echo "$ac_t""$GETCONF" 1>&6
8361 else
8362   echo "$ac_t""no" 1>&6
8363 fi
8364
8365         if test -z "$GETCONF" ; then
8366             { echo "configure: error: getconf required to configure large file support" 1>&2; exit 1; }
8367         fi
8368         LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
8369         LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
8370         LFS_LIBS=`$GETCONF LFS_LIBS`
8371         ;;
8372     *)
8373         echo "$ac_t""maybe" 1>&6
8374         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8375         LFS_LDFLAGS=""
8376         LFS_LIBS=""
8377         ;;
8378     esac
8379     
8380     
8381     
8382 fi
8383
8384 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8385 echo "configure:8385: checking for ANSI C header files" >&5
8386 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8387   echo $ac_n "(cached) $ac_c" 1>&6
8388 else
8389   cat > conftest.$ac_ext <<EOF
8390 #line 8390 "configure"
8391 #include "confdefs.h"
8392 #include <stdlib.h>
8393 #include <stdarg.h>
8394 #include <string.h>
8395 #include <float.h>
8396 EOF
8397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8398 { (eval echo configure:8398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8400 if test -z "$ac_err"; then
8401   rm -rf conftest*
8402   ac_cv_header_stdc=yes
8403 else
8404   echo "$ac_err" >&5
8405   echo "configure: failed program was:" >&5
8406   cat conftest.$ac_ext >&5
8407   rm -rf conftest*
8408   ac_cv_header_stdc=no
8409 fi
8410 rm -f conftest*
8411
8412 if test $ac_cv_header_stdc = yes; then
8413   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8414 cat > conftest.$ac_ext <<EOF
8415 #line 8415 "configure"
8416 #include "confdefs.h"
8417 #include <string.h>
8418 EOF
8419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8420   egrep "memchr" >/dev/null 2>&1; then
8421   :
8422 else
8423   rm -rf conftest*
8424   ac_cv_header_stdc=no
8425 fi
8426 rm -f conftest*
8427
8428 fi
8429
8430 if test $ac_cv_header_stdc = yes; then
8431   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8432 cat > conftest.$ac_ext <<EOF
8433 #line 8433 "configure"
8434 #include "confdefs.h"
8435 #include <stdlib.h>
8436 EOF
8437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8438   egrep "free" >/dev/null 2>&1; then
8439   :
8440 else
8441   rm -rf conftest*
8442   ac_cv_header_stdc=no
8443 fi
8444 rm -f conftest*
8445
8446 fi
8447
8448 if test $ac_cv_header_stdc = yes; then
8449   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8450 if test "$cross_compiling" = yes; then
8451   :
8452 else
8453   cat > conftest.$ac_ext <<EOF
8454 #line 8454 "configure"
8455 #include "confdefs.h"
8456 #include <ctype.h>
8457 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8458 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8460 int main () { int i; for (i = 0; i < 256; i++)
8461 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8462 exit (0); }
8463
8464 EOF
8465 if { (eval echo configure:8465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8466 then
8467   :
8468 else
8469   echo "configure: failed program was:" >&5
8470   cat conftest.$ac_ext >&5
8471   rm -fr conftest*
8472   ac_cv_header_stdc=no
8473 fi
8474 rm -fr conftest*
8475 fi
8476
8477 fi
8478 fi
8479
8480 echo "$ac_t""$ac_cv_header_stdc" 1>&6
8481 if test $ac_cv_header_stdc = yes; then
8482   cat >> confdefs.h <<\EOF
8483 #define STDC_HEADERS 1
8484 EOF
8485
8486 fi
8487
8488
8489 if test x"$ac_cv_header_stdc" = xno ; then
8490     for ac_hdr in memory.h stdlib.h strings.h
8491 do
8492 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8493 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8494 echo "configure:8494: checking for $ac_hdr" >&5
8495 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8496   echo $ac_n "(cached) $ac_c" 1>&6
8497 else
8498   cat > conftest.$ac_ext <<EOF
8499 #line 8499 "configure"
8500 #include "confdefs.h"
8501 #include <$ac_hdr>
8502 EOF
8503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8504 { (eval echo configure:8504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8506 if test -z "$ac_err"; then
8507   rm -rf conftest*
8508   eval "ac_cv_header_$ac_safe=yes"
8509 else
8510   echo "$ac_err" >&5
8511   echo "configure: failed program was:" >&5
8512   cat conftest.$ac_ext >&5
8513   rm -rf conftest*
8514   eval "ac_cv_header_$ac_safe=no"
8515 fi
8516 rm -f conftest*
8517 fi
8518 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8519   echo "$ac_t""yes" 1>&6
8520     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8521   cat >> confdefs.h <<EOF
8522 #define $ac_tr_hdr 1
8523 EOF
8524  
8525 else
8526   echo "$ac_t""no" 1>&6
8527 fi
8528 done
8529
8530     for ac_func in memcpy strchr
8531 do
8532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8533 echo "configure:8533: checking for $ac_func" >&5
8534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8535   echo $ac_n "(cached) $ac_c" 1>&6
8536 else
8537   cat > conftest.$ac_ext <<EOF
8538 #line 8538 "configure"
8539 #include "confdefs.h"
8540 /* System header to define __stub macros and hopefully few prototypes,
8541     which can conflict with char $ac_func(); below.  */
8542 #include <assert.h>
8543 /* Override any gcc2 internal prototype to avoid an error.  */
8544 /* We use char because int might match the return type of a gcc2
8545     builtin and then its argument prototype would still apply.  */
8546 char $ac_func();
8547
8548 int main() {
8549
8550 /* The GNU C library defines this for functions which it implements
8551     to always fail with ENOSYS.  Some functions are actually named
8552     something starting with __ and the normal name is an alias.  */
8553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8554 choke me
8555 #else
8556 $ac_func();
8557 #endif
8558
8559 ; return 0; }
8560 EOF
8561 if { (eval echo configure:8561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8562   rm -rf conftest*
8563   eval "ac_cv_func_$ac_func=yes"
8564 else
8565   echo "configure: failed program was:" >&5
8566   cat conftest.$ac_ext >&5
8567   rm -rf conftest*
8568   eval "ac_cv_func_$ac_func=no"
8569 fi
8570 rm -f conftest*
8571 fi
8572
8573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8574   echo "$ac_t""yes" 1>&6
8575     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8576   cat >> confdefs.h <<EOF
8577 #define $ac_tr_func 1
8578 EOF
8579  
8580 else
8581   echo "$ac_t""no" 1>&6
8582 fi
8583 done
8584
8585 fi
8586
8587 ac_header_dirent=no
8588 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8589 do
8590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8591 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8592 echo "configure:8592: checking for $ac_hdr that defines DIR" >&5
8593 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
8594   echo $ac_n "(cached) $ac_c" 1>&6
8595 else
8596   cat > conftest.$ac_ext <<EOF
8597 #line 8597 "configure"
8598 #include "confdefs.h"
8599 #include <sys/types.h>
8600 #include <$ac_hdr>
8601 int main() {
8602 DIR *dirp = 0;
8603 ; return 0; }
8604 EOF
8605 if { (eval echo configure:8605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8606   rm -rf conftest*
8607   eval "ac_cv_header_dirent_$ac_safe=yes"
8608 else
8609   echo "configure: failed program was:" >&5
8610   cat conftest.$ac_ext >&5
8611   rm -rf conftest*
8612   eval "ac_cv_header_dirent_$ac_safe=no"
8613 fi
8614 rm -f conftest*
8615 fi
8616 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8617   echo "$ac_t""yes" 1>&6
8618     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8619   cat >> confdefs.h <<EOF
8620 #define $ac_tr_hdr 1
8621 EOF
8622  ac_header_dirent=$ac_hdr; break
8623 else
8624   echo "$ac_t""no" 1>&6
8625 fi
8626 done
8627 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8628 if test $ac_header_dirent = dirent.h; then
8629 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8630 echo "configure:8630: checking for opendir in -ldir" >&5
8631 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
8632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8633   echo $ac_n "(cached) $ac_c" 1>&6
8634 else
8635   ac_save_LIBS="$LIBS"
8636 LIBS="-ldir  $LIBS"
8637 cat > conftest.$ac_ext <<EOF
8638 #line 8638 "configure"
8639 #include "confdefs.h"
8640 /* Override any gcc2 internal prototype to avoid an error.  */
8641 /* We use char because int might match the return type of a gcc2
8642     builtin and then its argument prototype would still apply.  */
8643 char opendir();
8644
8645 int main() {
8646 opendir()
8647 ; return 0; }
8648 EOF
8649 if { (eval echo configure:8649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8650   rm -rf conftest*
8651   eval "ac_cv_lib_$ac_lib_var=yes"
8652 else
8653   echo "configure: failed program was:" >&5
8654   cat conftest.$ac_ext >&5
8655   rm -rf conftest*
8656   eval "ac_cv_lib_$ac_lib_var=no"
8657 fi
8658 rm -f conftest*
8659 LIBS="$ac_save_LIBS"
8660
8661 fi
8662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8663   echo "$ac_t""yes" 1>&6
8664   LIBS="$LIBS -ldir"
8665 else
8666   echo "$ac_t""no" 1>&6
8667 fi
8668
8669 else
8670 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8671 echo "configure:8671: checking for opendir in -lx" >&5
8672 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
8673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8674   echo $ac_n "(cached) $ac_c" 1>&6
8675 else
8676   ac_save_LIBS="$LIBS"
8677 LIBS="-lx  $LIBS"
8678 cat > conftest.$ac_ext <<EOF
8679 #line 8679 "configure"
8680 #include "confdefs.h"
8681 /* Override any gcc2 internal prototype to avoid an error.  */
8682 /* We use char because int might match the return type of a gcc2
8683     builtin and then its argument prototype would still apply.  */
8684 char opendir();
8685
8686 int main() {
8687 opendir()
8688 ; return 0; }
8689 EOF
8690 if { (eval echo configure:8690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8691   rm -rf conftest*
8692   eval "ac_cv_lib_$ac_lib_var=yes"
8693 else
8694   echo "configure: failed program was:" >&5
8695   cat conftest.$ac_ext >&5
8696   rm -rf conftest*
8697   eval "ac_cv_lib_$ac_lib_var=no"
8698 fi
8699 rm -f conftest*
8700 LIBS="$ac_save_LIBS"
8701
8702 fi
8703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8704   echo "$ac_t""yes" 1>&6
8705   LIBS="$LIBS -lx"
8706 else
8707   echo "$ac_t""no" 1>&6
8708 fi
8709
8710 fi
8711
8712 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
8713 echo "configure:8713: checking whether time.h and sys/time.h may both be included" >&5
8714 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
8715   echo $ac_n "(cached) $ac_c" 1>&6
8716 else
8717   cat > conftest.$ac_ext <<EOF
8718 #line 8718 "configure"
8719 #include "confdefs.h"
8720 #include <sys/types.h>
8721 #include <sys/time.h>
8722 #include <time.h>
8723 int main() {
8724 struct tm *tp;
8725 ; return 0; }
8726 EOF
8727 if { (eval echo configure:8727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8728   rm -rf conftest*
8729   ac_cv_header_time=yes
8730 else
8731   echo "configure: failed program was:" >&5
8732   cat conftest.$ac_ext >&5
8733   rm -rf conftest*
8734   ac_cv_header_time=no
8735 fi
8736 rm -f conftest*
8737 fi
8738
8739 echo "$ac_t""$ac_cv_header_time" 1>&6
8740 if test $ac_cv_header_time = yes; then
8741   cat >> confdefs.h <<\EOF
8742 #define TIME_WITH_SYS_TIME 1
8743 EOF
8744
8745 fi
8746
8747 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8748 echo "configure:8748: checking for sys/wait.h that is POSIX.1 compatible" >&5
8749 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
8750   echo $ac_n "(cached) $ac_c" 1>&6
8751 else
8752   cat > conftest.$ac_ext <<EOF
8753 #line 8753 "configure"
8754 #include "confdefs.h"
8755 #include <sys/types.h>
8756 #include <sys/wait.h>
8757 #ifndef WEXITSTATUS
8758 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8759 #endif
8760 #ifndef WIFEXITED
8761 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8762 #endif
8763 int main() {
8764 int s;
8765 wait (&s);
8766 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8767 ; return 0; }
8768 EOF
8769 if { (eval echo configure:8769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8770   rm -rf conftest*
8771   ac_cv_header_sys_wait_h=yes
8772 else
8773   echo "configure: failed program was:" >&5
8774   cat conftest.$ac_ext >&5
8775   rm -rf conftest*
8776   ac_cv_header_sys_wait_h=no
8777 fi
8778 rm -f conftest*
8779 fi
8780
8781 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8782 if test $ac_cv_header_sys_wait_h = yes; then
8783   cat >> confdefs.h <<\EOF
8784 #define HAVE_SYS_WAIT_H 1
8785 EOF
8786
8787 fi
8788
8789
8790 for ac_hdr in crypt.h inttypes.h limits.h ndbm.h pam/pam_appl.h stdbool.h \
8791                  stddef.h stdint.h string.h sys/bitypes.h sys/filio.h \
8792                  sys/loadavg.h sys/param.h sys/select.h sys/sysinfo.h \
8793                  sys/time.h unistd.h
8794 do
8795 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8796 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8797 echo "configure:8797: checking for $ac_hdr" >&5
8798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8799   echo $ac_n "(cached) $ac_c" 1>&6
8800 else
8801   cat > conftest.$ac_ext <<EOF
8802 #line 8802 "configure"
8803 #include "confdefs.h"
8804 #include <$ac_hdr>
8805 EOF
8806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8807 { (eval echo configure:8807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8809 if test -z "$ac_err"; then
8810   rm -rf conftest*
8811   eval "ac_cv_header_$ac_safe=yes"
8812 else
8813   echo "$ac_err" >&5
8814   echo "configure: failed program was:" >&5
8815   cat conftest.$ac_ext >&5
8816   rm -rf conftest*
8817   eval "ac_cv_header_$ac_safe=no"
8818 fi
8819 rm -f conftest*
8820 fi
8821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8822   echo "$ac_t""yes" 1>&6
8823     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8824   cat >> confdefs.h <<EOF
8825 #define $ac_tr_hdr 1
8826 EOF
8827  
8828 else
8829   echo "$ac_t""no" 1>&6
8830 fi
8831 done
8832
8833
8834 if test x"$ac_cv_header_ndbm_h" = xno ; then
8835     for ac_hdr in db1/ndbm.h gdbm-ndbm.h
8836 do
8837 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8838 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8839 echo "configure:8839: checking for $ac_hdr" >&5
8840 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8841   echo $ac_n "(cached) $ac_c" 1>&6
8842 else
8843   cat > conftest.$ac_ext <<EOF
8844 #line 8844 "configure"
8845 #include "confdefs.h"
8846 #include <$ac_hdr>
8847 EOF
8848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8849 { (eval echo configure:8849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8851 if test -z "$ac_err"; then
8852   rm -rf conftest*
8853   eval "ac_cv_header_$ac_safe=yes"
8854 else
8855   echo "$ac_err" >&5
8856   echo "configure: failed program was:" >&5
8857   cat conftest.$ac_ext >&5
8858   rm -rf conftest*
8859   eval "ac_cv_header_$ac_safe=no"
8860 fi
8861 rm -f conftest*
8862 fi
8863 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8864   echo "$ac_t""yes" 1>&6
8865     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8866   cat >> confdefs.h <<EOF
8867 #define $ac_tr_hdr 1
8868 EOF
8869  
8870 else
8871   echo "$ac_t""no" 1>&6
8872 fi
8873 done
8874
8875 fi
8876
8877
8878 echo $ac_n "checking whether h_errno must be declared""... $ac_c" 1>&6
8879 echo "configure:8879: checking whether h_errno must be declared" >&5
8880 if eval "test \"`echo '$''{'inn_cv_herrno_need_decl'+set}'`\" = set"; then
8881   echo $ac_n "(cached) $ac_c" 1>&6
8882 else
8883   cat > conftest.$ac_ext <<EOF
8884 #line 8884 "configure"
8885 #include "confdefs.h"
8886 #include <netdb.h>
8887 int main() {
8888 h_errno = 0;
8889 ; return 0; }
8890 EOF
8891 if { (eval echo configure:8891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8892   rm -rf conftest*
8893   inn_cv_herrno_need_decl=no
8894 else
8895   echo "configure: failed program was:" >&5
8896   cat conftest.$ac_ext >&5
8897   rm -rf conftest*
8898   inn_cv_herrno_need_decl=yes
8899 fi
8900 rm -f conftest*
8901 fi
8902
8903 echo "$ac_t""$inn_cv_herrno_need_decl" 1>&6
8904 if test "$inn_cv_herrno_need_decl" = yes ; then
8905     cat >> confdefs.h <<\EOF
8906 #define NEED_HERRNO_DECLARATION 1
8907 EOF
8908
8909 fi
8910
8911
8912
8913
8914 echo $ac_n "checking whether inet_aton must be declared""... $ac_c" 1>&6
8915 echo "configure:8915: checking whether inet_aton must be declared" >&5
8916 if eval "test \"`echo '$''{'inn_cv_decl_needed_inet_aton'+set}'`\" = set"; then
8917   echo $ac_n "(cached) $ac_c" 1>&6
8918 else
8919   cat > conftest.$ac_ext <<EOF
8920 #line 8920 "configure"
8921 #include "confdefs.h"
8922 #include <stdio.h>
8923 #include <sys/types.h>
8924 #if STDC_HEADERS
8925 # include <stdlib.h>
8926 # include <stddef.h>
8927 #else
8928 # if HAVE_STDLIB_H
8929 #  include <stdlib.h>
8930 # endif
8931 # if !HAVE_STRCHR
8932 #  define strchr index
8933 #  define strrchr rindex
8934 # endif
8935 #endif
8936 #if HAVE_STRING_H
8937 # if !STDC_HEADERS && HAVE_MEMORY_H
8938 #  include <memory.h>
8939 # endif
8940 # include <string.h>
8941 #else
8942 # if HAVE_STRINGS_H
8943 #  include <strings.h>
8944 # endif
8945 #endif
8946 #if HAVE_UNISTD_H
8947 # include <unistd.h>
8948 #endif
8949 #include <netinet/in.h>
8950 #include <arpa/inet.h>
8951 int main() {
8952 char *(*pfn) = (char *(*)) inet_aton
8953 ; return 0; }
8954 EOF
8955 if { (eval echo configure:8955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8956   rm -rf conftest*
8957   inn_cv_decl_needed_inet_aton=no
8958 else
8959   echo "configure: failed program was:" >&5
8960   cat conftest.$ac_ext >&5
8961   rm -rf conftest*
8962   inn_cv_decl_needed_inet_aton=yes
8963 fi
8964 rm -f conftest*
8965 fi
8966
8967 if test $inn_cv_decl_needed_inet_aton = yes ; then
8968     echo "$ac_t""yes" 1>&6
8969     cat >> confdefs.h <<\EOF
8970 #define NEED_DECLARATION_INET_ATON 1
8971 EOF
8972
8973 else
8974     echo "$ac_t""no" 1>&6
8975 fi
8976 echo $ac_n "checking whether inet_ntoa must be declared""... $ac_c" 1>&6
8977 echo "configure:8977: checking whether inet_ntoa must be declared" >&5
8978 if eval "test \"`echo '$''{'inn_cv_decl_needed_inet_ntoa'+set}'`\" = set"; then
8979   echo $ac_n "(cached) $ac_c" 1>&6
8980 else
8981   cat > conftest.$ac_ext <<EOF
8982 #line 8982 "configure"
8983 #include "confdefs.h"
8984 #include <stdio.h>
8985 #include <sys/types.h>
8986 #if STDC_HEADERS
8987 # include <stdlib.h>
8988 # include <stddef.h>
8989 #else
8990 # if HAVE_STDLIB_H
8991 #  include <stdlib.h>
8992 # endif
8993 # if !HAVE_STRCHR
8994 #  define strchr index
8995 #  define strrchr rindex
8996 # endif
8997 #endif
8998 #if HAVE_STRING_H
8999 # if !STDC_HEADERS && HAVE_MEMORY_H
9000 #  include <memory.h>
9001 # endif
9002 # include <string.h>
9003 #else
9004 # if HAVE_STRINGS_H
9005 #  include <strings.h>
9006 # endif
9007 #endif
9008 #if HAVE_UNISTD_H
9009 # include <unistd.h>
9010 #endif
9011 #include <netinet/in.h>
9012 #include <arpa/inet.h>
9013 int main() {
9014 char *(*pfn) = (char *(*)) inet_ntoa
9015 ; return 0; }
9016 EOF
9017 if { (eval echo configure:9017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9018   rm -rf conftest*
9019   inn_cv_decl_needed_inet_ntoa=no
9020 else
9021   echo "configure: failed program was:" >&5
9022   cat conftest.$ac_ext >&5
9023   rm -rf conftest*
9024   inn_cv_decl_needed_inet_ntoa=yes
9025 fi
9026 rm -f conftest*
9027 fi
9028
9029 if test $inn_cv_decl_needed_inet_ntoa = yes ; then
9030     echo "$ac_t""yes" 1>&6
9031     cat >> confdefs.h <<\EOF
9032 #define NEED_DECLARATION_INET_NTOA 1
9033 EOF
9034
9035 else
9036     echo "$ac_t""no" 1>&6
9037 fi
9038 echo $ac_n "checking whether snprintf must be declared""... $ac_c" 1>&6
9039 echo "configure:9039: checking whether snprintf must be declared" >&5
9040 if eval "test \"`echo '$''{'inn_cv_decl_needed_snprintf'+set}'`\" = set"; then
9041   echo $ac_n "(cached) $ac_c" 1>&6
9042 else
9043   cat > conftest.$ac_ext <<EOF
9044 #line 9044 "configure"
9045 #include "confdefs.h"
9046 #include <stdio.h>
9047 #include <sys/types.h>
9048 #if STDC_HEADERS
9049 # include <stdlib.h>
9050 # include <stddef.h>
9051 #else
9052 # if HAVE_STDLIB_H
9053 #  include <stdlib.h>
9054 # endif
9055 # if !HAVE_STRCHR
9056 #  define strchr index
9057 #  define strrchr rindex
9058 # endif
9059 #endif
9060 #if HAVE_STRING_H
9061 # if !STDC_HEADERS && HAVE_MEMORY_H
9062 #  include <memory.h>
9063 # endif
9064 # include <string.h>
9065 #else
9066 # if HAVE_STRINGS_H
9067 #  include <strings.h>
9068 # endif
9069 #endif
9070 #if HAVE_UNISTD_H
9071 # include <unistd.h>
9072 #endif
9073
9074 int main() {
9075 char *(*pfn) = (char *(*)) snprintf
9076 ; return 0; }
9077 EOF
9078 if { (eval echo configure:9078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9079   rm -rf conftest*
9080   inn_cv_decl_needed_snprintf=no
9081 else
9082   echo "configure: failed program was:" >&5
9083   cat conftest.$ac_ext >&5
9084   rm -rf conftest*
9085   inn_cv_decl_needed_snprintf=yes
9086 fi
9087 rm -f conftest*
9088 fi
9089
9090 if test $inn_cv_decl_needed_snprintf = yes ; then
9091     echo "$ac_t""yes" 1>&6
9092     cat >> confdefs.h <<\EOF
9093 #define NEED_DECLARATION_SNPRINTF 1
9094 EOF
9095
9096 else
9097     echo "$ac_t""no" 1>&6
9098 fi
9099 echo $ac_n "checking whether vsnprintf must be declared""... $ac_c" 1>&6
9100 echo "configure:9100: checking whether vsnprintf must be declared" >&5
9101 if eval "test \"`echo '$''{'inn_cv_decl_needed_vsnprintf'+set}'`\" = set"; then
9102   echo $ac_n "(cached) $ac_c" 1>&6
9103 else
9104   cat > conftest.$ac_ext <<EOF
9105 #line 9105 "configure"
9106 #include "confdefs.h"
9107 #include <stdio.h>
9108 #include <sys/types.h>
9109 #if STDC_HEADERS
9110 # include <stdlib.h>
9111 # include <stddef.h>
9112 #else
9113 # if HAVE_STDLIB_H
9114 #  include <stdlib.h>
9115 # endif
9116 # if !HAVE_STRCHR
9117 #  define strchr index
9118 #  define strrchr rindex
9119 # endif
9120 #endif
9121 #if HAVE_STRING_H
9122 # if !STDC_HEADERS && HAVE_MEMORY_H
9123 #  include <memory.h>
9124 # endif
9125 # include <string.h>
9126 #else
9127 # if HAVE_STRINGS_H
9128 #  include <strings.h>
9129 # endif
9130 #endif
9131 #if HAVE_UNISTD_H
9132 # include <unistd.h>
9133 #endif
9134
9135 int main() {
9136 char *(*pfn) = (char *(*)) vsnprintf
9137 ; return 0; }
9138 EOF
9139 if { (eval echo configure:9139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9140   rm -rf conftest*
9141   inn_cv_decl_needed_vsnprintf=no
9142 else
9143   echo "configure: failed program was:" >&5
9144   cat conftest.$ac_ext >&5
9145   rm -rf conftest*
9146   inn_cv_decl_needed_vsnprintf=yes
9147 fi
9148 rm -f conftest*
9149 fi
9150
9151 if test $inn_cv_decl_needed_vsnprintf = yes ; then
9152     echo "$ac_t""yes" 1>&6
9153     cat >> confdefs.h <<\EOF
9154 #define NEED_DECLARATION_VSNPRINTF 1
9155 EOF
9156
9157 else
9158     echo "$ac_t""no" 1>&6
9159 fi
9160
9161 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
9162 echo "configure:9162: checking whether byte ordering is bigendian" >&5
9163 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9164   echo $ac_n "(cached) $ac_c" 1>&6
9165 else
9166   ac_cv_c_bigendian=unknown
9167 # See if sys/param.h defines the BYTE_ORDER macro.
9168 cat > conftest.$ac_ext <<EOF
9169 #line 9169 "configure"
9170 #include "confdefs.h"
9171 #include <sys/types.h>
9172 #include <sys/param.h>
9173 int main() {
9174
9175 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9176  bogus endian macros
9177 #endif
9178 ; return 0; }
9179 EOF
9180 if { (eval echo configure:9180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9181   rm -rf conftest*
9182   # It does; now see whether it defined to BIG_ENDIAN or not.
9183 cat > conftest.$ac_ext <<EOF
9184 #line 9184 "configure"
9185 #include "confdefs.h"
9186 #include <sys/types.h>
9187 #include <sys/param.h>
9188 int main() {
9189
9190 #if BYTE_ORDER != BIG_ENDIAN
9191  not big endian
9192 #endif
9193 ; return 0; }
9194 EOF
9195 if { (eval echo configure:9195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9196   rm -rf conftest*
9197   ac_cv_c_bigendian=yes
9198 else
9199   echo "configure: failed program was:" >&5
9200   cat conftest.$ac_ext >&5
9201   rm -rf conftest*
9202   ac_cv_c_bigendian=no
9203 fi
9204 rm -f conftest*
9205 else
9206   echo "configure: failed program was:" >&5
9207   cat conftest.$ac_ext >&5
9208 fi
9209 rm -f conftest*
9210 if test $ac_cv_c_bigendian = unknown; then
9211 if test "$cross_compiling" = yes; then
9212     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9213 else
9214   cat > conftest.$ac_ext <<EOF
9215 #line 9215 "configure"
9216 #include "confdefs.h"
9217 main () {
9218   /* Are we little or big endian?  From Harbison&Steele.  */
9219   union
9220   {
9221     long l;
9222     char c[sizeof (long)];
9223   } u;
9224   u.l = 1;
9225   exit (u.c[sizeof (long) - 1] == 1);
9226 }
9227 EOF
9228 if { (eval echo configure:9228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9229 then
9230   ac_cv_c_bigendian=no
9231 else
9232   echo "configure: failed program was:" >&5
9233   cat conftest.$ac_ext >&5
9234   rm -fr conftest*
9235   ac_cv_c_bigendian=yes
9236 fi
9237 rm -fr conftest*
9238 fi
9239
9240 fi
9241 fi
9242
9243 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9244 if test $ac_cv_c_bigendian = yes; then
9245   cat >> confdefs.h <<\EOF
9246 #define WORDS_BIGENDIAN 1
9247 EOF
9248
9249 fi
9250
9251 echo $ac_n "checking for working const""... $ac_c" 1>&6
9252 echo "configure:9252: checking for working const" >&5
9253 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9254   echo $ac_n "(cached) $ac_c" 1>&6
9255 else
9256   cat > conftest.$ac_ext <<EOF
9257 #line 9257 "configure"
9258 #include "confdefs.h"
9259
9260 int main() {
9261
9262 /* Ultrix mips cc rejects this.  */
9263 typedef int charset[2]; const charset x;
9264 /* SunOS 4.1.1 cc rejects this.  */
9265 char const *const *ccp;
9266 char **p;
9267 /* NEC SVR4.0.2 mips cc rejects this.  */
9268 struct point {int x, y;};
9269 static struct point const zero = {0,0};
9270 /* AIX XL C 1.02.0.0 rejects this.
9271    It does not let you subtract one const X* pointer from another in an arm
9272    of an if-expression whose if-part is not a constant expression */
9273 const char *g = "string";
9274 ccp = &g + (g ? g-g : 0);
9275 /* HPUX 7.0 cc rejects these. */
9276 ++ccp;
9277 p = (char**) ccp;
9278 ccp = (char const *const *) p;
9279 { /* SCO 3.2v4 cc rejects this.  */
9280   char *t;
9281   char const *s = 0 ? (char *) 0 : (char const *) 0;
9282
9283   *t++ = 0;
9284 }
9285 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9286   int x[] = {25, 17};
9287   const int *foo = &x[0];
9288   ++foo;
9289 }
9290 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9291   typedef const int *iptr;
9292   iptr p = 0;
9293   ++p;
9294 }
9295 { /* AIX XL C 1.02.0.0 rejects this saying
9296      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9297   struct s { int j; const int *ap[3]; };
9298   struct s *b; b->j = 5;
9299 }
9300 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9301   const int foo = 10;
9302 }
9303
9304 ; return 0; }
9305 EOF
9306 if { (eval echo configure:9306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9307   rm -rf conftest*
9308   ac_cv_c_const=yes
9309 else
9310   echo "configure: failed program was:" >&5
9311   cat conftest.$ac_ext >&5
9312   rm -rf conftest*
9313   ac_cv_c_const=no
9314 fi
9315 rm -f conftest*
9316 fi
9317
9318 echo "$ac_t""$ac_cv_c_const" 1>&6
9319 if test $ac_cv_c_const = no; then
9320   cat >> confdefs.h <<\EOF
9321 #define const 
9322 EOF
9323
9324 fi
9325
9326 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
9327 echo "configure:9327: checking for st_blksize in struct stat" >&5
9328 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
9329   echo $ac_n "(cached) $ac_c" 1>&6
9330 else
9331   cat > conftest.$ac_ext <<EOF
9332 #line 9332 "configure"
9333 #include "confdefs.h"
9334 #include <sys/types.h>
9335 #include <sys/stat.h>
9336 int main() {
9337 struct stat s; s.st_blksize;
9338 ; return 0; }
9339 EOF
9340 if { (eval echo configure:9340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9341   rm -rf conftest*
9342   ac_cv_struct_st_blksize=yes
9343 else
9344   echo "configure: failed program was:" >&5
9345   cat conftest.$ac_ext >&5
9346   rm -rf conftest*
9347   ac_cv_struct_st_blksize=no
9348 fi
9349 rm -f conftest*
9350 fi
9351
9352 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
9353 if test $ac_cv_struct_st_blksize = yes; then
9354   cat >> confdefs.h <<\EOF
9355 #define HAVE_ST_BLKSIZE 1
9356 EOF
9357
9358 fi
9359
9360 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
9361 echo "configure:9361: checking whether struct tm is in sys/time.h or time.h" >&5
9362 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
9363   echo $ac_n "(cached) $ac_c" 1>&6
9364 else
9365   cat > conftest.$ac_ext <<EOF
9366 #line 9366 "configure"
9367 #include "confdefs.h"
9368 #include <sys/types.h>
9369 #include <time.h>
9370 int main() {
9371 struct tm *tp; tp->tm_sec;
9372 ; return 0; }
9373 EOF
9374 if { (eval echo configure:9374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9375   rm -rf conftest*
9376   ac_cv_struct_tm=time.h
9377 else
9378   echo "configure: failed program was:" >&5
9379   cat conftest.$ac_ext >&5
9380   rm -rf conftest*
9381   ac_cv_struct_tm=sys/time.h
9382 fi
9383 rm -f conftest*
9384 fi
9385
9386 echo "$ac_t""$ac_cv_struct_tm" 1>&6
9387 if test $ac_cv_struct_tm = sys/time.h; then
9388   cat >> confdefs.h <<\EOF
9389 #define TM_IN_SYS_TIME 1
9390 EOF
9391
9392 fi
9393
9394 echo $ac_n "checking for size_t""... $ac_c" 1>&6
9395 echo "configure:9395: checking for size_t" >&5
9396 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9397   echo $ac_n "(cached) $ac_c" 1>&6
9398 else
9399   cat > conftest.$ac_ext <<EOF
9400 #line 9400 "configure"
9401 #include "confdefs.h"
9402 #include <sys/types.h>
9403 #if STDC_HEADERS
9404 #include <stdlib.h>
9405 #include <stddef.h>
9406 #endif
9407 EOF
9408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9409   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9410   rm -rf conftest*
9411   ac_cv_type_size_t=yes
9412 else
9413   rm -rf conftest*
9414   ac_cv_type_size_t=no
9415 fi
9416 rm -f conftest*
9417
9418 fi
9419 echo "$ac_t""$ac_cv_type_size_t" 1>&6
9420 if test $ac_cv_type_size_t = no; then
9421   cat >> confdefs.h <<\EOF
9422 #define size_t unsigned
9423 EOF
9424
9425 fi
9426
9427 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9428 echo "configure:9428: checking for uid_t in sys/types.h" >&5
9429 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9430   echo $ac_n "(cached) $ac_c" 1>&6
9431 else
9432   cat > conftest.$ac_ext <<EOF
9433 #line 9433 "configure"
9434 #include "confdefs.h"
9435 #include <sys/types.h>
9436 EOF
9437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9438   egrep "uid_t" >/dev/null 2>&1; then
9439   rm -rf conftest*
9440   ac_cv_type_uid_t=yes
9441 else
9442   rm -rf conftest*
9443   ac_cv_type_uid_t=no
9444 fi
9445 rm -f conftest*
9446
9447 fi
9448
9449 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9450 if test $ac_cv_type_uid_t = no; then
9451   cat >> confdefs.h <<\EOF
9452 #define uid_t int
9453 EOF
9454
9455   cat >> confdefs.h <<\EOF
9456 #define gid_t int
9457 EOF
9458
9459 fi
9460
9461 echo $ac_n "checking for off_t""... $ac_c" 1>&6
9462 echo "configure:9462: checking for off_t" >&5
9463 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9464   echo $ac_n "(cached) $ac_c" 1>&6
9465 else
9466   cat > conftest.$ac_ext <<EOF
9467 #line 9467 "configure"
9468 #include "confdefs.h"
9469 #include <sys/types.h>
9470 #if STDC_HEADERS
9471 #include <stdlib.h>
9472 #include <stddef.h>
9473 #endif
9474 EOF
9475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9476   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9477   rm -rf conftest*
9478   ac_cv_type_off_t=yes
9479 else
9480   rm -rf conftest*
9481   ac_cv_type_off_t=no
9482 fi
9483 rm -f conftest*
9484
9485 fi
9486 echo "$ac_t""$ac_cv_type_off_t" 1>&6
9487 if test $ac_cv_type_off_t = no; then
9488   cat >> confdefs.h <<\EOF
9489 #define off_t long
9490 EOF
9491
9492 fi
9493
9494 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9495 echo "configure:9495: checking for pid_t" >&5
9496 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9497   echo $ac_n "(cached) $ac_c" 1>&6
9498 else
9499   cat > conftest.$ac_ext <<EOF
9500 #line 9500 "configure"
9501 #include "confdefs.h"
9502 #include <sys/types.h>
9503 #if STDC_HEADERS
9504 #include <stdlib.h>
9505 #include <stddef.h>
9506 #endif
9507 EOF
9508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9509   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9510   rm -rf conftest*
9511   ac_cv_type_pid_t=yes
9512 else
9513   rm -rf conftest*
9514   ac_cv_type_pid_t=no
9515 fi
9516 rm -f conftest*
9517
9518 fi
9519 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9520 if test $ac_cv_type_pid_t = no; then
9521   cat >> confdefs.h <<\EOF
9522 #define pid_t int
9523 EOF
9524
9525 fi
9526
9527 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
9528 echo "configure:9528: checking for ptrdiff_t" >&5
9529 if eval "test \"`echo '$''{'ac_cv_type_ptrdiff_t'+set}'`\" = set"; then
9530   echo $ac_n "(cached) $ac_c" 1>&6
9531 else
9532   cat > conftest.$ac_ext <<EOF
9533 #line 9533 "configure"
9534 #include "confdefs.h"
9535 #include <sys/types.h>
9536 #if STDC_HEADERS
9537 #include <stdlib.h>
9538 #include <stddef.h>
9539 #endif
9540 EOF
9541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9542   egrep "(^|[^a-zA-Z_0-9])ptrdiff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9543   rm -rf conftest*
9544   ac_cv_type_ptrdiff_t=yes
9545 else
9546   rm -rf conftest*
9547   ac_cv_type_ptrdiff_t=no
9548 fi
9549 rm -f conftest*
9550
9551 fi
9552 echo "$ac_t""$ac_cv_type_ptrdiff_t" 1>&6
9553 if test $ac_cv_type_ptrdiff_t = no; then
9554   cat >> confdefs.h <<\EOF
9555 #define ptrdiff_t long
9556 EOF
9557
9558 fi
9559
9560 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
9561 echo "configure:9561: checking for ssize_t" >&5
9562 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
9563   echo $ac_n "(cached) $ac_c" 1>&6
9564 else
9565   cat > conftest.$ac_ext <<EOF
9566 #line 9566 "configure"
9567 #include "confdefs.h"
9568 #include <sys/types.h>
9569 #if STDC_HEADERS
9570 #include <stdlib.h>
9571 #include <stddef.h>
9572 #endif
9573 EOF
9574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9575   egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9576   rm -rf conftest*
9577   ac_cv_type_ssize_t=yes
9578 else
9579   rm -rf conftest*
9580   ac_cv_type_ssize_t=no
9581 fi
9582 rm -f conftest*
9583
9584 fi
9585 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
9586 if test $ac_cv_type_ssize_t = no; then
9587   cat >> confdefs.h <<\EOF
9588 #define ssize_t int
9589 EOF
9590
9591 fi
9592
9593
9594
9595 echo $ac_n "checking for C99 variadic macros""... $ac_c" 1>&6
9596 echo "configure:9596: checking for C99 variadic macros" >&5
9597 if eval "test \"`echo '$''{'inn_cv_c_c99_vamacros'+set}'`\" = set"; then
9598   echo $ac_n "(cached) $ac_c" 1>&6
9599 else
9600   cat > conftest.$ac_ext <<EOF
9601 #line 9601 "configure"
9602 #include "confdefs.h"
9603 #include <stdio.h>
9604 #define error(...) fprintf(stderr, __VA_ARGS__)
9605 int main() {
9606 error("foo"); error("foo %d", 0); return 0;
9607 ; return 0; }
9608 EOF
9609 if { (eval echo configure:9609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9610   rm -rf conftest*
9611   inn_cv_c_c99_vamacros=yes
9612 else
9613   echo "configure: failed program was:" >&5
9614   cat conftest.$ac_ext >&5
9615   rm -rf conftest*
9616   inn_cv_c_c99_vamacros=no
9617 fi
9618 rm -f conftest*
9619 fi
9620
9621 echo "$ac_t""$inn_cv_c_c99_vamacros" 1>&6
9622 if test $inn_cv_c_c99_vamacros = yes ; then
9623     cat >> confdefs.h <<\EOF
9624 #define HAVE_C99_VAMACROS 1
9625 EOF
9626
9627 fi
9628
9629
9630 echo $ac_n "checking for GNU-style variadic macros""... $ac_c" 1>&6
9631 echo "configure:9631: checking for GNU-style variadic macros" >&5
9632 if eval "test \"`echo '$''{'inn_cv_c_gnu_vamacros'+set}'`\" = set"; then
9633   echo $ac_n "(cached) $ac_c" 1>&6
9634 else
9635   cat > conftest.$ac_ext <<EOF
9636 #line 9636 "configure"
9637 #include "confdefs.h"
9638 #include <stdio.h>
9639 #define error(args...) fprintf(stderr, args)
9640 int main() {
9641 error("foo"); error("foo %d", 0); return 0;
9642 ; return 0; }
9643 EOF
9644 if { (eval echo configure:9644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9645   rm -rf conftest*
9646   inn_cv_c_gnu_vamacros=yes
9647 else
9648   echo "configure: failed program was:" >&5
9649   cat conftest.$ac_ext >&5
9650   rm -rf conftest*
9651   inn_cv_c_gnu_vamacros=no
9652 fi
9653 rm -f conftest*
9654 fi
9655
9656 echo "$ac_t""$inn_cv_c_gnu_vamacros" 1>&6
9657 if test $inn_cv_c_gnu_vamacros = yes ; then
9658     cat >> confdefs.h <<\EOF
9659 #define HAVE_GNU_VAMACROS 1
9660 EOF
9661
9662 fi
9663
9664
9665 echo $ac_n "checking for long long int""... $ac_c" 1>&6
9666 echo "configure:9666: checking for long long int" >&5
9667 if eval "test \"`echo '$''{'inn_cv_c_long_long'+set}'`\" = set"; then
9668   echo $ac_n "(cached) $ac_c" 1>&6
9669 else
9670   cat > conftest.$ac_ext <<EOF
9671 #line 9671 "configure"
9672 #include "confdefs.h"
9673
9674 int main() {
9675 long long int i;
9676 ; return 0; }
9677 EOF
9678 if { (eval echo configure:9678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9679   rm -rf conftest*
9680   inn_cv_c_long_long=yes
9681 else
9682   echo "configure: failed program was:" >&5
9683   cat conftest.$ac_ext >&5
9684   rm -rf conftest*
9685   inn_cv_c_long_long=no
9686 fi
9687 rm -f conftest*
9688 fi
9689
9690 echo "$ac_t""$inn_cv_c_long_long" 1>&6
9691 if test $inn_cv_c_long_long = yes ; then
9692     cat >> confdefs.h <<\EOF
9693 #define HAVE_LONG_LONG 1
9694 EOF
9695
9696 fi
9697
9698
9699
9700
9701 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
9702 echo "configure:9702: checking for sig_atomic_t" >&5
9703 if eval "test \"`echo '$''{'ac_cv_type_sig_atomic_t'+set}'`\" = set"; then
9704   echo $ac_n "(cached) $ac_c" 1>&6
9705 else
9706   cat > conftest.$ac_ext <<EOF
9707 #line 9707 "configure"
9708 #include "confdefs.h"
9709 #include <sys/types.h>
9710 #ifdef STDC_HEADERS
9711 # include <stdlib.h>
9712 # include <stddef.h>
9713 #endif
9714 #include <signal.h>
9715 EOF
9716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9717   egrep "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9718   rm -rf conftest*
9719   ac_cv_type_sig_atomic_t=yes
9720 else
9721   rm -rf conftest*
9722   ac_cv_type_sig_atomic_t=no
9723
9724 fi
9725 rm -f conftest*
9726
9727 fi
9728
9729 echo "$ac_t""$ac_cv_type_sig_atomic_t" 1>&6
9730 if test x"$ac_cv_type_sig_atomic_t" = xno ; then
9731     cat >> confdefs.h <<EOF
9732 #define sig_atomic_t int
9733 EOF
9734
9735 fi
9736
9737 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
9738 echo "configure:9738: checking for socklen_t" >&5
9739 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
9740   echo $ac_n "(cached) $ac_c" 1>&6
9741 else
9742   cat > conftest.$ac_ext <<EOF
9743 #line 9743 "configure"
9744 #include "confdefs.h"
9745 #include <sys/types.h>
9746 #ifdef STDC_HEADERS
9747 # include <stdlib.h>
9748 # include <stddef.h>
9749 #endif
9750 #include <sys/socket.h>
9751 EOF
9752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9753   egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9754   rm -rf conftest*
9755   ac_cv_type_socklen_t=yes
9756 else
9757   rm -rf conftest*
9758   ac_cv_type_socklen_t=no
9759
9760 fi
9761 rm -f conftest*
9762
9763 fi
9764
9765 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
9766 if test x"$ac_cv_type_socklen_t" = xno ; then
9767     cat >> confdefs.h <<EOF
9768 #define socklen_t int
9769 EOF
9770
9771 fi
9772
9773
9774
9775
9776 echo $ac_n "checking value of IOV_MAX""... $ac_c" 1>&6
9777 echo "configure:9777: checking value of IOV_MAX" >&5
9778 if eval "test \"`echo '$''{'inn_cv_macro_iov_max'+set}'`\" = set"; then
9779   echo $ac_n "(cached) $ac_c" 1>&6
9780 else
9781   if test "$cross_compiling" = yes; then
9782   16
9783 else
9784   cat > conftest.$ac_ext <<EOF
9785 #line 9785 "configure"
9786 #include "confdefs.h"
9787 #include <sys/types.h>
9788 #include <stdio.h>
9789 #include <sys/uio.h>
9790 #include <errno.h>
9791 #include <fcntl.h>
9792 #ifdef HAVE_UNISTD_H
9793 # include <unistd.h>
9794 #endif
9795 #ifdef HAVE_LIMITS_H
9796 # include <limits.h>
9797 #endif
9798
9799 int
9800 main ()
9801 {
9802   int fd, size;
9803   struct iovec array[1024];
9804   char data;
9805
9806   FILE *f = fopen ("conftestval", "w");
9807   if (!f) return 1;
9808 #ifdef IOV_MAX
9809   fprintf (f, "set in limits.h\n");
9810 #else
9811 # ifdef UIO_MAXIOV
9812   fprintf (f, "%d\n", UIO_MAXIOV);
9813 # else
9814   fd = open ("/dev/null", O_WRONLY, 0666);
9815   if (fd < 0) return 1;
9816   for (size = 1; size <= 1024; size++)
9817     {
9818       array[size - 1].iov_base = &data;
9819       array[size - 1].iov_len = sizeof data;
9820       if (writev (fd, array, size) < 0)
9821         {
9822           if (errno != EINVAL) return 1;
9823           fprintf(f, "%d\n", size - 1);
9824           exit (0);
9825         }
9826     }
9827   fprintf (f, "1024\n");
9828 # endif /* UIO_MAXIOV */
9829 #endif /* IOV_MAX */
9830   return 0;
9831 }
9832 EOF
9833 if { (eval echo configure:9833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9834 then
9835   inn_cv_macro_iov_max=`cat conftestval`
9836 else
9837   echo "configure: failed program was:" >&5
9838   cat conftest.$ac_ext >&5
9839   rm -fr conftest*
9840   inn_cv_macro_iov_max=error
9841 fi
9842 rm -fr conftest*
9843 fi
9844
9845 if test x"$inn_cv_macro_iov_max" = xerror ; then
9846     echo "configure: warning: probe failure, assuming 16" 1>&2
9847     inn_cv_macro_iov_max=16
9848 fi
9849 fi
9850
9851 echo "$ac_t""$inn_cv_macro_iov_max" 1>&6
9852 if test x"$inn_cv_macro_iov_max" != x"set in limits.h" ; then
9853     cat >> confdefs.h <<EOF
9854 #define IOV_MAX $inn_cv_macro_iov_max
9855 EOF
9856
9857 fi
9858
9859
9860 echo $ac_n "checking for SUN_LEN""... $ac_c" 1>&6
9861 echo "configure:9861: checking for SUN_LEN" >&5
9862 if eval "test \"`echo '$''{'inn_cv_macro_sun_len'+set}'`\" = set"; then
9863   echo $ac_n "(cached) $ac_c" 1>&6
9864 else
9865   cat > conftest.$ac_ext <<EOF
9866 #line 9866 "configure"
9867 #include "confdefs.h"
9868 #include <sys/types.h>
9869 #include <sys/un.h>
9870 int main() {
9871 struct sockaddr_un sun;
9872 int i;
9873
9874 i = SUN_LEN(&sun);
9875 ; return 0; }
9876 EOF
9877 if { (eval echo configure:9877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9878   rm -rf conftest*
9879   inn_cv_macro_sun_len=yes
9880 else
9881   echo "configure: failed program was:" >&5
9882   cat conftest.$ac_ext >&5
9883   rm -rf conftest*
9884   inn_cv_macro_sun_len=no
9885 fi
9886 rm -f conftest*
9887 fi
9888
9889 echo "$ac_t""$inn_cv_macro_sun_len" 1>&6
9890 if test x"$inn_cv_macro_sun_len" = xyes ; then
9891     cat >> confdefs.h <<\EOF
9892 #define HAVE_SUN_LEN 1
9893 EOF
9894
9895 fi
9896
9897
9898 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
9899 echo "configure:9899: checking for tm_gmtoff in struct tm" >&5
9900 if eval "test \"`echo '$''{'inn_cv_struct_tm_gmtoff'+set}'`\" = set"; then
9901   echo $ac_n "(cached) $ac_c" 1>&6
9902 else
9903   cat > conftest.$ac_ext <<EOF
9904 #line 9904 "configure"
9905 #include "confdefs.h"
9906 #include <time.h>
9907 int main() {
9908 struct tm t; t.tm_gmtoff = 3600
9909 ; return 0; }
9910 EOF
9911 if { (eval echo configure:9911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9912   rm -rf conftest*
9913   inn_cv_struct_tm_gmtoff=yes
9914 else
9915   echo "configure: failed program was:" >&5
9916   cat conftest.$ac_ext >&5
9917   rm -rf conftest*
9918   inn_cv_struct_tm_gmtoff=no
9919 fi
9920 rm -f conftest*
9921 fi
9922
9923 echo "$ac_t""$inn_cv_struct_tm_gmtoff" 1>&6
9924 if test x"$inn_cv_struct_tm_gmtoff" = xyes ; then
9925     cat >> confdefs.h <<\EOF
9926 #define HAVE_TM_GMTOFF 1
9927 EOF
9928
9929 fi
9930
9931
9932 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
9933 echo "configure:9933: checking for tm_zone in struct tm" >&5
9934 if eval "test \"`echo '$''{'inn_cv_struct_tm_zone'+set}'`\" = set"; then
9935   echo $ac_n "(cached) $ac_c" 1>&6
9936 else
9937   cat > conftest.$ac_ext <<EOF
9938 #line 9938 "configure"
9939 #include "confdefs.h"
9940 #include <time.h>
9941 int main() {
9942 struct tm t; t.tm_zone = "UTC"
9943 ; return 0; }
9944 EOF
9945 if { (eval echo configure:9945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9946   rm -rf conftest*
9947   inn_cv_struct_tm_zone=yes
9948 else
9949   echo "configure: failed program was:" >&5
9950   cat conftest.$ac_ext >&5
9951   rm -rf conftest*
9952   inn_cv_struct_tm_zone=no
9953 fi
9954 rm -f conftest*
9955 fi
9956
9957 echo "$ac_t""$inn_cv_struct_tm_zone" 1>&6
9958 if test x"$inn_cv_struct_tm_zone" = xyes ; then
9959     cat >> confdefs.h <<\EOF
9960 #define HAVE_TM_ZONE 1
9961 EOF
9962
9963 fi
9964
9965
9966 echo $ac_n "checking for timezone variable""... $ac_c" 1>&6
9967 echo "configure:9967: checking for timezone variable" >&5
9968 if eval "test \"`echo '$''{'inn_cv_var_timezone'+set}'`\" = set"; then
9969   echo $ac_n "(cached) $ac_c" 1>&6
9970 else
9971   cat > conftest.$ac_ext <<EOF
9972 #line 9972 "configure"
9973 #include "confdefs.h"
9974 #include <time.h>
9975 int main() {
9976 timezone = 3600; altzone = 7200
9977 ; return 0; }
9978 EOF
9979 if { (eval echo configure:9979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9980   rm -rf conftest*
9981   inn_cv_var_timezone=yes
9982 else
9983   echo "configure: failed program was:" >&5
9984   cat conftest.$ac_ext >&5
9985   rm -rf conftest*
9986   inn_cv_var_timezone=no
9987 fi
9988 rm -f conftest*
9989 fi
9990
9991 echo "$ac_t""$inn_cv_var_timezone" 1>&6
9992 if test x"$inn_cv_var_timezone" = xyes ; then
9993     cat >> confdefs.h <<\EOF
9994 #define HAVE_VAR_TIMEZONE 1
9995 EOF
9996
9997 fi
9998
9999
10000 echo $ac_n "checking for tzname variable""... $ac_c" 1>&6
10001 echo "configure:10001: checking for tzname variable" >&5
10002 if eval "test \"`echo '$''{'inn_cv_var_tzname'+set}'`\" = set"; then
10003   echo $ac_n "(cached) $ac_c" 1>&6
10004 else
10005   cat > conftest.$ac_ext <<EOF
10006 #line 10006 "configure"
10007 #include "confdefs.h"
10008 #include <time.h>
10009 int main() {
10010 *tzname = "UTC"
10011 ; return 0; }
10012 EOF
10013 if { (eval echo configure:10013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10014   rm -rf conftest*
10015   inn_cv_var_tzname=yes
10016 else
10017   echo "configure: failed program was:" >&5
10018   cat conftest.$ac_ext >&5
10019   rm -rf conftest*
10020   inn_cv_var_tzname=no
10021 fi
10022 rm -f conftest*
10023 fi
10024
10025 echo "$ac_t""$inn_cv_var_tzname" 1>&6
10026 if test x"$inn_cv_var_tzname" = xyes ; then
10027     cat >> confdefs.h <<\EOF
10028 #define HAVE_VAR_TZNAME 1
10029 EOF
10030
10031 fi
10032
10033
10034
10035 echo $ac_n "checking size of int""... $ac_c" 1>&6
10036 echo "configure:10036: checking size of int" >&5
10037 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10038   echo $ac_n "(cached) $ac_c" 1>&6
10039 else
10040   if test "$cross_compiling" = yes; then
10041   ac_cv_sizeof_int=4
10042 else
10043   cat > conftest.$ac_ext <<EOF
10044 #line 10044 "configure"
10045 #include "confdefs.h"
10046 #include <stdio.h>
10047 main()
10048 {
10049     FILE *f = fopen("conftestval", "w");
10050     if (!f) exit(1);
10051     fprintf(f, "%d\n", sizeof(int));
10052     exit(0);
10053 }
10054 EOF
10055 if { (eval echo configure:10055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10056 then
10057   ac_cv_sizeof_int=`cat conftestval`
10058 else
10059   echo "configure: failed program was:" >&5
10060   cat conftest.$ac_ext >&5
10061   rm -fr conftest*
10062   ac_cv_sizeof_int=0
10063 fi
10064 rm -fr conftest*
10065 fi
10066
10067
10068 fi
10069 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10070 if test x"$ac_cv_sizeof_int" = x"4" ; then
10071     INN_INT32=int
10072 else
10073     echo $ac_n "checking size of long""... $ac_c" 1>&6
10074 echo "configure:10074: checking size of long" >&5
10075 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10076   echo $ac_n "(cached) $ac_c" 1>&6
10077 else
10078   if test "$cross_compiling" = yes; then
10079   ac_cv_sizeof_long=4
10080 else
10081   cat > conftest.$ac_ext <<EOF
10082 #line 10082 "configure"
10083 #include "confdefs.h"
10084 #include <stdio.h>
10085 main()
10086 {
10087     FILE *f = fopen("conftestval", "w");
10088     if (!f) exit(1);
10089     fprintf(f, "%d\n", sizeof(long));
10090     exit(0);
10091 }
10092 EOF
10093 if { (eval echo configure:10093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10094 then
10095   ac_cv_sizeof_long=`cat conftestval`
10096 else
10097   echo "configure: failed program was:" >&5
10098   cat conftest.$ac_ext >&5
10099   rm -fr conftest*
10100   ac_cv_sizeof_long=0
10101 fi
10102 rm -fr conftest*
10103 fi
10104
10105
10106 fi
10107 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10108 if test x"$ac_cv_sizeof_long" = x"4" ; then
10109     INN_INT32=long
10110 else
10111     echo $ac_n "checking size of short""... $ac_c" 1>&6
10112 echo "configure:10112: checking size of short" >&5
10113 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10114   echo $ac_n "(cached) $ac_c" 1>&6
10115 else
10116   if test "$cross_compiling" = yes; then
10117   ac_cv_sizeof_short=2
10118 else
10119   cat > conftest.$ac_ext <<EOF
10120 #line 10120 "configure"
10121 #include "confdefs.h"
10122 #include <stdio.h>
10123 main()
10124 {
10125     FILE *f = fopen("conftestval", "w");
10126     if (!f) exit(1);
10127     fprintf(f, "%d\n", sizeof(short));
10128     exit(0);
10129 }
10130 EOF
10131 if { (eval echo configure:10131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10132 then
10133   ac_cv_sizeof_short=`cat conftestval`
10134 else
10135   echo "configure: failed program was:" >&5
10136   cat conftest.$ac_ext >&5
10137   rm -fr conftest*
10138   ac_cv_sizeof_short=0
10139 fi
10140 rm -fr conftest*
10141 fi
10142
10143
10144 fi
10145 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10146 if test x"$ac_cv_sizeof_short" = x"4" ; then
10147     INN_INT32=short
10148 else
10149     :
10150 fi
10151
10152 fi
10153
10154 fi
10155
10156
10157 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
10158 echo "configure:10158: checking for int32_t" >&5
10159 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
10160   echo $ac_n "(cached) $ac_c" 1>&6
10161 else
10162   cat > conftest.$ac_ext <<EOF
10163 #line 10163 "configure"
10164 #include "confdefs.h"
10165 #include <sys/types.h>
10166 #ifdef STDC_HEADERS
10167 # include <stdlib.h>
10168 # include <stddef.h>
10169 #endif
10170 #ifdef HAVE_STDINT_H
10171 # include <stdint.h>
10172 #endif
10173 #ifdef HAVE_SYS_BITYPES_H
10174 # include <sys/bitypes.h>
10175 #endif
10176
10177 EOF
10178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10179   egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10180   rm -rf conftest*
10181   ac_cv_type_int32_t=yes
10182 else
10183   rm -rf conftest*
10184   ac_cv_type_int32_t=no
10185
10186 fi
10187 rm -f conftest*
10188
10189 fi
10190
10191 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
10192 if test x"$ac_cv_type_int32_t" = xno ; then
10193     cat >> confdefs.h <<EOF
10194 #define int32_t $INN_INT32
10195 EOF
10196
10197 fi
10198
10199
10200 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
10201 echo "configure:10201: checking for uint32_t" >&5
10202 if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
10203   echo $ac_n "(cached) $ac_c" 1>&6
10204 else
10205   cat > conftest.$ac_ext <<EOF
10206 #line 10206 "configure"
10207 #include "confdefs.h"
10208 #include <sys/types.h>
10209 #ifdef STDC_HEADERS
10210 # include <stdlib.h>
10211 # include <stddef.h>
10212 #endif
10213 #ifdef HAVE_STDINT_H
10214 # include <stdint.h>
10215 #endif
10216 #ifdef HAVE_SYS_BITYPES_H
10217 # include <sys/bitypes.h>
10218 #endif
10219
10220 EOF
10221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10222   egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10223   rm -rf conftest*
10224   ac_cv_type_uint32_t=yes
10225 else
10226   rm -rf conftest*
10227   ac_cv_type_uint32_t=no
10228
10229 fi
10230 rm -f conftest*
10231
10232 fi
10233
10234 echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
10235 if test x"$ac_cv_type_uint32_t" = xno ; then
10236     cat >> confdefs.h <<EOF
10237 #define uint32_t unsigned $INN_INT32
10238 EOF
10239
10240 fi
10241
10242 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
10243 echo "configure:10243: checking for 8-bit clean memcmp" >&5
10244 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
10245   echo $ac_n "(cached) $ac_c" 1>&6
10246 else
10247   if test "$cross_compiling" = yes; then
10248   ac_cv_func_memcmp_clean=no
10249 else
10250   cat > conftest.$ac_ext <<EOF
10251 #line 10251 "configure"
10252 #include "confdefs.h"
10253
10254 main()
10255 {
10256   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10257   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10258 }
10259
10260 EOF
10261 if { (eval echo configure:10261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10262 then
10263   ac_cv_func_memcmp_clean=yes
10264 else
10265   echo "configure: failed program was:" >&5
10266   cat conftest.$ac_ext >&5
10267   rm -fr conftest*
10268   ac_cv_func_memcmp_clean=no
10269 fi
10270 rm -fr conftest*
10271 fi
10272
10273 fi
10274
10275 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
10276 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
10277
10278 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
10279 echo "configure:10279: checking return type of signal handlers" >&5
10280 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
10281   echo $ac_n "(cached) $ac_c" 1>&6
10282 else
10283   cat > conftest.$ac_ext <<EOF
10284 #line 10284 "configure"
10285 #include "confdefs.h"
10286 #include <sys/types.h>
10287 #include <signal.h>
10288 #ifdef signal
10289 #undef signal
10290 #endif
10291 #ifdef __cplusplus
10292 extern "C" void (*signal (int, void (*)(int)))(int);
10293 #else
10294 void (*signal ()) ();
10295 #endif
10296
10297 int main() {
10298 int i;
10299 ; return 0; }
10300 EOF
10301 if { (eval echo configure:10301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10302   rm -rf conftest*
10303   ac_cv_type_signal=void
10304 else
10305   echo "configure: failed program was:" >&5
10306   cat conftest.$ac_ext >&5
10307   rm -rf conftest*
10308   ac_cv_type_signal=int
10309 fi
10310 rm -f conftest*
10311 fi
10312
10313 echo "$ac_t""$ac_cv_type_signal" 1>&6
10314 cat >> confdefs.h <<EOF
10315 #define RETSIGTYPE $ac_cv_type_signal
10316 EOF
10317
10318
10319
10320
10321
10322
10323 echo $ac_n "checking for working inet_ntoa""... $ac_c" 1>&6
10324 echo "configure:10324: checking for working inet_ntoa" >&5
10325 if eval "test \"`echo '$''{'inn_cv_func_inet_ntoa_works'+set}'`\" = set"; then
10326   echo $ac_n "(cached) $ac_c" 1>&6
10327 else
10328   if test "$cross_compiling" = yes; then
10329   inn_cv_func_inet_ntoa_works=no
10330 else
10331   cat > conftest.$ac_ext <<EOF
10332 #line 10332 "configure"
10333 #include "confdefs.h"
10334 #include <sys/types.h>
10335 #include <sys/socket.h>
10336 #include <netinet/in.h>
10337 #include <arpa/inet.h>
10338 #if STDC_HEADERS || HAVE_STRING_H
10339 # include <string.h>
10340 #endif
10341
10342 int
10343 main ()
10344 {
10345   struct in_addr in;
10346   in.s_addr = htonl (0x7f000000L);
10347   return (!strcmp (inet_ntoa (in), "127.0.0.0") ? 0 : 1);
10348 }
10349 EOF
10350 if { (eval echo configure:10350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10351 then
10352   inn_cv_func_inet_ntoa_works=yes
10353 else
10354   echo "configure: failed program was:" >&5
10355   cat conftest.$ac_ext >&5
10356   rm -fr conftest*
10357   inn_cv_func_inet_ntoa_works=no
10358 fi
10359 rm -fr conftest*
10360 fi
10361
10362 fi
10363
10364 echo "$ac_t""$inn_cv_func_inet_ntoa_works" 1>&6
10365 if test "$inn_cv_func_inet_ntoa_works" = yes ; then
10366     cat >> confdefs.h <<\EOF
10367 #define HAVE_INET_NTOA 1
10368 EOF
10369
10370 else
10371     LIBOBJS="$LIBOBJS inet_ntoa.${ac_objext}"
10372 fi
10373
10374
10375 echo $ac_n "checking whether struct sockaddr has sa_len""... $ac_c" 1>&6
10376 echo "configure:10376: checking whether struct sockaddr has sa_len" >&5
10377 if eval "test \"`echo '$''{'inn_cv_struct_sockaddr_sa_len'+set}'`\" = set"; then
10378   echo $ac_n "(cached) $ac_c" 1>&6
10379 else
10380   cat > conftest.$ac_ext <<EOF
10381 #line 10381 "configure"
10382 #include "confdefs.h"
10383 #include <sys/types.h>
10384                         #include <sys/socket.h>
10385                         #include <netinet/in.h>
10386 int main() {
10387 struct sockaddr sa; int x = sa.sa_len;
10388 ; return 0; }
10389 EOF
10390 if { (eval echo configure:10390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10391   rm -rf conftest*
10392   inn_cv_struct_sockaddr_sa_len=yes
10393 else
10394   echo "configure: failed program was:" >&5
10395   cat conftest.$ac_ext >&5
10396   rm -rf conftest*
10397   inn_cv_struct_sockaddr_sa_len=no
10398 fi
10399 rm -f conftest*
10400 fi
10401
10402 echo "$ac_t""$inn_cv_struct_sockaddr_sa_len" 1>&6
10403 if test "$inn_cv_struct_sockaddr_sa_len" = yes ; then
10404     cat >> confdefs.h <<\EOF
10405 #define HAVE_SOCKADDR_LEN 1
10406 EOF
10407
10408 fi
10409
10410
10411 echo $ac_n "checking for SA_LEN(s) macro""... $ac_c" 1>&6
10412 echo "configure:10412: checking for SA_LEN(s) macro" >&5
10413 if eval "test \"`echo '$''{'inn_cv_sa_len_macro'+set}'`\" = set"; then
10414   echo $ac_n "(cached) $ac_c" 1>&6
10415 else
10416   cat > conftest.$ac_ext <<EOF
10417 #line 10417 "configure"
10418 #include "confdefs.h"
10419 #include <sys/types.h>
10420                         #include <sys/socket.h>
10421                         #include <netinet/in.h>
10422 int main() {
10423 struct sockaddr sa; int x = SA_LEN(&sa);
10424 ; return 0; }
10425 EOF
10426 if { (eval echo configure:10426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10427   rm -rf conftest*
10428   inn_cv_sa_len_macro=yes
10429 else
10430   echo "configure: failed program was:" >&5
10431   cat conftest.$ac_ext >&5
10432   rm -rf conftest*
10433   inn_cv_sa_len_macro=no
10434 fi
10435 rm -f conftest*
10436 fi
10437
10438 echo "$ac_t""$inn_cv_sa_len_macro" 1>&6
10439 if test "$inn_cv_sa_len_macro" = yes ; then
10440     cat >> confdefs.h <<\EOF
10441 #define HAVE_SA_LEN_MACRO 1
10442 EOF
10443
10444 fi
10445
10446
10447
10448
10449 echo $ac_n "checking for struct sockaddr_storage""... $ac_c" 1>&6
10450 echo "configure:10450: checking for struct sockaddr_storage" >&5
10451 if eval "test \"`echo '$''{'inn_cv_struct_sockaddr_storage'+set}'`\" = set"; then
10452   echo $ac_n "(cached) $ac_c" 1>&6
10453 else
10454   cat > conftest.$ac_ext <<EOF
10455 #line 10455 "configure"
10456 #include "confdefs.h"
10457 #include <sys/types.h>
10458                         #include <sys/socket.h>
10459                         #include <netinet/in.h>
10460 int main() {
10461 struct sockaddr_storage ss;
10462 ; return 0; }
10463 EOF
10464 if { (eval echo configure:10464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10465   rm -rf conftest*
10466   inn_cv_struct_sockaddr_storage=yes
10467 else
10468   echo "configure: failed program was:" >&5
10469   cat conftest.$ac_ext >&5
10470   rm -rf conftest*
10471   inn_cv_struct_sockaddr_storage=no
10472 fi
10473 rm -f conftest*
10474 fi
10475
10476 echo "$ac_t""$inn_cv_struct_sockaddr_storage" 1>&6
10477 if test "$inn_cv_struct_sockaddr_storage" = yes ; then
10478     cat >> confdefs.h <<\EOF
10479 #define HAVE_SOCKADDR_STORAGE 1
10480 EOF
10481
10482     echo $ac_n "checking for RFC 2553 style sockaddr_storage member names""... $ac_c" 1>&6
10483 echo "configure:10483: checking for RFC 2553 style sockaddr_storage member names" >&5
10484 if eval "test \"`echo '$''{'inn_cv_2553_ss_family'+set}'`\" = set"; then
10485   echo $ac_n "(cached) $ac_c" 1>&6
10486 else
10487   cat > conftest.$ac_ext <<EOF
10488 #line 10488 "configure"
10489 #include "confdefs.h"
10490 #include <sys/types.h>
10491                         #include <sys/socket.h>
10492                         #include <netinet/in.h>
10493 int main() {
10494 struct sockaddr_storage ss; int x=ss.ss_family;
10495 ; return 0; }
10496 EOF
10497 if { (eval echo configure:10497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10498   rm -rf conftest*
10499   inn_cv_2553_ss_family=no
10500 else
10501   echo "configure: failed program was:" >&5
10502   cat conftest.$ac_ext >&5
10503   rm -rf conftest*
10504   inn_cv_2553_ss_family=yes
10505 fi
10506 rm -f conftest*
10507 fi
10508
10509 echo "$ac_t""$inn_cv_2553_ss_family" 1>&6
10510 if test "$inn_cv_2553_ss_family" = yes ; then
10511     cat >> confdefs.h <<\EOF
10512 #define HAVE_2553_STYLE_SS_FAMILY 1
10513 EOF
10514
10515 fi
10516 fi
10517
10518
10519
10520
10521 if test "$inn_enable_ipv6_tests" = yes ; then
10522     echo $ac_n "checking whether IN6_ARE_ADDR_EQUAL macro is broken""... $ac_c" 1>&6
10523 echo "configure:10523: checking whether IN6_ARE_ADDR_EQUAL macro is broken" >&5
10524 if eval "test \"`echo '$''{'inn_cv_in6_are_addr_equal_broken'+set}'`\" = set"; then
10525   echo $ac_n "(cached) $ac_c" 1>&6
10526 else
10527   if test "$cross_compiling" = yes; then
10528   inn_cv_in6_are_addr_equal_broken=no
10529 else
10530   cat > conftest.$ac_ext <<EOF
10531 #line 10531 "configure"
10532 #include "confdefs.h"
10533 #include <sys/types.h>
10534 #include <sys/socket.h>
10535 #include <netinet/in.h>
10536 #include <arpa/inet.h>
10537
10538 int
10539 main ()
10540 {
10541   struct in6_addr a;
10542   struct in6_addr b;
10543
10544   inet_pton(AF_INET6,"fe80::1234:5678:abcd",&a);
10545   inet_pton(AF_INET6,"fe80::1234:5678:abcd",&b);
10546   return IN6_ARE_ADDR_EQUAL(&a,&b) ? 0 : 1;
10547 }
10548 EOF
10549 if { (eval echo configure:10549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10550 then
10551   inn_cv_in6_are_addr_equal_broken=no
10552 else
10553   echo "configure: failed program was:" >&5
10554   cat conftest.$ac_ext >&5
10555   rm -fr conftest*
10556   inn_cv_in6_are_addr_equal_broken=yes
10557 fi
10558 rm -fr conftest*
10559 fi
10560
10561 fi
10562
10563 echo "$ac_t""$inn_cv_in6_are_addr_equal_broken" 1>&6
10564 if test "$inn_cv_in6_are_addr_equal_broken" = yes ; then
10565     cat >> confdefs.h <<\EOF
10566 #define HAVE_BROKEN_IN6_ARE_ADDR_EQUAL 1
10567 EOF
10568
10569 fi
10570 fi
10571
10572
10573
10574
10575 echo $ac_n "checking for working snprintf""... $ac_c" 1>&6
10576 echo "configure:10576: checking for working snprintf" >&5
10577 if eval "test \"`echo '$''{'inn_cv_func_snprintf_works'+set}'`\" = set"; then
10578   echo $ac_n "(cached) $ac_c" 1>&6
10579 else
10580   if test "$cross_compiling" = yes; then
10581   inn_cv_func_snprintf_works=no
10582 else
10583   cat > conftest.$ac_ext <<EOF
10584 #line 10584 "configure"
10585 #include "confdefs.h"
10586 #include <stdio.h>
10587 #include <stdarg.h>
10588
10589 char buf[2];
10590
10591 int
10592 test (char *format, ...)
10593 {
10594   va_list args;
10595   int count;
10596
10597   va_start (args, format);
10598   count = vsnprintf (buf, sizeof buf, format, args);
10599   va_end (args);
10600   return count;
10601 }
10602
10603 int
10604 main ()
10605 {
10606   return ((test ("%s", "abcd") == 4 && buf[0] == 'a' && buf[1] == '\0'
10607            && snprintf(NULL, 0, "%s", "abcd") == 4) ? 0 : 1);
10608 }
10609 EOF
10610 if { (eval echo configure:10610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10611 then
10612   inn_cv_func_snprintf_works=yes
10613 else
10614   echo "configure: failed program was:" >&5
10615   cat conftest.$ac_ext >&5
10616   rm -fr conftest*
10617   inn_cv_func_snprintf_works=no
10618 fi
10619 rm -fr conftest*
10620 fi
10621
10622 fi
10623
10624 echo "$ac_t""$inn_cv_func_snprintf_works" 1>&6
10625 if test "$inn_cv_func_snprintf_works" = yes ; then
10626     cat >> confdefs.h <<\EOF
10627 #define HAVE_SNPRINTF 1
10628 EOF
10629
10630 else
10631     LIBOBJS="$LIBOBJS snprintf.${ac_objext}"
10632 fi
10633
10634 for ac_func in atexit getloadavg getrlimit getrusage getspnam setbuffer \
10635                sigaction setgroups setrlimit setsid socketpair statvfs \
10636                strncasecmp strtoul symlink sysconf
10637 do
10638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10639 echo "configure:10639: checking for $ac_func" >&5
10640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10641   echo $ac_n "(cached) $ac_c" 1>&6
10642 else
10643   cat > conftest.$ac_ext <<EOF
10644 #line 10644 "configure"
10645 #include "confdefs.h"
10646 /* System header to define __stub macros and hopefully few prototypes,
10647     which can conflict with char $ac_func(); below.  */
10648 #include <assert.h>
10649 /* Override any gcc2 internal prototype to avoid an error.  */
10650 /* We use char because int might match the return type of a gcc2
10651     builtin and then its argument prototype would still apply.  */
10652 char $ac_func();
10653
10654 int main() {
10655
10656 /* The GNU C library defines this for functions which it implements
10657     to always fail with ENOSYS.  Some functions are actually named
10658     something starting with __ and the normal name is an alias.  */
10659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10660 choke me
10661 #else
10662 $ac_func();
10663 #endif
10664
10665 ; return 0; }
10666 EOF
10667 if { (eval echo configure:10667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10668   rm -rf conftest*
10669   eval "ac_cv_func_$ac_func=yes"
10670 else
10671   echo "configure: failed program was:" >&5
10672   cat conftest.$ac_ext >&5
10673   rm -rf conftest*
10674   eval "ac_cv_func_$ac_func=no"
10675 fi
10676 rm -f conftest*
10677 fi
10678
10679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10680   echo "$ac_t""yes" 1>&6
10681     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10682   cat >> confdefs.h <<EOF
10683 #define $ac_tr_func 1
10684 EOF
10685  
10686 else
10687   echo "$ac_t""no" 1>&6
10688 fi
10689 done
10690
10691
10692 if test x"$ac_cv_func_getrlimit" = xno ; then
10693     for ac_func in getdtablesize ulimit
10694 do
10695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10696 echo "configure:10696: checking for $ac_func" >&5
10697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10698   echo $ac_n "(cached) $ac_c" 1>&6
10699 else
10700   cat > conftest.$ac_ext <<EOF
10701 #line 10701 "configure"
10702 #include "confdefs.h"
10703 /* System header to define __stub macros and hopefully few prototypes,
10704     which can conflict with char $ac_func(); below.  */
10705 #include <assert.h>
10706 /* Override any gcc2 internal prototype to avoid an error.  */
10707 /* We use char because int might match the return type of a gcc2
10708     builtin and then its argument prototype would still apply.  */
10709 char $ac_func();
10710
10711 int main() {
10712
10713 /* The GNU C library defines this for functions which it implements
10714     to always fail with ENOSYS.  Some functions are actually named
10715     something starting with __ and the normal name is an alias.  */
10716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10717 choke me
10718 #else
10719 $ac_func();
10720 #endif
10721
10722 ; return 0; }
10723 EOF
10724 if { (eval echo configure:10724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10725   rm -rf conftest*
10726   eval "ac_cv_func_$ac_func=yes"
10727 else
10728   echo "configure: failed program was:" >&5
10729   cat conftest.$ac_ext >&5
10730   rm -rf conftest*
10731   eval "ac_cv_func_$ac_func=no"
10732 fi
10733 rm -f conftest*
10734 fi
10735
10736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10737   echo "$ac_t""yes" 1>&6
10738     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10739   cat >> confdefs.h <<EOF
10740 #define $ac_tr_func 1
10741 EOF
10742  break
10743 else
10744   echo "$ac_t""no" 1>&6
10745 fi
10746 done
10747
10748 fi
10749
10750 if test x"$ac_cv_func_statvfs" = xno ; then
10751     for ac_func in statfs
10752 do
10753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10754 echo "configure:10754: checking for $ac_func" >&5
10755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10756   echo $ac_n "(cached) $ac_c" 1>&6
10757 else
10758   cat > conftest.$ac_ext <<EOF
10759 #line 10759 "configure"
10760 #include "confdefs.h"
10761 /* System header to define __stub macros and hopefully few prototypes,
10762     which can conflict with char $ac_func(); below.  */
10763 #include <assert.h>
10764 /* Override any gcc2 internal prototype to avoid an error.  */
10765 /* We use char because int might match the return type of a gcc2
10766     builtin and then its argument prototype would still apply.  */
10767 char $ac_func();
10768
10769 int main() {
10770
10771 /* The GNU C library defines this for functions which it implements
10772     to always fail with ENOSYS.  Some functions are actually named
10773     something starting with __ and the normal name is an alias.  */
10774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10775 choke me
10776 #else
10777 $ac_func();
10778 #endif
10779
10780 ; return 0; }
10781 EOF
10782 if { (eval echo configure:10782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10783   rm -rf conftest*
10784   eval "ac_cv_func_$ac_func=yes"
10785 else
10786   echo "configure: failed program was:" >&5
10787   cat conftest.$ac_ext >&5
10788   rm -rf conftest*
10789   eval "ac_cv_func_$ac_func=no"
10790 fi
10791 rm -f conftest*
10792 fi
10793
10794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10795   echo "$ac_t""yes" 1>&6
10796     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10797   cat >> confdefs.h <<EOF
10798 #define $ac_tr_func 1
10799 EOF
10800  
10801 else
10802   echo "$ac_t""no" 1>&6
10803 fi
10804 done
10805
10806     for ac_hdr in sys/vfs.h sys/mount.h
10807 do
10808 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10809 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10810 echo "configure:10810: checking for $ac_hdr" >&5
10811 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10812   echo $ac_n "(cached) $ac_c" 1>&6
10813 else
10814   cat > conftest.$ac_ext <<EOF
10815 #line 10815 "configure"
10816 #include "confdefs.h"
10817 #include <$ac_hdr>
10818 EOF
10819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10820 { (eval echo configure:10820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10822 if test -z "$ac_err"; then
10823   rm -rf conftest*
10824   eval "ac_cv_header_$ac_safe=yes"
10825 else
10826   echo "$ac_err" >&5
10827   echo "configure: failed program was:" >&5
10828   cat conftest.$ac_ext >&5
10829   rm -rf conftest*
10830   eval "ac_cv_header_$ac_safe=no"
10831 fi
10832 rm -f conftest*
10833 fi
10834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10835   echo "$ac_t""yes" 1>&6
10836     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10837   cat >> confdefs.h <<EOF
10838 #define $ac_tr_hdr 1
10839 EOF
10840  
10841 else
10842   echo "$ac_t""no" 1>&6
10843 fi
10844 done
10845
10846 fi
10847
10848 for ac_func in fseeko ftello getpagesize hstrerror inet_aton mkstemp \
10849                  pread pwrite seteuid strcasecmp strerror strlcat strlcpy \
10850                  strspn setenv
10851 do
10852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10853 echo "configure:10853: checking for $ac_func" >&5
10854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10855   echo $ac_n "(cached) $ac_c" 1>&6
10856 else
10857   cat > conftest.$ac_ext <<EOF
10858 #line 10858 "configure"
10859 #include "confdefs.h"
10860 /* System header to define __stub macros and hopefully few prototypes,
10861     which can conflict with char $ac_func(); below.  */
10862 #include <assert.h>
10863 /* Override any gcc2 internal prototype to avoid an error.  */
10864 /* We use char because int might match the return type of a gcc2
10865     builtin and then its argument prototype would still apply.  */
10866 char $ac_func();
10867
10868 int main() {
10869
10870 /* The GNU C library defines this for functions which it implements
10871     to always fail with ENOSYS.  Some functions are actually named
10872     something starting with __ and the normal name is an alias.  */
10873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10874 choke me
10875 #else
10876 $ac_func();
10877 #endif
10878
10879 ; return 0; }
10880 EOF
10881 if { (eval echo configure:10881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10882   rm -rf conftest*
10883   eval "ac_cv_func_$ac_func=yes"
10884 else
10885   echo "configure: failed program was:" >&5
10886   cat conftest.$ac_ext >&5
10887   rm -rf conftest*
10888   eval "ac_cv_func_$ac_func=no"
10889 fi
10890 rm -f conftest*
10891 fi
10892
10893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10894   echo "$ac_t""yes" 1>&6
10895     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10896   cat >> confdefs.h <<EOF
10897 #define $ac_tr_func 1
10898 EOF
10899  
10900 else
10901   echo "$ac_t""no" 1>&6
10902 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
10903 fi
10904 done
10905
10906
10907
10908
10909
10910
10911
10912 if test "$ac_cv_func_fseeko" = no || test "$ac_cv_func_ftello" = no ; then
10913    echo $ac_n "checking for off_t-compatible fpos_t""... $ac_c" 1>&6
10914 echo "configure:10914: checking for off_t-compatible fpos_t" >&5
10915 if eval "test \"`echo '$''{'inn_cv_type_fpos_t_large'+set}'`\" = set"; then
10916   echo $ac_n "(cached) $ac_c" 1>&6
10917 else
10918   if test "$cross_compiling" = yes; then
10919   inn_cv_type_fpos_t_large=no
10920 else
10921   cat > conftest.$ac_ext <<EOF
10922 #line 10922 "configure"
10923 #include "confdefs.h"
10924 #include <stdio.h>
10925 #include <sys/types.h>
10926
10927 int
10928 main ()
10929 {
10930   fpos_t fpos = 9223372036854775807ULL;
10931   off_t off;
10932   off = fpos;
10933   exit(off == (off_t) 9223372036854775807ULL ? 0 : 1);
10934 }
10935 EOF
10936 if { (eval echo configure:10936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10937 then
10938   inn_cv_type_fpos_t_large=yes
10939 else
10940   echo "configure: failed program was:" >&5
10941   cat conftest.$ac_ext >&5
10942   rm -fr conftest*
10943   inn_cv_type_fpos_t_large=no
10944 fi
10945 rm -fr conftest*
10946 fi
10947
10948 if test "$inn_cv_type_fpos_t_large" = yes ; then
10949     cat >> confdefs.h <<\EOF
10950 #define HAVE_LARGE_FPOS_T 1
10951 EOF
10952
10953 fi
10954 fi
10955
10956 echo "$ac_t""$inn_cv_type_fpos_t_large" 1>&6
10957 fi
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10975 echo "configure:10975: checking for working mmap" >&5
10976 if eval "test \"`echo '$''{'inn_cv_func_mmap'+set}'`\" = set"; then
10977   echo $ac_n "(cached) $ac_c" 1>&6
10978 else
10979   if test "$cross_compiling" = yes; then
10980   inn_cv_func_mmap=no
10981 else
10982   cat > conftest.$ac_ext <<EOF
10983 #line 10983 "configure"
10984 #include "confdefs.h"
10985 #include <stdio.h>
10986 #include <sys/types.h>
10987 #if STDC_HEADERS
10988 # include <stdlib.h>
10989 # include <stddef.h>
10990 #else
10991 # if HAVE_STDLIB_H
10992 #  include <stdlib.h>
10993 # endif
10994 # if !HAVE_STRCHR
10995 #  define strchr index
10996 #  define strrchr rindex
10997 # endif
10998 #endif
10999 #if HAVE_STRING_H
11000 # if !STDC_HEADERS && HAVE_MEMORY_H
11001 #  include <memory.h>
11002 # endif
11003 # include <string.h>
11004 #else
11005 # if HAVE_STRINGS_H
11006 #  include <strings.h>
11007 # endif
11008 #endif
11009 #if HAVE_UNISTD_H
11010 # include <unistd.h>
11011 #endif
11012 #include <fcntl.h>
11013 #include <sys/mman.h>
11014
11015 int
11016 main()
11017 {
11018   int *data, *data2;
11019   int i, fd;
11020
11021   /* First, make a file with some known garbage in it.  Use something
11022      larger than one page but still an odd page size. */
11023   data = malloc (20000);
11024   if (!data) return 1;
11025   for (i = 0; i < 20000 / sizeof (int); i++)
11026     data[i] = rand();
11027   umask (0);
11028   fd = creat ("conftestmmaps", 0600);
11029   if (fd < 0) return 1;
11030   if (write (fd, data, 20000) != 20000) return 1;
11031   close (fd);
11032
11033   /* Next, try to mmap the file and make sure we see the same garbage. */
11034   fd = open ("conftestmmaps", O_RDWR);
11035   if (fd < 0) return 1;
11036   data2 = mmap (0, 20000, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
11037   if (data2 == (int *) -1) return 1;
11038   for (i = 0; i < 20000 / sizeof (int); i++)
11039     if (data[i] != data2[i])
11040       return 1;
11041
11042   close (fd);
11043   unlink ("conftestmmaps");
11044   return 0;
11045 }
11046 EOF
11047 if { (eval echo configure:11047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11048 then
11049   inn_cv_func_mmap=yes
11050 else
11051   echo "configure: failed program was:" >&5
11052   cat conftest.$ac_ext >&5
11053   rm -fr conftest*
11054   inn_cv_func_mmap=no
11055 fi
11056 rm -fr conftest*
11057 fi
11058
11059 fi
11060
11061 echo "$ac_t""$inn_cv_func_mmap" 1>&6
11062 if test $inn_cv_func_mmap = yes ; then
11063     cat >> confdefs.h <<\EOF
11064 #define HAVE_MMAP 1
11065 EOF
11066
11067 fi
11068 if test x"$inn_cv_func_mmap" = xyes ; then
11069     for ac_func in madvise
11070 do
11071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11072 echo "configure:11072: checking for $ac_func" >&5
11073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11074   echo $ac_n "(cached) $ac_c" 1>&6
11075 else
11076   cat > conftest.$ac_ext <<EOF
11077 #line 11077 "configure"
11078 #include "confdefs.h"
11079 /* System header to define __stub macros and hopefully few prototypes,
11080     which can conflict with char $ac_func(); below.  */
11081 #include <assert.h>
11082 /* Override any gcc2 internal prototype to avoid an error.  */
11083 /* We use char because int might match the return type of a gcc2
11084     builtin and then its argument prototype would still apply.  */
11085 char $ac_func();
11086
11087 int main() {
11088
11089 /* The GNU C library defines this for functions which it implements
11090     to always fail with ENOSYS.  Some functions are actually named
11091     something starting with __ and the normal name is an alias.  */
11092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11093 choke me
11094 #else
11095 $ac_func();
11096 #endif
11097
11098 ; return 0; }
11099 EOF
11100 if { (eval echo configure:11100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11101   rm -rf conftest*
11102   eval "ac_cv_func_$ac_func=yes"
11103 else
11104   echo "configure: failed program was:" >&5
11105   cat conftest.$ac_ext >&5
11106   rm -rf conftest*
11107   eval "ac_cv_func_$ac_func=no"
11108 fi
11109 rm -f conftest*
11110 fi
11111
11112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11113   echo "$ac_t""yes" 1>&6
11114     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11115   cat >> confdefs.h <<EOF
11116 #define $ac_tr_func 1
11117 EOF
11118  
11119 else
11120   echo "$ac_t""no" 1>&6
11121 fi
11122 done
11123
11124     echo $ac_n "checking whether mmap sees writes""... $ac_c" 1>&6
11125 echo "configure:11125: checking whether mmap sees writes" >&5
11126 if eval "test \"`echo '$''{'inn_cv_func_mmap_sees_writes'+set}'`\" = set"; then
11127   echo $ac_n "(cached) $ac_c" 1>&6
11128 else
11129   if test "$cross_compiling" = yes; then
11130   inn_cv_func_mmap_sees_writes=no
11131 else
11132   cat > conftest.$ac_ext <<EOF
11133 #line 11133 "configure"
11134 #include "confdefs.h"
11135 #include <stdlib.h>
11136 #include <sys/types.h>
11137 #include <sys/stat.h>
11138 #include <fcntl.h>
11139 #if HAVE_UNISTD_H
11140 # include <unistd.h>
11141 #endif
11142 #include <sys/mman.h>
11143
11144 /* Fractional page is probably worst case. */
11145 static char zbuff[1024];
11146 static char fname[] = "conftestw";
11147
11148 int
11149 main ()
11150 {
11151   char *map;
11152   int i, fd;
11153
11154   fd = open (fname, O_RDWR | O_CREAT, 0660);
11155   if (fd < 0) return 1;
11156   unlink (fname);
11157   write (fd, zbuff, sizeof (zbuff));
11158   lseek (fd, 0, SEEK_SET);
11159   map = mmap (0, sizeof (zbuff), PROT_READ, MAP_SHARED, fd, 0);
11160   if (map == (char *) -1) return 2;
11161   for (i = 0; fname[i]; i++)
11162     {
11163       if (write (fd, &fname[i], 1) != 1) return 3;
11164       if (map[i] != fname[i]) return 4;
11165     }
11166   return 0;
11167 }
11168 EOF
11169 if { (eval echo configure:11169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11170 then
11171   inn_cv_func_mmap_sees_writes=yes
11172 else
11173   echo "configure: failed program was:" >&5
11174   cat conftest.$ac_ext >&5
11175   rm -fr conftest*
11176   inn_cv_func_mmap_sees_writes=no
11177 fi
11178 rm -fr conftest*
11179 fi
11180
11181 fi
11182
11183 echo "$ac_t""$inn_cv_func_mmap_sees_writes" 1>&6
11184 if test $inn_cv_func_mmap_sees_writes = no ; then
11185     cat >> confdefs.h <<\EOF
11186 #define MMAP_MISSES_WRITES 1
11187 EOF
11188
11189 fi
11190     echo $ac_n "checking whether msync is needed""... $ac_c" 1>&6
11191 echo "configure:11191: checking whether msync is needed" >&5
11192 if eval "test \"`echo '$''{'inn_cv_func_mmap_need_msync'+set}'`\" = set"; then
11193   echo $ac_n "(cached) $ac_c" 1>&6
11194 else
11195   if test "$cross_compiling" = yes; then
11196   inn_cv_func_mmap_need_msync=yes
11197 else
11198   cat > conftest.$ac_ext <<EOF
11199 #line 11199 "configure"
11200 #include "confdefs.h"
11201 #include <stdio.h>
11202 #include <sys/types.h>
11203 #if STDC_HEADERS
11204 # include <stdlib.h>
11205 # include <stddef.h>
11206 #else
11207 # if HAVE_STDLIB_H
11208 #  include <stdlib.h>
11209 # endif
11210 # if !HAVE_STRCHR
11211 #  define strchr index
11212 #  define strrchr rindex
11213 # endif
11214 #endif
11215 #if HAVE_STRING_H
11216 # if !STDC_HEADERS && HAVE_MEMORY_H
11217 #  include <memory.h>
11218 # endif
11219 # include <string.h>
11220 #else
11221 # if HAVE_STRINGS_H
11222 #  include <strings.h>
11223 # endif
11224 #endif
11225 #if HAVE_UNISTD_H
11226 # include <unistd.h>
11227 #endif
11228 #include <sys/types.h>
11229 #include <fcntl.h>
11230 #include <sys/mman.h>
11231
11232 int
11233 main()
11234 {
11235   int *data, *data2;
11236   int i, fd;
11237
11238   /* First, make a file with some known garbage in it.  Use something
11239      larger than one page but still an odd page size. */
11240   data = malloc (20000);
11241   if (!data) return 1;
11242   for (i = 0; i < 20000 / sizeof (int); i++)
11243     data[i] = rand();
11244   umask (0);
11245   fd = creat ("conftestmmaps", 0600);
11246   if (fd < 0) return 1;
11247   if (write (fd, data, 20000) != 20000) return 1;
11248   close (fd);
11249
11250   /* Next, try to mmap the file and make sure we see the same garbage. */
11251   fd = open ("conftestmmaps", O_RDWR);
11252   if (fd < 0) return 1;
11253   data2 = mmap (0, 20000, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
11254   if (data2 == (int *) -1) return 1;
11255
11256   /* Finally, see if changes made to the mmaped region propagate back to
11257      the file as seen by read (meaning that msync isn't needed). */
11258   for (i = 0; i < 20000 / sizeof (int); i++)
11259     data2[i]++;
11260   if (read (fd, data, 20000) != 20000) return 1;
11261   for (i = 0; i < 20000 / sizeof (int); i++)
11262     if (data[i] != data2[i])
11263       return 1;
11264
11265   close (fd);
11266   unlink ("conftestmmapm");
11267   return 0;
11268 }
11269 EOF
11270 if { (eval echo configure:11270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11271 then
11272   inn_cv_func_mmap_need_msync=no
11273 else
11274   echo "configure: failed program was:" >&5
11275   cat conftest.$ac_ext >&5
11276   rm -fr conftest*
11277   inn_cv_func_mmap_need_msync=yes
11278 fi
11279 rm -fr conftest*
11280 fi
11281
11282 fi
11283
11284 echo "$ac_t""$inn_cv_func_mmap_need_msync" 1>&6
11285 if test $inn_cv_func_mmap_need_msync = yes ; then
11286     cat >> confdefs.h <<\EOF
11287 #define MMAP_NEEDS_MSYNC 1
11288 EOF
11289
11290 fi
11291     echo $ac_n "checking how many arguments msync takes""... $ac_c" 1>&6
11292 echo "configure:11292: checking how many arguments msync takes" >&5
11293 if eval "test \"`echo '$''{'inn_cv_func_msync_args'+set}'`\" = set"; then
11294   echo $ac_n "(cached) $ac_c" 1>&6
11295 else
11296   cat > conftest.$ac_ext <<EOF
11297 #line 11297 "configure"
11298 #include "confdefs.h"
11299 #include <sys/types.h>
11300 #include <sys/mman.h>
11301 int main() {
11302 char *p; int psize; msync (p, psize, MS_ASYNC);
11303 ; return 0; }
11304 EOF
11305 if { (eval echo configure:11305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11306   rm -rf conftest*
11307   inn_cv_func_msync_args=3
11308 else
11309   echo "configure: failed program was:" >&5
11310   cat conftest.$ac_ext >&5
11311   rm -rf conftest*
11312   inn_cv_func_msync_args=2
11313 fi
11314 rm -f conftest*
11315 fi
11316
11317 echo "$ac_t""$inn_cv_func_msync_args" 1>&6
11318 if test $inn_cv_func_msync_args = 3 ; then
11319     cat >> confdefs.h <<\EOF
11320 #define HAVE_MSYNC_3_ARG 1
11321 EOF
11322
11323 fi
11324 fi
11325
11326
11327 echo $ac_n "checking for Unix domain sockets""... $ac_c" 1>&6
11328 echo "configure:11328: checking for Unix domain sockets" >&5
11329 if eval "test \"`echo '$''{'inn_cv_sys_unix_sockets'+set}'`\" = set"; then
11330   echo $ac_n "(cached) $ac_c" 1>&6
11331 else
11332   cat > conftest.$ac_ext <<EOF
11333 #line 11333 "configure"
11334 #include "confdefs.h"
11335 #include <sys/socket.h>
11336 #ifdef AF_UNIX
11337 yes
11338 #endif
11339 EOF
11340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11341   egrep "yes" >/dev/null 2>&1; then
11342   rm -rf conftest*
11343   inn_cv_sys_unix_sockets=yes
11344 else
11345   rm -rf conftest*
11346   inn_cv_sys_unix_sockets=no
11347 fi
11348 rm -f conftest*
11349
11350 fi
11351
11352 echo "$ac_t""$inn_cv_sys_unix_sockets" 1>&6
11353 if test $inn_cv_sys_unix_sockets = yes ; then
11354     cat >> confdefs.h <<\EOF
11355 #define HAVE_UNIX_DOMAIN_SOCKETS 1
11356 EOF
11357
11358 fi
11359
11360
11361 echo $ac_n "checking log facility for news""... $ac_c" 1>&6
11362 echo "configure:11362: checking log facility for news" >&5
11363 if eval "test \"`echo '$''{'inn_cv_log_facility'+set}'`\" = set"; then
11364   echo $ac_n "(cached) $ac_c" 1>&6
11365 else
11366   cat > conftest.$ac_ext <<EOF
11367 #line 11367 "configure"
11368 #include "confdefs.h"
11369 #include <syslog.h>
11370 #ifdef LOG_NEWS
11371 yes
11372 #endif
11373 EOF
11374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11375   egrep "yes" >/dev/null 2>&1; then
11376   rm -rf conftest*
11377   inn_cv_log_facility=LOG_NEWS
11378 else
11379   rm -rf conftest*
11380   inn_cv_log_facility=LOG_LOCAL1
11381 fi
11382 rm -f conftest*
11383
11384 fi
11385
11386 if test x"$SYSLOG_FACILITY" = xnone ; then
11387     SYSLOG_FACILITY=$inn_cv_log_facility
11388 fi
11389 echo "$ac_t""$SYSLOG_FACILITY" 1>&6
11390 cat >> confdefs.h <<EOF
11391 #define LOG_INN_SERVER $SYSLOG_FACILITY
11392 EOF
11393
11394 cat >> confdefs.h <<EOF
11395 #define LOG_INN_PROG $SYSLOG_FACILITY
11396 EOF
11397
11398
11399
11400 LIBS=`echo "$LIBS" | sed 's/^  *//' | sed 's/   */ /g' | sed 's/  *$//'`
11401
11402
11403 trap '' 1 2 15
11404 cat > confcache <<\EOF
11405 # This file is a shell script that caches the results of configure
11406 # tests run on this system so they can be shared between configure
11407 # scripts and configure runs.  It is not useful on other systems.
11408 # If it contains results you don't want to keep, you may remove or edit it.
11409 #
11410 # By default, configure uses ./config.cache as the cache file,
11411 # creating it if it does not exist already.  You can give configure
11412 # the --cache-file=FILE option to use a different cache file; that is
11413 # what configure does when it calls configure scripts in
11414 # subdirectories, so they share the cache.
11415 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11416 # config.status only pays attention to the cache file if you give it the
11417 # --recheck option to rerun configure.
11418 #
11419 EOF
11420 # The following way of writing the cache mishandles newlines in values,
11421 # but we know of no workaround that is simple, portable, and efficient.
11422 # So, don't put newlines in cache variables' values.
11423 # Ultrix sh set writes to stderr and can't be redirected directly,
11424 # and sets the high bit in the cache file unless we assign to the vars.
11425 (set) 2>&1 |
11426   case `(ac_space=' '; set | grep ac_space) 2>&1` in
11427   *ac_space=\ *)
11428     # `set' does not quote correctly, so add quotes (double-quote substitution
11429     # turns \\\\ into \\, and sed turns \\ into \).
11430     sed -n \
11431       -e "s/'/'\\\\''/g" \
11432       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11433     ;;
11434   *)
11435     # `set' quotes correctly as required by POSIX, so do not add quotes.
11436     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11437     ;;
11438   esac >> confcache
11439 if cmp -s $cache_file confcache; then
11440   :
11441 else
11442   if test -w $cache_file; then
11443     echo "updating cache $cache_file"
11444     cat confcache > $cache_file
11445   else
11446     echo "not updating unwritable cache $cache_file"
11447   fi
11448 fi
11449 rm -f confcache
11450
11451 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11452
11453 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11454 # Let make expand exec_prefix.
11455 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11456
11457 # Any assignment to VPATH causes Sun make to only execute
11458 # the first set of double-colon rules, so remove it if not needed.
11459 # If there is a colon in the path, we need to keep it.
11460 if test "x$srcdir" = x.; then
11461   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
11462 fi
11463
11464 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11465
11466 DEFS=-DHAVE_CONFIG_H
11467
11468 # Without the "./", some shells look in PATH for config.status.
11469 : ${CONFIG_STATUS=./config.status}
11470
11471 echo creating $CONFIG_STATUS
11472 rm -f $CONFIG_STATUS
11473 cat > $CONFIG_STATUS <<EOF
11474 #! /bin/sh
11475 # Generated automatically by configure.
11476 # Run this file to recreate the current configuration.
11477 # This directory was configured as follows,
11478 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11479 #
11480 # $0 $ac_configure_args
11481 #
11482 # Compiler output produced by configure, useful for debugging
11483 # configure, is in ./config.log if it exists.
11484
11485 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11486 for ac_option
11487 do
11488   case "\$ac_option" in
11489   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11490     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11491     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11492   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11493     echo "$CONFIG_STATUS generated by autoconf version 2.13"
11494     exit 0 ;;
11495   -help | --help | --hel | --he | --h)
11496     echo "\$ac_cs_usage"; exit 0 ;;
11497   *) echo "\$ac_cs_usage"; exit 1 ;;
11498   esac
11499 done
11500
11501 ac_given_srcdir=$srcdir
11502
11503 trap 'rm -fr `echo "Makefile.global
11504         include/paths.h
11505         samples/inn.conf
11506         samples/innreport.conf
11507         samples/newsfeeds
11508         samples/sasl.conf
11509         scripts/inncheck
11510         scripts/innshellvars
11511         scripts/innshellvars.pl
11512         scripts/innshellvars.tcl
11513         scripts/news.daily
11514         support/fixscript
11515          include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11516 EOF
11517 cat >> $CONFIG_STATUS <<EOF
11518
11519 # Protect against being on the right side of a sed subst in config.status.
11520 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11521  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11522 $ac_vpsub
11523 $extrasub
11524 s%@SHELL@%$SHELL%g
11525 s%@CFLAGS@%$CFLAGS%g
11526 s%@CPPFLAGS@%$CPPFLAGS%g
11527 s%@CXXFLAGS@%$CXXFLAGS%g
11528 s%@FFLAGS@%$FFLAGS%g
11529 s%@DEFS@%$DEFS%g
11530 s%@LDFLAGS@%$LDFLAGS%g
11531 s%@LIBS@%$LIBS%g
11532 s%@exec_prefix@%$exec_prefix%g
11533 s%@prefix@%$prefix%g
11534 s%@program_transform_name@%$program_transform_name%g
11535 s%@bindir@%$bindir%g
11536 s%@sbindir@%$sbindir%g
11537 s%@libexecdir@%$libexecdir%g
11538 s%@datadir@%$datadir%g
11539 s%@sysconfdir@%$sysconfdir%g
11540 s%@sharedstatedir@%$sharedstatedir%g
11541 s%@localstatedir@%$localstatedir%g
11542 s%@libdir@%$libdir%g
11543 s%@includedir@%$includedir%g
11544 s%@oldincludedir@%$oldincludedir%g
11545 s%@infodir@%$infodir%g
11546 s%@mandir@%$mandir%g
11547 s%@builddir@%$builddir%g
11548 s%@CC@%$CC%g
11549 s%@CPP@%$CPP%g
11550 s%@OBJEXT@%$OBJEXT%g
11551 s%@host@%$host%g
11552 s%@host_alias@%$host_alias%g
11553 s%@host_cpu@%$host_cpu%g
11554 s%@host_vendor@%$host_vendor%g
11555 s%@host_os@%$host_os%g
11556 s%@build@%$build%g
11557 s%@build_alias@%$build_alias%g
11558 s%@build_cpu@%$build_cpu%g
11559 s%@build_vendor@%$build_vendor%g
11560 s%@build_os@%$build_os%g
11561 s%@LN_S@%$LN_S%g
11562 s%@EXEEXT@%$EXEEXT%g
11563 s%@ECHO@%$ECHO%g
11564 s%@RANLIB@%$RANLIB%g
11565 s%@STRIP@%$STRIP%g
11566 s%@LIBTOOL@%$LIBTOOL%g
11567 s%@EXTLIB@%$EXTLIB%g
11568 s%@EXTOBJ@%$EXTOBJ%g
11569 s%@LIBTOOLCC@%$LIBTOOLCC%g
11570 s%@LIBTOOLLD@%$LIBTOOLLD%g
11571 s%@CCOUTPUT@%$CCOUTPUT%g
11572 s%@CONTROLDIR@%$CONTROLDIR%g
11573 s%@DBDIR@%$DBDIR%g
11574 s%@DOCDIR@%$DOCDIR%g
11575 s%@ETCDIR@%$ETCDIR%g
11576 s%@FILTERDIR@%$FILTERDIR%g
11577 s%@LIBDIR@%$LIBDIR%g
11578 s%@LOGDIR@%$LOGDIR%g
11579 s%@RUNDIR@%$RUNDIR%g
11580 s%@SPOOLDIR@%$SPOOLDIR%g
11581 s%@tmpdir@%$tmpdir%g
11582 s%@NEWSUSER@%$NEWSUSER%g
11583 s%@NEWSGRP@%$NEWSGRP%g
11584 s%@NEWSMASTER@%$NEWSMASTER%g
11585 s%@NEWSUMASK@%$NEWSUMASK%g
11586 s%@FILEMODE@%$FILEMODE%g
11587 s%@DIRMODE@%$DIRMODE%g
11588 s%@RUNDIRMODE@%$RUNDIRMODE%g
11589 s%@INEWSMODE@%$INEWSMODE%g
11590 s%@RNEWSGRP@%$RNEWSGRP%g
11591 s%@RNEWSMODE@%$RNEWSMODE%g
11592 s%@LOG_COMPRESS@%$LOG_COMPRESS%g
11593 s%@LOG_COMPRESSEXT@%$LOG_COMPRESSEXT%g
11594 s%@DO_DBZ_TAGGED_HASH@%$DO_DBZ_TAGGED_HASH%g
11595 s%@HOSTNAME@%$HOSTNAME%g
11596 s%@LEX@%$LEX%g
11597 s%@LEXLIB@%$LEXLIB%g
11598 s%@SET_MAKE@%$SET_MAKE%g
11599 s%@YACC@%$YACC%g
11600 s%@CTAGS@%$CTAGS%g
11601 s%@_PATH_AWK@%$_PATH_AWK%g
11602 s%@_PATH_EGREP@%$_PATH_EGREP%g
11603 s%@_PATH_PERL@%$_PATH_PERL%g
11604 s%@_PATH_SH@%$_PATH_SH%g
11605 s%@_PATH_SED@%$_PATH_SED%g
11606 s%@_PATH_SORT@%$_PATH_SORT%g
11607 s%@_PATH_UUX@%$_PATH_UUX%g
11608 s%@PATH_GPGV@%$PATH_GPGV%g
11609 s%@_PATH_PGP@%$_PATH_PGP%g
11610 s%@pgpverify@%$pgpverify%g
11611 s%@GETFTP@%$GETFTP%g
11612 s%@COMPRESS@%$COMPRESS%g
11613 s%@GZIP@%$GZIP%g
11614 s%@UNCOMPRESS@%$UNCOMPRESS%g
11615 s%@SENDMAIL@%$SENDMAIL%g
11616 s%@HAVE_UUSTAT@%$HAVE_UUSTAT%g
11617 s%@_PATH_PYTHON@%$_PATH_PYTHON%g
11618 s%@CRYPT_LIB@%$CRYPT_LIB%g
11619 s%@SHADOW_LIB@%$SHADOW_LIB%g
11620 s%@PAM_LIB@%$PAM_LIB%g
11621 s%@REGEX_LIB@%$REGEX_LIB%g
11622 s%@BERKELEY_DB_LDFLAGS@%$BERKELEY_DB_LDFLAGS%g
11623 s%@BERKELEY_DB_CFLAGS@%$BERKELEY_DB_CFLAGS%g
11624 s%@BERKELEY_DB_LIB@%$BERKELEY_DB_LIB%g
11625 s%@DBM_LIB@%$DBM_LIB%g
11626 s%@DBM_INC@%$DBM_INC%g
11627 s%@SSL_BIN@%$SSL_BIN%g
11628 s%@SSL_INC@%$SSL_INC%g
11629 s%@SSL_LIB@%$SSL_LIB%g
11630 s%@SASL_INC@%$SASL_INC%g
11631 s%@SASL_LIB@%$SASL_LIB%g
11632 s%@KRB5_AUTH@%$KRB5_AUTH%g
11633 s%@KRB5_INC@%$KRB5_INC%g
11634 s%@KRB5_LIB@%$KRB5_LIB%g
11635 s%@PERL_INC@%$PERL_INC%g
11636 s%@PERL_LIB@%$PERL_LIB%g
11637 s%@PYTHON_LIB@%$PYTHON_LIB%g
11638 s%@PYTHON_INC@%$PYTHON_INC%g
11639 s%@GETCONF@%$GETCONF%g
11640 s%@LFS_CFLAGS@%$LFS_CFLAGS%g
11641 s%@LFS_LDFLAGS@%$LFS_LDFLAGS%g
11642 s%@LFS_LIBS@%$LFS_LIBS%g
11643 s%@LIBOBJS@%$LIBOBJS%g
11644 s%@SYSLOG_FACILITY@%$SYSLOG_FACILITY%g
11645
11646 CEOF
11647 EOF
11648
11649 cat >> $CONFIG_STATUS <<\EOF
11650
11651 # Split the substitutions into bite-sized pieces for seds with
11652 # small command number limits, like on Digital OSF/1 and HP-UX.
11653 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11654 ac_file=1 # Number of current file.
11655 ac_beg=1 # First line for current file.
11656 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11657 ac_more_lines=:
11658 ac_sed_cmds=""
11659 while $ac_more_lines; do
11660   if test $ac_beg -gt 1; then
11661     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11662   else
11663     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11664   fi
11665   if test ! -s conftest.s$ac_file; then
11666     ac_more_lines=false
11667     rm -f conftest.s$ac_file
11668   else
11669     if test -z "$ac_sed_cmds"; then
11670       ac_sed_cmds="sed -f conftest.s$ac_file"
11671     else
11672       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11673     fi
11674     ac_file=`expr $ac_file + 1`
11675     ac_beg=$ac_end
11676     ac_end=`expr $ac_end + $ac_max_sed_cmds`
11677   fi
11678 done
11679 if test -z "$ac_sed_cmds"; then
11680   ac_sed_cmds=cat
11681 fi
11682 EOF
11683
11684 cat >> $CONFIG_STATUS <<EOF
11685
11686 CONFIG_FILES=\${CONFIG_FILES-"Makefile.global
11687         include/paths.h
11688         samples/inn.conf
11689         samples/innreport.conf
11690         samples/newsfeeds
11691         samples/sasl.conf
11692         scripts/inncheck
11693         scripts/innshellvars
11694         scripts/innshellvars.pl
11695         scripts/innshellvars.tcl
11696         scripts/news.daily
11697         support/fixscript
11698         "}
11699 EOF
11700 cat >> $CONFIG_STATUS <<\EOF
11701 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11702   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11703   case "$ac_file" in
11704   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11705        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11706   *) ac_file_in="${ac_file}.in" ;;
11707   esac
11708
11709   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11710
11711   # Remove last slash and all that follows it.  Not all systems have dirname.
11712   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11713   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11714     # The file is in a subdirectory.
11715     test ! -d "$ac_dir" && mkdir "$ac_dir"
11716     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11717     # A "../" for each directory in $ac_dir_suffix.
11718     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11719   else
11720     ac_dir_suffix= ac_dots=
11721   fi
11722
11723   case "$ac_given_srcdir" in
11724   .)  srcdir=.
11725       if test -z "$ac_dots"; then top_srcdir=.
11726       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11727   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11728   *) # Relative path.
11729     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11730     top_srcdir="$ac_dots$ac_given_srcdir" ;;
11731   esac
11732
11733
11734   echo creating "$ac_file"
11735   rm -f "$ac_file"
11736   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11737   case "$ac_file" in
11738   *Makefile*) ac_comsub="1i\\
11739 # $configure_input" ;;
11740   *) ac_comsub= ;;
11741   esac
11742
11743   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11744   sed -e "$ac_comsub
11745 s%@configure_input@%$configure_input%g
11746 s%@srcdir@%$srcdir%g
11747 s%@top_srcdir@%$top_srcdir%g
11748 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11749 fi; done
11750 rm -f conftest.s*
11751
11752 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11753 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11754 #
11755 # ac_d sets the value in "#define NAME VALUE" lines.
11756 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
11757 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
11758 ac_dC='\3'
11759 ac_dD='%g'
11760 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11761 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11762 ac_uB='\([      ]\)%\1#\2define\3'
11763 ac_uC=' '
11764 ac_uD='\4%g'
11765 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11766 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11767 ac_eB='$%\1#\2define\3'
11768 ac_eC=' '
11769 ac_eD='%g'
11770
11771 if test "${CONFIG_HEADERS+set}" != set; then
11772 EOF
11773 cat >> $CONFIG_STATUS <<EOF
11774   CONFIG_HEADERS="include/config.h"
11775 EOF
11776 cat >> $CONFIG_STATUS <<\EOF
11777 fi
11778 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11779   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11780   case "$ac_file" in
11781   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11782        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11783   *) ac_file_in="${ac_file}.in" ;;
11784   esac
11785
11786   echo creating $ac_file
11787
11788   rm -f conftest.frag conftest.in conftest.out
11789   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11790   cat $ac_file_inputs > conftest.in
11791
11792 EOF
11793
11794 # Transform confdefs.h into a sed script conftest.vals that substitutes
11795 # the proper values into config.h.in to produce config.h.  And first:
11796 # Protect against being on the right side of a sed subst in config.status.
11797 # Protect against being in an unquoted here document in config.status.
11798 rm -f conftest.vals
11799 cat > conftest.hdr <<\EOF
11800 s/[\\&%]/\\&/g
11801 s%[\\$`]%\\&%g
11802 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11803 s%ac_d%ac_u%gp
11804 s%ac_u%ac_e%gp
11805 EOF
11806 sed -n -f conftest.hdr confdefs.h > conftest.vals
11807 rm -f conftest.hdr
11808
11809 # This sed command replaces #undef with comments.  This is necessary, for
11810 # example, in the case of _POSIX_SOURCE, which is predefined and required
11811 # on some systems where configure will not decide to define it.
11812 cat >> conftest.vals <<\EOF
11813 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11814 EOF
11815
11816 # Break up conftest.vals because some shells have a limit on
11817 # the size of here documents, and old seds have small limits too.
11818
11819 rm -f conftest.tail
11820 while :
11821 do
11822   ac_lines=`grep -c . conftest.vals`
11823   # grep -c gives empty output for an empty file on some AIX systems.
11824   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11825   # Write a limited-size here document to conftest.frag.
11826   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11827   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11828   echo 'CEOF
11829   sed -f conftest.frag conftest.in > conftest.out
11830   rm -f conftest.in
11831   mv conftest.out conftest.in
11832 ' >> $CONFIG_STATUS
11833   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11834   rm -f conftest.vals
11835   mv conftest.tail conftest.vals
11836 done
11837 rm -f conftest.vals
11838
11839 cat >> $CONFIG_STATUS <<\EOF
11840   rm -f conftest.frag conftest.h
11841   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
11842   cat conftest.in >> conftest.h
11843   rm -f conftest.in
11844   if cmp -s $ac_file conftest.h 2>/dev/null; then
11845     echo "$ac_file is unchanged"
11846     rm -f conftest.h
11847   else
11848     # Remove last slash and all that follows it.  Not all systems have dirname.
11849       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11850       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11851       # The file is in a subdirectory.
11852       test ! -d "$ac_dir" && mkdir "$ac_dir"
11853     fi
11854     rm -f $ac_file
11855     mv conftest.h $ac_file
11856   fi
11857 fi; done
11858
11859 EOF
11860 cat >> $CONFIG_STATUS <<EOF
11861
11862 EOF
11863 cat >> $CONFIG_STATUS <<\EOF
11864 chmod +x support/fixscript
11865
11866 exit 0
11867 EOF
11868 chmod +x $CONFIG_STATUS
11869 rm -fr confdefs* $ac_clean_files
11870 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
11871
11872
11873 cat <<EOM
11874
11875 Please check the following files before running make, to ensure that 
11876 everything was set correctly.
11877
11878         Makefile.global
11879         include/config.h
11880         include/paths.h
11881         innfeed/innfeed.h
11882
11883 EOM
11884
11885 if $_PATH_PERL -e "exit((stat('$tmpdir'))[2] & 2)" > /dev/null ; then
11886     :
11887 else
11888     cat <<EOM
11889
11890 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
11891
11892   The temporary directory you have configured is world-writeable.  It is
11893   currently set to $tmpdir.
11894
11895   This directory is used by INN for temporary files and should only be
11896   writeable by the news user.  INN does not go to great lengths to prevent
11897   symlink attacks and the like because it assumes this directory is not
11898   world-writeable.  By configuring INN in this fashion, you may be
11899   introducing a locally exploitable security hole.
11900
11901   It is STRONGLY recommended that you use a temporary directory reserved for
11902   INN's exclusive use, one which is not world-writeable.  You can do this
11903   either with --with-tmp-dir or by setting --prefix to something other than
11904   /usr or /.
11905
11906 EOM
11907 fi