Check for struct sockaddr_storage
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.211 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57.
5 #
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
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 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24
25 # Support unset when possible.
26 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conf$$.sh
90   echo  "exit 0"   >>conf$$.sh
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147              CONFIG_SHELL=$as_dir/$as_base
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158   # uniformly replaced by the line number.  The first 'sed' inserts a
159   # line-number line before each line; the second 'sed' does the real
160   # work.  The second script uses 'N' to pair each line-number line
161   # with the numbered line, and appends trailing '-' during
162   # substitution so that $LINENO is not a special case at line end.
163   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165   sed '=' <$as_myself |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
175   chmod +x $as_me.lineno ||
176     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177    { (exit 1); exit 1; }; }
178
179   # Don't try to exec as it changes $[0], causing all sort of problems
180   # (the dirname of $[0] is not the place where we might find the
181   # original and so on.  Autoconf is especially sensible to this).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204   # We could just check for DJGPP; but this test a) works b) is more generic
205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206   if test -f conf$$.exe; then
207     # Don't use ln at all; we don't have any links
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289        echo_test_string="`eval $cmd`" &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="src/main/radiusd.c"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 ac_subdirs_all="$ac_subdirs_all $mysubdirs"
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB abs_top_builddir GMAKE MAKE LIBLTDLPATH LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 logdir radacctdir raddbdir PERL SNMPGET SNMPWALK RUSERS ACLOCAL AUTOCONF AUTOHEADER LOCATE DIRNAME GREP REGEX REGEX_EXTENDED OPENSSL_INCLUDE OPENSSL_LIBS LIBPREFIX CRYPTLIB SNMP_LIBS SNMP_INCLUDE HOSTINFO LIBLTDL INCLTDL subdirs MODULES INSTALLSTRIP USE_SHARED_LIBS USE_STATIC_LIBS STATIC_MODULES RADIUSD_MAJOR_VERSION RADIUSD_MINOR_VERSION RADIUSD_VERSION LIBOBJS LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
909 ac_env_CC_value=$CC
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953   # Omit some internal or obsolete options to make the list less imposing.
954   # This message is too long to be a string in the A/UX 3.1 sh.
955   cat <<_ACEOF
956 \`configure' configures this package to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966   -h, --help              display this help and exit
967       --help=short        display options specific to this package
968       --help=recursive    display the short help of all the included packages
969   -V, --version           display version information and exit
970   -q, --quiet, --silent   do not print \`checking...' messages
971       --cache-file=FILE   cache test results in FILE [disabled]
972   -C, --config-cache      alias for \`--cache-file=config.cache'
973   -n, --no-create         do not create output files
974       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993   --bindir=DIR           user executables [EPREFIX/bin]
994   --sbindir=DIR          system admin executables [EPREFIX/sbin]
995   --libexecdir=DIR       program executables [EPREFIX/libexec]
996   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000   --libdir=DIR           object code libraries [EPREFIX/lib]
1001   --includedir=DIR       C header files [PREFIX/include]
1002   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003   --infodir=DIR          info documentation [PREFIX/info]
1004   --mandir=DIR           man documentation [PREFIX/man]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 System types:
1010   --build=BUILD     configure for building on BUILD [guessed]
1011   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1012 _ACEOF
1013 fi
1014
1015 if test -n "$ac_init_help"; then
1016
1017   cat <<\_ACEOF
1018
1019 Optional Features:
1020   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1021   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1022   --disable-largefile     omit support for large files
1023   --enable-shared[=PKGS]
1024                           build shared libraries [default=yes]
1025   --enable-static[=PKGS]
1026                           build static libraries [default=yes]
1027   --enable-fast-install[=PKGS]
1028                           optimize for fast installation [default=yes]
1029   --disable-libtool-lock  avoid locking (might break parallel builds)
1030   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1031   --enable-developer               Enables features of interest to developers.
1032
1033 Optional Packages:
1034   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1035   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1036   --with-system-libtool              try to use libtool installed in your system default=use our own
1037   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1038   --with-pic              try to use only PIC/non-PIC objects [default=use
1039                           both]
1040   --with-tags[=TAGS]
1041                           include additional configurations [automatic]
1042   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1043   --with-radacctdir=PATH  Directory for detail files LOGDIR/radacct
1044   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1045   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1046   --with-threads          Use threads, if available.  (default=yes)
1047   --with-snmp             Compile in SNMP support. (default=yes)
1048   --with-large-files      Compile in large (2G+) file support. (default=no)
1049   --with-static-modules=QUOTED-MODULE-LIST
1050   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1051   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1052   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1053   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1054   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1055   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1056
1057 Some influential environment variables:
1058   CC          C compiler command
1059   CFLAGS      C compiler flags
1060   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1061               nonstandard directory <lib dir>
1062   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1063               headers in a nonstandard directory <include dir>
1064   CPP         C preprocessor
1065   CXX         C++ compiler command
1066   CXXFLAGS    C++ compiler flags
1067   CXXCPP      C++ preprocessor
1068   F77         Fortran 77 compiler command
1069   FFLAGS      Fortran 77 compiler flags
1070
1071 Use these variables to override the choices made by `configure' or to help
1072 it to find libraries and programs with nonstandard names/locations.
1073
1074 _ACEOF
1075 fi
1076
1077 if test "$ac_init_help" = "recursive"; then
1078   # If there are subdirs, report their specific --help.
1079   ac_popdir=`pwd`
1080   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081     test -d $ac_dir || continue
1082     ac_builddir=.
1083
1084 if test "$ac_dir" != .; then
1085   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086   # A "../" for each directory in $ac_dir_suffix.
1087   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 else
1089   ac_dir_suffix= ac_top_builddir=
1090 fi
1091
1092 case $srcdir in
1093   .)  # No --srcdir option.  We are building in place.
1094     ac_srcdir=.
1095     if test -z "$ac_top_builddir"; then
1096        ac_top_srcdir=.
1097     else
1098        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099     fi ;;
1100   [\\/]* | ?:[\\/]* )  # Absolute path.
1101     ac_srcdir=$srcdir$ac_dir_suffix;
1102     ac_top_srcdir=$srcdir ;;
1103   *) # Relative path.
1104     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106 esac
1107 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108 # absolute.
1109 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1110 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1111 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113
1114     cd $ac_dir
1115     # Check for guested configure; otherwise get Cygnus style configure.
1116     if test -f $ac_srcdir/configure.gnu; then
1117       echo
1118       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1119     elif test -f $ac_srcdir/configure; then
1120       echo
1121       $SHELL $ac_srcdir/configure  --help=recursive
1122     elif test -f $ac_srcdir/configure.ac ||
1123            test -f $ac_srcdir/configure.in; then
1124       echo
1125       $ac_configure --help
1126     else
1127       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128     fi
1129     cd $ac_popdir
1130   done
1131 fi
1132
1133 test -n "$ac_init_help" && exit 0
1134 if $ac_init_version; then
1135   cat <<\_ACEOF
1136
1137 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1141 _ACEOF
1142   exit 0
1143 fi
1144 exec 5>config.log
1145 cat >&5 <<_ACEOF
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1148
1149 It was created by $as_me, which was
1150 generated by GNU Autoconf 2.57.  Invocation command line was
1151
1152   $ $0 $@
1153
1154 _ACEOF
1155 {
1156 cat <<_ASUNAME
1157 ## --------- ##
1158 ## Platform. ##
1159 ## --------- ##
1160
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169
1170 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177
1178 _ASUNAME
1179
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181 for as_dir in $PATH
1182 do
1183   IFS=$as_save_IFS
1184   test -z "$as_dir" && as_dir=.
1185   echo "PATH: $as_dir"
1186 done
1187
1188 } >&5
1189
1190 cat >&5 <<_ACEOF
1191
1192
1193 ## ----------- ##
1194 ## Core tests. ##
1195 ## ----------- ##
1196
1197 _ACEOF
1198
1199
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1205 ac_configure_args=
1206 ac_configure_args0=
1207 ac_configure_args1=
1208 ac_sep=
1209 ac_must_keep_next=false
1210 for ac_pass in 1 2
1211 do
1212   for ac_arg
1213   do
1214     case $ac_arg in
1215     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217     | -silent | --silent | --silen | --sile | --sil)
1218       continue ;;
1219     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221     esac
1222     case $ac_pass in
1223     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224     2)
1225       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226       if test $ac_must_keep_next = true; then
1227         ac_must_keep_next=false # Got value, back to normal.
1228       else
1229         case $ac_arg in
1230           *=* | --config-cache | -C | -disable-* | --disable-* \
1231           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233           | -with-* | --with-* | -without-* | --without-* | --x)
1234             case "$ac_configure_args0 " in
1235               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236             esac
1237             ;;
1238           -* ) ac_must_keep_next=true ;;
1239         esac
1240       fi
1241       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242       # Get rid of the leading space.
1243       ac_sep=" "
1244       ;;
1245     esac
1246   done
1247 done
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log.  We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257   # Save into config.log some information that might help in debugging.
1258   {
1259     echo
1260
1261     cat <<\_ASBOX
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1265 _ASBOX
1266     echo
1267     # The following way of writing the cache mishandles newlines in values,
1268 {
1269   (set) 2>&1 |
1270     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271     *ac_space=\ *)
1272       sed -n \
1273         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275       ;;
1276     *)
1277       sed -n \
1278         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279       ;;
1280     esac;
1281 }
1282     echo
1283
1284     cat <<\_ASBOX
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1288 _ASBOX
1289     echo
1290     for ac_var in $ac_subst_vars
1291     do
1292       eval ac_val=$`echo $ac_var`
1293       echo "$ac_var='"'"'$ac_val'"'"'"
1294     done | sort
1295     echo
1296
1297     if test -n "$ac_subst_files"; then
1298       cat <<\_ASBOX
1299 ## ------------- ##
1300 ## Output files. ##
1301 ## ------------- ##
1302 _ASBOX
1303       echo
1304       for ac_var in $ac_subst_files
1305       do
1306         eval ac_val=$`echo $ac_var`
1307         echo "$ac_var='"'"'$ac_val'"'"'"
1308       done | sort
1309       echo
1310     fi
1311
1312     if test -s confdefs.h; then
1313       cat <<\_ASBOX
1314 ## ----------- ##
1315 ## confdefs.h. ##
1316 ## ----------- ##
1317 _ASBOX
1318       echo
1319       sed "/^$/d" confdefs.h | sort
1320       echo
1321     fi
1322     test "$ac_signal" != 0 &&
1323       echo "$as_me: caught signal $ac_signal"
1324     echo "$as_me: exit $exit_status"
1325   } >&5
1326   rm -f core core.* *.core &&
1327   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328     exit $exit_status
1329      ' 0
1330 for ac_signal in 1 2 13 15; do
1331   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332 done
1333 ac_signal=0
1334
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 echo >confdefs.h
1339
1340 # Predefined preprocessor variables.
1341
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1344 _ACEOF
1345
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364 _ACEOF
1365
1366
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370   if test "x$prefix" != xNONE; then
1371     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372   else
1373     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374   fi
1375 fi
1376 for ac_site_file in $CONFIG_SITE; do
1377   if test -r "$ac_site_file"; then
1378     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380     sed 's/^/| /' "$ac_site_file" >&5
1381     . "$ac_site_file"
1382   fi
1383 done
1384
1385 if test -r "$cache_file"; then
1386   # Some versions of bash will fail to source /dev/null (special
1387   # files actually), so we avoid doing that.
1388   if test -f "$cache_file"; then
1389     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1391     case $cache_file in
1392       [\\/]* | ?:[\\/]* ) . $cache_file;;
1393       *)                      . ./$cache_file;;
1394     esac
1395   fi
1396 else
1397   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1399   >$cache_file
1400 fi
1401
1402 # Check that the precious variables saved in the cache have kept the same
1403 # value.
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408   eval ac_new_set=\$ac_env_${ac_var}_set
1409   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410   eval ac_new_val="\$ac_env_${ac_var}_value"
1411   case $ac_old_set,$ac_new_set in
1412     set,)
1413       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415       ac_cache_corrupted=: ;;
1416     ,set)
1417       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419       ac_cache_corrupted=: ;;
1420     ,);;
1421     *)
1422       if test "x$ac_old_val" != "x$ac_new_val"; then
1423         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1426 echo "$as_me:   former value:  $ac_old_val" >&2;}
1427         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1428 echo "$as_me:   current value: $ac_new_val" >&2;}
1429         ac_cache_corrupted=:
1430       fi;;
1431   esac
1432   # Pass precious variables to config.status.
1433   if test "$ac_new_set" = set; then
1434     case $ac_new_val in
1435     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437     *) ac_arg=$ac_var=$ac_new_val ;;
1438     esac
1439     case " $ac_configure_args " in
1440       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1441       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442     esac
1443   fi
1444 done
1445 if $ac_cache_corrupted; then
1446   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450    { (exit 1); exit 1; }; }
1451 fi
1452
1453 ac_ext=c
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477           ac_config_headers="$ac_config_headers src/include/autoconf.h"
1478
1479
1480 RADIUSD_MAJOR_VERSION=1
1481 RADIUSD_MINOR_VERSION=1.0-pre0
1482 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1483
1484
1485 ac_ext=c
1486 ac_cpp='$CPP $CPPFLAGS'
1487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1490 if test -n "$ac_tool_prefix"; then
1491   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1492 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1493 echo "$as_me:$LINENO: checking for $ac_word" >&5
1494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1495 if test "${ac_cv_prog_CC+set}" = set; then
1496   echo $ECHO_N "(cached) $ECHO_C" >&6
1497 else
1498   if test -n "$CC"; then
1499   ac_cv_prog_CC="$CC" # Let the user override the test.
1500 else
1501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502 for as_dir in $PATH
1503 do
1504   IFS=$as_save_IFS
1505   test -z "$as_dir" && as_dir=.
1506   for ac_exec_ext in '' $ac_executable_extensions; do
1507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1508     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510     break 2
1511   fi
1512 done
1513 done
1514
1515 fi
1516 fi
1517 CC=$ac_cv_prog_CC
1518 if test -n "$CC"; then
1519   echo "$as_me:$LINENO: result: $CC" >&5
1520 echo "${ECHO_T}$CC" >&6
1521 else
1522   echo "$as_me:$LINENO: result: no" >&5
1523 echo "${ECHO_T}no" >&6
1524 fi
1525
1526 fi
1527 if test -z "$ac_cv_prog_CC"; then
1528   ac_ct_CC=$CC
1529   # Extract the first word of "gcc", so it can be a program name with args.
1530 set dummy gcc; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1534   echo $ECHO_N "(cached) $ECHO_C" >&6
1535 else
1536   if test -n "$ac_ct_CC"; then
1537   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1538 else
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 for as_dir in $PATH
1541 do
1542   IFS=$as_save_IFS
1543   test -z "$as_dir" && as_dir=.
1544   for ac_exec_ext in '' $ac_executable_extensions; do
1545   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546     ac_cv_prog_ac_ct_CC="gcc"
1547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548     break 2
1549   fi
1550 done
1551 done
1552
1553 fi
1554 fi
1555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1556 if test -n "$ac_ct_CC"; then
1557   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1558 echo "${ECHO_T}$ac_ct_CC" >&6
1559 else
1560   echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1562 fi
1563
1564   CC=$ac_ct_CC
1565 else
1566   CC="$ac_cv_prog_CC"
1567 fi
1568
1569 if test -z "$CC"; then
1570   if test -n "$ac_tool_prefix"; then
1571   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1572 set dummy ${ac_tool_prefix}cc; ac_word=$2
1573 echo "$as_me:$LINENO: checking for $ac_word" >&5
1574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575 if test "${ac_cv_prog_CC+set}" = set; then
1576   echo $ECHO_N "(cached) $ECHO_C" >&6
1577 else
1578   if test -n "$CC"; then
1579   ac_cv_prog_CC="$CC" # Let the user override the test.
1580 else
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 for as_dir in $PATH
1583 do
1584   IFS=$as_save_IFS
1585   test -z "$as_dir" && as_dir=.
1586   for ac_exec_ext in '' $ac_executable_extensions; do
1587   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1588     ac_cv_prog_CC="${ac_tool_prefix}cc"
1589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1590     break 2
1591   fi
1592 done
1593 done
1594
1595 fi
1596 fi
1597 CC=$ac_cv_prog_CC
1598 if test -n "$CC"; then
1599   echo "$as_me:$LINENO: result: $CC" >&5
1600 echo "${ECHO_T}$CC" >&6
1601 else
1602   echo "$as_me:$LINENO: result: no" >&5
1603 echo "${ECHO_T}no" >&6
1604 fi
1605
1606 fi
1607 if test -z "$ac_cv_prog_CC"; then
1608   ac_ct_CC=$CC
1609   # Extract the first word of "cc", so it can be a program name with args.
1610 set dummy cc; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1614   echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616   if test -n "$ac_ct_CC"; then
1617   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1618 else
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 for as_dir in $PATH
1621 do
1622   IFS=$as_save_IFS
1623   test -z "$as_dir" && as_dir=.
1624   for ac_exec_ext in '' $ac_executable_extensions; do
1625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626     ac_cv_prog_ac_ct_CC="cc"
1627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628     break 2
1629   fi
1630 done
1631 done
1632
1633 fi
1634 fi
1635 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1636 if test -n "$ac_ct_CC"; then
1637   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1638 echo "${ECHO_T}$ac_ct_CC" >&6
1639 else
1640   echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1642 fi
1643
1644   CC=$ac_ct_CC
1645 else
1646   CC="$ac_cv_prog_CC"
1647 fi
1648
1649 fi
1650 if test -z "$CC"; then
1651   # Extract the first word of "cc", so it can be a program name with args.
1652 set dummy cc; ac_word=$2
1653 echo "$as_me:$LINENO: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655 if test "${ac_cv_prog_CC+set}" = set; then
1656   echo $ECHO_N "(cached) $ECHO_C" >&6
1657 else
1658   if test -n "$CC"; then
1659   ac_cv_prog_CC="$CC" # Let the user override the test.
1660 else
1661   ac_prog_rejected=no
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1664 do
1665   IFS=$as_save_IFS
1666   test -z "$as_dir" && as_dir=.
1667   for ac_exec_ext in '' $ac_executable_extensions; do
1668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1670        ac_prog_rejected=yes
1671        continue
1672      fi
1673     ac_cv_prog_CC="cc"
1674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675     break 2
1676   fi
1677 done
1678 done
1679
1680 if test $ac_prog_rejected = yes; then
1681   # We found a bogon in the path, so make sure we never use it.
1682   set dummy $ac_cv_prog_CC
1683   shift
1684   if test $# != 0; then
1685     # We chose a different compiler from the bogus one.
1686     # However, it has the same basename, so the bogon will be chosen
1687     # first if we set CC to just the basename; use the full file name.
1688     shift
1689     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1690   fi
1691 fi
1692 fi
1693 fi
1694 CC=$ac_cv_prog_CC
1695 if test -n "$CC"; then
1696   echo "$as_me:$LINENO: result: $CC" >&5
1697 echo "${ECHO_T}$CC" >&6
1698 else
1699   echo "$as_me:$LINENO: result: no" >&5
1700 echo "${ECHO_T}no" >&6
1701 fi
1702
1703 fi
1704 if test -z "$CC"; then
1705   if test -n "$ac_tool_prefix"; then
1706   for ac_prog in cl
1707   do
1708     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1709 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1710 echo "$as_me:$LINENO: checking for $ac_word" >&5
1711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712 if test "${ac_cv_prog_CC+set}" = set; then
1713   echo $ECHO_N "(cached) $ECHO_C" >&6
1714 else
1715   if test -n "$CC"; then
1716   ac_cv_prog_CC="$CC" # Let the user override the test.
1717 else
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 for as_dir in $PATH
1720 do
1721   IFS=$as_save_IFS
1722   test -z "$as_dir" && as_dir=.
1723   for ac_exec_ext in '' $ac_executable_extensions; do
1724   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727     break 2
1728   fi
1729 done
1730 done
1731
1732 fi
1733 fi
1734 CC=$ac_cv_prog_CC
1735 if test -n "$CC"; then
1736   echo "$as_me:$LINENO: result: $CC" >&5
1737 echo "${ECHO_T}$CC" >&6
1738 else
1739   echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1741 fi
1742
1743     test -n "$CC" && break
1744   done
1745 fi
1746 if test -z "$CC"; then
1747   ac_ct_CC=$CC
1748   for ac_prog in cl
1749 do
1750   # Extract the first word of "$ac_prog", so it can be a program name with args.
1751 set dummy $ac_prog; ac_word=$2
1752 echo "$as_me:$LINENO: checking for $ac_word" >&5
1753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1755   echo $ECHO_N "(cached) $ECHO_C" >&6
1756 else
1757   if test -n "$ac_ct_CC"; then
1758   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1759 else
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 for as_dir in $PATH
1762 do
1763   IFS=$as_save_IFS
1764   test -z "$as_dir" && as_dir=.
1765   for ac_exec_ext in '' $ac_executable_extensions; do
1766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767     ac_cv_prog_ac_ct_CC="$ac_prog"
1768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769     break 2
1770   fi
1771 done
1772 done
1773
1774 fi
1775 fi
1776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1777 if test -n "$ac_ct_CC"; then
1778   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1779 echo "${ECHO_T}$ac_ct_CC" >&6
1780 else
1781   echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1783 fi
1784
1785   test -n "$ac_ct_CC" && break
1786 done
1787
1788   CC=$ac_ct_CC
1789 fi
1790
1791 fi
1792
1793
1794 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1795 See \`config.log' for more details." >&5
1796 echo "$as_me: error: no acceptable C compiler found in \$PATH
1797 See \`config.log' for more details." >&2;}
1798    { (exit 1); exit 1; }; }
1799
1800 # Provide some information about the compiler.
1801 echo "$as_me:$LINENO:" \
1802      "checking for C compiler version" >&5
1803 ac_compiler=`set X $ac_compile; echo $2`
1804 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1805   (eval $ac_compiler --version </dev/null >&5) 2>&5
1806   ac_status=$?
1807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1808   (exit $ac_status); }
1809 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1810   (eval $ac_compiler -v </dev/null >&5) 2>&5
1811   ac_status=$?
1812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1813   (exit $ac_status); }
1814 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1815   (eval $ac_compiler -V </dev/null >&5) 2>&5
1816   ac_status=$?
1817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1818   (exit $ac_status); }
1819
1820 cat >conftest.$ac_ext <<_ACEOF
1821 #line $LINENO "configure"
1822 /* confdefs.h.  */
1823 _ACEOF
1824 cat confdefs.h >>conftest.$ac_ext
1825 cat >>conftest.$ac_ext <<_ACEOF
1826 /* end confdefs.h.  */
1827
1828 int
1829 main ()
1830 {
1831
1832   ;
1833   return 0;
1834 }
1835 _ACEOF
1836 ac_clean_files_save=$ac_clean_files
1837 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1838 # Try to create an executable without -o first, disregard a.out.
1839 # It will help us diagnose broken compilers, and finding out an intuition
1840 # of exeext.
1841 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1842 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1843 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1844 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1845   (eval $ac_link_default) 2>&5
1846   ac_status=$?
1847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848   (exit $ac_status); }; then
1849   # Find the output, starting from the most likely.  This scheme is
1850 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1851 # resort.
1852
1853 # Be careful to initialize this variable, since it used to be cached.
1854 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1855 ac_cv_exeext=
1856 # b.out is created by i960 compilers.
1857 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1858 do
1859   test -f "$ac_file" || continue
1860   case $ac_file in
1861     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1862         ;;
1863     conftest.$ac_ext )
1864         # This is the source file.
1865         ;;
1866     [ab].out )
1867         # We found the default executable, but exeext='' is most
1868         # certainly right.
1869         break;;
1870     *.* )
1871         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1872         # FIXME: I believe we export ac_cv_exeext for Libtool,
1873         # but it would be cool to find out if it's true.  Does anybody
1874         # maintain Libtool? --akim.
1875         export ac_cv_exeext
1876         break;;
1877     * )
1878         break;;
1879   esac
1880 done
1881 else
1882   echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1884
1885 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1886 See \`config.log' for more details." >&5
1887 echo "$as_me: error: C compiler cannot create executables
1888 See \`config.log' for more details." >&2;}
1889    { (exit 77); exit 77; }; }
1890 fi
1891
1892 ac_exeext=$ac_cv_exeext
1893 echo "$as_me:$LINENO: result: $ac_file" >&5
1894 echo "${ECHO_T}$ac_file" >&6
1895
1896 # Check the compiler produces executables we can run.  If not, either
1897 # the compiler is broken, or we cross compile.
1898 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1899 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1900 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1901 # If not cross compiling, check that we can run a simple program.
1902 if test "$cross_compiling" != yes; then
1903   if { ac_try='./$ac_file'
1904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1905   (eval $ac_try) 2>&5
1906   ac_status=$?
1907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908   (exit $ac_status); }; }; then
1909     cross_compiling=no
1910   else
1911     if test "$cross_compiling" = maybe; then
1912         cross_compiling=yes
1913     else
1914         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1915 If you meant to cross compile, use \`--host'.
1916 See \`config.log' for more details." >&5
1917 echo "$as_me: error: cannot run C compiled programs.
1918 If you meant to cross compile, use \`--host'.
1919 See \`config.log' for more details." >&2;}
1920    { (exit 1); exit 1; }; }
1921     fi
1922   fi
1923 fi
1924 echo "$as_me:$LINENO: result: yes" >&5
1925 echo "${ECHO_T}yes" >&6
1926
1927 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1928 ac_clean_files=$ac_clean_files_save
1929 # Check the compiler produces executables we can run.  If not, either
1930 # the compiler is broken, or we cross compile.
1931 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1932 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1933 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1934 echo "${ECHO_T}$cross_compiling" >&6
1935
1936 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1937 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1939   (eval $ac_link) 2>&5
1940   ac_status=$?
1941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942   (exit $ac_status); }; then
1943   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1944 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1945 # work properly (i.e., refer to `conftest.exe'), while it won't with
1946 # `rm'.
1947 for ac_file in conftest.exe conftest conftest.*; do
1948   test -f "$ac_file" || continue
1949   case $ac_file in
1950     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1951     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1952           export ac_cv_exeext
1953           break;;
1954     * ) break;;
1955   esac
1956 done
1957 else
1958   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1959 See \`config.log' for more details." >&5
1960 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1961 See \`config.log' for more details." >&2;}
1962    { (exit 1); exit 1; }; }
1963 fi
1964
1965 rm -f conftest$ac_cv_exeext
1966 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1967 echo "${ECHO_T}$ac_cv_exeext" >&6
1968
1969 rm -f conftest.$ac_ext
1970 EXEEXT=$ac_cv_exeext
1971 ac_exeext=$EXEEXT
1972 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1973 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1974 if test "${ac_cv_objext+set}" = set; then
1975   echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977   cat >conftest.$ac_ext <<_ACEOF
1978 #line $LINENO "configure"
1979 /* confdefs.h.  */
1980 _ACEOF
1981 cat confdefs.h >>conftest.$ac_ext
1982 cat >>conftest.$ac_ext <<_ACEOF
1983 /* end confdefs.h.  */
1984
1985 int
1986 main ()
1987 {
1988
1989   ;
1990   return 0;
1991 }
1992 _ACEOF
1993 rm -f conftest.o conftest.obj
1994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1995   (eval $ac_compile) 2>&5
1996   ac_status=$?
1997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998   (exit $ac_status); }; then
1999   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2000   case $ac_file in
2001     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2002     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2003        break;;
2004   esac
2005 done
2006 else
2007   echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2009
2010 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2011 See \`config.log' for more details." >&5
2012 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2013 See \`config.log' for more details." >&2;}
2014    { (exit 1); exit 1; }; }
2015 fi
2016
2017 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2018 fi
2019 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2020 echo "${ECHO_T}$ac_cv_objext" >&6
2021 OBJEXT=$ac_cv_objext
2022 ac_objext=$OBJEXT
2023 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2024 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2025 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2026   echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028   cat >conftest.$ac_ext <<_ACEOF
2029 #line $LINENO "configure"
2030 /* confdefs.h.  */
2031 _ACEOF
2032 cat confdefs.h >>conftest.$ac_ext
2033 cat >>conftest.$ac_ext <<_ACEOF
2034 /* end confdefs.h.  */
2035
2036 int
2037 main ()
2038 {
2039 #ifndef __GNUC__
2040        choke me
2041 #endif
2042
2043   ;
2044   return 0;
2045 }
2046 _ACEOF
2047 rm -f conftest.$ac_objext
2048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049   (eval $ac_compile) 2>&5
2050   ac_status=$?
2051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052   (exit $ac_status); } &&
2053          { ac_try='test -s conftest.$ac_objext'
2054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055   (eval $ac_try) 2>&5
2056   ac_status=$?
2057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058   (exit $ac_status); }; }; then
2059   ac_compiler_gnu=yes
2060 else
2061   echo "$as_me: failed program was:" >&5
2062 sed 's/^/| /' conftest.$ac_ext >&5
2063
2064 ac_compiler_gnu=no
2065 fi
2066 rm -f conftest.$ac_objext conftest.$ac_ext
2067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2068
2069 fi
2070 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2071 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2072 GCC=`test $ac_compiler_gnu = yes && echo yes`
2073 ac_test_CFLAGS=${CFLAGS+set}
2074 ac_save_CFLAGS=$CFLAGS
2075 CFLAGS="-g"
2076 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2077 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2078 if test "${ac_cv_prog_cc_g+set}" = set; then
2079   echo $ECHO_N "(cached) $ECHO_C" >&6
2080 else
2081   cat >conftest.$ac_ext <<_ACEOF
2082 #line $LINENO "configure"
2083 /* confdefs.h.  */
2084 _ACEOF
2085 cat confdefs.h >>conftest.$ac_ext
2086 cat >>conftest.$ac_ext <<_ACEOF
2087 /* end confdefs.h.  */
2088
2089 int
2090 main ()
2091 {
2092
2093   ;
2094   return 0;
2095 }
2096 _ACEOF
2097 rm -f conftest.$ac_objext
2098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2099   (eval $ac_compile) 2>&5
2100   ac_status=$?
2101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102   (exit $ac_status); } &&
2103          { ac_try='test -s conftest.$ac_objext'
2104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105   (eval $ac_try) 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); }; }; then
2109   ac_cv_prog_cc_g=yes
2110 else
2111   echo "$as_me: failed program was:" >&5
2112 sed 's/^/| /' conftest.$ac_ext >&5
2113
2114 ac_cv_prog_cc_g=no
2115 fi
2116 rm -f conftest.$ac_objext conftest.$ac_ext
2117 fi
2118 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2119 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2120 if test "$ac_test_CFLAGS" = set; then
2121   CFLAGS=$ac_save_CFLAGS
2122 elif test $ac_cv_prog_cc_g = yes; then
2123   if test "$GCC" = yes; then
2124     CFLAGS="-g -O2"
2125   else
2126     CFLAGS="-g"
2127   fi
2128 else
2129   if test "$GCC" = yes; then
2130     CFLAGS="-O2"
2131   else
2132     CFLAGS=
2133   fi
2134 fi
2135 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2136 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2137 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2138   echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140   ac_cv_prog_cc_stdc=no
2141 ac_save_CC=$CC
2142 cat >conftest.$ac_ext <<_ACEOF
2143 #line $LINENO "configure"
2144 /* confdefs.h.  */
2145 _ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h.  */
2149 #include <stdarg.h>
2150 #include <stdio.h>
2151 #include <sys/types.h>
2152 #include <sys/stat.h>
2153 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2154 struct buf { int x; };
2155 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2156 static char *e (p, i)
2157      char **p;
2158      int i;
2159 {
2160   return p[i];
2161 }
2162 static char *f (char * (*g) (char **, int), char **p, ...)
2163 {
2164   char *s;
2165   va_list v;
2166   va_start (v,p);
2167   s = g (p, va_arg (v,int));
2168   va_end (v);
2169   return s;
2170 }
2171 int test (int i, double x);
2172 struct s1 {int (*f) (int a);};
2173 struct s2 {int (*f) (double a);};
2174 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2175 int argc;
2176 char **argv;
2177 int
2178 main ()
2179 {
2180 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2181   ;
2182   return 0;
2183 }
2184 _ACEOF
2185 # Don't try gcc -ansi; that turns off useful extensions and
2186 # breaks some systems' header files.
2187 # AIX                   -qlanglvl=ansi
2188 # Ultrix and OSF/1      -std1
2189 # HP-UX 10.20 and later -Ae
2190 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2191 # SVR4                  -Xc -D__EXTENSIONS__
2192 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2193 do
2194   CC="$ac_save_CC $ac_arg"
2195   rm -f conftest.$ac_objext
2196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197   (eval $ac_compile) 2>&5
2198   ac_status=$?
2199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200   (exit $ac_status); } &&
2201          { ac_try='test -s conftest.$ac_objext'
2202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203   (eval $ac_try) 2>&5
2204   ac_status=$?
2205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206   (exit $ac_status); }; }; then
2207   ac_cv_prog_cc_stdc=$ac_arg
2208 break
2209 else
2210   echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2212
2213 fi
2214 rm -f conftest.$ac_objext
2215 done
2216 rm -f conftest.$ac_ext conftest.$ac_objext
2217 CC=$ac_save_CC
2218
2219 fi
2220
2221 case "x$ac_cv_prog_cc_stdc" in
2222   x|xno)
2223     echo "$as_me:$LINENO: result: none needed" >&5
2224 echo "${ECHO_T}none needed" >&6 ;;
2225   *)
2226     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2227 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2228     CC="$CC $ac_cv_prog_cc_stdc" ;;
2229 esac
2230
2231 # Some people use a C++ compiler to compile C.  Since we use `exit',
2232 # in C++ we need to declare it.  In case someone uses the same compiler
2233 # for both compiling C and C++ we need to have the C++ compiler decide
2234 # the declaration of exit, since it's the most demanding environment.
2235 cat >conftest.$ac_ext <<_ACEOF
2236 #ifndef __cplusplus
2237   choke me
2238 #endif
2239 _ACEOF
2240 rm -f conftest.$ac_objext
2241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242   (eval $ac_compile) 2>&5
2243   ac_status=$?
2244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245   (exit $ac_status); } &&
2246          { ac_try='test -s conftest.$ac_objext'
2247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248   (eval $ac_try) 2>&5
2249   ac_status=$?
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); }; }; then
2252   for ac_declaration in \
2253    ''\
2254    '#include <stdlib.h>' \
2255    'extern "C" void std::exit (int) throw (); using std::exit;' \
2256    'extern "C" void std::exit (int); using std::exit;' \
2257    'extern "C" void exit (int) throw ();' \
2258    'extern "C" void exit (int);' \
2259    'void exit (int);'
2260 do
2261   cat >conftest.$ac_ext <<_ACEOF
2262 #line $LINENO "configure"
2263 /* confdefs.h.  */
2264 _ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h.  */
2268 #include <stdlib.h>
2269 $ac_declaration
2270 int
2271 main ()
2272 {
2273 exit (42);
2274   ;
2275   return 0;
2276 }
2277 _ACEOF
2278 rm -f conftest.$ac_objext
2279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2280   (eval $ac_compile) 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); } &&
2284          { ac_try='test -s conftest.$ac_objext'
2285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286   (eval $ac_try) 2>&5
2287   ac_status=$?
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); }; }; then
2290   :
2291 else
2292   echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2294
2295 continue
2296 fi
2297 rm -f conftest.$ac_objext conftest.$ac_ext
2298   cat >conftest.$ac_ext <<_ACEOF
2299 #line $LINENO "configure"
2300 /* confdefs.h.  */
2301 _ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h.  */
2305 $ac_declaration
2306 int
2307 main ()
2308 {
2309 exit (42);
2310   ;
2311   return 0;
2312 }
2313 _ACEOF
2314 rm -f conftest.$ac_objext
2315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316   (eval $ac_compile) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); } &&
2320          { ac_try='test -s conftest.$ac_objext'
2321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322   (eval $ac_try) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; }; then
2326   break
2327 else
2328   echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2330
2331 fi
2332 rm -f conftest.$ac_objext conftest.$ac_ext
2333 done
2334 rm -f conftest*
2335 if test -n "$ac_declaration"; then
2336   echo '#ifdef __cplusplus' >>confdefs.h
2337   echo $ac_declaration      >>confdefs.h
2338   echo '#endif'             >>confdefs.h
2339 fi
2340
2341 else
2342   echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2344
2345 fi
2346 rm -f conftest.$ac_objext conftest.$ac_ext
2347 ac_ext=c
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352
2353
2354
2355 ac_ext=c
2356 ac_cpp='$CPP $CPPFLAGS'
2357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2360 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2361 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2362 # On Suns, sometimes $CPP names a directory.
2363 if test -n "$CPP" && test -d "$CPP"; then
2364   CPP=
2365 fi
2366 if test -z "$CPP"; then
2367   if test "${ac_cv_prog_CPP+set}" = set; then
2368   echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370       # Double quotes because CPP needs to be expanded
2371     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2372     do
2373       ac_preproc_ok=false
2374 for ac_c_preproc_warn_flag in '' yes
2375 do
2376   # Use a header file that comes with gcc, so configuring glibc
2377   # with a fresh cross-compiler works.
2378   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2379   # <limits.h> exists even on freestanding compilers.
2380   # On the NeXT, cc -E runs the code through the compiler's parser,
2381   # not just through cpp. "Syntax error" is here to catch this case.
2382   cat >conftest.$ac_ext <<_ACEOF
2383 #line $LINENO "configure"
2384 /* confdefs.h.  */
2385 _ACEOF
2386 cat confdefs.h >>conftest.$ac_ext
2387 cat >>conftest.$ac_ext <<_ACEOF
2388 /* end confdefs.h.  */
2389 #ifdef __STDC__
2390 # include <limits.h>
2391 #else
2392 # include <assert.h>
2393 #endif
2394                      Syntax error
2395 _ACEOF
2396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2397   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2398   ac_status=$?
2399   grep -v '^ *+' conftest.er1 >conftest.err
2400   rm -f conftest.er1
2401   cat conftest.err >&5
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); } >/dev/null; then
2404   if test -s conftest.err; then
2405     ac_cpp_err=$ac_c_preproc_warn_flag
2406   else
2407     ac_cpp_err=
2408   fi
2409 else
2410   ac_cpp_err=yes
2411 fi
2412 if test -z "$ac_cpp_err"; then
2413   :
2414 else
2415   echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2417
2418   # Broken: fails on valid input.
2419 continue
2420 fi
2421 rm -f conftest.err conftest.$ac_ext
2422
2423   # OK, works on sane cases.  Now check whether non-existent headers
2424   # can be detected and how.
2425   cat >conftest.$ac_ext <<_ACEOF
2426 #line $LINENO "configure"
2427 /* confdefs.h.  */
2428 _ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h.  */
2432 #include <ac_nonexistent.h>
2433 _ACEOF
2434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2435   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2436   ac_status=$?
2437   grep -v '^ *+' conftest.er1 >conftest.err
2438   rm -f conftest.er1
2439   cat conftest.err >&5
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); } >/dev/null; then
2442   if test -s conftest.err; then
2443     ac_cpp_err=$ac_c_preproc_warn_flag
2444   else
2445     ac_cpp_err=
2446   fi
2447 else
2448   ac_cpp_err=yes
2449 fi
2450 if test -z "$ac_cpp_err"; then
2451   # Broken: success on invalid input.
2452 continue
2453 else
2454   echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2456
2457   # Passes both tests.
2458 ac_preproc_ok=:
2459 break
2460 fi
2461 rm -f conftest.err conftest.$ac_ext
2462
2463 done
2464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2465 rm -f conftest.err conftest.$ac_ext
2466 if $ac_preproc_ok; then
2467   break
2468 fi
2469
2470     done
2471     ac_cv_prog_CPP=$CPP
2472
2473 fi
2474   CPP=$ac_cv_prog_CPP
2475 else
2476   ac_cv_prog_CPP=$CPP
2477 fi
2478 echo "$as_me:$LINENO: result: $CPP" >&5
2479 echo "${ECHO_T}$CPP" >&6
2480 ac_preproc_ok=false
2481 for ac_c_preproc_warn_flag in '' yes
2482 do
2483   # Use a header file that comes with gcc, so configuring glibc
2484   # with a fresh cross-compiler works.
2485   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2486   # <limits.h> exists even on freestanding compilers.
2487   # On the NeXT, cc -E runs the code through the compiler's parser,
2488   # not just through cpp. "Syntax error" is here to catch this case.
2489   cat >conftest.$ac_ext <<_ACEOF
2490 #line $LINENO "configure"
2491 /* confdefs.h.  */
2492 _ACEOF
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h.  */
2496 #ifdef __STDC__
2497 # include <limits.h>
2498 #else
2499 # include <assert.h>
2500 #endif
2501                      Syntax error
2502 _ACEOF
2503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2504   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2505   ac_status=$?
2506   grep -v '^ *+' conftest.er1 >conftest.err
2507   rm -f conftest.er1
2508   cat conftest.err >&5
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); } >/dev/null; then
2511   if test -s conftest.err; then
2512     ac_cpp_err=$ac_c_preproc_warn_flag
2513   else
2514     ac_cpp_err=
2515   fi
2516 else
2517   ac_cpp_err=yes
2518 fi
2519 if test -z "$ac_cpp_err"; then
2520   :
2521 else
2522   echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2524
2525   # Broken: fails on valid input.
2526 continue
2527 fi
2528 rm -f conftest.err conftest.$ac_ext
2529
2530   # OK, works on sane cases.  Now check whether non-existent headers
2531   # can be detected and how.
2532   cat >conftest.$ac_ext <<_ACEOF
2533 #line $LINENO "configure"
2534 /* confdefs.h.  */
2535 _ACEOF
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h.  */
2539 #include <ac_nonexistent.h>
2540 _ACEOF
2541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2542   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2543   ac_status=$?
2544   grep -v '^ *+' conftest.er1 >conftest.err
2545   rm -f conftest.er1
2546   cat conftest.err >&5
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); } >/dev/null; then
2549   if test -s conftest.err; then
2550     ac_cpp_err=$ac_c_preproc_warn_flag
2551   else
2552     ac_cpp_err=
2553   fi
2554 else
2555   ac_cpp_err=yes
2556 fi
2557 if test -z "$ac_cpp_err"; then
2558   # Broken: success on invalid input.
2559 continue
2560 else
2561   echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2563
2564   # Passes both tests.
2565 ac_preproc_ok=:
2566 break
2567 fi
2568 rm -f conftest.err conftest.$ac_ext
2569
2570 done
2571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2572 rm -f conftest.err conftest.$ac_ext
2573 if $ac_preproc_ok; then
2574   :
2575 else
2576   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2577 See \`config.log' for more details." >&5
2578 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2579 See \`config.log' for more details." >&2;}
2580    { (exit 1); exit 1; }; }
2581 fi
2582
2583 ac_ext=c
2584 ac_cpp='$CPP $CPPFLAGS'
2585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588
2589
2590 echo "$as_me:$LINENO: checking for egrep" >&5
2591 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2592 if test "${ac_cv_prog_egrep+set}" = set; then
2593   echo $ECHO_N "(cached) $ECHO_C" >&6
2594 else
2595   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2596     then ac_cv_prog_egrep='grep -E'
2597     else ac_cv_prog_egrep='egrep'
2598     fi
2599 fi
2600 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2601 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2602  EGREP=$ac_cv_prog_egrep
2603
2604
2605
2606 echo "$as_me:$LINENO: checking for AIX" >&5
2607 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2608 cat >conftest.$ac_ext <<_ACEOF
2609 #line $LINENO "configure"
2610 /* confdefs.h.  */
2611 _ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h.  */
2615 #ifdef _AIX
2616   yes
2617 #endif
2618
2619 _ACEOF
2620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2621   $EGREP "yes" >/dev/null 2>&1; then
2622   echo "$as_me:$LINENO: result: yes" >&5
2623 echo "${ECHO_T}yes" >&6
2624 cat >>confdefs.h <<\_ACEOF
2625 #define _ALL_SOURCE 1
2626 _ACEOF
2627
2628 else
2629   echo "$as_me:$LINENO: result: no" >&5
2630 echo "${ECHO_T}no" >&6
2631 fi
2632 rm -f conftest*
2633
2634
2635
2636 if test $ac_cv_c_compiler_gnu = yes; then
2637     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2638 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2639 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2640   echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642     ac_pattern="Autoconf.*'x'"
2643   cat >conftest.$ac_ext <<_ACEOF
2644 #line $LINENO "configure"
2645 /* confdefs.h.  */
2646 _ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h.  */
2650 #include <sgtty.h>
2651 Autoconf TIOCGETP
2652 _ACEOF
2653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2654   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2655   ac_cv_prog_gcc_traditional=yes
2656 else
2657   ac_cv_prog_gcc_traditional=no
2658 fi
2659 rm -f conftest*
2660
2661
2662   if test $ac_cv_prog_gcc_traditional = no; then
2663     cat >conftest.$ac_ext <<_ACEOF
2664 #line $LINENO "configure"
2665 /* confdefs.h.  */
2666 _ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h.  */
2670 #include <termio.h>
2671 Autoconf TCGETA
2672 _ACEOF
2673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2674   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2675   ac_cv_prog_gcc_traditional=yes
2676 fi
2677 rm -f conftest*
2678
2679   fi
2680 fi
2681 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2682 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2683   if test $ac_cv_prog_gcc_traditional = yes; then
2684     CC="$CC -traditional"
2685   fi
2686 fi
2687
2688 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
2689 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
2690 if test "${ac_cv_prog_suncc+set}" = set; then
2691   echo $ECHO_N "(cached) $ECHO_C" >&6
2692 else
2693   cat > conftest.c <<EOF
2694 #ifdef __SUNPRO_C
2695   yes;
2696 #endif
2697 EOF
2698 if { ac_try='${CC-cc} -E conftest.c'
2699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700   (eval $ac_try) 2>&5
2701   ac_status=$?
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2704   ac_cv_prog_suncc=yes
2705 else
2706   ac_cv_prog_suncc=no
2707 fi
2708 fi
2709 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
2710 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
2711 if test -n "$ac_tool_prefix"; then
2712   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2713 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2714 echo "$as_me:$LINENO: checking for $ac_word" >&5
2715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2716 if test "${ac_cv_prog_RANLIB+set}" = set; then
2717   echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719   if test -n "$RANLIB"; then
2720   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725   IFS=$as_save_IFS
2726   test -z "$as_dir" && as_dir=.
2727   for ac_exec_ext in '' $ac_executable_extensions; do
2728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2731     break 2
2732   fi
2733 done
2734 done
2735
2736 fi
2737 fi
2738 RANLIB=$ac_cv_prog_RANLIB
2739 if test -n "$RANLIB"; then
2740   echo "$as_me:$LINENO: result: $RANLIB" >&5
2741 echo "${ECHO_T}$RANLIB" >&6
2742 else
2743   echo "$as_me:$LINENO: result: no" >&5
2744 echo "${ECHO_T}no" >&6
2745 fi
2746
2747 fi
2748 if test -z "$ac_cv_prog_RANLIB"; then
2749   ac_ct_RANLIB=$RANLIB
2750   # Extract the first word of "ranlib", so it can be a program name with args.
2751 set dummy ranlib; ac_word=$2
2752 echo "$as_me:$LINENO: checking for $ac_word" >&5
2753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2754 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2755   echo $ECHO_N "(cached) $ECHO_C" >&6
2756 else
2757   if test -n "$ac_ct_RANLIB"; then
2758   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2762 do
2763   IFS=$as_save_IFS
2764   test -z "$as_dir" && as_dir=.
2765   for ac_exec_ext in '' $ac_executable_extensions; do
2766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767     ac_cv_prog_ac_ct_RANLIB="ranlib"
2768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769     break 2
2770   fi
2771 done
2772 done
2773
2774   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2775 fi
2776 fi
2777 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2778 if test -n "$ac_ct_RANLIB"; then
2779   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2780 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2781 else
2782   echo "$as_me:$LINENO: result: no" >&5
2783 echo "${ECHO_T}no" >&6
2784 fi
2785
2786   RANLIB=$ac_ct_RANLIB
2787 else
2788   RANLIB="$ac_cv_prog_RANLIB"
2789 fi
2790
2791
2792 abs_top_builddir=`pwd`
2793
2794
2795 # Check whether --enable-largefile or --disable-largefile was given.
2796 if test "${enable_largefile+set}" = set; then
2797   enableval="$enable_largefile"
2798
2799 fi;
2800 if test "$enable_largefile" != no; then
2801
2802   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2803 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2804 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2805   echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807   ac_cv_sys_largefile_CC=no
2808      if test "$GCC" != yes; then
2809        ac_save_CC=$CC
2810        while :; do
2811          # IRIX 6.2 and later do not support large files by default,
2812          # so use the C compiler's -n32 option if that helps.
2813          cat >conftest.$ac_ext <<_ACEOF
2814 #line $LINENO "configure"
2815 /* confdefs.h.  */
2816 _ACEOF
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h.  */
2820 #include <sys/types.h>
2821  /* Check that off_t can represent 2**63 - 1 correctly.
2822     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2823     since some C++ compilers masquerading as C compilers
2824     incorrectly reject 9223372036854775807.  */
2825 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2826   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2827                        && LARGE_OFF_T % 2147483647 == 1)
2828                       ? 1 : -1];
2829 int
2830 main ()
2831 {
2832
2833   ;
2834   return 0;
2835 }
2836 _ACEOF
2837          rm -f conftest.$ac_objext
2838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2839   (eval $ac_compile) 2>&5
2840   ac_status=$?
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); } &&
2843          { ac_try='test -s conftest.$ac_objext'
2844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845   (eval $ac_try) 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); }; }; then
2849   break
2850 else
2851   echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2853
2854 fi
2855 rm -f conftest.$ac_objext
2856          CC="$CC -n32"
2857          rm -f conftest.$ac_objext
2858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2859   (eval $ac_compile) 2>&5
2860   ac_status=$?
2861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862   (exit $ac_status); } &&
2863          { ac_try='test -s conftest.$ac_objext'
2864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865   (eval $ac_try) 2>&5
2866   ac_status=$?
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); }; }; then
2869   ac_cv_sys_largefile_CC=' -n32'; break
2870 else
2871   echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2873
2874 fi
2875 rm -f conftest.$ac_objext
2876          break
2877        done
2878        CC=$ac_save_CC
2879        rm -f conftest.$ac_ext
2880     fi
2881 fi
2882 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2883 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2884   if test "$ac_cv_sys_largefile_CC" != no; then
2885     CC=$CC$ac_cv_sys_largefile_CC
2886   fi
2887
2888   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2889 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2890 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2891   echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893   while :; do
2894   ac_cv_sys_file_offset_bits=no
2895   cat >conftest.$ac_ext <<_ACEOF
2896 #line $LINENO "configure"
2897 /* confdefs.h.  */
2898 _ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h.  */
2902 #include <sys/types.h>
2903  /* Check that off_t can represent 2**63 - 1 correctly.
2904     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2905     since some C++ compilers masquerading as C compilers
2906     incorrectly reject 9223372036854775807.  */
2907 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2908   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2909                        && LARGE_OFF_T % 2147483647 == 1)
2910                       ? 1 : -1];
2911 int
2912 main ()
2913 {
2914
2915   ;
2916   return 0;
2917 }
2918 _ACEOF
2919 rm -f conftest.$ac_objext
2920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2921   (eval $ac_compile) 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); } &&
2925          { ac_try='test -s conftest.$ac_objext'
2926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927   (eval $ac_try) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }; }; then
2931   break
2932 else
2933   echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2935
2936 fi
2937 rm -f conftest.$ac_objext conftest.$ac_ext
2938   cat >conftest.$ac_ext <<_ACEOF
2939 #line $LINENO "configure"
2940 /* confdefs.h.  */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h.  */
2945 #define _FILE_OFFSET_BITS 64
2946 #include <sys/types.h>
2947  /* Check that off_t can represent 2**63 - 1 correctly.
2948     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2949     since some C++ compilers masquerading as C compilers
2950     incorrectly reject 9223372036854775807.  */
2951 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2952   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2953                        && LARGE_OFF_T % 2147483647 == 1)
2954                       ? 1 : -1];
2955 int
2956 main ()
2957 {
2958
2959   ;
2960   return 0;
2961 }
2962 _ACEOF
2963 rm -f conftest.$ac_objext
2964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2965   (eval $ac_compile) 2>&5
2966   ac_status=$?
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); } &&
2969          { ac_try='test -s conftest.$ac_objext'
2970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971   (eval $ac_try) 2>&5
2972   ac_status=$?
2973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974   (exit $ac_status); }; }; then
2975   ac_cv_sys_file_offset_bits=64; break
2976 else
2977   echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2979
2980 fi
2981 rm -f conftest.$ac_objext conftest.$ac_ext
2982   break
2983 done
2984 fi
2985 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
2986 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2987 if test "$ac_cv_sys_file_offset_bits" != no; then
2988
2989 cat >>confdefs.h <<_ACEOF
2990 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2991 _ACEOF
2992
2993 fi
2994 rm -f conftest*
2995   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
2996 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2997 if test "${ac_cv_sys_large_files+set}" = set; then
2998   echo $ECHO_N "(cached) $ECHO_C" >&6
2999 else
3000   while :; do
3001   ac_cv_sys_large_files=no
3002   cat >conftest.$ac_ext <<_ACEOF
3003 #line $LINENO "configure"
3004 /* confdefs.h.  */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h.  */
3009 #include <sys/types.h>
3010  /* Check that off_t can represent 2**63 - 1 correctly.
3011     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3012     since some C++ compilers masquerading as C compilers
3013     incorrectly reject 9223372036854775807.  */
3014 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3015   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3016                        && LARGE_OFF_T % 2147483647 == 1)
3017                       ? 1 : -1];
3018 int
3019 main ()
3020 {
3021
3022   ;
3023   return 0;
3024 }
3025 _ACEOF
3026 rm -f conftest.$ac_objext
3027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3028   (eval $ac_compile) 2>&5
3029   ac_status=$?
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); } &&
3032          { ac_try='test -s conftest.$ac_objext'
3033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034   (eval $ac_try) 2>&5
3035   ac_status=$?
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); }; }; then
3038   break
3039 else
3040   echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043 fi
3044 rm -f conftest.$ac_objext conftest.$ac_ext
3045   cat >conftest.$ac_ext <<_ACEOF
3046 #line $LINENO "configure"
3047 /* confdefs.h.  */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h.  */
3052 #define _LARGE_FILES 1
3053 #include <sys/types.h>
3054  /* Check that off_t can represent 2**63 - 1 correctly.
3055     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3056     since some C++ compilers masquerading as C compilers
3057     incorrectly reject 9223372036854775807.  */
3058 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3059   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3060                        && LARGE_OFF_T % 2147483647 == 1)
3061                       ? 1 : -1];
3062 int
3063 main ()
3064 {
3065
3066   ;
3067   return 0;
3068 }
3069 _ACEOF
3070 rm -f conftest.$ac_objext
3071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3072   (eval $ac_compile) 2>&5
3073   ac_status=$?
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); } &&
3076          { ac_try='test -s conftest.$ac_objext'
3077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078   (eval $ac_try) 2>&5
3079   ac_status=$?
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); }; }; then
3082   ac_cv_sys_large_files=1; break
3083 else
3084   echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3086
3087 fi
3088 rm -f conftest.$ac_objext conftest.$ac_ext
3089   break
3090 done
3091 fi
3092 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3093 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3094 if test "$ac_cv_sys_large_files" != no; then
3095
3096 cat >>confdefs.h <<_ACEOF
3097 #define _LARGE_FILES $ac_cv_sys_large_files
3098 _ACEOF
3099
3100 fi
3101 rm -f conftest*
3102 fi
3103
3104
3105 PACKAGE=freeradius
3106
3107 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3108 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3109 if test "${ac_cv_c_bigendian+set}" = set; then
3110   echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112   # See if sys/param.h defines the BYTE_ORDER macro.
3113 cat >conftest.$ac_ext <<_ACEOF
3114 #line $LINENO "configure"
3115 /* confdefs.h.  */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h.  */
3120 #include <sys/types.h>
3121 #include <sys/param.h>
3122
3123 int
3124 main ()
3125 {
3126 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3127  bogus endian macros
3128 #endif
3129
3130   ;
3131   return 0;
3132 }
3133 _ACEOF
3134 rm -f conftest.$ac_objext
3135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3136   (eval $ac_compile) 2>&5
3137   ac_status=$?
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); } &&
3140          { ac_try='test -s conftest.$ac_objext'
3141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142   (eval $ac_try) 2>&5
3143   ac_status=$?
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); }; }; then
3146   # It does; now see whether it defined to BIG_ENDIAN or not.
3147 cat >conftest.$ac_ext <<_ACEOF
3148 #line $LINENO "configure"
3149 /* confdefs.h.  */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h.  */
3154 #include <sys/types.h>
3155 #include <sys/param.h>
3156
3157 int
3158 main ()
3159 {
3160 #if BYTE_ORDER != BIG_ENDIAN
3161  not big endian
3162 #endif
3163
3164   ;
3165   return 0;
3166 }
3167 _ACEOF
3168 rm -f conftest.$ac_objext
3169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3170   (eval $ac_compile) 2>&5
3171   ac_status=$?
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); } &&
3174          { ac_try='test -s conftest.$ac_objext'
3175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176   (eval $ac_try) 2>&5
3177   ac_status=$?
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); }; }; then
3180   ac_cv_c_bigendian=yes
3181 else
3182   echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3184
3185 ac_cv_c_bigendian=no
3186 fi
3187 rm -f conftest.$ac_objext conftest.$ac_ext
3188 else
3189   echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3191
3192 # It does not; compile a test program.
3193 if test "$cross_compiling" = yes; then
3194   # try to guess the endianness by grepping values into an object file
3195   ac_cv_c_bigendian=unknown
3196   cat >conftest.$ac_ext <<_ACEOF
3197 #line $LINENO "configure"
3198 /* confdefs.h.  */
3199 _ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h.  */
3203 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3204 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3205 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3206 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3207 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3208 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3209 int
3210 main ()
3211 {
3212  _ascii (); _ebcdic ();
3213   ;
3214   return 0;
3215 }
3216 _ACEOF
3217 rm -f conftest.$ac_objext
3218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219   (eval $ac_compile) 2>&5
3220   ac_status=$?
3221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222   (exit $ac_status); } &&
3223          { ac_try='test -s conftest.$ac_objext'
3224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225   (eval $ac_try) 2>&5
3226   ac_status=$?
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); }; }; then
3229   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3230   ac_cv_c_bigendian=yes
3231 fi
3232 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3233   if test "$ac_cv_c_bigendian" = unknown; then
3234     ac_cv_c_bigendian=no
3235   else
3236     # finding both strings is unlikely to happen, but who knows?
3237     ac_cv_c_bigendian=unknown
3238   fi
3239 fi
3240 else
3241   echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3243
3244 fi
3245 rm -f conftest.$ac_objext conftest.$ac_ext
3246 else
3247   cat >conftest.$ac_ext <<_ACEOF
3248 #line $LINENO "configure"
3249 /* confdefs.h.  */
3250 _ACEOF
3251 cat confdefs.h >>conftest.$ac_ext
3252 cat >>conftest.$ac_ext <<_ACEOF
3253 /* end confdefs.h.  */
3254 int
3255 main ()
3256 {
3257   /* Are we little or big endian?  From Harbison&Steele.  */
3258   union
3259   {
3260     long l;
3261     char c[sizeof (long)];
3262   } u;
3263   u.l = 1;
3264   exit (u.c[sizeof (long) - 1] == 1);
3265 }
3266 _ACEOF
3267 rm -f conftest$ac_exeext
3268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3269   (eval $ac_link) 2>&5
3270   ac_status=$?
3271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274   (eval $ac_try) 2>&5
3275   ac_status=$?
3276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277   (exit $ac_status); }; }; then
3278   ac_cv_c_bigendian=no
3279 else
3280   echo "$as_me: program exited with status $ac_status" >&5
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3283
3284 ( exit $ac_status )
3285 ac_cv_c_bigendian=yes
3286 fi
3287 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3288 fi
3289 fi
3290 rm -f conftest.$ac_objext conftest.$ac_ext
3291 fi
3292 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3293 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3294 case $ac_cv_c_bigendian in
3295   yes)
3296
3297 cat >>confdefs.h <<\_ACEOF
3298 #define WORDS_BIGENDIAN 1
3299 _ACEOF
3300  ;;
3301   no)
3302      ;;
3303   *)
3304     { { echo "$as_me:$LINENO: error: unknown endianness
3305 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3306 echo "$as_me: error: unknown endianness
3307 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3308    { (exit 1); exit 1; }; } ;;
3309 esac
3310
3311
3312 # Extract the first word of "gmake", so it can be a program name with args.
3313 set dummy gmake; ac_word=$2
3314 echo "$as_me:$LINENO: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316 if test "${ac_cv_prog_GMAKE+set}" = set; then
3317   echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319   if test -n "$GMAKE"; then
3320   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3321 else
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH
3324 do
3325   IFS=$as_save_IFS
3326   test -z "$as_dir" && as_dir=.
3327   for ac_exec_ext in '' $ac_executable_extensions; do
3328   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329     ac_cv_prog_GMAKE="yes"
3330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3331     break 2
3332   fi
3333 done
3334 done
3335
3336   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3337 fi
3338 fi
3339 GMAKE=$ac_cv_prog_GMAKE
3340 if test -n "$GMAKE"; then
3341   echo "$as_me:$LINENO: result: $GMAKE" >&5
3342 echo "${ECHO_T}$GMAKE" >&6
3343 else
3344   echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3346 fi
3347
3348 if test $GMAKE = no; then
3349   # Extract the first word of "make", so it can be a program name with args.
3350 set dummy make; ac_word=$2
3351 echo "$as_me:$LINENO: checking for $ac_word" >&5
3352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3353 if test "${ac_cv_path_MAKE+set}" = set; then
3354   echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356   case $MAKE in
3357   [\\/]* | ?:[\\/]*)
3358   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3359   ;;
3360   *)
3361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364   IFS=$as_save_IFS
3365   test -z "$as_dir" && as_dir=.
3366   for ac_exec_ext in '' $ac_executable_extensions; do
3367   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370     break 2
3371   fi
3372 done
3373 done
3374
3375   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
3376   ;;
3377 esac
3378 fi
3379 MAKE=$ac_cv_path_MAKE
3380
3381 if test -n "$MAKE"; then
3382   echo "$as_me:$LINENO: result: $MAKE" >&5
3383 echo "${ECHO_T}$MAKE" >&6
3384 else
3385   echo "$as_me:$LINENO: result: no" >&5
3386 echo "${ECHO_T}no" >&6
3387 fi
3388
3389 else
3390   # Extract the first word of "gmake", so it can be a program name with args.
3391 set dummy gmake; ac_word=$2
3392 echo "$as_me:$LINENO: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3394 if test "${ac_cv_path_MAKE+set}" = set; then
3395   echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397   case $MAKE in
3398   [\\/]* | ?:[\\/]*)
3399   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3400   ;;
3401   *)
3402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3404 do
3405   IFS=$as_save_IFS
3406   test -z "$as_dir" && as_dir=.
3407   for ac_exec_ext in '' $ac_executable_extensions; do
3408   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3411     break 2
3412   fi
3413 done
3414 done
3415
3416   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
3417   ;;
3418 esac
3419 fi
3420 MAKE=$ac_cv_path_MAKE
3421
3422 if test -n "$MAKE"; then
3423   echo "$as_me:$LINENO: result: $MAKE" >&5
3424 echo "${ECHO_T}$MAKE" >&6
3425 else
3426   echo "$as_me:$LINENO: result: no" >&5
3427 echo "${ECHO_T}no" >&6
3428 fi
3429
3430 fi
3431 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3432 if test -z "$makever"; then
3433   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
3434                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3435 echo "$as_me: error: GNU Make is not installed.  Please download and install it
3436                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3437    { (exit 1); exit 1; }; }
3438 fi
3439
3440   echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3441 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3442 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3443   echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445   ac_check_lib_save_LIBS=$LIBS
3446 LIBS="-lltdl  $LIBS"
3447 cat >conftest.$ac_ext <<_ACEOF
3448 #line $LINENO "configure"
3449 /* confdefs.h.  */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h.  */
3454
3455 /* Override any gcc2 internal prototype to avoid an error.  */
3456 #ifdef __cplusplus
3457 extern "C"
3458 #endif
3459 /* We use char because int might match the return type of a gcc2
3460    builtin and then its argument prototype would still apply.  */
3461 char lt_dlinit ();
3462 int
3463 main ()
3464 {
3465 lt_dlinit ();
3466   ;
3467   return 0;
3468 }
3469 _ACEOF
3470 rm -f conftest.$ac_objext conftest$ac_exeext
3471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3472   (eval $ac_link) 2>&5
3473   ac_status=$?
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); } &&
3476          { ac_try='test -s conftest$ac_exeext'
3477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478   (eval $ac_try) 2>&5
3479   ac_status=$?
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); }; }; then
3482   ac_cv_lib_ltdl_lt_dlinit=yes
3483 else
3484   echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3486
3487 ac_cv_lib_ltdl_lt_dlinit=no
3488 fi
3489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3490 LIBS=$ac_check_lib_save_LIBS
3491 fi
3492 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
3493 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
3494 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
3495   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
3496 else
3497   if test x"$enable_ltdl_install" = xno; then
3498      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
3499 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
3500    else
3501      enable_ltdl_install=yes
3502    fi
3503
3504 fi
3505
3506   if test x"$enable_ltdl_install" = x"yes"; then
3507     ac_configure_args="$ac_configure_args --enable-ltdl-install"
3508     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
3509     LTDLINCL='-I${top_srcdir}/''libltdl'
3510     LIBLTDLPATH=libltdl
3511   else
3512     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3513     LIBLTDL="-lltdl"
3514     LTDLINCL=
3515     LIBLTDLPATH=
3516   fi
3517
3518   # For backwards non-gettext consistent compatibility...
3519   INCLTDL="$LTDLINCL"
3520
3521
3522 # Check whether --enable-shared or --disable-shared was given.
3523 if test "${enable_shared+set}" = set; then
3524   enableval="$enable_shared"
3525   p=${PACKAGE-default}
3526     case $enableval in
3527     yes) enable_shared=yes ;;
3528     no) enable_shared=no ;;
3529     *)
3530       enable_shared=no
3531       # Look at the argument we got.  We use all the common list separators.
3532       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3533       for pkg in $enableval; do
3534         IFS="$lt_save_ifs"
3535         if test "X$pkg" = "X$p"; then
3536           enable_shared=yes
3537         fi
3538       done
3539       IFS="$lt_save_ifs"
3540       ;;
3541     esac
3542 else
3543   enable_shared=yes
3544 fi;
3545
3546 # Check whether --enable-static or --disable-static was given.
3547 if test "${enable_static+set}" = set; then
3548   enableval="$enable_static"
3549   p=${PACKAGE-default}
3550     case $enableval in
3551     yes) enable_static=yes ;;
3552     no) enable_static=no ;;
3553     *)
3554      enable_static=no
3555       # Look at the argument we got.  We use all the common list separators.
3556       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3557       for pkg in $enableval; do
3558         IFS="$lt_save_ifs"
3559         if test "X$pkg" = "X$p"; then
3560           enable_static=yes
3561         fi
3562       done
3563       IFS="$lt_save_ifs"
3564       ;;
3565     esac
3566 else
3567   enable_static=yes
3568 fi;
3569
3570 # Check whether --enable-fast-install or --disable-fast-install was given.
3571 if test "${enable_fast_install+set}" = set; then
3572   enableval="$enable_fast_install"
3573   p=${PACKAGE-default}
3574     case $enableval in
3575     yes) enable_fast_install=yes ;;
3576     no) enable_fast_install=no ;;
3577     *)
3578       enable_fast_install=no
3579       # Look at the argument we got.  We use all the common list separators.
3580       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3581       for pkg in $enableval; do
3582         IFS="$lt_save_ifs"
3583         if test "X$pkg" = "X$p"; then
3584           enable_fast_install=yes
3585         fi
3586       done
3587       IFS="$lt_save_ifs"
3588       ;;
3589     esac
3590 else
3591   enable_fast_install=yes
3592 fi;
3593
3594 ac_aux_dir=
3595 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3596   if test -f $ac_dir/install-sh; then
3597     ac_aux_dir=$ac_dir
3598     ac_install_sh="$ac_aux_dir/install-sh -c"
3599     break
3600   elif test -f $ac_dir/install.sh; then
3601     ac_aux_dir=$ac_dir
3602     ac_install_sh="$ac_aux_dir/install.sh -c"
3603     break
3604   elif test -f $ac_dir/shtool; then
3605     ac_aux_dir=$ac_dir
3606     ac_install_sh="$ac_aux_dir/shtool install -c"
3607     break
3608   fi
3609 done
3610 if test -z "$ac_aux_dir"; then
3611   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3612 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3613    { (exit 1); exit 1; }; }
3614 fi
3615 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3616 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3617 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3618
3619 # Make sure we can run config.sub.
3620 $ac_config_sub sun4 >/dev/null 2>&1 ||
3621   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3622 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3623    { (exit 1); exit 1; }; }
3624
3625 echo "$as_me:$LINENO: checking build system type" >&5
3626 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3627 if test "${ac_cv_build+set}" = set; then
3628   echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630   ac_cv_build_alias=$build_alias
3631 test -z "$ac_cv_build_alias" &&
3632   ac_cv_build_alias=`$ac_config_guess`
3633 test -z "$ac_cv_build_alias" &&
3634   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3635 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3636    { (exit 1); exit 1; }; }
3637 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3638   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3639 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3640    { (exit 1); exit 1; }; }
3641
3642 fi
3643 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3644 echo "${ECHO_T}$ac_cv_build" >&6
3645 build=$ac_cv_build
3646 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3647 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3648 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3649
3650
3651 echo "$as_me:$LINENO: checking host system type" >&5
3652 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3653 if test "${ac_cv_host+set}" = set; then
3654   echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656   ac_cv_host_alias=$host_alias
3657 test -z "$ac_cv_host_alias" &&
3658   ac_cv_host_alias=$ac_cv_build_alias
3659 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3660   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3661 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3662    { (exit 1); exit 1; }; }
3663
3664 fi
3665 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3666 echo "${ECHO_T}$ac_cv_host" >&6
3667 host=$ac_cv_host
3668 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3669 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3670 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3671
3672
3673 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3674 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3675 if test "${lt_cv_path_SED+set}" = set; then
3676   echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678   # Loop through the user's path and test for sed and gsed.
3679 # Then use that list of sed's as ones to test for truncation.
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3682 do
3683   IFS=$as_save_IFS
3684   test -z "$as_dir" && as_dir=.
3685   for lt_ac_prog in sed gsed; do
3686     for ac_exec_ext in '' $ac_executable_extensions; do
3687       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3688         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3689       fi
3690     done
3691   done
3692 done
3693 lt_ac_max=0
3694 lt_ac_count=0
3695 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3696 # along with /bin/sed that truncates output.
3697 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3698   test ! -f $lt_ac_sed && break
3699   cat /dev/null > conftest.in
3700   lt_ac_count=0
3701   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3702   # Check for GNU sed and select it if it is found.
3703   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3704     lt_cv_path_SED=$lt_ac_sed
3705     break
3706   fi
3707   while true; do
3708     cat conftest.in conftest.in >conftest.tmp
3709     mv conftest.tmp conftest.in
3710     cp conftest.in conftest.nl
3711     echo >>conftest.nl
3712     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3713     cmp -s conftest.out conftest.nl || break
3714     # 10000 chars as input seems more than enough
3715     test $lt_ac_count -gt 10 && break
3716     lt_ac_count=`expr $lt_ac_count + 1`
3717     if test $lt_ac_count -gt $lt_ac_max; then
3718       lt_ac_max=$lt_ac_count
3719       lt_cv_path_SED=$lt_ac_sed
3720     fi
3721   done
3722 done
3723 SED=$lt_cv_path_SED
3724
3725 fi
3726
3727 echo "$as_me:$LINENO: result: $SED" >&5
3728 echo "${ECHO_T}$SED" >&6
3729
3730
3731 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3732 if test "${with_gnu_ld+set}" = set; then
3733   withval="$with_gnu_ld"
3734   test "$withval" = no || with_gnu_ld=yes
3735 else
3736   with_gnu_ld=no
3737 fi;
3738 ac_prog=ld
3739 if test "$GCC" = yes; then
3740   # Check if gcc -print-prog-name=ld gives a path.
3741   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3742 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3743   case $host in
3744   *-*-mingw*)
3745     # gcc leaves a trailing carriage return which upsets mingw
3746     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3747   *)
3748     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3749   esac
3750   case $ac_prog in
3751     # Accept absolute paths.
3752     [\\/]* | ?:[\\/]*)
3753       re_direlt='/[^/][^/]*/\.\./'
3754       # Canonicalize the pathname of ld
3755       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3756       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3757         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3758       done
3759       test -z "$LD" && LD="$ac_prog"
3760       ;;
3761   "")
3762     # If it fails, then pretend we aren't using GCC.
3763     ac_prog=ld
3764     ;;
3765   *)
3766     # If it is relative, then search for the first ld in PATH.
3767     with_gnu_ld=unknown
3768     ;;
3769   esac
3770 elif test "$with_gnu_ld" = yes; then
3771   echo "$as_me:$LINENO: checking for GNU ld" >&5
3772 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3773 else
3774   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3775 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3776 fi
3777 if test "${lt_cv_path_LD+set}" = set; then
3778   echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780   if test -z "$LD"; then
3781   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3782   for ac_dir in $PATH; do
3783     IFS="$lt_save_ifs"
3784     test -z "$ac_dir" && ac_dir=.
3785     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3786       lt_cv_path_LD="$ac_dir/$ac_prog"
3787       # Check to see if the program is GNU ld.  I'd rather use --version,
3788       # but apparently some GNU ld's only accept -v.
3789       # Break only if it was the GNU/non-GNU ld that we prefer.
3790       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3791       *GNU* | *'with BFD'*)
3792         test "$with_gnu_ld" != no && break
3793         ;;
3794       *)
3795         test "$with_gnu_ld" != yes && break
3796         ;;
3797       esac
3798     fi
3799   done
3800   IFS="$lt_save_ifs"
3801 else
3802   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3803 fi
3804 fi
3805
3806 LD="$lt_cv_path_LD"
3807 if test -n "$LD"; then
3808   echo "$as_me:$LINENO: result: $LD" >&5
3809 echo "${ECHO_T}$LD" >&6
3810 else
3811   echo "$as_me:$LINENO: result: no" >&5
3812 echo "${ECHO_T}no" >&6
3813 fi
3814 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3815 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3816    { (exit 1); exit 1; }; }
3817 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3818 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3819 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3820   echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3823 case `$LD -v 2>&1 </dev/null` in
3824 *GNU* | *'with BFD'*)
3825   lt_cv_prog_gnu_ld=yes
3826   ;;
3827 *)
3828   lt_cv_prog_gnu_ld=no
3829   ;;
3830 esac
3831 fi
3832 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3833 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3834 with_gnu_ld=$lt_cv_prog_gnu_ld
3835
3836
3837 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3838 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3839 if test "${lt_cv_ld_reload_flag+set}" = set; then
3840   echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842   lt_cv_ld_reload_flag='-r'
3843 fi
3844 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3845 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3846 reload_flag=$lt_cv_ld_reload_flag
3847 case $reload_flag in
3848 "" | " "*) ;;
3849 *) reload_flag=" $reload_flag" ;;
3850 esac
3851 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3852
3853 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3854 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3855 if test "${lt_cv_path_NM+set}" = set; then
3856   echo $ECHO_N "(cached) $ECHO_C" >&6
3857 else
3858   if test -n "$NM"; then
3859   # Let the user override the test.
3860   lt_cv_path_NM="$NM"
3861 else
3862   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3863   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3864     IFS="$lt_save_ifs"
3865     test -z "$ac_dir" && ac_dir=.
3866     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3867     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3868       # Check to see if the nm accepts a BSD-compat flag.
3869       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3870       #   nm: unknown option "B" ignored
3871       # Tru64's nm complains that /dev/null is an invalid object file
3872       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3873       */dev/null* | *'Invalid file or object type'*)
3874         lt_cv_path_NM="$tmp_nm -B"
3875         break
3876         ;;
3877       *)
3878         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3879         */dev/null*)
3880           lt_cv_path_NM="$tmp_nm -p"
3881           break
3882           ;;
3883         *)
3884           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3885           continue # so that we can try to find one that supports BSD flags
3886           ;;
3887         esac
3888       esac
3889     fi
3890   done
3891   IFS="$lt_save_ifs"
3892   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3893 fi
3894 fi
3895 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3896 echo "${ECHO_T}$lt_cv_path_NM" >&6
3897 NM="$lt_cv_path_NM"
3898
3899 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3900 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3901 LN_S=$as_ln_s
3902 if test "$LN_S" = "ln -s"; then
3903   echo "$as_me:$LINENO: result: yes" >&5
3904 echo "${ECHO_T}yes" >&6
3905 else
3906   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3907 echo "${ECHO_T}no, using $LN_S" >&6
3908 fi
3909
3910 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3911 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3912 if test "${lt_cv_deplibs_check_method+set}" = set; then
3913   echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915   lt_cv_file_magic_cmd='$MAGIC_CMD'
3916 lt_cv_file_magic_test_file=
3917 lt_cv_deplibs_check_method='unknown'
3918 # Need to set the preceding variable on all platforms that support
3919 # interlibrary dependencies.
3920 # 'none' -- dependencies not supported.
3921 # `unknown' -- same as none, but documents that we really don't know.
3922 # 'pass_all' -- all dependencies passed with no checks.
3923 # 'test_compile' -- check by making test program.
3924 # 'file_magic [[regex]]' -- check by looking for files in library path
3925 # which responds to the $file_magic_cmd with a given extended regex.
3926 # If you have `file' or equivalent on your system and you're not sure
3927 # whether `pass_all' will *always* work, you probably want this one.
3928
3929 case $host_os in
3930 aix4* | aix5*)
3931   lt_cv_deplibs_check_method=pass_all
3932   ;;
3933
3934 beos*)
3935   lt_cv_deplibs_check_method=pass_all
3936   ;;
3937
3938 bsdi4*)
3939   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3940   lt_cv_file_magic_cmd='/usr/bin/file -L'
3941   lt_cv_file_magic_test_file=/shlib/libc.so
3942   ;;
3943
3944 cygwin*)
3945   # func_win32_libid is a shell function defined in ltmain.sh
3946   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3947   lt_cv_file_magic_cmd='func_win32_libid'
3948   ;;
3949
3950 mingw* | pw32*)
3951   # Base MSYS/MinGW do not provide the 'file' command needed by
3952   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3953   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3954   lt_cv_file_magic_cmd='$OBJDUMP -f'
3955   ;;
3956
3957 darwin* | rhapsody*)
3958   lt_cv_deplibs_check_method=pass_all
3959   ;;
3960
3961 freebsd* | kfreebsd*-gnu)
3962   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3963     case $host_cpu in
3964     i*86 )
3965       # Not sure whether the presence of OpenBSD here was a mistake.
3966       # Let's accept both of them until this is cleared up.
3967       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3968       lt_cv_file_magic_cmd=/usr/bin/file
3969       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3970       ;;
3971     esac
3972   else
3973     lt_cv_deplibs_check_method=pass_all
3974   fi
3975   ;;
3976
3977 gnu*)
3978   lt_cv_deplibs_check_method=pass_all
3979   ;;
3980
3981 hpux10.20* | hpux11*)
3982   lt_cv_file_magic_cmd=/usr/bin/file
3983   case "$host_cpu" in
3984   ia64*)
3985     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3986     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3987     ;;
3988   hppa*64*)
3989     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3990     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3991     ;;
3992   *)
3993     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3994     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3995     ;;
3996   esac
3997   ;;
3998
3999 irix5* | irix6* | nonstopux*)
4000   case $LD in
4001   *-32|*"-32 ") libmagic=32-bit;;
4002   *-n32|*"-n32 ") libmagic=N32;;
4003   *-64|*"-64 ") libmagic=64-bit;;
4004   *) libmagic=never-match;;
4005   esac
4006   lt_cv_deplibs_check_method=pass_all
4007   ;;
4008
4009 # This must be Linux ELF.
4010 linux*)
4011   lt_cv_deplibs_check_method=pass_all
4012   ;;
4013
4014 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4015   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4016     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4017   else
4018     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4019   fi
4020   ;;
4021
4022 newos6*)
4023   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4024   lt_cv_file_magic_cmd=/usr/bin/file
4025   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4026   ;;
4027
4028 nto-qnx*)
4029   lt_cv_deplibs_check_method=unknown
4030   ;;
4031
4032 openbsd*)
4033   lt_cv_file_magic_cmd=/usr/bin/file
4034   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4035   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4036     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4037   else
4038     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4039   fi
4040   ;;
4041
4042 osf3* | osf4* | osf5*)
4043   lt_cv_deplibs_check_method=pass_all
4044   ;;
4045
4046 sco3.2v5*)
4047   lt_cv_deplibs_check_method=pass_all
4048   ;;
4049
4050 solaris*)
4051   lt_cv_deplibs_check_method=pass_all
4052   ;;
4053
4054 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4055   case $host_vendor in
4056   motorola)
4057     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]'
4058     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4059     ;;
4060   ncr)
4061     lt_cv_deplibs_check_method=pass_all
4062     ;;
4063   sequent)
4064     lt_cv_file_magic_cmd='/bin/file'
4065     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4066     ;;
4067   sni)
4068     lt_cv_file_magic_cmd='/bin/file'
4069     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4070     lt_cv_file_magic_test_file=/lib/libc.so
4071     ;;
4072   siemens)
4073     lt_cv_deplibs_check_method=pass_all
4074     ;;
4075   esac
4076   ;;
4077
4078 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4079   lt_cv_deplibs_check_method=pass_all
4080   ;;
4081 esac
4082
4083 fi
4084 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4085 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4086 file_magic_cmd=$lt_cv_file_magic_cmd
4087 deplibs_check_method=$lt_cv_deplibs_check_method
4088 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4089
4090
4091
4092
4093 # If no C compiler was specified, use CC.
4094 LTCC=${LTCC-"$CC"}
4095
4096 # Allow CC to be a program name with arguments.
4097 compiler=$CC
4098
4099 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4100 if test "${enable_libtool_lock+set}" = set; then
4101   enableval="$enable_libtool_lock"
4102
4103 fi;
4104 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4105
4106 # Some flags need to be propagated to the compiler or linker for good
4107 # libtool support.
4108 case $host in
4109 ia64-*-hpux*)
4110   # Find out which ABI we are using.
4111   echo 'int i;' > conftest.$ac_ext
4112   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4113   (eval $ac_compile) 2>&5
4114   ac_status=$?
4115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); }; then
4117     case `/usr/bin/file conftest.$ac_objext` in
4118     *ELF-32*)
4119       HPUX_IA64_MODE="32"
4120       ;;
4121     *ELF-64*)
4122       HPUX_IA64_MODE="64"
4123       ;;
4124     esac
4125   fi
4126   rm -rf conftest*
4127   ;;
4128 *-*-irix6*)
4129   # Find out which ABI we are using.
4130   echo '#line 4130 "configure"' > conftest.$ac_ext
4131   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4132   (eval $ac_compile) 2>&5
4133   ac_status=$?
4134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); }; then
4136    if test "$lt_cv_prog_gnu_ld" = yes; then
4137     case `/usr/bin/file conftest.$ac_objext` in
4138     *32-bit*)
4139       LD="${LD-ld} -melf32bsmip"
4140       ;;
4141     *N32*)
4142       LD="${LD-ld} -melf32bmipn32"
4143       ;;
4144     *64-bit*)
4145       LD="${LD-ld} -melf64bmip"
4146       ;;
4147     esac
4148    else
4149     case `/usr/bin/file conftest.$ac_objext` in
4150     *32-bit*)
4151       LD="${LD-ld} -32"
4152       ;;
4153     *N32*)
4154       LD="${LD-ld} -n32"
4155       ;;
4156     *64-bit*)
4157       LD="${LD-ld} -64"
4158       ;;
4159     esac
4160    fi
4161   fi
4162   rm -rf conftest*
4163   ;;
4164
4165 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4166   # Find out which ABI we are using.
4167   echo 'int i;' > conftest.$ac_ext
4168   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169   (eval $ac_compile) 2>&5
4170   ac_status=$?
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); }; then
4173     case "`/usr/bin/file conftest.o`" in
4174     *32-bit*)
4175       case $host in
4176         x86_64-*linux*)
4177           LD="${LD-ld} -m elf_i386"
4178           ;;
4179         ppc64-*linux*|powerpc64-*linux*)
4180           LD="${LD-ld} -m elf32ppclinux"
4181           ;;
4182         s390x-*linux*)
4183           LD="${LD-ld} -m elf_s390"
4184           ;;
4185         sparc64-*linux*)
4186           LD="${LD-ld} -m elf32_sparc"
4187           ;;
4188       esac
4189       ;;
4190     *64-bit*)
4191       case $host in
4192         x86_64-*linux*)
4193           LD="${LD-ld} -m elf_x86_64"
4194           ;;
4195         ppc*-*linux*|powerpc*-*linux*)
4196           LD="${LD-ld} -m elf64ppc"
4197           ;;
4198         s390*-*linux*)
4199           LD="${LD-ld} -m elf64_s390"
4200           ;;
4201         sparc*-*linux*)
4202           LD="${LD-ld} -m elf64_sparc"
4203           ;;
4204       esac
4205       ;;
4206     esac
4207   fi
4208   rm -rf conftest*
4209   ;;
4210
4211 *-*-sco3.2v5*)
4212   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4213   SAVE_CFLAGS="$CFLAGS"
4214   CFLAGS="$CFLAGS -belf"
4215   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4216 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4217 if test "${lt_cv_cc_needs_belf+set}" = set; then
4218   echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220   ac_ext=c
4221 ac_cpp='$CPP $CPPFLAGS'
4222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225
4226      cat >conftest.$ac_ext <<_ACEOF
4227 #line $LINENO "configure"
4228 /* confdefs.h.  */
4229 _ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h.  */
4233
4234 int
4235 main ()
4236 {
4237
4238   ;
4239   return 0;
4240 }
4241 _ACEOF
4242 rm -f conftest.$ac_objext conftest$ac_exeext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4244   (eval $ac_link) 2>&5
4245   ac_status=$?
4246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247   (exit $ac_status); } &&
4248          { ac_try='test -s conftest$ac_exeext'
4249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250   (eval $ac_try) 2>&5
4251   ac_status=$?
4252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253   (exit $ac_status); }; }; then
4254   lt_cv_cc_needs_belf=yes
4255 else
4256   echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4258
4259 lt_cv_cc_needs_belf=no
4260 fi
4261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4262      ac_ext=c
4263 ac_cpp='$CPP $CPPFLAGS'
4264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4267
4268 fi
4269 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4270 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4271   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4272     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4273     CFLAGS="$SAVE_CFLAGS"
4274   fi
4275   ;;
4276
4277 esac
4278
4279 need_locks="$enable_libtool_lock"
4280
4281
4282 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4283 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4284 if test "${ac_cv_header_stdc+set}" = set; then
4285   echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287   cat >conftest.$ac_ext <<_ACEOF
4288 #line $LINENO "configure"
4289 /* confdefs.h.  */
4290 _ACEOF
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h.  */
4294 #include <stdlib.h>
4295 #include <stdarg.h>
4296 #include <string.h>
4297 #include <float.h>
4298
4299 int
4300 main ()
4301 {
4302
4303   ;
4304   return 0;
4305 }
4306 _ACEOF
4307 rm -f conftest.$ac_objext
4308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4309   (eval $ac_compile) 2>&5
4310   ac_status=$?
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); } &&
4313          { ac_try='test -s conftest.$ac_objext'
4314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315   (eval $ac_try) 2>&5
4316   ac_status=$?
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); }; }; then
4319   ac_cv_header_stdc=yes
4320 else
4321   echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4323
4324 ac_cv_header_stdc=no
4325 fi
4326 rm -f conftest.$ac_objext conftest.$ac_ext
4327
4328 if test $ac_cv_header_stdc = yes; then
4329   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4330   cat >conftest.$ac_ext <<_ACEOF
4331 #line $LINENO "configure"
4332 /* confdefs.h.  */
4333 _ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h.  */
4337 #include <string.h>
4338
4339 _ACEOF
4340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4341   $EGREP "memchr" >/dev/null 2>&1; then
4342   :
4343 else
4344   ac_cv_header_stdc=no
4345 fi
4346 rm -f conftest*
4347
4348 fi
4349
4350 if test $ac_cv_header_stdc = yes; then
4351   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4352   cat >conftest.$ac_ext <<_ACEOF
4353 #line $LINENO "configure"
4354 /* confdefs.h.  */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h.  */
4359 #include <stdlib.h>
4360
4361 _ACEOF
4362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4363   $EGREP "free" >/dev/null 2>&1; then
4364   :
4365 else
4366   ac_cv_header_stdc=no
4367 fi
4368 rm -f conftest*
4369
4370 fi
4371
4372 if test $ac_cv_header_stdc = yes; then
4373   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4374   if test "$cross_compiling" = yes; then
4375   :
4376 else
4377   cat >conftest.$ac_ext <<_ACEOF
4378 #line $LINENO "configure"
4379 /* confdefs.h.  */
4380 _ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h.  */
4384 #include <ctype.h>
4385 #if ((' ' & 0x0FF) == 0x020)
4386 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4387 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4388 #else
4389 # define ISLOWER(c) \
4390                    (('a' <= (c) && (c) <= 'i') \
4391                      || ('j' <= (c) && (c) <= 'r') \
4392                      || ('s' <= (c) && (c) <= 'z'))
4393 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4394 #endif
4395
4396 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4397 int
4398 main ()
4399 {
4400   int i;
4401   for (i = 0; i < 256; i++)
4402     if (XOR (islower (i), ISLOWER (i))
4403         || toupper (i) != TOUPPER (i))
4404       exit(2);
4405   exit (0);
4406 }
4407 _ACEOF
4408 rm -f conftest$ac_exeext
4409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4410   (eval $ac_link) 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415   (eval $ac_try) 2>&5
4416   ac_status=$?
4417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418   (exit $ac_status); }; }; then
4419   :
4420 else
4421   echo "$as_me: program exited with status $ac_status" >&5
4422 echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.$ac_ext >&5
4424
4425 ( exit $ac_status )
4426 ac_cv_header_stdc=no
4427 fi
4428 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4429 fi
4430 fi
4431 fi
4432 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4433 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4434 if test $ac_cv_header_stdc = yes; then
4435
4436 cat >>confdefs.h <<\_ACEOF
4437 #define STDC_HEADERS 1
4438 _ACEOF
4439
4440 fi
4441
4442 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4453                   inttypes.h stdint.h unistd.h
4454 do
4455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4456 echo "$as_me:$LINENO: checking for $ac_header" >&5
4457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4459   echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461   cat >conftest.$ac_ext <<_ACEOF
4462 #line $LINENO "configure"
4463 /* confdefs.h.  */
4464 _ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h.  */
4468 $ac_includes_default
4469
4470 #include <$ac_header>
4471 _ACEOF
4472 rm -f conftest.$ac_objext
4473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474   (eval $ac_compile) 2>&5
4475   ac_status=$?
4476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); } &&
4478          { ac_try='test -s conftest.$ac_objext'
4479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480   (eval $ac_try) 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }; }; then
4484   eval "$as_ac_Header=yes"
4485 else
4486   echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489 eval "$as_ac_Header=no"
4490 fi
4491 rm -f conftest.$ac_objext conftest.$ac_ext
4492 fi
4493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4496   cat >>confdefs.h <<_ACEOF
4497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4498 _ACEOF
4499
4500 fi
4501
4502 done
4503
4504
4505
4506 for ac_header in dlfcn.h
4507 do
4508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4510   echo "$as_me:$LINENO: checking for $ac_header" >&5
4511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 fi
4515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4517 else
4518   # Is the header compilable?
4519 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4521 cat >conftest.$ac_ext <<_ACEOF
4522 #line $LINENO "configure"
4523 /* confdefs.h.  */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h.  */
4528 $ac_includes_default
4529 #include <$ac_header>
4530 _ACEOF
4531 rm -f conftest.$ac_objext
4532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4533   (eval $ac_compile) 2>&5
4534   ac_status=$?
4535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); } &&
4537          { ac_try='test -s conftest.$ac_objext'
4538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539   (eval $ac_try) 2>&5
4540   ac_status=$?
4541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542   (exit $ac_status); }; }; then
4543   ac_header_compiler=yes
4544 else
4545   echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4547
4548 ac_header_compiler=no
4549 fi
4550 rm -f conftest.$ac_objext conftest.$ac_ext
4551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4552 echo "${ECHO_T}$ac_header_compiler" >&6
4553
4554 # Is the header present?
4555 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4557 cat >conftest.$ac_ext <<_ACEOF
4558 #line $LINENO "configure"
4559 /* confdefs.h.  */
4560 _ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h.  */
4564 #include <$ac_header>
4565 _ACEOF
4566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4567   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4568   ac_status=$?
4569   grep -v '^ *+' conftest.er1 >conftest.err
4570   rm -f conftest.er1
4571   cat conftest.err >&5
4572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573   (exit $ac_status); } >/dev/null; then
4574   if test -s conftest.err; then
4575     ac_cpp_err=$ac_c_preproc_warn_flag
4576   else
4577     ac_cpp_err=
4578   fi
4579 else
4580   ac_cpp_err=yes
4581 fi
4582 if test -z "$ac_cpp_err"; then
4583   ac_header_preproc=yes
4584 else
4585   echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4587
4588   ac_header_preproc=no
4589 fi
4590 rm -f conftest.err conftest.$ac_ext
4591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4592 echo "${ECHO_T}$ac_header_preproc" >&6
4593
4594 # So?  What about this header?
4595 case $ac_header_compiler:$ac_header_preproc in
4596   yes:no )
4597     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4599     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4601     (
4602       cat <<\_ASBOX
4603 ## ------------------------------------ ##
4604 ## Report this to bug-autoconf@gnu.org. ##
4605 ## ------------------------------------ ##
4606 _ASBOX
4607     ) |
4608       sed "s/^/$as_me: WARNING:     /" >&2
4609     ;;
4610   no:yes )
4611     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4613     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4615     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4617     (
4618       cat <<\_ASBOX
4619 ## ------------------------------------ ##
4620 ## Report this to bug-autoconf@gnu.org. ##
4621 ## ------------------------------------ ##
4622 _ASBOX
4623     ) |
4624       sed "s/^/$as_me: WARNING:     /" >&2
4625     ;;
4626 esac
4627 echo "$as_me:$LINENO: checking for $ac_header" >&5
4628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4630   echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632   eval "$as_ac_Header=$ac_header_preproc"
4633 fi
4634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4636
4637 fi
4638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4639   cat >>confdefs.h <<_ACEOF
4640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4641 _ACEOF
4642
4643 fi
4644
4645 done
4646
4647 ac_ext=cc
4648 ac_cpp='$CXXCPP $CPPFLAGS'
4649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4652 if test -n "$ac_tool_prefix"; then
4653   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4654   do
4655     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4657 echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4659 if test "${ac_cv_prog_CXX+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   if test -n "$CXX"; then
4663   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4664 else
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4667 do
4668   IFS=$as_save_IFS
4669   test -z "$as_dir" && as_dir=.
4670   for ac_exec_ext in '' $ac_executable_extensions; do
4671   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4672     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674     break 2
4675   fi
4676 done
4677 done
4678
4679 fi
4680 fi
4681 CXX=$ac_cv_prog_CXX
4682 if test -n "$CXX"; then
4683   echo "$as_me:$LINENO: result: $CXX" >&5
4684 echo "${ECHO_T}$CXX" >&6
4685 else
4686   echo "$as_me:$LINENO: result: no" >&5
4687 echo "${ECHO_T}no" >&6
4688 fi
4689
4690     test -n "$CXX" && break
4691   done
4692 fi
4693 if test -z "$CXX"; then
4694   ac_ct_CXX=$CXX
4695   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4696 do
4697   # Extract the first word of "$ac_prog", so it can be a program name with args.
4698 set dummy $ac_prog; ac_word=$2
4699 echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4701 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   if test -n "$ac_ct_CXX"; then
4705   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4709 do
4710   IFS=$as_save_IFS
4711   test -z "$as_dir" && as_dir=.
4712   for ac_exec_ext in '' $ac_executable_extensions; do
4713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4714     ac_cv_prog_ac_ct_CXX="$ac_prog"
4715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716     break 2
4717   fi
4718 done
4719 done
4720
4721 fi
4722 fi
4723 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4724 if test -n "$ac_ct_CXX"; then
4725   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4726 echo "${ECHO_T}$ac_ct_CXX" >&6
4727 else
4728   echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6
4730 fi
4731
4732   test -n "$ac_ct_CXX" && break
4733 done
4734 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4735
4736   CXX=$ac_ct_CXX
4737 fi
4738
4739
4740 # Provide some information about the compiler.
4741 echo "$as_me:$LINENO:" \
4742      "checking for C++ compiler version" >&5
4743 ac_compiler=`set X $ac_compile; echo $2`
4744 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4745   (eval $ac_compiler --version </dev/null >&5) 2>&5
4746   ac_status=$?
4747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748   (exit $ac_status); }
4749 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4750   (eval $ac_compiler -v </dev/null >&5) 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); }
4754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4755   (eval $ac_compiler -V </dev/null >&5) 2>&5
4756   ac_status=$?
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); }
4759
4760 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4761 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4762 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4763   echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765   cat >conftest.$ac_ext <<_ACEOF
4766 #line $LINENO "configure"
4767 /* confdefs.h.  */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h.  */
4772
4773 int
4774 main ()
4775 {
4776 #ifndef __GNUC__
4777        choke me
4778 #endif
4779
4780   ;
4781   return 0;
4782 }
4783 _ACEOF
4784 rm -f conftest.$ac_objext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4786   (eval $ac_compile) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); } &&
4790          { ac_try='test -s conftest.$ac_objext'
4791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792   (eval $ac_try) 2>&5
4793   ac_status=$?
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); }; }; then
4796   ac_compiler_gnu=yes
4797 else
4798   echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4800
4801 ac_compiler_gnu=no
4802 fi
4803 rm -f conftest.$ac_objext conftest.$ac_ext
4804 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4805
4806 fi
4807 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4808 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4809 GXX=`test $ac_compiler_gnu = yes && echo yes`
4810 ac_test_CXXFLAGS=${CXXFLAGS+set}
4811 ac_save_CXXFLAGS=$CXXFLAGS
4812 CXXFLAGS="-g"
4813 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4814 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4815 if test "${ac_cv_prog_cxx_g+set}" = set; then
4816   echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818   cat >conftest.$ac_ext <<_ACEOF
4819 #line $LINENO "configure"
4820 /* confdefs.h.  */
4821 _ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h.  */
4825
4826 int
4827 main ()
4828 {
4829
4830   ;
4831   return 0;
4832 }
4833 _ACEOF
4834 rm -f conftest.$ac_objext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836   (eval $ac_compile) 2>&5
4837   ac_status=$?
4838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839   (exit $ac_status); } &&
4840          { ac_try='test -s conftest.$ac_objext'
4841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842   (eval $ac_try) 2>&5
4843   ac_status=$?
4844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845   (exit $ac_status); }; }; then
4846   ac_cv_prog_cxx_g=yes
4847 else
4848   echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4850
4851 ac_cv_prog_cxx_g=no
4852 fi
4853 rm -f conftest.$ac_objext conftest.$ac_ext
4854 fi
4855 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4856 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4857 if test "$ac_test_CXXFLAGS" = set; then
4858   CXXFLAGS=$ac_save_CXXFLAGS
4859 elif test $ac_cv_prog_cxx_g = yes; then
4860   if test "$GXX" = yes; then
4861     CXXFLAGS="-g -O2"
4862   else
4863     CXXFLAGS="-g"
4864   fi
4865 else
4866   if test "$GXX" = yes; then
4867     CXXFLAGS="-O2"
4868   else
4869     CXXFLAGS=
4870   fi
4871 fi
4872 for ac_declaration in \
4873    ''\
4874    '#include <stdlib.h>' \
4875    'extern "C" void std::exit (int) throw (); using std::exit;' \
4876    'extern "C" void std::exit (int); using std::exit;' \
4877    'extern "C" void exit (int) throw ();' \
4878    'extern "C" void exit (int);' \
4879    'void exit (int);'
4880 do
4881   cat >conftest.$ac_ext <<_ACEOF
4882 #line $LINENO "configure"
4883 /* confdefs.h.  */
4884 _ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h.  */
4888 #include <stdlib.h>
4889 $ac_declaration
4890 int
4891 main ()
4892 {
4893 exit (42);
4894   ;
4895   return 0;
4896 }
4897 _ACEOF
4898 rm -f conftest.$ac_objext
4899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4900   (eval $ac_compile) 2>&5
4901   ac_status=$?
4902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); } &&
4904          { ac_try='test -s conftest.$ac_objext'
4905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906   (eval $ac_try) 2>&5
4907   ac_status=$?
4908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909   (exit $ac_status); }; }; then
4910   :
4911 else
4912   echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4914
4915 continue
4916 fi
4917 rm -f conftest.$ac_objext conftest.$ac_ext
4918   cat >conftest.$ac_ext <<_ACEOF
4919 #line $LINENO "configure"
4920 /* confdefs.h.  */
4921 _ACEOF
4922 cat confdefs.h >>conftest.$ac_ext
4923 cat >>conftest.$ac_ext <<_ACEOF
4924 /* end confdefs.h.  */
4925 $ac_declaration
4926 int
4927 main ()
4928 {
4929 exit (42);
4930   ;
4931   return 0;
4932 }
4933 _ACEOF
4934 rm -f conftest.$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936   (eval $ac_compile) 2>&5
4937   ac_status=$?
4938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939   (exit $ac_status); } &&
4940          { ac_try='test -s conftest.$ac_objext'
4941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942   (eval $ac_try) 2>&5
4943   ac_status=$?
4944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945   (exit $ac_status); }; }; then
4946   break
4947 else
4948   echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4950
4951 fi
4952 rm -f conftest.$ac_objext conftest.$ac_ext
4953 done
4954 rm -f conftest*
4955 if test -n "$ac_declaration"; then
4956   echo '#ifdef __cplusplus' >>confdefs.h
4957   echo $ac_declaration      >>confdefs.h
4958   echo '#endif'             >>confdefs.h
4959 fi
4960
4961 ac_ext=cc
4962 ac_cpp='$CXXCPP $CPPFLAGS'
4963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4966
4967 ac_ext=cc
4968 ac_cpp='$CXXCPP $CPPFLAGS'
4969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4972 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4973 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4974 if test -z "$CXXCPP"; then
4975   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4976   echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978       # Double quotes because CXXCPP needs to be expanded
4979     for CXXCPP in "$CXX -E" "/lib/cpp"
4980     do
4981       ac_preproc_ok=false
4982 for ac_cxx_preproc_warn_flag in '' yes
4983 do
4984   # Use a header file that comes with gcc, so configuring glibc
4985   # with a fresh cross-compiler works.
4986   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987   # <limits.h> exists even on freestanding compilers.
4988   # On the NeXT, cc -E runs the code through the compiler's parser,
4989   # not just through cpp. "Syntax error" is here to catch this case.
4990   cat >conftest.$ac_ext <<_ACEOF
4991 #line $LINENO "configure"
4992 /* confdefs.h.  */
4993 _ACEOF
4994 cat confdefs.h >>conftest.$ac_ext
4995 cat >>conftest.$ac_ext <<_ACEOF
4996 /* end confdefs.h.  */
4997 #ifdef __STDC__
4998 # include <limits.h>
4999 #else
5000 # include <assert.h>
5001 #endif
5002                      Syntax error
5003 _ACEOF
5004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5005   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5006   ac_status=$?
5007   grep -v '^ *+' conftest.er1 >conftest.err
5008   rm -f conftest.er1
5009   cat conftest.err >&5
5010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011   (exit $ac_status); } >/dev/null; then
5012   if test -s conftest.err; then
5013     ac_cpp_err=$ac_cxx_preproc_warn_flag
5014   else
5015     ac_cpp_err=
5016   fi
5017 else
5018   ac_cpp_err=yes
5019 fi
5020 if test -z "$ac_cpp_err"; then
5021   :
5022 else
5023   echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5025
5026   # Broken: fails on valid input.
5027 continue
5028 fi
5029 rm -f conftest.err conftest.$ac_ext
5030
5031   # OK, works on sane cases.  Now check whether non-existent headers
5032   # can be detected and how.
5033   cat >conftest.$ac_ext <<_ACEOF
5034 #line $LINENO "configure"
5035 /* confdefs.h.  */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h.  */
5040 #include <ac_nonexistent.h>
5041 _ACEOF
5042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5043   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5044   ac_status=$?
5045   grep -v '^ *+' conftest.er1 >conftest.err
5046   rm -f conftest.er1
5047   cat conftest.err >&5
5048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049   (exit $ac_status); } >/dev/null; then
5050   if test -s conftest.err; then
5051     ac_cpp_err=$ac_cxx_preproc_warn_flag
5052   else
5053     ac_cpp_err=
5054   fi
5055 else
5056   ac_cpp_err=yes
5057 fi
5058 if test -z "$ac_cpp_err"; then
5059   # Broken: success on invalid input.
5060 continue
5061 else
5062   echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065   # Passes both tests.
5066 ac_preproc_ok=:
5067 break
5068 fi
5069 rm -f conftest.err conftest.$ac_ext
5070
5071 done
5072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5073 rm -f conftest.err conftest.$ac_ext
5074 if $ac_preproc_ok; then
5075   break
5076 fi
5077
5078     done
5079     ac_cv_prog_CXXCPP=$CXXCPP
5080
5081 fi
5082   CXXCPP=$ac_cv_prog_CXXCPP
5083 else
5084   ac_cv_prog_CXXCPP=$CXXCPP
5085 fi
5086 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5087 echo "${ECHO_T}$CXXCPP" >&6
5088 ac_preproc_ok=false
5089 for ac_cxx_preproc_warn_flag in '' yes
5090 do
5091   # Use a header file that comes with gcc, so configuring glibc
5092   # with a fresh cross-compiler works.
5093   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5094   # <limits.h> exists even on freestanding compilers.
5095   # On the NeXT, cc -E runs the code through the compiler's parser,
5096   # not just through cpp. "Syntax error" is here to catch this case.
5097   cat >conftest.$ac_ext <<_ACEOF
5098 #line $LINENO "configure"
5099 /* confdefs.h.  */
5100 _ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h.  */
5104 #ifdef __STDC__
5105 # include <limits.h>
5106 #else
5107 # include <assert.h>
5108 #endif
5109                      Syntax error
5110 _ACEOF
5111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5112   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5113   ac_status=$?
5114   grep -v '^ *+' conftest.er1 >conftest.err
5115   rm -f conftest.er1
5116   cat conftest.err >&5
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); } >/dev/null; then
5119   if test -s conftest.err; then
5120     ac_cpp_err=$ac_cxx_preproc_warn_flag
5121   else
5122     ac_cpp_err=
5123   fi
5124 else
5125   ac_cpp_err=yes
5126 fi
5127 if test -z "$ac_cpp_err"; then
5128   :
5129 else
5130   echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133   # Broken: fails on valid input.
5134 continue
5135 fi
5136 rm -f conftest.err conftest.$ac_ext
5137
5138   # OK, works on sane cases.  Now check whether non-existent headers
5139   # can be detected and how.
5140   cat >conftest.$ac_ext <<_ACEOF
5141 #line $LINENO "configure"
5142 /* confdefs.h.  */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h.  */
5147 #include <ac_nonexistent.h>
5148 _ACEOF
5149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5150   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5151   ac_status=$?
5152   grep -v '^ *+' conftest.er1 >conftest.err
5153   rm -f conftest.er1
5154   cat conftest.err >&5
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); } >/dev/null; then
5157   if test -s conftest.err; then
5158     ac_cpp_err=$ac_cxx_preproc_warn_flag
5159   else
5160     ac_cpp_err=
5161   fi
5162 else
5163   ac_cpp_err=yes
5164 fi
5165 if test -z "$ac_cpp_err"; then
5166   # Broken: success on invalid input.
5167 continue
5168 else
5169   echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5171
5172   # Passes both tests.
5173 ac_preproc_ok=:
5174 break
5175 fi
5176 rm -f conftest.err conftest.$ac_ext
5177
5178 done
5179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5180 rm -f conftest.err conftest.$ac_ext
5181 if $ac_preproc_ok; then
5182   :
5183 else
5184   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5185 See \`config.log' for more details." >&5
5186 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5187 See \`config.log' for more details." >&2;}
5188    { (exit 1); exit 1; }; }
5189 fi
5190
5191 ac_ext=cc
5192 ac_cpp='$CXXCPP $CPPFLAGS'
5193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5196
5197
5198 ac_ext=f
5199 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5200 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5202 if test -n "$ac_tool_prefix"; then
5203   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5204   do
5205     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5207 echo "$as_me:$LINENO: checking for $ac_word" >&5
5208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5209 if test "${ac_cv_prog_F77+set}" = set; then
5210   echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212   if test -n "$F77"; then
5213   ac_cv_prog_F77="$F77" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5217 do
5218   IFS=$as_save_IFS
5219   test -z "$as_dir" && as_dir=.
5220   for ac_exec_ext in '' $ac_executable_extensions; do
5221   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5224     break 2
5225   fi
5226 done
5227 done
5228
5229 fi
5230 fi
5231 F77=$ac_cv_prog_F77
5232 if test -n "$F77"; then
5233   echo "$as_me:$LINENO: result: $F77" >&5
5234 echo "${ECHO_T}$F77" >&6
5235 else
5236   echo "$as_me:$LINENO: result: no" >&5
5237 echo "${ECHO_T}no" >&6
5238 fi
5239
5240     test -n "$F77" && break
5241   done
5242 fi
5243 if test -z "$F77"; then
5244   ac_ct_F77=$F77
5245   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5246 do
5247   # Extract the first word of "$ac_prog", so it can be a program name with args.
5248 set dummy $ac_prog; ac_word=$2
5249 echo "$as_me:$LINENO: checking for $ac_word" >&5
5250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5251 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5252   echo $ECHO_N "(cached) $ECHO_C" >&6
5253 else
5254   if test -n "$ac_ct_F77"; then
5255   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5256 else
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5259 do
5260   IFS=$as_save_IFS
5261   test -z "$as_dir" && as_dir=.
5262   for ac_exec_ext in '' $ac_executable_extensions; do
5263   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5264     ac_cv_prog_ac_ct_F77="$ac_prog"
5265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5266     break 2
5267   fi
5268 done
5269 done
5270
5271 fi
5272 fi
5273 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5274 if test -n "$ac_ct_F77"; then
5275   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5276 echo "${ECHO_T}$ac_ct_F77" >&6
5277 else
5278   echo "$as_me:$LINENO: result: no" >&5
5279 echo "${ECHO_T}no" >&6
5280 fi
5281
5282   test -n "$ac_ct_F77" && break
5283 done
5284
5285   F77=$ac_ct_F77
5286 fi
5287
5288
5289 # Provide some information about the compiler.
5290 echo "$as_me:5290:" \
5291      "checking for Fortran 77 compiler version" >&5
5292 ac_compiler=`set X $ac_compile; echo $2`
5293 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5294   (eval $ac_compiler --version </dev/null >&5) 2>&5
5295   ac_status=$?
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); }
5298 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5299   (eval $ac_compiler -v </dev/null >&5) 2>&5
5300   ac_status=$?
5301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302   (exit $ac_status); }
5303 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5304   (eval $ac_compiler -V </dev/null >&5) 2>&5
5305   ac_status=$?
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); }
5308
5309 # If we don't use `.F' as extension, the preprocessor is not run on the
5310 # input file.
5311 ac_save_ext=$ac_ext
5312 ac_ext=F
5313 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5314 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5315 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5316   echo $ECHO_N "(cached) $ECHO_C" >&6
5317 else
5318   cat >conftest.$ac_ext <<_ACEOF
5319       program main
5320 #ifndef __GNUC__
5321        choke me
5322 #endif
5323
5324       end
5325 _ACEOF
5326 rm -f conftest.$ac_objext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328   (eval $ac_compile) 2>&5
5329   ac_status=$?
5330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331   (exit $ac_status); } &&
5332          { ac_try='test -s conftest.$ac_objext'
5333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334   (eval $ac_try) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); }; }; then
5338   ac_compiler_gnu=yes
5339 else
5340   echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5342
5343 ac_compiler_gnu=no
5344 fi
5345 rm -f conftest.$ac_objext conftest.$ac_ext
5346 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5347
5348 fi
5349 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5350 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5351 ac_ext=$ac_save_ext
5352 G77=`test $ac_compiler_gnu = yes && echo yes`
5353 ac_test_FFLAGS=${FFLAGS+set}
5354 ac_save_FFLAGS=$FFLAGS
5355 FFLAGS=
5356 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5357 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5358 if test "${ac_cv_prog_f77_g+set}" = set; then
5359   echo $ECHO_N "(cached) $ECHO_C" >&6
5360 else
5361   FFLAGS=-g
5362 cat >conftest.$ac_ext <<_ACEOF
5363       program main
5364
5365       end
5366 _ACEOF
5367 rm -f conftest.$ac_objext
5368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5369   (eval $ac_compile) 2>&5
5370   ac_status=$?
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); } &&
5373          { ac_try='test -s conftest.$ac_objext'
5374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375   (eval $ac_try) 2>&5
5376   ac_status=$?
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); }; }; then
5379   ac_cv_prog_f77_g=yes
5380 else
5381   echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5383
5384 ac_cv_prog_f77_g=no
5385 fi
5386 rm -f conftest.$ac_objext conftest.$ac_ext
5387
5388 fi
5389 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5390 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5391 if test "$ac_test_FFLAGS" = set; then
5392   FFLAGS=$ac_save_FFLAGS
5393 elif test $ac_cv_prog_f77_g = yes; then
5394   if test "$G77" = yes; then
5395     FFLAGS="-g -O2"
5396   else
5397     FFLAGS="-g"
5398   fi
5399 else
5400   if test "$G77" = yes; then
5401     FFLAGS="-O2"
5402   else
5403     FFLAGS=
5404   fi
5405 fi
5406 ac_ext=c
5407 ac_cpp='$CPP $CPPFLAGS'
5408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5411
5412
5413
5414 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5415
5416 # find the maximum length of command line arguments
5417 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5418 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5419 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5420   echo $ECHO_N "(cached) $ECHO_C" >&6
5421 else
5422     i=0
5423   teststring="ABCD"
5424
5425   case $build_os in
5426   msdosdjgpp*)
5427     # On DJGPP, this test can blow up pretty badly due to problems in libc
5428     # (any single argument exceeding 2000 bytes causes a buffer overrun
5429     # during glob expansion).  Even if it were fixed, the result of this
5430     # check would be larger than it should be.
5431     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5432     ;;
5433
5434   gnu*)
5435     # Under GNU Hurd, this test is not required because there is
5436     # no limit to the length of command line arguments.
5437     # Libtool will interpret -1 as no limit whatsoever
5438     lt_cv_sys_max_cmd_len=-1;
5439     ;;
5440
5441   cygwin* | mingw*)
5442     # On Win9x/ME, this test blows up -- it succeeds, but takes
5443     # about 5 minutes as the teststring grows exponentially.
5444     # Worse, since 9x/ME are not pre-emptively multitasking,
5445     # you end up with a "frozen" computer, even though with patience
5446     # the test eventually succeeds (with a max line length of 256k).
5447     # Instead, let's just punt: use the minimum linelength reported by
5448     # all of the supported platforms: 8192 (on NT/2K/XP).
5449     lt_cv_sys_max_cmd_len=8192;
5450     ;;
5451
5452   amigaos*)
5453     # On AmigaOS with pdksh, this test takes hours, literally.
5454     # So we just punt and use a minimum line length of 8192.
5455     lt_cv_sys_max_cmd_len=8192;
5456     ;;
5457
5458  *)
5459     # If test is not a shell built-in, we'll probably end up computing a
5460     # maximum length that is only half of the actual maximum length, but
5461     # we can't tell.
5462     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5463                = "XX$teststring") >/dev/null 2>&1 &&
5464             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5465             lt_cv_sys_max_cmd_len=$new_result &&
5466             test $i != 17 # 1/2 MB should be enough
5467     do
5468       i=`expr $i + 1`
5469       teststring=$teststring$teststring
5470     done
5471     teststring=
5472     # Add a significant safety factor because C++ compilers can tack on massive
5473     # amounts of additional arguments before passing them to the linker.
5474     # It appears as though 1/2 is a usable value.
5475     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5476     ;;
5477   esac
5478
5479 fi
5480
5481 if test -n $lt_cv_sys_max_cmd_len ; then
5482   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5483 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5484 else
5485   echo "$as_me:$LINENO: result: none" >&5
5486 echo "${ECHO_T}none" >&6
5487 fi
5488
5489
5490
5491
5492 # Check for command to grab the raw symbol name followed by C symbol from nm.
5493 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5494 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5495 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5496   echo $ECHO_N "(cached) $ECHO_C" >&6
5497 else
5498
5499 # These are sane defaults that work on at least a few old systems.
5500 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5501
5502 # Character class describing NM global symbol codes.
5503 symcode='[BCDEGRST]'
5504
5505 # Regexp to match symbols that can be accessed directly from C.
5506 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5507
5508 # Transform the above into a raw symbol and a C symbol.
5509 symxfrm='\1 \2\3 \3'
5510
5511 # Transform an extracted symbol line into a proper C declaration
5512 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5513
5514 # Transform an extracted symbol line into symbol name and symbol address
5515 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5516
5517 # Define system-specific variables.
5518 case $host_os in
5519 aix*)
5520   symcode='[BCDT]'
5521   ;;
5522 cygwin* | mingw* | pw32*)
5523   symcode='[ABCDGISTW]'
5524   ;;
5525 hpux*) # Its linker distinguishes data from code symbols
5526   if test "$host_cpu" = ia64; then
5527     symcode='[ABCDEGRST]'
5528   fi
5529   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5530   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5531   ;;
5532 irix* | nonstopux*)
5533   symcode='[BCDEGRST]'
5534   ;;
5535 osf*)
5536   symcode='[BCDEGQRST]'
5537   ;;
5538 solaris* | sysv5*)
5539   symcode='[BDRT]'
5540   ;;
5541 sysv4)
5542   symcode='[DFNSTU]'
5543   ;;
5544 esac
5545
5546 # Handle CRLF in mingw tool chain
5547 opt_cr=
5548 case $build_os in
5549 mingw*)
5550   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5551   ;;
5552 esac
5553
5554 # If we're using GNU nm, then use its standard symbol codes.
5555 case `$NM -V 2>&1` in
5556 *GNU* | *'with BFD'*)
5557   symcode='[ABCDGIRSTW]' ;;
5558 esac
5559
5560 # Try without a prefix undercore, then with it.
5561 for ac_symprfx in "" "_"; do
5562
5563   # Write the raw and C identifiers.
5564   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5565
5566   # Check to see that the pipe works correctly.
5567   pipe_works=no
5568
5569   rm -f conftest*
5570   cat > conftest.$ac_ext <<EOF
5571 #ifdef __cplusplus
5572 extern "C" {
5573 #endif
5574 char nm_test_var;
5575 void nm_test_func(){}
5576 #ifdef __cplusplus
5577 }
5578 #endif
5579 int main(){nm_test_var='a';nm_test_func();return(0);}
5580 EOF
5581
5582   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583   (eval $ac_compile) 2>&5
5584   ac_status=$?
5585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586   (exit $ac_status); }; then
5587     # Now try to grab the symbols.
5588     nlist=conftest.nm
5589     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5590   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5591   ac_status=$?
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); } && test -s "$nlist"; then
5594       # Try sorting and uniquifying the output.
5595       if sort "$nlist" | uniq > "$nlist"T; then
5596         mv -f "$nlist"T "$nlist"
5597       else
5598         rm -f "$nlist"T
5599       fi
5600
5601       # Make sure that we snagged all the symbols we need.
5602       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5603         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5604           cat <<EOF > conftest.$ac_ext
5605 #ifdef __cplusplus
5606 extern "C" {
5607 #endif
5608
5609 EOF
5610           # Now generate the symbol file.
5611           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5612
5613           cat <<EOF >> conftest.$ac_ext
5614 #if defined (__STDC__) && __STDC__
5615 # define lt_ptr_t void *
5616 #else
5617 # define lt_ptr_t char *
5618 # define const
5619 #endif
5620
5621 /* The mapping between symbol names and symbols. */
5622 const struct {
5623   const char *name;
5624   lt_ptr_t address;
5625 }
5626 lt_preloaded_symbols[] =
5627 {
5628 EOF
5629           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5630           cat <<\EOF >> conftest.$ac_ext
5631   {0, (lt_ptr_t) 0}
5632 };
5633
5634 #ifdef __cplusplus
5635 }
5636 #endif
5637 EOF
5638           # Now try linking the two files.
5639           mv conftest.$ac_objext conftstm.$ac_objext
5640           lt_save_LIBS="$LIBS"
5641           lt_save_CFLAGS="$CFLAGS"
5642           LIBS="conftstm.$ac_objext"
5643           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5644           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5645   (eval $ac_link) 2>&5
5646   ac_status=$?
5647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5649             pipe_works=yes
5650           fi
5651           LIBS="$lt_save_LIBS"
5652           CFLAGS="$lt_save_CFLAGS"
5653         else
5654           echo "cannot find nm_test_func in $nlist" >&5
5655         fi
5656       else
5657         echo "cannot find nm_test_var in $nlist" >&5
5658       fi
5659     else
5660       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5661     fi
5662   else
5663     echo "$progname: failed program was:" >&5
5664     cat conftest.$ac_ext >&5
5665   fi
5666   rm -f conftest* conftst*
5667
5668   # Do not use the global_symbol_pipe unless it works.
5669   if test "$pipe_works" = yes; then
5670     break
5671   else
5672     lt_cv_sys_global_symbol_pipe=
5673   fi
5674 done
5675
5676 fi
5677
5678 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5679   lt_cv_sys_global_symbol_to_cdecl=
5680 fi
5681 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5682   echo "$as_me:$LINENO: result: failed" >&5
5683 echo "${ECHO_T}failed" >&6
5684 else
5685   echo "$as_me:$LINENO: result: ok" >&5
5686 echo "${ECHO_T}ok" >&6
5687 fi
5688
5689 echo "$as_me:$LINENO: checking for objdir" >&5
5690 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5691 if test "${lt_cv_objdir+set}" = set; then
5692   echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694   rm -f .libs 2>/dev/null
5695 mkdir .libs 2>/dev/null
5696 if test -d .libs; then
5697   lt_cv_objdir=.libs
5698 else
5699   # MS-DOS does not allow filenames that begin with a dot.
5700   lt_cv_objdir=_libs
5701 fi
5702 rmdir .libs 2>/dev/null
5703 fi
5704 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5705 echo "${ECHO_T}$lt_cv_objdir" >&6
5706 objdir=$lt_cv_objdir
5707
5708
5709
5710
5711
5712 case $host_os in
5713 aix3*)
5714   # AIX sometimes has problems with the GCC collect2 program.  For some
5715   # reason, if we set the COLLECT_NAMES environment variable, the problems
5716   # vanish in a puff of smoke.
5717   if test "X${COLLECT_NAMES+set}" != Xset; then
5718     COLLECT_NAMES=
5719     export COLLECT_NAMES
5720   fi
5721   ;;
5722 esac
5723
5724 # Sed substitution that helps us do robust quoting.  It backslashifies
5725 # metacharacters that are still active within double-quoted strings.
5726 Xsed='sed -e s/^X//'
5727 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5728
5729 # Same as above, but do not quote variable references.
5730 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5731
5732 # Sed substitution to delay expansion of an escaped shell variable in a
5733 # double_quote_subst'ed string.
5734 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5735
5736 # Sed substitution to avoid accidental globbing in evaled expressions
5737 no_glob_subst='s/\*/\\\*/g'
5738
5739 # Constants:
5740 rm="rm -f"
5741
5742 # Global variables:
5743 default_ofile=libtool
5744 can_build_shared=yes
5745
5746 # All known linkers require a `.a' archive for static linking (except M$VC,
5747 # which needs '.lib').
5748 libext=a
5749 ltmain="$ac_aux_dir/ltmain.sh"
5750 ofile="$default_ofile"
5751 with_gnu_ld="$lt_cv_prog_gnu_ld"
5752
5753 if test -n "$ac_tool_prefix"; then
5754   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5755 set dummy ${ac_tool_prefix}ar; ac_word=$2
5756 echo "$as_me:$LINENO: checking for $ac_word" >&5
5757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5758 if test "${ac_cv_prog_AR+set}" = set; then
5759   echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761   if test -n "$AR"; then
5762   ac_cv_prog_AR="$AR" # Let the user override the test.
5763 else
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5766 do
5767   IFS=$as_save_IFS
5768   test -z "$as_dir" && as_dir=.
5769   for ac_exec_ext in '' $ac_executable_extensions; do
5770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771     ac_cv_prog_AR="${ac_tool_prefix}ar"
5772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773     break 2
5774   fi
5775 done
5776 done
5777
5778 fi
5779 fi
5780 AR=$ac_cv_prog_AR
5781 if test -n "$AR"; then
5782   echo "$as_me:$LINENO: result: $AR" >&5
5783 echo "${ECHO_T}$AR" >&6
5784 else
5785   echo "$as_me:$LINENO: result: no" >&5
5786 echo "${ECHO_T}no" >&6
5787 fi
5788
5789 fi
5790 if test -z "$ac_cv_prog_AR"; then
5791   ac_ct_AR=$AR
5792   # Extract the first word of "ar", so it can be a program name with args.
5793 set dummy ar; ac_word=$2
5794 echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5796 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5797   echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799   if test -n "$ac_ct_AR"; then
5800   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805   IFS=$as_save_IFS
5806   test -z "$as_dir" && as_dir=.
5807   for ac_exec_ext in '' $ac_executable_extensions; do
5808   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809     ac_cv_prog_ac_ct_AR="ar"
5810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811     break 2
5812   fi
5813 done
5814 done
5815
5816   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5817 fi
5818 fi
5819 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5820 if test -n "$ac_ct_AR"; then
5821   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5822 echo "${ECHO_T}$ac_ct_AR" >&6
5823 else
5824   echo "$as_me:$LINENO: result: no" >&5
5825 echo "${ECHO_T}no" >&6
5826 fi
5827
5828   AR=$ac_ct_AR
5829 else
5830   AR="$ac_cv_prog_AR"
5831 fi
5832
5833 if test -n "$ac_tool_prefix"; then
5834   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5835 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5836 echo "$as_me:$LINENO: checking for $ac_word" >&5
5837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5838 if test "${ac_cv_prog_RANLIB+set}" = set; then
5839   echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841   if test -n "$RANLIB"; then
5842   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5843 else
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 for as_dir in $PATH
5846 do
5847   IFS=$as_save_IFS
5848   test -z "$as_dir" && as_dir=.
5849   for ac_exec_ext in '' $ac_executable_extensions; do
5850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5853     break 2
5854   fi
5855 done
5856 done
5857
5858 fi
5859 fi
5860 RANLIB=$ac_cv_prog_RANLIB
5861 if test -n "$RANLIB"; then
5862   echo "$as_me:$LINENO: result: $RANLIB" >&5
5863 echo "${ECHO_T}$RANLIB" >&6
5864 else
5865   echo "$as_me:$LINENO: result: no" >&5
5866 echo "${ECHO_T}no" >&6
5867 fi
5868
5869 fi
5870 if test -z "$ac_cv_prog_RANLIB"; then
5871   ac_ct_RANLIB=$RANLIB
5872   # Extract the first word of "ranlib", so it can be a program name with args.
5873 set dummy ranlib; ac_word=$2
5874 echo "$as_me:$LINENO: checking for $ac_word" >&5
5875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5876 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   if test -n "$ac_ct_RANLIB"; then
5880   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885   IFS=$as_save_IFS
5886   test -z "$as_dir" && as_dir=.
5887   for ac_exec_ext in '' $ac_executable_extensions; do
5888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889     ac_cv_prog_ac_ct_RANLIB="ranlib"
5890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891     break 2
5892   fi
5893 done
5894 done
5895
5896   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5897 fi
5898 fi
5899 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5900 if test -n "$ac_ct_RANLIB"; then
5901   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5902 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5903 else
5904   echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6
5906 fi
5907
5908   RANLIB=$ac_ct_RANLIB
5909 else
5910   RANLIB="$ac_cv_prog_RANLIB"
5911 fi
5912
5913 if test -n "$ac_tool_prefix"; then
5914   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5915 set dummy ${ac_tool_prefix}strip; ac_word=$2
5916 echo "$as_me:$LINENO: checking for $ac_word" >&5
5917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5918 if test "${ac_cv_prog_STRIP+set}" = set; then
5919   echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921   if test -n "$STRIP"; then
5922   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5926 do
5927   IFS=$as_save_IFS
5928   test -z "$as_dir" && as_dir=.
5929   for ac_exec_ext in '' $ac_executable_extensions; do
5930   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5933     break 2
5934   fi
5935 done
5936 done
5937
5938 fi
5939 fi
5940 STRIP=$ac_cv_prog_STRIP
5941 if test -n "$STRIP"; then
5942   echo "$as_me:$LINENO: result: $STRIP" >&5
5943 echo "${ECHO_T}$STRIP" >&6
5944 else
5945   echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6
5947 fi
5948
5949 fi
5950 if test -z "$ac_cv_prog_STRIP"; then
5951   ac_ct_STRIP=$STRIP
5952   # Extract the first word of "strip", so it can be a program name with args.
5953 set dummy strip; ac_word=$2
5954 echo "$as_me:$LINENO: checking for $ac_word" >&5
5955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5956 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5957   echo $ECHO_N "(cached) $ECHO_C" >&6
5958 else
5959   if test -n "$ac_ct_STRIP"; then
5960   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5961 else
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH
5964 do
5965   IFS=$as_save_IFS
5966   test -z "$as_dir" && as_dir=.
5967   for ac_exec_ext in '' $ac_executable_extensions; do
5968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969     ac_cv_prog_ac_ct_STRIP="strip"
5970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971     break 2
5972   fi
5973 done
5974 done
5975
5976   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5977 fi
5978 fi
5979 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5980 if test -n "$ac_ct_STRIP"; then
5981   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5982 echo "${ECHO_T}$ac_ct_STRIP" >&6
5983 else
5984   echo "$as_me:$LINENO: result: no" >&5
5985 echo "${ECHO_T}no" >&6
5986 fi
5987
5988   STRIP=$ac_ct_STRIP
5989 else
5990   STRIP="$ac_cv_prog_STRIP"
5991 fi
5992
5993
5994 old_CC="$CC"
5995 old_CFLAGS="$CFLAGS"
5996
5997 # Set sane defaults for various variables
5998 test -z "$AR" && AR=ar
5999 test -z "$AR_FLAGS" && AR_FLAGS=cru
6000 test -z "$AS" && AS=as
6001 test -z "$CC" && CC=cc
6002 test -z "$LTCC" && LTCC=$CC
6003 test -z "$DLLTOOL" && DLLTOOL=dlltool
6004 test -z "$LD" && LD=ld
6005 test -z "$LN_S" && LN_S="ln -s"
6006 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6007 test -z "$NM" && NM=nm
6008 test -z "$SED" && SED=sed
6009 test -z "$OBJDUMP" && OBJDUMP=objdump
6010 test -z "$RANLIB" && RANLIB=:
6011 test -z "$STRIP" && STRIP=:
6012 test -z "$ac_objext" && ac_objext=o
6013
6014 # Determine commands to create old-style static archives.
6015 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6016 old_postinstall_cmds='chmod 644 $oldlib'
6017 old_postuninstall_cmds=
6018
6019 if test -n "$RANLIB"; then
6020   case $host_os in
6021   openbsd*)
6022     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6023     ;;
6024   *)
6025     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6026     ;;
6027   esac
6028   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6029 fi
6030
6031 # Only perform the check for file, if the check method requires it
6032 case $deplibs_check_method in
6033 file_magic*)
6034   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6035     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6036 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6037 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   case $MAGIC_CMD in
6041 [\\/*] |  ?:[\\/]*)
6042   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6043   ;;
6044 *)
6045   lt_save_MAGIC_CMD="$MAGIC_CMD"
6046   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6047   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6048   for ac_dir in $ac_dummy; do
6049     IFS="$lt_save_ifs"
6050     test -z "$ac_dir" && ac_dir=.
6051     if test -f $ac_dir/${ac_tool_prefix}file; then
6052       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6053       if test -n "$file_magic_test_file"; then
6054         case $deplibs_check_method in
6055         "file_magic "*)
6056           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6057           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6058           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6059             $EGREP "$file_magic_regex" > /dev/null; then
6060             :
6061           else
6062             cat <<EOF 1>&2
6063
6064 *** Warning: the command libtool uses to detect shared libraries,
6065 *** $file_magic_cmd, produces output that libtool cannot recognize.
6066 *** The result is that libtool may fail to recognize shared libraries
6067 *** as such.  This will affect the creation of libtool libraries that
6068 *** depend on shared libraries, but programs linked with such libtool
6069 *** libraries will work regardless of this problem.  Nevertheless, you
6070 *** may want to report the problem to your system manager and/or to
6071 *** bug-libtool@gnu.org
6072
6073 EOF
6074           fi ;;
6075         esac
6076       fi
6077       break
6078     fi
6079   done
6080   IFS="$lt_save_ifs"
6081   MAGIC_CMD="$lt_save_MAGIC_CMD"
6082   ;;
6083 esac
6084 fi
6085
6086 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6087 if test -n "$MAGIC_CMD"; then
6088   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6089 echo "${ECHO_T}$MAGIC_CMD" >&6
6090 else
6091   echo "$as_me:$LINENO: result: no" >&5
6092 echo "${ECHO_T}no" >&6
6093 fi
6094
6095 if test -z "$lt_cv_path_MAGIC_CMD"; then
6096   if test -n "$ac_tool_prefix"; then
6097     echo "$as_me:$LINENO: checking for file" >&5
6098 echo $ECHO_N "checking for file... $ECHO_C" >&6
6099 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6100   echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102   case $MAGIC_CMD in
6103 [\\/*] |  ?:[\\/]*)
6104   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6105   ;;
6106 *)
6107   lt_save_MAGIC_CMD="$MAGIC_CMD"
6108   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6109   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6110   for ac_dir in $ac_dummy; do
6111     IFS="$lt_save_ifs"
6112     test -z "$ac_dir" && ac_dir=.
6113     if test -f $ac_dir/file; then
6114       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6115       if test -n "$file_magic_test_file"; then
6116         case $deplibs_check_method in
6117         "file_magic "*)
6118           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6119           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6120           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6121             $EGREP "$file_magic_regex" > /dev/null; then
6122             :
6123           else
6124             cat <<EOF 1>&2
6125
6126 *** Warning: the command libtool uses to detect shared libraries,
6127 *** $file_magic_cmd, produces output that libtool cannot recognize.
6128 *** The result is that libtool may fail to recognize shared libraries
6129 *** as such.  This will affect the creation of libtool libraries that
6130 *** depend on shared libraries, but programs linked with such libtool
6131 *** libraries will work regardless of this problem.  Nevertheless, you
6132 *** may want to report the problem to your system manager and/or to
6133 *** bug-libtool@gnu.org
6134
6135 EOF
6136           fi ;;
6137         esac
6138       fi
6139       break
6140     fi
6141   done
6142   IFS="$lt_save_ifs"
6143   MAGIC_CMD="$lt_save_MAGIC_CMD"
6144   ;;
6145 esac
6146 fi
6147
6148 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6149 if test -n "$MAGIC_CMD"; then
6150   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6151 echo "${ECHO_T}$MAGIC_CMD" >&6
6152 else
6153   echo "$as_me:$LINENO: result: no" >&5
6154 echo "${ECHO_T}no" >&6
6155 fi
6156
6157   else
6158     MAGIC_CMD=:
6159   fi
6160 fi
6161
6162   fi
6163   ;;
6164 esac
6165
6166 enable_dlopen=yes
6167 enable_win32_dll=no
6168
6169 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6170 if test "${enable_libtool_lock+set}" = set; then
6171   enableval="$enable_libtool_lock"
6172
6173 fi;
6174 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6175
6176
6177 # Check whether --with-pic or --without-pic was given.
6178 if test "${with_pic+set}" = set; then
6179   withval="$with_pic"
6180   pic_mode="$withval"
6181 else
6182   pic_mode=default
6183 fi;
6184 test -z "$pic_mode" && pic_mode=default
6185
6186 # Use C for the default configuration in the libtool script
6187 tagname=
6188 lt_save_CC="$CC"
6189 ac_ext=c
6190 ac_cpp='$CPP $CPPFLAGS'
6191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194
6195
6196 # Source file extension for C test sources.
6197 ac_ext=c
6198
6199 # Object file extension for compiled C test sources.
6200 objext=o
6201 objext=$objext
6202
6203 # Code to be used in simple compile tests
6204 lt_simple_compile_test_code="int some_variable = 0;\n"
6205
6206 # Code to be used in simple link tests
6207 lt_simple_link_test_code='int main(){return(0);}\n'
6208
6209
6210 # If no C compiler was specified, use CC.
6211 LTCC=${LTCC-"$CC"}
6212
6213 # Allow CC to be a program name with arguments.
6214 compiler=$CC
6215
6216
6217 #
6218 # Check for any special shared library compilation flags.
6219 #
6220 lt_prog_cc_shlib=
6221 if test "$GCC" = no; then
6222   case $host_os in
6223   sco3.2v5*)
6224     lt_prog_cc_shlib='-belf'
6225     ;;
6226   esac
6227 fi
6228 if test -n "$lt_prog_cc_shlib"; then
6229   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6230 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6231   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6232   else
6233     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6234 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6235     lt_cv_prog_cc_can_build_shared=no
6236   fi
6237 fi
6238
6239
6240 #
6241 # Check to make sure the static flag actually works.
6242 #
6243 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6244 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6245 if test "${lt_prog_compiler_static_works+set}" = set; then
6246   echo $ECHO_N "(cached) $ECHO_C" >&6
6247 else
6248   lt_prog_compiler_static_works=no
6249    save_LDFLAGS="$LDFLAGS"
6250    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6251    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6252    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6253      # The compiler can only warn and ignore the option if not recognized
6254      # So say no if there are warnings
6255      if test -s conftest.err; then
6256        # Append any errors to the config.log.
6257        cat conftest.err 1>&5
6258      else
6259        lt_prog_compiler_static_works=yes
6260      fi
6261    fi
6262    $rm conftest*
6263    LDFLAGS="$save_LDFLAGS"
6264
6265 fi
6266 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6267 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6268
6269 if test x"$lt_prog_compiler_static_works" = xyes; then
6270     :
6271 else
6272     lt_prog_compiler_static=
6273 fi
6274
6275
6276
6277
6278 lt_prog_compiler_no_builtin_flag=
6279
6280 if test "$GCC" = yes; then
6281   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6282
6283
6284 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6285 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6286 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6287   echo $ECHO_N "(cached) $ECHO_C" >&6
6288 else
6289   lt_cv_prog_compiler_rtti_exceptions=no
6290   ac_outfile=conftest.$ac_objext
6291    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6292    lt_compiler_flag="-fno-rtti -fno-exceptions"
6293    # Insert the option either (1) after the last *FLAGS variable, or
6294    # (2) before a word containing "conftest.", or (3) at the end.
6295    # Note that $ac_compile itself does not contain backslashes and begins
6296    # with a dollar sign (not a hyphen), so the echo should work correctly.
6297    # The option is referenced via a variable to avoid confusing sed.
6298    lt_compile=`echo "$ac_compile" | $SED \
6299    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6300    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6301    -e 's:$: $lt_compiler_flag:'`
6302    (eval echo "\"\$as_me:6302: $lt_compile\"" >&5)
6303    (eval "$lt_compile" 2>conftest.err)
6304    ac_status=$?
6305    cat conftest.err >&5
6306    echo "$as_me:6306: \$? = $ac_status" >&5
6307    if (exit $ac_status) && test -s "$ac_outfile"; then
6308      # The compiler can only warn and ignore the option if not recognized
6309      # So say no if there are warnings
6310      if test ! -s conftest.err; then
6311        lt_cv_prog_compiler_rtti_exceptions=yes
6312      fi
6313    fi
6314    $rm conftest*
6315
6316 fi
6317 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6318 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6319
6320 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6321     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6322 else
6323     :
6324 fi
6325
6326 fi
6327
6328 lt_prog_compiler_wl=
6329 lt_prog_compiler_pic=
6330 lt_prog_compiler_static=
6331
6332 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6333 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6334
6335   if test "$GCC" = yes; then
6336     lt_prog_compiler_wl='-Wl,'
6337     lt_prog_compiler_static='-static'
6338
6339     case $host_os in
6340       aix*)
6341       # All AIX code is PIC.
6342       if test "$host_cpu" = ia64; then
6343         # AIX 5 now supports IA64 processor
6344         lt_prog_compiler_static='-Bstatic'
6345       fi
6346       ;;
6347
6348     amigaos*)
6349       # FIXME: we need at least 68020 code to build shared libraries, but
6350       # adding the `-m68020' flag to GCC prevents building anything better,
6351       # like `-m68040'.
6352       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6353       ;;
6354
6355     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6356       # PIC is the default for these OSes.
6357       ;;
6358
6359     mingw* | pw32* | os2*)
6360       # This hack is so that the source file can tell whether it is being
6361       # built for inclusion in a dll (and should export symbols for example).
6362       lt_prog_compiler_pic='-DDLL_EXPORT'
6363       ;;
6364
6365     darwin* | rhapsody*)
6366       # PIC is the default on this platform
6367       # Common symbols not allowed in MH_DYLIB files
6368       lt_prog_compiler_pic='-fno-common'
6369       ;;
6370
6371     msdosdjgpp*)
6372       # Just because we use GCC doesn't mean we suddenly get shared libraries
6373       # on systems that don't support them.
6374       lt_prog_compiler_can_build_shared=no
6375       enable_shared=no
6376       ;;
6377
6378     sysv4*MP*)
6379       if test -d /usr/nec; then
6380         lt_prog_compiler_pic=-Kconform_pic
6381       fi
6382       ;;
6383
6384     hpux*)
6385       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6386       # not for PA HP-UX.
6387       case "$host_cpu" in
6388       hppa*64*|ia64*)
6389         # +Z the default
6390         ;;
6391       *)
6392         lt_prog_compiler_pic='-fPIC'
6393         ;;
6394       esac
6395       ;;
6396
6397     *)
6398       lt_prog_compiler_pic='-fPIC'
6399       ;;
6400     esac
6401   else
6402     # PORTME Check for flag to pass linker flags through the system compiler.
6403     case $host_os in
6404     aix*)
6405       lt_prog_compiler_wl='-Wl,'
6406       if test "$host_cpu" = ia64; then
6407         # AIX 5 now supports IA64 processor
6408         lt_prog_compiler_static='-Bstatic'
6409       else
6410         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6411       fi
6412       ;;
6413
6414     mingw* | pw32* | os2*)
6415       # This hack is so that the source file can tell whether it is being
6416       # built for inclusion in a dll (and should export symbols for example).
6417       lt_prog_compiler_pic='-DDLL_EXPORT'
6418       ;;
6419
6420     hpux9* | hpux10* | hpux11*)
6421       lt_prog_compiler_wl='-Wl,'
6422       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6423       # not for PA HP-UX.
6424       case "$host_cpu" in
6425       hppa*64*|ia64*)
6426         # +Z the default
6427         ;;
6428       *)
6429         lt_prog_compiler_pic='+Z'
6430         ;;
6431       esac
6432       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6433       lt_prog_compiler_static='${wl}-a ${wl}archive'
6434       ;;
6435
6436     irix5* | irix6* | nonstopux*)
6437       lt_prog_compiler_wl='-Wl,'
6438       # PIC (with -KPIC) is the default.
6439       lt_prog_compiler_static='-non_shared'
6440       ;;
6441
6442     newsos6)
6443       lt_prog_compiler_pic='-KPIC'
6444       lt_prog_compiler_static='-Bstatic'
6445       ;;
6446
6447     linux*)
6448       case $CC in
6449       icc* | ecc*)
6450         lt_prog_compiler_wl='-Wl,'
6451         lt_prog_compiler_pic='-KPIC'
6452         lt_prog_compiler_static='-static'
6453         ;;
6454       ccc*)
6455         lt_prog_compiler_wl='-Wl,'
6456         # All Alpha code is PIC.
6457         lt_prog_compiler_static='-non_shared'
6458         ;;
6459       esac
6460       ;;
6461
6462     osf3* | osf4* | osf5*)
6463       lt_prog_compiler_wl='-Wl,'
6464       # All OSF/1 code is PIC.
6465       lt_prog_compiler_static='-non_shared'
6466       ;;
6467
6468     sco3.2v5*)
6469       lt_prog_compiler_pic='-Kpic'
6470       lt_prog_compiler_static='-dn'
6471       ;;
6472
6473     solaris*)
6474       lt_prog_compiler_wl='-Wl,'
6475       lt_prog_compiler_pic='-KPIC'
6476       lt_prog_compiler_static='-Bstatic'
6477       ;;
6478
6479     sunos4*)
6480       lt_prog_compiler_wl='-Qoption ld '
6481       lt_prog_compiler_pic='-PIC'
6482       lt_prog_compiler_static='-Bstatic'
6483       ;;
6484
6485     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6486       lt_prog_compiler_wl='-Wl,'
6487       lt_prog_compiler_pic='-KPIC'
6488       lt_prog_compiler_static='-Bstatic'
6489       ;;
6490
6491     sysv4*MP*)
6492       if test -d /usr/nec ;then
6493         lt_prog_compiler_pic='-Kconform_pic'
6494         lt_prog_compiler_static='-Bstatic'
6495       fi
6496       ;;
6497
6498     uts4*)
6499       lt_prog_compiler_pic='-pic'
6500       lt_prog_compiler_static='-Bstatic'
6501       ;;
6502
6503     *)
6504       lt_prog_compiler_can_build_shared=no
6505       ;;
6506     esac
6507   fi
6508
6509 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6510 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6511
6512 #
6513 # Check to make sure the PIC flag actually works.
6514 #
6515 if test -n "$lt_prog_compiler_pic"; then
6516
6517 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6518 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6519 if test "${lt_prog_compiler_pic_works+set}" = set; then
6520   echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522   lt_prog_compiler_pic_works=no
6523   ac_outfile=conftest.$ac_objext
6524    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6525    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6526    # Insert the option either (1) after the last *FLAGS variable, or
6527    # (2) before a word containing "conftest.", or (3) at the end.
6528    # Note that $ac_compile itself does not contain backslashes and begins
6529    # with a dollar sign (not a hyphen), so the echo should work correctly.
6530    # The option is referenced via a variable to avoid confusing sed.
6531    lt_compile=`echo "$ac_compile" | $SED \
6532    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6533    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6534    -e 's:$: $lt_compiler_flag:'`
6535    (eval echo "\"\$as_me:6535: $lt_compile\"" >&5)
6536    (eval "$lt_compile" 2>conftest.err)
6537    ac_status=$?
6538    cat conftest.err >&5
6539    echo "$as_me:6539: \$? = $ac_status" >&5
6540    if (exit $ac_status) && test -s "$ac_outfile"; then
6541      # The compiler can only warn and ignore the option if not recognized
6542      # So say no if there are warnings
6543      if test ! -s conftest.err; then
6544        lt_prog_compiler_pic_works=yes
6545      fi
6546    fi
6547    $rm conftest*
6548
6549 fi
6550 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6551 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6552
6553 if test x"$lt_prog_compiler_pic_works" = xyes; then
6554     case $lt_prog_compiler_pic in
6555      "" | " "*) ;;
6556      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6557      esac
6558 else
6559     lt_prog_compiler_pic=
6560      lt_prog_compiler_can_build_shared=no
6561 fi
6562
6563 fi
6564 case "$host_os" in
6565   # For platforms which do not support PIC, -DPIC is meaningless:
6566   *djgpp*)
6567     lt_prog_compiler_pic=
6568     ;;
6569   *)
6570     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6571     ;;
6572 esac
6573
6574 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6575 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6576 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6577   echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579   lt_cv_prog_compiler_c_o=no
6580    $rm -r conftest 2>/dev/null
6581    mkdir conftest
6582    cd conftest
6583    mkdir out
6584    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6585
6586    lt_compiler_flag="-o out/conftest2.$ac_objext"
6587    # Insert the option either (1) after the last *FLAGS variable, or
6588    # (2) before a word containing "conftest.", or (3) at the end.
6589    # Note that $ac_compile itself does not contain backslashes and begins
6590    # with a dollar sign (not a hyphen), so the echo should work correctly.
6591    lt_compile=`echo "$ac_compile" | $SED \
6592    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6593    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6594    -e 's:$: $lt_compiler_flag:'`
6595    (eval echo "\"\$as_me:6595: $lt_compile\"" >&5)
6596    (eval "$lt_compile" 2>out/conftest.err)
6597    ac_status=$?
6598    cat out/conftest.err >&5
6599    echo "$as_me:6599: \$? = $ac_status" >&5
6600    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6601    then
6602      # The compiler can only warn and ignore the option if not recognized
6603      # So say no if there are warnings
6604      if test ! -s out/conftest.err; then
6605        lt_cv_prog_compiler_c_o=yes
6606      fi
6607    fi
6608    chmod u+w .
6609    $rm conftest*
6610    # SGI C++ compiler will create directory out/ii_files/ for
6611    # template instantiation
6612    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6613    $rm out/* && rmdir out
6614    cd ..
6615    rmdir conftest
6616    $rm conftest*
6617
6618 fi
6619 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6620 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6621
6622
6623 hard_links="nottested"
6624 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6625   # do not overwrite the value of need_locks provided by the user
6626   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6627 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6628   hard_links=yes
6629   $rm conftest*
6630   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6631   touch conftest.a
6632   ln conftest.a conftest.b 2>&5 || hard_links=no
6633   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6634   echo "$as_me:$LINENO: result: $hard_links" >&5
6635 echo "${ECHO_T}$hard_links" >&6
6636   if test "$hard_links" = no; then
6637     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6638 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6639     need_locks=warn
6640   fi
6641 else
6642   need_locks=no
6643 fi
6644
6645 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6646 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6647
6648   runpath_var=
6649   allow_undefined_flag=
6650   enable_shared_with_static_runtimes=no
6651   archive_cmds=
6652   archive_expsym_cmds=
6653   old_archive_From_new_cmds=
6654   old_archive_from_expsyms_cmds=
6655   export_dynamic_flag_spec=
6656   whole_archive_flag_spec=
6657   thread_safe_flag_spec=
6658   hardcode_libdir_flag_spec=
6659   hardcode_libdir_flag_spec_ld=
6660   hardcode_libdir_separator=
6661   hardcode_direct=no
6662   hardcode_minus_L=no
6663   hardcode_shlibpath_var=unsupported
6664   link_all_deplibs=unknown
6665   hardcode_automatic=no
6666   module_cmds=
6667   module_expsym_cmds=
6668   always_export_symbols=no
6669   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6670   # include_expsyms should be a list of space-separated symbols to be *always*
6671   # included in the symbol list
6672   include_expsyms=
6673   # exclude_expsyms can be an extended regexp of symbols to exclude
6674   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6675   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6676   # as well as any symbol that contains `d'.
6677   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6678   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6679   # platforms (ab)use it in PIC code, but their linkers get confused if
6680   # the symbol is explicitly referenced.  Since portable code cannot
6681   # rely on this symbol name, it's probably fine to never include it in
6682   # preloaded symbol tables.
6683   extract_expsyms_cmds=
6684
6685   case $host_os in
6686   cygwin* | mingw* | pw32*)
6687     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6688     # When not using gcc, we currently assume that we are using
6689     # Microsoft Visual C++.
6690     if test "$GCC" != yes; then
6691       with_gnu_ld=no
6692     fi
6693     ;;
6694   openbsd*)
6695     with_gnu_ld=no
6696     ;;
6697   esac
6698
6699   ld_shlibs=yes
6700   if test "$with_gnu_ld" = yes; then
6701     # If archive_cmds runs LD, not CC, wlarc should be empty
6702     wlarc='${wl}'
6703
6704     # See if GNU ld supports shared libraries.
6705     case $host_os in
6706     aix3* | aix4* | aix5*)
6707       # On AIX/PPC, the GNU linker is very broken
6708       if test "$host_cpu" != ia64; then
6709         ld_shlibs=no
6710         cat <<EOF 1>&2
6711
6712 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6713 *** to be unable to reliably create shared libraries on AIX.
6714 *** Therefore, libtool is disabling shared libraries support.  If you
6715 *** really care for shared libraries, you may want to modify your PATH
6716 *** so that a non-GNU linker is found, and then restart.
6717
6718 EOF
6719       fi
6720       ;;
6721
6722     amigaos*)
6723       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)'
6724       hardcode_libdir_flag_spec='-L$libdir'
6725       hardcode_minus_L=yes
6726
6727       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6728       # that the semantics of dynamic libraries on AmigaOS, at least up
6729       # to version 4, is to share data among multiple programs linked
6730       # with the same dynamic library.  Since this doesn't match the
6731       # behavior of shared libraries on other platforms, we can't use
6732       # them.
6733       ld_shlibs=no
6734       ;;
6735
6736     beos*)
6737       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6738         allow_undefined_flag=unsupported
6739         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6740         # support --undefined.  This deserves some investigation.  FIXME
6741         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6742       else
6743         ld_shlibs=no
6744       fi
6745       ;;
6746
6747     cygwin* | mingw* | pw32*)
6748       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6749       # as there is no search path for DLLs.
6750       hardcode_libdir_flag_spec='-L$libdir'
6751       allow_undefined_flag=unsupported
6752       always_export_symbols=no
6753       enable_shared_with_static_runtimes=yes
6754       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6755
6756       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6757         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6758         # If the export-symbols file already is a .def file (1st line
6759         # is EXPORTS), use it as is; otherwise, prepend...
6760         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6761           cp $export_symbols $output_objdir/$soname.def;
6762         else
6763           echo EXPORTS > $output_objdir/$soname.def;
6764           cat $export_symbols >> $output_objdir/$soname.def;
6765         fi~
6766         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6767       else
6768         ld_shlibs=no
6769       fi
6770       ;;
6771
6772     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6773       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6774         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6775         wlarc=
6776       else
6777         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6778         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6779       fi
6780       ;;
6781
6782     solaris* | sysv5*)
6783       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6784         ld_shlibs=no
6785         cat <<EOF 1>&2
6786
6787 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6788 *** create shared libraries on Solaris systems.  Therefore, libtool
6789 *** is disabling shared libraries support.  We urge you to upgrade GNU
6790 *** binutils to release 2.9.1 or newer.  Another option is to modify
6791 *** your PATH or compiler configuration so that the native linker is
6792 *** used, and then restart.
6793
6794 EOF
6795       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6796         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6797         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6798       else
6799         ld_shlibs=no
6800       fi
6801       ;;
6802
6803     sunos4*)
6804       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6805       wlarc=
6806       hardcode_direct=yes
6807       hardcode_shlibpath_var=no
6808       ;;
6809
6810   linux*)
6811     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6812         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6813         archive_cmds="$tmp_archive_cmds"
6814       supports_anon_versioning=no
6815       case `$LD -v 2>/dev/null` in
6816         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6817         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6818         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6819         *\ 2.11.*) ;; # other 2.11 versions
6820         *) supports_anon_versioning=yes ;;
6821       esac
6822       if test $supports_anon_versioning = yes; then
6823         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6824 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6825 $echo "local: *; };" >> $output_objdir/$libname.ver~
6826         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6827       else
6828         archive_expsym_cmds="$tmp_archive_cmds"
6829       fi
6830       link_all_deplibs=no
6831     else
6832       ld_shlibs=no
6833     fi
6834     ;;
6835
6836     *)
6837       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6838         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6839         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6840       else
6841         ld_shlibs=no
6842       fi
6843       ;;
6844     esac
6845
6846     if test "$ld_shlibs" = yes; then
6847       runpath_var=LD_RUN_PATH
6848       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6849       export_dynamic_flag_spec='${wl}--export-dynamic'
6850       # ancient GNU ld didn't support --whole-archive et. al.
6851       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6852         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6853       else
6854         whole_archive_flag_spec=
6855       fi
6856     fi
6857   else
6858     # PORTME fill in a description of your system's linker (not GNU ld)
6859     case $host_os in
6860     aix3*)
6861       allow_undefined_flag=unsupported
6862       always_export_symbols=yes
6863       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'
6864       # Note: this linker hardcodes the directories in LIBPATH if there
6865       # are no directories specified by -L.
6866       hardcode_minus_L=yes
6867       if test "$GCC" = yes && test -z "$link_static_flag"; then
6868         # Neither direct hardcoding nor static linking is supported with a
6869         # broken collect2.
6870         hardcode_direct=unsupported
6871       fi
6872       ;;
6873
6874     aix4* | aix5*)
6875       if test "$host_cpu" = ia64; then
6876         # On IA64, the linker does run time linking by default, so we don't
6877         # have to do anything special.
6878         aix_use_runtimelinking=no
6879         exp_sym_flag='-Bexport'
6880         no_entry_flag=""
6881       else
6882         # If we're using GNU nm, then we don't want the "-C" option.
6883         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6884         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6885           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6886         else
6887           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6888         fi
6889         aix_use_runtimelinking=no
6890
6891         # Test if we are trying to use run time linking or normal
6892         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6893         # need to do runtime linking.
6894         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6895           for ld_flag in $LDFLAGS; do
6896           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6897             aix_use_runtimelinking=yes
6898             break
6899           fi
6900           done
6901         esac
6902
6903         exp_sym_flag='-bexport'
6904         no_entry_flag='-bnoentry'
6905       fi
6906
6907       # When large executables or shared objects are built, AIX ld can
6908       # have problems creating the table of contents.  If linking a library
6909       # or program results in "error TOC overflow" add -mminimal-toc to
6910       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6911       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6912
6913       archive_cmds=''
6914       hardcode_direct=yes
6915       hardcode_libdir_separator=':'
6916       link_all_deplibs=yes
6917
6918       if test "$GCC" = yes; then
6919         case $host_os in aix4.012|aix4.012.*)
6920         # We only want to do this on AIX 4.2 and lower, the check
6921         # below for broken collect2 doesn't work under 4.3+
6922           collect2name=`${CC} -print-prog-name=collect2`
6923           if test -f "$collect2name" && \
6924            strings "$collect2name" | grep resolve_lib_name >/dev/null
6925           then
6926           # We have reworked collect2
6927           hardcode_direct=yes
6928           else
6929           # We have old collect2
6930           hardcode_direct=unsupported
6931           # It fails to find uninstalled libraries when the uninstalled
6932           # path is not listed in the libpath.  Setting hardcode_minus_L
6933           # to unsupported forces relinking
6934           hardcode_minus_L=yes
6935           hardcode_libdir_flag_spec='-L$libdir'
6936           hardcode_libdir_separator=
6937           fi
6938         esac
6939         shared_flag='-shared'
6940       else
6941         # not using gcc
6942         if test "$host_cpu" = ia64; then
6943         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6944         # chokes on -Wl,-G. The following line is correct:
6945           shared_flag='-G'
6946         else
6947         if test "$aix_use_runtimelinking" = yes; then
6948             shared_flag='${wl}-G'
6949           else
6950             shared_flag='${wl}-bM:SRE'
6951         fi
6952         fi
6953       fi
6954
6955       # It seems that -bexpall does not export symbols beginning with
6956       # underscore (_), so it is better to generate a list of symbols to export.
6957       always_export_symbols=yes
6958       if test "$aix_use_runtimelinking" = yes; then
6959         # Warning - without using the other runtime loading flags (-brtl),
6960         # -berok will link without error, but may produce a broken library.
6961         allow_undefined_flag='-berok'
6962        # Determine the default libpath from the value encoded in an empty executable.
6963        cat >conftest.$ac_ext <<_ACEOF
6964 #line $LINENO "configure"
6965 /* confdefs.h.  */
6966 _ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h.  */
6970
6971 int
6972 main ()
6973 {
6974
6975   ;
6976   return 0;
6977 }
6978 _ACEOF
6979 rm -f conftest.$ac_objext conftest$ac_exeext
6980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6981   (eval $ac_link) 2>&5
6982   ac_status=$?
6983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984   (exit $ac_status); } &&
6985          { ac_try='test -s conftest$ac_exeext'
6986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987   (eval $ac_try) 2>&5
6988   ac_status=$?
6989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990   (exit $ac_status); }; }; then
6991
6992 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6993 }'`
6994 # Check for a 64-bit object if we didn't find anything.
6995 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6996 }'`; fi
6997 else
6998   echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7000
7001 fi
7002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7003 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7004
7005        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7006         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"
7007        else
7008         if test "$host_cpu" = ia64; then
7009           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7010           allow_undefined_flag="-z nodefs"
7011           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7012         else
7013          # Determine the default libpath from the value encoded in an empty executable.
7014          cat >conftest.$ac_ext <<_ACEOF
7015 #line $LINENO "configure"
7016 /* confdefs.h.  */
7017 _ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h.  */
7021
7022 int
7023 main ()
7024 {
7025
7026   ;
7027   return 0;
7028 }
7029 _ACEOF
7030 rm -f conftest.$ac_objext conftest$ac_exeext
7031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7032   (eval $ac_link) 2>&5
7033   ac_status=$?
7034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035   (exit $ac_status); } &&
7036          { ac_try='test -s conftest$ac_exeext'
7037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038   (eval $ac_try) 2>&5
7039   ac_status=$?
7040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041   (exit $ac_status); }; }; then
7042
7043 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7044 }'`
7045 # Check for a 64-bit object if we didn't find anything.
7046 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7047 }'`; fi
7048 else
7049   echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7051
7052 fi
7053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7054 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7055
7056          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7057           # Warning - without using the other run time loading flags,
7058           # -berok will link without error, but may produce a broken library.
7059           no_undefined_flag=' ${wl}-bernotok'
7060           allow_undefined_flag=' ${wl}-berok'
7061           # -bexpall does not export symbols beginning with underscore (_)
7062           always_export_symbols=yes
7063           # Exported symbols can be pulled into shared objects from archives
7064           whole_archive_flag_spec=' '
7065           archive_cmds_need_lc=yes
7066           # This is similar to how AIX traditionally builds it's shared libraries.
7067           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7068         fi
7069       fi
7070       ;;
7071
7072     amigaos*)
7073       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)'
7074       hardcode_libdir_flag_spec='-L$libdir'
7075       hardcode_minus_L=yes
7076       # see comment about different semantics on the GNU ld section
7077       ld_shlibs=no
7078       ;;
7079
7080     bsdi4*)
7081       export_dynamic_flag_spec=-rdynamic
7082       ;;
7083
7084     cygwin* | mingw* | pw32*)
7085       # When not using gcc, we currently assume that we are using
7086       # Microsoft Visual C++.
7087       # hardcode_libdir_flag_spec is actually meaningless, as there is
7088       # no search path for DLLs.
7089       hardcode_libdir_flag_spec=' '
7090       allow_undefined_flag=unsupported
7091       # Tell ltmain to make .lib files, not .a files.
7092       libext=lib
7093       # Tell ltmain to make .dll files, not .so files.
7094       shrext_cmds=".dll"
7095       # FIXME: Setting linknames here is a bad hack.
7096       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7097       # The linker will automatically build a .lib file if we build a DLL.
7098       old_archive_From_new_cmds='true'
7099       # FIXME: Should let the user specify the lib program.
7100       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7101       fix_srcfile_path='`cygpath -w "$srcfile"`'
7102       enable_shared_with_static_runtimes=yes
7103       ;;
7104
7105     darwin* | rhapsody*)
7106     if test "$GXX" = yes ; then
7107       archive_cmds_need_lc=no
7108       case "$host_os" in
7109       rhapsody* | darwin1.[012])
7110         allow_undefined_flag='-undefined suppress'
7111         ;;
7112       *) # Darwin 1.3 on
7113       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7114         allow_undefined_flag='-flat_namespace -undefined suppress'
7115       else
7116         case ${MACOSX_DEPLOYMENT_TARGET} in
7117           10.[012])
7118             allow_undefined_flag='-flat_namespace -undefined suppress'
7119             ;;
7120           10.*)
7121             allow_undefined_flag='-undefined dynamic_lookup'
7122             ;;
7123         esac
7124       fi
7125         ;;
7126       esac
7127         lt_int_apple_cc_single_mod=no
7128         output_verbose_link_cmd='echo'
7129         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7130           lt_int_apple_cc_single_mod=yes
7131         fi
7132         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7133           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7134         else
7135         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7136       fi
7137       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7138       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7139         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7140           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7141         else
7142           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7143         fi
7144           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7145       hardcode_direct=no
7146       hardcode_automatic=yes
7147       hardcode_shlibpath_var=unsupported
7148       whole_archive_flag_spec='-all_load $convenience'
7149       link_all_deplibs=yes
7150     else
7151       ld_shlibs=no
7152     fi
7153       ;;
7154
7155     dgux*)
7156       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7157       hardcode_libdir_flag_spec='-L$libdir'
7158       hardcode_shlibpath_var=no
7159       ;;
7160
7161     freebsd1*)
7162       ld_shlibs=no
7163       ;;
7164
7165     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7166     # support.  Future versions do this automatically, but an explicit c++rt0.o
7167     # does not break anything, and helps significantly (at the cost of a little
7168     # extra space).
7169     freebsd2.2*)
7170       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7171       hardcode_libdir_flag_spec='-R$libdir'
7172       hardcode_direct=yes
7173       hardcode_shlibpath_var=no
7174       ;;
7175
7176     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7177     freebsd2*)
7178       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7179       hardcode_direct=yes
7180       hardcode_minus_L=yes
7181       hardcode_shlibpath_var=no
7182       ;;
7183
7184     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7185     freebsd* | kfreebsd*-gnu)
7186       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7187       hardcode_libdir_flag_spec='-R$libdir'
7188       hardcode_direct=yes
7189       hardcode_shlibpath_var=no
7190       ;;
7191
7192     hpux9*)
7193       if test "$GCC" = yes; then
7194         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7195       else
7196         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'
7197       fi
7198       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7199       hardcode_libdir_separator=:
7200       hardcode_direct=yes
7201
7202       # hardcode_minus_L: Not really in the search PATH,
7203       # but as the default location of the library.
7204       hardcode_minus_L=yes
7205       export_dynamic_flag_spec='${wl}-E'
7206       ;;
7207
7208     hpux10* | hpux11*)
7209       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7210         case "$host_cpu" in
7211         hppa*64*|ia64*)
7212           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7213           ;;
7214         *)
7215           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7216           ;;
7217         esac
7218       else
7219         case "$host_cpu" in
7220         hppa*64*|ia64*)
7221           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7222           ;;
7223         *)
7224           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7225           ;;
7226         esac
7227       fi
7228       if test "$with_gnu_ld" = no; then
7229         case "$host_cpu" in
7230         hppa*64*)
7231           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7232           hardcode_libdir_flag_spec_ld='+b $libdir'
7233           hardcode_libdir_separator=:
7234           hardcode_direct=no
7235           hardcode_shlibpath_var=no
7236           ;;
7237         ia64*)
7238           hardcode_libdir_flag_spec='-L$libdir'
7239           hardcode_direct=no
7240           hardcode_shlibpath_var=no
7241
7242           # hardcode_minus_L: Not really in the search PATH,
7243           # but as the default location of the library.
7244           hardcode_minus_L=yes
7245           ;;
7246         *)
7247           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7248           hardcode_libdir_separator=:
7249           hardcode_direct=yes
7250           export_dynamic_flag_spec='${wl}-E'
7251
7252           # hardcode_minus_L: Not really in the search PATH,
7253           # but as the default location of the library.
7254           hardcode_minus_L=yes
7255           ;;
7256         esac
7257       fi
7258       ;;
7259
7260     irix5* | irix6* | nonstopux*)
7261       if test "$GCC" = yes; then
7262         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'
7263       else
7264         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'
7265         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7266       fi
7267       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7268       hardcode_libdir_separator=:
7269       link_all_deplibs=yes
7270       ;;
7271
7272     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7273       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7274         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7275       else
7276         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7277       fi
7278       hardcode_libdir_flag_spec='-R$libdir'
7279       hardcode_direct=yes
7280       hardcode_shlibpath_var=no
7281       ;;
7282
7283     newsos6)
7284       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7285       hardcode_direct=yes
7286       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7287       hardcode_libdir_separator=:
7288       hardcode_shlibpath_var=no
7289       ;;
7290
7291     openbsd*)
7292       hardcode_direct=yes
7293       hardcode_shlibpath_var=no
7294       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7295         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7296         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7297         export_dynamic_flag_spec='${wl}-E'
7298       else
7299        case $host_os in
7300          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7301            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7302            hardcode_libdir_flag_spec='-R$libdir'
7303            ;;
7304          *)
7305            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7306            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7307            ;;
7308        esac
7309       fi
7310       ;;
7311
7312     os2*)
7313       hardcode_libdir_flag_spec='-L$libdir'
7314       hardcode_minus_L=yes
7315       allow_undefined_flag=unsupported
7316       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'
7317       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7318       ;;
7319
7320     osf3*)
7321       if test "$GCC" = yes; then
7322         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7323         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'
7324       else
7325         allow_undefined_flag=' -expect_unresolved \*'
7326         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'
7327       fi
7328       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7329       hardcode_libdir_separator=:
7330       ;;
7331
7332     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7333       if test "$GCC" = yes; then
7334         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7335         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'
7336         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7337       else
7338         allow_undefined_flag=' -expect_unresolved \*'
7339         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'
7340         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7341         $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'
7342
7343         # Both c and cxx compiler support -rpath directly
7344         hardcode_libdir_flag_spec='-rpath $libdir'
7345       fi
7346       hardcode_libdir_separator=:
7347       ;;
7348
7349     sco3.2v5*)
7350       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7351       hardcode_shlibpath_var=no
7352       export_dynamic_flag_spec='${wl}-Bexport'
7353       runpath_var=LD_RUN_PATH
7354       hardcode_runpath_var=yes
7355       ;;
7356
7357     solaris*)
7358       no_undefined_flag=' -z text'
7359       if test "$GCC" = yes; then
7360         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7361         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7362           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7363       else
7364         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7365         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7366         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7367       fi
7368       hardcode_libdir_flag_spec='-R$libdir'
7369       hardcode_shlibpath_var=no
7370       case $host_os in
7371       solaris2.[0-5] | solaris2.[0-5].*) ;;
7372       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7373         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7374       esac
7375       link_all_deplibs=yes
7376       ;;
7377
7378     sunos4*)
7379       if test "x$host_vendor" = xsequent; then
7380         # Use $CC to link under sequent, because it throws in some extra .o
7381         # files that make .init and .fini sections work.
7382         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7383       else
7384         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7385       fi
7386       hardcode_libdir_flag_spec='-L$libdir'
7387       hardcode_direct=yes
7388       hardcode_minus_L=yes
7389       hardcode_shlibpath_var=no
7390       ;;
7391
7392     sysv4)
7393       case $host_vendor in
7394         sni)
7395           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7396           hardcode_direct=yes # is this really true???
7397         ;;
7398         siemens)
7399           ## LD is ld it makes a PLAMLIB
7400           ## CC just makes a GrossModule.
7401           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7402           reload_cmds='$CC -r -o $output$reload_objs'
7403           hardcode_direct=no
7404         ;;
7405         motorola)
7406           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7407           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7408         ;;
7409       esac
7410       runpath_var='LD_RUN_PATH'
7411       hardcode_shlibpath_var=no
7412       ;;
7413
7414     sysv4.3*)
7415       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7416       hardcode_shlibpath_var=no
7417       export_dynamic_flag_spec='-Bexport'
7418       ;;
7419
7420     sysv4*MP*)
7421       if test -d /usr/nec; then
7422         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7423         hardcode_shlibpath_var=no
7424         runpath_var=LD_RUN_PATH
7425         hardcode_runpath_var=yes
7426         ld_shlibs=yes
7427       fi
7428       ;;
7429
7430     sysv4.2uw2*)
7431       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7432       hardcode_direct=yes
7433       hardcode_minus_L=no
7434       hardcode_shlibpath_var=no
7435       hardcode_runpath_var=yes
7436       runpath_var=LD_RUN_PATH
7437       ;;
7438
7439    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7440       no_undefined_flag='${wl}-z ${wl}text'
7441       if test "$GCC" = yes; then
7442         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7443       else
7444         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7445       fi
7446       runpath_var='LD_RUN_PATH'
7447       hardcode_shlibpath_var=no
7448       ;;
7449
7450     sysv5*)
7451       no_undefined_flag=' -z text'
7452       # $CC -shared without GNU ld will not create a library from C++
7453       # object files and a static libstdc++, better avoid it by now
7454       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7455       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7456                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7457       hardcode_libdir_flag_spec=
7458       hardcode_shlibpath_var=no
7459       runpath_var='LD_RUN_PATH'
7460       ;;
7461
7462     uts4*)
7463       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7464       hardcode_libdir_flag_spec='-L$libdir'
7465       hardcode_shlibpath_var=no
7466       ;;
7467
7468     *)
7469       ld_shlibs=no
7470       ;;
7471     esac
7472   fi
7473
7474 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7475 echo "${ECHO_T}$ld_shlibs" >&6
7476 test "$ld_shlibs" = no && can_build_shared=no
7477
7478 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7479 if test "$GCC" = yes; then
7480   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7481 fi
7482
7483 #
7484 # Do we need to explicitly link libc?
7485 #
7486 case "x$archive_cmds_need_lc" in
7487 x|xyes)
7488   # Assume -lc should be added
7489   archive_cmds_need_lc=yes
7490
7491   if test "$enable_shared" = yes && test "$GCC" = yes; then
7492     case $archive_cmds in
7493     *'~'*)
7494       # FIXME: we may have to deal with multi-command sequences.
7495       ;;
7496     '$CC '*)
7497       # Test whether the compiler implicitly links with -lc since on some
7498       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7499       # to ld, don't add -lc before -lgcc.
7500       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7501 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7502       $rm conftest*
7503       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7504
7505       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7506   (eval $ac_compile) 2>&5
7507   ac_status=$?
7508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509   (exit $ac_status); } 2>conftest.err; then
7510         soname=conftest
7511         lib=conftest
7512         libobjs=conftest.$ac_objext
7513         deplibs=
7514         wl=$lt_prog_compiler_wl
7515         compiler_flags=-v
7516         linker_flags=-v
7517         verstring=
7518         output_objdir=.
7519         libname=conftest
7520         lt_save_allow_undefined_flag=$allow_undefined_flag
7521         allow_undefined_flag=
7522         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7523   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7524   ac_status=$?
7525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526   (exit $ac_status); }
7527         then
7528           archive_cmds_need_lc=no
7529         else
7530           archive_cmds_need_lc=yes
7531         fi
7532         allow_undefined_flag=$lt_save_allow_undefined_flag
7533       else
7534         cat conftest.err 1>&5
7535       fi
7536       $rm conftest*
7537       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7538 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7539       ;;
7540     esac
7541   fi
7542   ;;
7543 esac
7544
7545 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7546 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7547 library_names_spec=
7548 libname_spec='lib$name'
7549 soname_spec=
7550 shrext_cmds=".so"
7551 postinstall_cmds=
7552 postuninstall_cmds=
7553 finish_cmds=
7554 finish_eval=
7555 shlibpath_var=
7556 shlibpath_overrides_runpath=unknown
7557 version_type=none
7558 dynamic_linker="$host_os ld.so"
7559 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7560 if test "$GCC" = yes; then
7561   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7562   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7563     # if the path contains ";" then we assume it to be the separator
7564     # otherwise default to the standard path separator (i.e. ":") - it is
7565     # assumed that no part of a normal pathname contains ";" but that should
7566     # okay in the real world where ";" in dirpaths is itself problematic.
7567     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7568   else
7569     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7570   fi
7571 else
7572   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7573 fi
7574 need_lib_prefix=unknown
7575 hardcode_into_libs=no
7576
7577 # when you set need_version to no, make sure it does not cause -set_version
7578 # flags to be left without arguments
7579 need_version=unknown
7580
7581 case $host_os in
7582 aix3*)
7583   version_type=linux
7584   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7585   shlibpath_var=LIBPATH
7586
7587   # AIX 3 has no versioning support, so we append a major version to the name.
7588   soname_spec='${libname}${release}${shared_ext}$major'
7589   ;;
7590
7591 aix4* | aix5*)
7592   version_type=linux
7593   need_lib_prefix=no
7594   need_version=no
7595   hardcode_into_libs=yes
7596   if test "$host_cpu" = ia64; then
7597     # AIX 5 supports IA64
7598     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7599     shlibpath_var=LD_LIBRARY_PATH
7600   else
7601     # With GCC up to 2.95.x, collect2 would create an import file
7602     # for dependence libraries.  The import file would start with
7603     # the line `#! .'.  This would cause the generated library to
7604     # depend on `.', always an invalid library.  This was fixed in
7605     # development snapshots of GCC prior to 3.0.
7606     case $host_os in
7607       aix4 | aix4.[01] | aix4.[01].*)
7608       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7609            echo ' yes '
7610            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7611         :
7612       else
7613         can_build_shared=no
7614       fi
7615       ;;
7616     esac
7617     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7618     # soname into executable. Probably we can add versioning support to
7619     # collect2, so additional links can be useful in future.
7620     if test "$aix_use_runtimelinking" = yes; then
7621       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7622       # instead of lib<name>.a to let people know that these are not
7623       # typical AIX shared libraries.
7624       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7625     else
7626       # We preserve .a as extension for shared libraries through AIX4.2
7627       # and later when we are not doing run time linking.
7628       library_names_spec='${libname}${release}.a $libname.a'
7629       soname_spec='${libname}${release}${shared_ext}$major'
7630     fi
7631     shlibpath_var=LIBPATH
7632   fi
7633   ;;
7634
7635 amigaos*)
7636   library_names_spec='$libname.ixlibrary $libname.a'
7637   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7638   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'
7639   ;;
7640
7641 beos*)
7642   library_names_spec='${libname}${shared_ext}'
7643   dynamic_linker="$host_os ld.so"
7644   shlibpath_var=LIBRARY_PATH
7645   ;;
7646
7647 bsdi4*)
7648   version_type=linux
7649   need_version=no
7650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7651   soname_spec='${libname}${release}${shared_ext}$major'
7652   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7653   shlibpath_var=LD_LIBRARY_PATH
7654   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7655   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7656   # the default ld.so.conf also contains /usr/contrib/lib and
7657   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7658   # libtool to hard-code these into programs
7659   ;;
7660
7661 cygwin* | mingw* | pw32*)
7662   version_type=windows
7663   shrext_cmds=".dll"
7664   need_version=no
7665   need_lib_prefix=no
7666
7667   case $GCC,$host_os in
7668   yes,cygwin* | yes,mingw* | yes,pw32*)
7669     library_names_spec='$libname.dll.a'
7670     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7671     postinstall_cmds='base_file=`basename \${file}`~
7672       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7673       dldir=$destdir/`dirname \$dlpath`~
7674       test -d \$dldir || mkdir -p \$dldir~
7675       $install_prog $dir/$dlname \$dldir/$dlname'
7676     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7677       dlpath=$dir/\$dldll~
7678        $rm \$dlpath'
7679     shlibpath_overrides_runpath=yes
7680
7681     case $host_os in
7682     cygwin*)
7683       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7684       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7685       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7686       ;;
7687     mingw*)
7688       # MinGW DLLs use traditional 'lib' prefix
7689       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7690       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7691       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7692         # It is most probably a Windows format PATH printed by
7693         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7694         # path with ; separators, and with drive letters. We can handle the
7695         # drive letters (cygwin fileutils understands them), so leave them,
7696         # especially as we might pass files found there to a mingw objdump,
7697         # which wouldn't understand a cygwinified path. Ahh.
7698         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7699       else
7700         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7701       fi
7702       ;;
7703     pw32*)
7704       # pw32 DLLs use 'pw' prefix rather than 'lib'
7705       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7706       ;;
7707     esac
7708     ;;
7709
7710   *)
7711     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7712     ;;
7713   esac
7714   dynamic_linker='Win32 ld.exe'
7715   # FIXME: first we should search . and the directory the executable is in
7716   shlibpath_var=PATH
7717   ;;
7718
7719 darwin* | rhapsody*)
7720   dynamic_linker="$host_os dyld"
7721   version_type=darwin
7722   need_lib_prefix=no
7723   need_version=no
7724   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7725   soname_spec='${libname}${release}${major}$shared_ext'
7726   shlibpath_overrides_runpath=yes
7727   shlibpath_var=DYLD_LIBRARY_PATH
7728   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7729   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7730   if test "$GCC" = yes; then
7731     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7732   else
7733     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7734   fi
7735   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7736   ;;
7737
7738 dgux*)
7739   version_type=linux
7740   need_lib_prefix=no
7741   need_version=no
7742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7743   soname_spec='${libname}${release}${shared_ext}$major'
7744   shlibpath_var=LD_LIBRARY_PATH
7745   ;;
7746
7747 freebsd1*)
7748   dynamic_linker=no
7749   ;;
7750
7751 kfreebsd*-gnu)
7752   version_type=linux
7753   need_lib_prefix=no
7754   need_version=no
7755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7756   soname_spec='${libname}${release}${shared_ext}$major'
7757   shlibpath_var=LD_LIBRARY_PATH
7758   shlibpath_overrides_runpath=no
7759   hardcode_into_libs=yes
7760   dynamic_linker='GNU ld.so'
7761   ;;
7762
7763 freebsd*)
7764   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7765   version_type=freebsd-$objformat
7766   case $version_type in
7767     freebsd-elf*)
7768       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7769       need_version=no
7770       need_lib_prefix=no
7771       ;;
7772     freebsd-*)
7773       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7774       need_version=yes
7775       ;;
7776   esac
7777   shlibpath_var=LD_LIBRARY_PATH
7778   case $host_os in
7779   freebsd2*)
7780     shlibpath_overrides_runpath=yes
7781     ;;
7782   freebsd3.01* | freebsdelf3.01*)
7783     shlibpath_overrides_runpath=yes
7784     hardcode_into_libs=yes
7785     ;;
7786   *) # from 3.2 on
7787     shlibpath_overrides_runpath=no
7788     hardcode_into_libs=yes
7789     ;;
7790   esac
7791   ;;
7792
7793 gnu*)
7794   version_type=linux
7795   need_lib_prefix=no
7796   need_version=no
7797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7798   soname_spec='${libname}${release}${shared_ext}$major'
7799   shlibpath_var=LD_LIBRARY_PATH
7800   hardcode_into_libs=yes
7801   ;;
7802
7803 hpux9* | hpux10* | hpux11*)
7804   # Give a soname corresponding to the major version so that dld.sl refuses to
7805   # link against other versions.
7806   version_type=sunos
7807   need_lib_prefix=no
7808   need_version=no
7809   case "$host_cpu" in
7810   ia64*)
7811     shrext_cmds='.so'
7812     hardcode_into_libs=yes
7813     dynamic_linker="$host_os dld.so"
7814     shlibpath_var=LD_LIBRARY_PATH
7815     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7816     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7817     soname_spec='${libname}${release}${shared_ext}$major'
7818     if test "X$HPUX_IA64_MODE" = X32; then
7819       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7820     else
7821       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7822     fi
7823     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7824     ;;
7825    hppa*64*)
7826      shrext_cmds='.sl'
7827      hardcode_into_libs=yes
7828      dynamic_linker="$host_os dld.sl"
7829      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7830      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7831      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7832      soname_spec='${libname}${release}${shared_ext}$major'
7833      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7834      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7835      ;;
7836    *)
7837     shrext_cmds='.sl'
7838     dynamic_linker="$host_os dld.sl"
7839     shlibpath_var=SHLIB_PATH
7840     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7841     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7842     soname_spec='${libname}${release}${shared_ext}$major'
7843     ;;
7844   esac
7845   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7846   postinstall_cmds='chmod 555 $lib'
7847   ;;
7848
7849 irix5* | irix6* | nonstopux*)
7850   case $host_os in
7851     nonstopux*) version_type=nonstopux ;;
7852     *)
7853         if test "$lt_cv_prog_gnu_ld" = yes; then
7854                 version_type=linux
7855         else
7856                 version_type=irix
7857         fi ;;
7858   esac
7859   need_lib_prefix=no
7860   need_version=no
7861   soname_spec='${libname}${release}${shared_ext}$major'
7862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7863   case $host_os in
7864   irix5* | nonstopux*)
7865     libsuff= shlibsuff=
7866     ;;
7867   *)
7868     case $LD in # libtool.m4 will add one of these switches to LD
7869     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7870       libsuff= shlibsuff= libmagic=32-bit;;
7871     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7872       libsuff=32 shlibsuff=N32 libmagic=N32;;
7873     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7874       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7875     *) libsuff= shlibsuff= libmagic=never-match;;
7876     esac
7877     ;;
7878   esac
7879   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7880   shlibpath_overrides_runpath=no
7881   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7882   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7883   hardcode_into_libs=yes
7884   ;;
7885
7886 # No shared lib support for Linux oldld, aout, or coff.
7887 linux*oldld* | linux*aout* | linux*coff*)
7888   dynamic_linker=no
7889   ;;
7890
7891 # This must be Linux ELF.
7892 linux*)
7893   version_type=linux
7894   need_lib_prefix=no
7895   need_version=no
7896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7897   soname_spec='${libname}${release}${shared_ext}$major'
7898   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7899   shlibpath_var=LD_LIBRARY_PATH
7900   shlibpath_overrides_runpath=no
7901   # This implies no fast_install, which is unacceptable.
7902   # Some rework will be needed to allow for fast_install
7903   # before this can be enabled.
7904   hardcode_into_libs=yes
7905
7906   # Append ld.so.conf contents to the search path
7907   if test -f /etc/ld.so.conf; then
7908     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7909     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7910   fi
7911
7912   # We used to test for /lib/ld.so.1 and disable shared libraries on
7913   # powerpc, because MkLinux only supported shared libraries with the
7914   # GNU dynamic linker.  Since this was broken with cross compilers,
7915   # most powerpc-linux boxes support dynamic linking these days and
7916   # people can always --disable-shared, the test was removed, and we
7917   # assume the GNU/Linux dynamic linker is in use.
7918   dynamic_linker='GNU/Linux ld.so'
7919   ;;
7920
7921 netbsdelf*-gnu)
7922   version_type=linux
7923   need_lib_prefix=no
7924   need_version=no
7925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7926   soname_spec='${libname}${release}${shared_ext}$major'
7927   shlibpath_var=LD_LIBRARY_PATH
7928   shlibpath_overrides_runpath=no
7929   hardcode_into_libs=yes
7930   dynamic_linker='NetBSD ld.elf_so'
7931   ;;
7932
7933 knetbsd*-gnu)
7934   version_type=linux
7935   need_lib_prefix=no
7936   need_version=no
7937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7938   soname_spec='${libname}${release}${shared_ext}$major'
7939   shlibpath_var=LD_LIBRARY_PATH
7940   shlibpath_overrides_runpath=no
7941   hardcode_into_libs=yes
7942   dynamic_linker='GNU ld.so'
7943   ;;
7944
7945 netbsd*)
7946   version_type=sunos
7947   need_lib_prefix=no
7948   need_version=no
7949   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7950     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7951     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7952     dynamic_linker='NetBSD (a.out) ld.so'
7953   else
7954     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7955     soname_spec='${libname}${release}${shared_ext}$major'
7956     dynamic_linker='NetBSD ld.elf_so'
7957   fi
7958   shlibpath_var=LD_LIBRARY_PATH
7959   shlibpath_overrides_runpath=yes
7960   hardcode_into_libs=yes
7961   ;;
7962
7963 newsos6)
7964   version_type=linux
7965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7966   shlibpath_var=LD_LIBRARY_PATH
7967   shlibpath_overrides_runpath=yes
7968   ;;
7969
7970 nto-qnx*)
7971   version_type=linux
7972   need_lib_prefix=no
7973   need_version=no
7974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7975   soname_spec='${libname}${release}${shared_ext}$major'
7976   shlibpath_var=LD_LIBRARY_PATH
7977   shlibpath_overrides_runpath=yes
7978   ;;
7979
7980 openbsd*)
7981   version_type=sunos
7982   need_lib_prefix=no
7983   need_version=yes
7984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7985   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7986   shlibpath_var=LD_LIBRARY_PATH
7987   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7988     case $host_os in
7989       openbsd2.[89] | openbsd2.[89].*)
7990         shlibpath_overrides_runpath=no
7991         ;;
7992       *)
7993         shlibpath_overrides_runpath=yes
7994         ;;
7995       esac
7996   else
7997     shlibpath_overrides_runpath=yes
7998   fi
7999   ;;
8000
8001 os2*)
8002   libname_spec='$name'
8003   shrext_cmds=".dll"
8004   need_lib_prefix=no
8005   library_names_spec='$libname${shared_ext} $libname.a'
8006   dynamic_linker='OS/2 ld.exe'
8007   shlibpath_var=LIBPATH
8008   ;;
8009
8010 osf3* | osf4* | osf5*)
8011   version_type=osf
8012   need_lib_prefix=no
8013   need_version=no
8014   soname_spec='${libname}${release}${shared_ext}$major'
8015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8016   shlibpath_var=LD_LIBRARY_PATH
8017   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8018   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8019   ;;
8020
8021 sco3.2v5*)
8022   version_type=osf
8023   soname_spec='${libname}${release}${shared_ext}$major'
8024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8025   shlibpath_var=LD_LIBRARY_PATH
8026   ;;
8027
8028 solaris*)
8029   version_type=linux
8030   need_lib_prefix=no
8031   need_version=no
8032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8033   soname_spec='${libname}${release}${shared_ext}$major'
8034   shlibpath_var=LD_LIBRARY_PATH
8035   shlibpath_overrides_runpath=yes
8036   hardcode_into_libs=yes
8037   # ldd complains unless libraries are executable
8038   postinstall_cmds='chmod +x $lib'
8039   ;;
8040
8041 sunos4*)
8042   version_type=sunos
8043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8044   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8045   shlibpath_var=LD_LIBRARY_PATH
8046   shlibpath_overrides_runpath=yes
8047   if test "$with_gnu_ld" = yes; then
8048     need_lib_prefix=no
8049   fi
8050   need_version=yes
8051   ;;
8052
8053 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8054   version_type=linux
8055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8056   soname_spec='${libname}${release}${shared_ext}$major'
8057   shlibpath_var=LD_LIBRARY_PATH
8058   case $host_vendor in
8059     sni)
8060       shlibpath_overrides_runpath=no
8061       need_lib_prefix=no
8062       export_dynamic_flag_spec='${wl}-Blargedynsym'
8063       runpath_var=LD_RUN_PATH
8064       ;;
8065     siemens)
8066       need_lib_prefix=no
8067       ;;
8068     motorola)
8069       need_lib_prefix=no
8070       need_version=no
8071       shlibpath_overrides_runpath=no
8072       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8073       ;;
8074   esac
8075   ;;
8076
8077 sysv4*MP*)
8078   if test -d /usr/nec ;then
8079     version_type=linux
8080     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8081     soname_spec='$libname${shared_ext}.$major'
8082     shlibpath_var=LD_LIBRARY_PATH
8083   fi
8084   ;;
8085
8086 uts4*)
8087   version_type=linux
8088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8089   soname_spec='${libname}${release}${shared_ext}$major'
8090   shlibpath_var=LD_LIBRARY_PATH
8091   ;;
8092
8093 *)
8094   dynamic_linker=no
8095   ;;
8096 esac
8097 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8098 echo "${ECHO_T}$dynamic_linker" >&6
8099 test "$dynamic_linker" = no && can_build_shared=no
8100
8101 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8102 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8103 hardcode_action=
8104 if test -n "$hardcode_libdir_flag_spec" || \
8105    test -n "$runpath_var " || \
8106    test "X$hardcode_automatic"="Xyes" ; then
8107
8108   # We can hardcode non-existant directories.
8109   if test "$hardcode_direct" != no &&
8110      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8111      # have to relink, otherwise we might link with an installed library
8112      # when we should be linking with a yet-to-be-installed one
8113      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8114      test "$hardcode_minus_L" != no; then
8115     # Linking always hardcodes the temporary library directory.
8116     hardcode_action=relink
8117   else
8118     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8119     hardcode_action=immediate
8120   fi
8121 else
8122   # We cannot hardcode anything, or else we can only hardcode existing
8123   # directories.
8124   hardcode_action=unsupported
8125 fi
8126 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8127 echo "${ECHO_T}$hardcode_action" >&6
8128
8129 if test "$hardcode_action" = relink; then
8130   # Fast installation is not supported
8131   enable_fast_install=no
8132 elif test "$shlibpath_overrides_runpath" = yes ||
8133      test "$enable_shared" = no; then
8134   # Fast installation is not necessary
8135   enable_fast_install=needless
8136 fi
8137
8138 striplib=
8139 old_striplib=
8140 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8141 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8142 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8143   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8144   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8145   echo "$as_me:$LINENO: result: yes" >&5
8146 echo "${ECHO_T}yes" >&6
8147 else
8148 # FIXME - insert some real tests, host_os isn't really good enough
8149   case $host_os in
8150    darwin*)
8151        if test -n "$STRIP" ; then
8152          striplib="$STRIP -x"
8153          echo "$as_me:$LINENO: result: yes" >&5
8154 echo "${ECHO_T}yes" >&6
8155        else
8156   echo "$as_me:$LINENO: result: no" >&5
8157 echo "${ECHO_T}no" >&6
8158 fi
8159        ;;
8160    *)
8161   echo "$as_me:$LINENO: result: no" >&5
8162 echo "${ECHO_T}no" >&6
8163     ;;
8164   esac
8165 fi
8166
8167 if test "x$enable_dlopen" != xyes; then
8168   enable_dlopen=unknown
8169   enable_dlopen_self=unknown
8170   enable_dlopen_self_static=unknown
8171 else
8172   lt_cv_dlopen=no
8173   lt_cv_dlopen_libs=
8174
8175   case $host_os in
8176   beos*)
8177     lt_cv_dlopen="load_add_on"
8178     lt_cv_dlopen_libs=
8179     lt_cv_dlopen_self=yes
8180     ;;
8181
8182   mingw* | pw32*)
8183     lt_cv_dlopen="LoadLibrary"
8184     lt_cv_dlopen_libs=
8185    ;;
8186
8187   cygwin*)
8188     lt_cv_dlopen="dlopen"
8189     lt_cv_dlopen_libs=
8190    ;;
8191
8192   darwin*)
8193   # if libdl is installed we need to link against it
8194     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8195 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8196 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8197   echo $ECHO_N "(cached) $ECHO_C" >&6
8198 else
8199   ac_check_lib_save_LIBS=$LIBS
8200 LIBS="-ldl  $LIBS"
8201 cat >conftest.$ac_ext <<_ACEOF
8202 #line $LINENO "configure"
8203 /* confdefs.h.  */
8204 _ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h.  */
8208
8209 /* Override any gcc2 internal prototype to avoid an error.  */
8210 #ifdef __cplusplus
8211 extern "C"
8212 #endif
8213 /* We use char because int might match the return type of a gcc2
8214    builtin and then its argument prototype would still apply.  */
8215 char dlopen ();
8216 int
8217 main ()
8218 {
8219 dlopen ();
8220   ;
8221   return 0;
8222 }
8223 _ACEOF
8224 rm -f conftest.$ac_objext conftest$ac_exeext
8225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8226   (eval $ac_link) 2>&5
8227   ac_status=$?
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); } &&
8230          { ac_try='test -s conftest$ac_exeext'
8231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232   (eval $ac_try) 2>&5
8233   ac_status=$?
8234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   (exit $ac_status); }; }; then
8236   ac_cv_lib_dl_dlopen=yes
8237 else
8238   echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8240
8241 ac_cv_lib_dl_dlopen=no
8242 fi
8243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8244 LIBS=$ac_check_lib_save_LIBS
8245 fi
8246 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8247 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8248 if test $ac_cv_lib_dl_dlopen = yes; then
8249   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8250 else
8251
8252     lt_cv_dlopen="dyld"
8253     lt_cv_dlopen_libs=
8254     lt_cv_dlopen_self=yes
8255
8256 fi
8257
8258    ;;
8259
8260   *)
8261     echo "$as_me:$LINENO: checking for shl_load" >&5
8262 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8263 if test "${ac_cv_func_shl_load+set}" = set; then
8264   echo $ECHO_N "(cached) $ECHO_C" >&6
8265 else
8266   cat >conftest.$ac_ext <<_ACEOF
8267 #line $LINENO "configure"
8268 /* confdefs.h.  */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h.  */
8273 /* System header to define __stub macros and hopefully few prototypes,
8274     which can conflict with char shl_load (); below.
8275     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8276     <limits.h> exists even on freestanding compilers.  */
8277 #ifdef __STDC__
8278 # include <limits.h>
8279 #else
8280 # include <assert.h>
8281 #endif
8282 /* Override any gcc2 internal prototype to avoid an error.  */
8283 #ifdef __cplusplus
8284 extern "C"
8285 {
8286 #endif
8287 /* We use char because int might match the return type of a gcc2
8288    builtin and then its argument prototype would still apply.  */
8289 char shl_load ();
8290 /* The GNU C library defines this for functions which it implements
8291     to always fail with ENOSYS.  Some functions are actually named
8292     something starting with __ and the normal name is an alias.  */
8293 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8294 choke me
8295 #else
8296 char (*f) () = shl_load;
8297 #endif
8298 #ifdef __cplusplus
8299 }
8300 #endif
8301
8302 int
8303 main ()
8304 {
8305 return f != shl_load;
8306   ;
8307   return 0;
8308 }
8309 _ACEOF
8310 rm -f conftest.$ac_objext conftest$ac_exeext
8311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8312   (eval $ac_link) 2>&5
8313   ac_status=$?
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); } &&
8316          { ac_try='test -s conftest$ac_exeext'
8317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318   (eval $ac_try) 2>&5
8319   ac_status=$?
8320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321   (exit $ac_status); }; }; then
8322   ac_cv_func_shl_load=yes
8323 else
8324   echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8326
8327 ac_cv_func_shl_load=no
8328 fi
8329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8330 fi
8331 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8332 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8333 if test $ac_cv_func_shl_load = yes; then
8334   lt_cv_dlopen="shl_load"
8335 else
8336   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8337 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8338 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8339   echo $ECHO_N "(cached) $ECHO_C" >&6
8340 else
8341   ac_check_lib_save_LIBS=$LIBS
8342 LIBS="-ldld  $LIBS"
8343 cat >conftest.$ac_ext <<_ACEOF
8344 #line $LINENO "configure"
8345 /* confdefs.h.  */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h.  */
8350
8351 /* Override any gcc2 internal prototype to avoid an error.  */
8352 #ifdef __cplusplus
8353 extern "C"
8354 #endif
8355 /* We use char because int might match the return type of a gcc2
8356    builtin and then its argument prototype would still apply.  */
8357 char shl_load ();
8358 int
8359 main ()
8360 {
8361 shl_load ();
8362   ;
8363   return 0;
8364 }
8365 _ACEOF
8366 rm -f conftest.$ac_objext conftest$ac_exeext
8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368   (eval $ac_link) 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); } &&
8372          { ac_try='test -s conftest$ac_exeext'
8373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374   (eval $ac_try) 2>&5
8375   ac_status=$?
8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377   (exit $ac_status); }; }; then
8378   ac_cv_lib_dld_shl_load=yes
8379 else
8380   echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8382
8383 ac_cv_lib_dld_shl_load=no
8384 fi
8385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8386 LIBS=$ac_check_lib_save_LIBS
8387 fi
8388 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8389 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8390 if test $ac_cv_lib_dld_shl_load = yes; then
8391   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8392 else
8393   echo "$as_me:$LINENO: checking for dlopen" >&5
8394 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8395 if test "${ac_cv_func_dlopen+set}" = set; then
8396   echo $ECHO_N "(cached) $ECHO_C" >&6
8397 else
8398   cat >conftest.$ac_ext <<_ACEOF
8399 #line $LINENO "configure"
8400 /* confdefs.h.  */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h.  */
8405 /* System header to define __stub macros and hopefully few prototypes,
8406     which can conflict with char dlopen (); below.
8407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8408     <limits.h> exists even on freestanding compilers.  */
8409 #ifdef __STDC__
8410 # include <limits.h>
8411 #else
8412 # include <assert.h>
8413 #endif
8414 /* Override any gcc2 internal prototype to avoid an error.  */
8415 #ifdef __cplusplus
8416 extern "C"
8417 {
8418 #endif
8419 /* We use char because int might match the return type of a gcc2
8420    builtin and then its argument prototype would still apply.  */
8421 char dlopen ();
8422 /* The GNU C library defines this for functions which it implements
8423     to always fail with ENOSYS.  Some functions are actually named
8424     something starting with __ and the normal name is an alias.  */
8425 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8426 choke me
8427 #else
8428 char (*f) () = dlopen;
8429 #endif
8430 #ifdef __cplusplus
8431 }
8432 #endif
8433
8434 int
8435 main ()
8436 {
8437 return f != dlopen;
8438   ;
8439   return 0;
8440 }
8441 _ACEOF
8442 rm -f conftest.$ac_objext conftest$ac_exeext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8444   (eval $ac_link) 2>&5
8445   ac_status=$?
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); } &&
8448          { ac_try='test -s conftest$ac_exeext'
8449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450   (eval $ac_try) 2>&5
8451   ac_status=$?
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); }; }; then
8454   ac_cv_func_dlopen=yes
8455 else
8456   echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8458
8459 ac_cv_func_dlopen=no
8460 fi
8461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8462 fi
8463 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8464 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8465 if test $ac_cv_func_dlopen = yes; then
8466   lt_cv_dlopen="dlopen"
8467 else
8468   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8469 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8470 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8471   echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473   ac_check_lib_save_LIBS=$LIBS
8474 LIBS="-ldl  $LIBS"
8475 cat >conftest.$ac_ext <<_ACEOF
8476 #line $LINENO "configure"
8477 /* confdefs.h.  */
8478 _ACEOF
8479 cat confdefs.h >>conftest.$ac_ext
8480 cat >>conftest.$ac_ext <<_ACEOF
8481 /* end confdefs.h.  */
8482
8483 /* Override any gcc2 internal prototype to avoid an error.  */
8484 #ifdef __cplusplus
8485 extern "C"
8486 #endif
8487 /* We use char because int might match the return type of a gcc2
8488    builtin and then its argument prototype would still apply.  */
8489 char dlopen ();
8490 int
8491 main ()
8492 {
8493 dlopen ();
8494   ;
8495   return 0;
8496 }
8497 _ACEOF
8498 rm -f conftest.$ac_objext conftest$ac_exeext
8499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8500   (eval $ac_link) 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); } &&
8504          { ac_try='test -s conftest$ac_exeext'
8505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506   (eval $ac_try) 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; }; then
8510   ac_cv_lib_dl_dlopen=yes
8511 else
8512   echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8514
8515 ac_cv_lib_dl_dlopen=no
8516 fi
8517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8518 LIBS=$ac_check_lib_save_LIBS
8519 fi
8520 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8521 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8522 if test $ac_cv_lib_dl_dlopen = yes; then
8523   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8524 else
8525   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8526 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8527 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8528   echo $ECHO_N "(cached) $ECHO_C" >&6
8529 else
8530   ac_check_lib_save_LIBS=$LIBS
8531 LIBS="-lsvld  $LIBS"
8532 cat >conftest.$ac_ext <<_ACEOF
8533 #line $LINENO "configure"
8534 /* confdefs.h.  */
8535 _ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h.  */
8539
8540 /* Override any gcc2 internal prototype to avoid an error.  */
8541 #ifdef __cplusplus
8542 extern "C"
8543 #endif
8544 /* We use char because int might match the return type of a gcc2
8545    builtin and then its argument prototype would still apply.  */
8546 char dlopen ();
8547 int
8548 main ()
8549 {
8550 dlopen ();
8551   ;
8552   return 0;
8553 }
8554 _ACEOF
8555 rm -f conftest.$ac_objext conftest$ac_exeext
8556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8557   (eval $ac_link) 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); } &&
8561          { ac_try='test -s conftest$ac_exeext'
8562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563   (eval $ac_try) 2>&5
8564   ac_status=$?
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); }; }; then
8567   ac_cv_lib_svld_dlopen=yes
8568 else
8569   echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8571
8572 ac_cv_lib_svld_dlopen=no
8573 fi
8574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8575 LIBS=$ac_check_lib_save_LIBS
8576 fi
8577 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8578 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8579 if test $ac_cv_lib_svld_dlopen = yes; then
8580   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8581 else
8582   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8583 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8584 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8585   echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587   ac_check_lib_save_LIBS=$LIBS
8588 LIBS="-ldld  $LIBS"
8589 cat >conftest.$ac_ext <<_ACEOF
8590 #line $LINENO "configure"
8591 /* confdefs.h.  */
8592 _ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h.  */
8596
8597 /* Override any gcc2 internal prototype to avoid an error.  */
8598 #ifdef __cplusplus
8599 extern "C"
8600 #endif
8601 /* We use char because int might match the return type of a gcc2
8602    builtin and then its argument prototype would still apply.  */
8603 char dld_link ();
8604 int
8605 main ()
8606 {
8607 dld_link ();
8608   ;
8609   return 0;
8610 }
8611 _ACEOF
8612 rm -f conftest.$ac_objext conftest$ac_exeext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8614   (eval $ac_link) 2>&5
8615   ac_status=$?
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); } &&
8618          { ac_try='test -s conftest$ac_exeext'
8619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620   (eval $ac_try) 2>&5
8621   ac_status=$?
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); }; }; then
8624   ac_cv_lib_dld_dld_link=yes
8625 else
8626   echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8628
8629 ac_cv_lib_dld_dld_link=no
8630 fi
8631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8632 LIBS=$ac_check_lib_save_LIBS
8633 fi
8634 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8635 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8636 if test $ac_cv_lib_dld_dld_link = yes; then
8637   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8638 fi
8639
8640
8641 fi
8642
8643
8644 fi
8645
8646
8647 fi
8648
8649
8650 fi
8651
8652
8653 fi
8654
8655     ;;
8656   esac
8657
8658   if test "x$lt_cv_dlopen" != xno; then
8659     enable_dlopen=yes
8660   else
8661     enable_dlopen=no
8662   fi
8663
8664   case $lt_cv_dlopen in
8665   dlopen)
8666     save_CPPFLAGS="$CPPFLAGS"
8667     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8668
8669     save_LDFLAGS="$LDFLAGS"
8670     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8671
8672     save_LIBS="$LIBS"
8673     LIBS="$lt_cv_dlopen_libs $LIBS"
8674
8675     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8676 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8677 if test "${lt_cv_dlopen_self+set}" = set; then
8678   echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680           if test "$cross_compiling" = yes; then :
8681   lt_cv_dlopen_self=cross
8682 else
8683   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8684   lt_status=$lt_dlunknown
8685   cat > conftest.$ac_ext <<EOF
8686 #line 8686 "configure"
8687 #include "confdefs.h"
8688
8689 #if HAVE_DLFCN_H
8690 #include <dlfcn.h>
8691 #endif
8692
8693 #include <stdio.h>
8694
8695 #ifdef RTLD_GLOBAL
8696 #  define LT_DLGLOBAL           RTLD_GLOBAL
8697 #else
8698 #  ifdef DL_GLOBAL
8699 #    define LT_DLGLOBAL         DL_GLOBAL
8700 #  else
8701 #    define LT_DLGLOBAL         0
8702 #  endif
8703 #endif
8704
8705 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8706    find out it does not work in some platform. */
8707 #ifndef LT_DLLAZY_OR_NOW
8708 #  ifdef RTLD_LAZY
8709 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8710 #  else
8711 #    ifdef DL_LAZY
8712 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8713 #    else
8714 #      ifdef RTLD_NOW
8715 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8716 #      else
8717 #        ifdef DL_NOW
8718 #          define LT_DLLAZY_OR_NOW      DL_NOW
8719 #        else
8720 #          define LT_DLLAZY_OR_NOW      0
8721 #        endif
8722 #      endif
8723 #    endif
8724 #  endif
8725 #endif
8726
8727 #ifdef __cplusplus
8728 extern "C" void exit (int);
8729 #endif
8730
8731 void fnord() { int i=42;}
8732 int main ()
8733 {
8734   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8735   int status = $lt_dlunknown;
8736
8737   if (self)
8738     {
8739       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8740       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8741       /* dlclose (self); */
8742     }
8743
8744     exit (status);
8745 }
8746 EOF
8747   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8748   (eval $ac_link) 2>&5
8749   ac_status=$?
8750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8752     (./conftest; exit; ) 2>/dev/null
8753     lt_status=$?
8754     case x$lt_status in
8755       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8756       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8757       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8758     esac
8759   else :
8760     # compilation failed
8761     lt_cv_dlopen_self=no
8762   fi
8763 fi
8764 rm -fr conftest*
8765
8766
8767 fi
8768 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8769 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8770
8771     if test "x$lt_cv_dlopen_self" = xyes; then
8772       LDFLAGS="$LDFLAGS $link_static_flag"
8773       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8774 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8775 if test "${lt_cv_dlopen_self_static+set}" = set; then
8776   echo $ECHO_N "(cached) $ECHO_C" >&6
8777 else
8778           if test "$cross_compiling" = yes; then :
8779   lt_cv_dlopen_self_static=cross
8780 else
8781   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8782   lt_status=$lt_dlunknown
8783   cat > conftest.$ac_ext <<EOF
8784 #line 8784 "configure"
8785 #include "confdefs.h"
8786
8787 #if HAVE_DLFCN_H
8788 #include <dlfcn.h>
8789 #endif
8790
8791 #include <stdio.h>
8792
8793 #ifdef RTLD_GLOBAL
8794 #  define LT_DLGLOBAL           RTLD_GLOBAL
8795 #else
8796 #  ifdef DL_GLOBAL
8797 #    define LT_DLGLOBAL         DL_GLOBAL
8798 #  else
8799 #    define LT_DLGLOBAL         0
8800 #  endif
8801 #endif
8802
8803 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8804    find out it does not work in some platform. */
8805 #ifndef LT_DLLAZY_OR_NOW
8806 #  ifdef RTLD_LAZY
8807 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8808 #  else
8809 #    ifdef DL_LAZY
8810 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8811 #    else
8812 #      ifdef RTLD_NOW
8813 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8814 #      else
8815 #        ifdef DL_NOW
8816 #          define LT_DLLAZY_OR_NOW      DL_NOW
8817 #        else
8818 #          define LT_DLLAZY_OR_NOW      0
8819 #        endif
8820 #      endif
8821 #    endif
8822 #  endif
8823 #endif
8824
8825 #ifdef __cplusplus
8826 extern "C" void exit (int);
8827 #endif
8828
8829 void fnord() { int i=42;}
8830 int main ()
8831 {
8832   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8833   int status = $lt_dlunknown;
8834
8835   if (self)
8836     {
8837       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8838       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8839       /* dlclose (self); */
8840     }
8841
8842     exit (status);
8843 }
8844 EOF
8845   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8846   (eval $ac_link) 2>&5
8847   ac_status=$?
8848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8850     (./conftest; exit; ) 2>/dev/null
8851     lt_status=$?
8852     case x$lt_status in
8853       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8854       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8855       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8856     esac
8857   else :
8858     # compilation failed
8859     lt_cv_dlopen_self_static=no
8860   fi
8861 fi
8862 rm -fr conftest*
8863
8864
8865 fi
8866 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8867 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8868     fi
8869
8870     CPPFLAGS="$save_CPPFLAGS"
8871     LDFLAGS="$save_LDFLAGS"
8872     LIBS="$save_LIBS"
8873     ;;
8874   esac
8875
8876   case $lt_cv_dlopen_self in
8877   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8878   *) enable_dlopen_self=unknown ;;
8879   esac
8880
8881   case $lt_cv_dlopen_self_static in
8882   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8883   *) enable_dlopen_self_static=unknown ;;
8884   esac
8885 fi
8886
8887
8888 # Report which librarie types wil actually be built
8889 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8890 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8891 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8892 echo "${ECHO_T}$can_build_shared" >&6
8893
8894 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8895 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8896 test "$can_build_shared" = "no" && enable_shared=no
8897
8898 # On AIX, shared libraries and static libraries use the same namespace, and
8899 # are all built from PIC.
8900 case "$host_os" in
8901 aix3*)
8902   test "$enable_shared" = yes && enable_static=no
8903   if test -n "$RANLIB"; then
8904     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8905     postinstall_cmds='$RANLIB $lib'
8906   fi
8907   ;;
8908
8909 aix4* | aix5*)
8910   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8911     test "$enable_shared" = yes && enable_static=no
8912   fi
8913   ;;
8914   darwin* | rhapsody*)
8915   if test "$GCC" = yes; then
8916     archive_cmds_need_lc=no
8917     case "$host_os" in
8918     rhapsody* | darwin1.[012])
8919       allow_undefined_flag='-undefined suppress'
8920       ;;
8921     *) # Darwin 1.3 on
8922       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8923         allow_undefined_flag='-flat_namespace -undefined suppress'
8924       else
8925         case ${MACOSX_DEPLOYMENT_TARGET} in
8926           10.[012])
8927             allow_undefined_flag='-flat_namespace -undefined suppress'
8928             ;;
8929           10.*)
8930             allow_undefined_flag='-undefined dynamic_lookup'
8931             ;;
8932         esac
8933       fi
8934       ;;
8935     esac
8936     output_verbose_link_cmd='echo'
8937     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8938     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8939     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8940     archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8941     module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8942     hardcode_direct=no
8943     hardcode_automatic=yes
8944     hardcode_shlibpath_var=unsupported
8945     whole_archive_flag_spec='-all_load $convenience'
8946     link_all_deplibs=yes
8947   else
8948     ld_shlibs=no
8949   fi
8950     ;;
8951 esac
8952 echo "$as_me:$LINENO: result: $enable_shared" >&5
8953 echo "${ECHO_T}$enable_shared" >&6
8954
8955 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8956 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8957 # Make sure either enable_shared or enable_static is yes.
8958 test "$enable_shared" = yes || enable_static=yes
8959 echo "$as_me:$LINENO: result: $enable_static" >&5
8960 echo "${ECHO_T}$enable_static" >&6
8961
8962 # The else clause should only fire when bootstrapping the
8963 # libtool distribution, otherwise you forgot to ship ltmain.sh
8964 # with your package, and you will get complaints that there are
8965 # no rules to generate ltmain.sh.
8966 if test -f "$ltmain"; then
8967   # See if we are running on zsh, and set the options which allow our commands through
8968   # without removal of \ escapes.
8969   if test -n "${ZSH_VERSION+set}" ; then
8970     setopt NO_GLOB_SUBST
8971   fi
8972   # Now quote all the things that may contain metacharacters while being
8973   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8974   # variables and quote the copies for generation of the libtool script.
8975   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8976     SED SHELL STRIP \
8977     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8978     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8979     deplibs_check_method reload_flag reload_cmds need_locks \
8980     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8981     lt_cv_sys_global_symbol_to_c_name_address \
8982     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8983     old_postinstall_cmds old_postuninstall_cmds \
8984     compiler \
8985     CC \
8986     LD \
8987     lt_prog_compiler_wl \
8988     lt_prog_compiler_pic \
8989     lt_prog_compiler_static \
8990     lt_prog_compiler_no_builtin_flag \
8991     export_dynamic_flag_spec \
8992     thread_safe_flag_spec \
8993     whole_archive_flag_spec \
8994     enable_shared_with_static_runtimes \
8995     old_archive_cmds \
8996     old_archive_from_new_cmds \
8997     predep_objects \
8998     postdep_objects \
8999     predeps \
9000     postdeps \
9001     compiler_lib_search_path \
9002     archive_cmds \
9003     archive_expsym_cmds \
9004     postinstall_cmds \
9005     postuninstall_cmds \
9006     old_archive_from_expsyms_cmds \
9007     allow_undefined_flag \
9008     no_undefined_flag \
9009     export_symbols_cmds \
9010     hardcode_libdir_flag_spec \
9011     hardcode_libdir_flag_spec_ld \
9012     hardcode_libdir_separator \
9013     hardcode_automatic \
9014     module_cmds \
9015     module_expsym_cmds \
9016     lt_cv_prog_compiler_c_o \
9017     exclude_expsyms \
9018     include_expsyms; do
9019
9020     case $var in
9021     old_archive_cmds | \
9022     old_archive_from_new_cmds | \
9023     archive_cmds | \
9024     archive_expsym_cmds | \
9025     module_cmds | \
9026     module_expsym_cmds | \
9027     old_archive_from_expsyms_cmds | \
9028     export_symbols_cmds | \
9029     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9030     postinstall_cmds | postuninstall_cmds | \
9031     old_postinstall_cmds | old_postuninstall_cmds | \
9032     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9033       # Double-quote double-evaled strings.
9034       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9035       ;;
9036     *)
9037       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9038       ;;
9039     esac
9040   done
9041
9042   case $lt_echo in
9043   *'\$0 --fallback-echo"')
9044     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9045     ;;
9046   esac
9047
9048 cfgfile="${ofile}T"
9049   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9050   $rm -f "$cfgfile"
9051   { echo "$as_me:$LINENO: creating $ofile" >&5
9052 echo "$as_me: creating $ofile" >&6;}
9053
9054   cat <<__EOF__ >> "$cfgfile"
9055 #! $SHELL
9056
9057 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9058 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9059 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9060 #
9061 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9062 # Free Software Foundation, Inc.
9063 #
9064 # This file is part of GNU Libtool:
9065 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9066 #
9067 # This program is free software; you can redistribute it and/or modify
9068 # it under the terms of the GNU General Public License as published by
9069 # the Free Software Foundation; either version 2 of the License, or
9070 # (at your option) any later version.
9071 #
9072 # This program is distributed in the hope that it will be useful, but
9073 # WITHOUT ANY WARRANTY; without even the implied warranty of
9074 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9075 # General Public License for more details.
9076 #
9077 # You should have received a copy of the GNU General Public License
9078 # along with this program; if not, write to the Free Software
9079 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9080 #
9081 # As a special exception to the GNU General Public License, if you
9082 # distribute this file as part of a program that contains a
9083 # configuration script generated by Autoconf, you may include it under
9084 # the same distribution terms that you use for the rest of that program.
9085
9086 # A sed program that does not truncate output.
9087 SED=$lt_SED
9088
9089 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9090 Xsed="$SED -e s/^X//"
9091
9092 # The HP-UX ksh and POSIX shell print the target directory to stdout
9093 # if CDPATH is set.
9094 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9095
9096 # The names of the tagged configurations supported by this script.
9097 available_tags=
9098
9099 # ### BEGIN LIBTOOL CONFIG
9100
9101 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9102
9103 # Shell to use when invoking shell scripts.
9104 SHELL=$lt_SHELL
9105
9106 # Whether or not to build shared libraries.
9107 build_libtool_libs=$enable_shared
9108
9109 # Whether or not to build static libraries.
9110 build_old_libs=$enable_static
9111
9112 # Whether or not to add -lc for building shared libraries.
9113 build_libtool_need_lc=$archive_cmds_need_lc
9114
9115 # Whether or not to disallow shared libs when runtime libs are static
9116 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9117
9118 # Whether or not to optimize for fast installation.
9119 fast_install=$enable_fast_install
9120
9121 # The host system.
9122 host_alias=$host_alias
9123 host=$host
9124
9125 # An echo program that does not interpret backslashes.
9126 echo=$lt_echo
9127
9128 # The archiver.
9129 AR=$lt_AR
9130 AR_FLAGS=$lt_AR_FLAGS
9131
9132 # A C compiler.
9133 LTCC=$lt_LTCC
9134
9135 # A language-specific compiler.
9136 CC=$lt_compiler
9137
9138 # Is the compiler the GNU C compiler?
9139 with_gcc=$GCC
9140
9141 # An ERE matcher.
9142 EGREP=$lt_EGREP
9143
9144 # The linker used to build libraries.
9145 LD=$lt_LD
9146
9147 # Whether we need hard or soft links.
9148 LN_S=$lt_LN_S
9149
9150 # A BSD-compatible nm program.
9151 NM=$lt_NM
9152
9153 # A symbol stripping program
9154 STRIP=$lt_STRIP
9155
9156 # Used to examine libraries when file_magic_cmd begins "file"
9157 MAGIC_CMD=$MAGIC_CMD
9158
9159 # Used on cygwin: DLL creation program.
9160 DLLTOOL="$DLLTOOL"
9161
9162 # Used on cygwin: object dumper.
9163 OBJDUMP="$OBJDUMP"
9164
9165 # Used on cygwin: assembler.
9166 AS="$AS"
9167
9168 # The name of the directory that contains temporary libtool files.
9169 objdir=$objdir
9170
9171 # How to create reloadable object files.
9172 reload_flag=$lt_reload_flag
9173 reload_cmds=$lt_reload_cmds
9174
9175 # How to pass a linker flag through the compiler.
9176 wl=$lt_lt_prog_compiler_wl
9177
9178 # Object file suffix (normally "o").
9179 objext="$ac_objext"
9180
9181 # Old archive suffix (normally "a").
9182 libext="$libext"
9183
9184 # Shared library suffix (normally ".so").
9185 shrext_cmds='$shrext_cmds'
9186
9187 # Executable file suffix (normally "").
9188 exeext="$exeext"
9189
9190 # Additional compiler flags for building library objects.
9191 pic_flag=$lt_lt_prog_compiler_pic
9192 pic_mode=$pic_mode
9193
9194 # What is the maximum length of a command?
9195 max_cmd_len=$lt_cv_sys_max_cmd_len
9196
9197 # Does compiler simultaneously support -c and -o options?
9198 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9199
9200 # Must we lock files when doing compilation ?
9201 need_locks=$lt_need_locks
9202
9203 # Do we need the lib prefix for modules?
9204 need_lib_prefix=$need_lib_prefix
9205
9206 # Do we need a version for libraries?
9207 need_version=$need_version
9208
9209 # Whether dlopen is supported.
9210 dlopen_support=$enable_dlopen
9211
9212 # Whether dlopen of programs is supported.
9213 dlopen_self=$enable_dlopen_self
9214
9215 # Whether dlopen of statically linked programs is supported.
9216 dlopen_self_static=$enable_dlopen_self_static
9217
9218 # Compiler flag to prevent dynamic linking.
9219 link_static_flag=$lt_lt_prog_compiler_static
9220
9221 # Compiler flag to turn off builtin functions.
9222 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9223
9224 # Compiler flag to allow reflexive dlopens.
9225 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9226
9227 # Compiler flag to generate shared objects directly from archives.
9228 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9229
9230 # Compiler flag to generate thread-safe objects.
9231 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9232
9233 # Library versioning type.
9234 version_type=$version_type
9235
9236 # Format of library name prefix.
9237 libname_spec=$lt_libname_spec
9238
9239 # List of archive names.  First name is the real one, the rest are links.
9240 # The last name is the one that the linker finds with -lNAME.
9241 library_names_spec=$lt_library_names_spec
9242
9243 # The coded name of the library, if different from the real name.
9244 soname_spec=$lt_soname_spec
9245
9246 # Commands used to build and install an old-style archive.
9247 RANLIB=$lt_RANLIB
9248 old_archive_cmds=$lt_old_archive_cmds
9249 old_postinstall_cmds=$lt_old_postinstall_cmds
9250 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9251
9252 # Create an old-style archive from a shared archive.
9253 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9254
9255 # Create a temporary old-style archive to link instead of a shared archive.
9256 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9257
9258 # Commands used to build and install a shared archive.
9259 archive_cmds=$lt_archive_cmds
9260 archive_expsym_cmds=$lt_archive_expsym_cmds
9261 postinstall_cmds=$lt_postinstall_cmds
9262 postuninstall_cmds=$lt_postuninstall_cmds
9263
9264 # Commands used to build a loadable module (assumed same as above if empty)
9265 module_cmds=$lt_module_cmds
9266 module_expsym_cmds=$lt_module_expsym_cmds
9267
9268 # Commands to strip libraries.
9269 old_striplib=$lt_old_striplib
9270 striplib=$lt_striplib
9271
9272 # Dependencies to place before the objects being linked to create a
9273 # shared library.
9274 predep_objects=$lt_predep_objects
9275
9276 # Dependencies to place after the objects being linked to create a
9277 # shared library.
9278 postdep_objects=$lt_postdep_objects
9279
9280 # Dependencies to place before the objects being linked to create a
9281 # shared library.
9282 predeps=$lt_predeps
9283
9284 # Dependencies to place after the objects being linked to create a
9285 # shared library.
9286 postdeps=$lt_postdeps
9287
9288 # The library search path used internally by the compiler when linking
9289 # a shared library.
9290 compiler_lib_search_path=$lt_compiler_lib_search_path
9291
9292 # Method to check whether dependent libraries are shared objects.
9293 deplibs_check_method=$lt_deplibs_check_method
9294
9295 # Command to use when deplibs_check_method == file_magic.
9296 file_magic_cmd=$lt_file_magic_cmd
9297
9298 # Flag that allows shared libraries with undefined symbols to be built.
9299 allow_undefined_flag=$lt_allow_undefined_flag
9300
9301 # Flag that forces no undefined symbols.
9302 no_undefined_flag=$lt_no_undefined_flag
9303
9304 # Commands used to finish a libtool library installation in a directory.
9305 finish_cmds=$lt_finish_cmds
9306
9307 # Same as above, but a single script fragment to be evaled but not shown.
9308 finish_eval=$lt_finish_eval
9309
9310 # Take the output of nm and produce a listing of raw symbols and C names.
9311 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9312
9313 # Transform the output of nm in a proper C declaration
9314 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9315
9316 # Transform the output of nm in a C name address pair
9317 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9318
9319 # This is the shared library runtime path variable.
9320 runpath_var=$runpath_var
9321
9322 # This is the shared library path variable.
9323 shlibpath_var=$shlibpath_var
9324
9325 # Is shlibpath searched before the hard-coded library search path?
9326 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9327
9328 # How to hardcode a shared library path into an executable.
9329 hardcode_action=$hardcode_action
9330
9331 # Whether we should hardcode library paths into libraries.
9332 hardcode_into_libs=$hardcode_into_libs
9333
9334 # Flag to hardcode \$libdir into a binary during linking.
9335 # This must work even if \$libdir does not exist.
9336 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9337
9338 # If ld is used when linking, flag to hardcode \$libdir into
9339 # a binary during linking. This must work even if \$libdir does
9340 # not exist.
9341 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9342
9343 # Whether we need a single -rpath flag with a separated argument.
9344 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9345
9346 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9347 # resulting binary.
9348 hardcode_direct=$hardcode_direct
9349
9350 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9351 # resulting binary.
9352 hardcode_minus_L=$hardcode_minus_L
9353
9354 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9355 # the resulting binary.
9356 hardcode_shlibpath_var=$hardcode_shlibpath_var
9357
9358 # Set to yes if building a shared library automatically hardcodes DIR into the library
9359 # and all subsequent libraries and executables linked against it.
9360 hardcode_automatic=$hardcode_automatic
9361
9362 # Variables whose values should be saved in libtool wrapper scripts and
9363 # restored at relink time.
9364 variables_saved_for_relink="$variables_saved_for_relink"
9365
9366 # Whether libtool must link a program against all its dependency libraries.
9367 link_all_deplibs=$link_all_deplibs
9368
9369 # Compile-time system search path for libraries
9370 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9371
9372 # Run-time system search path for libraries
9373 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9374
9375 # Fix the shell variable \$srcfile for the compiler.
9376 fix_srcfile_path="$fix_srcfile_path"
9377
9378 # Set to yes if exported symbols are required.
9379 always_export_symbols=$always_export_symbols
9380
9381 # The commands to list exported symbols.
9382 export_symbols_cmds=$lt_export_symbols_cmds
9383
9384 # The commands to extract the exported symbol list from a shared archive.
9385 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9386
9387 # Symbols that should not be listed in the preloaded symbols.
9388 exclude_expsyms=$lt_exclude_expsyms
9389
9390 # Symbols that must always be exported.
9391 include_expsyms=$lt_include_expsyms
9392
9393 # ### END LIBTOOL CONFIG
9394
9395 __EOF__
9396
9397
9398   case $host_os in
9399   aix3*)
9400     cat <<\EOF >> "$cfgfile"
9401
9402 # AIX sometimes has problems with the GCC collect2 program.  For some
9403 # reason, if we set the COLLECT_NAMES environment variable, the problems
9404 # vanish in a puff of smoke.
9405 if test "X${COLLECT_NAMES+set}" != Xset; then
9406   COLLECT_NAMES=
9407   export COLLECT_NAMES
9408 fi
9409 EOF
9410     ;;
9411   esac
9412
9413   # We use sed instead of cat because bash on DJGPP gets confused if
9414   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9415   # text mode, it properly converts lines to CR/LF.  This bash problem
9416   # is reportedly fixed, but why not run on old versions too?
9417   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9418
9419   mv -f "$cfgfile" "$ofile" || \
9420     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9421   chmod +x "$ofile"
9422
9423 else
9424   # If there is no Makefile yet, we rely on a make rule to execute
9425   # `config.status --recheck' to rerun these tests and create the
9426   # libtool script then.
9427   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9428   if test -f "$ltmain_in"; then
9429     test -f Makefile && make "$ltmain"
9430   fi
9431 fi
9432
9433
9434 ac_ext=c
9435 ac_cpp='$CPP $CPPFLAGS'
9436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9439
9440 CC="$lt_save_CC"
9441
9442
9443 # Check whether --with-tags or --without-tags was given.
9444 if test "${with_tags+set}" = set; then
9445   withval="$with_tags"
9446   tagnames="$withval"
9447 fi;
9448
9449 if test -f "$ltmain" && test -n "$tagnames"; then
9450   if test ! -f "${ofile}"; then
9451     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9452 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9453   fi
9454
9455   if test -z "$LTCC"; then
9456     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9457     if test -z "$LTCC"; then
9458       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9459 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9460     else
9461       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9462 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9463     fi
9464   fi
9465
9466   # Extract list of available tagged configurations in $ofile.
9467   # Note that this assumes the entire list is on one line.
9468   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9469
9470   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9471   for tagname in $tagnames; do
9472     IFS="$lt_save_ifs"
9473     # Check whether tagname contains only valid characters
9474     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9475     "") ;;
9476     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9477 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9478    { (exit 1); exit 1; }; }
9479         ;;
9480     esac
9481
9482     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9483     then
9484       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9485 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9486    { (exit 1); exit 1; }; }
9487     fi
9488
9489     # Update the list of available tags.
9490     if test -n "$tagname"; then
9491       echo appending configuration tag \"$tagname\" to $ofile
9492
9493       case $tagname in
9494       CXX)
9495         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9496           ac_ext=cc
9497 ac_cpp='$CXXCPP $CPPFLAGS'
9498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9501
9502
9503
9504
9505 archive_cmds_need_lc_CXX=no
9506 allow_undefined_flag_CXX=
9507 always_export_symbols_CXX=no
9508 archive_expsym_cmds_CXX=
9509 export_dynamic_flag_spec_CXX=
9510 hardcode_direct_CXX=no
9511 hardcode_libdir_flag_spec_CXX=
9512 hardcode_libdir_flag_spec_ld_CXX=
9513 hardcode_libdir_separator_CXX=
9514 hardcode_minus_L_CXX=no
9515 hardcode_automatic_CXX=no
9516 module_cmds_CXX=
9517 module_expsym_cmds_CXX=
9518 link_all_deplibs_CXX=unknown
9519 old_archive_cmds_CXX=$old_archive_cmds
9520 no_undefined_flag_CXX=
9521 whole_archive_flag_spec_CXX=
9522 enable_shared_with_static_runtimes_CXX=no
9523
9524 # Dependencies to place before and after the object being linked:
9525 predep_objects_CXX=
9526 postdep_objects_CXX=
9527 predeps_CXX=
9528 postdeps_CXX=
9529 compiler_lib_search_path_CXX=
9530
9531 # Source file extension for C++ test sources.
9532 ac_ext=cc
9533
9534 # Object file extension for compiled C++ test sources.
9535 objext=o
9536 objext_CXX=$objext
9537
9538 # Code to be used in simple compile tests
9539 lt_simple_compile_test_code="int some_variable = 0;\n"
9540
9541 # Code to be used in simple link tests
9542 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9543
9544 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9545
9546 # If no C compiler was specified, use CC.
9547 LTCC=${LTCC-"$CC"}
9548
9549 # Allow CC to be a program name with arguments.
9550 compiler=$CC
9551
9552
9553 # Allow CC to be a program name with arguments.
9554 lt_save_CC=$CC
9555 lt_save_LD=$LD
9556 lt_save_GCC=$GCC
9557 GCC=$GXX
9558 lt_save_with_gnu_ld=$with_gnu_ld
9559 lt_save_path_LD=$lt_cv_path_LD
9560 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9561   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9562 else
9563   unset lt_cv_prog_gnu_ld
9564 fi
9565 if test -n "${lt_cv_path_LDCXX+set}"; then
9566   lt_cv_path_LD=$lt_cv_path_LDCXX
9567 else
9568   unset lt_cv_path_LD
9569 fi
9570 test -z "${LDCXX+set}" || LD=$LDCXX
9571 CC=${CXX-"c++"}
9572 compiler=$CC
9573 compiler_CXX=$CC
9574 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9575
9576 # We don't want -fno-exception wen compiling C++ code, so set the
9577 # no_builtin_flag separately
9578 if test "$GXX" = yes; then
9579   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9580 else
9581   lt_prog_compiler_no_builtin_flag_CXX=
9582 fi
9583
9584 if test "$GXX" = yes; then
9585   # Set up default GNU C++ configuration
9586
9587
9588 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9589 if test "${with_gnu_ld+set}" = set; then
9590   withval="$with_gnu_ld"
9591   test "$withval" = no || with_gnu_ld=yes
9592 else
9593   with_gnu_ld=no
9594 fi;
9595 ac_prog=ld
9596 if test "$GCC" = yes; then
9597   # Check if gcc -print-prog-name=ld gives a path.
9598   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9599 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9600   case $host in
9601   *-*-mingw*)
9602     # gcc leaves a trailing carriage return which upsets mingw
9603     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9604   *)
9605     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9606   esac
9607   case $ac_prog in
9608     # Accept absolute paths.
9609     [\\/]* | ?:[\\/]*)
9610       re_direlt='/[^/][^/]*/\.\./'
9611       # Canonicalize the pathname of ld
9612       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9613       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9614         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9615       done
9616       test -z "$LD" && LD="$ac_prog"
9617       ;;
9618   "")
9619     # If it fails, then pretend we aren't using GCC.
9620     ac_prog=ld
9621     ;;
9622   *)
9623     # If it is relative, then search for the first ld in PATH.
9624     with_gnu_ld=unknown
9625     ;;
9626   esac
9627 elif test "$with_gnu_ld" = yes; then
9628   echo "$as_me:$LINENO: checking for GNU ld" >&5
9629 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9630 else
9631   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9632 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9633 fi
9634 if test "${lt_cv_path_LD+set}" = set; then
9635   echo $ECHO_N "(cached) $ECHO_C" >&6
9636 else
9637   if test -z "$LD"; then
9638   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9639   for ac_dir in $PATH; do
9640     IFS="$lt_save_ifs"
9641     test -z "$ac_dir" && ac_dir=.
9642     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9643       lt_cv_path_LD="$ac_dir/$ac_prog"
9644       # Check to see if the program is GNU ld.  I'd rather use --version,
9645       # but apparently some GNU ld's only accept -v.
9646       # Break only if it was the GNU/non-GNU ld that we prefer.
9647       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9648       *GNU* | *'with BFD'*)
9649         test "$with_gnu_ld" != no && break
9650         ;;
9651       *)
9652         test "$with_gnu_ld" != yes && break
9653         ;;
9654       esac
9655     fi
9656   done
9657   IFS="$lt_save_ifs"
9658 else
9659   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9660 fi
9661 fi
9662
9663 LD="$lt_cv_path_LD"
9664 if test -n "$LD"; then
9665   echo "$as_me:$LINENO: result: $LD" >&5
9666 echo "${ECHO_T}$LD" >&6
9667 else
9668   echo "$as_me:$LINENO: result: no" >&5
9669 echo "${ECHO_T}no" >&6
9670 fi
9671 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9672 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9673    { (exit 1); exit 1; }; }
9674 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9675 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9676 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9677   echo $ECHO_N "(cached) $ECHO_C" >&6
9678 else
9679   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9680 case `$LD -v 2>&1 </dev/null` in
9681 *GNU* | *'with BFD'*)
9682   lt_cv_prog_gnu_ld=yes
9683   ;;
9684 *)
9685   lt_cv_prog_gnu_ld=no
9686   ;;
9687 esac
9688 fi
9689 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9690 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9691 with_gnu_ld=$lt_cv_prog_gnu_ld
9692
9693
9694
9695   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9696   # archiving commands below assume that GNU ld is being used.
9697   if test "$with_gnu_ld" = yes; then
9698     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9699     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9700
9701     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9702     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9703
9704     # If archive_cmds runs LD, not CC, wlarc should be empty
9705     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9706     #     investigate it a little bit more. (MM)
9707     wlarc='${wl}'
9708
9709     # ancient GNU ld didn't support --whole-archive et. al.
9710     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9711         grep 'no-whole-archive' > /dev/null; then
9712       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9713     else
9714       whole_archive_flag_spec_CXX=
9715     fi
9716   else
9717     with_gnu_ld=no
9718     wlarc=
9719
9720     # A generic and very simple default shared library creation
9721     # command for GNU C++ for the case where it uses the native
9722     # linker, instead of GNU ld.  If possible, this setting should
9723     # overridden to take advantage of the native linker features on
9724     # the platform it is being used on.
9725     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9726   fi
9727
9728   # Commands to make compiler produce verbose output that lists
9729   # what "hidden" libraries, object files and flags are used when
9730   # linking a shared library.
9731   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9732
9733 else
9734   GXX=no
9735   with_gnu_ld=no
9736   wlarc=
9737 fi
9738
9739 # PORTME: fill in a description of your system's C++ link characteristics
9740 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9741 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9742 ld_shlibs_CXX=yes
9743 case $host_os in
9744   aix3*)
9745     # FIXME: insert proper C++ library support
9746     ld_shlibs_CXX=no
9747     ;;
9748   aix4* | aix5*)
9749     if test "$host_cpu" = ia64; then
9750       # On IA64, the linker does run time linking by default, so we don't
9751       # have to do anything special.
9752       aix_use_runtimelinking=no
9753       exp_sym_flag='-Bexport'
9754       no_entry_flag=""
9755     else
9756       aix_use_runtimelinking=no
9757
9758       # Test if we are trying to use run time linking or normal
9759       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9760       # need to do runtime linking.
9761       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9762         for ld_flag in $LDFLAGS; do
9763           case $ld_flag in
9764           *-brtl*)
9765             aix_use_runtimelinking=yes
9766             break
9767             ;;
9768           esac
9769         done
9770       esac
9771
9772       exp_sym_flag='-bexport'
9773       no_entry_flag='-bnoentry'
9774     fi
9775
9776     # When large executables or shared objects are built, AIX ld can
9777     # have problems creating the table of contents.  If linking a library
9778     # or program results in "error TOC overflow" add -mminimal-toc to
9779     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9780     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9781
9782     archive_cmds_CXX=''
9783     hardcode_direct_CXX=yes
9784     hardcode_libdir_separator_CXX=':'
9785     link_all_deplibs_CXX=yes
9786
9787     if test "$GXX" = yes; then
9788       case $host_os in aix4.012|aix4.012.*)
9789       # We only want to do this on AIX 4.2 and lower, the check
9790       # below for broken collect2 doesn't work under 4.3+
9791         collect2name=`${CC} -print-prog-name=collect2`
9792         if test -f "$collect2name" && \
9793            strings "$collect2name" | grep resolve_lib_name >/dev/null
9794         then
9795           # We have reworked collect2
9796           hardcode_direct_CXX=yes
9797         else
9798           # We have old collect2
9799           hardcode_direct_CXX=unsupported
9800           # It fails to find uninstalled libraries when the uninstalled
9801           # path is not listed in the libpath.  Setting hardcode_minus_L
9802           # to unsupported forces relinking
9803           hardcode_minus_L_CXX=yes
9804           hardcode_libdir_flag_spec_CXX='-L$libdir'
9805           hardcode_libdir_separator_CXX=
9806         fi
9807       esac
9808       shared_flag='-shared'
9809     else
9810       # not using gcc
9811       if test "$host_cpu" = ia64; then
9812         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9813         # chokes on -Wl,-G. The following line is correct:
9814         shared_flag='-G'
9815       else
9816         if test "$aix_use_runtimelinking" = yes; then
9817           shared_flag='${wl}-G'
9818         else
9819           shared_flag='${wl}-bM:SRE'
9820         fi
9821       fi
9822     fi
9823
9824     # It seems that -bexpall does not export symbols beginning with
9825     # underscore (_), so it is better to generate a list of symbols to export.
9826     always_export_symbols_CXX=yes
9827     if test "$aix_use_runtimelinking" = yes; then
9828       # Warning - without using the other runtime loading flags (-brtl),
9829       # -berok will link without error, but may produce a broken library.
9830       allow_undefined_flag_CXX='-berok'
9831       # Determine the default libpath from the value encoded in an empty executable.
9832       cat >conftest.$ac_ext <<_ACEOF
9833 #line $LINENO "configure"
9834 /* confdefs.h.  */
9835 _ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h.  */
9839
9840 int
9841 main ()
9842 {
9843
9844   ;
9845   return 0;
9846 }
9847 _ACEOF
9848 rm -f conftest.$ac_objext conftest$ac_exeext
9849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9850   (eval $ac_link) 2>&5
9851   ac_status=$?
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); } &&
9854          { ac_try='test -s conftest$ac_exeext'
9855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856   (eval $ac_try) 2>&5
9857   ac_status=$?
9858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); }; }; then
9860
9861 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9862 }'`
9863 # Check for a 64-bit object if we didn't find anything.
9864 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9865 }'`; fi
9866 else
9867   echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9869
9870 fi
9871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9872 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9873
9874       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9875
9876       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9877      else
9878       if test "$host_cpu" = ia64; then
9879         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9880         allow_undefined_flag_CXX="-z nodefs"
9881         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9882       else
9883         # Determine the default libpath from the value encoded in an empty executable.
9884         cat >conftest.$ac_ext <<_ACEOF
9885 #line $LINENO "configure"
9886 /* confdefs.h.  */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h.  */
9891
9892 int
9893 main ()
9894 {
9895
9896   ;
9897   return 0;
9898 }
9899 _ACEOF
9900 rm -f conftest.$ac_objext conftest$ac_exeext
9901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9902   (eval $ac_link) 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); } &&
9906          { ac_try='test -s conftest$ac_exeext'
9907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908   (eval $ac_try) 2>&5
9909   ac_status=$?
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); }; }; then
9912
9913 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9914 }'`
9915 # Check for a 64-bit object if we didn't find anything.
9916 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9917 }'`; fi
9918 else
9919   echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9921
9922 fi
9923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9924 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9925
9926         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9927         # Warning - without using the other run time loading flags,
9928         # -berok will link without error, but may produce a broken library.
9929         no_undefined_flag_CXX=' ${wl}-bernotok'
9930         allow_undefined_flag_CXX=' ${wl}-berok'
9931         # -bexpall does not export symbols beginning with underscore (_)
9932         always_export_symbols_CXX=yes
9933         # Exported symbols can be pulled into shared objects from archives
9934         whole_archive_flag_spec_CXX=' '
9935         archive_cmds_need_lc_CXX=yes
9936         # This is similar to how AIX traditionally builds it's shared libraries.
9937         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9938       fi
9939     fi
9940     ;;
9941   chorus*)
9942     case $cc_basename in
9943       *)
9944         # FIXME: insert proper C++ library support
9945         ld_shlibs_CXX=no
9946         ;;
9947     esac
9948     ;;
9949
9950   cygwin* | mingw* | pw32*)
9951     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9952     # as there is no search path for DLLs.
9953     hardcode_libdir_flag_spec_CXX='-L$libdir'
9954     allow_undefined_flag_CXX=unsupported
9955     always_export_symbols_CXX=no
9956     enable_shared_with_static_runtimes_CXX=yes
9957
9958     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9959       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9960       # If the export-symbols file already is a .def file (1st line
9961       # is EXPORTS), use it as is; otherwise, prepend...
9962       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9963         cp $export_symbols $output_objdir/$soname.def;
9964       else
9965         echo EXPORTS > $output_objdir/$soname.def;
9966         cat $export_symbols >> $output_objdir/$soname.def;
9967       fi~
9968       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9969     else
9970       ld_shlibs_CXX=no
9971     fi
9972   ;;
9973
9974   darwin* | rhapsody*)
9975   if test "$GXX" = yes; then
9976     archive_cmds_need_lc_CXX=no
9977     case "$host_os" in
9978     rhapsody* | darwin1.[012])
9979       allow_undefined_flag_CXX='-undefined suppress'
9980       ;;
9981     *) # Darwin 1.3 on
9982       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9983         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9984       else
9985         case ${MACOSX_DEPLOYMENT_TARGET} in
9986           10.[012])
9987             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9988             ;;
9989           10.*)
9990             allow_undefined_flag_CXX='-undefined dynamic_lookup'
9991             ;;
9992         esac
9993       fi
9994       ;;
9995     esac
9996     lt_int_apple_cc_single_mod=no
9997     output_verbose_link_cmd='echo'
9998     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9999       lt_int_apple_cc_single_mod=yes
10000     fi
10001     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10002       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10003     else
10004       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10005     fi
10006     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10007
10008     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10009     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10010       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10011     else
10012       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10013     fi
10014     module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10015     hardcode_direct_CXX=no
10016     hardcode_automatic_CXX=yes
10017     hardcode_shlibpath_var_CXX=unsupported
10018     whole_archive_flag_spec_CXX='-all_load $convenience'
10019     link_all_deplibs_CXX=yes
10020   else
10021     ld_shlibs_CXX=no
10022   fi
10023     ;;
10024
10025   dgux*)
10026     case $cc_basename in
10027       ec++)
10028         # FIXME: insert proper C++ library support
10029         ld_shlibs_CXX=no
10030         ;;
10031       ghcx)
10032         # Green Hills C++ Compiler
10033         # FIXME: insert proper C++ library support
10034         ld_shlibs_CXX=no
10035         ;;
10036       *)
10037         # FIXME: insert proper C++ library support
10038         ld_shlibs_CXX=no
10039         ;;
10040     esac
10041     ;;
10042   freebsd12*)
10043     # C++ shared libraries reported to be fairly broken before switch to ELF
10044     ld_shlibs_CXX=no
10045     ;;
10046   freebsd-elf*)
10047     archive_cmds_need_lc_CXX=no
10048     ;;
10049   freebsd* | kfreebsd*-gnu)
10050     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10051     # conventions
10052     ld_shlibs_CXX=yes
10053     ;;
10054   gnu*)
10055     ;;
10056   hpux9*)
10057     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10058     hardcode_libdir_separator_CXX=:
10059     export_dynamic_flag_spec_CXX='${wl}-E'
10060     hardcode_direct_CXX=yes
10061     hardcode_minus_L_CXX=yes # Not in the search PATH,
10062                                 # but as the default
10063                                 # location of the library.
10064
10065     case $cc_basename in
10066     CC)
10067       # FIXME: insert proper C++ library support
10068       ld_shlibs_CXX=no
10069       ;;
10070     aCC)
10071       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10072       # Commands to make compiler produce verbose output that lists
10073       # what "hidden" libraries, object files and flags are used when
10074       # linking a shared library.
10075       #
10076       # There doesn't appear to be a way to prevent this compiler from
10077       # explicitly linking system object files so we need to strip them
10078       # from the output so that they don't get included in the library
10079       # dependencies.
10080       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10081       ;;
10082     *)
10083       if test "$GXX" = yes; then
10084         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10085       else
10086         # FIXME: insert proper C++ library support
10087         ld_shlibs_CXX=no
10088       fi
10089       ;;
10090     esac
10091     ;;
10092   hpux10*|hpux11*)
10093     if test $with_gnu_ld = no; then
10094       case "$host_cpu" in
10095       hppa*64*)
10096         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10097         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10098         hardcode_libdir_separator_CXX=:
10099         ;;
10100       ia64*)
10101         hardcode_libdir_flag_spec_CXX='-L$libdir'
10102         ;;
10103       *)
10104         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10105         hardcode_libdir_separator_CXX=:
10106         export_dynamic_flag_spec_CXX='${wl}-E'
10107         ;;
10108       esac
10109     fi
10110     case "$host_cpu" in
10111     hppa*64*)
10112       hardcode_direct_CXX=no
10113       hardcode_shlibpath_var_CXX=no
10114       ;;
10115     ia64*)
10116       hardcode_direct_CXX=no
10117       hardcode_shlibpath_var_CXX=no
10118       hardcode_minus_L_CXX=yes # Not in the search PATH,
10119                                               # but as the default
10120                                               # location of the library.
10121       ;;
10122     *)
10123       hardcode_direct_CXX=yes
10124       hardcode_minus_L_CXX=yes # Not in the search PATH,
10125                                               # but as the default
10126                                               # location of the library.
10127       ;;
10128     esac
10129
10130     case $cc_basename in
10131       CC)
10132         # FIXME: insert proper C++ library support
10133         ld_shlibs_CXX=no
10134         ;;
10135       aCC)
10136         case "$host_cpu" in
10137         hppa*64*|ia64*)
10138           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10139           ;;
10140         *)
10141           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10142           ;;
10143         esac
10144         # Commands to make compiler produce verbose output that lists
10145         # what "hidden" libraries, object files and flags are used when
10146         # linking a shared library.
10147         #
10148         # There doesn't appear to be a way to prevent this compiler from
10149         # explicitly linking system object files so we need to strip them
10150         # from the output so that they don't get included in the library
10151         # dependencies.
10152         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10153         ;;
10154       *)
10155         if test "$GXX" = yes; then
10156           if test $with_gnu_ld = no; then
10157             case "$host_cpu" in
10158             ia64*|hppa*64*)
10159               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10160               ;;
10161             *)
10162               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10163               ;;
10164             esac
10165           fi
10166         else
10167           # FIXME: insert proper C++ library support
10168           ld_shlibs_CXX=no
10169         fi
10170         ;;
10171     esac
10172     ;;
10173   irix5* | irix6*)
10174     case $cc_basename in
10175       CC)
10176         # SGI C++
10177         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10178
10179         # Archives containing C++ object files must be created using
10180         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10181         # necessary to make sure instantiated templates are included
10182         # in the archive.
10183         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10184         ;;
10185       *)
10186         if test "$GXX" = yes; then
10187           if test "$with_gnu_ld" = no; then
10188             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10189           else
10190             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10191           fi
10192         fi
10193         link_all_deplibs_CXX=yes
10194         ;;
10195     esac
10196     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10197     hardcode_libdir_separator_CXX=:
10198     ;;
10199   linux*)
10200     case $cc_basename in
10201       KCC)
10202         # Kuck and Associates, Inc. (KAI) C++ Compiler
10203
10204         # KCC will only create a shared library if the output file
10205         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10206         # to its proper name (with version) after linking.
10207         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10208         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10209         # Commands to make compiler produce verbose output that lists
10210         # what "hidden" libraries, object files and flags are used when
10211         # linking a shared library.
10212         #
10213         # There doesn't appear to be a way to prevent this compiler from
10214         # explicitly linking system object files so we need to strip them
10215         # from the output so that they don't get included in the library
10216         # dependencies.
10217         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10218
10219         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10220         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10221
10222         # Archives containing C++ object files must be created using
10223         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10224         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10225         ;;
10226       icpc)
10227         # Intel C++
10228         with_gnu_ld=yes
10229         archive_cmds_need_lc_CXX=no
10230         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10231         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10232         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10233         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10234         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10235         ;;
10236       cxx)
10237         # Compaq C++
10238         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10239         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10240
10241         runpath_var=LD_RUN_PATH
10242         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10243         hardcode_libdir_separator_CXX=:
10244
10245         # Commands to make compiler produce verbose output that lists
10246         # what "hidden" libraries, object files and flags are used when
10247         # linking a shared library.
10248         #
10249         # There doesn't appear to be a way to prevent this compiler from
10250         # explicitly linking system object files so we need to strip them
10251         # from the output so that they don't get included in the library
10252         # dependencies.
10253         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10254         ;;
10255     esac
10256     ;;
10257   lynxos*)
10258     # FIXME: insert proper C++ library support
10259     ld_shlibs_CXX=no
10260     ;;
10261   m88k*)
10262     # FIXME: insert proper C++ library support
10263     ld_shlibs_CXX=no
10264     ;;
10265   mvs*)
10266     case $cc_basename in
10267       cxx)
10268         # FIXME: insert proper C++ library support
10269         ld_shlibs_CXX=no
10270         ;;
10271       *)
10272         # FIXME: insert proper C++ library support
10273         ld_shlibs_CXX=no
10274         ;;
10275     esac
10276     ;;
10277   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10278     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10279       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10280       wlarc=
10281       hardcode_libdir_flag_spec_CXX='-R$libdir'
10282       hardcode_direct_CXX=yes
10283       hardcode_shlibpath_var_CXX=no
10284     fi
10285     # Workaround some broken pre-1.5 toolchains
10286     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10287     ;;
10288   osf3*)
10289     case $cc_basename in
10290       KCC)
10291         # Kuck and Associates, Inc. (KAI) C++ Compiler
10292
10293         # KCC will only create a shared library if the output file
10294         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10295         # to its proper name (with version) after linking.
10296         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10297
10298         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10299         hardcode_libdir_separator_CXX=:
10300
10301         # Archives containing C++ object files must be created using
10302         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10303         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10304
10305         ;;
10306       RCC)
10307         # Rational C++ 2.4.1
10308         # FIXME: insert proper C++ library support
10309         ld_shlibs_CXX=no
10310         ;;
10311       cxx)
10312         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10313         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10314
10315         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10316         hardcode_libdir_separator_CXX=:
10317
10318         # Commands to make compiler produce verbose output that lists
10319         # what "hidden" libraries, object files and flags are used when
10320         # linking a shared library.
10321         #
10322         # There doesn't appear to be a way to prevent this compiler from
10323         # explicitly linking system object files so we need to strip them
10324         # from the output so that they don't get included in the library
10325         # dependencies.
10326         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10327         ;;
10328       *)
10329         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10330           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10331           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10332
10333           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10334           hardcode_libdir_separator_CXX=:
10335
10336           # Commands to make compiler produce verbose output that lists
10337           # what "hidden" libraries, object files and flags are used when
10338           # linking a shared library.
10339           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10340
10341         else
10342           # FIXME: insert proper C++ library support
10343           ld_shlibs_CXX=no
10344         fi
10345         ;;
10346     esac
10347     ;;
10348   osf4* | osf5*)
10349     case $cc_basename in
10350       KCC)
10351         # Kuck and Associates, Inc. (KAI) C++ Compiler
10352
10353         # KCC will only create a shared library if the output file
10354         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10355         # to its proper name (with version) after linking.
10356         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10357
10358         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10359         hardcode_libdir_separator_CXX=:
10360
10361         # Archives containing C++ object files must be created using
10362         # the KAI C++ compiler.
10363         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10364         ;;
10365       RCC)
10366         # Rational C++ 2.4.1
10367         # FIXME: insert proper C++ library support
10368         ld_shlibs_CXX=no
10369         ;;
10370       cxx)
10371         allow_undefined_flag_CXX=' -expect_unresolved \*'
10372         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10373         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10374           echo "-hidden">> $lib.exp~
10375           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10376           $rm $lib.exp'
10377
10378         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10379         hardcode_libdir_separator_CXX=:
10380
10381         # Commands to make compiler produce verbose output that lists
10382         # what "hidden" libraries, object files and flags are used when
10383         # linking a shared library.
10384         #
10385         # There doesn't appear to be a way to prevent this compiler from
10386         # explicitly linking system object files so we need to strip them
10387         # from the output so that they don't get included in the library
10388         # dependencies.
10389         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10390         ;;
10391       *)
10392         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10393           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10394          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10395
10396           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10397           hardcode_libdir_separator_CXX=:
10398
10399           # Commands to make compiler produce verbose output that lists
10400           # what "hidden" libraries, object files and flags are used when
10401           # linking a shared library.
10402           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10403
10404         else
10405           # FIXME: insert proper C++ library support
10406           ld_shlibs_CXX=no
10407         fi
10408         ;;
10409     esac
10410     ;;
10411   psos*)
10412     # FIXME: insert proper C++ library support
10413     ld_shlibs_CXX=no
10414     ;;
10415   sco*)
10416     archive_cmds_need_lc_CXX=no
10417     case $cc_basename in
10418       CC)
10419         # FIXME: insert proper C++ library support
10420         ld_shlibs_CXX=no
10421         ;;
10422       *)
10423         # FIXME: insert proper C++ library support
10424         ld_shlibs_CXX=no
10425         ;;
10426     esac
10427     ;;
10428   sunos4*)
10429     case $cc_basename in
10430       CC)
10431         # Sun C++ 4.x
10432         # FIXME: insert proper C++ library support
10433         ld_shlibs_CXX=no
10434         ;;
10435       lcc)
10436         # Lucid
10437         # FIXME: insert proper C++ library support
10438         ld_shlibs_CXX=no
10439         ;;
10440       *)
10441         # FIXME: insert proper C++ library support
10442         ld_shlibs_CXX=no
10443         ;;
10444     esac
10445     ;;
10446   solaris*)
10447     case $cc_basename in
10448       CC)
10449         # Sun C++ 4.2, 5.x and Centerline C++
10450         no_undefined_flag_CXX=' -zdefs'
10451         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10452         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10453         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10454
10455         hardcode_libdir_flag_spec_CXX='-R$libdir'
10456         hardcode_shlibpath_var_CXX=no
10457         case $host_os in
10458           solaris2.0-5 | solaris2.0-5.*) ;;
10459           *)
10460             # The C++ compiler is used as linker so we must use $wl
10461             # flag to pass the commands to the underlying system
10462             # linker.
10463             # Supported since Solaris 2.6 (maybe 2.5.1?)
10464             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10465             ;;
10466         esac
10467         link_all_deplibs_CXX=yes
10468
10469         # Commands to make compiler produce verbose output that lists
10470         # what "hidden" libraries, object files and flags are used when
10471         # linking a shared library.
10472         #
10473         # There doesn't appear to be a way to prevent this compiler from
10474         # explicitly linking system object files so we need to strip them
10475         # from the output so that they don't get included in the library
10476         # dependencies.
10477         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10478
10479         # Archives containing C++ object files must be created using
10480         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10481         # necessary to make sure instantiated templates are included
10482         # in the archive.
10483         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10484         ;;
10485       gcx)
10486         # Green Hills C++ Compiler
10487         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10488
10489         # The C++ compiler must be used to create the archive.
10490         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10491         ;;
10492       *)
10493         # GNU C++ compiler with Solaris linker
10494         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10495           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10496           if $CC --version | grep -v '^2\.7' > /dev/null; then
10497             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10498             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10499                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10500
10501             # Commands to make compiler produce verbose output that lists
10502             # what "hidden" libraries, object files and flags are used when
10503             # linking a shared library.
10504             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10505           else
10506             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10507             # platform.
10508             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10509             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10510                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10511
10512             # Commands to make compiler produce verbose output that lists
10513             # what "hidden" libraries, object files and flags are used when
10514             # linking a shared library.
10515             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10516           fi
10517
10518           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10519         fi
10520         ;;
10521     esac
10522     ;;
10523   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10524     archive_cmds_need_lc_CXX=no
10525     ;;
10526   tandem*)
10527     case $cc_basename in
10528       NCC)
10529         # NonStop-UX NCC 3.20
10530         # FIXME: insert proper C++ library support
10531         ld_shlibs_CXX=no
10532         ;;
10533       *)
10534         # FIXME: insert proper C++ library support
10535         ld_shlibs_CXX=no
10536         ;;
10537     esac
10538     ;;
10539   vxworks*)
10540     # FIXME: insert proper C++ library support
10541     ld_shlibs_CXX=no
10542     ;;
10543   *)
10544     # FIXME: insert proper C++ library support
10545     ld_shlibs_CXX=no
10546     ;;
10547 esac
10548 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10549 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10550 test "$ld_shlibs_CXX" = no && can_build_shared=no
10551
10552 GCC_CXX="$GXX"
10553 LD_CXX="$LD"
10554
10555
10556 cat > conftest.$ac_ext <<EOF
10557 class Foo
10558 {
10559 public:
10560   Foo (void) { a = 0; }
10561 private:
10562   int a;
10563 };
10564 EOF
10565
10566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567   (eval $ac_compile) 2>&5
10568   ac_status=$?
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   (exit $ac_status); }; then
10571   # Parse the compiler output and extract the necessary
10572   # objects, libraries and library flags.
10573
10574   # Sentinel used to keep track of whether or not we are before
10575   # the conftest object file.
10576   pre_test_object_deps_done=no
10577
10578   # The `*' in the case matches for architectures that use `case' in
10579   # $output_verbose_cmd can trigger glob expansion during the loop
10580   # eval without this substitution.
10581   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10582
10583   for p in `eval $output_verbose_link_cmd`; do
10584     case $p in
10585
10586     -L* | -R* | -l*)
10587        # Some compilers place space between "-{L,R}" and the path.
10588        # Remove the space.
10589        if test $p = "-L" \
10590           || test $p = "-R"; then
10591          prev=$p
10592          continue
10593        else
10594          prev=
10595        fi
10596
10597        if test "$pre_test_object_deps_done" = no; then
10598          case $p in
10599          -L* | -R*)
10600            # Internal compiler library paths should come after those
10601            # provided the user.  The postdeps already come after the
10602            # user supplied libs so there is no need to process them.
10603            if test -z "$compiler_lib_search_path_CXX"; then
10604              compiler_lib_search_path_CXX="${prev}${p}"
10605            else
10606              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10607            fi
10608            ;;
10609          # The "-l" case would never come before the object being
10610          # linked, so don't bother handling this case.
10611          esac
10612        else
10613          if test -z "$postdeps_CXX"; then
10614            postdeps_CXX="${prev}${p}"
10615          else
10616            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10617          fi
10618        fi
10619        ;;
10620
10621     *.$objext)
10622        # This assumes that the test object file only shows up
10623        # once in the compiler output.
10624        if test "$p" = "conftest.$objext"; then
10625          pre_test_object_deps_done=yes
10626          continue
10627        fi
10628
10629        if test "$pre_test_object_deps_done" = no; then
10630          if test -z "$predep_objects_CXX"; then
10631            predep_objects_CXX="$p"
10632          else
10633            predep_objects_CXX="$predep_objects_CXX $p"
10634          fi
10635        else
10636          if test -z "$postdep_objects_CXX"; then
10637            postdep_objects_CXX="$p"
10638          else
10639            postdep_objects_CXX="$postdep_objects_CXX $p"
10640          fi
10641        fi
10642        ;;
10643
10644     *) ;; # Ignore the rest.
10645
10646     esac
10647   done
10648
10649   # Clean up.
10650   rm -f a.out a.exe
10651 else
10652   echo "libtool.m4: error: problem compiling CXX test program"
10653 fi
10654
10655 $rm -f confest.$objext
10656
10657 case " $postdeps_CXX " in
10658 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10659 esac
10660
10661 lt_prog_compiler_wl_CXX=
10662 lt_prog_compiler_pic_CXX=
10663 lt_prog_compiler_static_CXX=
10664
10665 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10666 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10667
10668   # C++ specific cases for pic, static, wl, etc.
10669   if test "$GXX" = yes; then
10670     lt_prog_compiler_wl_CXX='-Wl,'
10671     lt_prog_compiler_static_CXX='-static'
10672
10673     case $host_os in
10674     aix*)
10675       # All AIX code is PIC.
10676       if test "$host_cpu" = ia64; then
10677         # AIX 5 now supports IA64 processor
10678         lt_prog_compiler_static_CXX='-Bstatic'
10679       fi
10680       ;;
10681     amigaos*)
10682       # FIXME: we need at least 68020 code to build shared libraries, but
10683       # adding the `-m68020' flag to GCC prevents building anything better,
10684       # like `-m68040'.
10685       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10686       ;;
10687     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10688       # PIC is the default for these OSes.
10689       ;;
10690     mingw* | os2* | pw32*)
10691       # This hack is so that the source file can tell whether it is being
10692       # built for inclusion in a dll (and should export symbols for example).
10693       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10694       ;;
10695     darwin* | rhapsody*)
10696       # PIC is the default on this platform
10697       # Common symbols not allowed in MH_DYLIB files
10698       lt_prog_compiler_pic_CXX='-fno-common'
10699       ;;
10700     *djgpp*)
10701       # DJGPP does not support shared libraries at all
10702       lt_prog_compiler_pic_CXX=
10703       ;;
10704     sysv4*MP*)
10705       if test -d /usr/nec; then
10706         lt_prog_compiler_pic_CXX=-Kconform_pic
10707       fi
10708       ;;
10709     hpux*)
10710       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10711       # not for PA HP-UX.
10712       case "$host_cpu" in
10713       hppa*64*|ia64*)
10714         ;;
10715       *)
10716         lt_prog_compiler_pic_CXX='-fPIC'
10717         ;;
10718       esac
10719       ;;
10720     *)
10721       lt_prog_compiler_pic_CXX='-fPIC'
10722       ;;
10723     esac
10724   else
10725     case $host_os in
10726       aix4* | aix5*)
10727         # All AIX code is PIC.
10728         if test "$host_cpu" = ia64; then
10729           # AIX 5 now supports IA64 processor
10730           lt_prog_compiler_static_CXX='-Bstatic'
10731         else
10732           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10733         fi
10734         ;;
10735       chorus*)
10736         case $cc_basename in
10737         cxch68)
10738           # Green Hills C++ Compiler
10739           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10740           ;;
10741         esac
10742         ;;
10743       dgux*)
10744         case $cc_basename in
10745           ec++)
10746             lt_prog_compiler_pic_CXX='-KPIC'
10747             ;;
10748           ghcx)
10749             # Green Hills C++ Compiler
10750             lt_prog_compiler_pic_CXX='-pic'
10751             ;;
10752           *)
10753             ;;
10754         esac
10755         ;;
10756       freebsd* | kfreebsd*-gnu)
10757         # FreeBSD uses GNU C++
10758         ;;
10759       hpux9* | hpux10* | hpux11*)
10760         case $cc_basename in
10761           CC)
10762             lt_prog_compiler_wl_CXX='-Wl,'
10763             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10764             if test "$host_cpu" != ia64; then
10765               lt_prog_compiler_pic_CXX='+Z'
10766             fi
10767             ;;
10768           aCC)
10769             lt_prog_compiler_wl_CXX='-Wl,'
10770             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10771             case "$host_cpu" in
10772             hppa*64*|ia64*)
10773               # +Z the default
10774               ;;
10775             *)
10776               lt_prog_compiler_pic_CXX='+Z'
10777               ;;
10778             esac
10779             ;;
10780           *)
10781             ;;
10782         esac
10783         ;;
10784       irix5* | irix6* | nonstopux*)
10785         case $cc_basename in
10786           CC)
10787             lt_prog_compiler_wl_CXX='-Wl,'
10788             lt_prog_compiler_static_CXX='-non_shared'
10789             # CC pic flag -KPIC is the default.
10790             ;;
10791           *)
10792             ;;
10793         esac
10794         ;;
10795       linux*)
10796         case $cc_basename in
10797           KCC)
10798             # KAI C++ Compiler
10799             lt_prog_compiler_wl_CXX='--backend -Wl,'
10800             lt_prog_compiler_pic_CXX='-fPIC'
10801             ;;
10802           icpc)
10803             # Intel C++
10804             lt_prog_compiler_wl_CXX='-Wl,'
10805             lt_prog_compiler_pic_CXX='-KPIC'
10806             lt_prog_compiler_static_CXX='-static'
10807             ;;
10808           cxx)
10809             # Compaq C++
10810             # Make sure the PIC flag is empty.  It appears that all Alpha
10811             # Linux and Compaq Tru64 Unix objects are PIC.
10812             lt_prog_compiler_pic_CXX=
10813             lt_prog_compiler_static_CXX='-non_shared'
10814             ;;
10815           *)
10816             ;;
10817         esac
10818         ;;
10819       lynxos*)
10820         ;;
10821       m88k*)
10822         ;;
10823       mvs*)
10824         case $cc_basename in
10825           cxx)
10826             lt_prog_compiler_pic_CXX='-W c,exportall'
10827             ;;
10828           *)
10829             ;;
10830         esac
10831         ;;
10832       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10833         ;;
10834       osf3* | osf4* | osf5*)
10835         case $cc_basename in
10836           KCC)
10837             lt_prog_compiler_wl_CXX='--backend -Wl,'
10838             ;;
10839           RCC)
10840             # Rational C++ 2.4.1
10841             lt_prog_compiler_pic_CXX='-pic'
10842             ;;
10843           cxx)
10844             # Digital/Compaq C++
10845             lt_prog_compiler_wl_CXX='-Wl,'
10846             # Make sure the PIC flag is empty.  It appears that all Alpha
10847             # Linux and Compaq Tru64 Unix objects are PIC.
10848             lt_prog_compiler_pic_CXX=
10849             lt_prog_compiler_static_CXX='-non_shared'
10850             ;;
10851           *)
10852             ;;
10853         esac
10854         ;;
10855       psos*)
10856         ;;
10857       sco*)
10858         case $cc_basename in
10859           CC)
10860             lt_prog_compiler_pic_CXX='-fPIC'
10861             ;;
10862           *)
10863             ;;
10864         esac
10865         ;;
10866       solaris*)
10867         case $cc_basename in
10868           CC)
10869             # Sun C++ 4.2, 5.x and Centerline C++
10870             lt_prog_compiler_pic_CXX='-KPIC'
10871             lt_prog_compiler_static_CXX='-Bstatic'
10872             lt_prog_compiler_wl_CXX='-Qoption ld '
10873             ;;
10874           gcx)
10875             # Green Hills C++ Compiler
10876             lt_prog_compiler_pic_CXX='-PIC'
10877             ;;
10878           *)
10879             ;;
10880         esac
10881         ;;
10882       sunos4*)
10883         case $cc_basename in
10884           CC)
10885             # Sun C++ 4.x
10886             lt_prog_compiler_pic_CXX='-pic'
10887             lt_prog_compiler_static_CXX='-Bstatic'
10888             ;;
10889           lcc)
10890             # Lucid
10891             lt_prog_compiler_pic_CXX='-pic'
10892             ;;
10893           *)
10894             ;;
10895         esac
10896         ;;
10897       tandem*)
10898         case $cc_basename in
10899           NCC)
10900             # NonStop-UX NCC 3.20
10901             lt_prog_compiler_pic_CXX='-KPIC'
10902             ;;
10903           *)
10904             ;;
10905         esac
10906         ;;
10907       unixware*)
10908         ;;
10909       vxworks*)
10910         ;;
10911       *)
10912         lt_prog_compiler_can_build_shared_CXX=no
10913         ;;
10914     esac
10915   fi
10916
10917 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10918 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10919
10920 #
10921 # Check to make sure the PIC flag actually works.
10922 #
10923 if test -n "$lt_prog_compiler_pic_CXX"; then
10924
10925 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10926 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10927 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10928   echo $ECHO_N "(cached) $ECHO_C" >&6
10929 else
10930   lt_prog_compiler_pic_works_CXX=no
10931   ac_outfile=conftest.$ac_objext
10932    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10933    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10934    # Insert the option either (1) after the last *FLAGS variable, or
10935    # (2) before a word containing "conftest.", or (3) at the end.
10936    # Note that $ac_compile itself does not contain backslashes and begins
10937    # with a dollar sign (not a hyphen), so the echo should work correctly.
10938    # The option is referenced via a variable to avoid confusing sed.
10939    lt_compile=`echo "$ac_compile" | $SED \
10940    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10941    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10942    -e 's:$: $lt_compiler_flag:'`
10943    (eval echo "\"\$as_me:10943: $lt_compile\"" >&5)
10944    (eval "$lt_compile" 2>conftest.err)
10945    ac_status=$?
10946    cat conftest.err >&5
10947    echo "$as_me:10947: \$? = $ac_status" >&5
10948    if (exit $ac_status) && test -s "$ac_outfile"; then
10949      # The compiler can only warn and ignore the option if not recognized
10950      # So say no if there are warnings
10951      if test ! -s conftest.err; then
10952        lt_prog_compiler_pic_works_CXX=yes
10953      fi
10954    fi
10955    $rm conftest*
10956
10957 fi
10958 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10959 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10960
10961 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10962     case $lt_prog_compiler_pic_CXX in
10963      "" | " "*) ;;
10964      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10965      esac
10966 else
10967     lt_prog_compiler_pic_CXX=
10968      lt_prog_compiler_can_build_shared_CXX=no
10969 fi
10970
10971 fi
10972 case "$host_os" in
10973   # For platforms which do not support PIC, -DPIC is meaningless:
10974   *djgpp*)
10975     lt_prog_compiler_pic_CXX=
10976     ;;
10977   *)
10978     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10979     ;;
10980 esac
10981
10982 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10983 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10984 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10985   echo $ECHO_N "(cached) $ECHO_C" >&6
10986 else
10987   lt_cv_prog_compiler_c_o_CXX=no
10988    $rm -r conftest 2>/dev/null
10989    mkdir conftest
10990    cd conftest
10991    mkdir out
10992    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10993
10994    lt_compiler_flag="-o out/conftest2.$ac_objext"
10995    # Insert the option either (1) after the last *FLAGS variable, or
10996    # (2) before a word containing "conftest.", or (3) at the end.
10997    # Note that $ac_compile itself does not contain backslashes and begins
10998    # with a dollar sign (not a hyphen), so the echo should work correctly.
10999    lt_compile=`echo "$ac_compile" | $SED \
11000    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11001    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11002    -e 's:$: $lt_compiler_flag:'`
11003    (eval echo "\"\$as_me:11003: $lt_compile\"" >&5)
11004    (eval "$lt_compile" 2>out/conftest.err)
11005    ac_status=$?
11006    cat out/conftest.err >&5
11007    echo "$as_me:11007: \$? = $ac_status" >&5
11008    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11009    then
11010      # The compiler can only warn and ignore the option if not recognized
11011      # So say no if there are warnings
11012      if test ! -s out/conftest.err; then
11013        lt_cv_prog_compiler_c_o_CXX=yes
11014      fi
11015    fi
11016    chmod u+w .
11017    $rm conftest*
11018    # SGI C++ compiler will create directory out/ii_files/ for
11019    # template instantiation
11020    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11021    $rm out/* && rmdir out
11022    cd ..
11023    rmdir conftest
11024    $rm conftest*
11025
11026 fi
11027 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11028 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11029
11030
11031 hard_links="nottested"
11032 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11033   # do not overwrite the value of need_locks provided by the user
11034   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11035 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11036   hard_links=yes
11037   $rm conftest*
11038   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11039   touch conftest.a
11040   ln conftest.a conftest.b 2>&5 || hard_links=no
11041   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11042   echo "$as_me:$LINENO: result: $hard_links" >&5
11043 echo "${ECHO_T}$hard_links" >&6
11044   if test "$hard_links" = no; then
11045     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11046 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11047     need_locks=warn
11048   fi
11049 else
11050   need_locks=no
11051 fi
11052
11053 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11054 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11055
11056   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11057   case $host_os in
11058   aix4* | aix5*)
11059     # If we're using GNU nm, then we don't want the "-C" option.
11060     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11061     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11062       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11063     else
11064       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11065     fi
11066     ;;
11067   pw32*)
11068     export_symbols_cmds_CXX="$ltdll_cmds"
11069   ;;
11070   cygwin* | mingw*)
11071     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11072   ;;
11073   linux*)
11074     link_all_deplibs_CXX=no
11075   ;;
11076   *)
11077     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11078   ;;
11079   esac
11080
11081 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11082 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11083 test "$ld_shlibs_CXX" = no && can_build_shared=no
11084
11085 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11086 if test "$GCC" = yes; then
11087   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11088 fi
11089
11090 #
11091 # Do we need to explicitly link libc?
11092 #
11093 case "x$archive_cmds_need_lc_CXX" in
11094 x|xyes)
11095   # Assume -lc should be added
11096   archive_cmds_need_lc_CXX=yes
11097
11098   if test "$enable_shared" = yes && test "$GCC" = yes; then
11099     case $archive_cmds_CXX in
11100     *'~'*)
11101       # FIXME: we may have to deal with multi-command sequences.
11102       ;;
11103     '$CC '*)
11104       # Test whether the compiler implicitly links with -lc since on some
11105       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11106       # to ld, don't add -lc before -lgcc.
11107       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11108 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11109       $rm conftest*
11110       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11111
11112       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11113   (eval $ac_compile) 2>&5
11114   ac_status=$?
11115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116   (exit $ac_status); } 2>conftest.err; then
11117         soname=conftest
11118         lib=conftest
11119         libobjs=conftest.$ac_objext
11120         deplibs=
11121         wl=$lt_prog_compiler_wl_CXX
11122         compiler_flags=-v
11123         linker_flags=-v
11124         verstring=
11125         output_objdir=.
11126         libname=conftest
11127         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11128         allow_undefined_flag_CXX=
11129         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11130   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11131   ac_status=$?
11132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133   (exit $ac_status); }
11134         then
11135           archive_cmds_need_lc_CXX=no
11136         else
11137           archive_cmds_need_lc_CXX=yes
11138         fi
11139         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11140       else
11141         cat conftest.err 1>&5
11142       fi
11143       $rm conftest*
11144       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11145 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11146       ;;
11147     esac
11148   fi
11149   ;;
11150 esac
11151
11152 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11153 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11154 library_names_spec=
11155 libname_spec='lib$name'
11156 soname_spec=
11157 shrext_cmds=".so"
11158 postinstall_cmds=
11159 postuninstall_cmds=
11160 finish_cmds=
11161 finish_eval=
11162 shlibpath_var=
11163 shlibpath_overrides_runpath=unknown
11164 version_type=none
11165 dynamic_linker="$host_os ld.so"
11166 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11167 if test "$GCC" = yes; then
11168   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11169   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11170     # if the path contains ";" then we assume it to be the separator
11171     # otherwise default to the standard path separator (i.e. ":") - it is
11172     # assumed that no part of a normal pathname contains ";" but that should
11173     # okay in the real world where ";" in dirpaths is itself problematic.
11174     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11175   else
11176     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11177   fi
11178 else
11179   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11180 fi
11181 need_lib_prefix=unknown
11182 hardcode_into_libs=no
11183
11184 # when you set need_version to no, make sure it does not cause -set_version
11185 # flags to be left without arguments
11186 need_version=unknown
11187
11188 case $host_os in
11189 aix3*)
11190   version_type=linux
11191   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11192   shlibpath_var=LIBPATH
11193
11194   # AIX 3 has no versioning support, so we append a major version to the name.
11195   soname_spec='${libname}${release}${shared_ext}$major'
11196   ;;
11197
11198 aix4* | aix5*)
11199   version_type=linux
11200   need_lib_prefix=no
11201   need_version=no
11202   hardcode_into_libs=yes
11203   if test "$host_cpu" = ia64; then
11204     # AIX 5 supports IA64
11205     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11206     shlibpath_var=LD_LIBRARY_PATH
11207   else
11208     # With GCC up to 2.95.x, collect2 would create an import file
11209     # for dependence libraries.  The import file would start with
11210     # the line `#! .'.  This would cause the generated library to
11211     # depend on `.', always an invalid library.  This was fixed in
11212     # development snapshots of GCC prior to 3.0.
11213     case $host_os in
11214       aix4 | aix4.[01] | aix4.[01].*)
11215       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11216            echo ' yes '
11217            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11218         :
11219       else
11220         can_build_shared=no
11221       fi
11222       ;;
11223     esac
11224     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11225     # soname into executable. Probably we can add versioning support to
11226     # collect2, so additional links can be useful in future.
11227     if test "$aix_use_runtimelinking" = yes; then
11228       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11229       # instead of lib<name>.a to let people know that these are not
11230       # typical AIX shared libraries.
11231       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11232     else
11233       # We preserve .a as extension for shared libraries through AIX4.2
11234       # and later when we are not doing run time linking.
11235       library_names_spec='${libname}${release}.a $libname.a'
11236       soname_spec='${libname}${release}${shared_ext}$major'
11237     fi
11238     shlibpath_var=LIBPATH
11239   fi
11240   ;;
11241
11242 amigaos*)
11243   library_names_spec='$libname.ixlibrary $libname.a'
11244   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11245   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'
11246   ;;
11247
11248 beos*)
11249   library_names_spec='${libname}${shared_ext}'
11250   dynamic_linker="$host_os ld.so"
11251   shlibpath_var=LIBRARY_PATH
11252   ;;
11253
11254 bsdi4*)
11255   version_type=linux
11256   need_version=no
11257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11258   soname_spec='${libname}${release}${shared_ext}$major'
11259   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11260   shlibpath_var=LD_LIBRARY_PATH
11261   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11262   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11263   # the default ld.so.conf also contains /usr/contrib/lib and
11264   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11265   # libtool to hard-code these into programs
11266   ;;
11267
11268 cygwin* | mingw* | pw32*)
11269   version_type=windows
11270   shrext_cmds=".dll"
11271   need_version=no
11272   need_lib_prefix=no
11273
11274   case $GCC,$host_os in
11275   yes,cygwin* | yes,mingw* | yes,pw32*)
11276     library_names_spec='$libname.dll.a'
11277     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11278     postinstall_cmds='base_file=`basename \${file}`~
11279       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11280       dldir=$destdir/`dirname \$dlpath`~
11281       test -d \$dldir || mkdir -p \$dldir~
11282       $install_prog $dir/$dlname \$dldir/$dlname'
11283     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11284       dlpath=$dir/\$dldll~
11285        $rm \$dlpath'
11286     shlibpath_overrides_runpath=yes
11287
11288     case $host_os in
11289     cygwin*)
11290       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11291       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11292       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11293       ;;
11294     mingw*)
11295       # MinGW DLLs use traditional 'lib' prefix
11296       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11297       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11298       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11299         # It is most probably a Windows format PATH printed by
11300         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11301         # path with ; separators, and with drive letters. We can handle the
11302         # drive letters (cygwin fileutils understands them), so leave them,
11303         # especially as we might pass files found there to a mingw objdump,
11304         # which wouldn't understand a cygwinified path. Ahh.
11305         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11306       else
11307         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11308       fi
11309       ;;
11310     pw32*)
11311       # pw32 DLLs use 'pw' prefix rather than 'lib'
11312       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11313       ;;
11314     esac
11315     ;;
11316
11317   *)
11318     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11319     ;;
11320   esac
11321   dynamic_linker='Win32 ld.exe'
11322   # FIXME: first we should search . and the directory the executable is in
11323   shlibpath_var=PATH
11324   ;;
11325
11326 darwin* | rhapsody*)
11327   dynamic_linker="$host_os dyld"
11328   version_type=darwin
11329   need_lib_prefix=no
11330   need_version=no
11331   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11332   soname_spec='${libname}${release}${major}$shared_ext'
11333   shlibpath_overrides_runpath=yes
11334   shlibpath_var=DYLD_LIBRARY_PATH
11335   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11336   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11337   if test "$GCC" = yes; then
11338     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11339   else
11340     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11341   fi
11342   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11343   ;;
11344
11345 dgux*)
11346   version_type=linux
11347   need_lib_prefix=no
11348   need_version=no
11349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11350   soname_spec='${libname}${release}${shared_ext}$major'
11351   shlibpath_var=LD_LIBRARY_PATH
11352   ;;
11353
11354 freebsd1*)
11355   dynamic_linker=no
11356   ;;
11357
11358 kfreebsd*-gnu)
11359   version_type=linux
11360   need_lib_prefix=no
11361   need_version=no
11362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11363   soname_spec='${libname}${release}${shared_ext}$major'
11364   shlibpath_var=LD_LIBRARY_PATH
11365   shlibpath_overrides_runpath=no
11366   hardcode_into_libs=yes
11367   dynamic_linker='GNU ld.so'
11368   ;;
11369
11370 freebsd*)
11371   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11372   version_type=freebsd-$objformat
11373   case $version_type in
11374     freebsd-elf*)
11375       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11376       need_version=no
11377       need_lib_prefix=no
11378       ;;
11379     freebsd-*)
11380       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11381       need_version=yes
11382       ;;
11383   esac
11384   shlibpath_var=LD_LIBRARY_PATH
11385   case $host_os in
11386   freebsd2*)
11387     shlibpath_overrides_runpath=yes
11388     ;;
11389   freebsd3.01* | freebsdelf3.01*)
11390     shlibpath_overrides_runpath=yes
11391     hardcode_into_libs=yes
11392     ;;
11393   *) # from 3.2 on
11394     shlibpath_overrides_runpath=no
11395     hardcode_into_libs=yes
11396     ;;
11397   esac
11398   ;;
11399
11400 gnu*)
11401   version_type=linux
11402   need_lib_prefix=no
11403   need_version=no
11404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11405   soname_spec='${libname}${release}${shared_ext}$major'
11406   shlibpath_var=LD_LIBRARY_PATH
11407   hardcode_into_libs=yes
11408   ;;
11409
11410 hpux9* | hpux10* | hpux11*)
11411   # Give a soname corresponding to the major version so that dld.sl refuses to
11412   # link against other versions.
11413   version_type=sunos
11414   need_lib_prefix=no
11415   need_version=no
11416   case "$host_cpu" in
11417   ia64*)
11418     shrext_cmds='.so'
11419     hardcode_into_libs=yes
11420     dynamic_linker="$host_os dld.so"
11421     shlibpath_var=LD_LIBRARY_PATH
11422     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11423     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11424     soname_spec='${libname}${release}${shared_ext}$major'
11425     if test "X$HPUX_IA64_MODE" = X32; then
11426       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11427     else
11428       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11429     fi
11430     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11431     ;;
11432    hppa*64*)
11433      shrext_cmds='.sl'
11434      hardcode_into_libs=yes
11435      dynamic_linker="$host_os dld.sl"
11436      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11437      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11438      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11439      soname_spec='${libname}${release}${shared_ext}$major'
11440      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11441      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11442      ;;
11443    *)
11444     shrext_cmds='.sl'
11445     dynamic_linker="$host_os dld.sl"
11446     shlibpath_var=SHLIB_PATH
11447     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11448     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449     soname_spec='${libname}${release}${shared_ext}$major'
11450     ;;
11451   esac
11452   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11453   postinstall_cmds='chmod 555 $lib'
11454   ;;
11455
11456 irix5* | irix6* | nonstopux*)
11457   case $host_os in
11458     nonstopux*) version_type=nonstopux ;;
11459     *)
11460         if test "$lt_cv_prog_gnu_ld" = yes; then
11461                 version_type=linux
11462         else
11463                 version_type=irix
11464         fi ;;
11465   esac
11466   need_lib_prefix=no
11467   need_version=no
11468   soname_spec='${libname}${release}${shared_ext}$major'
11469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11470   case $host_os in
11471   irix5* | nonstopux*)
11472     libsuff= shlibsuff=
11473     ;;
11474   *)
11475     case $LD in # libtool.m4 will add one of these switches to LD
11476     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11477       libsuff= shlibsuff= libmagic=32-bit;;
11478     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11479       libsuff=32 shlibsuff=N32 libmagic=N32;;
11480     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11481       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11482     *) libsuff= shlibsuff= libmagic=never-match;;
11483     esac
11484     ;;
11485   esac
11486   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11487   shlibpath_overrides_runpath=no
11488   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11489   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11490   hardcode_into_libs=yes
11491   ;;
11492
11493 # No shared lib support for Linux oldld, aout, or coff.
11494 linux*oldld* | linux*aout* | linux*coff*)
11495   dynamic_linker=no
11496   ;;
11497
11498 # This must be Linux ELF.
11499 linux*)
11500   version_type=linux
11501   need_lib_prefix=no
11502   need_version=no
11503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11504   soname_spec='${libname}${release}${shared_ext}$major'
11505   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11506   shlibpath_var=LD_LIBRARY_PATH
11507   shlibpath_overrides_runpath=no
11508   # This implies no fast_install, which is unacceptable.
11509   # Some rework will be needed to allow for fast_install
11510   # before this can be enabled.
11511   hardcode_into_libs=yes
11512
11513   # Append ld.so.conf contents to the search path
11514   if test -f /etc/ld.so.conf; then
11515     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11516     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11517   fi
11518
11519   # We used to test for /lib/ld.so.1 and disable shared libraries on
11520   # powerpc, because MkLinux only supported shared libraries with the
11521   # GNU dynamic linker.  Since this was broken with cross compilers,
11522   # most powerpc-linux boxes support dynamic linking these days and
11523   # people can always --disable-shared, the test was removed, and we
11524   # assume the GNU/Linux dynamic linker is in use.
11525   dynamic_linker='GNU/Linux ld.so'
11526   ;;
11527
11528 netbsdelf*-gnu)
11529   version_type=linux
11530   need_lib_prefix=no
11531   need_version=no
11532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11533   soname_spec='${libname}${release}${shared_ext}$major'
11534   shlibpath_var=LD_LIBRARY_PATH
11535   shlibpath_overrides_runpath=no
11536   hardcode_into_libs=yes
11537   dynamic_linker='NetBSD ld.elf_so'
11538   ;;
11539
11540 knetbsd*-gnu)
11541   version_type=linux
11542   need_lib_prefix=no
11543   need_version=no
11544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11545   soname_spec='${libname}${release}${shared_ext}$major'
11546   shlibpath_var=LD_LIBRARY_PATH
11547   shlibpath_overrides_runpath=no
11548   hardcode_into_libs=yes
11549   dynamic_linker='GNU ld.so'
11550   ;;
11551
11552 netbsd*)
11553   version_type=sunos
11554   need_lib_prefix=no
11555   need_version=no
11556   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11558     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11559     dynamic_linker='NetBSD (a.out) ld.so'
11560   else
11561     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11562     soname_spec='${libname}${release}${shared_ext}$major'
11563     dynamic_linker='NetBSD ld.elf_so'
11564   fi
11565   shlibpath_var=LD_LIBRARY_PATH
11566   shlibpath_overrides_runpath=yes
11567   hardcode_into_libs=yes
11568   ;;
11569
11570 newsos6)
11571   version_type=linux
11572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11573   shlibpath_var=LD_LIBRARY_PATH
11574   shlibpath_overrides_runpath=yes
11575   ;;
11576
11577 nto-qnx*)
11578   version_type=linux
11579   need_lib_prefix=no
11580   need_version=no
11581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582   soname_spec='${libname}${release}${shared_ext}$major'
11583   shlibpath_var=LD_LIBRARY_PATH
11584   shlibpath_overrides_runpath=yes
11585   ;;
11586
11587 openbsd*)
11588   version_type=sunos
11589   need_lib_prefix=no
11590   need_version=yes
11591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11592   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11593   shlibpath_var=LD_LIBRARY_PATH
11594   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11595     case $host_os in
11596       openbsd2.[89] | openbsd2.[89].*)
11597         shlibpath_overrides_runpath=no
11598         ;;
11599       *)
11600         shlibpath_overrides_runpath=yes
11601         ;;
11602       esac
11603   else
11604     shlibpath_overrides_runpath=yes
11605   fi
11606   ;;
11607
11608 os2*)
11609   libname_spec='$name'
11610   shrext_cmds=".dll"
11611   need_lib_prefix=no
11612   library_names_spec='$libname${shared_ext} $libname.a'
11613   dynamic_linker='OS/2 ld.exe'
11614   shlibpath_var=LIBPATH
11615   ;;
11616
11617 osf3* | osf4* | osf5*)
11618   version_type=osf
11619   need_lib_prefix=no
11620   need_version=no
11621   soname_spec='${libname}${release}${shared_ext}$major'
11622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11623   shlibpath_var=LD_LIBRARY_PATH
11624   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11625   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11626   ;;
11627
11628 sco3.2v5*)
11629   version_type=osf
11630   soname_spec='${libname}${release}${shared_ext}$major'
11631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632   shlibpath_var=LD_LIBRARY_PATH
11633   ;;
11634
11635 solaris*)
11636   version_type=linux
11637   need_lib_prefix=no
11638   need_version=no
11639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11640   soname_spec='${libname}${release}${shared_ext}$major'
11641   shlibpath_var=LD_LIBRARY_PATH
11642   shlibpath_overrides_runpath=yes
11643   hardcode_into_libs=yes
11644   # ldd complains unless libraries are executable
11645   postinstall_cmds='chmod +x $lib'
11646   ;;
11647
11648 sunos4*)
11649   version_type=sunos
11650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11651   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11652   shlibpath_var=LD_LIBRARY_PATH
11653   shlibpath_overrides_runpath=yes
11654   if test "$with_gnu_ld" = yes; then
11655     need_lib_prefix=no
11656   fi
11657   need_version=yes
11658   ;;
11659
11660 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11661   version_type=linux
11662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11663   soname_spec='${libname}${release}${shared_ext}$major'
11664   shlibpath_var=LD_LIBRARY_PATH
11665   case $host_vendor in
11666     sni)
11667       shlibpath_overrides_runpath=no
11668       need_lib_prefix=no
11669       export_dynamic_flag_spec='${wl}-Blargedynsym'
11670       runpath_var=LD_RUN_PATH
11671       ;;
11672     siemens)
11673       need_lib_prefix=no
11674       ;;
11675     motorola)
11676       need_lib_prefix=no
11677       need_version=no
11678       shlibpath_overrides_runpath=no
11679       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11680       ;;
11681   esac
11682   ;;
11683
11684 sysv4*MP*)
11685   if test -d /usr/nec ;then
11686     version_type=linux
11687     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11688     soname_spec='$libname${shared_ext}.$major'
11689     shlibpath_var=LD_LIBRARY_PATH
11690   fi
11691   ;;
11692
11693 uts4*)
11694   version_type=linux
11695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11696   soname_spec='${libname}${release}${shared_ext}$major'
11697   shlibpath_var=LD_LIBRARY_PATH
11698   ;;
11699
11700 *)
11701   dynamic_linker=no
11702   ;;
11703 esac
11704 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11705 echo "${ECHO_T}$dynamic_linker" >&6
11706 test "$dynamic_linker" = no && can_build_shared=no
11707
11708 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11709 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11710 hardcode_action_CXX=
11711 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11712    test -n "$runpath_var CXX" || \
11713    test "X$hardcode_automatic_CXX"="Xyes" ; then
11714
11715   # We can hardcode non-existant directories.
11716   if test "$hardcode_direct_CXX" != no &&
11717      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11718      # have to relink, otherwise we might link with an installed library
11719      # when we should be linking with a yet-to-be-installed one
11720      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11721      test "$hardcode_minus_L_CXX" != no; then
11722     # Linking always hardcodes the temporary library directory.
11723     hardcode_action_CXX=relink
11724   else
11725     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11726     hardcode_action_CXX=immediate
11727   fi
11728 else
11729   # We cannot hardcode anything, or else we can only hardcode existing
11730   # directories.
11731   hardcode_action_CXX=unsupported
11732 fi
11733 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11734 echo "${ECHO_T}$hardcode_action_CXX" >&6
11735
11736 if test "$hardcode_action_CXX" = relink; then
11737   # Fast installation is not supported
11738   enable_fast_install=no
11739 elif test "$shlibpath_overrides_runpath" = yes ||
11740      test "$enable_shared" = no; then
11741   # Fast installation is not necessary
11742   enable_fast_install=needless
11743 fi
11744
11745 striplib=
11746 old_striplib=
11747 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11748 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11749 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11750   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11751   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11752   echo "$as_me:$LINENO: result: yes" >&5
11753 echo "${ECHO_T}yes" >&6
11754 else
11755 # FIXME - insert some real tests, host_os isn't really good enough
11756   case $host_os in
11757    darwin*)
11758        if test -n "$STRIP" ; then
11759          striplib="$STRIP -x"
11760          echo "$as_me:$LINENO: result: yes" >&5
11761 echo "${ECHO_T}yes" >&6
11762        else
11763   echo "$as_me:$LINENO: result: no" >&5
11764 echo "${ECHO_T}no" >&6
11765 fi
11766        ;;
11767    *)
11768   echo "$as_me:$LINENO: result: no" >&5
11769 echo "${ECHO_T}no" >&6
11770     ;;
11771   esac
11772 fi
11773
11774 if test "x$enable_dlopen" != xyes; then
11775   enable_dlopen=unknown
11776   enable_dlopen_self=unknown
11777   enable_dlopen_self_static=unknown
11778 else
11779   lt_cv_dlopen=no
11780   lt_cv_dlopen_libs=
11781
11782   case $host_os in
11783   beos*)
11784     lt_cv_dlopen="load_add_on"
11785     lt_cv_dlopen_libs=
11786     lt_cv_dlopen_self=yes
11787     ;;
11788
11789   mingw* | pw32*)
11790     lt_cv_dlopen="LoadLibrary"
11791     lt_cv_dlopen_libs=
11792    ;;
11793
11794   cygwin*)
11795     lt_cv_dlopen="dlopen"
11796     lt_cv_dlopen_libs=
11797    ;;
11798
11799   darwin*)
11800   # if libdl is installed we need to link against it
11801     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11802 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11803 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11804   echo $ECHO_N "(cached) $ECHO_C" >&6
11805 else
11806   ac_check_lib_save_LIBS=$LIBS
11807 LIBS="-ldl  $LIBS"
11808 cat >conftest.$ac_ext <<_ACEOF
11809 #line $LINENO "configure"
11810 /* confdefs.h.  */
11811 _ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h.  */
11815
11816 /* Override any gcc2 internal prototype to avoid an error.  */
11817 #ifdef __cplusplus
11818 extern "C"
11819 #endif
11820 /* We use char because int might match the return type of a gcc2
11821    builtin and then its argument prototype would still apply.  */
11822 char dlopen ();
11823 int
11824 main ()
11825 {
11826 dlopen ();
11827   ;
11828   return 0;
11829 }
11830 _ACEOF
11831 rm -f conftest.$ac_objext conftest$ac_exeext
11832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11833   (eval $ac_link) 2>&5
11834   ac_status=$?
11835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836   (exit $ac_status); } &&
11837          { ac_try='test -s conftest$ac_exeext'
11838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839   (eval $ac_try) 2>&5
11840   ac_status=$?
11841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842   (exit $ac_status); }; }; then
11843   ac_cv_lib_dl_dlopen=yes
11844 else
11845   echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11847
11848 ac_cv_lib_dl_dlopen=no
11849 fi
11850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11851 LIBS=$ac_check_lib_save_LIBS
11852 fi
11853 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11854 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11855 if test $ac_cv_lib_dl_dlopen = yes; then
11856   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11857 else
11858
11859     lt_cv_dlopen="dyld"
11860     lt_cv_dlopen_libs=
11861     lt_cv_dlopen_self=yes
11862
11863 fi
11864
11865    ;;
11866
11867   *)
11868     echo "$as_me:$LINENO: checking for shl_load" >&5
11869 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11870 if test "${ac_cv_func_shl_load+set}" = set; then
11871   echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873   cat >conftest.$ac_ext <<_ACEOF
11874 #line $LINENO "configure"
11875 /* confdefs.h.  */
11876 _ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h.  */
11880 /* System header to define __stub macros and hopefully few prototypes,
11881     which can conflict with char shl_load (); below.
11882     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11883     <limits.h> exists even on freestanding compilers.  */
11884 #ifdef __STDC__
11885 # include <limits.h>
11886 #else
11887 # include <assert.h>
11888 #endif
11889 /* Override any gcc2 internal prototype to avoid an error.  */
11890 #ifdef __cplusplus
11891 extern "C"
11892 {
11893 #endif
11894 /* We use char because int might match the return type of a gcc2
11895    builtin and then its argument prototype would still apply.  */
11896 char shl_load ();
11897 /* The GNU C library defines this for functions which it implements
11898     to always fail with ENOSYS.  Some functions are actually named
11899     something starting with __ and the normal name is an alias.  */
11900 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11901 choke me
11902 #else
11903 char (*f) () = shl_load;
11904 #endif
11905 #ifdef __cplusplus
11906 }
11907 #endif
11908
11909 int
11910 main ()
11911 {
11912 return f != shl_load;
11913   ;
11914   return 0;
11915 }
11916 _ACEOF
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11919   (eval $ac_link) 2>&5
11920   ac_status=$?
11921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); } &&
11923          { ac_try='test -s conftest$ac_exeext'
11924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925   (eval $ac_try) 2>&5
11926   ac_status=$?
11927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928   (exit $ac_status); }; }; then
11929   ac_cv_func_shl_load=yes
11930 else
11931   echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11933
11934 ac_cv_func_shl_load=no
11935 fi
11936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11937 fi
11938 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11939 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11940 if test $ac_cv_func_shl_load = yes; then
11941   lt_cv_dlopen="shl_load"
11942 else
11943   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11944 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11945 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11946   echo $ECHO_N "(cached) $ECHO_C" >&6
11947 else
11948   ac_check_lib_save_LIBS=$LIBS
11949 LIBS="-ldld  $LIBS"
11950 cat >conftest.$ac_ext <<_ACEOF
11951 #line $LINENO "configure"
11952 /* confdefs.h.  */
11953 _ACEOF
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h.  */
11957
11958 /* Override any gcc2 internal prototype to avoid an error.  */
11959 #ifdef __cplusplus
11960 extern "C"
11961 #endif
11962 /* We use char because int might match the return type of a gcc2
11963    builtin and then its argument prototype would still apply.  */
11964 char shl_load ();
11965 int
11966 main ()
11967 {
11968 shl_load ();
11969   ;
11970   return 0;
11971 }
11972 _ACEOF
11973 rm -f conftest.$ac_objext conftest$ac_exeext
11974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11975   (eval $ac_link) 2>&5
11976   ac_status=$?
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); } &&
11979          { ac_try='test -s conftest$ac_exeext'
11980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981   (eval $ac_try) 2>&5
11982   ac_status=$?
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); }; }; then
11985   ac_cv_lib_dld_shl_load=yes
11986 else
11987   echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11989
11990 ac_cv_lib_dld_shl_load=no
11991 fi
11992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11993 LIBS=$ac_check_lib_save_LIBS
11994 fi
11995 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11996 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11997 if test $ac_cv_lib_dld_shl_load = yes; then
11998   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11999 else
12000   echo "$as_me:$LINENO: checking for dlopen" >&5
12001 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12002 if test "${ac_cv_func_dlopen+set}" = set; then
12003   echo $ECHO_N "(cached) $ECHO_C" >&6
12004 else
12005   cat >conftest.$ac_ext <<_ACEOF
12006 #line $LINENO "configure"
12007 /* confdefs.h.  */
12008 _ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h.  */
12012 /* System header to define __stub macros and hopefully few prototypes,
12013     which can conflict with char dlopen (); below.
12014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12015     <limits.h> exists even on freestanding compilers.  */
12016 #ifdef __STDC__
12017 # include <limits.h>
12018 #else
12019 # include <assert.h>
12020 #endif
12021 /* Override any gcc2 internal prototype to avoid an error.  */
12022 #ifdef __cplusplus
12023 extern "C"
12024 {
12025 #endif
12026 /* We use char because int might match the return type of a gcc2
12027    builtin and then its argument prototype would still apply.  */
12028 char dlopen ();
12029 /* The GNU C library defines this for functions which it implements
12030     to always fail with ENOSYS.  Some functions are actually named
12031     something starting with __ and the normal name is an alias.  */
12032 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12033 choke me
12034 #else
12035 char (*f) () = dlopen;
12036 #endif
12037 #ifdef __cplusplus
12038 }
12039 #endif
12040
12041 int
12042 main ()
12043 {
12044 return f != dlopen;
12045   ;
12046   return 0;
12047 }
12048 _ACEOF
12049 rm -f conftest.$ac_objext conftest$ac_exeext
12050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12051   (eval $ac_link) 2>&5
12052   ac_status=$?
12053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054   (exit $ac_status); } &&
12055          { ac_try='test -s conftest$ac_exeext'
12056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057   (eval $ac_try) 2>&5
12058   ac_status=$?
12059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060   (exit $ac_status); }; }; then
12061   ac_cv_func_dlopen=yes
12062 else
12063   echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12065
12066 ac_cv_func_dlopen=no
12067 fi
12068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12069 fi
12070 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12071 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12072 if test $ac_cv_func_dlopen = yes; then
12073   lt_cv_dlopen="dlopen"
12074 else
12075   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12076 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12077 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12078   echo $ECHO_N "(cached) $ECHO_C" >&6
12079 else
12080   ac_check_lib_save_LIBS=$LIBS
12081 LIBS="-ldl  $LIBS"
12082 cat >conftest.$ac_ext <<_ACEOF
12083 #line $LINENO "configure"
12084 /* confdefs.h.  */
12085 _ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h.  */
12089
12090 /* Override any gcc2 internal prototype to avoid an error.  */
12091 #ifdef __cplusplus
12092 extern "C"
12093 #endif
12094 /* We use char because int might match the return type of a gcc2
12095    builtin and then its argument prototype would still apply.  */
12096 char dlopen ();
12097 int
12098 main ()
12099 {
12100 dlopen ();
12101   ;
12102   return 0;
12103 }
12104 _ACEOF
12105 rm -f conftest.$ac_objext conftest$ac_exeext
12106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12107   (eval $ac_link) 2>&5
12108   ac_status=$?
12109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110   (exit $ac_status); } &&
12111          { ac_try='test -s conftest$ac_exeext'
12112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113   (eval $ac_try) 2>&5
12114   ac_status=$?
12115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116   (exit $ac_status); }; }; then
12117   ac_cv_lib_dl_dlopen=yes
12118 else
12119   echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12121
12122 ac_cv_lib_dl_dlopen=no
12123 fi
12124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12125 LIBS=$ac_check_lib_save_LIBS
12126 fi
12127 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12128 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12129 if test $ac_cv_lib_dl_dlopen = yes; then
12130   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12131 else
12132   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12133 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12134 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12135   echo $ECHO_N "(cached) $ECHO_C" >&6
12136 else
12137   ac_check_lib_save_LIBS=$LIBS
12138 LIBS="-lsvld  $LIBS"
12139 cat >conftest.$ac_ext <<_ACEOF
12140 #line $LINENO "configure"
12141 /* confdefs.h.  */
12142 _ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h.  */
12146
12147 /* Override any gcc2 internal prototype to avoid an error.  */
12148 #ifdef __cplusplus
12149 extern "C"
12150 #endif
12151 /* We use char because int might match the return type of a gcc2
12152    builtin and then its argument prototype would still apply.  */
12153 char dlopen ();
12154 int
12155 main ()
12156 {
12157 dlopen ();
12158   ;
12159   return 0;
12160 }
12161 _ACEOF
12162 rm -f conftest.$ac_objext conftest$ac_exeext
12163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12164   (eval $ac_link) 2>&5
12165   ac_status=$?
12166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167   (exit $ac_status); } &&
12168          { ac_try='test -s conftest$ac_exeext'
12169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170   (eval $ac_try) 2>&5
12171   ac_status=$?
12172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173   (exit $ac_status); }; }; then
12174   ac_cv_lib_svld_dlopen=yes
12175 else
12176   echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12178
12179 ac_cv_lib_svld_dlopen=no
12180 fi
12181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12182 LIBS=$ac_check_lib_save_LIBS
12183 fi
12184 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12185 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12186 if test $ac_cv_lib_svld_dlopen = yes; then
12187   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12188 else
12189   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12190 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12191 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12192   echo $ECHO_N "(cached) $ECHO_C" >&6
12193 else
12194   ac_check_lib_save_LIBS=$LIBS
12195 LIBS="-ldld  $LIBS"
12196 cat >conftest.$ac_ext <<_ACEOF
12197 #line $LINENO "configure"
12198 /* confdefs.h.  */
12199 _ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h.  */
12203
12204 /* Override any gcc2 internal prototype to avoid an error.  */
12205 #ifdef __cplusplus
12206 extern "C"
12207 #endif
12208 /* We use char because int might match the return type of a gcc2
12209    builtin and then its argument prototype would still apply.  */
12210 char dld_link ();
12211 int
12212 main ()
12213 {
12214 dld_link ();
12215   ;
12216   return 0;
12217 }
12218 _ACEOF
12219 rm -f conftest.$ac_objext conftest$ac_exeext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221   (eval $ac_link) 2>&5
12222   ac_status=$?
12223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224   (exit $ac_status); } &&
12225          { ac_try='test -s conftest$ac_exeext'
12226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227   (eval $ac_try) 2>&5
12228   ac_status=$?
12229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230   (exit $ac_status); }; }; then
12231   ac_cv_lib_dld_dld_link=yes
12232 else
12233   echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12235
12236 ac_cv_lib_dld_dld_link=no
12237 fi
12238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12240 fi
12241 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12242 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12243 if test $ac_cv_lib_dld_dld_link = yes; then
12244   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12245 fi
12246
12247
12248 fi
12249
12250
12251 fi
12252
12253
12254 fi
12255
12256
12257 fi
12258
12259
12260 fi
12261
12262     ;;
12263   esac
12264
12265   if test "x$lt_cv_dlopen" != xno; then
12266     enable_dlopen=yes
12267   else
12268     enable_dlopen=no
12269   fi
12270
12271   case $lt_cv_dlopen in
12272   dlopen)
12273     save_CPPFLAGS="$CPPFLAGS"
12274     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12275
12276     save_LDFLAGS="$LDFLAGS"
12277     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12278
12279     save_LIBS="$LIBS"
12280     LIBS="$lt_cv_dlopen_libs $LIBS"
12281
12282     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12283 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12284 if test "${lt_cv_dlopen_self+set}" = set; then
12285   echo $ECHO_N "(cached) $ECHO_C" >&6
12286 else
12287           if test "$cross_compiling" = yes; then :
12288   lt_cv_dlopen_self=cross
12289 else
12290   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12291   lt_status=$lt_dlunknown
12292   cat > conftest.$ac_ext <<EOF
12293 #line 12293 "configure"
12294 #include "confdefs.h"
12295
12296 #if HAVE_DLFCN_H
12297 #include <dlfcn.h>
12298 #endif
12299
12300 #include <stdio.h>
12301
12302 #ifdef RTLD_GLOBAL
12303 #  define LT_DLGLOBAL           RTLD_GLOBAL
12304 #else
12305 #  ifdef DL_GLOBAL
12306 #    define LT_DLGLOBAL         DL_GLOBAL
12307 #  else
12308 #    define LT_DLGLOBAL         0
12309 #  endif
12310 #endif
12311
12312 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12313    find out it does not work in some platform. */
12314 #ifndef LT_DLLAZY_OR_NOW
12315 #  ifdef RTLD_LAZY
12316 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12317 #  else
12318 #    ifdef DL_LAZY
12319 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12320 #    else
12321 #      ifdef RTLD_NOW
12322 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12323 #      else
12324 #        ifdef DL_NOW
12325 #          define LT_DLLAZY_OR_NOW      DL_NOW
12326 #        else
12327 #          define LT_DLLAZY_OR_NOW      0
12328 #        endif
12329 #      endif
12330 #    endif
12331 #  endif
12332 #endif
12333
12334 #ifdef __cplusplus
12335 extern "C" void exit (int);
12336 #endif
12337
12338 void fnord() { int i=42;}
12339 int main ()
12340 {
12341   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12342   int status = $lt_dlunknown;
12343
12344   if (self)
12345     {
12346       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12347       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12348       /* dlclose (self); */
12349     }
12350
12351     exit (status);
12352 }
12353 EOF
12354   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12355   (eval $ac_link) 2>&5
12356   ac_status=$?
12357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12359     (./conftest; exit; ) 2>/dev/null
12360     lt_status=$?
12361     case x$lt_status in
12362       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12363       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12364       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12365     esac
12366   else :
12367     # compilation failed
12368     lt_cv_dlopen_self=no
12369   fi
12370 fi
12371 rm -fr conftest*
12372
12373
12374 fi
12375 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12376 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12377
12378     if test "x$lt_cv_dlopen_self" = xyes; then
12379       LDFLAGS="$LDFLAGS $link_static_flag"
12380       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12381 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12382 if test "${lt_cv_dlopen_self_static+set}" = set; then
12383   echo $ECHO_N "(cached) $ECHO_C" >&6
12384 else
12385           if test "$cross_compiling" = yes; then :
12386   lt_cv_dlopen_self_static=cross
12387 else
12388   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12389   lt_status=$lt_dlunknown
12390   cat > conftest.$ac_ext <<EOF
12391 #line 12391 "configure"
12392 #include "confdefs.h"
12393
12394 #if HAVE_DLFCN_H
12395 #include <dlfcn.h>
12396 #endif
12397
12398 #include <stdio.h>
12399
12400 #ifdef RTLD_GLOBAL
12401 #  define LT_DLGLOBAL           RTLD_GLOBAL
12402 #else
12403 #  ifdef DL_GLOBAL
12404 #    define LT_DLGLOBAL         DL_GLOBAL
12405 #  else
12406 #    define LT_DLGLOBAL         0
12407 #  endif
12408 #endif
12409
12410 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12411    find out it does not work in some platform. */
12412 #ifndef LT_DLLAZY_OR_NOW
12413 #  ifdef RTLD_LAZY
12414 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12415 #  else
12416 #    ifdef DL_LAZY
12417 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12418 #    else
12419 #      ifdef RTLD_NOW
12420 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12421 #      else
12422 #        ifdef DL_NOW
12423 #          define LT_DLLAZY_OR_NOW      DL_NOW
12424 #        else
12425 #          define LT_DLLAZY_OR_NOW      0
12426 #        endif
12427 #      endif
12428 #    endif
12429 #  endif
12430 #endif
12431
12432 #ifdef __cplusplus
12433 extern "C" void exit (int);
12434 #endif
12435
12436 void fnord() { int i=42;}
12437 int main ()
12438 {
12439   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12440   int status = $lt_dlunknown;
12441
12442   if (self)
12443     {
12444       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12445       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12446       /* dlclose (self); */
12447     }
12448
12449     exit (status);
12450 }
12451 EOF
12452   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12453   (eval $ac_link) 2>&5
12454   ac_status=$?
12455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12457     (./conftest; exit; ) 2>/dev/null
12458     lt_status=$?
12459     case x$lt_status in
12460       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12461       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12462       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12463     esac
12464   else :
12465     # compilation failed
12466     lt_cv_dlopen_self_static=no
12467   fi
12468 fi
12469 rm -fr conftest*
12470
12471
12472 fi
12473 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12474 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12475     fi
12476
12477     CPPFLAGS="$save_CPPFLAGS"
12478     LDFLAGS="$save_LDFLAGS"
12479     LIBS="$save_LIBS"
12480     ;;
12481   esac
12482
12483   case $lt_cv_dlopen_self in
12484   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12485   *) enable_dlopen_self=unknown ;;
12486   esac
12487
12488   case $lt_cv_dlopen_self_static in
12489   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12490   *) enable_dlopen_self_static=unknown ;;
12491   esac
12492 fi
12493
12494
12495 # The else clause should only fire when bootstrapping the
12496 # libtool distribution, otherwise you forgot to ship ltmain.sh
12497 # with your package, and you will get complaints that there are
12498 # no rules to generate ltmain.sh.
12499 if test -f "$ltmain"; then
12500   # See if we are running on zsh, and set the options which allow our commands through
12501   # without removal of \ escapes.
12502   if test -n "${ZSH_VERSION+set}" ; then
12503     setopt NO_GLOB_SUBST
12504   fi
12505   # Now quote all the things that may contain metacharacters while being
12506   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12507   # variables and quote the copies for generation of the libtool script.
12508   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12509     SED SHELL STRIP \
12510     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12511     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12512     deplibs_check_method reload_flag reload_cmds need_locks \
12513     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12514     lt_cv_sys_global_symbol_to_c_name_address \
12515     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12516     old_postinstall_cmds old_postuninstall_cmds \
12517     compiler_CXX \
12518     CC_CXX \
12519     LD_CXX \
12520     lt_prog_compiler_wl_CXX \
12521     lt_prog_compiler_pic_CXX \
12522     lt_prog_compiler_static_CXX \
12523     lt_prog_compiler_no_builtin_flag_CXX \
12524     export_dynamic_flag_spec_CXX \
12525     thread_safe_flag_spec_CXX \
12526     whole_archive_flag_spec_CXX \
12527     enable_shared_with_static_runtimes_CXX \
12528     old_archive_cmds_CXX \
12529     old_archive_from_new_cmds_CXX \
12530     predep_objects_CXX \
12531     postdep_objects_CXX \
12532     predeps_CXX \
12533     postdeps_CXX \
12534     compiler_lib_search_path_CXX \
12535     archive_cmds_CXX \
12536     archive_expsym_cmds_CXX \
12537     postinstall_cmds_CXX \
12538     postuninstall_cmds_CXX \
12539     old_archive_from_expsyms_cmds_CXX \
12540     allow_undefined_flag_CXX \
12541     no_undefined_flag_CXX \
12542     export_symbols_cmds_CXX \
12543     hardcode_libdir_flag_spec_CXX \
12544     hardcode_libdir_flag_spec_ld_CXX \
12545     hardcode_libdir_separator_CXX \
12546     hardcode_automatic_CXX \
12547     module_cmds_CXX \
12548     module_expsym_cmds_CXX \
12549     lt_cv_prog_compiler_c_o_CXX \
12550     exclude_expsyms_CXX \
12551     include_expsyms_CXX; do
12552
12553     case $var in
12554     old_archive_cmds_CXX | \
12555     old_archive_from_new_cmds_CXX | \
12556     archive_cmds_CXX | \
12557     archive_expsym_cmds_CXX | \
12558     module_cmds_CXX | \
12559     module_expsym_cmds_CXX | \
12560     old_archive_from_expsyms_cmds_CXX | \
12561     export_symbols_cmds_CXX | \
12562     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12563     postinstall_cmds | postuninstall_cmds | \
12564     old_postinstall_cmds | old_postuninstall_cmds | \
12565     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12566       # Double-quote double-evaled strings.
12567       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12568       ;;
12569     *)
12570       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12571       ;;
12572     esac
12573   done
12574
12575   case $lt_echo in
12576   *'\$0 --fallback-echo"')
12577     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12578     ;;
12579   esac
12580
12581 cfgfile="$ofile"
12582
12583   cat <<__EOF__ >> "$cfgfile"
12584 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12585
12586 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12587
12588 # Shell to use when invoking shell scripts.
12589 SHELL=$lt_SHELL
12590
12591 # Whether or not to build shared libraries.
12592 build_libtool_libs=$enable_shared
12593
12594 # Whether or not to build static libraries.
12595 build_old_libs=$enable_static
12596
12597 # Whether or not to add -lc for building shared libraries.
12598 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12599
12600 # Whether or not to disallow shared libs when runtime libs are static
12601 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12602
12603 # Whether or not to optimize for fast installation.
12604 fast_install=$enable_fast_install
12605
12606 # The host system.
12607 host_alias=$host_alias
12608 host=$host
12609
12610 # An echo program that does not interpret backslashes.
12611 echo=$lt_echo
12612
12613 # The archiver.
12614 AR=$lt_AR
12615 AR_FLAGS=$lt_AR_FLAGS
12616
12617 # A C compiler.
12618 LTCC=$lt_LTCC
12619
12620 # A language-specific compiler.
12621 CC=$lt_compiler_CXX
12622
12623 # Is the compiler the GNU C compiler?
12624 with_gcc=$GCC_CXX
12625
12626 # An ERE matcher.
12627 EGREP=$lt_EGREP
12628
12629 # The linker used to build libraries.
12630 LD=$lt_LD_CXX
12631
12632 # Whether we need hard or soft links.
12633 LN_S=$lt_LN_S
12634
12635 # A BSD-compatible nm program.
12636 NM=$lt_NM
12637
12638 # A symbol stripping program
12639 STRIP=$lt_STRIP
12640
12641 # Used to examine libraries when file_magic_cmd begins "file"
12642 MAGIC_CMD=$MAGIC_CMD
12643
12644 # Used on cygwin: DLL creation program.
12645 DLLTOOL="$DLLTOOL"
12646
12647 # Used on cygwin: object dumper.
12648 OBJDUMP="$OBJDUMP"
12649
12650 # Used on cygwin: assembler.
12651 AS="$AS"
12652
12653 # The name of the directory that contains temporary libtool files.
12654 objdir=$objdir
12655
12656 # How to create reloadable object files.
12657 reload_flag=$lt_reload_flag
12658 reload_cmds=$lt_reload_cmds
12659
12660 # How to pass a linker flag through the compiler.
12661 wl=$lt_lt_prog_compiler_wl_CXX
12662
12663 # Object file suffix (normally "o").
12664 objext="$ac_objext"
12665
12666 # Old archive suffix (normally "a").
12667 libext="$libext"
12668
12669 # Shared library suffix (normally ".so").
12670 shrext_cmds='$shrext_cmds'
12671
12672 # Executable file suffix (normally "").
12673 exeext="$exeext"
12674
12675 # Additional compiler flags for building library objects.
12676 pic_flag=$lt_lt_prog_compiler_pic_CXX
12677 pic_mode=$pic_mode
12678
12679 # What is the maximum length of a command?
12680 max_cmd_len=$lt_cv_sys_max_cmd_len
12681
12682 # Does compiler simultaneously support -c and -o options?
12683 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12684
12685 # Must we lock files when doing compilation ?
12686 need_locks=$lt_need_locks
12687
12688 # Do we need the lib prefix for modules?
12689 need_lib_prefix=$need_lib_prefix
12690
12691 # Do we need a version for libraries?
12692 need_version=$need_version
12693
12694 # Whether dlopen is supported.
12695 dlopen_support=$enable_dlopen
12696
12697 # Whether dlopen of programs is supported.
12698 dlopen_self=$enable_dlopen_self
12699
12700 # Whether dlopen of statically linked programs is supported.
12701 dlopen_self_static=$enable_dlopen_self_static
12702
12703 # Compiler flag to prevent dynamic linking.
12704 link_static_flag=$lt_lt_prog_compiler_static_CXX
12705
12706 # Compiler flag to turn off builtin functions.
12707 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12708
12709 # Compiler flag to allow reflexive dlopens.
12710 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12711
12712 # Compiler flag to generate shared objects directly from archives.
12713 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12714
12715 # Compiler flag to generate thread-safe objects.
12716 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12717
12718 # Library versioning type.
12719 version_type=$version_type
12720
12721 # Format of library name prefix.
12722 libname_spec=$lt_libname_spec
12723
12724 # List of archive names.  First name is the real one, the rest are links.
12725 # The last name is the one that the linker finds with -lNAME.
12726 library_names_spec=$lt_library_names_spec
12727
12728 # The coded name of the library, if different from the real name.
12729 soname_spec=$lt_soname_spec
12730
12731 # Commands used to build and install an old-style archive.
12732 RANLIB=$lt_RANLIB
12733 old_archive_cmds=$lt_old_archive_cmds_CXX
12734 old_postinstall_cmds=$lt_old_postinstall_cmds
12735 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12736
12737 # Create an old-style archive from a shared archive.
12738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12739
12740 # Create a temporary old-style archive to link instead of a shared archive.
12741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12742
12743 # Commands used to build and install a shared archive.
12744 archive_cmds=$lt_archive_cmds_CXX
12745 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12746 postinstall_cmds=$lt_postinstall_cmds
12747 postuninstall_cmds=$lt_postuninstall_cmds
12748
12749 # Commands used to build a loadable module (assumed same as above if empty)
12750 module_cmds=$lt_module_cmds_CXX
12751 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12752
12753 # Commands to strip libraries.
12754 old_striplib=$lt_old_striplib
12755 striplib=$lt_striplib
12756
12757 # Dependencies to place before the objects being linked to create a
12758 # shared library.
12759 predep_objects=$lt_predep_objects_CXX
12760
12761 # Dependencies to place after the objects being linked to create a
12762 # shared library.
12763 postdep_objects=$lt_postdep_objects_CXX
12764
12765 # Dependencies to place before the objects being linked to create a
12766 # shared library.
12767 predeps=$lt_predeps_CXX
12768
12769 # Dependencies to place after the objects being linked to create a
12770 # shared library.
12771 postdeps=$lt_postdeps_CXX
12772
12773 # The library search path used internally by the compiler when linking
12774 # a shared library.
12775 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12776
12777 # Method to check whether dependent libraries are shared objects.
12778 deplibs_check_method=$lt_deplibs_check_method
12779
12780 # Command to use when deplibs_check_method == file_magic.
12781 file_magic_cmd=$lt_file_magic_cmd
12782
12783 # Flag that allows shared libraries with undefined symbols to be built.
12784 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12785
12786 # Flag that forces no undefined symbols.
12787 no_undefined_flag=$lt_no_undefined_flag_CXX
12788
12789 # Commands used to finish a libtool library installation in a directory.
12790 finish_cmds=$lt_finish_cmds
12791
12792 # Same as above, but a single script fragment to be evaled but not shown.
12793 finish_eval=$lt_finish_eval
12794
12795 # Take the output of nm and produce a listing of raw symbols and C names.
12796 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12797
12798 # Transform the output of nm in a proper C declaration
12799 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12800
12801 # Transform the output of nm in a C name address pair
12802 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12803
12804 # This is the shared library runtime path variable.
12805 runpath_var=$runpath_var
12806
12807 # This is the shared library path variable.
12808 shlibpath_var=$shlibpath_var
12809
12810 # Is shlibpath searched before the hard-coded library search path?
12811 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12812
12813 # How to hardcode a shared library path into an executable.
12814 hardcode_action=$hardcode_action_CXX
12815
12816 # Whether we should hardcode library paths into libraries.
12817 hardcode_into_libs=$hardcode_into_libs
12818
12819 # Flag to hardcode \$libdir into a binary during linking.
12820 # This must work even if \$libdir does not exist.
12821 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12822
12823 # If ld is used when linking, flag to hardcode \$libdir into
12824 # a binary during linking. This must work even if \$libdir does
12825 # not exist.
12826 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12827
12828 # Whether we need a single -rpath flag with a separated argument.
12829 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12830
12831 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12832 # resulting binary.
12833 hardcode_direct=$hardcode_direct_CXX
12834
12835 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12836 # resulting binary.
12837 hardcode_minus_L=$hardcode_minus_L_CXX
12838
12839 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12840 # the resulting binary.
12841 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12842
12843 # Set to yes if building a shared library automatically hardcodes DIR into the library
12844 # and all subsequent libraries and executables linked against it.
12845 hardcode_automatic=$hardcode_automatic_CXX
12846
12847 # Variables whose values should be saved in libtool wrapper scripts and
12848 # restored at relink time.
12849 variables_saved_for_relink="$variables_saved_for_relink"
12850
12851 # Whether libtool must link a program against all its dependency libraries.
12852 link_all_deplibs=$link_all_deplibs_CXX
12853
12854 # Compile-time system search path for libraries
12855 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12856
12857 # Run-time system search path for libraries
12858 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12859
12860 # Fix the shell variable \$srcfile for the compiler.
12861 fix_srcfile_path="$fix_srcfile_path_CXX"
12862
12863 # Set to yes if exported symbols are required.
12864 always_export_symbols=$always_export_symbols_CXX
12865
12866 # The commands to list exported symbols.
12867 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12868
12869 # The commands to extract the exported symbol list from a shared archive.
12870 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12871
12872 # Symbols that should not be listed in the preloaded symbols.
12873 exclude_expsyms=$lt_exclude_expsyms_CXX
12874
12875 # Symbols that must always be exported.
12876 include_expsyms=$lt_include_expsyms_CXX
12877
12878 # ### END LIBTOOL TAG CONFIG: $tagname
12879
12880 __EOF__
12881
12882
12883 else
12884   # If there is no Makefile yet, we rely on a make rule to execute
12885   # `config.status --recheck' to rerun these tests and create the
12886   # libtool script then.
12887   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12888   if test -f "$ltmain_in"; then
12889     test -f Makefile && make "$ltmain"
12890   fi
12891 fi
12892
12893
12894 ac_ext=c
12895 ac_cpp='$CPP $CPPFLAGS'
12896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12899
12900 CC=$lt_save_CC
12901 LDCXX=$LD
12902 LD=$lt_save_LD
12903 GCC=$lt_save_GCC
12904 with_gnu_ldcxx=$with_gnu_ld
12905 with_gnu_ld=$lt_save_with_gnu_ld
12906 lt_cv_path_LDCXX=$lt_cv_path_LD
12907 lt_cv_path_LD=$lt_save_path_LD
12908 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12909 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12910
12911         else
12912           tagname=""
12913         fi
12914         ;;
12915
12916       F77)
12917         if test -n "$F77" && test "X$F77" != "Xno"; then
12918
12919 ac_ext=f
12920 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12921 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12922 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12923
12924
12925 archive_cmds_need_lc_F77=no
12926 allow_undefined_flag_F77=
12927 always_export_symbols_F77=no
12928 archive_expsym_cmds_F77=
12929 export_dynamic_flag_spec_F77=
12930 hardcode_direct_F77=no
12931 hardcode_libdir_flag_spec_F77=
12932 hardcode_libdir_flag_spec_ld_F77=
12933 hardcode_libdir_separator_F77=
12934 hardcode_minus_L_F77=no
12935 hardcode_automatic_F77=no
12936 module_cmds_F77=
12937 module_expsym_cmds_F77=
12938 link_all_deplibs_F77=unknown
12939 old_archive_cmds_F77=$old_archive_cmds
12940 no_undefined_flag_F77=
12941 whole_archive_flag_spec_F77=
12942 enable_shared_with_static_runtimes_F77=no
12943
12944 # Source file extension for f77 test sources.
12945 ac_ext=f
12946
12947 # Object file extension for compiled f77 test sources.
12948 objext=o
12949 objext_F77=$objext
12950
12951 # Code to be used in simple compile tests
12952 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12953
12954 # Code to be used in simple link tests
12955 lt_simple_link_test_code="      program t\n      end\n"
12956
12957 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12958
12959 # If no C compiler was specified, use CC.
12960 LTCC=${LTCC-"$CC"}
12961
12962 # Allow CC to be a program name with arguments.
12963 compiler=$CC
12964
12965
12966 # Allow CC to be a program name with arguments.
12967 lt_save_CC="$CC"
12968 CC=${F77-"f77"}
12969 compiler=$CC
12970 compiler_F77=$CC
12971 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12972
12973 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12974 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12975 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12976 echo "${ECHO_T}$can_build_shared" >&6
12977
12978 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12979 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12980 test "$can_build_shared" = "no" && enable_shared=no
12981
12982 # On AIX, shared libraries and static libraries use the same namespace, and
12983 # are all built from PIC.
12984 case "$host_os" in
12985 aix3*)
12986   test "$enable_shared" = yes && enable_static=no
12987   if test -n "$RANLIB"; then
12988     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12989     postinstall_cmds='$RANLIB $lib'
12990   fi
12991   ;;
12992 aix4* | aix5*)
12993   test "$enable_shared" = yes && enable_static=no
12994   ;;
12995 esac
12996 echo "$as_me:$LINENO: result: $enable_shared" >&5
12997 echo "${ECHO_T}$enable_shared" >&6
12998
12999 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13000 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13001 # Make sure either enable_shared or enable_static is yes.
13002 test "$enable_shared" = yes || enable_static=yes
13003 echo "$as_me:$LINENO: result: $enable_static" >&5
13004 echo "${ECHO_T}$enable_static" >&6
13005
13006 test "$ld_shlibs_F77" = no && can_build_shared=no
13007
13008 GCC_F77="$G77"
13009 LD_F77="$LD"
13010
13011 lt_prog_compiler_wl_F77=
13012 lt_prog_compiler_pic_F77=
13013 lt_prog_compiler_static_F77=
13014
13015 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13016 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13017
13018   if test "$GCC" = yes; then
13019     lt_prog_compiler_wl_F77='-Wl,'
13020     lt_prog_compiler_static_F77='-static'
13021
13022     case $host_os in
13023       aix*)
13024       # All AIX code is PIC.
13025       if test "$host_cpu" = ia64; then
13026         # AIX 5 now supports IA64 processor
13027         lt_prog_compiler_static_F77='-Bstatic'
13028       fi
13029       ;;
13030
13031     amigaos*)
13032       # FIXME: we need at least 68020 code to build shared libraries, but
13033       # adding the `-m68020' flag to GCC prevents building anything better,
13034       # like `-m68040'.
13035       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13036       ;;
13037
13038     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13039       # PIC is the default for these OSes.
13040       ;;
13041
13042     mingw* | pw32* | os2*)
13043       # This hack is so that the source file can tell whether it is being
13044       # built for inclusion in a dll (and should export symbols for example).
13045       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13046       ;;
13047
13048     darwin* | rhapsody*)
13049       # PIC is the default on this platform
13050       # Common symbols not allowed in MH_DYLIB files
13051       lt_prog_compiler_pic_F77='-fno-common'
13052       ;;
13053
13054     msdosdjgpp*)
13055       # Just because we use GCC doesn't mean we suddenly get shared libraries
13056       # on systems that don't support them.
13057       lt_prog_compiler_can_build_shared_F77=no
13058       enable_shared=no
13059       ;;
13060
13061     sysv4*MP*)
13062       if test -d /usr/nec; then
13063         lt_prog_compiler_pic_F77=-Kconform_pic
13064       fi
13065       ;;
13066
13067     hpux*)
13068       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13069       # not for PA HP-UX.
13070       case "$host_cpu" in
13071       hppa*64*|ia64*)
13072         # +Z the default
13073         ;;
13074       *)
13075         lt_prog_compiler_pic_F77='-fPIC'
13076         ;;
13077       esac
13078       ;;
13079
13080     *)
13081       lt_prog_compiler_pic_F77='-fPIC'
13082       ;;
13083     esac
13084   else
13085     # PORTME Check for flag to pass linker flags through the system compiler.
13086     case $host_os in
13087     aix*)
13088       lt_prog_compiler_wl_F77='-Wl,'
13089       if test "$host_cpu" = ia64; then
13090         # AIX 5 now supports IA64 processor
13091         lt_prog_compiler_static_F77='-Bstatic'
13092       else
13093         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13094       fi
13095       ;;
13096
13097     mingw* | pw32* | os2*)
13098       # This hack is so that the source file can tell whether it is being
13099       # built for inclusion in a dll (and should export symbols for example).
13100       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13101       ;;
13102
13103     hpux9* | hpux10* | hpux11*)
13104       lt_prog_compiler_wl_F77='-Wl,'
13105       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13106       # not for PA HP-UX.
13107       case "$host_cpu" in
13108       hppa*64*|ia64*)
13109         # +Z the default
13110         ;;
13111       *)
13112         lt_prog_compiler_pic_F77='+Z'
13113         ;;
13114       esac
13115       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13116       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13117       ;;
13118
13119     irix5* | irix6* | nonstopux*)
13120       lt_prog_compiler_wl_F77='-Wl,'
13121       # PIC (with -KPIC) is the default.
13122       lt_prog_compiler_static_F77='-non_shared'
13123       ;;
13124
13125     newsos6)
13126       lt_prog_compiler_pic_F77='-KPIC'
13127       lt_prog_compiler_static_F77='-Bstatic'
13128       ;;
13129
13130     linux*)
13131       case $CC in
13132       icc* | ecc*)
13133         lt_prog_compiler_wl_F77='-Wl,'
13134         lt_prog_compiler_pic_F77='-KPIC'
13135         lt_prog_compiler_static_F77='-static'
13136         ;;
13137       ccc*)
13138         lt_prog_compiler_wl_F77='-Wl,'
13139         # All Alpha code is PIC.
13140         lt_prog_compiler_static_F77='-non_shared'
13141         ;;
13142       esac
13143       ;;
13144
13145     osf3* | osf4* | osf5*)
13146       lt_prog_compiler_wl_F77='-Wl,'
13147       # All OSF/1 code is PIC.
13148       lt_prog_compiler_static_F77='-non_shared'
13149       ;;
13150
13151     sco3.2v5*)
13152       lt_prog_compiler_pic_F77='-Kpic'
13153       lt_prog_compiler_static_F77='-dn'
13154       ;;
13155
13156     solaris*)
13157       lt_prog_compiler_wl_F77='-Wl,'
13158       lt_prog_compiler_pic_F77='-KPIC'
13159       lt_prog_compiler_static_F77='-Bstatic'
13160       ;;
13161
13162     sunos4*)
13163       lt_prog_compiler_wl_F77='-Qoption ld '
13164       lt_prog_compiler_pic_F77='-PIC'
13165       lt_prog_compiler_static_F77='-Bstatic'
13166       ;;
13167
13168     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13169       lt_prog_compiler_wl_F77='-Wl,'
13170       lt_prog_compiler_pic_F77='-KPIC'
13171       lt_prog_compiler_static_F77='-Bstatic'
13172       ;;
13173
13174     sysv4*MP*)
13175       if test -d /usr/nec ;then
13176         lt_prog_compiler_pic_F77='-Kconform_pic'
13177         lt_prog_compiler_static_F77='-Bstatic'
13178       fi
13179       ;;
13180
13181     uts4*)
13182       lt_prog_compiler_pic_F77='-pic'
13183       lt_prog_compiler_static_F77='-Bstatic'
13184       ;;
13185
13186     *)
13187       lt_prog_compiler_can_build_shared_F77=no
13188       ;;
13189     esac
13190   fi
13191
13192 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13193 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13194
13195 #
13196 # Check to make sure the PIC flag actually works.
13197 #
13198 if test -n "$lt_prog_compiler_pic_F77"; then
13199
13200 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13201 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13202 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13203   echo $ECHO_N "(cached) $ECHO_C" >&6
13204 else
13205   lt_prog_compiler_pic_works_F77=no
13206   ac_outfile=conftest.$ac_objext
13207    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13208    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13209    # Insert the option either (1) after the last *FLAGS variable, or
13210    # (2) before a word containing "conftest.", or (3) at the end.
13211    # Note that $ac_compile itself does not contain backslashes and begins
13212    # with a dollar sign (not a hyphen), so the echo should work correctly.
13213    # The option is referenced via a variable to avoid confusing sed.
13214    lt_compile=`echo "$ac_compile" | $SED \
13215    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13216    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13217    -e 's:$: $lt_compiler_flag:'`
13218    (eval echo "\"\$as_me:13218: $lt_compile\"" >&5)
13219    (eval "$lt_compile" 2>conftest.err)
13220    ac_status=$?
13221    cat conftest.err >&5
13222    echo "$as_me:13222: \$? = $ac_status" >&5
13223    if (exit $ac_status) && test -s "$ac_outfile"; then
13224      # The compiler can only warn and ignore the option if not recognized
13225      # So say no if there are warnings
13226      if test ! -s conftest.err; then
13227        lt_prog_compiler_pic_works_F77=yes
13228      fi
13229    fi
13230    $rm conftest*
13231
13232 fi
13233 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13234 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13235
13236 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13237     case $lt_prog_compiler_pic_F77 in
13238      "" | " "*) ;;
13239      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13240      esac
13241 else
13242     lt_prog_compiler_pic_F77=
13243      lt_prog_compiler_can_build_shared_F77=no
13244 fi
13245
13246 fi
13247 case "$host_os" in
13248   # For platforms which do not support PIC, -DPIC is meaningless:
13249   *djgpp*)
13250     lt_prog_compiler_pic_F77=
13251     ;;
13252   *)
13253     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13254     ;;
13255 esac
13256
13257 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13258 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13259 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13260   echo $ECHO_N "(cached) $ECHO_C" >&6
13261 else
13262   lt_cv_prog_compiler_c_o_F77=no
13263    $rm -r conftest 2>/dev/null
13264    mkdir conftest
13265    cd conftest
13266    mkdir out
13267    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13268
13269    lt_compiler_flag="-o out/conftest2.$ac_objext"
13270    # Insert the option either (1) after the last *FLAGS variable, or
13271    # (2) before a word containing "conftest.", or (3) at the end.
13272    # Note that $ac_compile itself does not contain backslashes and begins
13273    # with a dollar sign (not a hyphen), so the echo should work correctly.
13274    lt_compile=`echo "$ac_compile" | $SED \
13275    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13276    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13277    -e 's:$: $lt_compiler_flag:'`
13278    (eval echo "\"\$as_me:13278: $lt_compile\"" >&5)
13279    (eval "$lt_compile" 2>out/conftest.err)
13280    ac_status=$?
13281    cat out/conftest.err >&5
13282    echo "$as_me:13282: \$? = $ac_status" >&5
13283    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13284    then
13285      # The compiler can only warn and ignore the option if not recognized
13286      # So say no if there are warnings
13287      if test ! -s out/conftest.err; then
13288        lt_cv_prog_compiler_c_o_F77=yes
13289      fi
13290    fi
13291    chmod u+w .
13292    $rm conftest*
13293    # SGI C++ compiler will create directory out/ii_files/ for
13294    # template instantiation
13295    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13296    $rm out/* && rmdir out
13297    cd ..
13298    rmdir conftest
13299    $rm conftest*
13300
13301 fi
13302 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13303 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13304
13305
13306 hard_links="nottested"
13307 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13308   # do not overwrite the value of need_locks provided by the user
13309   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13310 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13311   hard_links=yes
13312   $rm conftest*
13313   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13314   touch conftest.a
13315   ln conftest.a conftest.b 2>&5 || hard_links=no
13316   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13317   echo "$as_me:$LINENO: result: $hard_links" >&5
13318 echo "${ECHO_T}$hard_links" >&6
13319   if test "$hard_links" = no; then
13320     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13321 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13322     need_locks=warn
13323   fi
13324 else
13325   need_locks=no
13326 fi
13327
13328 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13329 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13330
13331   runpath_var=
13332   allow_undefined_flag_F77=
13333   enable_shared_with_static_runtimes_F77=no
13334   archive_cmds_F77=
13335   archive_expsym_cmds_F77=
13336   old_archive_From_new_cmds_F77=
13337   old_archive_from_expsyms_cmds_F77=
13338   export_dynamic_flag_spec_F77=
13339   whole_archive_flag_spec_F77=
13340   thread_safe_flag_spec_F77=
13341   hardcode_libdir_flag_spec_F77=
13342   hardcode_libdir_flag_spec_ld_F77=
13343   hardcode_libdir_separator_F77=
13344   hardcode_direct_F77=no
13345   hardcode_minus_L_F77=no
13346   hardcode_shlibpath_var_F77=unsupported
13347   link_all_deplibs_F77=unknown
13348   hardcode_automatic_F77=no
13349   module_cmds_F77=
13350   module_expsym_cmds_F77=
13351   always_export_symbols_F77=no
13352   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13353   # include_expsyms should be a list of space-separated symbols to be *always*
13354   # included in the symbol list
13355   include_expsyms_F77=
13356   # exclude_expsyms can be an extended regexp of symbols to exclude
13357   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13358   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13359   # as well as any symbol that contains `d'.
13360   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13361   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13362   # platforms (ab)use it in PIC code, but their linkers get confused if
13363   # the symbol is explicitly referenced.  Since portable code cannot
13364   # rely on this symbol name, it's probably fine to never include it in
13365   # preloaded symbol tables.
13366   extract_expsyms_cmds=
13367
13368   case $host_os in
13369   cygwin* | mingw* | pw32*)
13370     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13371     # When not using gcc, we currently assume that we are using
13372     # Microsoft Visual C++.
13373     if test "$GCC" != yes; then
13374       with_gnu_ld=no
13375     fi
13376     ;;
13377   openbsd*)
13378     with_gnu_ld=no
13379     ;;
13380   esac
13381
13382   ld_shlibs_F77=yes
13383   if test "$with_gnu_ld" = yes; then
13384     # If archive_cmds runs LD, not CC, wlarc should be empty
13385     wlarc='${wl}'
13386
13387     # See if GNU ld supports shared libraries.
13388     case $host_os in
13389     aix3* | aix4* | aix5*)
13390       # On AIX/PPC, the GNU linker is very broken
13391       if test "$host_cpu" != ia64; then
13392         ld_shlibs_F77=no
13393         cat <<EOF 1>&2
13394
13395 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13396 *** to be unable to reliably create shared libraries on AIX.
13397 *** Therefore, libtool is disabling shared libraries support.  If you
13398 *** really care for shared libraries, you may want to modify your PATH
13399 *** so that a non-GNU linker is found, and then restart.
13400
13401 EOF
13402       fi
13403       ;;
13404
13405     amigaos*)
13406       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13407       hardcode_libdir_flag_spec_F77='-L$libdir'
13408       hardcode_minus_L_F77=yes
13409
13410       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13411       # that the semantics of dynamic libraries on AmigaOS, at least up
13412       # to version 4, is to share data among multiple programs linked
13413       # with the same dynamic library.  Since this doesn't match the
13414       # behavior of shared libraries on other platforms, we can't use
13415       # them.
13416       ld_shlibs_F77=no
13417       ;;
13418
13419     beos*)
13420       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13421         allow_undefined_flag_F77=unsupported
13422         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13423         # support --undefined.  This deserves some investigation.  FIXME
13424         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13425       else
13426         ld_shlibs_F77=no
13427       fi
13428       ;;
13429
13430     cygwin* | mingw* | pw32*)
13431       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13432       # as there is no search path for DLLs.
13433       hardcode_libdir_flag_spec_F77='-L$libdir'
13434       allow_undefined_flag_F77=unsupported
13435       always_export_symbols_F77=no
13436       enable_shared_with_static_runtimes_F77=yes
13437       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13438
13439       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13440         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13441         # If the export-symbols file already is a .def file (1st line
13442         # is EXPORTS), use it as is; otherwise, prepend...
13443         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13444           cp $export_symbols $output_objdir/$soname.def;
13445         else
13446           echo EXPORTS > $output_objdir/$soname.def;
13447           cat $export_symbols >> $output_objdir/$soname.def;
13448         fi~
13449         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13450       else
13451         ld_shlibs=no
13452       fi
13453       ;;
13454
13455     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13456       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13457         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13458         wlarc=
13459       else
13460         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13461         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13462       fi
13463       ;;
13464
13465     solaris* | sysv5*)
13466       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13467         ld_shlibs_F77=no
13468         cat <<EOF 1>&2
13469
13470 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13471 *** create shared libraries on Solaris systems.  Therefore, libtool
13472 *** is disabling shared libraries support.  We urge you to upgrade GNU
13473 *** binutils to release 2.9.1 or newer.  Another option is to modify
13474 *** your PATH or compiler configuration so that the native linker is
13475 *** used, and then restart.
13476
13477 EOF
13478       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13479         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13480         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13481       else
13482         ld_shlibs_F77=no
13483       fi
13484       ;;
13485
13486     sunos4*)
13487       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13488       wlarc=
13489       hardcode_direct_F77=yes
13490       hardcode_shlibpath_var_F77=no
13491       ;;
13492
13493   linux*)
13494     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13495         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13496         archive_cmds_F77="$tmp_archive_cmds"
13497       supports_anon_versioning=no
13498       case `$LD -v 2>/dev/null` in
13499         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13500         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13501         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13502         *\ 2.11.*) ;; # other 2.11 versions
13503         *) supports_anon_versioning=yes ;;
13504       esac
13505       if test $supports_anon_versioning = yes; then
13506         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13507 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13508 $echo "local: *; };" >> $output_objdir/$libname.ver~
13509         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13510       else
13511         archive_expsym_cmds_F77="$tmp_archive_cmds"
13512       fi
13513       link_all_deplibs_F77=no
13514     else
13515       ld_shlibs_F77=no
13516     fi
13517     ;;
13518
13519     *)
13520       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13521         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13522         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13523       else
13524         ld_shlibs_F77=no
13525       fi
13526       ;;
13527     esac
13528
13529     if test "$ld_shlibs_F77" = yes; then
13530       runpath_var=LD_RUN_PATH
13531       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13532       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13533       # ancient GNU ld didn't support --whole-archive et. al.
13534       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13535         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13536       else
13537         whole_archive_flag_spec_F77=
13538       fi
13539     fi
13540   else
13541     # PORTME fill in a description of your system's linker (not GNU ld)
13542     case $host_os in
13543     aix3*)
13544       allow_undefined_flag_F77=unsupported
13545       always_export_symbols_F77=yes
13546       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13547       # Note: this linker hardcodes the directories in LIBPATH if there
13548       # are no directories specified by -L.
13549       hardcode_minus_L_F77=yes
13550       if test "$GCC" = yes && test -z "$link_static_flag"; then
13551         # Neither direct hardcoding nor static linking is supported with a
13552         # broken collect2.
13553         hardcode_direct_F77=unsupported
13554       fi
13555       ;;
13556
13557     aix4* | aix5*)
13558       if test "$host_cpu" = ia64; then
13559         # On IA64, the linker does run time linking by default, so we don't
13560         # have to do anything special.
13561         aix_use_runtimelinking=no
13562         exp_sym_flag='-Bexport'
13563         no_entry_flag=""
13564       else
13565         # If we're using GNU nm, then we don't want the "-C" option.
13566         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13567         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13568           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13569         else
13570           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13571         fi
13572         aix_use_runtimelinking=no
13573
13574         # Test if we are trying to use run time linking or normal
13575         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13576         # need to do runtime linking.
13577         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13578           for ld_flag in $LDFLAGS; do
13579           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13580             aix_use_runtimelinking=yes
13581             break
13582           fi
13583           done
13584         esac
13585
13586         exp_sym_flag='-bexport'
13587         no_entry_flag='-bnoentry'
13588       fi
13589
13590       # When large executables or shared objects are built, AIX ld can
13591       # have problems creating the table of contents.  If linking a library
13592       # or program results in "error TOC overflow" add -mminimal-toc to
13593       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13594       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13595
13596       archive_cmds_F77=''
13597       hardcode_direct_F77=yes
13598       hardcode_libdir_separator_F77=':'
13599       link_all_deplibs_F77=yes
13600
13601       if test "$GCC" = yes; then
13602         case $host_os in aix4.012|aix4.012.*)
13603         # We only want to do this on AIX 4.2 and lower, the check
13604         # below for broken collect2 doesn't work under 4.3+
13605           collect2name=`${CC} -print-prog-name=collect2`
13606           if test -f "$collect2name" && \
13607            strings "$collect2name" | grep resolve_lib_name >/dev/null
13608           then
13609           # We have reworked collect2
13610           hardcode_direct_F77=yes
13611           else
13612           # We have old collect2
13613           hardcode_direct_F77=unsupported
13614           # It fails to find uninstalled libraries when the uninstalled
13615           # path is not listed in the libpath.  Setting hardcode_minus_L
13616           # to unsupported forces relinking
13617           hardcode_minus_L_F77=yes
13618           hardcode_libdir_flag_spec_F77='-L$libdir'
13619           hardcode_libdir_separator_F77=
13620           fi
13621         esac
13622         shared_flag='-shared'
13623       else
13624         # not using gcc
13625         if test "$host_cpu" = ia64; then
13626         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13627         # chokes on -Wl,-G. The following line is correct:
13628           shared_flag='-G'
13629         else
13630         if test "$aix_use_runtimelinking" = yes; then
13631             shared_flag='${wl}-G'
13632           else
13633             shared_flag='${wl}-bM:SRE'
13634         fi
13635         fi
13636       fi
13637
13638       # It seems that -bexpall does not export symbols beginning with
13639       # underscore (_), so it is better to generate a list of symbols to export.
13640       always_export_symbols_F77=yes
13641       if test "$aix_use_runtimelinking" = yes; then
13642         # Warning - without using the other runtime loading flags (-brtl),
13643         # -berok will link without error, but may produce a broken library.
13644         allow_undefined_flag_F77='-berok'
13645        # Determine the default libpath from the value encoded in an empty executable.
13646        cat >conftest.$ac_ext <<_ACEOF
13647       program main
13648
13649       end
13650 _ACEOF
13651 rm -f conftest.$ac_objext conftest$ac_exeext
13652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13653   (eval $ac_link) 2>&5
13654   ac_status=$?
13655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); } &&
13657          { ac_try='test -s conftest$ac_exeext'
13658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13659   (eval $ac_try) 2>&5
13660   ac_status=$?
13661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662   (exit $ac_status); }; }; then
13663
13664 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13665 }'`
13666 # Check for a 64-bit object if we didn't find anything.
13667 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13668 }'`; fi
13669 else
13670   echo "$as_me: failed program was:" >&5
13671 sed 's/^/| /' conftest.$ac_ext >&5
13672
13673 fi
13674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13675 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13676
13677        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13678         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13679        else
13680         if test "$host_cpu" = ia64; then
13681           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13682           allow_undefined_flag_F77="-z nodefs"
13683           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13684         else
13685          # Determine the default libpath from the value encoded in an empty executable.
13686          cat >conftest.$ac_ext <<_ACEOF
13687       program main
13688
13689       end
13690 _ACEOF
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13693   (eval $ac_link) 2>&5
13694   ac_status=$?
13695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696   (exit $ac_status); } &&
13697          { ac_try='test -s conftest$ac_exeext'
13698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699   (eval $ac_try) 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); }; }; then
13703
13704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13705 }'`
13706 # Check for a 64-bit object if we didn't find anything.
13707 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13708 }'`; fi
13709 else
13710   echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13712
13713 fi
13714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13715 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13716
13717          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13718           # Warning - without using the other run time loading flags,
13719           # -berok will link without error, but may produce a broken library.
13720           no_undefined_flag_F77=' ${wl}-bernotok'
13721           allow_undefined_flag_F77=' ${wl}-berok'
13722           # -bexpall does not export symbols beginning with underscore (_)
13723           always_export_symbols_F77=yes
13724           # Exported symbols can be pulled into shared objects from archives
13725           whole_archive_flag_spec_F77=' '
13726           archive_cmds_need_lc_F77=yes
13727           # This is similar to how AIX traditionally builds it's shared libraries.
13728           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13729         fi
13730       fi
13731       ;;
13732
13733     amigaos*)
13734       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13735       hardcode_libdir_flag_spec_F77='-L$libdir'
13736       hardcode_minus_L_F77=yes
13737       # see comment about different semantics on the GNU ld section
13738       ld_shlibs_F77=no
13739       ;;
13740
13741     bsdi4*)
13742       export_dynamic_flag_spec_F77=-rdynamic
13743       ;;
13744
13745     cygwin* | mingw* | pw32*)
13746       # When not using gcc, we currently assume that we are using
13747       # Microsoft Visual C++.
13748       # hardcode_libdir_flag_spec is actually meaningless, as there is
13749       # no search path for DLLs.
13750       hardcode_libdir_flag_spec_F77=' '
13751       allow_undefined_flag_F77=unsupported
13752       # Tell ltmain to make .lib files, not .a files.
13753       libext=lib
13754       # Tell ltmain to make .dll files, not .so files.
13755       shrext_cmds=".dll"
13756       # FIXME: Setting linknames here is a bad hack.
13757       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13758       # The linker will automatically build a .lib file if we build a DLL.
13759       old_archive_From_new_cmds_F77='true'
13760       # FIXME: Should let the user specify the lib program.
13761       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13762       fix_srcfile_path='`cygpath -w "$srcfile"`'
13763       enable_shared_with_static_runtimes_F77=yes
13764       ;;
13765
13766     darwin* | rhapsody*)
13767     if test "$GXX" = yes ; then
13768       archive_cmds_need_lc_F77=no
13769       case "$host_os" in
13770       rhapsody* | darwin1.[012])
13771         allow_undefined_flag_F77='-undefined suppress'
13772         ;;
13773       *) # Darwin 1.3 on
13774       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13775         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13776       else
13777         case ${MACOSX_DEPLOYMENT_TARGET} in
13778           10.[012])
13779             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13780             ;;
13781           10.*)
13782             allow_undefined_flag_F77='-undefined dynamic_lookup'
13783             ;;
13784         esac
13785       fi
13786         ;;
13787       esac
13788         lt_int_apple_cc_single_mod=no
13789         output_verbose_link_cmd='echo'
13790         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13791           lt_int_apple_cc_single_mod=yes
13792         fi
13793         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13794           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13795         else
13796         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13797       fi
13798       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13799       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13800         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13801           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13802         else
13803           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13804         fi
13805           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13806       hardcode_direct_F77=no
13807       hardcode_automatic_F77=yes
13808       hardcode_shlibpath_var_F77=unsupported
13809       whole_archive_flag_spec_F77='-all_load $convenience'
13810       link_all_deplibs_F77=yes
13811     else
13812       ld_shlibs_F77=no
13813     fi
13814       ;;
13815
13816     dgux*)
13817       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13818       hardcode_libdir_flag_spec_F77='-L$libdir'
13819       hardcode_shlibpath_var_F77=no
13820       ;;
13821
13822     freebsd1*)
13823       ld_shlibs_F77=no
13824       ;;
13825
13826     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13827     # support.  Future versions do this automatically, but an explicit c++rt0.o
13828     # does not break anything, and helps significantly (at the cost of a little
13829     # extra space).
13830     freebsd2.2*)
13831       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13832       hardcode_libdir_flag_spec_F77='-R$libdir'
13833       hardcode_direct_F77=yes
13834       hardcode_shlibpath_var_F77=no
13835       ;;
13836
13837     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13838     freebsd2*)
13839       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13840       hardcode_direct_F77=yes
13841       hardcode_minus_L_F77=yes
13842       hardcode_shlibpath_var_F77=no
13843       ;;
13844
13845     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13846     freebsd* | kfreebsd*-gnu)
13847       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13848       hardcode_libdir_flag_spec_F77='-R$libdir'
13849       hardcode_direct_F77=yes
13850       hardcode_shlibpath_var_F77=no
13851       ;;
13852
13853     hpux9*)
13854       if test "$GCC" = yes; then
13855         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13856       else
13857         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13858       fi
13859       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13860       hardcode_libdir_separator_F77=:
13861       hardcode_direct_F77=yes
13862
13863       # hardcode_minus_L: Not really in the search PATH,
13864       # but as the default location of the library.
13865       hardcode_minus_L_F77=yes
13866       export_dynamic_flag_spec_F77='${wl}-E'
13867       ;;
13868
13869     hpux10* | hpux11*)
13870       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13871         case "$host_cpu" in
13872         hppa*64*|ia64*)
13873           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13874           ;;
13875         *)
13876           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13877           ;;
13878         esac
13879       else
13880         case "$host_cpu" in
13881         hppa*64*|ia64*)
13882           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13883           ;;
13884         *)
13885           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13886           ;;
13887         esac
13888       fi
13889       if test "$with_gnu_ld" = no; then
13890         case "$host_cpu" in
13891         hppa*64*)
13892           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13893           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13894           hardcode_libdir_separator_F77=:
13895           hardcode_direct_F77=no
13896           hardcode_shlibpath_var_F77=no
13897           ;;
13898         ia64*)
13899           hardcode_libdir_flag_spec_F77='-L$libdir'
13900           hardcode_direct_F77=no
13901           hardcode_shlibpath_var_F77=no
13902
13903           # hardcode_minus_L: Not really in the search PATH,
13904           # but as the default location of the library.
13905           hardcode_minus_L_F77=yes
13906           ;;
13907         *)
13908           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13909           hardcode_libdir_separator_F77=:
13910           hardcode_direct_F77=yes
13911           export_dynamic_flag_spec_F77='${wl}-E'
13912
13913           # hardcode_minus_L: Not really in the search PATH,
13914           # but as the default location of the library.
13915           hardcode_minus_L_F77=yes
13916           ;;
13917         esac
13918       fi
13919       ;;
13920
13921     irix5* | irix6* | nonstopux*)
13922       if test "$GCC" = yes; then
13923         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13924       else
13925         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13926         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13927       fi
13928       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13929       hardcode_libdir_separator_F77=:
13930       link_all_deplibs_F77=yes
13931       ;;
13932
13933     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13934       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13935         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13936       else
13937         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13938       fi
13939       hardcode_libdir_flag_spec_F77='-R$libdir'
13940       hardcode_direct_F77=yes
13941       hardcode_shlibpath_var_F77=no
13942       ;;
13943
13944     newsos6)
13945       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13946       hardcode_direct_F77=yes
13947       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13948       hardcode_libdir_separator_F77=:
13949       hardcode_shlibpath_var_F77=no
13950       ;;
13951
13952     openbsd*)
13953       hardcode_direct_F77=yes
13954       hardcode_shlibpath_var_F77=no
13955       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13956         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13957         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13958         export_dynamic_flag_spec_F77='${wl}-E'
13959       else
13960        case $host_os in
13961          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13962            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13963            hardcode_libdir_flag_spec_F77='-R$libdir'
13964            ;;
13965          *)
13966            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13967            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13968            ;;
13969        esac
13970       fi
13971       ;;
13972
13973     os2*)
13974       hardcode_libdir_flag_spec_F77='-L$libdir'
13975       hardcode_minus_L_F77=yes
13976       allow_undefined_flag_F77=unsupported
13977       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13978       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13979       ;;
13980
13981     osf3*)
13982       if test "$GCC" = yes; then
13983         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13984         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13985       else
13986         allow_undefined_flag_F77=' -expect_unresolved \*'
13987         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13988       fi
13989       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13990       hardcode_libdir_separator_F77=:
13991       ;;
13992
13993     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13994       if test "$GCC" = yes; then
13995         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13996         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13997         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13998       else
13999         allow_undefined_flag_F77=' -expect_unresolved \*'
14000         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14001         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14002         $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'
14003
14004         # Both c and cxx compiler support -rpath directly
14005         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14006       fi
14007       hardcode_libdir_separator_F77=:
14008       ;;
14009
14010     sco3.2v5*)
14011       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14012       hardcode_shlibpath_var_F77=no
14013       export_dynamic_flag_spec_F77='${wl}-Bexport'
14014       runpath_var=LD_RUN_PATH
14015       hardcode_runpath_var=yes
14016       ;;
14017
14018     solaris*)
14019       no_undefined_flag_F77=' -z text'
14020       if test "$GCC" = yes; then
14021         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14022         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14023           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14024       else
14025         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14026         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14027         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14028       fi
14029       hardcode_libdir_flag_spec_F77='-R$libdir'
14030       hardcode_shlibpath_var_F77=no
14031       case $host_os in
14032       solaris2.[0-5] | solaris2.[0-5].*) ;;
14033       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14034         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14035       esac
14036       link_all_deplibs_F77=yes
14037       ;;
14038
14039     sunos4*)
14040       if test "x$host_vendor" = xsequent; then
14041         # Use $CC to link under sequent, because it throws in some extra .o
14042         # files that make .init and .fini sections work.
14043         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14044       else
14045         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14046       fi
14047       hardcode_libdir_flag_spec_F77='-L$libdir'
14048       hardcode_direct_F77=yes
14049       hardcode_minus_L_F77=yes
14050       hardcode_shlibpath_var_F77=no
14051       ;;
14052
14053     sysv4)
14054       case $host_vendor in
14055         sni)
14056           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14057           hardcode_direct_F77=yes # is this really true???
14058         ;;
14059         siemens)
14060           ## LD is ld it makes a PLAMLIB
14061           ## CC just makes a GrossModule.
14062           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14063           reload_cmds_F77='$CC -r -o $output$reload_objs'
14064           hardcode_direct_F77=no
14065         ;;
14066         motorola)
14067           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14068           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14069         ;;
14070       esac
14071       runpath_var='LD_RUN_PATH'
14072       hardcode_shlibpath_var_F77=no
14073       ;;
14074
14075     sysv4.3*)
14076       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14077       hardcode_shlibpath_var_F77=no
14078       export_dynamic_flag_spec_F77='-Bexport'
14079       ;;
14080
14081     sysv4*MP*)
14082       if test -d /usr/nec; then
14083         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14084         hardcode_shlibpath_var_F77=no
14085         runpath_var=LD_RUN_PATH
14086         hardcode_runpath_var=yes
14087         ld_shlibs_F77=yes
14088       fi
14089       ;;
14090
14091     sysv4.2uw2*)
14092       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14093       hardcode_direct_F77=yes
14094       hardcode_minus_L_F77=no
14095       hardcode_shlibpath_var_F77=no
14096       hardcode_runpath_var=yes
14097       runpath_var=LD_RUN_PATH
14098       ;;
14099
14100    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14101       no_undefined_flag_F77='${wl}-z ${wl}text'
14102       if test "$GCC" = yes; then
14103         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14104       else
14105         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14106       fi
14107       runpath_var='LD_RUN_PATH'
14108       hardcode_shlibpath_var_F77=no
14109       ;;
14110
14111     sysv5*)
14112       no_undefined_flag_F77=' -z text'
14113       # $CC -shared without GNU ld will not create a library from C++
14114       # object files and a static libstdc++, better avoid it by now
14115       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14116       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14117                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14118       hardcode_libdir_flag_spec_F77=
14119       hardcode_shlibpath_var_F77=no
14120       runpath_var='LD_RUN_PATH'
14121       ;;
14122
14123     uts4*)
14124       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14125       hardcode_libdir_flag_spec_F77='-L$libdir'
14126       hardcode_shlibpath_var_F77=no
14127       ;;
14128
14129     *)
14130       ld_shlibs_F77=no
14131       ;;
14132     esac
14133   fi
14134
14135 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14136 echo "${ECHO_T}$ld_shlibs_F77" >&6
14137 test "$ld_shlibs_F77" = no && can_build_shared=no
14138
14139 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14140 if test "$GCC" = yes; then
14141   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14142 fi
14143
14144 #
14145 # Do we need to explicitly link libc?
14146 #
14147 case "x$archive_cmds_need_lc_F77" in
14148 x|xyes)
14149   # Assume -lc should be added
14150   archive_cmds_need_lc_F77=yes
14151
14152   if test "$enable_shared" = yes && test "$GCC" = yes; then
14153     case $archive_cmds_F77 in
14154     *'~'*)
14155       # FIXME: we may have to deal with multi-command sequences.
14156       ;;
14157     '$CC '*)
14158       # Test whether the compiler implicitly links with -lc since on some
14159       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14160       # to ld, don't add -lc before -lgcc.
14161       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14162 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14163       $rm conftest*
14164       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14165
14166       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14167   (eval $ac_compile) 2>&5
14168   ac_status=$?
14169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170   (exit $ac_status); } 2>conftest.err; then
14171         soname=conftest
14172         lib=conftest
14173         libobjs=conftest.$ac_objext
14174         deplibs=
14175         wl=$lt_prog_compiler_wl_F77
14176         compiler_flags=-v
14177         linker_flags=-v
14178         verstring=
14179         output_objdir=.
14180         libname=conftest
14181         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14182         allow_undefined_flag_F77=
14183         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14184   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14185   ac_status=$?
14186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187   (exit $ac_status); }
14188         then
14189           archive_cmds_need_lc_F77=no
14190         else
14191           archive_cmds_need_lc_F77=yes
14192         fi
14193         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14194       else
14195         cat conftest.err 1>&5
14196       fi
14197       $rm conftest*
14198       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14199 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14200       ;;
14201     esac
14202   fi
14203   ;;
14204 esac
14205
14206 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14207 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14208 library_names_spec=
14209 libname_spec='lib$name'
14210 soname_spec=
14211 shrext_cmds=".so"
14212 postinstall_cmds=
14213 postuninstall_cmds=
14214 finish_cmds=
14215 finish_eval=
14216 shlibpath_var=
14217 shlibpath_overrides_runpath=unknown
14218 version_type=none
14219 dynamic_linker="$host_os ld.so"
14220 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14221 if test "$GCC" = yes; then
14222   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14223   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14224     # if the path contains ";" then we assume it to be the separator
14225     # otherwise default to the standard path separator (i.e. ":") - it is
14226     # assumed that no part of a normal pathname contains ";" but that should
14227     # okay in the real world where ";" in dirpaths is itself problematic.
14228     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14229   else
14230     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14231   fi
14232 else
14233   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14234 fi
14235 need_lib_prefix=unknown
14236 hardcode_into_libs=no
14237
14238 # when you set need_version to no, make sure it does not cause -set_version
14239 # flags to be left without arguments
14240 need_version=unknown
14241
14242 case $host_os in
14243 aix3*)
14244   version_type=linux
14245   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14246   shlibpath_var=LIBPATH
14247
14248   # AIX 3 has no versioning support, so we append a major version to the name.
14249   soname_spec='${libname}${release}${shared_ext}$major'
14250   ;;
14251
14252 aix4* | aix5*)
14253   version_type=linux
14254   need_lib_prefix=no
14255   need_version=no
14256   hardcode_into_libs=yes
14257   if test "$host_cpu" = ia64; then
14258     # AIX 5 supports IA64
14259     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14260     shlibpath_var=LD_LIBRARY_PATH
14261   else
14262     # With GCC up to 2.95.x, collect2 would create an import file
14263     # for dependence libraries.  The import file would start with
14264     # the line `#! .'.  This would cause the generated library to
14265     # depend on `.', always an invalid library.  This was fixed in
14266     # development snapshots of GCC prior to 3.0.
14267     case $host_os in
14268       aix4 | aix4.[01] | aix4.[01].*)
14269       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14270            echo ' yes '
14271            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14272         :
14273       else
14274         can_build_shared=no
14275       fi
14276       ;;
14277     esac
14278     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14279     # soname into executable. Probably we can add versioning support to
14280     # collect2, so additional links can be useful in future.
14281     if test "$aix_use_runtimelinking" = yes; then
14282       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14283       # instead of lib<name>.a to let people know that these are not
14284       # typical AIX shared libraries.
14285       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14286     else
14287       # We preserve .a as extension for shared libraries through AIX4.2
14288       # and later when we are not doing run time linking.
14289       library_names_spec='${libname}${release}.a $libname.a'
14290       soname_spec='${libname}${release}${shared_ext}$major'
14291     fi
14292     shlibpath_var=LIBPATH
14293   fi
14294   ;;
14295
14296 amigaos*)
14297   library_names_spec='$libname.ixlibrary $libname.a'
14298   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14299   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'
14300   ;;
14301
14302 beos*)
14303   library_names_spec='${libname}${shared_ext}'
14304   dynamic_linker="$host_os ld.so"
14305   shlibpath_var=LIBRARY_PATH
14306   ;;
14307
14308 bsdi4*)
14309   version_type=linux
14310   need_version=no
14311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14312   soname_spec='${libname}${release}${shared_ext}$major'
14313   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14314   shlibpath_var=LD_LIBRARY_PATH
14315   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14316   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14317   # the default ld.so.conf also contains /usr/contrib/lib and
14318   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14319   # libtool to hard-code these into programs
14320   ;;
14321
14322 cygwin* | mingw* | pw32*)
14323   version_type=windows
14324   shrext_cmds=".dll"
14325   need_version=no
14326   need_lib_prefix=no
14327
14328   case $GCC,$host_os in
14329   yes,cygwin* | yes,mingw* | yes,pw32*)
14330     library_names_spec='$libname.dll.a'
14331     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14332     postinstall_cmds='base_file=`basename \${file}`~
14333       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14334       dldir=$destdir/`dirname \$dlpath`~
14335       test -d \$dldir || mkdir -p \$dldir~
14336       $install_prog $dir/$dlname \$dldir/$dlname'
14337     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14338       dlpath=$dir/\$dldll~
14339        $rm \$dlpath'
14340     shlibpath_overrides_runpath=yes
14341
14342     case $host_os in
14343     cygwin*)
14344       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14345       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14346       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14347       ;;
14348     mingw*)
14349       # MinGW DLLs use traditional 'lib' prefix
14350       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14351       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14352       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14353         # It is most probably a Windows format PATH printed by
14354         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14355         # path with ; separators, and with drive letters. We can handle the
14356         # drive letters (cygwin fileutils understands them), so leave them,
14357         # especially as we might pass files found there to a mingw objdump,
14358         # which wouldn't understand a cygwinified path. Ahh.
14359         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14360       else
14361         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14362       fi
14363       ;;
14364     pw32*)
14365       # pw32 DLLs use 'pw' prefix rather than 'lib'
14366       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14367       ;;
14368     esac
14369     ;;
14370
14371   *)
14372     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14373     ;;
14374   esac
14375   dynamic_linker='Win32 ld.exe'
14376   # FIXME: first we should search . and the directory the executable is in
14377   shlibpath_var=PATH
14378   ;;
14379
14380 darwin* | rhapsody*)
14381   dynamic_linker="$host_os dyld"
14382   version_type=darwin
14383   need_lib_prefix=no
14384   need_version=no
14385   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14386   soname_spec='${libname}${release}${major}$shared_ext'
14387   shlibpath_overrides_runpath=yes
14388   shlibpath_var=DYLD_LIBRARY_PATH
14389   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14390   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14391   if test "$GCC" = yes; then
14392     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14393   else
14394     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14395   fi
14396   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14397   ;;
14398
14399 dgux*)
14400   version_type=linux
14401   need_lib_prefix=no
14402   need_version=no
14403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14404   soname_spec='${libname}${release}${shared_ext}$major'
14405   shlibpath_var=LD_LIBRARY_PATH
14406   ;;
14407
14408 freebsd1*)
14409   dynamic_linker=no
14410   ;;
14411
14412 kfreebsd*-gnu)
14413   version_type=linux
14414   need_lib_prefix=no
14415   need_version=no
14416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14417   soname_spec='${libname}${release}${shared_ext}$major'
14418   shlibpath_var=LD_LIBRARY_PATH
14419   shlibpath_overrides_runpath=no
14420   hardcode_into_libs=yes
14421   dynamic_linker='GNU ld.so'
14422   ;;
14423
14424 freebsd*)
14425   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14426   version_type=freebsd-$objformat
14427   case $version_type in
14428     freebsd-elf*)
14429       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14430       need_version=no
14431       need_lib_prefix=no
14432       ;;
14433     freebsd-*)
14434       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14435       need_version=yes
14436       ;;
14437   esac
14438   shlibpath_var=LD_LIBRARY_PATH
14439   case $host_os in
14440   freebsd2*)
14441     shlibpath_overrides_runpath=yes
14442     ;;
14443   freebsd3.01* | freebsdelf3.01*)
14444     shlibpath_overrides_runpath=yes
14445     hardcode_into_libs=yes
14446     ;;
14447   *) # from 3.2 on
14448     shlibpath_overrides_runpath=no
14449     hardcode_into_libs=yes
14450     ;;
14451   esac
14452   ;;
14453
14454 gnu*)
14455   version_type=linux
14456   need_lib_prefix=no
14457   need_version=no
14458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14459   soname_spec='${libname}${release}${shared_ext}$major'
14460   shlibpath_var=LD_LIBRARY_PATH
14461   hardcode_into_libs=yes
14462   ;;
14463
14464 hpux9* | hpux10* | hpux11*)
14465   # Give a soname corresponding to the major version so that dld.sl refuses to
14466   # link against other versions.
14467   version_type=sunos
14468   need_lib_prefix=no
14469   need_version=no
14470   case "$host_cpu" in
14471   ia64*)
14472     shrext_cmds='.so'
14473     hardcode_into_libs=yes
14474     dynamic_linker="$host_os dld.so"
14475     shlibpath_var=LD_LIBRARY_PATH
14476     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14477     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14478     soname_spec='${libname}${release}${shared_ext}$major'
14479     if test "X$HPUX_IA64_MODE" = X32; then
14480       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14481     else
14482       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14483     fi
14484     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14485     ;;
14486    hppa*64*)
14487      shrext_cmds='.sl'
14488      hardcode_into_libs=yes
14489      dynamic_linker="$host_os dld.sl"
14490      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14491      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14492      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14493      soname_spec='${libname}${release}${shared_ext}$major'
14494      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14495      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14496      ;;
14497    *)
14498     shrext_cmds='.sl'
14499     dynamic_linker="$host_os dld.sl"
14500     shlibpath_var=SHLIB_PATH
14501     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14502     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14503     soname_spec='${libname}${release}${shared_ext}$major'
14504     ;;
14505   esac
14506   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14507   postinstall_cmds='chmod 555 $lib'
14508   ;;
14509
14510 irix5* | irix6* | nonstopux*)
14511   case $host_os in
14512     nonstopux*) version_type=nonstopux ;;
14513     *)
14514         if test "$lt_cv_prog_gnu_ld" = yes; then
14515                 version_type=linux
14516         else
14517                 version_type=irix
14518         fi ;;
14519   esac
14520   need_lib_prefix=no
14521   need_version=no
14522   soname_spec='${libname}${release}${shared_ext}$major'
14523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14524   case $host_os in
14525   irix5* | nonstopux*)
14526     libsuff= shlibsuff=
14527     ;;
14528   *)
14529     case $LD in # libtool.m4 will add one of these switches to LD
14530     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14531       libsuff= shlibsuff= libmagic=32-bit;;
14532     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14533       libsuff=32 shlibsuff=N32 libmagic=N32;;
14534     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14535       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14536     *) libsuff= shlibsuff= libmagic=never-match;;
14537     esac
14538     ;;
14539   esac
14540   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14541   shlibpath_overrides_runpath=no
14542   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14543   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14544   hardcode_into_libs=yes
14545   ;;
14546
14547 # No shared lib support for Linux oldld, aout, or coff.
14548 linux*oldld* | linux*aout* | linux*coff*)
14549   dynamic_linker=no
14550   ;;
14551
14552 # This must be Linux ELF.
14553 linux*)
14554   version_type=linux
14555   need_lib_prefix=no
14556   need_version=no
14557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14558   soname_spec='${libname}${release}${shared_ext}$major'
14559   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14560   shlibpath_var=LD_LIBRARY_PATH
14561   shlibpath_overrides_runpath=no
14562   # This implies no fast_install, which is unacceptable.
14563   # Some rework will be needed to allow for fast_install
14564   # before this can be enabled.
14565   hardcode_into_libs=yes
14566
14567   # Append ld.so.conf contents to the search path
14568   if test -f /etc/ld.so.conf; then
14569     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14570     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14571   fi
14572
14573   # We used to test for /lib/ld.so.1 and disable shared libraries on
14574   # powerpc, because MkLinux only supported shared libraries with the
14575   # GNU dynamic linker.  Since this was broken with cross compilers,
14576   # most powerpc-linux boxes support dynamic linking these days and
14577   # people can always --disable-shared, the test was removed, and we
14578   # assume the GNU/Linux dynamic linker is in use.
14579   dynamic_linker='GNU/Linux ld.so'
14580   ;;
14581
14582 netbsdelf*-gnu)
14583   version_type=linux
14584   need_lib_prefix=no
14585   need_version=no
14586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14587   soname_spec='${libname}${release}${shared_ext}$major'
14588   shlibpath_var=LD_LIBRARY_PATH
14589   shlibpath_overrides_runpath=no
14590   hardcode_into_libs=yes
14591   dynamic_linker='NetBSD ld.elf_so'
14592   ;;
14593
14594 knetbsd*-gnu)
14595   version_type=linux
14596   need_lib_prefix=no
14597   need_version=no
14598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14599   soname_spec='${libname}${release}${shared_ext}$major'
14600   shlibpath_var=LD_LIBRARY_PATH
14601   shlibpath_overrides_runpath=no
14602   hardcode_into_libs=yes
14603   dynamic_linker='GNU ld.so'
14604   ;;
14605
14606 netbsd*)
14607   version_type=sunos
14608   need_lib_prefix=no
14609   need_version=no
14610   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14611     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14612     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14613     dynamic_linker='NetBSD (a.out) ld.so'
14614   else
14615     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14616     soname_spec='${libname}${release}${shared_ext}$major'
14617     dynamic_linker='NetBSD ld.elf_so'
14618   fi
14619   shlibpath_var=LD_LIBRARY_PATH
14620   shlibpath_overrides_runpath=yes
14621   hardcode_into_libs=yes
14622   ;;
14623
14624 newsos6)
14625   version_type=linux
14626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14627   shlibpath_var=LD_LIBRARY_PATH
14628   shlibpath_overrides_runpath=yes
14629   ;;
14630
14631 nto-qnx*)
14632   version_type=linux
14633   need_lib_prefix=no
14634   need_version=no
14635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14636   soname_spec='${libname}${release}${shared_ext}$major'
14637   shlibpath_var=LD_LIBRARY_PATH
14638   shlibpath_overrides_runpath=yes
14639   ;;
14640
14641 openbsd*)
14642   version_type=sunos
14643   need_lib_prefix=no
14644   need_version=yes
14645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14646   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14647   shlibpath_var=LD_LIBRARY_PATH
14648   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14649     case $host_os in
14650       openbsd2.[89] | openbsd2.[89].*)
14651         shlibpath_overrides_runpath=no
14652         ;;
14653       *)
14654         shlibpath_overrides_runpath=yes
14655         ;;
14656       esac
14657   else
14658     shlibpath_overrides_runpath=yes
14659   fi
14660   ;;
14661
14662 os2*)
14663   libname_spec='$name'
14664   shrext_cmds=".dll"
14665   need_lib_prefix=no
14666   library_names_spec='$libname${shared_ext} $libname.a'
14667   dynamic_linker='OS/2 ld.exe'
14668   shlibpath_var=LIBPATH
14669   ;;
14670
14671 osf3* | osf4* | osf5*)
14672   version_type=osf
14673   need_lib_prefix=no
14674   need_version=no
14675   soname_spec='${libname}${release}${shared_ext}$major'
14676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14677   shlibpath_var=LD_LIBRARY_PATH
14678   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14679   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14680   ;;
14681
14682 sco3.2v5*)
14683   version_type=osf
14684   soname_spec='${libname}${release}${shared_ext}$major'
14685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14686   shlibpath_var=LD_LIBRARY_PATH
14687   ;;
14688
14689 solaris*)
14690   version_type=linux
14691   need_lib_prefix=no
14692   need_version=no
14693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694   soname_spec='${libname}${release}${shared_ext}$major'
14695   shlibpath_var=LD_LIBRARY_PATH
14696   shlibpath_overrides_runpath=yes
14697   hardcode_into_libs=yes
14698   # ldd complains unless libraries are executable
14699   postinstall_cmds='chmod +x $lib'
14700   ;;
14701
14702 sunos4*)
14703   version_type=sunos
14704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14705   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14706   shlibpath_var=LD_LIBRARY_PATH
14707   shlibpath_overrides_runpath=yes
14708   if test "$with_gnu_ld" = yes; then
14709     need_lib_prefix=no
14710   fi
14711   need_version=yes
14712   ;;
14713
14714 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14715   version_type=linux
14716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14717   soname_spec='${libname}${release}${shared_ext}$major'
14718   shlibpath_var=LD_LIBRARY_PATH
14719   case $host_vendor in
14720     sni)
14721       shlibpath_overrides_runpath=no
14722       need_lib_prefix=no
14723       export_dynamic_flag_spec='${wl}-Blargedynsym'
14724       runpath_var=LD_RUN_PATH
14725       ;;
14726     siemens)
14727       need_lib_prefix=no
14728       ;;
14729     motorola)
14730       need_lib_prefix=no
14731       need_version=no
14732       shlibpath_overrides_runpath=no
14733       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14734       ;;
14735   esac
14736   ;;
14737
14738 sysv4*MP*)
14739   if test -d /usr/nec ;then
14740     version_type=linux
14741     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14742     soname_spec='$libname${shared_ext}.$major'
14743     shlibpath_var=LD_LIBRARY_PATH
14744   fi
14745   ;;
14746
14747 uts4*)
14748   version_type=linux
14749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14750   soname_spec='${libname}${release}${shared_ext}$major'
14751   shlibpath_var=LD_LIBRARY_PATH
14752   ;;
14753
14754 *)
14755   dynamic_linker=no
14756   ;;
14757 esac
14758 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14759 echo "${ECHO_T}$dynamic_linker" >&6
14760 test "$dynamic_linker" = no && can_build_shared=no
14761
14762 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14763 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14764 hardcode_action_F77=
14765 if test -n "$hardcode_libdir_flag_spec_F77" || \
14766    test -n "$runpath_var F77" || \
14767    test "X$hardcode_automatic_F77"="Xyes" ; then
14768
14769   # We can hardcode non-existant directories.
14770   if test "$hardcode_direct_F77" != no &&
14771      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14772      # have to relink, otherwise we might link with an installed library
14773      # when we should be linking with a yet-to-be-installed one
14774      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14775      test "$hardcode_minus_L_F77" != no; then
14776     # Linking always hardcodes the temporary library directory.
14777     hardcode_action_F77=relink
14778   else
14779     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14780     hardcode_action_F77=immediate
14781   fi
14782 else
14783   # We cannot hardcode anything, or else we can only hardcode existing
14784   # directories.
14785   hardcode_action_F77=unsupported
14786 fi
14787 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14788 echo "${ECHO_T}$hardcode_action_F77" >&6
14789
14790 if test "$hardcode_action_F77" = relink; then
14791   # Fast installation is not supported
14792   enable_fast_install=no
14793 elif test "$shlibpath_overrides_runpath" = yes ||
14794      test "$enable_shared" = no; then
14795   # Fast installation is not necessary
14796   enable_fast_install=needless
14797 fi
14798
14799 striplib=
14800 old_striplib=
14801 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14802 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14803 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14804   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14805   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14806   echo "$as_me:$LINENO: result: yes" >&5
14807 echo "${ECHO_T}yes" >&6
14808 else
14809 # FIXME - insert some real tests, host_os isn't really good enough
14810   case $host_os in
14811    darwin*)
14812        if test -n "$STRIP" ; then
14813          striplib="$STRIP -x"
14814          echo "$as_me:$LINENO: result: yes" >&5
14815 echo "${ECHO_T}yes" >&6
14816        else
14817   echo "$as_me:$LINENO: result: no" >&5
14818 echo "${ECHO_T}no" >&6
14819 fi
14820        ;;
14821    *)
14822   echo "$as_me:$LINENO: result: no" >&5
14823 echo "${ECHO_T}no" >&6
14824     ;;
14825   esac
14826 fi
14827
14828
14829
14830 # The else clause should only fire when bootstrapping the
14831 # libtool distribution, otherwise you forgot to ship ltmain.sh
14832 # with your package, and you will get complaints that there are
14833 # no rules to generate ltmain.sh.
14834 if test -f "$ltmain"; then
14835   # See if we are running on zsh, and set the options which allow our commands through
14836   # without removal of \ escapes.
14837   if test -n "${ZSH_VERSION+set}" ; then
14838     setopt NO_GLOB_SUBST
14839   fi
14840   # Now quote all the things that may contain metacharacters while being
14841   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14842   # variables and quote the copies for generation of the libtool script.
14843   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14844     SED SHELL STRIP \
14845     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14846     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14847     deplibs_check_method reload_flag reload_cmds need_locks \
14848     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14849     lt_cv_sys_global_symbol_to_c_name_address \
14850     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14851     old_postinstall_cmds old_postuninstall_cmds \
14852     compiler_F77 \
14853     CC_F77 \
14854     LD_F77 \
14855     lt_prog_compiler_wl_F77 \
14856     lt_prog_compiler_pic_F77 \
14857     lt_prog_compiler_static_F77 \
14858     lt_prog_compiler_no_builtin_flag_F77 \
14859     export_dynamic_flag_spec_F77 \
14860     thread_safe_flag_spec_F77 \
14861     whole_archive_flag_spec_F77 \
14862     enable_shared_with_static_runtimes_F77 \
14863     old_archive_cmds_F77 \
14864     old_archive_from_new_cmds_F77 \
14865     predep_objects_F77 \
14866     postdep_objects_F77 \
14867     predeps_F77 \
14868     postdeps_F77 \
14869     compiler_lib_search_path_F77 \
14870     archive_cmds_F77 \
14871     archive_expsym_cmds_F77 \
14872     postinstall_cmds_F77 \
14873     postuninstall_cmds_F77 \
14874     old_archive_from_expsyms_cmds_F77 \
14875     allow_undefined_flag_F77 \
14876     no_undefined_flag_F77 \
14877     export_symbols_cmds_F77 \
14878     hardcode_libdir_flag_spec_F77 \
14879     hardcode_libdir_flag_spec_ld_F77 \
14880     hardcode_libdir_separator_F77 \
14881     hardcode_automatic_F77 \
14882     module_cmds_F77 \
14883     module_expsym_cmds_F77 \
14884     lt_cv_prog_compiler_c_o_F77 \
14885     exclude_expsyms_F77 \
14886     include_expsyms_F77; do
14887
14888     case $var in
14889     old_archive_cmds_F77 | \
14890     old_archive_from_new_cmds_F77 | \
14891     archive_cmds_F77 | \
14892     archive_expsym_cmds_F77 | \
14893     module_cmds_F77 | \
14894     module_expsym_cmds_F77 | \
14895     old_archive_from_expsyms_cmds_F77 | \
14896     export_symbols_cmds_F77 | \
14897     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14898     postinstall_cmds | postuninstall_cmds | \
14899     old_postinstall_cmds | old_postuninstall_cmds | \
14900     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14901       # Double-quote double-evaled strings.
14902       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14903       ;;
14904     *)
14905       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14906       ;;
14907     esac
14908   done
14909
14910   case $lt_echo in
14911   *'\$0 --fallback-echo"')
14912     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14913     ;;
14914   esac
14915
14916 cfgfile="$ofile"
14917
14918   cat <<__EOF__ >> "$cfgfile"
14919 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14920
14921 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14922
14923 # Shell to use when invoking shell scripts.
14924 SHELL=$lt_SHELL
14925
14926 # Whether or not to build shared libraries.
14927 build_libtool_libs=$enable_shared
14928
14929 # Whether or not to build static libraries.
14930 build_old_libs=$enable_static
14931
14932 # Whether or not to add -lc for building shared libraries.
14933 build_libtool_need_lc=$archive_cmds_need_lc_F77
14934
14935 # Whether or not to disallow shared libs when runtime libs are static
14936 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14937
14938 # Whether or not to optimize for fast installation.
14939 fast_install=$enable_fast_install
14940
14941 # The host system.
14942 host_alias=$host_alias
14943 host=$host
14944
14945 # An echo program that does not interpret backslashes.
14946 echo=$lt_echo
14947
14948 # The archiver.
14949 AR=$lt_AR
14950 AR_FLAGS=$lt_AR_FLAGS
14951
14952 # A C compiler.
14953 LTCC=$lt_LTCC
14954
14955 # A language-specific compiler.
14956 CC=$lt_compiler_F77
14957
14958 # Is the compiler the GNU C compiler?
14959 with_gcc=$GCC_F77
14960
14961 # An ERE matcher.
14962 EGREP=$lt_EGREP
14963
14964 # The linker used to build libraries.
14965 LD=$lt_LD_F77
14966
14967 # Whether we need hard or soft links.
14968 LN_S=$lt_LN_S
14969
14970 # A BSD-compatible nm program.
14971 NM=$lt_NM
14972
14973 # A symbol stripping program
14974 STRIP=$lt_STRIP
14975
14976 # Used to examine libraries when file_magic_cmd begins "file"
14977 MAGIC_CMD=$MAGIC_CMD
14978
14979 # Used on cygwin: DLL creation program.
14980 DLLTOOL="$DLLTOOL"
14981
14982 # Used on cygwin: object dumper.
14983 OBJDUMP="$OBJDUMP"
14984
14985 # Used on cygwin: assembler.
14986 AS="$AS"
14987
14988 # The name of the directory that contains temporary libtool files.
14989 objdir=$objdir
14990
14991 # How to create reloadable object files.
14992 reload_flag=$lt_reload_flag
14993 reload_cmds=$lt_reload_cmds
14994
14995 # How to pass a linker flag through the compiler.
14996 wl=$lt_lt_prog_compiler_wl_F77
14997
14998 # Object file suffix (normally "o").
14999 objext="$ac_objext"
15000
15001 # Old archive suffix (normally "a").
15002 libext="$libext"
15003
15004 # Shared library suffix (normally ".so").
15005 shrext_cmds='$shrext_cmds'
15006
15007 # Executable file suffix (normally "").
15008 exeext="$exeext"
15009
15010 # Additional compiler flags for building library objects.
15011 pic_flag=$lt_lt_prog_compiler_pic_F77
15012 pic_mode=$pic_mode
15013
15014 # What is the maximum length of a command?
15015 max_cmd_len=$lt_cv_sys_max_cmd_len
15016
15017 # Does compiler simultaneously support -c and -o options?
15018 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15019
15020 # Must we lock files when doing compilation ?
15021 need_locks=$lt_need_locks
15022
15023 # Do we need the lib prefix for modules?
15024 need_lib_prefix=$need_lib_prefix
15025
15026 # Do we need a version for libraries?
15027 need_version=$need_version
15028
15029 # Whether dlopen is supported.
15030 dlopen_support=$enable_dlopen
15031
15032 # Whether dlopen of programs is supported.
15033 dlopen_self=$enable_dlopen_self
15034
15035 # Whether dlopen of statically linked programs is supported.
15036 dlopen_self_static=$enable_dlopen_self_static
15037
15038 # Compiler flag to prevent dynamic linking.
15039 link_static_flag=$lt_lt_prog_compiler_static_F77
15040
15041 # Compiler flag to turn off builtin functions.
15042 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15043
15044 # Compiler flag to allow reflexive dlopens.
15045 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15046
15047 # Compiler flag to generate shared objects directly from archives.
15048 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15049
15050 # Compiler flag to generate thread-safe objects.
15051 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15052
15053 # Library versioning type.
15054 version_type=$version_type
15055
15056 # Format of library name prefix.
15057 libname_spec=$lt_libname_spec
15058
15059 # List of archive names.  First name is the real one, the rest are links.
15060 # The last name is the one that the linker finds with -lNAME.
15061 library_names_spec=$lt_library_names_spec
15062
15063 # The coded name of the library, if different from the real name.
15064 soname_spec=$lt_soname_spec
15065
15066 # Commands used to build and install an old-style archive.
15067 RANLIB=$lt_RANLIB
15068 old_archive_cmds=$lt_old_archive_cmds_F77
15069 old_postinstall_cmds=$lt_old_postinstall_cmds
15070 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15071
15072 # Create an old-style archive from a shared archive.
15073 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15074
15075 # Create a temporary old-style archive to link instead of a shared archive.
15076 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15077
15078 # Commands used to build and install a shared archive.
15079 archive_cmds=$lt_archive_cmds_F77
15080 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15081 postinstall_cmds=$lt_postinstall_cmds
15082 postuninstall_cmds=$lt_postuninstall_cmds
15083
15084 # Commands used to build a loadable module (assumed same as above if empty)
15085 module_cmds=$lt_module_cmds_F77
15086 module_expsym_cmds=$lt_module_expsym_cmds_F77
15087
15088 # Commands to strip libraries.
15089 old_striplib=$lt_old_striplib
15090 striplib=$lt_striplib
15091
15092 # Dependencies to place before the objects being linked to create a
15093 # shared library.
15094 predep_objects=$lt_predep_objects_F77
15095
15096 # Dependencies to place after the objects being linked to create a
15097 # shared library.
15098 postdep_objects=$lt_postdep_objects_F77
15099
15100 # Dependencies to place before the objects being linked to create a
15101 # shared library.
15102 predeps=$lt_predeps_F77
15103
15104 # Dependencies to place after the objects being linked to create a
15105 # shared library.
15106 postdeps=$lt_postdeps_F77
15107
15108 # The library search path used internally by the compiler when linking
15109 # a shared library.
15110 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15111
15112 # Method to check whether dependent libraries are shared objects.
15113 deplibs_check_method=$lt_deplibs_check_method
15114
15115 # Command to use when deplibs_check_method == file_magic.
15116 file_magic_cmd=$lt_file_magic_cmd
15117
15118 # Flag that allows shared libraries with undefined symbols to be built.
15119 allow_undefined_flag=$lt_allow_undefined_flag_F77
15120
15121 # Flag that forces no undefined symbols.
15122 no_undefined_flag=$lt_no_undefined_flag_F77
15123
15124 # Commands used to finish a libtool library installation in a directory.
15125 finish_cmds=$lt_finish_cmds
15126
15127 # Same as above, but a single script fragment to be evaled but not shown.
15128 finish_eval=$lt_finish_eval
15129
15130 # Take the output of nm and produce a listing of raw symbols and C names.
15131 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15132
15133 # Transform the output of nm in a proper C declaration
15134 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15135
15136 # Transform the output of nm in a C name address pair
15137 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15138
15139 # This is the shared library runtime path variable.
15140 runpath_var=$runpath_var
15141
15142 # This is the shared library path variable.
15143 shlibpath_var=$shlibpath_var
15144
15145 # Is shlibpath searched before the hard-coded library search path?
15146 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15147
15148 # How to hardcode a shared library path into an executable.
15149 hardcode_action=$hardcode_action_F77
15150
15151 # Whether we should hardcode library paths into libraries.
15152 hardcode_into_libs=$hardcode_into_libs
15153
15154 # Flag to hardcode \$libdir into a binary during linking.
15155 # This must work even if \$libdir does not exist.
15156 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15157
15158 # If ld is used when linking, flag to hardcode \$libdir into
15159 # a binary during linking. This must work even if \$libdir does
15160 # not exist.
15161 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15162
15163 # Whether we need a single -rpath flag with a separated argument.
15164 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15165
15166 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15167 # resulting binary.
15168 hardcode_direct=$hardcode_direct_F77
15169
15170 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15171 # resulting binary.
15172 hardcode_minus_L=$hardcode_minus_L_F77
15173
15174 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15175 # the resulting binary.
15176 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15177
15178 # Set to yes if building a shared library automatically hardcodes DIR into the library
15179 # and all subsequent libraries and executables linked against it.
15180 hardcode_automatic=$hardcode_automatic_F77
15181
15182 # Variables whose values should be saved in libtool wrapper scripts and
15183 # restored at relink time.
15184 variables_saved_for_relink="$variables_saved_for_relink"
15185
15186 # Whether libtool must link a program against all its dependency libraries.
15187 link_all_deplibs=$link_all_deplibs_F77
15188
15189 # Compile-time system search path for libraries
15190 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15191
15192 # Run-time system search path for libraries
15193 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15194
15195 # Fix the shell variable \$srcfile for the compiler.
15196 fix_srcfile_path="$fix_srcfile_path_F77"
15197
15198 # Set to yes if exported symbols are required.
15199 always_export_symbols=$always_export_symbols_F77
15200
15201 # The commands to list exported symbols.
15202 export_symbols_cmds=$lt_export_symbols_cmds_F77
15203
15204 # The commands to extract the exported symbol list from a shared archive.
15205 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15206
15207 # Symbols that should not be listed in the preloaded symbols.
15208 exclude_expsyms=$lt_exclude_expsyms_F77
15209
15210 # Symbols that must always be exported.
15211 include_expsyms=$lt_include_expsyms_F77
15212
15213 # ### END LIBTOOL TAG CONFIG: $tagname
15214
15215 __EOF__
15216
15217
15218 else
15219   # If there is no Makefile yet, we rely on a make rule to execute
15220   # `config.status --recheck' to rerun these tests and create the
15221   # libtool script then.
15222   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15223   if test -f "$ltmain_in"; then
15224     test -f Makefile && make "$ltmain"
15225   fi
15226 fi
15227
15228
15229 ac_ext=c
15230 ac_cpp='$CPP $CPPFLAGS'
15231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15234
15235 CC="$lt_save_CC"
15236
15237         else
15238           tagname=""
15239         fi
15240         ;;
15241
15242       GCJ)
15243         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15244
15245
15246
15247 # Source file extension for Java test sources.
15248 ac_ext=java
15249
15250 # Object file extension for compiled Java test sources.
15251 objext=o
15252 objext_GCJ=$objext
15253
15254 # Code to be used in simple compile tests
15255 lt_simple_compile_test_code="class foo {}\n"
15256
15257 # Code to be used in simple link tests
15258 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15259
15260 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15261
15262 # If no C compiler was specified, use CC.
15263 LTCC=${LTCC-"$CC"}
15264
15265 # Allow CC to be a program name with arguments.
15266 compiler=$CC
15267
15268
15269 # Allow CC to be a program name with arguments.
15270 lt_save_CC="$CC"
15271 CC=${GCJ-"gcj"}
15272 compiler=$CC
15273 compiler_GCJ=$CC
15274
15275 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15276 archive_cmds_need_lc_GCJ=no
15277
15278
15279 lt_prog_compiler_no_builtin_flag_GCJ=
15280
15281 if test "$GCC" = yes; then
15282   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15283
15284
15285 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15286 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15287 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15288   echo $ECHO_N "(cached) $ECHO_C" >&6
15289 else
15290   lt_cv_prog_compiler_rtti_exceptions=no
15291   ac_outfile=conftest.$ac_objext
15292    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15293    lt_compiler_flag="-fno-rtti -fno-exceptions"
15294    # Insert the option either (1) after the last *FLAGS variable, or
15295    # (2) before a word containing "conftest.", or (3) at the end.
15296    # Note that $ac_compile itself does not contain backslashes and begins
15297    # with a dollar sign (not a hyphen), so the echo should work correctly.
15298    # The option is referenced via a variable to avoid confusing sed.
15299    lt_compile=`echo "$ac_compile" | $SED \
15300    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15301    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15302    -e 's:$: $lt_compiler_flag:'`
15303    (eval echo "\"\$as_me:15303: $lt_compile\"" >&5)
15304    (eval "$lt_compile" 2>conftest.err)
15305    ac_status=$?
15306    cat conftest.err >&5
15307    echo "$as_me:15307: \$? = $ac_status" >&5
15308    if (exit $ac_status) && test -s "$ac_outfile"; then
15309      # The compiler can only warn and ignore the option if not recognized
15310      # So say no if there are warnings
15311      if test ! -s conftest.err; then
15312        lt_cv_prog_compiler_rtti_exceptions=yes
15313      fi
15314    fi
15315    $rm conftest*
15316
15317 fi
15318 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15319 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15320
15321 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15322     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15323 else
15324     :
15325 fi
15326
15327 fi
15328
15329 lt_prog_compiler_wl_GCJ=
15330 lt_prog_compiler_pic_GCJ=
15331 lt_prog_compiler_static_GCJ=
15332
15333 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15334 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15335
15336   if test "$GCC" = yes; then
15337     lt_prog_compiler_wl_GCJ='-Wl,'
15338     lt_prog_compiler_static_GCJ='-static'
15339
15340     case $host_os in
15341       aix*)
15342       # All AIX code is PIC.
15343       if test "$host_cpu" = ia64; then
15344         # AIX 5 now supports IA64 processor
15345         lt_prog_compiler_static_GCJ='-Bstatic'
15346       fi
15347       ;;
15348
15349     amigaos*)
15350       # FIXME: we need at least 68020 code to build shared libraries, but
15351       # adding the `-m68020' flag to GCC prevents building anything better,
15352       # like `-m68040'.
15353       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15354       ;;
15355
15356     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15357       # PIC is the default for these OSes.
15358       ;;
15359
15360     mingw* | pw32* | os2*)
15361       # This hack is so that the source file can tell whether it is being
15362       # built for inclusion in a dll (and should export symbols for example).
15363       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15364       ;;
15365
15366     darwin* | rhapsody*)
15367       # PIC is the default on this platform
15368       # Common symbols not allowed in MH_DYLIB files
15369       lt_prog_compiler_pic_GCJ='-fno-common'
15370       ;;
15371
15372     msdosdjgpp*)
15373       # Just because we use GCC doesn't mean we suddenly get shared libraries
15374       # on systems that don't support them.
15375       lt_prog_compiler_can_build_shared_GCJ=no
15376       enable_shared=no
15377       ;;
15378
15379     sysv4*MP*)
15380       if test -d /usr/nec; then
15381         lt_prog_compiler_pic_GCJ=-Kconform_pic
15382       fi
15383       ;;
15384
15385     hpux*)
15386       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15387       # not for PA HP-UX.
15388       case "$host_cpu" in
15389       hppa*64*|ia64*)
15390         # +Z the default
15391         ;;
15392       *)
15393         lt_prog_compiler_pic_GCJ='-fPIC'
15394         ;;
15395       esac
15396       ;;
15397
15398     *)
15399       lt_prog_compiler_pic_GCJ='-fPIC'
15400       ;;
15401     esac
15402   else
15403     # PORTME Check for flag to pass linker flags through the system compiler.
15404     case $host_os in
15405     aix*)
15406       lt_prog_compiler_wl_GCJ='-Wl,'
15407       if test "$host_cpu" = ia64; then
15408         # AIX 5 now supports IA64 processor
15409         lt_prog_compiler_static_GCJ='-Bstatic'
15410       else
15411         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15412       fi
15413       ;;
15414
15415     mingw* | pw32* | os2*)
15416       # This hack is so that the source file can tell whether it is being
15417       # built for inclusion in a dll (and should export symbols for example).
15418       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15419       ;;
15420
15421     hpux9* | hpux10* | hpux11*)
15422       lt_prog_compiler_wl_GCJ='-Wl,'
15423       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15424       # not for PA HP-UX.
15425       case "$host_cpu" in
15426       hppa*64*|ia64*)
15427         # +Z the default
15428         ;;
15429       *)
15430         lt_prog_compiler_pic_GCJ='+Z'
15431         ;;
15432       esac
15433       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15434       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15435       ;;
15436
15437     irix5* | irix6* | nonstopux*)
15438       lt_prog_compiler_wl_GCJ='-Wl,'
15439       # PIC (with -KPIC) is the default.
15440       lt_prog_compiler_static_GCJ='-non_shared'
15441       ;;
15442
15443     newsos6)
15444       lt_prog_compiler_pic_GCJ='-KPIC'
15445       lt_prog_compiler_static_GCJ='-Bstatic'
15446       ;;
15447
15448     linux*)
15449       case $CC in
15450       icc* | ecc*)
15451         lt_prog_compiler_wl_GCJ='-Wl,'
15452         lt_prog_compiler_pic_GCJ='-KPIC'
15453         lt_prog_compiler_static_GCJ='-static'
15454         ;;
15455       ccc*)
15456         lt_prog_compiler_wl_GCJ='-Wl,'
15457         # All Alpha code is PIC.
15458         lt_prog_compiler_static_GCJ='-non_shared'
15459         ;;
15460       esac
15461       ;;
15462
15463     osf3* | osf4* | osf5*)
15464       lt_prog_compiler_wl_GCJ='-Wl,'
15465       # All OSF/1 code is PIC.
15466       lt_prog_compiler_static_GCJ='-non_shared'
15467       ;;
15468
15469     sco3.2v5*)
15470       lt_prog_compiler_pic_GCJ='-Kpic'
15471       lt_prog_compiler_static_GCJ='-dn'
15472       ;;
15473
15474     solaris*)
15475       lt_prog_compiler_wl_GCJ='-Wl,'
15476       lt_prog_compiler_pic_GCJ='-KPIC'
15477       lt_prog_compiler_static_GCJ='-Bstatic'
15478       ;;
15479
15480     sunos4*)
15481       lt_prog_compiler_wl_GCJ='-Qoption ld '
15482       lt_prog_compiler_pic_GCJ='-PIC'
15483       lt_prog_compiler_static_GCJ='-Bstatic'
15484       ;;
15485
15486     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15487       lt_prog_compiler_wl_GCJ='-Wl,'
15488       lt_prog_compiler_pic_GCJ='-KPIC'
15489       lt_prog_compiler_static_GCJ='-Bstatic'
15490       ;;
15491
15492     sysv4*MP*)
15493       if test -d /usr/nec ;then
15494         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15495         lt_prog_compiler_static_GCJ='-Bstatic'
15496       fi
15497       ;;
15498
15499     uts4*)
15500       lt_prog_compiler_pic_GCJ='-pic'
15501       lt_prog_compiler_static_GCJ='-Bstatic'
15502       ;;
15503
15504     *)
15505       lt_prog_compiler_can_build_shared_GCJ=no
15506       ;;
15507     esac
15508   fi
15509
15510 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15511 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15512
15513 #
15514 # Check to make sure the PIC flag actually works.
15515 #
15516 if test -n "$lt_prog_compiler_pic_GCJ"; then
15517
15518 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15519 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15520 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15521   echo $ECHO_N "(cached) $ECHO_C" >&6
15522 else
15523   lt_prog_compiler_pic_works_GCJ=no
15524   ac_outfile=conftest.$ac_objext
15525    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15526    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15527    # Insert the option either (1) after the last *FLAGS variable, or
15528    # (2) before a word containing "conftest.", or (3) at the end.
15529    # Note that $ac_compile itself does not contain backslashes and begins
15530    # with a dollar sign (not a hyphen), so the echo should work correctly.
15531    # The option is referenced via a variable to avoid confusing sed.
15532    lt_compile=`echo "$ac_compile" | $SED \
15533    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15534    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15535    -e 's:$: $lt_compiler_flag:'`
15536    (eval echo "\"\$as_me:15536: $lt_compile\"" >&5)
15537    (eval "$lt_compile" 2>conftest.err)
15538    ac_status=$?
15539    cat conftest.err >&5
15540    echo "$as_me:15540: \$? = $ac_status" >&5
15541    if (exit $ac_status) && test -s "$ac_outfile"; then
15542      # The compiler can only warn and ignore the option if not recognized
15543      # So say no if there are warnings
15544      if test ! -s conftest.err; then
15545        lt_prog_compiler_pic_works_GCJ=yes
15546      fi
15547    fi
15548    $rm conftest*
15549
15550 fi
15551 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15552 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15553
15554 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15555     case $lt_prog_compiler_pic_GCJ in
15556      "" | " "*) ;;
15557      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15558      esac
15559 else
15560     lt_prog_compiler_pic_GCJ=
15561      lt_prog_compiler_can_build_shared_GCJ=no
15562 fi
15563
15564 fi
15565 case "$host_os" in
15566   # For platforms which do not support PIC, -DPIC is meaningless:
15567   *djgpp*)
15568     lt_prog_compiler_pic_GCJ=
15569     ;;
15570   *)
15571     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15572     ;;
15573 esac
15574
15575 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15576 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15577 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15578   echo $ECHO_N "(cached) $ECHO_C" >&6
15579 else
15580   lt_cv_prog_compiler_c_o_GCJ=no
15581    $rm -r conftest 2>/dev/null
15582    mkdir conftest
15583    cd conftest
15584    mkdir out
15585    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15586
15587    lt_compiler_flag="-o out/conftest2.$ac_objext"
15588    # Insert the option either (1) after the last *FLAGS variable, or
15589    # (2) before a word containing "conftest.", or (3) at the end.
15590    # Note that $ac_compile itself does not contain backslashes and begins
15591    # with a dollar sign (not a hyphen), so the echo should work correctly.
15592    lt_compile=`echo "$ac_compile" | $SED \
15593    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15594    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15595    -e 's:$: $lt_compiler_flag:'`
15596    (eval echo "\"\$as_me:15596: $lt_compile\"" >&5)
15597    (eval "$lt_compile" 2>out/conftest.err)
15598    ac_status=$?
15599    cat out/conftest.err >&5
15600    echo "$as_me:15600: \$? = $ac_status" >&5
15601    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15602    then
15603      # The compiler can only warn and ignore the option if not recognized
15604      # So say no if there are warnings
15605      if test ! -s out/conftest.err; then
15606        lt_cv_prog_compiler_c_o_GCJ=yes
15607      fi
15608    fi
15609    chmod u+w .
15610    $rm conftest*
15611    # SGI C++ compiler will create directory out/ii_files/ for
15612    # template instantiation
15613    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15614    $rm out/* && rmdir out
15615    cd ..
15616    rmdir conftest
15617    $rm conftest*
15618
15619 fi
15620 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15621 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15622
15623
15624 hard_links="nottested"
15625 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15626   # do not overwrite the value of need_locks provided by the user
15627   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15628 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15629   hard_links=yes
15630   $rm conftest*
15631   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15632   touch conftest.a
15633   ln conftest.a conftest.b 2>&5 || hard_links=no
15634   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15635   echo "$as_me:$LINENO: result: $hard_links" >&5
15636 echo "${ECHO_T}$hard_links" >&6
15637   if test "$hard_links" = no; then
15638     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15639 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15640     need_locks=warn
15641   fi
15642 else
15643   need_locks=no
15644 fi
15645
15646 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15647 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15648
15649   runpath_var=
15650   allow_undefined_flag_GCJ=
15651   enable_shared_with_static_runtimes_GCJ=no
15652   archive_cmds_GCJ=
15653   archive_expsym_cmds_GCJ=
15654   old_archive_From_new_cmds_GCJ=
15655   old_archive_from_expsyms_cmds_GCJ=
15656   export_dynamic_flag_spec_GCJ=
15657   whole_archive_flag_spec_GCJ=
15658   thread_safe_flag_spec_GCJ=
15659   hardcode_libdir_flag_spec_GCJ=
15660   hardcode_libdir_flag_spec_ld_GCJ=
15661   hardcode_libdir_separator_GCJ=
15662   hardcode_direct_GCJ=no
15663   hardcode_minus_L_GCJ=no
15664   hardcode_shlibpath_var_GCJ=unsupported
15665   link_all_deplibs_GCJ=unknown
15666   hardcode_automatic_GCJ=no
15667   module_cmds_GCJ=
15668   module_expsym_cmds_GCJ=
15669   always_export_symbols_GCJ=no
15670   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15671   # include_expsyms should be a list of space-separated symbols to be *always*
15672   # included in the symbol list
15673   include_expsyms_GCJ=
15674   # exclude_expsyms can be an extended regexp of symbols to exclude
15675   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15676   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15677   # as well as any symbol that contains `d'.
15678   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15679   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15680   # platforms (ab)use it in PIC code, but their linkers get confused if
15681   # the symbol is explicitly referenced.  Since portable code cannot
15682   # rely on this symbol name, it's probably fine to never include it in
15683   # preloaded symbol tables.
15684   extract_expsyms_cmds=
15685
15686   case $host_os in
15687   cygwin* | mingw* | pw32*)
15688     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15689     # When not using gcc, we currently assume that we are using
15690     # Microsoft Visual C++.
15691     if test "$GCC" != yes; then
15692       with_gnu_ld=no
15693     fi
15694     ;;
15695   openbsd*)
15696     with_gnu_ld=no
15697     ;;
15698   esac
15699
15700   ld_shlibs_GCJ=yes
15701   if test "$with_gnu_ld" = yes; then
15702     # If archive_cmds runs LD, not CC, wlarc should be empty
15703     wlarc='${wl}'
15704
15705     # See if GNU ld supports shared libraries.
15706     case $host_os in
15707     aix3* | aix4* | aix5*)
15708       # On AIX/PPC, the GNU linker is very broken
15709       if test "$host_cpu" != ia64; then
15710         ld_shlibs_GCJ=no
15711         cat <<EOF 1>&2
15712
15713 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15714 *** to be unable to reliably create shared libraries on AIX.
15715 *** Therefore, libtool is disabling shared libraries support.  If you
15716 *** really care for shared libraries, you may want to modify your PATH
15717 *** so that a non-GNU linker is found, and then restart.
15718
15719 EOF
15720       fi
15721       ;;
15722
15723     amigaos*)
15724       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15725       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15726       hardcode_minus_L_GCJ=yes
15727
15728       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15729       # that the semantics of dynamic libraries on AmigaOS, at least up
15730       # to version 4, is to share data among multiple programs linked
15731       # with the same dynamic library.  Since this doesn't match the
15732       # behavior of shared libraries on other platforms, we can't use
15733       # them.
15734       ld_shlibs_GCJ=no
15735       ;;
15736
15737     beos*)
15738       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15739         allow_undefined_flag_GCJ=unsupported
15740         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15741         # support --undefined.  This deserves some investigation.  FIXME
15742         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15743       else
15744         ld_shlibs_GCJ=no
15745       fi
15746       ;;
15747
15748     cygwin* | mingw* | pw32*)
15749       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15750       # as there is no search path for DLLs.
15751       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15752       allow_undefined_flag_GCJ=unsupported
15753       always_export_symbols_GCJ=no
15754       enable_shared_with_static_runtimes_GCJ=yes
15755       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15756
15757       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15758         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15759         # If the export-symbols file already is a .def file (1st line
15760         # is EXPORTS), use it as is; otherwise, prepend...
15761         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15762           cp $export_symbols $output_objdir/$soname.def;
15763         else
15764           echo EXPORTS > $output_objdir/$soname.def;
15765           cat $export_symbols >> $output_objdir/$soname.def;
15766         fi~
15767         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15768       else
15769         ld_shlibs=no
15770       fi
15771       ;;
15772
15773     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15774       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15775         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15776         wlarc=
15777       else
15778         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15779         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15780       fi
15781       ;;
15782
15783     solaris* | sysv5*)
15784       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15785         ld_shlibs_GCJ=no
15786         cat <<EOF 1>&2
15787
15788 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15789 *** create shared libraries on Solaris systems.  Therefore, libtool
15790 *** is disabling shared libraries support.  We urge you to upgrade GNU
15791 *** binutils to release 2.9.1 or newer.  Another option is to modify
15792 *** your PATH or compiler configuration so that the native linker is
15793 *** used, and then restart.
15794
15795 EOF
15796       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15797         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15798         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15799       else
15800         ld_shlibs_GCJ=no
15801       fi
15802       ;;
15803
15804     sunos4*)
15805       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15806       wlarc=
15807       hardcode_direct_GCJ=yes
15808       hardcode_shlibpath_var_GCJ=no
15809       ;;
15810
15811   linux*)
15812     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15813         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15814         archive_cmds_GCJ="$tmp_archive_cmds"
15815       supports_anon_versioning=no
15816       case `$LD -v 2>/dev/null` in
15817         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15818         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15819         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15820         *\ 2.11.*) ;; # other 2.11 versions
15821         *) supports_anon_versioning=yes ;;
15822       esac
15823       if test $supports_anon_versioning = yes; then
15824         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15825 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15826 $echo "local: *; };" >> $output_objdir/$libname.ver~
15827         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15828       else
15829         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15830       fi
15831       link_all_deplibs_GCJ=no
15832     else
15833       ld_shlibs_GCJ=no
15834     fi
15835     ;;
15836
15837     *)
15838       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15839         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15840         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15841       else
15842         ld_shlibs_GCJ=no
15843       fi
15844       ;;
15845     esac
15846
15847     if test "$ld_shlibs_GCJ" = yes; then
15848       runpath_var=LD_RUN_PATH
15849       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15850       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15851       # ancient GNU ld didn't support --whole-archive et. al.
15852       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15853         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15854       else
15855         whole_archive_flag_spec_GCJ=
15856       fi
15857     fi
15858   else
15859     # PORTME fill in a description of your system's linker (not GNU ld)
15860     case $host_os in
15861     aix3*)
15862       allow_undefined_flag_GCJ=unsupported
15863       always_export_symbols_GCJ=yes
15864       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15865       # Note: this linker hardcodes the directories in LIBPATH if there
15866       # are no directories specified by -L.
15867       hardcode_minus_L_GCJ=yes
15868       if test "$GCC" = yes && test -z "$link_static_flag"; then
15869         # Neither direct hardcoding nor static linking is supported with a
15870         # broken collect2.
15871         hardcode_direct_GCJ=unsupported
15872       fi
15873       ;;
15874
15875     aix4* | aix5*)
15876       if test "$host_cpu" = ia64; then
15877         # On IA64, the linker does run time linking by default, so we don't
15878         # have to do anything special.
15879         aix_use_runtimelinking=no
15880         exp_sym_flag='-Bexport'
15881         no_entry_flag=""
15882       else
15883         # If we're using GNU nm, then we don't want the "-C" option.
15884         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15885         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15886           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15887         else
15888           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15889         fi
15890         aix_use_runtimelinking=no
15891
15892         # Test if we are trying to use run time linking or normal
15893         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15894         # need to do runtime linking.
15895         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15896           for ld_flag in $LDFLAGS; do
15897           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15898             aix_use_runtimelinking=yes
15899             break
15900           fi
15901           done
15902         esac
15903
15904         exp_sym_flag='-bexport'
15905         no_entry_flag='-bnoentry'
15906       fi
15907
15908       # When large executables or shared objects are built, AIX ld can
15909       # have problems creating the table of contents.  If linking a library
15910       # or program results in "error TOC overflow" add -mminimal-toc to
15911       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15912       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15913
15914       archive_cmds_GCJ=''
15915       hardcode_direct_GCJ=yes
15916       hardcode_libdir_separator_GCJ=':'
15917       link_all_deplibs_GCJ=yes
15918
15919       if test "$GCC" = yes; then
15920         case $host_os in aix4.012|aix4.012.*)
15921         # We only want to do this on AIX 4.2 and lower, the check
15922         # below for broken collect2 doesn't work under 4.3+
15923           collect2name=`${CC} -print-prog-name=collect2`
15924           if test -f "$collect2name" && \
15925            strings "$collect2name" | grep resolve_lib_name >/dev/null
15926           then
15927           # We have reworked collect2
15928           hardcode_direct_GCJ=yes
15929           else
15930           # We have old collect2
15931           hardcode_direct_GCJ=unsupported
15932           # It fails to find uninstalled libraries when the uninstalled
15933           # path is not listed in the libpath.  Setting hardcode_minus_L
15934           # to unsupported forces relinking
15935           hardcode_minus_L_GCJ=yes
15936           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15937           hardcode_libdir_separator_GCJ=
15938           fi
15939         esac
15940         shared_flag='-shared'
15941       else
15942         # not using gcc
15943         if test "$host_cpu" = ia64; then
15944         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15945         # chokes on -Wl,-G. The following line is correct:
15946           shared_flag='-G'
15947         else
15948         if test "$aix_use_runtimelinking" = yes; then
15949             shared_flag='${wl}-G'
15950           else
15951             shared_flag='${wl}-bM:SRE'
15952         fi
15953         fi
15954       fi
15955
15956       # It seems that -bexpall does not export symbols beginning with
15957       # underscore (_), so it is better to generate a list of symbols to export.
15958       always_export_symbols_GCJ=yes
15959       if test "$aix_use_runtimelinking" = yes; then
15960         # Warning - without using the other runtime loading flags (-brtl),
15961         # -berok will link without error, but may produce a broken library.
15962         allow_undefined_flag_GCJ='-berok'
15963        # Determine the default libpath from the value encoded in an empty executable.
15964        cat >conftest.$ac_ext <<_ACEOF
15965 #line $LINENO "configure"
15966 /* confdefs.h.  */
15967 _ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h.  */
15971
15972 int
15973 main ()
15974 {
15975
15976   ;
15977   return 0;
15978 }
15979 _ACEOF
15980 rm -f conftest.$ac_objext conftest$ac_exeext
15981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15982   (eval $ac_link) 2>&5
15983   ac_status=$?
15984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985   (exit $ac_status); } &&
15986          { ac_try='test -s conftest$ac_exeext'
15987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988   (eval $ac_try) 2>&5
15989   ac_status=$?
15990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991   (exit $ac_status); }; }; then
15992
15993 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15994 }'`
15995 # Check for a 64-bit object if we didn't find anything.
15996 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15997 }'`; fi
15998 else
15999   echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16001
16002 fi
16003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16004 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16005
16006        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16007         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16008        else
16009         if test "$host_cpu" = ia64; then
16010           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16011           allow_undefined_flag_GCJ="-z nodefs"
16012           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16013         else
16014          # Determine the default libpath from the value encoded in an empty executable.
16015          cat >conftest.$ac_ext <<_ACEOF
16016 #line $LINENO "configure"
16017 /* confdefs.h.  */
16018 _ACEOF
16019 cat confdefs.h >>conftest.$ac_ext
16020 cat >>conftest.$ac_ext <<_ACEOF
16021 /* end confdefs.h.  */
16022
16023 int
16024 main ()
16025 {
16026
16027   ;
16028   return 0;
16029 }
16030 _ACEOF
16031 rm -f conftest.$ac_objext conftest$ac_exeext
16032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16033   (eval $ac_link) 2>&5
16034   ac_status=$?
16035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036   (exit $ac_status); } &&
16037          { ac_try='test -s conftest$ac_exeext'
16038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039   (eval $ac_try) 2>&5
16040   ac_status=$?
16041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042   (exit $ac_status); }; }; then
16043
16044 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16045 }'`
16046 # Check for a 64-bit object if we didn't find anything.
16047 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16048 }'`; fi
16049 else
16050   echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16052
16053 fi
16054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16055 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16056
16057          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16058           # Warning - without using the other run time loading flags,
16059           # -berok will link without error, but may produce a broken library.
16060           no_undefined_flag_GCJ=' ${wl}-bernotok'
16061           allow_undefined_flag_GCJ=' ${wl}-berok'
16062           # -bexpall does not export symbols beginning with underscore (_)
16063           always_export_symbols_GCJ=yes
16064           # Exported symbols can be pulled into shared objects from archives
16065           whole_archive_flag_spec_GCJ=' '
16066           archive_cmds_need_lc_GCJ=yes
16067           # This is similar to how AIX traditionally builds it's shared libraries.
16068           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16069         fi
16070       fi
16071       ;;
16072
16073     amigaos*)
16074       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16075       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16076       hardcode_minus_L_GCJ=yes
16077       # see comment about different semantics on the GNU ld section
16078       ld_shlibs_GCJ=no
16079       ;;
16080
16081     bsdi4*)
16082       export_dynamic_flag_spec_GCJ=-rdynamic
16083       ;;
16084
16085     cygwin* | mingw* | pw32*)
16086       # When not using gcc, we currently assume that we are using
16087       # Microsoft Visual C++.
16088       # hardcode_libdir_flag_spec is actually meaningless, as there is
16089       # no search path for DLLs.
16090       hardcode_libdir_flag_spec_GCJ=' '
16091       allow_undefined_flag_GCJ=unsupported
16092       # Tell ltmain to make .lib files, not .a files.
16093       libext=lib
16094       # Tell ltmain to make .dll files, not .so files.
16095       shrext_cmds=".dll"
16096       # FIXME: Setting linknames here is a bad hack.
16097       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16098       # The linker will automatically build a .lib file if we build a DLL.
16099       old_archive_From_new_cmds_GCJ='true'
16100       # FIXME: Should let the user specify the lib program.
16101       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16102       fix_srcfile_path='`cygpath -w "$srcfile"`'
16103       enable_shared_with_static_runtimes_GCJ=yes
16104       ;;
16105
16106     darwin* | rhapsody*)
16107     if test "$GXX" = yes ; then
16108       archive_cmds_need_lc_GCJ=no
16109       case "$host_os" in
16110       rhapsody* | darwin1.[012])
16111         allow_undefined_flag_GCJ='-undefined suppress'
16112         ;;
16113       *) # Darwin 1.3 on
16114       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16115         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16116       else
16117         case ${MACOSX_DEPLOYMENT_TARGET} in
16118           10.[012])
16119             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16120             ;;
16121           10.*)
16122             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16123             ;;
16124         esac
16125       fi
16126         ;;
16127       esac
16128         lt_int_apple_cc_single_mod=no
16129         output_verbose_link_cmd='echo'
16130         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16131           lt_int_apple_cc_single_mod=yes
16132         fi
16133         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16134           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16135         else
16136         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16137       fi
16138       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16139       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16140         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16141           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16142         else
16143           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16144         fi
16145           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16146       hardcode_direct_GCJ=no
16147       hardcode_automatic_GCJ=yes
16148       hardcode_shlibpath_var_GCJ=unsupported
16149       whole_archive_flag_spec_GCJ='-all_load $convenience'
16150       link_all_deplibs_GCJ=yes
16151     else
16152       ld_shlibs_GCJ=no
16153     fi
16154       ;;
16155
16156     dgux*)
16157       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16158       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16159       hardcode_shlibpath_var_GCJ=no
16160       ;;
16161
16162     freebsd1*)
16163       ld_shlibs_GCJ=no
16164       ;;
16165
16166     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16167     # support.  Future versions do this automatically, but an explicit c++rt0.o
16168     # does not break anything, and helps significantly (at the cost of a little
16169     # extra space).
16170     freebsd2.2*)
16171       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16172       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16173       hardcode_direct_GCJ=yes
16174       hardcode_shlibpath_var_GCJ=no
16175       ;;
16176
16177     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16178     freebsd2*)
16179       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16180       hardcode_direct_GCJ=yes
16181       hardcode_minus_L_GCJ=yes
16182       hardcode_shlibpath_var_GCJ=no
16183       ;;
16184
16185     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16186     freebsd* | kfreebsd*-gnu)
16187       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16188       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16189       hardcode_direct_GCJ=yes
16190       hardcode_shlibpath_var_GCJ=no
16191       ;;
16192
16193     hpux9*)
16194       if test "$GCC" = yes; then
16195         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16196       else
16197         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16198       fi
16199       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16200       hardcode_libdir_separator_GCJ=:
16201       hardcode_direct_GCJ=yes
16202
16203       # hardcode_minus_L: Not really in the search PATH,
16204       # but as the default location of the library.
16205       hardcode_minus_L_GCJ=yes
16206       export_dynamic_flag_spec_GCJ='${wl}-E'
16207       ;;
16208
16209     hpux10* | hpux11*)
16210       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16211         case "$host_cpu" in
16212         hppa*64*|ia64*)
16213           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16214           ;;
16215         *)
16216           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16217           ;;
16218         esac
16219       else
16220         case "$host_cpu" in
16221         hppa*64*|ia64*)
16222           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16223           ;;
16224         *)
16225           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16226           ;;
16227         esac
16228       fi
16229       if test "$with_gnu_ld" = no; then
16230         case "$host_cpu" in
16231         hppa*64*)
16232           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16233           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16234           hardcode_libdir_separator_GCJ=:
16235           hardcode_direct_GCJ=no
16236           hardcode_shlibpath_var_GCJ=no
16237           ;;
16238         ia64*)
16239           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16240           hardcode_direct_GCJ=no
16241           hardcode_shlibpath_var_GCJ=no
16242
16243           # hardcode_minus_L: Not really in the search PATH,
16244           # but as the default location of the library.
16245           hardcode_minus_L_GCJ=yes
16246           ;;
16247         *)
16248           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16249           hardcode_libdir_separator_GCJ=:
16250           hardcode_direct_GCJ=yes
16251           export_dynamic_flag_spec_GCJ='${wl}-E'
16252
16253           # hardcode_minus_L: Not really in the search PATH,
16254           # but as the default location of the library.
16255           hardcode_minus_L_GCJ=yes
16256           ;;
16257         esac
16258       fi
16259       ;;
16260
16261     irix5* | irix6* | nonstopux*)
16262       if test "$GCC" = yes; then
16263         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16264       else
16265         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16266         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16267       fi
16268       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16269       hardcode_libdir_separator_GCJ=:
16270       link_all_deplibs_GCJ=yes
16271       ;;
16272
16273     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16274       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16275         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16276       else
16277         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16278       fi
16279       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16280       hardcode_direct_GCJ=yes
16281       hardcode_shlibpath_var_GCJ=no
16282       ;;
16283
16284     newsos6)
16285       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16286       hardcode_direct_GCJ=yes
16287       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16288       hardcode_libdir_separator_GCJ=:
16289       hardcode_shlibpath_var_GCJ=no
16290       ;;
16291
16292     openbsd*)
16293       hardcode_direct_GCJ=yes
16294       hardcode_shlibpath_var_GCJ=no
16295       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16296         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16297         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16298         export_dynamic_flag_spec_GCJ='${wl}-E'
16299       else
16300        case $host_os in
16301          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16302            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16303            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16304            ;;
16305          *)
16306            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16307            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16308            ;;
16309        esac
16310       fi
16311       ;;
16312
16313     os2*)
16314       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16315       hardcode_minus_L_GCJ=yes
16316       allow_undefined_flag_GCJ=unsupported
16317       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16318       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16319       ;;
16320
16321     osf3*)
16322       if test "$GCC" = yes; then
16323         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16324         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16325       else
16326         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16327         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16328       fi
16329       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16330       hardcode_libdir_separator_GCJ=:
16331       ;;
16332
16333     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16334       if test "$GCC" = yes; then
16335         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16336         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16337         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16338       else
16339         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16340         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16341         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16342         $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'
16343
16344         # Both c and cxx compiler support -rpath directly
16345         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16346       fi
16347       hardcode_libdir_separator_GCJ=:
16348       ;;
16349
16350     sco3.2v5*)
16351       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16352       hardcode_shlibpath_var_GCJ=no
16353       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16354       runpath_var=LD_RUN_PATH
16355       hardcode_runpath_var=yes
16356       ;;
16357
16358     solaris*)
16359       no_undefined_flag_GCJ=' -z text'
16360       if test "$GCC" = yes; then
16361         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16362         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16363           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16364       else
16365         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16366         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16367         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16368       fi
16369       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16370       hardcode_shlibpath_var_GCJ=no
16371       case $host_os in
16372       solaris2.[0-5] | solaris2.[0-5].*) ;;
16373       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16374         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16375       esac
16376       link_all_deplibs_GCJ=yes
16377       ;;
16378
16379     sunos4*)
16380       if test "x$host_vendor" = xsequent; then
16381         # Use $CC to link under sequent, because it throws in some extra .o
16382         # files that make .init and .fini sections work.
16383         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16384       else
16385         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16386       fi
16387       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16388       hardcode_direct_GCJ=yes
16389       hardcode_minus_L_GCJ=yes
16390       hardcode_shlibpath_var_GCJ=no
16391       ;;
16392
16393     sysv4)
16394       case $host_vendor in
16395         sni)
16396           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16397           hardcode_direct_GCJ=yes # is this really true???
16398         ;;
16399         siemens)
16400           ## LD is ld it makes a PLAMLIB
16401           ## CC just makes a GrossModule.
16402           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16403           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16404           hardcode_direct_GCJ=no
16405         ;;
16406         motorola)
16407           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16408           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16409         ;;
16410       esac
16411       runpath_var='LD_RUN_PATH'
16412       hardcode_shlibpath_var_GCJ=no
16413       ;;
16414
16415     sysv4.3*)
16416       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16417       hardcode_shlibpath_var_GCJ=no
16418       export_dynamic_flag_spec_GCJ='-Bexport'
16419       ;;
16420
16421     sysv4*MP*)
16422       if test -d /usr/nec; then
16423         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16424         hardcode_shlibpath_var_GCJ=no
16425         runpath_var=LD_RUN_PATH
16426         hardcode_runpath_var=yes
16427         ld_shlibs_GCJ=yes
16428       fi
16429       ;;
16430
16431     sysv4.2uw2*)
16432       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16433       hardcode_direct_GCJ=yes
16434       hardcode_minus_L_GCJ=no
16435       hardcode_shlibpath_var_GCJ=no
16436       hardcode_runpath_var=yes
16437       runpath_var=LD_RUN_PATH
16438       ;;
16439
16440    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16441       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16442       if test "$GCC" = yes; then
16443         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16444       else
16445         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16446       fi
16447       runpath_var='LD_RUN_PATH'
16448       hardcode_shlibpath_var_GCJ=no
16449       ;;
16450
16451     sysv5*)
16452       no_undefined_flag_GCJ=' -z text'
16453       # $CC -shared without GNU ld will not create a library from C++
16454       # object files and a static libstdc++, better avoid it by now
16455       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16456       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16457                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16458       hardcode_libdir_flag_spec_GCJ=
16459       hardcode_shlibpath_var_GCJ=no
16460       runpath_var='LD_RUN_PATH'
16461       ;;
16462
16463     uts4*)
16464       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16465       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16466       hardcode_shlibpath_var_GCJ=no
16467       ;;
16468
16469     *)
16470       ld_shlibs_GCJ=no
16471       ;;
16472     esac
16473   fi
16474
16475 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16476 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16477 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16478
16479 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16480 if test "$GCC" = yes; then
16481   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16482 fi
16483
16484 #
16485 # Do we need to explicitly link libc?
16486 #
16487 case "x$archive_cmds_need_lc_GCJ" in
16488 x|xyes)
16489   # Assume -lc should be added
16490   archive_cmds_need_lc_GCJ=yes
16491
16492   if test "$enable_shared" = yes && test "$GCC" = yes; then
16493     case $archive_cmds_GCJ in
16494     *'~'*)
16495       # FIXME: we may have to deal with multi-command sequences.
16496       ;;
16497     '$CC '*)
16498       # Test whether the compiler implicitly links with -lc since on some
16499       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16500       # to ld, don't add -lc before -lgcc.
16501       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16502 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16503       $rm conftest*
16504       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16505
16506       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16507   (eval $ac_compile) 2>&5
16508   ac_status=$?
16509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510   (exit $ac_status); } 2>conftest.err; then
16511         soname=conftest
16512         lib=conftest
16513         libobjs=conftest.$ac_objext
16514         deplibs=
16515         wl=$lt_prog_compiler_wl_GCJ
16516         compiler_flags=-v
16517         linker_flags=-v
16518         verstring=
16519         output_objdir=.
16520         libname=conftest
16521         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16522         allow_undefined_flag_GCJ=
16523         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16524   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16525   ac_status=$?
16526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527   (exit $ac_status); }
16528         then
16529           archive_cmds_need_lc_GCJ=no
16530         else
16531           archive_cmds_need_lc_GCJ=yes
16532         fi
16533         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16534       else
16535         cat conftest.err 1>&5
16536       fi
16537       $rm conftest*
16538       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16539 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16540       ;;
16541     esac
16542   fi
16543   ;;
16544 esac
16545
16546 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16547 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16548 library_names_spec=
16549 libname_spec='lib$name'
16550 soname_spec=
16551 shrext_cmds=".so"
16552 postinstall_cmds=
16553 postuninstall_cmds=
16554 finish_cmds=
16555 finish_eval=
16556 shlibpath_var=
16557 shlibpath_overrides_runpath=unknown
16558 version_type=none
16559 dynamic_linker="$host_os ld.so"
16560 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16561 if test "$GCC" = yes; then
16562   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16563   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16564     # if the path contains ";" then we assume it to be the separator
16565     # otherwise default to the standard path separator (i.e. ":") - it is
16566     # assumed that no part of a normal pathname contains ";" but that should
16567     # okay in the real world where ";" in dirpaths is itself problematic.
16568     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16569   else
16570     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16571   fi
16572 else
16573   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16574 fi
16575 need_lib_prefix=unknown
16576 hardcode_into_libs=no
16577
16578 # when you set need_version to no, make sure it does not cause -set_version
16579 # flags to be left without arguments
16580 need_version=unknown
16581
16582 case $host_os in
16583 aix3*)
16584   version_type=linux
16585   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16586   shlibpath_var=LIBPATH
16587
16588   # AIX 3 has no versioning support, so we append a major version to the name.
16589   soname_spec='${libname}${release}${shared_ext}$major'
16590   ;;
16591
16592 aix4* | aix5*)
16593   version_type=linux
16594   need_lib_prefix=no
16595   need_version=no
16596   hardcode_into_libs=yes
16597   if test "$host_cpu" = ia64; then
16598     # AIX 5 supports IA64
16599     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16600     shlibpath_var=LD_LIBRARY_PATH
16601   else
16602     # With GCC up to 2.95.x, collect2 would create an import file
16603     # for dependence libraries.  The import file would start with
16604     # the line `#! .'.  This would cause the generated library to
16605     # depend on `.', always an invalid library.  This was fixed in
16606     # development snapshots of GCC prior to 3.0.
16607     case $host_os in
16608       aix4 | aix4.[01] | aix4.[01].*)
16609       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16610            echo ' yes '
16611            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16612         :
16613       else
16614         can_build_shared=no
16615       fi
16616       ;;
16617     esac
16618     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16619     # soname into executable. Probably we can add versioning support to
16620     # collect2, so additional links can be useful in future.
16621     if test "$aix_use_runtimelinking" = yes; then
16622       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16623       # instead of lib<name>.a to let people know that these are not
16624       # typical AIX shared libraries.
16625       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16626     else
16627       # We preserve .a as extension for shared libraries through AIX4.2
16628       # and later when we are not doing run time linking.
16629       library_names_spec='${libname}${release}.a $libname.a'
16630       soname_spec='${libname}${release}${shared_ext}$major'
16631     fi
16632     shlibpath_var=LIBPATH
16633   fi
16634   ;;
16635
16636 amigaos*)
16637   library_names_spec='$libname.ixlibrary $libname.a'
16638   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16639   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'
16640   ;;
16641
16642 beos*)
16643   library_names_spec='${libname}${shared_ext}'
16644   dynamic_linker="$host_os ld.so"
16645   shlibpath_var=LIBRARY_PATH
16646   ;;
16647
16648 bsdi4*)
16649   version_type=linux
16650   need_version=no
16651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16652   soname_spec='${libname}${release}${shared_ext}$major'
16653   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16654   shlibpath_var=LD_LIBRARY_PATH
16655   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16656   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16657   # the default ld.so.conf also contains /usr/contrib/lib and
16658   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16659   # libtool to hard-code these into programs
16660   ;;
16661
16662 cygwin* | mingw* | pw32*)
16663   version_type=windows
16664   shrext_cmds=".dll"
16665   need_version=no
16666   need_lib_prefix=no
16667
16668   case $GCC,$host_os in
16669   yes,cygwin* | yes,mingw* | yes,pw32*)
16670     library_names_spec='$libname.dll.a'
16671     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16672     postinstall_cmds='base_file=`basename \${file}`~
16673       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16674       dldir=$destdir/`dirname \$dlpath`~
16675       test -d \$dldir || mkdir -p \$dldir~
16676       $install_prog $dir/$dlname \$dldir/$dlname'
16677     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16678       dlpath=$dir/\$dldll~
16679        $rm \$dlpath'
16680     shlibpath_overrides_runpath=yes
16681
16682     case $host_os in
16683     cygwin*)
16684       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16685       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16686       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16687       ;;
16688     mingw*)
16689       # MinGW DLLs use traditional 'lib' prefix
16690       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16691       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16692       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16693         # It is most probably a Windows format PATH printed by
16694         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16695         # path with ; separators, and with drive letters. We can handle the
16696         # drive letters (cygwin fileutils understands them), so leave them,
16697         # especially as we might pass files found there to a mingw objdump,
16698         # which wouldn't understand a cygwinified path. Ahh.
16699         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16700       else
16701         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16702       fi
16703       ;;
16704     pw32*)
16705       # pw32 DLLs use 'pw' prefix rather than 'lib'
16706       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16707       ;;
16708     esac
16709     ;;
16710
16711   *)
16712     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16713     ;;
16714   esac
16715   dynamic_linker='Win32 ld.exe'
16716   # FIXME: first we should search . and the directory the executable is in
16717   shlibpath_var=PATH
16718   ;;
16719
16720 darwin* | rhapsody*)
16721   dynamic_linker="$host_os dyld"
16722   version_type=darwin
16723   need_lib_prefix=no
16724   need_version=no
16725   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16726   soname_spec='${libname}${release}${major}$shared_ext'
16727   shlibpath_overrides_runpath=yes
16728   shlibpath_var=DYLD_LIBRARY_PATH
16729   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16730   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16731   if test "$GCC" = yes; then
16732     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16733   else
16734     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16735   fi
16736   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16737   ;;
16738
16739 dgux*)
16740   version_type=linux
16741   need_lib_prefix=no
16742   need_version=no
16743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16744   soname_spec='${libname}${release}${shared_ext}$major'
16745   shlibpath_var=LD_LIBRARY_PATH
16746   ;;
16747
16748 freebsd1*)
16749   dynamic_linker=no
16750   ;;
16751
16752 kfreebsd*-gnu)
16753   version_type=linux
16754   need_lib_prefix=no
16755   need_version=no
16756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16757   soname_spec='${libname}${release}${shared_ext}$major'
16758   shlibpath_var=LD_LIBRARY_PATH
16759   shlibpath_overrides_runpath=no
16760   hardcode_into_libs=yes
16761   dynamic_linker='GNU ld.so'
16762   ;;
16763
16764 freebsd*)
16765   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16766   version_type=freebsd-$objformat
16767   case $version_type in
16768     freebsd-elf*)
16769       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16770       need_version=no
16771       need_lib_prefix=no
16772       ;;
16773     freebsd-*)
16774       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16775       need_version=yes
16776       ;;
16777   esac
16778   shlibpath_var=LD_LIBRARY_PATH
16779   case $host_os in
16780   freebsd2*)
16781     shlibpath_overrides_runpath=yes
16782     ;;
16783   freebsd3.01* | freebsdelf3.01*)
16784     shlibpath_overrides_runpath=yes
16785     hardcode_into_libs=yes
16786     ;;
16787   *) # from 3.2 on
16788     shlibpath_overrides_runpath=no
16789     hardcode_into_libs=yes
16790     ;;
16791   esac
16792   ;;
16793
16794 gnu*)
16795   version_type=linux
16796   need_lib_prefix=no
16797   need_version=no
16798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16799   soname_spec='${libname}${release}${shared_ext}$major'
16800   shlibpath_var=LD_LIBRARY_PATH
16801   hardcode_into_libs=yes
16802   ;;
16803
16804 hpux9* | hpux10* | hpux11*)
16805   # Give a soname corresponding to the major version so that dld.sl refuses to
16806   # link against other versions.
16807   version_type=sunos
16808   need_lib_prefix=no
16809   need_version=no
16810   case "$host_cpu" in
16811   ia64*)
16812     shrext_cmds='.so'
16813     hardcode_into_libs=yes
16814     dynamic_linker="$host_os dld.so"
16815     shlibpath_var=LD_LIBRARY_PATH
16816     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16818     soname_spec='${libname}${release}${shared_ext}$major'
16819     if test "X$HPUX_IA64_MODE" = X32; then
16820       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16821     else
16822       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16823     fi
16824     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16825     ;;
16826    hppa*64*)
16827      shrext_cmds='.sl'
16828      hardcode_into_libs=yes
16829      dynamic_linker="$host_os dld.sl"
16830      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16831      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16832      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833      soname_spec='${libname}${release}${shared_ext}$major'
16834      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16835      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16836      ;;
16837    *)
16838     shrext_cmds='.sl'
16839     dynamic_linker="$host_os dld.sl"
16840     shlibpath_var=SHLIB_PATH
16841     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16842     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16843     soname_spec='${libname}${release}${shared_ext}$major'
16844     ;;
16845   esac
16846   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16847   postinstall_cmds='chmod 555 $lib'
16848   ;;
16849
16850 irix5* | irix6* | nonstopux*)
16851   case $host_os in
16852     nonstopux*) version_type=nonstopux ;;
16853     *)
16854         if test "$lt_cv_prog_gnu_ld" = yes; then
16855                 version_type=linux
16856         else
16857                 version_type=irix
16858         fi ;;
16859   esac
16860   need_lib_prefix=no
16861   need_version=no
16862   soname_spec='${libname}${release}${shared_ext}$major'
16863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16864   case $host_os in
16865   irix5* | nonstopux*)
16866     libsuff= shlibsuff=
16867     ;;
16868   *)
16869     case $LD in # libtool.m4 will add one of these switches to LD
16870     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16871       libsuff= shlibsuff= libmagic=32-bit;;
16872     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16873       libsuff=32 shlibsuff=N32 libmagic=N32;;
16874     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16875       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16876     *) libsuff= shlibsuff= libmagic=never-match;;
16877     esac
16878     ;;
16879   esac
16880   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16881   shlibpath_overrides_runpath=no
16882   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16883   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16884   hardcode_into_libs=yes
16885   ;;
16886
16887 # No shared lib support for Linux oldld, aout, or coff.
16888 linux*oldld* | linux*aout* | linux*coff*)
16889   dynamic_linker=no
16890   ;;
16891
16892 # This must be Linux ELF.
16893 linux*)
16894   version_type=linux
16895   need_lib_prefix=no
16896   need_version=no
16897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16898   soname_spec='${libname}${release}${shared_ext}$major'
16899   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16900   shlibpath_var=LD_LIBRARY_PATH
16901   shlibpath_overrides_runpath=no
16902   # This implies no fast_install, which is unacceptable.
16903   # Some rework will be needed to allow for fast_install
16904   # before this can be enabled.
16905   hardcode_into_libs=yes
16906
16907   # Append ld.so.conf contents to the search path
16908   if test -f /etc/ld.so.conf; then
16909     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16910     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16911   fi
16912
16913   # We used to test for /lib/ld.so.1 and disable shared libraries on
16914   # powerpc, because MkLinux only supported shared libraries with the
16915   # GNU dynamic linker.  Since this was broken with cross compilers,
16916   # most powerpc-linux boxes support dynamic linking these days and
16917   # people can always --disable-shared, the test was removed, and we
16918   # assume the GNU/Linux dynamic linker is in use.
16919   dynamic_linker='GNU/Linux ld.so'
16920   ;;
16921
16922 netbsdelf*-gnu)
16923   version_type=linux
16924   need_lib_prefix=no
16925   need_version=no
16926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16927   soname_spec='${libname}${release}${shared_ext}$major'
16928   shlibpath_var=LD_LIBRARY_PATH
16929   shlibpath_overrides_runpath=no
16930   hardcode_into_libs=yes
16931   dynamic_linker='NetBSD ld.elf_so'
16932   ;;
16933
16934 knetbsd*-gnu)
16935   version_type=linux
16936   need_lib_prefix=no
16937   need_version=no
16938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16939   soname_spec='${libname}${release}${shared_ext}$major'
16940   shlibpath_var=LD_LIBRARY_PATH
16941   shlibpath_overrides_runpath=no
16942   hardcode_into_libs=yes
16943   dynamic_linker='GNU ld.so'
16944   ;;
16945
16946 netbsd*)
16947   version_type=sunos
16948   need_lib_prefix=no
16949   need_version=no
16950   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16952     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16953     dynamic_linker='NetBSD (a.out) ld.so'
16954   else
16955     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16956     soname_spec='${libname}${release}${shared_ext}$major'
16957     dynamic_linker='NetBSD ld.elf_so'
16958   fi
16959   shlibpath_var=LD_LIBRARY_PATH
16960   shlibpath_overrides_runpath=yes
16961   hardcode_into_libs=yes
16962   ;;
16963
16964 newsos6)
16965   version_type=linux
16966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16967   shlibpath_var=LD_LIBRARY_PATH
16968   shlibpath_overrides_runpath=yes
16969   ;;
16970
16971 nto-qnx*)
16972   version_type=linux
16973   need_lib_prefix=no
16974   need_version=no
16975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976   soname_spec='${libname}${release}${shared_ext}$major'
16977   shlibpath_var=LD_LIBRARY_PATH
16978   shlibpath_overrides_runpath=yes
16979   ;;
16980
16981 openbsd*)
16982   version_type=sunos
16983   need_lib_prefix=no
16984   need_version=yes
16985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16986   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16987   shlibpath_var=LD_LIBRARY_PATH
16988   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16989     case $host_os in
16990       openbsd2.[89] | openbsd2.[89].*)
16991         shlibpath_overrides_runpath=no
16992         ;;
16993       *)
16994         shlibpath_overrides_runpath=yes
16995         ;;
16996       esac
16997   else
16998     shlibpath_overrides_runpath=yes
16999   fi
17000   ;;
17001
17002 os2*)
17003   libname_spec='$name'
17004   shrext_cmds=".dll"
17005   need_lib_prefix=no
17006   library_names_spec='$libname${shared_ext} $libname.a'
17007   dynamic_linker='OS/2 ld.exe'
17008   shlibpath_var=LIBPATH
17009   ;;
17010
17011 osf3* | osf4* | osf5*)
17012   version_type=osf
17013   need_lib_prefix=no
17014   need_version=no
17015   soname_spec='${libname}${release}${shared_ext}$major'
17016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17017   shlibpath_var=LD_LIBRARY_PATH
17018   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17019   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17020   ;;
17021
17022 sco3.2v5*)
17023   version_type=osf
17024   soname_spec='${libname}${release}${shared_ext}$major'
17025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17026   shlibpath_var=LD_LIBRARY_PATH
17027   ;;
17028
17029 solaris*)
17030   version_type=linux
17031   need_lib_prefix=no
17032   need_version=no
17033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17034   soname_spec='${libname}${release}${shared_ext}$major'
17035   shlibpath_var=LD_LIBRARY_PATH
17036   shlibpath_overrides_runpath=yes
17037   hardcode_into_libs=yes
17038   # ldd complains unless libraries are executable
17039   postinstall_cmds='chmod +x $lib'
17040   ;;
17041
17042 sunos4*)
17043   version_type=sunos
17044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17045   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17046   shlibpath_var=LD_LIBRARY_PATH
17047   shlibpath_overrides_runpath=yes
17048   if test "$with_gnu_ld" = yes; then
17049     need_lib_prefix=no
17050   fi
17051   need_version=yes
17052   ;;
17053
17054 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17055   version_type=linux
17056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17057   soname_spec='${libname}${release}${shared_ext}$major'
17058   shlibpath_var=LD_LIBRARY_PATH
17059   case $host_vendor in
17060     sni)
17061       shlibpath_overrides_runpath=no
17062       need_lib_prefix=no
17063       export_dynamic_flag_spec='${wl}-Blargedynsym'
17064       runpath_var=LD_RUN_PATH
17065       ;;
17066     siemens)
17067       need_lib_prefix=no
17068       ;;
17069     motorola)
17070       need_lib_prefix=no
17071       need_version=no
17072       shlibpath_overrides_runpath=no
17073       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17074       ;;
17075   esac
17076   ;;
17077
17078 sysv4*MP*)
17079   if test -d /usr/nec ;then
17080     version_type=linux
17081     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17082     soname_spec='$libname${shared_ext}.$major'
17083     shlibpath_var=LD_LIBRARY_PATH
17084   fi
17085   ;;
17086
17087 uts4*)
17088   version_type=linux
17089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090   soname_spec='${libname}${release}${shared_ext}$major'
17091   shlibpath_var=LD_LIBRARY_PATH
17092   ;;
17093
17094 *)
17095   dynamic_linker=no
17096   ;;
17097 esac
17098 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17099 echo "${ECHO_T}$dynamic_linker" >&6
17100 test "$dynamic_linker" = no && can_build_shared=no
17101
17102 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17103 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17104 hardcode_action_GCJ=
17105 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17106    test -n "$runpath_var GCJ" || \
17107    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17108
17109   # We can hardcode non-existant directories.
17110   if test "$hardcode_direct_GCJ" != no &&
17111      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17112      # have to relink, otherwise we might link with an installed library
17113      # when we should be linking with a yet-to-be-installed one
17114      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17115      test "$hardcode_minus_L_GCJ" != no; then
17116     # Linking always hardcodes the temporary library directory.
17117     hardcode_action_GCJ=relink
17118   else
17119     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17120     hardcode_action_GCJ=immediate
17121   fi
17122 else
17123   # We cannot hardcode anything, or else we can only hardcode existing
17124   # directories.
17125   hardcode_action_GCJ=unsupported
17126 fi
17127 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17128 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17129
17130 if test "$hardcode_action_GCJ" = relink; then
17131   # Fast installation is not supported
17132   enable_fast_install=no
17133 elif test "$shlibpath_overrides_runpath" = yes ||
17134      test "$enable_shared" = no; then
17135   # Fast installation is not necessary
17136   enable_fast_install=needless
17137 fi
17138
17139 striplib=
17140 old_striplib=
17141 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17142 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17143 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17144   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17145   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17146   echo "$as_me:$LINENO: result: yes" >&5
17147 echo "${ECHO_T}yes" >&6
17148 else
17149 # FIXME - insert some real tests, host_os isn't really good enough
17150   case $host_os in
17151    darwin*)
17152        if test -n "$STRIP" ; then
17153          striplib="$STRIP -x"
17154          echo "$as_me:$LINENO: result: yes" >&5
17155 echo "${ECHO_T}yes" >&6
17156        else
17157   echo "$as_me:$LINENO: result: no" >&5
17158 echo "${ECHO_T}no" >&6
17159 fi
17160        ;;
17161    *)
17162   echo "$as_me:$LINENO: result: no" >&5
17163 echo "${ECHO_T}no" >&6
17164     ;;
17165   esac
17166 fi
17167
17168 if test "x$enable_dlopen" != xyes; then
17169   enable_dlopen=unknown
17170   enable_dlopen_self=unknown
17171   enable_dlopen_self_static=unknown
17172 else
17173   lt_cv_dlopen=no
17174   lt_cv_dlopen_libs=
17175
17176   case $host_os in
17177   beos*)
17178     lt_cv_dlopen="load_add_on"
17179     lt_cv_dlopen_libs=
17180     lt_cv_dlopen_self=yes
17181     ;;
17182
17183   mingw* | pw32*)
17184     lt_cv_dlopen="LoadLibrary"
17185     lt_cv_dlopen_libs=
17186    ;;
17187
17188   cygwin*)
17189     lt_cv_dlopen="dlopen"
17190     lt_cv_dlopen_libs=
17191    ;;
17192
17193   darwin*)
17194   # if libdl is installed we need to link against it
17195     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17196 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17197 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17198   echo $ECHO_N "(cached) $ECHO_C" >&6
17199 else
17200   ac_check_lib_save_LIBS=$LIBS
17201 LIBS="-ldl  $LIBS"
17202 cat >conftest.$ac_ext <<_ACEOF
17203 #line $LINENO "configure"
17204 /* confdefs.h.  */
17205 _ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h.  */
17209
17210 /* Override any gcc2 internal prototype to avoid an error.  */
17211 #ifdef __cplusplus
17212 extern "C"
17213 #endif
17214 /* We use char because int might match the return type of a gcc2
17215    builtin and then its argument prototype would still apply.  */
17216 char dlopen ();
17217 int
17218 main ()
17219 {
17220 dlopen ();
17221   ;
17222   return 0;
17223 }
17224 _ACEOF
17225 rm -f conftest.$ac_objext conftest$ac_exeext
17226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17227   (eval $ac_link) 2>&5
17228   ac_status=$?
17229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230   (exit $ac_status); } &&
17231          { ac_try='test -s conftest$ac_exeext'
17232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17233   (eval $ac_try) 2>&5
17234   ac_status=$?
17235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236   (exit $ac_status); }; }; then
17237   ac_cv_lib_dl_dlopen=yes
17238 else
17239   echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17241
17242 ac_cv_lib_dl_dlopen=no
17243 fi
17244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17245 LIBS=$ac_check_lib_save_LIBS
17246 fi
17247 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17248 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17249 if test $ac_cv_lib_dl_dlopen = yes; then
17250   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17251 else
17252
17253     lt_cv_dlopen="dyld"
17254     lt_cv_dlopen_libs=
17255     lt_cv_dlopen_self=yes
17256
17257 fi
17258
17259    ;;
17260
17261   *)
17262     echo "$as_me:$LINENO: checking for shl_load" >&5
17263 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17264 if test "${ac_cv_func_shl_load+set}" = set; then
17265   echo $ECHO_N "(cached) $ECHO_C" >&6
17266 else
17267   cat >conftest.$ac_ext <<_ACEOF
17268 #line $LINENO "configure"
17269 /* confdefs.h.  */
17270 _ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h.  */
17274 /* System header to define __stub macros and hopefully few prototypes,
17275     which can conflict with char shl_load (); below.
17276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17277     <limits.h> exists even on freestanding compilers.  */
17278 #ifdef __STDC__
17279 # include <limits.h>
17280 #else
17281 # include <assert.h>
17282 #endif
17283 /* Override any gcc2 internal prototype to avoid an error.  */
17284 #ifdef __cplusplus
17285 extern "C"
17286 {
17287 #endif
17288 /* We use char because int might match the return type of a gcc2
17289    builtin and then its argument prototype would still apply.  */
17290 char shl_load ();
17291 /* The GNU C library defines this for functions which it implements
17292     to always fail with ENOSYS.  Some functions are actually named
17293     something starting with __ and the normal name is an alias.  */
17294 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17295 choke me
17296 #else
17297 char (*f) () = shl_load;
17298 #endif
17299 #ifdef __cplusplus
17300 }
17301 #endif
17302
17303 int
17304 main ()
17305 {
17306 return f != shl_load;
17307   ;
17308   return 0;
17309 }
17310 _ACEOF
17311 rm -f conftest.$ac_objext conftest$ac_exeext
17312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17313   (eval $ac_link) 2>&5
17314   ac_status=$?
17315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316   (exit $ac_status); } &&
17317          { ac_try='test -s conftest$ac_exeext'
17318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17319   (eval $ac_try) 2>&5
17320   ac_status=$?
17321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322   (exit $ac_status); }; }; then
17323   ac_cv_func_shl_load=yes
17324 else
17325   echo "$as_me: failed program was:" >&5
17326 sed 's/^/| /' conftest.$ac_ext >&5
17327
17328 ac_cv_func_shl_load=no
17329 fi
17330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17331 fi
17332 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17333 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17334 if test $ac_cv_func_shl_load = yes; then
17335   lt_cv_dlopen="shl_load"
17336 else
17337   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17338 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17339 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17340   echo $ECHO_N "(cached) $ECHO_C" >&6
17341 else
17342   ac_check_lib_save_LIBS=$LIBS
17343 LIBS="-ldld  $LIBS"
17344 cat >conftest.$ac_ext <<_ACEOF
17345 #line $LINENO "configure"
17346 /* confdefs.h.  */
17347 _ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h.  */
17351
17352 /* Override any gcc2 internal prototype to avoid an error.  */
17353 #ifdef __cplusplus
17354 extern "C"
17355 #endif
17356 /* We use char because int might match the return type of a gcc2
17357    builtin and then its argument prototype would still apply.  */
17358 char shl_load ();
17359 int
17360 main ()
17361 {
17362 shl_load ();
17363   ;
17364   return 0;
17365 }
17366 _ACEOF
17367 rm -f conftest.$ac_objext conftest$ac_exeext
17368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17369   (eval $ac_link) 2>&5
17370   ac_status=$?
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); } &&
17373          { ac_try='test -s conftest$ac_exeext'
17374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375   (eval $ac_try) 2>&5
17376   ac_status=$?
17377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378   (exit $ac_status); }; }; then
17379   ac_cv_lib_dld_shl_load=yes
17380 else
17381   echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17383
17384 ac_cv_lib_dld_shl_load=no
17385 fi
17386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17387 LIBS=$ac_check_lib_save_LIBS
17388 fi
17389 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17390 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17391 if test $ac_cv_lib_dld_shl_load = yes; then
17392   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17393 else
17394   echo "$as_me:$LINENO: checking for dlopen" >&5
17395 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17396 if test "${ac_cv_func_dlopen+set}" = set; then
17397   echo $ECHO_N "(cached) $ECHO_C" >&6
17398 else
17399   cat >conftest.$ac_ext <<_ACEOF
17400 #line $LINENO "configure"
17401 /* confdefs.h.  */
17402 _ACEOF
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h.  */
17406 /* System header to define __stub macros and hopefully few prototypes,
17407     which can conflict with char dlopen (); below.
17408     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17409     <limits.h> exists even on freestanding compilers.  */
17410 #ifdef __STDC__
17411 # include <limits.h>
17412 #else
17413 # include <assert.h>
17414 #endif
17415 /* Override any gcc2 internal prototype to avoid an error.  */
17416 #ifdef __cplusplus
17417 extern "C"
17418 {
17419 #endif
17420 /* We use char because int might match the return type of a gcc2
17421    builtin and then its argument prototype would still apply.  */
17422 char dlopen ();
17423 /* The GNU C library defines this for functions which it implements
17424     to always fail with ENOSYS.  Some functions are actually named
17425     something starting with __ and the normal name is an alias.  */
17426 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17427 choke me
17428 #else
17429 char (*f) () = dlopen;
17430 #endif
17431 #ifdef __cplusplus
17432 }
17433 #endif
17434
17435 int
17436 main ()
17437 {
17438 return f != dlopen;
17439   ;
17440   return 0;
17441 }
17442 _ACEOF
17443 rm -f conftest.$ac_objext conftest$ac_exeext
17444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17445   (eval $ac_link) 2>&5
17446   ac_status=$?
17447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448   (exit $ac_status); } &&
17449          { ac_try='test -s conftest$ac_exeext'
17450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451   (eval $ac_try) 2>&5
17452   ac_status=$?
17453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454   (exit $ac_status); }; }; then
17455   ac_cv_func_dlopen=yes
17456 else
17457   echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17459
17460 ac_cv_func_dlopen=no
17461 fi
17462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17463 fi
17464 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17465 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17466 if test $ac_cv_func_dlopen = yes; then
17467   lt_cv_dlopen="dlopen"
17468 else
17469   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17470 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17471 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17472   echo $ECHO_N "(cached) $ECHO_C" >&6
17473 else
17474   ac_check_lib_save_LIBS=$LIBS
17475 LIBS="-ldl  $LIBS"
17476 cat >conftest.$ac_ext <<_ACEOF
17477 #line $LINENO "configure"
17478 /* confdefs.h.  */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h.  */
17483
17484 /* Override any gcc2 internal prototype to avoid an error.  */
17485 #ifdef __cplusplus
17486 extern "C"
17487 #endif
17488 /* We use char because int might match the return type of a gcc2
17489    builtin and then its argument prototype would still apply.  */
17490 char dlopen ();
17491 int
17492 main ()
17493 {
17494 dlopen ();
17495   ;
17496   return 0;
17497 }
17498 _ACEOF
17499 rm -f conftest.$ac_objext conftest$ac_exeext
17500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17501   (eval $ac_link) 2>&5
17502   ac_status=$?
17503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504   (exit $ac_status); } &&
17505          { ac_try='test -s conftest$ac_exeext'
17506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507   (eval $ac_try) 2>&5
17508   ac_status=$?
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); }; }; then
17511   ac_cv_lib_dl_dlopen=yes
17512 else
17513   echo "$as_me: failed program was:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17515
17516 ac_cv_lib_dl_dlopen=no
17517 fi
17518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17519 LIBS=$ac_check_lib_save_LIBS
17520 fi
17521 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17522 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17523 if test $ac_cv_lib_dl_dlopen = yes; then
17524   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17525 else
17526   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17527 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17528 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17529   echo $ECHO_N "(cached) $ECHO_C" >&6
17530 else
17531   ac_check_lib_save_LIBS=$LIBS
17532 LIBS="-lsvld  $LIBS"
17533 cat >conftest.$ac_ext <<_ACEOF
17534 #line $LINENO "configure"
17535 /* confdefs.h.  */
17536 _ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h.  */
17540
17541 /* Override any gcc2 internal prototype to avoid an error.  */
17542 #ifdef __cplusplus
17543 extern "C"
17544 #endif
17545 /* We use char because int might match the return type of a gcc2
17546    builtin and then its argument prototype would still apply.  */
17547 char dlopen ();
17548 int
17549 main ()
17550 {
17551 dlopen ();
17552   ;
17553   return 0;
17554 }
17555 _ACEOF
17556 rm -f conftest.$ac_objext conftest$ac_exeext
17557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17558   (eval $ac_link) 2>&5
17559   ac_status=$?
17560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561   (exit $ac_status); } &&
17562          { ac_try='test -s conftest$ac_exeext'
17563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564   (eval $ac_try) 2>&5
17565   ac_status=$?
17566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567   (exit $ac_status); }; }; then
17568   ac_cv_lib_svld_dlopen=yes
17569 else
17570   echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17572
17573 ac_cv_lib_svld_dlopen=no
17574 fi
17575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17576 LIBS=$ac_check_lib_save_LIBS
17577 fi
17578 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17579 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17580 if test $ac_cv_lib_svld_dlopen = yes; then
17581   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17582 else
17583   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17584 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17585 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17586   echo $ECHO_N "(cached) $ECHO_C" >&6
17587 else
17588   ac_check_lib_save_LIBS=$LIBS
17589 LIBS="-ldld  $LIBS"
17590 cat >conftest.$ac_ext <<_ACEOF
17591 #line $LINENO "configure"
17592 /* confdefs.h.  */
17593 _ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h.  */
17597
17598 /* Override any gcc2 internal prototype to avoid an error.  */
17599 #ifdef __cplusplus
17600 extern "C"
17601 #endif
17602 /* We use char because int might match the return type of a gcc2
17603    builtin and then its argument prototype would still apply.  */
17604 char dld_link ();
17605 int
17606 main ()
17607 {
17608 dld_link ();
17609   ;
17610   return 0;
17611 }
17612 _ACEOF
17613 rm -f conftest.$ac_objext conftest$ac_exeext
17614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17615   (eval $ac_link) 2>&5
17616   ac_status=$?
17617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   (exit $ac_status); } &&
17619          { ac_try='test -s conftest$ac_exeext'
17620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621   (eval $ac_try) 2>&5
17622   ac_status=$?
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); }; }; then
17625   ac_cv_lib_dld_dld_link=yes
17626 else
17627   echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17629
17630 ac_cv_lib_dld_dld_link=no
17631 fi
17632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17633 LIBS=$ac_check_lib_save_LIBS
17634 fi
17635 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17636 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17637 if test $ac_cv_lib_dld_dld_link = yes; then
17638   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17639 fi
17640
17641
17642 fi
17643
17644
17645 fi
17646
17647
17648 fi
17649
17650
17651 fi
17652
17653
17654 fi
17655
17656     ;;
17657   esac
17658
17659   if test "x$lt_cv_dlopen" != xno; then
17660     enable_dlopen=yes
17661   else
17662     enable_dlopen=no
17663   fi
17664
17665   case $lt_cv_dlopen in
17666   dlopen)
17667     save_CPPFLAGS="$CPPFLAGS"
17668     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17669
17670     save_LDFLAGS="$LDFLAGS"
17671     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17672
17673     save_LIBS="$LIBS"
17674     LIBS="$lt_cv_dlopen_libs $LIBS"
17675
17676     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17677 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17678 if test "${lt_cv_dlopen_self+set}" = set; then
17679   echo $ECHO_N "(cached) $ECHO_C" >&6
17680 else
17681           if test "$cross_compiling" = yes; then :
17682   lt_cv_dlopen_self=cross
17683 else
17684   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17685   lt_status=$lt_dlunknown
17686   cat > conftest.$ac_ext <<EOF
17687 #line 17687 "configure"
17688 #include "confdefs.h"
17689
17690 #if HAVE_DLFCN_H
17691 #include <dlfcn.h>
17692 #endif
17693
17694 #include <stdio.h>
17695
17696 #ifdef RTLD_GLOBAL
17697 #  define LT_DLGLOBAL           RTLD_GLOBAL
17698 #else
17699 #  ifdef DL_GLOBAL
17700 #    define LT_DLGLOBAL         DL_GLOBAL
17701 #  else
17702 #    define LT_DLGLOBAL         0
17703 #  endif
17704 #endif
17705
17706 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17707    find out it does not work in some platform. */
17708 #ifndef LT_DLLAZY_OR_NOW
17709 #  ifdef RTLD_LAZY
17710 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17711 #  else
17712 #    ifdef DL_LAZY
17713 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17714 #    else
17715 #      ifdef RTLD_NOW
17716 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17717 #      else
17718 #        ifdef DL_NOW
17719 #          define LT_DLLAZY_OR_NOW      DL_NOW
17720 #        else
17721 #          define LT_DLLAZY_OR_NOW      0
17722 #        endif
17723 #      endif
17724 #    endif
17725 #  endif
17726 #endif
17727
17728 #ifdef __cplusplus
17729 extern "C" void exit (int);
17730 #endif
17731
17732 void fnord() { int i=42;}
17733 int main ()
17734 {
17735   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17736   int status = $lt_dlunknown;
17737
17738   if (self)
17739     {
17740       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17741       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17742       /* dlclose (self); */
17743     }
17744
17745     exit (status);
17746 }
17747 EOF
17748   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17749   (eval $ac_link) 2>&5
17750   ac_status=$?
17751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17753     (./conftest; exit; ) 2>/dev/null
17754     lt_status=$?
17755     case x$lt_status in
17756       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17757       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17758       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17759     esac
17760   else :
17761     # compilation failed
17762     lt_cv_dlopen_self=no
17763   fi
17764 fi
17765 rm -fr conftest*
17766
17767
17768 fi
17769 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17770 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17771
17772     if test "x$lt_cv_dlopen_self" = xyes; then
17773       LDFLAGS="$LDFLAGS $link_static_flag"
17774       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17775 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17776 if test "${lt_cv_dlopen_self_static+set}" = set; then
17777   echo $ECHO_N "(cached) $ECHO_C" >&6
17778 else
17779           if test "$cross_compiling" = yes; then :
17780   lt_cv_dlopen_self_static=cross
17781 else
17782   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17783   lt_status=$lt_dlunknown
17784   cat > conftest.$ac_ext <<EOF
17785 #line 17785 "configure"
17786 #include "confdefs.h"
17787
17788 #if HAVE_DLFCN_H
17789 #include <dlfcn.h>
17790 #endif
17791
17792 #include <stdio.h>
17793
17794 #ifdef RTLD_GLOBAL
17795 #  define LT_DLGLOBAL           RTLD_GLOBAL
17796 #else
17797 #  ifdef DL_GLOBAL
17798 #    define LT_DLGLOBAL         DL_GLOBAL
17799 #  else
17800 #    define LT_DLGLOBAL         0
17801 #  endif
17802 #endif
17803
17804 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17805    find out it does not work in some platform. */
17806 #ifndef LT_DLLAZY_OR_NOW
17807 #  ifdef RTLD_LAZY
17808 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17809 #  else
17810 #    ifdef DL_LAZY
17811 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17812 #    else
17813 #      ifdef RTLD_NOW
17814 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17815 #      else
17816 #        ifdef DL_NOW
17817 #          define LT_DLLAZY_OR_NOW      DL_NOW
17818 #        else
17819 #          define LT_DLLAZY_OR_NOW      0
17820 #        endif
17821 #      endif
17822 #    endif
17823 #  endif
17824 #endif
17825
17826 #ifdef __cplusplus
17827 extern "C" void exit (int);
17828 #endif
17829
17830 void fnord() { int i=42;}
17831 int main ()
17832 {
17833   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17834   int status = $lt_dlunknown;
17835
17836   if (self)
17837     {
17838       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17839       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17840       /* dlclose (self); */
17841     }
17842
17843     exit (status);
17844 }
17845 EOF
17846   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17847   (eval $ac_link) 2>&5
17848   ac_status=$?
17849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17851     (./conftest; exit; ) 2>/dev/null
17852     lt_status=$?
17853     case x$lt_status in
17854       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17855       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17856       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17857     esac
17858   else :
17859     # compilation failed
17860     lt_cv_dlopen_self_static=no
17861   fi
17862 fi
17863 rm -fr conftest*
17864
17865
17866 fi
17867 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17868 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17869     fi
17870
17871     CPPFLAGS="$save_CPPFLAGS"
17872     LDFLAGS="$save_LDFLAGS"
17873     LIBS="$save_LIBS"
17874     ;;
17875   esac
17876
17877   case $lt_cv_dlopen_self in
17878   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17879   *) enable_dlopen_self=unknown ;;
17880   esac
17881
17882   case $lt_cv_dlopen_self_static in
17883   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17884   *) enable_dlopen_self_static=unknown ;;
17885   esac
17886 fi
17887
17888
17889 # The else clause should only fire when bootstrapping the
17890 # libtool distribution, otherwise you forgot to ship ltmain.sh
17891 # with your package, and you will get complaints that there are
17892 # no rules to generate ltmain.sh.
17893 if test -f "$ltmain"; then
17894   # See if we are running on zsh, and set the options which allow our commands through
17895   # without removal of \ escapes.
17896   if test -n "${ZSH_VERSION+set}" ; then
17897     setopt NO_GLOB_SUBST
17898   fi
17899   # Now quote all the things that may contain metacharacters while being
17900   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17901   # variables and quote the copies for generation of the libtool script.
17902   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17903     SED SHELL STRIP \
17904     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17905     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17906     deplibs_check_method reload_flag reload_cmds need_locks \
17907     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17908     lt_cv_sys_global_symbol_to_c_name_address \
17909     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17910     old_postinstall_cmds old_postuninstall_cmds \
17911     compiler_GCJ \
17912     CC_GCJ \
17913     LD_GCJ \
17914     lt_prog_compiler_wl_GCJ \
17915     lt_prog_compiler_pic_GCJ \
17916     lt_prog_compiler_static_GCJ \
17917     lt_prog_compiler_no_builtin_flag_GCJ \
17918     export_dynamic_flag_spec_GCJ \
17919     thread_safe_flag_spec_GCJ \
17920     whole_archive_flag_spec_GCJ \
17921     enable_shared_with_static_runtimes_GCJ \
17922     old_archive_cmds_GCJ \
17923     old_archive_from_new_cmds_GCJ \
17924     predep_objects_GCJ \
17925     postdep_objects_GCJ \
17926     predeps_GCJ \
17927     postdeps_GCJ \
17928     compiler_lib_search_path_GCJ \
17929     archive_cmds_GCJ \
17930     archive_expsym_cmds_GCJ \
17931     postinstall_cmds_GCJ \
17932     postuninstall_cmds_GCJ \
17933     old_archive_from_expsyms_cmds_GCJ \
17934     allow_undefined_flag_GCJ \
17935     no_undefined_flag_GCJ \
17936     export_symbols_cmds_GCJ \
17937     hardcode_libdir_flag_spec_GCJ \
17938     hardcode_libdir_flag_spec_ld_GCJ \
17939     hardcode_libdir_separator_GCJ \
17940     hardcode_automatic_GCJ \
17941     module_cmds_GCJ \
17942     module_expsym_cmds_GCJ \
17943     lt_cv_prog_compiler_c_o_GCJ \
17944     exclude_expsyms_GCJ \
17945     include_expsyms_GCJ; do
17946
17947     case $var in
17948     old_archive_cmds_GCJ | \
17949     old_archive_from_new_cmds_GCJ | \
17950     archive_cmds_GCJ | \
17951     archive_expsym_cmds_GCJ | \
17952     module_cmds_GCJ | \
17953     module_expsym_cmds_GCJ | \
17954     old_archive_from_expsyms_cmds_GCJ | \
17955     export_symbols_cmds_GCJ | \
17956     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17957     postinstall_cmds | postuninstall_cmds | \
17958     old_postinstall_cmds | old_postuninstall_cmds | \
17959     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17960       # Double-quote double-evaled strings.
17961       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17962       ;;
17963     *)
17964       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17965       ;;
17966     esac
17967   done
17968
17969   case $lt_echo in
17970   *'\$0 --fallback-echo"')
17971     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17972     ;;
17973   esac
17974
17975 cfgfile="$ofile"
17976
17977   cat <<__EOF__ >> "$cfgfile"
17978 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17979
17980 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17981
17982 # Shell to use when invoking shell scripts.
17983 SHELL=$lt_SHELL
17984
17985 # Whether or not to build shared libraries.
17986 build_libtool_libs=$enable_shared
17987
17988 # Whether or not to build static libraries.
17989 build_old_libs=$enable_static
17990
17991 # Whether or not to add -lc for building shared libraries.
17992 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17993
17994 # Whether or not to disallow shared libs when runtime libs are static
17995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17996
17997 # Whether or not to optimize for fast installation.
17998 fast_install=$enable_fast_install
17999
18000 # The host system.
18001 host_alias=$host_alias
18002 host=$host
18003
18004 # An echo program that does not interpret backslashes.
18005 echo=$lt_echo
18006
18007 # The archiver.
18008 AR=$lt_AR
18009 AR_FLAGS=$lt_AR_FLAGS
18010
18011 # A C compiler.
18012 LTCC=$lt_LTCC
18013
18014 # A language-specific compiler.
18015 CC=$lt_compiler_GCJ
18016
18017 # Is the compiler the GNU C compiler?
18018 with_gcc=$GCC_GCJ
18019
18020 # An ERE matcher.
18021 EGREP=$lt_EGREP
18022
18023 # The linker used to build libraries.
18024 LD=$lt_LD_GCJ
18025
18026 # Whether we need hard or soft links.
18027 LN_S=$lt_LN_S
18028
18029 # A BSD-compatible nm program.
18030 NM=$lt_NM
18031
18032 # A symbol stripping program
18033 STRIP=$lt_STRIP
18034
18035 # Used to examine libraries when file_magic_cmd begins "file"
18036 MAGIC_CMD=$MAGIC_CMD
18037
18038 # Used on cygwin: DLL creation program.
18039 DLLTOOL="$DLLTOOL"
18040
18041 # Used on cygwin: object dumper.
18042 OBJDUMP="$OBJDUMP"
18043
18044 # Used on cygwin: assembler.
18045 AS="$AS"
18046
18047 # The name of the directory that contains temporary libtool files.
18048 objdir=$objdir
18049
18050 # How to create reloadable object files.
18051 reload_flag=$lt_reload_flag
18052 reload_cmds=$lt_reload_cmds
18053
18054 # How to pass a linker flag through the compiler.
18055 wl=$lt_lt_prog_compiler_wl_GCJ
18056
18057 # Object file suffix (normally "o").
18058 objext="$ac_objext"
18059
18060 # Old archive suffix (normally "a").
18061 libext="$libext"
18062
18063 # Shared library suffix (normally ".so").
18064 shrext_cmds='$shrext_cmds'
18065
18066 # Executable file suffix (normally "").
18067 exeext="$exeext"
18068
18069 # Additional compiler flags for building library objects.
18070 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18071 pic_mode=$pic_mode
18072
18073 # What is the maximum length of a command?
18074 max_cmd_len=$lt_cv_sys_max_cmd_len
18075
18076 # Does compiler simultaneously support -c and -o options?
18077 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18078
18079 # Must we lock files when doing compilation ?
18080 need_locks=$lt_need_locks
18081
18082 # Do we need the lib prefix for modules?
18083 need_lib_prefix=$need_lib_prefix
18084
18085 # Do we need a version for libraries?
18086 need_version=$need_version
18087
18088 # Whether dlopen is supported.
18089 dlopen_support=$enable_dlopen
18090
18091 # Whether dlopen of programs is supported.
18092 dlopen_self=$enable_dlopen_self
18093
18094 # Whether dlopen of statically linked programs is supported.
18095 dlopen_self_static=$enable_dlopen_self_static
18096
18097 # Compiler flag to prevent dynamic linking.
18098 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18099
18100 # Compiler flag to turn off builtin functions.
18101 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18102
18103 # Compiler flag to allow reflexive dlopens.
18104 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18105
18106 # Compiler flag to generate shared objects directly from archives.
18107 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18108
18109 # Compiler flag to generate thread-safe objects.
18110 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18111
18112 # Library versioning type.
18113 version_type=$version_type
18114
18115 # Format of library name prefix.
18116 libname_spec=$lt_libname_spec
18117
18118 # List of archive names.  First name is the real one, the rest are links.
18119 # The last name is the one that the linker finds with -lNAME.
18120 library_names_spec=$lt_library_names_spec
18121
18122 # The coded name of the library, if different from the real name.
18123 soname_spec=$lt_soname_spec
18124
18125 # Commands used to build and install an old-style archive.
18126 RANLIB=$lt_RANLIB
18127 old_archive_cmds=$lt_old_archive_cmds_GCJ
18128 old_postinstall_cmds=$lt_old_postinstall_cmds
18129 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18130
18131 # Create an old-style archive from a shared archive.
18132 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18133
18134 # Create a temporary old-style archive to link instead of a shared archive.
18135 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18136
18137 # Commands used to build and install a shared archive.
18138 archive_cmds=$lt_archive_cmds_GCJ
18139 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18140 postinstall_cmds=$lt_postinstall_cmds
18141 postuninstall_cmds=$lt_postuninstall_cmds
18142
18143 # Commands used to build a loadable module (assumed same as above if empty)
18144 module_cmds=$lt_module_cmds_GCJ
18145 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18146
18147 # Commands to strip libraries.
18148 old_striplib=$lt_old_striplib
18149 striplib=$lt_striplib
18150
18151 # Dependencies to place before the objects being linked to create a
18152 # shared library.
18153 predep_objects=$lt_predep_objects_GCJ
18154
18155 # Dependencies to place after the objects being linked to create a
18156 # shared library.
18157 postdep_objects=$lt_postdep_objects_GCJ
18158
18159 # Dependencies to place before the objects being linked to create a
18160 # shared library.
18161 predeps=$lt_predeps_GCJ
18162
18163 # Dependencies to place after the objects being linked to create a
18164 # shared library.
18165 postdeps=$lt_postdeps_GCJ
18166
18167 # The library search path used internally by the compiler when linking
18168 # a shared library.
18169 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18170
18171 # Method to check whether dependent libraries are shared objects.
18172 deplibs_check_method=$lt_deplibs_check_method
18173
18174 # Command to use when deplibs_check_method == file_magic.
18175 file_magic_cmd=$lt_file_magic_cmd
18176
18177 # Flag that allows shared libraries with undefined symbols to be built.
18178 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18179
18180 # Flag that forces no undefined symbols.
18181 no_undefined_flag=$lt_no_undefined_flag_GCJ
18182
18183 # Commands used to finish a libtool library installation in a directory.
18184 finish_cmds=$lt_finish_cmds
18185
18186 # Same as above, but a single script fragment to be evaled but not shown.
18187 finish_eval=$lt_finish_eval
18188
18189 # Take the output of nm and produce a listing of raw symbols and C names.
18190 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18191
18192 # Transform the output of nm in a proper C declaration
18193 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18194
18195 # Transform the output of nm in a C name address pair
18196 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18197
18198 # This is the shared library runtime path variable.
18199 runpath_var=$runpath_var
18200
18201 # This is the shared library path variable.
18202 shlibpath_var=$shlibpath_var
18203
18204 # Is shlibpath searched before the hard-coded library search path?
18205 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18206
18207 # How to hardcode a shared library path into an executable.
18208 hardcode_action=$hardcode_action_GCJ
18209
18210 # Whether we should hardcode library paths into libraries.
18211 hardcode_into_libs=$hardcode_into_libs
18212
18213 # Flag to hardcode \$libdir into a binary during linking.
18214 # This must work even if \$libdir does not exist.
18215 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18216
18217 # If ld is used when linking, flag to hardcode \$libdir into
18218 # a binary during linking. This must work even if \$libdir does
18219 # not exist.
18220 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18221
18222 # Whether we need a single -rpath flag with a separated argument.
18223 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18224
18225 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18226 # resulting binary.
18227 hardcode_direct=$hardcode_direct_GCJ
18228
18229 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18230 # resulting binary.
18231 hardcode_minus_L=$hardcode_minus_L_GCJ
18232
18233 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18234 # the resulting binary.
18235 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18236
18237 # Set to yes if building a shared library automatically hardcodes DIR into the library
18238 # and all subsequent libraries and executables linked against it.
18239 hardcode_automatic=$hardcode_automatic_GCJ
18240
18241 # Variables whose values should be saved in libtool wrapper scripts and
18242 # restored at relink time.
18243 variables_saved_for_relink="$variables_saved_for_relink"
18244
18245 # Whether libtool must link a program against all its dependency libraries.
18246 link_all_deplibs=$link_all_deplibs_GCJ
18247
18248 # Compile-time system search path for libraries
18249 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18250
18251 # Run-time system search path for libraries
18252 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18253
18254 # Fix the shell variable \$srcfile for the compiler.
18255 fix_srcfile_path="$fix_srcfile_path_GCJ"
18256
18257 # Set to yes if exported symbols are required.
18258 always_export_symbols=$always_export_symbols_GCJ
18259
18260 # The commands to list exported symbols.
18261 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18262
18263 # The commands to extract the exported symbol list from a shared archive.
18264 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18265
18266 # Symbols that should not be listed in the preloaded symbols.
18267 exclude_expsyms=$lt_exclude_expsyms_GCJ
18268
18269 # Symbols that must always be exported.
18270 include_expsyms=$lt_include_expsyms_GCJ
18271
18272 # ### END LIBTOOL TAG CONFIG: $tagname
18273
18274 __EOF__
18275
18276
18277 else
18278   # If there is no Makefile yet, we rely on a make rule to execute
18279   # `config.status --recheck' to rerun these tests and create the
18280   # libtool script then.
18281   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18282   if test -f "$ltmain_in"; then
18283     test -f Makefile && make "$ltmain"
18284   fi
18285 fi
18286
18287
18288 ac_ext=c
18289 ac_cpp='$CPP $CPPFLAGS'
18290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18293
18294 CC="$lt_save_CC"
18295
18296         else
18297           tagname=""
18298         fi
18299         ;;
18300
18301       RC)
18302
18303
18304
18305 # Source file extension for RC test sources.
18306 ac_ext=rc
18307
18308 # Object file extension for compiled RC test sources.
18309 objext=o
18310 objext_RC=$objext
18311
18312 # Code to be used in simple compile tests
18313 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18314
18315 # Code to be used in simple link tests
18316 lt_simple_link_test_code="$lt_simple_compile_test_code"
18317
18318 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18319
18320 # If no C compiler was specified, use CC.
18321 LTCC=${LTCC-"$CC"}
18322
18323 # Allow CC to be a program name with arguments.
18324 compiler=$CC
18325
18326
18327 # Allow CC to be a program name with arguments.
18328 lt_save_CC="$CC"
18329 CC=${RC-"windres"}
18330 compiler=$CC
18331 compiler_RC=$CC
18332 lt_cv_prog_compiler_c_o_RC=yes
18333
18334 # The else clause should only fire when bootstrapping the
18335 # libtool distribution, otherwise you forgot to ship ltmain.sh
18336 # with your package, and you will get complaints that there are
18337 # no rules to generate ltmain.sh.
18338 if test -f "$ltmain"; then
18339   # See if we are running on zsh, and set the options which allow our commands through
18340   # without removal of \ escapes.
18341   if test -n "${ZSH_VERSION+set}" ; then
18342     setopt NO_GLOB_SUBST
18343   fi
18344   # Now quote all the things that may contain metacharacters while being
18345   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18346   # variables and quote the copies for generation of the libtool script.
18347   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18348     SED SHELL STRIP \
18349     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18350     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18351     deplibs_check_method reload_flag reload_cmds need_locks \
18352     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18353     lt_cv_sys_global_symbol_to_c_name_address \
18354     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18355     old_postinstall_cmds old_postuninstall_cmds \
18356     compiler_RC \
18357     CC_RC \
18358     LD_RC \
18359     lt_prog_compiler_wl_RC \
18360     lt_prog_compiler_pic_RC \
18361     lt_prog_compiler_static_RC \
18362     lt_prog_compiler_no_builtin_flag_RC \
18363     export_dynamic_flag_spec_RC \
18364     thread_safe_flag_spec_RC \
18365     whole_archive_flag_spec_RC \
18366     enable_shared_with_static_runtimes_RC \
18367     old_archive_cmds_RC \
18368     old_archive_from_new_cmds_RC \
18369     predep_objects_RC \
18370     postdep_objects_RC \
18371     predeps_RC \
18372     postdeps_RC \
18373     compiler_lib_search_path_RC \
18374     archive_cmds_RC \
18375     archive_expsym_cmds_RC \
18376     postinstall_cmds_RC \
18377     postuninstall_cmds_RC \
18378     old_archive_from_expsyms_cmds_RC \
18379     allow_undefined_flag_RC \
18380     no_undefined_flag_RC \
18381     export_symbols_cmds_RC \
18382     hardcode_libdir_flag_spec_RC \
18383     hardcode_libdir_flag_spec_ld_RC \
18384     hardcode_libdir_separator_RC \
18385     hardcode_automatic_RC \
18386     module_cmds_RC \
18387     module_expsym_cmds_RC \
18388     lt_cv_prog_compiler_c_o_RC \
18389     exclude_expsyms_RC \
18390     include_expsyms_RC; do
18391
18392     case $var in
18393     old_archive_cmds_RC | \
18394     old_archive_from_new_cmds_RC | \
18395     archive_cmds_RC | \
18396     archive_expsym_cmds_RC | \
18397     module_cmds_RC | \
18398     module_expsym_cmds_RC | \
18399     old_archive_from_expsyms_cmds_RC | \
18400     export_symbols_cmds_RC | \
18401     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18402     postinstall_cmds | postuninstall_cmds | \
18403     old_postinstall_cmds | old_postuninstall_cmds | \
18404     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18405       # Double-quote double-evaled strings.
18406       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18407       ;;
18408     *)
18409       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18410       ;;
18411     esac
18412   done
18413
18414   case $lt_echo in
18415   *'\$0 --fallback-echo"')
18416     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18417     ;;
18418   esac
18419
18420 cfgfile="$ofile"
18421
18422   cat <<__EOF__ >> "$cfgfile"
18423 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18424
18425 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18426
18427 # Shell to use when invoking shell scripts.
18428 SHELL=$lt_SHELL
18429
18430 # Whether or not to build shared libraries.
18431 build_libtool_libs=$enable_shared
18432
18433 # Whether or not to build static libraries.
18434 build_old_libs=$enable_static
18435
18436 # Whether or not to add -lc for building shared libraries.
18437 build_libtool_need_lc=$archive_cmds_need_lc_RC
18438
18439 # Whether or not to disallow shared libs when runtime libs are static
18440 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18441
18442 # Whether or not to optimize for fast installation.
18443 fast_install=$enable_fast_install
18444
18445 # The host system.
18446 host_alias=$host_alias
18447 host=$host
18448
18449 # An echo program that does not interpret backslashes.
18450 echo=$lt_echo
18451
18452 # The archiver.
18453 AR=$lt_AR
18454 AR_FLAGS=$lt_AR_FLAGS
18455
18456 # A C compiler.
18457 LTCC=$lt_LTCC
18458
18459 # A language-specific compiler.
18460 CC=$lt_compiler_RC
18461
18462 # Is the compiler the GNU C compiler?
18463 with_gcc=$GCC_RC
18464
18465 # An ERE matcher.
18466 EGREP=$lt_EGREP
18467
18468 # The linker used to build libraries.
18469 LD=$lt_LD_RC
18470
18471 # Whether we need hard or soft links.
18472 LN_S=$lt_LN_S
18473
18474 # A BSD-compatible nm program.
18475 NM=$lt_NM
18476
18477 # A symbol stripping program
18478 STRIP=$lt_STRIP
18479
18480 # Used to examine libraries when file_magic_cmd begins "file"
18481 MAGIC_CMD=$MAGIC_CMD
18482
18483 # Used on cygwin: DLL creation program.
18484 DLLTOOL="$DLLTOOL"
18485
18486 # Used on cygwin: object dumper.
18487 OBJDUMP="$OBJDUMP"
18488
18489 # Used on cygwin: assembler.
18490 AS="$AS"
18491
18492 # The name of the directory that contains temporary libtool files.
18493 objdir=$objdir
18494
18495 # How to create reloadable object files.
18496 reload_flag=$lt_reload_flag
18497 reload_cmds=$lt_reload_cmds
18498
18499 # How to pass a linker flag through the compiler.
18500 wl=$lt_lt_prog_compiler_wl_RC
18501
18502 # Object file suffix (normally "o").
18503 objext="$ac_objext"
18504
18505 # Old archive suffix (normally "a").
18506 libext="$libext"
18507
18508 # Shared library suffix (normally ".so").
18509 shrext_cmds='$shrext_cmds'
18510
18511 # Executable file suffix (normally "").
18512 exeext="$exeext"
18513
18514 # Additional compiler flags for building library objects.
18515 pic_flag=$lt_lt_prog_compiler_pic_RC
18516 pic_mode=$pic_mode
18517
18518 # What is the maximum length of a command?
18519 max_cmd_len=$lt_cv_sys_max_cmd_len
18520
18521 # Does compiler simultaneously support -c and -o options?
18522 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18523
18524 # Must we lock files when doing compilation ?
18525 need_locks=$lt_need_locks
18526
18527 # Do we need the lib prefix for modules?
18528 need_lib_prefix=$need_lib_prefix
18529
18530 # Do we need a version for libraries?
18531 need_version=$need_version
18532
18533 # Whether dlopen is supported.
18534 dlopen_support=$enable_dlopen
18535
18536 # Whether dlopen of programs is supported.
18537 dlopen_self=$enable_dlopen_self
18538
18539 # Whether dlopen of statically linked programs is supported.
18540 dlopen_self_static=$enable_dlopen_self_static
18541
18542 # Compiler flag to prevent dynamic linking.
18543 link_static_flag=$lt_lt_prog_compiler_static_RC
18544
18545 # Compiler flag to turn off builtin functions.
18546 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18547
18548 # Compiler flag to allow reflexive dlopens.
18549 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18550
18551 # Compiler flag to generate shared objects directly from archives.
18552 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18553
18554 # Compiler flag to generate thread-safe objects.
18555 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18556
18557 # Library versioning type.
18558 version_type=$version_type
18559
18560 # Format of library name prefix.
18561 libname_spec=$lt_libname_spec
18562
18563 # List of archive names.  First name is the real one, the rest are links.
18564 # The last name is the one that the linker finds with -lNAME.
18565 library_names_spec=$lt_library_names_spec
18566
18567 # The coded name of the library, if different from the real name.
18568 soname_spec=$lt_soname_spec
18569
18570 # Commands used to build and install an old-style archive.
18571 RANLIB=$lt_RANLIB
18572 old_archive_cmds=$lt_old_archive_cmds_RC
18573 old_postinstall_cmds=$lt_old_postinstall_cmds
18574 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18575
18576 # Create an old-style archive from a shared archive.
18577 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18578
18579 # Create a temporary old-style archive to link instead of a shared archive.
18580 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18581
18582 # Commands used to build and install a shared archive.
18583 archive_cmds=$lt_archive_cmds_RC
18584 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18585 postinstall_cmds=$lt_postinstall_cmds
18586 postuninstall_cmds=$lt_postuninstall_cmds
18587
18588 # Commands used to build a loadable module (assumed same as above if empty)
18589 module_cmds=$lt_module_cmds_RC
18590 module_expsym_cmds=$lt_module_expsym_cmds_RC
18591
18592 # Commands to strip libraries.
18593 old_striplib=$lt_old_striplib
18594 striplib=$lt_striplib
18595
18596 # Dependencies to place before the objects being linked to create a
18597 # shared library.
18598 predep_objects=$lt_predep_objects_RC
18599
18600 # Dependencies to place after the objects being linked to create a
18601 # shared library.
18602 postdep_objects=$lt_postdep_objects_RC
18603
18604 # Dependencies to place before the objects being linked to create a
18605 # shared library.
18606 predeps=$lt_predeps_RC
18607
18608 # Dependencies to place after the objects being linked to create a
18609 # shared library.
18610 postdeps=$lt_postdeps_RC
18611
18612 # The library search path used internally by the compiler when linking
18613 # a shared library.
18614 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18615
18616 # Method to check whether dependent libraries are shared objects.
18617 deplibs_check_method=$lt_deplibs_check_method
18618
18619 # Command to use when deplibs_check_method == file_magic.
18620 file_magic_cmd=$lt_file_magic_cmd
18621
18622 # Flag that allows shared libraries with undefined symbols to be built.
18623 allow_undefined_flag=$lt_allow_undefined_flag_RC
18624
18625 # Flag that forces no undefined symbols.
18626 no_undefined_flag=$lt_no_undefined_flag_RC
18627
18628 # Commands used to finish a libtool library installation in a directory.
18629 finish_cmds=$lt_finish_cmds
18630
18631 # Same as above, but a single script fragment to be evaled but not shown.
18632 finish_eval=$lt_finish_eval
18633
18634 # Take the output of nm and produce a listing of raw symbols and C names.
18635 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18636
18637 # Transform the output of nm in a proper C declaration
18638 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18639
18640 # Transform the output of nm in a C name address pair
18641 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18642
18643 # This is the shared library runtime path variable.
18644 runpath_var=$runpath_var
18645
18646 # This is the shared library path variable.
18647 shlibpath_var=$shlibpath_var
18648
18649 # Is shlibpath searched before the hard-coded library search path?
18650 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18651
18652 # How to hardcode a shared library path into an executable.
18653 hardcode_action=$hardcode_action_RC
18654
18655 # Whether we should hardcode library paths into libraries.
18656 hardcode_into_libs=$hardcode_into_libs
18657
18658 # Flag to hardcode \$libdir into a binary during linking.
18659 # This must work even if \$libdir does not exist.
18660 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18661
18662 # If ld is used when linking, flag to hardcode \$libdir into
18663 # a binary during linking. This must work even if \$libdir does
18664 # not exist.
18665 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18666
18667 # Whether we need a single -rpath flag with a separated argument.
18668 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18669
18670 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18671 # resulting binary.
18672 hardcode_direct=$hardcode_direct_RC
18673
18674 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18675 # resulting binary.
18676 hardcode_minus_L=$hardcode_minus_L_RC
18677
18678 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18679 # the resulting binary.
18680 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18681
18682 # Set to yes if building a shared library automatically hardcodes DIR into the library
18683 # and all subsequent libraries and executables linked against it.
18684 hardcode_automatic=$hardcode_automatic_RC
18685
18686 # Variables whose values should be saved in libtool wrapper scripts and
18687 # restored at relink time.
18688 variables_saved_for_relink="$variables_saved_for_relink"
18689
18690 # Whether libtool must link a program against all its dependency libraries.
18691 link_all_deplibs=$link_all_deplibs_RC
18692
18693 # Compile-time system search path for libraries
18694 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18695
18696 # Run-time system search path for libraries
18697 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18698
18699 # Fix the shell variable \$srcfile for the compiler.
18700 fix_srcfile_path="$fix_srcfile_path_RC"
18701
18702 # Set to yes if exported symbols are required.
18703 always_export_symbols=$always_export_symbols_RC
18704
18705 # The commands to list exported symbols.
18706 export_symbols_cmds=$lt_export_symbols_cmds_RC
18707
18708 # The commands to extract the exported symbol list from a shared archive.
18709 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18710
18711 # Symbols that should not be listed in the preloaded symbols.
18712 exclude_expsyms=$lt_exclude_expsyms_RC
18713
18714 # Symbols that must always be exported.
18715 include_expsyms=$lt_include_expsyms_RC
18716
18717 # ### END LIBTOOL TAG CONFIG: $tagname
18718
18719 __EOF__
18720
18721
18722 else
18723   # If there is no Makefile yet, we rely on a make rule to execute
18724   # `config.status --recheck' to rerun these tests and create the
18725   # libtool script then.
18726   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18727   if test -f "$ltmain_in"; then
18728     test -f Makefile && make "$ltmain"
18729   fi
18730 fi
18731
18732
18733 ac_ext=c
18734 ac_cpp='$CPP $CPPFLAGS'
18735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18738
18739 CC="$lt_save_CC"
18740
18741         ;;
18742
18743       *)
18744         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18745 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18746    { (exit 1); exit 1; }; }
18747         ;;
18748       esac
18749
18750       # Append the new tag name to the list of available tags.
18751       if test -n "$tagname" ; then
18752       available_tags="$available_tags $tagname"
18753     fi
18754     fi
18755   done
18756   IFS="$lt_save_ifs"
18757
18758   # Now substitute the updated list of available tags.
18759   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18760     mv "${ofile}T" "$ofile"
18761     chmod +x "$ofile"
18762   else
18763     rm -f "${ofile}T"
18764     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18765 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18766    { (exit 1); exit 1; }; }
18767   fi
18768 fi
18769
18770
18771
18772 # This can be used to rebuild libtool when needed
18773 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18774
18775 # Always use our own libtool.
18776 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18777
18778 # Prevent multiple expansion
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791 # Check whether --with-system-libtool or --without-system-libtool was given.
18792 if test "${with_system_libtool+set}" = set; then
18793   withval="$with_system_libtool"
18794    # Extract the first word of "libtool", so it can be a program name with args.
18795 set dummy libtool; ac_word=$2
18796 echo "$as_me:$LINENO: checking for $ac_word" >&5
18797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18798 if test "${ac_cv_path_LIBTOOL+set}" = set; then
18799   echo $ECHO_N "(cached) $ECHO_C" >&6
18800 else
18801   case $LIBTOOL in
18802   [\\/]* | ?:[\\/]*)
18803   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
18804   ;;
18805   *)
18806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18807 as_dummy="$PATH:/usr/local/bin"
18808 for as_dir in $as_dummy
18809 do
18810   IFS=$as_save_IFS
18811   test -z "$as_dir" && as_dir=.
18812   for ac_exec_ext in '' $ac_executable_extensions; do
18813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18814     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
18815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18816     break 2
18817   fi
18818 done
18819 done
18820
18821   ;;
18822 esac
18823 fi
18824 LIBTOOL=$ac_cv_path_LIBTOOL
18825
18826 if test -n "$LIBTOOL"; then
18827   echo "$as_me:$LINENO: result: $LIBTOOL" >&5
18828 echo "${ECHO_T}$LIBTOOL" >&6
18829 else
18830   echo "$as_me:$LINENO: result: no" >&5
18831 echo "${ECHO_T}no" >&6
18832 fi
18833
18834 else
18835
18836   LIBTOOL="`pwd`/libtool"
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851 fi;
18852
18853
18854
18855 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
18856 if test "${enable_strict_dependencies+set}" = set; then
18857   enableval="$enable_strict_dependencies"
18858
18859 fi;
18860
18861 logdir='${localstatedir}/log/radius'
18862 echo "$as_me:$LINENO: checking logdir" >&5
18863 echo $ECHO_N "checking logdir... $ECHO_C" >&6
18864
18865 # Check whether --with-logdir or --without-logdir was given.
18866 if test "${with_logdir+set}" = set; then
18867   withval="$with_logdir"
18868    case "$withval" in
18869     no)
18870         { { echo "$as_me:$LINENO: error: Need logdir" >&5
18871 echo "$as_me: error: Need logdir" >&2;}
18872    { (exit 1); exit 1; }; }
18873         ;;
18874     yes)
18875         ;;
18876     *)
18877         logdir="$withval"
18878         ;;
18879   esac
18880
18881 fi;
18882
18883 echo "$as_me:$LINENO: result: $logdir" >&5
18884 echo "${ECHO_T}$logdir" >&6
18885
18886 radacctdir='${logdir}/radacct'
18887 echo "$as_me:$LINENO: checking radacctdir" >&5
18888 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
18889
18890 # Check whether --with-radacctdir or --without-radacctdir was given.
18891 if test "${with_radacctdir+set}" = set; then
18892   withval="$with_radacctdir"
18893    case "$withval" in
18894     no)
18895         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
18896 echo "$as_me: error: Need radacctdir" >&2;}
18897    { (exit 1); exit 1; }; }
18898         ;;
18899     yes)
18900         ;;
18901     *)
18902         radacctdir="$withval"
18903         ;;
18904   esac
18905
18906 fi;
18907
18908 echo "$as_me:$LINENO: result: $radacctdir" >&5
18909 echo "${ECHO_T}$radacctdir" >&6
18910
18911 raddbdir='${sysconfdir}/raddb'
18912 echo "$as_me:$LINENO: checking raddbdir" >&5
18913 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
18914
18915 # Check whether --with-raddbdir or --without-raddbdir was given.
18916 if test "${with_raddbdir+set}" = set; then
18917   withval="$with_raddbdir"
18918    case "$withval" in
18919     no)
18920         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
18921 echo "$as_me: error: Need raddbdir" >&2;}
18922    { (exit 1); exit 1; }; }
18923         ;;
18924     yes)
18925         ;;
18926     *)
18927         raddbdir="$withval"
18928         ;;
18929   esac
18930
18931 fi;
18932
18933 echo "$as_me:$LINENO: result: $raddbdir" >&5
18934 echo "${ECHO_T}$raddbdir" >&6
18935
18936 ASCEND_BINARY=yes
18937
18938 # Check whether --with-ascend-binary or --without-ascend-binary was given.
18939 if test "${with_ascend_binary+set}" = set; then
18940   withval="$with_ascend_binary"
18941    case "$withval" in
18942     yes)
18943         ;;
18944     *)
18945         ASCEND_BINARY=""
18946   esac
18947
18948 fi;
18949 if test "X$ASCEND_BINARY" = "Xyes"; then
18950
18951 cat >>confdefs.h <<\_ACEOF
18952 #define ASCEND_BINARY
18953 _ACEOF
18954
18955 fi
18956
18957 WITH_THREADS=yes
18958
18959 # Check whether --with-threads or --without-threads was given.
18960 if test "${with_threads+set}" = set; then
18961   withval="$with_threads"
18962    case "$withval" in
18963     yes)
18964         ;;
18965     *)
18966         WITH_THREADS=""
18967   esac
18968
18969 fi;
18970
18971 WITH_SNMP=yes
18972
18973 # Check whether --with-snmp or --without-snmp was given.
18974 if test "${with_snmp+set}" = set; then
18975   withval="$with_snmp"
18976    case "$withval" in
18977     yes)
18978         ;;
18979     *)
18980         WITH_SNMP=no
18981   esac
18982
18983 fi;
18984
18985 rad_enable_largefiles=no
18986
18987 # Check whether --with-large-files or --without-large-files was given.
18988 if test "${with_large_files+set}" = set; then
18989   withval="$with_large_files"
18990    case "$withval" in
18991     yes)
18992         rad_enable_largefiles=yes
18993         ;;
18994     *)
18995         ;;
18996   esac
18997
18998 fi;
18999
19000
19001
19002 STATIC_MODULES=
19003
19004 # Check whether --with-static_modules or --without-static_modules was given.
19005 if test "${with_static_modules+set}" = set; then
19006   withval="$with_static_modules"
19007
19008   for i in $withval; do
19009     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19010   done
19011
19012 fi;
19013
19014 # Check whether --enable-developer or --disable-developer was given.
19015 if test "${enable_developer+set}" = set; then
19016   enableval="$enable_developer"
19017    case "$enableval" in
19018     no)
19019         developer=no
19020         ;;
19021     *)
19022         developer=yes
19023   esac
19024
19025 fi;
19026
19027 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19028     developer="yes"
19029 fi
19030
19031 EXPERIMENTAL=
19032
19033 # Check whether --with-experimental-modules or --without-experimental-modules was given.
19034 if test "${with_experimental_modules+set}" = set; then
19035   withval="$with_experimental_modules"
19036    case "$withval" in
19037     yes)
19038         EXPERIMENTAL=yes
19039         ;;
19040     *)
19041   esac
19042
19043 fi;
19044
19045
19046 # Check whether --with-openssl-includes or --without-openssl-includes was given.
19047 if test "${with_openssl_includes+set}" = set; then
19048   withval="$with_openssl_includes"
19049    case "$withval" in
19050     *) OPENSSL_INCLUDE_DIR="$withval"
19051         ;;
19052   esac
19053
19054 fi;
19055
19056
19057 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
19058 if test "${with_openssl_libraries+set}" = set; then
19059   withval="$with_openssl_libraries"
19060    case "$withval" in
19061     *) OPENSSL_LIB_DIR="$withval"
19062         ;;
19063   esac
19064
19065 fi;
19066
19067
19068
19069 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
19070 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19071   withval="$with_rlm_FOO_lib_dir"
19072    case "$withval" in
19073     *)
19074         ;;
19075   esac
19076
19077 fi;
19078
19079
19080 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
19081 if test "${with_rlm_FOO_include_dir+set}" = set; then
19082   withval="$with_rlm_FOO_include_dir"
19083    case "$withval" in
19084     *)
19085         ;;
19086   esac
19087
19088 fi;
19089
19090
19091 WITH_UDPFROMTO=no
19092
19093 # Check whether --with-udpfromto or --without-udpfromto was given.
19094 if test "${with_udpfromto+set}" = set; then
19095   withval="$with_udpfromto"
19096    case "$withval" in
19097     yes)
19098         WITH_UDPFROMTO=yes
19099         ;;
19100     *)
19101         WITH_UDPFROMTO=no
19102   esac
19103
19104 fi;
19105
19106 if test "x$WITH_UDPFROMTO" = "xyes"; then
19107
19108 cat >>confdefs.h <<\_ACEOF
19109 #define WITH_UDPFROMTO
19110 _ACEOF
19111
19112 fi
19113
19114
19115 CHECKRAD=checkrad.pl
19116 # Extract the first word of "perl", so it can be a program name with args.
19117 set dummy perl; ac_word=$2
19118 echo "$as_me:$LINENO: checking for $ac_word" >&5
19119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19120 if test "${ac_cv_path_PERL+set}" = set; then
19121   echo $ECHO_N "(cached) $ECHO_C" >&6
19122 else
19123   case $PERL in
19124   [\\/]* | ?:[\\/]*)
19125   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19126   ;;
19127   *)
19128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19129 for as_dir in $PATH
19130 do
19131   IFS=$as_save_IFS
19132   test -z "$as_dir" && as_dir=.
19133   for ac_exec_ext in '' $ac_executable_extensions; do
19134   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19135     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19137     break 2
19138   fi
19139 done
19140 done
19141
19142   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19143   ;;
19144 esac
19145 fi
19146 PERL=$ac_cv_path_PERL
19147
19148 if test -n "$PERL"; then
19149   echo "$as_me:$LINENO: result: $PERL" >&5
19150 echo "${ECHO_T}$PERL" >&6
19151 else
19152   echo "$as_me:$LINENO: result: no" >&5
19153 echo "${ECHO_T}no" >&6
19154 fi
19155
19156 if test "x$ac_cv_path_PERL" = "x"; then
19157   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19158 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19159 fi
19160 # Extract the first word of "snmpget", so it can be a program name with args.
19161 set dummy snmpget; ac_word=$2
19162 echo "$as_me:$LINENO: checking for $ac_word" >&5
19163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19164 if test "${ac_cv_path_SNMPGET+set}" = set; then
19165   echo $ECHO_N "(cached) $ECHO_C" >&6
19166 else
19167   case $SNMPGET in
19168   [\\/]* | ?:[\\/]*)
19169   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19170   ;;
19171   *)
19172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19173 for as_dir in $PATH
19174 do
19175   IFS=$as_save_IFS
19176   test -z "$as_dir" && as_dir=.
19177   for ac_exec_ext in '' $ac_executable_extensions; do
19178   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19179     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19181     break 2
19182   fi
19183 done
19184 done
19185
19186   ;;
19187 esac
19188 fi
19189 SNMPGET=$ac_cv_path_SNMPGET
19190
19191 if test -n "$SNMPGET"; then
19192   echo "$as_me:$LINENO: result: $SNMPGET" >&5
19193 echo "${ECHO_T}$SNMPGET" >&6
19194 else
19195   echo "$as_me:$LINENO: result: no" >&5
19196 echo "${ECHO_T}no" >&6
19197 fi
19198
19199 if test "x$ac_cv_path_SNMPGET" = "x"; then
19200   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19201 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19202 fi
19203
19204 # Extract the first word of "snmpwalk", so it can be a program name with args.
19205 set dummy snmpwalk; ac_word=$2
19206 echo "$as_me:$LINENO: checking for $ac_word" >&5
19207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19208 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19209   echo $ECHO_N "(cached) $ECHO_C" >&6
19210 else
19211   case $SNMPWALK in
19212   [\\/]* | ?:[\\/]*)
19213   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19214   ;;
19215   *)
19216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19217 for as_dir in $PATH
19218 do
19219   IFS=$as_save_IFS
19220   test -z "$as_dir" && as_dir=.
19221   for ac_exec_ext in '' $ac_executable_extensions; do
19222   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19223     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19225     break 2
19226   fi
19227 done
19228 done
19229
19230   ;;
19231 esac
19232 fi
19233 SNMPWALK=$ac_cv_path_SNMPWALK
19234
19235 if test -n "$SNMPWALK"; then
19236   echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19237 echo "${ECHO_T}$SNMPWALK" >&6
19238 else
19239   echo "$as_me:$LINENO: result: no" >&5
19240 echo "${ECHO_T}no" >&6
19241 fi
19242
19243 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19244   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19245 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19246 fi
19247
19248 # Extract the first word of "rusers", so it can be a program name with args.
19249 set dummy rusers; ac_word=$2
19250 echo "$as_me:$LINENO: checking for $ac_word" >&5
19251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19252 if test "${ac_cv_path_RUSERS+set}" = set; then
19253   echo $ECHO_N "(cached) $ECHO_C" >&6
19254 else
19255   case $RUSERS in
19256   [\\/]* | ?:[\\/]*)
19257   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19258   ;;
19259   *)
19260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19261 for as_dir in $PATH
19262 do
19263   IFS=$as_save_IFS
19264   test -z "$as_dir" && as_dir=.
19265   for ac_exec_ext in '' $ac_executable_extensions; do
19266   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19267     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19269     break 2
19270   fi
19271 done
19272 done
19273
19274   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19275   ;;
19276 esac
19277 fi
19278 RUSERS=$ac_cv_path_RUSERS
19279
19280 if test -n "$RUSERS"; then
19281   echo "$as_me:$LINENO: result: $RUSERS" >&5
19282 echo "${ECHO_T}$RUSERS" >&6
19283 else
19284   echo "$as_me:$LINENO: result: no" >&5
19285 echo "${ECHO_T}no" >&6
19286 fi
19287
19288
19289 missing_dir=`cd $ac_aux_dir && pwd`
19290 # expand $ac_aux_dir to an absolute path
19291 am_aux_dir=`cd $ac_aux_dir && pwd`
19292
19293 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19294 # Use eval to expand $SHELL
19295 if eval "$MISSING --run true"; then
19296   am_missing_run="$MISSING --run "
19297 else
19298   am_missing_run=
19299   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
19300 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19301 fi
19302
19303
19304 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
19305
19306
19307 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19308
19309
19310 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19311
19312
19313 # Extract the first word of "locate", so it can be a program name with args.
19314 set dummy locate; ac_word=$2
19315 echo "$as_me:$LINENO: checking for $ac_word" >&5
19316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19317 if test "${ac_cv_path_LOCATE+set}" = set; then
19318   echo $ECHO_N "(cached) $ECHO_C" >&6
19319 else
19320   case $LOCATE in
19321   [\\/]* | ?:[\\/]*)
19322   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19323   ;;
19324   *)
19325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19326 for as_dir in $PATH
19327 do
19328   IFS=$as_save_IFS
19329   test -z "$as_dir" && as_dir=.
19330   for ac_exec_ext in '' $ac_executable_extensions; do
19331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19332     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19334     break 2
19335   fi
19336 done
19337 done
19338
19339   ;;
19340 esac
19341 fi
19342 LOCATE=$ac_cv_path_LOCATE
19343
19344 if test -n "$LOCATE"; then
19345   echo "$as_me:$LINENO: result: $LOCATE" >&5
19346 echo "${ECHO_T}$LOCATE" >&6
19347 else
19348   echo "$as_me:$LINENO: result: no" >&5
19349 echo "${ECHO_T}no" >&6
19350 fi
19351
19352 # Extract the first word of "dirname", so it can be a program name with args.
19353 set dummy dirname; ac_word=$2
19354 echo "$as_me:$LINENO: checking for $ac_word" >&5
19355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19356 if test "${ac_cv_path_DIRNAME+set}" = set; then
19357   echo $ECHO_N "(cached) $ECHO_C" >&6
19358 else
19359   case $DIRNAME in
19360   [\\/]* | ?:[\\/]*)
19361   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19362   ;;
19363   *)
19364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19365 for as_dir in $PATH
19366 do
19367   IFS=$as_save_IFS
19368   test -z "$as_dir" && as_dir=.
19369   for ac_exec_ext in '' $ac_executable_extensions; do
19370   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19371     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19373     break 2
19374   fi
19375 done
19376 done
19377
19378   ;;
19379 esac
19380 fi
19381 DIRNAME=$ac_cv_path_DIRNAME
19382
19383 if test -n "$DIRNAME"; then
19384   echo "$as_me:$LINENO: result: $DIRNAME" >&5
19385 echo "${ECHO_T}$DIRNAME" >&6
19386 else
19387   echo "$as_me:$LINENO: result: no" >&5
19388 echo "${ECHO_T}no" >&6
19389 fi
19390
19391 # Extract the first word of "grep", so it can be a program name with args.
19392 set dummy grep; ac_word=$2
19393 echo "$as_me:$LINENO: checking for $ac_word" >&5
19394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19395 if test "${ac_cv_path_GREP+set}" = set; then
19396   echo $ECHO_N "(cached) $ECHO_C" >&6
19397 else
19398   case $GREP in
19399   [\\/]* | ?:[\\/]*)
19400   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19401   ;;
19402   *)
19403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19404 for as_dir in $PATH
19405 do
19406   IFS=$as_save_IFS
19407   test -z "$as_dir" && as_dir=.
19408   for ac_exec_ext in '' $ac_executable_extensions; do
19409   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19410     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19412     break 2
19413   fi
19414 done
19415 done
19416
19417   ;;
19418 esac
19419 fi
19420 GREP=$ac_cv_path_GREP
19421
19422 if test -n "$GREP"; then
19423   echo "$as_me:$LINENO: result: $GREP" >&5
19424 echo "${ECHO_T}$GREP" >&6
19425 else
19426   echo "$as_me:$LINENO: result: no" >&5
19427 echo "${ECHO_T}no" >&6
19428 fi
19429
19430
19431
19432 old_CFLAGS=$CFLAGS
19433 if test "x$WITH_THREADS" = "xyes"; then
19434   if test $ac_cv_prog_suncc = "yes"; then
19435     CFLAGS="$CFLAGS -mt"
19436   fi
19437
19438
19439 for ac_header in pthread.h
19440 do
19441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19443   echo "$as_me:$LINENO: checking for $ac_header" >&5
19444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19446   echo $ECHO_N "(cached) $ECHO_C" >&6
19447 fi
19448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19450 else
19451   # Is the header compilable?
19452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19454 cat >conftest.$ac_ext <<_ACEOF
19455 #line $LINENO "configure"
19456 /* confdefs.h.  */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h.  */
19461 $ac_includes_default
19462 #include <$ac_header>
19463 _ACEOF
19464 rm -f conftest.$ac_objext
19465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19466   (eval $ac_compile) 2>&5
19467   ac_status=$?
19468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469   (exit $ac_status); } &&
19470          { ac_try='test -s conftest.$ac_objext'
19471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472   (eval $ac_try) 2>&5
19473   ac_status=$?
19474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475   (exit $ac_status); }; }; then
19476   ac_header_compiler=yes
19477 else
19478   echo "$as_me: failed program was:" >&5
19479 sed 's/^/| /' conftest.$ac_ext >&5
19480
19481 ac_header_compiler=no
19482 fi
19483 rm -f conftest.$ac_objext conftest.$ac_ext
19484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19485 echo "${ECHO_T}$ac_header_compiler" >&6
19486
19487 # Is the header present?
19488 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19490 cat >conftest.$ac_ext <<_ACEOF
19491 #line $LINENO "configure"
19492 /* confdefs.h.  */
19493 _ACEOF
19494 cat confdefs.h >>conftest.$ac_ext
19495 cat >>conftest.$ac_ext <<_ACEOF
19496 /* end confdefs.h.  */
19497 #include <$ac_header>
19498 _ACEOF
19499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19500   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19501   ac_status=$?
19502   grep -v '^ *+' conftest.er1 >conftest.err
19503   rm -f conftest.er1
19504   cat conftest.err >&5
19505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506   (exit $ac_status); } >/dev/null; then
19507   if test -s conftest.err; then
19508     ac_cpp_err=$ac_c_preproc_warn_flag
19509   else
19510     ac_cpp_err=
19511   fi
19512 else
19513   ac_cpp_err=yes
19514 fi
19515 if test -z "$ac_cpp_err"; then
19516   ac_header_preproc=yes
19517 else
19518   echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19520
19521   ac_header_preproc=no
19522 fi
19523 rm -f conftest.err conftest.$ac_ext
19524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19525 echo "${ECHO_T}$ac_header_preproc" >&6
19526
19527 # So?  What about this header?
19528 case $ac_header_compiler:$ac_header_preproc in
19529   yes:no )
19530     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19532     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19534     (
19535       cat <<\_ASBOX
19536 ## ------------------------------------ ##
19537 ## Report this to bug-autoconf@gnu.org. ##
19538 ## ------------------------------------ ##
19539 _ASBOX
19540     ) |
19541       sed "s/^/$as_me: WARNING:     /" >&2
19542     ;;
19543   no:yes )
19544     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19546     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19548     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19550     (
19551       cat <<\_ASBOX
19552 ## ------------------------------------ ##
19553 ## Report this to bug-autoconf@gnu.org. ##
19554 ## ------------------------------------ ##
19555 _ASBOX
19556     ) |
19557       sed "s/^/$as_me: WARNING:     /" >&2
19558     ;;
19559 esac
19560 echo "$as_me:$LINENO: checking for $ac_header" >&5
19561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19563   echo $ECHO_N "(cached) $ECHO_C" >&6
19564 else
19565   eval "$as_ac_Header=$ac_header_preproc"
19566 fi
19567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19569
19570 fi
19571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19572   cat >>confdefs.h <<_ACEOF
19573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19574 _ACEOF
19575
19576 else
19577    WITH_THREADS="no"
19578 fi
19579
19580 done
19581
19582
19583   echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19584 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19585 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19586   echo $ECHO_N "(cached) $ECHO_C" >&6
19587 else
19588   ac_check_lib_save_LIBS=$LIBS
19589 LIBS="-lpthread  $LIBS"
19590 cat >conftest.$ac_ext <<_ACEOF
19591 #line $LINENO "configure"
19592 /* confdefs.h.  */
19593 _ACEOF
19594 cat confdefs.h >>conftest.$ac_ext
19595 cat >>conftest.$ac_ext <<_ACEOF
19596 /* end confdefs.h.  */
19597
19598 /* Override any gcc2 internal prototype to avoid an error.  */
19599 #ifdef __cplusplus
19600 extern "C"
19601 #endif
19602 /* We use char because int might match the return type of a gcc2
19603    builtin and then its argument prototype would still apply.  */
19604 char pthread_create ();
19605 int
19606 main ()
19607 {
19608 pthread_create ();
19609   ;
19610   return 0;
19611 }
19612 _ACEOF
19613 rm -f conftest.$ac_objext conftest$ac_exeext
19614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19615   (eval $ac_link) 2>&5
19616   ac_status=$?
19617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618   (exit $ac_status); } &&
19619          { ac_try='test -s conftest$ac_exeext'
19620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621   (eval $ac_try) 2>&5
19622   ac_status=$?
19623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624   (exit $ac_status); }; }; then
19625   ac_cv_lib_pthread_pthread_create=yes
19626 else
19627   echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19629
19630 ac_cv_lib_pthread_pthread_create=no
19631 fi
19632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19633 LIBS=$ac_check_lib_save_LIBS
19634 fi
19635 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19636 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19637 if test $ac_cv_lib_pthread_pthread_create = yes; then
19638    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
19639                   LIBS="$LIBS -lpthread"
19640 else
19641   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
19642 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
19643 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
19644   echo $ECHO_N "(cached) $ECHO_C" >&6
19645 else
19646   ac_check_lib_save_LIBS=$LIBS
19647 LIBS="-lc_r  $LIBS"
19648 cat >conftest.$ac_ext <<_ACEOF
19649 #line $LINENO "configure"
19650 /* confdefs.h.  */
19651 _ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h.  */
19655
19656 /* Override any gcc2 internal prototype to avoid an error.  */
19657 #ifdef __cplusplus
19658 extern "C"
19659 #endif
19660 /* We use char because int might match the return type of a gcc2
19661    builtin and then its argument prototype would still apply.  */
19662 char pthread_create ();
19663 int
19664 main ()
19665 {
19666 pthread_create ();
19667   ;
19668   return 0;
19669 }
19670 _ACEOF
19671 rm -f conftest.$ac_objext conftest$ac_exeext
19672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19673   (eval $ac_link) 2>&5
19674   ac_status=$?
19675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676   (exit $ac_status); } &&
19677          { ac_try='test -s conftest$ac_exeext'
19678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679   (eval $ac_try) 2>&5
19680   ac_status=$?
19681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682   (exit $ac_status); }; }; then
19683   ac_cv_lib_c_r_pthread_create=yes
19684 else
19685   echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19687
19688 ac_cv_lib_c_r_pthread_create=no
19689 fi
19690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19691 LIBS=$ac_check_lib_save_LIBS
19692 fi
19693 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
19694 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
19695 if test $ac_cv_lib_c_r_pthread_create = yes; then
19696    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
19697 else
19698    WITH_THREADS="no"
19699
19700 fi
19701
19702
19703 fi
19704
19705 fi
19706
19707 if test "x$WITH_THREADS" != "xyes"; then
19708   CFLAGS=$old_CFLAGS
19709   ac_cv_header_pthread_h="no"
19710   WITH_THREADS=no
19711 else
19712
19713   echo "$as_me:$LINENO: checking for library containing sem_init" >&5
19714 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
19715 if test "${ac_cv_search_sem_init+set}" = set; then
19716   echo $ECHO_N "(cached) $ECHO_C" >&6
19717 else
19718   ac_func_search_save_LIBS=$LIBS
19719 ac_cv_search_sem_init=no
19720 cat >conftest.$ac_ext <<_ACEOF
19721 #line $LINENO "configure"
19722 /* confdefs.h.  */
19723 _ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h.  */
19727
19728 /* Override any gcc2 internal prototype to avoid an error.  */
19729 #ifdef __cplusplus
19730 extern "C"
19731 #endif
19732 /* We use char because int might match the return type of a gcc2
19733    builtin and then its argument prototype would still apply.  */
19734 char sem_init ();
19735 int
19736 main ()
19737 {
19738 sem_init ();
19739   ;
19740   return 0;
19741 }
19742 _ACEOF
19743 rm -f conftest.$ac_objext conftest$ac_exeext
19744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19745   (eval $ac_link) 2>&5
19746   ac_status=$?
19747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748   (exit $ac_status); } &&
19749          { ac_try='test -s conftest$ac_exeext'
19750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751   (eval $ac_try) 2>&5
19752   ac_status=$?
19753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754   (exit $ac_status); }; }; then
19755   ac_cv_search_sem_init="none required"
19756 else
19757   echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19759
19760 fi
19761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19762 if test "$ac_cv_search_sem_init" = no; then
19763   for ac_lib in pthread sem posix4 rt; do
19764     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19765     cat >conftest.$ac_ext <<_ACEOF
19766 #line $LINENO "configure"
19767 /* confdefs.h.  */
19768 _ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h.  */
19772
19773 /* Override any gcc2 internal prototype to avoid an error.  */
19774 #ifdef __cplusplus
19775 extern "C"
19776 #endif
19777 /* We use char because int might match the return type of a gcc2
19778    builtin and then its argument prototype would still apply.  */
19779 char sem_init ();
19780 int
19781 main ()
19782 {
19783 sem_init ();
19784   ;
19785   return 0;
19786 }
19787 _ACEOF
19788 rm -f conftest.$ac_objext conftest$ac_exeext
19789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19790   (eval $ac_link) 2>&5
19791   ac_status=$?
19792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793   (exit $ac_status); } &&
19794          { ac_try='test -s conftest$ac_exeext'
19795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796   (eval $ac_try) 2>&5
19797   ac_status=$?
19798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799   (exit $ac_status); }; }; then
19800   ac_cv_search_sem_init="-l$ac_lib"
19801 break
19802 else
19803   echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19805
19806 fi
19807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19808   done
19809 fi
19810 LIBS=$ac_func_search_save_LIBS
19811 fi
19812 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
19813 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
19814 if test "$ac_cv_search_sem_init" != no; then
19815   test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
19816
19817 else
19818   { { echo "$as_me:$LINENO: error: -lsem not found.  You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&5
19819 echo "$as_me: error: -lsem not found.  You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&2;}
19820    { (exit 1); exit 1; }; }
19821
19822 fi
19823
19824 fi
19825
19826
19827 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
19828 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
19829 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
19830   echo $ECHO_N "(cached) $ECHO_C" >&6
19831 else
19832   ac_check_lib_save_LIBS=$LIBS
19833 LIBS="-lsocket  $LIBS"
19834 cat >conftest.$ac_ext <<_ACEOF
19835 #line $LINENO "configure"
19836 /* confdefs.h.  */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h.  */
19841
19842 /* Override any gcc2 internal prototype to avoid an error.  */
19843 #ifdef __cplusplus
19844 extern "C"
19845 #endif
19846 /* We use char because int might match the return type of a gcc2
19847    builtin and then its argument prototype would still apply.  */
19848 char getsockname ();
19849 int
19850 main ()
19851 {
19852 getsockname ();
19853   ;
19854   return 0;
19855 }
19856 _ACEOF
19857 rm -f conftest.$ac_objext conftest$ac_exeext
19858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19859   (eval $ac_link) 2>&5
19860   ac_status=$?
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); } &&
19863          { ac_try='test -s conftest$ac_exeext'
19864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865   (eval $ac_try) 2>&5
19866   ac_status=$?
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); }; }; then
19869   ac_cv_lib_socket_getsockname=yes
19870 else
19871   echo "$as_me: failed program was:" >&5
19872 sed 's/^/| /' conftest.$ac_ext >&5
19873
19874 ac_cv_lib_socket_getsockname=no
19875 fi
19876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19877 LIBS=$ac_check_lib_save_LIBS
19878 fi
19879 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
19880 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
19881 if test $ac_cv_lib_socket_getsockname = yes; then
19882   cat >>confdefs.h <<_ACEOF
19883 #define HAVE_LIBSOCKET 1
19884 _ACEOF
19885
19886   LIBS="-lsocket $LIBS"
19887
19888 fi
19889
19890
19891
19892 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
19893 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
19894 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
19895   echo $ECHO_N "(cached) $ECHO_C" >&6
19896 else
19897   ac_check_lib_save_LIBS=$LIBS
19898 LIBS="-lresolv  $LIBS"
19899 cat >conftest.$ac_ext <<_ACEOF
19900 #line $LINENO "configure"
19901 /* confdefs.h.  */
19902 _ACEOF
19903 cat confdefs.h >>conftest.$ac_ext
19904 cat >>conftest.$ac_ext <<_ACEOF
19905 /* end confdefs.h.  */
19906
19907 /* Override any gcc2 internal prototype to avoid an error.  */
19908 #ifdef __cplusplus
19909 extern "C"
19910 #endif
19911 /* We use char because int might match the return type of a gcc2
19912    builtin and then its argument prototype would still apply.  */
19913 char inet_aton ();
19914 int
19915 main ()
19916 {
19917 inet_aton ();
19918   ;
19919   return 0;
19920 }
19921 _ACEOF
19922 rm -f conftest.$ac_objext conftest$ac_exeext
19923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19924   (eval $ac_link) 2>&5
19925   ac_status=$?
19926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927   (exit $ac_status); } &&
19928          { ac_try='test -s conftest$ac_exeext'
19929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930   (eval $ac_try) 2>&5
19931   ac_status=$?
19932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933   (exit $ac_status); }; }; then
19934   ac_cv_lib_resolv_inet_aton=yes
19935 else
19936   echo "$as_me: failed program was:" >&5
19937 sed 's/^/| /' conftest.$ac_ext >&5
19938
19939 ac_cv_lib_resolv_inet_aton=no
19940 fi
19941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19942 LIBS=$ac_check_lib_save_LIBS
19943 fi
19944 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
19945 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
19946 if test $ac_cv_lib_resolv_inet_aton = yes; then
19947   cat >>confdefs.h <<_ACEOF
19948 #define HAVE_LIBRESOLV 1
19949 _ACEOF
19950
19951   LIBS="-lresolv $LIBS"
19952
19953 fi
19954
19955
19956
19957 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
19958 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
19959 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
19960   echo $ECHO_N "(cached) $ECHO_C" >&6
19961 else
19962   ac_check_lib_save_LIBS=$LIBS
19963 LIBS="-lnsl  $LIBS"
19964 cat >conftest.$ac_ext <<_ACEOF
19965 #line $LINENO "configure"
19966 /* confdefs.h.  */
19967 _ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h.  */
19971
19972 /* Override any gcc2 internal prototype to avoid an error.  */
19973 #ifdef __cplusplus
19974 extern "C"
19975 #endif
19976 /* We use char because int might match the return type of a gcc2
19977    builtin and then its argument prototype would still apply.  */
19978 char inet_ntoa ();
19979 int
19980 main ()
19981 {
19982 inet_ntoa ();
19983   ;
19984   return 0;
19985 }
19986 _ACEOF
19987 rm -f conftest.$ac_objext conftest$ac_exeext
19988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19989   (eval $ac_link) 2>&5
19990   ac_status=$?
19991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992   (exit $ac_status); } &&
19993          { ac_try='test -s conftest$ac_exeext'
19994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995   (eval $ac_try) 2>&5
19996   ac_status=$?
19997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998   (exit $ac_status); }; }; then
19999   ac_cv_lib_nsl_inet_ntoa=yes
20000 else
20001   echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20003
20004 ac_cv_lib_nsl_inet_ntoa=no
20005 fi
20006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20007 LIBS=$ac_check_lib_save_LIBS
20008 fi
20009 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20010 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
20011 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20012   cat >>confdefs.h <<_ACEOF
20013 #define HAVE_LIBNSL 1
20014 _ACEOF
20015
20016   LIBS="-lnsl $LIBS"
20017
20018 fi
20019
20020
20021
20022 case "$host" in
20023 *-interix*)
20024         CFLAGS="$CFLAGS -D_ALL_SOURCE"
20025         ;;
20026 esac
20027
20028
20029
20030
20031
20032
20033 ac_header_dirent=no
20034 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20035   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20036 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20037 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20039   echo $ECHO_N "(cached) $ECHO_C" >&6
20040 else
20041   cat >conftest.$ac_ext <<_ACEOF
20042 #line $LINENO "configure"
20043 /* confdefs.h.  */
20044 _ACEOF
20045 cat confdefs.h >>conftest.$ac_ext
20046 cat >>conftest.$ac_ext <<_ACEOF
20047 /* end confdefs.h.  */
20048 #include <sys/types.h>
20049 #include <$ac_hdr>
20050
20051 int
20052 main ()
20053 {
20054 if ((DIR *) 0)
20055 return 0;
20056   ;
20057   return 0;
20058 }
20059 _ACEOF
20060 rm -f conftest.$ac_objext
20061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20062   (eval $ac_compile) 2>&5
20063   ac_status=$?
20064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065   (exit $ac_status); } &&
20066          { ac_try='test -s conftest.$ac_objext'
20067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068   (eval $ac_try) 2>&5
20069   ac_status=$?
20070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); }; }; then
20072   eval "$as_ac_Header=yes"
20073 else
20074   echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20076
20077 eval "$as_ac_Header=no"
20078 fi
20079 rm -f conftest.$ac_objext conftest.$ac_ext
20080 fi
20081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20084   cat >>confdefs.h <<_ACEOF
20085 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20086 _ACEOF
20087
20088 ac_header_dirent=$ac_hdr; break
20089 fi
20090
20091 done
20092 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20093 if test $ac_header_dirent = dirent.h; then
20094   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20095 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20096 if test "${ac_cv_search_opendir+set}" = set; then
20097   echo $ECHO_N "(cached) $ECHO_C" >&6
20098 else
20099   ac_func_search_save_LIBS=$LIBS
20100 ac_cv_search_opendir=no
20101 cat >conftest.$ac_ext <<_ACEOF
20102 #line $LINENO "configure"
20103 /* confdefs.h.  */
20104 _ACEOF
20105 cat confdefs.h >>conftest.$ac_ext
20106 cat >>conftest.$ac_ext <<_ACEOF
20107 /* end confdefs.h.  */
20108
20109 /* Override any gcc2 internal prototype to avoid an error.  */
20110 #ifdef __cplusplus
20111 extern "C"
20112 #endif
20113 /* We use char because int might match the return type of a gcc2
20114    builtin and then its argument prototype would still apply.  */
20115 char opendir ();
20116 int
20117 main ()
20118 {
20119 opendir ();
20120   ;
20121   return 0;
20122 }
20123 _ACEOF
20124 rm -f conftest.$ac_objext conftest$ac_exeext
20125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20126   (eval $ac_link) 2>&5
20127   ac_status=$?
20128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129   (exit $ac_status); } &&
20130          { ac_try='test -s conftest$ac_exeext'
20131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20132   (eval $ac_try) 2>&5
20133   ac_status=$?
20134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135   (exit $ac_status); }; }; then
20136   ac_cv_search_opendir="none required"
20137 else
20138   echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20140
20141 fi
20142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20143 if test "$ac_cv_search_opendir" = no; then
20144   for ac_lib in dir; do
20145     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20146     cat >conftest.$ac_ext <<_ACEOF
20147 #line $LINENO "configure"
20148 /* confdefs.h.  */
20149 _ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h.  */
20153
20154 /* Override any gcc2 internal prototype to avoid an error.  */
20155 #ifdef __cplusplus
20156 extern "C"
20157 #endif
20158 /* We use char because int might match the return type of a gcc2
20159    builtin and then its argument prototype would still apply.  */
20160 char opendir ();
20161 int
20162 main ()
20163 {
20164 opendir ();
20165   ;
20166   return 0;
20167 }
20168 _ACEOF
20169 rm -f conftest.$ac_objext conftest$ac_exeext
20170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20171   (eval $ac_link) 2>&5
20172   ac_status=$?
20173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174   (exit $ac_status); } &&
20175          { ac_try='test -s conftest$ac_exeext'
20176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177   (eval $ac_try) 2>&5
20178   ac_status=$?
20179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180   (exit $ac_status); }; }; then
20181   ac_cv_search_opendir="-l$ac_lib"
20182 break
20183 else
20184   echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20186
20187 fi
20188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20189   done
20190 fi
20191 LIBS=$ac_func_search_save_LIBS
20192 fi
20193 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20194 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20195 if test "$ac_cv_search_opendir" != no; then
20196   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20197
20198 fi
20199
20200 else
20201   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20202 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20203 if test "${ac_cv_search_opendir+set}" = set; then
20204   echo $ECHO_N "(cached) $ECHO_C" >&6
20205 else
20206   ac_func_search_save_LIBS=$LIBS
20207 ac_cv_search_opendir=no
20208 cat >conftest.$ac_ext <<_ACEOF
20209 #line $LINENO "configure"
20210 /* confdefs.h.  */
20211 _ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h.  */
20215
20216 /* Override any gcc2 internal prototype to avoid an error.  */
20217 #ifdef __cplusplus
20218 extern "C"
20219 #endif
20220 /* We use char because int might match the return type of a gcc2
20221    builtin and then its argument prototype would still apply.  */
20222 char opendir ();
20223 int
20224 main ()
20225 {
20226 opendir ();
20227   ;
20228   return 0;
20229 }
20230 _ACEOF
20231 rm -f conftest.$ac_objext conftest$ac_exeext
20232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20233   (eval $ac_link) 2>&5
20234   ac_status=$?
20235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236   (exit $ac_status); } &&
20237          { ac_try='test -s conftest$ac_exeext'
20238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239   (eval $ac_try) 2>&5
20240   ac_status=$?
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); }; }; then
20243   ac_cv_search_opendir="none required"
20244 else
20245   echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20247
20248 fi
20249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20250 if test "$ac_cv_search_opendir" = no; then
20251   for ac_lib in x; do
20252     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20253     cat >conftest.$ac_ext <<_ACEOF
20254 #line $LINENO "configure"
20255 /* confdefs.h.  */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h.  */
20260
20261 /* Override any gcc2 internal prototype to avoid an error.  */
20262 #ifdef __cplusplus
20263 extern "C"
20264 #endif
20265 /* We use char because int might match the return type of a gcc2
20266    builtin and then its argument prototype would still apply.  */
20267 char opendir ();
20268 int
20269 main ()
20270 {
20271 opendir ();
20272   ;
20273   return 0;
20274 }
20275 _ACEOF
20276 rm -f conftest.$ac_objext conftest$ac_exeext
20277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20278   (eval $ac_link) 2>&5
20279   ac_status=$?
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); } &&
20282          { ac_try='test -s conftest$ac_exeext'
20283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284   (eval $ac_try) 2>&5
20285   ac_status=$?
20286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287   (exit $ac_status); }; }; then
20288   ac_cv_search_opendir="-l$ac_lib"
20289 break
20290 else
20291   echo "$as_me: failed program was:" >&5
20292 sed 's/^/| /' conftest.$ac_ext >&5
20293
20294 fi
20295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20296   done
20297 fi
20298 LIBS=$ac_func_search_save_LIBS
20299 fi
20300 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20301 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20302 if test "$ac_cv_search_opendir" != no; then
20303   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20304
20305 fi
20306
20307 fi
20308
20309 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20310 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20311 if test "${ac_cv_header_stdc+set}" = set; then
20312   echo $ECHO_N "(cached) $ECHO_C" >&6
20313 else
20314   cat >conftest.$ac_ext <<_ACEOF
20315 #line $LINENO "configure"
20316 /* confdefs.h.  */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h.  */
20321 #include <stdlib.h>
20322 #include <stdarg.h>
20323 #include <string.h>
20324 #include <float.h>
20325
20326 int
20327 main ()
20328 {
20329
20330   ;
20331   return 0;
20332 }
20333 _ACEOF
20334 rm -f conftest.$ac_objext
20335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20336   (eval $ac_compile) 2>&5
20337   ac_status=$?
20338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339   (exit $ac_status); } &&
20340          { ac_try='test -s conftest.$ac_objext'
20341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342   (eval $ac_try) 2>&5
20343   ac_status=$?
20344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345   (exit $ac_status); }; }; then
20346   ac_cv_header_stdc=yes
20347 else
20348   echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20350
20351 ac_cv_header_stdc=no
20352 fi
20353 rm -f conftest.$ac_objext conftest.$ac_ext
20354
20355 if test $ac_cv_header_stdc = yes; then
20356   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20357   cat >conftest.$ac_ext <<_ACEOF
20358 #line $LINENO "configure"
20359 /* confdefs.h.  */
20360 _ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h.  */
20364 #include <string.h>
20365
20366 _ACEOF
20367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20368   $EGREP "memchr" >/dev/null 2>&1; then
20369   :
20370 else
20371   ac_cv_header_stdc=no
20372 fi
20373 rm -f conftest*
20374
20375 fi
20376
20377 if test $ac_cv_header_stdc = yes; then
20378   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20379   cat >conftest.$ac_ext <<_ACEOF
20380 #line $LINENO "configure"
20381 /* confdefs.h.  */
20382 _ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h.  */
20386 #include <stdlib.h>
20387
20388 _ACEOF
20389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20390   $EGREP "free" >/dev/null 2>&1; then
20391   :
20392 else
20393   ac_cv_header_stdc=no
20394 fi
20395 rm -f conftest*
20396
20397 fi
20398
20399 if test $ac_cv_header_stdc = yes; then
20400   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20401   if test "$cross_compiling" = yes; then
20402   :
20403 else
20404   cat >conftest.$ac_ext <<_ACEOF
20405 #line $LINENO "configure"
20406 /* confdefs.h.  */
20407 _ACEOF
20408 cat confdefs.h >>conftest.$ac_ext
20409 cat >>conftest.$ac_ext <<_ACEOF
20410 /* end confdefs.h.  */
20411 #include <ctype.h>
20412 #if ((' ' & 0x0FF) == 0x020)
20413 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20414 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20415 #else
20416 # define ISLOWER(c) \
20417                    (('a' <= (c) && (c) <= 'i') \
20418                      || ('j' <= (c) && (c) <= 'r') \
20419                      || ('s' <= (c) && (c) <= 'z'))
20420 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20421 #endif
20422
20423 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20424 int
20425 main ()
20426 {
20427   int i;
20428   for (i = 0; i < 256; i++)
20429     if (XOR (islower (i), ISLOWER (i))
20430         || toupper (i) != TOUPPER (i))
20431       exit(2);
20432   exit (0);
20433 }
20434 _ACEOF
20435 rm -f conftest$ac_exeext
20436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20437   (eval $ac_link) 2>&5
20438   ac_status=$?
20439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20442   (eval $ac_try) 2>&5
20443   ac_status=$?
20444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445   (exit $ac_status); }; }; then
20446   :
20447 else
20448   echo "$as_me: program exited with status $ac_status" >&5
20449 echo "$as_me: failed program was:" >&5
20450 sed 's/^/| /' conftest.$ac_ext >&5
20451
20452 ( exit $ac_status )
20453 ac_cv_header_stdc=no
20454 fi
20455 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20456 fi
20457 fi
20458 fi
20459 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20460 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20461 if test $ac_cv_header_stdc = yes; then
20462
20463 cat >>confdefs.h <<\_ACEOF
20464 #define STDC_HEADERS 1
20465 _ACEOF
20466
20467 fi
20468
20469 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20470 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20471 if test "${ac_cv_header_time+set}" = set; then
20472   echo $ECHO_N "(cached) $ECHO_C" >&6
20473 else
20474   cat >conftest.$ac_ext <<_ACEOF
20475 #line $LINENO "configure"
20476 /* confdefs.h.  */
20477 _ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h.  */
20481 #include <sys/types.h>
20482 #include <sys/time.h>
20483 #include <time.h>
20484
20485 int
20486 main ()
20487 {
20488 if ((struct tm *) 0)
20489 return 0;
20490   ;
20491   return 0;
20492 }
20493 _ACEOF
20494 rm -f conftest.$ac_objext
20495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20496   (eval $ac_compile) 2>&5
20497   ac_status=$?
20498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499   (exit $ac_status); } &&
20500          { ac_try='test -s conftest.$ac_objext'
20501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502   (eval $ac_try) 2>&5
20503   ac_status=$?
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); }; }; then
20506   ac_cv_header_time=yes
20507 else
20508   echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20510
20511 ac_cv_header_time=no
20512 fi
20513 rm -f conftest.$ac_objext conftest.$ac_ext
20514 fi
20515 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20516 echo "${ECHO_T}$ac_cv_header_time" >&6
20517 if test $ac_cv_header_time = yes; then
20518
20519 cat >>confdefs.h <<\_ACEOF
20520 #define TIME_WITH_SYS_TIME 1
20521 _ACEOF
20522
20523 fi
20524
20525 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20526 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20527 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20528   echo $ECHO_N "(cached) $ECHO_C" >&6
20529 else
20530   cat >conftest.$ac_ext <<_ACEOF
20531 #line $LINENO "configure"
20532 /* confdefs.h.  */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h.  */
20537 #include <sys/types.h>
20538 #include <sys/wait.h>
20539 #ifndef WEXITSTATUS
20540 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20541 #endif
20542 #ifndef WIFEXITED
20543 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20544 #endif
20545
20546 int
20547 main ()
20548 {
20549   int s;
20550   wait (&s);
20551   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20552   ;
20553   return 0;
20554 }
20555 _ACEOF
20556 rm -f conftest.$ac_objext
20557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20558   (eval $ac_compile) 2>&5
20559   ac_status=$?
20560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561   (exit $ac_status); } &&
20562          { ac_try='test -s conftest.$ac_objext'
20563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564   (eval $ac_try) 2>&5
20565   ac_status=$?
20566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567   (exit $ac_status); }; }; then
20568   ac_cv_header_sys_wait_h=yes
20569 else
20570   echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20572
20573 ac_cv_header_sys_wait_h=no
20574 fi
20575 rm -f conftest.$ac_objext conftest.$ac_ext
20576 fi
20577 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20578 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20579 if test $ac_cv_header_sys_wait_h = yes; then
20580
20581 cat >>confdefs.h <<\_ACEOF
20582 #define HAVE_SYS_WAIT_H 1
20583 _ACEOF
20584
20585 fi
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616 for ac_header in \
20617         unistd.h \
20618         crypt.h \
20619         errno.h \
20620         resource.h \
20621         getopt.h \
20622         malloc.h \
20623         utmp.h \
20624         utmpx.h \
20625         signal.h \
20626         sys/select.h \
20627         syslog.h \
20628         inttypes.h \
20629         stdint.h \
20630         stdio.h \
20631         netdb.h \
20632         semaphore.h \
20633         arpa/inet.h \
20634         netinet/in.h \
20635         sys/types.h \
20636         sys/socket.h \
20637         sys/time.h \
20638         sys/wait.h \
20639         sys/security.h \
20640         fcntl.h \
20641         sys/fcntl.h \
20642         prot.h \
20643         sia.h \
20644         siad.h
20645
20646 do
20647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20649   echo "$as_me:$LINENO: checking for $ac_header" >&5
20650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20652   echo $ECHO_N "(cached) $ECHO_C" >&6
20653 fi
20654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20656 else
20657   # Is the header compilable?
20658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20660 cat >conftest.$ac_ext <<_ACEOF
20661 #line $LINENO "configure"
20662 /* confdefs.h.  */
20663 _ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h.  */
20667 $ac_includes_default
20668 #include <$ac_header>
20669 _ACEOF
20670 rm -f conftest.$ac_objext
20671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20672   (eval $ac_compile) 2>&5
20673   ac_status=$?
20674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675   (exit $ac_status); } &&
20676          { ac_try='test -s conftest.$ac_objext'
20677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20678   (eval $ac_try) 2>&5
20679   ac_status=$?
20680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681   (exit $ac_status); }; }; then
20682   ac_header_compiler=yes
20683 else
20684   echo "$as_me: failed program was:" >&5
20685 sed 's/^/| /' conftest.$ac_ext >&5
20686
20687 ac_header_compiler=no
20688 fi
20689 rm -f conftest.$ac_objext conftest.$ac_ext
20690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20691 echo "${ECHO_T}$ac_header_compiler" >&6
20692
20693 # Is the header present?
20694 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20696 cat >conftest.$ac_ext <<_ACEOF
20697 #line $LINENO "configure"
20698 /* confdefs.h.  */
20699 _ACEOF
20700 cat confdefs.h >>conftest.$ac_ext
20701 cat >>conftest.$ac_ext <<_ACEOF
20702 /* end confdefs.h.  */
20703 #include <$ac_header>
20704 _ACEOF
20705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20706   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20707   ac_status=$?
20708   grep -v '^ *+' conftest.er1 >conftest.err
20709   rm -f conftest.er1
20710   cat conftest.err >&5
20711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712   (exit $ac_status); } >/dev/null; then
20713   if test -s conftest.err; then
20714     ac_cpp_err=$ac_c_preproc_warn_flag
20715   else
20716     ac_cpp_err=
20717   fi
20718 else
20719   ac_cpp_err=yes
20720 fi
20721 if test -z "$ac_cpp_err"; then
20722   ac_header_preproc=yes
20723 else
20724   echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20726
20727   ac_header_preproc=no
20728 fi
20729 rm -f conftest.err conftest.$ac_ext
20730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20731 echo "${ECHO_T}$ac_header_preproc" >&6
20732
20733 # So?  What about this header?
20734 case $ac_header_compiler:$ac_header_preproc in
20735   yes:no )
20736     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20740     (
20741       cat <<\_ASBOX
20742 ## ------------------------------------ ##
20743 ## Report this to bug-autoconf@gnu.org. ##
20744 ## ------------------------------------ ##
20745 _ASBOX
20746     ) |
20747       sed "s/^/$as_me: WARNING:     /" >&2
20748     ;;
20749   no:yes )
20750     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20752     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20754     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20756     (
20757       cat <<\_ASBOX
20758 ## ------------------------------------ ##
20759 ## Report this to bug-autoconf@gnu.org. ##
20760 ## ------------------------------------ ##
20761 _ASBOX
20762     ) |
20763       sed "s/^/$as_me: WARNING:     /" >&2
20764     ;;
20765 esac
20766 echo "$as_me:$LINENO: checking for $ac_header" >&5
20767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20769   echo $ECHO_N "(cached) $ECHO_C" >&6
20770 else
20771   eval "$as_ac_Header=$ac_header_preproc"
20772 fi
20773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20775
20776 fi
20777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20778   cat >>confdefs.h <<_ACEOF
20779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20780 _ACEOF
20781
20782 fi
20783
20784 done
20785
20786
20787 REGEX=no
20788 if test "${ac_cv_header_regex_h+set}" = set; then
20789   echo "$as_me:$LINENO: checking for regex.h" >&5
20790 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20791 if test "${ac_cv_header_regex_h+set}" = set; then
20792   echo $ECHO_N "(cached) $ECHO_C" >&6
20793 fi
20794 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20795 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20796 else
20797   # Is the header compilable?
20798 echo "$as_me:$LINENO: checking regex.h usability" >&5
20799 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20800 cat >conftest.$ac_ext <<_ACEOF
20801 #line $LINENO "configure"
20802 /* confdefs.h.  */
20803 _ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h.  */
20807 $ac_includes_default
20808 #include <regex.h>
20809 _ACEOF
20810 rm -f conftest.$ac_objext
20811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20812   (eval $ac_compile) 2>&5
20813   ac_status=$?
20814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815   (exit $ac_status); } &&
20816          { ac_try='test -s conftest.$ac_objext'
20817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20818   (eval $ac_try) 2>&5
20819   ac_status=$?
20820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821   (exit $ac_status); }; }; then
20822   ac_header_compiler=yes
20823 else
20824   echo "$as_me: failed program was:" >&5
20825 sed 's/^/| /' conftest.$ac_ext >&5
20826
20827 ac_header_compiler=no
20828 fi
20829 rm -f conftest.$ac_objext conftest.$ac_ext
20830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20831 echo "${ECHO_T}$ac_header_compiler" >&6
20832
20833 # Is the header present?
20834 echo "$as_me:$LINENO: checking regex.h presence" >&5
20835 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20836 cat >conftest.$ac_ext <<_ACEOF
20837 #line $LINENO "configure"
20838 /* confdefs.h.  */
20839 _ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h.  */
20843 #include <regex.h>
20844 _ACEOF
20845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20846   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20847   ac_status=$?
20848   grep -v '^ *+' conftest.er1 >conftest.err
20849   rm -f conftest.er1
20850   cat conftest.err >&5
20851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852   (exit $ac_status); } >/dev/null; then
20853   if test -s conftest.err; then
20854     ac_cpp_err=$ac_c_preproc_warn_flag
20855   else
20856     ac_cpp_err=
20857   fi
20858 else
20859   ac_cpp_err=yes
20860 fi
20861 if test -z "$ac_cpp_err"; then
20862   ac_header_preproc=yes
20863 else
20864   echo "$as_me: failed program was:" >&5
20865 sed 's/^/| /' conftest.$ac_ext >&5
20866
20867   ac_header_preproc=no
20868 fi
20869 rm -f conftest.err conftest.$ac_ext
20870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20871 echo "${ECHO_T}$ac_header_preproc" >&6
20872
20873 # So?  What about this header?
20874 case $ac_header_compiler:$ac_header_preproc in
20875   yes:no )
20876     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20877 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20878     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20879 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20880     (
20881       cat <<\_ASBOX
20882 ## ------------------------------------ ##
20883 ## Report this to bug-autoconf@gnu.org. ##
20884 ## ------------------------------------ ##
20885 _ASBOX
20886     ) |
20887       sed "s/^/$as_me: WARNING:     /" >&2
20888     ;;
20889   no:yes )
20890     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20891 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
20892     { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20893 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20894     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20895 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20896     (
20897       cat <<\_ASBOX
20898 ## ------------------------------------ ##
20899 ## Report this to bug-autoconf@gnu.org. ##
20900 ## ------------------------------------ ##
20901 _ASBOX
20902     ) |
20903       sed "s/^/$as_me: WARNING:     /" >&2
20904     ;;
20905 esac
20906 echo "$as_me:$LINENO: checking for regex.h" >&5
20907 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20908 if test "${ac_cv_header_regex_h+set}" = set; then
20909   echo $ECHO_N "(cached) $ECHO_C" >&6
20910 else
20911   ac_cv_header_regex_h=$ac_header_preproc
20912 fi
20913 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20914 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20915
20916 fi
20917 if test $ac_cv_header_regex_h = yes; then
20918
20919 cat >>confdefs.h <<\_ACEOF
20920 #define HAVE_REGEX_H
20921 _ACEOF
20922
20923 fi
20924
20925
20926 if test "x$ac_cv_header_regex_h" = "xyes"; then
20927   REGEX_EXTENDED=no
20928   REGEX=yes
20929   cat >conftest.$ac_ext <<_ACEOF
20930 #line $LINENO "configure"
20931 /* confdefs.h.  */
20932 _ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h.  */
20936 #include <regex.h>
20937      #ifdef REG_EXTENDED
20938        yes
20939      #endif
20940
20941 _ACEOF
20942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20943   $EGREP "yes" >/dev/null 2>&1; then
20944
20945 cat >>confdefs.h <<\_ACEOF
20946 #define HAVE_REG_EXTENDED
20947 _ACEOF
20948  REGEX_EXTENDED=yes
20949 fi
20950 rm -f conftest*
20951
20952 fi
20953
20954
20955
20956 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
20957 then
20958
20959 cat >>confdefs.h <<\_ACEOF
20960 #define OSFC2
20961 _ACEOF
20962
20963 fi
20964
20965 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
20966 then
20967
20968 cat >>confdefs.h <<\_ACEOF
20969 #define OSFSIA
20970 _ACEOF
20971
20972 fi
20973
20974 smart_try_dir="$OPENSSL_INCLUDE_DIR"
20975 CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
20976
20977
20978 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
20979 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
20980 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
20981
20982 smart_include=
20983 smart_include_dir=
20984
20985   old_CFLAGS="$CFLAGS"
20986   cat >conftest.$ac_ext <<_ACEOF
20987 #line $LINENO "configure"
20988 /* confdefs.h.  */
20989 _ACEOF
20990 cat confdefs.h >>conftest.$ac_ext
20991 cat >>conftest.$ac_ext <<_ACEOF
20992 /* end confdefs.h.  */
20993
20994                   #include <openssl/ssl.h>
20995 int
20996 main ()
20997 {
20998  int a = 1;
20999   ;
21000   return 0;
21001 }
21002 _ACEOF
21003 rm -f conftest.$ac_objext
21004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21005   (eval $ac_compile) 2>&5
21006   ac_status=$?
21007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008   (exit $ac_status); } &&
21009          { ac_try='test -s conftest.$ac_objext'
21010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011   (eval $ac_try) 2>&5
21012   ac_status=$?
21013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014   (exit $ac_status); }; }; then
21015   smart_include=" "
21016 else
21017   echo "$as_me: failed program was:" >&5
21018 sed 's/^/| /' conftest.$ac_ext >&5
21019
21020 smart_include=
21021 fi
21022 rm -f conftest.$ac_objext conftest.$ac_ext
21023
21024   if test "x$smart_include" = "x"; then
21025
21026
21027 if test "x$LOCATE" != "x"; then
21028         DIRS=
21029   file=openssl/ssl.h
21030
21031   for x in `${LOCATE} $file 2>/dev/null`; do
21032                                         base=`echo $x | sed "s%/${file}%%"`
21033     if test "x$x" = "x$base"; then
21034       continue;
21035     fi
21036
21037     dir=`${DIRNAME} $x 2>/dev/null`
21038                 exclude=`echo ${dir} | ${GREP} /home`
21039     if test "x$exclude" != "x"; then
21040       continue
21041     fi
21042
21043                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
21044     if test "x$already" = "x"; then
21045       DIRS="$DIRS $dir"
21046     fi
21047   done
21048 fi
21049
21050 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
21051
21052
21053     for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
21054       CFLAGS="$old_CFLAGS -I$try"
21055
21056       cat >conftest.$ac_ext <<_ACEOF
21057 #line $LINENO "configure"
21058 /* confdefs.h.  */
21059 _ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h.  */
21063
21064                        #include <openssl/ssl.h>
21065 int
21066 main ()
21067 {
21068  int a = 1;
21069   ;
21070   return 0;
21071 }
21072 _ACEOF
21073 rm -f conftest.$ac_objext
21074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21075   (eval $ac_compile) 2>&5
21076   ac_status=$?
21077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078   (exit $ac_status); } &&
21079          { ac_try='test -s conftest.$ac_objext'
21080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081   (eval $ac_try) 2>&5
21082   ac_status=$?
21083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084   (exit $ac_status); }; }; then
21085   smart_include="-I$try"
21086 else
21087   echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21089
21090 smart_include=
21091 fi
21092 rm -f conftest.$ac_objext conftest.$ac_ext
21093
21094       if test "x$smart_include" != "x"; then
21095         break;
21096       fi
21097     done
21098     CFLAGS="$old_CFLAGS"
21099   fi
21100
21101         if test "x$smart_include" != "x"; then
21102     echo "$as_me:$LINENO: result: yes" >&5
21103 echo "${ECHO_T}yes" >&6
21104     eval "ac_cv_header_$ac_safe=yes"
21105     CFLAGS="$old_CFLAGS $smart_include"
21106     SMART_CFLAGS="$SMART_CFLAGS $smart_include"
21107   else
21108     echo "$as_me:$LINENO: result: no" >&5
21109 echo "${ECHO_T}no" >&6
21110 fi
21111
21112 OPENSSL_INCLUDE=
21113 OPENSSL_LIBS=
21114 if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
21115
21116 cat >>confdefs.h <<\_ACEOF
21117 #define HAVE_OPENSSL_SSL_H
21118 _ACEOF
21119
21120   old_CPPFLAGS="$CPPFLAGS"
21121   if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21122       CPPFLAGS="-I$OPENSSL_INCLUDE_DIR $CPPFLAGS"
21123   fi
21124
21125
21126
21127
21128 for ac_header in \
21129           openssl/err.h \
21130           openssl/crypto.h \
21131           openssl/rand.h \
21132           openssl/engine.h
21133
21134 do
21135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21137   echo "$as_me:$LINENO: checking for $ac_header" >&5
21138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21140   echo $ECHO_N "(cached) $ECHO_C" >&6
21141 fi
21142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21144 else
21145   # Is the header compilable?
21146 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21148 cat >conftest.$ac_ext <<_ACEOF
21149 #line $LINENO "configure"
21150 /* confdefs.h.  */
21151 _ACEOF
21152 cat confdefs.h >>conftest.$ac_ext
21153 cat >>conftest.$ac_ext <<_ACEOF
21154 /* end confdefs.h.  */
21155 $ac_includes_default
21156 #include <$ac_header>
21157 _ACEOF
21158 rm -f conftest.$ac_objext
21159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21160   (eval $ac_compile) 2>&5
21161   ac_status=$?
21162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163   (exit $ac_status); } &&
21164          { ac_try='test -s conftest.$ac_objext'
21165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166   (eval $ac_try) 2>&5
21167   ac_status=$?
21168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169   (exit $ac_status); }; }; then
21170   ac_header_compiler=yes
21171 else
21172   echo "$as_me: failed program was:" >&5
21173 sed 's/^/| /' conftest.$ac_ext >&5
21174
21175 ac_header_compiler=no
21176 fi
21177 rm -f conftest.$ac_objext conftest.$ac_ext
21178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21179 echo "${ECHO_T}$ac_header_compiler" >&6
21180
21181 # Is the header present?
21182 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21184 cat >conftest.$ac_ext <<_ACEOF
21185 #line $LINENO "configure"
21186 /* confdefs.h.  */
21187 _ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h.  */
21191 #include <$ac_header>
21192 _ACEOF
21193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21194   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21195   ac_status=$?
21196   grep -v '^ *+' conftest.er1 >conftest.err
21197   rm -f conftest.er1
21198   cat conftest.err >&5
21199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200   (exit $ac_status); } >/dev/null; then
21201   if test -s conftest.err; then
21202     ac_cpp_err=$ac_c_preproc_warn_flag
21203   else
21204     ac_cpp_err=
21205   fi
21206 else
21207   ac_cpp_err=yes
21208 fi
21209 if test -z "$ac_cpp_err"; then
21210   ac_header_preproc=yes
21211 else
21212   echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.$ac_ext >&5
21214
21215   ac_header_preproc=no
21216 fi
21217 rm -f conftest.err conftest.$ac_ext
21218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21219 echo "${ECHO_T}$ac_header_preproc" >&6
21220
21221 # So?  What about this header?
21222 case $ac_header_compiler:$ac_header_preproc in
21223   yes:no )
21224     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21228     (
21229       cat <<\_ASBOX
21230 ## ------------------------------------ ##
21231 ## Report this to bug-autoconf@gnu.org. ##
21232 ## ------------------------------------ ##
21233 _ASBOX
21234     ) |
21235       sed "s/^/$as_me: WARNING:     /" >&2
21236     ;;
21237   no:yes )
21238     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21240     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21244     (
21245       cat <<\_ASBOX
21246 ## ------------------------------------ ##
21247 ## Report this to bug-autoconf@gnu.org. ##
21248 ## ------------------------------------ ##
21249 _ASBOX
21250     ) |
21251       sed "s/^/$as_me: WARNING:     /" >&2
21252     ;;
21253 esac
21254 echo "$as_me:$LINENO: checking for $ac_header" >&5
21255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21257   echo $ECHO_N "(cached) $ECHO_C" >&6
21258 else
21259   eval "$as_ac_Header=$ac_header_preproc"
21260 fi
21261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21263
21264 fi
21265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21266   cat >>confdefs.h <<_ACEOF
21267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21268 _ACEOF
21269
21270 fi
21271
21272 done
21273
21274   CPPFLAGS="$old_CPPFLAGS"
21275
21276   echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
21277 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
21278        old_CPPFLAGS=$CPPFLAGS
21279        old_LIBS="$LIBS"
21280        if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21281            CPPFLAGS="-I$OPENSSL_INCLUDE_DIR"
21282            fi
21283        cat >conftest.$ac_ext <<_ACEOF
21284 #line $LINENO "configure"
21285 /* confdefs.h.  */
21286 _ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h.  */
21290 #include <openssl/crypto.h>
21291        #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21292         yes
21293        #endif
21294
21295 _ACEOF
21296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21297   $EGREP "yes" >/dev/null 2>&1; then
21298   goodssl="yes"
21299 fi
21300 rm -f conftest*
21301
21302            if test "x$goodssl" != "xyes"; then
21303              echo "$as_me:$LINENO: result: no" >&5
21304 echo "${ECHO_T}no" >&6
21305              OPENSSL_INCLUDE=
21306              OPENSSL_LIBS=
21307            else
21308              echo "$as_me:$LINENO: result: yes" >&5
21309 echo "${ECHO_T}yes" >&6
21310
21311              # Look for the OpenSSL libraries.
21312              smart_try_dir=$OPENSSL_LIB_DIR
21313
21314
21315 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
21316 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
21317 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21318 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
21319
21320 smart_lib=
21321 smart_lib_dir=
21322
21323   old_LIBS="$LIBS"
21324   LIBS="$LIBS -lcrypto"
21325   cat >conftest.$ac_ext <<_ACEOF
21326 #line $LINENO "configure"
21327 /* confdefs.h.  */
21328 _ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h.  */
21332 extern char DH_new();
21333 int
21334 main ()
21335 {
21336  DH_new()
21337   ;
21338   return 0;
21339 }
21340 _ACEOF
21341 rm -f conftest.$ac_objext conftest$ac_exeext
21342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21343   (eval $ac_link) 2>&5
21344   ac_status=$?
21345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346   (exit $ac_status); } &&
21347          { ac_try='test -s conftest$ac_exeext'
21348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349   (eval $ac_try) 2>&5
21350   ac_status=$?
21351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352   (exit $ac_status); }; }; then
21353   smart_lib="-lcrypto"
21354 else
21355   echo "$as_me: failed program was:" >&5
21356 sed 's/^/| /' conftest.$ac_ext >&5
21357
21358 fi
21359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21360
21361   if test "x$smart_lib" = "x"; then
21362
21363
21364 if test "x$LOCATE" != "x"; then
21365         DIRS=
21366   file=libcrypto${libltdl_cv_shlibext}
21367
21368   for x in `${LOCATE} $file 2>/dev/null`; do
21369                                         base=`echo $x | sed "s%/${file}%%"`
21370     if test "x$x" = "x$base"; then
21371       continue;
21372     fi
21373
21374     dir=`${DIRNAME} $x 2>/dev/null`
21375                 exclude=`echo ${dir} | ${GREP} /home`
21376     if test "x$exclude" != "x"; then
21377       continue
21378     fi
21379
21380                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21381     if test "x$already" = "x"; then
21382       DIRS="$DIRS $dir"
21383     fi
21384   done
21385 fi
21386
21387 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21388
21389
21390
21391 if test "x$LOCATE" != "x"; then
21392         DIRS=
21393   file=libcrypto.a
21394
21395   for x in `${LOCATE} $file 2>/dev/null`; do
21396                                         base=`echo $x | sed "s%/${file}%%"`
21397     if test "x$x" = "x$base"; then
21398       continue;
21399     fi
21400
21401     dir=`${DIRNAME} $x 2>/dev/null`
21402                 exclude=`echo ${dir} | ${GREP} /home`
21403     if test "x$exclude" != "x"; then
21404       continue
21405     fi
21406
21407                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21408     if test "x$already" = "x"; then
21409       DIRS="$DIRS $dir"
21410     fi
21411   done
21412 fi
21413
21414 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21415
21416
21417     for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
21418       LIBS="$old_LIBS -L$try -lcrypto"
21419
21420       cat >conftest.$ac_ext <<_ACEOF
21421 #line $LINENO "configure"
21422 /* confdefs.h.  */
21423 _ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h.  */
21427 extern char DH_new();
21428 int
21429 main ()
21430 {
21431  DH_new()
21432   ;
21433   return 0;
21434 }
21435 _ACEOF
21436 rm -f conftest.$ac_objext conftest$ac_exeext
21437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21438   (eval $ac_link) 2>&5
21439   ac_status=$?
21440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441   (exit $ac_status); } &&
21442          { ac_try='test -s conftest$ac_exeext'
21443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444   (eval $ac_try) 2>&5
21445   ac_status=$?
21446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447   (exit $ac_status); }; }; then
21448   smart_lib="-L$try -lcrypto"
21449 else
21450   echo "$as_me: failed program was:" >&5
21451 sed 's/^/| /' conftest.$ac_ext >&5
21452
21453 fi
21454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21455       if test "x$smart_lib" != "x"; then
21456         break;
21457       fi
21458     done
21459     LIBS="$old_LIBS"
21460   fi
21461
21462         if test "x$smart_lib" != "x"; then
21463     echo "$as_me:$LINENO: result: yes" >&5
21464 echo "${ECHO_T}yes" >&6
21465     eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
21466     LIBS="$old_LIBS $smart_lib"
21467     SMART_LIBS="$SMART_LIBS $smart_lib"
21468   else
21469     echo "$as_me:$LINENO: result: no" >&5
21470 echo "${ECHO_T}no" >&6
21471 fi
21472
21473              if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
21474
21475
21476 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
21477 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
21478 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21479 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
21480
21481 smart_lib=
21482 smart_lib_dir=
21483
21484   old_LIBS="$LIBS"
21485   LIBS="$LIBS -lssl"
21486   cat >conftest.$ac_ext <<_ACEOF
21487 #line $LINENO "configure"
21488 /* confdefs.h.  */
21489 _ACEOF
21490 cat confdefs.h >>conftest.$ac_ext
21491 cat >>conftest.$ac_ext <<_ACEOF
21492 /* end confdefs.h.  */
21493 extern char SSL_new();
21494 int
21495 main ()
21496 {
21497  SSL_new()
21498   ;
21499   return 0;
21500 }
21501 _ACEOF
21502 rm -f conftest.$ac_objext conftest$ac_exeext
21503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21504   (eval $ac_link) 2>&5
21505   ac_status=$?
21506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507   (exit $ac_status); } &&
21508          { ac_try='test -s conftest$ac_exeext'
21509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21510   (eval $ac_try) 2>&5
21511   ac_status=$?
21512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513   (exit $ac_status); }; }; then
21514   smart_lib="-lssl"
21515 else
21516   echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21518
21519 fi
21520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21521
21522   if test "x$smart_lib" = "x"; then
21523
21524
21525 if test "x$LOCATE" != "x"; then
21526         DIRS=
21527   file=libssl${libltdl_cv_shlibext}
21528
21529   for x in `${LOCATE} $file 2>/dev/null`; do
21530                                         base=`echo $x | sed "s%/${file}%%"`
21531     if test "x$x" = "x$base"; then
21532       continue;
21533     fi
21534
21535     dir=`${DIRNAME} $x 2>/dev/null`
21536                 exclude=`echo ${dir} | ${GREP} /home`
21537     if test "x$exclude" != "x"; then
21538       continue
21539     fi
21540
21541                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21542     if test "x$already" = "x"; then
21543       DIRS="$DIRS $dir"
21544     fi
21545   done
21546 fi
21547
21548 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21549
21550
21551
21552 if test "x$LOCATE" != "x"; then
21553         DIRS=
21554   file=libssl.a
21555
21556   for x in `${LOCATE} $file 2>/dev/null`; do
21557                                         base=`echo $x | sed "s%/${file}%%"`
21558     if test "x$x" = "x$base"; then
21559       continue;
21560     fi
21561
21562     dir=`${DIRNAME} $x 2>/dev/null`
21563                 exclude=`echo ${dir} | ${GREP} /home`
21564     if test "x$exclude" != "x"; then
21565       continue
21566     fi
21567
21568                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21569     if test "x$already" = "x"; then
21570       DIRS="$DIRS $dir"
21571     fi
21572   done
21573 fi
21574
21575 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21576
21577
21578     for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
21579       LIBS="$old_LIBS -L$try -lssl"
21580
21581       cat >conftest.$ac_ext <<_ACEOF
21582 #line $LINENO "configure"
21583 /* confdefs.h.  */
21584 _ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h.  */
21588 extern char SSL_new();
21589 int
21590 main ()
21591 {
21592  SSL_new()
21593   ;
21594   return 0;
21595 }
21596 _ACEOF
21597 rm -f conftest.$ac_objext conftest$ac_exeext
21598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21599   (eval $ac_link) 2>&5
21600   ac_status=$?
21601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602   (exit $ac_status); } &&
21603          { ac_try='test -s conftest$ac_exeext'
21604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21605   (eval $ac_try) 2>&5
21606   ac_status=$?
21607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608   (exit $ac_status); }; }; then
21609   smart_lib="-L$try -lssl"
21610 else
21611   echo "$as_me: failed program was:" >&5
21612 sed 's/^/| /' conftest.$ac_ext >&5
21613
21614 fi
21615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21616       if test "x$smart_lib" != "x"; then
21617         break;
21618       fi
21619     done
21620     LIBS="$old_LIBS"
21621   fi
21622
21623         if test "x$smart_lib" != "x"; then
21624     echo "$as_me:$LINENO: result: yes" >&5
21625 echo "${ECHO_T}yes" >&6
21626     eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
21627     LIBS="$old_LIBS $smart_lib"
21628     SMART_LIBS="$SMART_LIBS $smart_lib"
21629   else
21630     echo "$as_me:$LINENO: result: no" >&5
21631 echo "${ECHO_T}no" >&6
21632 fi
21633
21634                if test "x$ac_cv_lib_ssl_SSL_new" = "xyes"; then
21635                  if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21636                    OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR"
21637                  fi
21638                  if test "x$OPENSSL_LIB_DIR" != "x"; then
21639                    OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21640                  fi
21641                  OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21642                else
21643                  OPENSSL_INCLUDE=
21644                  OPENSSL_LIBS=
21645                fi
21646              fi
21647            fi
21648        CPPFLAGS=$old_CPPFLAGS
21649        LIBS="$old_LIBS"
21650 fi
21651
21652
21653 export OPENSSL_LIBS
21654
21655
21656 echo "$as_me:$LINENO: checking for off_t" >&5
21657 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21658 if test "${ac_cv_type_off_t+set}" = set; then
21659   echo $ECHO_N "(cached) $ECHO_C" >&6
21660 else
21661   cat >conftest.$ac_ext <<_ACEOF
21662 #line $LINENO "configure"
21663 /* confdefs.h.  */
21664 _ACEOF
21665 cat confdefs.h >>conftest.$ac_ext
21666 cat >>conftest.$ac_ext <<_ACEOF
21667 /* end confdefs.h.  */
21668 $ac_includes_default
21669 int
21670 main ()
21671 {
21672 if ((off_t *) 0)
21673   return 0;
21674 if (sizeof (off_t))
21675   return 0;
21676   ;
21677   return 0;
21678 }
21679 _ACEOF
21680 rm -f conftest.$ac_objext
21681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21682   (eval $ac_compile) 2>&5
21683   ac_status=$?
21684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685   (exit $ac_status); } &&
21686          { ac_try='test -s conftest.$ac_objext'
21687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688   (eval $ac_try) 2>&5
21689   ac_status=$?
21690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691   (exit $ac_status); }; }; then
21692   ac_cv_type_off_t=yes
21693 else
21694   echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21696
21697 ac_cv_type_off_t=no
21698 fi
21699 rm -f conftest.$ac_objext conftest.$ac_ext
21700 fi
21701 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21702 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21703 if test $ac_cv_type_off_t = yes; then
21704   :
21705 else
21706
21707 cat >>confdefs.h <<_ACEOF
21708 #define off_t long
21709 _ACEOF
21710
21711 fi
21712
21713 echo "$as_me:$LINENO: checking for pid_t" >&5
21714 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21715 if test "${ac_cv_type_pid_t+set}" = set; then
21716   echo $ECHO_N "(cached) $ECHO_C" >&6
21717 else
21718   cat >conftest.$ac_ext <<_ACEOF
21719 #line $LINENO "configure"
21720 /* confdefs.h.  */
21721 _ACEOF
21722 cat confdefs.h >>conftest.$ac_ext
21723 cat >>conftest.$ac_ext <<_ACEOF
21724 /* end confdefs.h.  */
21725 $ac_includes_default
21726 int
21727 main ()
21728 {
21729 if ((pid_t *) 0)
21730   return 0;
21731 if (sizeof (pid_t))
21732   return 0;
21733   ;
21734   return 0;
21735 }
21736 _ACEOF
21737 rm -f conftest.$ac_objext
21738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21739   (eval $ac_compile) 2>&5
21740   ac_status=$?
21741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742   (exit $ac_status); } &&
21743          { ac_try='test -s conftest.$ac_objext'
21744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745   (eval $ac_try) 2>&5
21746   ac_status=$?
21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748   (exit $ac_status); }; }; then
21749   ac_cv_type_pid_t=yes
21750 else
21751   echo "$as_me: failed program was:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21753
21754 ac_cv_type_pid_t=no
21755 fi
21756 rm -f conftest.$ac_objext conftest.$ac_ext
21757 fi
21758 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21759 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21760 if test $ac_cv_type_pid_t = yes; then
21761   :
21762 else
21763
21764 cat >>confdefs.h <<_ACEOF
21765 #define pid_t int
21766 _ACEOF
21767
21768 fi
21769
21770 echo "$as_me:$LINENO: checking for size_t" >&5
21771 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21772 if test "${ac_cv_type_size_t+set}" = set; then
21773   echo $ECHO_N "(cached) $ECHO_C" >&6
21774 else
21775   cat >conftest.$ac_ext <<_ACEOF
21776 #line $LINENO "configure"
21777 /* confdefs.h.  */
21778 _ACEOF
21779 cat confdefs.h >>conftest.$ac_ext
21780 cat >>conftest.$ac_ext <<_ACEOF
21781 /* end confdefs.h.  */
21782 $ac_includes_default
21783 int
21784 main ()
21785 {
21786 if ((size_t *) 0)
21787   return 0;
21788 if (sizeof (size_t))
21789   return 0;
21790   ;
21791   return 0;
21792 }
21793 _ACEOF
21794 rm -f conftest.$ac_objext
21795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21796   (eval $ac_compile) 2>&5
21797   ac_status=$?
21798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799   (exit $ac_status); } &&
21800          { ac_try='test -s conftest.$ac_objext'
21801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21802   (eval $ac_try) 2>&5
21803   ac_status=$?
21804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805   (exit $ac_status); }; }; then
21806   ac_cv_type_size_t=yes
21807 else
21808   echo "$as_me: failed program was:" >&5
21809 sed 's/^/| /' conftest.$ac_ext >&5
21810
21811 ac_cv_type_size_t=no
21812 fi
21813 rm -f conftest.$ac_objext conftest.$ac_ext
21814 fi
21815 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21816 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21817 if test $ac_cv_type_size_t = yes; then
21818   :
21819 else
21820
21821 cat >>confdefs.h <<_ACEOF
21822 #define size_t unsigned
21823 _ACEOF
21824
21825 fi
21826
21827 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21828 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21829 if test "${ac_cv_type_uid_t+set}" = set; then
21830   echo $ECHO_N "(cached) $ECHO_C" >&6
21831 else
21832   cat >conftest.$ac_ext <<_ACEOF
21833 #line $LINENO "configure"
21834 /* confdefs.h.  */
21835 _ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h.  */
21839 #include <sys/types.h>
21840
21841 _ACEOF
21842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21843   $EGREP "uid_t" >/dev/null 2>&1; then
21844   ac_cv_type_uid_t=yes
21845 else
21846   ac_cv_type_uid_t=no
21847 fi
21848 rm -f conftest*
21849
21850 fi
21851 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21852 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21853 if test $ac_cv_type_uid_t = no; then
21854
21855 cat >>confdefs.h <<\_ACEOF
21856 #define uid_t int
21857 _ACEOF
21858
21859
21860 cat >>confdefs.h <<\_ACEOF
21861 #define gid_t int
21862 _ACEOF
21863
21864 fi
21865
21866
21867
21868   echo "$as_me:$LINENO: checking for socklen_t" >&5
21869 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21870 if test "${ac_cv_type_socklen_t+set}" = set; then
21871   echo $ECHO_N "(cached) $ECHO_C" >&6
21872 else
21873    ac_cv_type_socklen_t=no
21874       cat >conftest.$ac_ext <<_ACEOF
21875 #line $LINENO "configure"
21876 /* confdefs.h.  */
21877 _ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h.  */
21881 #ifdef HAVE_SYS_TYPES_H
21882 #include <sys/types.h>
21883 #endif
21884 #ifdef HAVE_SYS_SOCKET_H
21885 #include <sys/socket.h>
21886 #endif
21887
21888 int
21889 main ()
21890 {
21891 socklen_t foo
21892   ;
21893   return 0;
21894 }
21895 _ACEOF
21896 rm -f conftest.$ac_objext
21897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21898   (eval $ac_compile) 2>&5
21899   ac_status=$?
21900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901   (exit $ac_status); } &&
21902          { ac_try='test -s conftest.$ac_objext'
21903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904   (eval $ac_try) 2>&5
21905   ac_status=$?
21906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907   (exit $ac_status); }; }; then
21908   ac_cv_type_socklen_t=yes
21909 else
21910   echo "$as_me: failed program was:" >&5
21911 sed 's/^/| /' conftest.$ac_ext >&5
21912
21913 fi
21914 rm -f conftest.$ac_objext conftest.$ac_ext
21915
21916
21917 fi
21918 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21919 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21920
21921   if test "$ac_cv_type_socklen_t" != "yes"; then
21922
21923 cat >>confdefs.h <<\_ACEOF
21924 #define socklen_t int
21925 _ACEOF
21926
21927   fi
21928
21929
21930
21931   echo "$as_me:$LINENO: checking for uint8_t" >&5
21932 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
21933 if test "${ac_cv_type_uint8_t+set}" = set; then
21934   echo $ECHO_N "(cached) $ECHO_C" >&6
21935 else
21936    ac_cv_type_uint8_t=no
21937       cat >conftest.$ac_ext <<_ACEOF
21938 #line $LINENO "configure"
21939 /* confdefs.h.  */
21940 _ACEOF
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h.  */
21944 #ifdef HAVE_INTTYPES_H
21945 #include <inttypes.h>
21946 #endif
21947 #ifdef HAVE_STDINT_H
21948 #include <stdint.h>
21949 #endif
21950
21951 int
21952 main ()
21953 {
21954 uint8_t foo
21955   ;
21956   return 0;
21957 }
21958 _ACEOF
21959 rm -f conftest.$ac_objext
21960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21961   (eval $ac_compile) 2>&5
21962   ac_status=$?
21963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964   (exit $ac_status); } &&
21965          { ac_try='test -s conftest.$ac_objext'
21966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21967   (eval $ac_try) 2>&5
21968   ac_status=$?
21969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970   (exit $ac_status); }; }; then
21971   ac_cv_type_uint8_t=yes
21972 else
21973   echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21975
21976 fi
21977 rm -f conftest.$ac_objext conftest.$ac_ext
21978
21979
21980 fi
21981 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
21982 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
21983
21984   if test "$ac_cv_type_uint8_t" != "yes"; then
21985
21986 cat >>confdefs.h <<\_ACEOF
21987 #define uint8_t unsigned char
21988 _ACEOF
21989
21990   fi
21991
21992
21993
21994   echo "$as_me:$LINENO: checking for uint16_t" >&5
21995 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
21996 if test "${ac_cv_type_uint16_t+set}" = set; then
21997   echo $ECHO_N "(cached) $ECHO_C" >&6
21998 else
21999    ac_cv_type_uint16_t=no
22000       cat >conftest.$ac_ext <<_ACEOF
22001 #line $LINENO "configure"
22002 /* confdefs.h.  */
22003 _ACEOF
22004 cat confdefs.h >>conftest.$ac_ext
22005 cat >>conftest.$ac_ext <<_ACEOF
22006 /* end confdefs.h.  */
22007 #ifdef HAVE_INTTYPES_H
22008 #include <inttypes.h>
22009 #endif
22010 #ifdef HAVE_STDINT_H
22011 #include <stdint.h>
22012 #endif
22013
22014 int
22015 main ()
22016 {
22017 uint16_t foo
22018   ;
22019   return 0;
22020 }
22021 _ACEOF
22022 rm -f conftest.$ac_objext
22023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22024   (eval $ac_compile) 2>&5
22025   ac_status=$?
22026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027   (exit $ac_status); } &&
22028          { ac_try='test -s conftest.$ac_objext'
22029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22030   (eval $ac_try) 2>&5
22031   ac_status=$?
22032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033   (exit $ac_status); }; }; then
22034   ac_cv_type_uint16_t=yes
22035 else
22036   echo "$as_me: failed program was:" >&5
22037 sed 's/^/| /' conftest.$ac_ext >&5
22038
22039 fi
22040 rm -f conftest.$ac_objext conftest.$ac_ext
22041
22042
22043 fi
22044 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22045 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
22046
22047   if test "$ac_cv_type_uint16_t" != "yes"; then
22048
22049 cat >>confdefs.h <<\_ACEOF
22050 #define uint16_t unsigned short
22051 _ACEOF
22052
22053   fi
22054
22055
22056
22057   echo "$as_me:$LINENO: checking for uint32_t" >&5
22058 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
22059 if test "${ac_cv_type_uint32_t+set}" = set; then
22060   echo $ECHO_N "(cached) $ECHO_C" >&6
22061 else
22062    ac_cv_type_uint32_t=no
22063       cat >conftest.$ac_ext <<_ACEOF
22064 #line $LINENO "configure"
22065 /* confdefs.h.  */
22066 _ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h.  */
22070 #ifdef HAVE_INTTYPES_H
22071 #include <inttypes.h>
22072 #endif
22073 #ifdef HAVE_STDINT_H
22074 #include <stdint.h>
22075 #endif
22076
22077 int
22078 main ()
22079 {
22080 uint32_t foo
22081   ;
22082   return 0;
22083 }
22084 _ACEOF
22085 rm -f conftest.$ac_objext
22086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22087   (eval $ac_compile) 2>&5
22088   ac_status=$?
22089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090   (exit $ac_status); } &&
22091          { ac_try='test -s conftest.$ac_objext'
22092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22093   (eval $ac_try) 2>&5
22094   ac_status=$?
22095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096   (exit $ac_status); }; }; then
22097   ac_cv_type_uint32_t=yes
22098 else
22099   echo "$as_me: failed program was:" >&5
22100 sed 's/^/| /' conftest.$ac_ext >&5
22101
22102 fi
22103 rm -f conftest.$ac_objext conftest.$ac_ext
22104
22105
22106 fi
22107 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22108 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
22109
22110   if test "$ac_cv_type_uint32_t" != "yes"; then
22111
22112 cat >>confdefs.h <<\_ACEOF
22113 #define uint32_t unsigned int
22114 _ACEOF
22115
22116   fi
22117
22118
22119 echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22120 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
22121 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
22122   echo $ECHO_N "(cached) $ECHO_C" >&6
22123 else
22124   cat >conftest.$ac_ext <<_ACEOF
22125 #line $LINENO "configure"
22126 /* confdefs.h.  */
22127 _ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h.  */
22131
22132 #ifdef HAVE_NETINET_IN_H
22133 #include <netinet/in.h>
22134 #endif
22135
22136
22137 int
22138 main ()
22139 {
22140 if ((struct in6_addr *) 0)
22141   return 0;
22142 if (sizeof (struct in6_addr))
22143   return 0;
22144   ;
22145   return 0;
22146 }
22147 _ACEOF
22148 rm -f conftest.$ac_objext
22149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22150   (eval $ac_compile) 2>&5
22151   ac_status=$?
22152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153   (exit $ac_status); } &&
22154          { ac_try='test -s conftest.$ac_objext'
22155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22156   (eval $ac_try) 2>&5
22157   ac_status=$?
22158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159   (exit $ac_status); }; }; then
22160   ac_cv_type_struct_in6_addr=yes
22161 else
22162   echo "$as_me: failed program was:" >&5
22163 sed 's/^/| /' conftest.$ac_ext >&5
22164
22165 ac_cv_type_struct_in6_addr=no
22166 fi
22167 rm -f conftest.$ac_objext conftest.$ac_ext
22168 fi
22169 echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
22170 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6
22171 if test $ac_cv_type_struct_in6_addr = yes; then
22172
22173 cat >>confdefs.h <<\_ACEOF
22174 #define HAVE_STRUCT_IN6_ADDR 1
22175 _ACEOF
22176
22177 fi
22178
22179
22180 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
22181 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
22182 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
22183   echo $ECHO_N "(cached) $ECHO_C" >&6
22184 else
22185   cat >conftest.$ac_ext <<_ACEOF
22186 #line $LINENO "configure"
22187 /* confdefs.h.  */
22188 _ACEOF
22189 cat confdefs.h >>conftest.$ac_ext
22190 cat >>conftest.$ac_ext <<_ACEOF
22191 /* end confdefs.h.  */
22192
22193 #ifdef HAVE_NETINET_IN_H
22194 #include <netinet/in.h>
22195 #endif
22196
22197
22198 int
22199 main ()
22200 {
22201 if ((struct sockaddr_storage *) 0)
22202   return 0;
22203 if (sizeof (struct sockaddr_storage))
22204   return 0;
22205   ;
22206   return 0;
22207 }
22208 _ACEOF
22209 rm -f conftest.$ac_objext
22210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22211   (eval $ac_compile) 2>&5
22212   ac_status=$?
22213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214   (exit $ac_status); } &&
22215          { ac_try='test -s conftest.$ac_objext'
22216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22217   (eval $ac_try) 2>&5
22218   ac_status=$?
22219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220   (exit $ac_status); }; }; then
22221   ac_cv_type_struct_sockaddr_storage=yes
22222 else
22223   echo "$as_me: failed program was:" >&5
22224 sed 's/^/| /' conftest.$ac_ext >&5
22225
22226 ac_cv_type_struct_sockaddr_storage=no
22227 fi
22228 rm -f conftest.$ac_objext conftest.$ac_ext
22229 fi
22230 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
22231 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
22232 if test $ac_cv_type_struct_sockaddr_storage = yes; then
22233
22234 cat >>confdefs.h <<\_ACEOF
22235 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
22236 _ACEOF
22237
22238 fi
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266 for ac_func in \
22267         getopt_long \
22268         lockf \
22269         strsignal \
22270         sigaction \
22271         sigprocmask \
22272         pthread_sigmask \
22273         snprintf \
22274         vsnprintf \
22275         setsid \
22276         strncasecmp \
22277         strcasecmp \
22278         localtime_r \
22279         ctime_r \
22280         gmtime_r \
22281         strsep \
22282         inet_aton \
22283         inet_pton \
22284         inet_ntop \
22285         gethostname \
22286         setlinebuf \
22287         setvbuf \
22288         getusershell \
22289         initgroups \
22290         getaddrinfo \
22291         getnameinfo
22292
22293 do
22294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22295 echo "$as_me:$LINENO: checking for $ac_func" >&5
22296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22297 if eval "test \"\${$as_ac_var+set}\" = set"; then
22298   echo $ECHO_N "(cached) $ECHO_C" >&6
22299 else
22300   cat >conftest.$ac_ext <<_ACEOF
22301 #line $LINENO "configure"
22302 /* confdefs.h.  */
22303 _ACEOF
22304 cat confdefs.h >>conftest.$ac_ext
22305 cat >>conftest.$ac_ext <<_ACEOF
22306 /* end confdefs.h.  */
22307 /* System header to define __stub macros and hopefully few prototypes,
22308     which can conflict with char $ac_func (); below.
22309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22310     <limits.h> exists even on freestanding compilers.  */
22311 #ifdef __STDC__
22312 # include <limits.h>
22313 #else
22314 # include <assert.h>
22315 #endif
22316 /* Override any gcc2 internal prototype to avoid an error.  */
22317 #ifdef __cplusplus
22318 extern "C"
22319 {
22320 #endif
22321 /* We use char because int might match the return type of a gcc2
22322    builtin and then its argument prototype would still apply.  */
22323 char $ac_func ();
22324 /* The GNU C library defines this for functions which it implements
22325     to always fail with ENOSYS.  Some functions are actually named
22326     something starting with __ and the normal name is an alias.  */
22327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22328 choke me
22329 #else
22330 char (*f) () = $ac_func;
22331 #endif
22332 #ifdef __cplusplus
22333 }
22334 #endif
22335
22336 int
22337 main ()
22338 {
22339 return f != $ac_func;
22340   ;
22341   return 0;
22342 }
22343 _ACEOF
22344 rm -f conftest.$ac_objext conftest$ac_exeext
22345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22346   (eval $ac_link) 2>&5
22347   ac_status=$?
22348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349   (exit $ac_status); } &&
22350          { ac_try='test -s conftest$ac_exeext'
22351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22352   (eval $ac_try) 2>&5
22353   ac_status=$?
22354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355   (exit $ac_status); }; }; then
22356   eval "$as_ac_var=yes"
22357 else
22358   echo "$as_me: failed program was:" >&5
22359 sed 's/^/| /' conftest.$ac_ext >&5
22360
22361 eval "$as_ac_var=no"
22362 fi
22363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22364 fi
22365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22367 if test `eval echo '${'$as_ac_var'}'` = yes; then
22368   cat >>confdefs.h <<_ACEOF
22369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22370 _ACEOF
22371
22372 fi
22373 done
22374
22375 for ac_func in \
22376         crypt \
22377         strncasecmp \
22378         strcasecmp \
22379         inet_aton \
22380         gethostname \
22381         setlinebuf \
22382         getusershell \
22383         endusershell
22384
22385 do
22386 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
22387 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
22388 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
22389   echo $ECHO_N "(cached) $ECHO_C" >&6
22390 else
22391   cat >conftest.$ac_ext <<_ACEOF
22392 #line $LINENO "configure"
22393 /* confdefs.h.  */
22394 _ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h.  */
22398
22399 #include <stdio.h>
22400 #include <string.h>
22401 #ifdef HAVE_UNISTD_H
22402 #include <unistd.h>
22403 #endif
22404 #ifdef HAVE_CRYPT_H
22405 #include <crypt.h>
22406 #endif
22407 #ifdef HAVE_ERRNO_H
22408 #include <errno.h>
22409 #endif
22410 #ifdef HAVE_RESOURCE_H
22411 #include <resource.h>
22412 #endif
22413 #ifdef HAVE_GETOPT_H
22414 #include <getopt.h>
22415 #endif
22416 #ifdef HAVE_MALLOC_H
22417 #include <malloc.h>
22418 #endif
22419 #ifdef HAVE_UTMP_H
22420 #include <utmp.h>
22421 #endif
22422 #ifdef HAVE_UTMPX_H
22423 #include <utmpx.h>
22424 #endif
22425 #ifdef HAVE_SYS_SELECT_H
22426 #include <sys/select.h>
22427 #endif
22428 #ifdef HAVE_DLFCN_H
22429 #include <dlfcn.h>
22430 #endif
22431 #ifdef HAVE_REGEX_H
22432 #include <regex.h>
22433 #endif
22434 #ifdef HAVE_SYSLOG_H
22435 #include <syslog.h>
22436 #endif
22437 #ifdef HAVE_INTTYPES_H
22438 #include <inttypes.h>
22439 #endif
22440 #ifdef HAVE_STDINT_H
22441 #include <stdint.h>
22442 #endif
22443 #ifdef HAVE_ARPA_INET_H
22444 #include <arpa/inet.h>
22445 #endif
22446
22447 int
22448 main ()
22449 {
22450 char *(*pfn) = (char *(*)) $ac_func
22451   ;
22452   return 0;
22453 }
22454 _ACEOF
22455 rm -f conftest.$ac_objext
22456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22457   (eval $ac_compile) 2>&5
22458   ac_status=$?
22459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460   (exit $ac_status); } &&
22461          { ac_try='test -s conftest.$ac_objext'
22462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22463   (eval $ac_try) 2>&5
22464   ac_status=$?
22465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466   (exit $ac_status); }; }; then
22467   eval "radius_cv_decl_needed_$ac_func=no"
22468 else
22469   echo "$as_me: failed program was:" >&5
22470 sed 's/^/| /' conftest.$ac_ext >&5
22471
22472 eval "radius_cv_decl_needed_$ac_func=yes"
22473 fi
22474 rm -f conftest.$ac_objext conftest.$ac_ext
22475 fi
22476
22477 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22478   echo "$as_me:$LINENO: result: yes" >&5
22479 echo "${ECHO_T}yes" >&6
22480   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22481   cat >>confdefs.h <<_ACEOF
22482 #define $radius_tr_decl 1
22483 _ACEOF
22484
22485 else
22486   echo "$as_me:$LINENO: result: no" >&5
22487 echo "${ECHO_T}no" >&6
22488 fi
22489
22490 done
22491
22492
22493 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22494 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22495 if test "${ac_cv_type_signal+set}" = set; then
22496   echo $ECHO_N "(cached) $ECHO_C" >&6
22497 else
22498   cat >conftest.$ac_ext <<_ACEOF
22499 #line $LINENO "configure"
22500 /* confdefs.h.  */
22501 _ACEOF
22502 cat confdefs.h >>conftest.$ac_ext
22503 cat >>conftest.$ac_ext <<_ACEOF
22504 /* end confdefs.h.  */
22505 #include <sys/types.h>
22506 #include <signal.h>
22507 #ifdef signal
22508 # undef signal
22509 #endif
22510 #ifdef __cplusplus
22511 extern "C" void (*signal (int, void (*)(int)))(int);
22512 #else
22513 void (*signal ()) ();
22514 #endif
22515
22516 int
22517 main ()
22518 {
22519 int i;
22520   ;
22521   return 0;
22522 }
22523 _ACEOF
22524 rm -f conftest.$ac_objext
22525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22526   (eval $ac_compile) 2>&5
22527   ac_status=$?
22528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529   (exit $ac_status); } &&
22530          { ac_try='test -s conftest.$ac_objext'
22531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22532   (eval $ac_try) 2>&5
22533   ac_status=$?
22534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535   (exit $ac_status); }; }; then
22536   ac_cv_type_signal=void
22537 else
22538   echo "$as_me: failed program was:" >&5
22539 sed 's/^/| /' conftest.$ac_ext >&5
22540
22541 ac_cv_type_signal=int
22542 fi
22543 rm -f conftest.$ac_objext conftest.$ac_ext
22544 fi
22545 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22546 echo "${ECHO_T}$ac_cv_type_signal" >&6
22547
22548 cat >>confdefs.h <<_ACEOF
22549 #define RETSIGTYPE $ac_cv_type_signal
22550 _ACEOF
22551
22552
22553
22554 if test "x$ac_cv_header_utmpx_h" = "xyes"
22555 then
22556
22557   echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
22558 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
22559
22560
22561   cat >conftest.$ac_ext <<_ACEOF
22562 #line $LINENO "configure"
22563 /* confdefs.h.  */
22564 _ACEOF
22565 cat confdefs.h >>conftest.$ac_ext
22566 cat >>conftest.$ac_ext <<_ACEOF
22567 /* end confdefs.h.  */
22568
22569 #include <utmpx.h>
22570 #ifndef offsetof
22571 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22572 #endif
22573
22574 int
22575 main ()
22576 {
22577  int foo = offsetof(struct utmpx, ut_xtime)
22578   ;
22579   return 0;
22580 }
22581 _ACEOF
22582 rm -f conftest.$ac_objext
22583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22584   (eval $ac_compile) 2>&5
22585   ac_status=$?
22586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587   (exit $ac_status); } &&
22588          { ac_try='test -s conftest.$ac_objext'
22589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22590   (eval $ac_try) 2>&5
22591   ac_status=$?
22592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593   (exit $ac_status); }; }; then
22594   has_element=" "
22595 else
22596   echo "$as_me: failed program was:" >&5
22597 sed 's/^/| /' conftest.$ac_ext >&5
22598
22599 has_element=
22600 fi
22601 rm -f conftest.$ac_objext conftest.$ac_ext
22602
22603   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22604   if test "x$has_element" != "x"; then
22605     echo "$as_me:$LINENO: result: yes" >&5
22606 echo "${ECHO_T}yes" >&6
22607     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22608   else
22609     echo "$as_me:$LINENO: result: no" >&5
22610 echo "${ECHO_T}no" >&6
22611     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22612  fi
22613
22614  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22615  then
22616
22617 cat >>confdefs.h <<\_ACEOF
22618 #define ut_xtime ut_tv.tv_sec
22619 _ACEOF
22620
22621  fi
22622 fi
22623
22624
22625   echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
22626 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
22627
22628
22629   cat >conftest.$ac_ext <<_ACEOF
22630 #line $LINENO "configure"
22631 /* confdefs.h.  */
22632 _ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h.  */
22636
22637 #include <netinet/in.h>
22638 #ifndef offsetof
22639 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22640 #endif
22641
22642 int
22643 main ()
22644 {
22645  int foo = offsetof(struct in_pktinfo, ipi_addr)
22646   ;
22647   return 0;
22648 }
22649 _ACEOF
22650 rm -f conftest.$ac_objext
22651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22652   (eval $ac_compile) 2>&5
22653   ac_status=$?
22654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655   (exit $ac_status); } &&
22656          { ac_try='test -s conftest.$ac_objext'
22657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22658   (eval $ac_try) 2>&5
22659   ac_status=$?
22660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661   (exit $ac_status); }; }; then
22662   has_element=" "
22663 else
22664   echo "$as_me: failed program was:" >&5
22665 sed 's/^/| /' conftest.$ac_ext >&5
22666
22667 has_element=
22668 fi
22669 rm -f conftest.$ac_objext conftest.$ac_ext
22670
22671   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22672   if test "x$has_element" != "x"; then
22673     echo "$as_me:$LINENO: result: yes" >&5
22674 echo "${ECHO_T}yes" >&6
22675     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22676   else
22677     echo "$as_me:$LINENO: result: no" >&5
22678 echo "${ECHO_T}no" >&6
22679     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22680  fi
22681
22682 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22683 then
22684
22685 cat >>confdefs.h <<\_ACEOF
22686 #define HAVE_IP_PKTINFO
22687 _ACEOF
22688
22689 fi
22690
22691
22692   echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
22693 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6
22694
22695
22696   cat >conftest.$ac_ext <<_ACEOF
22697 #line $LINENO "configure"
22698 /* confdefs.h.  */
22699 _ACEOF
22700 cat confdefs.h >>conftest.$ac_ext
22701 cat >>conftest.$ac_ext <<_ACEOF
22702 /* end confdefs.h.  */
22703
22704 #include <netinet/in.h>
22705 #ifndef offsetof
22706 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22707 #endif
22708
22709 int
22710 main ()
22711 {
22712  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
22713   ;
22714   return 0;
22715 }
22716 _ACEOF
22717 rm -f conftest.$ac_objext
22718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22719   (eval $ac_compile) 2>&5
22720   ac_status=$?
22721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722   (exit $ac_status); } &&
22723          { ac_try='test -s conftest.$ac_objext'
22724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22725   (eval $ac_try) 2>&5
22726   ac_status=$?
22727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22728   (exit $ac_status); }; }; then
22729   has_element=" "
22730 else
22731   echo "$as_me: failed program was:" >&5
22732 sed 's/^/| /' conftest.$ac_ext >&5
22733
22734 has_element=
22735 fi
22736 rm -f conftest.$ac_objext conftest.$ac_ext
22737
22738   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
22739   if test "x$has_element" != "x"; then
22740     echo "$as_me:$LINENO: result: yes" >&5
22741 echo "${ECHO_T}yes" >&6
22742     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
22743   else
22744     echo "$as_me:$LINENO: result: no" >&5
22745 echo "${ECHO_T}no" >&6
22746     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
22747  fi
22748
22749 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
22750 then
22751
22752 cat >>confdefs.h <<\_ACEOF
22753 #define HAVE_IN6_PKTINFO
22754 _ACEOF
22755
22756 fi
22757
22758
22759 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22760 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22761 if test "${ac_cv_c_const+set}" = set; then
22762   echo $ECHO_N "(cached) $ECHO_C" >&6
22763 else
22764   cat >conftest.$ac_ext <<_ACEOF
22765 #line $LINENO "configure"
22766 /* confdefs.h.  */
22767 _ACEOF
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h.  */
22771
22772 int
22773 main ()
22774 {
22775 /* FIXME: Include the comments suggested by Paul. */
22776 #ifndef __cplusplus
22777   /* Ultrix mips cc rejects this.  */
22778   typedef int charset[2];
22779   const charset x;
22780   /* SunOS 4.1.1 cc rejects this.  */
22781   char const *const *ccp;
22782   char **p;
22783   /* NEC SVR4.0.2 mips cc rejects this.  */
22784   struct point {int x, y;};
22785   static struct point const zero = {0,0};
22786   /* AIX XL C 1.02.0.0 rejects this.
22787      It does not let you subtract one const X* pointer from another in
22788      an arm of an if-expression whose if-part is not a constant
22789      expression */
22790   const char *g = "string";
22791   ccp = &g + (g ? g-g : 0);
22792   /* HPUX 7.0 cc rejects these. */
22793   ++ccp;
22794   p = (char**) ccp;
22795   ccp = (char const *const *) p;
22796   { /* SCO 3.2v4 cc rejects this.  */
22797     char *t;
22798     char const *s = 0 ? (char *) 0 : (char const *) 0;
22799
22800     *t++ = 0;
22801   }
22802   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22803     int x[] = {25, 17};
22804     const int *foo = &x[0];
22805     ++foo;
22806   }
22807   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22808     typedef const int *iptr;
22809     iptr p = 0;
22810     ++p;
22811   }
22812   { /* AIX XL C 1.02.0.0 rejects this saying
22813        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22814     struct s { int j; const int *ap[3]; };
22815     struct s *b; b->j = 5;
22816   }
22817   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22818     const int foo = 10;
22819   }
22820 #endif
22821
22822   ;
22823   return 0;
22824 }
22825 _ACEOF
22826 rm -f conftest.$ac_objext
22827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22828   (eval $ac_compile) 2>&5
22829   ac_status=$?
22830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831   (exit $ac_status); } &&
22832          { ac_try='test -s conftest.$ac_objext'
22833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22834   (eval $ac_try) 2>&5
22835   ac_status=$?
22836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837   (exit $ac_status); }; }; then
22838   ac_cv_c_const=yes
22839 else
22840   echo "$as_me: failed program was:" >&5
22841 sed 's/^/| /' conftest.$ac_ext >&5
22842
22843 ac_cv_c_const=no
22844 fi
22845 rm -f conftest.$ac_objext conftest.$ac_ext
22846 fi
22847 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22848 echo "${ECHO_T}$ac_cv_c_const" >&6
22849 if test $ac_cv_c_const = no; then
22850
22851 cat >>confdefs.h <<\_ACEOF
22852 #define const
22853 _ACEOF
22854
22855 fi
22856
22857
22858 echo "$as_me:$LINENO: checking type of OS" >&5
22859 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
22860 OS=`uname -s`
22861 echo "$as_me:$LINENO: result: $OS" >&5
22862 echo "${ECHO_T}$OS" >&6
22863 if test "$OS" = "OS/2"; then
22864         LIBPREFIX=
22865 else
22866         LIBPREFIX=lib
22867 fi
22868
22869
22870 if test "x$GCC" = "xyes"; then
22871     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22872 fi
22873
22874 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22875 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
22876 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22877   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22878   CFLAGS="$CFLAGS $devflags"
22879   INSTALLSTRIP=""
22880   echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
22881 echo "${ECHO_T}yes.  Using $devflags" >&6
22882 else
22883   devflags=""
22884   CFLAGS="$CFLAGS -DNDEBUG"
22885   INSTALLSTRIP="-s"
22886   echo "$as_me:$LINENO: result: no." >&5
22887 echo "${ECHO_T}no." >&6
22888 fi
22889
22890
22891 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22892 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22893 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22894   echo $ECHO_N "(cached) $ECHO_C" >&6
22895 else
22896   ac_check_lib_save_LIBS=$LIBS
22897 LIBS="-lcrypt  $LIBS"
22898 cat >conftest.$ac_ext <<_ACEOF
22899 #line $LINENO "configure"
22900 /* confdefs.h.  */
22901 _ACEOF
22902 cat confdefs.h >>conftest.$ac_ext
22903 cat >>conftest.$ac_ext <<_ACEOF
22904 /* end confdefs.h.  */
22905
22906 /* Override any gcc2 internal prototype to avoid an error.  */
22907 #ifdef __cplusplus
22908 extern "C"
22909 #endif
22910 /* We use char because int might match the return type of a gcc2
22911    builtin and then its argument prototype would still apply.  */
22912 char crypt ();
22913 int
22914 main ()
22915 {
22916 crypt ();
22917   ;
22918   return 0;
22919 }
22920 _ACEOF
22921 rm -f conftest.$ac_objext conftest$ac_exeext
22922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22923   (eval $ac_link) 2>&5
22924   ac_status=$?
22925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926   (exit $ac_status); } &&
22927          { ac_try='test -s conftest$ac_exeext'
22928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929   (eval $ac_try) 2>&5
22930   ac_status=$?
22931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932   (exit $ac_status); }; }; then
22933   ac_cv_lib_crypt_crypt=yes
22934 else
22935   echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22937
22938 ac_cv_lib_crypt_crypt=no
22939 fi
22940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22941 LIBS=$ac_check_lib_save_LIBS
22942 fi
22943 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22944 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22945 if test $ac_cv_lib_crypt_crypt = yes; then
22946   CRYPTLIB="-lcrypt"
22947
22948 fi
22949
22950 if test "$CRYPTLIB" != ""; then
22951
22952 cat >>confdefs.h <<\_ACEOF
22953 #define HAVE_CRYPT
22954 _ACEOF
22955
22956 else
22957   echo "$as_me:$LINENO: checking for crypt" >&5
22958 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
22959 if test "${ac_cv_func_crypt+set}" = set; then
22960   echo $ECHO_N "(cached) $ECHO_C" >&6
22961 else
22962   cat >conftest.$ac_ext <<_ACEOF
22963 #line $LINENO "configure"
22964 /* confdefs.h.  */
22965 _ACEOF
22966 cat confdefs.h >>conftest.$ac_ext
22967 cat >>conftest.$ac_ext <<_ACEOF
22968 /* end confdefs.h.  */
22969 /* System header to define __stub macros and hopefully few prototypes,
22970     which can conflict with char crypt (); below.
22971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22972     <limits.h> exists even on freestanding compilers.  */
22973 #ifdef __STDC__
22974 # include <limits.h>
22975 #else
22976 # include <assert.h>
22977 #endif
22978 /* Override any gcc2 internal prototype to avoid an error.  */
22979 #ifdef __cplusplus
22980 extern "C"
22981 {
22982 #endif
22983 /* We use char because int might match the return type of a gcc2
22984    builtin and then its argument prototype would still apply.  */
22985 char crypt ();
22986 /* The GNU C library defines this for functions which it implements
22987     to always fail with ENOSYS.  Some functions are actually named
22988     something starting with __ and the normal name is an alias.  */
22989 #if defined (__stub_crypt) || defined (__stub___crypt)
22990 choke me
22991 #else
22992 char (*f) () = crypt;
22993 #endif
22994 #ifdef __cplusplus
22995 }
22996 #endif
22997
22998 int
22999 main ()
23000 {
23001 return f != crypt;
23002   ;
23003   return 0;
23004 }
23005 _ACEOF
23006 rm -f conftest.$ac_objext conftest$ac_exeext
23007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23008   (eval $ac_link) 2>&5
23009   ac_status=$?
23010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011   (exit $ac_status); } &&
23012          { ac_try='test -s conftest$ac_exeext'
23013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23014   (eval $ac_try) 2>&5
23015   ac_status=$?
23016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017   (exit $ac_status); }; }; then
23018   ac_cv_func_crypt=yes
23019 else
23020   echo "$as_me: failed program was:" >&5
23021 sed 's/^/| /' conftest.$ac_ext >&5
23022
23023 ac_cv_func_crypt=no
23024 fi
23025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23026 fi
23027 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
23028 echo "${ECHO_T}$ac_cv_func_crypt" >&6
23029 if test $ac_cv_func_crypt = yes; then
23030
23031 cat >>confdefs.h <<\_ACEOF
23032 #define HAVE_CRYPT
23033 _ACEOF
23034
23035 fi
23036
23037 fi
23038
23039 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
23040 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
23041 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
23042   echo $ECHO_N "(cached) $ECHO_C" >&6
23043 else
23044   ac_check_lib_save_LIBS=$LIBS
23045 LIBS="-lcipher  $LIBS"
23046 cat >conftest.$ac_ext <<_ACEOF
23047 #line $LINENO "configure"
23048 /* confdefs.h.  */
23049 _ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h.  */
23053
23054 /* Override any gcc2 internal prototype to avoid an error.  */
23055 #ifdef __cplusplus
23056 extern "C"
23057 #endif
23058 /* We use char because int might match the return type of a gcc2
23059    builtin and then its argument prototype would still apply.  */
23060 char setkey ();
23061 int
23062 main ()
23063 {
23064 setkey ();
23065   ;
23066   return 0;
23067 }
23068 _ACEOF
23069 rm -f conftest.$ac_objext conftest$ac_exeext
23070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23071   (eval $ac_link) 2>&5
23072   ac_status=$?
23073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074   (exit $ac_status); } &&
23075          { ac_try='test -s conftest$ac_exeext'
23076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077   (eval $ac_try) 2>&5
23078   ac_status=$?
23079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080   (exit $ac_status); }; }; then
23081   ac_cv_lib_cipher_setkey=yes
23082 else
23083   echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23085
23086 ac_cv_lib_cipher_setkey=no
23087 fi
23088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23089 LIBS=$ac_check_lib_save_LIBS
23090 fi
23091 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
23092 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
23093 if test $ac_cv_lib_cipher_setkey = yes; then
23094   CRYPTLIB="${CRYPTLIB} -lcipher"
23095
23096 fi
23097
23098
23099
23100 if test "x$WITH_SNMP" = "xyes"; then
23101
23102
23103
23104
23105 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
23106 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
23107
23108 cat >conftest.$ac_ext <<_ACEOF
23109 #line $LINENO "configure"
23110 /* confdefs.h.  */
23111 _ACEOF
23112 cat confdefs.h >>conftest.$ac_ext
23113 cat >>conftest.$ac_ext <<_ACEOF
23114 /* end confdefs.h.  */
23115
23116 #ifdef HAVE_SYS_TYPES_H
23117 #include <sys/types.h>
23118 #endif
23119 #ifdef HAVE_STDINT_H
23120 #include <stdint.h>
23121 #endif
23122 #ifdef HAVE_STDIO_H
23123 #include <stdio.h>
23124 #endif
23125 #ifdef HAVE_NETDB_H
23126 #include <netdb.h>
23127 #endif
23128 #ifdef HAVE_UNISTD_H
23129 #include <unistd.h>
23130 #endif
23131 #include <ucd-snmp/ucd-snmp-config.h>
23132 #include <ucd-snmp/asn1.h>
23133 #include <ucd-snmp/snmp.h>
23134 #include <ucd-snmp/snmp_impl.h>
23135 int
23136 main ()
23137 {
23138  int a = 1;
23139   ;
23140   return 0;
23141 }
23142 _ACEOF
23143 rm -f conftest.$ac_objext
23144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23145   (eval $ac_compile) 2>&5
23146   ac_status=$?
23147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148   (exit $ac_status); } &&
23149          { ac_try='test -s conftest.$ac_objext'
23150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23151   (eval $ac_try) 2>&5
23152   ac_status=$?
23153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); }; }; then
23155   SNMP_INCLUDE="";ucdsnmp=yes
23156 else
23157   echo "$as_me: failed program was:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23159
23160 ucdsnmp=
23161 fi
23162 rm -f conftest.$ac_objext conftest.$ac_ext
23163
23164 if test "x$ucdsnmp" = "x"; then
23165   old_CFLAGS="$CFLAGS"
23166   for try in /usr/include /usr/local/include $snmp_include_dir; do
23167     CFLAGS="$old_CFLAGS -I$try"
23168     cat >conftest.$ac_ext <<_ACEOF
23169 #line $LINENO "configure"
23170 /* confdefs.h.  */
23171 _ACEOF
23172 cat confdefs.h >>conftest.$ac_ext
23173 cat >>conftest.$ac_ext <<_ACEOF
23174 /* end confdefs.h.  */
23175
23176 #ifdef HAVE_SYS_TYPES_H
23177 #include <sys/types.h>
23178 #endif
23179 #ifdef HAVE_STDINT_H
23180 #include <stdint.h>
23181 #endif
23182 #ifdef HAVE_STDIO_H
23183 #include <stdio.h>
23184 #endif
23185 #ifdef HAVE_NETDB_H
23186 #include <netdb.h>
23187 #endif
23188 #ifdef HAVE_UNISTD_H
23189 #include <unistd.h>
23190 #endif
23191 #include <ucd-snmp/ucd-snmp-config.h>
23192 #include <ucd-snmp/asn1.h>
23193 #include <ucd-snmp/snmp.h>
23194 #include <ucd-snmp/snmp_impl.h>
23195 int
23196 main ()
23197 {
23198  int a = 1;
23199   ;
23200   return 0;
23201 }
23202 _ACEOF
23203 rm -f conftest.$ac_objext
23204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23205   (eval $ac_compile) 2>&5
23206   ac_status=$?
23207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208   (exit $ac_status); } &&
23209          { ac_try='test -s conftest.$ac_objext'
23210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23211   (eval $ac_try) 2>&5
23212   ac_status=$?
23213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214   (exit $ac_status); }; }; then
23215   SNMP_INCLUDE="-I$try";ucdsnmp=yes
23216 else
23217   echo "$as_me: failed program was:" >&5
23218 sed 's/^/| /' conftest.$ac_ext >&5
23219
23220 ucdsnmp=
23221 fi
23222 rm -f conftest.$ac_objext conftest.$ac_ext
23223     if test "x$ucdsnmp" != "x"; then
23224       break;
23225     fi
23226   done
23227   CFLAGS="$old_CFLAGS"
23228 fi
23229
23230 if test "x$ucdsnmp" = "x"; then
23231   old_CFLAGS="$CFLAGS"
23232   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
23233     CFLAGS="$old_CFLAGS -I$try"
23234 cat >conftest.$ac_ext <<_ACEOF
23235 #line $LINENO "configure"
23236 /* confdefs.h.  */
23237 _ACEOF
23238 cat confdefs.h >>conftest.$ac_ext
23239 cat >>conftest.$ac_ext <<_ACEOF
23240 /* end confdefs.h.  */
23241
23242 #ifdef HAVE_SYS_TYPES_H
23243 #include <sys/types.h>
23244 #endif
23245 #ifdef HAVE_STDINT_H
23246 #include <stdint.h>
23247 #endif
23248 #ifdef HAVE_STDIO_H
23249 #include <stdio.h>
23250 #endif
23251 #ifdef HAVE_NETDB_H
23252 #include <netdb.h>
23253 #endif
23254 #ifdef HAVE_UNISTD_H
23255 #include <unistd.h>
23256 #endif
23257 #include <asn1.h>
23258 #include <snmp.h>
23259 #include <snmp_impl.h>
23260 int
23261 main ()
23262 {
23263  int a = 1;
23264   ;
23265   return 0;
23266 }
23267 _ACEOF
23268 rm -f conftest.$ac_objext
23269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23270   (eval $ac_compile) 2>&5
23271   ac_status=$?
23272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273   (exit $ac_status); } &&
23274          { ac_try='test -s conftest.$ac_objext'
23275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276   (eval $ac_try) 2>&5
23277   ac_status=$?
23278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279   (exit $ac_status); }; }; then
23280   SNMP_INCLUDE="";ucdsnmp=no
23281 else
23282   echo "$as_me: failed program was:" >&5
23283 sed 's/^/| /' conftest.$ac_ext >&5
23284
23285 ucdsnmp=
23286 fi
23287 rm -f conftest.$ac_objext conftest.$ac_ext
23288     if test "x$ucdsnmp" != "x"; then
23289       break;
23290     fi
23291   done
23292   CFLAGS="$old_CFLAGS"
23293 fi
23294
23295 if test "x$ucdsnmp" = "x"; then
23296   old_CFLAGS="$CFLAGS"
23297   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
23298     CFLAGS="$old_CFLAGS -I$try"
23299     cat >conftest.$ac_ext <<_ACEOF
23300 #line $LINENO "configure"
23301 /* confdefs.h.  */
23302 _ACEOF
23303 cat confdefs.h >>conftest.$ac_ext
23304 cat >>conftest.$ac_ext <<_ACEOF
23305 /* end confdefs.h.  */
23306
23307 #ifdef HAVE_SYS_TYPES_H
23308 #include <sys/types.h>
23309 #endif
23310 #ifdef HAVE_STDINT_H
23311 #include <stdint.h>
23312 #endif
23313 #ifdef HAVE_STDIO_H
23314 #include <stdio.h>
23315 #endif
23316 #ifdef HAVE_NETDB_H
23317 #include <netdb.h>
23318 #endif
23319 #ifdef HAVE_UNISTD_H
23320 #include <unistd.h>
23321 #endif
23322 #include <asn1.h>
23323 #include <snmp.h>
23324 #include <snmp_impl.h>
23325 int
23326 main ()
23327 {
23328  int a = 1;
23329   ;
23330   return 0;
23331 }
23332 _ACEOF
23333 rm -f conftest.$ac_objext
23334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23335   (eval $ac_compile) 2>&5
23336   ac_status=$?
23337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338   (exit $ac_status); } &&
23339          { ac_try='test -s conftest.$ac_objext'
23340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341   (eval $ac_try) 2>&5
23342   ac_status=$?
23343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344   (exit $ac_status); }; }; then
23345   SNMP_INCLUDE="-I$try";ucdsnmp=no
23346 else
23347   echo "$as_me: failed program was:" >&5
23348 sed 's/^/| /' conftest.$ac_ext >&5
23349
23350 ucdsnmp=
23351 fi
23352 rm -f conftest.$ac_objext conftest.$ac_ext
23353     if test "x$ucdsnmp" != "x"; then
23354       break;
23355     fi
23356   done
23357   CFLAGS="$old_CFLAGS"
23358 fi
23359
23360 if test "x$ucdsnmp" = "x"; then
23361   echo "$as_me:$LINENO: result: no" >&5
23362 echo "${ECHO_T}no" >&6
23363 else
23364   if test "x$ucdsnmp" = "xyes"; then
23365     echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
23366 echo "${ECHO_T}(ucd-snmp)yes" >&6
23367
23368 cat >>confdefs.h <<\_ACEOF
23369 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
23370 _ACEOF
23371
23372   else
23373     echo "$as_me:$LINENO: result: yes" >&5
23374 echo "${ECHO_T}yes" >&6
23375
23376 cat >>confdefs.h <<\_ACEOF
23377 #define HAVE_ASN1_SNMP_SNMPIMPL_H
23378 _ACEOF
23379
23380   fi
23381   echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
23382 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
23383
23384   old_LIBS="$LIBS"
23385   LIBS="$old_LIBS -lsnmp"
23386   cat >conftest.$ac_ext <<_ACEOF
23387 #line $LINENO "configure"
23388 /* confdefs.h.  */
23389 _ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h.  */
23393 extern char snmp_build_var_op();
23394 int
23395 main ()
23396 {
23397  snmp_build_var_op()
23398   ;
23399   return 0;
23400 }
23401 _ACEOF
23402 rm -f conftest.$ac_objext conftest$ac_exeext
23403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23404   (eval $ac_link) 2>&5
23405   ac_status=$?
23406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407   (exit $ac_status); } &&
23408          { ac_try='test -s conftest$ac_exeext'
23409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23410   (eval $ac_try) 2>&5
23411   ac_status=$?
23412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413   (exit $ac_status); }; }; then
23414   SNMP_LIBS="-lsnmp"
23415 else
23416   echo "$as_me: failed program was:" >&5
23417 sed 's/^/| /' conftest.$ac_ext >&5
23418
23419 SNMP_LIBS=
23420 fi
23421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23422
23423   if test "x$SNMP_LIBS" = "x"; then
23424     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
23425       LIBS="$old_LIBS -L$try -lsnmp"
23426       cat >conftest.$ac_ext <<_ACEOF
23427 #line $LINENO "configure"
23428 /* confdefs.h.  */
23429 _ACEOF
23430 cat confdefs.h >>conftest.$ac_ext
23431 cat >>conftest.$ac_ext <<_ACEOF
23432 /* end confdefs.h.  */
23433 extern char snmp_build_var_op();
23434 int
23435 main ()
23436 {
23437  snmp_build_var_op()
23438   ;
23439   return 0;
23440 }
23441 _ACEOF
23442 rm -f conftest.$ac_objext conftest$ac_exeext
23443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23444   (eval $ac_link) 2>&5
23445   ac_status=$?
23446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447   (exit $ac_status); } &&
23448          { ac_try='test -s conftest$ac_exeext'
23449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23450   (eval $ac_try) 2>&5
23451   ac_status=$?
23452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453   (exit $ac_status); }; }; then
23454   SNMP_LIBS="-L$try -lsnmp"
23455 else
23456   echo "$as_me: failed program was:" >&5
23457 sed 's/^/| /' conftest.$ac_ext >&5
23458
23459 SNMP_LIBS=
23460 fi
23461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23462       if test "x$SNMP_LIBS" != "x"; then
23463         break;
23464       fi
23465       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
23466       cat >conftest.$ac_ext <<_ACEOF
23467 #line $LINENO "configure"
23468 /* confdefs.h.  */
23469 _ACEOF
23470 cat confdefs.h >>conftest.$ac_ext
23471 cat >>conftest.$ac_ext <<_ACEOF
23472 /* end confdefs.h.  */
23473 extern char snmp_build_var_op();
23474 int
23475 main ()
23476 {
23477  snmp_build_var_op()
23478   ;
23479   return 0;
23480 }
23481 _ACEOF
23482 rm -f conftest.$ac_objext conftest$ac_exeext
23483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23484   (eval $ac_link) 2>&5
23485   ac_status=$?
23486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487   (exit $ac_status); } &&
23488          { ac_try='test -s conftest$ac_exeext'
23489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23490   (eval $ac_try) 2>&5
23491   ac_status=$?
23492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493   (exit $ac_status); }; }; then
23494   SNMP_LIBS="-L$try -lsnmp -lcrypto"
23495 else
23496   echo "$as_me: failed program was:" >&5
23497 sed 's/^/| /' conftest.$ac_ext >&5
23498
23499 SNMP_LIBS=
23500 fi
23501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23502       if test "x$SNMP_LIBS" != "x"; then
23503         break;
23504       fi
23505       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
23506       cat >conftest.$ac_ext <<_ACEOF
23507 #line $LINENO "configure"
23508 /* confdefs.h.  */
23509 _ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h.  */
23513 extern char snmp_build_var_op();
23514 int
23515 main ()
23516 {
23517  snmp_build_var_op()
23518   ;
23519   return 0;
23520 }
23521 _ACEOF
23522 rm -f conftest.$ac_objext conftest$ac_exeext
23523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23524   (eval $ac_link) 2>&5
23525   ac_status=$?
23526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527   (exit $ac_status); } &&
23528          { ac_try='test -s conftest$ac_exeext'
23529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23530   (eval $ac_try) 2>&5
23531   ac_status=$?
23532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533   (exit $ac_status); }; }; then
23534   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
23535 else
23536   echo "$as_me: failed program was:" >&5
23537 sed 's/^/| /' conftest.$ac_ext >&5
23538
23539 SNMP_LIBS=
23540 fi
23541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23542       if test "x$SNMP_LIBS" != "x"; then
23543         break;
23544       fi
23545     done
23546   fi
23547   LIBS="$old_LIBS"
23548
23549           CFLAGS="$old_CFLAGS"
23550   if test "x$SNMP_LIBS" = "x"; then
23551     echo "$as_me:$LINENO: result: no" >&5
23552 echo "${ECHO_T}no" >&6
23553     SNMP_INCLUDE=
23554   else
23555     echo "$as_me:$LINENO: result: yes" >&5
23556 echo "${ECHO_T}yes" >&6
23557
23558 cat >>confdefs.h <<\_ACEOF
23559 #define WITH_SNMP
23560 _ACEOF
23561
23562
23563 cat >>confdefs.h <<\_ACEOF
23564 #define HAVE_LIBSNMP
23565 _ACEOF
23566
23567   fi
23568 fi
23569
23570 fi
23571
23572
23573 cat >>confdefs.h <<\_ACEOF
23574 #define GNUSTYLE 1
23575 _ACEOF
23576
23577
23578 cat >>confdefs.h <<\_ACEOF
23579 #define SYSVSTYLE 2
23580 _ACEOF
23581
23582
23583 cat >>confdefs.h <<\_ACEOF
23584 #define BSDSTYLE 3
23585 _ACEOF
23586
23587 gethostbyaddrrstyle=""
23588 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
23589 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
23590 case "$host" in
23591 *-freebsd*)
23592
23593 cat >>confdefs.h <<\_ACEOF
23594 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23595 _ACEOF
23596
23597         gethostbyaddrrstyle=BSD
23598         { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
23599 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
23600         ;;
23601 esac
23602 if test "x$gethostbyaddrrstyle" = "x"; then
23603         cat >conftest.$ac_ext <<_ACEOF
23604 #line $LINENO "configure"
23605 /* confdefs.h.  */
23606 _ACEOF
23607 cat confdefs.h >>conftest.$ac_ext
23608 cat >>conftest.$ac_ext <<_ACEOF
23609 /* end confdefs.h.  */
23610
23611 #include <stdio.h>
23612 #include <netdb.h>
23613
23614 int
23615 main ()
23616 {
23617  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
23618   ;
23619   return 0;
23620 }
23621 _ACEOF
23622 rm -f conftest.$ac_objext conftest$ac_exeext
23623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23624   (eval $ac_link) 2>&5
23625   ac_status=$?
23626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627   (exit $ac_status); } &&
23628          { ac_try='test -s conftest$ac_exeext'
23629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630   (eval $ac_try) 2>&5
23631   ac_status=$?
23632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633   (exit $ac_status); }; }; then
23634
23635
23636 cat >>confdefs.h <<\_ACEOF
23637 #define GETHOSTBYADDRRSTYLE GNUSTYLE
23638 _ACEOF
23639
23640         gethostbyaddrrstyle=GNU
23641
23642 else
23643   echo "$as_me: failed program was:" >&5
23644 sed 's/^/| /' conftest.$ac_ext >&5
23645
23646 fi
23647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23648 fi
23649 if test "x$gethostbyaddrrstyle" = "x"; then
23650         cat >conftest.$ac_ext <<_ACEOF
23651 #line $LINENO "configure"
23652 /* confdefs.h.  */
23653 _ACEOF
23654 cat confdefs.h >>conftest.$ac_ext
23655 cat >>conftest.$ac_ext <<_ACEOF
23656 /* end confdefs.h.  */
23657
23658 #include <stdio.h>
23659 #include <netdb.h>
23660
23661 int
23662 main ()
23663 {
23664  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
23665   ;
23666   return 0;
23667 }
23668 _ACEOF
23669 rm -f conftest.$ac_objext conftest$ac_exeext
23670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23671   (eval $ac_link) 2>&5
23672   ac_status=$?
23673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674   (exit $ac_status); } &&
23675          { ac_try='test -s conftest$ac_exeext'
23676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23677   (eval $ac_try) 2>&5
23678   ac_status=$?
23679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680   (exit $ac_status); }; }; then
23681
23682
23683 cat >>confdefs.h <<\_ACEOF
23684 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
23685 _ACEOF
23686
23687                 gethostbyaddrrstyle=SYSV
23688
23689 else
23690   echo "$as_me: failed program was:" >&5
23691 sed 's/^/| /' conftest.$ac_ext >&5
23692
23693 fi
23694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23695 fi
23696 if test "x$gethostbyaddrrstyle" = "x"; then
23697         cat >conftest.$ac_ext <<_ACEOF
23698 #line $LINENO "configure"
23699 /* confdefs.h.  */
23700 _ACEOF
23701 cat confdefs.h >>conftest.$ac_ext
23702 cat >>conftest.$ac_ext <<_ACEOF
23703 /* end confdefs.h.  */
23704
23705 #include <stdio.h>
23706 #include <netdb.h>
23707
23708 int
23709 main ()
23710 {
23711  gethostbyaddr(NULL, 0, 0)
23712   ;
23713   return 0;
23714 }
23715 _ACEOF
23716 rm -f conftest.$ac_objext conftest$ac_exeext
23717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23718   (eval $ac_link) 2>&5
23719   ac_status=$?
23720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721   (exit $ac_status); } &&
23722          { ac_try='test -s conftest$ac_exeext'
23723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23724   (eval $ac_try) 2>&5
23725   ac_status=$?
23726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727   (exit $ac_status); }; }; then
23728
23729
23730 cat >>confdefs.h <<\_ACEOF
23731 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23732 _ACEOF
23733
23734                 gethostbyaddrrstyle=BSD
23735
23736 else
23737   echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.$ac_ext >&5
23739
23740 fi
23741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23742 fi
23743
23744 if test "x$gethostbyaddrrstyle" = "x"; then
23745         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23746 echo "${ECHO_T}none!  It must not exist, here." >&6
23747 else
23748         echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
23749 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
23750 fi
23751
23752 if test "x$gethostbyaddrrstyle" = "xBSD"; then
23753         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
23754 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
23755 fi
23756
23757 gethostbynamerstyle=""
23758 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
23759 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
23760 cat >conftest.$ac_ext <<_ACEOF
23761 #line $LINENO "configure"
23762 /* confdefs.h.  */
23763 _ACEOF
23764 cat confdefs.h >>conftest.$ac_ext
23765 cat >>conftest.$ac_ext <<_ACEOF
23766 /* end confdefs.h.  */
23767
23768 #include <stdio.h>
23769 #include <netdb.h>
23770
23771 int
23772 main ()
23773 {
23774  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
23775   ;
23776   return 0;
23777 }
23778 _ACEOF
23779 rm -f conftest.$ac_objext conftest$ac_exeext
23780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23781   (eval $ac_link) 2>&5
23782   ac_status=$?
23783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784   (exit $ac_status); } &&
23785          { ac_try='test -s conftest$ac_exeext'
23786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23787   (eval $ac_try) 2>&5
23788   ac_status=$?
23789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790   (exit $ac_status); }; }; then
23791
23792
23793 cat >>confdefs.h <<\_ACEOF
23794 #define GETHOSTBYNAMERSTYLE GNUSTYLE
23795 _ACEOF
23796
23797         gethostbynamerstyle=GNU
23798
23799 else
23800   echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23802
23803 fi
23804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23805 if test "x$gethostbynamerstyle" = "x"; then
23806         cat >conftest.$ac_ext <<_ACEOF
23807 #line $LINENO "configure"
23808 /* confdefs.h.  */
23809 _ACEOF
23810 cat confdefs.h >>conftest.$ac_ext
23811 cat >>conftest.$ac_ext <<_ACEOF
23812 /* end confdefs.h.  */
23813
23814 #include <stdio.h>
23815 #include <netdb.h>
23816
23817 int
23818 main ()
23819 {
23820  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
23821   ;
23822   return 0;
23823 }
23824 _ACEOF
23825 rm -f conftest.$ac_objext conftest$ac_exeext
23826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23827   (eval $ac_link) 2>&5
23828   ac_status=$?
23829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830   (exit $ac_status); } &&
23831          { ac_try='test -s conftest$ac_exeext'
23832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23833   (eval $ac_try) 2>&5
23834   ac_status=$?
23835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836   (exit $ac_status); }; }; then
23837
23838
23839 cat >>confdefs.h <<\_ACEOF
23840 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
23841 _ACEOF
23842
23843                 gethostbynamerstyle=SYSV
23844
23845 else
23846   echo "$as_me: failed program was:" >&5
23847 sed 's/^/| /' conftest.$ac_ext >&5
23848
23849 fi
23850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23851 fi
23852 if test "x$gethostbynamerstyle" = "x"; then
23853         cat >conftest.$ac_ext <<_ACEOF
23854 #line $LINENO "configure"
23855 /* confdefs.h.  */
23856 _ACEOF
23857 cat confdefs.h >>conftest.$ac_ext
23858 cat >>conftest.$ac_ext <<_ACEOF
23859 /* end confdefs.h.  */
23860
23861 #include <stdio.h>
23862 #include <netdb.h>
23863
23864 int
23865 main ()
23866 {
23867  gethostbyname(NULL)
23868   ;
23869   return 0;
23870 }
23871 _ACEOF
23872 rm -f conftest.$ac_objext conftest$ac_exeext
23873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23874   (eval $ac_link) 2>&5
23875   ac_status=$?
23876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877   (exit $ac_status); } &&
23878          { ac_try='test -s conftest$ac_exeext'
23879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23880   (eval $ac_try) 2>&5
23881   ac_status=$?
23882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883   (exit $ac_status); }; }; then
23884
23885
23886 cat >>confdefs.h <<\_ACEOF
23887 #define GETHOSTBYNAMERSTYLE BSDSTYLE
23888 _ACEOF
23889
23890                 gethostbynamerstyle=BSD
23891
23892 else
23893   echo "$as_me: failed program was:" >&5
23894 sed 's/^/| /' conftest.$ac_ext >&5
23895
23896 fi
23897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23898 fi
23899
23900 if test "x$gethostbynamerstyle" = "x"; then
23901         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23902 echo "${ECHO_T}none!  It must not exist, here." >&6
23903 else
23904         echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
23905 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
23906 fi
23907
23908 if test "x$gethostbynamerstyle" = "xBSD"; then
23909         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
23910 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
23911 fi
23912
23913
23914 cat >>confdefs.h <<\_ACEOF
23915 #define POSIXSTYLE 1
23916 _ACEOF
23917
23918
23919 cat >>confdefs.h <<\_ACEOF
23920 #define SOLARISSTYLE 2
23921 _ACEOF
23922
23923 ctimerstyle=""
23924 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
23925 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
23926 cat >conftest.$ac_ext <<_ACEOF
23927 #line $LINENO "configure"
23928 /* confdefs.h.  */
23929 _ACEOF
23930 cat confdefs.h >>conftest.$ac_ext
23931 cat >>conftest.$ac_ext <<_ACEOF
23932 /* end confdefs.h.  */
23933
23934 #include <time.h>
23935
23936 int
23937 main ()
23938 {
23939  ctime_r(NULL, NULL, 0)
23940   ;
23941   return 0;
23942 }
23943 _ACEOF
23944 rm -f conftest.$ac_objext conftest$ac_exeext
23945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23946   (eval $ac_link) 2>&5
23947   ac_status=$?
23948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949   (exit $ac_status); } &&
23950          { ac_try='test -s conftest$ac_exeext'
23951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23952   (eval $ac_try) 2>&5
23953   ac_status=$?
23954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955   (exit $ac_status); }; }; then
23956
23957
23958 cat >>confdefs.h <<\_ACEOF
23959 #define CTIMERSTYLE SOLARISSTYLE
23960 _ACEOF
23961
23962         ctimerstyle="SOLARIS"
23963
23964 else
23965   echo "$as_me: failed program was:" >&5
23966 sed 's/^/| /' conftest.$ac_ext >&5
23967
23968 fi
23969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23970 if test "x$ctimerstyle" = "x"; then
23971         cat >conftest.$ac_ext <<_ACEOF
23972 #line $LINENO "configure"
23973 /* confdefs.h.  */
23974 _ACEOF
23975 cat confdefs.h >>conftest.$ac_ext
23976 cat >>conftest.$ac_ext <<_ACEOF
23977 /* end confdefs.h.  */
23978
23979 #include <time.h>
23980
23981 int
23982 main ()
23983 {
23984  ctime_r(NULL, NULL)
23985   ;
23986   return 0;
23987 }
23988 _ACEOF
23989 rm -f conftest.$ac_objext conftest$ac_exeext
23990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23991   (eval $ac_link) 2>&5
23992   ac_status=$?
23993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994   (exit $ac_status); } &&
23995          { ac_try='test -s conftest$ac_exeext'
23996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23997   (eval $ac_try) 2>&5
23998   ac_status=$?
23999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000   (exit $ac_status); }; }; then
24001
24002
24003 cat >>confdefs.h <<\_ACEOF
24004 #define CTIMERSTYLE POSIXSTYLE
24005 _ACEOF
24006
24007                 ctimerstyle="POSIX"
24008
24009 else
24010   echo "$as_me: failed program was:" >&5
24011 sed 's/^/| /' conftest.$ac_ext >&5
24012
24013 fi
24014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24015 fi
24016
24017 if test "x$ctimerstyle" = "x"; then
24018         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24019 echo "${ECHO_T}none!  It must not exist, here." >&6
24020 else
24021         echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
24022 echo "${ECHO_T}${ctimerstyle}-style" >&6
24023 fi
24024
24025 HOSTINFO=$host
24026
24027
24028
24029 top_builddir=`pwd`
24030 export top_builddir
24031 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
24032 echo "${ECHO_T}top_builddir=$top_builddir" >&6
24033
24034
24035
24036 if test "x$INCLTDL" != "x";then
24037   INCLTDL='-I${top_builddir}/''libltdl'
24038 fi
24039
24040
24041
24042 mysubdirs="$LIBLTDLPATH"
24043 if test "x$EXPERIMENTAL" = "xyes"; then
24044   bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
24045     mysubdirs=`echo $mysubdirs $bar`
24046 else
24047         for bar in `cat src/modules/stable`; do
24048     if test -f src/modules/$bar/configure; then
24049       mysubdirs="$mysubdirs src/modules/$bar"
24050     fi
24051   done
24052 fi
24053
24054 MODULES=
24055 if test "x$EXPERIMENTAL" = "xyes"; then
24056   for foo in `ls -1 src/modules | grep rlm_`; do
24057     MODULES="$MODULES $foo"
24058   done
24059 else
24060             for foo in `cat src/modules/stable`; do
24061     MODULES="$MODULES $foo"
24062    done
24063 fi
24064
24065
24066
24067 subdirs="$subdirs $mysubdirs"
24068
24069
24070
24071
24072           ac_config_commands="$ac_config_commands stamp-h"
24073
24074           ac_config_commands="$ac_config_commands build-radpaths-h"
24075
24076           ac_config_commands="$ac_config_commands main-chmod"
24077
24078           ac_config_commands="$ac_config_commands scripts-chmod"
24079
24080
24081
24082
24083
24084 USE_SHARED_LIBS=$enable_shared
24085
24086 USE_STATIC_LIBS=$enable_static
24087
24088
24089
24090
24091
24092 export CFLAGS LIBS LDFLAGS CPPFLAGS
24093
24094                                                                                                                                             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/dictionary ./raddb/radiusd.conf"
24095 cat >confcache <<\_ACEOF
24096 # This file is a shell script that caches the results of configure
24097 # tests run on this system so they can be shared between configure
24098 # scripts and configure runs, see configure's option --config-cache.
24099 # It is not useful on other systems.  If it contains results you don't
24100 # want to keep, you may remove or edit it.
24101 #
24102 # config.status only pays attention to the cache file if you give it
24103 # the --recheck option to rerun configure.
24104 #
24105 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24106 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24107 # following values.
24108
24109 _ACEOF
24110
24111 # The following way of writing the cache mishandles newlines in values,
24112 # but we know of no workaround that is simple, portable, and efficient.
24113 # So, don't put newlines in cache variables' values.
24114 # Ultrix sh set writes to stderr and can't be redirected directly,
24115 # and sets the high bit in the cache file unless we assign to the vars.
24116 {
24117   (set) 2>&1 |
24118     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24119     *ac_space=\ *)
24120       # `set' does not quote correctly, so add quotes (double-quote
24121       # substitution turns \\\\ into \\, and sed turns \\ into \).
24122       sed -n \
24123         "s/'/'\\\\''/g;
24124           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24125       ;;
24126     *)
24127       # `set' quotes correctly as required by POSIX, so do not add quotes.
24128       sed -n \
24129         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24130       ;;
24131     esac;
24132 } |
24133   sed '
24134      t clear
24135      : clear
24136      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24137      t end
24138      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24139      : end' >>confcache
24140 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24141   if test -w $cache_file; then
24142     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24143     cat confcache >$cache_file
24144   else
24145     echo "not updating unwritable cache $cache_file"
24146   fi
24147 fi
24148 rm -f confcache
24149
24150 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24151 # Let make expand exec_prefix.
24152 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24153
24154 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24155 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24156 # trailing colons and then remove the whole line if VPATH becomes empty
24157 # (actually we leave an empty line to preserve line numbers).
24158 if test "x$srcdir" = x.; then
24159   ac_vpsub='/^[         ]*VPATH[        ]*=/{
24160 s/:*\$(srcdir):*/:/;
24161 s/:*\${srcdir}:*/:/;
24162 s/:*@srcdir@:*/:/;
24163 s/^\([^=]*=[    ]*\):*/\1/;
24164 s/:*$//;
24165 s/^[^=]*=[      ]*$//;
24166 }'
24167 fi
24168
24169 DEFS=-DHAVE_CONFIG_H
24170
24171 ac_libobjs=
24172 ac_ltlibobjs=
24173 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24174   # 1. Remove the extension, and $U if already installed.
24175   ac_i=`echo "$ac_i" |
24176          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24177   # 2. Add them.
24178   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24179   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24180 done
24181 LIBOBJS=$ac_libobjs
24182
24183 LTLIBOBJS=$ac_ltlibobjs
24184
24185
24186
24187 : ${CONFIG_STATUS=./config.status}
24188 ac_clean_files_save=$ac_clean_files
24189 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24190 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24191 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24192 cat >$CONFIG_STATUS <<_ACEOF
24193 #! $SHELL
24194 # Generated by $as_me.
24195 # Run this file to recreate the current configuration.
24196 # Compiler output produced by configure, useful for debugging
24197 # configure, is in config.log if it exists.
24198
24199 debug=false
24200 ac_cs_recheck=false
24201 ac_cs_silent=false
24202 SHELL=\${CONFIG_SHELL-$SHELL}
24203 _ACEOF
24204
24205 cat >>$CONFIG_STATUS <<\_ACEOF
24206 ## --------------------- ##
24207 ## M4sh Initialization.  ##
24208 ## --------------------- ##
24209
24210 # Be Bourne compatible
24211 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24212   emulate sh
24213   NULLCMD=:
24214   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24215   # is contrary to our usage.  Disable this feature.
24216   alias -g '${1+"$@"}'='"$@"'
24217 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24218   set -o posix
24219 fi
24220
24221 # Support unset when possible.
24222 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
24223   as_unset=unset
24224 else
24225   as_unset=false
24226 fi
24227
24228
24229 # Work around bugs in pre-3.0 UWIN ksh.
24230 $as_unset ENV MAIL MAILPATH
24231 PS1='$ '
24232 PS2='> '
24233 PS4='+ '
24234
24235 # NLS nuisances.
24236 for as_var in \
24237   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24238   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24239   LC_TELEPHONE LC_TIME
24240 do
24241   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
24242     eval $as_var=C; export $as_var
24243   else
24244     $as_unset $as_var
24245   fi
24246 done
24247
24248 # Required to use basename.
24249 if expr a : '\(a\)' >/dev/null 2>&1; then
24250   as_expr=expr
24251 else
24252   as_expr=false
24253 fi
24254
24255 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24256   as_basename=basename
24257 else
24258   as_basename=false
24259 fi
24260
24261
24262 # Name of the executable.
24263 as_me=`$as_basename "$0" ||
24264 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24265          X"$0" : 'X\(//\)$' \| \
24266          X"$0" : 'X\(/\)$' \| \
24267          .     : '\(.\)' 2>/dev/null ||
24268 echo X/"$0" |
24269     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24270           /^X\/\(\/\/\)$/{ s//\1/; q; }
24271           /^X\/\(\/\).*/{ s//\1/; q; }
24272           s/.*/./; q'`
24273
24274
24275 # PATH needs CR, and LINENO needs CR and PATH.
24276 # Avoid depending upon Character Ranges.
24277 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24278 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24279 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24280 as_cr_digits='0123456789'
24281 as_cr_alnum=$as_cr_Letters$as_cr_digits
24282
24283 # The user is always right.
24284 if test "${PATH_SEPARATOR+set}" != set; then
24285   echo "#! /bin/sh" >conf$$.sh
24286   echo  "exit 0"   >>conf$$.sh
24287   chmod +x conf$$.sh
24288   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24289     PATH_SEPARATOR=';'
24290   else
24291     PATH_SEPARATOR=:
24292   fi
24293   rm -f conf$$.sh
24294 fi
24295
24296
24297   as_lineno_1=$LINENO
24298   as_lineno_2=$LINENO
24299   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24300   test "x$as_lineno_1" != "x$as_lineno_2" &&
24301   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24302   # Find who we are.  Look in the path if we contain no path at all
24303   # relative or not.
24304   case $0 in
24305     *[\\/]* ) as_myself=$0 ;;
24306     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24307 for as_dir in $PATH
24308 do
24309   IFS=$as_save_IFS
24310   test -z "$as_dir" && as_dir=.
24311   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24312 done
24313
24314        ;;
24315   esac
24316   # We did not find ourselves, most probably we were run as `sh COMMAND'
24317   # in which case we are not to be found in the path.
24318   if test "x$as_myself" = x; then
24319     as_myself=$0
24320   fi
24321   if test ! -f "$as_myself"; then
24322     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24323 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24324    { (exit 1); exit 1; }; }
24325   fi
24326   case $CONFIG_SHELL in
24327   '')
24328     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24329 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24330 do
24331   IFS=$as_save_IFS
24332   test -z "$as_dir" && as_dir=.
24333   for as_base in sh bash ksh sh5; do
24334          case $as_dir in
24335          /*)
24336            if ("$as_dir/$as_base" -c '
24337   as_lineno_1=$LINENO
24338   as_lineno_2=$LINENO
24339   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24340   test "x$as_lineno_1" != "x$as_lineno_2" &&
24341   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24342              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24343              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24344              CONFIG_SHELL=$as_dir/$as_base
24345              export CONFIG_SHELL
24346              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24347            fi;;
24348          esac
24349        done
24350 done
24351 ;;
24352   esac
24353
24354   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24355   # uniformly replaced by the line number.  The first 'sed' inserts a
24356   # line-number line before each line; the second 'sed' does the real
24357   # work.  The second script uses 'N' to pair each line-number line
24358   # with the numbered line, and appends trailing '-' during
24359   # substitution so that $LINENO is not a special case at line end.
24360   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24361   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24362   sed '=' <$as_myself |
24363     sed '
24364       N
24365       s,$,-,
24366       : loop
24367       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24368       t loop
24369       s,-$,,
24370       s,^['$as_cr_digits']*\n,,
24371     ' >$as_me.lineno &&
24372   chmod +x $as_me.lineno ||
24373     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24374 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24375    { (exit 1); exit 1; }; }
24376
24377   # Don't try to exec as it changes $[0], causing all sort of problems
24378   # (the dirname of $[0] is not the place where we might find the
24379   # original and so on.  Autoconf is especially sensible to this).
24380   . ./$as_me.lineno
24381   # Exit status is that of the last command.
24382   exit
24383 }
24384
24385
24386 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24387   *c*,-n*) ECHO_N= ECHO_C='
24388 ' ECHO_T='      ' ;;
24389   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24390   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24391 esac
24392
24393 if expr a : '\(a\)' >/dev/null 2>&1; then
24394   as_expr=expr
24395 else
24396   as_expr=false
24397 fi
24398
24399 rm -f conf$$ conf$$.exe conf$$.file
24400 echo >conf$$.file
24401 if ln -s conf$$.file conf$$ 2>/dev/null; then
24402   # We could just check for DJGPP; but this test a) works b) is more generic
24403   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24404   if test -f conf$$.exe; then
24405     # Don't use ln at all; we don't have any links
24406     as_ln_s='cp -p'
24407   else
24408     as_ln_s='ln -s'
24409   fi
24410 elif ln conf$$.file conf$$ 2>/dev/null; then
24411   as_ln_s=ln
24412 else
24413   as_ln_s='cp -p'
24414 fi
24415 rm -f conf$$ conf$$.exe conf$$.file
24416
24417 if mkdir -p . 2>/dev/null; then
24418   as_mkdir_p=:
24419 else
24420   as_mkdir_p=false
24421 fi
24422
24423 as_executable_p="test -f"
24424
24425 # Sed expression to map a string onto a valid CPP name.
24426 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24427
24428 # Sed expression to map a string onto a valid variable name.
24429 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
24430
24431
24432 # IFS
24433 # We need space, tab and new line, in precisely that order.
24434 as_nl='
24435 '
24436 IFS="   $as_nl"
24437
24438 # CDPATH.
24439 $as_unset CDPATH
24440
24441 exec 6>&1
24442
24443 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24444 # report actual input values of CONFIG_FILES etc. instead of their
24445 # values after options handling.  Logging --version etc. is OK.
24446 exec 5>>config.log
24447 {
24448   echo
24449   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24450 ## Running $as_me. ##
24451 _ASBOX
24452 } >&5
24453 cat >&5 <<_CSEOF
24454
24455 This file was extended by $as_me, which was
24456 generated by GNU Autoconf 2.57.  Invocation command line was
24457
24458   CONFIG_FILES    = $CONFIG_FILES
24459   CONFIG_HEADERS  = $CONFIG_HEADERS
24460   CONFIG_LINKS    = $CONFIG_LINKS
24461   CONFIG_COMMANDS = $CONFIG_COMMANDS
24462   $ $0 $@
24463
24464 _CSEOF
24465 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24466 echo >&5
24467 _ACEOF
24468
24469 # Files that config.status was made for.
24470 if test -n "$ac_config_files"; then
24471   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24472 fi
24473
24474 if test -n "$ac_config_headers"; then
24475   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24476 fi
24477
24478 if test -n "$ac_config_links"; then
24479   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24480 fi
24481
24482 if test -n "$ac_config_commands"; then
24483   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24484 fi
24485
24486 cat >>$CONFIG_STATUS <<\_ACEOF
24487
24488 ac_cs_usage="\
24489 \`$as_me' instantiates files from templates according to the
24490 current configuration.
24491
24492 Usage: $0 [OPTIONS] [FILE]...
24493
24494   -h, --help       print this help, then exit
24495   -V, --version    print version number, then exit
24496   -q, --quiet      do not print progress messages
24497   -d, --debug      don't remove temporary files
24498       --recheck    update $as_me by reconfiguring in the same conditions
24499   --file=FILE[:TEMPLATE]
24500                    instantiate the configuration file FILE
24501   --header=FILE[:TEMPLATE]
24502                    instantiate the configuration header FILE
24503
24504 Configuration files:
24505 $config_files
24506
24507 Configuration headers:
24508 $config_headers
24509
24510 Configuration commands:
24511 $config_commands
24512
24513 Report bugs to <bug-autoconf@gnu.org>."
24514 _ACEOF
24515
24516 cat >>$CONFIG_STATUS <<_ACEOF
24517 ac_cs_version="\\
24518 config.status
24519 configured by $0, generated by GNU Autoconf 2.57,
24520   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24521
24522 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
24523 Free Software Foundation, Inc.
24524 This config.status script is free software; the Free Software Foundation
24525 gives unlimited permission to copy, distribute and modify it."
24526 srcdir=$srcdir
24527 _ACEOF
24528
24529 cat >>$CONFIG_STATUS <<\_ACEOF
24530 # If no file are specified by the user, then we need to provide default
24531 # value.  By we need to know if files were specified by the user.
24532 ac_need_defaults=:
24533 while test $# != 0
24534 do
24535   case $1 in
24536   --*=*)
24537     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24538     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24539     ac_shift=:
24540     ;;
24541   -*)
24542     ac_option=$1
24543     ac_optarg=$2
24544     ac_shift=shift
24545     ;;
24546   *) # This is not an option, so the user has probably given explicit
24547      # arguments.
24548      ac_option=$1
24549      ac_need_defaults=false;;
24550   esac
24551
24552   case $ac_option in
24553   # Handling of the options.
24554 _ACEOF
24555 cat >>$CONFIG_STATUS <<\_ACEOF
24556   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24557     ac_cs_recheck=: ;;
24558   --version | --vers* | -V )
24559     echo "$ac_cs_version"; exit 0 ;;
24560   --he | --h)
24561     # Conflict between --help and --header
24562     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24563 Try \`$0 --help' for more information." >&5
24564 echo "$as_me: error: ambiguous option: $1
24565 Try \`$0 --help' for more information." >&2;}
24566    { (exit 1); exit 1; }; };;
24567   --help | --hel | -h )
24568     echo "$ac_cs_usage"; exit 0 ;;
24569   --debug | --d* | -d )
24570     debug=: ;;
24571   --file | --fil | --fi | --f )
24572     $ac_shift
24573     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24574     ac_need_defaults=false;;
24575   --header | --heade | --head | --hea )
24576     $ac_shift
24577     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24578     ac_need_defaults=false;;
24579   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24580   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24581     ac_cs_silent=: ;;
24582
24583   # This is an error.
24584   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24585 Try \`$0 --help' for more information." >&5
24586 echo "$as_me: error: unrecognized option: $1
24587 Try \`$0 --help' for more information." >&2;}
24588    { (exit 1); exit 1; }; } ;;
24589
24590   *) ac_config_targets="$ac_config_targets $1" ;;
24591
24592   esac
24593   shift
24594 done
24595
24596 ac_configure_extra_args=
24597
24598 if $ac_cs_silent; then
24599   exec 6>/dev/null
24600   ac_configure_extra_args="$ac_configure_extra_args --silent"
24601 fi
24602
24603 _ACEOF
24604 cat >>$CONFIG_STATUS <<_ACEOF
24605 if \$ac_cs_recheck; then
24606   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24607   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24608 fi
24609
24610 _ACEOF
24611
24612
24613
24614
24615
24616 cat >>$CONFIG_STATUS <<\_ACEOF
24617 for ac_config_target in $ac_config_targets
24618 do
24619   case "$ac_config_target" in
24620   # Handling of arguments.
24621   "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
24622   "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
24623   "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
24624   "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
24625   "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
24626   "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
24627   "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
24628   "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
24629   "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
24630   "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
24631   "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
24632   "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
24633   "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
24634   "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
24635   "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
24636   "build-radpaths-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
24637   "main-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
24638   "scripts-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
24639   "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
24640   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24641 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24642    { (exit 1); exit 1; }; };;
24643   esac
24644 done
24645
24646 # If the user did not use the arguments to specify the items to instantiate,
24647 # then the envvar interface is used.  Set only those that are not.
24648 # We use the long form for the default assignment because of an extremely
24649 # bizarre bug on SunOS 4.1.3.
24650 if $ac_need_defaults; then
24651   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24652   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24653   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24654 fi
24655
24656 # Have a temporary directory for convenience.  Make it in the build tree
24657 # simply because there is no reason to put it here, and in addition,
24658 # creating and moving files from /tmp can sometimes cause problems.
24659 # Create a temporary directory, and hook for its removal unless debugging.
24660 $debug ||
24661 {
24662   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24663   trap '{ (exit 1); exit 1; }' 1 2 13 15
24664 }
24665
24666 # Create a (secure) tmp directory for tmp files.
24667
24668 {
24669   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24670   test -n "$tmp" && test -d "$tmp"
24671 }  ||
24672 {
24673   tmp=./confstat$$-$RANDOM
24674   (umask 077 && mkdir $tmp)
24675 } ||
24676 {
24677    echo "$me: cannot create a temporary directory in ." >&2
24678    { (exit 1); exit 1; }
24679 }
24680
24681 _ACEOF
24682
24683 cat >>$CONFIG_STATUS <<_ACEOF
24684
24685 #
24686 # CONFIG_FILES section.
24687 #
24688
24689 # No need to generate the scripts if there are no CONFIG_FILES.
24690 # This happens for instance when ./config.status config.h
24691 if test -n "\$CONFIG_FILES"; then
24692   # Protect against being on the right side of a sed subst in config.status.
24693   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24694    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24695 s,@SHELL@,$SHELL,;t t
24696 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24697 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24698 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24699 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24700 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24701 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24702 s,@exec_prefix@,$exec_prefix,;t t
24703 s,@prefix@,$prefix,;t t
24704 s,@program_transform_name@,$program_transform_name,;t t
24705 s,@bindir@,$bindir,;t t
24706 s,@sbindir@,$sbindir,;t t
24707 s,@libexecdir@,$libexecdir,;t t
24708 s,@datadir@,$datadir,;t t
24709 s,@sysconfdir@,$sysconfdir,;t t
24710 s,@sharedstatedir@,$sharedstatedir,;t t
24711 s,@localstatedir@,$localstatedir,;t t
24712 s,@libdir@,$libdir,;t t
24713 s,@includedir@,$includedir,;t t
24714 s,@oldincludedir@,$oldincludedir,;t t
24715 s,@infodir@,$infodir,;t t
24716 s,@mandir@,$mandir,;t t
24717 s,@build_alias@,$build_alias,;t t
24718 s,@host_alias@,$host_alias,;t t
24719 s,@target_alias@,$target_alias,;t t
24720 s,@DEFS@,$DEFS,;t t
24721 s,@ECHO_C@,$ECHO_C,;t t
24722 s,@ECHO_N@,$ECHO_N,;t t
24723 s,@ECHO_T@,$ECHO_T,;t t
24724 s,@LIBS@,$LIBS,;t t
24725 s,@CC@,$CC,;t t
24726 s,@CFLAGS@,$CFLAGS,;t t
24727 s,@LDFLAGS@,$LDFLAGS,;t t
24728 s,@CPPFLAGS@,$CPPFLAGS,;t t
24729 s,@ac_ct_CC@,$ac_ct_CC,;t t
24730 s,@EXEEXT@,$EXEEXT,;t t
24731 s,@OBJEXT@,$OBJEXT,;t t
24732 s,@CPP@,$CPP,;t t
24733 s,@EGREP@,$EGREP,;t t
24734 s,@RANLIB@,$RANLIB,;t t
24735 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24736 s,@abs_top_builddir@,$abs_top_builddir,;t t
24737 s,@GMAKE@,$GMAKE,;t t
24738 s,@MAKE@,$MAKE,;t t
24739 s,@LIBLTDLPATH@,$LIBLTDLPATH,;t t
24740 s,@LIBTOOL@,$LIBTOOL,;t t
24741 s,@build@,$build,;t t
24742 s,@build_cpu@,$build_cpu,;t t
24743 s,@build_vendor@,$build_vendor,;t t
24744 s,@build_os@,$build_os,;t t
24745 s,@host@,$host,;t t
24746 s,@host_cpu@,$host_cpu,;t t
24747 s,@host_vendor@,$host_vendor,;t t
24748 s,@host_os@,$host_os,;t t
24749 s,@LN_S@,$LN_S,;t t
24750 s,@ECHO@,$ECHO,;t t
24751 s,@AR@,$AR,;t t
24752 s,@ac_ct_AR@,$ac_ct_AR,;t t
24753 s,@STRIP@,$STRIP,;t t
24754 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24755 s,@CXX@,$CXX,;t t
24756 s,@CXXFLAGS@,$CXXFLAGS,;t t
24757 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24758 s,@CXXCPP@,$CXXCPP,;t t
24759 s,@F77@,$F77,;t t
24760 s,@FFLAGS@,$FFLAGS,;t t
24761 s,@ac_ct_F77@,$ac_ct_F77,;t t
24762 s,@logdir@,$logdir,;t t
24763 s,@radacctdir@,$radacctdir,;t t
24764 s,@raddbdir@,$raddbdir,;t t
24765 s,@PERL@,$PERL,;t t
24766 s,@SNMPGET@,$SNMPGET,;t t
24767 s,@SNMPWALK@,$SNMPWALK,;t t
24768 s,@RUSERS@,$RUSERS,;t t
24769 s,@ACLOCAL@,$ACLOCAL,;t t
24770 s,@AUTOCONF@,$AUTOCONF,;t t
24771 s,@AUTOHEADER@,$AUTOHEADER,;t t
24772 s,@LOCATE@,$LOCATE,;t t
24773 s,@DIRNAME@,$DIRNAME,;t t
24774 s,@GREP@,$GREP,;t t
24775 s,@REGEX@,$REGEX,;t t
24776 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
24777 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
24778 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24779 s,@LIBPREFIX@,$LIBPREFIX,;t t
24780 s,@CRYPTLIB@,$CRYPTLIB,;t t
24781 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
24782 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
24783 s,@HOSTINFO@,$HOSTINFO,;t t
24784 s,@LIBLTDL@,$LIBLTDL,;t t
24785 s,@INCLTDL@,$INCLTDL,;t t
24786 s,@subdirs@,$subdirs,;t t
24787 s,@MODULES@,$MODULES,;t t
24788 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
24789 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
24790 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
24791 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
24792 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
24793 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
24794 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
24795 s,@LIBOBJS@,$LIBOBJS,;t t
24796 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24797 CEOF
24798
24799 _ACEOF
24800
24801   cat >>$CONFIG_STATUS <<\_ACEOF
24802   # Split the substitutions into bite-sized pieces for seds with
24803   # small command number limits, like on Digital OSF/1 and HP-UX.
24804   ac_max_sed_lines=48
24805   ac_sed_frag=1 # Number of current file.
24806   ac_beg=1 # First line for current file.
24807   ac_end=$ac_max_sed_lines # Line after last line for current file.
24808   ac_more_lines=:
24809   ac_sed_cmds=
24810   while $ac_more_lines; do
24811     if test $ac_beg -gt 1; then
24812       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24813     else
24814       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24815     fi
24816     if test ! -s $tmp/subs.frag; then
24817       ac_more_lines=false
24818     else
24819       # The purpose of the label and of the branching condition is to
24820       # speed up the sed processing (if there are no `@' at all, there
24821       # is no need to browse any of the substitutions).
24822       # These are the two extra sed commands mentioned above.
24823       (echo ':t
24824   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24825       if test -z "$ac_sed_cmds"; then
24826         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24827       else
24828         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24829       fi
24830       ac_sed_frag=`expr $ac_sed_frag + 1`
24831       ac_beg=$ac_end
24832       ac_end=`expr $ac_end + $ac_max_sed_lines`
24833     fi
24834   done
24835   if test -z "$ac_sed_cmds"; then
24836     ac_sed_cmds=cat
24837   fi
24838 fi # test -n "$CONFIG_FILES"
24839
24840 _ACEOF
24841 cat >>$CONFIG_STATUS <<\_ACEOF
24842 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24843   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24844   case $ac_file in
24845   - | *:- | *:-:* ) # input from stdin
24846         cat >$tmp/stdin
24847         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24848         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24849   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24850         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24851   * )   ac_file_in=$ac_file.in ;;
24852   esac
24853
24854   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24855   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24856 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24857          X"$ac_file" : 'X\(//\)[^/]' \| \
24858          X"$ac_file" : 'X\(//\)$' \| \
24859          X"$ac_file" : 'X\(/\)' \| \
24860          .     : '\(.\)' 2>/dev/null ||
24861 echo X"$ac_file" |
24862     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24863           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24864           /^X\(\/\/\)$/{ s//\1/; q; }
24865           /^X\(\/\).*/{ s//\1/; q; }
24866           s/.*/./; q'`
24867   { if $as_mkdir_p; then
24868     mkdir -p "$ac_dir"
24869   else
24870     as_dir="$ac_dir"
24871     as_dirs=
24872     while test ! -d "$as_dir"; do
24873       as_dirs="$as_dir $as_dirs"
24874       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24875 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24876          X"$as_dir" : 'X\(//\)[^/]' \| \
24877          X"$as_dir" : 'X\(//\)$' \| \
24878          X"$as_dir" : 'X\(/\)' \| \
24879          .     : '\(.\)' 2>/dev/null ||
24880 echo X"$as_dir" |
24881     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24882           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24883           /^X\(\/\/\)$/{ s//\1/; q; }
24884           /^X\(\/\).*/{ s//\1/; q; }
24885           s/.*/./; q'`
24886     done
24887     test ! -n "$as_dirs" || mkdir $as_dirs
24888   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24889 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24890    { (exit 1); exit 1; }; }; }
24891
24892   ac_builddir=.
24893
24894 if test "$ac_dir" != .; then
24895   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24896   # A "../" for each directory in $ac_dir_suffix.
24897   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24898 else
24899   ac_dir_suffix= ac_top_builddir=
24900 fi
24901
24902 case $srcdir in
24903   .)  # No --srcdir option.  We are building in place.
24904     ac_srcdir=.
24905     if test -z "$ac_top_builddir"; then
24906        ac_top_srcdir=.
24907     else
24908        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24909     fi ;;
24910   [\\/]* | ?:[\\/]* )  # Absolute path.
24911     ac_srcdir=$srcdir$ac_dir_suffix;
24912     ac_top_srcdir=$srcdir ;;
24913   *) # Relative path.
24914     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24915     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24916 esac
24917 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24918 # absolute.
24919 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24920 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24921 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24922 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24923
24924
24925
24926   if test x"$ac_file" != x-; then
24927     { echo "$as_me:$LINENO: creating $ac_file" >&5
24928 echo "$as_me: creating $ac_file" >&6;}
24929     rm -f "$ac_file"
24930   fi
24931   # Let's still pretend it is `configure' which instantiates (i.e., don't
24932   # use $as_me), people would be surprised to read:
24933   #    /* config.h.  Generated by config.status.  */
24934   if test x"$ac_file" = x-; then
24935     configure_input=
24936   else
24937     configure_input="$ac_file.  "
24938   fi
24939   configure_input=$configure_input"Generated from `echo $ac_file_in |
24940                                      sed 's,.*/,,'` by configure."
24941
24942   # First look for the input files in the build tree, otherwise in the
24943   # src tree.
24944   ac_file_inputs=`IFS=:
24945     for f in $ac_file_in; do
24946       case $f in
24947       -) echo $tmp/stdin ;;
24948       [\\/$]*)
24949          # Absolute (can't be DOS-style, as IFS=:)
24950          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24951 echo "$as_me: error: cannot find input file: $f" >&2;}
24952    { (exit 1); exit 1; }; }
24953          echo $f;;
24954       *) # Relative
24955          if test -f "$f"; then
24956            # Build tree
24957            echo $f
24958          elif test -f "$srcdir/$f"; then
24959            # Source tree
24960            echo $srcdir/$f
24961          else
24962            # /dev/null tree
24963            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24964 echo "$as_me: error: cannot find input file: $f" >&2;}
24965    { (exit 1); exit 1; }; }
24966          fi;;
24967       esac
24968     done` || { (exit 1); exit 1; }
24969 _ACEOF
24970 cat >>$CONFIG_STATUS <<_ACEOF
24971   sed "$ac_vpsub
24972 $extrasub
24973 _ACEOF
24974 cat >>$CONFIG_STATUS <<\_ACEOF
24975 :t
24976 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24977 s,@configure_input@,$configure_input,;t t
24978 s,@srcdir@,$ac_srcdir,;t t
24979 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24980 s,@top_srcdir@,$ac_top_srcdir,;t t
24981 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24982 s,@builddir@,$ac_builddir,;t t
24983 s,@abs_builddir@,$ac_abs_builddir,;t t
24984 s,@top_builddir@,$ac_top_builddir,;t t
24985 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24986 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24987   rm -f $tmp/stdin
24988   if test x"$ac_file" != x-; then
24989     mv $tmp/out $ac_file
24990   else
24991     cat $tmp/out
24992     rm -f $tmp/out
24993   fi
24994
24995 done
24996 _ACEOF
24997 cat >>$CONFIG_STATUS <<\_ACEOF
24998
24999 #
25000 # CONFIG_HEADER section.
25001 #
25002
25003 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25004 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25005 #
25006 # ac_d sets the value in "#define NAME VALUE" lines.
25007 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
25008 ac_dB='[        ].*$,\1#\2'
25009 ac_dC=' '
25010 ac_dD=',;t'
25011 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25012 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25013 ac_uB='$,\1#\2define\3'
25014 ac_uC=' '
25015 ac_uD=',;t'
25016
25017 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25018   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25019   case $ac_file in
25020   - | *:- | *:-:* ) # input from stdin
25021         cat >$tmp/stdin
25022         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25023         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25024   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25025         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25026   * )   ac_file_in=$ac_file.in ;;
25027   esac
25028
25029   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25030 echo "$as_me: creating $ac_file" >&6;}
25031
25032   # First look for the input files in the build tree, otherwise in the
25033   # src tree.
25034   ac_file_inputs=`IFS=:
25035     for f in $ac_file_in; do
25036       case $f in
25037       -) echo $tmp/stdin ;;
25038       [\\/$]*)
25039          # Absolute (can't be DOS-style, as IFS=:)
25040          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25041 echo "$as_me: error: cannot find input file: $f" >&2;}
25042    { (exit 1); exit 1; }; }
25043          echo $f;;
25044       *) # Relative
25045          if test -f "$f"; then
25046            # Build tree
25047            echo $f
25048          elif test -f "$srcdir/$f"; then
25049            # Source tree
25050            echo $srcdir/$f
25051          else
25052            # /dev/null tree
25053            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25054 echo "$as_me: error: cannot find input file: $f" >&2;}
25055    { (exit 1); exit 1; }; }
25056          fi;;
25057       esac
25058     done` || { (exit 1); exit 1; }
25059   # Remove the trailing spaces.
25060   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
25061
25062 _ACEOF
25063
25064 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25065 # `conftest.undefs', that substitutes the proper values into
25066 # config.h.in to produce config.h.  The first handles `#define'
25067 # templates, and the second `#undef' templates.
25068 # And first: Protect against being on the right side of a sed subst in
25069 # config.status.  Protect against being in an unquoted here document
25070 # in config.status.
25071 rm -f conftest.defines conftest.undefs
25072 # Using a here document instead of a string reduces the quoting nightmare.
25073 # Putting comments in sed scripts is not portable.
25074 #
25075 # `end' is used to avoid that the second main sed command (meant for
25076 # 0-ary CPP macros) applies to n-ary macro definitions.
25077 # See the Autoconf documentation for `clear'.
25078 cat >confdef2sed.sed <<\_ACEOF
25079 s/[\\&,]/\\&/g
25080 s,[\\$`],\\&,g
25081 t clear
25082 : clear
25083 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25084 t end
25085 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25086 : end
25087 _ACEOF
25088 # If some macros were called several times there might be several times
25089 # the same #defines, which is useless.  Nevertheless, we may not want to
25090 # sort them, since we want the *last* AC-DEFINE to be honored.
25091 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25092 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25093 rm -f confdef2sed.sed
25094
25095 # This sed command replaces #undef with comments.  This is necessary, for
25096 # example, in the case of _POSIX_SOURCE, which is predefined and required
25097 # on some systems where configure will not decide to define it.
25098 cat >>conftest.undefs <<\_ACEOF
25099 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25100 _ACEOF
25101
25102 # Break up conftest.defines because some shells have a limit on the size
25103 # of here documents, and old seds have small limits too (100 cmds).
25104 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25105 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25106 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25107 echo '  :' >>$CONFIG_STATUS
25108 rm -f conftest.tail
25109 while grep . conftest.defines >/dev/null
25110 do
25111   # Write a limited-size here document to $tmp/defines.sed.
25112   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25113   # Speed up: don't consider the non `#define' lines.
25114   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
25115   # Work around the forget-to-reset-the-flag bug.
25116   echo 't clr' >>$CONFIG_STATUS
25117   echo ': clr' >>$CONFIG_STATUS
25118   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25119   echo 'CEOF
25120   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25121   rm -f $tmp/in
25122   mv $tmp/out $tmp/in
25123 ' >>$CONFIG_STATUS
25124   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25125   rm -f conftest.defines
25126   mv conftest.tail conftest.defines
25127 done
25128 rm -f conftest.defines
25129 echo '  fi # grep' >>$CONFIG_STATUS
25130 echo >>$CONFIG_STATUS
25131
25132 # Break up conftest.undefs because some shells have a limit on the size
25133 # of here documents, and old seds have small limits too (100 cmds).
25134 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25135 rm -f conftest.tail
25136 while grep . conftest.undefs >/dev/null
25137 do
25138   # Write a limited-size here document to $tmp/undefs.sed.
25139   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25140   # Speed up: don't consider the non `#undef'
25141   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25142   # Work around the forget-to-reset-the-flag bug.
25143   echo 't clr' >>$CONFIG_STATUS
25144   echo ': clr' >>$CONFIG_STATUS
25145   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25146   echo 'CEOF
25147   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25148   rm -f $tmp/in
25149   mv $tmp/out $tmp/in
25150 ' >>$CONFIG_STATUS
25151   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25152   rm -f conftest.undefs
25153   mv conftest.tail conftest.undefs
25154 done
25155 rm -f conftest.undefs
25156
25157 cat >>$CONFIG_STATUS <<\_ACEOF
25158   # Let's still pretend it is `configure' which instantiates (i.e., don't
25159   # use $as_me), people would be surprised to read:
25160   #    /* config.h.  Generated by config.status.  */
25161   if test x"$ac_file" = x-; then
25162     echo "/* Generated by configure.  */" >$tmp/config.h
25163   else
25164     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25165   fi
25166   cat $tmp/in >>$tmp/config.h
25167   rm -f $tmp/in
25168   if test x"$ac_file" != x-; then
25169     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25170       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25171 echo "$as_me: $ac_file is unchanged" >&6;}
25172     else
25173       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25174 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25175          X"$ac_file" : 'X\(//\)[^/]' \| \
25176          X"$ac_file" : 'X\(//\)$' \| \
25177          X"$ac_file" : 'X\(/\)' \| \
25178          .     : '\(.\)' 2>/dev/null ||
25179 echo X"$ac_file" |
25180     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25181           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25182           /^X\(\/\/\)$/{ s//\1/; q; }
25183           /^X\(\/\).*/{ s//\1/; q; }
25184           s/.*/./; q'`
25185       { if $as_mkdir_p; then
25186     mkdir -p "$ac_dir"
25187   else
25188     as_dir="$ac_dir"
25189     as_dirs=
25190     while test ! -d "$as_dir"; do
25191       as_dirs="$as_dir $as_dirs"
25192       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25194          X"$as_dir" : 'X\(//\)[^/]' \| \
25195          X"$as_dir" : 'X\(//\)$' \| \
25196          X"$as_dir" : 'X\(/\)' \| \
25197          .     : '\(.\)' 2>/dev/null ||
25198 echo X"$as_dir" |
25199     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25200           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25201           /^X\(\/\/\)$/{ s//\1/; q; }
25202           /^X\(\/\).*/{ s//\1/; q; }
25203           s/.*/./; q'`
25204     done
25205     test ! -n "$as_dirs" || mkdir $as_dirs
25206   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25207 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25208    { (exit 1); exit 1; }; }; }
25209
25210       rm -f $ac_file
25211       mv $tmp/config.h $ac_file
25212     fi
25213   else
25214     cat $tmp/config.h
25215     rm -f $tmp/config.h
25216   fi
25217 done
25218 _ACEOF
25219 cat >>$CONFIG_STATUS <<\_ACEOF
25220
25221 #
25222 # CONFIG_COMMANDS section.
25223 #
25224 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25225   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25226   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25227   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25228 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25229          X"$ac_dest" : 'X\(//\)[^/]' \| \
25230          X"$ac_dest" : 'X\(//\)$' \| \
25231          X"$ac_dest" : 'X\(/\)' \| \
25232          .     : '\(.\)' 2>/dev/null ||
25233 echo X"$ac_dest" |
25234     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25235           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25236           /^X\(\/\/\)$/{ s//\1/; q; }
25237           /^X\(\/\).*/{ s//\1/; q; }
25238           s/.*/./; q'`
25239   ac_builddir=.
25240
25241 if test "$ac_dir" != .; then
25242   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25243   # A "../" for each directory in $ac_dir_suffix.
25244   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25245 else
25246   ac_dir_suffix= ac_top_builddir=
25247 fi
25248
25249 case $srcdir in
25250   .)  # No --srcdir option.  We are building in place.
25251     ac_srcdir=.
25252     if test -z "$ac_top_builddir"; then
25253        ac_top_srcdir=.
25254     else
25255        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25256     fi ;;
25257   [\\/]* | ?:[\\/]* )  # Absolute path.
25258     ac_srcdir=$srcdir$ac_dir_suffix;
25259     ac_top_srcdir=$srcdir ;;
25260   *) # Relative path.
25261     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25262     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25263 esac
25264 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25265 # absolute.
25266 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25267 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
25268 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25269 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25270
25271
25272   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25273 echo "$as_me: executing $ac_dest commands" >&6;}
25274   case $ac_dest in
25275     stamp-h ) echo timestamp > src/include/stamp-h ;;
25276     build-radpaths-h ) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
25277     main-chmod ) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
25278     scripts-chmod ) (cd ./scripts    && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
25279   esac
25280 done
25281 _ACEOF
25282
25283 cat >>$CONFIG_STATUS <<\_ACEOF
25284
25285 { (exit 0); exit 0; }
25286 _ACEOF
25287 chmod +x $CONFIG_STATUS
25288 ac_clean_files=$ac_clean_files_save
25289
25290
25291 # configure is writing to config.log, and then calls config.status.
25292 # config.status does its own redirection, appending to config.log.
25293 # Unfortunately, on DOS this fails, as config.log is still kept open
25294 # by configure, so config.status won't be able to write to it; its
25295 # output is simply discarded.  So we exec the FD to /dev/null,
25296 # effectively closing config.log, so it can be properly (re)opened and
25297 # appended to by config.status.  When coming back to configure, we
25298 # need to make the FD available again.
25299 if test "$no_create" != yes; then
25300   ac_cs_success=:
25301   ac_config_status_args=
25302   test "$silent" = yes &&
25303     ac_config_status_args="$ac_config_status_args --quiet"
25304   exec 5>/dev/null
25305   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25306   exec 5>>config.log
25307   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25308   # would make configure fail if this is the last instruction.
25309   $ac_cs_success || { (exit 1); exit 1; }
25310 fi
25311
25312 #
25313 # CONFIG_SUBDIRS section.
25314 #
25315 if test "$no_recursion" != yes; then
25316
25317   # Remove --cache-file and --srcdir arguments so they do not pile up.
25318   ac_sub_configure_args=
25319   ac_prev=
25320   for ac_arg in $ac_configure_args; do
25321     if test -n "$ac_prev"; then
25322       ac_prev=
25323       continue
25324     fi
25325     case $ac_arg in
25326     -cache-file | --cache-file | --cache-fil | --cache-fi \
25327     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25328       ac_prev=cache_file ;;
25329     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25330     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25331     | --c=*)
25332       ;;
25333     --config-cache | -C)
25334       ;;
25335     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25336       ac_prev=srcdir ;;
25337     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25338       ;;
25339     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25340       ac_prev=prefix ;;
25341     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25342       ;;
25343     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25344     esac
25345   done
25346
25347   # Always prepend --prefix to ensure using the same prefix
25348   # in subdir configurations.
25349   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25350
25351   ac_popdir=`pwd`
25352   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25353
25354     # Do not complain, so a configure script can configure whichever
25355     # parts of a large source tree are present.
25356     test -d $srcdir/$ac_dir || continue
25357
25358     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25359 echo "$as_me: configuring in $ac_dir" >&6;}
25360     { if $as_mkdir_p; then
25361     mkdir -p "$ac_dir"
25362   else
25363     as_dir="$ac_dir"
25364     as_dirs=
25365     while test ! -d "$as_dir"; do
25366       as_dirs="$as_dir $as_dirs"
25367       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25368 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25369          X"$as_dir" : 'X\(//\)[^/]' \| \
25370          X"$as_dir" : 'X\(//\)$' \| \
25371          X"$as_dir" : 'X\(/\)' \| \
25372          .     : '\(.\)' 2>/dev/null ||
25373 echo X"$as_dir" |
25374     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25375           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25376           /^X\(\/\/\)$/{ s//\1/; q; }
25377           /^X\(\/\).*/{ s//\1/; q; }
25378           s/.*/./; q'`
25379     done
25380     test ! -n "$as_dirs" || mkdir $as_dirs
25381   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25382 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25383    { (exit 1); exit 1; }; }; }
25384
25385     ac_builddir=.
25386
25387 if test "$ac_dir" != .; then
25388   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25389   # A "../" for each directory in $ac_dir_suffix.
25390   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25391 else
25392   ac_dir_suffix= ac_top_builddir=
25393 fi
25394
25395 case $srcdir in
25396   .)  # No --srcdir option.  We are building in place.
25397     ac_srcdir=.
25398     if test -z "$ac_top_builddir"; then
25399        ac_top_srcdir=.
25400     else
25401        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25402     fi ;;
25403   [\\/]* | ?:[\\/]* )  # Absolute path.
25404     ac_srcdir=$srcdir$ac_dir_suffix;
25405     ac_top_srcdir=$srcdir ;;
25406   *) # Relative path.
25407     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25408     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25409 esac
25410 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25411 # absolute.
25412 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25413 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
25414 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25415 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25416
25417
25418     cd $ac_dir
25419
25420     # Check for guested configure; otherwise get Cygnus style configure.
25421     if test -f $ac_srcdir/configure.gnu; then
25422       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25423     elif test -f $ac_srcdir/configure; then
25424       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25425     elif test -f $ac_srcdir/configure.in; then
25426       ac_sub_configure=$ac_configure
25427     else
25428       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25429 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25430       ac_sub_configure=
25431     fi
25432
25433     # The recursion is here.
25434     if test -n "$ac_sub_configure"; then
25435       # Make the cache file name correct relative to the subdirectory.
25436       case $cache_file in
25437       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25438       *) # Relative path.
25439         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25440       esac
25441
25442       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25443 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25444       # The eval makes quoting arguments work.
25445       eval $ac_sub_configure $ac_sub_configure_args \
25446            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25447         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25448 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25449    { (exit 1); exit 1; }; }
25450     fi
25451
25452     cd $ac_popdir
25453   done
25454 fi
25455