Link all of libradius.a, not just referenced symbols.
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.156 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52d.
5 #
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10
11 # Find the correct PATH separator.  Usually this is `:', but
12 # DJGPP uses `;' like DOS.
13 if test "X${PATH_SEPARATOR+set}" != Xset; then
14   UNAME=${UNAME-`uname 2>/dev/null`}
15   case X$UNAME in
16     *-DOS) lt_cv_sys_path_separator=';' ;;
17     *)     lt_cv_sys_path_separator=':' ;;
18   esac
19   PATH_SEPARATOR=$lt_cv_sys_path_separator
20 fi
21
22 # Check that we are running under the correct shell.
23 SHELL=${CONFIG_SHELL-/bin/sh}
24
25 case X$ECHO in
26 X*--fallback-echo)
27   # Remove one level of quotation (which was required for Make).
28   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
29   ;;
30 esac
31
32 echo=${ECHO-echo}
33 if test "X$1" = X--no-reexec; then
34   # Discard the --no-reexec flag, and continue.
35   shift
36 elif test "X$1" = X--fallback-echo; then
37   # Avoid inline document here, it may be left over
38   :
39 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
40   # Yippee, $echo works!
41   :
42 else
43   # Restart under the correct shell.
44   exec $SHELL "$0" --no-reexec ${1+"$@"}
45 fi
46
47 if test "X$1" = X--fallback-echo; then
48   # used as fallback echo
49   shift
50   cat <<EOF
51
52 EOF
53   exit 0
54 fi
55
56 # The HP-UX ksh and POSIX shell print the target directory to stdout
57 # if CDPATH is set.
58 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
59
60 if test -z "$ECHO"; then
61 if test "X${echo_test_string+set}" != Xset; then
62 # find a string as large as possible, as long as the shell can cope with it
63   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
64     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
65     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
66        echo_test_string="`eval $cmd`" &&
67        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
68     then
69       break
70     fi
71   done
72 fi
73
74 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
75    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
76    test "X$echo_testing_string" = "X$echo_test_string"; then
77   :
78 else
79   # The Solaris, AIX, and Digital Unix default echo programs unquote
80   # backslashes.  This makes it impossible to quote backslashes using
81   #   echo "$something" | sed 's/\\/\\\\/g'
82   #
83   # So, first we look for a working echo in the user's PATH.
84
85   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
86   for dir in $PATH /usr/ucb; do
87     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
88        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
89        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
90        test "X$echo_testing_string" = "X$echo_test_string"; then
91       echo="$dir/echo"
92       break
93     fi
94   done
95   IFS="$save_ifs"
96
97   if test "X$echo" = Xecho; then
98     # We didn't find a better echo, so look for alternatives.
99     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
100        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
101        test "X$echo_testing_string" = "X$echo_test_string"; then
102       # This shell has a builtin print -r that does the trick.
103       echo='print -r'
104     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
105          test "X$CONFIG_SHELL" != X/bin/ksh; then
106       # If we have ksh, try running configure again with it.
107       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
108       export ORIGINAL_CONFIG_SHELL
109       CONFIG_SHELL=/bin/ksh
110       export CONFIG_SHELL
111       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
112     else
113       # Try using printf.
114       echo='printf %s\n'
115       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
116          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
117          test "X$echo_testing_string" = "X$echo_test_string"; then
118         # Cool, printf works
119         :
120       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
121            test "X$echo_testing_string" = 'X\t' &&
122            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
123            test "X$echo_testing_string" = "X$echo_test_string"; then
124         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
125         export CONFIG_SHELL
126         SHELL="$CONFIG_SHELL"
127         export SHELL
128         echo="$CONFIG_SHELL $0 --fallback-echo"
129       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
130            test "X$echo_testing_string" = 'X\t' &&
131            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
132            test "X$echo_testing_string" = "X$echo_test_string"; then
133         echo="$CONFIG_SHELL $0 --fallback-echo"
134       else
135         # maybe with a smaller string...
136         prev=:
137
138         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
139           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
140           then
141             break
142           fi
143           prev="$cmd"
144         done
145
146         if test "$prev" != 'sed 50q "$0"'; then
147           echo_test_string=`eval $prev`
148           export echo_test_string
149           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
150         else
151           # Oops.  We lost completely, so just stick with echo.
152           echo=echo
153         fi
154       fi
155     fi
156   fi
157 fi
158 fi
159
160 # Copy echo and quote the copy suitably for passing to libtool from
161 # the Makefile, instead of quoting the original, which is used later.
162 ECHO=$echo
163 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
164    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
165 fi
166
167 # Avoid depending upon Character Ranges.
168 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
169 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
170 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
171 as_cr_digits='0123456789'
172 as_cr_alnum=$as_cr_Letters$as_cr_digits
173
174 # Sed expression to map a string onto a valid variable name.
175 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
176
177 # Sed expression to map a string onto a valid CPP name.
178 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
179
180 ## --------------------- ##
181 ## M4sh Initialization.  ##
182 ## --------------------- ##
183
184 # Be Bourne compatible
185 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
186   emulate sh
187   NULLCMD=:
188 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
189   set -o posix
190 fi
191
192 # Name of the executable.
193 as_me=`echo "$0" |sed 's,.*[\\/],,'`
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204   # We could just check for DJGPP; but this test a) works b) is more generic
205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206   if test -f conf$$.exe; then
207     # Don't use ln at all; we don't have any links
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 as_executable_p="test -f"
220
221 # Support unset when possible.
222 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
223   as_unset=unset
224 else
225   as_unset=false
226 fi
227
228 # NLS nuisances.
229 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
230 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
231 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
232 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
233 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
234 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
235 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
236 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 cross_compiling=no
259 subdirs=
260 MFLAGS= MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
262
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete.  It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
267
268 ac_unique_file="src/main/radiusd.c"
269 # Factoring default headers for most tests.
270 ac_includes_default="\
271 #include <stdio.h>
272 #if HAVE_SYS_TYPES_H
273 # include <sys/types.h>
274 #endif
275 #if HAVE_SYS_STAT_H
276 # include <sys/stat.h>
277 #endif
278 #if STDC_HEADERS
279 # include <stdlib.h>
280 # include <stddef.h>
281 #else
282 # if HAVE_STDLIB_H
283 #  include <stdlib.h>
284 # endif
285 #endif
286 #if HAVE_STRING_H
287 # if !STDC_HEADERS && HAVE_MEMORY_H
288 #  include <memory.h>
289 # endif
290 # include <string.h>
291 #endif
292 #if HAVE_STRINGS_H
293 # include <strings.h>
294 #endif
295 #if HAVE_INTTYPES_H
296 # include <inttypes.h>
297 #else
298 # if HAVE_STDINT_H
299 #  include <stdint.h>
300 # endif
301 #endif
302 #if HAVE_UNISTD_H
303 # include <unistd.h>
304 #endif"
305
306 ac_subdirs_all="$ac_subdirs_all libltdl"
307 ac_subdirs_all="$ac_subdirs_all $mysubdirs"
308
309 # Initialize some variables set by options.
310 ac_init_help=
311 ac_init_version=false
312 # The variables have the same names as the options, with
313 # dashes changed to underlines.
314 cache_file=/dev/null
315 exec_prefix=NONE
316 no_create=
317 no_recursion=
318 prefix=NONE
319 program_prefix=NONE
320 program_suffix=NONE
321 program_transform_name=s,x,x,
322 silent=
323 site=
324 srcdir=
325 verbose=
326 x_includes=NONE
327 x_libraries=NONE
328
329 # Installation directory options.
330 # These are left unexpanded so users can "make install exec_prefix=/foo"
331 # and all the variables that are supposed to be based on exec_prefix
332 # by default will actually change.
333 # Use braces instead of parens because sh, perl, etc. also accept them.
334 bindir='${exec_prefix}/bin'
335 sbindir='${exec_prefix}/sbin'
336 libexecdir='${exec_prefix}/libexec'
337 datadir='${prefix}/share'
338 sysconfdir='${prefix}/etc'
339 sharedstatedir='${prefix}/com'
340 localstatedir='${prefix}/var'
341 libdir='${exec_prefix}/lib'
342 includedir='${prefix}/include'
343 oldincludedir='/usr/include'
344 infodir='${prefix}/info'
345 mandir='${prefix}/man'
346
347 # Identity of this package.
348 PACKAGE_NAME=
349 PACKAGE_TARNAME=
350 PACKAGE_VERSION=
351 PACKAGE_STRING=
352 PACKAGE_BUGREPORT=
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: should be removed in autoconf 3.0.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_prog=$0
709   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
710   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
711   srcdir=$ac_confdir
712   if test ! -r $srcdir/$ac_unique_file; then
713     srcdir=..
714   fi
715 else
716   ac_srcdir_defaulted=no
717 fi
718 if test ! -r $srcdir/$ac_unique_file; then
719   if test "$ac_srcdir_defaulted" = yes; then
720     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721    { (exit 1); exit 1; }; }
722   else
723     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724    { (exit 1); exit 1; }; }
725   fi
726 fi
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
741 ac_env_CC_value=$CC
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760
761 #
762 # Report the --help message.
763 #
764 if test "$ac_init_help" = "long"; then
765   # Omit some internal or obsolete options to make the list less imposing.
766   # This message is too long to be a string in the A/UX 3.1 sh.
767   cat <<_ACEOF
768 \`configure' configures this package to adapt to many kinds of systems.
769
770 Usage: $0 [OPTION]... [VAR=VALUE]...
771
772 To assign environment variables (e.g., CC, CFLAGS...), specify them as
773 VAR=VALUE.  See below for descriptions of some of the useful variables.
774
775 Defaults for the options are specified in brackets.
776
777 Configuration:
778   -h, --help              display this help and exit
779       --help=short        display options specific to this package
780       --help=recursive    display the short help of all the included packages
781   -V, --version           display version information and exit
782   -q, --quiet, --silent   do not print \`checking...' messages
783       --cache-file=FILE   cache test results in FILE [disabled]
784   -C, --config-cache      alias for \`--cache-file=config.cache'
785   -n, --no-create         do not create output files
786       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
787
788 _ACEOF
789
790   cat <<_ACEOF
791 Installation directories:
792   --prefix=PREFIX         install architecture-independent files in PREFIX
793                           [$ac_default_prefix]
794   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
795                           [PREFIX]
796
797 By default, \`make install' will install all the files in
798 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
799 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
800 for instance \`--prefix=\$HOME'.
801
802 For better control, use the options below.
803
804 Fine tuning of the installation directories:
805   --bindir=DIR           user executables [EPREFIX/bin]
806   --sbindir=DIR          system admin executables [EPREFIX/sbin]
807   --libexecdir=DIR       program executables [EPREFIX/libexec]
808   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
809   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
810   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
811   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
812   --libdir=DIR           object code libraries [EPREFIX/lib]
813   --includedir=DIR       C header files [PREFIX/include]
814   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
815   --infodir=DIR          info documentation [PREFIX/info]
816   --mandir=DIR           man documentation [PREFIX/man]
817 _ACEOF
818
819   cat <<\_ACEOF
820
821 System types:
822   --build=BUILD     configure for building on BUILD [guessed]
823   --host=HOST       build programs to run on HOST [BUILD]
824 _ACEOF
825 fi
826
827 if test -n "$ac_init_help"; then
828
829   cat <<\_ACEOF
830
831 Optional Features:
832   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
833   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
834   --enable-shared=PKGS  build shared libraries default=yes
835   --enable-static=PKGS  build static libraries default=yes
836   --enable-fast-install=PKGS  optimize for fast installation default=yes
837   --disable-libtool-lock  avoid locking (might break parallel builds)
838   --enable-strict-dependencies  Fail configure on lack of module dependancy.
839   --disable-ltdl-install  do not install libltdl
840   --enable-developer               Enables features of interest to developers.
841
842 Optional Packages:
843   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
844   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
845   --with-gnu-ld           assume the C compiler uses GNU ld default=no
846   --with-pic              try to use only PIC/non-PIC objects default=use both
847   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
848   --with-radacctdir=PATH  Directory for detail files LOGDIR/radacct
849   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
850   --with-dict-nocase      Make dictionary case-independant (default=yes)
851   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
852   --with-threads          Use threads, if available.  (default=yes)
853   --with-snmp             Compile in SNMP support. (default=yes)
854   --with-static-modules=QUOTED-MODULE-LIST
855   --with-experimental-modules      Use experimental and unstable modules. (default=no)
856   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
857   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
858
859 Some influential environment variables:
860   CC          C compiler command
861   CFLAGS      C compiler flags
862   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
863               nonstandard directory <lib dir>
864   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
865               headers in a nonstandard directory <include dir>
866   CPP         C preprocessor
867
868 Use these variables to override the choices made by `configure' or to help
869 it to find libraries and programs with nonstandard names/locations.
870
871 _ACEOF
872 fi
873
874 if test "$ac_init_help" = "recursive"; then
875   # If there are subdirs, report their specific --help.
876   ac_popdir=`pwd`
877   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
878     cd $ac_dir
879     if test "$ac_dir" != .; then
880   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'`
881   # A "../" for each directory in $ac_dir_suffix.
882   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
883 else
884   ac_dir_suffix= ac_top_builddir=
885 fi
886
887 case $srcdir in
888   .)  # No --srcdir option.  We are building in place.
889     ac_srcdir=.
890     if test -z "$ac_top_builddir"; then
891        ac_top_srcdir=.
892     else
893        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
894     fi ;;
895   [\\/]* | ?:[\\/]* )  # Absolute path.
896     ac_srcdir=$srcdir$ac_dir_suffix;
897     ac_top_srcdir=$srcdir ;;
898   *) # Relative path.
899     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
900     ac_top_srcdir=$ac_top_builddir$srcdir ;;
901 esac
902
903     # Check for guested configure; otherwise get Cygnus style configure.
904     if test -f $ac_srcdir/configure.gnu; then
905       echo
906       $SHELL $ac_srcdir/configure.gnu  --help=recursive
907     elif test -f $ac_srcdir/configure; then
908       echo
909       $SHELL $ac_srcdir/configure  --help=recursive
910     elif test -f $ac_srcdir/configure.ac ||
911            test -f $ac_srcdir/configure.in; then
912       echo
913       $ac_configure --help
914     else
915       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
916     fi
917     cd $ac_popdir
918   done
919 fi
920
921 test -n "$ac_init_help" && exit 0
922 if $ac_init_version; then
923   cat <<\_ACEOF
924
925 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
926 Free Software Foundation, Inc.
927 This configure script is free software; the Free Software Foundation
928 gives unlimited permission to copy, distribute and modify it.
929 _ACEOF
930   exit 0
931 fi
932 exec 5>config.log
933 cat >&5 <<_ACEOF
934 This file contains any messages produced by compilers while
935 running configure, to aid debugging if configure makes a mistake.
936
937 It was created by $as_me, which was
938 generated by GNU Autoconf 2.52d.  Invocation command line was
939
940   $ $0 $@
941
942 _ACEOF
943 {
944 cat <<_ASUNAME
945 ## --------- ##
946 ## Platform. ##
947 ## --------- ##
948
949 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
950 uname -m = `(uname -m) 2>/dev/null || echo unknown`
951 uname -r = `(uname -r) 2>/dev/null || echo unknown`
952 uname -s = `(uname -s) 2>/dev/null || echo unknown`
953 uname -v = `(uname -v) 2>/dev/null || echo unknown`
954
955 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
956 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
957
958 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
959 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
960 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
961 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
962 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
963 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
964 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
965
966 PATH = $PATH
967
968 _ASUNAME
969 } >&5
970
971 cat >&5 <<_ACEOF
972 ## ----------- ##
973 ## Core tests. ##
974 ## ----------- ##
975
976 _ACEOF
977
978 # Keep a trace of the command line.
979 # Strip out --no-create and --no-recursion so they do not pile up.
980 # Also quote any args containing shell meta-characters.
981 ac_configure_args=
982 ac_sep=
983 for ac_arg
984 do
985   case $ac_arg in
986   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
987   | --no-cr | --no-c) ;;
988   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
990   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
991     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
992     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
993     ac_sep=" " ;;
994   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
995      ac_sep=" " ;;
996   esac
997   # Get rid of the leading space.
998 done
999
1000 # When interrupted or exit'd, cleanup temporary files, and complete
1001 # config.log.  We remove comments because anyway the quotes in there
1002 # would cause problems or look ugly.
1003 # WARNING: Be sure not to use single quotes in there, as some shells,
1004 # such as our DU 5.0 friend, will then `close' the trap.
1005 trap 'exit_status=$?
1006   # Save into config.log some information that might help in debugging.
1007   {
1008     echo
1009     cat <<\_ASBOX
1010 ## ---------------- ##
1011 ## Cache variables. ##
1012 ## ---------------- ##
1013 _ASBOX
1014     echo
1015     # The following way of writing the cache mishandles newlines in values,
1016 {
1017   (set) 2>&1 |
1018     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1019     *ac_space=\ *)
1020       sed -n \
1021         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1022           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1023       ;;
1024     *)
1025       sed -n \
1026         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1027       ;;
1028     esac;
1029 }
1030     echo
1031     if test -s confdefs.h; then
1032       cat <<\_ASBOX
1033 ## ----------- ##
1034 ## confdefs.h. ##
1035 ## ----------- ##
1036 _ASBOX
1037       echo
1038       sed "/^$/d" confdefs.h
1039       echo
1040     fi
1041     test "$ac_signal" != 0 &&
1042       echo "$as_me: caught signal $ac_signal"
1043     echo "$as_me: exit $exit_status"
1044   } >&5
1045   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1046     exit $exit_status
1047      ' 0
1048 for ac_signal in 1 2 13 15; do
1049   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1050 done
1051 ac_signal=0
1052
1053 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1054 rm -rf conftest* confdefs.h
1055 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1056 echo >confdefs.h
1057
1058 # Let the site file select an alternate cache file if it wants to.
1059 # Prefer explicitly selected file to automatically selected ones.
1060 if test -z "$CONFIG_SITE"; then
1061   if test "x$prefix" != xNONE; then
1062     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1063   else
1064     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1065   fi
1066 fi
1067 for ac_site_file in $CONFIG_SITE; do
1068   if test -r "$ac_site_file"; then
1069     { echo "$as_me:1069: loading site script $ac_site_file" >&5
1070 echo "$as_me: loading site script $ac_site_file" >&6;}
1071     sed 's/^/| /' "$ac_site_file" >&5
1072     . "$ac_site_file"
1073   fi
1074 done
1075
1076 if test -r "$cache_file"; then
1077   # Some versions of bash will fail to source /dev/null (special
1078   # files actually), so we avoid doing that.
1079   if test -f "$cache_file"; then
1080     { echo "$as_me:1080: loading cache $cache_file" >&5
1081 echo "$as_me: loading cache $cache_file" >&6;}
1082     case $cache_file in
1083       [\\/]* | ?:[\\/]* ) . $cache_file;;
1084       *)                      . ./$cache_file;;
1085     esac
1086   fi
1087 else
1088   { echo "$as_me:1088: creating cache $cache_file" >&5
1089 echo "$as_me: creating cache $cache_file" >&6;}
1090   >$cache_file
1091 fi
1092
1093 # Check that the precious variables saved in the cache have kept the same
1094 # value.
1095 ac_cache_corrupted=false
1096 for ac_var in `(set) 2>&1 |
1097                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1098   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1099   eval ac_new_set=\$ac_env_${ac_var}_set
1100   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1101   eval ac_new_val="\$ac_env_${ac_var}_value"
1102   case $ac_old_set,$ac_new_set in
1103     set,)
1104       { echo "$as_me:1104: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1105 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1106       ac_cache_corrupted=: ;;
1107     ,set)
1108       { echo "$as_me:1108: error: \`$ac_var' was not set in the previous run" >&5
1109 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1110       ac_cache_corrupted=: ;;
1111     ,);;
1112     *)
1113       if test "x$ac_old_val" != "x$ac_new_val"; then
1114         { echo "$as_me:1114: error: \`$ac_var' has changed since the previous run:" >&5
1115 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1116         { echo "$as_me:1116:   former value:  $ac_old_val" >&5
1117 echo "$as_me:   former value:  $ac_old_val" >&2;}
1118         { echo "$as_me:1118:   current value: $ac_new_val" >&5
1119 echo "$as_me:   current value: $ac_new_val" >&2;}
1120         ac_cache_corrupted=:
1121       fi;;
1122   esac
1123   # Pass precious variables to config.status.  It doesn't matter if
1124   # we pass some twice (in addition to the command line arguments).
1125   if test "$ac_new_set" = set; then
1126     case $ac_new_val in
1127     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1128       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1129       ac_configure_args="$ac_configure_args '$ac_arg'"
1130       ;;
1131     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1132        ;;
1133     esac
1134   fi
1135 done
1136 if $ac_cache_corrupted; then
1137   { echo "$as_me:1137: error: changes in the environment can compromise the build" >&5
1138 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1139   { { echo "$as_me:1139: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1140 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1141    { (exit 1); exit 1; }; }
1142 fi
1143
1144 ac_ext=c
1145 ac_cpp='$CPP $CPPFLAGS'
1146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1149
1150 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1151   *c*,-n*) ECHO_N= ECHO_C='
1152 ' ECHO_T='      ' ;;
1153   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1154   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1155 esac
1156 echo "#! $SHELL" >conftest.sh
1157 echo  "exit 0"   >>conftest.sh
1158 chmod +x conftest.sh
1159 if { (echo "$as_me:1159: PATH=\".;.\"; conftest.sh") >&5
1160   (PATH=".;."; conftest.sh) 2>&5
1161   ac_status=$?
1162   echo "$as_me:1162: \$? = $ac_status" >&5
1163   (exit $ac_status); }; then
1164   ac_path_separator=';'
1165 else
1166   ac_path_separator=:
1167 fi
1168 PATH_SEPARATOR="$ac_path_separator"
1169 rm -f conftest.sh
1170
1171 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1172
1173 RADIUSD_MAJOR_VERSION=0
1174 RADIUSD_MINOR_VERSION=7-pre
1175 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1176
1177 ac_ext=c
1178 ac_cpp='$CPP $CPPFLAGS'
1179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1182 if test -n "$ac_tool_prefix"; then
1183   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1184 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1185 echo "$as_me:1185: checking for $ac_word" >&5
1186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1187 if test "${ac_cv_prog_CC+set}" = set; then
1188   echo $ECHO_N "(cached) $ECHO_C" >&6
1189 else
1190   if test -n "$CC"; then
1191   ac_cv_prog_CC="$CC" # Let the user override the test.
1192 else
1193   ac_save_IFS=$IFS; IFS=$ac_path_separator
1194 ac_dummy="$PATH"
1195 for ac_dir in $ac_dummy; do
1196   IFS=$ac_save_IFS
1197   test -z "$ac_dir" && ac_dir=.
1198   $as_executable_p "$ac_dir/$ac_word" || continue
1199 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1200 echo "$as_me:1200: found $ac_dir/$ac_word" >&5
1201 break
1202 done
1203
1204 fi
1205 fi
1206 CC=$ac_cv_prog_CC
1207 if test -n "$CC"; then
1208   echo "$as_me:1208: result: $CC" >&5
1209 echo "${ECHO_T}$CC" >&6
1210 else
1211   echo "$as_me:1211: result: no" >&5
1212 echo "${ECHO_T}no" >&6
1213 fi
1214
1215 fi
1216 if test -z "$ac_cv_prog_CC"; then
1217   ac_ct_CC=$CC
1218   # Extract the first word of "gcc", so it can be a program name with args.
1219 set dummy gcc; ac_word=$2
1220 echo "$as_me:1220: checking for $ac_word" >&5
1221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1223   echo $ECHO_N "(cached) $ECHO_C" >&6
1224 else
1225   if test -n "$ac_ct_CC"; then
1226   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1227 else
1228   ac_save_IFS=$IFS; IFS=$ac_path_separator
1229 ac_dummy="$PATH"
1230 for ac_dir in $ac_dummy; do
1231   IFS=$ac_save_IFS
1232   test -z "$ac_dir" && ac_dir=.
1233   $as_executable_p "$ac_dir/$ac_word" || continue
1234 ac_cv_prog_ac_ct_CC="gcc"
1235 echo "$as_me:1235: found $ac_dir/$ac_word" >&5
1236 break
1237 done
1238
1239 fi
1240 fi
1241 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1242 if test -n "$ac_ct_CC"; then
1243   echo "$as_me:1243: result: $ac_ct_CC" >&5
1244 echo "${ECHO_T}$ac_ct_CC" >&6
1245 else
1246   echo "$as_me:1246: result: no" >&5
1247 echo "${ECHO_T}no" >&6
1248 fi
1249
1250   CC=$ac_ct_CC
1251 else
1252   CC="$ac_cv_prog_CC"
1253 fi
1254
1255 if test -z "$CC"; then
1256   if test -n "$ac_tool_prefix"; then
1257   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1258 set dummy ${ac_tool_prefix}cc; ac_word=$2
1259 echo "$as_me:1259: checking for $ac_word" >&5
1260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1261 if test "${ac_cv_prog_CC+set}" = set; then
1262   echo $ECHO_N "(cached) $ECHO_C" >&6
1263 else
1264   if test -n "$CC"; then
1265   ac_cv_prog_CC="$CC" # Let the user override the test.
1266 else
1267   ac_save_IFS=$IFS; IFS=$ac_path_separator
1268 ac_dummy="$PATH"
1269 for ac_dir in $ac_dummy; do
1270   IFS=$ac_save_IFS
1271   test -z "$ac_dir" && ac_dir=.
1272   $as_executable_p "$ac_dir/$ac_word" || continue
1273 ac_cv_prog_CC="${ac_tool_prefix}cc"
1274 echo "$as_me:1274: found $ac_dir/$ac_word" >&5
1275 break
1276 done
1277
1278 fi
1279 fi
1280 CC=$ac_cv_prog_CC
1281 if test -n "$CC"; then
1282   echo "$as_me:1282: result: $CC" >&5
1283 echo "${ECHO_T}$CC" >&6
1284 else
1285   echo "$as_me:1285: result: no" >&5
1286 echo "${ECHO_T}no" >&6
1287 fi
1288
1289 fi
1290 if test -z "$ac_cv_prog_CC"; then
1291   ac_ct_CC=$CC
1292   # Extract the first word of "cc", so it can be a program name with args.
1293 set dummy cc; ac_word=$2
1294 echo "$as_me:1294: checking for $ac_word" >&5
1295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1296 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1297   echo $ECHO_N "(cached) $ECHO_C" >&6
1298 else
1299   if test -n "$ac_ct_CC"; then
1300   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1301 else
1302   ac_save_IFS=$IFS; IFS=$ac_path_separator
1303 ac_dummy="$PATH"
1304 for ac_dir in $ac_dummy; do
1305   IFS=$ac_save_IFS
1306   test -z "$ac_dir" && ac_dir=.
1307   $as_executable_p "$ac_dir/$ac_word" || continue
1308 ac_cv_prog_ac_ct_CC="cc"
1309 echo "$as_me:1309: found $ac_dir/$ac_word" >&5
1310 break
1311 done
1312
1313 fi
1314 fi
1315 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1316 if test -n "$ac_ct_CC"; then
1317   echo "$as_me:1317: result: $ac_ct_CC" >&5
1318 echo "${ECHO_T}$ac_ct_CC" >&6
1319 else
1320   echo "$as_me:1320: result: no" >&5
1321 echo "${ECHO_T}no" >&6
1322 fi
1323
1324   CC=$ac_ct_CC
1325 else
1326   CC="$ac_cv_prog_CC"
1327 fi
1328
1329 fi
1330 if test -z "$CC"; then
1331   # Extract the first word of "cc", so it can be a program name with args.
1332 set dummy cc; ac_word=$2
1333 echo "$as_me:1333: checking for $ac_word" >&5
1334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1335 if test "${ac_cv_prog_CC+set}" = set; then
1336   echo $ECHO_N "(cached) $ECHO_C" >&6
1337 else
1338   if test -n "$CC"; then
1339   ac_cv_prog_CC="$CC" # Let the user override the test.
1340 else
1341   ac_prog_rejected=no
1342   ac_save_IFS=$IFS; IFS=$ac_path_separator
1343 ac_dummy="$PATH"
1344 for ac_dir in $ac_dummy; do
1345   IFS=$ac_save_IFS
1346   test -z "$ac_dir" && ac_dir=.
1347   $as_executable_p "$ac_dir/$ac_word" || continue
1348 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1349   ac_prog_rejected=yes
1350   continue
1351 fi
1352 ac_cv_prog_CC="cc"
1353 echo "$as_me:1353: found $ac_dir/$ac_word" >&5
1354 break
1355 done
1356
1357 if test $ac_prog_rejected = yes; then
1358   # We found a bogon in the path, so make sure we never use it.
1359   set dummy $ac_cv_prog_CC
1360   shift
1361   if test $# != 0; then
1362     # We chose a different compiler from the bogus one.
1363     # However, it has the same basename, so the bogon will be chosen
1364     # first if we set CC to just the basename; use the full file name.
1365     shift
1366     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1367     shift
1368     ac_cv_prog_CC="$@"
1369   fi
1370 fi
1371 fi
1372 fi
1373 CC=$ac_cv_prog_CC
1374 if test -n "$CC"; then
1375   echo "$as_me:1375: result: $CC" >&5
1376 echo "${ECHO_T}$CC" >&6
1377 else
1378   echo "$as_me:1378: result: no" >&5
1379 echo "${ECHO_T}no" >&6
1380 fi
1381
1382 fi
1383 if test -z "$CC"; then
1384   if test -n "$ac_tool_prefix"; then
1385   for ac_prog in cl
1386   do
1387     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1389 echo "$as_me:1389: checking for $ac_word" >&5
1390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1391 if test "${ac_cv_prog_CC+set}" = set; then
1392   echo $ECHO_N "(cached) $ECHO_C" >&6
1393 else
1394   if test -n "$CC"; then
1395   ac_cv_prog_CC="$CC" # Let the user override the test.
1396 else
1397   ac_save_IFS=$IFS; IFS=$ac_path_separator
1398 ac_dummy="$PATH"
1399 for ac_dir in $ac_dummy; do
1400   IFS=$ac_save_IFS
1401   test -z "$ac_dir" && ac_dir=.
1402   $as_executable_p "$ac_dir/$ac_word" || continue
1403 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1404 echo "$as_me:1404: found $ac_dir/$ac_word" >&5
1405 break
1406 done
1407
1408 fi
1409 fi
1410 CC=$ac_cv_prog_CC
1411 if test -n "$CC"; then
1412   echo "$as_me:1412: result: $CC" >&5
1413 echo "${ECHO_T}$CC" >&6
1414 else
1415   echo "$as_me:1415: result: no" >&5
1416 echo "${ECHO_T}no" >&6
1417 fi
1418
1419     test -n "$CC" && break
1420   done
1421 fi
1422 if test -z "$CC"; then
1423   ac_ct_CC=$CC
1424   for ac_prog in cl
1425 do
1426   # Extract the first word of "$ac_prog", so it can be a program name with args.
1427 set dummy $ac_prog; ac_word=$2
1428 echo "$as_me:1428: checking for $ac_word" >&5
1429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1431   echo $ECHO_N "(cached) $ECHO_C" >&6
1432 else
1433   if test -n "$ac_ct_CC"; then
1434   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1435 else
1436   ac_save_IFS=$IFS; IFS=$ac_path_separator
1437 ac_dummy="$PATH"
1438 for ac_dir in $ac_dummy; do
1439   IFS=$ac_save_IFS
1440   test -z "$ac_dir" && ac_dir=.
1441   $as_executable_p "$ac_dir/$ac_word" || continue
1442 ac_cv_prog_ac_ct_CC="$ac_prog"
1443 echo "$as_me:1443: found $ac_dir/$ac_word" >&5
1444 break
1445 done
1446
1447 fi
1448 fi
1449 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1450 if test -n "$ac_ct_CC"; then
1451   echo "$as_me:1451: result: $ac_ct_CC" >&5
1452 echo "${ECHO_T}$ac_ct_CC" >&6
1453 else
1454   echo "$as_me:1454: result: no" >&5
1455 echo "${ECHO_T}no" >&6
1456 fi
1457
1458   test -n "$ac_ct_CC" && break
1459 done
1460
1461   CC=$ac_ct_CC
1462 fi
1463
1464 fi
1465
1466 test -z "$CC" && { { echo "$as_me:1466: error: no acceptable cc found in \$PATH" >&5
1467 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1468    { (exit 1); exit 1; }; }
1469
1470 # Provide some information about the compiler.
1471 echo "$as_me:1471:" \
1472      "checking for C compiler version" >&5
1473 ac_compiler=`set X $ac_compile; echo $2`
1474 { (eval echo "$as_me:1474: \"$ac_compiler --version </dev/null >&5\"") >&5
1475   (eval $ac_compiler --version </dev/null >&5) 2>&5
1476   ac_status=$?
1477   echo "$as_me:1477: \$? = $ac_status" >&5
1478   (exit $ac_status); }
1479 { (eval echo "$as_me:1479: \"$ac_compiler -v </dev/null >&5\"") >&5
1480   (eval $ac_compiler -v </dev/null >&5) 2>&5
1481   ac_status=$?
1482   echo "$as_me:1482: \$? = $ac_status" >&5
1483   (exit $ac_status); }
1484 { (eval echo "$as_me:1484: \"$ac_compiler -V </dev/null >&5\"") >&5
1485   (eval $ac_compiler -V </dev/null >&5) 2>&5
1486   ac_status=$?
1487   echo "$as_me:1487: \$? = $ac_status" >&5
1488   (exit $ac_status); }
1489
1490 cat >conftest.$ac_ext <<_ACEOF
1491 #line 1491 "configure"
1492 #include "confdefs.h"
1493
1494 #ifdef F77_DUMMY_MAIN
1495 #  ifdef __cplusplus
1496      extern "C"
1497 #  endif
1498    int F77_DUMMY_MAIN() { return 1; }
1499 #endif
1500 int
1501 main ()
1502 {
1503
1504   ;
1505   return 0;
1506 }
1507 _ACEOF
1508 ac_clean_files_save=$ac_clean_files
1509 ac_clean_files="$ac_clean_files a.out a.exe"
1510 # Try to create an executable without -o first, disregard a.out.
1511 # It will help us diagnose broken compilers, and finding out an intuition
1512 # of exeext.
1513 echo "$as_me:1513: checking for C compiler default output" >&5
1514 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1515 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1516 if { (eval echo "$as_me:1516: \"$ac_link_default\"") >&5
1517   (eval $ac_link_default) 2>&5
1518   ac_status=$?
1519   echo "$as_me:1519: \$? = $ac_status" >&5
1520   (exit $ac_status); }; then
1521   # Find the output, starting from the most likely.  This scheme is
1522 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1523 # resort.
1524 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1525                 ls a.out conftest 2>/dev/null;
1526                 ls a.* conftest.* 2>/dev/null`; do
1527   case $ac_file in
1528     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1529     a.out ) # We found the default executable, but exeext='' is most
1530             # certainly right.
1531             break;;
1532     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1533           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1534           export ac_cv_exeext
1535           break;;
1536     * ) break;;
1537   esac
1538 done
1539 else
1540   echo "$as_me: failed program was:" >&5
1541 cat conftest.$ac_ext >&5
1542 { { echo "$as_me:1542: error: C compiler cannot create executables" >&5
1543 echo "$as_me: error: C compiler cannot create executables" >&2;}
1544    { (exit 77); exit 77; }; }
1545 fi
1546
1547 ac_exeext=$ac_cv_exeext
1548 echo "$as_me:1548: result: $ac_file" >&5
1549 echo "${ECHO_T}$ac_file" >&6
1550
1551 # Check the compiler produces executables we can run.  If not, either
1552 # the compiler is broken, or we cross compile.
1553 echo "$as_me:1553: checking whether the C compiler works" >&5
1554 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1555 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1556 # If not cross compiling, check that we can run a simple program.
1557 if test "$cross_compiling" != yes; then
1558   if { ac_try='./$ac_file'
1559   { (eval echo "$as_me:1559: \"$ac_try\"") >&5
1560   (eval $ac_try) 2>&5
1561   ac_status=$?
1562   echo "$as_me:1562: \$? = $ac_status" >&5
1563   (exit $ac_status); }; }; then
1564     cross_compiling=no
1565   else
1566     if test "$cross_compiling" = maybe; then
1567         cross_compiling=yes
1568     else
1569         { { echo "$as_me:1569: error: cannot run C compiled programs.
1570 If you meant to cross compile, use \`--host'." >&5
1571 echo "$as_me: error: cannot run C compiled programs.
1572 If you meant to cross compile, use \`--host'." >&2;}
1573    { (exit 1); exit 1; }; }
1574     fi
1575   fi
1576 fi
1577 echo "$as_me:1577: result: yes" >&5
1578 echo "${ECHO_T}yes" >&6
1579
1580 rm -f a.out a.exe conftest$ac_cv_exeext
1581 ac_clean_files=$ac_clean_files_save
1582 # Check the compiler produces executables we can run.  If not, either
1583 # the compiler is broken, or we cross compile.
1584 echo "$as_me:1584: checking whether we are cross compiling" >&5
1585 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1586 echo "$as_me:1586: result: $cross_compiling" >&5
1587 echo "${ECHO_T}$cross_compiling" >&6
1588
1589 echo "$as_me:1589: checking for executable suffix" >&5
1590 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1591 if { (eval echo "$as_me:1591: \"$ac_link\"") >&5
1592   (eval $ac_link) 2>&5
1593   ac_status=$?
1594   echo "$as_me:1594: \$? = $ac_status" >&5
1595   (exit $ac_status); }; then
1596   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1597 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1598 # work properly (i.e., refer to `conftest.exe'), while it won't with
1599 # `rm'.
1600 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1601   case $ac_file in
1602     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1603     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1604           export ac_cv_exeext
1605           break;;
1606     * ) break;;
1607   esac
1608 done
1609 else
1610   { { echo "$as_me:1610: error: cannot compute EXEEXT: cannot compile and link" >&5
1611 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1612    { (exit 1); exit 1; }; }
1613 fi
1614
1615 rm -f conftest$ac_cv_exeext
1616 echo "$as_me:1616: result: $ac_cv_exeext" >&5
1617 echo "${ECHO_T}$ac_cv_exeext" >&6
1618
1619 rm -f conftest.$ac_ext
1620 EXEEXT=$ac_cv_exeext
1621 ac_exeext=$EXEEXT
1622 echo "$as_me:1622: checking for object suffix" >&5
1623 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1624 if test "${ac_cv_objext+set}" = set; then
1625   echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627   cat >conftest.$ac_ext <<_ACEOF
1628 #line 1628 "configure"
1629 #include "confdefs.h"
1630
1631 #ifdef F77_DUMMY_MAIN
1632 #  ifdef __cplusplus
1633      extern "C"
1634 #  endif
1635    int F77_DUMMY_MAIN() { return 1; }
1636 #endif
1637 int
1638 main ()
1639 {
1640
1641   ;
1642   return 0;
1643 }
1644 _ACEOF
1645 rm -f conftest.o conftest.obj
1646 if { (eval echo "$as_me:1646: \"$ac_compile\"") >&5
1647   (eval $ac_compile) 2>&5
1648   ac_status=$?
1649   echo "$as_me:1649: \$? = $ac_status" >&5
1650   (exit $ac_status); }; then
1651   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1652   case $ac_file in
1653     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1654     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1655        break;;
1656   esac
1657 done
1658 else
1659   echo "$as_me: failed program was:" >&5
1660 cat conftest.$ac_ext >&5
1661 { { echo "$as_me:1661: error: cannot compute OBJEXT: cannot compile" >&5
1662 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1663    { (exit 1); exit 1; }; }
1664 fi
1665
1666 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1667 fi
1668 echo "$as_me:1668: result: $ac_cv_objext" >&5
1669 echo "${ECHO_T}$ac_cv_objext" >&6
1670 OBJEXT=$ac_cv_objext
1671 ac_objext=$OBJEXT
1672 echo "$as_me:1672: checking whether we are using the GNU C compiler" >&5
1673 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1674 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1675   echo $ECHO_N "(cached) $ECHO_C" >&6
1676 else
1677   cat >conftest.$ac_ext <<_ACEOF
1678 #line 1678 "configure"
1679 #include "confdefs.h"
1680
1681 #ifdef F77_DUMMY_MAIN
1682 #  ifdef __cplusplus
1683      extern "C"
1684 #  endif
1685    int F77_DUMMY_MAIN() { return 1; }
1686 #endif
1687 int
1688 main ()
1689 {
1690 #ifndef __GNUC__
1691        choke me
1692 #endif
1693
1694   ;
1695   return 0;
1696 }
1697 _ACEOF
1698 rm -f conftest.$ac_objext
1699 if { (eval echo "$as_me:1699: \"$ac_compile\"") >&5
1700   (eval $ac_compile) 2>&5
1701   ac_status=$?
1702   echo "$as_me:1702: \$? = $ac_status" >&5
1703   (exit $ac_status); } &&
1704          { ac_try='test -s conftest.$ac_objext'
1705   { (eval echo "$as_me:1705: \"$ac_try\"") >&5
1706   (eval $ac_try) 2>&5
1707   ac_status=$?
1708   echo "$as_me:1708: \$? = $ac_status" >&5
1709   (exit $ac_status); }; }; then
1710   ac_compiler_gnu=yes
1711 else
1712   echo "$as_me: failed program was:" >&5
1713 cat conftest.$ac_ext >&5
1714 ac_compiler_gnu=no
1715 fi
1716 rm -f conftest.$ac_objext conftest.$ac_ext
1717 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1718
1719 fi
1720 echo "$as_me:1720: result: $ac_cv_c_compiler_gnu" >&5
1721 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1722 GCC=`test $ac_compiler_gnu = yes && echo yes`
1723 ac_test_CFLAGS=${CFLAGS+set}
1724 ac_save_CFLAGS=$CFLAGS
1725 CFLAGS="-g"
1726 echo "$as_me:1726: checking whether $CC accepts -g" >&5
1727 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1728 if test "${ac_cv_prog_cc_g+set}" = set; then
1729   echo $ECHO_N "(cached) $ECHO_C" >&6
1730 else
1731   cat >conftest.$ac_ext <<_ACEOF
1732 #line 1732 "configure"
1733 #include "confdefs.h"
1734
1735 #ifdef F77_DUMMY_MAIN
1736 #  ifdef __cplusplus
1737      extern "C"
1738 #  endif
1739    int F77_DUMMY_MAIN() { return 1; }
1740 #endif
1741 int
1742 main ()
1743 {
1744
1745   ;
1746   return 0;
1747 }
1748 _ACEOF
1749 rm -f conftest.$ac_objext
1750 if { (eval echo "$as_me:1750: \"$ac_compile\"") >&5
1751   (eval $ac_compile) 2>&5
1752   ac_status=$?
1753   echo "$as_me:1753: \$? = $ac_status" >&5
1754   (exit $ac_status); } &&
1755          { ac_try='test -s conftest.$ac_objext'
1756   { (eval echo "$as_me:1756: \"$ac_try\"") >&5
1757   (eval $ac_try) 2>&5
1758   ac_status=$?
1759   echo "$as_me:1759: \$? = $ac_status" >&5
1760   (exit $ac_status); }; }; then
1761   ac_cv_prog_cc_g=yes
1762 else
1763   echo "$as_me: failed program was:" >&5
1764 cat conftest.$ac_ext >&5
1765 ac_cv_prog_cc_g=no
1766 fi
1767 rm -f conftest.$ac_objext conftest.$ac_ext
1768 fi
1769 echo "$as_me:1769: result: $ac_cv_prog_cc_g" >&5
1770 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1771 if test "$ac_test_CFLAGS" = set; then
1772   CFLAGS=$ac_save_CFLAGS
1773 elif test $ac_cv_prog_cc_g = yes; then
1774   if test "$GCC" = yes; then
1775     CFLAGS="-g -O2"
1776   else
1777     CFLAGS="-g"
1778   fi
1779 else
1780   if test "$GCC" = yes; then
1781     CFLAGS="-O2"
1782   else
1783     CFLAGS=
1784   fi
1785 fi
1786 # Some people use a C++ compiler to compile C.  Since we use `exit',
1787 # in C++ we need to declare it.  In case someone uses the same compiler
1788 # for both compiling C and C++ we need to have the C++ compiler decide
1789 # the declaration of exit, since it's the most demanding environment.
1790 cat >conftest.$ac_ext <<_ACEOF
1791 #ifndef __cplusplus
1792   choke me
1793 #endif
1794 _ACEOF
1795 rm -f conftest.$ac_objext
1796 if { (eval echo "$as_me:1796: \"$ac_compile\"") >&5
1797   (eval $ac_compile) 2>&5
1798   ac_status=$?
1799   echo "$as_me:1799: \$? = $ac_status" >&5
1800   (exit $ac_status); } &&
1801          { ac_try='test -s conftest.$ac_objext'
1802   { (eval echo "$as_me:1802: \"$ac_try\"") >&5
1803   (eval $ac_try) 2>&5
1804   ac_status=$?
1805   echo "$as_me:1805: \$? = $ac_status" >&5
1806   (exit $ac_status); }; }; then
1807   for ac_declaration in \
1808    ''\
1809    '#include <stdlib.h>' \
1810    'extern "C" void std::exit (int) throw (); using std::exit;' \
1811    'extern "C" void std::exit (int); using std::exit;' \
1812    'extern "C" void exit (int) throw ();' \
1813    'extern "C" void exit (int);' \
1814    'void exit (int);'
1815 do
1816   cat >conftest.$ac_ext <<_ACEOF
1817 #line 1817 "configure"
1818 #include "confdefs.h"
1819 #include <stdlib.h>
1820 $ac_declaration
1821 #ifdef F77_DUMMY_MAIN
1822 #  ifdef __cplusplus
1823      extern "C"
1824 #  endif
1825    int F77_DUMMY_MAIN() { return 1; }
1826 #endif
1827 int
1828 main ()
1829 {
1830 exit (42);
1831   ;
1832   return 0;
1833 }
1834 _ACEOF
1835 rm -f conftest.$ac_objext
1836 if { (eval echo "$as_me:1836: \"$ac_compile\"") >&5
1837   (eval $ac_compile) 2>&5
1838   ac_status=$?
1839   echo "$as_me:1839: \$? = $ac_status" >&5
1840   (exit $ac_status); } &&
1841          { ac_try='test -s conftest.$ac_objext'
1842   { (eval echo "$as_me:1842: \"$ac_try\"") >&5
1843   (eval $ac_try) 2>&5
1844   ac_status=$?
1845   echo "$as_me:1845: \$? = $ac_status" >&5
1846   (exit $ac_status); }; }; then
1847   :
1848 else
1849   echo "$as_me: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1851 continue
1852 fi
1853 rm -f conftest.$ac_objext conftest.$ac_ext
1854   cat >conftest.$ac_ext <<_ACEOF
1855 #line 1855 "configure"
1856 #include "confdefs.h"
1857 $ac_declaration
1858 #ifdef F77_DUMMY_MAIN
1859 #  ifdef __cplusplus
1860      extern "C"
1861 #  endif
1862    int F77_DUMMY_MAIN() { return 1; }
1863 #endif
1864 int
1865 main ()
1866 {
1867 exit (42);
1868   ;
1869   return 0;
1870 }
1871 _ACEOF
1872 rm -f conftest.$ac_objext
1873 if { (eval echo "$as_me:1873: \"$ac_compile\"") >&5
1874   (eval $ac_compile) 2>&5
1875   ac_status=$?
1876   echo "$as_me:1876: \$? = $ac_status" >&5
1877   (exit $ac_status); } &&
1878          { ac_try='test -s conftest.$ac_objext'
1879   { (eval echo "$as_me:1879: \"$ac_try\"") >&5
1880   (eval $ac_try) 2>&5
1881   ac_status=$?
1882   echo "$as_me:1882: \$? = $ac_status" >&5
1883   (exit $ac_status); }; }; then
1884   break
1885 else
1886   echo "$as_me: failed program was:" >&5
1887 cat conftest.$ac_ext >&5
1888 fi
1889 rm -f conftest.$ac_objext conftest.$ac_ext
1890 done
1891 rm -f conftest*
1892 if test -n "$ac_declaration"; then
1893   echo '#ifdef __cplusplus' >>confdefs.h
1894   echo $ac_declaration      >>confdefs.h
1895   echo '#endif'             >>confdefs.h
1896 fi
1897
1898 else
1899   echo "$as_me: failed program was:" >&5
1900 cat conftest.$ac_ext >&5
1901 fi
1902 rm -f conftest.$ac_objext conftest.$ac_ext
1903 ac_ext=c
1904 ac_cpp='$CPP $CPPFLAGS'
1905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1908
1909 ac_ext=c
1910 ac_cpp='$CPP $CPPFLAGS'
1911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914 echo "$as_me:1914: checking how to run the C preprocessor" >&5
1915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1916 # On Suns, sometimes $CPP names a directory.
1917 if test -n "$CPP" && test -d "$CPP"; then
1918   CPP=
1919 fi
1920 if test -z "$CPP"; then
1921   if test "${ac_cv_prog_CPP+set}" = set; then
1922   echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924       # Double quotes because CPP needs to be expanded
1925     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1926     do
1927       ac_preproc_ok=false
1928 for ac_c_preproc_warn_flag in '' yes
1929 do
1930   # Use a header file that comes with gcc, so configuring glibc
1931   # with a fresh cross-compiler works.
1932   # On the NeXT, cc -E runs the code through the compiler's parser,
1933   # not just through cpp. "Syntax error" is here to catch this case.
1934   cat >conftest.$ac_ext <<_ACEOF
1935 #line 1935 "configure"
1936 #include "confdefs.h"
1937 #include <assert.h>
1938                      Syntax error
1939 _ACEOF
1940 if { (eval echo "$as_me:1940: \"$ac_cpp conftest.$ac_ext\"") >&5
1941   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1942   ac_status=$?
1943   egrep -v '^ *\+' conftest.er1 >conftest.err
1944   rm -f conftest.er1
1945   cat conftest.err >&5
1946   echo "$as_me:1946: \$? = $ac_status" >&5
1947   (exit $ac_status); } >/dev/null; then
1948   if test -s conftest.err; then
1949     ac_cpp_err=$ac_c_preproc_warn_flag
1950   else
1951     ac_cpp_err=
1952   fi
1953 else
1954   ac_cpp_err=yes
1955 fi
1956 if test -z "$ac_cpp_err"; then
1957   :
1958 else
1959   echo "$as_me: failed program was:" >&5
1960   cat conftest.$ac_ext >&5
1961   # Broken: fails on valid input.
1962 continue
1963 fi
1964 rm -f conftest.err conftest.$ac_ext
1965
1966   # OK, works on sane cases.  Now check whether non-existent headers
1967   # can be detected and how.
1968   cat >conftest.$ac_ext <<_ACEOF
1969 #line 1969 "configure"
1970 #include "confdefs.h"
1971 #include <ac_nonexistent.h>
1972 _ACEOF
1973 if { (eval echo "$as_me:1973: \"$ac_cpp conftest.$ac_ext\"") >&5
1974   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1975   ac_status=$?
1976   egrep -v '^ *\+' conftest.er1 >conftest.err
1977   rm -f conftest.er1
1978   cat conftest.err >&5
1979   echo "$as_me:1979: \$? = $ac_status" >&5
1980   (exit $ac_status); } >/dev/null; then
1981   if test -s conftest.err; then
1982     ac_cpp_err=$ac_c_preproc_warn_flag
1983   else
1984     ac_cpp_err=
1985   fi
1986 else
1987   ac_cpp_err=yes
1988 fi
1989 if test -z "$ac_cpp_err"; then
1990   # Broken: success on invalid input.
1991 continue
1992 else
1993   echo "$as_me: failed program was:" >&5
1994   cat conftest.$ac_ext >&5
1995   # Passes both tests.
1996 ac_preproc_ok=:
1997 break
1998 fi
1999 rm -f conftest.err conftest.$ac_ext
2000
2001 done
2002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2003 rm -f conftest.err conftest.$ac_ext
2004 if $ac_preproc_ok; then
2005   break
2006 fi
2007
2008     done
2009     ac_cv_prog_CPP=$CPP
2010
2011 fi
2012   CPP=$ac_cv_prog_CPP
2013 else
2014   ac_cv_prog_CPP=$CPP
2015 fi
2016 echo "$as_me:2016: result: $CPP" >&5
2017 echo "${ECHO_T}$CPP" >&6
2018 ac_preproc_ok=false
2019 for ac_c_preproc_warn_flag in '' yes
2020 do
2021   # Use a header file that comes with gcc, so configuring glibc
2022   # with a fresh cross-compiler works.
2023   # On the NeXT, cc -E runs the code through the compiler's parser,
2024   # not just through cpp. "Syntax error" is here to catch this case.
2025   cat >conftest.$ac_ext <<_ACEOF
2026 #line 2026 "configure"
2027 #include "confdefs.h"
2028 #include <assert.h>
2029                      Syntax error
2030 _ACEOF
2031 if { (eval echo "$as_me:2031: \"$ac_cpp conftest.$ac_ext\"") >&5
2032   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2033   ac_status=$?
2034   egrep -v '^ *\+' conftest.er1 >conftest.err
2035   rm -f conftest.er1
2036   cat conftest.err >&5
2037   echo "$as_me:2037: \$? = $ac_status" >&5
2038   (exit $ac_status); } >/dev/null; then
2039   if test -s conftest.err; then
2040     ac_cpp_err=$ac_c_preproc_warn_flag
2041   else
2042     ac_cpp_err=
2043   fi
2044 else
2045   ac_cpp_err=yes
2046 fi
2047 if test -z "$ac_cpp_err"; then
2048   :
2049 else
2050   echo "$as_me: failed program was:" >&5
2051   cat conftest.$ac_ext >&5
2052   # Broken: fails on valid input.
2053 continue
2054 fi
2055 rm -f conftest.err conftest.$ac_ext
2056
2057   # OK, works on sane cases.  Now check whether non-existent headers
2058   # can be detected and how.
2059   cat >conftest.$ac_ext <<_ACEOF
2060 #line 2060 "configure"
2061 #include "confdefs.h"
2062 #include <ac_nonexistent.h>
2063 _ACEOF
2064 if { (eval echo "$as_me:2064: \"$ac_cpp conftest.$ac_ext\"") >&5
2065   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2066   ac_status=$?
2067   egrep -v '^ *\+' conftest.er1 >conftest.err
2068   rm -f conftest.er1
2069   cat conftest.err >&5
2070   echo "$as_me:2070: \$? = $ac_status" >&5
2071   (exit $ac_status); } >/dev/null; then
2072   if test -s conftest.err; then
2073     ac_cpp_err=$ac_c_preproc_warn_flag
2074   else
2075     ac_cpp_err=
2076   fi
2077 else
2078   ac_cpp_err=yes
2079 fi
2080 if test -z "$ac_cpp_err"; then
2081   # Broken: success on invalid input.
2082 continue
2083 else
2084   echo "$as_me: failed program was:" >&5
2085   cat conftest.$ac_ext >&5
2086   # Passes both tests.
2087 ac_preproc_ok=:
2088 break
2089 fi
2090 rm -f conftest.err conftest.$ac_ext
2091
2092 done
2093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2094 rm -f conftest.err conftest.$ac_ext
2095 if $ac_preproc_ok; then
2096   :
2097 else
2098   { { echo "$as_me:2098: error: C preprocessor \"$CPP\" fails sanity check" >&5
2099 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2100    { (exit 1); exit 1; }; }
2101 fi
2102
2103 ac_ext=c
2104 ac_cpp='$CPP $CPPFLAGS'
2105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2108
2109 if test $ac_cv_c_compiler_gnu = yes; then
2110     echo "$as_me:2110: checking whether $CC needs -traditional" >&5
2111 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2112 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2113   echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115     ac_pattern="Autoconf.*'x'"
2116   cat >conftest.$ac_ext <<_ACEOF
2117 #line 2117 "configure"
2118 #include "confdefs.h"
2119 #include <sgtty.h>
2120 Autoconf TIOCGETP
2121 _ACEOF
2122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2123   egrep "$ac_pattern" >/dev/null 2>&1; then
2124   ac_cv_prog_gcc_traditional=yes
2125 else
2126   ac_cv_prog_gcc_traditional=no
2127 fi
2128 rm -f conftest*
2129
2130   if test $ac_cv_prog_gcc_traditional = no; then
2131     cat >conftest.$ac_ext <<_ACEOF
2132 #line 2132 "configure"
2133 #include "confdefs.h"
2134 #include <termio.h>
2135 Autoconf TCGETA
2136 _ACEOF
2137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2138   egrep "$ac_pattern" >/dev/null 2>&1; then
2139   ac_cv_prog_gcc_traditional=yes
2140 fi
2141 rm -f conftest*
2142
2143   fi
2144 fi
2145 echo "$as_me:2145: result: $ac_cv_prog_gcc_traditional" >&5
2146 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2147   if test $ac_cv_prog_gcc_traditional = yes; then
2148     CC="$CC -traditional"
2149   fi
2150 fi
2151
2152 echo "$as_me:2152: checking whether we are using SUNPro C" >&5
2153 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
2154 if test "${ac_cv_prog_suncc+set}" = set; then
2155   echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157   cat > conftest.c <<EOF
2158 #ifdef __SUNPRO_C
2159   yes;
2160 #endif
2161 EOF
2162 if { ac_try='${CC-cc} -E conftest.c'
2163   { (eval echo "$as_me:2163: \"$ac_try\"") >&5
2164   (eval $ac_try) 2>&5
2165   ac_status=$?
2166   echo "$as_me:2166: \$? = $ac_status" >&5
2167   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2168   ac_cv_prog_suncc=yes
2169 else
2170   ac_cv_prog_suncc=no
2171 fi
2172 fi
2173 echo "$as_me:2173: result: $ac_cv_prog_suncc" >&5
2174 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
2175 if test -n "$ac_tool_prefix"; then
2176   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2177 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2178 echo "$as_me:2178: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180 if test "${ac_cv_prog_RANLIB+set}" = set; then
2181   echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183   if test -n "$RANLIB"; then
2184   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2185 else
2186   ac_save_IFS=$IFS; IFS=$ac_path_separator
2187 ac_dummy="$PATH"
2188 for ac_dir in $ac_dummy; do
2189   IFS=$ac_save_IFS
2190   test -z "$ac_dir" && ac_dir=.
2191   $as_executable_p "$ac_dir/$ac_word" || continue
2192 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2193 echo "$as_me:2193: found $ac_dir/$ac_word" >&5
2194 break
2195 done
2196
2197 fi
2198 fi
2199 RANLIB=$ac_cv_prog_RANLIB
2200 if test -n "$RANLIB"; then
2201   echo "$as_me:2201: result: $RANLIB" >&5
2202 echo "${ECHO_T}$RANLIB" >&6
2203 else
2204   echo "$as_me:2204: result: no" >&5
2205 echo "${ECHO_T}no" >&6
2206 fi
2207
2208 fi
2209 if test -z "$ac_cv_prog_RANLIB"; then
2210   ac_ct_RANLIB=$RANLIB
2211   # Extract the first word of "ranlib", so it can be a program name with args.
2212 set dummy ranlib; ac_word=$2
2213 echo "$as_me:2213: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2215 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2216   echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218   if test -n "$ac_ct_RANLIB"; then
2219   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2220 else
2221   ac_save_IFS=$IFS; IFS=$ac_path_separator
2222 ac_dummy="$PATH"
2223 for ac_dir in $ac_dummy; do
2224   IFS=$ac_save_IFS
2225   test -z "$ac_dir" && ac_dir=.
2226   $as_executable_p "$ac_dir/$ac_word" || continue
2227 ac_cv_prog_ac_ct_RANLIB="ranlib"
2228 echo "$as_me:2228: found $ac_dir/$ac_word" >&5
2229 break
2230 done
2231
2232   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2233 fi
2234 fi
2235 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2236 if test -n "$ac_ct_RANLIB"; then
2237   echo "$as_me:2237: result: $ac_ct_RANLIB" >&5
2238 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2239 else
2240   echo "$as_me:2240: result: no" >&5
2241 echo "${ECHO_T}no" >&6
2242 fi
2243
2244   RANLIB=$ac_ct_RANLIB
2245 else
2246   RANLIB="$ac_cv_prog_RANLIB"
2247 fi
2248
2249 PACKAGE=freeradius
2250
2251 echo "$as_me:2251: checking for AIX" >&5
2252 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2253 cat >conftest.$ac_ext <<_ACEOF
2254 #line 2254 "configure"
2255 #include "confdefs.h"
2256 #ifdef _AIX
2257   yes
2258 #endif
2259
2260 _ACEOF
2261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2262   egrep "yes" >/dev/null 2>&1; then
2263   echo "$as_me:2263: result: yes" >&5
2264 echo "${ECHO_T}yes" >&6
2265 cat >>confdefs.h <<\_ACEOF
2266 #define _ALL_SOURCE 1
2267 _ACEOF
2268
2269 else
2270   echo "$as_me:2270: result: no" >&5
2271 echo "${ECHO_T}no" >&6
2272 fi
2273 rm -f conftest*
2274
2275 # Extract the first word of "gmake", so it can be a program name with args.
2276 set dummy gmake; ac_word=$2
2277 echo "$as_me:2277: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2279 if test "${ac_cv_prog_GMAKE+set}" = set; then
2280   echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282   if test -n "$GMAKE"; then
2283   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
2284 else
2285   ac_save_IFS=$IFS; IFS=$ac_path_separator
2286 ac_dummy="$PATH"
2287 for ac_dir in $ac_dummy; do
2288   IFS=$ac_save_IFS
2289   test -z "$ac_dir" && ac_dir=.
2290   $as_executable_p "$ac_dir/$ac_word" || continue
2291 ac_cv_prog_GMAKE="yes"
2292 echo "$as_me:2292: found $ac_dir/$ac_word" >&5
2293 break
2294 done
2295
2296   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
2297 fi
2298 fi
2299 GMAKE=$ac_cv_prog_GMAKE
2300 if test -n "$GMAKE"; then
2301   echo "$as_me:2301: result: $GMAKE" >&5
2302 echo "${ECHO_T}$GMAKE" >&6
2303 else
2304   echo "$as_me:2304: result: no" >&5
2305 echo "${ECHO_T}no" >&6
2306 fi
2307
2308 if test $GMAKE = no; then
2309   # Extract the first word of "make", so it can be a program name with args.
2310 set dummy make; ac_word=$2
2311 echo "$as_me:2311: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2313 if test "${ac_cv_path_MAKE+set}" = set; then
2314   echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316   case $MAKE in
2317   [\\/]* | ?:[\\/]*)
2318   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
2319   ;;
2320   *)
2321   ac_save_IFS=$IFS; IFS=$ac_path_separator
2322 ac_dummy="$PATH"
2323 for ac_dir in $ac_dummy; do
2324   IFS=$ac_save_IFS
2325   test -z "$ac_dir" && ac_dir=.
2326   if $as_executable_p "$ac_dir/$ac_word"; then
2327    ac_cv_path_MAKE="$ac_dir/$ac_word"
2328    echo "$as_me:2328: found $ac_dir/$ac_word" >&5
2329    break
2330 fi
2331 done
2332
2333   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
2334   ;;
2335 esac
2336 fi
2337 MAKE=$ac_cv_path_MAKE
2338
2339 if test -n "$MAKE"; then
2340   echo "$as_me:2340: result: $MAKE" >&5
2341 echo "${ECHO_T}$MAKE" >&6
2342 else
2343   echo "$as_me:2343: result: no" >&5
2344 echo "${ECHO_T}no" >&6
2345 fi
2346
2347 else
2348   # Extract the first word of "gmake", so it can be a program name with args.
2349 set dummy gmake; ac_word=$2
2350 echo "$as_me:2350: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2352 if test "${ac_cv_path_MAKE+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   case $MAKE in
2356   [\\/]* | ?:[\\/]*)
2357   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
2358   ;;
2359   *)
2360   ac_save_IFS=$IFS; IFS=$ac_path_separator
2361 ac_dummy="$PATH"
2362 for ac_dir in $ac_dummy; do
2363   IFS=$ac_save_IFS
2364   test -z "$ac_dir" && ac_dir=.
2365   if $as_executable_p "$ac_dir/$ac_word"; then
2366    ac_cv_path_MAKE="$ac_dir/$ac_word"
2367    echo "$as_me:2367: found $ac_dir/$ac_word" >&5
2368    break
2369 fi
2370 done
2371
2372   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
2373   ;;
2374 esac
2375 fi
2376 MAKE=$ac_cv_path_MAKE
2377
2378 if test -n "$MAKE"; then
2379   echo "$as_me:2379: result: $MAKE" >&5
2380 echo "${ECHO_T}$MAKE" >&6
2381 else
2382   echo "$as_me:2382: result: no" >&5
2383 echo "${ECHO_T}no" >&6
2384 fi
2385
2386 fi
2387 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
2388 if test -z "$makever"; then
2389   { { echo "$as_me:2389: error: GNU Make is not installed.  Please download and install it
2390                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
2391 echo "$as_me: error: GNU Make is not installed.  Please download and install it
2392                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
2393    { (exit 1); exit 1; }; }
2394 fi
2395
2396   echo "$as_me:2396: checking for main in -lltdl" >&5
2397 echo $ECHO_N "checking for main in -lltdl... $ECHO_C" >&6
2398 if test "${ac_cv_lib_ltdl_main+set}" = set; then
2399   echo $ECHO_N "(cached) $ECHO_C" >&6
2400 else
2401   ac_check_lib_save_LIBS=$LIBS
2402 LIBS="-lltdl  $LIBS"
2403 cat >conftest.$ac_ext <<_ACEOF
2404 #line 2404 "configure"
2405 #include "confdefs.h"
2406
2407 #ifdef F77_DUMMY_MAIN
2408 #  ifdef __cplusplus
2409      extern "C"
2410 #  endif
2411    int F77_DUMMY_MAIN() { return 1; }
2412 #endif
2413 int
2414 main ()
2415 {
2416 main ();
2417   ;
2418   return 0;
2419 }
2420 _ACEOF
2421 rm -f conftest.$ac_objext conftest$ac_exeext
2422 if { (eval echo "$as_me:2422: \"$ac_link\"") >&5
2423   (eval $ac_link) 2>&5
2424   ac_status=$?
2425   echo "$as_me:2425: \$? = $ac_status" >&5
2426   (exit $ac_status); } &&
2427          { ac_try='test -s conftest$ac_exeext'
2428   { (eval echo "$as_me:2428: \"$ac_try\"") >&5
2429   (eval $ac_try) 2>&5
2430   ac_status=$?
2431   echo "$as_me:2431: \$? = $ac_status" >&5
2432   (exit $ac_status); }; }; then
2433   ac_cv_lib_ltdl_main=yes
2434 else
2435   echo "$as_me: failed program was:" >&5
2436 cat conftest.$ac_ext >&5
2437 ac_cv_lib_ltdl_main=no
2438 fi
2439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2440 LIBS=$ac_check_lib_save_LIBS
2441 fi
2442 echo "$as_me:2442: result: $ac_cv_lib_ltdl_main" >&5
2443 echo "${ECHO_T}$ac_cv_lib_ltdl_main" >&6
2444 if test $ac_cv_lib_ltdl_main = yes; then
2445   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
2446 else
2447   if test x"$enable_ltdl_install" = xno; then
2448      { echo "$as_me:2448: WARNING: libltdl not installed, but installation disabled" >&5
2449 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
2450    else
2451      enable_ltdl_install=yes
2452    fi
2453
2454 fi
2455
2456   if test x"$enable_ltdl_install" = x"yes"; then
2457     ac_configure_args="$ac_configure_args --enable-ltdl-install"
2458     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
2459     INCLTDL='-I${top_srcdir}/''libltdl'
2460   else
2461     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2462     LIBLTDL="-lltdl"
2463     INCLTDL=
2464   fi
2465
2466 # Check whether --enable-shared or --disable-shared was given.
2467 if test "${enable_shared+set}" = set; then
2468   enableval="$enable_shared"
2469   p=${PACKAGE-default}
2470 case $enableval in
2471 yes) enable_shared=yes ;;
2472 no) enable_shared=no ;;
2473 *)
2474   enable_shared=no
2475   # Look at the argument we got.  We use all the common list separators.
2476   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2477   for pkg in $enableval; do
2478     if test "X$pkg" = "X$p"; then
2479       enable_shared=yes
2480     fi
2481   done
2482   IFS="$ac_save_ifs"
2483   ;;
2484 esac
2485 else
2486   enable_shared=yes
2487 fi;
2488 # Check whether --enable-static or --disable-static was given.
2489 if test "${enable_static+set}" = set; then
2490   enableval="$enable_static"
2491   p=${PACKAGE-default}
2492 case $enableval in
2493 yes) enable_static=yes ;;
2494 no) enable_static=no ;;
2495 *)
2496   enable_static=no
2497   # Look at the argument we got.  We use all the common list separators.
2498   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2499   for pkg in $enableval; do
2500     if test "X$pkg" = "X$p"; then
2501       enable_static=yes
2502     fi
2503   done
2504   IFS="$ac_save_ifs"
2505   ;;
2506 esac
2507 else
2508   enable_static=yes
2509 fi;
2510 # Check whether --enable-fast-install or --disable-fast-install was given.
2511 if test "${enable_fast_install+set}" = set; then
2512   enableval="$enable_fast_install"
2513   p=${PACKAGE-default}
2514 case $enableval in
2515 yes) enable_fast_install=yes ;;
2516 no) enable_fast_install=no ;;
2517 *)
2518   enable_fast_install=no
2519   # Look at the argument we got.  We use all the common list separators.
2520   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2521   for pkg in $enableval; do
2522     if test "X$pkg" = "X$p"; then
2523       enable_fast_install=yes
2524     fi
2525   done
2526   IFS="$ac_save_ifs"
2527   ;;
2528 esac
2529 else
2530   enable_fast_install=yes
2531 fi;
2532 ac_aux_dir=
2533 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2534   if test -f $ac_dir/install-sh; then
2535     ac_aux_dir=$ac_dir
2536     ac_install_sh="$ac_aux_dir/install-sh -c"
2537     break
2538   elif test -f $ac_dir/install.sh; then
2539     ac_aux_dir=$ac_dir
2540     ac_install_sh="$ac_aux_dir/install.sh -c"
2541     break
2542   elif test -f $ac_dir/shtool; then
2543     ac_aux_dir=$ac_dir
2544     ac_install_sh="$ac_aux_dir/shtool install -c"
2545     break
2546   fi
2547 done
2548 if test -z "$ac_aux_dir"; then
2549   { { echo "$as_me:2549: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2550 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2551    { (exit 1); exit 1; }; }
2552 fi
2553 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2554 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2555 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2556
2557 # Make sure we can run config.sub.
2558 $ac_config_sub sun4 >/dev/null 2>&1 ||
2559   { { echo "$as_me:2559: error: cannot run $ac_config_sub" >&5
2560 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2561    { (exit 1); exit 1; }; }
2562
2563 echo "$as_me:2563: checking build system type" >&5
2564 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2565 if test "${ac_cv_build+set}" = set; then
2566   echo $ECHO_N "(cached) $ECHO_C" >&6
2567 else
2568   ac_cv_build_alias=$build_alias
2569 test -z "$ac_cv_build_alias" &&
2570   ac_cv_build_alias=`$ac_config_guess`
2571 test -z "$ac_cv_build_alias" &&
2572   { { echo "$as_me:2572: error: cannot guess build type; you must specify one" >&5
2573 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2574    { (exit 1); exit 1; }; }
2575 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2576   { { echo "$as_me:2576: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2577 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2578    { (exit 1); exit 1; }; }
2579
2580 fi
2581 echo "$as_me:2581: result: $ac_cv_build" >&5
2582 echo "${ECHO_T}$ac_cv_build" >&6
2583 build=$ac_cv_build
2584 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2585 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2586 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2587
2588 echo "$as_me:2588: checking host system type" >&5
2589 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2590 if test "${ac_cv_host+set}" = set; then
2591   echo $ECHO_N "(cached) $ECHO_C" >&6
2592 else
2593   ac_cv_host_alias=$host_alias
2594 test -z "$ac_cv_host_alias" &&
2595   ac_cv_host_alias=$ac_cv_build_alias
2596 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2597   { { echo "$as_me:2597: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2598 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2599    { (exit 1); exit 1; }; }
2600
2601 fi
2602 echo "$as_me:2602: result: $ac_cv_host" >&5
2603 echo "${ECHO_T}$ac_cv_host" >&6
2604 host=$ac_cv_host
2605 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2606 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2607 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2608
2609 # Find the correct PATH separator.  Usually this is `:', but
2610 # DJGPP uses `;' like DOS.
2611 if test "X${PATH_SEPARATOR+set}" != Xset; then
2612   UNAME=${UNAME-`uname 2>/dev/null`}
2613   case X$UNAME in
2614     *-DOS) lt_cv_sys_path_separator=';' ;;
2615     *)     lt_cv_sys_path_separator=':' ;;
2616   esac
2617   PATH_SEPARATOR=$lt_cv_sys_path_separator
2618 fi
2619
2620 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2621 if test "${with_gnu_ld+set}" = set; then
2622   withval="$with_gnu_ld"
2623   test "$withval" = no || with_gnu_ld=yes
2624 else
2625   with_gnu_ld=no
2626 fi;
2627 ac_prog=ld
2628 if test "$GCC" = yes; then
2629   # Check if gcc -print-prog-name=ld gives a path.
2630   echo "$as_me:2630: checking for ld used by GCC" >&5
2631 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2632   case $host in
2633   *-*-mingw*)
2634     # gcc leaves a trailing carriage return which upsets mingw
2635     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2636   *)
2637     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2638   esac
2639   case $ac_prog in
2640     # Accept absolute paths.
2641     [\\/]* | [A-Za-z]:[\\/]*)
2642       re_direlt='/[^/][^/]*/\.\./'
2643       # Canonicalize the path of ld
2644       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2645       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2646         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2647       done
2648       test -z "$LD" && LD="$ac_prog"
2649       ;;
2650   "")
2651     # If it fails, then pretend we aren't using GCC.
2652     ac_prog=ld
2653     ;;
2654   *)
2655     # If it is relative, then search for the first ld in PATH.
2656     with_gnu_ld=unknown
2657     ;;
2658   esac
2659 elif test "$with_gnu_ld" = yes; then
2660   echo "$as_me:2660: checking for GNU ld" >&5
2661 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2662 else
2663   echo "$as_me:2663: checking for non-GNU ld" >&5
2664 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2665 fi
2666 if test "${lt_cv_path_LD+set}" = set; then
2667   echo $ECHO_N "(cached) $ECHO_C" >&6
2668 else
2669   if test -z "$LD"; then
2670   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2671   for ac_dir in $PATH; do
2672     test -z "$ac_dir" && ac_dir=.
2673     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2674       lt_cv_path_LD="$ac_dir/$ac_prog"
2675       # Check to see if the program is GNU ld.  I'd rather use --version,
2676       # but apparently some GNU ld's only accept -v.
2677       # Break only if it was the GNU/non-GNU ld that we prefer.
2678       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2679         test "$with_gnu_ld" != no && break
2680       else
2681         test "$with_gnu_ld" != yes && break
2682       fi
2683     fi
2684   done
2685   IFS="$ac_save_ifs"
2686 else
2687   lt_cv_path_LD="$LD" # Let the user override the test with a path.
2688 fi
2689 fi
2690
2691 LD="$lt_cv_path_LD"
2692 if test -n "$LD"; then
2693   echo "$as_me:2693: result: $LD" >&5
2694 echo "${ECHO_T}$LD" >&6
2695 else
2696   echo "$as_me:2696: result: no" >&5
2697 echo "${ECHO_T}no" >&6
2698 fi
2699 test -z "$LD" && { { echo "$as_me:2699: error: no acceptable ld found in \$PATH" >&5
2700 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2701    { (exit 1); exit 1; }; }
2702 echo "$as_me:2702: checking if the linker ($LD) is GNU ld" >&5
2703 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2704 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2705   echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2708 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2709   lt_cv_prog_gnu_ld=yes
2710 else
2711   lt_cv_prog_gnu_ld=no
2712 fi
2713 fi
2714 echo "$as_me:2714: result: $lt_cv_prog_gnu_ld" >&5
2715 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2716 with_gnu_ld=$lt_cv_prog_gnu_ld
2717
2718 echo "$as_me:2718: checking for $LD option to reload object files" >&5
2719 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2720 if test "${lt_cv_ld_reload_flag+set}" = set; then
2721   echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723   lt_cv_ld_reload_flag='-r'
2724 fi
2725 echo "$as_me:2725: result: $lt_cv_ld_reload_flag" >&5
2726 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2727 reload_flag=$lt_cv_ld_reload_flag
2728 test -n "$reload_flag" && reload_flag=" $reload_flag"
2729
2730 echo "$as_me:2730: checking for BSD-compatible nm" >&5
2731 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2732 if test "${lt_cv_path_NM+set}" = set; then
2733   echo $ECHO_N "(cached) $ECHO_C" >&6
2734 else
2735   if test -n "$NM"; then
2736   # Let the user override the test.
2737   lt_cv_path_NM="$NM"
2738 else
2739   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2740   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2741     test -z "$ac_dir" && ac_dir=.
2742     tmp_nm=$ac_dir/${ac_tool_prefix}nm
2743     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2744       # Check to see if the nm accepts a BSD-compat flag.
2745       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2746       #   nm: unknown option "B" ignored
2747       # Tru64's nm complains that /dev/null is an invalid object file
2748       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2749         lt_cv_path_NM="$tmp_nm -B"
2750         break
2751       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2752         lt_cv_path_NM="$tmp_nm -p"
2753         break
2754       else
2755         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2756         continue # so that we can try to find one that supports BSD flags
2757       fi
2758     fi
2759   done
2760   IFS="$ac_save_ifs"
2761   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2762 fi
2763 fi
2764
2765 NM="$lt_cv_path_NM"
2766 echo "$as_me:2766: result: $NM" >&5
2767 echo "${ECHO_T}$NM" >&6
2768
2769 echo "$as_me:2769: checking whether ln -s works" >&5
2770 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2771 LN_S=$as_ln_s
2772 if test "$LN_S" = "ln -s"; then
2773   echo "$as_me:2773: result: yes" >&5
2774 echo "${ECHO_T}yes" >&6
2775 else
2776   echo "$as_me:2776: result: no, using $LN_S" >&5
2777 echo "${ECHO_T}no, using $LN_S" >&6
2778 fi
2779
2780 echo "$as_me:2780: checking how to recognise dependant libraries" >&5
2781 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2782 if test "${lt_cv_deplibs_check_method+set}" = set; then
2783   echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
2785   lt_cv_file_magic_cmd='$MAGIC_CMD'
2786 lt_cv_file_magic_test_file=
2787 lt_cv_deplibs_check_method='unknown'
2788 # Need to set the preceding variable on all platforms that support
2789 # interlibrary dependencies.
2790 # 'none' -- dependencies not supported.
2791 # `unknown' -- same as none, but documents that we really don't know.
2792 # 'pass_all' -- all dependencies passed with no checks.
2793 # 'test_compile' -- check by making test program.
2794 # 'file_magic [[regex]]' -- check by looking for files in library path
2795 # which responds to the $file_magic_cmd with a given egrep regex.
2796 # If you have `file' or equivalent on your system and you're not sure
2797 # whether `pass_all' will *always* work, you probably want this one.
2798
2799 case $host_os in
2800 aix4* | aix5*)
2801   lt_cv_deplibs_check_method=pass_all
2802   ;;
2803
2804 beos*)
2805   lt_cv_deplibs_check_method=pass_all
2806   ;;
2807
2808 bsdi4*)
2809   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2810   lt_cv_file_magic_cmd='/usr/bin/file -L'
2811   lt_cv_file_magic_test_file=/shlib/libc.so
2812   ;;
2813
2814 cygwin* | mingw* | pw32*)
2815   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2816   lt_cv_file_magic_cmd='$OBJDUMP -f'
2817   ;;
2818
2819 darwin* | rhapsody*)
2820   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2821   lt_cv_file_magic_cmd='/usr/bin/file -L'
2822   case "$host_os" in
2823   rhapsody* | darwin1.[012])
2824     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2825     ;;
2826   *) # Darwin 1.3 on
2827     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2828     ;;
2829   esac
2830   ;;
2831
2832 freebsd*)
2833   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2834     case $host_cpu in
2835     i*86 )
2836       # Not sure whether the presence of OpenBSD here was a mistake.
2837       # Let's accept both of them until this is cleared up.
2838       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2839       lt_cv_file_magic_cmd=/usr/bin/file
2840       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2841       ;;
2842     esac
2843   else
2844     lt_cv_deplibs_check_method=pass_all
2845   fi
2846   ;;
2847
2848 gnu*)
2849   lt_cv_deplibs_check_method=pass_all
2850   ;;
2851
2852 hpux10.20*|hpux11*)
2853   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2854   lt_cv_file_magic_cmd=/usr/bin/file
2855   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2856   ;;
2857
2858 irix5* | irix6*)
2859   case $host_os in
2860   irix5*)
2861     # this will be overridden with pass_all, but let us keep it just in case
2862     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2863     ;;
2864   *)
2865     case $LD in
2866     *-32|*"-32 ") libmagic=32-bit;;
2867     *-n32|*"-n32 ") libmagic=N32;;
2868     *-64|*"-64 ") libmagic=64-bit;;
2869     *) libmagic=never-match;;
2870     esac
2871     # this will be overridden with pass_all, but let us keep it just in case
2872     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2873     ;;
2874   esac
2875   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2876   lt_cv_deplibs_check_method=pass_all
2877   ;;
2878
2879 # This must be Linux ELF.
2880 linux-gnu*)
2881   case $host_cpu in
2882   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
2883     lt_cv_deplibs_check_method=pass_all ;;
2884   *)
2885     # glibc up to 2.1.1 does not perform some relocations on ARM
2886     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2887   esac
2888   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2889   ;;
2890
2891 netbsd*)
2892   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2893     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2894   else
2895     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2896   fi
2897   ;;
2898
2899 newos6*)
2900   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2901   lt_cv_file_magic_cmd=/usr/bin/file
2902   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2903   ;;
2904
2905 openbsd*)
2906   lt_cv_file_magic_cmd=/usr/bin/file
2907   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2908   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2909     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2910   else
2911     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2912   fi
2913   ;;
2914
2915 osf3* | osf4* | osf5*)
2916   # this will be overridden with pass_all, but let us keep it just in case
2917   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2918   lt_cv_file_magic_test_file=/shlib/libc.so
2919   lt_cv_deplibs_check_method=pass_all
2920   ;;
2921
2922 sco3.2v5*)
2923   lt_cv_deplibs_check_method=pass_all
2924   ;;
2925
2926 solaris*)
2927   lt_cv_deplibs_check_method=pass_all
2928   lt_cv_file_magic_test_file=/lib/libc.so
2929   ;;
2930
2931 sysv5uw[78]* | sysv4*uw2*)
2932   lt_cv_deplibs_check_method=pass_all
2933   ;;
2934
2935 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2936   case $host_vendor in
2937   motorola)
2938     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]'
2939     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2940     ;;
2941   ncr)
2942     lt_cv_deplibs_check_method=pass_all
2943     ;;
2944   sequent)
2945     lt_cv_file_magic_cmd='/bin/file'
2946     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2947     ;;
2948   sni)
2949     lt_cv_file_magic_cmd='/bin/file'
2950     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2951     lt_cv_file_magic_test_file=/lib/libc.so
2952     ;;
2953   esac
2954   ;;
2955 esac
2956
2957 fi
2958 echo "$as_me:2958: result: $lt_cv_deplibs_check_method" >&5
2959 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2960 file_magic_cmd=$lt_cv_file_magic_cmd
2961 deplibs_check_method=$lt_cv_deplibs_check_method
2962
2963 # Check for command to grab the raw symbol name followed by C symbol from nm.
2964 echo "$as_me:2964: checking command to parse $NM output" >&5
2965 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2966 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2967   echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969
2970 # These are sane defaults that work on at least a few old systems.
2971 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
2972
2973 # Character class describing NM global symbol codes.
2974 symcode='[BCDEGRST]'
2975
2976 # Regexp to match symbols that can be accessed directly from C.
2977 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2978
2979 # Transform the above into a raw symbol and a C symbol.
2980 symxfrm='\1 \2\3 \3'
2981
2982 # Transform an extracted symbol line into a proper C declaration
2983 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2984
2985 # Transform an extracted symbol line into symbol name and symbol address
2986 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'"
2987
2988 # Define system-specific variables.
2989 case $host_os in
2990 aix*)
2991   symcode='[BCDT]'
2992   ;;
2993 cygwin* | mingw* | pw32*)
2994   symcode='[ABCDGISTW]'
2995   ;;
2996 hpux*) # Its linker distinguishes data from code symbols
2997   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2998   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'"
2999   ;;
3000 irix*)
3001   symcode='[BCDEGRST]'
3002   ;;
3003 solaris* | sysv5*)
3004   symcode='[BDT]'
3005   ;;
3006 sysv4)
3007   symcode='[DFNSTU]'
3008   ;;
3009 esac
3010
3011 # Handle CRLF in mingw tool chain
3012 opt_cr=
3013 case $host_os in
3014 mingw*)
3015   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3016   ;;
3017 esac
3018
3019 # If we're using GNU nm, then use its standard symbol codes.
3020 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3021   symcode='[ABCDGISTW]'
3022 fi
3023
3024 # Try without a prefix undercore, then with it.
3025 for ac_symprfx in "" "_"; do
3026
3027   # Write the raw and C identifiers.
3028 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3029
3030   # Check to see that the pipe works correctly.
3031   pipe_works=no
3032   rm -f conftest*
3033   cat > conftest.$ac_ext <<EOF
3034 #ifdef __cplusplus
3035 extern "C" {
3036 #endif
3037 char nm_test_var;
3038 void nm_test_func(){}
3039 #ifdef __cplusplus
3040 }
3041 #endif
3042 int main(){nm_test_var='a';nm_test_func();return(0);}
3043 EOF
3044
3045   if { (eval echo "$as_me:3045: \"$ac_compile\"") >&5
3046   (eval $ac_compile) 2>&5
3047   ac_status=$?
3048   echo "$as_me:3048: \$? = $ac_status" >&5
3049   (exit $ac_status); }; then
3050     # Now try to grab the symbols.
3051     nlist=conftest.nm
3052     if { (eval echo "$as_me:3052: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3053   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3054   ac_status=$?
3055   echo "$as_me:3055: \$? = $ac_status" >&5
3056   (exit $ac_status); } && test -s "$nlist"; then
3057       # Try sorting and uniquifying the output.
3058       if sort "$nlist" | uniq > "$nlist"T; then
3059         mv -f "$nlist"T "$nlist"
3060       else
3061         rm -f "$nlist"T
3062       fi
3063
3064       # Make sure that we snagged all the symbols we need.
3065       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3066         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3067           cat <<EOF > conftest.$ac_ext
3068 #ifdef __cplusplus
3069 extern "C" {
3070 #endif
3071
3072 EOF
3073           # Now generate the symbol file.
3074           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3075
3076           cat <<EOF >> conftest.$ac_ext
3077 #if defined (__STDC__) && __STDC__
3078 # define lt_ptr void *
3079 #else
3080 # define lt_ptr char *
3081 # define const
3082 #endif
3083
3084 /* The mapping between symbol names and symbols. */
3085 const struct {
3086   const char *name;
3087   lt_ptr address;
3088 }
3089 lt_preloaded_symbols[] =
3090 {
3091 EOF
3092           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3093           cat <<\EOF >> conftest.$ac_ext
3094   {0, (lt_ptr) 0}
3095 };
3096
3097 #ifdef __cplusplus
3098 }
3099 #endif
3100 EOF
3101           # Now try linking the two files.
3102           mv conftest.$ac_objext conftstm.$ac_objext
3103           save_LIBS="$LIBS"
3104           save_CFLAGS="$CFLAGS"
3105           LIBS="conftstm.$ac_objext"
3106           CFLAGS="$CFLAGS$no_builtin_flag"
3107           if { (eval echo "$as_me:3107: \"$ac_link\"") >&5
3108   (eval $ac_link) 2>&5
3109   ac_status=$?
3110   echo "$as_me:3110: \$? = $ac_status" >&5
3111   (exit $ac_status); } && test -s conftest; then
3112             pipe_works=yes
3113           fi
3114           LIBS="$save_LIBS"
3115           CFLAGS="$save_CFLAGS"
3116         else
3117           echo "cannot find nm_test_func in $nlist" >&5
3118         fi
3119       else
3120         echo "cannot find nm_test_var in $nlist" >&5
3121       fi
3122     else
3123       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3124     fi
3125   else
3126     echo "$progname: failed program was:" >&5
3127     cat conftest.$ac_ext >&5
3128   fi
3129   rm -f conftest* conftst*
3130
3131   # Do not use the global_symbol_pipe unless it works.
3132   if test "$pipe_works" = yes; then
3133     break
3134   else
3135     lt_cv_sys_global_symbol_pipe=
3136   fi
3137 done
3138
3139 fi
3140
3141 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3142 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3143   global_symbol_to_cdecl=
3144   global_symbol_to_c_name_address=
3145 else
3146   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3147   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3148 fi
3149 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3150 then
3151   echo "$as_me:3151: result: failed" >&5
3152 echo "${ECHO_T}failed" >&6
3153 else
3154   echo "$as_me:3154: result: ok" >&5
3155 echo "${ECHO_T}ok" >&6
3156 fi
3157
3158 echo "$as_me:3158: checking for ANSI C header files" >&5
3159 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3160 if test "${ac_cv_header_stdc+set}" = set; then
3161   echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163   cat >conftest.$ac_ext <<_ACEOF
3164 #line 3164 "configure"
3165 #include "confdefs.h"
3166 #include <stdlib.h>
3167 #include <stdarg.h>
3168 #include <string.h>
3169 #include <float.h>
3170
3171 _ACEOF
3172 if { (eval echo "$as_me:3172: \"$ac_cpp conftest.$ac_ext\"") >&5
3173   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3174   ac_status=$?
3175   egrep -v '^ *\+' conftest.er1 >conftest.err
3176   rm -f conftest.er1
3177   cat conftest.err >&5
3178   echo "$as_me:3178: \$? = $ac_status" >&5
3179   (exit $ac_status); } >/dev/null; then
3180   if test -s conftest.err; then
3181     ac_cpp_err=$ac_c_preproc_warn_flag
3182   else
3183     ac_cpp_err=
3184   fi
3185 else
3186   ac_cpp_err=yes
3187 fi
3188 if test -z "$ac_cpp_err"; then
3189   ac_cv_header_stdc=yes
3190 else
3191   echo "$as_me: failed program was:" >&5
3192   cat conftest.$ac_ext >&5
3193   ac_cv_header_stdc=no
3194 fi
3195 rm -f conftest.err conftest.$ac_ext
3196
3197 if test $ac_cv_header_stdc = yes; then
3198   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3199   cat >conftest.$ac_ext <<_ACEOF
3200 #line 3200 "configure"
3201 #include "confdefs.h"
3202 #include <string.h>
3203
3204 _ACEOF
3205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3206   egrep "memchr" >/dev/null 2>&1; then
3207   :
3208 else
3209   ac_cv_header_stdc=no
3210 fi
3211 rm -f conftest*
3212
3213 fi
3214
3215 if test $ac_cv_header_stdc = yes; then
3216   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3217   cat >conftest.$ac_ext <<_ACEOF
3218 #line 3218 "configure"
3219 #include "confdefs.h"
3220 #include <stdlib.h>
3221
3222 _ACEOF
3223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3224   egrep "free" >/dev/null 2>&1; then
3225   :
3226 else
3227   ac_cv_header_stdc=no
3228 fi
3229 rm -f conftest*
3230
3231 fi
3232
3233 if test $ac_cv_header_stdc = yes; then
3234   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3235   if test "$cross_compiling" = yes; then
3236   :
3237 else
3238   cat >conftest.$ac_ext <<_ACEOF
3239 #line 3239 "configure"
3240 #include "confdefs.h"
3241 #include <ctype.h>
3242 #if ((' ' & 0x0FF) == 0x020)
3243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3245 #else
3246 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3247                      || ('j' <= (c) && (c) <= 'r') \
3248                      || ('s' <= (c) && (c) <= 'z'))
3249 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3250 #endif
3251
3252 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3253 int
3254 main ()
3255 {
3256   int i;
3257   for (i = 0; i < 256; i++)
3258     if (XOR (islower (i), ISLOWER (i))
3259         || toupper (i) != TOUPPER (i))
3260       exit(2);
3261   exit (0);
3262 }
3263 _ACEOF
3264 rm -f conftest$ac_exeext
3265 if { (eval echo "$as_me:3265: \"$ac_link\"") >&5
3266   (eval $ac_link) 2>&5
3267   ac_status=$?
3268   echo "$as_me:3268: \$? = $ac_status" >&5
3269   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3270   { (eval echo "$as_me:3270: \"$ac_try\"") >&5
3271   (eval $ac_try) 2>&5
3272   ac_status=$?
3273   echo "$as_me:3273: \$? = $ac_status" >&5
3274   (exit $ac_status); }; }; then
3275   :
3276 else
3277   echo "$as_me: program exited with status $ac_status" >&5
3278 echo "$as_me: failed program was:" >&5
3279 cat conftest.$ac_ext >&5
3280 ac_cv_header_stdc=no
3281 fi
3282 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3283 fi
3284 fi
3285 fi
3286 echo "$as_me:3286: result: $ac_cv_header_stdc" >&5
3287 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3288 if test $ac_cv_header_stdc = yes; then
3289
3290 cat >>confdefs.h <<\_ACEOF
3291 #define STDC_HEADERS 1
3292 _ACEOF
3293
3294 fi
3295
3296 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3297
3298 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3299                   inttypes.h stdint.h unistd.h
3300 do
3301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3302 echo "$as_me:3302: checking for $ac_header" >&5
3303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3305   echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307   cat >conftest.$ac_ext <<_ACEOF
3308 #line 3308 "configure"
3309 #include "confdefs.h"
3310 $ac_includes_default
3311
3312 #include <$ac_header>
3313 _ACEOF
3314 rm -f conftest.$ac_objext
3315 if { (eval echo "$as_me:3315: \"$ac_compile\"") >&5
3316   (eval $ac_compile) 2>&5
3317   ac_status=$?
3318   echo "$as_me:3318: \$? = $ac_status" >&5
3319   (exit $ac_status); } &&
3320          { ac_try='test -s conftest.$ac_objext'
3321   { (eval echo "$as_me:3321: \"$ac_try\"") >&5
3322   (eval $ac_try) 2>&5
3323   ac_status=$?
3324   echo "$as_me:3324: \$? = $ac_status" >&5
3325   (exit $ac_status); }; }; then
3326   eval "$as_ac_Header=yes"
3327 else
3328   echo "$as_me: failed program was:" >&5
3329 cat conftest.$ac_ext >&5
3330 eval "$as_ac_Header=no"
3331 fi
3332 rm -f conftest.$ac_objext conftest.$ac_ext
3333 fi
3334 echo "$as_me:3334: result: `eval echo '${'$as_ac_Header'}'`" >&5
3335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3337   cat >>confdefs.h <<_ACEOF
3338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3339 _ACEOF
3340
3341 fi
3342
3343 done
3344
3345 for ac_header in dlfcn.h
3346 do
3347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3349   echo "$as_me:3349: checking for $ac_header" >&5
3350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3352   echo $ECHO_N "(cached) $ECHO_C" >&6
3353 fi
3354 echo "$as_me:3354: result: `eval echo '${'$as_ac_Header'}'`" >&5
3355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3356 else
3357   # Is the header compilable?
3358 echo "$as_me:3358: checking $ac_header usability" >&5
3359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3360 cat >conftest.$ac_ext <<_ACEOF
3361 #line 3361 "configure"
3362 #include "confdefs.h"
3363 $ac_includes_default
3364 #include <$ac_header>
3365 _ACEOF
3366 rm -f conftest.$ac_objext
3367 if { (eval echo "$as_me:3367: \"$ac_compile\"") >&5
3368   (eval $ac_compile) 2>&5
3369   ac_status=$?
3370   echo "$as_me:3370: \$? = $ac_status" >&5
3371   (exit $ac_status); } &&
3372          { ac_try='test -s conftest.$ac_objext'
3373   { (eval echo "$as_me:3373: \"$ac_try\"") >&5
3374   (eval $ac_try) 2>&5
3375   ac_status=$?
3376   echo "$as_me:3376: \$? = $ac_status" >&5
3377   (exit $ac_status); }; }; then
3378   ac_header_compiler=yes
3379 else
3380   echo "$as_me: failed program was:" >&5
3381 cat conftest.$ac_ext >&5
3382 ac_header_compiler=no
3383 fi
3384 rm -f conftest.$ac_objext conftest.$ac_ext
3385 echo "$as_me:3385: result: $ac_header_compiler" >&5
3386 echo "${ECHO_T}$ac_header_compiler" >&6
3387
3388 # Is the header present?
3389 echo "$as_me:3389: checking $ac_header presence" >&5
3390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3391 cat >conftest.$ac_ext <<_ACEOF
3392 #line 3392 "configure"
3393 #include "confdefs.h"
3394 #include <$ac_header>
3395 _ACEOF
3396 if { (eval echo "$as_me:3396: \"$ac_cpp conftest.$ac_ext\"") >&5
3397   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3398   ac_status=$?
3399   egrep -v '^ *\+' conftest.er1 >conftest.err
3400   rm -f conftest.er1
3401   cat conftest.err >&5
3402   echo "$as_me:3402: \$? = $ac_status" >&5
3403   (exit $ac_status); } >/dev/null; then
3404   if test -s conftest.err; then
3405     ac_cpp_err=$ac_c_preproc_warn_flag
3406   else
3407     ac_cpp_err=
3408   fi
3409 else
3410   ac_cpp_err=yes
3411 fi
3412 if test -z "$ac_cpp_err"; then
3413   ac_header_preproc=yes
3414 else
3415   echo "$as_me: failed program was:" >&5
3416   cat conftest.$ac_ext >&5
3417   ac_header_preproc=no
3418 fi
3419 rm -f conftest.err conftest.$ac_ext
3420 echo "$as_me:3420: result: $ac_header_preproc" >&5
3421 echo "${ECHO_T}$ac_header_preproc" >&6
3422
3423 # So?  What about this header?
3424 case $ac_header_compiler:$ac_header_preproc in
3425   yes:no )
3426     { echo "$as_me:3426: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3428     { echo "$as_me:3428: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3430   no:yes )
3431     { echo "$as_me:3431: WARNING: $ac_header: present but cannot be compiled." >&5
3432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
3433     { echo "$as_me:3433: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3435     { echo "$as_me:3435: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3437 esac
3438 echo "$as_me:3438: checking for $ac_header" >&5
3439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3441   echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443   eval "$as_ac_Header=$ac_header_preproc"
3444 fi
3445 echo "$as_me:3445: result: `eval echo '${'$as_ac_Header'}'`" >&5
3446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3447
3448 fi
3449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3450   cat >>confdefs.h <<_ACEOF
3451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3452 _ACEOF
3453
3454 fi
3455
3456 done
3457
3458 # Only perform the check for file, if the check method requires it
3459 case $deplibs_check_method in
3460 file_magic*)
3461   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3462     echo "$as_me:3462: checking for ${ac_tool_prefix}file" >&5
3463 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3464 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3465   echo $ECHO_N "(cached) $ECHO_C" >&6
3466 else
3467   case $MAGIC_CMD in
3468   /*)
3469   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3470   ;;
3471   ?:/*)
3472   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3473   ;;
3474   *)
3475   ac_save_MAGIC_CMD="$MAGIC_CMD"
3476   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3477   ac_dummy="/usr/bin:$PATH"
3478   for ac_dir in $ac_dummy; do
3479     test -z "$ac_dir" && ac_dir=.
3480     if test -f $ac_dir/${ac_tool_prefix}file; then
3481       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3482       if test -n "$file_magic_test_file"; then
3483         case $deplibs_check_method in
3484         "file_magic "*)
3485           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3486           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3487           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3488             egrep "$file_magic_regex" > /dev/null; then
3489             :
3490           else
3491             cat <<EOF 1>&2
3492
3493 *** Warning: the command libtool uses to detect shared libraries,
3494 *** $file_magic_cmd, produces output that libtool cannot recognize.
3495 *** The result is that libtool may fail to recognize shared libraries
3496 *** as such.  This will affect the creation of libtool libraries that
3497 *** depend on shared libraries, but programs linked with such libtool
3498 *** libraries will work regardless of this problem.  Nevertheless, you
3499 *** may want to report the problem to your system manager and/or to
3500 *** bug-libtool@gnu.org
3501
3502 EOF
3503           fi ;;
3504         esac
3505       fi
3506       break
3507     fi
3508   done
3509   IFS="$ac_save_ifs"
3510   MAGIC_CMD="$ac_save_MAGIC_CMD"
3511   ;;
3512 esac
3513 fi
3514
3515 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3516 if test -n "$MAGIC_CMD"; then
3517   echo "$as_me:3517: result: $MAGIC_CMD" >&5
3518 echo "${ECHO_T}$MAGIC_CMD" >&6
3519 else
3520   echo "$as_me:3520: result: no" >&5
3521 echo "${ECHO_T}no" >&6
3522 fi
3523
3524 if test -z "$lt_cv_path_MAGIC_CMD"; then
3525   if test -n "$ac_tool_prefix"; then
3526     echo "$as_me:3526: checking for file" >&5
3527 echo $ECHO_N "checking for file... $ECHO_C" >&6
3528 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3529   echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531   case $MAGIC_CMD in
3532   /*)
3533   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3534   ;;
3535   ?:/*)
3536   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3537   ;;
3538   *)
3539   ac_save_MAGIC_CMD="$MAGIC_CMD"
3540   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3541   ac_dummy="/usr/bin:$PATH"
3542   for ac_dir in $ac_dummy; do
3543     test -z "$ac_dir" && ac_dir=.
3544     if test -f $ac_dir/file; then
3545       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3546       if test -n "$file_magic_test_file"; then
3547         case $deplibs_check_method in
3548         "file_magic "*)
3549           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3550           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3551           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3552             egrep "$file_magic_regex" > /dev/null; then
3553             :
3554           else
3555             cat <<EOF 1>&2
3556
3557 *** Warning: the command libtool uses to detect shared libraries,
3558 *** $file_magic_cmd, produces output that libtool cannot recognize.
3559 *** The result is that libtool may fail to recognize shared libraries
3560 *** as such.  This will affect the creation of libtool libraries that
3561 *** depend on shared libraries, but programs linked with such libtool
3562 *** libraries will work regardless of this problem.  Nevertheless, you
3563 *** may want to report the problem to your system manager and/or to
3564 *** bug-libtool@gnu.org
3565
3566 EOF
3567           fi ;;
3568         esac
3569       fi
3570       break
3571     fi
3572   done
3573   IFS="$ac_save_ifs"
3574   MAGIC_CMD="$ac_save_MAGIC_CMD"
3575   ;;
3576 esac
3577 fi
3578
3579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3580 if test -n "$MAGIC_CMD"; then
3581   echo "$as_me:3581: result: $MAGIC_CMD" >&5
3582 echo "${ECHO_T}$MAGIC_CMD" >&6
3583 else
3584   echo "$as_me:3584: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3586 fi
3587
3588   else
3589     MAGIC_CMD=:
3590   fi
3591 fi
3592
3593   fi
3594   ;;
3595 esac
3596
3597 if test -n "$ac_tool_prefix"; then
3598   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3599 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3600 echo "$as_me:3600: checking for $ac_word" >&5
3601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3602 if test "${ac_cv_prog_RANLIB+set}" = set; then
3603   echo $ECHO_N "(cached) $ECHO_C" >&6
3604 else
3605   if test -n "$RANLIB"; then
3606   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3607 else
3608   ac_save_IFS=$IFS; IFS=$ac_path_separator
3609 ac_dummy="$PATH"
3610 for ac_dir in $ac_dummy; do
3611   IFS=$ac_save_IFS
3612   test -z "$ac_dir" && ac_dir=.
3613   $as_executable_p "$ac_dir/$ac_word" || continue
3614 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3615 echo "$as_me:3615: found $ac_dir/$ac_word" >&5
3616 break
3617 done
3618
3619 fi
3620 fi
3621 RANLIB=$ac_cv_prog_RANLIB
3622 if test -n "$RANLIB"; then
3623   echo "$as_me:3623: result: $RANLIB" >&5
3624 echo "${ECHO_T}$RANLIB" >&6
3625 else
3626   echo "$as_me:3626: result: no" >&5
3627 echo "${ECHO_T}no" >&6
3628 fi
3629
3630 fi
3631 if test -z "$ac_cv_prog_RANLIB"; then
3632   ac_ct_RANLIB=$RANLIB
3633   # Extract the first word of "ranlib", so it can be a program name with args.
3634 set dummy ranlib; ac_word=$2
3635 echo "$as_me:3635: checking for $ac_word" >&5
3636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3637 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3638   echo $ECHO_N "(cached) $ECHO_C" >&6
3639 else
3640   if test -n "$ac_ct_RANLIB"; then
3641   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3642 else
3643   ac_save_IFS=$IFS; IFS=$ac_path_separator
3644 ac_dummy="$PATH"
3645 for ac_dir in $ac_dummy; do
3646   IFS=$ac_save_IFS
3647   test -z "$ac_dir" && ac_dir=.
3648   $as_executable_p "$ac_dir/$ac_word" || continue
3649 ac_cv_prog_ac_ct_RANLIB="ranlib"
3650 echo "$as_me:3650: found $ac_dir/$ac_word" >&5
3651 break
3652 done
3653
3654   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3655 fi
3656 fi
3657 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3658 if test -n "$ac_ct_RANLIB"; then
3659   echo "$as_me:3659: result: $ac_ct_RANLIB" >&5
3660 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3661 else
3662   echo "$as_me:3662: result: no" >&5
3663 echo "${ECHO_T}no" >&6
3664 fi
3665
3666   RANLIB=$ac_ct_RANLIB
3667 else
3668   RANLIB="$ac_cv_prog_RANLIB"
3669 fi
3670
3671 if test -n "$ac_tool_prefix"; then
3672   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3673 set dummy ${ac_tool_prefix}strip; ac_word=$2
3674 echo "$as_me:3674: checking for $ac_word" >&5
3675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3676 if test "${ac_cv_prog_STRIP+set}" = set; then
3677   echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679   if test -n "$STRIP"; then
3680   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3681 else
3682   ac_save_IFS=$IFS; IFS=$ac_path_separator
3683 ac_dummy="$PATH"
3684 for ac_dir in $ac_dummy; do
3685   IFS=$ac_save_IFS
3686   test -z "$ac_dir" && ac_dir=.
3687   $as_executable_p "$ac_dir/$ac_word" || continue
3688 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3689 echo "$as_me:3689: found $ac_dir/$ac_word" >&5
3690 break
3691 done
3692
3693 fi
3694 fi
3695 STRIP=$ac_cv_prog_STRIP
3696 if test -n "$STRIP"; then
3697   echo "$as_me:3697: result: $STRIP" >&5
3698 echo "${ECHO_T}$STRIP" >&6
3699 else
3700   echo "$as_me:3700: result: no" >&5
3701 echo "${ECHO_T}no" >&6
3702 fi
3703
3704 fi
3705 if test -z "$ac_cv_prog_STRIP"; then
3706   ac_ct_STRIP=$STRIP
3707   # Extract the first word of "strip", so it can be a program name with args.
3708 set dummy strip; ac_word=$2
3709 echo "$as_me:3709: checking for $ac_word" >&5
3710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3711 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3712   echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714   if test -n "$ac_ct_STRIP"; then
3715   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3716 else
3717   ac_save_IFS=$IFS; IFS=$ac_path_separator
3718 ac_dummy="$PATH"
3719 for ac_dir in $ac_dummy; do
3720   IFS=$ac_save_IFS
3721   test -z "$ac_dir" && ac_dir=.
3722   $as_executable_p "$ac_dir/$ac_word" || continue
3723 ac_cv_prog_ac_ct_STRIP="strip"
3724 echo "$as_me:3724: found $ac_dir/$ac_word" >&5
3725 break
3726 done
3727
3728   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3729 fi
3730 fi
3731 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3732 if test -n "$ac_ct_STRIP"; then
3733   echo "$as_me:3733: result: $ac_ct_STRIP" >&5
3734 echo "${ECHO_T}$ac_ct_STRIP" >&6
3735 else
3736   echo "$as_me:3736: result: no" >&5
3737 echo "${ECHO_T}no" >&6
3738 fi
3739
3740   STRIP=$ac_ct_STRIP
3741 else
3742   STRIP="$ac_cv_prog_STRIP"
3743 fi
3744
3745 enable_dlopen=yes
3746 enable_win32_dll=no
3747
3748 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3749 if test "${enable_libtool_lock+set}" = set; then
3750   enableval="$enable_libtool_lock"
3751
3752 fi;
3753 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3754
3755 # Some flags need to be propagated to the compiler or linker for good
3756 # libtool support.
3757 case $host in
3758 *-*-irix6*)
3759   # Find out which ABI we are using.
3760   echo '#line 3760 "configure"' > conftest.$ac_ext
3761   if { (eval echo "$as_me:3761: \"$ac_compile\"") >&5
3762   (eval $ac_compile) 2>&5
3763   ac_status=$?
3764   echo "$as_me:3764: \$? = $ac_status" >&5
3765   (exit $ac_status); }; then
3766     case `/usr/bin/file conftest.$ac_objext` in
3767     *32-bit*)
3768       LD="${LD-ld} -32"
3769       ;;
3770     *N32*)
3771       LD="${LD-ld} -n32"
3772       ;;
3773     *64-bit*)
3774       LD="${LD-ld} -64"
3775       ;;
3776     esac
3777   fi
3778   rm -rf conftest*
3779   ;;
3780
3781 *-*-sco3.2v5*)
3782   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3783   SAVE_CFLAGS="$CFLAGS"
3784   CFLAGS="$CFLAGS -belf"
3785   echo "$as_me:3785: checking whether the C compiler needs -belf" >&5
3786 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3787 if test "${lt_cv_cc_needs_belf+set}" = set; then
3788   echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790
3791      ac_ext=c
3792 ac_cpp='$CPP $CPPFLAGS'
3793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796
3797      cat >conftest.$ac_ext <<_ACEOF
3798 #line 3798 "configure"
3799 #include "confdefs.h"
3800
3801 #ifdef F77_DUMMY_MAIN
3802 #  ifdef __cplusplus
3803      extern "C"
3804 #  endif
3805    int F77_DUMMY_MAIN() { return 1; }
3806 #endif
3807 int
3808 main ()
3809 {
3810
3811   ;
3812   return 0;
3813 }
3814 _ACEOF
3815 rm -f conftest.$ac_objext conftest$ac_exeext
3816 if { (eval echo "$as_me:3816: \"$ac_link\"") >&5
3817   (eval $ac_link) 2>&5
3818   ac_status=$?
3819   echo "$as_me:3819: \$? = $ac_status" >&5
3820   (exit $ac_status); } &&
3821          { ac_try='test -s conftest$ac_exeext'
3822   { (eval echo "$as_me:3822: \"$ac_try\"") >&5
3823   (eval $ac_try) 2>&5
3824   ac_status=$?
3825   echo "$as_me:3825: \$? = $ac_status" >&5
3826   (exit $ac_status); }; }; then
3827   lt_cv_cc_needs_belf=yes
3828 else
3829   echo "$as_me: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3831 lt_cv_cc_needs_belf=no
3832 fi
3833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3834      ac_ext=c
3835 ac_cpp='$CPP $CPPFLAGS'
3836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3839
3840 fi
3841 echo "$as_me:3841: result: $lt_cv_cc_needs_belf" >&5
3842 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3843   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3844     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3845     CFLAGS="$SAVE_CFLAGS"
3846   fi
3847   ;;
3848
3849 esac
3850
3851 # Sed substitution that helps us do robust quoting.  It backslashifies
3852 # metacharacters that are still active within double-quoted strings.
3853 Xsed='sed -e s/^X//'
3854 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3855
3856 # Same as above, but do not quote variable references.
3857 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3858
3859 # Sed substitution to delay expansion of an escaped shell variable in a
3860 # double_quote_subst'ed string.
3861 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3862
3863 # Constants:
3864 rm="rm -f"
3865
3866 # Global variables:
3867 default_ofile=libtool
3868 can_build_shared=yes
3869
3870 # All known linkers require a `.a' archive for static linking (except M$VC,
3871 # which needs '.lib').
3872 libext=a
3873 ltmain="$ac_aux_dir/ltmain.sh"
3874 ofile="$default_ofile"
3875 with_gnu_ld="$lt_cv_prog_gnu_ld"
3876 need_locks="$enable_libtool_lock"
3877
3878 old_CC="$CC"
3879 old_CFLAGS="$CFLAGS"
3880
3881 # Set sane defaults for various variables
3882 test -z "$AR" && AR=ar
3883 test -z "$AR_FLAGS" && AR_FLAGS=cru
3884 test -z "$AS" && AS=as
3885 test -z "$CC" && CC=cc
3886 test -z "$DLLTOOL" && DLLTOOL=dlltool
3887 test -z "$LD" && LD=ld
3888 test -z "$LN_S" && LN_S="ln -s"
3889 test -z "$MAGIC_CMD" && MAGIC_CMD=file
3890 test -z "$NM" && NM=nm
3891 test -z "$OBJDUMP" && OBJDUMP=objdump
3892 test -z "$RANLIB" && RANLIB=:
3893 test -z "$STRIP" && STRIP=:
3894 test -z "$ac_objext" && ac_objext=o
3895
3896 if test x"$host" != x"$build"; then
3897   ac_tool_prefix=${host_alias}-
3898 else
3899   ac_tool_prefix=
3900 fi
3901
3902 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3903 case $host_os in
3904 linux-gnu*) ;;
3905 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3906 esac
3907
3908 case $host_os in
3909 aix3*)
3910   # AIX sometimes has problems with the GCC collect2 program.  For some
3911   # reason, if we set the COLLECT_NAMES environment variable, the problems
3912   # vanish in a puff of smoke.
3913   if test "X${COLLECT_NAMES+set}" != Xset; then
3914     COLLECT_NAMES=
3915     export COLLECT_NAMES
3916   fi
3917   ;;
3918 esac
3919
3920 # Determine commands to create old-style static archives.
3921 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3922 old_postinstall_cmds='chmod 644 $oldlib'
3923 old_postuninstall_cmds=
3924
3925 if test -n "$RANLIB"; then
3926   case $host_os in
3927   openbsd*)
3928     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3929     ;;
3930   *)
3931     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3932     ;;
3933   esac
3934   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3935 fi
3936
3937 # Allow CC to be a program name with arguments.
3938 set dummy $CC
3939 compiler="$2"
3940
3941 ## FIXME: this should be a separate macro
3942 ##
3943 echo "$as_me:3943: checking for objdir" >&5
3944 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3945 rm -f .libs 2>/dev/null
3946 mkdir .libs 2>/dev/null
3947 if test -d .libs; then
3948   objdir=.libs
3949 else
3950   # MS-DOS does not allow filenames that begin with a dot.
3951   objdir=_libs
3952 fi
3953 rmdir .libs 2>/dev/null
3954 echo "$as_me:3954: result: $objdir" >&5
3955 echo "${ECHO_T}$objdir" >&6
3956 ##
3957 ## END FIXME
3958
3959 ## FIXME: this should be a separate macro
3960 ##
3961
3962 # Check whether --with-pic or --without-pic was given.
3963 if test "${with_pic+set}" = set; then
3964   withval="$with_pic"
3965   pic_mode="$withval"
3966 else
3967   pic_mode=default
3968 fi;
3969 test -z "$pic_mode" && pic_mode=default
3970
3971 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3972 # in isolation, and that seeing it set (from the cache) indicates that
3973 # the associated values are set (in the cache) correctly too.
3974 echo "$as_me:3974: checking for $compiler option to produce PIC" >&5
3975 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3976 if test "${lt_cv_prog_cc_pic+set}" = set; then
3977   echo $ECHO_N "(cached) $ECHO_C" >&6
3978 else
3979    lt_cv_prog_cc_pic=
3980   lt_cv_prog_cc_shlib=
3981   lt_cv_prog_cc_wl=
3982   lt_cv_prog_cc_static=
3983   lt_cv_prog_cc_no_builtin=
3984   lt_cv_prog_cc_can_build_shared=$can_build_shared
3985
3986   if test "$GCC" = yes; then
3987     lt_cv_prog_cc_wl='-Wl,'
3988     lt_cv_prog_cc_static='-static'
3989
3990     case $host_os in
3991     aix*)
3992       # Below there is a dirty hack to force normal static linking with -ldl
3993       # The problem is because libdl dynamically linked with both libc and
3994       # libC (AIX C++ library), which obviously doesn't included in libraries
3995       # list by gcc. This cause undefined symbols with -static flags.
3996       # This hack allows C programs to be linked with "-static -ldl", but
3997       # not sure about C++ programs.
3998       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3999       ;;
4000     amigaos*)
4001       # FIXME: we need at least 68020 code to build shared libraries, but
4002       # adding the `-m68020' flag to GCC prevents building anything better,
4003       # like `-m68040'.
4004       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4005       ;;
4006     beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4007       # PIC is the default for these OSes.
4008       ;;
4009     darwin* | rhapsody*)
4010       # PIC is the default on this platform
4011       # Common symbols not allowed in MH_DYLIB files
4012       lt_cv_prog_cc_pic='-fno-common'
4013       ;;
4014     cygwin* | mingw* | pw32* | os2*)
4015       # This hack is so that the source file can tell whether it is being
4016       # built for inclusion in a dll (and should export symbols for example).
4017       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4018       ;;
4019     sysv4*MP*)
4020       if test -d /usr/nec; then
4021          lt_cv_prog_cc_pic=-Kconform_pic
4022       fi
4023       ;;
4024     *)
4025       lt_cv_prog_cc_pic='-fPIC'
4026       ;;
4027     esac
4028   else
4029     # PORTME Check for PIC flags for the system compiler.
4030     case $host_os in
4031     aix3* | aix4* | aix5*)
4032       lt_cv_prog_cc_wl='-Wl,'
4033       # All AIX code is PIC.
4034       if test "$host_cpu" = ia64; then
4035         # AIX 5 now supports IA64 processor
4036         lt_cv_prog_cc_static='-Bstatic'
4037       else
4038         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4039       fi
4040       ;;
4041
4042     hpux9* | hpux10* | hpux11*)
4043       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4044       lt_cv_prog_cc_wl='-Wl,'
4045       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4046       lt_cv_prog_cc_pic='+Z'
4047       ;;
4048
4049     irix5* | irix6*)
4050       lt_cv_prog_cc_wl='-Wl,'
4051       lt_cv_prog_cc_static='-non_shared'
4052       # PIC (with -KPIC) is the default.
4053       ;;
4054
4055     cygwin* | mingw* | pw32* | os2*)
4056       # This hack is so that the source file can tell whether it is being
4057       # built for inclusion in a dll (and should export symbols for example).
4058       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4059       ;;
4060
4061     newsos6)
4062       lt_cv_prog_cc_pic='-KPIC'
4063       lt_cv_prog_cc_static='-Bstatic'
4064       ;;
4065
4066     osf3* | osf4* | osf5*)
4067       # All OSF/1 code is PIC.
4068       lt_cv_prog_cc_wl='-Wl,'
4069       lt_cv_prog_cc_static='-non_shared'
4070       ;;
4071
4072     sco3.2v5*)
4073       lt_cv_prog_cc_pic='-Kpic'
4074       lt_cv_prog_cc_static='-dn'
4075       lt_cv_prog_cc_shlib='-belf'
4076       ;;
4077
4078     solaris*)
4079       lt_cv_prog_cc_pic='-KPIC'
4080       lt_cv_prog_cc_static='-Bstatic'
4081       lt_cv_prog_cc_wl='-Wl,'
4082       ;;
4083
4084     sunos4*)
4085       lt_cv_prog_cc_pic='-PIC'
4086       lt_cv_prog_cc_static='-Bstatic'
4087       lt_cv_prog_cc_wl='-Qoption ld '
4088       ;;
4089
4090     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4091       lt_cv_prog_cc_pic='-KPIC'
4092       lt_cv_prog_cc_static='-Bstatic'
4093       if test "x$host_vendor" = xsni; then
4094         lt_cv_prog_cc_wl='-LD'
4095       else
4096         lt_cv_prog_cc_wl='-Wl,'
4097       fi
4098       ;;
4099
4100     uts4*)
4101       lt_cv_prog_cc_pic='-pic'
4102       lt_cv_prog_cc_static='-Bstatic'
4103       ;;
4104
4105     sysv4*MP*)
4106       if test -d /usr/nec ;then
4107         lt_cv_prog_cc_pic='-Kconform_pic'
4108         lt_cv_prog_cc_static='-Bstatic'
4109       fi
4110       ;;
4111
4112     *)
4113       lt_cv_prog_cc_can_build_shared=no
4114       ;;
4115     esac
4116   fi
4117
4118 fi
4119
4120 if test -z "$lt_cv_prog_cc_pic"; then
4121   echo "$as_me:4121: result: none" >&5
4122 echo "${ECHO_T}none" >&6
4123 else
4124   echo "$as_me:4124: result: $lt_cv_prog_cc_pic" >&5
4125 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4126
4127   # Check to make sure the pic_flag actually works.
4128   echo "$as_me:4128: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4129 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4130   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4131   echo $ECHO_N "(cached) $ECHO_C" >&6
4132 else
4133       save_CFLAGS="$CFLAGS"
4134     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4135     cat >conftest.$ac_ext <<_ACEOF
4136 #line 4136 "configure"
4137 #include "confdefs.h"
4138
4139 #ifdef F77_DUMMY_MAIN
4140 #  ifdef __cplusplus
4141      extern "C"
4142 #  endif
4143    int F77_DUMMY_MAIN() { return 1; }
4144 #endif
4145 int
4146 main ()
4147 {
4148
4149   ;
4150   return 0;
4151 }
4152 _ACEOF
4153 rm -f conftest.$ac_objext
4154 if { (eval echo "$as_me:4154: \"$ac_compile\"") >&5
4155   (eval $ac_compile) 2>&5
4156   ac_status=$?
4157   echo "$as_me:4157: \$? = $ac_status" >&5
4158   (exit $ac_status); } &&
4159          { ac_try='test -s conftest.$ac_objext'
4160   { (eval echo "$as_me:4160: \"$ac_try\"") >&5
4161   (eval $ac_try) 2>&5
4162   ac_status=$?
4163   echo "$as_me:4163: \$? = $ac_status" >&5
4164   (exit $ac_status); }; }; then
4165         case $host_os in
4166       hpux9* | hpux10* | hpux11*)
4167         # On HP-UX, both CC and GCC only warn that PIC is supported... then
4168         # they create non-PIC objects.  So, if there were any warnings, we
4169         # assume that PIC is not supported.
4170         if test -s conftest.err; then
4171           lt_cv_prog_cc_pic_works=no
4172         else
4173           lt_cv_prog_cc_pic_works=yes
4174         fi
4175         ;;
4176       *)
4177         lt_cv_prog_cc_pic_works=yes
4178         ;;
4179       esac
4180
4181 else
4182   echo "$as_me: failed program was:" >&5
4183 cat conftest.$ac_ext >&5
4184       lt_cv_prog_cc_pic_works=no
4185
4186 fi
4187 rm -f conftest.$ac_objext conftest.$ac_ext
4188     CFLAGS="$save_CFLAGS"
4189
4190 fi
4191
4192   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4193     lt_cv_prog_cc_pic=
4194     lt_cv_prog_cc_can_build_shared=no
4195   else
4196     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4197   fi
4198
4199   echo "$as_me:4199: result: $lt_cv_prog_cc_pic_works" >&5
4200 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4201 fi
4202 ##
4203 ## END FIXME
4204
4205 # Check for any special shared library compilation flags.
4206 if test -n "$lt_cv_prog_cc_shlib"; then
4207   { echo "$as_me:4207: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4208 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4209   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
4210   else
4211    { echo "$as_me:4211: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4212 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4213     lt_cv_prog_cc_can_build_shared=no
4214   fi
4215 fi
4216
4217 ## FIXME: this should be a separate macro
4218 ##
4219 echo "$as_me:4219: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4220 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4221 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4222   echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224     lt_cv_prog_cc_static_works=no
4225   save_LDFLAGS="$LDFLAGS"
4226   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4227   cat >conftest.$ac_ext <<_ACEOF
4228 #line 4228 "configure"
4229 #include "confdefs.h"
4230
4231 #ifdef F77_DUMMY_MAIN
4232 #  ifdef __cplusplus
4233      extern "C"
4234 #  endif
4235    int F77_DUMMY_MAIN() { return 1; }
4236 #endif
4237 int
4238 main ()
4239 {
4240
4241   ;
4242   return 0;
4243 }
4244 _ACEOF
4245 rm -f conftest.$ac_objext conftest$ac_exeext
4246 if { (eval echo "$as_me:4246: \"$ac_link\"") >&5
4247   (eval $ac_link) 2>&5
4248   ac_status=$?
4249   echo "$as_me:4249: \$? = $ac_status" >&5
4250   (exit $ac_status); } &&
4251          { ac_try='test -s conftest$ac_exeext'
4252   { (eval echo "$as_me:4252: \"$ac_try\"") >&5
4253   (eval $ac_try) 2>&5
4254   ac_status=$?
4255   echo "$as_me:4255: \$? = $ac_status" >&5
4256   (exit $ac_status); }; }; then
4257   lt_cv_prog_cc_static_works=yes
4258 else
4259   echo "$as_me: failed program was:" >&5
4260 cat conftest.$ac_ext >&5
4261 fi
4262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4263   LDFLAGS="$save_LDFLAGS"
4264
4265 fi
4266
4267 # Belt *and* braces to stop my trousers falling down:
4268 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4269 echo "$as_me:4269: result: $lt_cv_prog_cc_static_works" >&5
4270 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4271
4272 pic_flag="$lt_cv_prog_cc_pic"
4273 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4274 wl="$lt_cv_prog_cc_wl"
4275 link_static_flag="$lt_cv_prog_cc_static"
4276 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4277 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4278 ##
4279 ## END FIXME
4280
4281 ## FIXME: this should be a separate macro
4282 ##
4283 # Check to see if options -o and -c are simultaneously supported by compiler
4284 echo "$as_me:4284: checking if $compiler supports -c -o file.$ac_objext" >&5
4285 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4286 if test "${lt_cv_compiler_c_o+set}" = set; then
4287   echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289
4290 $rm -r conftest 2>/dev/null
4291 mkdir conftest
4292 cd conftest
4293 echo "int some_variable = 0;" > conftest.$ac_ext
4294 mkdir out
4295 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4296 # that will create temporary files in the current directory regardless of
4297 # the output directory.  Thus, making CWD read-only will cause this test
4298 # to fail, enabling locking or at least warning the user not to do parallel
4299 # builds.
4300 chmod -w .
4301 save_CFLAGS="$CFLAGS"
4302 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4303 compiler_c_o=no
4304 if { (eval echo configure:4304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4305   # The compiler can only warn and ignore the option if not recognized
4306   # So say no if there are warnings
4307   if test -s out/conftest.err; then
4308     lt_cv_compiler_c_o=no
4309   else
4310     lt_cv_compiler_c_o=yes
4311   fi
4312 else
4313   # Append any errors to the config.log.
4314   cat out/conftest.err 1>&5
4315   lt_cv_compiler_c_o=no
4316 fi
4317 CFLAGS="$save_CFLAGS"
4318 chmod u+w .
4319 $rm conftest* out/*
4320 rmdir out
4321 cd ..
4322 rmdir conftest
4323 $rm -r conftest 2>/dev/null
4324
4325 fi
4326
4327 compiler_c_o=$lt_cv_compiler_c_o
4328 echo "$as_me:4328: result: $compiler_c_o" >&5
4329 echo "${ECHO_T}$compiler_c_o" >&6
4330
4331 if test x"$compiler_c_o" = x"yes"; then
4332   # Check to see if we can write to a .lo
4333   echo "$as_me:4333: checking if $compiler supports -c -o file.lo" >&5
4334 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4335   if test "${lt_cv_compiler_o_lo+set}" = set; then
4336   echo $ECHO_N "(cached) $ECHO_C" >&6
4337 else
4338
4339   lt_cv_compiler_o_lo=no
4340   save_CFLAGS="$CFLAGS"
4341   CFLAGS="$CFLAGS -c -o conftest.lo"
4342   save_objext="$ac_objext"
4343   ac_objext=lo
4344   cat >conftest.$ac_ext <<_ACEOF
4345 #line 4345 "configure"
4346 #include "confdefs.h"
4347
4348 #ifdef F77_DUMMY_MAIN
4349 #  ifdef __cplusplus
4350      extern "C"
4351 #  endif
4352    int F77_DUMMY_MAIN() { return 1; }
4353 #endif
4354 int
4355 main ()
4356 {
4357 int some_variable = 0;
4358   ;
4359   return 0;
4360 }
4361 _ACEOF
4362 rm -f conftest.$ac_objext
4363 if { (eval echo "$as_me:4363: \"$ac_compile\"") >&5
4364   (eval $ac_compile) 2>&5
4365   ac_status=$?
4366   echo "$as_me:4366: \$? = $ac_status" >&5
4367   (exit $ac_status); } &&
4368          { ac_try='test -s conftest.$ac_objext'
4369   { (eval echo "$as_me:4369: \"$ac_try\"") >&5
4370   (eval $ac_try) 2>&5
4371   ac_status=$?
4372   echo "$as_me:4372: \$? = $ac_status" >&5
4373   (exit $ac_status); }; }; then
4374       # The compiler can only warn and ignore the option if not recognized
4375     # So say no if there are warnings
4376     if test -s conftest.err; then
4377       lt_cv_compiler_o_lo=no
4378     else
4379       lt_cv_compiler_o_lo=yes
4380     fi
4381
4382 else
4383   echo "$as_me: failed program was:" >&5
4384 cat conftest.$ac_ext >&5
4385 fi
4386 rm -f conftest.$ac_objext conftest.$ac_ext
4387   ac_objext="$save_objext"
4388   CFLAGS="$save_CFLAGS"
4389
4390 fi
4391
4392   compiler_o_lo=$lt_cv_compiler_o_lo
4393   echo "$as_me:4393: result: $compiler_o_lo" >&5
4394 echo "${ECHO_T}$compiler_o_lo" >&6
4395 else
4396   compiler_o_lo=no
4397 fi
4398 ##
4399 ## END FIXME
4400
4401 ## FIXME: this should be a separate macro
4402 ##
4403 # Check to see if we can do hard links to lock some files if needed
4404 hard_links="nottested"
4405 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4406   # do not overwrite the value of need_locks provided by the user
4407   echo "$as_me:4407: checking if we can lock with hard links" >&5
4408 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4409   hard_links=yes
4410   $rm conftest*
4411   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4412   touch conftest.a
4413   ln conftest.a conftest.b 2>&5 || hard_links=no
4414   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4415   echo "$as_me:4415: result: $hard_links" >&5
4416 echo "${ECHO_T}$hard_links" >&6
4417   if test "$hard_links" = no; then
4418     { echo "$as_me:4418: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4419 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4420     need_locks=warn
4421   fi
4422 else
4423   need_locks=no
4424 fi
4425 ##
4426 ## END FIXME
4427
4428 ## FIXME: this should be a separate macro
4429 ##
4430 if test "$GCC" = yes; then
4431   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4432   echo "$as_me:4432: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4433 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4434   echo "int some_variable = 0;" > conftest.$ac_ext
4435   save_CFLAGS="$CFLAGS"
4436   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4437   compiler_rtti_exceptions=no
4438   cat >conftest.$ac_ext <<_ACEOF
4439 #line 4439 "configure"
4440 #include "confdefs.h"
4441
4442 #ifdef F77_DUMMY_MAIN
4443 #  ifdef __cplusplus
4444      extern "C"
4445 #  endif
4446    int F77_DUMMY_MAIN() { return 1; }
4447 #endif
4448 int
4449 main ()
4450 {
4451 int some_variable = 0;
4452   ;
4453   return 0;
4454 }
4455 _ACEOF
4456 rm -f conftest.$ac_objext
4457 if { (eval echo "$as_me:4457: \"$ac_compile\"") >&5
4458   (eval $ac_compile) 2>&5
4459   ac_status=$?
4460   echo "$as_me:4460: \$? = $ac_status" >&5
4461   (exit $ac_status); } &&
4462          { ac_try='test -s conftest.$ac_objext'
4463   { (eval echo "$as_me:4463: \"$ac_try\"") >&5
4464   (eval $ac_try) 2>&5
4465   ac_status=$?
4466   echo "$as_me:4466: \$? = $ac_status" >&5
4467   (exit $ac_status); }; }; then
4468       # The compiler can only warn and ignore the option if not recognized
4469     # So say no if there are warnings
4470     if test -s conftest.err; then
4471       compiler_rtti_exceptions=no
4472     else
4473       compiler_rtti_exceptions=yes
4474     fi
4475
4476 else
4477   echo "$as_me: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4479 fi
4480 rm -f conftest.$ac_objext conftest.$ac_ext
4481   CFLAGS="$save_CFLAGS"
4482   echo "$as_me:4482: result: $compiler_rtti_exceptions" >&5
4483 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4484
4485   if test "$compiler_rtti_exceptions" = "yes"; then
4486     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4487   else
4488     no_builtin_flag=' -fno-builtin'
4489   fi
4490 fi
4491 ##
4492 ## END FIXME
4493
4494 ## FIXME: this should be a separate macro
4495 ##
4496 # See if the linker supports building shared libraries.
4497 echo "$as_me:4497: checking whether the linker ($LD) supports shared libraries" >&5
4498 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4499
4500 allow_undefined_flag=
4501 no_undefined_flag=
4502 need_lib_prefix=unknown
4503 need_version=unknown
4504 # when you set need_version to no, make sure it does not cause -set_version
4505 # flags to be left without arguments
4506 archive_cmds=
4507 archive_expsym_cmds=
4508 old_archive_from_new_cmds=
4509 old_archive_from_expsyms_cmds=
4510 export_dynamic_flag_spec=
4511 whole_archive_flag_spec=
4512 thread_safe_flag_spec=
4513 hardcode_into_libs=no
4514 hardcode_libdir_flag_spec=
4515 hardcode_libdir_separator=
4516 hardcode_direct=no
4517 hardcode_minus_L=no
4518 hardcode_shlibpath_var=unsupported
4519 runpath_var=
4520 link_all_deplibs=unknown
4521 always_export_symbols=no
4522 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4523 # include_expsyms should be a list of space-separated symbols to be *always*
4524 # included in the symbol list
4525 include_expsyms=
4526 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4527 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4528 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4529 # as well as any symbol that contains `d'.
4530 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4531 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4532 # platforms (ab)use it in PIC code, but their linkers get confused if
4533 # the symbol is explicitly referenced.  Since portable code cannot
4534 # rely on this symbol name, it's probably fine to never include it in
4535 # preloaded symbol tables.
4536 extract_expsyms_cmds=
4537
4538 case $host_os in
4539 cygwin* | mingw* | pw32*)
4540   # FIXME: the MSVC++ port hasn't been tested in a loooong time
4541   # When not using gcc, we currently assume that we are using
4542   # Microsoft Visual C++.
4543   if test "$GCC" != yes; then
4544     with_gnu_ld=no
4545   fi
4546   ;;
4547 openbsd*)
4548   with_gnu_ld=no
4549   ;;
4550 esac
4551
4552 ld_shlibs=yes
4553 if test "$with_gnu_ld" = yes; then
4554   # If archive_cmds runs LD, not CC, wlarc should be empty
4555   wlarc='${wl}'
4556
4557   # See if GNU ld supports shared libraries.
4558   case $host_os in
4559   aix3* | aix4* | aix5*)
4560     # On AIX, the GNU linker is very broken
4561     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4562     ld_shlibs=no
4563     cat <<EOF 1>&2
4564
4565 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4566 *** to be unable to reliably create shared libraries on AIX.
4567 *** Therefore, libtool is disabling shared libraries support.  If you
4568 *** really care for shared libraries, you may want to modify your PATH
4569 *** so that a non-GNU linker is found, and then restart.
4570
4571 EOF
4572     ;;
4573
4574   amigaos*)
4575     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)'
4576     hardcode_libdir_flag_spec='-L$libdir'
4577     hardcode_minus_L=yes
4578
4579     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4580     # that the semantics of dynamic libraries on AmigaOS, at least up
4581     # to version 4, is to share data among multiple programs linked
4582     # with the same dynamic library.  Since this doesn't match the
4583     # behavior of shared libraries on other platforms, we can use
4584     # them.
4585     ld_shlibs=no
4586     ;;
4587
4588   beos*)
4589     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4590       allow_undefined_flag=unsupported
4591       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4592       # support --undefined.  This deserves some investigation.  FIXME
4593       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4594     else
4595       ld_shlibs=no
4596     fi
4597     ;;
4598
4599   cygwin* | mingw* | pw32*)
4600     # hardcode_libdir_flag_spec is actually meaningless, as there is
4601     # no search path for DLLs.
4602     hardcode_libdir_flag_spec='-L$libdir'
4603     allow_undefined_flag=unsupported
4604     always_export_symbols=yes
4605
4606     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4607       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4608       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4609       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4610       else $CC -o impgen impgen.c ; fi)~
4611       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4612
4613     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4614
4615     # cygwin and mingw dlls have different entry points and sets of symbols
4616     # to exclude.
4617     # FIXME: what about values for MSVC?
4618     dll_entry=__cygwin_dll_entry@12
4619     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4620     case $host_os in
4621     mingw*)
4622       # mingw values
4623       dll_entry=_DllMainCRTStartup@12
4624       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4625       ;;
4626     esac
4627
4628     # mingw and cygwin differ, and it's simplest to just exclude the union
4629     # of the two symbol sets.
4630     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4631
4632     # recent cygwin and mingw systems supply a stub DllMain which the user
4633     # can override, but on older systems we have to supply one (in ltdll.c)
4634     if test "x$lt_cv_need_dllmain" = "xyes"; then
4635       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4636       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~
4637         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4638     else
4639       ltdll_obj=
4640       ltdll_cmds=
4641     fi
4642
4643     # Extract the symbol export list from an `--export-all' def file,
4644     # then regenerate the def file from the symbol export list, so that
4645     # the compiled dll only exports the symbol export list.
4646     # Be careful not to strip the DATA tag left be newer dlltools.
4647     export_symbols_cmds="$ltdll_cmds"'
4648       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4649       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4650
4651     # If the export-symbols file already is a .def file (1st line
4652     # is EXPORTS), use it as is.
4653     # If DATA tags from a recent dlltool are present, honour them!
4654     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4655         cp $export_symbols $output_objdir/$soname-def;
4656       else
4657         echo EXPORTS > $output_objdir/$soname-def;
4658         _lt_hint=1;
4659         cat $export_symbols | while read symbol; do
4660          set dummy \$symbol;
4661          case \$# in
4662            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4663            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4664          esac;
4665          _lt_hint=`expr 1 + \$_lt_hint`;
4666         done;
4667       fi~
4668       '"$ltdll_cmds"'
4669       $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~
4670       $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~
4671       $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~
4672       $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~
4673       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4674     ;;
4675
4676   netbsd*)
4677     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4678       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4679       wlarc=
4680     else
4681       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4682       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4683     fi
4684     ;;
4685
4686   solaris* | sysv5*)
4687     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4688       ld_shlibs=no
4689       cat <<EOF 1>&2
4690
4691 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4692 *** create shared libraries on Solaris systems.  Therefore, libtool
4693 *** is disabling shared libraries support.  We urge you to upgrade GNU
4694 *** binutils to release 2.9.1 or newer.  Another option is to modify
4695 *** your PATH or compiler configuration so that the native linker is
4696 *** used, and then restart.
4697
4698 EOF
4699     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4700       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4701       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4702     else
4703       ld_shlibs=no
4704     fi
4705     ;;
4706
4707   sunos4*)
4708     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4709     wlarc=
4710     hardcode_direct=yes
4711     hardcode_shlibpath_var=no
4712     ;;
4713
4714   *)
4715     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4716       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4717       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4718     else
4719       ld_shlibs=no
4720     fi
4721     ;;
4722   esac
4723
4724   if test "$ld_shlibs" = yes; then
4725     runpath_var=LD_RUN_PATH
4726     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4727     export_dynamic_flag_spec='${wl}--export-dynamic'
4728     case $host_os in
4729     cygwin* | mingw* | pw32*)
4730       # dlltool doesn't understand --whole-archive et. al.
4731       whole_archive_flag_spec=
4732       ;;
4733     *)
4734       # ancient GNU ld didn't support --whole-archive et. al.
4735       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4736         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4737       else
4738         whole_archive_flag_spec=
4739       fi
4740       ;;
4741     esac
4742   fi
4743 else
4744   # PORTME fill in a description of your system's linker (not GNU ld)
4745   case $host_os in
4746   aix3*)
4747     allow_undefined_flag=unsupported
4748     always_export_symbols=yes
4749     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'
4750     # Note: this linker hardcodes the directories in LIBPATH if there
4751     # are no directories specified by -L.
4752     hardcode_minus_L=yes
4753     if test "$GCC" = yes && test -z "$link_static_flag"; then
4754       # Neither direct hardcoding nor static linking is supported with a
4755       # broken collect2.
4756       hardcode_direct=unsupported
4757     fi
4758     ;;
4759
4760   aix4* | aix5*)
4761     if test "$host_cpu" = ia64; then
4762       # On IA64, the linker does run time linking by default, so we don't
4763       # have to do anything special.
4764       aix_use_runtimelinking=no
4765       exp_sym_flag='-Bexport'
4766       no_entry_flag=""
4767     else
4768       aix_use_runtimelinking=no
4769
4770       # Test if we are trying to use run time linking or normal
4771       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4772       # need to do runtime linking.
4773       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4774         for ld_flag in $LDFLAGS; do
4775           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4776             aix_use_runtimelinking=yes
4777             break
4778           fi
4779         done
4780       esac
4781
4782       exp_sym_flag='-bexport'
4783       no_entry_flag='-bnoentry'
4784     fi
4785
4786     # When large executables or shared objects are built, AIX ld can
4787     # have problems creating the table of contents.  If linking a library
4788     # or program results in "error TOC overflow" add -mminimal-toc to
4789     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
4790     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4791
4792     hardcode_direct=yes
4793     archive_cmds=''
4794     hardcode_libdir_separator=':'
4795     if test "$GCC" = yes; then
4796       case $host_os in aix4.[012]|aix4.[012].*)
4797         collect2name=`${CC} -print-prog-name=collect2`
4798         if test -f "$collect2name" && \
4799           strings "$collect2name" | grep resolve_lib_name >/dev/null
4800         then
4801           # We have reworked collect2
4802           hardcode_direct=yes
4803         else
4804           # We have old collect2
4805           hardcode_direct=unsupported
4806           # It fails to find uninstalled libraries when the uninstalled
4807           # path is not listed in the libpath.  Setting hardcode_minus_L
4808           # to unsupported forces relinking
4809           hardcode_minus_L=yes
4810           hardcode_libdir_flag_spec='-L$libdir'
4811           hardcode_libdir_separator=
4812         fi
4813       esac
4814
4815       shared_flag='-shared'
4816     else
4817       # not using gcc
4818       if test "$host_cpu" = ia64; then
4819         shared_flag='${wl}-G'
4820       else
4821         if test "$aix_use_runtimelinking" = yes; then
4822           shared_flag='${wl}-G'
4823         else
4824           shared_flag='${wl}-bM:SRE'
4825         fi
4826       fi
4827     fi
4828
4829     # It seems that -bexpall can do strange things, so it is better to
4830     # generate a list of symbols to export.
4831     always_export_symbols=yes
4832     if test "$aix_use_runtimelinking" = yes; then
4833       # Warning - without using the other runtime loading flags (-brtl),
4834       # -berok will link without error, but may produce a broken library.
4835       allow_undefined_flag='-berok'
4836       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4837       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"
4838     else
4839       if test "$host_cpu" = ia64; then
4840         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4841         allow_undefined_flag="-z nodefs"
4842         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"
4843       else
4844         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4845         # Warning - without using the other run time loading flags,
4846         # -berok will link without error, but may produce a broken library.
4847         allow_undefined_flag='${wl}-berok'
4848         # This is a bit strange, but is similar to how AIX traditionally builds
4849         # it's shared libraries.
4850         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'
4851       fi
4852     fi
4853     ;;
4854
4855   amigaos*)
4856     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)'
4857     hardcode_libdir_flag_spec='-L$libdir'
4858     hardcode_minus_L=yes
4859     # see comment about different semantics on the GNU ld section
4860     ld_shlibs=no
4861     ;;
4862
4863   cygwin* | mingw* | pw32*)
4864     # When not using gcc, we currently assume that we are using
4865     # Microsoft Visual C++.
4866     # hardcode_libdir_flag_spec is actually meaningless, as there is
4867     # no search path for DLLs.
4868     hardcode_libdir_flag_spec=' '
4869     allow_undefined_flag=unsupported
4870     # Tell ltmain to make .lib files, not .a files.
4871     libext=lib
4872     # FIXME: Setting linknames here is a bad hack.
4873     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4874     # The linker will automatically build a .lib file if we build a DLL.
4875     old_archive_from_new_cmds='true'
4876     # FIXME: Should let the user specify the lib program.
4877     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4878     fix_srcfile_path='`cygpath -w "$srcfile"`'
4879     ;;
4880
4881   darwin* | rhapsody*)
4882     case "$host_os" in
4883     rhapsody* | darwin1.[012])
4884       allow_undefined_flag='-undefined suppress'
4885       ;;
4886     *) # Darwin 1.3 on
4887       allow_undefined_flag='-flat_namespace -undefined suppress'
4888       ;;
4889     esac
4890     # FIXME: Relying on posixy $() will cause problems for
4891     #        cross-compilation, but unfortunately the echo tests do not
4892     #        yet detect zsh echo's removal of \ escapes.
4893     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'
4894     # We need to add '_' to the symbols in $export_symbols first
4895     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4896     hardcode_direct=yes
4897     hardcode_shlibpath_var=no
4898     whole_archive_flag_spec='-all_load $convenience'
4899     ;;
4900
4901   freebsd1*)
4902     ld_shlibs=no
4903     ;;
4904
4905   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4906   # support.  Future versions do this automatically, but an explicit c++rt0.o
4907   # does not break anything, and helps significantly (at the cost of a little
4908   # extra space).
4909   freebsd2.2*)
4910     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4911     hardcode_libdir_flag_spec='-R$libdir'
4912     hardcode_direct=yes
4913     hardcode_shlibpath_var=no
4914     ;;
4915
4916   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4917   freebsd2*)
4918     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4919     hardcode_direct=yes
4920     hardcode_minus_L=yes
4921     hardcode_shlibpath_var=no
4922     ;;
4923
4924   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4925   freebsd*)
4926     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4927     hardcode_libdir_flag_spec='-R$libdir'
4928     hardcode_direct=yes
4929     hardcode_shlibpath_var=no
4930     ;;
4931
4932   hpux9* | hpux10* | hpux11*)
4933     case $host_os in
4934     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' ;;
4935     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4936     esac
4937     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4938     hardcode_libdir_separator=:
4939     hardcode_direct=yes
4940     hardcode_minus_L=yes # Not in the search PATH, but as the default
4941                          # location of the library.
4942     export_dynamic_flag_spec='${wl}-E'
4943     ;;
4944
4945   irix5* | irix6*)
4946     if test "$GCC" = yes; then
4947       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'
4948     else
4949       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'
4950     fi
4951     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4952     hardcode_libdir_separator=:
4953     link_all_deplibs=yes
4954     ;;
4955
4956   netbsd*)
4957     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4958       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
4959     else
4960       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
4961     fi
4962     hardcode_libdir_flag_spec='-R$libdir'
4963     hardcode_direct=yes
4964     hardcode_shlibpath_var=no
4965     ;;
4966
4967   newsos6)
4968     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4969     hardcode_direct=yes
4970     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4971     hardcode_libdir_separator=:
4972     hardcode_shlibpath_var=no
4973     ;;
4974
4975   openbsd*)
4976     hardcode_direct=yes
4977     hardcode_shlibpath_var=no
4978     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4979       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4980       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4981       export_dynamic_flag_spec='${wl}-E'
4982     else
4983       case "$host_os" in
4984       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
4985         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4986         hardcode_libdir_flag_spec='-R$libdir'
4987         ;;
4988       *)
4989         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4990         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4991         ;;
4992       esac
4993     fi
4994     ;;
4995
4996   os2*)
4997     hardcode_libdir_flag_spec='-L$libdir'
4998     hardcode_minus_L=yes
4999     allow_undefined_flag=unsupported
5000     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'
5001     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5002     ;;
5003
5004   osf3*)
5005     if test "$GCC" = yes; then
5006       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5007       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'
5008     else
5009       allow_undefined_flag=' -expect_unresolved \*'
5010       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'
5011     fi
5012     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5013     hardcode_libdir_separator=:
5014     ;;
5015
5016   osf4* | osf5*)        # as osf3* with the addition of -msym flag
5017     if test "$GCC" = yes; then
5018       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5019       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'
5020       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5021     else
5022       allow_undefined_flag=' -expect_unresolved \*'
5023       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'
5024       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5025       $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'
5026
5027       #Both c and cxx compiler support -rpath directly
5028       hardcode_libdir_flag_spec='-rpath $libdir'
5029     fi
5030     hardcode_libdir_separator=:
5031     ;;
5032
5033   sco3.2v5*)
5034     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5035     hardcode_shlibpath_var=no
5036     runpath_var=LD_RUN_PATH
5037     hardcode_runpath_var=yes
5038     export_dynamic_flag_spec='${wl}-Bexport'
5039     ;;
5040
5041   solaris*)
5042     # gcc --version < 3.0 without binutils cannot create self contained
5043     # shared libraries reliably, requiring libgcc.a to resolve some of
5044     # the object symbols generated in some cases.  Libraries that use
5045     # assert need libgcc.a to resolve __eprintf, for example.  Linking
5046     # a copy of libgcc.a into every shared library to guarantee resolving
5047     # such symbols causes other problems:  According to Tim Van Holder
5048     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5049     # (to the application) exception stack for one thing.
5050     no_undefined_flag=' -z defs'
5051     if test "$GCC" = yes; then
5052       case `$CC --version 2>/dev/null` in
5053       [12].*)
5054         cat <<EOF 1>&2
5055
5056 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5057 *** create self contained shared libraries on Solaris systems, without
5058 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5059 *** -no-undefined support, which will at least allow you to build shared
5060 *** libraries.  However, you may find that when you link such libraries
5061 *** into an application without using GCC, you have to manually add
5062 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5063 *** upgrade to a newer version of GCC.  Another option is to rebuild your
5064 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5065
5066 EOF
5067         no_undefined_flag=
5068         ;;
5069       esac
5070     fi
5071     # $CC -shared without GNU ld will not create a library from C++
5072     # object files and a static libstdc++, better avoid it by now
5073     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5074     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5075                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5076     hardcode_libdir_flag_spec='-R$libdir'
5077     hardcode_shlibpath_var=no
5078     case $host_os in
5079     solaris2.[0-5] | solaris2.[0-5].*) ;;
5080     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5081       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5082     esac
5083     link_all_deplibs=yes
5084     ;;
5085
5086   sunos4*)
5087     if test "x$host_vendor" = xsequent; then
5088       # Use $CC to link under sequent, because it throws in some extra .o
5089       # files that make .init and .fini sections work.
5090       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5091     else
5092       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5093     fi
5094     hardcode_libdir_flag_spec='-L$libdir'
5095     hardcode_direct=yes
5096     hardcode_minus_L=yes
5097     hardcode_shlibpath_var=no
5098     ;;
5099
5100   sysv4)
5101     if test "x$host_vendor" = xsno; then
5102       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5103       hardcode_direct=yes # is this really true???
5104     else
5105       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5106       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5107     fi
5108     runpath_var='LD_RUN_PATH'
5109     hardcode_shlibpath_var=no
5110     ;;
5111
5112   sysv4.3*)
5113     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5114     hardcode_shlibpath_var=no
5115     export_dynamic_flag_spec='-Bexport'
5116     ;;
5117
5118   sysv5*)
5119     no_undefined_flag=' -z text'
5120     # $CC -shared without GNU ld will not create a library from C++
5121     # object files and a static libstdc++, better avoid it by now
5122     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5123     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5124                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5125     hardcode_libdir_flag_spec=
5126     hardcode_shlibpath_var=no
5127     runpath_var='LD_RUN_PATH'
5128     ;;
5129
5130   uts4*)
5131     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5132     hardcode_libdir_flag_spec='-L$libdir'
5133     hardcode_shlibpath_var=no
5134     ;;
5135
5136   dgux*)
5137     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5138     hardcode_libdir_flag_spec='-L$libdir'
5139     hardcode_shlibpath_var=no
5140     ;;
5141
5142   sysv4*MP*)
5143     if test -d /usr/nec; then
5144       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5145       hardcode_shlibpath_var=no
5146       runpath_var=LD_RUN_PATH
5147       hardcode_runpath_var=yes
5148       ld_shlibs=yes
5149     fi
5150     ;;
5151
5152   sysv4.2uw2*)
5153     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5154     hardcode_direct=yes
5155     hardcode_minus_L=no
5156     hardcode_shlibpath_var=no
5157     hardcode_runpath_var=yes
5158     runpath_var=LD_RUN_PATH
5159     ;;
5160
5161   sysv5uw7* | unixware7*)
5162     no_undefined_flag='${wl}-z ${wl}text'
5163     if test "$GCC" = yes; then
5164       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5165     else
5166       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5167     fi
5168     runpath_var='LD_RUN_PATH'
5169     hardcode_shlibpath_var=no
5170     ;;
5171
5172   *)
5173     ld_shlibs=no
5174     ;;
5175   esac
5176 fi
5177 echo "$as_me:5177: result: $ld_shlibs" >&5
5178 echo "${ECHO_T}$ld_shlibs" >&6
5179 test "$ld_shlibs" = no && can_build_shared=no
5180 ##
5181 ## END FIXME
5182
5183 ## FIXME: this should be a separate macro
5184 ##
5185 # Check hardcoding attributes.
5186 echo "$as_me:5186: checking how to hardcode library paths into programs" >&5
5187 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5188 hardcode_action=
5189 if test -n "$hardcode_libdir_flag_spec" || \
5190    test -n "$runpath_var"; then
5191
5192   # We can hardcode non-existant directories.
5193   if test "$hardcode_direct" != no &&
5194      # If the only mechanism to avoid hardcoding is shlibpath_var, we
5195      # have to relink, otherwise we might link with an installed library
5196      # when we should be linking with a yet-to-be-installed one
5197      ## test "$hardcode_shlibpath_var" != no &&
5198      test "$hardcode_minus_L" != no; then
5199     # Linking always hardcodes the temporary library directory.
5200     hardcode_action=relink
5201   else
5202     # We can link without hardcoding, and we can hardcode nonexisting dirs.
5203     hardcode_action=immediate
5204   fi
5205 else
5206   # We cannot hardcode anything, or else we can only hardcode existing
5207   # directories.
5208   hardcode_action=unsupported
5209 fi
5210 echo "$as_me:5210: result: $hardcode_action" >&5
5211 echo "${ECHO_T}$hardcode_action" >&6
5212 ##
5213 ## END FIXME
5214
5215 ## FIXME: this should be a separate macro
5216 ##
5217 striplib=
5218 old_striplib=
5219 echo "$as_me:5219: checking whether stripping libraries is possible" >&5
5220 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5221 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5222   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5223   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5224   echo "$as_me:5224: result: yes" >&5
5225 echo "${ECHO_T}yes" >&6
5226 else
5227   echo "$as_me:5227: result: no" >&5
5228 echo "${ECHO_T}no" >&6
5229 fi
5230 ##
5231 ## END FIXME
5232
5233 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5234 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5235
5236 ## FIXME: this should be a separate macro
5237 ##
5238 # PORTME Fill in your ld.so characteristics
5239 echo "$as_me:5239: checking dynamic linker characteristics" >&5
5240 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5241 library_names_spec=
5242 libname_spec='lib$name'
5243 soname_spec=
5244 postinstall_cmds=
5245 postuninstall_cmds=
5246 finish_cmds=
5247 finish_eval=
5248 shlibpath_var=
5249 shlibpath_overrides_runpath=unknown
5250 version_type=none
5251 dynamic_linker="$host_os ld.so"
5252 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5253 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5254
5255 case $host_os in
5256 aix3*)
5257   version_type=linux
5258   library_names_spec='${libname}${release}.so$versuffix $libname.a'
5259   shlibpath_var=LIBPATH
5260
5261   # AIX has no versioning support, so we append a major version to the name.
5262   soname_spec='${libname}${release}.so$major'
5263   ;;
5264
5265 aix4* | aix5*)
5266   version_type=linux
5267   if test "$host_cpu" = ia64; then
5268     # AIX 5 supports IA64
5269     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5270     shlibpath_var=LD_LIBRARY_PATH
5271   else
5272     # With GCC up to 2.95.x, collect2 would create an import file
5273     # for dependence libraries.  The import file would start with
5274     # the line `#! .'.  This would cause the generated library to
5275     # depend on `.', always an invalid library.  This was fixed in
5276     # development snapshots of GCC prior to 3.0.
5277     case $host_os in
5278       aix4 | aix4.[01] | aix4.[01].*)
5279         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5280              echo ' yes '
5281              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5282           :
5283         else
5284           can_build_shared=no
5285         fi
5286         ;;
5287     esac
5288     # AIX (on Power*) has no versioning support, so currently we can
5289     # not hardcode correct soname into executable. Probably we can
5290     # add versioning support to collect2, so additional links can
5291     # be useful in future.
5292     if test "$aix_use_runtimelinking" = yes; then
5293       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5294       # instead of lib<name>.a to let people know that these are not
5295       # typical AIX shared libraries.
5296       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5297     else
5298       # We preserve .a as extension for shared libraries through AIX4.2
5299       # and later when we are not doing run time linking.
5300       library_names_spec='${libname}${release}.a $libname.a'
5301       soname_spec='${libname}${release}.so$major'
5302     fi
5303     shlibpath_var=LIBPATH
5304   fi
5305   ;;
5306
5307 amigaos*)
5308   library_names_spec='$libname.ixlibrary $libname.a'
5309   # Create ${libname}_ixlibrary.a entries in /sys/libs.
5310   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'
5311   ;;
5312
5313 beos*)
5314   library_names_spec='${libname}.so'
5315   dynamic_linker="$host_os ld.so"
5316   shlibpath_var=LIBRARY_PATH
5317   ;;
5318
5319 bsdi4*)
5320   version_type=linux
5321   need_version=no
5322   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5323   soname_spec='${libname}${release}.so$major'
5324   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5325   shlibpath_var=LD_LIBRARY_PATH
5326   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5327   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5328   export_dynamic_flag_spec=-rdynamic
5329   # the default ld.so.conf also contains /usr/contrib/lib and
5330   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5331   # libtool to hard-code these into programs
5332   ;;
5333
5334 cygwin* | mingw* | pw32*)
5335   version_type=windows
5336   need_version=no
5337   need_lib_prefix=no
5338   case $GCC,$host_os in
5339   yes,cygwin*)
5340     library_names_spec='$libname.dll.a'
5341     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5342     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5343       dldir=$destdir/`dirname \$dlpath`~
5344       test -d \$dldir || mkdir -p \$dldir~
5345       $install_prog .libs/$dlname \$dldir/$dlname'
5346     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5347       dlpath=$dir/\$dldll~
5348        $rm \$dlpath'
5349     ;;
5350   yes,mingw*)
5351     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5352     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5353     ;;
5354   yes,pw32*)
5355     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5356     ;;
5357   *)
5358     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5359     ;;
5360   esac
5361   dynamic_linker='Win32 ld.exe'
5362   # FIXME: first we should search . and the directory the executable is in
5363   shlibpath_var=PATH
5364   ;;
5365
5366 darwin* | rhapsody*)
5367   dynamic_linker="$host_os dyld"
5368   version_type=darwin
5369   need_lib_prefix=no
5370   need_version=no
5371   # FIXME: Relying on posixy $() will cause problems for
5372   #        cross-compilation, but unfortunately the echo tests do not
5373   #        yet detect zsh echo's removal of \ escapes.
5374   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)'
5375   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5376   shlibpath_overrides_runpath=yes
5377   shlibpath_var=DYLD_LIBRARY_PATH
5378   ;;
5379
5380 freebsd1*)
5381   dynamic_linker=no
5382   ;;
5383
5384 freebsd*)
5385   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5386   version_type=freebsd-$objformat
5387   case $version_type in
5388     freebsd-elf*)
5389       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5390       need_version=no
5391       need_lib_prefix=no
5392       ;;
5393     freebsd-*)
5394       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5395       need_version=yes
5396       ;;
5397   esac
5398   shlibpath_var=LD_LIBRARY_PATH
5399   case $host_os in
5400   freebsd2*)
5401     shlibpath_overrides_runpath=yes
5402     ;;
5403   *)
5404     shlibpath_overrides_runpath=no
5405     hardcode_into_libs=yes
5406     ;;
5407   esac
5408   ;;
5409
5410 gnu*)
5411   version_type=linux
5412   need_lib_prefix=no
5413   need_version=no
5414   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5415   soname_spec='${libname}${release}.so$major'
5416   shlibpath_var=LD_LIBRARY_PATH
5417   hardcode_into_libs=yes
5418   ;;
5419
5420 hpux9* | hpux10* | hpux11*)
5421   # Give a soname corresponding to the major version so that dld.sl refuses to
5422   # link against other versions.
5423   dynamic_linker="$host_os dld.sl"
5424   version_type=sunos
5425   need_lib_prefix=no
5426   need_version=no
5427   shlibpath_var=SHLIB_PATH
5428   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5429   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5430   soname_spec='${libname}${release}.sl$major'
5431   # HP-UX runs *really* slowly unless shared libraries are mode 555.
5432   postinstall_cmds='chmod 555 $lib'
5433   ;;
5434
5435 irix5* | irix6*)
5436   version_type=irix
5437   need_lib_prefix=no
5438   need_version=no
5439   soname_spec='${libname}${release}.so$major'
5440   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5441   case $host_os in
5442   irix5*)
5443     libsuff= shlibsuff=
5444     ;;
5445   *)
5446     case $LD in # libtool.m4 will add one of these switches to LD
5447     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5448     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5449     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5450     *) libsuff= shlibsuff= libmagic=never-match;;
5451     esac
5452     ;;
5453   esac
5454   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5455   shlibpath_overrides_runpath=no
5456   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5457   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5458   ;;
5459
5460 # No shared lib support for Linux oldld, aout, or coff.
5461 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5462   dynamic_linker=no
5463   ;;
5464
5465 # This must be Linux ELF.
5466 linux-gnu*)
5467   version_type=linux
5468   need_lib_prefix=no
5469   need_version=no
5470   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5471   soname_spec='${libname}${release}.so$major'
5472   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5473   shlibpath_var=LD_LIBRARY_PATH
5474   shlibpath_overrides_runpath=no
5475   # This implies no fast_install, which is unacceptable.
5476   # Some rework will be needed to allow for fast_install
5477   # before this can be enabled.
5478   hardcode_into_libs=yes
5479
5480   # We used to test for /lib/ld.so.1 and disable shared libraries on
5481   # powerpc, because MkLinux only supported shared libraries with the
5482   # GNU dynamic linker.  Since this was broken with cross compilers,
5483   # most powerpc-linux boxes support dynamic linking these days and
5484   # people can always --disable-shared, the test was removed, and we
5485   # assume the GNU/Linux dynamic linker is in use.
5486   dynamic_linker='GNU/Linux ld.so'
5487   ;;
5488
5489 netbsd*)
5490   version_type=sunos
5491   need_lib_prefix=no
5492   need_version=no
5493   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5494     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5495     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5496     dynamic_linker='NetBSD (a.out) ld.so'
5497   else
5498     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5499     soname_spec='${libname}${release}.so$major'
5500     dynamic_linker='NetBSD ld.elf_so'
5501   fi
5502   shlibpath_var=LD_LIBRARY_PATH
5503   shlibpath_overrides_runpath=yes
5504   hardcode_into_libs=yes
5505   ;;
5506
5507 newsos6)
5508   version_type=linux
5509   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5510   shlibpath_var=LD_LIBRARY_PATH
5511   shlibpath_overrides_runpath=yes
5512   ;;
5513
5514 openbsd*)
5515   version_type=sunos
5516   need_lib_prefix=no
5517   need_version=no
5518   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5519     case "$host_os" in
5520     openbsd2.[89] | openbsd2.[89].*)
5521       shlibpath_overrides_runpath=no
5522       ;;
5523     *)
5524       shlibpath_overrides_runpath=yes
5525       ;;
5526     esac
5527   else
5528     shlibpath_overrides_runpath=yes
5529   fi
5530   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5531   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5532   shlibpath_var=LD_LIBRARY_PATH
5533   ;;
5534
5535 os2*)
5536   libname_spec='$name'
5537   need_lib_prefix=no
5538   library_names_spec='$libname.dll $libname.a'
5539   dynamic_linker='OS/2 ld.exe'
5540   shlibpath_var=LIBPATH
5541   ;;
5542
5543 osf3* | osf4* | osf5*)
5544   version_type=osf
5545   need_version=no
5546   soname_spec='${libname}${release}.so'
5547   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5548   shlibpath_var=LD_LIBRARY_PATH
5549   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5550   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5551   ;;
5552
5553 sco3.2v5*)
5554   version_type=osf
5555   soname_spec='${libname}${release}.so$major'
5556   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5557   shlibpath_var=LD_LIBRARY_PATH
5558   ;;
5559
5560 solaris*)
5561   version_type=linux
5562   need_lib_prefix=no
5563   need_version=no
5564   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5565   soname_spec='${libname}${release}.so$major'
5566   shlibpath_var=LD_LIBRARY_PATH
5567   shlibpath_overrides_runpath=yes
5568   hardcode_into_libs=yes
5569   # ldd complains unless libraries are executable
5570   postinstall_cmds='chmod +x $lib'
5571   ;;
5572
5573 sunos4*)
5574   version_type=sunos
5575   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5576   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5577   shlibpath_var=LD_LIBRARY_PATH
5578   shlibpath_overrides_runpath=yes
5579   if test "$with_gnu_ld" = yes; then
5580     need_lib_prefix=no
5581   fi
5582   need_version=yes
5583   ;;
5584
5585 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5586   version_type=linux
5587   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5588   soname_spec='${libname}${release}.so$major'
5589   shlibpath_var=LD_LIBRARY_PATH
5590   case $host_vendor in
5591     sni)
5592       shlibpath_overrides_runpath=no
5593       ;;
5594     motorola)
5595       need_lib_prefix=no
5596       need_version=no
5597       shlibpath_overrides_runpath=no
5598       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5599       ;;
5600   esac
5601   ;;
5602
5603 uts4*)
5604   version_type=linux
5605   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5606   soname_spec='${libname}${release}.so$major'
5607   shlibpath_var=LD_LIBRARY_PATH
5608   ;;
5609
5610 dgux*)
5611   version_type=linux
5612   need_lib_prefix=no
5613   need_version=no
5614   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5615   soname_spec='${libname}${release}.so$major'
5616   shlibpath_var=LD_LIBRARY_PATH
5617   ;;
5618
5619 sysv4*MP*)
5620   if test -d /usr/nec ;then
5621     version_type=linux
5622     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5623     soname_spec='$libname.so.$major'
5624     shlibpath_var=LD_LIBRARY_PATH
5625   fi
5626   ;;
5627
5628 *)
5629   dynamic_linker=no
5630   ;;
5631 esac
5632 echo "$as_me:5632: result: $dynamic_linker" >&5
5633 echo "${ECHO_T}$dynamic_linker" >&6
5634 test "$dynamic_linker" = no && can_build_shared=no
5635 ##
5636 ## END FIXME
5637
5638 ## FIXME: this should be a separate macro
5639 ##
5640 # Report the final consequences.
5641 echo "$as_me:5641: checking if libtool supports shared libraries" >&5
5642 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5643 echo "$as_me:5643: result: $can_build_shared" >&5
5644 echo "${ECHO_T}$can_build_shared" >&6
5645 ##
5646 ## END FIXME
5647
5648 ## FIXME: this should be a separate macro
5649 ##
5650 echo "$as_me:5650: checking whether to build shared libraries" >&5
5651 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5652 test "$can_build_shared" = "no" && enable_shared=no
5653
5654 # On AIX, shared libraries and static libraries use the same namespace, and
5655 # are all built from PIC.
5656 case "$host_os" in
5657 aix3*)
5658   test "$enable_shared" = yes && enable_static=no
5659   if test -n "$RANLIB"; then
5660     archive_cmds="$archive_cmds~\$RANLIB \$lib"
5661     postinstall_cmds='$RANLIB $lib'
5662   fi
5663   ;;
5664
5665 aix4*)
5666   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5667     test "$enable_shared" = yes && enable_static=no
5668   fi
5669   ;;
5670 esac
5671 echo "$as_me:5671: result: $enable_shared" >&5
5672 echo "${ECHO_T}$enable_shared" >&6
5673 ##
5674 ## END FIXME
5675
5676 ## FIXME: this should be a separate macro
5677 ##
5678 echo "$as_me:5678: checking whether to build static libraries" >&5
5679 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5680 # Make sure either enable_shared or enable_static is yes.
5681 test "$enable_shared" = yes || enable_static=yes
5682 echo "$as_me:5682: result: $enable_static" >&5
5683 echo "${ECHO_T}$enable_static" >&6
5684 ##
5685 ## END FIXME
5686
5687 if test "$hardcode_action" = relink; then
5688   # Fast installation is not supported
5689   enable_fast_install=no
5690 elif test "$shlibpath_overrides_runpath" = yes ||
5691      test "$enable_shared" = no; then
5692   # Fast installation is not necessary
5693   enable_fast_install=needless
5694 fi
5695
5696 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5697 if test "$GCC" = yes; then
5698   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5699 fi
5700
5701 if test "x$enable_dlopen" != xyes; then
5702   enable_dlopen=unknown
5703   enable_dlopen_self=unknown
5704   enable_dlopen_self_static=unknown
5705 else
5706   lt_cv_dlopen=no
5707   lt_cv_dlopen_libs=
5708
5709   case $host_os in
5710   beos*)
5711     lt_cv_dlopen="load_add_on"
5712     lt_cv_dlopen_libs=
5713     lt_cv_dlopen_self=yes
5714     ;;
5715
5716   cygwin* | mingw* | pw32*)
5717     lt_cv_dlopen="LoadLibrary"
5718     lt_cv_dlopen_libs=
5719    ;;
5720
5721   *)
5722     echo "$as_me:5722: checking for shl_load" >&5
5723 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5724 if test "${ac_cv_func_shl_load+set}" = set; then
5725   echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727   cat >conftest.$ac_ext <<_ACEOF
5728 #line 5728 "configure"
5729 #include "confdefs.h"
5730 /* System header to define __stub macros and hopefully few prototypes,
5731     which can conflict with char shl_load (); below.  */
5732 #include <assert.h>
5733 /* Override any gcc2 internal prototype to avoid an error.  */
5734 #ifdef __cplusplus
5735 extern "C"
5736 #endif
5737 /* We use char because int might match the return type of a gcc2
5738    builtin and then its argument prototype would still apply.  */
5739 char shl_load ();
5740 char (*f) ();
5741
5742 #ifdef F77_DUMMY_MAIN
5743 #  ifdef __cplusplus
5744      extern "C"
5745 #  endif
5746    int F77_DUMMY_MAIN() { return 1; }
5747 #endif
5748 int
5749 main ()
5750 {
5751 /* The GNU C library defines this for functions which it implements
5752     to always fail with ENOSYS.  Some functions are actually named
5753     something starting with __ and the normal name is an alias.  */
5754 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5755 choke me
5756 #else
5757 f = shl_load;
5758 #endif
5759
5760   ;
5761   return 0;
5762 }
5763 _ACEOF
5764 rm -f conftest.$ac_objext conftest$ac_exeext
5765 if { (eval echo "$as_me:5765: \"$ac_link\"") >&5
5766   (eval $ac_link) 2>&5
5767   ac_status=$?
5768   echo "$as_me:5768: \$? = $ac_status" >&5
5769   (exit $ac_status); } &&
5770          { ac_try='test -s conftest$ac_exeext'
5771   { (eval echo "$as_me:5771: \"$ac_try\"") >&5
5772   (eval $ac_try) 2>&5
5773   ac_status=$?
5774   echo "$as_me:5774: \$? = $ac_status" >&5
5775   (exit $ac_status); }; }; then
5776   ac_cv_func_shl_load=yes
5777 else
5778   echo "$as_me: failed program was:" >&5
5779 cat conftest.$ac_ext >&5
5780 ac_cv_func_shl_load=no
5781 fi
5782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5783 fi
5784 echo "$as_me:5784: result: $ac_cv_func_shl_load" >&5
5785 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5786 if test $ac_cv_func_shl_load = yes; then
5787   lt_cv_dlopen="shl_load"
5788 else
5789   echo "$as_me:5789: checking for shl_load in -ldld" >&5
5790 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5791 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794   ac_check_lib_save_LIBS=$LIBS
5795 LIBS="-ldld  $LIBS"
5796 cat >conftest.$ac_ext <<_ACEOF
5797 #line 5797 "configure"
5798 #include "confdefs.h"
5799
5800 /* Override any gcc2 internal prototype to avoid an error.  */
5801 #ifdef __cplusplus
5802 extern "C"
5803 #endif
5804 /* We use char because int might match the return type of a gcc2
5805    builtin and then its argument prototype would still apply.  */
5806 char shl_load ();
5807 #ifdef F77_DUMMY_MAIN
5808 #  ifdef __cplusplus
5809      extern "C"
5810 #  endif
5811    int F77_DUMMY_MAIN() { return 1; }
5812 #endif
5813 int
5814 main ()
5815 {
5816 shl_load ();
5817   ;
5818   return 0;
5819 }
5820 _ACEOF
5821 rm -f conftest.$ac_objext conftest$ac_exeext
5822 if { (eval echo "$as_me:5822: \"$ac_link\"") >&5
5823   (eval $ac_link) 2>&5
5824   ac_status=$?
5825   echo "$as_me:5825: \$? = $ac_status" >&5
5826   (exit $ac_status); } &&
5827          { ac_try='test -s conftest$ac_exeext'
5828   { (eval echo "$as_me:5828: \"$ac_try\"") >&5
5829   (eval $ac_try) 2>&5
5830   ac_status=$?
5831   echo "$as_me:5831: \$? = $ac_status" >&5
5832   (exit $ac_status); }; }; then
5833   ac_cv_lib_dld_shl_load=yes
5834 else
5835   echo "$as_me: failed program was:" >&5
5836 cat conftest.$ac_ext >&5
5837 ac_cv_lib_dld_shl_load=no
5838 fi
5839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5840 LIBS=$ac_check_lib_save_LIBS
5841 fi
5842 echo "$as_me:5842: result: $ac_cv_lib_dld_shl_load" >&5
5843 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5844 if test $ac_cv_lib_dld_shl_load = yes; then
5845   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5846 else
5847   echo "$as_me:5847: checking for dlopen" >&5
5848 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5849 if test "${ac_cv_func_dlopen+set}" = set; then
5850   echo $ECHO_N "(cached) $ECHO_C" >&6
5851 else
5852   cat >conftest.$ac_ext <<_ACEOF
5853 #line 5853 "configure"
5854 #include "confdefs.h"
5855 /* System header to define __stub macros and hopefully few prototypes,
5856     which can conflict with char dlopen (); below.  */
5857 #include <assert.h>
5858 /* Override any gcc2 internal prototype to avoid an error.  */
5859 #ifdef __cplusplus
5860 extern "C"
5861 #endif
5862 /* We use char because int might match the return type of a gcc2
5863    builtin and then its argument prototype would still apply.  */
5864 char dlopen ();
5865 char (*f) ();
5866
5867 #ifdef F77_DUMMY_MAIN
5868 #  ifdef __cplusplus
5869      extern "C"
5870 #  endif
5871    int F77_DUMMY_MAIN() { return 1; }
5872 #endif
5873 int
5874 main ()
5875 {
5876 /* The GNU C library defines this for functions which it implements
5877     to always fail with ENOSYS.  Some functions are actually named
5878     something starting with __ and the normal name is an alias.  */
5879 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5880 choke me
5881 #else
5882 f = dlopen;
5883 #endif
5884
5885   ;
5886   return 0;
5887 }
5888 _ACEOF
5889 rm -f conftest.$ac_objext conftest$ac_exeext
5890 if { (eval echo "$as_me:5890: \"$ac_link\"") >&5
5891   (eval $ac_link) 2>&5
5892   ac_status=$?
5893   echo "$as_me:5893: \$? = $ac_status" >&5
5894   (exit $ac_status); } &&
5895          { ac_try='test -s conftest$ac_exeext'
5896   { (eval echo "$as_me:5896: \"$ac_try\"") >&5
5897   (eval $ac_try) 2>&5
5898   ac_status=$?
5899   echo "$as_me:5899: \$? = $ac_status" >&5
5900   (exit $ac_status); }; }; then
5901   ac_cv_func_dlopen=yes
5902 else
5903   echo "$as_me: failed program was:" >&5
5904 cat conftest.$ac_ext >&5
5905 ac_cv_func_dlopen=no
5906 fi
5907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5908 fi
5909 echo "$as_me:5909: result: $ac_cv_func_dlopen" >&5
5910 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5911 if test $ac_cv_func_dlopen = yes; then
5912   lt_cv_dlopen="dlopen"
5913 else
5914   echo "$as_me:5914: checking for dlopen in -ldl" >&5
5915 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5916 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5917   echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919   ac_check_lib_save_LIBS=$LIBS
5920 LIBS="-ldl  $LIBS"
5921 cat >conftest.$ac_ext <<_ACEOF
5922 #line 5922 "configure"
5923 #include "confdefs.h"
5924
5925 /* Override any gcc2 internal prototype to avoid an error.  */
5926 #ifdef __cplusplus
5927 extern "C"
5928 #endif
5929 /* We use char because int might match the return type of a gcc2
5930    builtin and then its argument prototype would still apply.  */
5931 char dlopen ();
5932 #ifdef F77_DUMMY_MAIN
5933 #  ifdef __cplusplus
5934      extern "C"
5935 #  endif
5936    int F77_DUMMY_MAIN() { return 1; }
5937 #endif
5938 int
5939 main ()
5940 {
5941 dlopen ();
5942   ;
5943   return 0;
5944 }
5945 _ACEOF
5946 rm -f conftest.$ac_objext conftest$ac_exeext
5947 if { (eval echo "$as_me:5947: \"$ac_link\"") >&5
5948   (eval $ac_link) 2>&5
5949   ac_status=$?
5950   echo "$as_me:5950: \$? = $ac_status" >&5
5951   (exit $ac_status); } &&
5952          { ac_try='test -s conftest$ac_exeext'
5953   { (eval echo "$as_me:5953: \"$ac_try\"") >&5
5954   (eval $ac_try) 2>&5
5955   ac_status=$?
5956   echo "$as_me:5956: \$? = $ac_status" >&5
5957   (exit $ac_status); }; }; then
5958   ac_cv_lib_dl_dlopen=yes
5959 else
5960   echo "$as_me: failed program was:" >&5
5961 cat conftest.$ac_ext >&5
5962 ac_cv_lib_dl_dlopen=no
5963 fi
5964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5965 LIBS=$ac_check_lib_save_LIBS
5966 fi
5967 echo "$as_me:5967: result: $ac_cv_lib_dl_dlopen" >&5
5968 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5969 if test $ac_cv_lib_dl_dlopen = yes; then
5970   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5971 else
5972   echo "$as_me:5972: checking for dlopen in -lsvld" >&5
5973 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5974 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5975   echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977   ac_check_lib_save_LIBS=$LIBS
5978 LIBS="-lsvld  $LIBS"
5979 cat >conftest.$ac_ext <<_ACEOF
5980 #line 5980 "configure"
5981 #include "confdefs.h"
5982
5983 /* Override any gcc2 internal prototype to avoid an error.  */
5984 #ifdef __cplusplus
5985 extern "C"
5986 #endif
5987 /* We use char because int might match the return type of a gcc2
5988    builtin and then its argument prototype would still apply.  */
5989 char dlopen ();
5990 #ifdef F77_DUMMY_MAIN
5991 #  ifdef __cplusplus
5992      extern "C"
5993 #  endif
5994    int F77_DUMMY_MAIN() { return 1; }
5995 #endif
5996 int
5997 main ()
5998 {
5999 dlopen ();
6000   ;
6001   return 0;
6002 }
6003 _ACEOF
6004 rm -f conftest.$ac_objext conftest$ac_exeext
6005 if { (eval echo "$as_me:6005: \"$ac_link\"") >&5
6006   (eval $ac_link) 2>&5
6007   ac_status=$?
6008   echo "$as_me:6008: \$? = $ac_status" >&5
6009   (exit $ac_status); } &&
6010          { ac_try='test -s conftest$ac_exeext'
6011   { (eval echo "$as_me:6011: \"$ac_try\"") >&5
6012   (eval $ac_try) 2>&5
6013   ac_status=$?
6014   echo "$as_me:6014: \$? = $ac_status" >&5
6015   (exit $ac_status); }; }; then
6016   ac_cv_lib_svld_dlopen=yes
6017 else
6018   echo "$as_me: failed program was:" >&5
6019 cat conftest.$ac_ext >&5
6020 ac_cv_lib_svld_dlopen=no
6021 fi
6022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6023 LIBS=$ac_check_lib_save_LIBS
6024 fi
6025 echo "$as_me:6025: result: $ac_cv_lib_svld_dlopen" >&5
6026 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6027 if test $ac_cv_lib_svld_dlopen = yes; then
6028   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6029 else
6030   echo "$as_me:6030: checking for dld_link in -ldld" >&5
6031 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6032 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6033   echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035   ac_check_lib_save_LIBS=$LIBS
6036 LIBS="-ldld  $LIBS"
6037 cat >conftest.$ac_ext <<_ACEOF
6038 #line 6038 "configure"
6039 #include "confdefs.h"
6040
6041 /* Override any gcc2 internal prototype to avoid an error.  */
6042 #ifdef __cplusplus
6043 extern "C"
6044 #endif
6045 /* We use char because int might match the return type of a gcc2
6046    builtin and then its argument prototype would still apply.  */
6047 char dld_link ();
6048 #ifdef F77_DUMMY_MAIN
6049 #  ifdef __cplusplus
6050      extern "C"
6051 #  endif
6052    int F77_DUMMY_MAIN() { return 1; }
6053 #endif
6054 int
6055 main ()
6056 {
6057 dld_link ();
6058   ;
6059   return 0;
6060 }
6061 _ACEOF
6062 rm -f conftest.$ac_objext conftest$ac_exeext
6063 if { (eval echo "$as_me:6063: \"$ac_link\"") >&5
6064   (eval $ac_link) 2>&5
6065   ac_status=$?
6066   echo "$as_me:6066: \$? = $ac_status" >&5
6067   (exit $ac_status); } &&
6068          { ac_try='test -s conftest$ac_exeext'
6069   { (eval echo "$as_me:6069: \"$ac_try\"") >&5
6070   (eval $ac_try) 2>&5
6071   ac_status=$?
6072   echo "$as_me:6072: \$? = $ac_status" >&5
6073   (exit $ac_status); }; }; then
6074   ac_cv_lib_dld_dld_link=yes
6075 else
6076   echo "$as_me: failed program was:" >&5
6077 cat conftest.$ac_ext >&5
6078 ac_cv_lib_dld_dld_link=no
6079 fi
6080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6081 LIBS=$ac_check_lib_save_LIBS
6082 fi
6083 echo "$as_me:6083: result: $ac_cv_lib_dld_dld_link" >&5
6084 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6085 if test $ac_cv_lib_dld_dld_link = yes; then
6086   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6087 fi
6088
6089 fi
6090
6091 fi
6092
6093 fi
6094
6095 fi
6096
6097 fi
6098
6099     ;;
6100   esac
6101
6102   if test "x$lt_cv_dlopen" != xno; then
6103     enable_dlopen=yes
6104   else
6105     enable_dlopen=no
6106   fi
6107
6108   case $lt_cv_dlopen in
6109   dlopen)
6110     save_CPPFLAGS="$CPPFLAGS"
6111         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6112
6113     save_LDFLAGS="$LDFLAGS"
6114     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6115
6116     save_LIBS="$LIBS"
6117     LIBS="$lt_cv_dlopen_libs $LIBS"
6118
6119     echo "$as_me:6119: checking whether a program can dlopen itself" >&5
6120 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6121 if test "${lt_cv_dlopen_self+set}" = set; then
6122   echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124           if test "$cross_compiling" = yes; then :
6125   lt_cv_dlopen_self=cross
6126 else
6127     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6128   lt_status=$lt_dlunknown
6129   cat > conftest.$ac_ext <<EOF
6130 #line 6130 "configure"
6131 #include "confdefs.h"
6132
6133 #if HAVE_DLFCN_H
6134 #include <dlfcn.h>
6135 #endif
6136
6137 #include <stdio.h>
6138
6139 #ifdef RTLD_GLOBAL
6140 #  define LT_DLGLOBAL           RTLD_GLOBAL
6141 #else
6142 #  ifdef DL_GLOBAL
6143 #    define LT_DLGLOBAL         DL_GLOBAL
6144 #  else
6145 #    define LT_DLGLOBAL         0
6146 #  endif
6147 #endif
6148
6149 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6150    find out it does not work in some platform. */
6151 #ifndef LT_DLLAZY_OR_NOW
6152 #  ifdef RTLD_LAZY
6153 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6154 #  else
6155 #    ifdef DL_LAZY
6156 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6157 #    else
6158 #      ifdef RTLD_NOW
6159 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6160 #      else
6161 #        ifdef DL_NOW
6162 #          define LT_DLLAZY_OR_NOW      DL_NOW
6163 #        else
6164 #          define LT_DLLAZY_OR_NOW      0
6165 #        endif
6166 #      endif
6167 #    endif
6168 #  endif
6169 #endif
6170
6171 #ifdef __cplusplus
6172 extern "C" void exit (int);
6173 #endif
6174
6175 void fnord() { int i=42;}
6176 int main ()
6177 {
6178   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6179   int status = $lt_dlunknown;
6180
6181   if (self)
6182     {
6183       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6184       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6185       /* dlclose (self); */
6186     }
6187
6188     exit (status);
6189 }
6190 EOF
6191   if { (eval echo "$as_me:6191: \"$ac_link\"") >&5
6192   (eval $ac_link) 2>&5
6193   ac_status=$?
6194   echo "$as_me:6194: \$? = $ac_status" >&5
6195   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6196     (./conftest; exit; ) 2>/dev/null
6197     lt_status=$?
6198     case x$lt_status in
6199       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6200       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6201       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6202     esac
6203   else :
6204     # compilation failed
6205     lt_cv_dlopen_self=no
6206   fi
6207 fi
6208 rm -fr conftest*
6209
6210 fi
6211 echo "$as_me:6211: result: $lt_cv_dlopen_self" >&5
6212 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6213
6214     if test "x$lt_cv_dlopen_self" = xyes; then
6215       LDFLAGS="$LDFLAGS $link_static_flag"
6216       echo "$as_me:6216: checking whether a statically linked program can dlopen itself" >&5
6217 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6218 if test "${lt_cv_dlopen_self_static+set}" = set; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221           if test "$cross_compiling" = yes; then :
6222   lt_cv_dlopen_self_static=cross
6223 else
6224     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6225   lt_status=$lt_dlunknown
6226   cat > conftest.$ac_ext <<EOF
6227 #line 6227 "configure"
6228 #include "confdefs.h"
6229
6230 #if HAVE_DLFCN_H
6231 #include <dlfcn.h>
6232 #endif
6233
6234 #include <stdio.h>
6235
6236 #ifdef RTLD_GLOBAL
6237 #  define LT_DLGLOBAL           RTLD_GLOBAL
6238 #else
6239 #  ifdef DL_GLOBAL
6240 #    define LT_DLGLOBAL         DL_GLOBAL
6241 #  else
6242 #    define LT_DLGLOBAL         0
6243 #  endif
6244 #endif
6245
6246 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6247    find out it does not work in some platform. */
6248 #ifndef LT_DLLAZY_OR_NOW
6249 #  ifdef RTLD_LAZY
6250 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6251 #  else
6252 #    ifdef DL_LAZY
6253 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6254 #    else
6255 #      ifdef RTLD_NOW
6256 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6257 #      else
6258 #        ifdef DL_NOW
6259 #          define LT_DLLAZY_OR_NOW      DL_NOW
6260 #        else
6261 #          define LT_DLLAZY_OR_NOW      0
6262 #        endif
6263 #      endif
6264 #    endif
6265 #  endif
6266 #endif
6267
6268 #ifdef __cplusplus
6269 extern "C" void exit (int);
6270 #endif
6271
6272 void fnord() { int i=42;}
6273 int main ()
6274 {
6275   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6276   int status = $lt_dlunknown;
6277
6278   if (self)
6279     {
6280       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6281       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6282       /* dlclose (self); */
6283     }
6284
6285     exit (status);
6286 }
6287 EOF
6288   if { (eval echo "$as_me:6288: \"$ac_link\"") >&5
6289   (eval $ac_link) 2>&5
6290   ac_status=$?
6291   echo "$as_me:6291: \$? = $ac_status" >&5
6292   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6293     (./conftest; exit; ) 2>/dev/null
6294     lt_status=$?
6295     case x$lt_status in
6296       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6297       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6298       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6299     esac
6300   else :
6301     # compilation failed
6302     lt_cv_dlopen_self_static=no
6303   fi
6304 fi
6305 rm -fr conftest*
6306
6307 fi
6308 echo "$as_me:6308: result: $lt_cv_dlopen_self_static" >&5
6309 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6310     fi
6311
6312     CPPFLAGS="$save_CPPFLAGS"
6313     LDFLAGS="$save_LDFLAGS"
6314     LIBS="$save_LIBS"
6315     ;;
6316   esac
6317
6318   case $lt_cv_dlopen_self in
6319   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6320   *) enable_dlopen_self=unknown ;;
6321   esac
6322
6323   case $lt_cv_dlopen_self_static in
6324   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6325   *) enable_dlopen_self_static=unknown ;;
6326   esac
6327 fi
6328
6329 ## FIXME: this should be a separate macro
6330 ##
6331 if test "$enable_shared" = yes && test "$GCC" = yes; then
6332   case $archive_cmds in
6333   *'~'*)
6334     # FIXME: we may have to deal with multi-command sequences.
6335     ;;
6336   '$CC '*)
6337     # Test whether the compiler implicitly links with -lc since on some
6338     # systems, -lgcc has to come before -lc. If gcc already passes -lc
6339     # to ld, don't add -lc before -lgcc.
6340     echo "$as_me:6340: checking whether -lc should be explicitly linked in" >&5
6341 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6342     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6343   echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345   $rm conftest*
6346     echo 'static int dummy;' > conftest.$ac_ext
6347
6348     if { (eval echo "$as_me:6348: \"$ac_compile\"") >&5
6349   (eval $ac_compile) 2>&5
6350   ac_status=$?
6351   echo "$as_me:6351: \$? = $ac_status" >&5
6352   (exit $ac_status); }; then
6353       soname=conftest
6354       lib=conftest
6355       libobjs=conftest.$ac_objext
6356       deplibs=
6357       wl=$lt_cv_prog_cc_wl
6358       compiler_flags=-v
6359       linker_flags=-v
6360       verstring=
6361       output_objdir=.
6362       libname=conftest
6363       save_allow_undefined_flag=$allow_undefined_flag
6364       allow_undefined_flag=
6365       if { (eval echo "$as_me:6365: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6366   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6367   ac_status=$?
6368   echo "$as_me:6368: \$? = $ac_status" >&5
6369   (exit $ac_status); }
6370       then
6371         lt_cv_archive_cmds_need_lc=no
6372       else
6373         lt_cv_archive_cmds_need_lc=yes
6374       fi
6375       allow_undefined_flag=$save_allow_undefined_flag
6376     else
6377       cat conftest.err 1>&5
6378     fi
6379 fi
6380
6381     echo "$as_me:6381: result: $lt_cv_archive_cmds_need_lc" >&5
6382 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6383     ;;
6384   esac
6385 fi
6386 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6387 ##
6388 ## END FIXME
6389
6390 ## FIXME: this should be a separate macro
6391 ##
6392 # The second clause should only fire when bootstrapping the
6393 # libtool distribution, otherwise you forgot to ship ltmain.sh
6394 # with your package, and you will get complaints that there are
6395 # no rules to generate ltmain.sh.
6396 if test -f "$ltmain"; then
6397   :
6398 else
6399   # If there is no Makefile yet, we rely on a make rule to execute
6400   # `config.status --recheck' to rerun these tests and create the
6401   # libtool script then.
6402   test -f Makefile && make "$ltmain"
6403 fi
6404
6405 if test -f "$ltmain"; then
6406   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6407   $rm -f "${ofile}T"
6408
6409   echo creating $ofile
6410
6411   # Now quote all the things that may contain metacharacters while being
6412   # careful not to overquote the AC_SUBSTed values.  We take copies of the
6413   # variables and quote the copies for generation of the libtool script.
6414   for var in echo old_CC old_CFLAGS \
6415     AR AR_FLAGS CC LD LN_S NM SHELL \
6416     reload_flag reload_cmds wl \
6417     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6418     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6419     library_names_spec soname_spec \
6420     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6421     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6422     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6423     old_striplib striplib file_magic_cmd export_symbols_cmds \
6424     deplibs_check_method allow_undefined_flag no_undefined_flag \
6425     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6426     global_symbol_to_c_name_address \
6427     hardcode_libdir_flag_spec hardcode_libdir_separator  \
6428     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6429     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6430
6431     case $var in
6432     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6433     old_postinstall_cmds | old_postuninstall_cmds | \
6434     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6435     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6436     postinstall_cmds | postuninstall_cmds | \
6437     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6438       # Double-quote double-evaled strings.
6439       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6440       ;;
6441     *)
6442       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6443       ;;
6444     esac
6445   done
6446
6447   cat <<__EOF__ > "${ofile}T"
6448 #! $SHELL
6449
6450 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6451 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6452 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6453 #
6454 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6455 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6456 #
6457 # This program is free software; you can redistribute it and/or modify
6458 # it under the terms of the GNU General Public License as published by
6459 # the Free Software Foundation; either version 2 of the License, or
6460 # (at your option) any later version.
6461 #
6462 # This program is distributed in the hope that it will be useful, but
6463 # WITHOUT ANY WARRANTY; without even the implied warranty of
6464 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6465 # General Public License for more details.
6466 #
6467 # You should have received a copy of the GNU General Public License
6468 # along with this program; if not, write to the Free Software
6469 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6470 #
6471 # As a special exception to the GNU General Public License, if you
6472 # distribute this file as part of a program that contains a
6473 # configuration script generated by Autoconf, you may include it under
6474 # the same distribution terms that you use for the rest of that program.
6475
6476 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6477 Xsed="sed -e s/^X//"
6478
6479 # The HP-UX ksh and POSIX shell print the target directory to stdout
6480 # if CDPATH is set.
6481 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6482
6483 # ### BEGIN LIBTOOL CONFIG
6484
6485 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6486
6487 # Shell to use when invoking shell scripts.
6488 SHELL=$lt_SHELL
6489
6490 # Whether or not to build shared libraries.
6491 build_libtool_libs=$enable_shared
6492
6493 # Whether or not to build static libraries.
6494 build_old_libs=$enable_static
6495
6496 # Whether or not to add -lc for building shared libraries.
6497 build_libtool_need_lc=$need_lc
6498
6499 # Whether or not to optimize for fast installation.
6500 fast_install=$enable_fast_install
6501
6502 # The host system.
6503 host_alias=$host_alias
6504 host=$host
6505
6506 # An echo program that does not interpret backslashes.
6507 echo=$lt_echo
6508
6509 # The archiver.
6510 AR=$lt_AR
6511 AR_FLAGS=$lt_AR_FLAGS
6512
6513 # The default C compiler.
6514 CC=$lt_CC
6515
6516 # Is the compiler the GNU C compiler?
6517 with_gcc=$GCC
6518
6519 # The linker used to build libraries.
6520 LD=$lt_LD
6521
6522 # Whether we need hard or soft links.
6523 LN_S=$lt_LN_S
6524
6525 # A BSD-compatible nm program.
6526 NM=$lt_NM
6527
6528 # A symbol stripping program
6529 STRIP=$STRIP
6530
6531 # Used to examine libraries when file_magic_cmd begins "file"
6532 MAGIC_CMD=$MAGIC_CMD
6533
6534 # Used on cygwin: DLL creation program.
6535 DLLTOOL="$DLLTOOL"
6536
6537 # Used on cygwin: object dumper.
6538 OBJDUMP="$OBJDUMP"
6539
6540 # Used on cygwin: assembler.
6541 AS="$AS"
6542
6543 # The name of the directory that contains temporary libtool files.
6544 objdir=$objdir
6545
6546 # How to create reloadable object files.
6547 reload_flag=$lt_reload_flag
6548 reload_cmds=$lt_reload_cmds
6549
6550 # How to pass a linker flag through the compiler.
6551 wl=$lt_wl
6552
6553 # Object file suffix (normally "o").
6554 objext="$ac_objext"
6555
6556 # Old archive suffix (normally "a").
6557 libext="$libext"
6558
6559 # Executable file suffix (normally "").
6560 exeext="$exeext"
6561
6562 # Additional compiler flags for building library objects.
6563 pic_flag=$lt_pic_flag
6564 pic_mode=$pic_mode
6565
6566 # Does compiler simultaneously support -c and -o options?
6567 compiler_c_o=$lt_compiler_c_o
6568
6569 # Can we write directly to a .lo ?
6570 compiler_o_lo=$lt_compiler_o_lo
6571
6572 # Must we lock files when doing compilation ?
6573 need_locks=$lt_need_locks
6574
6575 # Do we need the lib prefix for modules?
6576 need_lib_prefix=$need_lib_prefix
6577
6578 # Do we need a version for libraries?
6579 need_version=$need_version
6580
6581 # Whether dlopen is supported.
6582 dlopen_support=$enable_dlopen
6583
6584 # Whether dlopen of programs is supported.
6585 dlopen_self=$enable_dlopen_self
6586
6587 # Whether dlopen of statically linked programs is supported.
6588 dlopen_self_static=$enable_dlopen_self_static
6589
6590 # Compiler flag to prevent dynamic linking.
6591 link_static_flag=$lt_link_static_flag
6592
6593 # Compiler flag to turn off builtin functions.
6594 no_builtin_flag=$lt_no_builtin_flag
6595
6596 # Compiler flag to allow reflexive dlopens.
6597 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6598
6599 # Compiler flag to generate shared objects directly from archives.
6600 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6601
6602 # Compiler flag to generate thread-safe objects.
6603 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6604
6605 # Library versioning type.
6606 version_type=$version_type
6607
6608 # Format of library name prefix.
6609 libname_spec=$lt_libname_spec
6610
6611 # List of archive names.  First name is the real one, the rest are links.
6612 # The last name is the one that the linker finds with -lNAME.
6613 library_names_spec=$lt_library_names_spec
6614
6615 # The coded name of the library, if different from the real name.
6616 soname_spec=$lt_soname_spec
6617
6618 # Commands used to build and install an old-style archive.
6619 RANLIB=$lt_RANLIB
6620 old_archive_cmds=$lt_old_archive_cmds
6621 old_postinstall_cmds=$lt_old_postinstall_cmds
6622 old_postuninstall_cmds=$lt_old_postuninstall_cmds
6623
6624 # Create an old-style archive from a shared archive.
6625 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6626
6627 # Create a temporary old-style archive to link instead of a shared archive.
6628 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6629
6630 # Commands used to build and install a shared archive.
6631 archive_cmds=$lt_archive_cmds
6632 archive_expsym_cmds=$lt_archive_expsym_cmds
6633 postinstall_cmds=$lt_postinstall_cmds
6634 postuninstall_cmds=$lt_postuninstall_cmds
6635
6636 # Commands to strip libraries.
6637 old_striplib=$lt_old_striplib
6638 striplib=$lt_striplib
6639
6640 # Method to check whether dependent libraries are shared objects.
6641 deplibs_check_method=$lt_deplibs_check_method
6642
6643 # Command to use when deplibs_check_method == file_magic.
6644 file_magic_cmd=$lt_file_magic_cmd
6645
6646 # Flag that allows shared libraries with undefined symbols to be built.
6647 allow_undefined_flag=$lt_allow_undefined_flag
6648
6649 # Flag that forces no undefined symbols.
6650 no_undefined_flag=$lt_no_undefined_flag
6651
6652 # Commands used to finish a libtool library installation in a directory.
6653 finish_cmds=$lt_finish_cmds
6654
6655 # Same as above, but a single script fragment to be evaled but not shown.
6656 finish_eval=$lt_finish_eval
6657
6658 # Take the output of nm and produce a listing of raw symbols and C names.
6659 global_symbol_pipe=$lt_global_symbol_pipe
6660
6661 # Transform the output of nm in a proper C declaration
6662 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6663
6664 # Transform the output of nm in a C name address pair
6665 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6666
6667 # This is the shared library runtime path variable.
6668 runpath_var=$runpath_var
6669
6670 # This is the shared library path variable.
6671 shlibpath_var=$shlibpath_var
6672
6673 # Is shlibpath searched before the hard-coded library search path?
6674 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6675
6676 # How to hardcode a shared library path into an executable.
6677 hardcode_action=$hardcode_action
6678
6679 # Whether we should hardcode library paths into libraries.
6680 hardcode_into_libs=$hardcode_into_libs
6681
6682 # Flag to hardcode \$libdir into a binary during linking.
6683 # This must work even if \$libdir does not exist.
6684 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6685
6686 # Whether we need a single -rpath flag with a separated argument.
6687 hardcode_libdir_separator=$lt_hardcode_libdir_separator
6688
6689 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6690 # resulting binary.
6691 hardcode_direct=$hardcode_direct
6692
6693 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6694 # resulting binary.
6695 hardcode_minus_L=$hardcode_minus_L
6696
6697 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6698 # the resulting binary.
6699 hardcode_shlibpath_var=$hardcode_shlibpath_var
6700
6701 # Variables whose values should be saved in libtool wrapper scripts and
6702 # restored at relink time.
6703 variables_saved_for_relink="$variables_saved_for_relink"
6704
6705 # Whether libtool must link a program against all its dependency libraries.
6706 link_all_deplibs=$link_all_deplibs
6707
6708 # Compile-time system search path for libraries
6709 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6710
6711 # Run-time system search path for libraries
6712 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6713
6714 # Fix the shell variable \$srcfile for the compiler.
6715 fix_srcfile_path="$fix_srcfile_path"
6716
6717 # Set to yes if exported symbols are required.
6718 always_export_symbols=$always_export_symbols
6719
6720 # The commands to list exported symbols.
6721 export_symbols_cmds=$lt_export_symbols_cmds
6722
6723 # The commands to extract the exported symbol list from a shared archive.
6724 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6725
6726 # Symbols that should not be listed in the preloaded symbols.
6727 exclude_expsyms=$lt_exclude_expsyms
6728
6729 # Symbols that must always be exported.
6730 include_expsyms=$lt_include_expsyms
6731
6732 # ### END LIBTOOL CONFIG
6733
6734 __EOF__
6735
6736   case $host_os in
6737   aix3*)
6738     cat <<\EOF >> "${ofile}T"
6739
6740 # AIX sometimes has problems with the GCC collect2 program.  For some
6741 # reason, if we set the COLLECT_NAMES environment variable, the problems
6742 # vanish in a puff of smoke.
6743 if test "X${COLLECT_NAMES+set}" != Xset; then
6744   COLLECT_NAMES=
6745   export COLLECT_NAMES
6746 fi
6747 EOF
6748     ;;
6749   esac
6750
6751   case $host_os in
6752   cygwin* | mingw* | pw32* | os2*)
6753     cat <<'EOF' >> "${ofile}T"
6754       # This is a source program that is used to create dlls on Windows
6755       # Don't remove nor modify the starting and closing comments
6756 # /* ltdll.c starts here */
6757 # #define WIN32_LEAN_AND_MEAN
6758 # #include <windows.h>
6759 # #undef WIN32_LEAN_AND_MEAN
6760 # #include <stdio.h>
6761 #
6762 # #ifndef __CYGWIN__
6763 # #  ifdef __CYGWIN32__
6764 # #    define __CYGWIN__ __CYGWIN32__
6765 # #  endif
6766 # #endif
6767 #
6768 # #ifdef __cplusplus
6769 # extern "C" {
6770 # #endif
6771 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6772 # #ifdef __cplusplus
6773 # }
6774 # #endif
6775 #
6776 # #ifdef __CYGWIN__
6777 # #include <cygwin/cygwin_dll.h>
6778 # DECLARE_CYGWIN_DLL( DllMain );
6779 # #endif
6780 # HINSTANCE __hDllInstance_base;
6781 #
6782 # BOOL APIENTRY
6783 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6784 # {
6785 #   __hDllInstance_base = hInst;
6786 #   return TRUE;
6787 # }
6788 # /* ltdll.c ends here */
6789         # This is a source program that is used to create import libraries
6790         # on Windows for dlls which lack them. Don't remove nor modify the
6791         # starting and closing comments
6792 # /* impgen.c starts here */
6793 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
6794 #
6795 #  This file is part of GNU libtool.
6796 #
6797 #  This program is free software; you can redistribute it and/or modify
6798 #  it under the terms of the GNU General Public License as published by
6799 #  the Free Software Foundation; either version 2 of the License, or
6800 #  (at your option) any later version.
6801 #
6802 #  This program is distributed in the hope that it will be useful,
6803 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
6804 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6805 #  GNU General Public License for more details.
6806 #
6807 #  You should have received a copy of the GNU General Public License
6808 #  along with this program; if not, write to the Free Software
6809 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6810 #  */
6811 #
6812 # #include <stdio.h>            /* for printf() */
6813 # #include <unistd.h>           /* for open(), lseek(), read() */
6814 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
6815 # #include <string.h>           /* for strdup() */
6816 #
6817 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6818 # #ifndef O_BINARY
6819 # #define O_BINARY 0
6820 # #endif
6821 #
6822 # static unsigned int
6823 # pe_get16 (fd, offset)
6824 #      int fd;
6825 #      int offset;
6826 # {
6827 #   unsigned char b[2];
6828 #   lseek (fd, offset, SEEK_SET);
6829 #   read (fd, b, 2);
6830 #   return b[0] + (b[1]<<8);
6831 # }
6832 #
6833 # static unsigned int
6834 # pe_get32 (fd, offset)
6835 #     int fd;
6836 #     int offset;
6837 # {
6838 #   unsigned char b[4];
6839 #   lseek (fd, offset, SEEK_SET);
6840 #   read (fd, b, 4);
6841 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6842 # }
6843 #
6844 # static unsigned int
6845 # pe_as32 (ptr)
6846 #      void *ptr;
6847 # {
6848 #   unsigned char *b = ptr;
6849 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6850 # }
6851 #
6852 # int
6853 # main (argc, argv)
6854 #     int argc;
6855 #     char *argv[];
6856 # {
6857 #     int dll;
6858 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6859 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
6860 #     unsigned long name_rvas, nexp;
6861 #     unsigned char *expdata, *erva;
6862 #     char *filename, *dll_name;
6863 #
6864 #     filename = argv[1];
6865 #
6866 #     dll = open(filename, O_RDONLY|O_BINARY);
6867 #     if (dll < 1)
6868 #       return 1;
6869 #
6870 #     dll_name = filename;
6871 #
6872 #     for (i=0; filename[i]; i++)
6873 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
6874 #           dll_name = filename + i +1;
6875 #
6876 #     pe_header_offset = pe_get32 (dll, 0x3c);
6877 #     opthdr_ofs = pe_header_offset + 4 + 20;
6878 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
6879 #
6880 #     if (num_entries < 1) /* no exports */
6881 #       return 1;
6882 #
6883 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
6884 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
6885 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6886 #     secptr = (pe_header_offset + 4 + 20 +
6887 #             pe_get16 (dll, pe_header_offset + 4 + 16));
6888 #
6889 #     expptr = 0;
6890 #     for (i = 0; i < nsections; i++)
6891 #     {
6892 #       char sname[8];
6893 #       unsigned long secptr1 = secptr + 40 * i;
6894 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6895 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6896 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6897 #       lseek(dll, secptr1, SEEK_SET);
6898 #       read(dll, sname, 8);
6899 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
6900 #       {
6901 #           expptr = fptr + (export_rva - vaddr);
6902 #           if (export_rva + export_size > vaddr + vsize)
6903 #               export_size = vsize - (export_rva - vaddr);
6904 #           break;
6905 #       }
6906 #     }
6907 #
6908 #     expdata = (unsigned char*)malloc(export_size);
6909 #     lseek (dll, expptr, SEEK_SET);
6910 #     read (dll, expdata, export_size);
6911 #     erva = expdata - export_rva;
6912 #
6913 #     nexp = pe_as32 (expdata+24);
6914 #     name_rvas = pe_as32 (expdata+32);
6915 #
6916 #     printf ("EXPORTS\n");
6917 #     for (i = 0; i<nexp; i++)
6918 #     {
6919 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6920 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6921 #     }
6922 #
6923 #     return 0;
6924 # }
6925 # /* impgen.c ends here */
6926
6927 EOF
6928     ;;
6929   esac
6930
6931   # We use sed instead of cat because bash on DJGPP gets confused if
6932   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
6933   # text mode, it properly converts lines to CR/LF.  This bash problem
6934   # is reportedly fixed, but why not run on old versions too?
6935   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6936
6937   mv -f "${ofile}T" "$ofile" || \
6938     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6939   chmod +x "$ofile"
6940 fi
6941 ##
6942 ## END FIXME
6943
6944 # This can be used to rebuild libtool when needed
6945 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6946
6947 # Always use our own libtool.
6948 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6949
6950 # Prevent multiple expansion
6951
6952 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
6953 if test "${enable_strict_dependencies+set}" = set; then
6954   enableval="$enable_strict_dependencies"
6955
6956 fi;
6957
6958 logdir='${localstatedir}/log/radius'
6959 echo "$as_me:6959: checking logdir" >&5
6960 echo $ECHO_N "checking logdir... $ECHO_C" >&6
6961
6962 # Check whether --with-logdir or --without-logdir was given.
6963 if test "${with_logdir+set}" = set; then
6964   withval="$with_logdir"
6965    case "$withval" in
6966     no)
6967         { { echo "$as_me:6967: error: Need logdir" >&5
6968 echo "$as_me: error: Need logdir" >&2;}
6969    { (exit 1); exit 1; }; }
6970         ;;
6971     yes)
6972         ;;
6973     *)
6974         logdir="$withval"
6975         ;;
6976   esac
6977
6978 fi;
6979
6980 echo "$as_me:6980: result: $logdir" >&5
6981 echo "${ECHO_T}$logdir" >&6
6982
6983 radacctdir='${logdir}/radacct'
6984 echo "$as_me:6984: checking radacctdir" >&5
6985 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
6986
6987 # Check whether --with-radacctdir or --without-radacctdir was given.
6988 if test "${with_radacctdir+set}" = set; then
6989   withval="$with_radacctdir"
6990    case "$withval" in
6991     no)
6992         { { echo "$as_me:6992: error: Need radacctdir" >&5
6993 echo "$as_me: error: Need radacctdir" >&2;}
6994    { (exit 1); exit 1; }; }
6995         ;;
6996     yes)
6997         ;;
6998     *)
6999         radacctdir="$withval"
7000         ;;
7001   esac
7002
7003 fi;
7004
7005 echo "$as_me:7005: result: $radacctdir" >&5
7006 echo "${ECHO_T}$radacctdir" >&6
7007
7008 raddbdir='${sysconfdir}/raddb'
7009 echo "$as_me:7009: checking raddbdir" >&5
7010 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
7011
7012 # Check whether --with-raddbdir or --without-raddbdir was given.
7013 if test "${with_raddbdir+set}" = set; then
7014   withval="$with_raddbdir"
7015    case "$withval" in
7016     no)
7017         { { echo "$as_me:7017: error: Need raddbdir" >&5
7018 echo "$as_me: error: Need raddbdir" >&2;}
7019    { (exit 1); exit 1; }; }
7020         ;;
7021     yes)
7022         ;;
7023     *)
7024         raddbdir="$withval"
7025         ;;
7026   esac
7027
7028 fi;
7029
7030 echo "$as_me:7030: result: $raddbdir" >&5
7031 echo "${ECHO_T}$raddbdir" >&6
7032
7033 WITH_DICT_NOCASE=yes
7034
7035 # Check whether --with-dict-nocase or --without-dict-nocase was given.
7036 if test "${with_dict_nocase+set}" = set; then
7037   withval="$with_dict_nocase"
7038     case "$withval" in
7039     yes)
7040         ;;
7041     *)
7042         WITH_DICT_NOCASE=""
7043   esac
7044
7045 fi;
7046 if test "X$WITH_DICT_NOCASE" = "Xyes"; then
7047   cat >>confdefs.h <<\_ACEOF
7048 #define WITH_DICT_NOCASE 1
7049 _ACEOF
7050
7051 fi
7052
7053 ASCEND_BINARY=yes
7054
7055 # Check whether --with-ascend-binary or --without-ascend-binary was given.
7056 if test "${with_ascend_binary+set}" = set; then
7057   withval="$with_ascend_binary"
7058    case "$withval" in
7059     yes)
7060         ;;
7061     *)
7062         ASCEND_BINARY=""
7063   esac
7064
7065 fi;
7066 if test "X$ASCEND_BINARY" = "Xyes"; then
7067   cat >>confdefs.h <<\_ACEOF
7068 #define ASCEND_BINARY 1
7069 _ACEOF
7070
7071 fi
7072
7073 WITH_THREADS=yes
7074 WITH_THREAD_POOL=yes
7075
7076 # Check whether --with-threads or --without-threads was given.
7077 if test "${with_threads+set}" = set; then
7078   withval="$with_threads"
7079    case "$withval" in
7080     yes)
7081         ;;
7082     *)
7083         WITH_THREADS=""
7084         WITH_THREAD_POOL=""
7085   esac
7086
7087 fi;
7088
7089 WITH_SNMP=yes
7090
7091 # Check whether --with-snmp or --without-snmp was given.
7092 if test "${with_snmp+set}" = set; then
7093   withval="$with_snmp"
7094    case "$withval" in
7095     yes)
7096         ;;
7097     *)
7098         WITH_SNMP=no
7099   esac
7100
7101 fi;
7102
7103 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
7104 if test "${enable_ltdl_install+set}" = set; then
7105   enableval="$enable_ltdl_install"
7106
7107 fi;
7108 if test x"${enable_ltdl_install+set}" != xset; then
7109   enable_ltdl_install=yes
7110   ac_configure_args="$ac_configure_args --enable-ltdl-install"
7111 fi
7112
7113 subdirs="$subdirs libltdl"
7114
7115 STATIC_MODULES=
7116
7117 # Check whether --with-static_modules or --without-static_modules was given.
7118 if test "${with_static_modules+set}" = set; then
7119   withval="$with_static_modules"
7120
7121   for i in $withval; do
7122     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
7123   done
7124
7125 fi;
7126
7127 # Check whether --enable-developer or --disable-developer was given.
7128 if test "${enable_developer+set}" = set; then
7129   enableval="$enable_developer"
7130    case "$withval" in
7131     *)
7132         developer=no
7133         ;;
7134     yes)
7135         developer=yes
7136   esac
7137
7138 fi;
7139
7140 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
7141     developer="yes"
7142 fi
7143
7144 EXPERIMENTAL=
7145
7146 # Check whether --with-experimental-modules or --without-experimental-modules was given.
7147 if test "${with_experimental_modules+set}" = set; then
7148   withval="$with_experimental_modules"
7149    case "$withval" in
7150     yes)
7151         EXPERIMENTAL=yes
7152         ;;
7153     *)
7154   esac
7155
7156 fi;
7157
7158 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
7159 if test "${with_rlm_FOO_lib_dir+set}" = set; then
7160   withval="$with_rlm_FOO_lib_dir"
7161    case "$withval" in
7162     *)
7163         ;;
7164   esac
7165
7166 fi;
7167
7168 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
7169 if test "${with_rlm_FOO_include_dir+set}" = set; then
7170   withval="$with_rlm_FOO_include_dir"
7171    case "$withval" in
7172     *)
7173         ;;
7174   esac
7175
7176 fi;
7177
7178 CHECKRAD=checkrad.pl
7179 # Extract the first word of "perl", so it can be a program name with args.
7180 set dummy perl; ac_word=$2
7181 echo "$as_me:7181: checking for $ac_word" >&5
7182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7183 if test "${ac_cv_path_PERL+set}" = set; then
7184   echo $ECHO_N "(cached) $ECHO_C" >&6
7185 else
7186   case $PERL in
7187   [\\/]* | ?:[\\/]*)
7188   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7189   ;;
7190   *)
7191   ac_save_IFS=$IFS; IFS=$ac_path_separator
7192 ac_dummy="$PATH"
7193 for ac_dir in $ac_dummy; do
7194   IFS=$ac_save_IFS
7195   test -z "$ac_dir" && ac_dir=.
7196   if $as_executable_p "$ac_dir/$ac_word"; then
7197    ac_cv_path_PERL="$ac_dir/$ac_word"
7198    echo "$as_me:7198: found $ac_dir/$ac_word" >&5
7199    break
7200 fi
7201 done
7202
7203   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
7204   ;;
7205 esac
7206 fi
7207 PERL=$ac_cv_path_PERL
7208
7209 if test -n "$PERL"; then
7210   echo "$as_me:7210: result: $PERL" >&5
7211 echo "${ECHO_T}$PERL" >&6
7212 else
7213   echo "$as_me:7213: result: no" >&5
7214 echo "${ECHO_T}no" >&6
7215 fi
7216
7217 if test "x$ac_cv_path_PERL" = "x"; then
7218   { echo "$as_me:7218: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
7219 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
7220 fi
7221 # Extract the first word of "snmpget", so it can be a program name with args.
7222 set dummy snmpget; ac_word=$2
7223 echo "$as_me:7223: checking for $ac_word" >&5
7224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7225 if test "${ac_cv_path_SNMPGET+set}" = set; then
7226   echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228   case $SNMPGET in
7229   [\\/]* | ?:[\\/]*)
7230   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
7231   ;;
7232   *)
7233   ac_save_IFS=$IFS; IFS=$ac_path_separator
7234 ac_dummy="$PATH"
7235 for ac_dir in $ac_dummy; do
7236   IFS=$ac_save_IFS
7237   test -z "$ac_dir" && ac_dir=.
7238   if $as_executable_p "$ac_dir/$ac_word"; then
7239    ac_cv_path_SNMPGET="$ac_dir/$ac_word"
7240    echo "$as_me:7240: found $ac_dir/$ac_word" >&5
7241    break
7242 fi
7243 done
7244
7245   ;;
7246 esac
7247 fi
7248 SNMPGET=$ac_cv_path_SNMPGET
7249
7250 if test -n "$SNMPGET"; then
7251   echo "$as_me:7251: result: $SNMPGET" >&5
7252 echo "${ECHO_T}$SNMPGET" >&6
7253 else
7254   echo "$as_me:7254: result: no" >&5
7255 echo "${ECHO_T}no" >&6
7256 fi
7257
7258 if test "x$ac_cv_path_SNMPGET" = "x"; then
7259   { echo "$as_me:7259: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
7260 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
7261 fi
7262
7263 # Extract the first word of "snmpwalk", so it can be a program name with args.
7264 set dummy snmpwalk; ac_word=$2
7265 echo "$as_me:7265: checking for $ac_word" >&5
7266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7267 if test "${ac_cv_path_SNMPWALK+set}" = set; then
7268   echo $ECHO_N "(cached) $ECHO_C" >&6
7269 else
7270   case $SNMPWALK in
7271   [\\/]* | ?:[\\/]*)
7272   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
7273   ;;
7274   *)
7275   ac_save_IFS=$IFS; IFS=$ac_path_separator
7276 ac_dummy="$PATH"
7277 for ac_dir in $ac_dummy; do
7278   IFS=$ac_save_IFS
7279   test -z "$ac_dir" && ac_dir=.
7280   if $as_executable_p "$ac_dir/$ac_word"; then
7281    ac_cv_path_SNMPWALK="$ac_dir/$ac_word"
7282    echo "$as_me:7282: found $ac_dir/$ac_word" >&5
7283    break
7284 fi
7285 done
7286
7287   ;;
7288 esac
7289 fi
7290 SNMPWALK=$ac_cv_path_SNMPWALK
7291
7292 if test -n "$SNMPWALK"; then
7293   echo "$as_me:7293: result: $SNMPWALK" >&5
7294 echo "${ECHO_T}$SNMPWALK" >&6
7295 else
7296   echo "$as_me:7296: result: no" >&5
7297 echo "${ECHO_T}no" >&6
7298 fi
7299
7300 if test "x$ac_cv_path_SNMPWALK" = "x"; then
7301   { echo "$as_me:7301: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
7302 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
7303 fi
7304
7305 # Extract the first word of "rusers", so it can be a program name with args.
7306 set dummy rusers; ac_word=$2
7307 echo "$as_me:7307: checking for $ac_word" >&5
7308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7309 if test "${ac_cv_path_RUSERS+set}" = set; then
7310   echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312   case $RUSERS in
7313   [\\/]* | ?:[\\/]*)
7314   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
7315   ;;
7316   *)
7317   ac_save_IFS=$IFS; IFS=$ac_path_separator
7318 ac_dummy="$PATH"
7319 for ac_dir in $ac_dummy; do
7320   IFS=$ac_save_IFS
7321   test -z "$ac_dir" && ac_dir=.
7322   if $as_executable_p "$ac_dir/$ac_word"; then
7323    ac_cv_path_RUSERS="$ac_dir/$ac_word"
7324    echo "$as_me:7324: found $ac_dir/$ac_word" >&5
7325    break
7326 fi
7327 done
7328
7329   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
7330   ;;
7331 esac
7332 fi
7333 RUSERS=$ac_cv_path_RUSERS
7334
7335 if test -n "$RUSERS"; then
7336   echo "$as_me:7336: result: $RUSERS" >&5
7337 echo "${ECHO_T}$RUSERS" >&6
7338 else
7339   echo "$as_me:7339: result: no" >&5
7340 echo "${ECHO_T}no" >&6
7341 fi
7342
7343 missing_dir=`cd $ac_aux_dir && pwd`
7344 echo "$as_me:7344: checking for working aclocal" >&5
7345 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
7346 # Run test in a subshell; some versions of sh will print an error if
7347 # an executable is not found, even if stderr is redirected.
7348 # Redirect stdin to placate older versions of autoconf.  Sigh.
7349 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
7350    ACLOCAL=aclocal
7351    echo "$as_me:7351: result: found" >&5
7352 echo "${ECHO_T}found" >&6
7353 else
7354    ACLOCAL="$missing_dir/missing aclocal"
7355    echo "$as_me:7355: result: missing" >&5
7356 echo "${ECHO_T}missing" >&6
7357 fi
7358
7359 echo "$as_me:7359: checking for working autoconf" >&5
7360 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
7361 # Run test in a subshell; some versions of sh will print an error if
7362 # an executable is not found, even if stderr is redirected.
7363 # Redirect stdin to placate older versions of autoconf.  Sigh.
7364 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
7365    AUTOCONF=autoconf
7366    echo "$as_me:7366: result: found" >&5
7367 echo "${ECHO_T}found" >&6
7368 else
7369    AUTOCONF="$missing_dir/missing autoconf"
7370    echo "$as_me:7370: result: missing" >&5
7371 echo "${ECHO_T}missing" >&6
7372 fi
7373
7374 echo "$as_me:7374: checking for working autoheader" >&5
7375 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
7376 # Run test in a subshell; some versions of sh will print an error if
7377 # an executable is not found, even if stderr is redirected.
7378 # Redirect stdin to placate older versions of autoconf.  Sigh.
7379 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
7380    AUTOHEADER=autoheader
7381    echo "$as_me:7381: result: found" >&5
7382 echo "${ECHO_T}found" >&6
7383 else
7384    AUTOHEADER="$missing_dir/missing autoheader"
7385    echo "$as_me:7385: result: missing" >&5
7386 echo "${ECHO_T}missing" >&6
7387 fi
7388
7389 # Extract the first word of "locate", so it can be a program name with args.
7390 set dummy locate; ac_word=$2
7391 echo "$as_me:7391: checking for $ac_word" >&5
7392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7393 if test "${ac_cv_path_LOCATE+set}" = set; then
7394   echo $ECHO_N "(cached) $ECHO_C" >&6
7395 else
7396   case $LOCATE in
7397   [\\/]* | ?:[\\/]*)
7398   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
7399   ;;
7400   *)
7401   ac_save_IFS=$IFS; IFS=$ac_path_separator
7402 ac_dummy="$PATH"
7403 for ac_dir in $ac_dummy; do
7404   IFS=$ac_save_IFS
7405   test -z "$ac_dir" && ac_dir=.
7406   if $as_executable_p "$ac_dir/$ac_word"; then
7407    ac_cv_path_LOCATE="$ac_dir/$ac_word"
7408    echo "$as_me:7408: found $ac_dir/$ac_word" >&5
7409    break
7410 fi
7411 done
7412
7413   ;;
7414 esac
7415 fi
7416 LOCATE=$ac_cv_path_LOCATE
7417
7418 if test -n "$LOCATE"; then
7419   echo "$as_me:7419: result: $LOCATE" >&5
7420 echo "${ECHO_T}$LOCATE" >&6
7421 else
7422   echo "$as_me:7422: result: no" >&5
7423 echo "${ECHO_T}no" >&6
7424 fi
7425
7426 # Extract the first word of "dirname", so it can be a program name with args.
7427 set dummy dirname; ac_word=$2
7428 echo "$as_me:7428: checking for $ac_word" >&5
7429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7430 if test "${ac_cv_path_DIRNAME+set}" = set; then
7431   echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433   case $DIRNAME in
7434   [\\/]* | ?:[\\/]*)
7435   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7436   ;;
7437   *)
7438   ac_save_IFS=$IFS; IFS=$ac_path_separator
7439 ac_dummy="$PATH"
7440 for ac_dir in $ac_dummy; do
7441   IFS=$ac_save_IFS
7442   test -z "$ac_dir" && ac_dir=.
7443   if $as_executable_p "$ac_dir/$ac_word"; then
7444    ac_cv_path_DIRNAME="$ac_dir/$ac_word"
7445    echo "$as_me:7445: found $ac_dir/$ac_word" >&5
7446    break
7447 fi
7448 done
7449
7450   ;;
7451 esac
7452 fi
7453 DIRNAME=$ac_cv_path_DIRNAME
7454
7455 if test -n "$DIRNAME"; then
7456   echo "$as_me:7456: result: $DIRNAME" >&5
7457 echo "${ECHO_T}$DIRNAME" >&6
7458 else
7459   echo "$as_me:7459: result: no" >&5
7460 echo "${ECHO_T}no" >&6
7461 fi
7462
7463 # Extract the first word of "grep", so it can be a program name with args.
7464 set dummy grep; ac_word=$2
7465 echo "$as_me:7465: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7467 if test "${ac_cv_path_GREP+set}" = set; then
7468   echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470   case $GREP in
7471   [\\/]* | ?:[\\/]*)
7472   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7473   ;;
7474   *)
7475   ac_save_IFS=$IFS; IFS=$ac_path_separator
7476 ac_dummy="$PATH"
7477 for ac_dir in $ac_dummy; do
7478   IFS=$ac_save_IFS
7479   test -z "$ac_dir" && ac_dir=.
7480   if $as_executable_p "$ac_dir/$ac_word"; then
7481    ac_cv_path_GREP="$ac_dir/$ac_word"
7482    echo "$as_me:7482: found $ac_dir/$ac_word" >&5
7483    break
7484 fi
7485 done
7486
7487   ;;
7488 esac
7489 fi
7490 GREP=$ac_cv_path_GREP
7491
7492 if test -n "$GREP"; then
7493   echo "$as_me:7493: result: $GREP" >&5
7494 echo "${ECHO_T}$GREP" >&6
7495 else
7496   echo "$as_me:7496: result: no" >&5
7497 echo "${ECHO_T}no" >&6
7498 fi
7499
7500 PTHREADLIB=
7501 if test "$WITH_THREADS" = "yes"; then
7502   if test $ac_cv_prog_suncc = "yes"; then
7503     CFLAGS="$CFLAGS -mt"
7504   fi
7505
7506 for ac_header in pthread.h
7507 do
7508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7510   echo "$as_me:7510: checking for $ac_header" >&5
7511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7513   echo $ECHO_N "(cached) $ECHO_C" >&6
7514 fi
7515 echo "$as_me:7515: result: `eval echo '${'$as_ac_Header'}'`" >&5
7516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7517 else
7518   # Is the header compilable?
7519 echo "$as_me:7519: checking $ac_header usability" >&5
7520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7521 cat >conftest.$ac_ext <<_ACEOF
7522 #line 7522 "configure"
7523 #include "confdefs.h"
7524 $ac_includes_default
7525 #include <$ac_header>
7526 _ACEOF
7527 rm -f conftest.$ac_objext
7528 if { (eval echo "$as_me:7528: \"$ac_compile\"") >&5
7529   (eval $ac_compile) 2>&5
7530   ac_status=$?
7531   echo "$as_me:7531: \$? = $ac_status" >&5
7532   (exit $ac_status); } &&
7533          { ac_try='test -s conftest.$ac_objext'
7534   { (eval echo "$as_me:7534: \"$ac_try\"") >&5
7535   (eval $ac_try) 2>&5
7536   ac_status=$?
7537   echo "$as_me:7537: \$? = $ac_status" >&5
7538   (exit $ac_status); }; }; then
7539   ac_header_compiler=yes
7540 else
7541   echo "$as_me: failed program was:" >&5
7542 cat conftest.$ac_ext >&5
7543 ac_header_compiler=no
7544 fi
7545 rm -f conftest.$ac_objext conftest.$ac_ext
7546 echo "$as_me:7546: result: $ac_header_compiler" >&5
7547 echo "${ECHO_T}$ac_header_compiler" >&6
7548
7549 # Is the header present?
7550 echo "$as_me:7550: checking $ac_header presence" >&5
7551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7552 cat >conftest.$ac_ext <<_ACEOF
7553 #line 7553 "configure"
7554 #include "confdefs.h"
7555 #include <$ac_header>
7556 _ACEOF
7557 if { (eval echo "$as_me:7557: \"$ac_cpp conftest.$ac_ext\"") >&5
7558   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7559   ac_status=$?
7560   egrep -v '^ *\+' conftest.er1 >conftest.err
7561   rm -f conftest.er1
7562   cat conftest.err >&5
7563   echo "$as_me:7563: \$? = $ac_status" >&5
7564   (exit $ac_status); } >/dev/null; then
7565   if test -s conftest.err; then
7566     ac_cpp_err=$ac_c_preproc_warn_flag
7567   else
7568     ac_cpp_err=
7569   fi
7570 else
7571   ac_cpp_err=yes
7572 fi
7573 if test -z "$ac_cpp_err"; then
7574   ac_header_preproc=yes
7575 else
7576   echo "$as_me: failed program was:" >&5
7577   cat conftest.$ac_ext >&5
7578   ac_header_preproc=no
7579 fi
7580 rm -f conftest.err conftest.$ac_ext
7581 echo "$as_me:7581: result: $ac_header_preproc" >&5
7582 echo "${ECHO_T}$ac_header_preproc" >&6
7583
7584 # So?  What about this header?
7585 case $ac_header_compiler:$ac_header_preproc in
7586   yes:no )
7587     { echo "$as_me:7587: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7589     { echo "$as_me:7589: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7591   no:yes )
7592     { echo "$as_me:7592: WARNING: $ac_header: present but cannot be compiled." >&5
7593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7594     { echo "$as_me:7594: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7596     { echo "$as_me:7596: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7598 esac
7599 echo "$as_me:7599: checking for $ac_header" >&5
7600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7602   echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604   eval "$as_ac_Header=$ac_header_preproc"
7605 fi
7606 echo "$as_me:7606: result: `eval echo '${'$as_ac_Header'}'`" >&5
7607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7608
7609 fi
7610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7611   cat >>confdefs.h <<_ACEOF
7612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7613 _ACEOF
7614
7615 fi
7616
7617 done
7618
7619   if test "X$ac_cv_header_pthread_h" = "X"; then
7620     { { echo "$as_me:7620: error: \"You are trying to use threads without a POSIX <pthread.h>\"" >&5
7621 echo "$as_me: error: \"You are trying to use threads without a POSIX <pthread.h>\"" >&2;}
7622    { (exit 1); exit 1; }; }
7623   fi
7624
7625           echo "$as_me:7625: checking for pthread_join" >&5
7626 echo $ECHO_N "checking for pthread_join... $ECHO_C" >&6
7627 if test "${ac_cv_func_pthread_join+set}" = set; then
7628   echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630   cat >conftest.$ac_ext <<_ACEOF
7631 #line 7631 "configure"
7632 #include "confdefs.h"
7633 /* System header to define __stub macros and hopefully few prototypes,
7634     which can conflict with char pthread_join (); below.  */
7635 #include <assert.h>
7636 /* Override any gcc2 internal prototype to avoid an error.  */
7637 #ifdef __cplusplus
7638 extern "C"
7639 #endif
7640 /* We use char because int might match the return type of a gcc2
7641    builtin and then its argument prototype would still apply.  */
7642 char pthread_join ();
7643 char (*f) ();
7644
7645 #ifdef F77_DUMMY_MAIN
7646 #  ifdef __cplusplus
7647      extern "C"
7648 #  endif
7649    int F77_DUMMY_MAIN() { return 1; }
7650 #endif
7651 int
7652 main ()
7653 {
7654 /* The GNU C library defines this for functions which it implements
7655     to always fail with ENOSYS.  Some functions are actually named
7656     something starting with __ and the normal name is an alias.  */
7657 #if defined (__stub_pthread_join) || defined (__stub___pthread_join)
7658 choke me
7659 #else
7660 f = pthread_join;
7661 #endif
7662
7663   ;
7664   return 0;
7665 }
7666 _ACEOF
7667 rm -f conftest.$ac_objext conftest$ac_exeext
7668 if { (eval echo "$as_me:7668: \"$ac_link\"") >&5
7669   (eval $ac_link) 2>&5
7670   ac_status=$?
7671   echo "$as_me:7671: \$? = $ac_status" >&5
7672   (exit $ac_status); } &&
7673          { ac_try='test -s conftest$ac_exeext'
7674   { (eval echo "$as_me:7674: \"$ac_try\"") >&5
7675   (eval $ac_try) 2>&5
7676   ac_status=$?
7677   echo "$as_me:7677: \$? = $ac_status" >&5
7678   (exit $ac_status); }; }; then
7679   ac_cv_func_pthread_join=yes
7680 else
7681   echo "$as_me: failed program was:" >&5
7682 cat conftest.$ac_ext >&5
7683 ac_cv_func_pthread_join=no
7684 fi
7685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7686 fi
7687 echo "$as_me:7687: result: $ac_cv_func_pthread_join" >&5
7688 echo "${ECHO_T}$ac_cv_func_pthread_join" >&6
7689 if test $ac_cv_func_pthread_join = yes; then
7690   PTHREADLIB=" "
7691 fi
7692
7693   echo "$as_me:7693: checking for pthread_join in -lpthread" >&5
7694 echo $ECHO_N "checking for pthread_join in -lpthread... $ECHO_C" >&6
7695 if test "${ac_cv_lib_pthread_pthread_join+set}" = set; then
7696   echo $ECHO_N "(cached) $ECHO_C" >&6
7697 else
7698   ac_check_lib_save_LIBS=$LIBS
7699 LIBS="-lpthread  $LIBS"
7700 cat >conftest.$ac_ext <<_ACEOF
7701 #line 7701 "configure"
7702 #include "confdefs.h"
7703
7704 /* Override any gcc2 internal prototype to avoid an error.  */
7705 #ifdef __cplusplus
7706 extern "C"
7707 #endif
7708 /* We use char because int might match the return type of a gcc2
7709    builtin and then its argument prototype would still apply.  */
7710 char pthread_join ();
7711 #ifdef F77_DUMMY_MAIN
7712 #  ifdef __cplusplus
7713      extern "C"
7714 #  endif
7715    int F77_DUMMY_MAIN() { return 1; }
7716 #endif
7717 int
7718 main ()
7719 {
7720 pthread_join ();
7721   ;
7722   return 0;
7723 }
7724 _ACEOF
7725 rm -f conftest.$ac_objext conftest$ac_exeext
7726 if { (eval echo "$as_me:7726: \"$ac_link\"") >&5
7727   (eval $ac_link) 2>&5
7728   ac_status=$?
7729   echo "$as_me:7729: \$? = $ac_status" >&5
7730   (exit $ac_status); } &&
7731          { ac_try='test -s conftest$ac_exeext'
7732   { (eval echo "$as_me:7732: \"$ac_try\"") >&5
7733   (eval $ac_try) 2>&5
7734   ac_status=$?
7735   echo "$as_me:7735: \$? = $ac_status" >&5
7736   (exit $ac_status); }; }; then
7737   ac_cv_lib_pthread_pthread_join=yes
7738 else
7739   echo "$as_me: failed program was:" >&5
7740 cat conftest.$ac_ext >&5
7741 ac_cv_lib_pthread_pthread_join=no
7742 fi
7743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7744 LIBS=$ac_check_lib_save_LIBS
7745 fi
7746 echo "$as_me:7746: result: $ac_cv_lib_pthread_pthread_join" >&5
7747 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_join" >&6
7748 if test $ac_cv_lib_pthread_pthread_join = yes; then
7749   PTHREADLIB="-lpthread"
7750
7751 fi
7752
7753   echo "$as_me:7753: checking for library containing sem_init" >&5
7754 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
7755 if test "${ac_cv_search_sem_init+set}" = set; then
7756   echo $ECHO_N "(cached) $ECHO_C" >&6
7757 else
7758   ac_func_search_save_LIBS=$LIBS
7759 ac_cv_search_sem_init=no
7760 cat >conftest.$ac_ext <<_ACEOF
7761 #line 7761 "configure"
7762 #include "confdefs.h"
7763
7764 /* Override any gcc2 internal prototype to avoid an error.  */
7765 #ifdef __cplusplus
7766 extern "C"
7767 #endif
7768 /* We use char because int might match the return type of a gcc2
7769    builtin and then its argument prototype would still apply.  */
7770 char sem_init ();
7771 #ifdef F77_DUMMY_MAIN
7772 #  ifdef __cplusplus
7773      extern "C"
7774 #  endif
7775    int F77_DUMMY_MAIN() { return 1; }
7776 #endif
7777 int
7778 main ()
7779 {
7780 sem_init ();
7781   ;
7782   return 0;
7783 }
7784 _ACEOF
7785 rm -f conftest.$ac_objext conftest$ac_exeext
7786 if { (eval echo "$as_me:7786: \"$ac_link\"") >&5
7787   (eval $ac_link) 2>&5
7788   ac_status=$?
7789   echo "$as_me:7789: \$? = $ac_status" >&5
7790   (exit $ac_status); } &&
7791          { ac_try='test -s conftest$ac_exeext'
7792   { (eval echo "$as_me:7792: \"$ac_try\"") >&5
7793   (eval $ac_try) 2>&5
7794   ac_status=$?
7795   echo "$as_me:7795: \$? = $ac_status" >&5
7796   (exit $ac_status); }; }; then
7797   ac_cv_search_sem_init="none required"
7798 else
7799   echo "$as_me: failed program was:" >&5
7800 cat conftest.$ac_ext >&5
7801 fi
7802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7803 if test "$ac_cv_search_sem_init" = no; then
7804   for ac_lib in pthread rt; do
7805     LIBS="-l$ac_lib "-lpthread"
7806    $ac_func_search_save_LIBS"
7807     cat >conftest.$ac_ext <<_ACEOF
7808 #line 7808 "configure"
7809 #include "confdefs.h"
7810
7811 /* Override any gcc2 internal prototype to avoid an error.  */
7812 #ifdef __cplusplus
7813 extern "C"
7814 #endif
7815 /* We use char because int might match the return type of a gcc2
7816    builtin and then its argument prototype would still apply.  */
7817 char sem_init ();
7818 #ifdef F77_DUMMY_MAIN
7819 #  ifdef __cplusplus
7820      extern "C"
7821 #  endif
7822    int F77_DUMMY_MAIN() { return 1; }
7823 #endif
7824 int
7825 main ()
7826 {
7827 sem_init ();
7828   ;
7829   return 0;
7830 }
7831 _ACEOF
7832 rm -f conftest.$ac_objext conftest$ac_exeext
7833 if { (eval echo "$as_me:7833: \"$ac_link\"") >&5
7834   (eval $ac_link) 2>&5
7835   ac_status=$?
7836   echo "$as_me:7836: \$? = $ac_status" >&5
7837   (exit $ac_status); } &&
7838          { ac_try='test -s conftest$ac_exeext'
7839   { (eval echo "$as_me:7839: \"$ac_try\"") >&5
7840   (eval $ac_try) 2>&5
7841   ac_status=$?
7842   echo "$as_me:7842: \$? = $ac_status" >&5
7843   (exit $ac_status); }; }; then
7844   ac_cv_search_sem_init="-l$ac_lib"
7845 break
7846 else
7847   echo "$as_me: failed program was:" >&5
7848 cat conftest.$ac_ext >&5
7849 fi
7850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7851   done
7852 fi
7853 LIBS=$ac_func_search_save_LIBS
7854 fi
7855 echo "$as_me:7855: result: $ac_cv_search_sem_init" >&5
7856 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
7857 if test "$ac_cv_search_sem_init" != no; then
7858   test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
7859
7860 fi
7861
7862   if test "X$PTHREADLIB" = "X"; then
7863     SAVED_CFLAGS=$CFLAGS
7864     CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
7865     echo "$as_me:7865: checking for pthread_create in -lc_r" >&5
7866 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
7867 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
7868   echo $ECHO_N "(cached) $ECHO_C" >&6
7869 else
7870   ac_check_lib_save_LIBS=$LIBS
7871 LIBS="-lc_r  $LIBS"
7872 cat >conftest.$ac_ext <<_ACEOF
7873 #line 7873 "configure"
7874 #include "confdefs.h"
7875
7876 /* Override any gcc2 internal prototype to avoid an error.  */
7877 #ifdef __cplusplus
7878 extern "C"
7879 #endif
7880 /* We use char because int might match the return type of a gcc2
7881    builtin and then its argument prototype would still apply.  */
7882 char pthread_create ();
7883 #ifdef F77_DUMMY_MAIN
7884 #  ifdef __cplusplus
7885      extern "C"
7886 #  endif
7887    int F77_DUMMY_MAIN() { return 1; }
7888 #endif
7889 int
7890 main ()
7891 {
7892 pthread_create ();
7893   ;
7894   return 0;
7895 }
7896 _ACEOF
7897 rm -f conftest.$ac_objext conftest$ac_exeext
7898 if { (eval echo "$as_me:7898: \"$ac_link\"") >&5
7899   (eval $ac_link) 2>&5
7900   ac_status=$?
7901   echo "$as_me:7901: \$? = $ac_status" >&5
7902   (exit $ac_status); } &&
7903          { ac_try='test -s conftest$ac_exeext'
7904   { (eval echo "$as_me:7904: \"$ac_try\"") >&5
7905   (eval $ac_try) 2>&5
7906   ac_status=$?
7907   echo "$as_me:7907: \$? = $ac_status" >&5
7908   (exit $ac_status); }; }; then
7909   ac_cv_lib_c_r_pthread_create=yes
7910 else
7911   echo "$as_me: failed program was:" >&5
7912 cat conftest.$ac_ext >&5
7913 ac_cv_lib_c_r_pthread_create=no
7914 fi
7915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7916 LIBS=$ac_check_lib_save_LIBS
7917 fi
7918 echo "$as_me:7918: result: $ac_cv_lib_c_r_pthread_create" >&5
7919 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
7920 if test $ac_cv_lib_c_r_pthread_create = yes; then
7921   PTHREADLIB="-lc_r"
7922
7923 fi
7924
7925   fi
7926
7927   if test "x$PTHREADLIB" != "x"; then
7928     LIBS="$LIBS $PTHREADLIB"
7929     CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
7930   fi
7931 fi
7932
7933 if test "x$PTHREADLIB" = "x"; then
7934   CFLAGS=$SAVED_CFLAGS
7935   ac_cv_header_pthread_h="no"
7936   WITH_THREADS=no
7937   WITH_THREAD_POOL=no
7938 fi
7939
7940 echo "$as_me:7940: checking for getsockname in -lsocket" >&5
7941 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
7942 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
7943   echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945   ac_check_lib_save_LIBS=$LIBS
7946 LIBS="-lsocket  $LIBS"
7947 cat >conftest.$ac_ext <<_ACEOF
7948 #line 7948 "configure"
7949 #include "confdefs.h"
7950
7951 /* Override any gcc2 internal prototype to avoid an error.  */
7952 #ifdef __cplusplus
7953 extern "C"
7954 #endif
7955 /* We use char because int might match the return type of a gcc2
7956    builtin and then its argument prototype would still apply.  */
7957 char getsockname ();
7958 #ifdef F77_DUMMY_MAIN
7959 #  ifdef __cplusplus
7960      extern "C"
7961 #  endif
7962    int F77_DUMMY_MAIN() { return 1; }
7963 #endif
7964 int
7965 main ()
7966 {
7967 getsockname ();
7968   ;
7969   return 0;
7970 }
7971 _ACEOF
7972 rm -f conftest.$ac_objext conftest$ac_exeext
7973 if { (eval echo "$as_me:7973: \"$ac_link\"") >&5
7974   (eval $ac_link) 2>&5
7975   ac_status=$?
7976   echo "$as_me:7976: \$? = $ac_status" >&5
7977   (exit $ac_status); } &&
7978          { ac_try='test -s conftest$ac_exeext'
7979   { (eval echo "$as_me:7979: \"$ac_try\"") >&5
7980   (eval $ac_try) 2>&5
7981   ac_status=$?
7982   echo "$as_me:7982: \$? = $ac_status" >&5
7983   (exit $ac_status); }; }; then
7984   ac_cv_lib_socket_getsockname=yes
7985 else
7986   echo "$as_me: failed program was:" >&5
7987 cat conftest.$ac_ext >&5
7988 ac_cv_lib_socket_getsockname=no
7989 fi
7990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7991 LIBS=$ac_check_lib_save_LIBS
7992 fi
7993 echo "$as_me:7993: result: $ac_cv_lib_socket_getsockname" >&5
7994 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
7995 if test $ac_cv_lib_socket_getsockname = yes; then
7996   cat >>confdefs.h <<_ACEOF
7997 #define HAVE_LIBSOCKET 1
7998 _ACEOF
7999
8000   LIBS="-lsocket $LIBS"
8001
8002 fi
8003
8004 echo "$as_me:8004: checking for inet_aton in -lresolv" >&5
8005 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
8006 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
8007   echo $ECHO_N "(cached) $ECHO_C" >&6
8008 else
8009   ac_check_lib_save_LIBS=$LIBS
8010 LIBS="-lresolv  $LIBS"
8011 cat >conftest.$ac_ext <<_ACEOF
8012 #line 8012 "configure"
8013 #include "confdefs.h"
8014
8015 /* Override any gcc2 internal prototype to avoid an error.  */
8016 #ifdef __cplusplus
8017 extern "C"
8018 #endif
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 inet_aton ();
8022 #ifdef F77_DUMMY_MAIN
8023 #  ifdef __cplusplus
8024      extern "C"
8025 #  endif
8026    int F77_DUMMY_MAIN() { return 1; }
8027 #endif
8028 int
8029 main ()
8030 {
8031 inet_aton ();
8032   ;
8033   return 0;
8034 }
8035 _ACEOF
8036 rm -f conftest.$ac_objext conftest$ac_exeext
8037 if { (eval echo "$as_me:8037: \"$ac_link\"") >&5
8038   (eval $ac_link) 2>&5
8039   ac_status=$?
8040   echo "$as_me:8040: \$? = $ac_status" >&5
8041   (exit $ac_status); } &&
8042          { ac_try='test -s conftest$ac_exeext'
8043   { (eval echo "$as_me:8043: \"$ac_try\"") >&5
8044   (eval $ac_try) 2>&5
8045   ac_status=$?
8046   echo "$as_me:8046: \$? = $ac_status" >&5
8047   (exit $ac_status); }; }; then
8048   ac_cv_lib_resolv_inet_aton=yes
8049 else
8050   echo "$as_me: failed program was:" >&5
8051 cat conftest.$ac_ext >&5
8052 ac_cv_lib_resolv_inet_aton=no
8053 fi
8054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8055 LIBS=$ac_check_lib_save_LIBS
8056 fi
8057 echo "$as_me:8057: result: $ac_cv_lib_resolv_inet_aton" >&5
8058 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
8059 if test $ac_cv_lib_resolv_inet_aton = yes; then
8060   cat >>confdefs.h <<_ACEOF
8061 #define HAVE_LIBRESOLV 1
8062 _ACEOF
8063
8064   LIBS="-lresolv $LIBS"
8065
8066 fi
8067
8068 echo "$as_me:8068: checking for inet_ntoa in -lnsl" >&5
8069 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
8070 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
8071   echo $ECHO_N "(cached) $ECHO_C" >&6
8072 else
8073   ac_check_lib_save_LIBS=$LIBS
8074 LIBS="-lnsl  $LIBS"
8075 cat >conftest.$ac_ext <<_ACEOF
8076 #line 8076 "configure"
8077 #include "confdefs.h"
8078
8079 /* Override any gcc2 internal prototype to avoid an error.  */
8080 #ifdef __cplusplus
8081 extern "C"
8082 #endif
8083 /* We use char because int might match the return type of a gcc2
8084    builtin and then its argument prototype would still apply.  */
8085 char inet_ntoa ();
8086 #ifdef F77_DUMMY_MAIN
8087 #  ifdef __cplusplus
8088      extern "C"
8089 #  endif
8090    int F77_DUMMY_MAIN() { return 1; }
8091 #endif
8092 int
8093 main ()
8094 {
8095 inet_ntoa ();
8096   ;
8097   return 0;
8098 }
8099 _ACEOF
8100 rm -f conftest.$ac_objext conftest$ac_exeext
8101 if { (eval echo "$as_me:8101: \"$ac_link\"") >&5
8102   (eval $ac_link) 2>&5
8103   ac_status=$?
8104   echo "$as_me:8104: \$? = $ac_status" >&5
8105   (exit $ac_status); } &&
8106          { ac_try='test -s conftest$ac_exeext'
8107   { (eval echo "$as_me:8107: \"$ac_try\"") >&5
8108   (eval $ac_try) 2>&5
8109   ac_status=$?
8110   echo "$as_me:8110: \$? = $ac_status" >&5
8111   (exit $ac_status); }; }; then
8112   ac_cv_lib_nsl_inet_ntoa=yes
8113 else
8114   echo "$as_me: failed program was:" >&5
8115 cat conftest.$ac_ext >&5
8116 ac_cv_lib_nsl_inet_ntoa=no
8117 fi
8118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8119 LIBS=$ac_check_lib_save_LIBS
8120 fi
8121 echo "$as_me:8121: result: $ac_cv_lib_nsl_inet_ntoa" >&5
8122 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
8123 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
8124   cat >>confdefs.h <<_ACEOF
8125 #define HAVE_LIBNSL 1
8126 _ACEOF
8127
8128   LIBS="-lnsl $LIBS"
8129
8130 fi
8131
8132 ac_header_dirent=no
8133 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8134   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8135 echo "$as_me:8135: checking for $ac_hdr that defines DIR" >&5
8136 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8138   echo $ECHO_N "(cached) $ECHO_C" >&6
8139 else
8140   cat >conftest.$ac_ext <<_ACEOF
8141 #line 8141 "configure"
8142 #include "confdefs.h"
8143 #include <sys/types.h>
8144 #include <$ac_hdr>
8145
8146 #ifdef F77_DUMMY_MAIN
8147 #  ifdef __cplusplus
8148      extern "C"
8149 #  endif
8150    int F77_DUMMY_MAIN() { return 1; }
8151 #endif
8152 int
8153 main ()
8154 {
8155 if ((DIR *) 0)
8156 return 0;
8157   ;
8158   return 0;
8159 }
8160 _ACEOF
8161 rm -f conftest.$ac_objext
8162 if { (eval echo "$as_me:8162: \"$ac_compile\"") >&5
8163   (eval $ac_compile) 2>&5
8164   ac_status=$?
8165   echo "$as_me:8165: \$? = $ac_status" >&5
8166   (exit $ac_status); } &&
8167          { ac_try='test -s conftest.$ac_objext'
8168   { (eval echo "$as_me:8168: \"$ac_try\"") >&5
8169   (eval $ac_try) 2>&5
8170   ac_status=$?
8171   echo "$as_me:8171: \$? = $ac_status" >&5
8172   (exit $ac_status); }; }; then
8173   eval "$as_ac_Header=yes"
8174 else
8175   echo "$as_me: failed program was:" >&5
8176 cat conftest.$ac_ext >&5
8177 eval "$as_ac_Header=no"
8178 fi
8179 rm -f conftest.$ac_objext conftest.$ac_ext
8180 fi
8181 echo "$as_me:8181: result: `eval echo '${'$as_ac_Header'}'`" >&5
8182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8184   cat >>confdefs.h <<_ACEOF
8185 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8186 _ACEOF
8187
8188 ac_header_dirent=$ac_hdr; break
8189 fi
8190
8191 done
8192 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8193 if test $ac_header_dirent = dirent.h; then
8194   echo "$as_me:8194: checking for opendir in -ldir" >&5
8195 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
8196 if test "${ac_cv_lib_dir_opendir+set}" = set; then
8197   echo $ECHO_N "(cached) $ECHO_C" >&6
8198 else
8199   ac_check_lib_save_LIBS=$LIBS
8200 LIBS="-ldir  $LIBS"
8201 cat >conftest.$ac_ext <<_ACEOF
8202 #line 8202 "configure"
8203 #include "confdefs.h"
8204
8205 /* Override any gcc2 internal prototype to avoid an error.  */
8206 #ifdef __cplusplus
8207 extern "C"
8208 #endif
8209 /* We use char because int might match the return type of a gcc2
8210    builtin and then its argument prototype would still apply.  */
8211 char opendir ();
8212 #ifdef F77_DUMMY_MAIN
8213 #  ifdef __cplusplus
8214      extern "C"
8215 #  endif
8216    int F77_DUMMY_MAIN() { return 1; }
8217 #endif
8218 int
8219 main ()
8220 {
8221 opendir ();
8222   ;
8223   return 0;
8224 }
8225 _ACEOF
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (eval echo "$as_me:8227: \"$ac_link\"") >&5
8228   (eval $ac_link) 2>&5
8229   ac_status=$?
8230   echo "$as_me:8230: \$? = $ac_status" >&5
8231   (exit $ac_status); } &&
8232          { ac_try='test -s conftest$ac_exeext'
8233   { (eval echo "$as_me:8233: \"$ac_try\"") >&5
8234   (eval $ac_try) 2>&5
8235   ac_status=$?
8236   echo "$as_me:8236: \$? = $ac_status" >&5
8237   (exit $ac_status); }; }; then
8238   ac_cv_lib_dir_opendir=yes
8239 else
8240   echo "$as_me: failed program was:" >&5
8241 cat conftest.$ac_ext >&5
8242 ac_cv_lib_dir_opendir=no
8243 fi
8244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8245 LIBS=$ac_check_lib_save_LIBS
8246 fi
8247 echo "$as_me:8247: result: $ac_cv_lib_dir_opendir" >&5
8248 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
8249 if test $ac_cv_lib_dir_opendir = yes; then
8250   LIBS="$LIBS -ldir"
8251 fi
8252
8253 else
8254   echo "$as_me:8254: checking for opendir in -lx" >&5
8255 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
8256 if test "${ac_cv_lib_x_opendir+set}" = set; then
8257   echo $ECHO_N "(cached) $ECHO_C" >&6
8258 else
8259   ac_check_lib_save_LIBS=$LIBS
8260 LIBS="-lx  $LIBS"
8261 cat >conftest.$ac_ext <<_ACEOF
8262 #line 8262 "configure"
8263 #include "confdefs.h"
8264
8265 /* Override any gcc2 internal prototype to avoid an error.  */
8266 #ifdef __cplusplus
8267 extern "C"
8268 #endif
8269 /* We use char because int might match the return type of a gcc2
8270    builtin and then its argument prototype would still apply.  */
8271 char opendir ();
8272 #ifdef F77_DUMMY_MAIN
8273 #  ifdef __cplusplus
8274      extern "C"
8275 #  endif
8276    int F77_DUMMY_MAIN() { return 1; }
8277 #endif
8278 int
8279 main ()
8280 {
8281 opendir ();
8282   ;
8283   return 0;
8284 }
8285 _ACEOF
8286 rm -f conftest.$ac_objext conftest$ac_exeext
8287 if { (eval echo "$as_me:8287: \"$ac_link\"") >&5
8288   (eval $ac_link) 2>&5
8289   ac_status=$?
8290   echo "$as_me:8290: \$? = $ac_status" >&5
8291   (exit $ac_status); } &&
8292          { ac_try='test -s conftest$ac_exeext'
8293   { (eval echo "$as_me:8293: \"$ac_try\"") >&5
8294   (eval $ac_try) 2>&5
8295   ac_status=$?
8296   echo "$as_me:8296: \$? = $ac_status" >&5
8297   (exit $ac_status); }; }; then
8298   ac_cv_lib_x_opendir=yes
8299 else
8300   echo "$as_me: failed program was:" >&5
8301 cat conftest.$ac_ext >&5
8302 ac_cv_lib_x_opendir=no
8303 fi
8304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8305 LIBS=$ac_check_lib_save_LIBS
8306 fi
8307 echo "$as_me:8307: result: $ac_cv_lib_x_opendir" >&5
8308 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
8309 if test $ac_cv_lib_x_opendir = yes; then
8310   LIBS="$LIBS -lx"
8311 fi
8312
8313 fi
8314
8315 echo "$as_me:8315: checking for ANSI C header files" >&5
8316 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8317 if test "${ac_cv_header_stdc+set}" = set; then
8318   echo $ECHO_N "(cached) $ECHO_C" >&6
8319 else
8320   cat >conftest.$ac_ext <<_ACEOF
8321 #line 8321 "configure"
8322 #include "confdefs.h"
8323 #include <stdlib.h>
8324 #include <stdarg.h>
8325 #include <string.h>
8326 #include <float.h>
8327
8328 _ACEOF
8329 if { (eval echo "$as_me:8329: \"$ac_cpp conftest.$ac_ext\"") >&5
8330   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8331   ac_status=$?
8332   egrep -v '^ *\+' conftest.er1 >conftest.err
8333   rm -f conftest.er1
8334   cat conftest.err >&5
8335   echo "$as_me:8335: \$? = $ac_status" >&5
8336   (exit $ac_status); } >/dev/null; then
8337   if test -s conftest.err; then
8338     ac_cpp_err=$ac_c_preproc_warn_flag
8339   else
8340     ac_cpp_err=
8341   fi
8342 else
8343   ac_cpp_err=yes
8344 fi
8345 if test -z "$ac_cpp_err"; then
8346   ac_cv_header_stdc=yes
8347 else
8348   echo "$as_me: failed program was:" >&5
8349   cat conftest.$ac_ext >&5
8350   ac_cv_header_stdc=no
8351 fi
8352 rm -f conftest.err conftest.$ac_ext
8353
8354 if test $ac_cv_header_stdc = yes; then
8355   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8356   cat >conftest.$ac_ext <<_ACEOF
8357 #line 8357 "configure"
8358 #include "confdefs.h"
8359 #include <string.h>
8360
8361 _ACEOF
8362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8363   egrep "memchr" >/dev/null 2>&1; then
8364   :
8365 else
8366   ac_cv_header_stdc=no
8367 fi
8368 rm -f conftest*
8369
8370 fi
8371
8372 if test $ac_cv_header_stdc = yes; then
8373   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8374   cat >conftest.$ac_ext <<_ACEOF
8375 #line 8375 "configure"
8376 #include "confdefs.h"
8377 #include <stdlib.h>
8378
8379 _ACEOF
8380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8381   egrep "free" >/dev/null 2>&1; then
8382   :
8383 else
8384   ac_cv_header_stdc=no
8385 fi
8386 rm -f conftest*
8387
8388 fi
8389
8390 if test $ac_cv_header_stdc = yes; then
8391   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8392   if test "$cross_compiling" = yes; then
8393   :
8394 else
8395   cat >conftest.$ac_ext <<_ACEOF
8396 #line 8396 "configure"
8397 #include "confdefs.h"
8398 #include <ctype.h>
8399 #if ((' ' & 0x0FF) == 0x020)
8400 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8401 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8402 #else
8403 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8404                      || ('j' <= (c) && (c) <= 'r') \
8405                      || ('s' <= (c) && (c) <= 'z'))
8406 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8407 #endif
8408
8409 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8410 int
8411 main ()
8412 {
8413   int i;
8414   for (i = 0; i < 256; i++)
8415     if (XOR (islower (i), ISLOWER (i))
8416         || toupper (i) != TOUPPER (i))
8417       exit(2);
8418   exit (0);
8419 }
8420 _ACEOF
8421 rm -f conftest$ac_exeext
8422 if { (eval echo "$as_me:8422: \"$ac_link\"") >&5
8423   (eval $ac_link) 2>&5
8424   ac_status=$?
8425   echo "$as_me:8425: \$? = $ac_status" >&5
8426   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8427   { (eval echo "$as_me:8427: \"$ac_try\"") >&5
8428   (eval $ac_try) 2>&5
8429   ac_status=$?
8430   echo "$as_me:8430: \$? = $ac_status" >&5
8431   (exit $ac_status); }; }; then
8432   :
8433 else
8434   echo "$as_me: program exited with status $ac_status" >&5
8435 echo "$as_me: failed program was:" >&5
8436 cat conftest.$ac_ext >&5
8437 ac_cv_header_stdc=no
8438 fi
8439 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8440 fi
8441 fi
8442 fi
8443 echo "$as_me:8443: result: $ac_cv_header_stdc" >&5
8444 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8445 if test $ac_cv_header_stdc = yes; then
8446
8447 cat >>confdefs.h <<\_ACEOF
8448 #define STDC_HEADERS 1
8449 _ACEOF
8450
8451 fi
8452
8453 echo "$as_me:8453: checking whether time.h and sys/time.h may both be included" >&5
8454 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8455 if test "${ac_cv_header_time+set}" = set; then
8456   echo $ECHO_N "(cached) $ECHO_C" >&6
8457 else
8458   cat >conftest.$ac_ext <<_ACEOF
8459 #line 8459 "configure"
8460 #include "confdefs.h"
8461 #include <sys/types.h>
8462 #include <sys/time.h>
8463 #include <time.h>
8464
8465 #ifdef F77_DUMMY_MAIN
8466 #  ifdef __cplusplus
8467      extern "C"
8468 #  endif
8469    int F77_DUMMY_MAIN() { return 1; }
8470 #endif
8471 int
8472 main ()
8473 {
8474 if ((struct tm *) 0)
8475 return 0;
8476   ;
8477   return 0;
8478 }
8479 _ACEOF
8480 rm -f conftest.$ac_objext
8481 if { (eval echo "$as_me:8481: \"$ac_compile\"") >&5
8482   (eval $ac_compile) 2>&5
8483   ac_status=$?
8484   echo "$as_me:8484: \$? = $ac_status" >&5
8485   (exit $ac_status); } &&
8486          { ac_try='test -s conftest.$ac_objext'
8487   { (eval echo "$as_me:8487: \"$ac_try\"") >&5
8488   (eval $ac_try) 2>&5
8489   ac_status=$?
8490   echo "$as_me:8490: \$? = $ac_status" >&5
8491   (exit $ac_status); }; }; then
8492   ac_cv_header_time=yes
8493 else
8494   echo "$as_me: failed program was:" >&5
8495 cat conftest.$ac_ext >&5
8496 ac_cv_header_time=no
8497 fi
8498 rm -f conftest.$ac_objext conftest.$ac_ext
8499 fi
8500 echo "$as_me:8500: result: $ac_cv_header_time" >&5
8501 echo "${ECHO_T}$ac_cv_header_time" >&6
8502 if test $ac_cv_header_time = yes; then
8503
8504 cat >>confdefs.h <<\_ACEOF
8505 #define TIME_WITH_SYS_TIME 1
8506 _ACEOF
8507
8508 fi
8509
8510 echo "$as_me:8510: checking for sys/wait.h that is POSIX.1 compatible" >&5
8511 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8512 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8513   echo $ECHO_N "(cached) $ECHO_C" >&6
8514 else
8515   cat >conftest.$ac_ext <<_ACEOF
8516 #line 8516 "configure"
8517 #include "confdefs.h"
8518 #include <sys/types.h>
8519 #include <sys/wait.h>
8520 #ifndef WEXITSTATUS
8521 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8522 #endif
8523 #ifndef WIFEXITED
8524 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8525 #endif
8526
8527 #ifdef F77_DUMMY_MAIN
8528 #  ifdef __cplusplus
8529      extern "C"
8530 #  endif
8531    int F77_DUMMY_MAIN() { return 1; }
8532 #endif
8533 int
8534 main ()
8535 {
8536   int s;
8537   wait (&s);
8538   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8539   ;
8540   return 0;
8541 }
8542 _ACEOF
8543 rm -f conftest.$ac_objext
8544 if { (eval echo "$as_me:8544: \"$ac_compile\"") >&5
8545   (eval $ac_compile) 2>&5
8546   ac_status=$?
8547   echo "$as_me:8547: \$? = $ac_status" >&5
8548   (exit $ac_status); } &&
8549          { ac_try='test -s conftest.$ac_objext'
8550   { (eval echo "$as_me:8550: \"$ac_try\"") >&5
8551   (eval $ac_try) 2>&5
8552   ac_status=$?
8553   echo "$as_me:8553: \$? = $ac_status" >&5
8554   (exit $ac_status); }; }; then
8555   ac_cv_header_sys_wait_h=yes
8556 else
8557   echo "$as_me: failed program was:" >&5
8558 cat conftest.$ac_ext >&5
8559 ac_cv_header_sys_wait_h=no
8560 fi
8561 rm -f conftest.$ac_objext conftest.$ac_ext
8562 fi
8563 echo "$as_me:8563: result: $ac_cv_header_sys_wait_h" >&5
8564 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8565 if test $ac_cv_header_sys_wait_h = yes; then
8566
8567 cat >>confdefs.h <<\_ACEOF
8568 #define HAVE_SYS_WAIT_H 1
8569 _ACEOF
8570
8571 fi
8572
8573 for ac_header in \
8574         unistd.h \
8575         crypt.h \
8576         errno.h \
8577         resource.h \
8578         getopt.h \
8579         malloc.h \
8580         utmp.h \
8581         utmpx.h \
8582         signal.h \
8583         sys/select.h \
8584         syslog.h \
8585         inttypes.h \
8586         stdint.h \
8587         stdio.h \
8588         netdb.h \
8589         semaphore.h \
8590         arpa/inet.h \
8591         netinet/in.h \
8592         sys/types.h \
8593         sys/socket.h \
8594         sys/time.h \
8595         sys/wait.h \
8596         sys/security.h \
8597         prot.h \
8598         sia.h \
8599         siad.h
8600
8601 do
8602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8604   echo "$as_me:8604: checking for $ac_header" >&5
8605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8607   echo $ECHO_N "(cached) $ECHO_C" >&6
8608 fi
8609 echo "$as_me:8609: result: `eval echo '${'$as_ac_Header'}'`" >&5
8610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8611 else
8612   # Is the header compilable?
8613 echo "$as_me:8613: checking $ac_header usability" >&5
8614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8615 cat >conftest.$ac_ext <<_ACEOF
8616 #line 8616 "configure"
8617 #include "confdefs.h"
8618 $ac_includes_default
8619 #include <$ac_header>
8620 _ACEOF
8621 rm -f conftest.$ac_objext
8622 if { (eval echo "$as_me:8622: \"$ac_compile\"") >&5
8623   (eval $ac_compile) 2>&5
8624   ac_status=$?
8625   echo "$as_me:8625: \$? = $ac_status" >&5
8626   (exit $ac_status); } &&
8627          { ac_try='test -s conftest.$ac_objext'
8628   { (eval echo "$as_me:8628: \"$ac_try\"") >&5
8629   (eval $ac_try) 2>&5
8630   ac_status=$?
8631   echo "$as_me:8631: \$? = $ac_status" >&5
8632   (exit $ac_status); }; }; then
8633   ac_header_compiler=yes
8634 else
8635   echo "$as_me: failed program was:" >&5
8636 cat conftest.$ac_ext >&5
8637 ac_header_compiler=no
8638 fi
8639 rm -f conftest.$ac_objext conftest.$ac_ext
8640 echo "$as_me:8640: result: $ac_header_compiler" >&5
8641 echo "${ECHO_T}$ac_header_compiler" >&6
8642
8643 # Is the header present?
8644 echo "$as_me:8644: checking $ac_header presence" >&5
8645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8646 cat >conftest.$ac_ext <<_ACEOF
8647 #line 8647 "configure"
8648 #include "confdefs.h"
8649 #include <$ac_header>
8650 _ACEOF
8651 if { (eval echo "$as_me:8651: \"$ac_cpp conftest.$ac_ext\"") >&5
8652   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8653   ac_status=$?
8654   egrep -v '^ *\+' conftest.er1 >conftest.err
8655   rm -f conftest.er1
8656   cat conftest.err >&5
8657   echo "$as_me:8657: \$? = $ac_status" >&5
8658   (exit $ac_status); } >/dev/null; then
8659   if test -s conftest.err; then
8660     ac_cpp_err=$ac_c_preproc_warn_flag
8661   else
8662     ac_cpp_err=
8663   fi
8664 else
8665   ac_cpp_err=yes
8666 fi
8667 if test -z "$ac_cpp_err"; then
8668   ac_header_preproc=yes
8669 else
8670   echo "$as_me: failed program was:" >&5
8671   cat conftest.$ac_ext >&5
8672   ac_header_preproc=no
8673 fi
8674 rm -f conftest.err conftest.$ac_ext
8675 echo "$as_me:8675: result: $ac_header_preproc" >&5
8676 echo "${ECHO_T}$ac_header_preproc" >&6
8677
8678 # So?  What about this header?
8679 case $ac_header_compiler:$ac_header_preproc in
8680   yes:no )
8681     { echo "$as_me:8681: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8683     { echo "$as_me:8683: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8685   no:yes )
8686     { echo "$as_me:8686: WARNING: $ac_header: present but cannot be compiled." >&5
8687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
8688     { echo "$as_me:8688: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8690     { echo "$as_me:8690: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8692 esac
8693 echo "$as_me:8693: checking for $ac_header" >&5
8694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8696   echo $ECHO_N "(cached) $ECHO_C" >&6
8697 else
8698   eval "$as_ac_Header=$ac_header_preproc"
8699 fi
8700 echo "$as_me:8700: result: `eval echo '${'$as_ac_Header'}'`" >&5
8701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8702
8703 fi
8704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8705   cat >>confdefs.h <<_ACEOF
8706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8707 _ACEOF
8708
8709 fi
8710
8711 done
8712
8713 REGEX=no
8714 if test "${ac_cv_header_regex_h+set}" = set; then
8715   echo "$as_me:8715: checking for regex.h" >&5
8716 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
8717 if test "${ac_cv_header_regex_h+set}" = set; then
8718   echo $ECHO_N "(cached) $ECHO_C" >&6
8719 fi
8720 echo "$as_me:8720: result: $ac_cv_header_regex_h" >&5
8721 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
8722 else
8723   # Is the header compilable?
8724 echo "$as_me:8724: checking regex.h usability" >&5
8725 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
8726 cat >conftest.$ac_ext <<_ACEOF
8727 #line 8727 "configure"
8728 #include "confdefs.h"
8729 $ac_includes_default
8730 #include <regex.h>
8731 _ACEOF
8732 rm -f conftest.$ac_objext
8733 if { (eval echo "$as_me:8733: \"$ac_compile\"") >&5
8734   (eval $ac_compile) 2>&5
8735   ac_status=$?
8736   echo "$as_me:8736: \$? = $ac_status" >&5
8737   (exit $ac_status); } &&
8738          { ac_try='test -s conftest.$ac_objext'
8739   { (eval echo "$as_me:8739: \"$ac_try\"") >&5
8740   (eval $ac_try) 2>&5
8741   ac_status=$?
8742   echo "$as_me:8742: \$? = $ac_status" >&5
8743   (exit $ac_status); }; }; then
8744   ac_header_compiler=yes
8745 else
8746   echo "$as_me: failed program was:" >&5
8747 cat conftest.$ac_ext >&5
8748 ac_header_compiler=no
8749 fi
8750 rm -f conftest.$ac_objext conftest.$ac_ext
8751 echo "$as_me:8751: result: $ac_header_compiler" >&5
8752 echo "${ECHO_T}$ac_header_compiler" >&6
8753
8754 # Is the header present?
8755 echo "$as_me:8755: checking regex.h presence" >&5
8756 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
8757 cat >conftest.$ac_ext <<_ACEOF
8758 #line 8758 "configure"
8759 #include "confdefs.h"
8760 #include <regex.h>
8761 _ACEOF
8762 if { (eval echo "$as_me:8762: \"$ac_cpp conftest.$ac_ext\"") >&5
8763   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8764   ac_status=$?
8765   egrep -v '^ *\+' conftest.er1 >conftest.err
8766   rm -f conftest.er1
8767   cat conftest.err >&5
8768   echo "$as_me:8768: \$? = $ac_status" >&5
8769   (exit $ac_status); } >/dev/null; then
8770   if test -s conftest.err; then
8771     ac_cpp_err=$ac_c_preproc_warn_flag
8772   else
8773     ac_cpp_err=
8774   fi
8775 else
8776   ac_cpp_err=yes
8777 fi
8778 if test -z "$ac_cpp_err"; then
8779   ac_header_preproc=yes
8780 else
8781   echo "$as_me: failed program was:" >&5
8782   cat conftest.$ac_ext >&5
8783   ac_header_preproc=no
8784 fi
8785 rm -f conftest.err conftest.$ac_ext
8786 echo "$as_me:8786: result: $ac_header_preproc" >&5
8787 echo "${ECHO_T}$ac_header_preproc" >&6
8788
8789 # So?  What about this header?
8790 case $ac_header_compiler:$ac_header_preproc in
8791   yes:no )
8792     { echo "$as_me:8792: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
8793 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8794     { echo "$as_me:8794: WARNING: regex.h: proceeding with the preprocessor's result" >&5
8795 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;};;
8796   no:yes )
8797     { echo "$as_me:8797: WARNING: regex.h: present but cannot be compiled." >&5
8798 echo "$as_me: WARNING: regex.h: present but cannot be compiled." >&2;}
8799     { echo "$as_me:8799: WARNING: regex.h: check for missing prerequisite headers?" >&5
8800 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
8801     { echo "$as_me:8801: WARNING: regex.h: proceeding with the preprocessor's result" >&5
8802 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;};;
8803 esac
8804 echo "$as_me:8804: checking for regex.h" >&5
8805 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
8806 if test "${ac_cv_header_regex_h+set}" = set; then
8807   echo $ECHO_N "(cached) $ECHO_C" >&6
8808 else
8809   ac_cv_header_regex_h=$ac_header_preproc
8810 fi
8811 echo "$as_me:8811: result: $ac_cv_header_regex_h" >&5
8812 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
8813
8814 fi
8815 if test $ac_cv_header_regex_h = yes; then
8816   cat >>confdefs.h <<\_ACEOF
8817 #define HAVE_REGEX_H 1
8818 _ACEOF
8819
8820 fi
8821
8822 if test "x$ac_cv_header_regex_h" = "xyes"; then
8823   REGEX_EXTENDED=no
8824   REGEX=yes
8825   cat >conftest.$ac_ext <<_ACEOF
8826 #line 8826 "configure"
8827 #include "confdefs.h"
8828 #include <regex.h>
8829      #ifdef REG_EXTENDED
8830        yes
8831      #endif
8832
8833 _ACEOF
8834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8835   egrep "yes" >/dev/null 2>&1; then
8836   cat >>confdefs.h <<\_ACEOF
8837 #define HAVE_REG_EXTENDED 1
8838 _ACEOF
8839  REGEX_EXTENDED=yes
8840 fi
8841 rm -f conftest*
8842
8843 fi
8844
8845 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
8846 then
8847   cat >>confdefs.h <<\_ACEOF
8848 #define OSFC2 1
8849 _ACEOF
8850
8851 fi
8852
8853 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
8854 then
8855   cat >>confdefs.h <<\_ACEOF
8856 #define OSFSIA 1
8857 _ACEOF
8858
8859 fi
8860
8861 echo "$as_me:8861: checking for off_t" >&5
8862 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8863 if test "${ac_cv_type_off_t+set}" = set; then
8864   echo $ECHO_N "(cached) $ECHO_C" >&6
8865 else
8866   cat >conftest.$ac_ext <<_ACEOF
8867 #line 8867 "configure"
8868 #include "confdefs.h"
8869 $ac_includes_default
8870 #ifdef F77_DUMMY_MAIN
8871 #  ifdef __cplusplus
8872      extern "C"
8873 #  endif
8874    int F77_DUMMY_MAIN() { return 1; }
8875 #endif
8876 int
8877 main ()
8878 {
8879 if ((off_t *) 0)
8880   return 0;
8881 if (sizeof (off_t))
8882   return 0;
8883   ;
8884   return 0;
8885 }
8886 _ACEOF
8887 rm -f conftest.$ac_objext
8888 if { (eval echo "$as_me:8888: \"$ac_compile\"") >&5
8889   (eval $ac_compile) 2>&5
8890   ac_status=$?
8891   echo "$as_me:8891: \$? = $ac_status" >&5
8892   (exit $ac_status); } &&
8893          { ac_try='test -s conftest.$ac_objext'
8894   { (eval echo "$as_me:8894: \"$ac_try\"") >&5
8895   (eval $ac_try) 2>&5
8896   ac_status=$?
8897   echo "$as_me:8897: \$? = $ac_status" >&5
8898   (exit $ac_status); }; }; then
8899   ac_cv_type_off_t=yes
8900 else
8901   echo "$as_me: failed program was:" >&5
8902 cat conftest.$ac_ext >&5
8903 ac_cv_type_off_t=no
8904 fi
8905 rm -f conftest.$ac_objext conftest.$ac_ext
8906 fi
8907 echo "$as_me:8907: result: $ac_cv_type_off_t" >&5
8908 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8909 if test $ac_cv_type_off_t = yes; then
8910   :
8911 else
8912
8913 cat >>confdefs.h <<_ACEOF
8914 #define off_t long
8915 _ACEOF
8916
8917 fi
8918
8919 echo "$as_me:8919: checking for pid_t" >&5
8920 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8921 if test "${ac_cv_type_pid_t+set}" = set; then
8922   echo $ECHO_N "(cached) $ECHO_C" >&6
8923 else
8924   cat >conftest.$ac_ext <<_ACEOF
8925 #line 8925 "configure"
8926 #include "confdefs.h"
8927 $ac_includes_default
8928 #ifdef F77_DUMMY_MAIN
8929 #  ifdef __cplusplus
8930      extern "C"
8931 #  endif
8932    int F77_DUMMY_MAIN() { return 1; }
8933 #endif
8934 int
8935 main ()
8936 {
8937 if ((pid_t *) 0)
8938   return 0;
8939 if (sizeof (pid_t))
8940   return 0;
8941   ;
8942   return 0;
8943 }
8944 _ACEOF
8945 rm -f conftest.$ac_objext
8946 if { (eval echo "$as_me:8946: \"$ac_compile\"") >&5
8947   (eval $ac_compile) 2>&5
8948   ac_status=$?
8949   echo "$as_me:8949: \$? = $ac_status" >&5
8950   (exit $ac_status); } &&
8951          { ac_try='test -s conftest.$ac_objext'
8952   { (eval echo "$as_me:8952: \"$ac_try\"") >&5
8953   (eval $ac_try) 2>&5
8954   ac_status=$?
8955   echo "$as_me:8955: \$? = $ac_status" >&5
8956   (exit $ac_status); }; }; then
8957   ac_cv_type_pid_t=yes
8958 else
8959   echo "$as_me: failed program was:" >&5
8960 cat conftest.$ac_ext >&5
8961 ac_cv_type_pid_t=no
8962 fi
8963 rm -f conftest.$ac_objext conftest.$ac_ext
8964 fi
8965 echo "$as_me:8965: result: $ac_cv_type_pid_t" >&5
8966 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8967 if test $ac_cv_type_pid_t = yes; then
8968   :
8969 else
8970
8971 cat >>confdefs.h <<_ACEOF
8972 #define pid_t int
8973 _ACEOF
8974
8975 fi
8976
8977 echo "$as_me:8977: checking for size_t" >&5
8978 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8979 if test "${ac_cv_type_size_t+set}" = set; then
8980   echo $ECHO_N "(cached) $ECHO_C" >&6
8981 else
8982   cat >conftest.$ac_ext <<_ACEOF
8983 #line 8983 "configure"
8984 #include "confdefs.h"
8985 $ac_includes_default
8986 #ifdef F77_DUMMY_MAIN
8987 #  ifdef __cplusplus
8988      extern "C"
8989 #  endif
8990    int F77_DUMMY_MAIN() { return 1; }
8991 #endif
8992 int
8993 main ()
8994 {
8995 if ((size_t *) 0)
8996   return 0;
8997 if (sizeof (size_t))
8998   return 0;
8999   ;
9000   return 0;
9001 }
9002 _ACEOF
9003 rm -f conftest.$ac_objext
9004 if { (eval echo "$as_me:9004: \"$ac_compile\"") >&5
9005   (eval $ac_compile) 2>&5
9006   ac_status=$?
9007   echo "$as_me:9007: \$? = $ac_status" >&5
9008   (exit $ac_status); } &&
9009          { ac_try='test -s conftest.$ac_objext'
9010   { (eval echo "$as_me:9010: \"$ac_try\"") >&5
9011   (eval $ac_try) 2>&5
9012   ac_status=$?
9013   echo "$as_me:9013: \$? = $ac_status" >&5
9014   (exit $ac_status); }; }; then
9015   ac_cv_type_size_t=yes
9016 else
9017   echo "$as_me: failed program was:" >&5
9018 cat conftest.$ac_ext >&5
9019 ac_cv_type_size_t=no
9020 fi
9021 rm -f conftest.$ac_objext conftest.$ac_ext
9022 fi
9023 echo "$as_me:9023: result: $ac_cv_type_size_t" >&5
9024 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9025 if test $ac_cv_type_size_t = yes; then
9026   :
9027 else
9028
9029 cat >>confdefs.h <<_ACEOF
9030 #define size_t unsigned
9031 _ACEOF
9032
9033 fi
9034
9035 echo "$as_me:9035: checking for uid_t in sys/types.h" >&5
9036 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9037 if test "${ac_cv_type_uid_t+set}" = set; then
9038   echo $ECHO_N "(cached) $ECHO_C" >&6
9039 else
9040   cat >conftest.$ac_ext <<_ACEOF
9041 #line 9041 "configure"
9042 #include "confdefs.h"
9043 #include <sys/types.h>
9044
9045 _ACEOF
9046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9047   egrep "uid_t" >/dev/null 2>&1; then
9048   ac_cv_type_uid_t=yes
9049 else
9050   ac_cv_type_uid_t=no
9051 fi
9052 rm -f conftest*
9053
9054 fi
9055 echo "$as_me:9055: result: $ac_cv_type_uid_t" >&5
9056 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9057 if test $ac_cv_type_uid_t = no; then
9058
9059 cat >>confdefs.h <<\_ACEOF
9060 #define uid_t int
9061 _ACEOF
9062
9063 cat >>confdefs.h <<\_ACEOF
9064 #define gid_t int
9065 _ACEOF
9066
9067 fi
9068
9069   echo "$as_me:9069: checking for socklen_t" >&5
9070 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
9071 if test "${ac_cv_type_socklen_t+set}" = set; then
9072   echo $ECHO_N "(cached) $ECHO_C" >&6
9073 else
9074    ac_cv_type_socklen_t=no
9075       cat >conftest.$ac_ext <<_ACEOF
9076 #line 9076 "configure"
9077 #include "confdefs.h"
9078 #ifdef HAVE_SYS_TYPES_H
9079 #include <sys/types.h>
9080 #endif
9081 #ifdef HAVE_SYS_SOCKET_H
9082 #include <sys/socket.h>
9083 #endif
9084
9085 #ifdef F77_DUMMY_MAIN
9086 #  ifdef __cplusplus
9087      extern "C"
9088 #  endif
9089    int F77_DUMMY_MAIN() { return 1; }
9090 #endif
9091 int
9092 main ()
9093 {
9094 socklen_t foo
9095   ;
9096   return 0;
9097 }
9098 _ACEOF
9099 rm -f conftest.$ac_objext
9100 if { (eval echo "$as_me:9100: \"$ac_compile\"") >&5
9101   (eval $ac_compile) 2>&5
9102   ac_status=$?
9103   echo "$as_me:9103: \$? = $ac_status" >&5
9104   (exit $ac_status); } &&
9105          { ac_try='test -s conftest.$ac_objext'
9106   { (eval echo "$as_me:9106: \"$ac_try\"") >&5
9107   (eval $ac_try) 2>&5
9108   ac_status=$?
9109   echo "$as_me:9109: \$? = $ac_status" >&5
9110   (exit $ac_status); }; }; then
9111   ac_cv_type_socklen_t=yes
9112 else
9113   echo "$as_me: failed program was:" >&5
9114 cat conftest.$ac_ext >&5
9115 fi
9116 rm -f conftest.$ac_objext conftest.$ac_ext
9117
9118 fi
9119 echo "$as_me:9119: result: $ac_cv_type_socklen_t" >&5
9120 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
9121
9122   if test "$ac_cv_type_socklen_t" != "yes"; then
9123          cat >>confdefs.h <<\_ACEOF
9124 #define socklen_t int
9125 _ACEOF
9126
9127   fi
9128
9129   echo "$as_me:9129: checking for uint8_t" >&5
9130 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
9131 if test "${ac_cv_type_uint8_t+set}" = set; then
9132   echo $ECHO_N "(cached) $ECHO_C" >&6
9133 else
9134    ac_cv_type_uint8_t=no
9135       cat >conftest.$ac_ext <<_ACEOF
9136 #line 9136 "configure"
9137 #include "confdefs.h"
9138 #ifdef HAVE_INTTYPES_H
9139 #include <inttypes.h>
9140 #endif
9141 #ifdef HAVE_STDINT_H
9142 #include <stdint.h>
9143 #endif
9144
9145 #ifdef F77_DUMMY_MAIN
9146 #  ifdef __cplusplus
9147      extern "C"
9148 #  endif
9149    int F77_DUMMY_MAIN() { return 1; }
9150 #endif
9151 int
9152 main ()
9153 {
9154 uint8_t foo
9155   ;
9156   return 0;
9157 }
9158 _ACEOF
9159 rm -f conftest.$ac_objext
9160 if { (eval echo "$as_me:9160: \"$ac_compile\"") >&5
9161   (eval $ac_compile) 2>&5
9162   ac_status=$?
9163   echo "$as_me:9163: \$? = $ac_status" >&5
9164   (exit $ac_status); } &&
9165          { ac_try='test -s conftest.$ac_objext'
9166   { (eval echo "$as_me:9166: \"$ac_try\"") >&5
9167   (eval $ac_try) 2>&5
9168   ac_status=$?
9169   echo "$as_me:9169: \$? = $ac_status" >&5
9170   (exit $ac_status); }; }; then
9171   ac_cv_type_uint8_t=yes
9172 else
9173   echo "$as_me: failed program was:" >&5
9174 cat conftest.$ac_ext >&5
9175 fi
9176 rm -f conftest.$ac_objext conftest.$ac_ext
9177
9178 fi
9179 echo "$as_me:9179: result: $ac_cv_type_uint8_t" >&5
9180 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
9181
9182   if test "$ac_cv_type_uint8_t" != "yes"; then
9183          cat >>confdefs.h <<\_ACEOF
9184 #define uint8_t unsigned char
9185 _ACEOF
9186
9187   fi
9188
9189   echo "$as_me:9189: checking for uint16_t" >&5
9190 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
9191 if test "${ac_cv_type_uint16_t+set}" = set; then
9192   echo $ECHO_N "(cached) $ECHO_C" >&6
9193 else
9194    ac_cv_type_uint16_t=no
9195       cat >conftest.$ac_ext <<_ACEOF
9196 #line 9196 "configure"
9197 #include "confdefs.h"
9198 #ifdef HAVE_INTTYPES_H
9199 #include <inttypes.h>
9200 #endif
9201 #ifdef HAVE_STDINT_H
9202 #include <stdint.h>
9203 #endif
9204
9205 #ifdef F77_DUMMY_MAIN
9206 #  ifdef __cplusplus
9207      extern "C"
9208 #  endif
9209    int F77_DUMMY_MAIN() { return 1; }
9210 #endif
9211 int
9212 main ()
9213 {
9214 uint16_t foo
9215   ;
9216   return 0;
9217 }
9218 _ACEOF
9219 rm -f conftest.$ac_objext
9220 if { (eval echo "$as_me:9220: \"$ac_compile\"") >&5
9221   (eval $ac_compile) 2>&5
9222   ac_status=$?
9223   echo "$as_me:9223: \$? = $ac_status" >&5
9224   (exit $ac_status); } &&
9225          { ac_try='test -s conftest.$ac_objext'
9226   { (eval echo "$as_me:9226: \"$ac_try\"") >&5
9227   (eval $ac_try) 2>&5
9228   ac_status=$?
9229   echo "$as_me:9229: \$? = $ac_status" >&5
9230   (exit $ac_status); }; }; then
9231   ac_cv_type_uint16_t=yes
9232 else
9233   echo "$as_me: failed program was:" >&5
9234 cat conftest.$ac_ext >&5
9235 fi
9236 rm -f conftest.$ac_objext conftest.$ac_ext
9237
9238 fi
9239 echo "$as_me:9239: result: $ac_cv_type_uint16_t" >&5
9240 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
9241
9242   if test "$ac_cv_type_uint16_t" != "yes"; then
9243          cat >>confdefs.h <<\_ACEOF
9244 #define uint16_t unsigned short
9245 _ACEOF
9246
9247   fi
9248
9249   echo "$as_me:9249: checking for uint32_t" >&5
9250 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
9251 if test "${ac_cv_type_uint32_t+set}" = set; then
9252   echo $ECHO_N "(cached) $ECHO_C" >&6
9253 else
9254    ac_cv_type_uint32_t=no
9255       cat >conftest.$ac_ext <<_ACEOF
9256 #line 9256 "configure"
9257 #include "confdefs.h"
9258 #ifdef HAVE_INTTYPES_H
9259 #include <inttypes.h>
9260 #endif
9261 #ifdef HAVE_STDINT_H
9262 #include <stdint.h>
9263 #endif
9264
9265 #ifdef F77_DUMMY_MAIN
9266 #  ifdef __cplusplus
9267      extern "C"
9268 #  endif
9269    int F77_DUMMY_MAIN() { return 1; }
9270 #endif
9271 int
9272 main ()
9273 {
9274 uint32_t foo
9275   ;
9276   return 0;
9277 }
9278 _ACEOF
9279 rm -f conftest.$ac_objext
9280 if { (eval echo "$as_me:9280: \"$ac_compile\"") >&5
9281   (eval $ac_compile) 2>&5
9282   ac_status=$?
9283   echo "$as_me:9283: \$? = $ac_status" >&5
9284   (exit $ac_status); } &&
9285          { ac_try='test -s conftest.$ac_objext'
9286   { (eval echo "$as_me:9286: \"$ac_try\"") >&5
9287   (eval $ac_try) 2>&5
9288   ac_status=$?
9289   echo "$as_me:9289: \$? = $ac_status" >&5
9290   (exit $ac_status); }; }; then
9291   ac_cv_type_uint32_t=yes
9292 else
9293   echo "$as_me: failed program was:" >&5
9294 cat conftest.$ac_ext >&5
9295 fi
9296 rm -f conftest.$ac_objext conftest.$ac_ext
9297
9298 fi
9299 echo "$as_me:9299: result: $ac_cv_type_uint32_t" >&5
9300 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
9301
9302   if test "$ac_cv_type_uint32_t" != "yes"; then
9303          cat >>confdefs.h <<\_ACEOF
9304 #define uint32_t unsigned int
9305 _ACEOF
9306
9307   fi
9308
9309 for ac_func in \
9310         getopt_long \
9311         lockf \
9312         strsignal \
9313         sigaction \
9314         sigprocmask \
9315         pthread_sigmask \
9316         snprintf \
9317         vsnprintf \
9318         setsid \
9319         strncasecmp \
9320         strcasecmp \
9321         localtime_r \
9322         ctime_r \
9323         gmtime_r \
9324         strsep \
9325         inet_aton \
9326         gethostname \
9327         setlinebuf \
9328         setvbuf \
9329         sem_init \
9330         getusershell
9331
9332 do
9333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9334 echo "$as_me:9334: checking for $ac_func" >&5
9335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9336 if eval "test \"\${$as_ac_var+set}\" = set"; then
9337   echo $ECHO_N "(cached) $ECHO_C" >&6
9338 else
9339   cat >conftest.$ac_ext <<_ACEOF
9340 #line 9340 "configure"
9341 #include "confdefs.h"
9342 /* System header to define __stub macros and hopefully few prototypes,
9343     which can conflict with char $ac_func (); below.  */
9344 #include <assert.h>
9345 /* Override any gcc2 internal prototype to avoid an error.  */
9346 #ifdef __cplusplus
9347 extern "C"
9348 #endif
9349 /* We use char because int might match the return type of a gcc2
9350    builtin and then its argument prototype would still apply.  */
9351 char $ac_func ();
9352 char (*f) ();
9353
9354 #ifdef F77_DUMMY_MAIN
9355 #  ifdef __cplusplus
9356      extern "C"
9357 #  endif
9358    int F77_DUMMY_MAIN() { return 1; }
9359 #endif
9360 int
9361 main ()
9362 {
9363 /* The GNU C library defines this for functions which it implements
9364     to always fail with ENOSYS.  Some functions are actually named
9365     something starting with __ and the normal name is an alias.  */
9366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9367 choke me
9368 #else
9369 f = $ac_func;
9370 #endif
9371
9372   ;
9373   return 0;
9374 }
9375 _ACEOF
9376 rm -f conftest.$ac_objext conftest$ac_exeext
9377 if { (eval echo "$as_me:9377: \"$ac_link\"") >&5
9378   (eval $ac_link) 2>&5
9379   ac_status=$?
9380   echo "$as_me:9380: \$? = $ac_status" >&5
9381   (exit $ac_status); } &&
9382          { ac_try='test -s conftest$ac_exeext'
9383   { (eval echo "$as_me:9383: \"$ac_try\"") >&5
9384   (eval $ac_try) 2>&5
9385   ac_status=$?
9386   echo "$as_me:9386: \$? = $ac_status" >&5
9387   (exit $ac_status); }; }; then
9388   eval "$as_ac_var=yes"
9389 else
9390   echo "$as_me: failed program was:" >&5
9391 cat conftest.$ac_ext >&5
9392 eval "$as_ac_var=no"
9393 fi
9394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9395 fi
9396 echo "$as_me:9396: result: `eval echo '${'$as_ac_var'}'`" >&5
9397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9398 if test `eval echo '${'$as_ac_var'}'` = yes; then
9399   cat >>confdefs.h <<_ACEOF
9400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9401 _ACEOF
9402
9403 fi
9404 done
9405
9406 for ac_func in \
9407         crypt \
9408         strncasecmp \
9409         strcasecmp \
9410         inet_aton \
9411         gethostname \
9412         setlinebuf \
9413         getusershell \
9414         endusershell
9415
9416 do
9417 echo "$as_me:9417: checking whether $ac_func must be declared" >&5
9418 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
9419 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
9420   echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9422   cat >conftest.$ac_ext <<_ACEOF
9423 #line 9423 "configure"
9424 #include "confdefs.h"
9425
9426 #include <stdio.h>
9427 #include <string.h>
9428 #ifdef HAVE_UNISTD_H
9429 #include <unistd.h>
9430 #endif
9431 #ifdef HAVE_CRYPT_H
9432 #include <crypt.h>
9433 #endif
9434 #ifdef HAVE_ERRNO_H
9435 #include <errno.h>
9436 #endif
9437 #ifdef HAVE_RESOURCE_H
9438 #include <resource.h>
9439 #endif
9440 #ifdef HAVE_GETOPT_H
9441 #include <getopt.h>
9442 #endif
9443 #ifdef HAVE_MALLOC_H
9444 #include <malloc.h>
9445 #endif
9446 #ifdef HAVE_UTMP_H
9447 #include <utmp.h>
9448 #endif
9449 #ifdef HAVE_UTMPX_H
9450 #include <utmpx.h>
9451 #endif
9452 #ifdef HAVE_SYS_SELECT_H
9453 #include <sys/select.h>
9454 #endif
9455 #ifdef HAVE_DLFCN_H
9456 #include <dlfcn.h>
9457 #endif
9458 #ifdef HAVE_REGEX_H
9459 #include <regex.h>
9460 #endif
9461 #ifdef HAVE_SYSLOG_H
9462 #include <syslog.h>
9463 #endif
9464 #ifdef HAVE_INTTYPES_H
9465 #include <inttypes.h>
9466 #endif
9467 #ifdef HAVE_STDINT_H
9468 #include <stdint.h>
9469 #endif
9470 #ifdef HAVE_ARPA_INET_H
9471 #include <arpa/inet.h>
9472 #endif
9473
9474 #ifdef F77_DUMMY_MAIN
9475 #  ifdef __cplusplus
9476      extern "C"
9477 #  endif
9478    int F77_DUMMY_MAIN() { return 1; }
9479 #endif
9480 int
9481 main ()
9482 {
9483 char *(*pfn) = (char *(*)) $ac_func
9484   ;
9485   return 0;
9486 }
9487 _ACEOF
9488 rm -f conftest.$ac_objext
9489 if { (eval echo "$as_me:9489: \"$ac_compile\"") >&5
9490   (eval $ac_compile) 2>&5
9491   ac_status=$?
9492   echo "$as_me:9492: \$? = $ac_status" >&5
9493   (exit $ac_status); } &&
9494          { ac_try='test -s conftest.$ac_objext'
9495   { (eval echo "$as_me:9495: \"$ac_try\"") >&5
9496   (eval $ac_try) 2>&5
9497   ac_status=$?
9498   echo "$as_me:9498: \$? = $ac_status" >&5
9499   (exit $ac_status); }; }; then
9500   eval "radius_cv_decl_needed_$ac_func=no"
9501 else
9502   echo "$as_me: failed program was:" >&5
9503 cat conftest.$ac_ext >&5
9504 eval "radius_cv_decl_needed_$ac_func=yes"
9505 fi
9506 rm -f conftest.$ac_objext conftest.$ac_ext
9507 fi
9508
9509 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
9510   echo "$as_me:9510: result: yes" >&5
9511 echo "${ECHO_T}yes" >&6
9512   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9513   cat >>confdefs.h <<_ACEOF
9514 #define $radius_tr_decl 1
9515 _ACEOF
9516
9517 else
9518   echo "$as_me:9518: result: no" >&5
9519 echo "${ECHO_T}no" >&6
9520 fi
9521
9522 done
9523
9524 echo "$as_me:9524: checking return type of signal handlers" >&5
9525 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9526 if test "${ac_cv_type_signal+set}" = set; then
9527   echo $ECHO_N "(cached) $ECHO_C" >&6
9528 else
9529   cat >conftest.$ac_ext <<_ACEOF
9530 #line 9530 "configure"
9531 #include "confdefs.h"
9532 #include <sys/types.h>
9533 #include <signal.h>
9534 #ifdef signal
9535 # undef signal
9536 #endif
9537 #ifdef __cplusplus
9538 extern "C" void (*signal (int, void (*)(int)))(int);
9539 #else
9540 void (*signal ()) ();
9541 #endif
9542
9543 #ifdef F77_DUMMY_MAIN
9544 #  ifdef __cplusplus
9545      extern "C"
9546 #  endif
9547    int F77_DUMMY_MAIN() { return 1; }
9548 #endif
9549 int
9550 main ()
9551 {
9552 int i;
9553   ;
9554   return 0;
9555 }
9556 _ACEOF
9557 rm -f conftest.$ac_objext
9558 if { (eval echo "$as_me:9558: \"$ac_compile\"") >&5
9559   (eval $ac_compile) 2>&5
9560   ac_status=$?
9561   echo "$as_me:9561: \$? = $ac_status" >&5
9562   (exit $ac_status); } &&
9563          { ac_try='test -s conftest.$ac_objext'
9564   { (eval echo "$as_me:9564: \"$ac_try\"") >&5
9565   (eval $ac_try) 2>&5
9566   ac_status=$?
9567   echo "$as_me:9567: \$? = $ac_status" >&5
9568   (exit $ac_status); }; }; then
9569   ac_cv_type_signal=void
9570 else
9571   echo "$as_me: failed program was:" >&5
9572 cat conftest.$ac_ext >&5
9573 ac_cv_type_signal=int
9574 fi
9575 rm -f conftest.$ac_objext conftest.$ac_ext
9576 fi
9577 echo "$as_me:9577: result: $ac_cv_type_signal" >&5
9578 echo "${ECHO_T}$ac_cv_type_signal" >&6
9579
9580 cat >>confdefs.h <<_ACEOF
9581 #define RETSIGTYPE $ac_cv_type_signal
9582 _ACEOF
9583
9584 if test "x$ac_cv_header_utmpx_h" = "xyes"
9585 then
9586
9587   echo "$as_me:9587: checking for ut_xtime in struct utmpx" >&5
9588 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
9589
9590   cat >conftest.$ac_ext <<_ACEOF
9591 #line 9591 "configure"
9592 #include "confdefs.h"
9593
9594 #include <utmpx.h>
9595 #ifndef offsetof
9596 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
9597 #endif
9598
9599 #ifdef F77_DUMMY_MAIN
9600 #  ifdef __cplusplus
9601      extern "C"
9602 #  endif
9603    int F77_DUMMY_MAIN() { return 1; }
9604 #endif
9605 int
9606 main ()
9607 {
9608  int foo = offsetof(struct utmpx, ut_xtime)
9609   ;
9610   return 0;
9611 }
9612 _ACEOF
9613 rm -f conftest.$ac_objext
9614 if { (eval echo "$as_me:9614: \"$ac_compile\"") >&5
9615   (eval $ac_compile) 2>&5
9616   ac_status=$?
9617   echo "$as_me:9617: \$? = $ac_status" >&5
9618   (exit $ac_status); } &&
9619          { ac_try='test -s conftest.$ac_objext'
9620   { (eval echo "$as_me:9620: \"$ac_try\"") >&5
9621   (eval $ac_try) 2>&5
9622   ac_status=$?
9623   echo "$as_me:9623: \$? = $ac_status" >&5
9624   (exit $ac_status); }; }; then
9625   has_element=" "
9626 else
9627   echo "$as_me: failed program was:" >&5
9628 cat conftest.$ac_ext >&5
9629 has_element=
9630 fi
9631 rm -f conftest.$ac_objext conftest.$ac_ext
9632
9633   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
9634   if test "x$has_element" != "x"; then
9635     echo "$as_me:9635: result: yes" >&5
9636 echo "${ECHO_T}yes" >&6
9637     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
9638   else
9639     echo "$as_me:9639: result: no" >&5
9640 echo "${ECHO_T}no" >&6
9641     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
9642  fi
9643
9644  if test "x$ac_cv_type_struct_utmpx_ut_xtime" = "x"
9645  then
9646    cat >>confdefs.h <<\_ACEOF
9647 #define ut_xtime ut_tv.tv_sec
9648 _ACEOF
9649
9650  fi
9651 fi
9652
9653 echo "$as_me:9653: checking for $CC option to accept ANSI C" >&5
9654 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
9655 if test "${ac_cv_prog_cc_stdc+set}" = set; then
9656   echo $ECHO_N "(cached) $ECHO_C" >&6
9657 else
9658   ac_cv_prog_cc_stdc=no
9659 ac_save_CC=$CC
9660 cat >conftest.$ac_ext <<_ACEOF
9661 #line 9661 "configure"
9662 #include "confdefs.h"
9663 #include <stdarg.h>
9664 #include <stdio.h>
9665 #include <sys/types.h>
9666 #include <sys/stat.h>
9667 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
9668 struct buf { int x; };
9669 FILE * (*rcsopen) (struct buf *, struct stat *, int);
9670 static char *e (p, i)
9671      char **p;
9672      int i;
9673 {
9674   return p[i];
9675 }
9676 static char *f (char * (*g) (char **, int), char **p, ...)
9677 {
9678   char *s;
9679   va_list v;
9680   va_start (v,p);
9681   s = g (p, va_arg (v,int));
9682   va_end (v);
9683   return s;
9684 }
9685 int test (int i, double x);
9686 struct s1 {int (*f) (int a);};
9687 struct s2 {int (*f) (double a);};
9688 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9689 int argc;
9690 char **argv;
9691 #ifdef F77_DUMMY_MAIN
9692 #  ifdef __cplusplus
9693      extern "C"
9694 #  endif
9695    int F77_DUMMY_MAIN() { return 1; }
9696 #endif
9697 int
9698 main ()
9699 {
9700 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
9701   ;
9702   return 0;
9703 }
9704 _ACEOF
9705 # Don't try gcc -ansi; that turns off useful extensions and
9706 # breaks some systems' header files.
9707 # AIX                   -qlanglvl=ansi
9708 # Ultrix and OSF/1      -std1
9709 # HP-UX 10.20 and later -Ae
9710 # HP-UX older versions  -Aa -D_HPUX_SOURCE
9711 # SVR4                  -Xc -D__EXTENSIONS__
9712 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9713 do
9714   CC="$ac_save_CC $ac_arg"
9715   rm -f conftest.$ac_objext
9716 if { (eval echo "$as_me:9716: \"$ac_compile\"") >&5
9717   (eval $ac_compile) 2>&5
9718   ac_status=$?
9719   echo "$as_me:9719: \$? = $ac_status" >&5
9720   (exit $ac_status); } &&
9721          { ac_try='test -s conftest.$ac_objext'
9722   { (eval echo "$as_me:9722: \"$ac_try\"") >&5
9723   (eval $ac_try) 2>&5
9724   ac_status=$?
9725   echo "$as_me:9725: \$? = $ac_status" >&5
9726   (exit $ac_status); }; }; then
9727   ac_cv_prog_cc_stdc=$ac_arg
9728 break
9729 else
9730   echo "$as_me: failed program was:" >&5
9731 cat conftest.$ac_ext >&5
9732 fi
9733 rm -f conftest.$ac_objext
9734 done
9735 rm -f conftest.$ac_ext conftest.$ac_objext
9736 CC=$ac_save_CC
9737
9738 fi
9739
9740 case "x$ac_cv_prog_cc_stdc" in
9741   x|xno)
9742     echo "$as_me:9742: result: none needed" >&5
9743 echo "${ECHO_T}none needed" >&6 ;;
9744   *)
9745     echo "$as_me:9745: result: $ac_cv_prog_cc_stdc" >&5
9746 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
9747     CC="$CC $ac_cv_prog_cc_stdc" ;;
9748 esac
9749
9750 echo "$as_me:9750: checking for an ANSI C-conforming const" >&5
9751 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9752 if test "${ac_cv_c_const+set}" = set; then
9753   echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755   cat >conftest.$ac_ext <<_ACEOF
9756 #line 9756 "configure"
9757 #include "confdefs.h"
9758
9759 #ifdef F77_DUMMY_MAIN
9760 #  ifdef __cplusplus
9761      extern "C"
9762 #  endif
9763    int F77_DUMMY_MAIN() { return 1; }
9764 #endif
9765 int
9766 main ()
9767 {
9768 /* FIXME: Include the comments suggested by Paul. */
9769 #ifndef __cplusplus
9770   /* Ultrix mips cc rejects this.  */
9771   typedef int charset[2];
9772   const charset x;
9773   /* SunOS 4.1.1 cc rejects this.  */
9774   char const *const *ccp;
9775   char **p;
9776   /* NEC SVR4.0.2 mips cc rejects this.  */
9777   struct point {int x, y;};
9778   static struct point const zero = {0,0};
9779   /* AIX XL C 1.02.0.0 rejects this.
9780      It does not let you subtract one const X* pointer from another in
9781      an arm of an if-expression whose if-part is not a constant
9782      expression */
9783   const char *g = "string";
9784   ccp = &g + (g ? g-g : 0);
9785   /* HPUX 7.0 cc rejects these. */
9786   ++ccp;
9787   p = (char**) ccp;
9788   ccp = (char const *const *) p;
9789   { /* SCO 3.2v4 cc rejects this.  */
9790     char *t;
9791     char const *s = 0 ? (char *) 0 : (char const *) 0;
9792
9793     *t++ = 0;
9794   }
9795   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9796     int x[] = {25, 17};
9797     const int *foo = &x[0];
9798     ++foo;
9799   }
9800   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9801     typedef const int *iptr;
9802     iptr p = 0;
9803     ++p;
9804   }
9805   { /* AIX XL C 1.02.0.0 rejects this saying
9806        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9807     struct s { int j; const int *ap[3]; };
9808     struct s *b; b->j = 5;
9809   }
9810   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9811     const int foo = 10;
9812   }
9813 #endif
9814
9815   ;
9816   return 0;
9817 }
9818 _ACEOF
9819 rm -f conftest.$ac_objext
9820 if { (eval echo "$as_me:9820: \"$ac_compile\"") >&5
9821   (eval $ac_compile) 2>&5
9822   ac_status=$?
9823   echo "$as_me:9823: \$? = $ac_status" >&5
9824   (exit $ac_status); } &&
9825          { ac_try='test -s conftest.$ac_objext'
9826   { (eval echo "$as_me:9826: \"$ac_try\"") >&5
9827   (eval $ac_try) 2>&5
9828   ac_status=$?
9829   echo "$as_me:9829: \$? = $ac_status" >&5
9830   (exit $ac_status); }; }; then
9831   ac_cv_c_const=yes
9832 else
9833   echo "$as_me: failed program was:" >&5
9834 cat conftest.$ac_ext >&5
9835 ac_cv_c_const=no
9836 fi
9837 rm -f conftest.$ac_objext conftest.$ac_ext
9838 fi
9839 echo "$as_me:9839: result: $ac_cv_c_const" >&5
9840 echo "${ECHO_T}$ac_cv_c_const" >&6
9841 if test $ac_cv_c_const = no; then
9842
9843 cat >>confdefs.h <<\_ACEOF
9844 #define const
9845 _ACEOF
9846
9847 fi
9848
9849 echo "$as_me:9849: checking type of OS" >&5
9850 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
9851 OS=`uname -s`
9852 echo "$as_me:9852: result: $OS" >&5
9853 echo "${ECHO_T}$OS" >&6
9854 if test "$OS" = "OS/2"; then
9855         LIBPREFIX=
9856 else
9857         LIBPREFIX=lib
9858 fi
9859
9860 if test "x$GCC" = "xyes"; then
9861     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
9862 fi
9863
9864 echo "$as_me:9864: checking for developer gcc flags" >&5
9865 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
9866 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
9867   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs"
9868   CFLAGS="$CFLAGS $devflags"
9869   INSTALLSTRIP=""
9870   echo "$as_me:9870: result: yes.  Using $devflags" >&5
9871 echo "${ECHO_T}yes.  Using $devflags" >&6
9872 else
9873   devflags=""
9874   CFLAGS="$CFLAGS -DNDEBUG"
9875   INSTALLSTRIP="-s"
9876   echo "$as_me:9876: result: no." >&5
9877 echo "${ECHO_T}no." >&6
9878 fi
9879
9880 echo "$as_me:9880: checking how to link libradius.a" >&5
9881 echo $ECHO_N "checking how to link libradius.a... $ECHO_C" >&6
9882 LDTYPE=`ld -V | head -1`
9883 if echo $LDTYPE | egrep -q "GNU ld" ; then
9884   libradius_a="-Wl,-whole-archive -Wl,-lradius -Wl,--no-whole-archive"
9885   echo "$as_me:9885: result: --whole-archive" >&5
9886 echo "${ECHO_T}--whole-archive" >&6
9887 else if echo $LDTYPE | egrep -q "Solaris-ELF" ; then
9888   libradius_a="-Wl,-z -Wl,allextract -Wl,-lradius -Wl,-z -Wl,defaultextract"
9889   echo "$as_me:9889: result: -z allextract" >&5
9890 echo "${ECHO_T}-z allextract" >&6
9891 else
9892   { { echo "$as_me:9892: error: unknown!" >&5
9893 echo "$as_me: error: unknown!" >&2;}
9894    { (exit 1); exit 1; }; }
9895 fi
9896
9897 echo "$as_me:9897: checking for crypt in -lcrypt" >&5
9898 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9899 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9900   echo $ECHO_N "(cached) $ECHO_C" >&6
9901 else
9902   ac_check_lib_save_LIBS=$LIBS
9903 LIBS="-lcrypt  $LIBS"
9904 cat >conftest.$ac_ext <<_ACEOF
9905 #line 9905 "configure"
9906 #include "confdefs.h"
9907
9908 /* Override any gcc2 internal prototype to avoid an error.  */
9909 #ifdef __cplusplus
9910 extern "C"
9911 #endif
9912 /* We use char because int might match the return type of a gcc2
9913    builtin and then its argument prototype would still apply.  */
9914 char crypt ();
9915 #ifdef F77_DUMMY_MAIN
9916 #  ifdef __cplusplus
9917      extern "C"
9918 #  endif
9919    int F77_DUMMY_MAIN() { return 1; }
9920 #endif
9921 int
9922 main ()
9923 {
9924 crypt ();
9925   ;
9926   return 0;
9927 }
9928 _ACEOF
9929 rm -f conftest.$ac_objext conftest$ac_exeext
9930 if { (eval echo "$as_me:9930: \"$ac_link\"") >&5
9931   (eval $ac_link) 2>&5
9932   ac_status=$?
9933   echo "$as_me:9933: \$? = $ac_status" >&5
9934   (exit $ac_status); } &&
9935          { ac_try='test -s conftest$ac_exeext'
9936   { (eval echo "$as_me:9936: \"$ac_try\"") >&5
9937   (eval $ac_try) 2>&5
9938   ac_status=$?
9939   echo "$as_me:9939: \$? = $ac_status" >&5
9940   (exit $ac_status); }; }; then
9941   ac_cv_lib_crypt_crypt=yes
9942 else
9943   echo "$as_me: failed program was:" >&5
9944 cat conftest.$ac_ext >&5
9945 ac_cv_lib_crypt_crypt=no
9946 fi
9947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9948 LIBS=$ac_check_lib_save_LIBS
9949 fi
9950 echo "$as_me:9950: result: $ac_cv_lib_crypt_crypt" >&5
9951 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9952 if test $ac_cv_lib_crypt_crypt = yes; then
9953   CRYPTLIB="-lcrypt"
9954
9955 fi
9956
9957 if test "$CRYPTLIB" != ""; then
9958   cat >>confdefs.h <<\_ACEOF
9959 #define HAVE_CRYPT 1
9960 _ACEOF
9961
9962 else
9963   echo "$as_me:9963: checking for crypt" >&5
9964 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
9965 if test "${ac_cv_func_crypt+set}" = set; then
9966   echo $ECHO_N "(cached) $ECHO_C" >&6
9967 else
9968   cat >conftest.$ac_ext <<_ACEOF
9969 #line 9969 "configure"
9970 #include "confdefs.h"
9971 /* System header to define __stub macros and hopefully few prototypes,
9972     which can conflict with char crypt (); below.  */
9973 #include <assert.h>
9974 /* Override any gcc2 internal prototype to avoid an error.  */
9975 #ifdef __cplusplus
9976 extern "C"
9977 #endif
9978 /* We use char because int might match the return type of a gcc2
9979    builtin and then its argument prototype would still apply.  */
9980 char crypt ();
9981 char (*f) ();
9982
9983 #ifdef F77_DUMMY_MAIN
9984 #  ifdef __cplusplus
9985      extern "C"
9986 #  endif
9987    int F77_DUMMY_MAIN() { return 1; }
9988 #endif
9989 int
9990 main ()
9991 {
9992 /* The GNU C library defines this for functions which it implements
9993     to always fail with ENOSYS.  Some functions are actually named
9994     something starting with __ and the normal name is an alias.  */
9995 #if defined (__stub_crypt) || defined (__stub___crypt)
9996 choke me
9997 #else
9998 f = crypt;
9999 #endif
10000
10001   ;
10002   return 0;
10003 }
10004 _ACEOF
10005 rm -f conftest.$ac_objext conftest$ac_exeext
10006 if { (eval echo "$as_me:10006: \"$ac_link\"") >&5
10007   (eval $ac_link) 2>&5
10008   ac_status=$?
10009   echo "$as_me:10009: \$? = $ac_status" >&5
10010   (exit $ac_status); } &&
10011          { ac_try='test -s conftest$ac_exeext'
10012   { (eval echo "$as_me:10012: \"$ac_try\"") >&5
10013   (eval $ac_try) 2>&5
10014   ac_status=$?
10015   echo "$as_me:10015: \$? = $ac_status" >&5
10016   (exit $ac_status); }; }; then
10017   ac_cv_func_crypt=yes
10018 else
10019   echo "$as_me: failed program was:" >&5
10020 cat conftest.$ac_ext >&5
10021 ac_cv_func_crypt=no
10022 fi
10023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10024 fi
10025 echo "$as_me:10025: result: $ac_cv_func_crypt" >&5
10026 echo "${ECHO_T}$ac_cv_func_crypt" >&6
10027 if test $ac_cv_func_crypt = yes; then
10028   cat >>confdefs.h <<\_ACEOF
10029 #define HAVE_CRYPT 1
10030 _ACEOF
10031
10032 fi
10033
10034 fi
10035
10036 echo "$as_me:10036: checking for setkey in -lcipher" >&5
10037 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
10038 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
10039   echo $ECHO_N "(cached) $ECHO_C" >&6
10040 else
10041   ac_check_lib_save_LIBS=$LIBS
10042 LIBS="-lcipher  $LIBS"
10043 cat >conftest.$ac_ext <<_ACEOF
10044 #line 10044 "configure"
10045 #include "confdefs.h"
10046
10047 /* Override any gcc2 internal prototype to avoid an error.  */
10048 #ifdef __cplusplus
10049 extern "C"
10050 #endif
10051 /* We use char because int might match the return type of a gcc2
10052    builtin and then its argument prototype would still apply.  */
10053 char setkey ();
10054 #ifdef F77_DUMMY_MAIN
10055 #  ifdef __cplusplus
10056      extern "C"
10057 #  endif
10058    int F77_DUMMY_MAIN() { return 1; }
10059 #endif
10060 int
10061 main ()
10062 {
10063 setkey ();
10064   ;
10065   return 0;
10066 }
10067 _ACEOF
10068 rm -f conftest.$ac_objext conftest$ac_exeext
10069 if { (eval echo "$as_me:10069: \"$ac_link\"") >&5
10070   (eval $ac_link) 2>&5
10071   ac_status=$?
10072   echo "$as_me:10072: \$? = $ac_status" >&5
10073   (exit $ac_status); } &&
10074          { ac_try='test -s conftest$ac_exeext'
10075   { (eval echo "$as_me:10075: \"$ac_try\"") >&5
10076   (eval $ac_try) 2>&5
10077   ac_status=$?
10078   echo "$as_me:10078: \$? = $ac_status" >&5
10079   (exit $ac_status); }; }; then
10080   ac_cv_lib_cipher_setkey=yes
10081 else
10082   echo "$as_me: failed program was:" >&5
10083 cat conftest.$ac_ext >&5
10084 ac_cv_lib_cipher_setkey=no
10085 fi
10086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10087 LIBS=$ac_check_lib_save_LIBS
10088 fi
10089 echo "$as_me:10089: result: $ac_cv_lib_cipher_setkey" >&5
10090 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
10091 if test $ac_cv_lib_cipher_setkey = yes; then
10092   CRYPTLIB="${CRYPTLIB} -lcipher"
10093
10094 fi
10095
10096 if test "x$WITH_SNMP" = "xyes"; then
10097
10098 echo "$as_me:10098: checking for asn1.h" >&5
10099 echo $ECHO_N "checking for asn1.h... $ECHO_C" >&6
10100
10101 cat >conftest.$ac_ext <<_ACEOF
10102 #line 10102 "configure"
10103 #include "confdefs.h"
10104
10105 #ifdef HAVE_SYS_TYPES_H
10106 #include <sys/types.h>
10107 #endif
10108 #ifdef HAVE_STDINT_H
10109 #include <stdint.h>
10110 #endif
10111 #ifdef HAVE_STDIO_H
10112 #include <stdio.h>
10113 #endif
10114 #ifdef HAVE_NETDB_H
10115 #include <netdb.h>
10116 #endif
10117 #ifdef HAVE_UNISTD_H
10118 #include <unistd.h>
10119 #endif
10120 #include <asn1.h>
10121 #ifdef F77_DUMMY_MAIN
10122 #  ifdef __cplusplus
10123      extern "C"
10124 #  endif
10125    int F77_DUMMY_MAIN() { return 1; }
10126 #endif
10127 int
10128 main ()
10129 {
10130  int a = 1;
10131   ;
10132   return 0;
10133 }
10134 _ACEOF
10135 rm -f conftest.$ac_objext
10136 if { (eval echo "$as_me:10136: \"$ac_compile\"") >&5
10137   (eval $ac_compile) 2>&5
10138   ac_status=$?
10139   echo "$as_me:10139: \$? = $ac_status" >&5
10140   (exit $ac_status); } &&
10141          { ac_try='test -s conftest.$ac_objext'
10142   { (eval echo "$as_me:10142: \"$ac_try\"") >&5
10143   (eval $ac_try) 2>&5
10144   ac_status=$?
10145   echo "$as_me:10145: \$? = $ac_status" >&5
10146   (exit $ac_status); }; }; then
10147   SNMP_INCLUDE=""
10148 else
10149   echo "$as_me: failed program was:" >&5
10150 cat conftest.$ac_ext >&5
10151 SNMP_INCLUDE=
10152 fi
10153 rm -f conftest.$ac_objext conftest.$ac_ext
10154
10155 if test "x$SNMP_INCLUDE" = "x"; then
10156   old_CFLAGS="$CFLAGS"
10157   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
10158     CFLAGS="$old_CFLAGS -I$try"
10159     cat >conftest.$ac_ext <<_ACEOF
10160 #line 10160 "configure"
10161 #include "confdefs.h"
10162
10163 #ifdef HAVE_SYS_TYPES_H
10164 #include <sys/types.h>
10165 #endif
10166 #ifdef HAVE_STDINT_H
10167 #include <stdint.h>
10168 #endif
10169 #ifdef HAVE_STDIO_H
10170 #include <stdio.h>
10171 #endif
10172 #ifdef HAVE_NETDB_H
10173 #include <netdb.h>
10174 #endif
10175 #ifdef HAVE_UNISTD_H
10176 #include <unistd.h>
10177 #endif
10178 #include <asn1.h>
10179 #ifdef F77_DUMMY_MAIN
10180 #  ifdef __cplusplus
10181      extern "C"
10182 #  endif
10183    int F77_DUMMY_MAIN() { return 1; }
10184 #endif
10185 int
10186 main ()
10187 {
10188  int a = 1;
10189   ;
10190   return 0;
10191 }
10192 _ACEOF
10193 rm -f conftest.$ac_objext
10194 if { (eval echo "$as_me:10194: \"$ac_compile\"") >&5
10195   (eval $ac_compile) 2>&5
10196   ac_status=$?
10197   echo "$as_me:10197: \$? = $ac_status" >&5
10198   (exit $ac_status); } &&
10199          { ac_try='test -s conftest.$ac_objext'
10200   { (eval echo "$as_me:10200: \"$ac_try\"") >&5
10201   (eval $ac_try) 2>&5
10202   ac_status=$?
10203   echo "$as_me:10203: \$? = $ac_status" >&5
10204   (exit $ac_status); }; }; then
10205   SNMP_INCLUDE="-I$try"
10206 else
10207   echo "$as_me: failed program was:" >&5
10208 cat conftest.$ac_ext >&5
10209 SNMP_INCLUDE=
10210 fi
10211 rm -f conftest.$ac_objext conftest.$ac_ext
10212     if test "x$SNMP_INCLUDE" != "x"; then
10213       break;
10214     fi
10215   done
10216   CFLAGS="$old_CFLAGS"
10217 fi
10218
10219 if test "x$SNMP_INCLUDE" = "x"; then
10220   echo "$as_me:10220: result: no" >&5
10221 echo "${ECHO_T}no" >&6
10222 else
10223   echo "$as_me:10223: result: yes" >&5
10224 echo "${ECHO_T}yes" >&6
10225   cat >>confdefs.h <<\_ACEOF
10226 #define HAVE_ASN1_H 1
10227 _ACEOF
10228
10229   old_CFLAGS="$CFLAGS"
10230   CFLAGS="$CFLAGS $SNMP_INCLUDE"
10231
10232   echo "$as_me:10232: checking for snmp.h" >&5
10233 echo $ECHO_N "checking for snmp.h... $ECHO_C" >&6
10234     cat >conftest.$ac_ext <<_ACEOF
10235 #line 10235 "configure"
10236 #include "confdefs.h"
10237
10238 #ifdef HAVE_SYS_TYPES_H
10239 #include <sys/types.h>
10240 #endif
10241 #ifdef HAVE_STDINT_H
10242 #include <stdint.h>
10243 #endif
10244 #ifdef HAVE_STDIO_H
10245 #include <stdio.h>
10246 #endif
10247 #ifdef HAVE_NETDB_H
10248 #include <netdb.h>
10249 #endif
10250 #ifdef HAVE_UNISTD_H
10251 #include <unistd.h>
10252 #endif
10253 #ifdef HAVE_ASN1_H
10254 #include <asn1.h>
10255 #endif
10256 #include <snmp.h>
10257 #ifdef F77_DUMMY_MAIN
10258 #  ifdef __cplusplus
10259      extern "C"
10260 #  endif
10261    int F77_DUMMY_MAIN() { return 1; }
10262 #endif
10263 int
10264 main ()
10265 {
10266  int a = 1;
10267   ;
10268   return 0;
10269 }
10270 _ACEOF
10271 rm -f conftest.$ac_objext
10272 if { (eval echo "$as_me:10272: \"$ac_compile\"") >&5
10273   (eval $ac_compile) 2>&5
10274   ac_status=$?
10275   echo "$as_me:10275: \$? = $ac_status" >&5
10276   (exit $ac_status); } &&
10277          { ac_try='test -s conftest.$ac_objext'
10278   { (eval echo "$as_me:10278: \"$ac_try\"") >&5
10279   (eval $ac_try) 2>&5
10280   ac_status=$?
10281   echo "$as_me:10281: \$? = $ac_status" >&5
10282   (exit $ac_status); }; }; then
10283   cat >>confdefs.h <<\_ACEOF
10284 #define HAVE_SNMP_H 1
10285 _ACEOF
10286  ac_cv_header_snmp_h=yes
10287 else
10288   echo "$as_me: failed program was:" >&5
10289 cat conftest.$ac_ext >&5
10290 fi
10291 rm -f conftest.$ac_objext conftest.$ac_ext
10292     if test "x$ac_cv_header_snmp_h" = "xyes"; then
10293       echo "$as_me:10293: result: yes" >&5
10294 echo "${ECHO_T}yes" >&6
10295     else
10296       echo "$as_me:10296: result: no" >&5
10297 echo "${ECHO_T}no" >&6
10298     fi
10299
10300     echo "$as_me:10300: checking for snmp_impl.h" >&5
10301 echo $ECHO_N "checking for snmp_impl.h... $ECHO_C" >&6
10302     cat >conftest.$ac_ext <<_ACEOF
10303 #line 10303 "configure"
10304 #include "confdefs.h"
10305
10306 #ifdef HAVE_SYS_TYPES_H
10307 #include <sys/types.h>
10308 #endif
10309 #ifdef HAVE_STDINT_H
10310 #include <stdint.h>
10311 #endif
10312 #ifdef HAVE_STDIO_H
10313 #include <stdio.h>
10314 #endif
10315 #ifdef HAVE_NETDB_H
10316 #include <netdb.h>
10317 #endif
10318 #ifdef HAVE_UNISTD_H
10319 #include <unistd.h>
10320 #endif
10321 #ifdef HAVE_ASN1_H
10322 #include <asn1.h>
10323 #endif
10324 #ifdef HAVE_SNMP_H
10325 #include <snmp.h>
10326 #endif
10327 #include <snmp_impl.h>
10328 #ifdef F77_DUMMY_MAIN
10329 #  ifdef __cplusplus
10330      extern "C"
10331 #  endif
10332    int F77_DUMMY_MAIN() { return 1; }
10333 #endif
10334 int
10335 main ()
10336 {
10337  int a = 1;
10338   ;
10339   return 0;
10340 }
10341 _ACEOF
10342 rm -f conftest.$ac_objext
10343 if { (eval echo "$as_me:10343: \"$ac_compile\"") >&5
10344   (eval $ac_compile) 2>&5
10345   ac_status=$?
10346   echo "$as_me:10346: \$? = $ac_status" >&5
10347   (exit $ac_status); } &&
10348          { ac_try='test -s conftest.$ac_objext'
10349   { (eval echo "$as_me:10349: \"$ac_try\"") >&5
10350   (eval $ac_try) 2>&5
10351   ac_status=$?
10352   echo "$as_me:10352: \$? = $ac_status" >&5
10353   (exit $ac_status); }; }; then
10354   cat >>confdefs.h <<\_ACEOF
10355 #define HAVE_SNMP_IMPL_H 1
10356 _ACEOF
10357  ac_cv_header_snmp_impl_h=yes
10358 else
10359   echo "$as_me: failed program was:" >&5
10360 cat conftest.$ac_ext >&5
10361 fi
10362 rm -f conftest.$ac_objext conftest.$ac_ext
10363     if test "x$ac_cv_header_snmp_h" = "xyes"; then
10364       echo "$as_me:10364: result: yes" >&5
10365 echo "${ECHO_T}yes" >&6
10366     else
10367       echo "$as_me:10367: result: no" >&5
10368 echo "${ECHO_T}no" >&6
10369     fi
10370
10371   echo "$as_me:10371: checking for snmp_build_var_op in -lsnmp" >&5
10372 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
10373
10374   old_LIBS="$LIBS"
10375   LIBS="$old_LIBS -lsnmp"
10376   cat >conftest.$ac_ext <<_ACEOF
10377 #line 10377 "configure"
10378 #include "confdefs.h"
10379 extern char snmp_build_var_op();
10380 #ifdef F77_DUMMY_MAIN
10381 #  ifdef __cplusplus
10382      extern "C"
10383 #  endif
10384    int F77_DUMMY_MAIN() { return 1; }
10385 #endif
10386 int
10387 main ()
10388 {
10389  snmp_build_var_op()
10390   ;
10391   return 0;
10392 }
10393 _ACEOF
10394 rm -f conftest.$ac_objext conftest$ac_exeext
10395 if { (eval echo "$as_me:10395: \"$ac_link\"") >&5
10396   (eval $ac_link) 2>&5
10397   ac_status=$?
10398   echo "$as_me:10398: \$? = $ac_status" >&5
10399   (exit $ac_status); } &&
10400          { ac_try='test -s conftest$ac_exeext'
10401   { (eval echo "$as_me:10401: \"$ac_try\"") >&5
10402   (eval $ac_try) 2>&5
10403   ac_status=$?
10404   echo "$as_me:10404: \$? = $ac_status" >&5
10405   (exit $ac_status); }; }; then
10406   SNMP_LIBS="-lsnmp"
10407 else
10408   echo "$as_me: failed program was:" >&5
10409 cat conftest.$ac_ext >&5
10410 SNMP_LIBS=
10411 fi
10412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10413
10414   if test "x$SNMP_LIBS" = "x"; then
10415     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $snmp_lib_dir; do
10416       LIBS="$old_LIBS -L$try -lsnmp"
10417       cat >conftest.$ac_ext <<_ACEOF
10418 #line 10418 "configure"
10419 #include "confdefs.h"
10420 extern char snmp_build_var_op();
10421 #ifdef F77_DUMMY_MAIN
10422 #  ifdef __cplusplus
10423      extern "C"
10424 #  endif
10425    int F77_DUMMY_MAIN() { return 1; }
10426 #endif
10427 int
10428 main ()
10429 {
10430  snmp_build_var_op()
10431   ;
10432   return 0;
10433 }
10434 _ACEOF
10435 rm -f conftest.$ac_objext conftest$ac_exeext
10436 if { (eval echo "$as_me:10436: \"$ac_link\"") >&5
10437   (eval $ac_link) 2>&5
10438   ac_status=$?
10439   echo "$as_me:10439: \$? = $ac_status" >&5
10440   (exit $ac_status); } &&
10441          { ac_try='test -s conftest$ac_exeext'
10442   { (eval echo "$as_me:10442: \"$ac_try\"") >&5
10443   (eval $ac_try) 2>&5
10444   ac_status=$?
10445   echo "$as_me:10445: \$? = $ac_status" >&5
10446   (exit $ac_status); }; }; then
10447   SNMP_LIBS="-L$try -lsnmp"
10448 else
10449   echo "$as_me: failed program was:" >&5
10450 cat conftest.$ac_ext >&5
10451 SNMP_LIBS=
10452 fi
10453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10454       if test "x$SNMP_LIBS" != "x"; then
10455         break;
10456       fi
10457       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
10458       cat >conftest.$ac_ext <<_ACEOF
10459 #line 10459 "configure"
10460 #include "confdefs.h"
10461 extern char snmp_build_var_op();
10462 #ifdef F77_DUMMY_MAIN
10463 #  ifdef __cplusplus
10464      extern "C"
10465 #  endif
10466    int F77_DUMMY_MAIN() { return 1; }
10467 #endif
10468 int
10469 main ()
10470 {
10471  snmp_build_var_op()
10472   ;
10473   return 0;
10474 }
10475 _ACEOF
10476 rm -f conftest.$ac_objext conftest$ac_exeext
10477 if { (eval echo "$as_me:10477: \"$ac_link\"") >&5
10478   (eval $ac_link) 2>&5
10479   ac_status=$?
10480   echo "$as_me:10480: \$? = $ac_status" >&5
10481   (exit $ac_status); } &&
10482          { ac_try='test -s conftest$ac_exeext'
10483   { (eval echo "$as_me:10483: \"$ac_try\"") >&5
10484   (eval $ac_try) 2>&5
10485   ac_status=$?
10486   echo "$as_me:10486: \$? = $ac_status" >&5
10487   (exit $ac_status); }; }; then
10488   SNMP_LIBS="-L$try -lsnmp -lcrypto"
10489 else
10490   echo "$as_me: failed program was:" >&5
10491 cat conftest.$ac_ext >&5
10492 SNMP_LIBS=
10493 fi
10494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10495       if test "x$SNMP_LIBS" != "x"; then
10496         break;
10497       fi
10498     done
10499   fi
10500   LIBS="$old_LIBS"
10501
10502           CFLAGS="$old_CFLAGS"
10503   if test "x$SNMP_LIBS" = "x"; then
10504     echo "$as_me:10504: result: no" >&5
10505 echo "${ECHO_T}no" >&6
10506     SNMP_INCLUDE=
10507   else
10508     echo "$as_me:10508: result: yes" >&5
10509 echo "${ECHO_T}yes" >&6
10510     cat >>confdefs.h <<\_ACEOF
10511 #define WITH_SNMP 1
10512 _ACEOF
10513
10514     cat >>confdefs.h <<\_ACEOF
10515 #define HAVE_LIBSNMP 1
10516 _ACEOF
10517
10518   fi
10519 fi
10520
10521 fi
10522
10523 if test "X$ac_cv_func_sem_init" = "Xno"; then
10524
10525 echo "$as_me:10525: checking for sem_init in -lposix4" >&5
10526 echo $ECHO_N "checking for sem_init in -lposix4... $ECHO_C" >&6
10527 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then
10528   echo $ECHO_N "(cached) $ECHO_C" >&6
10529 else
10530   ac_check_lib_save_LIBS=$LIBS
10531 LIBS="-lposix4  $LIBS"
10532 cat >conftest.$ac_ext <<_ACEOF
10533 #line 10533 "configure"
10534 #include "confdefs.h"
10535
10536 /* Override any gcc2 internal prototype to avoid an error.  */
10537 #ifdef __cplusplus
10538 extern "C"
10539 #endif
10540 /* We use char because int might match the return type of a gcc2
10541    builtin and then its argument prototype would still apply.  */
10542 char sem_init ();
10543 #ifdef F77_DUMMY_MAIN
10544 #  ifdef __cplusplus
10545      extern "C"
10546 #  endif
10547    int F77_DUMMY_MAIN() { return 1; }
10548 #endif
10549 int
10550 main ()
10551 {
10552 sem_init ();
10553   ;
10554   return 0;
10555 }
10556 _ACEOF
10557 rm -f conftest.$ac_objext conftest$ac_exeext
10558 if { (eval echo "$as_me:10558: \"$ac_link\"") >&5
10559   (eval $ac_link) 2>&5
10560   ac_status=$?
10561   echo "$as_me:10561: \$? = $ac_status" >&5
10562   (exit $ac_status); } &&
10563          { ac_try='test -s conftest$ac_exeext'
10564   { (eval echo "$as_me:10564: \"$ac_try\"") >&5
10565   (eval $ac_try) 2>&5
10566   ac_status=$?
10567   echo "$as_me:10567: \$? = $ac_status" >&5
10568   (exit $ac_status); }; }; then
10569   ac_cv_lib_posix4_sem_init=yes
10570 else
10571   echo "$as_me: failed program was:" >&5
10572 cat conftest.$ac_ext >&5
10573 ac_cv_lib_posix4_sem_init=no
10574 fi
10575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10576 LIBS=$ac_check_lib_save_LIBS
10577 fi
10578 echo "$as_me:10578: result: $ac_cv_lib_posix4_sem_init" >&5
10579 echo "${ECHO_T}$ac_cv_lib_posix4_sem_init" >&6
10580 if test $ac_cv_lib_posix4_sem_init = yes; then
10581   cat >>confdefs.h <<_ACEOF
10582 #define HAVE_LIBPOSIX4 1
10583 _ACEOF
10584
10585   LIBS="-lposix4 $LIBS"
10586
10587 fi
10588
10589   if test "X$ac_cv_lib_posix4_sem_init" = "X"; then
10590     if test "$WITH_THREAD_POOL" = "yes"; then
10591       { echo "$as_me:10591: WARNING: You do not have posix semaphores.  Disabling thread pools" >&5
10592 echo "$as_me: WARNING: You do not have posix semaphores.  Disabling thread pools" >&2;}
10593     fi
10594     WITH_THREAD_POOL=no
10595   fi
10596 fi
10597
10598 gethostbyaddrrstyle=""
10599 echo "$as_me:10599: checking gethostbyaddr_r() syntax" >&5
10600 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
10601 cat >conftest.$ac_ext <<_ACEOF
10602 #line 10602 "configure"
10603 #include "confdefs.h"
10604 #include <netdb.h>
10605 #ifdef F77_DUMMY_MAIN
10606 #  ifdef __cplusplus
10607      extern "C"
10608 #  endif
10609    int F77_DUMMY_MAIN() { return 1; }
10610 #endif
10611 int
10612 main ()
10613 {
10614  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
10615   ;
10616   return 0;
10617 }
10618 _ACEOF
10619 rm -f conftest.$ac_objext
10620 if { (eval echo "$as_me:10620: \"$ac_compile\"") >&5
10621   (eval $ac_compile) 2>&5
10622   ac_status=$?
10623   echo "$as_me:10623: \$? = $ac_status" >&5
10624   (exit $ac_status); } &&
10625          { ac_try='test -s conftest.$ac_objext'
10626   { (eval echo "$as_me:10626: \"$ac_try\"") >&5
10627   (eval $ac_try) 2>&5
10628   ac_status=$?
10629   echo "$as_me:10629: \$? = $ac_status" >&5
10630   (exit $ac_status); }; }; then
10631
10632         cat >>confdefs.h <<\_ACEOF
10633 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
10634 _ACEOF
10635
10636         gethostbyaddrrstyle=SYSV
10637
10638 else
10639   echo "$as_me: failed program was:" >&5
10640 cat conftest.$ac_ext >&5
10641 fi
10642 rm -f conftest.$ac_objext conftest.$ac_ext
10643 cat >conftest.$ac_ext <<_ACEOF
10644 #line 10644 "configure"
10645 #include "confdefs.h"
10646 #include <netdb.h>
10647 #ifdef F77_DUMMY_MAIN
10648 #  ifdef __cplusplus
10649      extern "C"
10650 #  endif
10651    int F77_DUMMY_MAIN() { return 1; }
10652 #endif
10653 int
10654 main ()
10655 {
10656  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
10657   ;
10658   return 0;
10659 }
10660 _ACEOF
10661 rm -f conftest.$ac_objext
10662 if { (eval echo "$as_me:10662: \"$ac_compile\"") >&5
10663   (eval $ac_compile) 2>&5
10664   ac_status=$?
10665   echo "$as_me:10665: \$? = $ac_status" >&5
10666   (exit $ac_status); } &&
10667          { ac_try='test -s conftest.$ac_objext'
10668   { (eval echo "$as_me:10668: \"$ac_try\"") >&5
10669   (eval $ac_try) 2>&5
10670   ac_status=$?
10671   echo "$as_me:10671: \$? = $ac_status" >&5
10672   (exit $ac_status); }; }; then
10673
10674         cat >>confdefs.h <<\_ACEOF
10675 #define GETHOSTBYADDRRSTYLE GNUSTYLE
10676 _ACEOF
10677
10678         gethostbyaddrrstyle=GNU
10679
10680 else
10681   echo "$as_me: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10683 fi
10684 rm -f conftest.$ac_objext conftest.$ac_ext
10685
10686 cat >conftest.$ac_ext <<_ACEOF
10687 #line 10687 "configure"
10688 #include "confdefs.h"
10689 #include <netdb.h>
10690 #ifdef F77_DUMMY_MAIN
10691 #  ifdef __cplusplus
10692      extern "C"
10693 #  endif
10694    int F77_DUMMY_MAIN() { return 1; }
10695 #endif
10696 int
10697 main ()
10698 {
10699  gethostbyaddr(NULL, 0, 0)
10700   ;
10701   return 0;
10702 }
10703 _ACEOF
10704 rm -f conftest.$ac_objext
10705 if { (eval echo "$as_me:10705: \"$ac_compile\"") >&5
10706   (eval $ac_compile) 2>&5
10707   ac_status=$?
10708   echo "$as_me:10708: \$? = $ac_status" >&5
10709   (exit $ac_status); } &&
10710          { ac_try='test -s conftest.$ac_objext'
10711   { (eval echo "$as_me:10711: \"$ac_try\"") >&5
10712   (eval $ac_try) 2>&5
10713   ac_status=$?
10714   echo "$as_me:10714: \$? = $ac_status" >&5
10715   (exit $ac_status); }; }; then
10716
10717         cat >>confdefs.h <<\_ACEOF
10718 #define GETHOSTBYADDRRSTYLE BSDSTYLE
10719 _ACEOF
10720
10721         gethostbyaddrrstyle=BSD
10722
10723 else
10724   echo "$as_me: failed program was:" >&5
10725 cat conftest.$ac_ext >&5
10726 fi
10727 rm -f conftest.$ac_objext conftest.$ac_ext
10728
10729 if test "x$gethostbyaddrrstyle" = "x"; then
10730         echo "$as_me:10730: result: none!  It must not exist, here." >&5
10731 echo "${ECHO_T}none!  It must not exist, here." >&6
10732 else
10733         echo "$as_me:10733: result: ${gethostbyaddrrstyle}-style" >&5
10734 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
10735 fi
10736
10737 LIBTOOL="`pwd`/libtool"
10738
10739 top_builddir=`pwd`
10740
10741 if test "x$INCLTDL" != "x";then
10742   INCLTDL='-I${top_builddir}/''libltdl'
10743 fi
10744
10745 if test "$WITH_THREAD_POOL" = "yes"; then
10746         if test "$WITH_THREADS" != "yes"; then
10747     { { echo "$as_me:10747: error: You must have threads enabled for thread pools to work." >&5
10748 echo "$as_me: error: You must have threads enabled for thread pools to work." >&2;}
10749    { (exit 1); exit 1; }; }
10750   fi
10751
10752         if test "X$PTHREADLIB" = "X"; then
10753     { { echo "$as_me:10753: error: You must have threading libraries for thread pools to work." >&5
10754 echo "$as_me: error: You must have threading libraries for thread pools to work." >&2;}
10755    { (exit 1); exit 1; }; }
10756   fi
10757
10758 fi
10759
10760 mysubdirs=
10761 if test "x$EXPERIMENTAL" = "xyes"; then
10762   for foo in `find src/modules -name configure -print`; do
10763     bar=`echo $foo | sed 's%/configure$%%g'`
10764     mysubdirs="$mysubdirs $bar"
10765   done
10766 else
10767             for foo in `find \`cat src/modules/stable | sed 's%rlm%src/modules/rlm%g'\` -name configure -print`; do
10768     bar=`echo $foo | sed 's%/configure$%%g'`
10769     mysubdirs="$mysubdirs $bar"
10770   done
10771 fi
10772
10773 MODULES=
10774 if test "x$EXPERIMENTAL" = "xyes"; then
10775   for foo in `ls src/modules | grep rlm_`; do
10776     MODULES="$MODULES $foo"
10777   done
10778 else
10779             for foo in `cat src/modules/stable`; do
10780     MODULES="$MODULES $foo"
10781    done
10782 fi
10783
10784 subdirs="$subdirs $mysubdirs"
10785
10786 USE_SHARED_LIBS=$enable_shared
10787
10788 USE_STATIC_LIBS=$enable_static
10789
10790 export CFLAGS LIBS
10791
10792 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/check-radiusd-config ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/radiusd.conf"
10793 cat >confcache <<\_ACEOF
10794 # This file is a shell script that caches the results of configure
10795 # tests run on this system so they can be shared between configure
10796 # scripts and configure runs, see configure's option --config-cache.
10797 # It is not useful on other systems.  If it contains results you don't
10798 # want to keep, you may remove or edit it.
10799 #
10800 # config.status only pays attention to the cache file if you give it
10801 # the --recheck option to rerun configure.
10802 #
10803 # `ac_cv_env_foo' variables (set or unset) will be overriden when
10804 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10805 # following values.
10806
10807 _ACEOF
10808
10809 # The following way of writing the cache mishandles newlines in values,
10810 # but we know of no workaround that is simple, portable, and efficient.
10811 # So, don't put newlines in cache variables' values.
10812 # Ultrix sh set writes to stderr and can't be redirected directly,
10813 # and sets the high bit in the cache file unless we assign to the vars.
10814 {
10815   (set) 2>&1 |
10816     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10817     *ac_space=\ *)
10818       # `set' does not quote correctly, so add quotes (double-quote
10819       # substitution turns \\\\ into \\, and sed turns \\ into \).
10820       sed -n \
10821         "s/'/'\\\\''/g;
10822           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10823       ;;
10824     *)
10825       # `set' quotes correctly as required by POSIX, so do not add quotes.
10826       sed -n \
10827         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10828       ;;
10829     esac;
10830 } |
10831   sed '
10832      t clear
10833      : clear
10834      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10835      t end
10836      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10837      : end' >>confcache
10838 if cmp -s $cache_file confcache; then :; else
10839   if test -w $cache_file; then
10840     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10841     cat confcache >$cache_file
10842   else
10843     echo "not updating unwritable cache $cache_file"
10844   fi
10845 fi
10846 rm -f confcache
10847
10848 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10849 # Let make expand exec_prefix.
10850 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10851
10852 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10853 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10854 # trailing colons and then remove the whole line if VPATH becomes empty
10855 # (actually we leave an empty line to preserve line numbers).
10856 if test "x$srcdir" = x.; then
10857   ac_vpsub='/^[         ]*VPATH[        ]*=/{
10858 s/:*\$(srcdir):*/:/;
10859 s/:*\${srcdir}:*/:/;
10860 s/:*@srcdir@:*/:/;
10861 s/^\([^=]*=[    ]*\):*/\1/;
10862 s/:*$//;
10863 s/^[^=]*=[      ]*$//;
10864 }'
10865 fi
10866
10867 DEFS=-DHAVE_CONFIG_H
10868
10869 : ${CONFIG_STATUS=./config.status}
10870 ac_clean_files_save=$ac_clean_files
10871 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10872 { echo "$as_me:10872: creating $CONFIG_STATUS" >&5
10873 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10874 cat >$CONFIG_STATUS <<_ACEOF
10875 #! $SHELL
10876 # Generated automatically by $as_me.
10877 # Run this file to recreate the current configuration.
10878 # Compiler output produced by configure, useful for debugging
10879 # configure, is in config.log if it exists.
10880
10881 debug=false
10882 SHELL=\${CONFIG_SHELL-$SHELL}
10883 _ACEOF
10884
10885 cat >>$CONFIG_STATUS <<\_ACEOF
10886
10887 ## --------------------- ##
10888 ## M4sh Initialization.  ##
10889 ## --------------------- ##
10890
10891 # Be Bourne compatible
10892 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10893   emulate sh
10894   NULLCMD=:
10895 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10896   set -o posix
10897 fi
10898
10899 # Name of the executable.
10900 as_me=`echo "$0" |sed 's,.*[\\/],,'`
10901
10902 if expr a : '\(a\)' >/dev/null 2>&1; then
10903   as_expr=expr
10904 else
10905   as_expr=false
10906 fi
10907
10908 rm -f conf$$ conf$$.exe conf$$.file
10909 echo >conf$$.file
10910 if ln -s conf$$.file conf$$ 2>/dev/null; then
10911   # We could just check for DJGPP; but this test a) works b) is more generic
10912   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10913   if test -f conf$$.exe; then
10914     # Don't use ln at all; we don't have any links
10915     as_ln_s='cp -p'
10916   else
10917     as_ln_s='ln -s'
10918   fi
10919 elif ln conf$$.file conf$$ 2>/dev/null; then
10920   as_ln_s=ln
10921 else
10922   as_ln_s='cp -p'
10923 fi
10924 rm -f conf$$ conf$$.exe conf$$.file
10925
10926 as_executable_p="test -f"
10927
10928 # Support unset when possible.
10929 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10930   as_unset=unset
10931 else
10932   as_unset=false
10933 fi
10934
10935 # NLS nuisances.
10936 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
10937 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
10938 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
10939 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
10940 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
10941 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
10942 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
10943 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
10944
10945 # IFS
10946 # We need space, tab and new line, in precisely that order.
10947 as_nl='
10948 '
10949 IFS="   $as_nl"
10950
10951 # CDPATH.
10952 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
10953
10954 exec 6>&1
10955
10956 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10957 # report actual input values of CONFIG_FILES etc. instead of their
10958 # values after options handling.  Logging --version etc. is OK.
10959 exec 5>>config.log
10960 {
10961   echo
10962   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10963 ## Running \$as_me. ##
10964 _ASBOX
10965 } >&5
10966 cat >&5 <<_CSEOF
10967
10968 This file was extended by $as_me, which was
10969 generated by GNU Autoconf 2.52d.  Invocation command line was
10970
10971   CONFIG_FILES    = $CONFIG_FILES
10972   CONFIG_HEADERS  = $CONFIG_HEADERS
10973   CONFIG_LINKS    = $CONFIG_LINKS
10974   CONFIG_COMMANDS = $CONFIG_COMMANDS
10975   $ $@
10976
10977 _CSEOF
10978 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10979 echo >&5
10980 _ACEOF
10981
10982 # Files that config.status was made for.
10983 if test -n "$ac_config_files"; then
10984   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10985 fi
10986
10987 if test -n "$ac_config_headers"; then
10988   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10989 fi
10990
10991 if test -n "$ac_config_links"; then
10992   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10993 fi
10994
10995 if test -n "$ac_config_commands"; then
10996   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10997 fi
10998
10999 cat >>$CONFIG_STATUS <<\_ACEOF
11000
11001 ac_cs_usage="\
11002 \`$as_me' instantiates files from templates according to the
11003 current configuration.
11004
11005 Usage: $0 [OPTIONS] [FILE]...
11006
11007   -h, --help       print this help, then exit
11008   -V, --version    print version number, then exit
11009   -d, --debug      don't remove temporary files
11010       --recheck    update $as_me by reconfiguring in the same conditions
11011   --file=FILE[:TEMPLATE]
11012                    instantiate the configuration file FILE
11013   --header=FILE[:TEMPLATE]
11014                    instantiate the configuration header FILE
11015
11016 Configuration files:
11017 $config_files
11018
11019 Configuration headers:
11020 $config_headers
11021
11022 Report bugs to <bug-autoconf@gnu.org>."
11023 _ACEOF
11024
11025 cat >>$CONFIG_STATUS <<_ACEOF
11026 ac_cs_version="\\
11027 config.status
11028 configured by $0, generated by GNU Autoconf 2.52d,
11029   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11030
11031 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11032 Free Software Foundation, Inc.
11033 This config.status script is free software; the Free Software Foundation
11034 gives unlimited permission to copy, distribute and modify it."
11035 srcdir=$srcdir
11036 _ACEOF
11037
11038 cat >>$CONFIG_STATUS <<\_ACEOF
11039 # If no file are specified by the user, then we need to provide default
11040 # value.  By we need to know if files were specified by the user.
11041 ac_need_defaults=:
11042 while test $# != 0
11043 do
11044   case $1 in
11045   --*=*)
11046     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11047     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11048     shift
11049     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
11050     shift
11051     ;;
11052   -*);;
11053   *) # This is not an option, so the user has probably given explicit
11054      # arguments.
11055      ac_need_defaults=false;;
11056   esac
11057
11058   case $1 in
11059   # Handling of the options.
11060 _ACEOF
11061 cat >>$CONFIG_STATUS <<_ACEOF
11062   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11063     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
11064     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
11065 _ACEOF
11066 cat >>$CONFIG_STATUS <<\_ACEOF
11067   --version | --vers* | -V )
11068     echo "$ac_cs_version"; exit 0 ;;
11069   --he | --h)
11070     # Conflict between --help and --header
11071     { { echo "$as_me:11071: error: ambiguous option: $1
11072 Try \`$0 --help' for more information." >&5
11073 echo "$as_me: error: ambiguous option: $1
11074 Try \`$0 --help' for more information." >&2;}
11075    { (exit 1); exit 1; }; };;
11076   --help | --hel | -h )
11077     echo "$ac_cs_usage"; exit 0 ;;
11078   --debug | --d* | -d )
11079     debug=: ;;
11080   --file | --fil | --fi | --f )
11081     shift
11082     CONFIG_FILES="$CONFIG_FILES $1"
11083     ac_need_defaults=false;;
11084   --header | --heade | --head | --hea )
11085     shift
11086     CONFIG_HEADERS="$CONFIG_HEADERS $1"
11087     ac_need_defaults=false;;
11088
11089   # This is an error.
11090   -*) { { echo "$as_me:11090: error: unrecognized option: $1
11091 Try \`$0 --help' for more information." >&5
11092 echo "$as_me: error: unrecognized option: $1
11093 Try \`$0 --help' for more information." >&2;}
11094    { (exit 1); exit 1; }; } ;;
11095
11096   *) ac_config_targets="$ac_config_targets $1" ;;
11097
11098   esac
11099   shift
11100 done
11101
11102 _ACEOF
11103
11104 cat >>$CONFIG_STATUS <<\_ACEOF
11105 for ac_config_target in $ac_config_targets
11106 do
11107   case "$ac_config_target" in
11108   # Handling of arguments.
11109   "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
11110   "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
11111   "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
11112   "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
11113   "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
11114   "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
11115   "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
11116   "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
11117   "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
11118   "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
11119   "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
11120   "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
11121   "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
11122   "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
11123   *) { { echo "$as_me:11123: error: invalid argument: $ac_config_target" >&5
11124 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11125    { (exit 1); exit 1; }; };;
11126   esac
11127 done
11128
11129 # If the user did not use the arguments to specify the items to instantiate,
11130 # then the envvar interface is used.  Set only those that are not.
11131 # We use the long form for the default assignment because of an extremely
11132 # bizarre bug on SunOS 4.1.3.
11133 if $ac_need_defaults; then
11134   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11135   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11136 fi
11137
11138 # Create a temporary directory, and hook for its removal unless debugging.
11139 $debug ||
11140 {
11141   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11142   trap '{ (exit 1); exit 1; }' 1 2 13 15
11143 }
11144
11145 # Create a (secure) tmp directory for tmp files.
11146 : ${TMPDIR=/tmp}
11147 {
11148   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
11149   test -n "$tmp" && test -d "$tmp"
11150 }  ||
11151 {
11152   tmp=$TMPDIR/cs$$-$RANDOM
11153   (umask 077 && mkdir $tmp)
11154 } ||
11155 {
11156    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
11157    { (exit 1); exit 1; }
11158 }
11159
11160 _ACEOF
11161
11162 cat >>$CONFIG_STATUS <<_ACEOF
11163
11164 #
11165 # CONFIG_FILES section.
11166 #
11167
11168 # No need to generate the scripts if there are no CONFIG_FILES.
11169 # This happens for instance when ./config.status config.h
11170 if test -n "\$CONFIG_FILES"; then
11171   # Protect against being on the right side of a sed subst in config.status.
11172   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11173    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11174 s,@SHELL@,$SHELL,;t t
11175 s,@exec_prefix@,$exec_prefix,;t t
11176 s,@prefix@,$prefix,;t t
11177 s,@program_transform_name@,$program_transform_name,;t t
11178 s,@bindir@,$bindir,;t t
11179 s,@sbindir@,$sbindir,;t t
11180 s,@libexecdir@,$libexecdir,;t t
11181 s,@datadir@,$datadir,;t t
11182 s,@sysconfdir@,$sysconfdir,;t t
11183 s,@sharedstatedir@,$sharedstatedir,;t t
11184 s,@localstatedir@,$localstatedir,;t t
11185 s,@libdir@,$libdir,;t t
11186 s,@includedir@,$includedir,;t t
11187 s,@oldincludedir@,$oldincludedir,;t t
11188 s,@infodir@,$infodir,;t t
11189 s,@mandir@,$mandir,;t t
11190 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11191 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11192 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11193 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11194 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11195 s,@build_alias@,$build_alias,;t t
11196 s,@host_alias@,$host_alias,;t t
11197 s,@target_alias@,$target_alias,;t t
11198 s,@ECHO_C@,$ECHO_C,;t t
11199 s,@ECHO_N@,$ECHO_N,;t t
11200 s,@ECHO_T@,$ECHO_T,;t t
11201 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11202 s,@DEFS@,$DEFS,;t t
11203 s,@LIBS@,$LIBS,;t t
11204 s,@CC@,$CC,;t t
11205 s,@CFLAGS@,$CFLAGS,;t t
11206 s,@LDFLAGS@,$LDFLAGS,;t t
11207 s,@CPPFLAGS@,$CPPFLAGS,;t t
11208 s,@ac_ct_CC@,$ac_ct_CC,;t t
11209 s,@EXEEXT@,$EXEEXT,;t t
11210 s,@OBJEXT@,$OBJEXT,;t t
11211 s,@CPP@,$CPP,;t t
11212 s,@RANLIB@,$RANLIB,;t t
11213 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11214 s,@GMAKE@,$GMAKE,;t t
11215 s,@MAKE@,$MAKE,;t t
11216 s,@build@,$build,;t t
11217 s,@build_cpu@,$build_cpu,;t t
11218 s,@build_vendor@,$build_vendor,;t t
11219 s,@build_os@,$build_os,;t t
11220 s,@host@,$host,;t t
11221 s,@host_cpu@,$host_cpu,;t t
11222 s,@host_vendor@,$host_vendor,;t t
11223 s,@host_os@,$host_os,;t t
11224 s,@LN_S@,$LN_S,;t t
11225 s,@ECHO@,$ECHO,;t t
11226 s,@STRIP@,$STRIP,;t t
11227 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11228 s,@LIBTOOL@,$LIBTOOL,;t t
11229 s,@logdir@,$logdir,;t t
11230 s,@radacctdir@,$radacctdir,;t t
11231 s,@raddbdir@,$raddbdir,;t t
11232 s,@subdirs@,$subdirs,;t t
11233 s,@PERL@,$PERL,;t t
11234 s,@SNMPGET@,$SNMPGET,;t t
11235 s,@SNMPWALK@,$SNMPWALK,;t t
11236 s,@RUSERS@,$RUSERS,;t t
11237 s,@ACLOCAL@,$ACLOCAL,;t t
11238 s,@AUTOCONF@,$AUTOCONF,;t t
11239 s,@AUTOHEADER@,$AUTOHEADER,;t t
11240 s,@LOCATE@,$LOCATE,;t t
11241 s,@DIRNAME@,$DIRNAME,;t t
11242 s,@GREP@,$GREP,;t t
11243 s,@REGEX@,$REGEX,;t t
11244 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
11245 s,@LIBPREFIX@,$LIBPREFIX,;t t
11246 s,@libradius_a@,$libradius_a,;t t
11247 s,@CRYPTLIB@,$CRYPTLIB,;t t
11248 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
11249 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
11250 s,@LIBLTDL@,$LIBLTDL,;t t
11251 s,@INCLTDL@,$INCLTDL,;t t
11252 s,@top_builddir@,$top_builddir,;t t
11253 s,@MODULES@,$MODULES,;t t
11254 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
11255 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
11256 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
11257 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
11258 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
11259 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
11260 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
11261 CEOF
11262
11263 _ACEOF
11264
11265   cat >>$CONFIG_STATUS <<\_ACEOF
11266   # Split the substitutions into bite-sized pieces for seds with
11267   # small command number limits, like on Digital OSF/1 and HP-UX.
11268   ac_max_sed_lines=48
11269   ac_sed_frag=1 # Number of current file.
11270   ac_beg=1 # First line for current file.
11271   ac_end=$ac_max_sed_lines # Line after last line for current file.
11272   ac_more_lines=:
11273   ac_sed_cmds=
11274   while $ac_more_lines; do
11275     if test $ac_beg -gt 1; then
11276       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11277     else
11278       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11279     fi
11280     if test ! -s $tmp/subs.frag; then
11281       ac_more_lines=false
11282     else
11283       # The purpose of the label and of the branching condition is to
11284       # speed up the sed processing (if there are no `@' at all, there
11285       # is no need to browse any of the substitutions).
11286       # These are the two extra sed commands mentioned above.
11287       (echo ':t
11288   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11289       if test -z "$ac_sed_cmds"; then
11290         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11291       else
11292         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11293       fi
11294       ac_sed_frag=`expr $ac_sed_frag + 1`
11295       ac_beg=$ac_end
11296       ac_end=`expr $ac_end + $ac_max_sed_lines`
11297     fi
11298   done
11299   if test -z "$ac_sed_cmds"; then
11300     ac_sed_cmds=cat
11301   fi
11302 fi # test -n "$CONFIG_FILES"
11303
11304 _ACEOF
11305 cat >>$CONFIG_STATUS <<\_ACEOF
11306 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11307   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11308   case $ac_file in
11309   - | *:- | *:-:* ) # input from stdin
11310         cat >$tmp/stdin
11311         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11312         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11313   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11314         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11315   * )   ac_file_in=$ac_file.in ;;
11316   esac
11317
11318   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11319   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11320          X"$ac_file" : 'X\(//\)[^/]' \| \
11321          X"$ac_file" : 'X\(//\)$' \| \
11322          X"$ac_file" : 'X\(/\)' \| \
11323          .     : '\(.\)' 2>/dev/null ||
11324 echo X"$ac_file" |
11325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11326           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11327           /^X\(\/\/\)$/{ s//\1/; q; }
11328           /^X\(\/\).*/{ s//\1/; q; }
11329           s/.*/./; q'`
11330   { case "$ac_dir" in
11331   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11332   *)                      as_incr_dir=.;;
11333 esac
11334 as_dummy="$ac_dir"
11335 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11336   case $as_mkdir_dir in
11337     # Skip DOS drivespec
11338     ?:) as_incr_dir=$as_mkdir_dir ;;
11339     *)
11340       as_incr_dir=$as_incr_dir/$as_mkdir_dir
11341       test -d "$as_incr_dir" ||
11342         mkdir "$as_incr_dir" ||
11343         { { echo "$as_me:11343: error: cannot create \"$ac_dir\"" >&5
11344 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
11345    { (exit 1); exit 1; }; }
11346     ;;
11347   esac
11348 done; }
11349
11350   if test "$ac_dir" != .; then
11351   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'`
11352   # A "../" for each directory in $ac_dir_suffix.
11353   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
11354 else
11355   ac_dir_suffix= ac_top_builddir=
11356 fi
11357
11358 case $srcdir in
11359   .)  # No --srcdir option.  We are building in place.
11360     ac_srcdir=.
11361     if test -z "$ac_top_builddir"; then
11362        ac_top_srcdir=.
11363     else
11364        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11365     fi ;;
11366   [\\/]* | ?:[\\/]* )  # Absolute path.
11367     ac_srcdir=$srcdir$ac_dir_suffix;
11368     ac_top_srcdir=$srcdir ;;
11369   *) # Relative path.
11370     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11371     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11372 esac
11373
11374   if test x"$ac_file" != x-; then
11375     { echo "$as_me:11375: creating $ac_file" >&5
11376 echo "$as_me: creating $ac_file" >&6;}
11377     rm -f "$ac_file"
11378   fi
11379   # Let's still pretend it is `configure' which instantiates (i.e., don't
11380   # use $as_me), people would be surprised to read:
11381   #    /* config.h.  Generated automatically by config.status.  */
11382   configure_input="Generated automatically from `echo $ac_file_in |
11383                                                  sed 's,.*/,,'` by configure."
11384
11385   # First look for the input files in the build tree, otherwise in the
11386   # src tree.
11387   ac_file_inputs=`IFS=:
11388     for f in $ac_file_in; do
11389       case $f in
11390       -) echo $tmp/stdin ;;
11391       [\\/$]*)
11392          # Absolute (can't be DOS-style, as IFS=:)
11393          test -f "$f" || { { echo "$as_me:11393: error: cannot find input file: $f" >&5
11394 echo "$as_me: error: cannot find input file: $f" >&2;}
11395    { (exit 1); exit 1; }; }
11396          echo $f;;
11397       *) # Relative
11398          if test -f "$f"; then
11399            # Build tree
11400            echo $f
11401          elif test -f "$srcdir/$f"; then
11402            # Source tree
11403            echo $srcdir/$f
11404          else
11405            # /dev/null tree
11406            { { echo "$as_me:11406: error: cannot find input file: $f" >&5
11407 echo "$as_me: error: cannot find input file: $f" >&2;}
11408    { (exit 1); exit 1; }; }
11409          fi;;
11410       esac
11411     done` || { (exit 1); exit 1; }
11412 _ACEOF
11413 cat >>$CONFIG_STATUS <<_ACEOF
11414   sed "$ac_vpsub
11415 $extrasub
11416 _ACEOF
11417 cat >>$CONFIG_STATUS <<\_ACEOF
11418 :t
11419 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11420 s,@configure_input@,$configure_input,;t t
11421 s,@srcdir@,$ac_srcdir,;t t
11422 s,@top_srcdir@,$ac_top_srcdir,;t t
11423 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11424   rm -f $tmp/stdin
11425   if test x"$ac_file" != x-; then
11426     mv $tmp/out $ac_file
11427   else
11428     cat $tmp/out
11429     rm -f $tmp/out
11430   fi
11431
11432 done
11433 _ACEOF
11434 cat >>$CONFIG_STATUS <<\_ACEOF
11435
11436 #
11437 # CONFIG_HEADER section.
11438 #
11439
11440 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11441 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11442 #
11443 # ac_d sets the value in "#define NAME VALUE" lines.
11444 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
11445 ac_dB='[        ].*$,\1#\2'
11446 ac_dC=' '
11447 ac_dD=',;t'
11448 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11449 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11450 ac_uB='$,\1#\2define\3'
11451 ac_uC=' '
11452 ac_uD=',;t'
11453
11454 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11455   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11456   case $ac_file in
11457   - | *:- | *:-:* ) # input from stdin
11458         cat >$tmp/stdin
11459         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11460         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11461   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11462         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11463   * )   ac_file_in=$ac_file.in ;;
11464   esac
11465
11466   test x"$ac_file" != x- && { echo "$as_me:11466: creating $ac_file" >&5
11467 echo "$as_me: creating $ac_file" >&6;}
11468
11469   # First look for the input files in the build tree, otherwise in the
11470   # src tree.
11471   ac_file_inputs=`IFS=:
11472     for f in $ac_file_in; do
11473       case $f in
11474       -) echo $tmp/stdin ;;
11475       [\\/$]*)
11476          # Absolute (can't be DOS-style, as IFS=:)
11477          test -f "$f" || { { echo "$as_me:11477: error: cannot find input file: $f" >&5
11478 echo "$as_me: error: cannot find input file: $f" >&2;}
11479    { (exit 1); exit 1; }; }
11480          echo $f;;
11481       *) # Relative
11482          if test -f "$f"; then
11483            # Build tree
11484            echo $f
11485          elif test -f "$srcdir/$f"; then
11486            # Source tree
11487            echo $srcdir/$f
11488          else
11489            # /dev/null tree
11490            { { echo "$as_me:11490: error: cannot find input file: $f" >&5
11491 echo "$as_me: error: cannot find input file: $f" >&2;}
11492    { (exit 1); exit 1; }; }
11493          fi;;
11494       esac
11495     done` || { (exit 1); exit 1; }
11496   # Remove the trailing spaces.
11497   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
11498
11499 _ACEOF
11500
11501 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11502 # `conftest.undefs', that substitutes the proper values into
11503 # config.h.in to produce config.h.  The first handles `#define'
11504 # templates, and the second `#undef' templates.
11505 # And first: Protect against being on the right side of a sed subst in
11506 # config.status.  Protect against being in an unquoted here document
11507 # in config.status.
11508 rm -f conftest.defines conftest.undefs
11509 # Using a here document instead of a string reduces the quoting nightmare.
11510 # Putting comments in sed scripts is not portable.
11511 #
11512 # `end' is used to avoid that the second main sed command (meant for
11513 # 0-ary CPP macros) applies to n-ary macro definitions.
11514 # See the Autoconf documentation for `clear'.
11515 cat >confdef2sed.sed <<\_ACEOF
11516 s/[\\&,]/\\&/g
11517 s,[\\$`],\\&,g
11518 t clear
11519 : clear
11520 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
11521 t end
11522 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11523 : end
11524 _ACEOF
11525 # If some macros were called several times there might be several times
11526 # the same #defines, which is useless.  Nevertheless, we may not want to
11527 # sort them, since we want the *last* AC-DEFINE to be honored.
11528 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11529 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11530 rm -f confdef2sed.sed
11531
11532 # This sed command replaces #undef with comments.  This is necessary, for
11533 # example, in the case of _POSIX_SOURCE, which is predefined and required
11534 # on some systems where configure will not decide to define it.
11535 cat >>conftest.undefs <<\_ACEOF
11536 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11537 _ACEOF
11538
11539 # Break up conftest.defines because some shells have a limit on the size
11540 # of here documents, and old seds have small limits too (100 cmds).
11541 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11542 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11543 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11544 echo '  :' >>$CONFIG_STATUS
11545 rm -f conftest.tail
11546 while grep . conftest.defines >/dev/null
11547 do
11548   # Write a limited-size here document to $tmp/defines.sed.
11549   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11550   # Speed up: don't consider the non `#define' lines.
11551   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
11552   # Work around the forget-to-reset-the-flag bug.
11553   echo 't clr' >>$CONFIG_STATUS
11554   echo ': clr' >>$CONFIG_STATUS
11555   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11556   echo 'CEOF
11557   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11558   rm -f $tmp/in
11559   mv $tmp/out $tmp/in
11560 ' >>$CONFIG_STATUS
11561   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11562   rm -f conftest.defines
11563   mv conftest.tail conftest.defines
11564 done
11565 rm -f conftest.defines
11566 echo '  fi # egrep' >>$CONFIG_STATUS
11567 echo >>$CONFIG_STATUS
11568
11569 # Break up conftest.undefs because some shells have a limit on the size
11570 # of here documents, and old seds have small limits too (100 cmds).
11571 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11572 rm -f conftest.tail
11573 while grep . conftest.undefs >/dev/null
11574 do
11575   # Write a limited-size here document to $tmp/undefs.sed.
11576   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11577   # Speed up: don't consider the non `#undef'
11578   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11579   # Work around the forget-to-reset-the-flag bug.
11580   echo 't clr' >>$CONFIG_STATUS
11581   echo ': clr' >>$CONFIG_STATUS
11582   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11583   echo 'CEOF
11584   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11585   rm -f $tmp/in
11586   mv $tmp/out $tmp/in
11587 ' >>$CONFIG_STATUS
11588   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11589   rm -f conftest.undefs
11590   mv conftest.tail conftest.undefs
11591 done
11592 rm -f conftest.undefs
11593
11594 cat >>$CONFIG_STATUS <<\_ACEOF
11595   # Let's still pretend it is `configure' which instantiates (i.e., don't
11596   # use $as_me), people would be surprised to read:
11597   #    /* config.h.  Generated automatically by config.status.  */
11598   if test x"$ac_file" = x-; then
11599     echo "/* Generated automatically by configure.  */" >$tmp/config.h
11600   else
11601     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
11602   fi
11603   cat $tmp/in >>$tmp/config.h
11604   rm -f $tmp/in
11605   if test x"$ac_file" != x-; then
11606     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
11607       { echo "$as_me:11607: $ac_file is unchanged" >&5
11608 echo "$as_me: $ac_file is unchanged" >&6;}
11609     else
11610       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11611          X"$ac_file" : 'X\(//\)[^/]' \| \
11612          X"$ac_file" : 'X\(//\)$' \| \
11613          X"$ac_file" : 'X\(/\)' \| \
11614          .     : '\(.\)' 2>/dev/null ||
11615 echo X"$ac_file" |
11616     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11617           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11618           /^X\(\/\/\)$/{ s//\1/; q; }
11619           /^X\(\/\).*/{ s//\1/; q; }
11620           s/.*/./; q'`
11621       { case "$ac_dir" in
11622   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11623   *)                      as_incr_dir=.;;
11624 esac
11625 as_dummy="$ac_dir"
11626 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11627   case $as_mkdir_dir in
11628     # Skip DOS drivespec
11629     ?:) as_incr_dir=$as_mkdir_dir ;;
11630     *)
11631       as_incr_dir=$as_incr_dir/$as_mkdir_dir
11632       test -d "$as_incr_dir" ||
11633         mkdir "$as_incr_dir" ||
11634         { { echo "$as_me:11634: error: cannot create \"$ac_dir\"" >&5
11635 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
11636    { (exit 1); exit 1; }; }
11637     ;;
11638   esac
11639 done; }
11640
11641       rm -f $ac_file
11642       mv $tmp/config.h $ac_file
11643     fi
11644   else
11645     cat $tmp/config.h
11646     rm -f $tmp/config.h
11647   fi
11648 done
11649 _ACEOF
11650
11651 cat >>$CONFIG_STATUS <<\_ACEOF
11652
11653 { (exit 0); exit 0; }
11654 _ACEOF
11655 chmod +x $CONFIG_STATUS
11656 ac_clean_files=$ac_clean_files_save
11657
11658 # configure is writing to config.log, and then calls config.status.
11659 # config.status does its own redirection, appending to config.log.
11660 # Unfortunately, on DOS this fails, as config.log is still kept open
11661 # by configure, so config.status won't be able to write to it; its
11662 # output is simply discarded.  So we exec the FD to /dev/null,
11663 # effectively closing config.log, so it can be properly (re)opened and
11664 # appended to by config.status.  When coming back to configure, we
11665 # need to make the FD available again.
11666 if test "$no_create" != yes; then
11667   ac_cs_success=:
11668   exec 5>/dev/null
11669   $SHELL $CONFIG_STATUS || ac_cs_success=false
11670   exec 5>>config.log
11671   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11672   # would make configure fail if this is the last instruction.
11673   $ac_cs_success || { (exit 1); exit 1; }
11674 fi
11675
11676 #
11677 # CONFIG_SUBDIRS section.
11678 #
11679 if test "$no_recursion" != yes; then
11680
11681   # Remove --cache-file and --srcdir arguments so they do not pile up.
11682   ac_sub_configure_args=
11683   ac_prev=
11684   for ac_arg in $ac_configure_args; do
11685     if test -n "$ac_prev"; then
11686       ac_prev=
11687       continue
11688     fi
11689     case $ac_arg in
11690     -cache-file | --cache-file | --cache-fil | --cache-fi \
11691     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11692       ac_prev=cache_file ;;
11693     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11694     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
11695     | --c=*)
11696       ;;
11697     --config-cache | -C)
11698       ;;
11699     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11700       ac_prev=srcdir ;;
11701     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11702       ;;
11703     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
11704       ;;
11705     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
11706       ;;
11707     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
11708     esac
11709   done
11710
11711   # Always prepend --prefix to ensure using the same prefix
11712   # in subdir configurations.
11713   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
11714
11715   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
11716
11717     # Do not complain, so a configure script can configure whichever
11718     # parts of a large source tree are present.
11719     test -d $srcdir/$ac_dir || continue
11720
11721     { echo "$as_me:11721: configuring in $ac_dir" >&5
11722 echo "$as_me: configuring in $ac_dir" >&6;}
11723     { case "$ac_dir" in
11724   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11725   *)                      as_incr_dir=.;;
11726 esac
11727 as_dummy="$ac_dir"
11728 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11729   case $as_mkdir_dir in
11730     # Skip DOS drivespec
11731     ?:) as_incr_dir=$as_mkdir_dir ;;
11732     *)
11733       as_incr_dir=$as_incr_dir/$as_mkdir_dir
11734       test -d "$as_incr_dir" ||
11735         mkdir "$as_incr_dir" ||
11736         { { echo "$as_me:11736: error: cannot create \"$ac_dir\"" >&5
11737 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
11738    { (exit 1); exit 1; }; }
11739     ;;
11740   esac
11741 done; }
11742
11743     ac_popdir=`pwd`
11744     cd $ac_dir
11745     if test "$ac_dir" != .; then
11746   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'`
11747   # A "../" for each directory in $ac_dir_suffix.
11748   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
11749 else
11750   ac_dir_suffix= ac_top_builddir=
11751 fi
11752
11753 case $srcdir in
11754   .)  # No --srcdir option.  We are building in place.
11755     ac_srcdir=.
11756     if test -z "$ac_top_builddir"; then
11757        ac_top_srcdir=.
11758     else
11759        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11760     fi ;;
11761   [\\/]* | ?:[\\/]* )  # Absolute path.
11762     ac_srcdir=$srcdir$ac_dir_suffix;
11763     ac_top_srcdir=$srcdir ;;
11764   *) # Relative path.
11765     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11766     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11767 esac
11768
11769     # Check for guested configure; otherwise get Cygnus style configure.
11770     if test -f $ac_srcdir/configure.gnu; then
11771       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
11772     elif test -f $ac_srcdir/configure; then
11773       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
11774     elif test -f $ac_srcdir/configure.in; then
11775       ac_sub_configure=$ac_configure
11776     else
11777       { echo "$as_me:11777: WARNING: no configuration information is in $ac_dir" >&5
11778 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
11779       ac_sub_configure=
11780     fi
11781
11782     # The recursion is here.
11783     if test -n "$ac_sub_configure"; then
11784       # Make the cache file name correct relative to the subdirectory.
11785       case $cache_file in
11786       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11787       *) # Relative path.
11788         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
11789       esac
11790
11791       { echo "$as_me:11791: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
11792 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
11793       # The eval makes quoting arguments work.
11794       eval $ac_sub_configure $ac_sub_configure_args \
11795            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
11796         { { echo "$as_me:11796: error: $ac_sub_configure failed for $ac_dir" >&5
11797 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
11798    { (exit 1); exit 1; }; }
11799     fi
11800
11801     cd $ac_popdir
11802   done
11803 fi
11804
11805 ac_config_commands="$ac_config_commands default-1"
11806
11807 ac_config_commands="$ac_config_commands default-2"
11808
11809 ac_config_commands="$ac_config_commands default-3"
11810
11811 ac_config_commands="$ac_config_commands default-4"
11812
11813 ac_config_commands="$ac_config_commands default-5"