--with-openssl-foo sets OPENSSL_FOO_DIR.
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.203 .
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 ac_subdirs_all="$ac_subdirs_all libltdl"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_subdirs_all="$ac_subdirs_all $mysubdirs"
468 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 subdirs 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 GETCONF LFS_CFLAGS LFS_LDFLAGS LFS_LIBS HOSTINFO LIBLTDL INCLTDL MODULES INSTALLSTRIP USE_SHARED_LIBS USE_STATIC_LIBS STATIC_MODULES RADIUSD_MAJOR_VERSION RADIUSD_MINOR_VERSION RADIUSD_VERSION LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures this package to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 System types:
1011   --build=BUILD     configure for building on BUILD [guessed]
1012   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1013 _ACEOF
1014 fi
1015
1016 if test -n "$ac_init_help"; then
1017
1018   cat <<\_ACEOF
1019
1020 Optional Features:
1021   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1022   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
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 ac_ext=c
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2360 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2361 # On Suns, sometimes $CPP names a directory.
2362 if test -n "$CPP" && test -d "$CPP"; then
2363   CPP=
2364 fi
2365 if test -z "$CPP"; then
2366   if test "${ac_cv_prog_CPP+set}" = set; then
2367   echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369       # Double quotes because CPP needs to be expanded
2370     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2371     do
2372       ac_preproc_ok=false
2373 for ac_c_preproc_warn_flag in '' yes
2374 do
2375   # Use a header file that comes with gcc, so configuring glibc
2376   # with a fresh cross-compiler works.
2377   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2378   # <limits.h> exists even on freestanding compilers.
2379   # On the NeXT, cc -E runs the code through the compiler's parser,
2380   # not just through cpp. "Syntax error" is here to catch this case.
2381   cat >conftest.$ac_ext <<_ACEOF
2382 #line $LINENO "configure"
2383 /* confdefs.h.  */
2384 _ACEOF
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h.  */
2388 #ifdef __STDC__
2389 # include <limits.h>
2390 #else
2391 # include <assert.h>
2392 #endif
2393                      Syntax error
2394 _ACEOF
2395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2396   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2397   ac_status=$?
2398   grep -v '^ *+' conftest.er1 >conftest.err
2399   rm -f conftest.er1
2400   cat conftest.err >&5
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); } >/dev/null; then
2403   if test -s conftest.err; then
2404     ac_cpp_err=$ac_c_preproc_warn_flag
2405   else
2406     ac_cpp_err=
2407   fi
2408 else
2409   ac_cpp_err=yes
2410 fi
2411 if test -z "$ac_cpp_err"; then
2412   :
2413 else
2414   echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2416
2417   # Broken: fails on valid input.
2418 continue
2419 fi
2420 rm -f conftest.err conftest.$ac_ext
2421
2422   # OK, works on sane cases.  Now check whether non-existent headers
2423   # can be detected and how.
2424   cat >conftest.$ac_ext <<_ACEOF
2425 #line $LINENO "configure"
2426 /* confdefs.h.  */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h.  */
2431 #include <ac_nonexistent.h>
2432 _ACEOF
2433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2434   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2435   ac_status=$?
2436   grep -v '^ *+' conftest.er1 >conftest.err
2437   rm -f conftest.er1
2438   cat conftest.err >&5
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); } >/dev/null; then
2441   if test -s conftest.err; then
2442     ac_cpp_err=$ac_c_preproc_warn_flag
2443   else
2444     ac_cpp_err=
2445   fi
2446 else
2447   ac_cpp_err=yes
2448 fi
2449 if test -z "$ac_cpp_err"; then
2450   # Broken: success on invalid input.
2451 continue
2452 else
2453   echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2455
2456   # Passes both tests.
2457 ac_preproc_ok=:
2458 break
2459 fi
2460 rm -f conftest.err conftest.$ac_ext
2461
2462 done
2463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2464 rm -f conftest.err conftest.$ac_ext
2465 if $ac_preproc_ok; then
2466   break
2467 fi
2468
2469     done
2470     ac_cv_prog_CPP=$CPP
2471
2472 fi
2473   CPP=$ac_cv_prog_CPP
2474 else
2475   ac_cv_prog_CPP=$CPP
2476 fi
2477 echo "$as_me:$LINENO: result: $CPP" >&5
2478 echo "${ECHO_T}$CPP" >&6
2479 ac_preproc_ok=false
2480 for ac_c_preproc_warn_flag in '' yes
2481 do
2482   # Use a header file that comes with gcc, so configuring glibc
2483   # with a fresh cross-compiler works.
2484   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2485   # <limits.h> exists even on freestanding compilers.
2486   # On the NeXT, cc -E runs the code through the compiler's parser,
2487   # not just through cpp. "Syntax error" is here to catch this case.
2488   cat >conftest.$ac_ext <<_ACEOF
2489 #line $LINENO "configure"
2490 /* confdefs.h.  */
2491 _ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h.  */
2495 #ifdef __STDC__
2496 # include <limits.h>
2497 #else
2498 # include <assert.h>
2499 #endif
2500                      Syntax error
2501 _ACEOF
2502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2503   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2504   ac_status=$?
2505   grep -v '^ *+' conftest.er1 >conftest.err
2506   rm -f conftest.er1
2507   cat conftest.err >&5
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); } >/dev/null; then
2510   if test -s conftest.err; then
2511     ac_cpp_err=$ac_c_preproc_warn_flag
2512   else
2513     ac_cpp_err=
2514   fi
2515 else
2516   ac_cpp_err=yes
2517 fi
2518 if test -z "$ac_cpp_err"; then
2519   :
2520 else
2521   echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2523
2524   # Broken: fails on valid input.
2525 continue
2526 fi
2527 rm -f conftest.err conftest.$ac_ext
2528
2529   # OK, works on sane cases.  Now check whether non-existent headers
2530   # can be detected and how.
2531   cat >conftest.$ac_ext <<_ACEOF
2532 #line $LINENO "configure"
2533 /* confdefs.h.  */
2534 _ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h.  */
2538 #include <ac_nonexistent.h>
2539 _ACEOF
2540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2541   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2542   ac_status=$?
2543   grep -v '^ *+' conftest.er1 >conftest.err
2544   rm -f conftest.er1
2545   cat conftest.err >&5
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); } >/dev/null; then
2548   if test -s conftest.err; then
2549     ac_cpp_err=$ac_c_preproc_warn_flag
2550   else
2551     ac_cpp_err=
2552   fi
2553 else
2554   ac_cpp_err=yes
2555 fi
2556 if test -z "$ac_cpp_err"; then
2557   # Broken: success on invalid input.
2558 continue
2559 else
2560   echo "$as_me: failed program was:" >&5
2561 sed 's/^/| /' conftest.$ac_ext >&5
2562
2563   # Passes both tests.
2564 ac_preproc_ok=:
2565 break
2566 fi
2567 rm -f conftest.err conftest.$ac_ext
2568
2569 done
2570 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2571 rm -f conftest.err conftest.$ac_ext
2572 if $ac_preproc_ok; then
2573   :
2574 else
2575   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2576 See \`config.log' for more details." >&5
2577 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2578 See \`config.log' for more details." >&2;}
2579    { (exit 1); exit 1; }; }
2580 fi
2581
2582 ac_ext=c
2583 ac_cpp='$CPP $CPPFLAGS'
2584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2587
2588
2589 echo "$as_me:$LINENO: checking for egrep" >&5
2590 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2591 if test "${ac_cv_prog_egrep+set}" = set; then
2592   echo $ECHO_N "(cached) $ECHO_C" >&6
2593 else
2594   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2595     then ac_cv_prog_egrep='grep -E'
2596     else ac_cv_prog_egrep='egrep'
2597     fi
2598 fi
2599 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2600 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2601  EGREP=$ac_cv_prog_egrep
2602
2603
2604 if test $ac_cv_c_compiler_gnu = yes; then
2605     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2606 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2607 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2608   echo $ECHO_N "(cached) $ECHO_C" >&6
2609 else
2610     ac_pattern="Autoconf.*'x'"
2611   cat >conftest.$ac_ext <<_ACEOF
2612 #line $LINENO "configure"
2613 /* confdefs.h.  */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h.  */
2618 #include <sgtty.h>
2619 Autoconf TIOCGETP
2620 _ACEOF
2621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2622   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2623   ac_cv_prog_gcc_traditional=yes
2624 else
2625   ac_cv_prog_gcc_traditional=no
2626 fi
2627 rm -f conftest*
2628
2629
2630   if test $ac_cv_prog_gcc_traditional = no; then
2631     cat >conftest.$ac_ext <<_ACEOF
2632 #line $LINENO "configure"
2633 /* confdefs.h.  */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h.  */
2638 #include <termio.h>
2639 Autoconf TCGETA
2640 _ACEOF
2641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2642   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2643   ac_cv_prog_gcc_traditional=yes
2644 fi
2645 rm -f conftest*
2646
2647   fi
2648 fi
2649 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2650 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2651   if test $ac_cv_prog_gcc_traditional = yes; then
2652     CC="$CC -traditional"
2653   fi
2654 fi
2655
2656 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
2657 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
2658 if test "${ac_cv_prog_suncc+set}" = set; then
2659   echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661   cat > conftest.c <<EOF
2662 #ifdef __SUNPRO_C
2663   yes;
2664 #endif
2665 EOF
2666 if { ac_try='${CC-cc} -E conftest.c'
2667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668   (eval $ac_try) 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2672   ac_cv_prog_suncc=yes
2673 else
2674   ac_cv_prog_suncc=no
2675 fi
2676 fi
2677 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
2678 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
2679 if test -n "$ac_tool_prefix"; then
2680   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2682 echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684 if test "${ac_cv_prog_RANLIB+set}" = set; then
2685   echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687   if test -n "$RANLIB"; then
2688   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693   IFS=$as_save_IFS
2694   test -z "$as_dir" && as_dir=.
2695   for ac_exec_ext in '' $ac_executable_extensions; do
2696   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699     break 2
2700   fi
2701 done
2702 done
2703
2704 fi
2705 fi
2706 RANLIB=$ac_cv_prog_RANLIB
2707 if test -n "$RANLIB"; then
2708   echo "$as_me:$LINENO: result: $RANLIB" >&5
2709 echo "${ECHO_T}$RANLIB" >&6
2710 else
2711   echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6
2713 fi
2714
2715 fi
2716 if test -z "$ac_cv_prog_RANLIB"; then
2717   ac_ct_RANLIB=$RANLIB
2718   # Extract the first word of "ranlib", so it can be a program name with args.
2719 set dummy ranlib; ac_word=$2
2720 echo "$as_me:$LINENO: checking for $ac_word" >&5
2721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2722 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2723   echo $ECHO_N "(cached) $ECHO_C" >&6
2724 else
2725   if test -n "$ac_ct_RANLIB"; then
2726   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2730 do
2731   IFS=$as_save_IFS
2732   test -z "$as_dir" && as_dir=.
2733   for ac_exec_ext in '' $ac_executable_extensions; do
2734   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2735     ac_cv_prog_ac_ct_RANLIB="ranlib"
2736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2737     break 2
2738   fi
2739 done
2740 done
2741
2742   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2743 fi
2744 fi
2745 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2746 if test -n "$ac_ct_RANLIB"; then
2747   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2748 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2749 else
2750   echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6
2752 fi
2753
2754   RANLIB=$ac_ct_RANLIB
2755 else
2756   RANLIB="$ac_cv_prog_RANLIB"
2757 fi
2758
2759
2760 abs_top_builddir=`pwd`
2761
2762
2763
2764 PACKAGE=freeradius
2765
2766
2767 echo "$as_me:$LINENO: checking for AIX" >&5
2768 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2769 cat >conftest.$ac_ext <<_ACEOF
2770 #line $LINENO "configure"
2771 /* confdefs.h.  */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h.  */
2776 #ifdef _AIX
2777   yes
2778 #endif
2779
2780 _ACEOF
2781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2782   $EGREP "yes" >/dev/null 2>&1; then
2783   echo "$as_me:$LINENO: result: yes" >&5
2784 echo "${ECHO_T}yes" >&6
2785 cat >>confdefs.h <<\_ACEOF
2786 #define _ALL_SOURCE 1
2787 _ACEOF
2788
2789 else
2790   echo "$as_me:$LINENO: result: no" >&5
2791 echo "${ECHO_T}no" >&6
2792 fi
2793 rm -f conftest*
2794
2795
2796
2797 # Extract the first word of "gmake", so it can be a program name with args.
2798 set dummy gmake; ac_word=$2
2799 echo "$as_me:$LINENO: checking for $ac_word" >&5
2800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2801 if test "${ac_cv_prog_GMAKE+set}" = set; then
2802   echo $ECHO_N "(cached) $ECHO_C" >&6
2803 else
2804   if test -n "$GMAKE"; then
2805   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
2806 else
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 for as_dir in $PATH
2809 do
2810   IFS=$as_save_IFS
2811   test -z "$as_dir" && as_dir=.
2812   for ac_exec_ext in '' $ac_executable_extensions; do
2813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2814     ac_cv_prog_GMAKE="yes"
2815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816     break 2
2817   fi
2818 done
2819 done
2820
2821   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
2822 fi
2823 fi
2824 GMAKE=$ac_cv_prog_GMAKE
2825 if test -n "$GMAKE"; then
2826   echo "$as_me:$LINENO: result: $GMAKE" >&5
2827 echo "${ECHO_T}$GMAKE" >&6
2828 else
2829   echo "$as_me:$LINENO: result: no" >&5
2830 echo "${ECHO_T}no" >&6
2831 fi
2832
2833 if test $GMAKE = no; then
2834   # Extract the first word of "make", so it can be a program name with args.
2835 set dummy make; ac_word=$2
2836 echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2838 if test "${ac_cv_path_MAKE+set}" = set; then
2839   echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841   case $MAKE in
2842   [\\/]* | ?:[\\/]*)
2843   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
2844   ;;
2845   *)
2846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849   IFS=$as_save_IFS
2850   test -z "$as_dir" && as_dir=.
2851   for ac_exec_ext in '' $ac_executable_extensions; do
2852   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
2854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855     break 2
2856   fi
2857 done
2858 done
2859
2860   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
2861   ;;
2862 esac
2863 fi
2864 MAKE=$ac_cv_path_MAKE
2865
2866 if test -n "$MAKE"; then
2867   echo "$as_me:$LINENO: result: $MAKE" >&5
2868 echo "${ECHO_T}$MAKE" >&6
2869 else
2870   echo "$as_me:$LINENO: result: no" >&5
2871 echo "${ECHO_T}no" >&6
2872 fi
2873
2874 else
2875   # Extract the first word of "gmake", so it can be a program name with args.
2876 set dummy gmake; ac_word=$2
2877 echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879 if test "${ac_cv_path_MAKE+set}" = set; then
2880   echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882   case $MAKE in
2883   [\\/]* | ?:[\\/]*)
2884   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
2885   ;;
2886   *)
2887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890   IFS=$as_save_IFS
2891   test -z "$as_dir" && as_dir=.
2892   for ac_exec_ext in '' $ac_executable_extensions; do
2893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
2895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896     break 2
2897   fi
2898 done
2899 done
2900
2901   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
2902   ;;
2903 esac
2904 fi
2905 MAKE=$ac_cv_path_MAKE
2906
2907 if test -n "$MAKE"; then
2908   echo "$as_me:$LINENO: result: $MAKE" >&5
2909 echo "${ECHO_T}$MAKE" >&6
2910 else
2911   echo "$as_me:$LINENO: result: no" >&5
2912 echo "${ECHO_T}no" >&6
2913 fi
2914
2915 fi
2916 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
2917 if test -z "$makever"; then
2918   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
2919                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
2920 echo "$as_me: error: GNU Make is not installed.  Please download and install it
2921                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
2922    { (exit 1); exit 1; }; }
2923 fi
2924
2925   echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
2926 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
2927 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
2928   echo $ECHO_N "(cached) $ECHO_C" >&6
2929 else
2930   ac_check_lib_save_LIBS=$LIBS
2931 LIBS="-lltdl  $LIBS"
2932 cat >conftest.$ac_ext <<_ACEOF
2933 #line $LINENO "configure"
2934 /* confdefs.h.  */
2935 _ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h.  */
2939
2940 /* Override any gcc2 internal prototype to avoid an error.  */
2941 #ifdef __cplusplus
2942 extern "C"
2943 #endif
2944 /* We use char because int might match the return type of a gcc2
2945    builtin and then its argument prototype would still apply.  */
2946 char lt_dlinit ();
2947 int
2948 main ()
2949 {
2950 lt_dlinit ();
2951   ;
2952   return 0;
2953 }
2954 _ACEOF
2955 rm -f conftest.$ac_objext conftest$ac_exeext
2956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2957   (eval $ac_link) 2>&5
2958   ac_status=$?
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); } &&
2961          { ac_try='test -s conftest$ac_exeext'
2962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963   (eval $ac_try) 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); }; }; then
2967   ac_cv_lib_ltdl_lt_dlinit=yes
2968 else
2969   echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2971
2972 ac_cv_lib_ltdl_lt_dlinit=no
2973 fi
2974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2975 LIBS=$ac_check_lib_save_LIBS
2976 fi
2977 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
2978 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
2979 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
2980   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
2981 else
2982   if test x"$enable_ltdl_install" = xno; then
2983      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
2984 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
2985    else
2986      enable_ltdl_install=yes
2987    fi
2988
2989 fi
2990
2991   if test x"$enable_ltdl_install" = x"yes"; then
2992     ac_configure_args="$ac_configure_args --enable-ltdl-install"
2993     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
2994     LTDLINCL='-I${top_srcdir}/''libltdl'
2995   else
2996     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2997     LIBLTDL="-lltdl"
2998     LTDLINCL=
2999   fi
3000   # For backwards non-gettext consistent compatibility...
3001   INCLTDL="$LTDLINCL"
3002
3003 ac_aux_dir=
3004 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3005   if test -f $ac_dir/install-sh; then
3006     ac_aux_dir=$ac_dir
3007     ac_install_sh="$ac_aux_dir/install-sh -c"
3008     break
3009   elif test -f $ac_dir/install.sh; then
3010     ac_aux_dir=$ac_dir
3011     ac_install_sh="$ac_aux_dir/install.sh -c"
3012     break
3013   elif test -f $ac_dir/shtool; then
3014     ac_aux_dir=$ac_dir
3015     ac_install_sh="$ac_aux_dir/shtool install -c"
3016     break
3017   fi
3018 done
3019 if test -z "$ac_aux_dir"; then
3020   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3021 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3022    { (exit 1); exit 1; }; }
3023 fi
3024 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3025 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3026 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3027
3028
3029    LIBLTDLPATH=
3030    if test x"$enable_ltdl_install" = x"yes"; then
3031
3032
3033 subdirs="$subdirs libltdl"
3034
3035      LIBLTDLPATH=libltdl
3036     fi
3037
3038
3039
3040 # Check whether --enable-shared or --disable-shared was given.
3041 if test "${enable_shared+set}" = set; then
3042   enableval="$enable_shared"
3043   p=${PACKAGE-default}
3044     case $enableval in
3045     yes) enable_shared=yes ;;
3046     no) enable_shared=no ;;
3047     *)
3048       enable_shared=no
3049       # Look at the argument we got.  We use all the common list separators.
3050       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3051       for pkg in $enableval; do
3052         IFS="$lt_save_ifs"
3053         if test "X$pkg" = "X$p"; then
3054           enable_shared=yes
3055         fi
3056       done
3057       IFS="$lt_save_ifs"
3058       ;;
3059     esac
3060 else
3061   enable_shared=yes
3062 fi;
3063
3064 # Check whether --enable-static or --disable-static was given.
3065 if test "${enable_static+set}" = set; then
3066   enableval="$enable_static"
3067   p=${PACKAGE-default}
3068     case $enableval in
3069     yes) enable_static=yes ;;
3070     no) enable_static=no ;;
3071     *)
3072      enable_static=no
3073       # Look at the argument we got.  We use all the common list separators.
3074       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3075       for pkg in $enableval; do
3076         IFS="$lt_save_ifs"
3077         if test "X$pkg" = "X$p"; then
3078           enable_static=yes
3079         fi
3080       done
3081       IFS="$lt_save_ifs"
3082       ;;
3083     esac
3084 else
3085   enable_static=yes
3086 fi;
3087
3088 # Check whether --enable-fast-install or --disable-fast-install was given.
3089 if test "${enable_fast_install+set}" = set; then
3090   enableval="$enable_fast_install"
3091   p=${PACKAGE-default}
3092     case $enableval in
3093     yes) enable_fast_install=yes ;;
3094     no) enable_fast_install=no ;;
3095     *)
3096       enable_fast_install=no
3097       # Look at the argument we got.  We use all the common list separators.
3098       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3099       for pkg in $enableval; do
3100         IFS="$lt_save_ifs"
3101         if test "X$pkg" = "X$p"; then
3102           enable_fast_install=yes
3103         fi
3104       done
3105       IFS="$lt_save_ifs"
3106       ;;
3107     esac
3108 else
3109   enable_fast_install=yes
3110 fi;
3111
3112 # Make sure we can run config.sub.
3113 $ac_config_sub sun4 >/dev/null 2>&1 ||
3114   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3115 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3116    { (exit 1); exit 1; }; }
3117
3118 echo "$as_me:$LINENO: checking build system type" >&5
3119 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3120 if test "${ac_cv_build+set}" = set; then
3121   echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123   ac_cv_build_alias=$build_alias
3124 test -z "$ac_cv_build_alias" &&
3125   ac_cv_build_alias=`$ac_config_guess`
3126 test -z "$ac_cv_build_alias" &&
3127   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3128 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3129    { (exit 1); exit 1; }; }
3130 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3131   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3132 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3133    { (exit 1); exit 1; }; }
3134
3135 fi
3136 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3137 echo "${ECHO_T}$ac_cv_build" >&6
3138 build=$ac_cv_build
3139 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3140 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3141 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3142
3143
3144 echo "$as_me:$LINENO: checking host system type" >&5
3145 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3146 if test "${ac_cv_host+set}" = set; then
3147   echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149   ac_cv_host_alias=$host_alias
3150 test -z "$ac_cv_host_alias" &&
3151   ac_cv_host_alias=$ac_cv_build_alias
3152 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3153   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3154 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3155    { (exit 1); exit 1; }; }
3156
3157 fi
3158 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3159 echo "${ECHO_T}$ac_cv_host" >&6
3160 host=$ac_cv_host
3161 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3162 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3163 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3164
3165
3166 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3167 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3168 if test "${lt_cv_path_SED+set}" = set; then
3169   echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171   # Loop through the user's path and test for sed and gsed.
3172 # Then use that list of sed's as ones to test for truncation.
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176   IFS=$as_save_IFS
3177   test -z "$as_dir" && as_dir=.
3178   for lt_ac_prog in sed gsed; do
3179     for ac_exec_ext in '' $ac_executable_extensions; do
3180       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3181         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3182       fi
3183     done
3184   done
3185 done
3186 lt_ac_max=0
3187 lt_ac_count=0
3188 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3189 # along with /bin/sed that truncates output.
3190 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3191   test ! -f $lt_ac_sed && break
3192   cat /dev/null > conftest.in
3193   lt_ac_count=0
3194   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3195   # Check for GNU sed and select it if it is found.
3196   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3197     lt_cv_path_SED=$lt_ac_sed
3198     break
3199   fi
3200   while true; do
3201     cat conftest.in conftest.in >conftest.tmp
3202     mv conftest.tmp conftest.in
3203     cp conftest.in conftest.nl
3204     echo >>conftest.nl
3205     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3206     cmp -s conftest.out conftest.nl || break
3207     # 10000 chars as input seems more than enough
3208     test $lt_ac_count -gt 10 && break
3209     lt_ac_count=`expr $lt_ac_count + 1`
3210     if test $lt_ac_count -gt $lt_ac_max; then
3211       lt_ac_max=$lt_ac_count
3212       lt_cv_path_SED=$lt_ac_sed
3213     fi
3214   done
3215 done
3216 SED=$lt_cv_path_SED
3217
3218 fi
3219
3220 echo "$as_me:$LINENO: result: $SED" >&5
3221 echo "${ECHO_T}$SED" >&6
3222
3223
3224 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3225 if test "${with_gnu_ld+set}" = set; then
3226   withval="$with_gnu_ld"
3227   test "$withval" = no || with_gnu_ld=yes
3228 else
3229   with_gnu_ld=no
3230 fi;
3231 ac_prog=ld
3232 if test "$GCC" = yes; then
3233   # Check if gcc -print-prog-name=ld gives a path.
3234   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3235 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3236   case $host in
3237   *-*-mingw*)
3238     # gcc leaves a trailing carriage return which upsets mingw
3239     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3240   *)
3241     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3242   esac
3243   case $ac_prog in
3244     # Accept absolute paths.
3245     [\\/]* | ?:[\\/]*)
3246       re_direlt='/[^/][^/]*/\.\./'
3247       # Canonicalize the pathname of ld
3248       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3249       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3250         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3251       done
3252       test -z "$LD" && LD="$ac_prog"
3253       ;;
3254   "")
3255     # If it fails, then pretend we aren't using GCC.
3256     ac_prog=ld
3257     ;;
3258   *)
3259     # If it is relative, then search for the first ld in PATH.
3260     with_gnu_ld=unknown
3261     ;;
3262   esac
3263 elif test "$with_gnu_ld" = yes; then
3264   echo "$as_me:$LINENO: checking for GNU ld" >&5
3265 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3266 else
3267   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3268 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3269 fi
3270 if test "${lt_cv_path_LD+set}" = set; then
3271   echo $ECHO_N "(cached) $ECHO_C" >&6
3272 else
3273   if test -z "$LD"; then
3274   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3275   for ac_dir in $PATH; do
3276     IFS="$lt_save_ifs"
3277     test -z "$ac_dir" && ac_dir=.
3278     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3279       lt_cv_path_LD="$ac_dir/$ac_prog"
3280       # Check to see if the program is GNU ld.  I'd rather use --version,
3281       # but apparently some GNU ld's only accept -v.
3282       # Break only if it was the GNU/non-GNU ld that we prefer.
3283       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3284       *GNU* | *'with BFD'*)
3285         test "$with_gnu_ld" != no && break
3286         ;;
3287       *)
3288         test "$with_gnu_ld" != yes && break
3289         ;;
3290       esac
3291     fi
3292   done
3293   IFS="$lt_save_ifs"
3294 else
3295   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3296 fi
3297 fi
3298
3299 LD="$lt_cv_path_LD"
3300 if test -n "$LD"; then
3301   echo "$as_me:$LINENO: result: $LD" >&5
3302 echo "${ECHO_T}$LD" >&6
3303 else
3304   echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3306 fi
3307 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3308 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3309    { (exit 1); exit 1; }; }
3310 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3311 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3312 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3313   echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3316 case `$LD -v 2>&1 </dev/null` in
3317 *GNU* | *'with BFD'*)
3318   lt_cv_prog_gnu_ld=yes
3319   ;;
3320 *)
3321   lt_cv_prog_gnu_ld=no
3322   ;;
3323 esac
3324 fi
3325 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3326 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3327 with_gnu_ld=$lt_cv_prog_gnu_ld
3328
3329
3330 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3331 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3332 if test "${lt_cv_ld_reload_flag+set}" = set; then
3333   echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335   lt_cv_ld_reload_flag='-r'
3336 fi
3337 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3338 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3339 reload_flag=$lt_cv_ld_reload_flag
3340 case $reload_flag in
3341 "" | " "*) ;;
3342 *) reload_flag=" $reload_flag" ;;
3343 esac
3344 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3345
3346 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3347 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3348 if test "${lt_cv_path_NM+set}" = set; then
3349   echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351   if test -n "$NM"; then
3352   # Let the user override the test.
3353   lt_cv_path_NM="$NM"
3354 else
3355   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3356   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3357     IFS="$lt_save_ifs"
3358     test -z "$ac_dir" && ac_dir=.
3359     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3360     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3361       # Check to see if the nm accepts a BSD-compat flag.
3362       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3363       #   nm: unknown option "B" ignored
3364       # Tru64's nm complains that /dev/null is an invalid object file
3365       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3366       */dev/null* | *'Invalid file or object type'*)
3367         lt_cv_path_NM="$tmp_nm -B"
3368         break
3369         ;;
3370       *)
3371         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3372         */dev/null*)
3373           lt_cv_path_NM="$tmp_nm -p"
3374           break
3375           ;;
3376         *)
3377           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3378           continue # so that we can try to find one that supports BSD flags
3379           ;;
3380         esac
3381       esac
3382     fi
3383   done
3384   IFS="$lt_save_ifs"
3385   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3386 fi
3387 fi
3388 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3389 echo "${ECHO_T}$lt_cv_path_NM" >&6
3390 NM="$lt_cv_path_NM"
3391
3392 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3393 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3394 LN_S=$as_ln_s
3395 if test "$LN_S" = "ln -s"; then
3396   echo "$as_me:$LINENO: result: yes" >&5
3397 echo "${ECHO_T}yes" >&6
3398 else
3399   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3400 echo "${ECHO_T}no, using $LN_S" >&6
3401 fi
3402
3403 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3404 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3405 if test "${lt_cv_deplibs_check_method+set}" = set; then
3406   echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408   lt_cv_file_magic_cmd='$MAGIC_CMD'
3409 lt_cv_file_magic_test_file=
3410 lt_cv_deplibs_check_method='unknown'
3411 # Need to set the preceding variable on all platforms that support
3412 # interlibrary dependencies.
3413 # 'none' -- dependencies not supported.
3414 # `unknown' -- same as none, but documents that we really don't know.
3415 # 'pass_all' -- all dependencies passed with no checks.
3416 # 'test_compile' -- check by making test program.
3417 # 'file_magic [[regex]]' -- check by looking for files in library path
3418 # which responds to the $file_magic_cmd with a given extended regex.
3419 # If you have `file' or equivalent on your system and you're not sure
3420 # whether `pass_all' will *always* work, you probably want this one.
3421
3422 case $host_os in
3423 aix4* | aix5*)
3424   lt_cv_deplibs_check_method=pass_all
3425   ;;
3426
3427 beos*)
3428   lt_cv_deplibs_check_method=pass_all
3429   ;;
3430
3431 bsdi4*)
3432   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3433   lt_cv_file_magic_cmd='/usr/bin/file -L'
3434   lt_cv_file_magic_test_file=/shlib/libc.so
3435   ;;
3436
3437 cygwin*)
3438   # func_win32_libid is a shell function defined in ltmain.sh
3439   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3440   lt_cv_file_magic_cmd='func_win32_libid'
3441   ;;
3442
3443 mingw* | pw32*)
3444   # Base MSYS/MinGW do not provide the 'file' command needed by
3445   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3446   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3447   lt_cv_file_magic_cmd='$OBJDUMP -f'
3448   ;;
3449
3450 darwin* | rhapsody*)
3451   lt_cv_deplibs_check_method=pass_all
3452   ;;
3453
3454 freebsd* | kfreebsd*-gnu)
3455   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3456     case $host_cpu in
3457     i*86 )
3458       # Not sure whether the presence of OpenBSD here was a mistake.
3459       # Let's accept both of them until this is cleared up.
3460       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3461       lt_cv_file_magic_cmd=/usr/bin/file
3462       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3463       ;;
3464     esac
3465   else
3466     lt_cv_deplibs_check_method=pass_all
3467   fi
3468   ;;
3469
3470 gnu*)
3471   lt_cv_deplibs_check_method=pass_all
3472   ;;
3473
3474 hpux10.20* | hpux11*)
3475   lt_cv_file_magic_cmd=/usr/bin/file
3476   case "$host_cpu" in
3477   ia64*)
3478     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3479     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3480     ;;
3481   hppa*64*)
3482     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]'
3483     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3484     ;;
3485   *)
3486     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3487     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3488     ;;
3489   esac
3490   ;;
3491
3492 irix5* | irix6* | nonstopux*)
3493   case $LD in
3494   *-32|*"-32 ") libmagic=32-bit;;
3495   *-n32|*"-n32 ") libmagic=N32;;
3496   *-64|*"-64 ") libmagic=64-bit;;
3497   *) libmagic=never-match;;
3498   esac
3499   lt_cv_deplibs_check_method=pass_all
3500   ;;
3501
3502 # This must be Linux ELF.
3503 linux*)
3504   lt_cv_deplibs_check_method=pass_all
3505   ;;
3506
3507 netbsd* | knetbsd*-gnu)
3508   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3509     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3510   else
3511     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3512   fi
3513   ;;
3514
3515 newos6*)
3516   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3517   lt_cv_file_magic_cmd=/usr/bin/file
3518   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3519   ;;
3520
3521 nto-qnx*)
3522   lt_cv_deplibs_check_method=unknown
3523   ;;
3524
3525 openbsd*)
3526   lt_cv_file_magic_cmd=/usr/bin/file
3527   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3528   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3529     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3530   else
3531     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3532   fi
3533   ;;
3534
3535 osf3* | osf4* | osf5*)
3536   lt_cv_deplibs_check_method=pass_all
3537   ;;
3538
3539 sco3.2v5*)
3540   lt_cv_deplibs_check_method=pass_all
3541   ;;
3542
3543 solaris*)
3544   lt_cv_deplibs_check_method=pass_all
3545   ;;
3546
3547 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3548   case $host_vendor in
3549   motorola)
3550     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]'
3551     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3552     ;;
3553   ncr)
3554     lt_cv_deplibs_check_method=pass_all
3555     ;;
3556   sequent)
3557     lt_cv_file_magic_cmd='/bin/file'
3558     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3559     ;;
3560   sni)
3561     lt_cv_file_magic_cmd='/bin/file'
3562     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3563     lt_cv_file_magic_test_file=/lib/libc.so
3564     ;;
3565   siemens)
3566     lt_cv_deplibs_check_method=pass_all
3567     ;;
3568   esac
3569   ;;
3570
3571 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3572   lt_cv_deplibs_check_method=pass_all
3573   ;;
3574 esac
3575
3576 fi
3577 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3578 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3579 file_magic_cmd=$lt_cv_file_magic_cmd
3580 deplibs_check_method=$lt_cv_deplibs_check_method
3581 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3582
3583
3584
3585
3586 # If no C compiler was specified, use CC.
3587 LTCC=${LTCC-"$CC"}
3588
3589 # Allow CC to be a program name with arguments.
3590 compiler=$CC
3591
3592 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3593 if test "${enable_libtool_lock+set}" = set; then
3594   enableval="$enable_libtool_lock"
3595
3596 fi;
3597 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3598
3599 # Some flags need to be propagated to the compiler or linker for good
3600 # libtool support.
3601 case $host in
3602 ia64-*-hpux*)
3603   # Find out which ABI we are using.
3604   echo 'int i;' > conftest.$ac_ext
3605   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606   (eval $ac_compile) 2>&5
3607   ac_status=$?
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); }; then
3610     case `/usr/bin/file conftest.$ac_objext` in
3611     *ELF-32*)
3612       HPUX_IA64_MODE="32"
3613       ;;
3614     *ELF-64*)
3615       HPUX_IA64_MODE="64"
3616       ;;
3617     esac
3618   fi
3619   rm -rf conftest*
3620   ;;
3621 *-*-irix6*)
3622   # Find out which ABI we are using.
3623   echo '#line 3623 "configure"' > conftest.$ac_ext
3624   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3625   (eval $ac_compile) 2>&5
3626   ac_status=$?
3627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628   (exit $ac_status); }; then
3629    if test "$lt_cv_prog_gnu_ld" = yes; then
3630     case `/usr/bin/file conftest.$ac_objext` in
3631     *32-bit*)
3632       LD="${LD-ld} -melf32bsmip"
3633       ;;
3634     *N32*)
3635       LD="${LD-ld} -melf32bmipn32"
3636       ;;
3637     *64-bit*)
3638       LD="${LD-ld} -melf64bmip"
3639       ;;
3640     esac
3641    else
3642     case `/usr/bin/file conftest.$ac_objext` in
3643     *32-bit*)
3644       LD="${LD-ld} -32"
3645       ;;
3646     *N32*)
3647       LD="${LD-ld} -n32"
3648       ;;
3649     *64-bit*)
3650       LD="${LD-ld} -64"
3651       ;;
3652     esac
3653    fi
3654   fi
3655   rm -rf conftest*
3656   ;;
3657
3658 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3659   # Find out which ABI we are using.
3660   echo 'int i;' > conftest.$ac_ext
3661   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662   (eval $ac_compile) 2>&5
3663   ac_status=$?
3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); }; then
3666     case "`/usr/bin/file conftest.o`" in
3667     *32-bit*)
3668       case $host in
3669         x86_64-*linux*)
3670           LD="${LD-ld} -m elf_i386"
3671           ;;
3672         ppc64-*linux*|powerpc64-*linux*)
3673           LD="${LD-ld} -m elf32ppclinux"
3674           ;;
3675         s390x-*linux*)
3676           LD="${LD-ld} -m elf_s390"
3677           ;;
3678         sparc64-*linux*)
3679           LD="${LD-ld} -m elf32_sparc"
3680           ;;
3681       esac
3682       ;;
3683     *64-bit*)
3684       case $host in
3685         x86_64-*linux*)
3686           LD="${LD-ld} -m elf_x86_64"
3687           ;;
3688         ppc*-*linux*|powerpc*-*linux*)
3689           LD="${LD-ld} -m elf64ppc"
3690           ;;
3691         s390*-*linux*)
3692           LD="${LD-ld} -m elf64_s390"
3693           ;;
3694         sparc*-*linux*)
3695           LD="${LD-ld} -m elf64_sparc"
3696           ;;
3697       esac
3698       ;;
3699     esac
3700   fi
3701   rm -rf conftest*
3702   ;;
3703
3704 *-*-sco3.2v5*)
3705   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3706   SAVE_CFLAGS="$CFLAGS"
3707   CFLAGS="$CFLAGS -belf"
3708   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3709 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3710 if test "${lt_cv_cc_needs_belf+set}" = set; then
3711   echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713   ac_ext=c
3714 ac_cpp='$CPP $CPPFLAGS'
3715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718
3719      cat >conftest.$ac_ext <<_ACEOF
3720 #line $LINENO "configure"
3721 /* confdefs.h.  */
3722 _ACEOF
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h.  */
3726
3727 int
3728 main ()
3729 {
3730
3731   ;
3732   return 0;
3733 }
3734 _ACEOF
3735 rm -f conftest.$ac_objext conftest$ac_exeext
3736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3737   (eval $ac_link) 2>&5
3738   ac_status=$?
3739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740   (exit $ac_status); } &&
3741          { ac_try='test -s conftest$ac_exeext'
3742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743   (eval $ac_try) 2>&5
3744   ac_status=$?
3745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746   (exit $ac_status); }; }; then
3747   lt_cv_cc_needs_belf=yes
3748 else
3749   echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3751
3752 lt_cv_cc_needs_belf=no
3753 fi
3754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3755      ac_ext=c
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760
3761 fi
3762 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3763 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3764   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3765     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3766     CFLAGS="$SAVE_CFLAGS"
3767   fi
3768   ;;
3769
3770 esac
3771
3772 need_locks="$enable_libtool_lock"
3773
3774
3775 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3776 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3777 if test "${ac_cv_header_stdc+set}" = set; then
3778   echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780   cat >conftest.$ac_ext <<_ACEOF
3781 #line $LINENO "configure"
3782 /* confdefs.h.  */
3783 _ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h.  */
3787 #include <stdlib.h>
3788 #include <stdarg.h>
3789 #include <string.h>
3790 #include <float.h>
3791
3792 int
3793 main ()
3794 {
3795
3796   ;
3797   return 0;
3798 }
3799 _ACEOF
3800 rm -f conftest.$ac_objext
3801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3802   (eval $ac_compile) 2>&5
3803   ac_status=$?
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); } &&
3806          { ac_try='test -s conftest.$ac_objext'
3807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808   (eval $ac_try) 2>&5
3809   ac_status=$?
3810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811   (exit $ac_status); }; }; then
3812   ac_cv_header_stdc=yes
3813 else
3814   echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3816
3817 ac_cv_header_stdc=no
3818 fi
3819 rm -f conftest.$ac_objext conftest.$ac_ext
3820
3821 if test $ac_cv_header_stdc = yes; then
3822   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3823   cat >conftest.$ac_ext <<_ACEOF
3824 #line $LINENO "configure"
3825 /* confdefs.h.  */
3826 _ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h.  */
3830 #include <string.h>
3831
3832 _ACEOF
3833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3834   $EGREP "memchr" >/dev/null 2>&1; then
3835   :
3836 else
3837   ac_cv_header_stdc=no
3838 fi
3839 rm -f conftest*
3840
3841 fi
3842
3843 if test $ac_cv_header_stdc = yes; then
3844   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3845   cat >conftest.$ac_ext <<_ACEOF
3846 #line $LINENO "configure"
3847 /* confdefs.h.  */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h.  */
3852 #include <stdlib.h>
3853
3854 _ACEOF
3855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3856   $EGREP "free" >/dev/null 2>&1; then
3857   :
3858 else
3859   ac_cv_header_stdc=no
3860 fi
3861 rm -f conftest*
3862
3863 fi
3864
3865 if test $ac_cv_header_stdc = yes; then
3866   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3867   if test "$cross_compiling" = yes; then
3868   :
3869 else
3870   cat >conftest.$ac_ext <<_ACEOF
3871 #line $LINENO "configure"
3872 /* confdefs.h.  */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h.  */
3877 #include <ctype.h>
3878 #if ((' ' & 0x0FF) == 0x020)
3879 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3880 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3881 #else
3882 # define ISLOWER(c) \
3883                    (('a' <= (c) && (c) <= 'i') \
3884                      || ('j' <= (c) && (c) <= 'r') \
3885                      || ('s' <= (c) && (c) <= 'z'))
3886 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3887 #endif
3888
3889 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3890 int
3891 main ()
3892 {
3893   int i;
3894   for (i = 0; i < 256; i++)
3895     if (XOR (islower (i), ISLOWER (i))
3896         || toupper (i) != TOUPPER (i))
3897       exit(2);
3898   exit (0);
3899 }
3900 _ACEOF
3901 rm -f conftest$ac_exeext
3902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3903   (eval $ac_link) 2>&5
3904   ac_status=$?
3905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908   (eval $ac_try) 2>&5
3909   ac_status=$?
3910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911   (exit $ac_status); }; }; then
3912   :
3913 else
3914   echo "$as_me: program exited with status $ac_status" >&5
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3917
3918 ( exit $ac_status )
3919 ac_cv_header_stdc=no
3920 fi
3921 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3922 fi
3923 fi
3924 fi
3925 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3926 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3927 if test $ac_cv_header_stdc = yes; then
3928
3929 cat >>confdefs.h <<\_ACEOF
3930 #define STDC_HEADERS 1
3931 _ACEOF
3932
3933 fi
3934
3935 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3946                   inttypes.h stdint.h unistd.h
3947 do
3948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3949 echo "$as_me:$LINENO: checking for $ac_header" >&5
3950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3952   echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954   cat >conftest.$ac_ext <<_ACEOF
3955 #line $LINENO "configure"
3956 /* confdefs.h.  */
3957 _ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h.  */
3961 $ac_includes_default
3962
3963 #include <$ac_header>
3964 _ACEOF
3965 rm -f conftest.$ac_objext
3966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3967   (eval $ac_compile) 2>&5
3968   ac_status=$?
3969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970   (exit $ac_status); } &&
3971          { ac_try='test -s conftest.$ac_objext'
3972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973   (eval $ac_try) 2>&5
3974   ac_status=$?
3975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976   (exit $ac_status); }; }; then
3977   eval "$as_ac_Header=yes"
3978 else
3979   echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3981
3982 eval "$as_ac_Header=no"
3983 fi
3984 rm -f conftest.$ac_objext conftest.$ac_ext
3985 fi
3986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3989   cat >>confdefs.h <<_ACEOF
3990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3991 _ACEOF
3992
3993 fi
3994
3995 done
3996
3997
3998
3999 for ac_header in dlfcn.h
4000 do
4001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4003   echo "$as_me:$LINENO: checking for $ac_header" >&5
4004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4006   echo $ECHO_N "(cached) $ECHO_C" >&6
4007 fi
4008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4010 else
4011   # Is the header compilable?
4012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4014 cat >conftest.$ac_ext <<_ACEOF
4015 #line $LINENO "configure"
4016 /* confdefs.h.  */
4017 _ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h.  */
4021 $ac_includes_default
4022 #include <$ac_header>
4023 _ACEOF
4024 rm -f conftest.$ac_objext
4025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4026   (eval $ac_compile) 2>&5
4027   ac_status=$?
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); } &&
4030          { ac_try='test -s conftest.$ac_objext'
4031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032   (eval $ac_try) 2>&5
4033   ac_status=$?
4034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); }; }; then
4036   ac_header_compiler=yes
4037 else
4038   echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.$ac_ext >&5
4040
4041 ac_header_compiler=no
4042 fi
4043 rm -f conftest.$ac_objext conftest.$ac_ext
4044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4045 echo "${ECHO_T}$ac_header_compiler" >&6
4046
4047 # Is the header present?
4048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4050 cat >conftest.$ac_ext <<_ACEOF
4051 #line $LINENO "configure"
4052 /* confdefs.h.  */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h.  */
4057 #include <$ac_header>
4058 _ACEOF
4059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4060   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4061   ac_status=$?
4062   grep -v '^ *+' conftest.er1 >conftest.err
4063   rm -f conftest.er1
4064   cat conftest.err >&5
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); } >/dev/null; then
4067   if test -s conftest.err; then
4068     ac_cpp_err=$ac_c_preproc_warn_flag
4069   else
4070     ac_cpp_err=
4071   fi
4072 else
4073   ac_cpp_err=yes
4074 fi
4075 if test -z "$ac_cpp_err"; then
4076   ac_header_preproc=yes
4077 else
4078   echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4080
4081   ac_header_preproc=no
4082 fi
4083 rm -f conftest.err conftest.$ac_ext
4084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4085 echo "${ECHO_T}$ac_header_preproc" >&6
4086
4087 # So?  What about this header?
4088 case $ac_header_compiler:$ac_header_preproc in
4089   yes:no )
4090     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4092     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4094     (
4095       cat <<\_ASBOX
4096 ## ------------------------------------ ##
4097 ## Report this to bug-autoconf@gnu.org. ##
4098 ## ------------------------------------ ##
4099 _ASBOX
4100     ) |
4101       sed "s/^/$as_me: WARNING:     /" >&2
4102     ;;
4103   no:yes )
4104     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4106     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4110     (
4111       cat <<\_ASBOX
4112 ## ------------------------------------ ##
4113 ## Report this to bug-autoconf@gnu.org. ##
4114 ## ------------------------------------ ##
4115 _ASBOX
4116     ) |
4117       sed "s/^/$as_me: WARNING:     /" >&2
4118     ;;
4119 esac
4120 echo "$as_me:$LINENO: checking for $ac_header" >&5
4121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4123   echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125   eval "$as_ac_Header=$ac_header_preproc"
4126 fi
4127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4129
4130 fi
4131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4132   cat >>confdefs.h <<_ACEOF
4133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4134 _ACEOF
4135
4136 fi
4137
4138 done
4139
4140 ac_ext=cc
4141 ac_cpp='$CXXCPP $CPPFLAGS'
4142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4145 if test -n "$ac_tool_prefix"; then
4146   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4147   do
4148     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4150 echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4152 if test "${ac_cv_prog_CXX+set}" = set; then
4153   echo $ECHO_N "(cached) $ECHO_C" >&6
4154 else
4155   if test -n "$CXX"; then
4156   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4157 else
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH
4160 do
4161   IFS=$as_save_IFS
4162   test -z "$as_dir" && as_dir=.
4163   for ac_exec_ext in '' $ac_executable_extensions; do
4164   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4165     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167     break 2
4168   fi
4169 done
4170 done
4171
4172 fi
4173 fi
4174 CXX=$ac_cv_prog_CXX
4175 if test -n "$CXX"; then
4176   echo "$as_me:$LINENO: result: $CXX" >&5
4177 echo "${ECHO_T}$CXX" >&6
4178 else
4179   echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4181 fi
4182
4183     test -n "$CXX" && break
4184   done
4185 fi
4186 if test -z "$CXX"; then
4187   ac_ct_CXX=$CXX
4188   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4189 do
4190   # Extract the first word of "$ac_prog", so it can be a program name with args.
4191 set dummy $ac_prog; ac_word=$2
4192 echo "$as_me:$LINENO: checking for $ac_word" >&5
4193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4194 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4195   echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197   if test -n "$ac_ct_CXX"; then
4198   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4199 else
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4202 do
4203   IFS=$as_save_IFS
4204   test -z "$as_dir" && as_dir=.
4205   for ac_exec_ext in '' $ac_executable_extensions; do
4206   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4207     ac_cv_prog_ac_ct_CXX="$ac_prog"
4208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4209     break 2
4210   fi
4211 done
4212 done
4213
4214 fi
4215 fi
4216 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4217 if test -n "$ac_ct_CXX"; then
4218   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4219 echo "${ECHO_T}$ac_ct_CXX" >&6
4220 else
4221   echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4223 fi
4224
4225   test -n "$ac_ct_CXX" && break
4226 done
4227 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4228
4229   CXX=$ac_ct_CXX
4230 fi
4231
4232
4233 # Provide some information about the compiler.
4234 echo "$as_me:$LINENO:" \
4235      "checking for C++ compiler version" >&5
4236 ac_compiler=`set X $ac_compile; echo $2`
4237 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4238   (eval $ac_compiler --version </dev/null >&5) 2>&5
4239   ac_status=$?
4240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241   (exit $ac_status); }
4242 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4243   (eval $ac_compiler -v </dev/null >&5) 2>&5
4244   ac_status=$?
4245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246   (exit $ac_status); }
4247 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4248   (eval $ac_compiler -V </dev/null >&5) 2>&5
4249   ac_status=$?
4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); }
4252
4253 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4254 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4255 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4256   echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258   cat >conftest.$ac_ext <<_ACEOF
4259 #line $LINENO "configure"
4260 /* confdefs.h.  */
4261 _ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h.  */
4265
4266 int
4267 main ()
4268 {
4269 #ifndef __GNUC__
4270        choke me
4271 #endif
4272
4273   ;
4274   return 0;
4275 }
4276 _ACEOF
4277 rm -f conftest.$ac_objext
4278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4279   (eval $ac_compile) 2>&5
4280   ac_status=$?
4281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282   (exit $ac_status); } &&
4283          { ac_try='test -s conftest.$ac_objext'
4284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285   (eval $ac_try) 2>&5
4286   ac_status=$?
4287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); }; }; then
4289   ac_compiler_gnu=yes
4290 else
4291   echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4293
4294 ac_compiler_gnu=no
4295 fi
4296 rm -f conftest.$ac_objext conftest.$ac_ext
4297 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4298
4299 fi
4300 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4301 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4302 GXX=`test $ac_compiler_gnu = yes && echo yes`
4303 ac_test_CXXFLAGS=${CXXFLAGS+set}
4304 ac_save_CXXFLAGS=$CXXFLAGS
4305 CXXFLAGS="-g"
4306 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4307 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4308 if test "${ac_cv_prog_cxx_g+set}" = set; then
4309   echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311   cat >conftest.$ac_ext <<_ACEOF
4312 #line $LINENO "configure"
4313 /* confdefs.h.  */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h.  */
4318
4319 int
4320 main ()
4321 {
4322
4323   ;
4324   return 0;
4325 }
4326 _ACEOF
4327 rm -f conftest.$ac_objext
4328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4329   (eval $ac_compile) 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); } &&
4333          { ac_try='test -s conftest.$ac_objext'
4334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335   (eval $ac_try) 2>&5
4336   ac_status=$?
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); }; }; then
4339   ac_cv_prog_cxx_g=yes
4340 else
4341   echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344 ac_cv_prog_cxx_g=no
4345 fi
4346 rm -f conftest.$ac_objext conftest.$ac_ext
4347 fi
4348 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4349 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4350 if test "$ac_test_CXXFLAGS" = set; then
4351   CXXFLAGS=$ac_save_CXXFLAGS
4352 elif test $ac_cv_prog_cxx_g = yes; then
4353   if test "$GXX" = yes; then
4354     CXXFLAGS="-g -O2"
4355   else
4356     CXXFLAGS="-g"
4357   fi
4358 else
4359   if test "$GXX" = yes; then
4360     CXXFLAGS="-O2"
4361   else
4362     CXXFLAGS=
4363   fi
4364 fi
4365 for ac_declaration in \
4366    ''\
4367    '#include <stdlib.h>' \
4368    'extern "C" void std::exit (int) throw (); using std::exit;' \
4369    'extern "C" void std::exit (int); using std::exit;' \
4370    'extern "C" void exit (int) throw ();' \
4371    'extern "C" void exit (int);' \
4372    'void exit (int);'
4373 do
4374   cat >conftest.$ac_ext <<_ACEOF
4375 #line $LINENO "configure"
4376 /* confdefs.h.  */
4377 _ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h.  */
4381 #include <stdlib.h>
4382 $ac_declaration
4383 int
4384 main ()
4385 {
4386 exit (42);
4387   ;
4388   return 0;
4389 }
4390 _ACEOF
4391 rm -f conftest.$ac_objext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4393   (eval $ac_compile) 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); } &&
4397          { ac_try='test -s conftest.$ac_objext'
4398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399   (eval $ac_try) 2>&5
4400   ac_status=$?
4401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402   (exit $ac_status); }; }; then
4403   :
4404 else
4405   echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4407
4408 continue
4409 fi
4410 rm -f conftest.$ac_objext conftest.$ac_ext
4411   cat >conftest.$ac_ext <<_ACEOF
4412 #line $LINENO "configure"
4413 /* confdefs.h.  */
4414 _ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h.  */
4418 $ac_declaration
4419 int
4420 main ()
4421 {
4422 exit (42);
4423   ;
4424   return 0;
4425 }
4426 _ACEOF
4427 rm -f conftest.$ac_objext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429   (eval $ac_compile) 2>&5
4430   ac_status=$?
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); } &&
4433          { ac_try='test -s conftest.$ac_objext'
4434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435   (eval $ac_try) 2>&5
4436   ac_status=$?
4437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438   (exit $ac_status); }; }; then
4439   break
4440 else
4441   echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4443
4444 fi
4445 rm -f conftest.$ac_objext conftest.$ac_ext
4446 done
4447 rm -f conftest*
4448 if test -n "$ac_declaration"; then
4449   echo '#ifdef __cplusplus' >>confdefs.h
4450   echo $ac_declaration      >>confdefs.h
4451   echo '#endif'             >>confdefs.h
4452 fi
4453
4454 ac_ext=cc
4455 ac_cpp='$CXXCPP $CPPFLAGS'
4456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4459
4460 ac_ext=cc
4461 ac_cpp='$CXXCPP $CPPFLAGS'
4462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4465 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4466 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4467 if test -z "$CXXCPP"; then
4468   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4469   echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471       # Double quotes because CXXCPP needs to be expanded
4472     for CXXCPP in "$CXX -E" "/lib/cpp"
4473     do
4474       ac_preproc_ok=false
4475 for ac_cxx_preproc_warn_flag in '' yes
4476 do
4477   # Use a header file that comes with gcc, so configuring glibc
4478   # with a fresh cross-compiler works.
4479   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4480   # <limits.h> exists even on freestanding compilers.
4481   # On the NeXT, cc -E runs the code through the compiler's parser,
4482   # not just through cpp. "Syntax error" is here to catch this case.
4483   cat >conftest.$ac_ext <<_ACEOF
4484 #line $LINENO "configure"
4485 /* confdefs.h.  */
4486 _ACEOF
4487 cat confdefs.h >>conftest.$ac_ext
4488 cat >>conftest.$ac_ext <<_ACEOF
4489 /* end confdefs.h.  */
4490 #ifdef __STDC__
4491 # include <limits.h>
4492 #else
4493 # include <assert.h>
4494 #endif
4495                      Syntax error
4496 _ACEOF
4497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4498   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4499   ac_status=$?
4500   grep -v '^ *+' conftest.er1 >conftest.err
4501   rm -f conftest.er1
4502   cat conftest.err >&5
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); } >/dev/null; then
4505   if test -s conftest.err; then
4506     ac_cpp_err=$ac_cxx_preproc_warn_flag
4507   else
4508     ac_cpp_err=
4509   fi
4510 else
4511   ac_cpp_err=yes
4512 fi
4513 if test -z "$ac_cpp_err"; then
4514   :
4515 else
4516   echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4518
4519   # Broken: fails on valid input.
4520 continue
4521 fi
4522 rm -f conftest.err conftest.$ac_ext
4523
4524   # OK, works on sane cases.  Now check whether non-existent headers
4525   # can be detected and how.
4526   cat >conftest.$ac_ext <<_ACEOF
4527 #line $LINENO "configure"
4528 /* confdefs.h.  */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h.  */
4533 #include <ac_nonexistent.h>
4534 _ACEOF
4535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4536   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4537   ac_status=$?
4538   grep -v '^ *+' conftest.er1 >conftest.err
4539   rm -f conftest.er1
4540   cat conftest.err >&5
4541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542   (exit $ac_status); } >/dev/null; then
4543   if test -s conftest.err; then
4544     ac_cpp_err=$ac_cxx_preproc_warn_flag
4545   else
4546     ac_cpp_err=
4547   fi
4548 else
4549   ac_cpp_err=yes
4550 fi
4551 if test -z "$ac_cpp_err"; then
4552   # Broken: success on invalid input.
4553 continue
4554 else
4555   echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4557
4558   # Passes both tests.
4559 ac_preproc_ok=:
4560 break
4561 fi
4562 rm -f conftest.err conftest.$ac_ext
4563
4564 done
4565 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4566 rm -f conftest.err conftest.$ac_ext
4567 if $ac_preproc_ok; then
4568   break
4569 fi
4570
4571     done
4572     ac_cv_prog_CXXCPP=$CXXCPP
4573
4574 fi
4575   CXXCPP=$ac_cv_prog_CXXCPP
4576 else
4577   ac_cv_prog_CXXCPP=$CXXCPP
4578 fi
4579 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4580 echo "${ECHO_T}$CXXCPP" >&6
4581 ac_preproc_ok=false
4582 for ac_cxx_preproc_warn_flag in '' yes
4583 do
4584   # Use a header file that comes with gcc, so configuring glibc
4585   # with a fresh cross-compiler works.
4586   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4587   # <limits.h> exists even on freestanding compilers.
4588   # On the NeXT, cc -E runs the code through the compiler's parser,
4589   # not just through cpp. "Syntax error" is here to catch this case.
4590   cat >conftest.$ac_ext <<_ACEOF
4591 #line $LINENO "configure"
4592 /* confdefs.h.  */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h.  */
4597 #ifdef __STDC__
4598 # include <limits.h>
4599 #else
4600 # include <assert.h>
4601 #endif
4602                      Syntax error
4603 _ACEOF
4604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4605   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4606   ac_status=$?
4607   grep -v '^ *+' conftest.er1 >conftest.err
4608   rm -f conftest.er1
4609   cat conftest.err >&5
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); } >/dev/null; then
4612   if test -s conftest.err; then
4613     ac_cpp_err=$ac_cxx_preproc_warn_flag
4614   else
4615     ac_cpp_err=
4616   fi
4617 else
4618   ac_cpp_err=yes
4619 fi
4620 if test -z "$ac_cpp_err"; then
4621   :
4622 else
4623   echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4625
4626   # Broken: fails on valid input.
4627 continue
4628 fi
4629 rm -f conftest.err conftest.$ac_ext
4630
4631   # OK, works on sane cases.  Now check whether non-existent headers
4632   # can be detected and how.
4633   cat >conftest.$ac_ext <<_ACEOF
4634 #line $LINENO "configure"
4635 /* confdefs.h.  */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h.  */
4640 #include <ac_nonexistent.h>
4641 _ACEOF
4642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4643   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4644   ac_status=$?
4645   grep -v '^ *+' conftest.er1 >conftest.err
4646   rm -f conftest.er1
4647   cat conftest.err >&5
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); } >/dev/null; then
4650   if test -s conftest.err; then
4651     ac_cpp_err=$ac_cxx_preproc_warn_flag
4652   else
4653     ac_cpp_err=
4654   fi
4655 else
4656   ac_cpp_err=yes
4657 fi
4658 if test -z "$ac_cpp_err"; then
4659   # Broken: success on invalid input.
4660 continue
4661 else
4662   echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4664
4665   # Passes both tests.
4666 ac_preproc_ok=:
4667 break
4668 fi
4669 rm -f conftest.err conftest.$ac_ext
4670
4671 done
4672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4673 rm -f conftest.err conftest.$ac_ext
4674 if $ac_preproc_ok; then
4675   :
4676 else
4677   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4678 See \`config.log' for more details." >&5
4679 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4680 See \`config.log' for more details." >&2;}
4681    { (exit 1); exit 1; }; }
4682 fi
4683
4684 ac_ext=cc
4685 ac_cpp='$CXXCPP $CPPFLAGS'
4686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4689
4690
4691 ac_ext=f
4692 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4693 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4694 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4695 if test -n "$ac_tool_prefix"; then
4696   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4697   do
4698     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4699 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4700 echo "$as_me:$LINENO: checking for $ac_word" >&5
4701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4702 if test "${ac_cv_prog_F77+set}" = set; then
4703   echo $ECHO_N "(cached) $ECHO_C" >&6
4704 else
4705   if test -n "$F77"; then
4706   ac_cv_prog_F77="$F77" # Let the user override the test.
4707 else
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4710 do
4711   IFS=$as_save_IFS
4712   test -z "$as_dir" && as_dir=.
4713   for ac_exec_ext in '' $ac_executable_extensions; do
4714   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4715     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717     break 2
4718   fi
4719 done
4720 done
4721
4722 fi
4723 fi
4724 F77=$ac_cv_prog_F77
4725 if test -n "$F77"; then
4726   echo "$as_me:$LINENO: result: $F77" >&5
4727 echo "${ECHO_T}$F77" >&6
4728 else
4729   echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6
4731 fi
4732
4733     test -n "$F77" && break
4734   done
4735 fi
4736 if test -z "$F77"; then
4737   ac_ct_F77=$F77
4738   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4739 do
4740   # Extract the first word of "$ac_prog", so it can be a program name with args.
4741 set dummy $ac_prog; ac_word=$2
4742 echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4744 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4745   echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747   if test -n "$ac_ct_F77"; then
4748   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4749 else
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755   for ac_exec_ext in '' $ac_executable_extensions; do
4756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757     ac_cv_prog_ac_ct_F77="$ac_prog"
4758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759     break 2
4760   fi
4761 done
4762 done
4763
4764 fi
4765 fi
4766 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4767 if test -n "$ac_ct_F77"; then
4768   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4769 echo "${ECHO_T}$ac_ct_F77" >&6
4770 else
4771   echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6
4773 fi
4774
4775   test -n "$ac_ct_F77" && break
4776 done
4777
4778   F77=$ac_ct_F77
4779 fi
4780
4781
4782 # Provide some information about the compiler.
4783 echo "$as_me:4783:" \
4784      "checking for Fortran 77 compiler version" >&5
4785 ac_compiler=`set X $ac_compile; echo $2`
4786 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4787   (eval $ac_compiler --version </dev/null >&5) 2>&5
4788   ac_status=$?
4789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); }
4791 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4792   (eval $ac_compiler -v </dev/null >&5) 2>&5
4793   ac_status=$?
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); }
4796 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4797   (eval $ac_compiler -V </dev/null >&5) 2>&5
4798   ac_status=$?
4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800   (exit $ac_status); }
4801
4802 # If we don't use `.F' as extension, the preprocessor is not run on the
4803 # input file.
4804 ac_save_ext=$ac_ext
4805 ac_ext=F
4806 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4807 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4808 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4809   echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811   cat >conftest.$ac_ext <<_ACEOF
4812       program main
4813 #ifndef __GNUC__
4814        choke me
4815 #endif
4816
4817       end
4818 _ACEOF
4819 rm -f conftest.$ac_objext
4820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4821   (eval $ac_compile) 2>&5
4822   ac_status=$?
4823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824   (exit $ac_status); } &&
4825          { ac_try='test -s conftest.$ac_objext'
4826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827   (eval $ac_try) 2>&5
4828   ac_status=$?
4829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); }; }; then
4831   ac_compiler_gnu=yes
4832 else
4833   echo "$as_me: failed program was:" >&5
4834 sed 's/^/| /' conftest.$ac_ext >&5
4835
4836 ac_compiler_gnu=no
4837 fi
4838 rm -f conftest.$ac_objext conftest.$ac_ext
4839 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4840
4841 fi
4842 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4843 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4844 ac_ext=$ac_save_ext
4845 G77=`test $ac_compiler_gnu = yes && echo yes`
4846 ac_test_FFLAGS=${FFLAGS+set}
4847 ac_save_FFLAGS=$FFLAGS
4848 FFLAGS=
4849 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4850 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4851 if test "${ac_cv_prog_f77_g+set}" = set; then
4852   echo $ECHO_N "(cached) $ECHO_C" >&6
4853 else
4854   FFLAGS=-g
4855 cat >conftest.$ac_ext <<_ACEOF
4856       program main
4857
4858       end
4859 _ACEOF
4860 rm -f conftest.$ac_objext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4862   (eval $ac_compile) 2>&5
4863   ac_status=$?
4864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); } &&
4866          { ac_try='test -s conftest.$ac_objext'
4867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868   (eval $ac_try) 2>&5
4869   ac_status=$?
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); }; }; then
4872   ac_cv_prog_f77_g=yes
4873 else
4874   echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4876
4877 ac_cv_prog_f77_g=no
4878 fi
4879 rm -f conftest.$ac_objext conftest.$ac_ext
4880
4881 fi
4882 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4883 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4884 if test "$ac_test_FFLAGS" = set; then
4885   FFLAGS=$ac_save_FFLAGS
4886 elif test $ac_cv_prog_f77_g = yes; then
4887   if test "$G77" = yes; then
4888     FFLAGS="-g -O2"
4889   else
4890     FFLAGS="-g"
4891   fi
4892 else
4893   if test "$G77" = yes; then
4894     FFLAGS="-O2"
4895   else
4896     FFLAGS=
4897   fi
4898 fi
4899 ac_ext=c
4900 ac_cpp='$CPP $CPPFLAGS'
4901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4904
4905
4906
4907 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4908
4909 # find the maximum length of command line arguments
4910 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4911 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4912 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4913   echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915     i=0
4916   teststring="ABCD"
4917
4918   case $build_os in
4919   msdosdjgpp*)
4920     # On DJGPP, this test can blow up pretty badly due to problems in libc
4921     # (any single argument exceeding 2000 bytes causes a buffer overrun
4922     # during glob expansion).  Even if it were fixed, the result of this
4923     # check would be larger than it should be.
4924     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4925     ;;
4926
4927   gnu*)
4928     # Under GNU Hurd, this test is not required because there is
4929     # no limit to the length of command line arguments.
4930     # Libtool will interpret -1 as no limit whatsoever
4931     lt_cv_sys_max_cmd_len=-1;
4932     ;;
4933
4934   cygwin* | mingw*)
4935     # On Win9x/ME, this test blows up -- it succeeds, but takes
4936     # about 5 minutes as the teststring grows exponentially.
4937     # Worse, since 9x/ME are not pre-emptively multitasking,
4938     # you end up with a "frozen" computer, even though with patience
4939     # the test eventually succeeds (with a max line length of 256k).
4940     # Instead, let's just punt: use the minimum linelength reported by
4941     # all of the supported platforms: 8192 (on NT/2K/XP).
4942     lt_cv_sys_max_cmd_len=8192;
4943     ;;
4944
4945   amigaos*)
4946     # On AmigaOS with pdksh, this test takes hours, literally.
4947     # So we just punt and use a minimum line length of 8192.
4948     lt_cv_sys_max_cmd_len=8192;
4949     ;;
4950
4951  *)
4952     # If test is not a shell built-in, we'll probably end up computing a
4953     # maximum length that is only half of the actual maximum length, but
4954     # we can't tell.
4955     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
4956                = "XX$teststring") >/dev/null 2>&1 &&
4957             new_result=`expr "X$teststring" : ".*" 2>&1` &&
4958             lt_cv_sys_max_cmd_len=$new_result &&
4959             test $i != 17 # 1/2 MB should be enough
4960     do
4961       i=`expr $i + 1`
4962       teststring=$teststring$teststring
4963     done
4964     teststring=
4965     # Add a significant safety factor because C++ compilers can tack on massive
4966     # amounts of additional arguments before passing them to the linker.
4967     # It appears as though 1/2 is a usable value.
4968     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4969     ;;
4970   esac
4971
4972 fi
4973
4974 if test -n $lt_cv_sys_max_cmd_len ; then
4975   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4976 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4977 else
4978   echo "$as_me:$LINENO: result: none" >&5
4979 echo "${ECHO_T}none" >&6
4980 fi
4981
4982
4983
4984
4985 # Check for command to grab the raw symbol name followed by C symbol from nm.
4986 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4987 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4988 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4989   echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991
4992 # These are sane defaults that work on at least a few old systems.
4993 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4994
4995 # Character class describing NM global symbol codes.
4996 symcode='[BCDEGRST]'
4997
4998 # Regexp to match symbols that can be accessed directly from C.
4999 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5000
5001 # Transform the above into a raw symbol and a C symbol.
5002 symxfrm='\1 \2\3 \3'
5003
5004 # Transform an extracted symbol line into a proper C declaration
5005 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5006
5007 # Transform an extracted symbol line into symbol name and symbol address
5008 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'"
5009
5010 # Define system-specific variables.
5011 case $host_os in
5012 aix*)
5013   symcode='[BCDT]'
5014   ;;
5015 cygwin* | mingw* | pw32*)
5016   symcode='[ABCDGISTW]'
5017   ;;
5018 hpux*) # Its linker distinguishes data from code symbols
5019   if test "$host_cpu" = ia64; then
5020     symcode='[ABCDEGRST]'
5021   fi
5022   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5023   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'"
5024   ;;
5025 irix* | nonstopux*)
5026   symcode='[BCDEGRST]'
5027   ;;
5028 osf*)
5029   symcode='[BCDEGQRST]'
5030   ;;
5031 solaris* | sysv5*)
5032   symcode='[BDRT]'
5033   ;;
5034 sysv4)
5035   symcode='[DFNSTU]'
5036   ;;
5037 esac
5038
5039 # Handle CRLF in mingw tool chain
5040 opt_cr=
5041 case $build_os in
5042 mingw*)
5043   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5044   ;;
5045 esac
5046
5047 # If we're using GNU nm, then use its standard symbol codes.
5048 case `$NM -V 2>&1` in
5049 *GNU* | *'with BFD'*)
5050   symcode='[ABCDGIRSTW]' ;;
5051 esac
5052
5053 # Try without a prefix undercore, then with it.
5054 for ac_symprfx in "" "_"; do
5055
5056   # Write the raw and C identifiers.
5057   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5058
5059   # Check to see that the pipe works correctly.
5060   pipe_works=no
5061
5062   rm -f conftest*
5063   cat > conftest.$ac_ext <<EOF
5064 #ifdef __cplusplus
5065 extern "C" {
5066 #endif
5067 char nm_test_var;
5068 void nm_test_func(){}
5069 #ifdef __cplusplus
5070 }
5071 #endif
5072 int main(){nm_test_var='a';nm_test_func();return(0);}
5073 EOF
5074
5075   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5076   (eval $ac_compile) 2>&5
5077   ac_status=$?
5078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079   (exit $ac_status); }; then
5080     # Now try to grab the symbols.
5081     nlist=conftest.nm
5082     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5083   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5084   ac_status=$?
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); } && test -s "$nlist"; then
5087       # Try sorting and uniquifying the output.
5088       if sort "$nlist" | uniq > "$nlist"T; then
5089         mv -f "$nlist"T "$nlist"
5090       else
5091         rm -f "$nlist"T
5092       fi
5093
5094       # Make sure that we snagged all the symbols we need.
5095       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5096         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5097           cat <<EOF > conftest.$ac_ext
5098 #ifdef __cplusplus
5099 extern "C" {
5100 #endif
5101
5102 EOF
5103           # Now generate the symbol file.
5104           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5105
5106           cat <<EOF >> conftest.$ac_ext
5107 #if defined (__STDC__) && __STDC__
5108 # define lt_ptr_t void *
5109 #else
5110 # define lt_ptr_t char *
5111 # define const
5112 #endif
5113
5114 /* The mapping between symbol names and symbols. */
5115 const struct {
5116   const char *name;
5117   lt_ptr_t address;
5118 }
5119 lt_preloaded_symbols[] =
5120 {
5121 EOF
5122           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5123           cat <<\EOF >> conftest.$ac_ext
5124   {0, (lt_ptr_t) 0}
5125 };
5126
5127 #ifdef __cplusplus
5128 }
5129 #endif
5130 EOF
5131           # Now try linking the two files.
5132           mv conftest.$ac_objext conftstm.$ac_objext
5133           lt_save_LIBS="$LIBS"
5134           lt_save_CFLAGS="$CFLAGS"
5135           LIBS="conftstm.$ac_objext"
5136           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5137           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5138   (eval $ac_link) 2>&5
5139   ac_status=$?
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5142             pipe_works=yes
5143           fi
5144           LIBS="$lt_save_LIBS"
5145           CFLAGS="$lt_save_CFLAGS"
5146         else
5147           echo "cannot find nm_test_func in $nlist" >&5
5148         fi
5149       else
5150         echo "cannot find nm_test_var in $nlist" >&5
5151       fi
5152     else
5153       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5154     fi
5155   else
5156     echo "$progname: failed program was:" >&5
5157     cat conftest.$ac_ext >&5
5158   fi
5159   rm -f conftest* conftst*
5160
5161   # Do not use the global_symbol_pipe unless it works.
5162   if test "$pipe_works" = yes; then
5163     break
5164   else
5165     lt_cv_sys_global_symbol_pipe=
5166   fi
5167 done
5168
5169 fi
5170
5171 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5172   lt_cv_sys_global_symbol_to_cdecl=
5173 fi
5174 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5175   echo "$as_me:$LINENO: result: failed" >&5
5176 echo "${ECHO_T}failed" >&6
5177 else
5178   echo "$as_me:$LINENO: result: ok" >&5
5179 echo "${ECHO_T}ok" >&6
5180 fi
5181
5182 echo "$as_me:$LINENO: checking for objdir" >&5
5183 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5184 if test "${lt_cv_objdir+set}" = set; then
5185   echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187   rm -f .libs 2>/dev/null
5188 mkdir .libs 2>/dev/null
5189 if test -d .libs; then
5190   lt_cv_objdir=.libs
5191 else
5192   # MS-DOS does not allow filenames that begin with a dot.
5193   lt_cv_objdir=_libs
5194 fi
5195 rmdir .libs 2>/dev/null
5196 fi
5197 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5198 echo "${ECHO_T}$lt_cv_objdir" >&6
5199 objdir=$lt_cv_objdir
5200
5201
5202
5203
5204
5205 case $host_os in
5206 aix3*)
5207   # AIX sometimes has problems with the GCC collect2 program.  For some
5208   # reason, if we set the COLLECT_NAMES environment variable, the problems
5209   # vanish in a puff of smoke.
5210   if test "X${COLLECT_NAMES+set}" != Xset; then
5211     COLLECT_NAMES=
5212     export COLLECT_NAMES
5213   fi
5214   ;;
5215 esac
5216
5217 # Sed substitution that helps us do robust quoting.  It backslashifies
5218 # metacharacters that are still active within double-quoted strings.
5219 Xsed='sed -e s/^X//'
5220 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5221
5222 # Same as above, but do not quote variable references.
5223 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5224
5225 # Sed substitution to delay expansion of an escaped shell variable in a
5226 # double_quote_subst'ed string.
5227 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5228
5229 # Sed substitution to avoid accidental globbing in evaled expressions
5230 no_glob_subst='s/\*/\\\*/g'
5231
5232 # Constants:
5233 rm="rm -f"
5234
5235 # Global variables:
5236 default_ofile=libtool
5237 can_build_shared=yes
5238
5239 # All known linkers require a `.a' archive for static linking (except M$VC,
5240 # which needs '.lib').
5241 libext=a
5242 ltmain="$ac_aux_dir/ltmain.sh"
5243 ofile="$default_ofile"
5244 with_gnu_ld="$lt_cv_prog_gnu_ld"
5245
5246 if test -n "$ac_tool_prefix"; then
5247   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5248 set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then
5252   echo $ECHO_N "(cached) $ECHO_C" >&6
5253 else
5254   if test -n "$AR"; then
5255   ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
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 AR=$ac_cv_prog_AR
5274 if test -n "$AR"; then
5275   echo "$as_me:$LINENO: result: $AR" >&5
5276 echo "${ECHO_T}$AR" >&6
5277 else
5278   echo "$as_me:$LINENO: result: no" >&5
5279 echo "${ECHO_T}no" >&6
5280 fi
5281
5282 fi
5283 if test -z "$ac_cv_prog_AR"; then
5284   ac_ct_AR=$AR
5285   # Extract the first word of "ar", so it can be a program name with args.
5286 set dummy ar; ac_word=$2
5287 echo "$as_me:$LINENO: checking for $ac_word" >&5
5288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5289 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5290   echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292   if test -n "$ac_ct_AR"; then
5293   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5294 else
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5297 do
5298   IFS=$as_save_IFS
5299   test -z "$as_dir" && as_dir=.
5300   for ac_exec_ext in '' $ac_executable_extensions; do
5301   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5302     ac_cv_prog_ac_ct_AR="ar"
5303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5304     break 2
5305   fi
5306 done
5307 done
5308
5309   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5310 fi
5311 fi
5312 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5313 if test -n "$ac_ct_AR"; then
5314   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5315 echo "${ECHO_T}$ac_ct_AR" >&6
5316 else
5317   echo "$as_me:$LINENO: result: no" >&5
5318 echo "${ECHO_T}no" >&6
5319 fi
5320
5321   AR=$ac_ct_AR
5322 else
5323   AR="$ac_cv_prog_AR"
5324 fi
5325
5326 if test -n "$ac_tool_prefix"; then
5327   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5328 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5329 echo "$as_me:$LINENO: checking for $ac_word" >&5
5330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5331 if test "${ac_cv_prog_RANLIB+set}" = set; then
5332   echo $ECHO_N "(cached) $ECHO_C" >&6
5333 else
5334   if test -n "$RANLIB"; then
5335   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5339 do
5340   IFS=$as_save_IFS
5341   test -z "$as_dir" && as_dir=.
5342   for ac_exec_ext in '' $ac_executable_extensions; do
5343   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346     break 2
5347   fi
5348 done
5349 done
5350
5351 fi
5352 fi
5353 RANLIB=$ac_cv_prog_RANLIB
5354 if test -n "$RANLIB"; then
5355   echo "$as_me:$LINENO: result: $RANLIB" >&5
5356 echo "${ECHO_T}$RANLIB" >&6
5357 else
5358   echo "$as_me:$LINENO: result: no" >&5
5359 echo "${ECHO_T}no" >&6
5360 fi
5361
5362 fi
5363 if test -z "$ac_cv_prog_RANLIB"; then
5364   ac_ct_RANLIB=$RANLIB
5365   # Extract the first word of "ranlib", so it can be a program name with args.
5366 set dummy ranlib; ac_word=$2
5367 echo "$as_me:$LINENO: checking for $ac_word" >&5
5368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5369 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5370   echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372   if test -n "$ac_ct_RANLIB"; then
5373   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5374 else
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5377 do
5378   IFS=$as_save_IFS
5379   test -z "$as_dir" && as_dir=.
5380   for ac_exec_ext in '' $ac_executable_extensions; do
5381   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382     ac_cv_prog_ac_ct_RANLIB="ranlib"
5383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5384     break 2
5385   fi
5386 done
5387 done
5388
5389   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5390 fi
5391 fi
5392 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5393 if test -n "$ac_ct_RANLIB"; then
5394   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5395 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5396 else
5397   echo "$as_me:$LINENO: result: no" >&5
5398 echo "${ECHO_T}no" >&6
5399 fi
5400
5401   RANLIB=$ac_ct_RANLIB
5402 else
5403   RANLIB="$ac_cv_prog_RANLIB"
5404 fi
5405
5406 if test -n "$ac_tool_prefix"; then
5407   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5408 set dummy ${ac_tool_prefix}strip; ac_word=$2
5409 echo "$as_me:$LINENO: checking for $ac_word" >&5
5410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5411 if test "${ac_cv_prog_STRIP+set}" = set; then
5412   echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414   if test -n "$STRIP"; then
5415   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5416 else
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5419 do
5420   IFS=$as_save_IFS
5421   test -z "$as_dir" && as_dir=.
5422   for ac_exec_ext in '' $ac_executable_extensions; do
5423   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5426     break 2
5427   fi
5428 done
5429 done
5430
5431 fi
5432 fi
5433 STRIP=$ac_cv_prog_STRIP
5434 if test -n "$STRIP"; then
5435   echo "$as_me:$LINENO: result: $STRIP" >&5
5436 echo "${ECHO_T}$STRIP" >&6
5437 else
5438   echo "$as_me:$LINENO: result: no" >&5
5439 echo "${ECHO_T}no" >&6
5440 fi
5441
5442 fi
5443 if test -z "$ac_cv_prog_STRIP"; then
5444   ac_ct_STRIP=$STRIP
5445   # Extract the first word of "strip", so it can be a program name with args.
5446 set dummy strip; ac_word=$2
5447 echo "$as_me:$LINENO: checking for $ac_word" >&5
5448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5449 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5450   echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452   if test -n "$ac_ct_STRIP"; then
5453   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5454 else
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5457 do
5458   IFS=$as_save_IFS
5459   test -z "$as_dir" && as_dir=.
5460   for ac_exec_ext in '' $ac_executable_extensions; do
5461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5462     ac_cv_prog_ac_ct_STRIP="strip"
5463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5464     break 2
5465   fi
5466 done
5467 done
5468
5469   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5470 fi
5471 fi
5472 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5473 if test -n "$ac_ct_STRIP"; then
5474   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5475 echo "${ECHO_T}$ac_ct_STRIP" >&6
5476 else
5477   echo "$as_me:$LINENO: result: no" >&5
5478 echo "${ECHO_T}no" >&6
5479 fi
5480
5481   STRIP=$ac_ct_STRIP
5482 else
5483   STRIP="$ac_cv_prog_STRIP"
5484 fi
5485
5486
5487 old_CC="$CC"
5488 old_CFLAGS="$CFLAGS"
5489
5490 # Set sane defaults for various variables
5491 test -z "$AR" && AR=ar
5492 test -z "$AR_FLAGS" && AR_FLAGS=cru
5493 test -z "$AS" && AS=as
5494 test -z "$CC" && CC=cc
5495 test -z "$LTCC" && LTCC=$CC
5496 test -z "$DLLTOOL" && DLLTOOL=dlltool
5497 test -z "$LD" && LD=ld
5498 test -z "$LN_S" && LN_S="ln -s"
5499 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5500 test -z "$NM" && NM=nm
5501 test -z "$SED" && SED=sed
5502 test -z "$OBJDUMP" && OBJDUMP=objdump
5503 test -z "$RANLIB" && RANLIB=:
5504 test -z "$STRIP" && STRIP=:
5505 test -z "$ac_objext" && ac_objext=o
5506
5507 # Determine commands to create old-style static archives.
5508 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5509 old_postinstall_cmds='chmod 644 $oldlib'
5510 old_postuninstall_cmds=
5511
5512 if test -n "$RANLIB"; then
5513   case $host_os in
5514   openbsd*)
5515     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5516     ;;
5517   *)
5518     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5519     ;;
5520   esac
5521   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5522 fi
5523
5524 # Only perform the check for file, if the check method requires it
5525 case $deplibs_check_method in
5526 file_magic*)
5527   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5528     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5529 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5530 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5531   echo $ECHO_N "(cached) $ECHO_C" >&6
5532 else
5533   case $MAGIC_CMD in
5534 [\\/*] |  ?:[\\/]*)
5535   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5536   ;;
5537 *)
5538   lt_save_MAGIC_CMD="$MAGIC_CMD"
5539   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5540   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5541   for ac_dir in $ac_dummy; do
5542     IFS="$lt_save_ifs"
5543     test -z "$ac_dir" && ac_dir=.
5544     if test -f $ac_dir/${ac_tool_prefix}file; then
5545       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5546       if test -n "$file_magic_test_file"; then
5547         case $deplibs_check_method in
5548         "file_magic "*)
5549           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5550           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5551           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5552             $EGREP "$file_magic_regex" > /dev/null; then
5553             :
5554           else
5555             cat <<EOF 1>&2
5556
5557 *** Warning: the command libtool uses to detect shared libraries,
5558 *** $file_magic_cmd, produces output that libtool cannot recognize.
5559 *** The result is that libtool may fail to recognize shared libraries
5560 *** as such.  This will affect the creation of libtool libraries that
5561 *** depend on shared libraries, but programs linked with such libtool
5562 *** libraries will work regardless of this problem.  Nevertheless, you
5563 *** may want to report the problem to your system manager and/or to
5564 *** bug-libtool@gnu.org
5565
5566 EOF
5567           fi ;;
5568         esac
5569       fi
5570       break
5571     fi
5572   done
5573   IFS="$lt_save_ifs"
5574   MAGIC_CMD="$lt_save_MAGIC_CMD"
5575   ;;
5576 esac
5577 fi
5578
5579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5580 if test -n "$MAGIC_CMD"; then
5581   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5582 echo "${ECHO_T}$MAGIC_CMD" >&6
5583 else
5584   echo "$as_me:$LINENO: result: no" >&5
5585 echo "${ECHO_T}no" >&6
5586 fi
5587
5588 if test -z "$lt_cv_path_MAGIC_CMD"; then
5589   if test -n "$ac_tool_prefix"; then
5590     echo "$as_me:$LINENO: checking for file" >&5
5591 echo $ECHO_N "checking for file... $ECHO_C" >&6
5592 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5593   echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595   case $MAGIC_CMD in
5596 [\\/*] |  ?:[\\/]*)
5597   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5598   ;;
5599 *)
5600   lt_save_MAGIC_CMD="$MAGIC_CMD"
5601   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5602   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5603   for ac_dir in $ac_dummy; do
5604     IFS="$lt_save_ifs"
5605     test -z "$ac_dir" && ac_dir=.
5606     if test -f $ac_dir/file; then
5607       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5608       if test -n "$file_magic_test_file"; then
5609         case $deplibs_check_method in
5610         "file_magic "*)
5611           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5612           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5613           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5614             $EGREP "$file_magic_regex" > /dev/null; then
5615             :
5616           else
5617             cat <<EOF 1>&2
5618
5619 *** Warning: the command libtool uses to detect shared libraries,
5620 *** $file_magic_cmd, produces output that libtool cannot recognize.
5621 *** The result is that libtool may fail to recognize shared libraries
5622 *** as such.  This will affect the creation of libtool libraries that
5623 *** depend on shared libraries, but programs linked with such libtool
5624 *** libraries will work regardless of this problem.  Nevertheless, you
5625 *** may want to report the problem to your system manager and/or to
5626 *** bug-libtool@gnu.org
5627
5628 EOF
5629           fi ;;
5630         esac
5631       fi
5632       break
5633     fi
5634   done
5635   IFS="$lt_save_ifs"
5636   MAGIC_CMD="$lt_save_MAGIC_CMD"
5637   ;;
5638 esac
5639 fi
5640
5641 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5642 if test -n "$MAGIC_CMD"; then
5643   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5644 echo "${ECHO_T}$MAGIC_CMD" >&6
5645 else
5646   echo "$as_me:$LINENO: result: no" >&5
5647 echo "${ECHO_T}no" >&6
5648 fi
5649
5650   else
5651     MAGIC_CMD=:
5652   fi
5653 fi
5654
5655   fi
5656   ;;
5657 esac
5658
5659 enable_dlopen=yes
5660 enable_win32_dll=no
5661
5662 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5663 if test "${enable_libtool_lock+set}" = set; then
5664   enableval="$enable_libtool_lock"
5665
5666 fi;
5667 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5668
5669
5670 # Check whether --with-pic or --without-pic was given.
5671 if test "${with_pic+set}" = set; then
5672   withval="$with_pic"
5673   pic_mode="$withval"
5674 else
5675   pic_mode=default
5676 fi;
5677 test -z "$pic_mode" && pic_mode=default
5678
5679 # Use C for the default configuration in the libtool script
5680 tagname=
5681 lt_save_CC="$CC"
5682 ac_ext=c
5683 ac_cpp='$CPP $CPPFLAGS'
5684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5687
5688
5689 # Source file extension for C test sources.
5690 ac_ext=c
5691
5692 # Object file extension for compiled C test sources.
5693 objext=o
5694 objext=$objext
5695
5696 # Code to be used in simple compile tests
5697 lt_simple_compile_test_code="int some_variable = 0;\n"
5698
5699 # Code to be used in simple link tests
5700 lt_simple_link_test_code='int main(){return(0);}\n'
5701
5702
5703 # If no C compiler was specified, use CC.
5704 LTCC=${LTCC-"$CC"}
5705
5706 # Allow CC to be a program name with arguments.
5707 compiler=$CC
5708
5709
5710 #
5711 # Check for any special shared library compilation flags.
5712 #
5713 lt_prog_cc_shlib=
5714 if test "$GCC" = no; then
5715   case $host_os in
5716   sco3.2v5*)
5717     lt_prog_cc_shlib='-belf'
5718     ;;
5719   esac
5720 fi
5721 if test -n "$lt_prog_cc_shlib"; then
5722   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5723 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5724   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5725   else
5726     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5727 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5728     lt_cv_prog_cc_can_build_shared=no
5729   fi
5730 fi
5731
5732
5733 #
5734 # Check to make sure the static flag actually works.
5735 #
5736 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5737 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5738 if test "${lt_prog_compiler_static_works+set}" = set; then
5739   echo $ECHO_N "(cached) $ECHO_C" >&6
5740 else
5741   lt_prog_compiler_static_works=no
5742    save_LDFLAGS="$LDFLAGS"
5743    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5744    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5745    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5746      # The compiler can only warn and ignore the option if not recognized
5747      # So say no if there are warnings
5748      if test -s conftest.err; then
5749        # Append any errors to the config.log.
5750        cat conftest.err 1>&5
5751      else
5752        lt_prog_compiler_static_works=yes
5753      fi
5754    fi
5755    $rm conftest*
5756    LDFLAGS="$save_LDFLAGS"
5757
5758 fi
5759 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5760 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5761
5762 if test x"$lt_prog_compiler_static_works" = xyes; then
5763     :
5764 else
5765     lt_prog_compiler_static=
5766 fi
5767
5768
5769
5770
5771 lt_prog_compiler_no_builtin_flag=
5772
5773 if test "$GCC" = yes; then
5774   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5775
5776
5777 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5778 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5779 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5780   echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782   lt_cv_prog_compiler_rtti_exceptions=no
5783   ac_outfile=conftest.$ac_objext
5784    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5785    lt_compiler_flag="-fno-rtti -fno-exceptions"
5786    # Insert the option either (1) after the last *FLAGS variable, or
5787    # (2) before a word containing "conftest.", or (3) at the end.
5788    # Note that $ac_compile itself does not contain backslashes and begins
5789    # with a dollar sign (not a hyphen), so the echo should work correctly.
5790    # The option is referenced via a variable to avoid confusing sed.
5791    lt_compile=`echo "$ac_compile" | $SED \
5792    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5793    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5794    -e 's:$: $lt_compiler_flag:'`
5795    (eval echo "\"\$as_me:5795: $lt_compile\"" >&5)
5796    (eval "$lt_compile" 2>conftest.err)
5797    ac_status=$?
5798    cat conftest.err >&5
5799    echo "$as_me:5799: \$? = $ac_status" >&5
5800    if (exit $ac_status) && test -s "$ac_outfile"; then
5801      # The compiler can only warn and ignore the option if not recognized
5802      # So say no if there are warnings
5803      if test ! -s conftest.err; then
5804        lt_cv_prog_compiler_rtti_exceptions=yes
5805      fi
5806    fi
5807    $rm conftest*
5808
5809 fi
5810 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5811 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5812
5813 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5814     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5815 else
5816     :
5817 fi
5818
5819 fi
5820
5821 lt_prog_compiler_wl=
5822 lt_prog_compiler_pic=
5823 lt_prog_compiler_static=
5824
5825 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5826 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5827
5828   if test "$GCC" = yes; then
5829     lt_prog_compiler_wl='-Wl,'
5830     lt_prog_compiler_static='-static'
5831
5832     case $host_os in
5833       aix*)
5834       # All AIX code is PIC.
5835       if test "$host_cpu" = ia64; then
5836         # AIX 5 now supports IA64 processor
5837         lt_prog_compiler_static='-Bstatic'
5838       fi
5839       ;;
5840
5841     amigaos*)
5842       # FIXME: we need at least 68020 code to build shared libraries, but
5843       # adding the `-m68020' flag to GCC prevents building anything better,
5844       # like `-m68040'.
5845       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5846       ;;
5847
5848     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5849       # PIC is the default for these OSes.
5850       ;;
5851
5852     mingw* | pw32* | os2*)
5853       # This hack is so that the source file can tell whether it is being
5854       # built for inclusion in a dll (and should export symbols for example).
5855       lt_prog_compiler_pic='-DDLL_EXPORT'
5856       ;;
5857
5858     darwin* | rhapsody*)
5859       # PIC is the default on this platform
5860       # Common symbols not allowed in MH_DYLIB files
5861       lt_prog_compiler_pic='-fno-common'
5862       ;;
5863
5864     msdosdjgpp*)
5865       # Just because we use GCC doesn't mean we suddenly get shared libraries
5866       # on systems that don't support them.
5867       lt_prog_compiler_can_build_shared=no
5868       enable_shared=no
5869       ;;
5870
5871     sysv4*MP*)
5872       if test -d /usr/nec; then
5873         lt_prog_compiler_pic=-Kconform_pic
5874       fi
5875       ;;
5876
5877     hpux*)
5878       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5879       # not for PA HP-UX.
5880       case "$host_cpu" in
5881       hppa*64*|ia64*)
5882         # +Z the default
5883         ;;
5884       *)
5885         lt_prog_compiler_pic='-fPIC'
5886         ;;
5887       esac
5888       ;;
5889
5890     *)
5891       lt_prog_compiler_pic='-fPIC'
5892       ;;
5893     esac
5894   else
5895     # PORTME Check for flag to pass linker flags through the system compiler.
5896     case $host_os in
5897     aix*)
5898       lt_prog_compiler_wl='-Wl,'
5899       if test "$host_cpu" = ia64; then
5900         # AIX 5 now supports IA64 processor
5901         lt_prog_compiler_static='-Bstatic'
5902       else
5903         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5904       fi
5905       ;;
5906
5907     mingw* | pw32* | os2*)
5908       # This hack is so that the source file can tell whether it is being
5909       # built for inclusion in a dll (and should export symbols for example).
5910       lt_prog_compiler_pic='-DDLL_EXPORT'
5911       ;;
5912
5913     hpux9* | hpux10* | hpux11*)
5914       lt_prog_compiler_wl='-Wl,'
5915       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5916       # not for PA HP-UX.
5917       case "$host_cpu" in
5918       hppa*64*|ia64*)
5919         # +Z the default
5920         ;;
5921       *)
5922         lt_prog_compiler_pic='+Z'
5923         ;;
5924       esac
5925       # Is there a better lt_prog_compiler_static that works with the bundled CC?
5926       lt_prog_compiler_static='${wl}-a ${wl}archive'
5927       ;;
5928
5929     irix5* | irix6* | nonstopux*)
5930       lt_prog_compiler_wl='-Wl,'
5931       # PIC (with -KPIC) is the default.
5932       lt_prog_compiler_static='-non_shared'
5933       ;;
5934
5935     newsos6)
5936       lt_prog_compiler_pic='-KPIC'
5937       lt_prog_compiler_static='-Bstatic'
5938       ;;
5939
5940     linux*)
5941       case $CC in
5942       icc* | ecc*)
5943         lt_prog_compiler_wl='-Wl,'
5944         lt_prog_compiler_pic='-KPIC'
5945         lt_prog_compiler_static='-static'
5946         ;;
5947       ccc*)
5948         lt_prog_compiler_wl='-Wl,'
5949         # All Alpha code is PIC.
5950         lt_prog_compiler_static='-non_shared'
5951         ;;
5952       esac
5953       ;;
5954
5955     osf3* | osf4* | osf5*)
5956       lt_prog_compiler_wl='-Wl,'
5957       # All OSF/1 code is PIC.
5958       lt_prog_compiler_static='-non_shared'
5959       ;;
5960
5961     sco3.2v5*)
5962       lt_prog_compiler_pic='-Kpic'
5963       lt_prog_compiler_static='-dn'
5964       ;;
5965
5966     solaris*)
5967       lt_prog_compiler_wl='-Wl,'
5968       lt_prog_compiler_pic='-KPIC'
5969       lt_prog_compiler_static='-Bstatic'
5970       ;;
5971
5972     sunos4*)
5973       lt_prog_compiler_wl='-Qoption ld '
5974       lt_prog_compiler_pic='-PIC'
5975       lt_prog_compiler_static='-Bstatic'
5976       ;;
5977
5978     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5979       lt_prog_compiler_wl='-Wl,'
5980       lt_prog_compiler_pic='-KPIC'
5981       lt_prog_compiler_static='-Bstatic'
5982       ;;
5983
5984     sysv4*MP*)
5985       if test -d /usr/nec ;then
5986         lt_prog_compiler_pic='-Kconform_pic'
5987         lt_prog_compiler_static='-Bstatic'
5988       fi
5989       ;;
5990
5991     uts4*)
5992       lt_prog_compiler_pic='-pic'
5993       lt_prog_compiler_static='-Bstatic'
5994       ;;
5995
5996     *)
5997       lt_prog_compiler_can_build_shared=no
5998       ;;
5999     esac
6000   fi
6001
6002 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6003 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6004
6005 #
6006 # Check to make sure the PIC flag actually works.
6007 #
6008 if test -n "$lt_prog_compiler_pic"; then
6009
6010 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6011 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6012 if test "${lt_prog_compiler_pic_works+set}" = set; then
6013   echo $ECHO_N "(cached) $ECHO_C" >&6
6014 else
6015   lt_prog_compiler_pic_works=no
6016   ac_outfile=conftest.$ac_objext
6017    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6018    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6019    # Insert the option either (1) after the last *FLAGS variable, or
6020    # (2) before a word containing "conftest.", or (3) at the end.
6021    # Note that $ac_compile itself does not contain backslashes and begins
6022    # with a dollar sign (not a hyphen), so the echo should work correctly.
6023    # The option is referenced via a variable to avoid confusing sed.
6024    lt_compile=`echo "$ac_compile" | $SED \
6025    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6026    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6027    -e 's:$: $lt_compiler_flag:'`
6028    (eval echo "\"\$as_me:6028: $lt_compile\"" >&5)
6029    (eval "$lt_compile" 2>conftest.err)
6030    ac_status=$?
6031    cat conftest.err >&5
6032    echo "$as_me:6032: \$? = $ac_status" >&5
6033    if (exit $ac_status) && test -s "$ac_outfile"; then
6034      # The compiler can only warn and ignore the option if not recognized
6035      # So say no if there are warnings
6036      if test ! -s conftest.err; then
6037        lt_prog_compiler_pic_works=yes
6038      fi
6039    fi
6040    $rm conftest*
6041
6042 fi
6043 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6044 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6045
6046 if test x"$lt_prog_compiler_pic_works" = xyes; then
6047     case $lt_prog_compiler_pic in
6048      "" | " "*) ;;
6049      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6050      esac
6051 else
6052     lt_prog_compiler_pic=
6053      lt_prog_compiler_can_build_shared=no
6054 fi
6055
6056 fi
6057 case "$host_os" in
6058   # For platforms which do not support PIC, -DPIC is meaningless:
6059   *djgpp*)
6060     lt_prog_compiler_pic=
6061     ;;
6062   *)
6063     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6064     ;;
6065 esac
6066
6067 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6068 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6069 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6070   echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072   lt_cv_prog_compiler_c_o=no
6073    $rm -r conftest 2>/dev/null
6074    mkdir conftest
6075    cd conftest
6076    mkdir out
6077    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6078
6079    lt_compiler_flag="-o out/conftest2.$ac_objext"
6080    # Insert the option either (1) after the last *FLAGS variable, or
6081    # (2) before a word containing "conftest.", or (3) at the end.
6082    # Note that $ac_compile itself does not contain backslashes and begins
6083    # with a dollar sign (not a hyphen), so the echo should work correctly.
6084    lt_compile=`echo "$ac_compile" | $SED \
6085    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6086    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6087    -e 's:$: $lt_compiler_flag:'`
6088    (eval echo "\"\$as_me:6088: $lt_compile\"" >&5)
6089    (eval "$lt_compile" 2>out/conftest.err)
6090    ac_status=$?
6091    cat out/conftest.err >&5
6092    echo "$as_me:6092: \$? = $ac_status" >&5
6093    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6094    then
6095      # The compiler can only warn and ignore the option if not recognized
6096      # So say no if there are warnings
6097      if test ! -s out/conftest.err; then
6098        lt_cv_prog_compiler_c_o=yes
6099      fi
6100    fi
6101    chmod u+w .
6102    $rm conftest*
6103    # SGI C++ compiler will create directory out/ii_files/ for
6104    # template instantiation
6105    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6106    $rm out/* && rmdir out
6107    cd ..
6108    rmdir conftest
6109    $rm conftest*
6110
6111 fi
6112 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6113 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6114
6115
6116 hard_links="nottested"
6117 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6118   # do not overwrite the value of need_locks provided by the user
6119   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6120 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6121   hard_links=yes
6122   $rm conftest*
6123   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6124   touch conftest.a
6125   ln conftest.a conftest.b 2>&5 || hard_links=no
6126   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6127   echo "$as_me:$LINENO: result: $hard_links" >&5
6128 echo "${ECHO_T}$hard_links" >&6
6129   if test "$hard_links" = no; then
6130     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6131 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6132     need_locks=warn
6133   fi
6134 else
6135   need_locks=no
6136 fi
6137
6138 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6139 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6140
6141   runpath_var=
6142   allow_undefined_flag=
6143   enable_shared_with_static_runtimes=no
6144   archive_cmds=
6145   archive_expsym_cmds=
6146   old_archive_From_new_cmds=
6147   old_archive_from_expsyms_cmds=
6148   export_dynamic_flag_spec=
6149   whole_archive_flag_spec=
6150   thread_safe_flag_spec=
6151   hardcode_libdir_flag_spec=
6152   hardcode_libdir_flag_spec_ld=
6153   hardcode_libdir_separator=
6154   hardcode_direct=no
6155   hardcode_minus_L=no
6156   hardcode_shlibpath_var=unsupported
6157   link_all_deplibs=unknown
6158   hardcode_automatic=no
6159   module_cmds=
6160   module_expsym_cmds=
6161   always_export_symbols=no
6162   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6163   # include_expsyms should be a list of space-separated symbols to be *always*
6164   # included in the symbol list
6165   include_expsyms=
6166   # exclude_expsyms can be an extended regexp of symbols to exclude
6167   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6168   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6169   # as well as any symbol that contains `d'.
6170   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6171   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6172   # platforms (ab)use it in PIC code, but their linkers get confused if
6173   # the symbol is explicitly referenced.  Since portable code cannot
6174   # rely on this symbol name, it's probably fine to never include it in
6175   # preloaded symbol tables.
6176   extract_expsyms_cmds=
6177
6178   case $host_os in
6179   cygwin* | mingw* | pw32*)
6180     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6181     # When not using gcc, we currently assume that we are using
6182     # Microsoft Visual C++.
6183     if test "$GCC" != yes; then
6184       with_gnu_ld=no
6185     fi
6186     ;;
6187   openbsd*)
6188     with_gnu_ld=no
6189     ;;
6190   esac
6191
6192   ld_shlibs=yes
6193   if test "$with_gnu_ld" = yes; then
6194     # If archive_cmds runs LD, not CC, wlarc should be empty
6195     wlarc='${wl}'
6196
6197     # See if GNU ld supports shared libraries.
6198     case $host_os in
6199     aix3* | aix4* | aix5*)
6200       # On AIX/PPC, the GNU linker is very broken
6201       if test "$host_cpu" != ia64; then
6202         ld_shlibs=no
6203         cat <<EOF 1>&2
6204
6205 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6206 *** to be unable to reliably create shared libraries on AIX.
6207 *** Therefore, libtool is disabling shared libraries support.  If you
6208 *** really care for shared libraries, you may want to modify your PATH
6209 *** so that a non-GNU linker is found, and then restart.
6210
6211 EOF
6212       fi
6213       ;;
6214
6215     amigaos*)
6216       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)'
6217       hardcode_libdir_flag_spec='-L$libdir'
6218       hardcode_minus_L=yes
6219
6220       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6221       # that the semantics of dynamic libraries on AmigaOS, at least up
6222       # to version 4, is to share data among multiple programs linked
6223       # with the same dynamic library.  Since this doesn't match the
6224       # behavior of shared libraries on other platforms, we can't use
6225       # them.
6226       ld_shlibs=no
6227       ;;
6228
6229     beos*)
6230       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6231         allow_undefined_flag=unsupported
6232         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6233         # support --undefined.  This deserves some investigation.  FIXME
6234         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6235       else
6236         ld_shlibs=no
6237       fi
6238       ;;
6239
6240     cygwin* | mingw* | pw32*)
6241       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6242       # as there is no search path for DLLs.
6243       hardcode_libdir_flag_spec='-L$libdir'
6244       allow_undefined_flag=unsupported
6245       always_export_symbols=no
6246       enable_shared_with_static_runtimes=yes
6247       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6248
6249       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6250         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6251         # If the export-symbols file already is a .def file (1st line
6252         # is EXPORTS), use it as is; otherwise, prepend...
6253         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6254           cp $export_symbols $output_objdir/$soname.def;
6255         else
6256           echo EXPORTS > $output_objdir/$soname.def;
6257           cat $export_symbols >> $output_objdir/$soname.def;
6258         fi~
6259         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6260       else
6261         ld_shlibs=no
6262       fi
6263       ;;
6264
6265     netbsd* | knetbsd*-gnu)
6266       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6267         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6268         wlarc=
6269       else
6270         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6271         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6272       fi
6273       ;;
6274
6275     solaris* | sysv5*)
6276       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6277         ld_shlibs=no
6278         cat <<EOF 1>&2
6279
6280 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6281 *** create shared libraries on Solaris systems.  Therefore, libtool
6282 *** is disabling shared libraries support.  We urge you to upgrade GNU
6283 *** binutils to release 2.9.1 or newer.  Another option is to modify
6284 *** your PATH or compiler configuration so that the native linker is
6285 *** used, and then restart.
6286
6287 EOF
6288       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6289         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6290         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6291       else
6292         ld_shlibs=no
6293       fi
6294       ;;
6295
6296     sunos4*)
6297       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6298       wlarc=
6299       hardcode_direct=yes
6300       hardcode_shlibpath_var=no
6301       ;;
6302
6303   linux*)
6304     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6305         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6306         archive_cmds="$tmp_archive_cmds"
6307       supports_anon_versioning=no
6308       case `$LD -v 2>/dev/null` in
6309         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6310         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6311         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6312         *\ 2.11.*) ;; # other 2.11 versions
6313         *) supports_anon_versioning=yes ;;
6314       esac
6315       if test $supports_anon_versioning = yes; then
6316         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6317 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6318 $echo "local: *; };" >> $output_objdir/$libname.ver~
6319         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6320       else
6321         archive_expsym_cmds="$tmp_archive_cmds"
6322       fi
6323       link_all_deplibs=no
6324     else
6325       ld_shlibs=no
6326     fi
6327     ;;
6328
6329     *)
6330       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6331         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6332         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6333       else
6334         ld_shlibs=no
6335       fi
6336       ;;
6337     esac
6338
6339     if test "$ld_shlibs" = yes; then
6340       runpath_var=LD_RUN_PATH
6341       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6342       export_dynamic_flag_spec='${wl}--export-dynamic'
6343       # ancient GNU ld didn't support --whole-archive et. al.
6344       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6345         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6346       else
6347         whole_archive_flag_spec=
6348       fi
6349     fi
6350   else
6351     # PORTME fill in a description of your system's linker (not GNU ld)
6352     case $host_os in
6353     aix3*)
6354       allow_undefined_flag=unsupported
6355       always_export_symbols=yes
6356       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'
6357       # Note: this linker hardcodes the directories in LIBPATH if there
6358       # are no directories specified by -L.
6359       hardcode_minus_L=yes
6360       if test "$GCC" = yes && test -z "$link_static_flag"; then
6361         # Neither direct hardcoding nor static linking is supported with a
6362         # broken collect2.
6363         hardcode_direct=unsupported
6364       fi
6365       ;;
6366
6367     aix4* | aix5*)
6368       if test "$host_cpu" = ia64; then
6369         # On IA64, the linker does run time linking by default, so we don't
6370         # have to do anything special.
6371         aix_use_runtimelinking=no
6372         exp_sym_flag='-Bexport'
6373         no_entry_flag=""
6374       else
6375         # If we're using GNU nm, then we don't want the "-C" option.
6376         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6377         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6378           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'
6379         else
6380           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'
6381         fi
6382         aix_use_runtimelinking=no
6383
6384         # Test if we are trying to use run time linking or normal
6385         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6386         # need to do runtime linking.
6387         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6388           for ld_flag in $LDFLAGS; do
6389           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6390             aix_use_runtimelinking=yes
6391             break
6392           fi
6393           done
6394         esac
6395
6396         exp_sym_flag='-bexport'
6397         no_entry_flag='-bnoentry'
6398       fi
6399
6400       # When large executables or shared objects are built, AIX ld can
6401       # have problems creating the table of contents.  If linking a library
6402       # or program results in "error TOC overflow" add -mminimal-toc to
6403       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6404       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6405
6406       archive_cmds=''
6407       hardcode_direct=yes
6408       hardcode_libdir_separator=':'
6409       link_all_deplibs=yes
6410
6411       if test "$GCC" = yes; then
6412         case $host_os in aix4.012|aix4.012.*)
6413         # We only want to do this on AIX 4.2 and lower, the check
6414         # below for broken collect2 doesn't work under 4.3+
6415           collect2name=`${CC} -print-prog-name=collect2`
6416           if test -f "$collect2name" && \
6417            strings "$collect2name" | grep resolve_lib_name >/dev/null
6418           then
6419           # We have reworked collect2
6420           hardcode_direct=yes
6421           else
6422           # We have old collect2
6423           hardcode_direct=unsupported
6424           # It fails to find uninstalled libraries when the uninstalled
6425           # path is not listed in the libpath.  Setting hardcode_minus_L
6426           # to unsupported forces relinking
6427           hardcode_minus_L=yes
6428           hardcode_libdir_flag_spec='-L$libdir'
6429           hardcode_libdir_separator=
6430           fi
6431         esac
6432         shared_flag='-shared'
6433       else
6434         # not using gcc
6435         if test "$host_cpu" = ia64; then
6436         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6437         # chokes on -Wl,-G. The following line is correct:
6438           shared_flag='-G'
6439         else
6440         if test "$aix_use_runtimelinking" = yes; then
6441             shared_flag='${wl}-G'
6442           else
6443             shared_flag='${wl}-bM:SRE'
6444         fi
6445         fi
6446       fi
6447
6448       # It seems that -bexpall does not export symbols beginning with
6449       # underscore (_), so it is better to generate a list of symbols to export.
6450       always_export_symbols=yes
6451       if test "$aix_use_runtimelinking" = yes; then
6452         # Warning - without using the other runtime loading flags (-brtl),
6453         # -berok will link without error, but may produce a broken library.
6454         allow_undefined_flag='-berok'
6455        # Determine the default libpath from the value encoded in an empty executable.
6456        cat >conftest.$ac_ext <<_ACEOF
6457 #line $LINENO "configure"
6458 /* confdefs.h.  */
6459 _ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h.  */
6463
6464 int
6465 main ()
6466 {
6467
6468   ;
6469   return 0;
6470 }
6471 _ACEOF
6472 rm -f conftest.$ac_objext conftest$ac_exeext
6473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6474   (eval $ac_link) 2>&5
6475   ac_status=$?
6476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477   (exit $ac_status); } &&
6478          { ac_try='test -s conftest$ac_exeext'
6479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480   (eval $ac_try) 2>&5
6481   ac_status=$?
6482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483   (exit $ac_status); }; }; then
6484
6485 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6486 }'`
6487 # Check for a 64-bit object if we didn't find anything.
6488 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; }
6489 }'`; fi
6490 else
6491   echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6493
6494 fi
6495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6497
6498        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6499         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"
6500        else
6501         if test "$host_cpu" = ia64; then
6502           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6503           allow_undefined_flag="-z nodefs"
6504           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"
6505         else
6506          # Determine the default libpath from the value encoded in an empty executable.
6507          cat >conftest.$ac_ext <<_ACEOF
6508 #line $LINENO "configure"
6509 /* confdefs.h.  */
6510 _ACEOF
6511 cat confdefs.h >>conftest.$ac_ext
6512 cat >>conftest.$ac_ext <<_ACEOF
6513 /* end confdefs.h.  */
6514
6515 int
6516 main ()
6517 {
6518
6519   ;
6520   return 0;
6521 }
6522 _ACEOF
6523 rm -f conftest.$ac_objext conftest$ac_exeext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6525   (eval $ac_link) 2>&5
6526   ac_status=$?
6527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528   (exit $ac_status); } &&
6529          { ac_try='test -s conftest$ac_exeext'
6530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531   (eval $ac_try) 2>&5
6532   ac_status=$?
6533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534   (exit $ac_status); }; }; then
6535
6536 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6537 }'`
6538 # Check for a 64-bit object if we didn't find anything.
6539 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; }
6540 }'`; fi
6541 else
6542   echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6544
6545 fi
6546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6548
6549          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6550           # Warning - without using the other run time loading flags,
6551           # -berok will link without error, but may produce a broken library.
6552           no_undefined_flag=' ${wl}-bernotok'
6553           allow_undefined_flag=' ${wl}-berok'
6554           # -bexpall does not export symbols beginning with underscore (_)
6555           always_export_symbols=yes
6556           # Exported symbols can be pulled into shared objects from archives
6557           whole_archive_flag_spec=' '
6558           archive_cmds_need_lc=yes
6559           # This is similar to how AIX traditionally builds it's shared libraries.
6560           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'
6561         fi
6562       fi
6563       ;;
6564
6565     amigaos*)
6566       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)'
6567       hardcode_libdir_flag_spec='-L$libdir'
6568       hardcode_minus_L=yes
6569       # see comment about different semantics on the GNU ld section
6570       ld_shlibs=no
6571       ;;
6572
6573     bsdi4*)
6574       export_dynamic_flag_spec=-rdynamic
6575       ;;
6576
6577     cygwin* | mingw* | pw32*)
6578       # When not using gcc, we currently assume that we are using
6579       # Microsoft Visual C++.
6580       # hardcode_libdir_flag_spec is actually meaningless, as there is
6581       # no search path for DLLs.
6582       hardcode_libdir_flag_spec=' '
6583       allow_undefined_flag=unsupported
6584       # Tell ltmain to make .lib files, not .a files.
6585       libext=lib
6586       # Tell ltmain to make .dll files, not .so files.
6587       shrext_cmds=".dll"
6588       # FIXME: Setting linknames here is a bad hack.
6589       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6590       # The linker will automatically build a .lib file if we build a DLL.
6591       old_archive_From_new_cmds='true'
6592       # FIXME: Should let the user specify the lib program.
6593       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6594       fix_srcfile_path='`cygpath -w "$srcfile"`'
6595       enable_shared_with_static_runtimes=yes
6596       ;;
6597
6598     darwin* | rhapsody*)
6599     if test "$GXX" = yes ; then
6600       archive_cmds_need_lc=no
6601       case "$host_os" in
6602       rhapsody* | darwin1.[012])
6603         allow_undefined_flag='-undefined suppress'
6604         ;;
6605       *) # Darwin 1.3 on
6606       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6607         allow_undefined_flag='-flat_namespace -undefined suppress'
6608       else
6609         case ${MACOSX_DEPLOYMENT_TARGET} in
6610           10.[012])
6611             allow_undefined_flag='-flat_namespace -undefined suppress'
6612             ;;
6613           10.*)
6614             allow_undefined_flag='-undefined dynamic_lookup'
6615             ;;
6616         esac
6617       fi
6618         ;;
6619       esac
6620         lt_int_apple_cc_single_mod=no
6621         output_verbose_link_cmd='echo'
6622         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6623           lt_int_apple_cc_single_mod=yes
6624         fi
6625         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6626           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6627         else
6628         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'
6629       fi
6630       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6631       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6632         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6633           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}'
6634         else
6635           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}'
6636         fi
6637           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}'
6638       hardcode_direct=no
6639       hardcode_automatic=yes
6640       hardcode_shlibpath_var=unsupported
6641       whole_archive_flag_spec='-all_load $convenience'
6642       link_all_deplibs=yes
6643     else
6644       ld_shlibs=no
6645     fi
6646       ;;
6647
6648     dgux*)
6649       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6650       hardcode_libdir_flag_spec='-L$libdir'
6651       hardcode_shlibpath_var=no
6652       ;;
6653
6654     freebsd1*)
6655       ld_shlibs=no
6656       ;;
6657
6658     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6659     # support.  Future versions do this automatically, but an explicit c++rt0.o
6660     # does not break anything, and helps significantly (at the cost of a little
6661     # extra space).
6662     freebsd2.2*)
6663       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6664       hardcode_libdir_flag_spec='-R$libdir'
6665       hardcode_direct=yes
6666       hardcode_shlibpath_var=no
6667       ;;
6668
6669     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6670     freebsd2*)
6671       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6672       hardcode_direct=yes
6673       hardcode_minus_L=yes
6674       hardcode_shlibpath_var=no
6675       ;;
6676
6677     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6678     freebsd* | kfreebsd*-gnu)
6679       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6680       hardcode_libdir_flag_spec='-R$libdir'
6681       hardcode_direct=yes
6682       hardcode_shlibpath_var=no
6683       ;;
6684
6685     hpux9*)
6686       if test "$GCC" = yes; then
6687         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'
6688       else
6689         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'
6690       fi
6691       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6692       hardcode_libdir_separator=:
6693       hardcode_direct=yes
6694
6695       # hardcode_minus_L: Not really in the search PATH,
6696       # but as the default location of the library.
6697       hardcode_minus_L=yes
6698       export_dynamic_flag_spec='${wl}-E'
6699       ;;
6700
6701     hpux10* | hpux11*)
6702       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6703         case "$host_cpu" in
6704         hppa*64*|ia64*)
6705           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6706           ;;
6707         *)
6708           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6709           ;;
6710         esac
6711       else
6712         case "$host_cpu" in
6713         hppa*64*|ia64*)
6714           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6715           ;;
6716         *)
6717           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6718           ;;
6719         esac
6720       fi
6721       if test "$with_gnu_ld" = no; then
6722         case "$host_cpu" in
6723         hppa*64*)
6724           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6725           hardcode_libdir_flag_spec_ld='+b $libdir'
6726           hardcode_libdir_separator=:
6727           hardcode_direct=no
6728           hardcode_shlibpath_var=no
6729           ;;
6730         ia64*)
6731           hardcode_libdir_flag_spec='-L$libdir'
6732           hardcode_direct=no
6733           hardcode_shlibpath_var=no
6734
6735           # hardcode_minus_L: Not really in the search PATH,
6736           # but as the default location of the library.
6737           hardcode_minus_L=yes
6738           ;;
6739         *)
6740           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6741           hardcode_libdir_separator=:
6742           hardcode_direct=yes
6743           export_dynamic_flag_spec='${wl}-E'
6744
6745           # hardcode_minus_L: Not really in the search PATH,
6746           # but as the default location of the library.
6747           hardcode_minus_L=yes
6748           ;;
6749         esac
6750       fi
6751       ;;
6752
6753     irix5* | irix6* | nonstopux*)
6754       if test "$GCC" = yes; then
6755         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'
6756       else
6757         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'
6758         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6759       fi
6760       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6761       hardcode_libdir_separator=:
6762       link_all_deplibs=yes
6763       ;;
6764
6765     netbsd* | knetbsd*-gnu)
6766       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6767         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6768       else
6769         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6770       fi
6771       hardcode_libdir_flag_spec='-R$libdir'
6772       hardcode_direct=yes
6773       hardcode_shlibpath_var=no
6774       ;;
6775
6776     newsos6)
6777       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6778       hardcode_direct=yes
6779       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6780       hardcode_libdir_separator=:
6781       hardcode_shlibpath_var=no
6782       ;;
6783
6784     openbsd*)
6785       hardcode_direct=yes
6786       hardcode_shlibpath_var=no
6787       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6788         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6789         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6790         export_dynamic_flag_spec='${wl}-E'
6791       else
6792        case $host_os in
6793          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6794            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6795            hardcode_libdir_flag_spec='-R$libdir'
6796            ;;
6797          *)
6798            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6799            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6800            ;;
6801        esac
6802       fi
6803       ;;
6804
6805     os2*)
6806       hardcode_libdir_flag_spec='-L$libdir'
6807       hardcode_minus_L=yes
6808       allow_undefined_flag=unsupported
6809       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'
6810       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6811       ;;
6812
6813     osf3*)
6814       if test "$GCC" = yes; then
6815         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6816         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'
6817       else
6818         allow_undefined_flag=' -expect_unresolved \*'
6819         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'
6820       fi
6821       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6822       hardcode_libdir_separator=:
6823       ;;
6824
6825     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6826       if test "$GCC" = yes; then
6827         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6828         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'
6829         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6830       else
6831         allow_undefined_flag=' -expect_unresolved \*'
6832         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'
6833         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6834         $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'
6835
6836         # Both c and cxx compiler support -rpath directly
6837         hardcode_libdir_flag_spec='-rpath $libdir'
6838       fi
6839       hardcode_libdir_separator=:
6840       ;;
6841
6842     sco3.2v5*)
6843       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6844       hardcode_shlibpath_var=no
6845       export_dynamic_flag_spec='${wl}-Bexport'
6846       runpath_var=LD_RUN_PATH
6847       hardcode_runpath_var=yes
6848       ;;
6849
6850     solaris*)
6851       no_undefined_flag=' -z text'
6852       if test "$GCC" = yes; then
6853         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6854         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6855           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6856       else
6857         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6858         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6859         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6860       fi
6861       hardcode_libdir_flag_spec='-R$libdir'
6862       hardcode_shlibpath_var=no
6863       case $host_os in
6864       solaris2.[0-5] | solaris2.[0-5].*) ;;
6865       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6866         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6867       esac
6868       link_all_deplibs=yes
6869       ;;
6870
6871     sunos4*)
6872       if test "x$host_vendor" = xsequent; then
6873         # Use $CC to link under sequent, because it throws in some extra .o
6874         # files that make .init and .fini sections work.
6875         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6876       else
6877         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6878       fi
6879       hardcode_libdir_flag_spec='-L$libdir'
6880       hardcode_direct=yes
6881       hardcode_minus_L=yes
6882       hardcode_shlibpath_var=no
6883       ;;
6884
6885     sysv4)
6886       case $host_vendor in
6887         sni)
6888           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6889           hardcode_direct=yes # is this really true???
6890         ;;
6891         siemens)
6892           ## LD is ld it makes a PLAMLIB
6893           ## CC just makes a GrossModule.
6894           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6895           reload_cmds='$CC -r -o $output$reload_objs'
6896           hardcode_direct=no
6897         ;;
6898         motorola)
6899           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6900           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6901         ;;
6902       esac
6903       runpath_var='LD_RUN_PATH'
6904       hardcode_shlibpath_var=no
6905       ;;
6906
6907     sysv4.3*)
6908       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6909       hardcode_shlibpath_var=no
6910       export_dynamic_flag_spec='-Bexport'
6911       ;;
6912
6913     sysv4*MP*)
6914       if test -d /usr/nec; then
6915         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6916         hardcode_shlibpath_var=no
6917         runpath_var=LD_RUN_PATH
6918         hardcode_runpath_var=yes
6919         ld_shlibs=yes
6920       fi
6921       ;;
6922
6923     sysv4.2uw2*)
6924       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6925       hardcode_direct=yes
6926       hardcode_minus_L=no
6927       hardcode_shlibpath_var=no
6928       hardcode_runpath_var=yes
6929       runpath_var=LD_RUN_PATH
6930       ;;
6931
6932    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
6933       no_undefined_flag='${wl}-z ${wl}text'
6934       if test "$GCC" = yes; then
6935         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6936       else
6937         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6938       fi
6939       runpath_var='LD_RUN_PATH'
6940       hardcode_shlibpath_var=no
6941       ;;
6942
6943     sysv5*)
6944       no_undefined_flag=' -z text'
6945       # $CC -shared without GNU ld will not create a library from C++
6946       # object files and a static libstdc++, better avoid it by now
6947       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6948       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6949                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6950       hardcode_libdir_flag_spec=
6951       hardcode_shlibpath_var=no
6952       runpath_var='LD_RUN_PATH'
6953       ;;
6954
6955     uts4*)
6956       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6957       hardcode_libdir_flag_spec='-L$libdir'
6958       hardcode_shlibpath_var=no
6959       ;;
6960
6961     *)
6962       ld_shlibs=no
6963       ;;
6964     esac
6965   fi
6966
6967 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6968 echo "${ECHO_T}$ld_shlibs" >&6
6969 test "$ld_shlibs" = no && can_build_shared=no
6970
6971 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6972 if test "$GCC" = yes; then
6973   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6974 fi
6975
6976 #
6977 # Do we need to explicitly link libc?
6978 #
6979 case "x$archive_cmds_need_lc" in
6980 x|xyes)
6981   # Assume -lc should be added
6982   archive_cmds_need_lc=yes
6983
6984   if test "$enable_shared" = yes && test "$GCC" = yes; then
6985     case $archive_cmds in
6986     *'~'*)
6987       # FIXME: we may have to deal with multi-command sequences.
6988       ;;
6989     '$CC '*)
6990       # Test whether the compiler implicitly links with -lc since on some
6991       # systems, -lgcc has to come before -lc. If gcc already passes -lc
6992       # to ld, don't add -lc before -lgcc.
6993       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6994 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6995       $rm conftest*
6996       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6997
6998       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6999   (eval $ac_compile) 2>&5
7000   ac_status=$?
7001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002   (exit $ac_status); } 2>conftest.err; then
7003         soname=conftest
7004         lib=conftest
7005         libobjs=conftest.$ac_objext
7006         deplibs=
7007         wl=$lt_prog_compiler_wl
7008         compiler_flags=-v
7009         linker_flags=-v
7010         verstring=
7011         output_objdir=.
7012         libname=conftest
7013         lt_save_allow_undefined_flag=$allow_undefined_flag
7014         allow_undefined_flag=
7015         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7016   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7017   ac_status=$?
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); }
7020         then
7021           archive_cmds_need_lc=no
7022         else
7023           archive_cmds_need_lc=yes
7024         fi
7025         allow_undefined_flag=$lt_save_allow_undefined_flag
7026       else
7027         cat conftest.err 1>&5
7028       fi
7029       $rm conftest*
7030       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7031 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7032       ;;
7033     esac
7034   fi
7035   ;;
7036 esac
7037
7038 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7039 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7040 library_names_spec=
7041 libname_spec='lib$name'
7042 soname_spec=
7043 shrext_cmds=".so"
7044 postinstall_cmds=
7045 postuninstall_cmds=
7046 finish_cmds=
7047 finish_eval=
7048 shlibpath_var=
7049 shlibpath_overrides_runpath=unknown
7050 version_type=none
7051 dynamic_linker="$host_os ld.so"
7052 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7053 if test "$GCC" = yes; then
7054   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7055   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7056     # if the path contains ";" then we assume it to be the separator
7057     # otherwise default to the standard path separator (i.e. ":") - it is
7058     # assumed that no part of a normal pathname contains ";" but that should
7059     # okay in the real world where ";" in dirpaths is itself problematic.
7060     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7061   else
7062     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7063   fi
7064 else
7065   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7066 fi
7067 need_lib_prefix=unknown
7068 hardcode_into_libs=no
7069
7070 # when you set need_version to no, make sure it does not cause -set_version
7071 # flags to be left without arguments
7072 need_version=unknown
7073
7074 case $host_os in
7075 aix3*)
7076   version_type=linux
7077   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7078   shlibpath_var=LIBPATH
7079
7080   # AIX 3 has no versioning support, so we append a major version to the name.
7081   soname_spec='${libname}${release}${shared_ext}$major'
7082   ;;
7083
7084 aix4* | aix5*)
7085   version_type=linux
7086   need_lib_prefix=no
7087   need_version=no
7088   hardcode_into_libs=yes
7089   if test "$host_cpu" = ia64; then
7090     # AIX 5 supports IA64
7091     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7092     shlibpath_var=LD_LIBRARY_PATH
7093   else
7094     # With GCC up to 2.95.x, collect2 would create an import file
7095     # for dependence libraries.  The import file would start with
7096     # the line `#! .'.  This would cause the generated library to
7097     # depend on `.', always an invalid library.  This was fixed in
7098     # development snapshots of GCC prior to 3.0.
7099     case $host_os in
7100       aix4 | aix4.[01] | aix4.[01].*)
7101       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7102            echo ' yes '
7103            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7104         :
7105       else
7106         can_build_shared=no
7107       fi
7108       ;;
7109     esac
7110     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7111     # soname into executable. Probably we can add versioning support to
7112     # collect2, so additional links can be useful in future.
7113     if test "$aix_use_runtimelinking" = yes; then
7114       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7115       # instead of lib<name>.a to let people know that these are not
7116       # typical AIX shared libraries.
7117       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7118     else
7119       # We preserve .a as extension for shared libraries through AIX4.2
7120       # and later when we are not doing run time linking.
7121       library_names_spec='${libname}${release}.a $libname.a'
7122       soname_spec='${libname}${release}${shared_ext}$major'
7123     fi
7124     shlibpath_var=LIBPATH
7125   fi
7126   ;;
7127
7128 amigaos*)
7129   library_names_spec='$libname.ixlibrary $libname.a'
7130   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7131   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'
7132   ;;
7133
7134 beos*)
7135   library_names_spec='${libname}${shared_ext}'
7136   dynamic_linker="$host_os ld.so"
7137   shlibpath_var=LIBRARY_PATH
7138   ;;
7139
7140 bsdi4*)
7141   version_type=linux
7142   need_version=no
7143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7144   soname_spec='${libname}${release}${shared_ext}$major'
7145   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7146   shlibpath_var=LD_LIBRARY_PATH
7147   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7148   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7149   # the default ld.so.conf also contains /usr/contrib/lib and
7150   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7151   # libtool to hard-code these into programs
7152   ;;
7153
7154 cygwin* | mingw* | pw32*)
7155   version_type=windows
7156   shrext_cmds=".dll"
7157   need_version=no
7158   need_lib_prefix=no
7159
7160   case $GCC,$host_os in
7161   yes,cygwin* | yes,mingw* | yes,pw32*)
7162     library_names_spec='$libname.dll.a'
7163     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7164     postinstall_cmds='base_file=`basename \${file}`~
7165       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7166       dldir=$destdir/`dirname \$dlpath`~
7167       test -d \$dldir || mkdir -p \$dldir~
7168       $install_prog $dir/$dlname \$dldir/$dlname'
7169     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7170       dlpath=$dir/\$dldll~
7171        $rm \$dlpath'
7172     shlibpath_overrides_runpath=yes
7173
7174     case $host_os in
7175     cygwin*)
7176       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7177       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7178       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7179       ;;
7180     mingw*)
7181       # MinGW DLLs use traditional 'lib' prefix
7182       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7183       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7184       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7185         # It is most probably a Windows format PATH printed by
7186         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7187         # path with ; separators, and with drive letters. We can handle the
7188         # drive letters (cygwin fileutils understands them), so leave them,
7189         # especially as we might pass files found there to a mingw objdump,
7190         # which wouldn't understand a cygwinified path. Ahh.
7191         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7192       else
7193         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7194       fi
7195       ;;
7196     pw32*)
7197       # pw32 DLLs use 'pw' prefix rather than 'lib'
7198       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7199       ;;
7200     esac
7201     ;;
7202
7203   *)
7204     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7205     ;;
7206   esac
7207   dynamic_linker='Win32 ld.exe'
7208   # FIXME: first we should search . and the directory the executable is in
7209   shlibpath_var=PATH
7210   ;;
7211
7212 darwin* | rhapsody*)
7213   dynamic_linker="$host_os dyld"
7214   version_type=darwin
7215   need_lib_prefix=no
7216   need_version=no
7217   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7218   soname_spec='${libname}${release}${major}$shared_ext'
7219   shlibpath_overrides_runpath=yes
7220   shlibpath_var=DYLD_LIBRARY_PATH
7221   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7222   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7223   if test "$GCC" = yes; then
7224     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"`
7225   else
7226     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7227   fi
7228   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7229   ;;
7230
7231 dgux*)
7232   version_type=linux
7233   need_lib_prefix=no
7234   need_version=no
7235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7236   soname_spec='${libname}${release}${shared_ext}$major'
7237   shlibpath_var=LD_LIBRARY_PATH
7238   ;;
7239
7240 freebsd1*)
7241   dynamic_linker=no
7242   ;;
7243
7244 kfreebsd*-gnu)
7245   version_type=linux
7246   need_lib_prefix=no
7247   need_version=no
7248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7249   soname_spec='${libname}${release}${shared_ext}$major'
7250   shlibpath_var=LD_LIBRARY_PATH
7251   shlibpath_overrides_runpath=no
7252   hardcode_into_libs=yes
7253   dynamic_linker='GNU ld.so'
7254   ;;
7255
7256 freebsd*)
7257   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7258   version_type=freebsd-$objformat
7259   case $version_type in
7260     freebsd-elf*)
7261       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7262       need_version=no
7263       need_lib_prefix=no
7264       ;;
7265     freebsd-*)
7266       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7267       need_version=yes
7268       ;;
7269   esac
7270   shlibpath_var=LD_LIBRARY_PATH
7271   case $host_os in
7272   freebsd2*)
7273     shlibpath_overrides_runpath=yes
7274     ;;
7275   freebsd3.01* | freebsdelf3.01*)
7276     shlibpath_overrides_runpath=yes
7277     hardcode_into_libs=yes
7278     ;;
7279   *) # from 3.2 on
7280     shlibpath_overrides_runpath=no
7281     hardcode_into_libs=yes
7282     ;;
7283   esac
7284   ;;
7285
7286 gnu*)
7287   version_type=linux
7288   need_lib_prefix=no
7289   need_version=no
7290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7291   soname_spec='${libname}${release}${shared_ext}$major'
7292   shlibpath_var=LD_LIBRARY_PATH
7293   hardcode_into_libs=yes
7294   ;;
7295
7296 hpux9* | hpux10* | hpux11*)
7297   # Give a soname corresponding to the major version so that dld.sl refuses to
7298   # link against other versions.
7299   version_type=sunos
7300   need_lib_prefix=no
7301   need_version=no
7302   case "$host_cpu" in
7303   ia64*)
7304     shrext_cmds='.so'
7305     hardcode_into_libs=yes
7306     dynamic_linker="$host_os dld.so"
7307     shlibpath_var=LD_LIBRARY_PATH
7308     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7309     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7310     soname_spec='${libname}${release}${shared_ext}$major'
7311     if test "X$HPUX_IA64_MODE" = X32; then
7312       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7313     else
7314       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7315     fi
7316     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7317     ;;
7318    hppa*64*)
7319      shrext_cmds='.sl'
7320      hardcode_into_libs=yes
7321      dynamic_linker="$host_os dld.sl"
7322      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7323      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7324      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7325      soname_spec='${libname}${release}${shared_ext}$major'
7326      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7327      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7328      ;;
7329    *)
7330     shrext_cmds='.sl'
7331     dynamic_linker="$host_os dld.sl"
7332     shlibpath_var=SHLIB_PATH
7333     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7334     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7335     soname_spec='${libname}${release}${shared_ext}$major'
7336     ;;
7337   esac
7338   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7339   postinstall_cmds='chmod 555 $lib'
7340   ;;
7341
7342 irix5* | irix6* | nonstopux*)
7343   case $host_os in
7344     nonstopux*) version_type=nonstopux ;;
7345     *)
7346         if test "$lt_cv_prog_gnu_ld" = yes; then
7347                 version_type=linux
7348         else
7349                 version_type=irix
7350         fi ;;
7351   esac
7352   need_lib_prefix=no
7353   need_version=no
7354   soname_spec='${libname}${release}${shared_ext}$major'
7355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7356   case $host_os in
7357   irix5* | nonstopux*)
7358     libsuff= shlibsuff=
7359     ;;
7360   *)
7361     case $LD in # libtool.m4 will add one of these switches to LD
7362     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7363       libsuff= shlibsuff= libmagic=32-bit;;
7364     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7365       libsuff=32 shlibsuff=N32 libmagic=N32;;
7366     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7367       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7368     *) libsuff= shlibsuff= libmagic=never-match;;
7369     esac
7370     ;;
7371   esac
7372   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7373   shlibpath_overrides_runpath=no
7374   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7375   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7376   hardcode_into_libs=yes
7377   ;;
7378
7379 # No shared lib support for Linux oldld, aout, or coff.
7380 linux*oldld* | linux*aout* | linux*coff*)
7381   dynamic_linker=no
7382   ;;
7383
7384 # This must be Linux ELF.
7385 linux*)
7386   version_type=linux
7387   need_lib_prefix=no
7388   need_version=no
7389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7390   soname_spec='${libname}${release}${shared_ext}$major'
7391   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7392   shlibpath_var=LD_LIBRARY_PATH
7393   shlibpath_overrides_runpath=no
7394   # This implies no fast_install, which is unacceptable.
7395   # Some rework will be needed to allow for fast_install
7396   # before this can be enabled.
7397   hardcode_into_libs=yes
7398
7399   # Append ld.so.conf contents to the search path
7400   if test -f /etc/ld.so.conf; then
7401     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7402     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7403   fi
7404
7405   # We used to test for /lib/ld.so.1 and disable shared libraries on
7406   # powerpc, because MkLinux only supported shared libraries with the
7407   # GNU dynamic linker.  Since this was broken with cross compilers,
7408   # most powerpc-linux boxes support dynamic linking these days and
7409   # people can always --disable-shared, the test was removed, and we
7410   # assume the GNU/Linux dynamic linker is in use.
7411   dynamic_linker='GNU/Linux ld.so'
7412   ;;
7413
7414 knetbsd*-gnu)
7415   version_type=linux
7416   need_lib_prefix=no
7417   need_version=no
7418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7419   soname_spec='${libname}${release}${shared_ext}$major'
7420   shlibpath_var=LD_LIBRARY_PATH
7421   shlibpath_overrides_runpath=no
7422   hardcode_into_libs=yes
7423   dynamic_linker='GNU ld.so'
7424   ;;
7425
7426 netbsd*)
7427   version_type=sunos
7428   need_lib_prefix=no
7429   need_version=no
7430   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7431     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7432     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7433     dynamic_linker='NetBSD (a.out) ld.so'
7434   else
7435     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7436     soname_spec='${libname}${release}${shared_ext}$major'
7437     dynamic_linker='NetBSD ld.elf_so'
7438   fi
7439   shlibpath_var=LD_LIBRARY_PATH
7440   shlibpath_overrides_runpath=yes
7441   hardcode_into_libs=yes
7442   ;;
7443
7444 newsos6)
7445   version_type=linux
7446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7447   shlibpath_var=LD_LIBRARY_PATH
7448   shlibpath_overrides_runpath=yes
7449   ;;
7450
7451 nto-qnx*)
7452   version_type=linux
7453   need_lib_prefix=no
7454   need_version=no
7455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7456   soname_spec='${libname}${release}${shared_ext}$major'
7457   shlibpath_var=LD_LIBRARY_PATH
7458   shlibpath_overrides_runpath=yes
7459   ;;
7460
7461 openbsd*)
7462   version_type=sunos
7463   need_lib_prefix=no
7464   need_version=yes
7465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7466   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7467   shlibpath_var=LD_LIBRARY_PATH
7468   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7469     case $host_os in
7470       openbsd2.[89] | openbsd2.[89].*)
7471         shlibpath_overrides_runpath=no
7472         ;;
7473       *)
7474         shlibpath_overrides_runpath=yes
7475         ;;
7476       esac
7477   else
7478     shlibpath_overrides_runpath=yes
7479   fi
7480   ;;
7481
7482 os2*)
7483   libname_spec='$name'
7484   shrext_cmds=".dll"
7485   need_lib_prefix=no
7486   library_names_spec='$libname${shared_ext} $libname.a'
7487   dynamic_linker='OS/2 ld.exe'
7488   shlibpath_var=LIBPATH
7489   ;;
7490
7491 osf3* | osf4* | osf5*)
7492   version_type=osf
7493   need_lib_prefix=no
7494   need_version=no
7495   soname_spec='${libname}${release}${shared_ext}$major'
7496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7497   shlibpath_var=LD_LIBRARY_PATH
7498   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7499   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7500   ;;
7501
7502 sco3.2v5*)
7503   version_type=osf
7504   soname_spec='${libname}${release}${shared_ext}$major'
7505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7506   shlibpath_var=LD_LIBRARY_PATH
7507   ;;
7508
7509 solaris*)
7510   version_type=linux
7511   need_lib_prefix=no
7512   need_version=no
7513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7514   soname_spec='${libname}${release}${shared_ext}$major'
7515   shlibpath_var=LD_LIBRARY_PATH
7516   shlibpath_overrides_runpath=yes
7517   hardcode_into_libs=yes
7518   # ldd complains unless libraries are executable
7519   postinstall_cmds='chmod +x $lib'
7520   ;;
7521
7522 sunos4*)
7523   version_type=sunos
7524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7525   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7526   shlibpath_var=LD_LIBRARY_PATH
7527   shlibpath_overrides_runpath=yes
7528   if test "$with_gnu_ld" = yes; then
7529     need_lib_prefix=no
7530   fi
7531   need_version=yes
7532   ;;
7533
7534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7535   version_type=linux
7536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7537   soname_spec='${libname}${release}${shared_ext}$major'
7538   shlibpath_var=LD_LIBRARY_PATH
7539   case $host_vendor in
7540     sni)
7541       shlibpath_overrides_runpath=no
7542       need_lib_prefix=no
7543       export_dynamic_flag_spec='${wl}-Blargedynsym'
7544       runpath_var=LD_RUN_PATH
7545       ;;
7546     siemens)
7547       need_lib_prefix=no
7548       ;;
7549     motorola)
7550       need_lib_prefix=no
7551       need_version=no
7552       shlibpath_overrides_runpath=no
7553       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7554       ;;
7555   esac
7556   ;;
7557
7558 sysv4*MP*)
7559   if test -d /usr/nec ;then
7560     version_type=linux
7561     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7562     soname_spec='$libname${shared_ext}.$major'
7563     shlibpath_var=LD_LIBRARY_PATH
7564   fi
7565   ;;
7566
7567 uts4*)
7568   version_type=linux
7569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7570   soname_spec='${libname}${release}${shared_ext}$major'
7571   shlibpath_var=LD_LIBRARY_PATH
7572   ;;
7573
7574 *)
7575   dynamic_linker=no
7576   ;;
7577 esac
7578 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7579 echo "${ECHO_T}$dynamic_linker" >&6
7580 test "$dynamic_linker" = no && can_build_shared=no
7581
7582 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7583 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7584 hardcode_action=
7585 if test -n "$hardcode_libdir_flag_spec" || \
7586    test -n "$runpath_var " || \
7587    test "X$hardcode_automatic"="Xyes" ; then
7588
7589   # We can hardcode non-existant directories.
7590   if test "$hardcode_direct" != no &&
7591      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7592      # have to relink, otherwise we might link with an installed library
7593      # when we should be linking with a yet-to-be-installed one
7594      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7595      test "$hardcode_minus_L" != no; then
7596     # Linking always hardcodes the temporary library directory.
7597     hardcode_action=relink
7598   else
7599     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7600     hardcode_action=immediate
7601   fi
7602 else
7603   # We cannot hardcode anything, or else we can only hardcode existing
7604   # directories.
7605   hardcode_action=unsupported
7606 fi
7607 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7608 echo "${ECHO_T}$hardcode_action" >&6
7609
7610 if test "$hardcode_action" = relink; then
7611   # Fast installation is not supported
7612   enable_fast_install=no
7613 elif test "$shlibpath_overrides_runpath" = yes ||
7614      test "$enable_shared" = no; then
7615   # Fast installation is not necessary
7616   enable_fast_install=needless
7617 fi
7618
7619 striplib=
7620 old_striplib=
7621 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7622 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7623 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7624   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7625   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7626   echo "$as_me:$LINENO: result: yes" >&5
7627 echo "${ECHO_T}yes" >&6
7628 else
7629 # FIXME - insert some real tests, host_os isn't really good enough
7630   case $host_os in
7631    darwin*)
7632        if test -n "$STRIP" ; then
7633          striplib="$STRIP -x"
7634          echo "$as_me:$LINENO: result: yes" >&5
7635 echo "${ECHO_T}yes" >&6
7636        else
7637   echo "$as_me:$LINENO: result: no" >&5
7638 echo "${ECHO_T}no" >&6
7639 fi
7640        ;;
7641    *)
7642   echo "$as_me:$LINENO: result: no" >&5
7643 echo "${ECHO_T}no" >&6
7644     ;;
7645   esac
7646 fi
7647
7648 if test "x$enable_dlopen" != xyes; then
7649   enable_dlopen=unknown
7650   enable_dlopen_self=unknown
7651   enable_dlopen_self_static=unknown
7652 else
7653   lt_cv_dlopen=no
7654   lt_cv_dlopen_libs=
7655
7656   case $host_os in
7657   beos*)
7658     lt_cv_dlopen="load_add_on"
7659     lt_cv_dlopen_libs=
7660     lt_cv_dlopen_self=yes
7661     ;;
7662
7663   mingw* | pw32*)
7664     lt_cv_dlopen="LoadLibrary"
7665     lt_cv_dlopen_libs=
7666    ;;
7667
7668   cygwin*)
7669     lt_cv_dlopen="dlopen"
7670     lt_cv_dlopen_libs=
7671    ;;
7672
7673   darwin*)
7674   # if libdl is installed we need to link against it
7675     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7676 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7677 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7678   echo $ECHO_N "(cached) $ECHO_C" >&6
7679 else
7680   ac_check_lib_save_LIBS=$LIBS
7681 LIBS="-ldl  $LIBS"
7682 cat >conftest.$ac_ext <<_ACEOF
7683 #line $LINENO "configure"
7684 /* confdefs.h.  */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h.  */
7689
7690 /* Override any gcc2 internal prototype to avoid an error.  */
7691 #ifdef __cplusplus
7692 extern "C"
7693 #endif
7694 /* We use char because int might match the return type of a gcc2
7695    builtin and then its argument prototype would still apply.  */
7696 char dlopen ();
7697 int
7698 main ()
7699 {
7700 dlopen ();
7701   ;
7702   return 0;
7703 }
7704 _ACEOF
7705 rm -f conftest.$ac_objext conftest$ac_exeext
7706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707   (eval $ac_link) 2>&5
7708   ac_status=$?
7709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710   (exit $ac_status); } &&
7711          { ac_try='test -s conftest$ac_exeext'
7712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713   (eval $ac_try) 2>&5
7714   ac_status=$?
7715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716   (exit $ac_status); }; }; then
7717   ac_cv_lib_dl_dlopen=yes
7718 else
7719   echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7721
7722 ac_cv_lib_dl_dlopen=no
7723 fi
7724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7725 LIBS=$ac_check_lib_save_LIBS
7726 fi
7727 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7728 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7729 if test $ac_cv_lib_dl_dlopen = yes; then
7730   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7731 else
7732
7733     lt_cv_dlopen="dyld"
7734     lt_cv_dlopen_libs=
7735     lt_cv_dlopen_self=yes
7736
7737 fi
7738
7739    ;;
7740
7741   *)
7742     echo "$as_me:$LINENO: checking for shl_load" >&5
7743 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7744 if test "${ac_cv_func_shl_load+set}" = set; then
7745   echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747   cat >conftest.$ac_ext <<_ACEOF
7748 #line $LINENO "configure"
7749 /* confdefs.h.  */
7750 _ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h.  */
7754 /* System header to define __stub macros and hopefully few prototypes,
7755     which can conflict with char shl_load (); below.
7756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7757     <limits.h> exists even on freestanding compilers.  */
7758 #ifdef __STDC__
7759 # include <limits.h>
7760 #else
7761 # include <assert.h>
7762 #endif
7763 /* Override any gcc2 internal prototype to avoid an error.  */
7764 #ifdef __cplusplus
7765 extern "C"
7766 {
7767 #endif
7768 /* We use char because int might match the return type of a gcc2
7769    builtin and then its argument prototype would still apply.  */
7770 char shl_load ();
7771 /* The GNU C library defines this for functions which it implements
7772     to always fail with ENOSYS.  Some functions are actually named
7773     something starting with __ and the normal name is an alias.  */
7774 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7775 choke me
7776 #else
7777 char (*f) () = shl_load;
7778 #endif
7779 #ifdef __cplusplus
7780 }
7781 #endif
7782
7783 int
7784 main ()
7785 {
7786 return f != shl_load;
7787   ;
7788   return 0;
7789 }
7790 _ACEOF
7791 rm -f conftest.$ac_objext conftest$ac_exeext
7792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7793   (eval $ac_link) 2>&5
7794   ac_status=$?
7795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796   (exit $ac_status); } &&
7797          { ac_try='test -s conftest$ac_exeext'
7798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799   (eval $ac_try) 2>&5
7800   ac_status=$?
7801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802   (exit $ac_status); }; }; then
7803   ac_cv_func_shl_load=yes
7804 else
7805   echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.$ac_ext >&5
7807
7808 ac_cv_func_shl_load=no
7809 fi
7810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7811 fi
7812 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7813 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7814 if test $ac_cv_func_shl_load = yes; then
7815   lt_cv_dlopen="shl_load"
7816 else
7817   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7818 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7819 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7820   echo $ECHO_N "(cached) $ECHO_C" >&6
7821 else
7822   ac_check_lib_save_LIBS=$LIBS
7823 LIBS="-ldld  $LIBS"
7824 cat >conftest.$ac_ext <<_ACEOF
7825 #line $LINENO "configure"
7826 /* confdefs.h.  */
7827 _ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h.  */
7831
7832 /* Override any gcc2 internal prototype to avoid an error.  */
7833 #ifdef __cplusplus
7834 extern "C"
7835 #endif
7836 /* We use char because int might match the return type of a gcc2
7837    builtin and then its argument prototype would still apply.  */
7838 char shl_load ();
7839 int
7840 main ()
7841 {
7842 shl_load ();
7843   ;
7844   return 0;
7845 }
7846 _ACEOF
7847 rm -f conftest.$ac_objext conftest$ac_exeext
7848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7849   (eval $ac_link) 2>&5
7850   ac_status=$?
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); } &&
7853          { ac_try='test -s conftest$ac_exeext'
7854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855   (eval $ac_try) 2>&5
7856   ac_status=$?
7857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); }; }; then
7859   ac_cv_lib_dld_shl_load=yes
7860 else
7861   echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7863
7864 ac_cv_lib_dld_shl_load=no
7865 fi
7866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7867 LIBS=$ac_check_lib_save_LIBS
7868 fi
7869 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7870 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7871 if test $ac_cv_lib_dld_shl_load = yes; then
7872   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7873 else
7874   echo "$as_me:$LINENO: checking for dlopen" >&5
7875 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7876 if test "${ac_cv_func_dlopen+set}" = set; then
7877   echo $ECHO_N "(cached) $ECHO_C" >&6
7878 else
7879   cat >conftest.$ac_ext <<_ACEOF
7880 #line $LINENO "configure"
7881 /* confdefs.h.  */
7882 _ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h.  */
7886 /* System header to define __stub macros and hopefully few prototypes,
7887     which can conflict with char dlopen (); below.
7888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7889     <limits.h> exists even on freestanding compilers.  */
7890 #ifdef __STDC__
7891 # include <limits.h>
7892 #else
7893 # include <assert.h>
7894 #endif
7895 /* Override any gcc2 internal prototype to avoid an error.  */
7896 #ifdef __cplusplus
7897 extern "C"
7898 {
7899 #endif
7900 /* We use char because int might match the return type of a gcc2
7901    builtin and then its argument prototype would still apply.  */
7902 char dlopen ();
7903 /* The GNU C library defines this for functions which it implements
7904     to always fail with ENOSYS.  Some functions are actually named
7905     something starting with __ and the normal name is an alias.  */
7906 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7907 choke me
7908 #else
7909 char (*f) () = dlopen;
7910 #endif
7911 #ifdef __cplusplus
7912 }
7913 #endif
7914
7915 int
7916 main ()
7917 {
7918 return f != dlopen;
7919   ;
7920   return 0;
7921 }
7922 _ACEOF
7923 rm -f conftest.$ac_objext conftest$ac_exeext
7924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7925   (eval $ac_link) 2>&5
7926   ac_status=$?
7927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928   (exit $ac_status); } &&
7929          { ac_try='test -s conftest$ac_exeext'
7930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931   (eval $ac_try) 2>&5
7932   ac_status=$?
7933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934   (exit $ac_status); }; }; then
7935   ac_cv_func_dlopen=yes
7936 else
7937   echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7939
7940 ac_cv_func_dlopen=no
7941 fi
7942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7943 fi
7944 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7945 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7946 if test $ac_cv_func_dlopen = yes; then
7947   lt_cv_dlopen="dlopen"
7948 else
7949   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7950 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7951 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7952   echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954   ac_check_lib_save_LIBS=$LIBS
7955 LIBS="-ldl  $LIBS"
7956 cat >conftest.$ac_ext <<_ACEOF
7957 #line $LINENO "configure"
7958 /* confdefs.h.  */
7959 _ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h.  */
7963
7964 /* Override any gcc2 internal prototype to avoid an error.  */
7965 #ifdef __cplusplus
7966 extern "C"
7967 #endif
7968 /* We use char because int might match the return type of a gcc2
7969    builtin and then its argument prototype would still apply.  */
7970 char dlopen ();
7971 int
7972 main ()
7973 {
7974 dlopen ();
7975   ;
7976   return 0;
7977 }
7978 _ACEOF
7979 rm -f conftest.$ac_objext conftest$ac_exeext
7980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7981   (eval $ac_link) 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); } &&
7985          { ac_try='test -s conftest$ac_exeext'
7986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987   (eval $ac_try) 2>&5
7988   ac_status=$?
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); }; }; then
7991   ac_cv_lib_dl_dlopen=yes
7992 else
7993   echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7995
7996 ac_cv_lib_dl_dlopen=no
7997 fi
7998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7999 LIBS=$ac_check_lib_save_LIBS
8000 fi
8001 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8002 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8003 if test $ac_cv_lib_dl_dlopen = yes; then
8004   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8005 else
8006   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8007 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8008 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8009   echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011   ac_check_lib_save_LIBS=$LIBS
8012 LIBS="-lsvld  $LIBS"
8013 cat >conftest.$ac_ext <<_ACEOF
8014 #line $LINENO "configure"
8015 /* confdefs.h.  */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h.  */
8020
8021 /* Override any gcc2 internal prototype to avoid an error.  */
8022 #ifdef __cplusplus
8023 extern "C"
8024 #endif
8025 /* We use char because int might match the return type of a gcc2
8026    builtin and then its argument prototype would still apply.  */
8027 char dlopen ();
8028 int
8029 main ()
8030 {
8031 dlopen ();
8032   ;
8033   return 0;
8034 }
8035 _ACEOF
8036 rm -f conftest.$ac_objext conftest$ac_exeext
8037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8038   (eval $ac_link) 2>&5
8039   ac_status=$?
8040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041   (exit $ac_status); } &&
8042          { ac_try='test -s conftest$ac_exeext'
8043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044   (eval $ac_try) 2>&5
8045   ac_status=$?
8046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047   (exit $ac_status); }; }; then
8048   ac_cv_lib_svld_dlopen=yes
8049 else
8050   echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8052
8053 ac_cv_lib_svld_dlopen=no
8054 fi
8055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8056 LIBS=$ac_check_lib_save_LIBS
8057 fi
8058 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8059 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8060 if test $ac_cv_lib_svld_dlopen = yes; then
8061   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8062 else
8063   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8064 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8065 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8066   echo $ECHO_N "(cached) $ECHO_C" >&6
8067 else
8068   ac_check_lib_save_LIBS=$LIBS
8069 LIBS="-ldld  $LIBS"
8070 cat >conftest.$ac_ext <<_ACEOF
8071 #line $LINENO "configure"
8072 /* confdefs.h.  */
8073 _ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h.  */
8077
8078 /* Override any gcc2 internal prototype to avoid an error.  */
8079 #ifdef __cplusplus
8080 extern "C"
8081 #endif
8082 /* We use char because int might match the return type of a gcc2
8083    builtin and then its argument prototype would still apply.  */
8084 char dld_link ();
8085 int
8086 main ()
8087 {
8088 dld_link ();
8089   ;
8090   return 0;
8091 }
8092 _ACEOF
8093 rm -f conftest.$ac_objext conftest$ac_exeext
8094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8095   (eval $ac_link) 2>&5
8096   ac_status=$?
8097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098   (exit $ac_status); } &&
8099          { ac_try='test -s conftest$ac_exeext'
8100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101   (eval $ac_try) 2>&5
8102   ac_status=$?
8103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104   (exit $ac_status); }; }; then
8105   ac_cv_lib_dld_dld_link=yes
8106 else
8107   echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8109
8110 ac_cv_lib_dld_dld_link=no
8111 fi
8112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8113 LIBS=$ac_check_lib_save_LIBS
8114 fi
8115 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8116 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8117 if test $ac_cv_lib_dld_dld_link = yes; then
8118   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8119 fi
8120
8121
8122 fi
8123
8124
8125 fi
8126
8127
8128 fi
8129
8130
8131 fi
8132
8133
8134 fi
8135
8136     ;;
8137   esac
8138
8139   if test "x$lt_cv_dlopen" != xno; then
8140     enable_dlopen=yes
8141   else
8142     enable_dlopen=no
8143   fi
8144
8145   case $lt_cv_dlopen in
8146   dlopen)
8147     save_CPPFLAGS="$CPPFLAGS"
8148     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8149
8150     save_LDFLAGS="$LDFLAGS"
8151     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8152
8153     save_LIBS="$LIBS"
8154     LIBS="$lt_cv_dlopen_libs $LIBS"
8155
8156     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8157 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8158 if test "${lt_cv_dlopen_self+set}" = set; then
8159   echo $ECHO_N "(cached) $ECHO_C" >&6
8160 else
8161           if test "$cross_compiling" = yes; then :
8162   lt_cv_dlopen_self=cross
8163 else
8164   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8165   lt_status=$lt_dlunknown
8166   cat > conftest.$ac_ext <<EOF
8167 #line 8167 "configure"
8168 #include "confdefs.h"
8169
8170 #if HAVE_DLFCN_H
8171 #include <dlfcn.h>
8172 #endif
8173
8174 #include <stdio.h>
8175
8176 #ifdef RTLD_GLOBAL
8177 #  define LT_DLGLOBAL           RTLD_GLOBAL
8178 #else
8179 #  ifdef DL_GLOBAL
8180 #    define LT_DLGLOBAL         DL_GLOBAL
8181 #  else
8182 #    define LT_DLGLOBAL         0
8183 #  endif
8184 #endif
8185
8186 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8187    find out it does not work in some platform. */
8188 #ifndef LT_DLLAZY_OR_NOW
8189 #  ifdef RTLD_LAZY
8190 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8191 #  else
8192 #    ifdef DL_LAZY
8193 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8194 #    else
8195 #      ifdef RTLD_NOW
8196 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8197 #      else
8198 #        ifdef DL_NOW
8199 #          define LT_DLLAZY_OR_NOW      DL_NOW
8200 #        else
8201 #          define LT_DLLAZY_OR_NOW      0
8202 #        endif
8203 #      endif
8204 #    endif
8205 #  endif
8206 #endif
8207
8208 #ifdef __cplusplus
8209 extern "C" void exit (int);
8210 #endif
8211
8212 void fnord() { int i=42;}
8213 int main ()
8214 {
8215   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8216   int status = $lt_dlunknown;
8217
8218   if (self)
8219     {
8220       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8221       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8222       /* dlclose (self); */
8223     }
8224
8225     exit (status);
8226 }
8227 EOF
8228   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8229   (eval $ac_link) 2>&5
8230   ac_status=$?
8231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8233     (./conftest; exit; ) 2>/dev/null
8234     lt_status=$?
8235     case x$lt_status in
8236       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8237       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8238       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8239     esac
8240   else :
8241     # compilation failed
8242     lt_cv_dlopen_self=no
8243   fi
8244 fi
8245 rm -fr conftest*
8246
8247
8248 fi
8249 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8250 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8251
8252     if test "x$lt_cv_dlopen_self" = xyes; then
8253       LDFLAGS="$LDFLAGS $link_static_flag"
8254       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8255 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8256 if test "${lt_cv_dlopen_self_static+set}" = set; then
8257   echo $ECHO_N "(cached) $ECHO_C" >&6
8258 else
8259           if test "$cross_compiling" = yes; then :
8260   lt_cv_dlopen_self_static=cross
8261 else
8262   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8263   lt_status=$lt_dlunknown
8264   cat > conftest.$ac_ext <<EOF
8265 #line 8265 "configure"
8266 #include "confdefs.h"
8267
8268 #if HAVE_DLFCN_H
8269 #include <dlfcn.h>
8270 #endif
8271
8272 #include <stdio.h>
8273
8274 #ifdef RTLD_GLOBAL
8275 #  define LT_DLGLOBAL           RTLD_GLOBAL
8276 #else
8277 #  ifdef DL_GLOBAL
8278 #    define LT_DLGLOBAL         DL_GLOBAL
8279 #  else
8280 #    define LT_DLGLOBAL         0
8281 #  endif
8282 #endif
8283
8284 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8285    find out it does not work in some platform. */
8286 #ifndef LT_DLLAZY_OR_NOW
8287 #  ifdef RTLD_LAZY
8288 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8289 #  else
8290 #    ifdef DL_LAZY
8291 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8292 #    else
8293 #      ifdef RTLD_NOW
8294 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8295 #      else
8296 #        ifdef DL_NOW
8297 #          define LT_DLLAZY_OR_NOW      DL_NOW
8298 #        else
8299 #          define LT_DLLAZY_OR_NOW      0
8300 #        endif
8301 #      endif
8302 #    endif
8303 #  endif
8304 #endif
8305
8306 #ifdef __cplusplus
8307 extern "C" void exit (int);
8308 #endif
8309
8310 void fnord() { int i=42;}
8311 int main ()
8312 {
8313   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8314   int status = $lt_dlunknown;
8315
8316   if (self)
8317     {
8318       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8319       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8320       /* dlclose (self); */
8321     }
8322
8323     exit (status);
8324 }
8325 EOF
8326   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8327   (eval $ac_link) 2>&5
8328   ac_status=$?
8329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8331     (./conftest; exit; ) 2>/dev/null
8332     lt_status=$?
8333     case x$lt_status in
8334       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8335       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8336       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8337     esac
8338   else :
8339     # compilation failed
8340     lt_cv_dlopen_self_static=no
8341   fi
8342 fi
8343 rm -fr conftest*
8344
8345
8346 fi
8347 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8348 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8349     fi
8350
8351     CPPFLAGS="$save_CPPFLAGS"
8352     LDFLAGS="$save_LDFLAGS"
8353     LIBS="$save_LIBS"
8354     ;;
8355   esac
8356
8357   case $lt_cv_dlopen_self in
8358   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8359   *) enable_dlopen_self=unknown ;;
8360   esac
8361
8362   case $lt_cv_dlopen_self_static in
8363   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8364   *) enable_dlopen_self_static=unknown ;;
8365   esac
8366 fi
8367
8368
8369 # Report which librarie types wil actually be built
8370 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8371 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8372 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8373 echo "${ECHO_T}$can_build_shared" >&6
8374
8375 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8376 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8377 test "$can_build_shared" = "no" && enable_shared=no
8378
8379 # On AIX, shared libraries and static libraries use the same namespace, and
8380 # are all built from PIC.
8381 case "$host_os" in
8382 aix3*)
8383   test "$enable_shared" = yes && enable_static=no
8384   if test -n "$RANLIB"; then
8385     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8386     postinstall_cmds='$RANLIB $lib'
8387   fi
8388   ;;
8389
8390 aix4* | aix5*)
8391   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8392     test "$enable_shared" = yes && enable_static=no
8393   fi
8394   ;;
8395   darwin* | rhapsody*)
8396   if test "$GCC" = yes; then
8397     archive_cmds_need_lc=no
8398     case "$host_os" in
8399     rhapsody* | darwin1.[012])
8400       allow_undefined_flag='-undefined suppress'
8401       ;;
8402     *) # Darwin 1.3 on
8403       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8404         allow_undefined_flag='-flat_namespace -undefined suppress'
8405       else
8406         case ${MACOSX_DEPLOYMENT_TARGET} in
8407           10.[012])
8408             allow_undefined_flag='-flat_namespace -undefined suppress'
8409             ;;
8410           10.*)
8411             allow_undefined_flag='-undefined dynamic_lookup'
8412             ;;
8413         esac
8414       fi
8415       ;;
8416     esac
8417     output_verbose_link_cmd='echo'
8418     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8419     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8420     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8421     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}'
8422     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}'
8423     hardcode_direct=no
8424     hardcode_automatic=yes
8425     hardcode_shlibpath_var=unsupported
8426     whole_archive_flag_spec='-all_load $convenience'
8427     link_all_deplibs=yes
8428   else
8429     ld_shlibs=no
8430   fi
8431     ;;
8432 esac
8433 echo "$as_me:$LINENO: result: $enable_shared" >&5
8434 echo "${ECHO_T}$enable_shared" >&6
8435
8436 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8437 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8438 # Make sure either enable_shared or enable_static is yes.
8439 test "$enable_shared" = yes || enable_static=yes
8440 echo "$as_me:$LINENO: result: $enable_static" >&5
8441 echo "${ECHO_T}$enable_static" >&6
8442
8443 # The else clause should only fire when bootstrapping the
8444 # libtool distribution, otherwise you forgot to ship ltmain.sh
8445 # with your package, and you will get complaints that there are
8446 # no rules to generate ltmain.sh.
8447 if test -f "$ltmain"; then
8448   # See if we are running on zsh, and set the options which allow our commands through
8449   # without removal of \ escapes.
8450   if test -n "${ZSH_VERSION+set}" ; then
8451     setopt NO_GLOB_SUBST
8452   fi
8453   # Now quote all the things that may contain metacharacters while being
8454   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8455   # variables and quote the copies for generation of the libtool script.
8456   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8457     SED SHELL STRIP \
8458     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8459     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8460     deplibs_check_method reload_flag reload_cmds need_locks \
8461     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8462     lt_cv_sys_global_symbol_to_c_name_address \
8463     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8464     old_postinstall_cmds old_postuninstall_cmds \
8465     compiler \
8466     CC \
8467     LD \
8468     lt_prog_compiler_wl \
8469     lt_prog_compiler_pic \
8470     lt_prog_compiler_static \
8471     lt_prog_compiler_no_builtin_flag \
8472     export_dynamic_flag_spec \
8473     thread_safe_flag_spec \
8474     whole_archive_flag_spec \
8475     enable_shared_with_static_runtimes \
8476     old_archive_cmds \
8477     old_archive_from_new_cmds \
8478     predep_objects \
8479     postdep_objects \
8480     predeps \
8481     postdeps \
8482     compiler_lib_search_path \
8483     archive_cmds \
8484     archive_expsym_cmds \
8485     postinstall_cmds \
8486     postuninstall_cmds \
8487     old_archive_from_expsyms_cmds \
8488     allow_undefined_flag \
8489     no_undefined_flag \
8490     export_symbols_cmds \
8491     hardcode_libdir_flag_spec \
8492     hardcode_libdir_flag_spec_ld \
8493     hardcode_libdir_separator \
8494     hardcode_automatic \
8495     module_cmds \
8496     module_expsym_cmds \
8497     lt_cv_prog_compiler_c_o \
8498     exclude_expsyms \
8499     include_expsyms; do
8500
8501     case $var in
8502     old_archive_cmds | \
8503     old_archive_from_new_cmds | \
8504     archive_cmds | \
8505     archive_expsym_cmds | \
8506     module_cmds | \
8507     module_expsym_cmds | \
8508     old_archive_from_expsyms_cmds | \
8509     export_symbols_cmds | \
8510     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8511     postinstall_cmds | postuninstall_cmds | \
8512     old_postinstall_cmds | old_postuninstall_cmds | \
8513     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8514       # Double-quote double-evaled strings.
8515       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8516       ;;
8517     *)
8518       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8519       ;;
8520     esac
8521   done
8522
8523   case $lt_echo in
8524   *'\$0 --fallback-echo"')
8525     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8526     ;;
8527   esac
8528
8529 cfgfile="${ofile}T"
8530   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8531   $rm -f "$cfgfile"
8532   { echo "$as_me:$LINENO: creating $ofile" >&5
8533 echo "$as_me: creating $ofile" >&6;}
8534
8535   cat <<__EOF__ >> "$cfgfile"
8536 #! $SHELL
8537
8538 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8539 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8540 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8541 #
8542 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8543 # Free Software Foundation, Inc.
8544 #
8545 # This file is part of GNU Libtool:
8546 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8547 #
8548 # This program is free software; you can redistribute it and/or modify
8549 # it under the terms of the GNU General Public License as published by
8550 # the Free Software Foundation; either version 2 of the License, or
8551 # (at your option) any later version.
8552 #
8553 # This program is distributed in the hope that it will be useful, but
8554 # WITHOUT ANY WARRANTY; without even the implied warranty of
8555 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8556 # General Public License for more details.
8557 #
8558 # You should have received a copy of the GNU General Public License
8559 # along with this program; if not, write to the Free Software
8560 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8561 #
8562 # As a special exception to the GNU General Public License, if you
8563 # distribute this file as part of a program that contains a
8564 # configuration script generated by Autoconf, you may include it under
8565 # the same distribution terms that you use for the rest of that program.
8566
8567 # A sed program that does not truncate output.
8568 SED=$lt_SED
8569
8570 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8571 Xsed="$SED -e s/^X//"
8572
8573 # The HP-UX ksh and POSIX shell print the target directory to stdout
8574 # if CDPATH is set.
8575 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8576
8577 # The names of the tagged configurations supported by this script.
8578 available_tags=
8579
8580 # ### BEGIN LIBTOOL CONFIG
8581
8582 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8583
8584 # Shell to use when invoking shell scripts.
8585 SHELL=$lt_SHELL
8586
8587 # Whether or not to build shared libraries.
8588 build_libtool_libs=$enable_shared
8589
8590 # Whether or not to build static libraries.
8591 build_old_libs=$enable_static
8592
8593 # Whether or not to add -lc for building shared libraries.
8594 build_libtool_need_lc=$archive_cmds_need_lc
8595
8596 # Whether or not to disallow shared libs when runtime libs are static
8597 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8598
8599 # Whether or not to optimize for fast installation.
8600 fast_install=$enable_fast_install
8601
8602 # The host system.
8603 host_alias=$host_alias
8604 host=$host
8605
8606 # An echo program that does not interpret backslashes.
8607 echo=$lt_echo
8608
8609 # The archiver.
8610 AR=$lt_AR
8611 AR_FLAGS=$lt_AR_FLAGS
8612
8613 # A C compiler.
8614 LTCC=$lt_LTCC
8615
8616 # A language-specific compiler.
8617 CC=$lt_compiler
8618
8619 # Is the compiler the GNU C compiler?
8620 with_gcc=$GCC
8621
8622 # An ERE matcher.
8623 EGREP=$lt_EGREP
8624
8625 # The linker used to build libraries.
8626 LD=$lt_LD
8627
8628 # Whether we need hard or soft links.
8629 LN_S=$lt_LN_S
8630
8631 # A BSD-compatible nm program.
8632 NM=$lt_NM
8633
8634 # A symbol stripping program
8635 STRIP=$lt_STRIP
8636
8637 # Used to examine libraries when file_magic_cmd begins "file"
8638 MAGIC_CMD=$MAGIC_CMD
8639
8640 # Used on cygwin: DLL creation program.
8641 DLLTOOL="$DLLTOOL"
8642
8643 # Used on cygwin: object dumper.
8644 OBJDUMP="$OBJDUMP"
8645
8646 # Used on cygwin: assembler.
8647 AS="$AS"
8648
8649 # The name of the directory that contains temporary libtool files.
8650 objdir=$objdir
8651
8652 # How to create reloadable object files.
8653 reload_flag=$lt_reload_flag
8654 reload_cmds=$lt_reload_cmds
8655
8656 # How to pass a linker flag through the compiler.
8657 wl=$lt_lt_prog_compiler_wl
8658
8659 # Object file suffix (normally "o").
8660 objext="$ac_objext"
8661
8662 # Old archive suffix (normally "a").
8663 libext="$libext"
8664
8665 # Shared library suffix (normally ".so").
8666 shrext_cmds='$shrext_cmds'
8667
8668 # Executable file suffix (normally "").
8669 exeext="$exeext"
8670
8671 # Additional compiler flags for building library objects.
8672 pic_flag=$lt_lt_prog_compiler_pic
8673 pic_mode=$pic_mode
8674
8675 # What is the maximum length of a command?
8676 max_cmd_len=$lt_cv_sys_max_cmd_len
8677
8678 # Does compiler simultaneously support -c and -o options?
8679 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8680
8681 # Must we lock files when doing compilation ?
8682 need_locks=$lt_need_locks
8683
8684 # Do we need the lib prefix for modules?
8685 need_lib_prefix=$need_lib_prefix
8686
8687 # Do we need a version for libraries?
8688 need_version=$need_version
8689
8690 # Whether dlopen is supported.
8691 dlopen_support=$enable_dlopen
8692
8693 # Whether dlopen of programs is supported.
8694 dlopen_self=$enable_dlopen_self
8695
8696 # Whether dlopen of statically linked programs is supported.
8697 dlopen_self_static=$enable_dlopen_self_static
8698
8699 # Compiler flag to prevent dynamic linking.
8700 link_static_flag=$lt_lt_prog_compiler_static
8701
8702 # Compiler flag to turn off builtin functions.
8703 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8704
8705 # Compiler flag to allow reflexive dlopens.
8706 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8707
8708 # Compiler flag to generate shared objects directly from archives.
8709 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8710
8711 # Compiler flag to generate thread-safe objects.
8712 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8713
8714 # Library versioning type.
8715 version_type=$version_type
8716
8717 # Format of library name prefix.
8718 libname_spec=$lt_libname_spec
8719
8720 # List of archive names.  First name is the real one, the rest are links.
8721 # The last name is the one that the linker finds with -lNAME.
8722 library_names_spec=$lt_library_names_spec
8723
8724 # The coded name of the library, if different from the real name.
8725 soname_spec=$lt_soname_spec
8726
8727 # Commands used to build and install an old-style archive.
8728 RANLIB=$lt_RANLIB
8729 old_archive_cmds=$lt_old_archive_cmds
8730 old_postinstall_cmds=$lt_old_postinstall_cmds
8731 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8732
8733 # Create an old-style archive from a shared archive.
8734 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8735
8736 # Create a temporary old-style archive to link instead of a shared archive.
8737 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8738
8739 # Commands used to build and install a shared archive.
8740 archive_cmds=$lt_archive_cmds
8741 archive_expsym_cmds=$lt_archive_expsym_cmds
8742 postinstall_cmds=$lt_postinstall_cmds
8743 postuninstall_cmds=$lt_postuninstall_cmds
8744
8745 # Commands used to build a loadable module (assumed same as above if empty)
8746 module_cmds=$lt_module_cmds
8747 module_expsym_cmds=$lt_module_expsym_cmds
8748
8749 # Commands to strip libraries.
8750 old_striplib=$lt_old_striplib
8751 striplib=$lt_striplib
8752
8753 # Dependencies to place before the objects being linked to create a
8754 # shared library.
8755 predep_objects=$lt_predep_objects
8756
8757 # Dependencies to place after the objects being linked to create a
8758 # shared library.
8759 postdep_objects=$lt_postdep_objects
8760
8761 # Dependencies to place before the objects being linked to create a
8762 # shared library.
8763 predeps=$lt_predeps
8764
8765 # Dependencies to place after the objects being linked to create a
8766 # shared library.
8767 postdeps=$lt_postdeps
8768
8769 # The library search path used internally by the compiler when linking
8770 # a shared library.
8771 compiler_lib_search_path=$lt_compiler_lib_search_path
8772
8773 # Method to check whether dependent libraries are shared objects.
8774 deplibs_check_method=$lt_deplibs_check_method
8775
8776 # Command to use when deplibs_check_method == file_magic.
8777 file_magic_cmd=$lt_file_magic_cmd
8778
8779 # Flag that allows shared libraries with undefined symbols to be built.
8780 allow_undefined_flag=$lt_allow_undefined_flag
8781
8782 # Flag that forces no undefined symbols.
8783 no_undefined_flag=$lt_no_undefined_flag
8784
8785 # Commands used to finish a libtool library installation in a directory.
8786 finish_cmds=$lt_finish_cmds
8787
8788 # Same as above, but a single script fragment to be evaled but not shown.
8789 finish_eval=$lt_finish_eval
8790
8791 # Take the output of nm and produce a listing of raw symbols and C names.
8792 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8793
8794 # Transform the output of nm in a proper C declaration
8795 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8796
8797 # Transform the output of nm in a C name address pair
8798 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8799
8800 # This is the shared library runtime path variable.
8801 runpath_var=$runpath_var
8802
8803 # This is the shared library path variable.
8804 shlibpath_var=$shlibpath_var
8805
8806 # Is shlibpath searched before the hard-coded library search path?
8807 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8808
8809 # How to hardcode a shared library path into an executable.
8810 hardcode_action=$hardcode_action
8811
8812 # Whether we should hardcode library paths into libraries.
8813 hardcode_into_libs=$hardcode_into_libs
8814
8815 # Flag to hardcode \$libdir into a binary during linking.
8816 # This must work even if \$libdir does not exist.
8817 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8818
8819 # If ld is used when linking, flag to hardcode \$libdir into
8820 # a binary during linking. This must work even if \$libdir does
8821 # not exist.
8822 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8823
8824 # Whether we need a single -rpath flag with a separated argument.
8825 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8826
8827 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8828 # resulting binary.
8829 hardcode_direct=$hardcode_direct
8830
8831 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8832 # resulting binary.
8833 hardcode_minus_L=$hardcode_minus_L
8834
8835 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8836 # the resulting binary.
8837 hardcode_shlibpath_var=$hardcode_shlibpath_var
8838
8839 # Set to yes if building a shared library automatically hardcodes DIR into the library
8840 # and all subsequent libraries and executables linked against it.
8841 hardcode_automatic=$hardcode_automatic
8842
8843 # Variables whose values should be saved in libtool wrapper scripts and
8844 # restored at relink time.
8845 variables_saved_for_relink="$variables_saved_for_relink"
8846
8847 # Whether libtool must link a program against all its dependency libraries.
8848 link_all_deplibs=$link_all_deplibs
8849
8850 # Compile-time system search path for libraries
8851 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8852
8853 # Run-time system search path for libraries
8854 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8855
8856 # Fix the shell variable \$srcfile for the compiler.
8857 fix_srcfile_path="$fix_srcfile_path"
8858
8859 # Set to yes if exported symbols are required.
8860 always_export_symbols=$always_export_symbols
8861
8862 # The commands to list exported symbols.
8863 export_symbols_cmds=$lt_export_symbols_cmds
8864
8865 # The commands to extract the exported symbol list from a shared archive.
8866 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8867
8868 # Symbols that should not be listed in the preloaded symbols.
8869 exclude_expsyms=$lt_exclude_expsyms
8870
8871 # Symbols that must always be exported.
8872 include_expsyms=$lt_include_expsyms
8873
8874 # ### END LIBTOOL CONFIG
8875
8876 __EOF__
8877
8878
8879   case $host_os in
8880   aix3*)
8881     cat <<\EOF >> "$cfgfile"
8882
8883 # AIX sometimes has problems with the GCC collect2 program.  For some
8884 # reason, if we set the COLLECT_NAMES environment variable, the problems
8885 # vanish in a puff of smoke.
8886 if test "X${COLLECT_NAMES+set}" != Xset; then
8887   COLLECT_NAMES=
8888   export COLLECT_NAMES
8889 fi
8890 EOF
8891     ;;
8892   esac
8893
8894   # We use sed instead of cat because bash on DJGPP gets confused if
8895   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8896   # text mode, it properly converts lines to CR/LF.  This bash problem
8897   # is reportedly fixed, but why not run on old versions too?
8898   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8899
8900   mv -f "$cfgfile" "$ofile" || \
8901     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8902   chmod +x "$ofile"
8903
8904 else
8905   # If there is no Makefile yet, we rely on a make rule to execute
8906   # `config.status --recheck' to rerun these tests and create the
8907   # libtool script then.
8908   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8909   if test -f "$ltmain_in"; then
8910     test -f Makefile && make "$ltmain"
8911   fi
8912 fi
8913
8914
8915 ac_ext=c
8916 ac_cpp='$CPP $CPPFLAGS'
8917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8920
8921 CC="$lt_save_CC"
8922
8923
8924 # Check whether --with-tags or --without-tags was given.
8925 if test "${with_tags+set}" = set; then
8926   withval="$with_tags"
8927   tagnames="$withval"
8928 fi;
8929
8930 if test -f "$ltmain" && test -n "$tagnames"; then
8931   if test ! -f "${ofile}"; then
8932     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8933 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8934   fi
8935
8936   if test -z "$LTCC"; then
8937     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8938     if test -z "$LTCC"; then
8939       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8940 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8941     else
8942       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8943 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8944     fi
8945   fi
8946
8947   # Extract list of available tagged configurations in $ofile.
8948   # Note that this assumes the entire list is on one line.
8949   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8950
8951   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8952   for tagname in $tagnames; do
8953     IFS="$lt_save_ifs"
8954     # Check whether tagname contains only valid characters
8955     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8956     "") ;;
8957     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8958 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8959    { (exit 1); exit 1; }; }
8960         ;;
8961     esac
8962
8963     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8964     then
8965       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8966 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8967    { (exit 1); exit 1; }; }
8968     fi
8969
8970     # Update the list of available tags.
8971     if test -n "$tagname"; then
8972       echo appending configuration tag \"$tagname\" to $ofile
8973
8974       case $tagname in
8975       CXX)
8976         if test -n "$CXX" && test "X$CXX" != "Xno"; then
8977           ac_ext=cc
8978 ac_cpp='$CXXCPP $CPPFLAGS'
8979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8982
8983
8984
8985
8986 archive_cmds_need_lc_CXX=no
8987 allow_undefined_flag_CXX=
8988 always_export_symbols_CXX=no
8989 archive_expsym_cmds_CXX=
8990 export_dynamic_flag_spec_CXX=
8991 hardcode_direct_CXX=no
8992 hardcode_libdir_flag_spec_CXX=
8993 hardcode_libdir_flag_spec_ld_CXX=
8994 hardcode_libdir_separator_CXX=
8995 hardcode_minus_L_CXX=no
8996 hardcode_automatic_CXX=no
8997 module_cmds_CXX=
8998 module_expsym_cmds_CXX=
8999 link_all_deplibs_CXX=unknown
9000 old_archive_cmds_CXX=$old_archive_cmds
9001 no_undefined_flag_CXX=
9002 whole_archive_flag_spec_CXX=
9003 enable_shared_with_static_runtimes_CXX=no
9004
9005 # Dependencies to place before and after the object being linked:
9006 predep_objects_CXX=
9007 postdep_objects_CXX=
9008 predeps_CXX=
9009 postdeps_CXX=
9010 compiler_lib_search_path_CXX=
9011
9012 # Source file extension for C++ test sources.
9013 ac_ext=cc
9014
9015 # Object file extension for compiled C++ test sources.
9016 objext=o
9017 objext_CXX=$objext
9018
9019 # Code to be used in simple compile tests
9020 lt_simple_compile_test_code="int some_variable = 0;\n"
9021
9022 # Code to be used in simple link tests
9023 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9024
9025 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9026
9027 # If no C compiler was specified, use CC.
9028 LTCC=${LTCC-"$CC"}
9029
9030 # Allow CC to be a program name with arguments.
9031 compiler=$CC
9032
9033
9034 # Allow CC to be a program name with arguments.
9035 lt_save_CC=$CC
9036 lt_save_LD=$LD
9037 lt_save_GCC=$GCC
9038 GCC=$GXX
9039 lt_save_with_gnu_ld=$with_gnu_ld
9040 lt_save_path_LD=$lt_cv_path_LD
9041 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9042   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9043 else
9044   unset lt_cv_prog_gnu_ld
9045 fi
9046 if test -n "${lt_cv_path_LDCXX+set}"; then
9047   lt_cv_path_LD=$lt_cv_path_LDCXX
9048 else
9049   unset lt_cv_path_LD
9050 fi
9051 test -z "${LDCXX+set}" || LD=$LDCXX
9052 CC=${CXX-"c++"}
9053 compiler=$CC
9054 compiler_CXX=$CC
9055 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9056
9057 # We don't want -fno-exception wen compiling C++ code, so set the
9058 # no_builtin_flag separately
9059 if test "$GXX" = yes; then
9060   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9061 else
9062   lt_prog_compiler_no_builtin_flag_CXX=
9063 fi
9064
9065 if test "$GXX" = yes; then
9066   # Set up default GNU C++ configuration
9067
9068
9069 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9070 if test "${with_gnu_ld+set}" = set; then
9071   withval="$with_gnu_ld"
9072   test "$withval" = no || with_gnu_ld=yes
9073 else
9074   with_gnu_ld=no
9075 fi;
9076 ac_prog=ld
9077 if test "$GCC" = yes; then
9078   # Check if gcc -print-prog-name=ld gives a path.
9079   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9080 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9081   case $host in
9082   *-*-mingw*)
9083     # gcc leaves a trailing carriage return which upsets mingw
9084     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9085   *)
9086     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9087   esac
9088   case $ac_prog in
9089     # Accept absolute paths.
9090     [\\/]* | ?:[\\/]*)
9091       re_direlt='/[^/][^/]*/\.\./'
9092       # Canonicalize the pathname of ld
9093       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9094       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9095         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9096       done
9097       test -z "$LD" && LD="$ac_prog"
9098       ;;
9099   "")
9100     # If it fails, then pretend we aren't using GCC.
9101     ac_prog=ld
9102     ;;
9103   *)
9104     # If it is relative, then search for the first ld in PATH.
9105     with_gnu_ld=unknown
9106     ;;
9107   esac
9108 elif test "$with_gnu_ld" = yes; then
9109   echo "$as_me:$LINENO: checking for GNU ld" >&5
9110 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9111 else
9112   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9113 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9114 fi
9115 if test "${lt_cv_path_LD+set}" = set; then
9116   echo $ECHO_N "(cached) $ECHO_C" >&6
9117 else
9118   if test -z "$LD"; then
9119   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9120   for ac_dir in $PATH; do
9121     IFS="$lt_save_ifs"
9122     test -z "$ac_dir" && ac_dir=.
9123     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9124       lt_cv_path_LD="$ac_dir/$ac_prog"
9125       # Check to see if the program is GNU ld.  I'd rather use --version,
9126       # but apparently some GNU ld's only accept -v.
9127       # Break only if it was the GNU/non-GNU ld that we prefer.
9128       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9129       *GNU* | *'with BFD'*)
9130         test "$with_gnu_ld" != no && break
9131         ;;
9132       *)
9133         test "$with_gnu_ld" != yes && break
9134         ;;
9135       esac
9136     fi
9137   done
9138   IFS="$lt_save_ifs"
9139 else
9140   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9141 fi
9142 fi
9143
9144 LD="$lt_cv_path_LD"
9145 if test -n "$LD"; then
9146   echo "$as_me:$LINENO: result: $LD" >&5
9147 echo "${ECHO_T}$LD" >&6
9148 else
9149   echo "$as_me:$LINENO: result: no" >&5
9150 echo "${ECHO_T}no" >&6
9151 fi
9152 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9153 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9154    { (exit 1); exit 1; }; }
9155 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9156 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9157 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9158   echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9160   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9161 case `$LD -v 2>&1 </dev/null` in
9162 *GNU* | *'with BFD'*)
9163   lt_cv_prog_gnu_ld=yes
9164   ;;
9165 *)
9166   lt_cv_prog_gnu_ld=no
9167   ;;
9168 esac
9169 fi
9170 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9171 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9172 with_gnu_ld=$lt_cv_prog_gnu_ld
9173
9174
9175
9176   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9177   # archiving commands below assume that GNU ld is being used.
9178   if test "$with_gnu_ld" = yes; then
9179     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9180     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'
9181
9182     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9183     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9184
9185     # If archive_cmds runs LD, not CC, wlarc should be empty
9186     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9187     #     investigate it a little bit more. (MM)
9188     wlarc='${wl}'
9189
9190     # ancient GNU ld didn't support --whole-archive et. al.
9191     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9192         grep 'no-whole-archive' > /dev/null; then
9193       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9194     else
9195       whole_archive_flag_spec_CXX=
9196     fi
9197   else
9198     with_gnu_ld=no
9199     wlarc=
9200
9201     # A generic and very simple default shared library creation
9202     # command for GNU C++ for the case where it uses the native
9203     # linker, instead of GNU ld.  If possible, this setting should
9204     # overridden to take advantage of the native linker features on
9205     # the platform it is being used on.
9206     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9207   fi
9208
9209   # Commands to make compiler produce verbose output that lists
9210   # what "hidden" libraries, object files and flags are used when
9211   # linking a shared library.
9212   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9213
9214 else
9215   GXX=no
9216   with_gnu_ld=no
9217   wlarc=
9218 fi
9219
9220 # PORTME: fill in a description of your system's C++ link characteristics
9221 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9222 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9223 ld_shlibs_CXX=yes
9224 case $host_os in
9225   aix3*)
9226     # FIXME: insert proper C++ library support
9227     ld_shlibs_CXX=no
9228     ;;
9229   aix4* | aix5*)
9230     if test "$host_cpu" = ia64; then
9231       # On IA64, the linker does run time linking by default, so we don't
9232       # have to do anything special.
9233       aix_use_runtimelinking=no
9234       exp_sym_flag='-Bexport'
9235       no_entry_flag=""
9236     else
9237       aix_use_runtimelinking=no
9238
9239       # Test if we are trying to use run time linking or normal
9240       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9241       # need to do runtime linking.
9242       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9243         for ld_flag in $LDFLAGS; do
9244           case $ld_flag in
9245           *-brtl*)
9246             aix_use_runtimelinking=yes
9247             break
9248             ;;
9249           esac
9250         done
9251       esac
9252
9253       exp_sym_flag='-bexport'
9254       no_entry_flag='-bnoentry'
9255     fi
9256
9257     # When large executables or shared objects are built, AIX ld can
9258     # have problems creating the table of contents.  If linking a library
9259     # or program results in "error TOC overflow" add -mminimal-toc to
9260     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9261     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9262
9263     archive_cmds_CXX=''
9264     hardcode_direct_CXX=yes
9265     hardcode_libdir_separator_CXX=':'
9266     link_all_deplibs_CXX=yes
9267
9268     if test "$GXX" = yes; then
9269       case $host_os in aix4.012|aix4.012.*)
9270       # We only want to do this on AIX 4.2 and lower, the check
9271       # below for broken collect2 doesn't work under 4.3+
9272         collect2name=`${CC} -print-prog-name=collect2`
9273         if test -f "$collect2name" && \
9274            strings "$collect2name" | grep resolve_lib_name >/dev/null
9275         then
9276           # We have reworked collect2
9277           hardcode_direct_CXX=yes
9278         else
9279           # We have old collect2
9280           hardcode_direct_CXX=unsupported
9281           # It fails to find uninstalled libraries when the uninstalled
9282           # path is not listed in the libpath.  Setting hardcode_minus_L
9283           # to unsupported forces relinking
9284           hardcode_minus_L_CXX=yes
9285           hardcode_libdir_flag_spec_CXX='-L$libdir'
9286           hardcode_libdir_separator_CXX=
9287         fi
9288       esac
9289       shared_flag='-shared'
9290     else
9291       # not using gcc
9292       if test "$host_cpu" = ia64; then
9293         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9294         # chokes on -Wl,-G. The following line is correct:
9295         shared_flag='-G'
9296       else
9297         if test "$aix_use_runtimelinking" = yes; then
9298           shared_flag='${wl}-G'
9299         else
9300           shared_flag='${wl}-bM:SRE'
9301         fi
9302       fi
9303     fi
9304
9305     # It seems that -bexpall does not export symbols beginning with
9306     # underscore (_), so it is better to generate a list of symbols to export.
9307     always_export_symbols_CXX=yes
9308     if test "$aix_use_runtimelinking" = yes; then
9309       # Warning - without using the other runtime loading flags (-brtl),
9310       # -berok will link without error, but may produce a broken library.
9311       allow_undefined_flag_CXX='-berok'
9312       # Determine the default libpath from the value encoded in an empty executable.
9313       cat >conftest.$ac_ext <<_ACEOF
9314 #line $LINENO "configure"
9315 /* confdefs.h.  */
9316 _ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h.  */
9320
9321 int
9322 main ()
9323 {
9324
9325   ;
9326   return 0;
9327 }
9328 _ACEOF
9329 rm -f conftest.$ac_objext conftest$ac_exeext
9330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9331   (eval $ac_link) 2>&5
9332   ac_status=$?
9333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334   (exit $ac_status); } &&
9335          { ac_try='test -s conftest$ac_exeext'
9336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9337   (eval $ac_try) 2>&5
9338   ac_status=$?
9339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340   (exit $ac_status); }; }; then
9341
9342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9343 }'`
9344 # Check for a 64-bit object if we didn't find anything.
9345 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; }
9346 }'`; fi
9347 else
9348   echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9350
9351 fi
9352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9353 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9354
9355       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9356
9357       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"
9358      else
9359       if test "$host_cpu" = ia64; then
9360         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9361         allow_undefined_flag_CXX="-z nodefs"
9362         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"
9363       else
9364         # Determine the default libpath from the value encoded in an empty executable.
9365         cat >conftest.$ac_ext <<_ACEOF
9366 #line $LINENO "configure"
9367 /* confdefs.h.  */
9368 _ACEOF
9369 cat confdefs.h >>conftest.$ac_ext
9370 cat >>conftest.$ac_ext <<_ACEOF
9371 /* end confdefs.h.  */
9372
9373 int
9374 main ()
9375 {
9376
9377   ;
9378   return 0;
9379 }
9380 _ACEOF
9381 rm -f conftest.$ac_objext conftest$ac_exeext
9382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9383   (eval $ac_link) 2>&5
9384   ac_status=$?
9385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386   (exit $ac_status); } &&
9387          { ac_try='test -s conftest$ac_exeext'
9388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389   (eval $ac_try) 2>&5
9390   ac_status=$?
9391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392   (exit $ac_status); }; }; then
9393
9394 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9395 }'`
9396 # Check for a 64-bit object if we didn't find anything.
9397 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; }
9398 }'`; fi
9399 else
9400   echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9402
9403 fi
9404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9406
9407         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9408         # Warning - without using the other run time loading flags,
9409         # -berok will link without error, but may produce a broken library.
9410         no_undefined_flag_CXX=' ${wl}-bernotok'
9411         allow_undefined_flag_CXX=' ${wl}-berok'
9412         # -bexpall does not export symbols beginning with underscore (_)
9413         always_export_symbols_CXX=yes
9414         # Exported symbols can be pulled into shared objects from archives
9415         whole_archive_flag_spec_CXX=' '
9416         archive_cmds_need_lc_CXX=yes
9417         # This is similar to how AIX traditionally builds it's shared libraries.
9418         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'
9419       fi
9420     fi
9421     ;;
9422   chorus*)
9423     case $cc_basename in
9424       *)
9425         # FIXME: insert proper C++ library support
9426         ld_shlibs_CXX=no
9427         ;;
9428     esac
9429     ;;
9430
9431   cygwin* | mingw* | pw32*)
9432     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9433     # as there is no search path for DLLs.
9434     hardcode_libdir_flag_spec_CXX='-L$libdir'
9435     allow_undefined_flag_CXX=unsupported
9436     always_export_symbols_CXX=no
9437     enable_shared_with_static_runtimes_CXX=yes
9438
9439     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9440       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'
9441       # If the export-symbols file already is a .def file (1st line
9442       # is EXPORTS), use it as is; otherwise, prepend...
9443       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9444         cp $export_symbols $output_objdir/$soname.def;
9445       else
9446         echo EXPORTS > $output_objdir/$soname.def;
9447         cat $export_symbols >> $output_objdir/$soname.def;
9448       fi~
9449       $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'
9450     else
9451       ld_shlibs_CXX=no
9452     fi
9453   ;;
9454
9455   darwin* | rhapsody*)
9456   if test "$GXX" = yes; then
9457     archive_cmds_need_lc_CXX=no
9458     case "$host_os" in
9459     rhapsody* | darwin1.[012])
9460       allow_undefined_flag_CXX='-undefined suppress'
9461       ;;
9462     *) # Darwin 1.3 on
9463       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9464         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9465       else
9466         case ${MACOSX_DEPLOYMENT_TARGET} in
9467           10.[012])
9468             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9469             ;;
9470           10.*)
9471             allow_undefined_flag_CXX='-undefined dynamic_lookup'
9472             ;;
9473         esac
9474       fi
9475       ;;
9476     esac
9477     lt_int_apple_cc_single_mod=no
9478     output_verbose_link_cmd='echo'
9479     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9480       lt_int_apple_cc_single_mod=yes
9481     fi
9482     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9483       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9484     else
9485       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'
9486     fi
9487     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9488
9489     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9490     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9491       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}'
9492     else
9493       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}'
9494     fi
9495     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}'
9496     hardcode_direct_CXX=no
9497     hardcode_automatic_CXX=yes
9498     hardcode_shlibpath_var_CXX=unsupported
9499     whole_archive_flag_spec_CXX='-all_load $convenience'
9500     link_all_deplibs_CXX=yes
9501   else
9502     ld_shlibs_CXX=no
9503   fi
9504     ;;
9505
9506   dgux*)
9507     case $cc_basename in
9508       ec++)
9509         # FIXME: insert proper C++ library support
9510         ld_shlibs_CXX=no
9511         ;;
9512       ghcx)
9513         # Green Hills C++ Compiler
9514         # FIXME: insert proper C++ library support
9515         ld_shlibs_CXX=no
9516         ;;
9517       *)
9518         # FIXME: insert proper C++ library support
9519         ld_shlibs_CXX=no
9520         ;;
9521     esac
9522     ;;
9523   freebsd12*)
9524     # C++ shared libraries reported to be fairly broken before switch to ELF
9525     ld_shlibs_CXX=no
9526     ;;
9527   freebsd-elf*)
9528     archive_cmds_need_lc_CXX=no
9529     ;;
9530   freebsd* | kfreebsd*-gnu)
9531     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9532     # conventions
9533     ld_shlibs_CXX=yes
9534     ;;
9535   gnu*)
9536     ;;
9537   hpux9*)
9538     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9539     hardcode_libdir_separator_CXX=:
9540     export_dynamic_flag_spec_CXX='${wl}-E'
9541     hardcode_direct_CXX=yes
9542     hardcode_minus_L_CXX=yes # Not in the search PATH,
9543                                 # but as the default
9544                                 # location of the library.
9545
9546     case $cc_basename in
9547     CC)
9548       # FIXME: insert proper C++ library support
9549       ld_shlibs_CXX=no
9550       ;;
9551     aCC)
9552       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'
9553       # Commands to make compiler produce verbose output that lists
9554       # what "hidden" libraries, object files and flags are used when
9555       # linking a shared library.
9556       #
9557       # There doesn't appear to be a way to prevent this compiler from
9558       # explicitly linking system object files so we need to strip them
9559       # from the output so that they don't get included in the library
9560       # dependencies.
9561       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'
9562       ;;
9563     *)
9564       if test "$GXX" = yes; then
9565         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'
9566       else
9567         # FIXME: insert proper C++ library support
9568         ld_shlibs_CXX=no
9569       fi
9570       ;;
9571     esac
9572     ;;
9573   hpux10*|hpux11*)
9574     if test $with_gnu_ld = no; then
9575       case "$host_cpu" in
9576       hppa*64*)
9577         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9578         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9579         hardcode_libdir_separator_CXX=:
9580         ;;
9581       ia64*)
9582         hardcode_libdir_flag_spec_CXX='-L$libdir'
9583         ;;
9584       *)
9585         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9586         hardcode_libdir_separator_CXX=:
9587         export_dynamic_flag_spec_CXX='${wl}-E'
9588         ;;
9589       esac
9590     fi
9591     case "$host_cpu" in
9592     hppa*64*)
9593       hardcode_direct_CXX=no
9594       hardcode_shlibpath_var_CXX=no
9595       ;;
9596     ia64*)
9597       hardcode_direct_CXX=no
9598       hardcode_shlibpath_var_CXX=no
9599       hardcode_minus_L_CXX=yes # Not in the search PATH,
9600                                               # but as the default
9601                                               # location of the library.
9602       ;;
9603     *)
9604       hardcode_direct_CXX=yes
9605       hardcode_minus_L_CXX=yes # Not in the search PATH,
9606                                               # but as the default
9607                                               # location of the library.
9608       ;;
9609     esac
9610
9611     case $cc_basename in
9612       CC)
9613         # FIXME: insert proper C++ library support
9614         ld_shlibs_CXX=no
9615         ;;
9616       aCC)
9617         case "$host_cpu" in
9618         hppa*64*|ia64*)
9619           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9620           ;;
9621         *)
9622           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9623           ;;
9624         esac
9625         # Commands to make compiler produce verbose output that lists
9626         # what "hidden" libraries, object files and flags are used when
9627         # linking a shared library.
9628         #
9629         # There doesn't appear to be a way to prevent this compiler from
9630         # explicitly linking system object files so we need to strip them
9631         # from the output so that they don't get included in the library
9632         # dependencies.
9633         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'
9634         ;;
9635       *)
9636         if test "$GXX" = yes; then
9637           if test $with_gnu_ld = no; then
9638             case "$host_cpu" in
9639             ia64*|hppa*64*)
9640               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9641               ;;
9642             *)
9643               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'
9644               ;;
9645             esac
9646           fi
9647         else
9648           # FIXME: insert proper C++ library support
9649           ld_shlibs_CXX=no
9650         fi
9651         ;;
9652     esac
9653     ;;
9654   irix5* | irix6*)
9655     case $cc_basename in
9656       CC)
9657         # SGI C++
9658         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'
9659
9660         # Archives containing C++ object files must be created using
9661         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9662         # necessary to make sure instantiated templates are included
9663         # in the archive.
9664         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9665         ;;
9666       *)
9667         if test "$GXX" = yes; then
9668           if test "$with_gnu_ld" = no; then
9669             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'
9670           else
9671             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'
9672           fi
9673         fi
9674         link_all_deplibs_CXX=yes
9675         ;;
9676     esac
9677     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9678     hardcode_libdir_separator_CXX=:
9679     ;;
9680   linux*)
9681     case $cc_basename in
9682       KCC)
9683         # Kuck and Associates, Inc. (KAI) C++ Compiler
9684
9685         # KCC will only create a shared library if the output file
9686         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9687         # to its proper name (with version) after linking.
9688         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'
9689         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'
9690         # Commands to make compiler produce verbose output that lists
9691         # what "hidden" libraries, object files and flags are used when
9692         # linking a shared library.
9693         #
9694         # There doesn't appear to be a way to prevent this compiler from
9695         # explicitly linking system object files so we need to strip them
9696         # from the output so that they don't get included in the library
9697         # dependencies.
9698         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'
9699
9700         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9701         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9702
9703         # Archives containing C++ object files must be created using
9704         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9705         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9706         ;;
9707       icpc)
9708         # Intel C++
9709         with_gnu_ld=yes
9710         archive_cmds_need_lc_CXX=no
9711         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9712         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'
9713         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9714         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9715         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9716         ;;
9717       cxx)
9718         # Compaq C++
9719         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9720         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'
9721
9722         runpath_var=LD_RUN_PATH
9723         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9724         hardcode_libdir_separator_CXX=:
9725
9726         # Commands to make compiler produce verbose output that lists
9727         # what "hidden" libraries, object files and flags are used when
9728         # linking a shared library.
9729         #
9730         # There doesn't appear to be a way to prevent this compiler from
9731         # explicitly linking system object files so we need to strip them
9732         # from the output so that they don't get included in the library
9733         # dependencies.
9734         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'
9735         ;;
9736     esac
9737     ;;
9738   lynxos*)
9739     # FIXME: insert proper C++ library support
9740     ld_shlibs_CXX=no
9741     ;;
9742   m88k*)
9743     # FIXME: insert proper C++ library support
9744     ld_shlibs_CXX=no
9745     ;;
9746   mvs*)
9747     case $cc_basename in
9748       cxx)
9749         # FIXME: insert proper C++ library support
9750         ld_shlibs_CXX=no
9751         ;;
9752       *)
9753         # FIXME: insert proper C++ library support
9754         ld_shlibs_CXX=no
9755         ;;
9756     esac
9757     ;;
9758   netbsd* | knetbsd*-gnu)
9759     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9760       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9761       wlarc=
9762       hardcode_libdir_flag_spec_CXX='-R$libdir'
9763       hardcode_direct_CXX=yes
9764       hardcode_shlibpath_var_CXX=no
9765     fi
9766     # Workaround some broken pre-1.5 toolchains
9767     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9768     ;;
9769   osf3*)
9770     case $cc_basename in
9771       KCC)
9772         # Kuck and Associates, Inc. (KAI) C++ Compiler
9773
9774         # KCC will only create a shared library if the output file
9775         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9776         # to its proper name (with version) after linking.
9777         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'
9778
9779         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9780         hardcode_libdir_separator_CXX=:
9781
9782         # Archives containing C++ object files must be created using
9783         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9784         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9785
9786         ;;
9787       RCC)
9788         # Rational C++ 2.4.1
9789         # FIXME: insert proper C++ library support
9790         ld_shlibs_CXX=no
9791         ;;
9792       cxx)
9793         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9794         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'
9795
9796         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9797         hardcode_libdir_separator_CXX=:
9798
9799         # Commands to make compiler produce verbose output that lists
9800         # what "hidden" libraries, object files and flags are used when
9801         # linking a shared library.
9802         #
9803         # There doesn't appear to be a way to prevent this compiler from
9804         # explicitly linking system object files so we need to strip them
9805         # from the output so that they don't get included in the library
9806         # dependencies.
9807         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'
9808         ;;
9809       *)
9810         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9811           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9812           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'
9813
9814           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9815           hardcode_libdir_separator_CXX=:
9816
9817           # Commands to make compiler produce verbose output that lists
9818           # what "hidden" libraries, object files and flags are used when
9819           # linking a shared library.
9820           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9821
9822         else
9823           # FIXME: insert proper C++ library support
9824           ld_shlibs_CXX=no
9825         fi
9826         ;;
9827     esac
9828     ;;
9829   osf4* | osf5*)
9830     case $cc_basename in
9831       KCC)
9832         # Kuck and Associates, Inc. (KAI) C++ Compiler
9833
9834         # KCC will only create a shared library if the output file
9835         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9836         # to its proper name (with version) after linking.
9837         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'
9838
9839         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9840         hardcode_libdir_separator_CXX=:
9841
9842         # Archives containing C++ object files must be created using
9843         # the KAI C++ compiler.
9844         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9845         ;;
9846       RCC)
9847         # Rational C++ 2.4.1
9848         # FIXME: insert proper C++ library support
9849         ld_shlibs_CXX=no
9850         ;;
9851       cxx)
9852         allow_undefined_flag_CXX=' -expect_unresolved \*'
9853         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'
9854         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9855           echo "-hidden">> $lib.exp~
9856           $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~
9857           $rm $lib.exp'
9858
9859         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9860         hardcode_libdir_separator_CXX=:
9861
9862         # Commands to make compiler produce verbose output that lists
9863         # what "hidden" libraries, object files and flags are used when
9864         # linking a shared library.
9865         #
9866         # There doesn't appear to be a way to prevent this compiler from
9867         # explicitly linking system object files so we need to strip them
9868         # from the output so that they don't get included in the library
9869         # dependencies.
9870         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'
9871         ;;
9872       *)
9873         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9874           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9875          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'
9876
9877           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9878           hardcode_libdir_separator_CXX=:
9879
9880           # Commands to make compiler produce verbose output that lists
9881           # what "hidden" libraries, object files and flags are used when
9882           # linking a shared library.
9883           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9884
9885         else
9886           # FIXME: insert proper C++ library support
9887           ld_shlibs_CXX=no
9888         fi
9889         ;;
9890     esac
9891     ;;
9892   psos*)
9893     # FIXME: insert proper C++ library support
9894     ld_shlibs_CXX=no
9895     ;;
9896   sco*)
9897     archive_cmds_need_lc_CXX=no
9898     case $cc_basename in
9899       CC)
9900         # FIXME: insert proper C++ library support
9901         ld_shlibs_CXX=no
9902         ;;
9903       *)
9904         # FIXME: insert proper C++ library support
9905         ld_shlibs_CXX=no
9906         ;;
9907     esac
9908     ;;
9909   sunos4*)
9910     case $cc_basename in
9911       CC)
9912         # Sun C++ 4.x
9913         # FIXME: insert proper C++ library support
9914         ld_shlibs_CXX=no
9915         ;;
9916       lcc)
9917         # Lucid
9918         # FIXME: insert proper C++ library support
9919         ld_shlibs_CXX=no
9920         ;;
9921       *)
9922         # FIXME: insert proper C++ library support
9923         ld_shlibs_CXX=no
9924         ;;
9925     esac
9926     ;;
9927   solaris*)
9928     case $cc_basename in
9929       CC)
9930         # Sun C++ 4.2, 5.x and Centerline C++
9931         no_undefined_flag_CXX=' -zdefs'
9932         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9933         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9934         $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'
9935
9936         hardcode_libdir_flag_spec_CXX='-R$libdir'
9937         hardcode_shlibpath_var_CXX=no
9938         case $host_os in
9939           solaris2.0-5 | solaris2.0-5.*) ;;
9940           *)
9941             # The C++ compiler is used as linker so we must use $wl
9942             # flag to pass the commands to the underlying system
9943             # linker.
9944             # Supported since Solaris 2.6 (maybe 2.5.1?)
9945             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9946             ;;
9947         esac
9948         link_all_deplibs_CXX=yes
9949
9950         # Commands to make compiler produce verbose output that lists
9951         # what "hidden" libraries, object files and flags are used when
9952         # linking a shared library.
9953         #
9954         # There doesn't appear to be a way to prevent this compiler from
9955         # explicitly linking system object files so we need to strip them
9956         # from the output so that they don't get included in the library
9957         # dependencies.
9958         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'
9959
9960         # Archives containing C++ object files must be created using
9961         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
9962         # necessary to make sure instantiated templates are included
9963         # in the archive.
9964         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9965         ;;
9966       gcx)
9967         # Green Hills C++ Compiler
9968         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9969
9970         # The C++ compiler must be used to create the archive.
9971         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9972         ;;
9973       *)
9974         # GNU C++ compiler with Solaris linker
9975         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9976           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9977           if $CC --version | grep -v '^2\.7' > /dev/null; then
9978             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9979             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9980                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9981
9982             # Commands to make compiler produce verbose output that lists
9983             # what "hidden" libraries, object files and flags are used when
9984             # linking a shared library.
9985             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9986           else
9987             # g++ 2.7 appears to require `-G' NOT `-shared' on this
9988             # platform.
9989             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9990             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9991                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9992
9993             # Commands to make compiler produce verbose output that lists
9994             # what "hidden" libraries, object files and flags are used when
9995             # linking a shared library.
9996             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9997           fi
9998
9999           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10000         fi
10001         ;;
10002     esac
10003     ;;
10004   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10005     archive_cmds_need_lc_CXX=no
10006     ;;
10007   tandem*)
10008     case $cc_basename in
10009       NCC)
10010         # NonStop-UX NCC 3.20
10011         # FIXME: insert proper C++ library support
10012         ld_shlibs_CXX=no
10013         ;;
10014       *)
10015         # FIXME: insert proper C++ library support
10016         ld_shlibs_CXX=no
10017         ;;
10018     esac
10019     ;;
10020   vxworks*)
10021     # FIXME: insert proper C++ library support
10022     ld_shlibs_CXX=no
10023     ;;
10024   *)
10025     # FIXME: insert proper C++ library support
10026     ld_shlibs_CXX=no
10027     ;;
10028 esac
10029 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10030 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10031 test "$ld_shlibs_CXX" = no && can_build_shared=no
10032
10033 GCC_CXX="$GXX"
10034 LD_CXX="$LD"
10035
10036
10037 cat > conftest.$ac_ext <<EOF
10038 class Foo
10039 {
10040 public:
10041   Foo (void) { a = 0; }
10042 private:
10043   int a;
10044 };
10045 EOF
10046
10047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10048   (eval $ac_compile) 2>&5
10049   ac_status=$?
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); }; then
10052   # Parse the compiler output and extract the necessary
10053   # objects, libraries and library flags.
10054
10055   # Sentinel used to keep track of whether or not we are before
10056   # the conftest object file.
10057   pre_test_object_deps_done=no
10058
10059   # The `*' in the case matches for architectures that use `case' in
10060   # $output_verbose_cmd can trigger glob expansion during the loop
10061   # eval without this substitution.
10062   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10063
10064   for p in `eval $output_verbose_link_cmd`; do
10065     case $p in
10066
10067     -L* | -R* | -l*)
10068        # Some compilers place space between "-{L,R}" and the path.
10069        # Remove the space.
10070        if test $p = "-L" \
10071           || test $p = "-R"; then
10072          prev=$p
10073          continue
10074        else
10075          prev=
10076        fi
10077
10078        if test "$pre_test_object_deps_done" = no; then
10079          case $p in
10080          -L* | -R*)
10081            # Internal compiler library paths should come after those
10082            # provided the user.  The postdeps already come after the
10083            # user supplied libs so there is no need to process them.
10084            if test -z "$compiler_lib_search_path_CXX"; then
10085              compiler_lib_search_path_CXX="${prev}${p}"
10086            else
10087              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10088            fi
10089            ;;
10090          # The "-l" case would never come before the object being
10091          # linked, so don't bother handling this case.
10092          esac
10093        else
10094          if test -z "$postdeps_CXX"; then
10095            postdeps_CXX="${prev}${p}"
10096          else
10097            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10098          fi
10099        fi
10100        ;;
10101
10102     *.$objext)
10103        # This assumes that the test object file only shows up
10104        # once in the compiler output.
10105        if test "$p" = "conftest.$objext"; then
10106          pre_test_object_deps_done=yes
10107          continue
10108        fi
10109
10110        if test "$pre_test_object_deps_done" = no; then
10111          if test -z "$predep_objects_CXX"; then
10112            predep_objects_CXX="$p"
10113          else
10114            predep_objects_CXX="$predep_objects_CXX $p"
10115          fi
10116        else
10117          if test -z "$postdep_objects_CXX"; then
10118            postdep_objects_CXX="$p"
10119          else
10120            postdep_objects_CXX="$postdep_objects_CXX $p"
10121          fi
10122        fi
10123        ;;
10124
10125     *) ;; # Ignore the rest.
10126
10127     esac
10128   done
10129
10130   # Clean up.
10131   rm -f a.out a.exe
10132 else
10133   echo "libtool.m4: error: problem compiling CXX test program"
10134 fi
10135
10136 $rm -f confest.$objext
10137
10138 case " $postdeps_CXX " in
10139 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10140 esac
10141
10142 lt_prog_compiler_wl_CXX=
10143 lt_prog_compiler_pic_CXX=
10144 lt_prog_compiler_static_CXX=
10145
10146 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10147 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10148
10149   # C++ specific cases for pic, static, wl, etc.
10150   if test "$GXX" = yes; then
10151     lt_prog_compiler_wl_CXX='-Wl,'
10152     lt_prog_compiler_static_CXX='-static'
10153
10154     case $host_os in
10155     aix*)
10156       # All AIX code is PIC.
10157       if test "$host_cpu" = ia64; then
10158         # AIX 5 now supports IA64 processor
10159         lt_prog_compiler_static_CXX='-Bstatic'
10160       fi
10161       ;;
10162     amigaos*)
10163       # FIXME: we need at least 68020 code to build shared libraries, but
10164       # adding the `-m68020' flag to GCC prevents building anything better,
10165       # like `-m68040'.
10166       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10167       ;;
10168     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10169       # PIC is the default for these OSes.
10170       ;;
10171     mingw* | os2* | pw32*)
10172       # This hack is so that the source file can tell whether it is being
10173       # built for inclusion in a dll (and should export symbols for example).
10174       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10175       ;;
10176     darwin* | rhapsody*)
10177       # PIC is the default on this platform
10178       # Common symbols not allowed in MH_DYLIB files
10179       lt_prog_compiler_pic_CXX='-fno-common'
10180       ;;
10181     *djgpp*)
10182       # DJGPP does not support shared libraries at all
10183       lt_prog_compiler_pic_CXX=
10184       ;;
10185     sysv4*MP*)
10186       if test -d /usr/nec; then
10187         lt_prog_compiler_pic_CXX=-Kconform_pic
10188       fi
10189       ;;
10190     hpux*)
10191       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10192       # not for PA HP-UX.
10193       case "$host_cpu" in
10194       hppa*64*|ia64*)
10195         ;;
10196       *)
10197         lt_prog_compiler_pic_CXX='-fPIC'
10198         ;;
10199       esac
10200       ;;
10201     *)
10202       lt_prog_compiler_pic_CXX='-fPIC'
10203       ;;
10204     esac
10205   else
10206     case $host_os in
10207       aix4* | aix5*)
10208         # All AIX code is PIC.
10209         if test "$host_cpu" = ia64; then
10210           # AIX 5 now supports IA64 processor
10211           lt_prog_compiler_static_CXX='-Bstatic'
10212         else
10213           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10214         fi
10215         ;;
10216       chorus*)
10217         case $cc_basename in
10218         cxch68)
10219           # Green Hills C++ Compiler
10220           # _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"
10221           ;;
10222         esac
10223         ;;
10224       dgux*)
10225         case $cc_basename in
10226           ec++)
10227             lt_prog_compiler_pic_CXX='-KPIC'
10228             ;;
10229           ghcx)
10230             # Green Hills C++ Compiler
10231             lt_prog_compiler_pic_CXX='-pic'
10232             ;;
10233           *)
10234             ;;
10235         esac
10236         ;;
10237       freebsd* | kfreebsd*-gnu)
10238         # FreeBSD uses GNU C++
10239         ;;
10240       hpux9* | hpux10* | hpux11*)
10241         case $cc_basename in
10242           CC)
10243             lt_prog_compiler_wl_CXX='-Wl,'
10244             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10245             if test "$host_cpu" != ia64; then
10246               lt_prog_compiler_pic_CXX='+Z'
10247             fi
10248             ;;
10249           aCC)
10250             lt_prog_compiler_wl_CXX='-Wl,'
10251             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10252             case "$host_cpu" in
10253             hppa*64*|ia64*)
10254               # +Z the default
10255               ;;
10256             *)
10257               lt_prog_compiler_pic_CXX='+Z'
10258               ;;
10259             esac
10260             ;;
10261           *)
10262             ;;
10263         esac
10264         ;;
10265       irix5* | irix6* | nonstopux*)
10266         case $cc_basename in
10267           CC)
10268             lt_prog_compiler_wl_CXX='-Wl,'
10269             lt_prog_compiler_static_CXX='-non_shared'
10270             # CC pic flag -KPIC is the default.
10271             ;;
10272           *)
10273             ;;
10274         esac
10275         ;;
10276       linux*)
10277         case $cc_basename in
10278           KCC)
10279             # KAI C++ Compiler
10280             lt_prog_compiler_wl_CXX='--backend -Wl,'
10281             lt_prog_compiler_pic_CXX='-fPIC'
10282             ;;
10283           icpc)
10284             # Intel C++
10285             lt_prog_compiler_wl_CXX='-Wl,'
10286             lt_prog_compiler_pic_CXX='-KPIC'
10287             lt_prog_compiler_static_CXX='-static'
10288             ;;
10289           cxx)
10290             # Compaq C++
10291             # Make sure the PIC flag is empty.  It appears that all Alpha
10292             # Linux and Compaq Tru64 Unix objects are PIC.
10293             lt_prog_compiler_pic_CXX=
10294             lt_prog_compiler_static_CXX='-non_shared'
10295             ;;
10296           *)
10297             ;;
10298         esac
10299         ;;
10300       lynxos*)
10301         ;;
10302       m88k*)
10303         ;;
10304       mvs*)
10305         case $cc_basename in
10306           cxx)
10307             lt_prog_compiler_pic_CXX='-W c,exportall'
10308             ;;
10309           *)
10310             ;;
10311         esac
10312         ;;
10313       netbsd* | knetbsd*-gnu)
10314         ;;
10315       osf3* | osf4* | osf5*)
10316         case $cc_basename in
10317           KCC)
10318             lt_prog_compiler_wl_CXX='--backend -Wl,'
10319             ;;
10320           RCC)
10321             # Rational C++ 2.4.1
10322             lt_prog_compiler_pic_CXX='-pic'
10323             ;;
10324           cxx)
10325             # Digital/Compaq C++
10326             lt_prog_compiler_wl_CXX='-Wl,'
10327             # Make sure the PIC flag is empty.  It appears that all Alpha
10328             # Linux and Compaq Tru64 Unix objects are PIC.
10329             lt_prog_compiler_pic_CXX=
10330             lt_prog_compiler_static_CXX='-non_shared'
10331             ;;
10332           *)
10333             ;;
10334         esac
10335         ;;
10336       psos*)
10337         ;;
10338       sco*)
10339         case $cc_basename in
10340           CC)
10341             lt_prog_compiler_pic_CXX='-fPIC'
10342             ;;
10343           *)
10344             ;;
10345         esac
10346         ;;
10347       solaris*)
10348         case $cc_basename in
10349           CC)
10350             # Sun C++ 4.2, 5.x and Centerline C++
10351             lt_prog_compiler_pic_CXX='-KPIC'
10352             lt_prog_compiler_static_CXX='-Bstatic'
10353             lt_prog_compiler_wl_CXX='-Qoption ld '
10354             ;;
10355           gcx)
10356             # Green Hills C++ Compiler
10357             lt_prog_compiler_pic_CXX='-PIC'
10358             ;;
10359           *)
10360             ;;
10361         esac
10362         ;;
10363       sunos4*)
10364         case $cc_basename in
10365           CC)
10366             # Sun C++ 4.x
10367             lt_prog_compiler_pic_CXX='-pic'
10368             lt_prog_compiler_static_CXX='-Bstatic'
10369             ;;
10370           lcc)
10371             # Lucid
10372             lt_prog_compiler_pic_CXX='-pic'
10373             ;;
10374           *)
10375             ;;
10376         esac
10377         ;;
10378       tandem*)
10379         case $cc_basename in
10380           NCC)
10381             # NonStop-UX NCC 3.20
10382             lt_prog_compiler_pic_CXX='-KPIC'
10383             ;;
10384           *)
10385             ;;
10386         esac
10387         ;;
10388       unixware*)
10389         ;;
10390       vxworks*)
10391         ;;
10392       *)
10393         lt_prog_compiler_can_build_shared_CXX=no
10394         ;;
10395     esac
10396   fi
10397
10398 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10399 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10400
10401 #
10402 # Check to make sure the PIC flag actually works.
10403 #
10404 if test -n "$lt_prog_compiler_pic_CXX"; then
10405
10406 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10407 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10408 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10409   echo $ECHO_N "(cached) $ECHO_C" >&6
10410 else
10411   lt_prog_compiler_pic_works_CXX=no
10412   ac_outfile=conftest.$ac_objext
10413    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10414    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10415    # Insert the option either (1) after the last *FLAGS variable, or
10416    # (2) before a word containing "conftest.", or (3) at the end.
10417    # Note that $ac_compile itself does not contain backslashes and begins
10418    # with a dollar sign (not a hyphen), so the echo should work correctly.
10419    # The option is referenced via a variable to avoid confusing sed.
10420    lt_compile=`echo "$ac_compile" | $SED \
10421    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10422    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10423    -e 's:$: $lt_compiler_flag:'`
10424    (eval echo "\"\$as_me:10424: $lt_compile\"" >&5)
10425    (eval "$lt_compile" 2>conftest.err)
10426    ac_status=$?
10427    cat conftest.err >&5
10428    echo "$as_me:10428: \$? = $ac_status" >&5
10429    if (exit $ac_status) && test -s "$ac_outfile"; then
10430      # The compiler can only warn and ignore the option if not recognized
10431      # So say no if there are warnings
10432      if test ! -s conftest.err; then
10433        lt_prog_compiler_pic_works_CXX=yes
10434      fi
10435    fi
10436    $rm conftest*
10437
10438 fi
10439 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10440 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10441
10442 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10443     case $lt_prog_compiler_pic_CXX in
10444      "" | " "*) ;;
10445      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10446      esac
10447 else
10448     lt_prog_compiler_pic_CXX=
10449      lt_prog_compiler_can_build_shared_CXX=no
10450 fi
10451
10452 fi
10453 case "$host_os" in
10454   # For platforms which do not support PIC, -DPIC is meaningless:
10455   *djgpp*)
10456     lt_prog_compiler_pic_CXX=
10457     ;;
10458   *)
10459     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10460     ;;
10461 esac
10462
10463 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10464 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10465 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10466   echo $ECHO_N "(cached) $ECHO_C" >&6
10467 else
10468   lt_cv_prog_compiler_c_o_CXX=no
10469    $rm -r conftest 2>/dev/null
10470    mkdir conftest
10471    cd conftest
10472    mkdir out
10473    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10474
10475    lt_compiler_flag="-o out/conftest2.$ac_objext"
10476    # Insert the option either (1) after the last *FLAGS variable, or
10477    # (2) before a word containing "conftest.", or (3) at the end.
10478    # Note that $ac_compile itself does not contain backslashes and begins
10479    # with a dollar sign (not a hyphen), so the echo should work correctly.
10480    lt_compile=`echo "$ac_compile" | $SED \
10481    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10482    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10483    -e 's:$: $lt_compiler_flag:'`
10484    (eval echo "\"\$as_me:10484: $lt_compile\"" >&5)
10485    (eval "$lt_compile" 2>out/conftest.err)
10486    ac_status=$?
10487    cat out/conftest.err >&5
10488    echo "$as_me:10488: \$? = $ac_status" >&5
10489    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10490    then
10491      # The compiler can only warn and ignore the option if not recognized
10492      # So say no if there are warnings
10493      if test ! -s out/conftest.err; then
10494        lt_cv_prog_compiler_c_o_CXX=yes
10495      fi
10496    fi
10497    chmod u+w .
10498    $rm conftest*
10499    # SGI C++ compiler will create directory out/ii_files/ for
10500    # template instantiation
10501    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10502    $rm out/* && rmdir out
10503    cd ..
10504    rmdir conftest
10505    $rm conftest*
10506
10507 fi
10508 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10509 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10510
10511
10512 hard_links="nottested"
10513 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10514   # do not overwrite the value of need_locks provided by the user
10515   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10516 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10517   hard_links=yes
10518   $rm conftest*
10519   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10520   touch conftest.a
10521   ln conftest.a conftest.b 2>&5 || hard_links=no
10522   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10523   echo "$as_me:$LINENO: result: $hard_links" >&5
10524 echo "${ECHO_T}$hard_links" >&6
10525   if test "$hard_links" = no; then
10526     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10527 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10528     need_locks=warn
10529   fi
10530 else
10531   need_locks=no
10532 fi
10533
10534 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10535 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10536
10537   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10538   case $host_os in
10539   aix4* | aix5*)
10540     # If we're using GNU nm, then we don't want the "-C" option.
10541     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10542     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10543       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'
10544     else
10545       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'
10546     fi
10547     ;;
10548   pw32*)
10549     export_symbols_cmds_CXX="$ltdll_cmds"
10550   ;;
10551   cygwin* | mingw*)
10552     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10553   ;;
10554   linux*)
10555     link_all_deplibs_CXX=no
10556   ;;
10557   *)
10558     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10559   ;;
10560   esac
10561
10562 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10563 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10564 test "$ld_shlibs_CXX" = no && can_build_shared=no
10565
10566 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10567 if test "$GCC" = yes; then
10568   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10569 fi
10570
10571 #
10572 # Do we need to explicitly link libc?
10573 #
10574 case "x$archive_cmds_need_lc_CXX" in
10575 x|xyes)
10576   # Assume -lc should be added
10577   archive_cmds_need_lc_CXX=yes
10578
10579   if test "$enable_shared" = yes && test "$GCC" = yes; then
10580     case $archive_cmds_CXX in
10581     *'~'*)
10582       # FIXME: we may have to deal with multi-command sequences.
10583       ;;
10584     '$CC '*)
10585       # Test whether the compiler implicitly links with -lc since on some
10586       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10587       # to ld, don't add -lc before -lgcc.
10588       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10589 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10590       $rm conftest*
10591       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10592
10593       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10594   (eval $ac_compile) 2>&5
10595   ac_status=$?
10596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597   (exit $ac_status); } 2>conftest.err; then
10598         soname=conftest
10599         lib=conftest
10600         libobjs=conftest.$ac_objext
10601         deplibs=
10602         wl=$lt_prog_compiler_wl_CXX
10603         compiler_flags=-v
10604         linker_flags=-v
10605         verstring=
10606         output_objdir=.
10607         libname=conftest
10608         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10609         allow_undefined_flag_CXX=
10610         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10611   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); }
10615         then
10616           archive_cmds_need_lc_CXX=no
10617         else
10618           archive_cmds_need_lc_CXX=yes
10619         fi
10620         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10621       else
10622         cat conftest.err 1>&5
10623       fi
10624       $rm conftest*
10625       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10626 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10627       ;;
10628     esac
10629   fi
10630   ;;
10631 esac
10632
10633 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10634 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10635 library_names_spec=
10636 libname_spec='lib$name'
10637 soname_spec=
10638 shrext_cmds=".so"
10639 postinstall_cmds=
10640 postuninstall_cmds=
10641 finish_cmds=
10642 finish_eval=
10643 shlibpath_var=
10644 shlibpath_overrides_runpath=unknown
10645 version_type=none
10646 dynamic_linker="$host_os ld.so"
10647 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10648 if test "$GCC" = yes; then
10649   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10650   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10651     # if the path contains ";" then we assume it to be the separator
10652     # otherwise default to the standard path separator (i.e. ":") - it is
10653     # assumed that no part of a normal pathname contains ";" but that should
10654     # okay in the real world where ";" in dirpaths is itself problematic.
10655     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10656   else
10657     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10658   fi
10659 else
10660   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10661 fi
10662 need_lib_prefix=unknown
10663 hardcode_into_libs=no
10664
10665 # when you set need_version to no, make sure it does not cause -set_version
10666 # flags to be left without arguments
10667 need_version=unknown
10668
10669 case $host_os in
10670 aix3*)
10671   version_type=linux
10672   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10673   shlibpath_var=LIBPATH
10674
10675   # AIX 3 has no versioning support, so we append a major version to the name.
10676   soname_spec='${libname}${release}${shared_ext}$major'
10677   ;;
10678
10679 aix4* | aix5*)
10680   version_type=linux
10681   need_lib_prefix=no
10682   need_version=no
10683   hardcode_into_libs=yes
10684   if test "$host_cpu" = ia64; then
10685     # AIX 5 supports IA64
10686     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10687     shlibpath_var=LD_LIBRARY_PATH
10688   else
10689     # With GCC up to 2.95.x, collect2 would create an import file
10690     # for dependence libraries.  The import file would start with
10691     # the line `#! .'.  This would cause the generated library to
10692     # depend on `.', always an invalid library.  This was fixed in
10693     # development snapshots of GCC prior to 3.0.
10694     case $host_os in
10695       aix4 | aix4.[01] | aix4.[01].*)
10696       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10697            echo ' yes '
10698            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10699         :
10700       else
10701         can_build_shared=no
10702       fi
10703       ;;
10704     esac
10705     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10706     # soname into executable. Probably we can add versioning support to
10707     # collect2, so additional links can be useful in future.
10708     if test "$aix_use_runtimelinking" = yes; then
10709       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10710       # instead of lib<name>.a to let people know that these are not
10711       # typical AIX shared libraries.
10712       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10713     else
10714       # We preserve .a as extension for shared libraries through AIX4.2
10715       # and later when we are not doing run time linking.
10716       library_names_spec='${libname}${release}.a $libname.a'
10717       soname_spec='${libname}${release}${shared_ext}$major'
10718     fi
10719     shlibpath_var=LIBPATH
10720   fi
10721   ;;
10722
10723 amigaos*)
10724   library_names_spec='$libname.ixlibrary $libname.a'
10725   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10726   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'
10727   ;;
10728
10729 beos*)
10730   library_names_spec='${libname}${shared_ext}'
10731   dynamic_linker="$host_os ld.so"
10732   shlibpath_var=LIBRARY_PATH
10733   ;;
10734
10735 bsdi4*)
10736   version_type=linux
10737   need_version=no
10738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739   soname_spec='${libname}${release}${shared_ext}$major'
10740   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10741   shlibpath_var=LD_LIBRARY_PATH
10742   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10743   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10744   # the default ld.so.conf also contains /usr/contrib/lib and
10745   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10746   # libtool to hard-code these into programs
10747   ;;
10748
10749 cygwin* | mingw* | pw32*)
10750   version_type=windows
10751   shrext_cmds=".dll"
10752   need_version=no
10753   need_lib_prefix=no
10754
10755   case $GCC,$host_os in
10756   yes,cygwin* | yes,mingw* | yes,pw32*)
10757     library_names_spec='$libname.dll.a'
10758     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10759     postinstall_cmds='base_file=`basename \${file}`~
10760       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10761       dldir=$destdir/`dirname \$dlpath`~
10762       test -d \$dldir || mkdir -p \$dldir~
10763       $install_prog $dir/$dlname \$dldir/$dlname'
10764     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10765       dlpath=$dir/\$dldll~
10766        $rm \$dlpath'
10767     shlibpath_overrides_runpath=yes
10768
10769     case $host_os in
10770     cygwin*)
10771       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10772       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10773       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10774       ;;
10775     mingw*)
10776       # MinGW DLLs use traditional 'lib' prefix
10777       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10778       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10779       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10780         # It is most probably a Windows format PATH printed by
10781         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10782         # path with ; separators, and with drive letters. We can handle the
10783         # drive letters (cygwin fileutils understands them), so leave them,
10784         # especially as we might pass files found there to a mingw objdump,
10785         # which wouldn't understand a cygwinified path. Ahh.
10786         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10787       else
10788         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10789       fi
10790       ;;
10791     pw32*)
10792       # pw32 DLLs use 'pw' prefix rather than 'lib'
10793       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10794       ;;
10795     esac
10796     ;;
10797
10798   *)
10799     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10800     ;;
10801   esac
10802   dynamic_linker='Win32 ld.exe'
10803   # FIXME: first we should search . and the directory the executable is in
10804   shlibpath_var=PATH
10805   ;;
10806
10807 darwin* | rhapsody*)
10808   dynamic_linker="$host_os dyld"
10809   version_type=darwin
10810   need_lib_prefix=no
10811   need_version=no
10812   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10813   soname_spec='${libname}${release}${major}$shared_ext'
10814   shlibpath_overrides_runpath=yes
10815   shlibpath_var=DYLD_LIBRARY_PATH
10816   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10817   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10818   if test "$GCC" = yes; then
10819     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"`
10820   else
10821     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10822   fi
10823   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10824   ;;
10825
10826 dgux*)
10827   version_type=linux
10828   need_lib_prefix=no
10829   need_version=no
10830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10831   soname_spec='${libname}${release}${shared_ext}$major'
10832   shlibpath_var=LD_LIBRARY_PATH
10833   ;;
10834
10835 freebsd1*)
10836   dynamic_linker=no
10837   ;;
10838
10839 kfreebsd*-gnu)
10840   version_type=linux
10841   need_lib_prefix=no
10842   need_version=no
10843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10844   soname_spec='${libname}${release}${shared_ext}$major'
10845   shlibpath_var=LD_LIBRARY_PATH
10846   shlibpath_overrides_runpath=no
10847   hardcode_into_libs=yes
10848   dynamic_linker='GNU ld.so'
10849   ;;
10850
10851 freebsd*)
10852   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10853   version_type=freebsd-$objformat
10854   case $version_type in
10855     freebsd-elf*)
10856       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10857       need_version=no
10858       need_lib_prefix=no
10859       ;;
10860     freebsd-*)
10861       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10862       need_version=yes
10863       ;;
10864   esac
10865   shlibpath_var=LD_LIBRARY_PATH
10866   case $host_os in
10867   freebsd2*)
10868     shlibpath_overrides_runpath=yes
10869     ;;
10870   freebsd3.01* | freebsdelf3.01*)
10871     shlibpath_overrides_runpath=yes
10872     hardcode_into_libs=yes
10873     ;;
10874   *) # from 3.2 on
10875     shlibpath_overrides_runpath=no
10876     hardcode_into_libs=yes
10877     ;;
10878   esac
10879   ;;
10880
10881 gnu*)
10882   version_type=linux
10883   need_lib_prefix=no
10884   need_version=no
10885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10886   soname_spec='${libname}${release}${shared_ext}$major'
10887   shlibpath_var=LD_LIBRARY_PATH
10888   hardcode_into_libs=yes
10889   ;;
10890
10891 hpux9* | hpux10* | hpux11*)
10892   # Give a soname corresponding to the major version so that dld.sl refuses to
10893   # link against other versions.
10894   version_type=sunos
10895   need_lib_prefix=no
10896   need_version=no
10897   case "$host_cpu" in
10898   ia64*)
10899     shrext_cmds='.so'
10900     hardcode_into_libs=yes
10901     dynamic_linker="$host_os dld.so"
10902     shlibpath_var=LD_LIBRARY_PATH
10903     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905     soname_spec='${libname}${release}${shared_ext}$major'
10906     if test "X$HPUX_IA64_MODE" = X32; then
10907       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10908     else
10909       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10910     fi
10911     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10912     ;;
10913    hppa*64*)
10914      shrext_cmds='.sl'
10915      hardcode_into_libs=yes
10916      dynamic_linker="$host_os dld.sl"
10917      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10918      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10919      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10920      soname_spec='${libname}${release}${shared_ext}$major'
10921      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10922      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10923      ;;
10924    *)
10925     shrext_cmds='.sl'
10926     dynamic_linker="$host_os dld.sl"
10927     shlibpath_var=SHLIB_PATH
10928     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10930     soname_spec='${libname}${release}${shared_ext}$major'
10931     ;;
10932   esac
10933   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10934   postinstall_cmds='chmod 555 $lib'
10935   ;;
10936
10937 irix5* | irix6* | nonstopux*)
10938   case $host_os in
10939     nonstopux*) version_type=nonstopux ;;
10940     *)
10941         if test "$lt_cv_prog_gnu_ld" = yes; then
10942                 version_type=linux
10943         else
10944                 version_type=irix
10945         fi ;;
10946   esac
10947   need_lib_prefix=no
10948   need_version=no
10949   soname_spec='${libname}${release}${shared_ext}$major'
10950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10951   case $host_os in
10952   irix5* | nonstopux*)
10953     libsuff= shlibsuff=
10954     ;;
10955   *)
10956     case $LD in # libtool.m4 will add one of these switches to LD
10957     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10958       libsuff= shlibsuff= libmagic=32-bit;;
10959     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10960       libsuff=32 shlibsuff=N32 libmagic=N32;;
10961     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10962       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10963     *) libsuff= shlibsuff= libmagic=never-match;;
10964     esac
10965     ;;
10966   esac
10967   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10968   shlibpath_overrides_runpath=no
10969   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10970   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10971   hardcode_into_libs=yes
10972   ;;
10973
10974 # No shared lib support for Linux oldld, aout, or coff.
10975 linux*oldld* | linux*aout* | linux*coff*)
10976   dynamic_linker=no
10977   ;;
10978
10979 # This must be Linux ELF.
10980 linux*)
10981   version_type=linux
10982   need_lib_prefix=no
10983   need_version=no
10984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10985   soname_spec='${libname}${release}${shared_ext}$major'
10986   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10987   shlibpath_var=LD_LIBRARY_PATH
10988   shlibpath_overrides_runpath=no
10989   # This implies no fast_install, which is unacceptable.
10990   # Some rework will be needed to allow for fast_install
10991   # before this can be enabled.
10992   hardcode_into_libs=yes
10993
10994   # Append ld.so.conf contents to the search path
10995   if test -f /etc/ld.so.conf; then
10996     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
10997     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10998   fi
10999
11000   # We used to test for /lib/ld.so.1 and disable shared libraries on
11001   # powerpc, because MkLinux only supported shared libraries with the
11002   # GNU dynamic linker.  Since this was broken with cross compilers,
11003   # most powerpc-linux boxes support dynamic linking these days and
11004   # people can always --disable-shared, the test was removed, and we
11005   # assume the GNU/Linux dynamic linker is in use.
11006   dynamic_linker='GNU/Linux ld.so'
11007   ;;
11008
11009 knetbsd*-gnu)
11010   version_type=linux
11011   need_lib_prefix=no
11012   need_version=no
11013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11014   soname_spec='${libname}${release}${shared_ext}$major'
11015   shlibpath_var=LD_LIBRARY_PATH
11016   shlibpath_overrides_runpath=no
11017   hardcode_into_libs=yes
11018   dynamic_linker='GNU ld.so'
11019   ;;
11020
11021 netbsd*)
11022   version_type=sunos
11023   need_lib_prefix=no
11024   need_version=no
11025   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11027     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11028     dynamic_linker='NetBSD (a.out) ld.so'
11029   else
11030     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11031     soname_spec='${libname}${release}${shared_ext}$major'
11032     dynamic_linker='NetBSD ld.elf_so'
11033   fi
11034   shlibpath_var=LD_LIBRARY_PATH
11035   shlibpath_overrides_runpath=yes
11036   hardcode_into_libs=yes
11037   ;;
11038
11039 newsos6)
11040   version_type=linux
11041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042   shlibpath_var=LD_LIBRARY_PATH
11043   shlibpath_overrides_runpath=yes
11044   ;;
11045
11046 nto-qnx*)
11047   version_type=linux
11048   need_lib_prefix=no
11049   need_version=no
11050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051   soname_spec='${libname}${release}${shared_ext}$major'
11052   shlibpath_var=LD_LIBRARY_PATH
11053   shlibpath_overrides_runpath=yes
11054   ;;
11055
11056 openbsd*)
11057   version_type=sunos
11058   need_lib_prefix=no
11059   need_version=yes
11060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11061   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11062   shlibpath_var=LD_LIBRARY_PATH
11063   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11064     case $host_os in
11065       openbsd2.[89] | openbsd2.[89].*)
11066         shlibpath_overrides_runpath=no
11067         ;;
11068       *)
11069         shlibpath_overrides_runpath=yes
11070         ;;
11071       esac
11072   else
11073     shlibpath_overrides_runpath=yes
11074   fi
11075   ;;
11076
11077 os2*)
11078   libname_spec='$name'
11079   shrext_cmds=".dll"
11080   need_lib_prefix=no
11081   library_names_spec='$libname${shared_ext} $libname.a'
11082   dynamic_linker='OS/2 ld.exe'
11083   shlibpath_var=LIBPATH
11084   ;;
11085
11086 osf3* | osf4* | osf5*)
11087   version_type=osf
11088   need_lib_prefix=no
11089   need_version=no
11090   soname_spec='${libname}${release}${shared_ext}$major'
11091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092   shlibpath_var=LD_LIBRARY_PATH
11093   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11094   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11095   ;;
11096
11097 sco3.2v5*)
11098   version_type=osf
11099   soname_spec='${libname}${release}${shared_ext}$major'
11100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11101   shlibpath_var=LD_LIBRARY_PATH
11102   ;;
11103
11104 solaris*)
11105   version_type=linux
11106   need_lib_prefix=no
11107   need_version=no
11108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11109   soname_spec='${libname}${release}${shared_ext}$major'
11110   shlibpath_var=LD_LIBRARY_PATH
11111   shlibpath_overrides_runpath=yes
11112   hardcode_into_libs=yes
11113   # ldd complains unless libraries are executable
11114   postinstall_cmds='chmod +x $lib'
11115   ;;
11116
11117 sunos4*)
11118   version_type=sunos
11119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11120   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11121   shlibpath_var=LD_LIBRARY_PATH
11122   shlibpath_overrides_runpath=yes
11123   if test "$with_gnu_ld" = yes; then
11124     need_lib_prefix=no
11125   fi
11126   need_version=yes
11127   ;;
11128
11129 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11130   version_type=linux
11131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11132   soname_spec='${libname}${release}${shared_ext}$major'
11133   shlibpath_var=LD_LIBRARY_PATH
11134   case $host_vendor in
11135     sni)
11136       shlibpath_overrides_runpath=no
11137       need_lib_prefix=no
11138       export_dynamic_flag_spec='${wl}-Blargedynsym'
11139       runpath_var=LD_RUN_PATH
11140       ;;
11141     siemens)
11142       need_lib_prefix=no
11143       ;;
11144     motorola)
11145       need_lib_prefix=no
11146       need_version=no
11147       shlibpath_overrides_runpath=no
11148       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11149       ;;
11150   esac
11151   ;;
11152
11153 sysv4*MP*)
11154   if test -d /usr/nec ;then
11155     version_type=linux
11156     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11157     soname_spec='$libname${shared_ext}.$major'
11158     shlibpath_var=LD_LIBRARY_PATH
11159   fi
11160   ;;
11161
11162 uts4*)
11163   version_type=linux
11164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165   soname_spec='${libname}${release}${shared_ext}$major'
11166   shlibpath_var=LD_LIBRARY_PATH
11167   ;;
11168
11169 *)
11170   dynamic_linker=no
11171   ;;
11172 esac
11173 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11174 echo "${ECHO_T}$dynamic_linker" >&6
11175 test "$dynamic_linker" = no && can_build_shared=no
11176
11177 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11178 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11179 hardcode_action_CXX=
11180 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11181    test -n "$runpath_var CXX" || \
11182    test "X$hardcode_automatic_CXX"="Xyes" ; then
11183
11184   # We can hardcode non-existant directories.
11185   if test "$hardcode_direct_CXX" != no &&
11186      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11187      # have to relink, otherwise we might link with an installed library
11188      # when we should be linking with a yet-to-be-installed one
11189      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11190      test "$hardcode_minus_L_CXX" != no; then
11191     # Linking always hardcodes the temporary library directory.
11192     hardcode_action_CXX=relink
11193   else
11194     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11195     hardcode_action_CXX=immediate
11196   fi
11197 else
11198   # We cannot hardcode anything, or else we can only hardcode existing
11199   # directories.
11200   hardcode_action_CXX=unsupported
11201 fi
11202 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11203 echo "${ECHO_T}$hardcode_action_CXX" >&6
11204
11205 if test "$hardcode_action_CXX" = relink; then
11206   # Fast installation is not supported
11207   enable_fast_install=no
11208 elif test "$shlibpath_overrides_runpath" = yes ||
11209      test "$enable_shared" = no; then
11210   # Fast installation is not necessary
11211   enable_fast_install=needless
11212 fi
11213
11214 striplib=
11215 old_striplib=
11216 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11217 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11218 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11219   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11220   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11221   echo "$as_me:$LINENO: result: yes" >&5
11222 echo "${ECHO_T}yes" >&6
11223 else
11224 # FIXME - insert some real tests, host_os isn't really good enough
11225   case $host_os in
11226    darwin*)
11227        if test -n "$STRIP" ; then
11228          striplib="$STRIP -x"
11229          echo "$as_me:$LINENO: result: yes" >&5
11230 echo "${ECHO_T}yes" >&6
11231        else
11232   echo "$as_me:$LINENO: result: no" >&5
11233 echo "${ECHO_T}no" >&6
11234 fi
11235        ;;
11236    *)
11237   echo "$as_me:$LINENO: result: no" >&5
11238 echo "${ECHO_T}no" >&6
11239     ;;
11240   esac
11241 fi
11242
11243 if test "x$enable_dlopen" != xyes; then
11244   enable_dlopen=unknown
11245   enable_dlopen_self=unknown
11246   enable_dlopen_self_static=unknown
11247 else
11248   lt_cv_dlopen=no
11249   lt_cv_dlopen_libs=
11250
11251   case $host_os in
11252   beos*)
11253     lt_cv_dlopen="load_add_on"
11254     lt_cv_dlopen_libs=
11255     lt_cv_dlopen_self=yes
11256     ;;
11257
11258   mingw* | pw32*)
11259     lt_cv_dlopen="LoadLibrary"
11260     lt_cv_dlopen_libs=
11261    ;;
11262
11263   cygwin*)
11264     lt_cv_dlopen="dlopen"
11265     lt_cv_dlopen_libs=
11266    ;;
11267
11268   darwin*)
11269   # if libdl is installed we need to link against it
11270     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11271 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11272 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11273   echo $ECHO_N "(cached) $ECHO_C" >&6
11274 else
11275   ac_check_lib_save_LIBS=$LIBS
11276 LIBS="-ldl  $LIBS"
11277 cat >conftest.$ac_ext <<_ACEOF
11278 #line $LINENO "configure"
11279 /* confdefs.h.  */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h.  */
11284
11285 /* Override any gcc2 internal prototype to avoid an error.  */
11286 #ifdef __cplusplus
11287 extern "C"
11288 #endif
11289 /* We use char because int might match the return type of a gcc2
11290    builtin and then its argument prototype would still apply.  */
11291 char dlopen ();
11292 int
11293 main ()
11294 {
11295 dlopen ();
11296   ;
11297   return 0;
11298 }
11299 _ACEOF
11300 rm -f conftest.$ac_objext conftest$ac_exeext
11301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11302   (eval $ac_link) 2>&5
11303   ac_status=$?
11304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305   (exit $ac_status); } &&
11306          { ac_try='test -s conftest$ac_exeext'
11307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308   (eval $ac_try) 2>&5
11309   ac_status=$?
11310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311   (exit $ac_status); }; }; then
11312   ac_cv_lib_dl_dlopen=yes
11313 else
11314   echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11316
11317 ac_cv_lib_dl_dlopen=no
11318 fi
11319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11320 LIBS=$ac_check_lib_save_LIBS
11321 fi
11322 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11323 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11324 if test $ac_cv_lib_dl_dlopen = yes; then
11325   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11326 else
11327
11328     lt_cv_dlopen="dyld"
11329     lt_cv_dlopen_libs=
11330     lt_cv_dlopen_self=yes
11331
11332 fi
11333
11334    ;;
11335
11336   *)
11337     echo "$as_me:$LINENO: checking for shl_load" >&5
11338 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11339 if test "${ac_cv_func_shl_load+set}" = set; then
11340   echo $ECHO_N "(cached) $ECHO_C" >&6
11341 else
11342   cat >conftest.$ac_ext <<_ACEOF
11343 #line $LINENO "configure"
11344 /* confdefs.h.  */
11345 _ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h.  */
11349 /* System header to define __stub macros and hopefully few prototypes,
11350     which can conflict with char shl_load (); below.
11351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11352     <limits.h> exists even on freestanding compilers.  */
11353 #ifdef __STDC__
11354 # include <limits.h>
11355 #else
11356 # include <assert.h>
11357 #endif
11358 /* Override any gcc2 internal prototype to avoid an error.  */
11359 #ifdef __cplusplus
11360 extern "C"
11361 {
11362 #endif
11363 /* We use char because int might match the return type of a gcc2
11364    builtin and then its argument prototype would still apply.  */
11365 char shl_load ();
11366 /* The GNU C library defines this for functions which it implements
11367     to always fail with ENOSYS.  Some functions are actually named
11368     something starting with __ and the normal name is an alias.  */
11369 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11370 choke me
11371 #else
11372 char (*f) () = shl_load;
11373 #endif
11374 #ifdef __cplusplus
11375 }
11376 #endif
11377
11378 int
11379 main ()
11380 {
11381 return f != shl_load;
11382   ;
11383   return 0;
11384 }
11385 _ACEOF
11386 rm -f conftest.$ac_objext conftest$ac_exeext
11387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11388   (eval $ac_link) 2>&5
11389   ac_status=$?
11390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391   (exit $ac_status); } &&
11392          { ac_try='test -s conftest$ac_exeext'
11393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394   (eval $ac_try) 2>&5
11395   ac_status=$?
11396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397   (exit $ac_status); }; }; then
11398   ac_cv_func_shl_load=yes
11399 else
11400   echo "$as_me: failed program was:" >&5
11401 sed 's/^/| /' conftest.$ac_ext >&5
11402
11403 ac_cv_func_shl_load=no
11404 fi
11405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11406 fi
11407 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11408 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11409 if test $ac_cv_func_shl_load = yes; then
11410   lt_cv_dlopen="shl_load"
11411 else
11412   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11413 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11414 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11415   echo $ECHO_N "(cached) $ECHO_C" >&6
11416 else
11417   ac_check_lib_save_LIBS=$LIBS
11418 LIBS="-ldld  $LIBS"
11419 cat >conftest.$ac_ext <<_ACEOF
11420 #line $LINENO "configure"
11421 /* confdefs.h.  */
11422 _ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h.  */
11426
11427 /* Override any gcc2 internal prototype to avoid an error.  */
11428 #ifdef __cplusplus
11429 extern "C"
11430 #endif
11431 /* We use char because int might match the return type of a gcc2
11432    builtin and then its argument prototype would still apply.  */
11433 char shl_load ();
11434 int
11435 main ()
11436 {
11437 shl_load ();
11438   ;
11439   return 0;
11440 }
11441 _ACEOF
11442 rm -f conftest.$ac_objext conftest$ac_exeext
11443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11444   (eval $ac_link) 2>&5
11445   ac_status=$?
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); } &&
11448          { ac_try='test -s conftest$ac_exeext'
11449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450   (eval $ac_try) 2>&5
11451   ac_status=$?
11452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453   (exit $ac_status); }; }; then
11454   ac_cv_lib_dld_shl_load=yes
11455 else
11456   echo "$as_me: failed program was:" >&5
11457 sed 's/^/| /' conftest.$ac_ext >&5
11458
11459 ac_cv_lib_dld_shl_load=no
11460 fi
11461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11462 LIBS=$ac_check_lib_save_LIBS
11463 fi
11464 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11465 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11466 if test $ac_cv_lib_dld_shl_load = yes; then
11467   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11468 else
11469   echo "$as_me:$LINENO: checking for dlopen" >&5
11470 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11471 if test "${ac_cv_func_dlopen+set}" = set; then
11472   echo $ECHO_N "(cached) $ECHO_C" >&6
11473 else
11474   cat >conftest.$ac_ext <<_ACEOF
11475 #line $LINENO "configure"
11476 /* confdefs.h.  */
11477 _ACEOF
11478 cat confdefs.h >>conftest.$ac_ext
11479 cat >>conftest.$ac_ext <<_ACEOF
11480 /* end confdefs.h.  */
11481 /* System header to define __stub macros and hopefully few prototypes,
11482     which can conflict with char dlopen (); below.
11483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11484     <limits.h> exists even on freestanding compilers.  */
11485 #ifdef __STDC__
11486 # include <limits.h>
11487 #else
11488 # include <assert.h>
11489 #endif
11490 /* Override any gcc2 internal prototype to avoid an error.  */
11491 #ifdef __cplusplus
11492 extern "C"
11493 {
11494 #endif
11495 /* We use char because int might match the return type of a gcc2
11496    builtin and then its argument prototype would still apply.  */
11497 char dlopen ();
11498 /* The GNU C library defines this for functions which it implements
11499     to always fail with ENOSYS.  Some functions are actually named
11500     something starting with __ and the normal name is an alias.  */
11501 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11502 choke me
11503 #else
11504 char (*f) () = dlopen;
11505 #endif
11506 #ifdef __cplusplus
11507 }
11508 #endif
11509
11510 int
11511 main ()
11512 {
11513 return f != dlopen;
11514   ;
11515   return 0;
11516 }
11517 _ACEOF
11518 rm -f conftest.$ac_objext conftest$ac_exeext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11520   (eval $ac_link) 2>&5
11521   ac_status=$?
11522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523   (exit $ac_status); } &&
11524          { ac_try='test -s conftest$ac_exeext'
11525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526   (eval $ac_try) 2>&5
11527   ac_status=$?
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); }; }; then
11530   ac_cv_func_dlopen=yes
11531 else
11532   echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11534
11535 ac_cv_func_dlopen=no
11536 fi
11537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11538 fi
11539 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11540 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11541 if test $ac_cv_func_dlopen = yes; then
11542   lt_cv_dlopen="dlopen"
11543 else
11544   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11545 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11546 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11547   echo $ECHO_N "(cached) $ECHO_C" >&6
11548 else
11549   ac_check_lib_save_LIBS=$LIBS
11550 LIBS="-ldl  $LIBS"
11551 cat >conftest.$ac_ext <<_ACEOF
11552 #line $LINENO "configure"
11553 /* confdefs.h.  */
11554 _ACEOF
11555 cat confdefs.h >>conftest.$ac_ext
11556 cat >>conftest.$ac_ext <<_ACEOF
11557 /* end confdefs.h.  */
11558
11559 /* Override any gcc2 internal prototype to avoid an error.  */
11560 #ifdef __cplusplus
11561 extern "C"
11562 #endif
11563 /* We use char because int might match the return type of a gcc2
11564    builtin and then its argument prototype would still apply.  */
11565 char dlopen ();
11566 int
11567 main ()
11568 {
11569 dlopen ();
11570   ;
11571   return 0;
11572 }
11573 _ACEOF
11574 rm -f conftest.$ac_objext conftest$ac_exeext
11575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11576   (eval $ac_link) 2>&5
11577   ac_status=$?
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); } &&
11580          { ac_try='test -s conftest$ac_exeext'
11581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582   (eval $ac_try) 2>&5
11583   ac_status=$?
11584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585   (exit $ac_status); }; }; then
11586   ac_cv_lib_dl_dlopen=yes
11587 else
11588   echo "$as_me: failed program was:" >&5
11589 sed 's/^/| /' conftest.$ac_ext >&5
11590
11591 ac_cv_lib_dl_dlopen=no
11592 fi
11593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11594 LIBS=$ac_check_lib_save_LIBS
11595 fi
11596 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11597 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11598 if test $ac_cv_lib_dl_dlopen = yes; then
11599   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11600 else
11601   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11602 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11603 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11604   echo $ECHO_N "(cached) $ECHO_C" >&6
11605 else
11606   ac_check_lib_save_LIBS=$LIBS
11607 LIBS="-lsvld  $LIBS"
11608 cat >conftest.$ac_ext <<_ACEOF
11609 #line $LINENO "configure"
11610 /* confdefs.h.  */
11611 _ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h.  */
11615
11616 /* Override any gcc2 internal prototype to avoid an error.  */
11617 #ifdef __cplusplus
11618 extern "C"
11619 #endif
11620 /* We use char because int might match the return type of a gcc2
11621    builtin and then its argument prototype would still apply.  */
11622 char dlopen ();
11623 int
11624 main ()
11625 {
11626 dlopen ();
11627   ;
11628   return 0;
11629 }
11630 _ACEOF
11631 rm -f conftest.$ac_objext conftest$ac_exeext
11632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11633   (eval $ac_link) 2>&5
11634   ac_status=$?
11635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); } &&
11637          { ac_try='test -s conftest$ac_exeext'
11638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639   (eval $ac_try) 2>&5
11640   ac_status=$?
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); }; }; then
11643   ac_cv_lib_svld_dlopen=yes
11644 else
11645   echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11647
11648 ac_cv_lib_svld_dlopen=no
11649 fi
11650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11651 LIBS=$ac_check_lib_save_LIBS
11652 fi
11653 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11654 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11655 if test $ac_cv_lib_svld_dlopen = yes; then
11656   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11657 else
11658   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11659 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11660 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11661   echo $ECHO_N "(cached) $ECHO_C" >&6
11662 else
11663   ac_check_lib_save_LIBS=$LIBS
11664 LIBS="-ldld  $LIBS"
11665 cat >conftest.$ac_ext <<_ACEOF
11666 #line $LINENO "configure"
11667 /* confdefs.h.  */
11668 _ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h.  */
11672
11673 /* Override any gcc2 internal prototype to avoid an error.  */
11674 #ifdef __cplusplus
11675 extern "C"
11676 #endif
11677 /* We use char because int might match the return type of a gcc2
11678    builtin and then its argument prototype would still apply.  */
11679 char dld_link ();
11680 int
11681 main ()
11682 {
11683 dld_link ();
11684   ;
11685   return 0;
11686 }
11687 _ACEOF
11688 rm -f conftest.$ac_objext conftest$ac_exeext
11689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11690   (eval $ac_link) 2>&5
11691   ac_status=$?
11692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693   (exit $ac_status); } &&
11694          { ac_try='test -s conftest$ac_exeext'
11695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696   (eval $ac_try) 2>&5
11697   ac_status=$?
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); }; }; then
11700   ac_cv_lib_dld_dld_link=yes
11701 else
11702   echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.$ac_ext >&5
11704
11705 ac_cv_lib_dld_dld_link=no
11706 fi
11707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11708 LIBS=$ac_check_lib_save_LIBS
11709 fi
11710 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11711 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11712 if test $ac_cv_lib_dld_dld_link = yes; then
11713   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11714 fi
11715
11716
11717 fi
11718
11719
11720 fi
11721
11722
11723 fi
11724
11725
11726 fi
11727
11728
11729 fi
11730
11731     ;;
11732   esac
11733
11734   if test "x$lt_cv_dlopen" != xno; then
11735     enable_dlopen=yes
11736   else
11737     enable_dlopen=no
11738   fi
11739
11740   case $lt_cv_dlopen in
11741   dlopen)
11742     save_CPPFLAGS="$CPPFLAGS"
11743     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11744
11745     save_LDFLAGS="$LDFLAGS"
11746     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11747
11748     save_LIBS="$LIBS"
11749     LIBS="$lt_cv_dlopen_libs $LIBS"
11750
11751     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11752 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11753 if test "${lt_cv_dlopen_self+set}" = set; then
11754   echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756           if test "$cross_compiling" = yes; then :
11757   lt_cv_dlopen_self=cross
11758 else
11759   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11760   lt_status=$lt_dlunknown
11761   cat > conftest.$ac_ext <<EOF
11762 #line 11762 "configure"
11763 #include "confdefs.h"
11764
11765 #if HAVE_DLFCN_H
11766 #include <dlfcn.h>
11767 #endif
11768
11769 #include <stdio.h>
11770
11771 #ifdef RTLD_GLOBAL
11772 #  define LT_DLGLOBAL           RTLD_GLOBAL
11773 #else
11774 #  ifdef DL_GLOBAL
11775 #    define LT_DLGLOBAL         DL_GLOBAL
11776 #  else
11777 #    define LT_DLGLOBAL         0
11778 #  endif
11779 #endif
11780
11781 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11782    find out it does not work in some platform. */
11783 #ifndef LT_DLLAZY_OR_NOW
11784 #  ifdef RTLD_LAZY
11785 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11786 #  else
11787 #    ifdef DL_LAZY
11788 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11789 #    else
11790 #      ifdef RTLD_NOW
11791 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11792 #      else
11793 #        ifdef DL_NOW
11794 #          define LT_DLLAZY_OR_NOW      DL_NOW
11795 #        else
11796 #          define LT_DLLAZY_OR_NOW      0
11797 #        endif
11798 #      endif
11799 #    endif
11800 #  endif
11801 #endif
11802
11803 #ifdef __cplusplus
11804 extern "C" void exit (int);
11805 #endif
11806
11807 void fnord() { int i=42;}
11808 int main ()
11809 {
11810   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11811   int status = $lt_dlunknown;
11812
11813   if (self)
11814     {
11815       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11816       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11817       /* dlclose (self); */
11818     }
11819
11820     exit (status);
11821 }
11822 EOF
11823   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11824   (eval $ac_link) 2>&5
11825   ac_status=$?
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11828     (./conftest; exit; ) 2>/dev/null
11829     lt_status=$?
11830     case x$lt_status in
11831       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11832       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11833       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11834     esac
11835   else :
11836     # compilation failed
11837     lt_cv_dlopen_self=no
11838   fi
11839 fi
11840 rm -fr conftest*
11841
11842
11843 fi
11844 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11845 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11846
11847     if test "x$lt_cv_dlopen_self" = xyes; then
11848       LDFLAGS="$LDFLAGS $link_static_flag"
11849       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11850 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11851 if test "${lt_cv_dlopen_self_static+set}" = set; then
11852   echo $ECHO_N "(cached) $ECHO_C" >&6
11853 else
11854           if test "$cross_compiling" = yes; then :
11855   lt_cv_dlopen_self_static=cross
11856 else
11857   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11858   lt_status=$lt_dlunknown
11859   cat > conftest.$ac_ext <<EOF
11860 #line 11860 "configure"
11861 #include "confdefs.h"
11862
11863 #if HAVE_DLFCN_H
11864 #include <dlfcn.h>
11865 #endif
11866
11867 #include <stdio.h>
11868
11869 #ifdef RTLD_GLOBAL
11870 #  define LT_DLGLOBAL           RTLD_GLOBAL
11871 #else
11872 #  ifdef DL_GLOBAL
11873 #    define LT_DLGLOBAL         DL_GLOBAL
11874 #  else
11875 #    define LT_DLGLOBAL         0
11876 #  endif
11877 #endif
11878
11879 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11880    find out it does not work in some platform. */
11881 #ifndef LT_DLLAZY_OR_NOW
11882 #  ifdef RTLD_LAZY
11883 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11884 #  else
11885 #    ifdef DL_LAZY
11886 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11887 #    else
11888 #      ifdef RTLD_NOW
11889 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11890 #      else
11891 #        ifdef DL_NOW
11892 #          define LT_DLLAZY_OR_NOW      DL_NOW
11893 #        else
11894 #          define LT_DLLAZY_OR_NOW      0
11895 #        endif
11896 #      endif
11897 #    endif
11898 #  endif
11899 #endif
11900
11901 #ifdef __cplusplus
11902 extern "C" void exit (int);
11903 #endif
11904
11905 void fnord() { int i=42;}
11906 int main ()
11907 {
11908   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11909   int status = $lt_dlunknown;
11910
11911   if (self)
11912     {
11913       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11914       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11915       /* dlclose (self); */
11916     }
11917
11918     exit (status);
11919 }
11920 EOF
11921   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11922   (eval $ac_link) 2>&5
11923   ac_status=$?
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11926     (./conftest; exit; ) 2>/dev/null
11927     lt_status=$?
11928     case x$lt_status in
11929       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11930       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11931       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11932     esac
11933   else :
11934     # compilation failed
11935     lt_cv_dlopen_self_static=no
11936   fi
11937 fi
11938 rm -fr conftest*
11939
11940
11941 fi
11942 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11943 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11944     fi
11945
11946     CPPFLAGS="$save_CPPFLAGS"
11947     LDFLAGS="$save_LDFLAGS"
11948     LIBS="$save_LIBS"
11949     ;;
11950   esac
11951
11952   case $lt_cv_dlopen_self in
11953   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11954   *) enable_dlopen_self=unknown ;;
11955   esac
11956
11957   case $lt_cv_dlopen_self_static in
11958   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11959   *) enable_dlopen_self_static=unknown ;;
11960   esac
11961 fi
11962
11963
11964 # The else clause should only fire when bootstrapping the
11965 # libtool distribution, otherwise you forgot to ship ltmain.sh
11966 # with your package, and you will get complaints that there are
11967 # no rules to generate ltmain.sh.
11968 if test -f "$ltmain"; then
11969   # See if we are running on zsh, and set the options which allow our commands through
11970   # without removal of \ escapes.
11971   if test -n "${ZSH_VERSION+set}" ; then
11972     setopt NO_GLOB_SUBST
11973   fi
11974   # Now quote all the things that may contain metacharacters while being
11975   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11976   # variables and quote the copies for generation of the libtool script.
11977   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11978     SED SHELL STRIP \
11979     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11980     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11981     deplibs_check_method reload_flag reload_cmds need_locks \
11982     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11983     lt_cv_sys_global_symbol_to_c_name_address \
11984     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11985     old_postinstall_cmds old_postuninstall_cmds \
11986     compiler_CXX \
11987     CC_CXX \
11988     LD_CXX \
11989     lt_prog_compiler_wl_CXX \
11990     lt_prog_compiler_pic_CXX \
11991     lt_prog_compiler_static_CXX \
11992     lt_prog_compiler_no_builtin_flag_CXX \
11993     export_dynamic_flag_spec_CXX \
11994     thread_safe_flag_spec_CXX \
11995     whole_archive_flag_spec_CXX \
11996     enable_shared_with_static_runtimes_CXX \
11997     old_archive_cmds_CXX \
11998     old_archive_from_new_cmds_CXX \
11999     predep_objects_CXX \
12000     postdep_objects_CXX \
12001     predeps_CXX \
12002     postdeps_CXX \
12003     compiler_lib_search_path_CXX \
12004     archive_cmds_CXX \
12005     archive_expsym_cmds_CXX \
12006     postinstall_cmds_CXX \
12007     postuninstall_cmds_CXX \
12008     old_archive_from_expsyms_cmds_CXX \
12009     allow_undefined_flag_CXX \
12010     no_undefined_flag_CXX \
12011     export_symbols_cmds_CXX \
12012     hardcode_libdir_flag_spec_CXX \
12013     hardcode_libdir_flag_spec_ld_CXX \
12014     hardcode_libdir_separator_CXX \
12015     hardcode_automatic_CXX \
12016     module_cmds_CXX \
12017     module_expsym_cmds_CXX \
12018     lt_cv_prog_compiler_c_o_CXX \
12019     exclude_expsyms_CXX \
12020     include_expsyms_CXX; do
12021
12022     case $var in
12023     old_archive_cmds_CXX | \
12024     old_archive_from_new_cmds_CXX | \
12025     archive_cmds_CXX | \
12026     archive_expsym_cmds_CXX | \
12027     module_cmds_CXX | \
12028     module_expsym_cmds_CXX | \
12029     old_archive_from_expsyms_cmds_CXX | \
12030     export_symbols_cmds_CXX | \
12031     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12032     postinstall_cmds | postuninstall_cmds | \
12033     old_postinstall_cmds | old_postuninstall_cmds | \
12034     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12035       # Double-quote double-evaled strings.
12036       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12037       ;;
12038     *)
12039       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12040       ;;
12041     esac
12042   done
12043
12044   case $lt_echo in
12045   *'\$0 --fallback-echo"')
12046     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12047     ;;
12048   esac
12049
12050 cfgfile="$ofile"
12051
12052   cat <<__EOF__ >> "$cfgfile"
12053 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12054
12055 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12056
12057 # Shell to use when invoking shell scripts.
12058 SHELL=$lt_SHELL
12059
12060 # Whether or not to build shared libraries.
12061 build_libtool_libs=$enable_shared
12062
12063 # Whether or not to build static libraries.
12064 build_old_libs=$enable_static
12065
12066 # Whether or not to add -lc for building shared libraries.
12067 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12068
12069 # Whether or not to disallow shared libs when runtime libs are static
12070 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12071
12072 # Whether or not to optimize for fast installation.
12073 fast_install=$enable_fast_install
12074
12075 # The host system.
12076 host_alias=$host_alias
12077 host=$host
12078
12079 # An echo program that does not interpret backslashes.
12080 echo=$lt_echo
12081
12082 # The archiver.
12083 AR=$lt_AR
12084 AR_FLAGS=$lt_AR_FLAGS
12085
12086 # A C compiler.
12087 LTCC=$lt_LTCC
12088
12089 # A language-specific compiler.
12090 CC=$lt_compiler_CXX
12091
12092 # Is the compiler the GNU C compiler?
12093 with_gcc=$GCC_CXX
12094
12095 # An ERE matcher.
12096 EGREP=$lt_EGREP
12097
12098 # The linker used to build libraries.
12099 LD=$lt_LD_CXX
12100
12101 # Whether we need hard or soft links.
12102 LN_S=$lt_LN_S
12103
12104 # A BSD-compatible nm program.
12105 NM=$lt_NM
12106
12107 # A symbol stripping program
12108 STRIP=$lt_STRIP
12109
12110 # Used to examine libraries when file_magic_cmd begins "file"
12111 MAGIC_CMD=$MAGIC_CMD
12112
12113 # Used on cygwin: DLL creation program.
12114 DLLTOOL="$DLLTOOL"
12115
12116 # Used on cygwin: object dumper.
12117 OBJDUMP="$OBJDUMP"
12118
12119 # Used on cygwin: assembler.
12120 AS="$AS"
12121
12122 # The name of the directory that contains temporary libtool files.
12123 objdir=$objdir
12124
12125 # How to create reloadable object files.
12126 reload_flag=$lt_reload_flag
12127 reload_cmds=$lt_reload_cmds
12128
12129 # How to pass a linker flag through the compiler.
12130 wl=$lt_lt_prog_compiler_wl_CXX
12131
12132 # Object file suffix (normally "o").
12133 objext="$ac_objext"
12134
12135 # Old archive suffix (normally "a").
12136 libext="$libext"
12137
12138 # Shared library suffix (normally ".so").
12139 shrext_cmds='$shrext_cmds'
12140
12141 # Executable file suffix (normally "").
12142 exeext="$exeext"
12143
12144 # Additional compiler flags for building library objects.
12145 pic_flag=$lt_lt_prog_compiler_pic_CXX
12146 pic_mode=$pic_mode
12147
12148 # What is the maximum length of a command?
12149 max_cmd_len=$lt_cv_sys_max_cmd_len
12150
12151 # Does compiler simultaneously support -c and -o options?
12152 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12153
12154 # Must we lock files when doing compilation ?
12155 need_locks=$lt_need_locks
12156
12157 # Do we need the lib prefix for modules?
12158 need_lib_prefix=$need_lib_prefix
12159
12160 # Do we need a version for libraries?
12161 need_version=$need_version
12162
12163 # Whether dlopen is supported.
12164 dlopen_support=$enable_dlopen
12165
12166 # Whether dlopen of programs is supported.
12167 dlopen_self=$enable_dlopen_self
12168
12169 # Whether dlopen of statically linked programs is supported.
12170 dlopen_self_static=$enable_dlopen_self_static
12171
12172 # Compiler flag to prevent dynamic linking.
12173 link_static_flag=$lt_lt_prog_compiler_static_CXX
12174
12175 # Compiler flag to turn off builtin functions.
12176 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12177
12178 # Compiler flag to allow reflexive dlopens.
12179 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12180
12181 # Compiler flag to generate shared objects directly from archives.
12182 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12183
12184 # Compiler flag to generate thread-safe objects.
12185 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12186
12187 # Library versioning type.
12188 version_type=$version_type
12189
12190 # Format of library name prefix.
12191 libname_spec=$lt_libname_spec
12192
12193 # List of archive names.  First name is the real one, the rest are links.
12194 # The last name is the one that the linker finds with -lNAME.
12195 library_names_spec=$lt_library_names_spec
12196
12197 # The coded name of the library, if different from the real name.
12198 soname_spec=$lt_soname_spec
12199
12200 # Commands used to build and install an old-style archive.
12201 RANLIB=$lt_RANLIB
12202 old_archive_cmds=$lt_old_archive_cmds_CXX
12203 old_postinstall_cmds=$lt_old_postinstall_cmds
12204 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12205
12206 # Create an old-style archive from a shared archive.
12207 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12208
12209 # Create a temporary old-style archive to link instead of a shared archive.
12210 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12211
12212 # Commands used to build and install a shared archive.
12213 archive_cmds=$lt_archive_cmds_CXX
12214 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12215 postinstall_cmds=$lt_postinstall_cmds
12216 postuninstall_cmds=$lt_postuninstall_cmds
12217
12218 # Commands used to build a loadable module (assumed same as above if empty)
12219 module_cmds=$lt_module_cmds_CXX
12220 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12221
12222 # Commands to strip libraries.
12223 old_striplib=$lt_old_striplib
12224 striplib=$lt_striplib
12225
12226 # Dependencies to place before the objects being linked to create a
12227 # shared library.
12228 predep_objects=$lt_predep_objects_CXX
12229
12230 # Dependencies to place after the objects being linked to create a
12231 # shared library.
12232 postdep_objects=$lt_postdep_objects_CXX
12233
12234 # Dependencies to place before the objects being linked to create a
12235 # shared library.
12236 predeps=$lt_predeps_CXX
12237
12238 # Dependencies to place after the objects being linked to create a
12239 # shared library.
12240 postdeps=$lt_postdeps_CXX
12241
12242 # The library search path used internally by the compiler when linking
12243 # a shared library.
12244 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12245
12246 # Method to check whether dependent libraries are shared objects.
12247 deplibs_check_method=$lt_deplibs_check_method
12248
12249 # Command to use when deplibs_check_method == file_magic.
12250 file_magic_cmd=$lt_file_magic_cmd
12251
12252 # Flag that allows shared libraries with undefined symbols to be built.
12253 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12254
12255 # Flag that forces no undefined symbols.
12256 no_undefined_flag=$lt_no_undefined_flag_CXX
12257
12258 # Commands used to finish a libtool library installation in a directory.
12259 finish_cmds=$lt_finish_cmds
12260
12261 # Same as above, but a single script fragment to be evaled but not shown.
12262 finish_eval=$lt_finish_eval
12263
12264 # Take the output of nm and produce a listing of raw symbols and C names.
12265 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12266
12267 # Transform the output of nm in a proper C declaration
12268 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12269
12270 # Transform the output of nm in a C name address pair
12271 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12272
12273 # This is the shared library runtime path variable.
12274 runpath_var=$runpath_var
12275
12276 # This is the shared library path variable.
12277 shlibpath_var=$shlibpath_var
12278
12279 # Is shlibpath searched before the hard-coded library search path?
12280 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12281
12282 # How to hardcode a shared library path into an executable.
12283 hardcode_action=$hardcode_action_CXX
12284
12285 # Whether we should hardcode library paths into libraries.
12286 hardcode_into_libs=$hardcode_into_libs
12287
12288 # Flag to hardcode \$libdir into a binary during linking.
12289 # This must work even if \$libdir does not exist.
12290 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12291
12292 # If ld is used when linking, flag to hardcode \$libdir into
12293 # a binary during linking. This must work even if \$libdir does
12294 # not exist.
12295 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12296
12297 # Whether we need a single -rpath flag with a separated argument.
12298 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12299
12300 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12301 # resulting binary.
12302 hardcode_direct=$hardcode_direct_CXX
12303
12304 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12305 # resulting binary.
12306 hardcode_minus_L=$hardcode_minus_L_CXX
12307
12308 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12309 # the resulting binary.
12310 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12311
12312 # Set to yes if building a shared library automatically hardcodes DIR into the library
12313 # and all subsequent libraries and executables linked against it.
12314 hardcode_automatic=$hardcode_automatic_CXX
12315
12316 # Variables whose values should be saved in libtool wrapper scripts and
12317 # restored at relink time.
12318 variables_saved_for_relink="$variables_saved_for_relink"
12319
12320 # Whether libtool must link a program against all its dependency libraries.
12321 link_all_deplibs=$link_all_deplibs_CXX
12322
12323 # Compile-time system search path for libraries
12324 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12325
12326 # Run-time system search path for libraries
12327 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12328
12329 # Fix the shell variable \$srcfile for the compiler.
12330 fix_srcfile_path="$fix_srcfile_path_CXX"
12331
12332 # Set to yes if exported symbols are required.
12333 always_export_symbols=$always_export_symbols_CXX
12334
12335 # The commands to list exported symbols.
12336 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12337
12338 # The commands to extract the exported symbol list from a shared archive.
12339 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12340
12341 # Symbols that should not be listed in the preloaded symbols.
12342 exclude_expsyms=$lt_exclude_expsyms_CXX
12343
12344 # Symbols that must always be exported.
12345 include_expsyms=$lt_include_expsyms_CXX
12346
12347 # ### END LIBTOOL TAG CONFIG: $tagname
12348
12349 __EOF__
12350
12351
12352 else
12353   # If there is no Makefile yet, we rely on a make rule to execute
12354   # `config.status --recheck' to rerun these tests and create the
12355   # libtool script then.
12356   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12357   if test -f "$ltmain_in"; then
12358     test -f Makefile && make "$ltmain"
12359   fi
12360 fi
12361
12362
12363 ac_ext=c
12364 ac_cpp='$CPP $CPPFLAGS'
12365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12368
12369 CC=$lt_save_CC
12370 LDCXX=$LD
12371 LD=$lt_save_LD
12372 GCC=$lt_save_GCC
12373 with_gnu_ldcxx=$with_gnu_ld
12374 with_gnu_ld=$lt_save_with_gnu_ld
12375 lt_cv_path_LDCXX=$lt_cv_path_LD
12376 lt_cv_path_LD=$lt_save_path_LD
12377 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12378 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12379
12380         else
12381           tagname=""
12382         fi
12383         ;;
12384
12385       F77)
12386         if test -n "$F77" && test "X$F77" != "Xno"; then
12387
12388 ac_ext=f
12389 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12390 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12391 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12392
12393
12394 archive_cmds_need_lc_F77=no
12395 allow_undefined_flag_F77=
12396 always_export_symbols_F77=no
12397 archive_expsym_cmds_F77=
12398 export_dynamic_flag_spec_F77=
12399 hardcode_direct_F77=no
12400 hardcode_libdir_flag_spec_F77=
12401 hardcode_libdir_flag_spec_ld_F77=
12402 hardcode_libdir_separator_F77=
12403 hardcode_minus_L_F77=no
12404 hardcode_automatic_F77=no
12405 module_cmds_F77=
12406 module_expsym_cmds_F77=
12407 link_all_deplibs_F77=unknown
12408 old_archive_cmds_F77=$old_archive_cmds
12409 no_undefined_flag_F77=
12410 whole_archive_flag_spec_F77=
12411 enable_shared_with_static_runtimes_F77=no
12412
12413 # Source file extension for f77 test sources.
12414 ac_ext=f
12415
12416 # Object file extension for compiled f77 test sources.
12417 objext=o
12418 objext_F77=$objext
12419
12420 # Code to be used in simple compile tests
12421 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12422
12423 # Code to be used in simple link tests
12424 lt_simple_link_test_code="      program t\n      end\n"
12425
12426 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12427
12428 # If no C compiler was specified, use CC.
12429 LTCC=${LTCC-"$CC"}
12430
12431 # Allow CC to be a program name with arguments.
12432 compiler=$CC
12433
12434
12435 # Allow CC to be a program name with arguments.
12436 lt_save_CC="$CC"
12437 CC=${F77-"f77"}
12438 compiler=$CC
12439 compiler_F77=$CC
12440 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12441
12442 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12443 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12444 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12445 echo "${ECHO_T}$can_build_shared" >&6
12446
12447 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12448 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12449 test "$can_build_shared" = "no" && enable_shared=no
12450
12451 # On AIX, shared libraries and static libraries use the same namespace, and
12452 # are all built from PIC.
12453 case "$host_os" in
12454 aix3*)
12455   test "$enable_shared" = yes && enable_static=no
12456   if test -n "$RANLIB"; then
12457     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12458     postinstall_cmds='$RANLIB $lib'
12459   fi
12460   ;;
12461 aix4* | aix5*)
12462   test "$enable_shared" = yes && enable_static=no
12463   ;;
12464 esac
12465 echo "$as_me:$LINENO: result: $enable_shared" >&5
12466 echo "${ECHO_T}$enable_shared" >&6
12467
12468 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12469 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12470 # Make sure either enable_shared or enable_static is yes.
12471 test "$enable_shared" = yes || enable_static=yes
12472 echo "$as_me:$LINENO: result: $enable_static" >&5
12473 echo "${ECHO_T}$enable_static" >&6
12474
12475 test "$ld_shlibs_F77" = no && can_build_shared=no
12476
12477 GCC_F77="$G77"
12478 LD_F77="$LD"
12479
12480 lt_prog_compiler_wl_F77=
12481 lt_prog_compiler_pic_F77=
12482 lt_prog_compiler_static_F77=
12483
12484 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12485 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12486
12487   if test "$GCC" = yes; then
12488     lt_prog_compiler_wl_F77='-Wl,'
12489     lt_prog_compiler_static_F77='-static'
12490
12491     case $host_os in
12492       aix*)
12493       # All AIX code is PIC.
12494       if test "$host_cpu" = ia64; then
12495         # AIX 5 now supports IA64 processor
12496         lt_prog_compiler_static_F77='-Bstatic'
12497       fi
12498       ;;
12499
12500     amigaos*)
12501       # FIXME: we need at least 68020 code to build shared libraries, but
12502       # adding the `-m68020' flag to GCC prevents building anything better,
12503       # like `-m68040'.
12504       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12505       ;;
12506
12507     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12508       # PIC is the default for these OSes.
12509       ;;
12510
12511     mingw* | pw32* | os2*)
12512       # This hack is so that the source file can tell whether it is being
12513       # built for inclusion in a dll (and should export symbols for example).
12514       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12515       ;;
12516
12517     darwin* | rhapsody*)
12518       # PIC is the default on this platform
12519       # Common symbols not allowed in MH_DYLIB files
12520       lt_prog_compiler_pic_F77='-fno-common'
12521       ;;
12522
12523     msdosdjgpp*)
12524       # Just because we use GCC doesn't mean we suddenly get shared libraries
12525       # on systems that don't support them.
12526       lt_prog_compiler_can_build_shared_F77=no
12527       enable_shared=no
12528       ;;
12529
12530     sysv4*MP*)
12531       if test -d /usr/nec; then
12532         lt_prog_compiler_pic_F77=-Kconform_pic
12533       fi
12534       ;;
12535
12536     hpux*)
12537       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12538       # not for PA HP-UX.
12539       case "$host_cpu" in
12540       hppa*64*|ia64*)
12541         # +Z the default
12542         ;;
12543       *)
12544         lt_prog_compiler_pic_F77='-fPIC'
12545         ;;
12546       esac
12547       ;;
12548
12549     *)
12550       lt_prog_compiler_pic_F77='-fPIC'
12551       ;;
12552     esac
12553   else
12554     # PORTME Check for flag to pass linker flags through the system compiler.
12555     case $host_os in
12556     aix*)
12557       lt_prog_compiler_wl_F77='-Wl,'
12558       if test "$host_cpu" = ia64; then
12559         # AIX 5 now supports IA64 processor
12560         lt_prog_compiler_static_F77='-Bstatic'
12561       else
12562         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12563       fi
12564       ;;
12565
12566     mingw* | pw32* | os2*)
12567       # This hack is so that the source file can tell whether it is being
12568       # built for inclusion in a dll (and should export symbols for example).
12569       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12570       ;;
12571
12572     hpux9* | hpux10* | hpux11*)
12573       lt_prog_compiler_wl_F77='-Wl,'
12574       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12575       # not for PA HP-UX.
12576       case "$host_cpu" in
12577       hppa*64*|ia64*)
12578         # +Z the default
12579         ;;
12580       *)
12581         lt_prog_compiler_pic_F77='+Z'
12582         ;;
12583       esac
12584       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12585       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12586       ;;
12587
12588     irix5* | irix6* | nonstopux*)
12589       lt_prog_compiler_wl_F77='-Wl,'
12590       # PIC (with -KPIC) is the default.
12591       lt_prog_compiler_static_F77='-non_shared'
12592       ;;
12593
12594     newsos6)
12595       lt_prog_compiler_pic_F77='-KPIC'
12596       lt_prog_compiler_static_F77='-Bstatic'
12597       ;;
12598
12599     linux*)
12600       case $CC in
12601       icc* | ecc*)
12602         lt_prog_compiler_wl_F77='-Wl,'
12603         lt_prog_compiler_pic_F77='-KPIC'
12604         lt_prog_compiler_static_F77='-static'
12605         ;;
12606       ccc*)
12607         lt_prog_compiler_wl_F77='-Wl,'
12608         # All Alpha code is PIC.
12609         lt_prog_compiler_static_F77='-non_shared'
12610         ;;
12611       esac
12612       ;;
12613
12614     osf3* | osf4* | osf5*)
12615       lt_prog_compiler_wl_F77='-Wl,'
12616       # All OSF/1 code is PIC.
12617       lt_prog_compiler_static_F77='-non_shared'
12618       ;;
12619
12620     sco3.2v5*)
12621       lt_prog_compiler_pic_F77='-Kpic'
12622       lt_prog_compiler_static_F77='-dn'
12623       ;;
12624
12625     solaris*)
12626       lt_prog_compiler_wl_F77='-Wl,'
12627       lt_prog_compiler_pic_F77='-KPIC'
12628       lt_prog_compiler_static_F77='-Bstatic'
12629       ;;
12630
12631     sunos4*)
12632       lt_prog_compiler_wl_F77='-Qoption ld '
12633       lt_prog_compiler_pic_F77='-PIC'
12634       lt_prog_compiler_static_F77='-Bstatic'
12635       ;;
12636
12637     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12638       lt_prog_compiler_wl_F77='-Wl,'
12639       lt_prog_compiler_pic_F77='-KPIC'
12640       lt_prog_compiler_static_F77='-Bstatic'
12641       ;;
12642
12643     sysv4*MP*)
12644       if test -d /usr/nec ;then
12645         lt_prog_compiler_pic_F77='-Kconform_pic'
12646         lt_prog_compiler_static_F77='-Bstatic'
12647       fi
12648       ;;
12649
12650     uts4*)
12651       lt_prog_compiler_pic_F77='-pic'
12652       lt_prog_compiler_static_F77='-Bstatic'
12653       ;;
12654
12655     *)
12656       lt_prog_compiler_can_build_shared_F77=no
12657       ;;
12658     esac
12659   fi
12660
12661 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12662 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12663
12664 #
12665 # Check to make sure the PIC flag actually works.
12666 #
12667 if test -n "$lt_prog_compiler_pic_F77"; then
12668
12669 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12670 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12671 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12672   echo $ECHO_N "(cached) $ECHO_C" >&6
12673 else
12674   lt_prog_compiler_pic_works_F77=no
12675   ac_outfile=conftest.$ac_objext
12676    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12677    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12678    # Insert the option either (1) after the last *FLAGS variable, or
12679    # (2) before a word containing "conftest.", or (3) at the end.
12680    # Note that $ac_compile itself does not contain backslashes and begins
12681    # with a dollar sign (not a hyphen), so the echo should work correctly.
12682    # The option is referenced via a variable to avoid confusing sed.
12683    lt_compile=`echo "$ac_compile" | $SED \
12684    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12685    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12686    -e 's:$: $lt_compiler_flag:'`
12687    (eval echo "\"\$as_me:12687: $lt_compile\"" >&5)
12688    (eval "$lt_compile" 2>conftest.err)
12689    ac_status=$?
12690    cat conftest.err >&5
12691    echo "$as_me:12691: \$? = $ac_status" >&5
12692    if (exit $ac_status) && test -s "$ac_outfile"; then
12693      # The compiler can only warn and ignore the option if not recognized
12694      # So say no if there are warnings
12695      if test ! -s conftest.err; then
12696        lt_prog_compiler_pic_works_F77=yes
12697      fi
12698    fi
12699    $rm conftest*
12700
12701 fi
12702 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12703 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12704
12705 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12706     case $lt_prog_compiler_pic_F77 in
12707      "" | " "*) ;;
12708      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12709      esac
12710 else
12711     lt_prog_compiler_pic_F77=
12712      lt_prog_compiler_can_build_shared_F77=no
12713 fi
12714
12715 fi
12716 case "$host_os" in
12717   # For platforms which do not support PIC, -DPIC is meaningless:
12718   *djgpp*)
12719     lt_prog_compiler_pic_F77=
12720     ;;
12721   *)
12722     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12723     ;;
12724 esac
12725
12726 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12727 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12728 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12729   echo $ECHO_N "(cached) $ECHO_C" >&6
12730 else
12731   lt_cv_prog_compiler_c_o_F77=no
12732    $rm -r conftest 2>/dev/null
12733    mkdir conftest
12734    cd conftest
12735    mkdir out
12736    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12737
12738    lt_compiler_flag="-o out/conftest2.$ac_objext"
12739    # Insert the option either (1) after the last *FLAGS variable, or
12740    # (2) before a word containing "conftest.", or (3) at the end.
12741    # Note that $ac_compile itself does not contain backslashes and begins
12742    # with a dollar sign (not a hyphen), so the echo should work correctly.
12743    lt_compile=`echo "$ac_compile" | $SED \
12744    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12745    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12746    -e 's:$: $lt_compiler_flag:'`
12747    (eval echo "\"\$as_me:12747: $lt_compile\"" >&5)
12748    (eval "$lt_compile" 2>out/conftest.err)
12749    ac_status=$?
12750    cat out/conftest.err >&5
12751    echo "$as_me:12751: \$? = $ac_status" >&5
12752    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12753    then
12754      # The compiler can only warn and ignore the option if not recognized
12755      # So say no if there are warnings
12756      if test ! -s out/conftest.err; then
12757        lt_cv_prog_compiler_c_o_F77=yes
12758      fi
12759    fi
12760    chmod u+w .
12761    $rm conftest*
12762    # SGI C++ compiler will create directory out/ii_files/ for
12763    # template instantiation
12764    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12765    $rm out/* && rmdir out
12766    cd ..
12767    rmdir conftest
12768    $rm conftest*
12769
12770 fi
12771 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12772 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12773
12774
12775 hard_links="nottested"
12776 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12777   # do not overwrite the value of need_locks provided by the user
12778   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12779 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12780   hard_links=yes
12781   $rm conftest*
12782   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12783   touch conftest.a
12784   ln conftest.a conftest.b 2>&5 || hard_links=no
12785   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12786   echo "$as_me:$LINENO: result: $hard_links" >&5
12787 echo "${ECHO_T}$hard_links" >&6
12788   if test "$hard_links" = no; then
12789     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12790 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12791     need_locks=warn
12792   fi
12793 else
12794   need_locks=no
12795 fi
12796
12797 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12798 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12799
12800   runpath_var=
12801   allow_undefined_flag_F77=
12802   enable_shared_with_static_runtimes_F77=no
12803   archive_cmds_F77=
12804   archive_expsym_cmds_F77=
12805   old_archive_From_new_cmds_F77=
12806   old_archive_from_expsyms_cmds_F77=
12807   export_dynamic_flag_spec_F77=
12808   whole_archive_flag_spec_F77=
12809   thread_safe_flag_spec_F77=
12810   hardcode_libdir_flag_spec_F77=
12811   hardcode_libdir_flag_spec_ld_F77=
12812   hardcode_libdir_separator_F77=
12813   hardcode_direct_F77=no
12814   hardcode_minus_L_F77=no
12815   hardcode_shlibpath_var_F77=unsupported
12816   link_all_deplibs_F77=unknown
12817   hardcode_automatic_F77=no
12818   module_cmds_F77=
12819   module_expsym_cmds_F77=
12820   always_export_symbols_F77=no
12821   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12822   # include_expsyms should be a list of space-separated symbols to be *always*
12823   # included in the symbol list
12824   include_expsyms_F77=
12825   # exclude_expsyms can be an extended regexp of symbols to exclude
12826   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12827   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12828   # as well as any symbol that contains `d'.
12829   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12830   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12831   # platforms (ab)use it in PIC code, but their linkers get confused if
12832   # the symbol is explicitly referenced.  Since portable code cannot
12833   # rely on this symbol name, it's probably fine to never include it in
12834   # preloaded symbol tables.
12835   extract_expsyms_cmds=
12836
12837   case $host_os in
12838   cygwin* | mingw* | pw32*)
12839     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12840     # When not using gcc, we currently assume that we are using
12841     # Microsoft Visual C++.
12842     if test "$GCC" != yes; then
12843       with_gnu_ld=no
12844     fi
12845     ;;
12846   openbsd*)
12847     with_gnu_ld=no
12848     ;;
12849   esac
12850
12851   ld_shlibs_F77=yes
12852   if test "$with_gnu_ld" = yes; then
12853     # If archive_cmds runs LD, not CC, wlarc should be empty
12854     wlarc='${wl}'
12855
12856     # See if GNU ld supports shared libraries.
12857     case $host_os in
12858     aix3* | aix4* | aix5*)
12859       # On AIX/PPC, the GNU linker is very broken
12860       if test "$host_cpu" != ia64; then
12861         ld_shlibs_F77=no
12862         cat <<EOF 1>&2
12863
12864 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12865 *** to be unable to reliably create shared libraries on AIX.
12866 *** Therefore, libtool is disabling shared libraries support.  If you
12867 *** really care for shared libraries, you may want to modify your PATH
12868 *** so that a non-GNU linker is found, and then restart.
12869
12870 EOF
12871       fi
12872       ;;
12873
12874     amigaos*)
12875       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)'
12876       hardcode_libdir_flag_spec_F77='-L$libdir'
12877       hardcode_minus_L_F77=yes
12878
12879       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12880       # that the semantics of dynamic libraries on AmigaOS, at least up
12881       # to version 4, is to share data among multiple programs linked
12882       # with the same dynamic library.  Since this doesn't match the
12883       # behavior of shared libraries on other platforms, we can't use
12884       # them.
12885       ld_shlibs_F77=no
12886       ;;
12887
12888     beos*)
12889       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12890         allow_undefined_flag_F77=unsupported
12891         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12892         # support --undefined.  This deserves some investigation.  FIXME
12893         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12894       else
12895         ld_shlibs_F77=no
12896       fi
12897       ;;
12898
12899     cygwin* | mingw* | pw32*)
12900       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12901       # as there is no search path for DLLs.
12902       hardcode_libdir_flag_spec_F77='-L$libdir'
12903       allow_undefined_flag_F77=unsupported
12904       always_export_symbols_F77=no
12905       enable_shared_with_static_runtimes_F77=yes
12906       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12907
12908       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12909         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12910         # If the export-symbols file already is a .def file (1st line
12911         # is EXPORTS), use it as is; otherwise, prepend...
12912         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12913           cp $export_symbols $output_objdir/$soname.def;
12914         else
12915           echo EXPORTS > $output_objdir/$soname.def;
12916           cat $export_symbols >> $output_objdir/$soname.def;
12917         fi~
12918         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12919       else
12920         ld_shlibs=no
12921       fi
12922       ;;
12923
12924     netbsd* | knetbsd*-gnu)
12925       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12926         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12927         wlarc=
12928       else
12929         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12930         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12931       fi
12932       ;;
12933
12934     solaris* | sysv5*)
12935       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12936         ld_shlibs_F77=no
12937         cat <<EOF 1>&2
12938
12939 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12940 *** create shared libraries on Solaris systems.  Therefore, libtool
12941 *** is disabling shared libraries support.  We urge you to upgrade GNU
12942 *** binutils to release 2.9.1 or newer.  Another option is to modify
12943 *** your PATH or compiler configuration so that the native linker is
12944 *** used, and then restart.
12945
12946 EOF
12947       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12948         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12949         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12950       else
12951         ld_shlibs_F77=no
12952       fi
12953       ;;
12954
12955     sunos4*)
12956       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12957       wlarc=
12958       hardcode_direct_F77=yes
12959       hardcode_shlibpath_var_F77=no
12960       ;;
12961
12962   linux*)
12963     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12964         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12965         archive_cmds_F77="$tmp_archive_cmds"
12966       supports_anon_versioning=no
12967       case `$LD -v 2>/dev/null` in
12968         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12969         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12970         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12971         *\ 2.11.*) ;; # other 2.11 versions
12972         *) supports_anon_versioning=yes ;;
12973       esac
12974       if test $supports_anon_versioning = yes; then
12975         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
12976 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12977 $echo "local: *; };" >> $output_objdir/$libname.ver~
12978         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12979       else
12980         archive_expsym_cmds_F77="$tmp_archive_cmds"
12981       fi
12982       link_all_deplibs_F77=no
12983     else
12984       ld_shlibs_F77=no
12985     fi
12986     ;;
12987
12988     *)
12989       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12990         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12991         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12992       else
12993         ld_shlibs_F77=no
12994       fi
12995       ;;
12996     esac
12997
12998     if test "$ld_shlibs_F77" = yes; then
12999       runpath_var=LD_RUN_PATH
13000       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13001       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13002       # ancient GNU ld didn't support --whole-archive et. al.
13003       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13004         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13005       else
13006         whole_archive_flag_spec_F77=
13007       fi
13008     fi
13009   else
13010     # PORTME fill in a description of your system's linker (not GNU ld)
13011     case $host_os in
13012     aix3*)
13013       allow_undefined_flag_F77=unsupported
13014       always_export_symbols_F77=yes
13015       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'
13016       # Note: this linker hardcodes the directories in LIBPATH if there
13017       # are no directories specified by -L.
13018       hardcode_minus_L_F77=yes
13019       if test "$GCC" = yes && test -z "$link_static_flag"; then
13020         # Neither direct hardcoding nor static linking is supported with a
13021         # broken collect2.
13022         hardcode_direct_F77=unsupported
13023       fi
13024       ;;
13025
13026     aix4* | aix5*)
13027       if test "$host_cpu" = ia64; then
13028         # On IA64, the linker does run time linking by default, so we don't
13029         # have to do anything special.
13030         aix_use_runtimelinking=no
13031         exp_sym_flag='-Bexport'
13032         no_entry_flag=""
13033       else
13034         # If we're using GNU nm, then we don't want the "-C" option.
13035         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13036         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13037           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'
13038         else
13039           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'
13040         fi
13041         aix_use_runtimelinking=no
13042
13043         # Test if we are trying to use run time linking or normal
13044         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13045         # need to do runtime linking.
13046         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13047           for ld_flag in $LDFLAGS; do
13048           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13049             aix_use_runtimelinking=yes
13050             break
13051           fi
13052           done
13053         esac
13054
13055         exp_sym_flag='-bexport'
13056         no_entry_flag='-bnoentry'
13057       fi
13058
13059       # When large executables or shared objects are built, AIX ld can
13060       # have problems creating the table of contents.  If linking a library
13061       # or program results in "error TOC overflow" add -mminimal-toc to
13062       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13063       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13064
13065       archive_cmds_F77=''
13066       hardcode_direct_F77=yes
13067       hardcode_libdir_separator_F77=':'
13068       link_all_deplibs_F77=yes
13069
13070       if test "$GCC" = yes; then
13071         case $host_os in aix4.012|aix4.012.*)
13072         # We only want to do this on AIX 4.2 and lower, the check
13073         # below for broken collect2 doesn't work under 4.3+
13074           collect2name=`${CC} -print-prog-name=collect2`
13075           if test -f "$collect2name" && \
13076            strings "$collect2name" | grep resolve_lib_name >/dev/null
13077           then
13078           # We have reworked collect2
13079           hardcode_direct_F77=yes
13080           else
13081           # We have old collect2
13082           hardcode_direct_F77=unsupported
13083           # It fails to find uninstalled libraries when the uninstalled
13084           # path is not listed in the libpath.  Setting hardcode_minus_L
13085           # to unsupported forces relinking
13086           hardcode_minus_L_F77=yes
13087           hardcode_libdir_flag_spec_F77='-L$libdir'
13088           hardcode_libdir_separator_F77=
13089           fi
13090         esac
13091         shared_flag='-shared'
13092       else
13093         # not using gcc
13094         if test "$host_cpu" = ia64; then
13095         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13096         # chokes on -Wl,-G. The following line is correct:
13097           shared_flag='-G'
13098         else
13099         if test "$aix_use_runtimelinking" = yes; then
13100             shared_flag='${wl}-G'
13101           else
13102             shared_flag='${wl}-bM:SRE'
13103         fi
13104         fi
13105       fi
13106
13107       # It seems that -bexpall does not export symbols beginning with
13108       # underscore (_), so it is better to generate a list of symbols to export.
13109       always_export_symbols_F77=yes
13110       if test "$aix_use_runtimelinking" = yes; then
13111         # Warning - without using the other runtime loading flags (-brtl),
13112         # -berok will link without error, but may produce a broken library.
13113         allow_undefined_flag_F77='-berok'
13114        # Determine the default libpath from the value encoded in an empty executable.
13115        cat >conftest.$ac_ext <<_ACEOF
13116       program main
13117
13118       end
13119 _ACEOF
13120 rm -f conftest.$ac_objext conftest$ac_exeext
13121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13122   (eval $ac_link) 2>&5
13123   ac_status=$?
13124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125   (exit $ac_status); } &&
13126          { ac_try='test -s conftest$ac_exeext'
13127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128   (eval $ac_try) 2>&5
13129   ac_status=$?
13130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131   (exit $ac_status); }; }; then
13132
13133 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13134 }'`
13135 # Check for a 64-bit object if we didn't find anything.
13136 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; }
13137 }'`; fi
13138 else
13139   echo "$as_me: failed program was:" >&5
13140 sed 's/^/| /' conftest.$ac_ext >&5
13141
13142 fi
13143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13144 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13145
13146        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13147         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"
13148        else
13149         if test "$host_cpu" = ia64; then
13150           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13151           allow_undefined_flag_F77="-z nodefs"
13152           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"
13153         else
13154          # Determine the default libpath from the value encoded in an empty executable.
13155          cat >conftest.$ac_ext <<_ACEOF
13156       program main
13157
13158       end
13159 _ACEOF
13160 rm -f conftest.$ac_objext conftest$ac_exeext
13161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13162   (eval $ac_link) 2>&5
13163   ac_status=$?
13164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165   (exit $ac_status); } &&
13166          { ac_try='test -s conftest$ac_exeext'
13167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168   (eval $ac_try) 2>&5
13169   ac_status=$?
13170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171   (exit $ac_status); }; }; then
13172
13173 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13174 }'`
13175 # Check for a 64-bit object if we didn't find anything.
13176 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; }
13177 }'`; fi
13178 else
13179   echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13181
13182 fi
13183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13184 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13185
13186          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13187           # Warning - without using the other run time loading flags,
13188           # -berok will link without error, but may produce a broken library.
13189           no_undefined_flag_F77=' ${wl}-bernotok'
13190           allow_undefined_flag_F77=' ${wl}-berok'
13191           # -bexpall does not export symbols beginning with underscore (_)
13192           always_export_symbols_F77=yes
13193           # Exported symbols can be pulled into shared objects from archives
13194           whole_archive_flag_spec_F77=' '
13195           archive_cmds_need_lc_F77=yes
13196           # This is similar to how AIX traditionally builds it's shared libraries.
13197           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'
13198         fi
13199       fi
13200       ;;
13201
13202     amigaos*)
13203       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)'
13204       hardcode_libdir_flag_spec_F77='-L$libdir'
13205       hardcode_minus_L_F77=yes
13206       # see comment about different semantics on the GNU ld section
13207       ld_shlibs_F77=no
13208       ;;
13209
13210     bsdi4*)
13211       export_dynamic_flag_spec_F77=-rdynamic
13212       ;;
13213
13214     cygwin* | mingw* | pw32*)
13215       # When not using gcc, we currently assume that we are using
13216       # Microsoft Visual C++.
13217       # hardcode_libdir_flag_spec is actually meaningless, as there is
13218       # no search path for DLLs.
13219       hardcode_libdir_flag_spec_F77=' '
13220       allow_undefined_flag_F77=unsupported
13221       # Tell ltmain to make .lib files, not .a files.
13222       libext=lib
13223       # Tell ltmain to make .dll files, not .so files.
13224       shrext_cmds=".dll"
13225       # FIXME: Setting linknames here is a bad hack.
13226       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13227       # The linker will automatically build a .lib file if we build a DLL.
13228       old_archive_From_new_cmds_F77='true'
13229       # FIXME: Should let the user specify the lib program.
13230       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13231       fix_srcfile_path='`cygpath -w "$srcfile"`'
13232       enable_shared_with_static_runtimes_F77=yes
13233       ;;
13234
13235     darwin* | rhapsody*)
13236     if test "$GXX" = yes ; then
13237       archive_cmds_need_lc_F77=no
13238       case "$host_os" in
13239       rhapsody* | darwin1.[012])
13240         allow_undefined_flag_F77='-undefined suppress'
13241         ;;
13242       *) # Darwin 1.3 on
13243       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13244         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13245       else
13246         case ${MACOSX_DEPLOYMENT_TARGET} in
13247           10.[012])
13248             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13249             ;;
13250           10.*)
13251             allow_undefined_flag_F77='-undefined dynamic_lookup'
13252             ;;
13253         esac
13254       fi
13255         ;;
13256       esac
13257         lt_int_apple_cc_single_mod=no
13258         output_verbose_link_cmd='echo'
13259         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13260           lt_int_apple_cc_single_mod=yes
13261         fi
13262         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13263           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13264         else
13265         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'
13266       fi
13267       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13268       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13269         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13270           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}'
13271         else
13272           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}'
13273         fi
13274           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}'
13275       hardcode_direct_F77=no
13276       hardcode_automatic_F77=yes
13277       hardcode_shlibpath_var_F77=unsupported
13278       whole_archive_flag_spec_F77='-all_load $convenience'
13279       link_all_deplibs_F77=yes
13280     else
13281       ld_shlibs_F77=no
13282     fi
13283       ;;
13284
13285     dgux*)
13286       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13287       hardcode_libdir_flag_spec_F77='-L$libdir'
13288       hardcode_shlibpath_var_F77=no
13289       ;;
13290
13291     freebsd1*)
13292       ld_shlibs_F77=no
13293       ;;
13294
13295     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13296     # support.  Future versions do this automatically, but an explicit c++rt0.o
13297     # does not break anything, and helps significantly (at the cost of a little
13298     # extra space).
13299     freebsd2.2*)
13300       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13301       hardcode_libdir_flag_spec_F77='-R$libdir'
13302       hardcode_direct_F77=yes
13303       hardcode_shlibpath_var_F77=no
13304       ;;
13305
13306     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13307     freebsd2*)
13308       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13309       hardcode_direct_F77=yes
13310       hardcode_minus_L_F77=yes
13311       hardcode_shlibpath_var_F77=no
13312       ;;
13313
13314     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13315     freebsd* | kfreebsd*-gnu)
13316       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13317       hardcode_libdir_flag_spec_F77='-R$libdir'
13318       hardcode_direct_F77=yes
13319       hardcode_shlibpath_var_F77=no
13320       ;;
13321
13322     hpux9*)
13323       if test "$GCC" = yes; then
13324         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'
13325       else
13326         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'
13327       fi
13328       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13329       hardcode_libdir_separator_F77=:
13330       hardcode_direct_F77=yes
13331
13332       # hardcode_minus_L: Not really in the search PATH,
13333       # but as the default location of the library.
13334       hardcode_minus_L_F77=yes
13335       export_dynamic_flag_spec_F77='${wl}-E'
13336       ;;
13337
13338     hpux10* | hpux11*)
13339       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13340         case "$host_cpu" in
13341         hppa*64*|ia64*)
13342           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13343           ;;
13344         *)
13345           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13346           ;;
13347         esac
13348       else
13349         case "$host_cpu" in
13350         hppa*64*|ia64*)
13351           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13352           ;;
13353         *)
13354           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13355           ;;
13356         esac
13357       fi
13358       if test "$with_gnu_ld" = no; then
13359         case "$host_cpu" in
13360         hppa*64*)
13361           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13362           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13363           hardcode_libdir_separator_F77=:
13364           hardcode_direct_F77=no
13365           hardcode_shlibpath_var_F77=no
13366           ;;
13367         ia64*)
13368           hardcode_libdir_flag_spec_F77='-L$libdir'
13369           hardcode_direct_F77=no
13370           hardcode_shlibpath_var_F77=no
13371
13372           # hardcode_minus_L: Not really in the search PATH,
13373           # but as the default location of the library.
13374           hardcode_minus_L_F77=yes
13375           ;;
13376         *)
13377           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13378           hardcode_libdir_separator_F77=:
13379           hardcode_direct_F77=yes
13380           export_dynamic_flag_spec_F77='${wl}-E'
13381
13382           # hardcode_minus_L: Not really in the search PATH,
13383           # but as the default location of the library.
13384           hardcode_minus_L_F77=yes
13385           ;;
13386         esac
13387       fi
13388       ;;
13389
13390     irix5* | irix6* | nonstopux*)
13391       if test "$GCC" = yes; then
13392         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'
13393       else
13394         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'
13395         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13396       fi
13397       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13398       hardcode_libdir_separator_F77=:
13399       link_all_deplibs_F77=yes
13400       ;;
13401
13402     netbsd* | knetbsd*-gnu)
13403       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13404         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13405       else
13406         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13407       fi
13408       hardcode_libdir_flag_spec_F77='-R$libdir'
13409       hardcode_direct_F77=yes
13410       hardcode_shlibpath_var_F77=no
13411       ;;
13412
13413     newsos6)
13414       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13415       hardcode_direct_F77=yes
13416       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13417       hardcode_libdir_separator_F77=:
13418       hardcode_shlibpath_var_F77=no
13419       ;;
13420
13421     openbsd*)
13422       hardcode_direct_F77=yes
13423       hardcode_shlibpath_var_F77=no
13424       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13425         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13426         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13427         export_dynamic_flag_spec_F77='${wl}-E'
13428       else
13429        case $host_os in
13430          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13431            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13432            hardcode_libdir_flag_spec_F77='-R$libdir'
13433            ;;
13434          *)
13435            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13436            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13437            ;;
13438        esac
13439       fi
13440       ;;
13441
13442     os2*)
13443       hardcode_libdir_flag_spec_F77='-L$libdir'
13444       hardcode_minus_L_F77=yes
13445       allow_undefined_flag_F77=unsupported
13446       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'
13447       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13448       ;;
13449
13450     osf3*)
13451       if test "$GCC" = yes; then
13452         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13453         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'
13454       else
13455         allow_undefined_flag_F77=' -expect_unresolved \*'
13456         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'
13457       fi
13458       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13459       hardcode_libdir_separator_F77=:
13460       ;;
13461
13462     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13463       if test "$GCC" = yes; then
13464         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13465         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'
13466         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13467       else
13468         allow_undefined_flag_F77=' -expect_unresolved \*'
13469         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'
13470         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~
13471         $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'
13472
13473         # Both c and cxx compiler support -rpath directly
13474         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13475       fi
13476       hardcode_libdir_separator_F77=:
13477       ;;
13478
13479     sco3.2v5*)
13480       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13481       hardcode_shlibpath_var_F77=no
13482       export_dynamic_flag_spec_F77='${wl}-Bexport'
13483       runpath_var=LD_RUN_PATH
13484       hardcode_runpath_var=yes
13485       ;;
13486
13487     solaris*)
13488       no_undefined_flag_F77=' -z text'
13489       if test "$GCC" = yes; then
13490         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13491         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13492           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13493       else
13494         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13495         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13496         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13497       fi
13498       hardcode_libdir_flag_spec_F77='-R$libdir'
13499       hardcode_shlibpath_var_F77=no
13500       case $host_os in
13501       solaris2.[0-5] | solaris2.[0-5].*) ;;
13502       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13503         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13504       esac
13505       link_all_deplibs_F77=yes
13506       ;;
13507
13508     sunos4*)
13509       if test "x$host_vendor" = xsequent; then
13510         # Use $CC to link under sequent, because it throws in some extra .o
13511         # files that make .init and .fini sections work.
13512         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13513       else
13514         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13515       fi
13516       hardcode_libdir_flag_spec_F77='-L$libdir'
13517       hardcode_direct_F77=yes
13518       hardcode_minus_L_F77=yes
13519       hardcode_shlibpath_var_F77=no
13520       ;;
13521
13522     sysv4)
13523       case $host_vendor in
13524         sni)
13525           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13526           hardcode_direct_F77=yes # is this really true???
13527         ;;
13528         siemens)
13529           ## LD is ld it makes a PLAMLIB
13530           ## CC just makes a GrossModule.
13531           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13532           reload_cmds_F77='$CC -r -o $output$reload_objs'
13533           hardcode_direct_F77=no
13534         ;;
13535         motorola)
13536           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13537           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13538         ;;
13539       esac
13540       runpath_var='LD_RUN_PATH'
13541       hardcode_shlibpath_var_F77=no
13542       ;;
13543
13544     sysv4.3*)
13545       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13546       hardcode_shlibpath_var_F77=no
13547       export_dynamic_flag_spec_F77='-Bexport'
13548       ;;
13549
13550     sysv4*MP*)
13551       if test -d /usr/nec; then
13552         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13553         hardcode_shlibpath_var_F77=no
13554         runpath_var=LD_RUN_PATH
13555         hardcode_runpath_var=yes
13556         ld_shlibs_F77=yes
13557       fi
13558       ;;
13559
13560     sysv4.2uw2*)
13561       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13562       hardcode_direct_F77=yes
13563       hardcode_minus_L_F77=no
13564       hardcode_shlibpath_var_F77=no
13565       hardcode_runpath_var=yes
13566       runpath_var=LD_RUN_PATH
13567       ;;
13568
13569    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13570       no_undefined_flag_F77='${wl}-z ${wl}text'
13571       if test "$GCC" = yes; then
13572         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13573       else
13574         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13575       fi
13576       runpath_var='LD_RUN_PATH'
13577       hardcode_shlibpath_var_F77=no
13578       ;;
13579
13580     sysv5*)
13581       no_undefined_flag_F77=' -z text'
13582       # $CC -shared without GNU ld will not create a library from C++
13583       # object files and a static libstdc++, better avoid it by now
13584       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13585       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13586                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13587       hardcode_libdir_flag_spec_F77=
13588       hardcode_shlibpath_var_F77=no
13589       runpath_var='LD_RUN_PATH'
13590       ;;
13591
13592     uts4*)
13593       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13594       hardcode_libdir_flag_spec_F77='-L$libdir'
13595       hardcode_shlibpath_var_F77=no
13596       ;;
13597
13598     *)
13599       ld_shlibs_F77=no
13600       ;;
13601     esac
13602   fi
13603
13604 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13605 echo "${ECHO_T}$ld_shlibs_F77" >&6
13606 test "$ld_shlibs_F77" = no && can_build_shared=no
13607
13608 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13609 if test "$GCC" = yes; then
13610   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13611 fi
13612
13613 #
13614 # Do we need to explicitly link libc?
13615 #
13616 case "x$archive_cmds_need_lc_F77" in
13617 x|xyes)
13618   # Assume -lc should be added
13619   archive_cmds_need_lc_F77=yes
13620
13621   if test "$enable_shared" = yes && test "$GCC" = yes; then
13622     case $archive_cmds_F77 in
13623     *'~'*)
13624       # FIXME: we may have to deal with multi-command sequences.
13625       ;;
13626     '$CC '*)
13627       # Test whether the compiler implicitly links with -lc since on some
13628       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13629       # to ld, don't add -lc before -lgcc.
13630       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13631 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13632       $rm conftest*
13633       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13634
13635       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13636   (eval $ac_compile) 2>&5
13637   ac_status=$?
13638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); } 2>conftest.err; then
13640         soname=conftest
13641         lib=conftest
13642         libobjs=conftest.$ac_objext
13643         deplibs=
13644         wl=$lt_prog_compiler_wl_F77
13645         compiler_flags=-v
13646         linker_flags=-v
13647         verstring=
13648         output_objdir=.
13649         libname=conftest
13650         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13651         allow_undefined_flag_F77=
13652         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13653   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13654   ac_status=$?
13655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); }
13657         then
13658           archive_cmds_need_lc_F77=no
13659         else
13660           archive_cmds_need_lc_F77=yes
13661         fi
13662         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13663       else
13664         cat conftest.err 1>&5
13665       fi
13666       $rm conftest*
13667       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13668 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13669       ;;
13670     esac
13671   fi
13672   ;;
13673 esac
13674
13675 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13676 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13677 library_names_spec=
13678 libname_spec='lib$name'
13679 soname_spec=
13680 shrext_cmds=".so"
13681 postinstall_cmds=
13682 postuninstall_cmds=
13683 finish_cmds=
13684 finish_eval=
13685 shlibpath_var=
13686 shlibpath_overrides_runpath=unknown
13687 version_type=none
13688 dynamic_linker="$host_os ld.so"
13689 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13690 if test "$GCC" = yes; then
13691   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13692   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13693     # if the path contains ";" then we assume it to be the separator
13694     # otherwise default to the standard path separator (i.e. ":") - it is
13695     # assumed that no part of a normal pathname contains ";" but that should
13696     # okay in the real world where ";" in dirpaths is itself problematic.
13697     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13698   else
13699     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13700   fi
13701 else
13702   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13703 fi
13704 need_lib_prefix=unknown
13705 hardcode_into_libs=no
13706
13707 # when you set need_version to no, make sure it does not cause -set_version
13708 # flags to be left without arguments
13709 need_version=unknown
13710
13711 case $host_os in
13712 aix3*)
13713   version_type=linux
13714   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13715   shlibpath_var=LIBPATH
13716
13717   # AIX 3 has no versioning support, so we append a major version to the name.
13718   soname_spec='${libname}${release}${shared_ext}$major'
13719   ;;
13720
13721 aix4* | aix5*)
13722   version_type=linux
13723   need_lib_prefix=no
13724   need_version=no
13725   hardcode_into_libs=yes
13726   if test "$host_cpu" = ia64; then
13727     # AIX 5 supports IA64
13728     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13729     shlibpath_var=LD_LIBRARY_PATH
13730   else
13731     # With GCC up to 2.95.x, collect2 would create an import file
13732     # for dependence libraries.  The import file would start with
13733     # the line `#! .'.  This would cause the generated library to
13734     # depend on `.', always an invalid library.  This was fixed in
13735     # development snapshots of GCC prior to 3.0.
13736     case $host_os in
13737       aix4 | aix4.[01] | aix4.[01].*)
13738       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13739            echo ' yes '
13740            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13741         :
13742       else
13743         can_build_shared=no
13744       fi
13745       ;;
13746     esac
13747     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13748     # soname into executable. Probably we can add versioning support to
13749     # collect2, so additional links can be useful in future.
13750     if test "$aix_use_runtimelinking" = yes; then
13751       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13752       # instead of lib<name>.a to let people know that these are not
13753       # typical AIX shared libraries.
13754       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13755     else
13756       # We preserve .a as extension for shared libraries through AIX4.2
13757       # and later when we are not doing run time linking.
13758       library_names_spec='${libname}${release}.a $libname.a'
13759       soname_spec='${libname}${release}${shared_ext}$major'
13760     fi
13761     shlibpath_var=LIBPATH
13762   fi
13763   ;;
13764
13765 amigaos*)
13766   library_names_spec='$libname.ixlibrary $libname.a'
13767   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13768   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'
13769   ;;
13770
13771 beos*)
13772   library_names_spec='${libname}${shared_ext}'
13773   dynamic_linker="$host_os ld.so"
13774   shlibpath_var=LIBRARY_PATH
13775   ;;
13776
13777 bsdi4*)
13778   version_type=linux
13779   need_version=no
13780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13781   soname_spec='${libname}${release}${shared_ext}$major'
13782   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13783   shlibpath_var=LD_LIBRARY_PATH
13784   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13785   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13786   # the default ld.so.conf also contains /usr/contrib/lib and
13787   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13788   # libtool to hard-code these into programs
13789   ;;
13790
13791 cygwin* | mingw* | pw32*)
13792   version_type=windows
13793   shrext_cmds=".dll"
13794   need_version=no
13795   need_lib_prefix=no
13796
13797   case $GCC,$host_os in
13798   yes,cygwin* | yes,mingw* | yes,pw32*)
13799     library_names_spec='$libname.dll.a'
13800     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13801     postinstall_cmds='base_file=`basename \${file}`~
13802       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13803       dldir=$destdir/`dirname \$dlpath`~
13804       test -d \$dldir || mkdir -p \$dldir~
13805       $install_prog $dir/$dlname \$dldir/$dlname'
13806     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13807       dlpath=$dir/\$dldll~
13808        $rm \$dlpath'
13809     shlibpath_overrides_runpath=yes
13810
13811     case $host_os in
13812     cygwin*)
13813       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13814       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13815       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13816       ;;
13817     mingw*)
13818       # MinGW DLLs use traditional 'lib' prefix
13819       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13820       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13821       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13822         # It is most probably a Windows format PATH printed by
13823         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13824         # path with ; separators, and with drive letters. We can handle the
13825         # drive letters (cygwin fileutils understands them), so leave them,
13826         # especially as we might pass files found there to a mingw objdump,
13827         # which wouldn't understand a cygwinified path. Ahh.
13828         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13829       else
13830         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13831       fi
13832       ;;
13833     pw32*)
13834       # pw32 DLLs use 'pw' prefix rather than 'lib'
13835       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13836       ;;
13837     esac
13838     ;;
13839
13840   *)
13841     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13842     ;;
13843   esac
13844   dynamic_linker='Win32 ld.exe'
13845   # FIXME: first we should search . and the directory the executable is in
13846   shlibpath_var=PATH
13847   ;;
13848
13849 darwin* | rhapsody*)
13850   dynamic_linker="$host_os dyld"
13851   version_type=darwin
13852   need_lib_prefix=no
13853   need_version=no
13854   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13855   soname_spec='${libname}${release}${major}$shared_ext'
13856   shlibpath_overrides_runpath=yes
13857   shlibpath_var=DYLD_LIBRARY_PATH
13858   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13859   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13860   if test "$GCC" = yes; then
13861     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"`
13862   else
13863     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13864   fi
13865   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13866   ;;
13867
13868 dgux*)
13869   version_type=linux
13870   need_lib_prefix=no
13871   need_version=no
13872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13873   soname_spec='${libname}${release}${shared_ext}$major'
13874   shlibpath_var=LD_LIBRARY_PATH
13875   ;;
13876
13877 freebsd1*)
13878   dynamic_linker=no
13879   ;;
13880
13881 kfreebsd*-gnu)
13882   version_type=linux
13883   need_lib_prefix=no
13884   need_version=no
13885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13886   soname_spec='${libname}${release}${shared_ext}$major'
13887   shlibpath_var=LD_LIBRARY_PATH
13888   shlibpath_overrides_runpath=no
13889   hardcode_into_libs=yes
13890   dynamic_linker='GNU ld.so'
13891   ;;
13892
13893 freebsd*)
13894   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13895   version_type=freebsd-$objformat
13896   case $version_type in
13897     freebsd-elf*)
13898       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13899       need_version=no
13900       need_lib_prefix=no
13901       ;;
13902     freebsd-*)
13903       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13904       need_version=yes
13905       ;;
13906   esac
13907   shlibpath_var=LD_LIBRARY_PATH
13908   case $host_os in
13909   freebsd2*)
13910     shlibpath_overrides_runpath=yes
13911     ;;
13912   freebsd3.01* | freebsdelf3.01*)
13913     shlibpath_overrides_runpath=yes
13914     hardcode_into_libs=yes
13915     ;;
13916   *) # from 3.2 on
13917     shlibpath_overrides_runpath=no
13918     hardcode_into_libs=yes
13919     ;;
13920   esac
13921   ;;
13922
13923 gnu*)
13924   version_type=linux
13925   need_lib_prefix=no
13926   need_version=no
13927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13928   soname_spec='${libname}${release}${shared_ext}$major'
13929   shlibpath_var=LD_LIBRARY_PATH
13930   hardcode_into_libs=yes
13931   ;;
13932
13933 hpux9* | hpux10* | hpux11*)
13934   # Give a soname corresponding to the major version so that dld.sl refuses to
13935   # link against other versions.
13936   version_type=sunos
13937   need_lib_prefix=no
13938   need_version=no
13939   case "$host_cpu" in
13940   ia64*)
13941     shrext_cmds='.so'
13942     hardcode_into_libs=yes
13943     dynamic_linker="$host_os dld.so"
13944     shlibpath_var=LD_LIBRARY_PATH
13945     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13946     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13947     soname_spec='${libname}${release}${shared_ext}$major'
13948     if test "X$HPUX_IA64_MODE" = X32; then
13949       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13950     else
13951       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13952     fi
13953     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13954     ;;
13955    hppa*64*)
13956      shrext_cmds='.sl'
13957      hardcode_into_libs=yes
13958      dynamic_linker="$host_os dld.sl"
13959      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13960      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13961      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13962      soname_spec='${libname}${release}${shared_ext}$major'
13963      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13964      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13965      ;;
13966    *)
13967     shrext_cmds='.sl'
13968     dynamic_linker="$host_os dld.sl"
13969     shlibpath_var=SHLIB_PATH
13970     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13971     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13972     soname_spec='${libname}${release}${shared_ext}$major'
13973     ;;
13974   esac
13975   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13976   postinstall_cmds='chmod 555 $lib'
13977   ;;
13978
13979 irix5* | irix6* | nonstopux*)
13980   case $host_os in
13981     nonstopux*) version_type=nonstopux ;;
13982     *)
13983         if test "$lt_cv_prog_gnu_ld" = yes; then
13984                 version_type=linux
13985         else
13986                 version_type=irix
13987         fi ;;
13988   esac
13989   need_lib_prefix=no
13990   need_version=no
13991   soname_spec='${libname}${release}${shared_ext}$major'
13992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13993   case $host_os in
13994   irix5* | nonstopux*)
13995     libsuff= shlibsuff=
13996     ;;
13997   *)
13998     case $LD in # libtool.m4 will add one of these switches to LD
13999     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14000       libsuff= shlibsuff= libmagic=32-bit;;
14001     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14002       libsuff=32 shlibsuff=N32 libmagic=N32;;
14003     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14004       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14005     *) libsuff= shlibsuff= libmagic=never-match;;
14006     esac
14007     ;;
14008   esac
14009   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14010   shlibpath_overrides_runpath=no
14011   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14012   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14013   hardcode_into_libs=yes
14014   ;;
14015
14016 # No shared lib support for Linux oldld, aout, or coff.
14017 linux*oldld* | linux*aout* | linux*coff*)
14018   dynamic_linker=no
14019   ;;
14020
14021 # This must be Linux ELF.
14022 linux*)
14023   version_type=linux
14024   need_lib_prefix=no
14025   need_version=no
14026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14027   soname_spec='${libname}${release}${shared_ext}$major'
14028   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14029   shlibpath_var=LD_LIBRARY_PATH
14030   shlibpath_overrides_runpath=no
14031   # This implies no fast_install, which is unacceptable.
14032   # Some rework will be needed to allow for fast_install
14033   # before this can be enabled.
14034   hardcode_into_libs=yes
14035
14036   # Append ld.so.conf contents to the search path
14037   if test -f /etc/ld.so.conf; then
14038     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14039     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14040   fi
14041
14042   # We used to test for /lib/ld.so.1 and disable shared libraries on
14043   # powerpc, because MkLinux only supported shared libraries with the
14044   # GNU dynamic linker.  Since this was broken with cross compilers,
14045   # most powerpc-linux boxes support dynamic linking these days and
14046   # people can always --disable-shared, the test was removed, and we
14047   # assume the GNU/Linux dynamic linker is in use.
14048   dynamic_linker='GNU/Linux ld.so'
14049   ;;
14050
14051 knetbsd*-gnu)
14052   version_type=linux
14053   need_lib_prefix=no
14054   need_version=no
14055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14056   soname_spec='${libname}${release}${shared_ext}$major'
14057   shlibpath_var=LD_LIBRARY_PATH
14058   shlibpath_overrides_runpath=no
14059   hardcode_into_libs=yes
14060   dynamic_linker='GNU ld.so'
14061   ;;
14062
14063 netbsd*)
14064   version_type=sunos
14065   need_lib_prefix=no
14066   need_version=no
14067   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14068     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14069     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14070     dynamic_linker='NetBSD (a.out) ld.so'
14071   else
14072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14073     soname_spec='${libname}${release}${shared_ext}$major'
14074     dynamic_linker='NetBSD ld.elf_so'
14075   fi
14076   shlibpath_var=LD_LIBRARY_PATH
14077   shlibpath_overrides_runpath=yes
14078   hardcode_into_libs=yes
14079   ;;
14080
14081 newsos6)
14082   version_type=linux
14083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14084   shlibpath_var=LD_LIBRARY_PATH
14085   shlibpath_overrides_runpath=yes
14086   ;;
14087
14088 nto-qnx*)
14089   version_type=linux
14090   need_lib_prefix=no
14091   need_version=no
14092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14093   soname_spec='${libname}${release}${shared_ext}$major'
14094   shlibpath_var=LD_LIBRARY_PATH
14095   shlibpath_overrides_runpath=yes
14096   ;;
14097
14098 openbsd*)
14099   version_type=sunos
14100   need_lib_prefix=no
14101   need_version=yes
14102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14103   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14104   shlibpath_var=LD_LIBRARY_PATH
14105   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14106     case $host_os in
14107       openbsd2.[89] | openbsd2.[89].*)
14108         shlibpath_overrides_runpath=no
14109         ;;
14110       *)
14111         shlibpath_overrides_runpath=yes
14112         ;;
14113       esac
14114   else
14115     shlibpath_overrides_runpath=yes
14116   fi
14117   ;;
14118
14119 os2*)
14120   libname_spec='$name'
14121   shrext_cmds=".dll"
14122   need_lib_prefix=no
14123   library_names_spec='$libname${shared_ext} $libname.a'
14124   dynamic_linker='OS/2 ld.exe'
14125   shlibpath_var=LIBPATH
14126   ;;
14127
14128 osf3* | osf4* | osf5*)
14129   version_type=osf
14130   need_lib_prefix=no
14131   need_version=no
14132   soname_spec='${libname}${release}${shared_ext}$major'
14133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14134   shlibpath_var=LD_LIBRARY_PATH
14135   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14136   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14137   ;;
14138
14139 sco3.2v5*)
14140   version_type=osf
14141   soname_spec='${libname}${release}${shared_ext}$major'
14142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14143   shlibpath_var=LD_LIBRARY_PATH
14144   ;;
14145
14146 solaris*)
14147   version_type=linux
14148   need_lib_prefix=no
14149   need_version=no
14150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14151   soname_spec='${libname}${release}${shared_ext}$major'
14152   shlibpath_var=LD_LIBRARY_PATH
14153   shlibpath_overrides_runpath=yes
14154   hardcode_into_libs=yes
14155   # ldd complains unless libraries are executable
14156   postinstall_cmds='chmod +x $lib'
14157   ;;
14158
14159 sunos4*)
14160   version_type=sunos
14161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14162   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14163   shlibpath_var=LD_LIBRARY_PATH
14164   shlibpath_overrides_runpath=yes
14165   if test "$with_gnu_ld" = yes; then
14166     need_lib_prefix=no
14167   fi
14168   need_version=yes
14169   ;;
14170
14171 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14172   version_type=linux
14173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14174   soname_spec='${libname}${release}${shared_ext}$major'
14175   shlibpath_var=LD_LIBRARY_PATH
14176   case $host_vendor in
14177     sni)
14178       shlibpath_overrides_runpath=no
14179       need_lib_prefix=no
14180       export_dynamic_flag_spec='${wl}-Blargedynsym'
14181       runpath_var=LD_RUN_PATH
14182       ;;
14183     siemens)
14184       need_lib_prefix=no
14185       ;;
14186     motorola)
14187       need_lib_prefix=no
14188       need_version=no
14189       shlibpath_overrides_runpath=no
14190       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14191       ;;
14192   esac
14193   ;;
14194
14195 sysv4*MP*)
14196   if test -d /usr/nec ;then
14197     version_type=linux
14198     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14199     soname_spec='$libname${shared_ext}.$major'
14200     shlibpath_var=LD_LIBRARY_PATH
14201   fi
14202   ;;
14203
14204 uts4*)
14205   version_type=linux
14206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14207   soname_spec='${libname}${release}${shared_ext}$major'
14208   shlibpath_var=LD_LIBRARY_PATH
14209   ;;
14210
14211 *)
14212   dynamic_linker=no
14213   ;;
14214 esac
14215 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14216 echo "${ECHO_T}$dynamic_linker" >&6
14217 test "$dynamic_linker" = no && can_build_shared=no
14218
14219 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14220 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14221 hardcode_action_F77=
14222 if test -n "$hardcode_libdir_flag_spec_F77" || \
14223    test -n "$runpath_var F77" || \
14224    test "X$hardcode_automatic_F77"="Xyes" ; then
14225
14226   # We can hardcode non-existant directories.
14227   if test "$hardcode_direct_F77" != no &&
14228      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14229      # have to relink, otherwise we might link with an installed library
14230      # when we should be linking with a yet-to-be-installed one
14231      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14232      test "$hardcode_minus_L_F77" != no; then
14233     # Linking always hardcodes the temporary library directory.
14234     hardcode_action_F77=relink
14235   else
14236     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14237     hardcode_action_F77=immediate
14238   fi
14239 else
14240   # We cannot hardcode anything, or else we can only hardcode existing
14241   # directories.
14242   hardcode_action_F77=unsupported
14243 fi
14244 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14245 echo "${ECHO_T}$hardcode_action_F77" >&6
14246
14247 if test "$hardcode_action_F77" = relink; then
14248   # Fast installation is not supported
14249   enable_fast_install=no
14250 elif test "$shlibpath_overrides_runpath" = yes ||
14251      test "$enable_shared" = no; then
14252   # Fast installation is not necessary
14253   enable_fast_install=needless
14254 fi
14255
14256 striplib=
14257 old_striplib=
14258 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14259 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14260 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14261   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14262   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14263   echo "$as_me:$LINENO: result: yes" >&5
14264 echo "${ECHO_T}yes" >&6
14265 else
14266 # FIXME - insert some real tests, host_os isn't really good enough
14267   case $host_os in
14268    darwin*)
14269        if test -n "$STRIP" ; then
14270          striplib="$STRIP -x"
14271          echo "$as_me:$LINENO: result: yes" >&5
14272 echo "${ECHO_T}yes" >&6
14273        else
14274   echo "$as_me:$LINENO: result: no" >&5
14275 echo "${ECHO_T}no" >&6
14276 fi
14277        ;;
14278    *)
14279   echo "$as_me:$LINENO: result: no" >&5
14280 echo "${ECHO_T}no" >&6
14281     ;;
14282   esac
14283 fi
14284
14285
14286
14287 # The else clause should only fire when bootstrapping the
14288 # libtool distribution, otherwise you forgot to ship ltmain.sh
14289 # with your package, and you will get complaints that there are
14290 # no rules to generate ltmain.sh.
14291 if test -f "$ltmain"; then
14292   # See if we are running on zsh, and set the options which allow our commands through
14293   # without removal of \ escapes.
14294   if test -n "${ZSH_VERSION+set}" ; then
14295     setopt NO_GLOB_SUBST
14296   fi
14297   # Now quote all the things that may contain metacharacters while being
14298   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14299   # variables and quote the copies for generation of the libtool script.
14300   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14301     SED SHELL STRIP \
14302     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14303     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14304     deplibs_check_method reload_flag reload_cmds need_locks \
14305     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14306     lt_cv_sys_global_symbol_to_c_name_address \
14307     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14308     old_postinstall_cmds old_postuninstall_cmds \
14309     compiler_F77 \
14310     CC_F77 \
14311     LD_F77 \
14312     lt_prog_compiler_wl_F77 \
14313     lt_prog_compiler_pic_F77 \
14314     lt_prog_compiler_static_F77 \
14315     lt_prog_compiler_no_builtin_flag_F77 \
14316     export_dynamic_flag_spec_F77 \
14317     thread_safe_flag_spec_F77 \
14318     whole_archive_flag_spec_F77 \
14319     enable_shared_with_static_runtimes_F77 \
14320     old_archive_cmds_F77 \
14321     old_archive_from_new_cmds_F77 \
14322     predep_objects_F77 \
14323     postdep_objects_F77 \
14324     predeps_F77 \
14325     postdeps_F77 \
14326     compiler_lib_search_path_F77 \
14327     archive_cmds_F77 \
14328     archive_expsym_cmds_F77 \
14329     postinstall_cmds_F77 \
14330     postuninstall_cmds_F77 \
14331     old_archive_from_expsyms_cmds_F77 \
14332     allow_undefined_flag_F77 \
14333     no_undefined_flag_F77 \
14334     export_symbols_cmds_F77 \
14335     hardcode_libdir_flag_spec_F77 \
14336     hardcode_libdir_flag_spec_ld_F77 \
14337     hardcode_libdir_separator_F77 \
14338     hardcode_automatic_F77 \
14339     module_cmds_F77 \
14340     module_expsym_cmds_F77 \
14341     lt_cv_prog_compiler_c_o_F77 \
14342     exclude_expsyms_F77 \
14343     include_expsyms_F77; do
14344
14345     case $var in
14346     old_archive_cmds_F77 | \
14347     old_archive_from_new_cmds_F77 | \
14348     archive_cmds_F77 | \
14349     archive_expsym_cmds_F77 | \
14350     module_cmds_F77 | \
14351     module_expsym_cmds_F77 | \
14352     old_archive_from_expsyms_cmds_F77 | \
14353     export_symbols_cmds_F77 | \
14354     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14355     postinstall_cmds | postuninstall_cmds | \
14356     old_postinstall_cmds | old_postuninstall_cmds | \
14357     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14358       # Double-quote double-evaled strings.
14359       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14360       ;;
14361     *)
14362       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14363       ;;
14364     esac
14365   done
14366
14367   case $lt_echo in
14368   *'\$0 --fallback-echo"')
14369     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14370     ;;
14371   esac
14372
14373 cfgfile="$ofile"
14374
14375   cat <<__EOF__ >> "$cfgfile"
14376 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14377
14378 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14379
14380 # Shell to use when invoking shell scripts.
14381 SHELL=$lt_SHELL
14382
14383 # Whether or not to build shared libraries.
14384 build_libtool_libs=$enable_shared
14385
14386 # Whether or not to build static libraries.
14387 build_old_libs=$enable_static
14388
14389 # Whether or not to add -lc for building shared libraries.
14390 build_libtool_need_lc=$archive_cmds_need_lc_F77
14391
14392 # Whether or not to disallow shared libs when runtime libs are static
14393 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14394
14395 # Whether or not to optimize for fast installation.
14396 fast_install=$enable_fast_install
14397
14398 # The host system.
14399 host_alias=$host_alias
14400 host=$host
14401
14402 # An echo program that does not interpret backslashes.
14403 echo=$lt_echo
14404
14405 # The archiver.
14406 AR=$lt_AR
14407 AR_FLAGS=$lt_AR_FLAGS
14408
14409 # A C compiler.
14410 LTCC=$lt_LTCC
14411
14412 # A language-specific compiler.
14413 CC=$lt_compiler_F77
14414
14415 # Is the compiler the GNU C compiler?
14416 with_gcc=$GCC_F77
14417
14418 # An ERE matcher.
14419 EGREP=$lt_EGREP
14420
14421 # The linker used to build libraries.
14422 LD=$lt_LD_F77
14423
14424 # Whether we need hard or soft links.
14425 LN_S=$lt_LN_S
14426
14427 # A BSD-compatible nm program.
14428 NM=$lt_NM
14429
14430 # A symbol stripping program
14431 STRIP=$lt_STRIP
14432
14433 # Used to examine libraries when file_magic_cmd begins "file"
14434 MAGIC_CMD=$MAGIC_CMD
14435
14436 # Used on cygwin: DLL creation program.
14437 DLLTOOL="$DLLTOOL"
14438
14439 # Used on cygwin: object dumper.
14440 OBJDUMP="$OBJDUMP"
14441
14442 # Used on cygwin: assembler.
14443 AS="$AS"
14444
14445 # The name of the directory that contains temporary libtool files.
14446 objdir=$objdir
14447
14448 # How to create reloadable object files.
14449 reload_flag=$lt_reload_flag
14450 reload_cmds=$lt_reload_cmds
14451
14452 # How to pass a linker flag through the compiler.
14453 wl=$lt_lt_prog_compiler_wl_F77
14454
14455 # Object file suffix (normally "o").
14456 objext="$ac_objext"
14457
14458 # Old archive suffix (normally "a").
14459 libext="$libext"
14460
14461 # Shared library suffix (normally ".so").
14462 shrext_cmds='$shrext_cmds'
14463
14464 # Executable file suffix (normally "").
14465 exeext="$exeext"
14466
14467 # Additional compiler flags for building library objects.
14468 pic_flag=$lt_lt_prog_compiler_pic_F77
14469 pic_mode=$pic_mode
14470
14471 # What is the maximum length of a command?
14472 max_cmd_len=$lt_cv_sys_max_cmd_len
14473
14474 # Does compiler simultaneously support -c and -o options?
14475 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14476
14477 # Must we lock files when doing compilation ?
14478 need_locks=$lt_need_locks
14479
14480 # Do we need the lib prefix for modules?
14481 need_lib_prefix=$need_lib_prefix
14482
14483 # Do we need a version for libraries?
14484 need_version=$need_version
14485
14486 # Whether dlopen is supported.
14487 dlopen_support=$enable_dlopen
14488
14489 # Whether dlopen of programs is supported.
14490 dlopen_self=$enable_dlopen_self
14491
14492 # Whether dlopen of statically linked programs is supported.
14493 dlopen_self_static=$enable_dlopen_self_static
14494
14495 # Compiler flag to prevent dynamic linking.
14496 link_static_flag=$lt_lt_prog_compiler_static_F77
14497
14498 # Compiler flag to turn off builtin functions.
14499 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14500
14501 # Compiler flag to allow reflexive dlopens.
14502 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14503
14504 # Compiler flag to generate shared objects directly from archives.
14505 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14506
14507 # Compiler flag to generate thread-safe objects.
14508 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14509
14510 # Library versioning type.
14511 version_type=$version_type
14512
14513 # Format of library name prefix.
14514 libname_spec=$lt_libname_spec
14515
14516 # List of archive names.  First name is the real one, the rest are links.
14517 # The last name is the one that the linker finds with -lNAME.
14518 library_names_spec=$lt_library_names_spec
14519
14520 # The coded name of the library, if different from the real name.
14521 soname_spec=$lt_soname_spec
14522
14523 # Commands used to build and install an old-style archive.
14524 RANLIB=$lt_RANLIB
14525 old_archive_cmds=$lt_old_archive_cmds_F77
14526 old_postinstall_cmds=$lt_old_postinstall_cmds
14527 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14528
14529 # Create an old-style archive from a shared archive.
14530 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14531
14532 # Create a temporary old-style archive to link instead of a shared archive.
14533 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14534
14535 # Commands used to build and install a shared archive.
14536 archive_cmds=$lt_archive_cmds_F77
14537 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14538 postinstall_cmds=$lt_postinstall_cmds
14539 postuninstall_cmds=$lt_postuninstall_cmds
14540
14541 # Commands used to build a loadable module (assumed same as above if empty)
14542 module_cmds=$lt_module_cmds_F77
14543 module_expsym_cmds=$lt_module_expsym_cmds_F77
14544
14545 # Commands to strip libraries.
14546 old_striplib=$lt_old_striplib
14547 striplib=$lt_striplib
14548
14549 # Dependencies to place before the objects being linked to create a
14550 # shared library.
14551 predep_objects=$lt_predep_objects_F77
14552
14553 # Dependencies to place after the objects being linked to create a
14554 # shared library.
14555 postdep_objects=$lt_postdep_objects_F77
14556
14557 # Dependencies to place before the objects being linked to create a
14558 # shared library.
14559 predeps=$lt_predeps_F77
14560
14561 # Dependencies to place after the objects being linked to create a
14562 # shared library.
14563 postdeps=$lt_postdeps_F77
14564
14565 # The library search path used internally by the compiler when linking
14566 # a shared library.
14567 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14568
14569 # Method to check whether dependent libraries are shared objects.
14570 deplibs_check_method=$lt_deplibs_check_method
14571
14572 # Command to use when deplibs_check_method == file_magic.
14573 file_magic_cmd=$lt_file_magic_cmd
14574
14575 # Flag that allows shared libraries with undefined symbols to be built.
14576 allow_undefined_flag=$lt_allow_undefined_flag_F77
14577
14578 # Flag that forces no undefined symbols.
14579 no_undefined_flag=$lt_no_undefined_flag_F77
14580
14581 # Commands used to finish a libtool library installation in a directory.
14582 finish_cmds=$lt_finish_cmds
14583
14584 # Same as above, but a single script fragment to be evaled but not shown.
14585 finish_eval=$lt_finish_eval
14586
14587 # Take the output of nm and produce a listing of raw symbols and C names.
14588 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14589
14590 # Transform the output of nm in a proper C declaration
14591 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14592
14593 # Transform the output of nm in a C name address pair
14594 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14595
14596 # This is the shared library runtime path variable.
14597 runpath_var=$runpath_var
14598
14599 # This is the shared library path variable.
14600 shlibpath_var=$shlibpath_var
14601
14602 # Is shlibpath searched before the hard-coded library search path?
14603 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14604
14605 # How to hardcode a shared library path into an executable.
14606 hardcode_action=$hardcode_action_F77
14607
14608 # Whether we should hardcode library paths into libraries.
14609 hardcode_into_libs=$hardcode_into_libs
14610
14611 # Flag to hardcode \$libdir into a binary during linking.
14612 # This must work even if \$libdir does not exist.
14613 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14614
14615 # If ld is used when linking, flag to hardcode \$libdir into
14616 # a binary during linking. This must work even if \$libdir does
14617 # not exist.
14618 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14619
14620 # Whether we need a single -rpath flag with a separated argument.
14621 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14622
14623 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14624 # resulting binary.
14625 hardcode_direct=$hardcode_direct_F77
14626
14627 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14628 # resulting binary.
14629 hardcode_minus_L=$hardcode_minus_L_F77
14630
14631 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14632 # the resulting binary.
14633 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14634
14635 # Set to yes if building a shared library automatically hardcodes DIR into the library
14636 # and all subsequent libraries and executables linked against it.
14637 hardcode_automatic=$hardcode_automatic_F77
14638
14639 # Variables whose values should be saved in libtool wrapper scripts and
14640 # restored at relink time.
14641 variables_saved_for_relink="$variables_saved_for_relink"
14642
14643 # Whether libtool must link a program against all its dependency libraries.
14644 link_all_deplibs=$link_all_deplibs_F77
14645
14646 # Compile-time system search path for libraries
14647 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14648
14649 # Run-time system search path for libraries
14650 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14651
14652 # Fix the shell variable \$srcfile for the compiler.
14653 fix_srcfile_path="$fix_srcfile_path_F77"
14654
14655 # Set to yes if exported symbols are required.
14656 always_export_symbols=$always_export_symbols_F77
14657
14658 # The commands to list exported symbols.
14659 export_symbols_cmds=$lt_export_symbols_cmds_F77
14660
14661 # The commands to extract the exported symbol list from a shared archive.
14662 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14663
14664 # Symbols that should not be listed in the preloaded symbols.
14665 exclude_expsyms=$lt_exclude_expsyms_F77
14666
14667 # Symbols that must always be exported.
14668 include_expsyms=$lt_include_expsyms_F77
14669
14670 # ### END LIBTOOL TAG CONFIG: $tagname
14671
14672 __EOF__
14673
14674
14675 else
14676   # If there is no Makefile yet, we rely on a make rule to execute
14677   # `config.status --recheck' to rerun these tests and create the
14678   # libtool script then.
14679   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14680   if test -f "$ltmain_in"; then
14681     test -f Makefile && make "$ltmain"
14682   fi
14683 fi
14684
14685
14686 ac_ext=c
14687 ac_cpp='$CPP $CPPFLAGS'
14688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14691
14692 CC="$lt_save_CC"
14693
14694         else
14695           tagname=""
14696         fi
14697         ;;
14698
14699       GCJ)
14700         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14701
14702
14703
14704 # Source file extension for Java test sources.
14705 ac_ext=java
14706
14707 # Object file extension for compiled Java test sources.
14708 objext=o
14709 objext_GCJ=$objext
14710
14711 # Code to be used in simple compile tests
14712 lt_simple_compile_test_code="class foo {}\n"
14713
14714 # Code to be used in simple link tests
14715 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14716
14717 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14718
14719 # If no C compiler was specified, use CC.
14720 LTCC=${LTCC-"$CC"}
14721
14722 # Allow CC to be a program name with arguments.
14723 compiler=$CC
14724
14725
14726 # Allow CC to be a program name with arguments.
14727 lt_save_CC="$CC"
14728 CC=${GCJ-"gcj"}
14729 compiler=$CC
14730 compiler_GCJ=$CC
14731
14732 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14733 archive_cmds_need_lc_GCJ=no
14734
14735
14736 lt_prog_compiler_no_builtin_flag_GCJ=
14737
14738 if test "$GCC" = yes; then
14739   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14740
14741
14742 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14743 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14744 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14745   echo $ECHO_N "(cached) $ECHO_C" >&6
14746 else
14747   lt_cv_prog_compiler_rtti_exceptions=no
14748   ac_outfile=conftest.$ac_objext
14749    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14750    lt_compiler_flag="-fno-rtti -fno-exceptions"
14751    # Insert the option either (1) after the last *FLAGS variable, or
14752    # (2) before a word containing "conftest.", or (3) at the end.
14753    # Note that $ac_compile itself does not contain backslashes and begins
14754    # with a dollar sign (not a hyphen), so the echo should work correctly.
14755    # The option is referenced via a variable to avoid confusing sed.
14756    lt_compile=`echo "$ac_compile" | $SED \
14757    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14758    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14759    -e 's:$: $lt_compiler_flag:'`
14760    (eval echo "\"\$as_me:14760: $lt_compile\"" >&5)
14761    (eval "$lt_compile" 2>conftest.err)
14762    ac_status=$?
14763    cat conftest.err >&5
14764    echo "$as_me:14764: \$? = $ac_status" >&5
14765    if (exit $ac_status) && test -s "$ac_outfile"; then
14766      # The compiler can only warn and ignore the option if not recognized
14767      # So say no if there are warnings
14768      if test ! -s conftest.err; then
14769        lt_cv_prog_compiler_rtti_exceptions=yes
14770      fi
14771    fi
14772    $rm conftest*
14773
14774 fi
14775 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14776 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14777
14778 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14779     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14780 else
14781     :
14782 fi
14783
14784 fi
14785
14786 lt_prog_compiler_wl_GCJ=
14787 lt_prog_compiler_pic_GCJ=
14788 lt_prog_compiler_static_GCJ=
14789
14790 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14791 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14792
14793   if test "$GCC" = yes; then
14794     lt_prog_compiler_wl_GCJ='-Wl,'
14795     lt_prog_compiler_static_GCJ='-static'
14796
14797     case $host_os in
14798       aix*)
14799       # All AIX code is PIC.
14800       if test "$host_cpu" = ia64; then
14801         # AIX 5 now supports IA64 processor
14802         lt_prog_compiler_static_GCJ='-Bstatic'
14803       fi
14804       ;;
14805
14806     amigaos*)
14807       # FIXME: we need at least 68020 code to build shared libraries, but
14808       # adding the `-m68020' flag to GCC prevents building anything better,
14809       # like `-m68040'.
14810       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14811       ;;
14812
14813     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14814       # PIC is the default for these OSes.
14815       ;;
14816
14817     mingw* | pw32* | os2*)
14818       # This hack is so that the source file can tell whether it is being
14819       # built for inclusion in a dll (and should export symbols for example).
14820       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14821       ;;
14822
14823     darwin* | rhapsody*)
14824       # PIC is the default on this platform
14825       # Common symbols not allowed in MH_DYLIB files
14826       lt_prog_compiler_pic_GCJ='-fno-common'
14827       ;;
14828
14829     msdosdjgpp*)
14830       # Just because we use GCC doesn't mean we suddenly get shared libraries
14831       # on systems that don't support them.
14832       lt_prog_compiler_can_build_shared_GCJ=no
14833       enable_shared=no
14834       ;;
14835
14836     sysv4*MP*)
14837       if test -d /usr/nec; then
14838         lt_prog_compiler_pic_GCJ=-Kconform_pic
14839       fi
14840       ;;
14841
14842     hpux*)
14843       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14844       # not for PA HP-UX.
14845       case "$host_cpu" in
14846       hppa*64*|ia64*)
14847         # +Z the default
14848         ;;
14849       *)
14850         lt_prog_compiler_pic_GCJ='-fPIC'
14851         ;;
14852       esac
14853       ;;
14854
14855     *)
14856       lt_prog_compiler_pic_GCJ='-fPIC'
14857       ;;
14858     esac
14859   else
14860     # PORTME Check for flag to pass linker flags through the system compiler.
14861     case $host_os in
14862     aix*)
14863       lt_prog_compiler_wl_GCJ='-Wl,'
14864       if test "$host_cpu" = ia64; then
14865         # AIX 5 now supports IA64 processor
14866         lt_prog_compiler_static_GCJ='-Bstatic'
14867       else
14868         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14869       fi
14870       ;;
14871
14872     mingw* | pw32* | os2*)
14873       # This hack is so that the source file can tell whether it is being
14874       # built for inclusion in a dll (and should export symbols for example).
14875       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14876       ;;
14877
14878     hpux9* | hpux10* | hpux11*)
14879       lt_prog_compiler_wl_GCJ='-Wl,'
14880       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14881       # not for PA HP-UX.
14882       case "$host_cpu" in
14883       hppa*64*|ia64*)
14884         # +Z the default
14885         ;;
14886       *)
14887         lt_prog_compiler_pic_GCJ='+Z'
14888         ;;
14889       esac
14890       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14891       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14892       ;;
14893
14894     irix5* | irix6* | nonstopux*)
14895       lt_prog_compiler_wl_GCJ='-Wl,'
14896       # PIC (with -KPIC) is the default.
14897       lt_prog_compiler_static_GCJ='-non_shared'
14898       ;;
14899
14900     newsos6)
14901       lt_prog_compiler_pic_GCJ='-KPIC'
14902       lt_prog_compiler_static_GCJ='-Bstatic'
14903       ;;
14904
14905     linux*)
14906       case $CC in
14907       icc* | ecc*)
14908         lt_prog_compiler_wl_GCJ='-Wl,'
14909         lt_prog_compiler_pic_GCJ='-KPIC'
14910         lt_prog_compiler_static_GCJ='-static'
14911         ;;
14912       ccc*)
14913         lt_prog_compiler_wl_GCJ='-Wl,'
14914         # All Alpha code is PIC.
14915         lt_prog_compiler_static_GCJ='-non_shared'
14916         ;;
14917       esac
14918       ;;
14919
14920     osf3* | osf4* | osf5*)
14921       lt_prog_compiler_wl_GCJ='-Wl,'
14922       # All OSF/1 code is PIC.
14923       lt_prog_compiler_static_GCJ='-non_shared'
14924       ;;
14925
14926     sco3.2v5*)
14927       lt_prog_compiler_pic_GCJ='-Kpic'
14928       lt_prog_compiler_static_GCJ='-dn'
14929       ;;
14930
14931     solaris*)
14932       lt_prog_compiler_wl_GCJ='-Wl,'
14933       lt_prog_compiler_pic_GCJ='-KPIC'
14934       lt_prog_compiler_static_GCJ='-Bstatic'
14935       ;;
14936
14937     sunos4*)
14938       lt_prog_compiler_wl_GCJ='-Qoption ld '
14939       lt_prog_compiler_pic_GCJ='-PIC'
14940       lt_prog_compiler_static_GCJ='-Bstatic'
14941       ;;
14942
14943     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14944       lt_prog_compiler_wl_GCJ='-Wl,'
14945       lt_prog_compiler_pic_GCJ='-KPIC'
14946       lt_prog_compiler_static_GCJ='-Bstatic'
14947       ;;
14948
14949     sysv4*MP*)
14950       if test -d /usr/nec ;then
14951         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14952         lt_prog_compiler_static_GCJ='-Bstatic'
14953       fi
14954       ;;
14955
14956     uts4*)
14957       lt_prog_compiler_pic_GCJ='-pic'
14958       lt_prog_compiler_static_GCJ='-Bstatic'
14959       ;;
14960
14961     *)
14962       lt_prog_compiler_can_build_shared_GCJ=no
14963       ;;
14964     esac
14965   fi
14966
14967 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14968 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14969
14970 #
14971 # Check to make sure the PIC flag actually works.
14972 #
14973 if test -n "$lt_prog_compiler_pic_GCJ"; then
14974
14975 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14976 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14977 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14978   echo $ECHO_N "(cached) $ECHO_C" >&6
14979 else
14980   lt_prog_compiler_pic_works_GCJ=no
14981   ac_outfile=conftest.$ac_objext
14982    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14983    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14984    # Insert the option either (1) after the last *FLAGS variable, or
14985    # (2) before a word containing "conftest.", or (3) at the end.
14986    # Note that $ac_compile itself does not contain backslashes and begins
14987    # with a dollar sign (not a hyphen), so the echo should work correctly.
14988    # The option is referenced via a variable to avoid confusing sed.
14989    lt_compile=`echo "$ac_compile" | $SED \
14990    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14991    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14992    -e 's:$: $lt_compiler_flag:'`
14993    (eval echo "\"\$as_me:14993: $lt_compile\"" >&5)
14994    (eval "$lt_compile" 2>conftest.err)
14995    ac_status=$?
14996    cat conftest.err >&5
14997    echo "$as_me:14997: \$? = $ac_status" >&5
14998    if (exit $ac_status) && test -s "$ac_outfile"; then
14999      # The compiler can only warn and ignore the option if not recognized
15000      # So say no if there are warnings
15001      if test ! -s conftest.err; then
15002        lt_prog_compiler_pic_works_GCJ=yes
15003      fi
15004    fi
15005    $rm conftest*
15006
15007 fi
15008 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15009 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15010
15011 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15012     case $lt_prog_compiler_pic_GCJ in
15013      "" | " "*) ;;
15014      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15015      esac
15016 else
15017     lt_prog_compiler_pic_GCJ=
15018      lt_prog_compiler_can_build_shared_GCJ=no
15019 fi
15020
15021 fi
15022 case "$host_os" in
15023   # For platforms which do not support PIC, -DPIC is meaningless:
15024   *djgpp*)
15025     lt_prog_compiler_pic_GCJ=
15026     ;;
15027   *)
15028     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15029     ;;
15030 esac
15031
15032 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15033 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15034 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15035   echo $ECHO_N "(cached) $ECHO_C" >&6
15036 else
15037   lt_cv_prog_compiler_c_o_GCJ=no
15038    $rm -r conftest 2>/dev/null
15039    mkdir conftest
15040    cd conftest
15041    mkdir out
15042    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15043
15044    lt_compiler_flag="-o out/conftest2.$ac_objext"
15045    # Insert the option either (1) after the last *FLAGS variable, or
15046    # (2) before a word containing "conftest.", or (3) at the end.
15047    # Note that $ac_compile itself does not contain backslashes and begins
15048    # with a dollar sign (not a hyphen), so the echo should work correctly.
15049    lt_compile=`echo "$ac_compile" | $SED \
15050    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15051    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15052    -e 's:$: $lt_compiler_flag:'`
15053    (eval echo "\"\$as_me:15053: $lt_compile\"" >&5)
15054    (eval "$lt_compile" 2>out/conftest.err)
15055    ac_status=$?
15056    cat out/conftest.err >&5
15057    echo "$as_me:15057: \$? = $ac_status" >&5
15058    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15059    then
15060      # The compiler can only warn and ignore the option if not recognized
15061      # So say no if there are warnings
15062      if test ! -s out/conftest.err; then
15063        lt_cv_prog_compiler_c_o_GCJ=yes
15064      fi
15065    fi
15066    chmod u+w .
15067    $rm conftest*
15068    # SGI C++ compiler will create directory out/ii_files/ for
15069    # template instantiation
15070    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15071    $rm out/* && rmdir out
15072    cd ..
15073    rmdir conftest
15074    $rm conftest*
15075
15076 fi
15077 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15078 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15079
15080
15081 hard_links="nottested"
15082 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15083   # do not overwrite the value of need_locks provided by the user
15084   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15085 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15086   hard_links=yes
15087   $rm conftest*
15088   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15089   touch conftest.a
15090   ln conftest.a conftest.b 2>&5 || hard_links=no
15091   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15092   echo "$as_me:$LINENO: result: $hard_links" >&5
15093 echo "${ECHO_T}$hard_links" >&6
15094   if test "$hard_links" = no; then
15095     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15096 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15097     need_locks=warn
15098   fi
15099 else
15100   need_locks=no
15101 fi
15102
15103 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15104 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15105
15106   runpath_var=
15107   allow_undefined_flag_GCJ=
15108   enable_shared_with_static_runtimes_GCJ=no
15109   archive_cmds_GCJ=
15110   archive_expsym_cmds_GCJ=
15111   old_archive_From_new_cmds_GCJ=
15112   old_archive_from_expsyms_cmds_GCJ=
15113   export_dynamic_flag_spec_GCJ=
15114   whole_archive_flag_spec_GCJ=
15115   thread_safe_flag_spec_GCJ=
15116   hardcode_libdir_flag_spec_GCJ=
15117   hardcode_libdir_flag_spec_ld_GCJ=
15118   hardcode_libdir_separator_GCJ=
15119   hardcode_direct_GCJ=no
15120   hardcode_minus_L_GCJ=no
15121   hardcode_shlibpath_var_GCJ=unsupported
15122   link_all_deplibs_GCJ=unknown
15123   hardcode_automatic_GCJ=no
15124   module_cmds_GCJ=
15125   module_expsym_cmds_GCJ=
15126   always_export_symbols_GCJ=no
15127   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15128   # include_expsyms should be a list of space-separated symbols to be *always*
15129   # included in the symbol list
15130   include_expsyms_GCJ=
15131   # exclude_expsyms can be an extended regexp of symbols to exclude
15132   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15133   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15134   # as well as any symbol that contains `d'.
15135   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15136   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15137   # platforms (ab)use it in PIC code, but their linkers get confused if
15138   # the symbol is explicitly referenced.  Since portable code cannot
15139   # rely on this symbol name, it's probably fine to never include it in
15140   # preloaded symbol tables.
15141   extract_expsyms_cmds=
15142
15143   case $host_os in
15144   cygwin* | mingw* | pw32*)
15145     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15146     # When not using gcc, we currently assume that we are using
15147     # Microsoft Visual C++.
15148     if test "$GCC" != yes; then
15149       with_gnu_ld=no
15150     fi
15151     ;;
15152   openbsd*)
15153     with_gnu_ld=no
15154     ;;
15155   esac
15156
15157   ld_shlibs_GCJ=yes
15158   if test "$with_gnu_ld" = yes; then
15159     # If archive_cmds runs LD, not CC, wlarc should be empty
15160     wlarc='${wl}'
15161
15162     # See if GNU ld supports shared libraries.
15163     case $host_os in
15164     aix3* | aix4* | aix5*)
15165       # On AIX/PPC, the GNU linker is very broken
15166       if test "$host_cpu" != ia64; then
15167         ld_shlibs_GCJ=no
15168         cat <<EOF 1>&2
15169
15170 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15171 *** to be unable to reliably create shared libraries on AIX.
15172 *** Therefore, libtool is disabling shared libraries support.  If you
15173 *** really care for shared libraries, you may want to modify your PATH
15174 *** so that a non-GNU linker is found, and then restart.
15175
15176 EOF
15177       fi
15178       ;;
15179
15180     amigaos*)
15181       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)'
15182       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15183       hardcode_minus_L_GCJ=yes
15184
15185       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15186       # that the semantics of dynamic libraries on AmigaOS, at least up
15187       # to version 4, is to share data among multiple programs linked
15188       # with the same dynamic library.  Since this doesn't match the
15189       # behavior of shared libraries on other platforms, we can't use
15190       # them.
15191       ld_shlibs_GCJ=no
15192       ;;
15193
15194     beos*)
15195       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15196         allow_undefined_flag_GCJ=unsupported
15197         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15198         # support --undefined.  This deserves some investigation.  FIXME
15199         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15200       else
15201         ld_shlibs_GCJ=no
15202       fi
15203       ;;
15204
15205     cygwin* | mingw* | pw32*)
15206       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15207       # as there is no search path for DLLs.
15208       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15209       allow_undefined_flag_GCJ=unsupported
15210       always_export_symbols_GCJ=no
15211       enable_shared_with_static_runtimes_GCJ=yes
15212       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15213
15214       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15215         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15216         # If the export-symbols file already is a .def file (1st line
15217         # is EXPORTS), use it as is; otherwise, prepend...
15218         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15219           cp $export_symbols $output_objdir/$soname.def;
15220         else
15221           echo EXPORTS > $output_objdir/$soname.def;
15222           cat $export_symbols >> $output_objdir/$soname.def;
15223         fi~
15224         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15225       else
15226         ld_shlibs=no
15227       fi
15228       ;;
15229
15230     netbsd* | knetbsd*-gnu)
15231       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15232         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15233         wlarc=
15234       else
15235         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15236         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15237       fi
15238       ;;
15239
15240     solaris* | sysv5*)
15241       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15242         ld_shlibs_GCJ=no
15243         cat <<EOF 1>&2
15244
15245 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15246 *** create shared libraries on Solaris systems.  Therefore, libtool
15247 *** is disabling shared libraries support.  We urge you to upgrade GNU
15248 *** binutils to release 2.9.1 or newer.  Another option is to modify
15249 *** your PATH or compiler configuration so that the native linker is
15250 *** used, and then restart.
15251
15252 EOF
15253       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15254         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15255         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15256       else
15257         ld_shlibs_GCJ=no
15258       fi
15259       ;;
15260
15261     sunos4*)
15262       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15263       wlarc=
15264       hardcode_direct_GCJ=yes
15265       hardcode_shlibpath_var_GCJ=no
15266       ;;
15267
15268   linux*)
15269     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15270         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15271         archive_cmds_GCJ="$tmp_archive_cmds"
15272       supports_anon_versioning=no
15273       case `$LD -v 2>/dev/null` in
15274         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15275         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15276         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15277         *\ 2.11.*) ;; # other 2.11 versions
15278         *) supports_anon_versioning=yes ;;
15279       esac
15280       if test $supports_anon_versioning = yes; then
15281         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15282 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15283 $echo "local: *; };" >> $output_objdir/$libname.ver~
15284         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15285       else
15286         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15287       fi
15288       link_all_deplibs_GCJ=no
15289     else
15290       ld_shlibs_GCJ=no
15291     fi
15292     ;;
15293
15294     *)
15295       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15296         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15297         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15298       else
15299         ld_shlibs_GCJ=no
15300       fi
15301       ;;
15302     esac
15303
15304     if test "$ld_shlibs_GCJ" = yes; then
15305       runpath_var=LD_RUN_PATH
15306       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15307       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15308       # ancient GNU ld didn't support --whole-archive et. al.
15309       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15310         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15311       else
15312         whole_archive_flag_spec_GCJ=
15313       fi
15314     fi
15315   else
15316     # PORTME fill in a description of your system's linker (not GNU ld)
15317     case $host_os in
15318     aix3*)
15319       allow_undefined_flag_GCJ=unsupported
15320       always_export_symbols_GCJ=yes
15321       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'
15322       # Note: this linker hardcodes the directories in LIBPATH if there
15323       # are no directories specified by -L.
15324       hardcode_minus_L_GCJ=yes
15325       if test "$GCC" = yes && test -z "$link_static_flag"; then
15326         # Neither direct hardcoding nor static linking is supported with a
15327         # broken collect2.
15328         hardcode_direct_GCJ=unsupported
15329       fi
15330       ;;
15331
15332     aix4* | aix5*)
15333       if test "$host_cpu" = ia64; then
15334         # On IA64, the linker does run time linking by default, so we don't
15335         # have to do anything special.
15336         aix_use_runtimelinking=no
15337         exp_sym_flag='-Bexport'
15338         no_entry_flag=""
15339       else
15340         # If we're using GNU nm, then we don't want the "-C" option.
15341         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15342         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15343           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'
15344         else
15345           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'
15346         fi
15347         aix_use_runtimelinking=no
15348
15349         # Test if we are trying to use run time linking or normal
15350         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15351         # need to do runtime linking.
15352         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15353           for ld_flag in $LDFLAGS; do
15354           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15355             aix_use_runtimelinking=yes
15356             break
15357           fi
15358           done
15359         esac
15360
15361         exp_sym_flag='-bexport'
15362         no_entry_flag='-bnoentry'
15363       fi
15364
15365       # When large executables or shared objects are built, AIX ld can
15366       # have problems creating the table of contents.  If linking a library
15367       # or program results in "error TOC overflow" add -mminimal-toc to
15368       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15369       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15370
15371       archive_cmds_GCJ=''
15372       hardcode_direct_GCJ=yes
15373       hardcode_libdir_separator_GCJ=':'
15374       link_all_deplibs_GCJ=yes
15375
15376       if test "$GCC" = yes; then
15377         case $host_os in aix4.012|aix4.012.*)
15378         # We only want to do this on AIX 4.2 and lower, the check
15379         # below for broken collect2 doesn't work under 4.3+
15380           collect2name=`${CC} -print-prog-name=collect2`
15381           if test -f "$collect2name" && \
15382            strings "$collect2name" | grep resolve_lib_name >/dev/null
15383           then
15384           # We have reworked collect2
15385           hardcode_direct_GCJ=yes
15386           else
15387           # We have old collect2
15388           hardcode_direct_GCJ=unsupported
15389           # It fails to find uninstalled libraries when the uninstalled
15390           # path is not listed in the libpath.  Setting hardcode_minus_L
15391           # to unsupported forces relinking
15392           hardcode_minus_L_GCJ=yes
15393           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15394           hardcode_libdir_separator_GCJ=
15395           fi
15396         esac
15397         shared_flag='-shared'
15398       else
15399         # not using gcc
15400         if test "$host_cpu" = ia64; then
15401         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15402         # chokes on -Wl,-G. The following line is correct:
15403           shared_flag='-G'
15404         else
15405         if test "$aix_use_runtimelinking" = yes; then
15406             shared_flag='${wl}-G'
15407           else
15408             shared_flag='${wl}-bM:SRE'
15409         fi
15410         fi
15411       fi
15412
15413       # It seems that -bexpall does not export symbols beginning with
15414       # underscore (_), so it is better to generate a list of symbols to export.
15415       always_export_symbols_GCJ=yes
15416       if test "$aix_use_runtimelinking" = yes; then
15417         # Warning - without using the other runtime loading flags (-brtl),
15418         # -berok will link without error, but may produce a broken library.
15419         allow_undefined_flag_GCJ='-berok'
15420        # Determine the default libpath from the value encoded in an empty executable.
15421        cat >conftest.$ac_ext <<_ACEOF
15422 #line $LINENO "configure"
15423 /* confdefs.h.  */
15424 _ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h.  */
15428
15429 int
15430 main ()
15431 {
15432
15433   ;
15434   return 0;
15435 }
15436 _ACEOF
15437 rm -f conftest.$ac_objext conftest$ac_exeext
15438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15439   (eval $ac_link) 2>&5
15440   ac_status=$?
15441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); } &&
15443          { ac_try='test -s conftest$ac_exeext'
15444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445   (eval $ac_try) 2>&5
15446   ac_status=$?
15447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448   (exit $ac_status); }; }; then
15449
15450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15451 }'`
15452 # Check for a 64-bit object if we didn't find anything.
15453 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; }
15454 }'`; fi
15455 else
15456   echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15458
15459 fi
15460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15461 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15462
15463        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15464         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"
15465        else
15466         if test "$host_cpu" = ia64; then
15467           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15468           allow_undefined_flag_GCJ="-z nodefs"
15469           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"
15470         else
15471          # Determine the default libpath from the value encoded in an empty executable.
15472          cat >conftest.$ac_ext <<_ACEOF
15473 #line $LINENO "configure"
15474 /* confdefs.h.  */
15475 _ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h.  */
15479
15480 int
15481 main ()
15482 {
15483
15484   ;
15485   return 0;
15486 }
15487 _ACEOF
15488 rm -f conftest.$ac_objext conftest$ac_exeext
15489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15490   (eval $ac_link) 2>&5
15491   ac_status=$?
15492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493   (exit $ac_status); } &&
15494          { ac_try='test -s conftest$ac_exeext'
15495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496   (eval $ac_try) 2>&5
15497   ac_status=$?
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); }; }; then
15500
15501 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15502 }'`
15503 # Check for a 64-bit object if we didn't find anything.
15504 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; }
15505 }'`; fi
15506 else
15507   echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15509
15510 fi
15511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15512 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15513
15514          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15515           # Warning - without using the other run time loading flags,
15516           # -berok will link without error, but may produce a broken library.
15517           no_undefined_flag_GCJ=' ${wl}-bernotok'
15518           allow_undefined_flag_GCJ=' ${wl}-berok'
15519           # -bexpall does not export symbols beginning with underscore (_)
15520           always_export_symbols_GCJ=yes
15521           # Exported symbols can be pulled into shared objects from archives
15522           whole_archive_flag_spec_GCJ=' '
15523           archive_cmds_need_lc_GCJ=yes
15524           # This is similar to how AIX traditionally builds it's shared libraries.
15525           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'
15526         fi
15527       fi
15528       ;;
15529
15530     amigaos*)
15531       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)'
15532       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15533       hardcode_minus_L_GCJ=yes
15534       # see comment about different semantics on the GNU ld section
15535       ld_shlibs_GCJ=no
15536       ;;
15537
15538     bsdi4*)
15539       export_dynamic_flag_spec_GCJ=-rdynamic
15540       ;;
15541
15542     cygwin* | mingw* | pw32*)
15543       # When not using gcc, we currently assume that we are using
15544       # Microsoft Visual C++.
15545       # hardcode_libdir_flag_spec is actually meaningless, as there is
15546       # no search path for DLLs.
15547       hardcode_libdir_flag_spec_GCJ=' '
15548       allow_undefined_flag_GCJ=unsupported
15549       # Tell ltmain to make .lib files, not .a files.
15550       libext=lib
15551       # Tell ltmain to make .dll files, not .so files.
15552       shrext_cmds=".dll"
15553       # FIXME: Setting linknames here is a bad hack.
15554       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15555       # The linker will automatically build a .lib file if we build a DLL.
15556       old_archive_From_new_cmds_GCJ='true'
15557       # FIXME: Should let the user specify the lib program.
15558       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15559       fix_srcfile_path='`cygpath -w "$srcfile"`'
15560       enable_shared_with_static_runtimes_GCJ=yes
15561       ;;
15562
15563     darwin* | rhapsody*)
15564     if test "$GXX" = yes ; then
15565       archive_cmds_need_lc_GCJ=no
15566       case "$host_os" in
15567       rhapsody* | darwin1.[012])
15568         allow_undefined_flag_GCJ='-undefined suppress'
15569         ;;
15570       *) # Darwin 1.3 on
15571       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15572         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15573       else
15574         case ${MACOSX_DEPLOYMENT_TARGET} in
15575           10.[012])
15576             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15577             ;;
15578           10.*)
15579             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15580             ;;
15581         esac
15582       fi
15583         ;;
15584       esac
15585         lt_int_apple_cc_single_mod=no
15586         output_verbose_link_cmd='echo'
15587         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15588           lt_int_apple_cc_single_mod=yes
15589         fi
15590         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15591           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15592         else
15593         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'
15594       fi
15595       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15596       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15597         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15598           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}'
15599         else
15600           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}'
15601         fi
15602           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}'
15603       hardcode_direct_GCJ=no
15604       hardcode_automatic_GCJ=yes
15605       hardcode_shlibpath_var_GCJ=unsupported
15606       whole_archive_flag_spec_GCJ='-all_load $convenience'
15607       link_all_deplibs_GCJ=yes
15608     else
15609       ld_shlibs_GCJ=no
15610     fi
15611       ;;
15612
15613     dgux*)
15614       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15615       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15616       hardcode_shlibpath_var_GCJ=no
15617       ;;
15618
15619     freebsd1*)
15620       ld_shlibs_GCJ=no
15621       ;;
15622
15623     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15624     # support.  Future versions do this automatically, but an explicit c++rt0.o
15625     # does not break anything, and helps significantly (at the cost of a little
15626     # extra space).
15627     freebsd2.2*)
15628       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15629       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15630       hardcode_direct_GCJ=yes
15631       hardcode_shlibpath_var_GCJ=no
15632       ;;
15633
15634     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15635     freebsd2*)
15636       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15637       hardcode_direct_GCJ=yes
15638       hardcode_minus_L_GCJ=yes
15639       hardcode_shlibpath_var_GCJ=no
15640       ;;
15641
15642     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15643     freebsd* | kfreebsd*-gnu)
15644       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15645       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15646       hardcode_direct_GCJ=yes
15647       hardcode_shlibpath_var_GCJ=no
15648       ;;
15649
15650     hpux9*)
15651       if test "$GCC" = yes; then
15652         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'
15653       else
15654         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'
15655       fi
15656       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15657       hardcode_libdir_separator_GCJ=:
15658       hardcode_direct_GCJ=yes
15659
15660       # hardcode_minus_L: Not really in the search PATH,
15661       # but as the default location of the library.
15662       hardcode_minus_L_GCJ=yes
15663       export_dynamic_flag_spec_GCJ='${wl}-E'
15664       ;;
15665
15666     hpux10* | hpux11*)
15667       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15668         case "$host_cpu" in
15669         hppa*64*|ia64*)
15670           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15671           ;;
15672         *)
15673           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15674           ;;
15675         esac
15676       else
15677         case "$host_cpu" in
15678         hppa*64*|ia64*)
15679           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15680           ;;
15681         *)
15682           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15683           ;;
15684         esac
15685       fi
15686       if test "$with_gnu_ld" = no; then
15687         case "$host_cpu" in
15688         hppa*64*)
15689           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15690           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15691           hardcode_libdir_separator_GCJ=:
15692           hardcode_direct_GCJ=no
15693           hardcode_shlibpath_var_GCJ=no
15694           ;;
15695         ia64*)
15696           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15697           hardcode_direct_GCJ=no
15698           hardcode_shlibpath_var_GCJ=no
15699
15700           # hardcode_minus_L: Not really in the search PATH,
15701           # but as the default location of the library.
15702           hardcode_minus_L_GCJ=yes
15703           ;;
15704         *)
15705           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15706           hardcode_libdir_separator_GCJ=:
15707           hardcode_direct_GCJ=yes
15708           export_dynamic_flag_spec_GCJ='${wl}-E'
15709
15710           # hardcode_minus_L: Not really in the search PATH,
15711           # but as the default location of the library.
15712           hardcode_minus_L_GCJ=yes
15713           ;;
15714         esac
15715       fi
15716       ;;
15717
15718     irix5* | irix6* | nonstopux*)
15719       if test "$GCC" = yes; then
15720         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'
15721       else
15722         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'
15723         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15724       fi
15725       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15726       hardcode_libdir_separator_GCJ=:
15727       link_all_deplibs_GCJ=yes
15728       ;;
15729
15730     netbsd* | knetbsd*-gnu)
15731       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15732         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15733       else
15734         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15735       fi
15736       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15737       hardcode_direct_GCJ=yes
15738       hardcode_shlibpath_var_GCJ=no
15739       ;;
15740
15741     newsos6)
15742       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15743       hardcode_direct_GCJ=yes
15744       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15745       hardcode_libdir_separator_GCJ=:
15746       hardcode_shlibpath_var_GCJ=no
15747       ;;
15748
15749     openbsd*)
15750       hardcode_direct_GCJ=yes
15751       hardcode_shlibpath_var_GCJ=no
15752       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15753         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15754         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15755         export_dynamic_flag_spec_GCJ='${wl}-E'
15756       else
15757        case $host_os in
15758          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15759            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15760            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15761            ;;
15762          *)
15763            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15764            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15765            ;;
15766        esac
15767       fi
15768       ;;
15769
15770     os2*)
15771       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15772       hardcode_minus_L_GCJ=yes
15773       allow_undefined_flag_GCJ=unsupported
15774       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'
15775       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15776       ;;
15777
15778     osf3*)
15779       if test "$GCC" = yes; then
15780         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15781         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'
15782       else
15783         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15784         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'
15785       fi
15786       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15787       hardcode_libdir_separator_GCJ=:
15788       ;;
15789
15790     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15791       if test "$GCC" = yes; then
15792         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15793         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'
15794         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15795       else
15796         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15797         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'
15798         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~
15799         $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'
15800
15801         # Both c and cxx compiler support -rpath directly
15802         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15803       fi
15804       hardcode_libdir_separator_GCJ=:
15805       ;;
15806
15807     sco3.2v5*)
15808       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809       hardcode_shlibpath_var_GCJ=no
15810       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15811       runpath_var=LD_RUN_PATH
15812       hardcode_runpath_var=yes
15813       ;;
15814
15815     solaris*)
15816       no_undefined_flag_GCJ=' -z text'
15817       if test "$GCC" = yes; then
15818         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15819         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15820           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15821       else
15822         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15823         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15824         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15825       fi
15826       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15827       hardcode_shlibpath_var_GCJ=no
15828       case $host_os in
15829       solaris2.[0-5] | solaris2.[0-5].*) ;;
15830       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15831         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15832       esac
15833       link_all_deplibs_GCJ=yes
15834       ;;
15835
15836     sunos4*)
15837       if test "x$host_vendor" = xsequent; then
15838         # Use $CC to link under sequent, because it throws in some extra .o
15839         # files that make .init and .fini sections work.
15840         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15841       else
15842         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15843       fi
15844       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15845       hardcode_direct_GCJ=yes
15846       hardcode_minus_L_GCJ=yes
15847       hardcode_shlibpath_var_GCJ=no
15848       ;;
15849
15850     sysv4)
15851       case $host_vendor in
15852         sni)
15853           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15854           hardcode_direct_GCJ=yes # is this really true???
15855         ;;
15856         siemens)
15857           ## LD is ld it makes a PLAMLIB
15858           ## CC just makes a GrossModule.
15859           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15860           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15861           hardcode_direct_GCJ=no
15862         ;;
15863         motorola)
15864           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15865           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15866         ;;
15867       esac
15868       runpath_var='LD_RUN_PATH'
15869       hardcode_shlibpath_var_GCJ=no
15870       ;;
15871
15872     sysv4.3*)
15873       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15874       hardcode_shlibpath_var_GCJ=no
15875       export_dynamic_flag_spec_GCJ='-Bexport'
15876       ;;
15877
15878     sysv4*MP*)
15879       if test -d /usr/nec; then
15880         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15881         hardcode_shlibpath_var_GCJ=no
15882         runpath_var=LD_RUN_PATH
15883         hardcode_runpath_var=yes
15884         ld_shlibs_GCJ=yes
15885       fi
15886       ;;
15887
15888     sysv4.2uw2*)
15889       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15890       hardcode_direct_GCJ=yes
15891       hardcode_minus_L_GCJ=no
15892       hardcode_shlibpath_var_GCJ=no
15893       hardcode_runpath_var=yes
15894       runpath_var=LD_RUN_PATH
15895       ;;
15896
15897    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15898       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15899       if test "$GCC" = yes; then
15900         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15901       else
15902         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15903       fi
15904       runpath_var='LD_RUN_PATH'
15905       hardcode_shlibpath_var_GCJ=no
15906       ;;
15907
15908     sysv5*)
15909       no_undefined_flag_GCJ=' -z text'
15910       # $CC -shared without GNU ld will not create a library from C++
15911       # object files and a static libstdc++, better avoid it by now
15912       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15913       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15914                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15915       hardcode_libdir_flag_spec_GCJ=
15916       hardcode_shlibpath_var_GCJ=no
15917       runpath_var='LD_RUN_PATH'
15918       ;;
15919
15920     uts4*)
15921       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15922       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15923       hardcode_shlibpath_var_GCJ=no
15924       ;;
15925
15926     *)
15927       ld_shlibs_GCJ=no
15928       ;;
15929     esac
15930   fi
15931
15932 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15933 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15934 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15935
15936 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15937 if test "$GCC" = yes; then
15938   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15939 fi
15940
15941 #
15942 # Do we need to explicitly link libc?
15943 #
15944 case "x$archive_cmds_need_lc_GCJ" in
15945 x|xyes)
15946   # Assume -lc should be added
15947   archive_cmds_need_lc_GCJ=yes
15948
15949   if test "$enable_shared" = yes && test "$GCC" = yes; then
15950     case $archive_cmds_GCJ in
15951     *'~'*)
15952       # FIXME: we may have to deal with multi-command sequences.
15953       ;;
15954     '$CC '*)
15955       # Test whether the compiler implicitly links with -lc since on some
15956       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15957       # to ld, don't add -lc before -lgcc.
15958       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15959 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15960       $rm conftest*
15961       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15962
15963       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15964   (eval $ac_compile) 2>&5
15965   ac_status=$?
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); } 2>conftest.err; then
15968         soname=conftest
15969         lib=conftest
15970         libobjs=conftest.$ac_objext
15971         deplibs=
15972         wl=$lt_prog_compiler_wl_GCJ
15973         compiler_flags=-v
15974         linker_flags=-v
15975         verstring=
15976         output_objdir=.
15977         libname=conftest
15978         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15979         allow_undefined_flag_GCJ=
15980         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15981   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15982   ac_status=$?
15983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984   (exit $ac_status); }
15985         then
15986           archive_cmds_need_lc_GCJ=no
15987         else
15988           archive_cmds_need_lc_GCJ=yes
15989         fi
15990         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15991       else
15992         cat conftest.err 1>&5
15993       fi
15994       $rm conftest*
15995       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15996 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15997       ;;
15998     esac
15999   fi
16000   ;;
16001 esac
16002
16003 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16004 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16005 library_names_spec=
16006 libname_spec='lib$name'
16007 soname_spec=
16008 shrext_cmds=".so"
16009 postinstall_cmds=
16010 postuninstall_cmds=
16011 finish_cmds=
16012 finish_eval=
16013 shlibpath_var=
16014 shlibpath_overrides_runpath=unknown
16015 version_type=none
16016 dynamic_linker="$host_os ld.so"
16017 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16018 if test "$GCC" = yes; then
16019   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16020   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16021     # if the path contains ";" then we assume it to be the separator
16022     # otherwise default to the standard path separator (i.e. ":") - it is
16023     # assumed that no part of a normal pathname contains ";" but that should
16024     # okay in the real world where ";" in dirpaths is itself problematic.
16025     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16026   else
16027     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16028   fi
16029 else
16030   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16031 fi
16032 need_lib_prefix=unknown
16033 hardcode_into_libs=no
16034
16035 # when you set need_version to no, make sure it does not cause -set_version
16036 # flags to be left without arguments
16037 need_version=unknown
16038
16039 case $host_os in
16040 aix3*)
16041   version_type=linux
16042   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16043   shlibpath_var=LIBPATH
16044
16045   # AIX 3 has no versioning support, so we append a major version to the name.
16046   soname_spec='${libname}${release}${shared_ext}$major'
16047   ;;
16048
16049 aix4* | aix5*)
16050   version_type=linux
16051   need_lib_prefix=no
16052   need_version=no
16053   hardcode_into_libs=yes
16054   if test "$host_cpu" = ia64; then
16055     # AIX 5 supports IA64
16056     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16057     shlibpath_var=LD_LIBRARY_PATH
16058   else
16059     # With GCC up to 2.95.x, collect2 would create an import file
16060     # for dependence libraries.  The import file would start with
16061     # the line `#! .'.  This would cause the generated library to
16062     # depend on `.', always an invalid library.  This was fixed in
16063     # development snapshots of GCC prior to 3.0.
16064     case $host_os in
16065       aix4 | aix4.[01] | aix4.[01].*)
16066       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16067            echo ' yes '
16068            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16069         :
16070       else
16071         can_build_shared=no
16072       fi
16073       ;;
16074     esac
16075     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16076     # soname into executable. Probably we can add versioning support to
16077     # collect2, so additional links can be useful in future.
16078     if test "$aix_use_runtimelinking" = yes; then
16079       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16080       # instead of lib<name>.a to let people know that these are not
16081       # typical AIX shared libraries.
16082       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16083     else
16084       # We preserve .a as extension for shared libraries through AIX4.2
16085       # and later when we are not doing run time linking.
16086       library_names_spec='${libname}${release}.a $libname.a'
16087       soname_spec='${libname}${release}${shared_ext}$major'
16088     fi
16089     shlibpath_var=LIBPATH
16090   fi
16091   ;;
16092
16093 amigaos*)
16094   library_names_spec='$libname.ixlibrary $libname.a'
16095   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16096   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'
16097   ;;
16098
16099 beos*)
16100   library_names_spec='${libname}${shared_ext}'
16101   dynamic_linker="$host_os ld.so"
16102   shlibpath_var=LIBRARY_PATH
16103   ;;
16104
16105 bsdi4*)
16106   version_type=linux
16107   need_version=no
16108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16109   soname_spec='${libname}${release}${shared_ext}$major'
16110   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16111   shlibpath_var=LD_LIBRARY_PATH
16112   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16113   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16114   # the default ld.so.conf also contains /usr/contrib/lib and
16115   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16116   # libtool to hard-code these into programs
16117   ;;
16118
16119 cygwin* | mingw* | pw32*)
16120   version_type=windows
16121   shrext_cmds=".dll"
16122   need_version=no
16123   need_lib_prefix=no
16124
16125   case $GCC,$host_os in
16126   yes,cygwin* | yes,mingw* | yes,pw32*)
16127     library_names_spec='$libname.dll.a'
16128     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16129     postinstall_cmds='base_file=`basename \${file}`~
16130       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16131       dldir=$destdir/`dirname \$dlpath`~
16132       test -d \$dldir || mkdir -p \$dldir~
16133       $install_prog $dir/$dlname \$dldir/$dlname'
16134     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16135       dlpath=$dir/\$dldll~
16136        $rm \$dlpath'
16137     shlibpath_overrides_runpath=yes
16138
16139     case $host_os in
16140     cygwin*)
16141       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16142       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16143       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16144       ;;
16145     mingw*)
16146       # MinGW DLLs use traditional 'lib' prefix
16147       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16148       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16149       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16150         # It is most probably a Windows format PATH printed by
16151         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16152         # path with ; separators, and with drive letters. We can handle the
16153         # drive letters (cygwin fileutils understands them), so leave them,
16154         # especially as we might pass files found there to a mingw objdump,
16155         # which wouldn't understand a cygwinified path. Ahh.
16156         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16157       else
16158         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16159       fi
16160       ;;
16161     pw32*)
16162       # pw32 DLLs use 'pw' prefix rather than 'lib'
16163       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16164       ;;
16165     esac
16166     ;;
16167
16168   *)
16169     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16170     ;;
16171   esac
16172   dynamic_linker='Win32 ld.exe'
16173   # FIXME: first we should search . and the directory the executable is in
16174   shlibpath_var=PATH
16175   ;;
16176
16177 darwin* | rhapsody*)
16178   dynamic_linker="$host_os dyld"
16179   version_type=darwin
16180   need_lib_prefix=no
16181   need_version=no
16182   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16183   soname_spec='${libname}${release}${major}$shared_ext'
16184   shlibpath_overrides_runpath=yes
16185   shlibpath_var=DYLD_LIBRARY_PATH
16186   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16187   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16188   if test "$GCC" = yes; then
16189     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"`
16190   else
16191     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16192   fi
16193   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16194   ;;
16195
16196 dgux*)
16197   version_type=linux
16198   need_lib_prefix=no
16199   need_version=no
16200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16201   soname_spec='${libname}${release}${shared_ext}$major'
16202   shlibpath_var=LD_LIBRARY_PATH
16203   ;;
16204
16205 freebsd1*)
16206   dynamic_linker=no
16207   ;;
16208
16209 kfreebsd*-gnu)
16210   version_type=linux
16211   need_lib_prefix=no
16212   need_version=no
16213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16214   soname_spec='${libname}${release}${shared_ext}$major'
16215   shlibpath_var=LD_LIBRARY_PATH
16216   shlibpath_overrides_runpath=no
16217   hardcode_into_libs=yes
16218   dynamic_linker='GNU ld.so'
16219   ;;
16220
16221 freebsd*)
16222   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16223   version_type=freebsd-$objformat
16224   case $version_type in
16225     freebsd-elf*)
16226       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16227       need_version=no
16228       need_lib_prefix=no
16229       ;;
16230     freebsd-*)
16231       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16232       need_version=yes
16233       ;;
16234   esac
16235   shlibpath_var=LD_LIBRARY_PATH
16236   case $host_os in
16237   freebsd2*)
16238     shlibpath_overrides_runpath=yes
16239     ;;
16240   freebsd3.01* | freebsdelf3.01*)
16241     shlibpath_overrides_runpath=yes
16242     hardcode_into_libs=yes
16243     ;;
16244   *) # from 3.2 on
16245     shlibpath_overrides_runpath=no
16246     hardcode_into_libs=yes
16247     ;;
16248   esac
16249   ;;
16250
16251 gnu*)
16252   version_type=linux
16253   need_lib_prefix=no
16254   need_version=no
16255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16256   soname_spec='${libname}${release}${shared_ext}$major'
16257   shlibpath_var=LD_LIBRARY_PATH
16258   hardcode_into_libs=yes
16259   ;;
16260
16261 hpux9* | hpux10* | hpux11*)
16262   # Give a soname corresponding to the major version so that dld.sl refuses to
16263   # link against other versions.
16264   version_type=sunos
16265   need_lib_prefix=no
16266   need_version=no
16267   case "$host_cpu" in
16268   ia64*)
16269     shrext_cmds='.so'
16270     hardcode_into_libs=yes
16271     dynamic_linker="$host_os dld.so"
16272     shlibpath_var=LD_LIBRARY_PATH
16273     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16274     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16275     soname_spec='${libname}${release}${shared_ext}$major'
16276     if test "X$HPUX_IA64_MODE" = X32; then
16277       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16278     else
16279       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16280     fi
16281     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16282     ;;
16283    hppa*64*)
16284      shrext_cmds='.sl'
16285      hardcode_into_libs=yes
16286      dynamic_linker="$host_os dld.sl"
16287      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16288      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16289      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16290      soname_spec='${libname}${release}${shared_ext}$major'
16291      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16292      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16293      ;;
16294    *)
16295     shrext_cmds='.sl'
16296     dynamic_linker="$host_os dld.sl"
16297     shlibpath_var=SHLIB_PATH
16298     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16299     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16300     soname_spec='${libname}${release}${shared_ext}$major'
16301     ;;
16302   esac
16303   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16304   postinstall_cmds='chmod 555 $lib'
16305   ;;
16306
16307 irix5* | irix6* | nonstopux*)
16308   case $host_os in
16309     nonstopux*) version_type=nonstopux ;;
16310     *)
16311         if test "$lt_cv_prog_gnu_ld" = yes; then
16312                 version_type=linux
16313         else
16314                 version_type=irix
16315         fi ;;
16316   esac
16317   need_lib_prefix=no
16318   need_version=no
16319   soname_spec='${libname}${release}${shared_ext}$major'
16320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16321   case $host_os in
16322   irix5* | nonstopux*)
16323     libsuff= shlibsuff=
16324     ;;
16325   *)
16326     case $LD in # libtool.m4 will add one of these switches to LD
16327     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16328       libsuff= shlibsuff= libmagic=32-bit;;
16329     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16330       libsuff=32 shlibsuff=N32 libmagic=N32;;
16331     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16332       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16333     *) libsuff= shlibsuff= libmagic=never-match;;
16334     esac
16335     ;;
16336   esac
16337   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16338   shlibpath_overrides_runpath=no
16339   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16340   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16341   hardcode_into_libs=yes
16342   ;;
16343
16344 # No shared lib support for Linux oldld, aout, or coff.
16345 linux*oldld* | linux*aout* | linux*coff*)
16346   dynamic_linker=no
16347   ;;
16348
16349 # This must be Linux ELF.
16350 linux*)
16351   version_type=linux
16352   need_lib_prefix=no
16353   need_version=no
16354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16355   soname_spec='${libname}${release}${shared_ext}$major'
16356   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16357   shlibpath_var=LD_LIBRARY_PATH
16358   shlibpath_overrides_runpath=no
16359   # This implies no fast_install, which is unacceptable.
16360   # Some rework will be needed to allow for fast_install
16361   # before this can be enabled.
16362   hardcode_into_libs=yes
16363
16364   # Append ld.so.conf contents to the search path
16365   if test -f /etc/ld.so.conf; then
16366     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16367     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16368   fi
16369
16370   # We used to test for /lib/ld.so.1 and disable shared libraries on
16371   # powerpc, because MkLinux only supported shared libraries with the
16372   # GNU dynamic linker.  Since this was broken with cross compilers,
16373   # most powerpc-linux boxes support dynamic linking these days and
16374   # people can always --disable-shared, the test was removed, and we
16375   # assume the GNU/Linux dynamic linker is in use.
16376   dynamic_linker='GNU/Linux ld.so'
16377   ;;
16378
16379 knetbsd*-gnu)
16380   version_type=linux
16381   need_lib_prefix=no
16382   need_version=no
16383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16384   soname_spec='${libname}${release}${shared_ext}$major'
16385   shlibpath_var=LD_LIBRARY_PATH
16386   shlibpath_overrides_runpath=no
16387   hardcode_into_libs=yes
16388   dynamic_linker='GNU ld.so'
16389   ;;
16390
16391 netbsd*)
16392   version_type=sunos
16393   need_lib_prefix=no
16394   need_version=no
16395   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16396     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16397     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16398     dynamic_linker='NetBSD (a.out) ld.so'
16399   else
16400     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16401     soname_spec='${libname}${release}${shared_ext}$major'
16402     dynamic_linker='NetBSD ld.elf_so'
16403   fi
16404   shlibpath_var=LD_LIBRARY_PATH
16405   shlibpath_overrides_runpath=yes
16406   hardcode_into_libs=yes
16407   ;;
16408
16409 newsos6)
16410   version_type=linux
16411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16412   shlibpath_var=LD_LIBRARY_PATH
16413   shlibpath_overrides_runpath=yes
16414   ;;
16415
16416 nto-qnx*)
16417   version_type=linux
16418   need_lib_prefix=no
16419   need_version=no
16420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16421   soname_spec='${libname}${release}${shared_ext}$major'
16422   shlibpath_var=LD_LIBRARY_PATH
16423   shlibpath_overrides_runpath=yes
16424   ;;
16425
16426 openbsd*)
16427   version_type=sunos
16428   need_lib_prefix=no
16429   need_version=yes
16430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16431   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16432   shlibpath_var=LD_LIBRARY_PATH
16433   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16434     case $host_os in
16435       openbsd2.[89] | openbsd2.[89].*)
16436         shlibpath_overrides_runpath=no
16437         ;;
16438       *)
16439         shlibpath_overrides_runpath=yes
16440         ;;
16441       esac
16442   else
16443     shlibpath_overrides_runpath=yes
16444   fi
16445   ;;
16446
16447 os2*)
16448   libname_spec='$name'
16449   shrext_cmds=".dll"
16450   need_lib_prefix=no
16451   library_names_spec='$libname${shared_ext} $libname.a'
16452   dynamic_linker='OS/2 ld.exe'
16453   shlibpath_var=LIBPATH
16454   ;;
16455
16456 osf3* | osf4* | osf5*)
16457   version_type=osf
16458   need_lib_prefix=no
16459   need_version=no
16460   soname_spec='${libname}${release}${shared_ext}$major'
16461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16462   shlibpath_var=LD_LIBRARY_PATH
16463   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16464   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16465   ;;
16466
16467 sco3.2v5*)
16468   version_type=osf
16469   soname_spec='${libname}${release}${shared_ext}$major'
16470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16471   shlibpath_var=LD_LIBRARY_PATH
16472   ;;
16473
16474 solaris*)
16475   version_type=linux
16476   need_lib_prefix=no
16477   need_version=no
16478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16479   soname_spec='${libname}${release}${shared_ext}$major'
16480   shlibpath_var=LD_LIBRARY_PATH
16481   shlibpath_overrides_runpath=yes
16482   hardcode_into_libs=yes
16483   # ldd complains unless libraries are executable
16484   postinstall_cmds='chmod +x $lib'
16485   ;;
16486
16487 sunos4*)
16488   version_type=sunos
16489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16490   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16491   shlibpath_var=LD_LIBRARY_PATH
16492   shlibpath_overrides_runpath=yes
16493   if test "$with_gnu_ld" = yes; then
16494     need_lib_prefix=no
16495   fi
16496   need_version=yes
16497   ;;
16498
16499 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16500   version_type=linux
16501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16502   soname_spec='${libname}${release}${shared_ext}$major'
16503   shlibpath_var=LD_LIBRARY_PATH
16504   case $host_vendor in
16505     sni)
16506       shlibpath_overrides_runpath=no
16507       need_lib_prefix=no
16508       export_dynamic_flag_spec='${wl}-Blargedynsym'
16509       runpath_var=LD_RUN_PATH
16510       ;;
16511     siemens)
16512       need_lib_prefix=no
16513       ;;
16514     motorola)
16515       need_lib_prefix=no
16516       need_version=no
16517       shlibpath_overrides_runpath=no
16518       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16519       ;;
16520   esac
16521   ;;
16522
16523 sysv4*MP*)
16524   if test -d /usr/nec ;then
16525     version_type=linux
16526     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16527     soname_spec='$libname${shared_ext}.$major'
16528     shlibpath_var=LD_LIBRARY_PATH
16529   fi
16530   ;;
16531
16532 uts4*)
16533   version_type=linux
16534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16535   soname_spec='${libname}${release}${shared_ext}$major'
16536   shlibpath_var=LD_LIBRARY_PATH
16537   ;;
16538
16539 *)
16540   dynamic_linker=no
16541   ;;
16542 esac
16543 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16544 echo "${ECHO_T}$dynamic_linker" >&6
16545 test "$dynamic_linker" = no && can_build_shared=no
16546
16547 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16548 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16549 hardcode_action_GCJ=
16550 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16551    test -n "$runpath_var GCJ" || \
16552    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16553
16554   # We can hardcode non-existant directories.
16555   if test "$hardcode_direct_GCJ" != no &&
16556      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16557      # have to relink, otherwise we might link with an installed library
16558      # when we should be linking with a yet-to-be-installed one
16559      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16560      test "$hardcode_minus_L_GCJ" != no; then
16561     # Linking always hardcodes the temporary library directory.
16562     hardcode_action_GCJ=relink
16563   else
16564     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16565     hardcode_action_GCJ=immediate
16566   fi
16567 else
16568   # We cannot hardcode anything, or else we can only hardcode existing
16569   # directories.
16570   hardcode_action_GCJ=unsupported
16571 fi
16572 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16573 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16574
16575 if test "$hardcode_action_GCJ" = relink; then
16576   # Fast installation is not supported
16577   enable_fast_install=no
16578 elif test "$shlibpath_overrides_runpath" = yes ||
16579      test "$enable_shared" = no; then
16580   # Fast installation is not necessary
16581   enable_fast_install=needless
16582 fi
16583
16584 striplib=
16585 old_striplib=
16586 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16587 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16588 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16589   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16590   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16591   echo "$as_me:$LINENO: result: yes" >&5
16592 echo "${ECHO_T}yes" >&6
16593 else
16594 # FIXME - insert some real tests, host_os isn't really good enough
16595   case $host_os in
16596    darwin*)
16597        if test -n "$STRIP" ; then
16598          striplib="$STRIP -x"
16599          echo "$as_me:$LINENO: result: yes" >&5
16600 echo "${ECHO_T}yes" >&6
16601        else
16602   echo "$as_me:$LINENO: result: no" >&5
16603 echo "${ECHO_T}no" >&6
16604 fi
16605        ;;
16606    *)
16607   echo "$as_me:$LINENO: result: no" >&5
16608 echo "${ECHO_T}no" >&6
16609     ;;
16610   esac
16611 fi
16612
16613 if test "x$enable_dlopen" != xyes; then
16614   enable_dlopen=unknown
16615   enable_dlopen_self=unknown
16616   enable_dlopen_self_static=unknown
16617 else
16618   lt_cv_dlopen=no
16619   lt_cv_dlopen_libs=
16620
16621   case $host_os in
16622   beos*)
16623     lt_cv_dlopen="load_add_on"
16624     lt_cv_dlopen_libs=
16625     lt_cv_dlopen_self=yes
16626     ;;
16627
16628   mingw* | pw32*)
16629     lt_cv_dlopen="LoadLibrary"
16630     lt_cv_dlopen_libs=
16631    ;;
16632
16633   cygwin*)
16634     lt_cv_dlopen="dlopen"
16635     lt_cv_dlopen_libs=
16636    ;;
16637
16638   darwin*)
16639   # if libdl is installed we need to link against it
16640     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16641 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16642 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16643   echo $ECHO_N "(cached) $ECHO_C" >&6
16644 else
16645   ac_check_lib_save_LIBS=$LIBS
16646 LIBS="-ldl  $LIBS"
16647 cat >conftest.$ac_ext <<_ACEOF
16648 #line $LINENO "configure"
16649 /* confdefs.h.  */
16650 _ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h.  */
16654
16655 /* Override any gcc2 internal prototype to avoid an error.  */
16656 #ifdef __cplusplus
16657 extern "C"
16658 #endif
16659 /* We use char because int might match the return type of a gcc2
16660    builtin and then its argument prototype would still apply.  */
16661 char dlopen ();
16662 int
16663 main ()
16664 {
16665 dlopen ();
16666   ;
16667   return 0;
16668 }
16669 _ACEOF
16670 rm -f conftest.$ac_objext conftest$ac_exeext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16672   (eval $ac_link) 2>&5
16673   ac_status=$?
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); } &&
16676          { ac_try='test -s conftest$ac_exeext'
16677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678   (eval $ac_try) 2>&5
16679   ac_status=$?
16680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681   (exit $ac_status); }; }; then
16682   ac_cv_lib_dl_dlopen=yes
16683 else
16684   echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16686
16687 ac_cv_lib_dl_dlopen=no
16688 fi
16689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16690 LIBS=$ac_check_lib_save_LIBS
16691 fi
16692 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16693 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16694 if test $ac_cv_lib_dl_dlopen = yes; then
16695   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16696 else
16697
16698     lt_cv_dlopen="dyld"
16699     lt_cv_dlopen_libs=
16700     lt_cv_dlopen_self=yes
16701
16702 fi
16703
16704    ;;
16705
16706   *)
16707     echo "$as_me:$LINENO: checking for shl_load" >&5
16708 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16709 if test "${ac_cv_func_shl_load+set}" = set; then
16710   echo $ECHO_N "(cached) $ECHO_C" >&6
16711 else
16712   cat >conftest.$ac_ext <<_ACEOF
16713 #line $LINENO "configure"
16714 /* confdefs.h.  */
16715 _ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h.  */
16719 /* System header to define __stub macros and hopefully few prototypes,
16720     which can conflict with char shl_load (); below.
16721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16722     <limits.h> exists even on freestanding compilers.  */
16723 #ifdef __STDC__
16724 # include <limits.h>
16725 #else
16726 # include <assert.h>
16727 #endif
16728 /* Override any gcc2 internal prototype to avoid an error.  */
16729 #ifdef __cplusplus
16730 extern "C"
16731 {
16732 #endif
16733 /* We use char because int might match the return type of a gcc2
16734    builtin and then its argument prototype would still apply.  */
16735 char shl_load ();
16736 /* The GNU C library defines this for functions which it implements
16737     to always fail with ENOSYS.  Some functions are actually named
16738     something starting with __ and the normal name is an alias.  */
16739 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16740 choke me
16741 #else
16742 char (*f) () = shl_load;
16743 #endif
16744 #ifdef __cplusplus
16745 }
16746 #endif
16747
16748 int
16749 main ()
16750 {
16751 return f != shl_load;
16752   ;
16753   return 0;
16754 }
16755 _ACEOF
16756 rm -f conftest.$ac_objext conftest$ac_exeext
16757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16758   (eval $ac_link) 2>&5
16759   ac_status=$?
16760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761   (exit $ac_status); } &&
16762          { ac_try='test -s conftest$ac_exeext'
16763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764   (eval $ac_try) 2>&5
16765   ac_status=$?
16766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767   (exit $ac_status); }; }; then
16768   ac_cv_func_shl_load=yes
16769 else
16770   echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16772
16773 ac_cv_func_shl_load=no
16774 fi
16775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16776 fi
16777 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16778 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16779 if test $ac_cv_func_shl_load = yes; then
16780   lt_cv_dlopen="shl_load"
16781 else
16782   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16783 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16784 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16785   echo $ECHO_N "(cached) $ECHO_C" >&6
16786 else
16787   ac_check_lib_save_LIBS=$LIBS
16788 LIBS="-ldld  $LIBS"
16789 cat >conftest.$ac_ext <<_ACEOF
16790 #line $LINENO "configure"
16791 /* confdefs.h.  */
16792 _ACEOF
16793 cat confdefs.h >>conftest.$ac_ext
16794 cat >>conftest.$ac_ext <<_ACEOF
16795 /* end confdefs.h.  */
16796
16797 /* Override any gcc2 internal prototype to avoid an error.  */
16798 #ifdef __cplusplus
16799 extern "C"
16800 #endif
16801 /* We use char because int might match the return type of a gcc2
16802    builtin and then its argument prototype would still apply.  */
16803 char shl_load ();
16804 int
16805 main ()
16806 {
16807 shl_load ();
16808   ;
16809   return 0;
16810 }
16811 _ACEOF
16812 rm -f conftest.$ac_objext conftest$ac_exeext
16813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16814   (eval $ac_link) 2>&5
16815   ac_status=$?
16816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817   (exit $ac_status); } &&
16818          { ac_try='test -s conftest$ac_exeext'
16819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820   (eval $ac_try) 2>&5
16821   ac_status=$?
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); }; }; then
16824   ac_cv_lib_dld_shl_load=yes
16825 else
16826   echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16828
16829 ac_cv_lib_dld_shl_load=no
16830 fi
16831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16832 LIBS=$ac_check_lib_save_LIBS
16833 fi
16834 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16835 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16836 if test $ac_cv_lib_dld_shl_load = yes; then
16837   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16838 else
16839   echo "$as_me:$LINENO: checking for dlopen" >&5
16840 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16841 if test "${ac_cv_func_dlopen+set}" = set; then
16842   echo $ECHO_N "(cached) $ECHO_C" >&6
16843 else
16844   cat >conftest.$ac_ext <<_ACEOF
16845 #line $LINENO "configure"
16846 /* confdefs.h.  */
16847 _ACEOF
16848 cat confdefs.h >>conftest.$ac_ext
16849 cat >>conftest.$ac_ext <<_ACEOF
16850 /* end confdefs.h.  */
16851 /* System header to define __stub macros and hopefully few prototypes,
16852     which can conflict with char dlopen (); below.
16853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16854     <limits.h> exists even on freestanding compilers.  */
16855 #ifdef __STDC__
16856 # include <limits.h>
16857 #else
16858 # include <assert.h>
16859 #endif
16860 /* Override any gcc2 internal prototype to avoid an error.  */
16861 #ifdef __cplusplus
16862 extern "C"
16863 {
16864 #endif
16865 /* We use char because int might match the return type of a gcc2
16866    builtin and then its argument prototype would still apply.  */
16867 char dlopen ();
16868 /* The GNU C library defines this for functions which it implements
16869     to always fail with ENOSYS.  Some functions are actually named
16870     something starting with __ and the normal name is an alias.  */
16871 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16872 choke me
16873 #else
16874 char (*f) () = dlopen;
16875 #endif
16876 #ifdef __cplusplus
16877 }
16878 #endif
16879
16880 int
16881 main ()
16882 {
16883 return f != dlopen;
16884   ;
16885   return 0;
16886 }
16887 _ACEOF
16888 rm -f conftest.$ac_objext conftest$ac_exeext
16889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16890   (eval $ac_link) 2>&5
16891   ac_status=$?
16892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893   (exit $ac_status); } &&
16894          { ac_try='test -s conftest$ac_exeext'
16895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896   (eval $ac_try) 2>&5
16897   ac_status=$?
16898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899   (exit $ac_status); }; }; then
16900   ac_cv_func_dlopen=yes
16901 else
16902   echo "$as_me: failed program was:" >&5
16903 sed 's/^/| /' conftest.$ac_ext >&5
16904
16905 ac_cv_func_dlopen=no
16906 fi
16907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16908 fi
16909 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16910 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16911 if test $ac_cv_func_dlopen = yes; then
16912   lt_cv_dlopen="dlopen"
16913 else
16914   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16915 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16916 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16917   echo $ECHO_N "(cached) $ECHO_C" >&6
16918 else
16919   ac_check_lib_save_LIBS=$LIBS
16920 LIBS="-ldl  $LIBS"
16921 cat >conftest.$ac_ext <<_ACEOF
16922 #line $LINENO "configure"
16923 /* confdefs.h.  */
16924 _ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h.  */
16928
16929 /* Override any gcc2 internal prototype to avoid an error.  */
16930 #ifdef __cplusplus
16931 extern "C"
16932 #endif
16933 /* We use char because int might match the return type of a gcc2
16934    builtin and then its argument prototype would still apply.  */
16935 char dlopen ();
16936 int
16937 main ()
16938 {
16939 dlopen ();
16940   ;
16941   return 0;
16942 }
16943 _ACEOF
16944 rm -f conftest.$ac_objext conftest$ac_exeext
16945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16946   (eval $ac_link) 2>&5
16947   ac_status=$?
16948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949   (exit $ac_status); } &&
16950          { ac_try='test -s conftest$ac_exeext'
16951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16952   (eval $ac_try) 2>&5
16953   ac_status=$?
16954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955   (exit $ac_status); }; }; then
16956   ac_cv_lib_dl_dlopen=yes
16957 else
16958   echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16960
16961 ac_cv_lib_dl_dlopen=no
16962 fi
16963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16964 LIBS=$ac_check_lib_save_LIBS
16965 fi
16966 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16967 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16968 if test $ac_cv_lib_dl_dlopen = yes; then
16969   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16970 else
16971   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16972 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16973 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16974   echo $ECHO_N "(cached) $ECHO_C" >&6
16975 else
16976   ac_check_lib_save_LIBS=$LIBS
16977 LIBS="-lsvld  $LIBS"
16978 cat >conftest.$ac_ext <<_ACEOF
16979 #line $LINENO "configure"
16980 /* confdefs.h.  */
16981 _ACEOF
16982 cat confdefs.h >>conftest.$ac_ext
16983 cat >>conftest.$ac_ext <<_ACEOF
16984 /* end confdefs.h.  */
16985
16986 /* Override any gcc2 internal prototype to avoid an error.  */
16987 #ifdef __cplusplus
16988 extern "C"
16989 #endif
16990 /* We use char because int might match the return type of a gcc2
16991    builtin and then its argument prototype would still apply.  */
16992 char dlopen ();
16993 int
16994 main ()
16995 {
16996 dlopen ();
16997   ;
16998   return 0;
16999 }
17000 _ACEOF
17001 rm -f conftest.$ac_objext conftest$ac_exeext
17002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17003   (eval $ac_link) 2>&5
17004   ac_status=$?
17005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006   (exit $ac_status); } &&
17007          { ac_try='test -s conftest$ac_exeext'
17008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17009   (eval $ac_try) 2>&5
17010   ac_status=$?
17011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012   (exit $ac_status); }; }; then
17013   ac_cv_lib_svld_dlopen=yes
17014 else
17015   echo "$as_me: failed program was:" >&5
17016 sed 's/^/| /' conftest.$ac_ext >&5
17017
17018 ac_cv_lib_svld_dlopen=no
17019 fi
17020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17021 LIBS=$ac_check_lib_save_LIBS
17022 fi
17023 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17024 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17025 if test $ac_cv_lib_svld_dlopen = yes; then
17026   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17027 else
17028   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17029 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17030 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17031   echo $ECHO_N "(cached) $ECHO_C" >&6
17032 else
17033   ac_check_lib_save_LIBS=$LIBS
17034 LIBS="-ldld  $LIBS"
17035 cat >conftest.$ac_ext <<_ACEOF
17036 #line $LINENO "configure"
17037 /* confdefs.h.  */
17038 _ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h.  */
17042
17043 /* Override any gcc2 internal prototype to avoid an error.  */
17044 #ifdef __cplusplus
17045 extern "C"
17046 #endif
17047 /* We use char because int might match the return type of a gcc2
17048    builtin and then its argument prototype would still apply.  */
17049 char dld_link ();
17050 int
17051 main ()
17052 {
17053 dld_link ();
17054   ;
17055   return 0;
17056 }
17057 _ACEOF
17058 rm -f conftest.$ac_objext conftest$ac_exeext
17059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17060   (eval $ac_link) 2>&5
17061   ac_status=$?
17062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063   (exit $ac_status); } &&
17064          { ac_try='test -s conftest$ac_exeext'
17065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066   (eval $ac_try) 2>&5
17067   ac_status=$?
17068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069   (exit $ac_status); }; }; then
17070   ac_cv_lib_dld_dld_link=yes
17071 else
17072   echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17074
17075 ac_cv_lib_dld_dld_link=no
17076 fi
17077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17078 LIBS=$ac_check_lib_save_LIBS
17079 fi
17080 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17081 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17082 if test $ac_cv_lib_dld_dld_link = yes; then
17083   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17084 fi
17085
17086
17087 fi
17088
17089
17090 fi
17091
17092
17093 fi
17094
17095
17096 fi
17097
17098
17099 fi
17100
17101     ;;
17102   esac
17103
17104   if test "x$lt_cv_dlopen" != xno; then
17105     enable_dlopen=yes
17106   else
17107     enable_dlopen=no
17108   fi
17109
17110   case $lt_cv_dlopen in
17111   dlopen)
17112     save_CPPFLAGS="$CPPFLAGS"
17113     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17114
17115     save_LDFLAGS="$LDFLAGS"
17116     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17117
17118     save_LIBS="$LIBS"
17119     LIBS="$lt_cv_dlopen_libs $LIBS"
17120
17121     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17122 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17123 if test "${lt_cv_dlopen_self+set}" = set; then
17124   echo $ECHO_N "(cached) $ECHO_C" >&6
17125 else
17126           if test "$cross_compiling" = yes; then :
17127   lt_cv_dlopen_self=cross
17128 else
17129   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17130   lt_status=$lt_dlunknown
17131   cat > conftest.$ac_ext <<EOF
17132 #line 17132 "configure"
17133 #include "confdefs.h"
17134
17135 #if HAVE_DLFCN_H
17136 #include <dlfcn.h>
17137 #endif
17138
17139 #include <stdio.h>
17140
17141 #ifdef RTLD_GLOBAL
17142 #  define LT_DLGLOBAL           RTLD_GLOBAL
17143 #else
17144 #  ifdef DL_GLOBAL
17145 #    define LT_DLGLOBAL         DL_GLOBAL
17146 #  else
17147 #    define LT_DLGLOBAL         0
17148 #  endif
17149 #endif
17150
17151 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17152    find out it does not work in some platform. */
17153 #ifndef LT_DLLAZY_OR_NOW
17154 #  ifdef RTLD_LAZY
17155 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17156 #  else
17157 #    ifdef DL_LAZY
17158 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17159 #    else
17160 #      ifdef RTLD_NOW
17161 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17162 #      else
17163 #        ifdef DL_NOW
17164 #          define LT_DLLAZY_OR_NOW      DL_NOW
17165 #        else
17166 #          define LT_DLLAZY_OR_NOW      0
17167 #        endif
17168 #      endif
17169 #    endif
17170 #  endif
17171 #endif
17172
17173 #ifdef __cplusplus
17174 extern "C" void exit (int);
17175 #endif
17176
17177 void fnord() { int i=42;}
17178 int main ()
17179 {
17180   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17181   int status = $lt_dlunknown;
17182
17183   if (self)
17184     {
17185       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17186       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17187       /* dlclose (self); */
17188     }
17189
17190     exit (status);
17191 }
17192 EOF
17193   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17194   (eval $ac_link) 2>&5
17195   ac_status=$?
17196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17198     (./conftest; exit; ) 2>/dev/null
17199     lt_status=$?
17200     case x$lt_status in
17201       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17202       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17203       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17204     esac
17205   else :
17206     # compilation failed
17207     lt_cv_dlopen_self=no
17208   fi
17209 fi
17210 rm -fr conftest*
17211
17212
17213 fi
17214 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17215 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17216
17217     if test "x$lt_cv_dlopen_self" = xyes; then
17218       LDFLAGS="$LDFLAGS $link_static_flag"
17219       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17220 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17221 if test "${lt_cv_dlopen_self_static+set}" = set; then
17222   echo $ECHO_N "(cached) $ECHO_C" >&6
17223 else
17224           if test "$cross_compiling" = yes; then :
17225   lt_cv_dlopen_self_static=cross
17226 else
17227   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17228   lt_status=$lt_dlunknown
17229   cat > conftest.$ac_ext <<EOF
17230 #line 17230 "configure"
17231 #include "confdefs.h"
17232
17233 #if HAVE_DLFCN_H
17234 #include <dlfcn.h>
17235 #endif
17236
17237 #include <stdio.h>
17238
17239 #ifdef RTLD_GLOBAL
17240 #  define LT_DLGLOBAL           RTLD_GLOBAL
17241 #else
17242 #  ifdef DL_GLOBAL
17243 #    define LT_DLGLOBAL         DL_GLOBAL
17244 #  else
17245 #    define LT_DLGLOBAL         0
17246 #  endif
17247 #endif
17248
17249 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17250    find out it does not work in some platform. */
17251 #ifndef LT_DLLAZY_OR_NOW
17252 #  ifdef RTLD_LAZY
17253 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17254 #  else
17255 #    ifdef DL_LAZY
17256 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17257 #    else
17258 #      ifdef RTLD_NOW
17259 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17260 #      else
17261 #        ifdef DL_NOW
17262 #          define LT_DLLAZY_OR_NOW      DL_NOW
17263 #        else
17264 #          define LT_DLLAZY_OR_NOW      0
17265 #        endif
17266 #      endif
17267 #    endif
17268 #  endif
17269 #endif
17270
17271 #ifdef __cplusplus
17272 extern "C" void exit (int);
17273 #endif
17274
17275 void fnord() { int i=42;}
17276 int main ()
17277 {
17278   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17279   int status = $lt_dlunknown;
17280
17281   if (self)
17282     {
17283       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17284       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17285       /* dlclose (self); */
17286     }
17287
17288     exit (status);
17289 }
17290 EOF
17291   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17292   (eval $ac_link) 2>&5
17293   ac_status=$?
17294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17296     (./conftest; exit; ) 2>/dev/null
17297     lt_status=$?
17298     case x$lt_status in
17299       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17300       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17301       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17302     esac
17303   else :
17304     # compilation failed
17305     lt_cv_dlopen_self_static=no
17306   fi
17307 fi
17308 rm -fr conftest*
17309
17310
17311 fi
17312 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17313 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17314     fi
17315
17316     CPPFLAGS="$save_CPPFLAGS"
17317     LDFLAGS="$save_LDFLAGS"
17318     LIBS="$save_LIBS"
17319     ;;
17320   esac
17321
17322   case $lt_cv_dlopen_self in
17323   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17324   *) enable_dlopen_self=unknown ;;
17325   esac
17326
17327   case $lt_cv_dlopen_self_static in
17328   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17329   *) enable_dlopen_self_static=unknown ;;
17330   esac
17331 fi
17332
17333
17334 # The else clause should only fire when bootstrapping the
17335 # libtool distribution, otherwise you forgot to ship ltmain.sh
17336 # with your package, and you will get complaints that there are
17337 # no rules to generate ltmain.sh.
17338 if test -f "$ltmain"; then
17339   # See if we are running on zsh, and set the options which allow our commands through
17340   # without removal of \ escapes.
17341   if test -n "${ZSH_VERSION+set}" ; then
17342     setopt NO_GLOB_SUBST
17343   fi
17344   # Now quote all the things that may contain metacharacters while being
17345   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17346   # variables and quote the copies for generation of the libtool script.
17347   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17348     SED SHELL STRIP \
17349     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17350     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17351     deplibs_check_method reload_flag reload_cmds need_locks \
17352     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17353     lt_cv_sys_global_symbol_to_c_name_address \
17354     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17355     old_postinstall_cmds old_postuninstall_cmds \
17356     compiler_GCJ \
17357     CC_GCJ \
17358     LD_GCJ \
17359     lt_prog_compiler_wl_GCJ \
17360     lt_prog_compiler_pic_GCJ \
17361     lt_prog_compiler_static_GCJ \
17362     lt_prog_compiler_no_builtin_flag_GCJ \
17363     export_dynamic_flag_spec_GCJ \
17364     thread_safe_flag_spec_GCJ \
17365     whole_archive_flag_spec_GCJ \
17366     enable_shared_with_static_runtimes_GCJ \
17367     old_archive_cmds_GCJ \
17368     old_archive_from_new_cmds_GCJ \
17369     predep_objects_GCJ \
17370     postdep_objects_GCJ \
17371     predeps_GCJ \
17372     postdeps_GCJ \
17373     compiler_lib_search_path_GCJ \
17374     archive_cmds_GCJ \
17375     archive_expsym_cmds_GCJ \
17376     postinstall_cmds_GCJ \
17377     postuninstall_cmds_GCJ \
17378     old_archive_from_expsyms_cmds_GCJ \
17379     allow_undefined_flag_GCJ \
17380     no_undefined_flag_GCJ \
17381     export_symbols_cmds_GCJ \
17382     hardcode_libdir_flag_spec_GCJ \
17383     hardcode_libdir_flag_spec_ld_GCJ \
17384     hardcode_libdir_separator_GCJ \
17385     hardcode_automatic_GCJ \
17386     module_cmds_GCJ \
17387     module_expsym_cmds_GCJ \
17388     lt_cv_prog_compiler_c_o_GCJ \
17389     exclude_expsyms_GCJ \
17390     include_expsyms_GCJ; do
17391
17392     case $var in
17393     old_archive_cmds_GCJ | \
17394     old_archive_from_new_cmds_GCJ | \
17395     archive_cmds_GCJ | \
17396     archive_expsym_cmds_GCJ | \
17397     module_cmds_GCJ | \
17398     module_expsym_cmds_GCJ | \
17399     old_archive_from_expsyms_cmds_GCJ | \
17400     export_symbols_cmds_GCJ | \
17401     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17402     postinstall_cmds | postuninstall_cmds | \
17403     old_postinstall_cmds | old_postuninstall_cmds | \
17404     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17405       # Double-quote double-evaled strings.
17406       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17407       ;;
17408     *)
17409       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17410       ;;
17411     esac
17412   done
17413
17414   case $lt_echo in
17415   *'\$0 --fallback-echo"')
17416     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17417     ;;
17418   esac
17419
17420 cfgfile="$ofile"
17421
17422   cat <<__EOF__ >> "$cfgfile"
17423 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17424
17425 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17426
17427 # Shell to use when invoking shell scripts.
17428 SHELL=$lt_SHELL
17429
17430 # Whether or not to build shared libraries.
17431 build_libtool_libs=$enable_shared
17432
17433 # Whether or not to build static libraries.
17434 build_old_libs=$enable_static
17435
17436 # Whether or not to add -lc for building shared libraries.
17437 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17438
17439 # Whether or not to disallow shared libs when runtime libs are static
17440 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17441
17442 # Whether or not to optimize for fast installation.
17443 fast_install=$enable_fast_install
17444
17445 # The host system.
17446 host_alias=$host_alias
17447 host=$host
17448
17449 # An echo program that does not interpret backslashes.
17450 echo=$lt_echo
17451
17452 # The archiver.
17453 AR=$lt_AR
17454 AR_FLAGS=$lt_AR_FLAGS
17455
17456 # A C compiler.
17457 LTCC=$lt_LTCC
17458
17459 # A language-specific compiler.
17460 CC=$lt_compiler_GCJ
17461
17462 # Is the compiler the GNU C compiler?
17463 with_gcc=$GCC_GCJ
17464
17465 # An ERE matcher.
17466 EGREP=$lt_EGREP
17467
17468 # The linker used to build libraries.
17469 LD=$lt_LD_GCJ
17470
17471 # Whether we need hard or soft links.
17472 LN_S=$lt_LN_S
17473
17474 # A BSD-compatible nm program.
17475 NM=$lt_NM
17476
17477 # A symbol stripping program
17478 STRIP=$lt_STRIP
17479
17480 # Used to examine libraries when file_magic_cmd begins "file"
17481 MAGIC_CMD=$MAGIC_CMD
17482
17483 # Used on cygwin: DLL creation program.
17484 DLLTOOL="$DLLTOOL"
17485
17486 # Used on cygwin: object dumper.
17487 OBJDUMP="$OBJDUMP"
17488
17489 # Used on cygwin: assembler.
17490 AS="$AS"
17491
17492 # The name of the directory that contains temporary libtool files.
17493 objdir=$objdir
17494
17495 # How to create reloadable object files.
17496 reload_flag=$lt_reload_flag
17497 reload_cmds=$lt_reload_cmds
17498
17499 # How to pass a linker flag through the compiler.
17500 wl=$lt_lt_prog_compiler_wl_GCJ
17501
17502 # Object file suffix (normally "o").
17503 objext="$ac_objext"
17504
17505 # Old archive suffix (normally "a").
17506 libext="$libext"
17507
17508 # Shared library suffix (normally ".so").
17509 shrext_cmds='$shrext_cmds'
17510
17511 # Executable file suffix (normally "").
17512 exeext="$exeext"
17513
17514 # Additional compiler flags for building library objects.
17515 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17516 pic_mode=$pic_mode
17517
17518 # What is the maximum length of a command?
17519 max_cmd_len=$lt_cv_sys_max_cmd_len
17520
17521 # Does compiler simultaneously support -c and -o options?
17522 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17523
17524 # Must we lock files when doing compilation ?
17525 need_locks=$lt_need_locks
17526
17527 # Do we need the lib prefix for modules?
17528 need_lib_prefix=$need_lib_prefix
17529
17530 # Do we need a version for libraries?
17531 need_version=$need_version
17532
17533 # Whether dlopen is supported.
17534 dlopen_support=$enable_dlopen
17535
17536 # Whether dlopen of programs is supported.
17537 dlopen_self=$enable_dlopen_self
17538
17539 # Whether dlopen of statically linked programs is supported.
17540 dlopen_self_static=$enable_dlopen_self_static
17541
17542 # Compiler flag to prevent dynamic linking.
17543 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17544
17545 # Compiler flag to turn off builtin functions.
17546 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17547
17548 # Compiler flag to allow reflexive dlopens.
17549 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17550
17551 # Compiler flag to generate shared objects directly from archives.
17552 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17553
17554 # Compiler flag to generate thread-safe objects.
17555 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17556
17557 # Library versioning type.
17558 version_type=$version_type
17559
17560 # Format of library name prefix.
17561 libname_spec=$lt_libname_spec
17562
17563 # List of archive names.  First name is the real one, the rest are links.
17564 # The last name is the one that the linker finds with -lNAME.
17565 library_names_spec=$lt_library_names_spec
17566
17567 # The coded name of the library, if different from the real name.
17568 soname_spec=$lt_soname_spec
17569
17570 # Commands used to build and install an old-style archive.
17571 RANLIB=$lt_RANLIB
17572 old_archive_cmds=$lt_old_archive_cmds_GCJ
17573 old_postinstall_cmds=$lt_old_postinstall_cmds
17574 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17575
17576 # Create an old-style archive from a shared archive.
17577 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17578
17579 # Create a temporary old-style archive to link instead of a shared archive.
17580 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17581
17582 # Commands used to build and install a shared archive.
17583 archive_cmds=$lt_archive_cmds_GCJ
17584 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17585 postinstall_cmds=$lt_postinstall_cmds
17586 postuninstall_cmds=$lt_postuninstall_cmds
17587
17588 # Commands used to build a loadable module (assumed same as above if empty)
17589 module_cmds=$lt_module_cmds_GCJ
17590 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17591
17592 # Commands to strip libraries.
17593 old_striplib=$lt_old_striplib
17594 striplib=$lt_striplib
17595
17596 # Dependencies to place before the objects being linked to create a
17597 # shared library.
17598 predep_objects=$lt_predep_objects_GCJ
17599
17600 # Dependencies to place after the objects being linked to create a
17601 # shared library.
17602 postdep_objects=$lt_postdep_objects_GCJ
17603
17604 # Dependencies to place before the objects being linked to create a
17605 # shared library.
17606 predeps=$lt_predeps_GCJ
17607
17608 # Dependencies to place after the objects being linked to create a
17609 # shared library.
17610 postdeps=$lt_postdeps_GCJ
17611
17612 # The library search path used internally by the compiler when linking
17613 # a shared library.
17614 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17615
17616 # Method to check whether dependent libraries are shared objects.
17617 deplibs_check_method=$lt_deplibs_check_method
17618
17619 # Command to use when deplibs_check_method == file_magic.
17620 file_magic_cmd=$lt_file_magic_cmd
17621
17622 # Flag that allows shared libraries with undefined symbols to be built.
17623 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17624
17625 # Flag that forces no undefined symbols.
17626 no_undefined_flag=$lt_no_undefined_flag_GCJ
17627
17628 # Commands used to finish a libtool library installation in a directory.
17629 finish_cmds=$lt_finish_cmds
17630
17631 # Same as above, but a single script fragment to be evaled but not shown.
17632 finish_eval=$lt_finish_eval
17633
17634 # Take the output of nm and produce a listing of raw symbols and C names.
17635 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17636
17637 # Transform the output of nm in a proper C declaration
17638 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17639
17640 # Transform the output of nm in a C name address pair
17641 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17642
17643 # This is the shared library runtime path variable.
17644 runpath_var=$runpath_var
17645
17646 # This is the shared library path variable.
17647 shlibpath_var=$shlibpath_var
17648
17649 # Is shlibpath searched before the hard-coded library search path?
17650 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17651
17652 # How to hardcode a shared library path into an executable.
17653 hardcode_action=$hardcode_action_GCJ
17654
17655 # Whether we should hardcode library paths into libraries.
17656 hardcode_into_libs=$hardcode_into_libs
17657
17658 # Flag to hardcode \$libdir into a binary during linking.
17659 # This must work even if \$libdir does not exist.
17660 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17661
17662 # If ld is used when linking, flag to hardcode \$libdir into
17663 # a binary during linking. This must work even if \$libdir does
17664 # not exist.
17665 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17666
17667 # Whether we need a single -rpath flag with a separated argument.
17668 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17669
17670 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17671 # resulting binary.
17672 hardcode_direct=$hardcode_direct_GCJ
17673
17674 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17675 # resulting binary.
17676 hardcode_minus_L=$hardcode_minus_L_GCJ
17677
17678 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17679 # the resulting binary.
17680 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17681
17682 # Set to yes if building a shared library automatically hardcodes DIR into the library
17683 # and all subsequent libraries and executables linked against it.
17684 hardcode_automatic=$hardcode_automatic_GCJ
17685
17686 # Variables whose values should be saved in libtool wrapper scripts and
17687 # restored at relink time.
17688 variables_saved_for_relink="$variables_saved_for_relink"
17689
17690 # Whether libtool must link a program against all its dependency libraries.
17691 link_all_deplibs=$link_all_deplibs_GCJ
17692
17693 # Compile-time system search path for libraries
17694 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17695
17696 # Run-time system search path for libraries
17697 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17698
17699 # Fix the shell variable \$srcfile for the compiler.
17700 fix_srcfile_path="$fix_srcfile_path_GCJ"
17701
17702 # Set to yes if exported symbols are required.
17703 always_export_symbols=$always_export_symbols_GCJ
17704
17705 # The commands to list exported symbols.
17706 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17707
17708 # The commands to extract the exported symbol list from a shared archive.
17709 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17710
17711 # Symbols that should not be listed in the preloaded symbols.
17712 exclude_expsyms=$lt_exclude_expsyms_GCJ
17713
17714 # Symbols that must always be exported.
17715 include_expsyms=$lt_include_expsyms_GCJ
17716
17717 # ### END LIBTOOL TAG CONFIG: $tagname
17718
17719 __EOF__
17720
17721
17722 else
17723   # If there is no Makefile yet, we rely on a make rule to execute
17724   # `config.status --recheck' to rerun these tests and create the
17725   # libtool script then.
17726   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17727   if test -f "$ltmain_in"; then
17728     test -f Makefile && make "$ltmain"
17729   fi
17730 fi
17731
17732
17733 ac_ext=c
17734 ac_cpp='$CPP $CPPFLAGS'
17735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17738
17739 CC="$lt_save_CC"
17740
17741         else
17742           tagname=""
17743         fi
17744         ;;
17745
17746       RC)
17747
17748
17749
17750 # Source file extension for RC test sources.
17751 ac_ext=rc
17752
17753 # Object file extension for compiled RC test sources.
17754 objext=o
17755 objext_RC=$objext
17756
17757 # Code to be used in simple compile tests
17758 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17759
17760 # Code to be used in simple link tests
17761 lt_simple_link_test_code="$lt_simple_compile_test_code"
17762
17763 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17764
17765 # If no C compiler was specified, use CC.
17766 LTCC=${LTCC-"$CC"}
17767
17768 # Allow CC to be a program name with arguments.
17769 compiler=$CC
17770
17771
17772 # Allow CC to be a program name with arguments.
17773 lt_save_CC="$CC"
17774 CC=${RC-"windres"}
17775 compiler=$CC
17776 compiler_RC=$CC
17777 lt_cv_prog_compiler_c_o_RC=yes
17778
17779 # The else clause should only fire when bootstrapping the
17780 # libtool distribution, otherwise you forgot to ship ltmain.sh
17781 # with your package, and you will get complaints that there are
17782 # no rules to generate ltmain.sh.
17783 if test -f "$ltmain"; then
17784   # See if we are running on zsh, and set the options which allow our commands through
17785   # without removal of \ escapes.
17786   if test -n "${ZSH_VERSION+set}" ; then
17787     setopt NO_GLOB_SUBST
17788   fi
17789   # Now quote all the things that may contain metacharacters while being
17790   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17791   # variables and quote the copies for generation of the libtool script.
17792   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17793     SED SHELL STRIP \
17794     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17795     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17796     deplibs_check_method reload_flag reload_cmds need_locks \
17797     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17798     lt_cv_sys_global_symbol_to_c_name_address \
17799     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17800     old_postinstall_cmds old_postuninstall_cmds \
17801     compiler_RC \
17802     CC_RC \
17803     LD_RC \
17804     lt_prog_compiler_wl_RC \
17805     lt_prog_compiler_pic_RC \
17806     lt_prog_compiler_static_RC \
17807     lt_prog_compiler_no_builtin_flag_RC \
17808     export_dynamic_flag_spec_RC \
17809     thread_safe_flag_spec_RC \
17810     whole_archive_flag_spec_RC \
17811     enable_shared_with_static_runtimes_RC \
17812     old_archive_cmds_RC \
17813     old_archive_from_new_cmds_RC \
17814     predep_objects_RC \
17815     postdep_objects_RC \
17816     predeps_RC \
17817     postdeps_RC \
17818     compiler_lib_search_path_RC \
17819     archive_cmds_RC \
17820     archive_expsym_cmds_RC \
17821     postinstall_cmds_RC \
17822     postuninstall_cmds_RC \
17823     old_archive_from_expsyms_cmds_RC \
17824     allow_undefined_flag_RC \
17825     no_undefined_flag_RC \
17826     export_symbols_cmds_RC \
17827     hardcode_libdir_flag_spec_RC \
17828     hardcode_libdir_flag_spec_ld_RC \
17829     hardcode_libdir_separator_RC \
17830     hardcode_automatic_RC \
17831     module_cmds_RC \
17832     module_expsym_cmds_RC \
17833     lt_cv_prog_compiler_c_o_RC \
17834     exclude_expsyms_RC \
17835     include_expsyms_RC; do
17836
17837     case $var in
17838     old_archive_cmds_RC | \
17839     old_archive_from_new_cmds_RC | \
17840     archive_cmds_RC | \
17841     archive_expsym_cmds_RC | \
17842     module_cmds_RC | \
17843     module_expsym_cmds_RC | \
17844     old_archive_from_expsyms_cmds_RC | \
17845     export_symbols_cmds_RC | \
17846     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17847     postinstall_cmds | postuninstall_cmds | \
17848     old_postinstall_cmds | old_postuninstall_cmds | \
17849     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17850       # Double-quote double-evaled strings.
17851       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17852       ;;
17853     *)
17854       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17855       ;;
17856     esac
17857   done
17858
17859   case $lt_echo in
17860   *'\$0 --fallback-echo"')
17861     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17862     ;;
17863   esac
17864
17865 cfgfile="$ofile"
17866
17867   cat <<__EOF__ >> "$cfgfile"
17868 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17869
17870 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17871
17872 # Shell to use when invoking shell scripts.
17873 SHELL=$lt_SHELL
17874
17875 # Whether or not to build shared libraries.
17876 build_libtool_libs=$enable_shared
17877
17878 # Whether or not to build static libraries.
17879 build_old_libs=$enable_static
17880
17881 # Whether or not to add -lc for building shared libraries.
17882 build_libtool_need_lc=$archive_cmds_need_lc_RC
17883
17884 # Whether or not to disallow shared libs when runtime libs are static
17885 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17886
17887 # Whether or not to optimize for fast installation.
17888 fast_install=$enable_fast_install
17889
17890 # The host system.
17891 host_alias=$host_alias
17892 host=$host
17893
17894 # An echo program that does not interpret backslashes.
17895 echo=$lt_echo
17896
17897 # The archiver.
17898 AR=$lt_AR
17899 AR_FLAGS=$lt_AR_FLAGS
17900
17901 # A C compiler.
17902 LTCC=$lt_LTCC
17903
17904 # A language-specific compiler.
17905 CC=$lt_compiler_RC
17906
17907 # Is the compiler the GNU C compiler?
17908 with_gcc=$GCC_RC
17909
17910 # An ERE matcher.
17911 EGREP=$lt_EGREP
17912
17913 # The linker used to build libraries.
17914 LD=$lt_LD_RC
17915
17916 # Whether we need hard or soft links.
17917 LN_S=$lt_LN_S
17918
17919 # A BSD-compatible nm program.
17920 NM=$lt_NM
17921
17922 # A symbol stripping program
17923 STRIP=$lt_STRIP
17924
17925 # Used to examine libraries when file_magic_cmd begins "file"
17926 MAGIC_CMD=$MAGIC_CMD
17927
17928 # Used on cygwin: DLL creation program.
17929 DLLTOOL="$DLLTOOL"
17930
17931 # Used on cygwin: object dumper.
17932 OBJDUMP="$OBJDUMP"
17933
17934 # Used on cygwin: assembler.
17935 AS="$AS"
17936
17937 # The name of the directory that contains temporary libtool files.
17938 objdir=$objdir
17939
17940 # How to create reloadable object files.
17941 reload_flag=$lt_reload_flag
17942 reload_cmds=$lt_reload_cmds
17943
17944 # How to pass a linker flag through the compiler.
17945 wl=$lt_lt_prog_compiler_wl_RC
17946
17947 # Object file suffix (normally "o").
17948 objext="$ac_objext"
17949
17950 # Old archive suffix (normally "a").
17951 libext="$libext"
17952
17953 # Shared library suffix (normally ".so").
17954 shrext_cmds='$shrext_cmds'
17955
17956 # Executable file suffix (normally "").
17957 exeext="$exeext"
17958
17959 # Additional compiler flags for building library objects.
17960 pic_flag=$lt_lt_prog_compiler_pic_RC
17961 pic_mode=$pic_mode
17962
17963 # What is the maximum length of a command?
17964 max_cmd_len=$lt_cv_sys_max_cmd_len
17965
17966 # Does compiler simultaneously support -c and -o options?
17967 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17968
17969 # Must we lock files when doing compilation ?
17970 need_locks=$lt_need_locks
17971
17972 # Do we need the lib prefix for modules?
17973 need_lib_prefix=$need_lib_prefix
17974
17975 # Do we need a version for libraries?
17976 need_version=$need_version
17977
17978 # Whether dlopen is supported.
17979 dlopen_support=$enable_dlopen
17980
17981 # Whether dlopen of programs is supported.
17982 dlopen_self=$enable_dlopen_self
17983
17984 # Whether dlopen of statically linked programs is supported.
17985 dlopen_self_static=$enable_dlopen_self_static
17986
17987 # Compiler flag to prevent dynamic linking.
17988 link_static_flag=$lt_lt_prog_compiler_static_RC
17989
17990 # Compiler flag to turn off builtin functions.
17991 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17992
17993 # Compiler flag to allow reflexive dlopens.
17994 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17995
17996 # Compiler flag to generate shared objects directly from archives.
17997 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17998
17999 # Compiler flag to generate thread-safe objects.
18000 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18001
18002 # Library versioning type.
18003 version_type=$version_type
18004
18005 # Format of library name prefix.
18006 libname_spec=$lt_libname_spec
18007
18008 # List of archive names.  First name is the real one, the rest are links.
18009 # The last name is the one that the linker finds with -lNAME.
18010 library_names_spec=$lt_library_names_spec
18011
18012 # The coded name of the library, if different from the real name.
18013 soname_spec=$lt_soname_spec
18014
18015 # Commands used to build and install an old-style archive.
18016 RANLIB=$lt_RANLIB
18017 old_archive_cmds=$lt_old_archive_cmds_RC
18018 old_postinstall_cmds=$lt_old_postinstall_cmds
18019 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18020
18021 # Create an old-style archive from a shared archive.
18022 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18023
18024 # Create a temporary old-style archive to link instead of a shared archive.
18025 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18026
18027 # Commands used to build and install a shared archive.
18028 archive_cmds=$lt_archive_cmds_RC
18029 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18030 postinstall_cmds=$lt_postinstall_cmds
18031 postuninstall_cmds=$lt_postuninstall_cmds
18032
18033 # Commands used to build a loadable module (assumed same as above if empty)
18034 module_cmds=$lt_module_cmds_RC
18035 module_expsym_cmds=$lt_module_expsym_cmds_RC
18036
18037 # Commands to strip libraries.
18038 old_striplib=$lt_old_striplib
18039 striplib=$lt_striplib
18040
18041 # Dependencies to place before the objects being linked to create a
18042 # shared library.
18043 predep_objects=$lt_predep_objects_RC
18044
18045 # Dependencies to place after the objects being linked to create a
18046 # shared library.
18047 postdep_objects=$lt_postdep_objects_RC
18048
18049 # Dependencies to place before the objects being linked to create a
18050 # shared library.
18051 predeps=$lt_predeps_RC
18052
18053 # Dependencies to place after the objects being linked to create a
18054 # shared library.
18055 postdeps=$lt_postdeps_RC
18056
18057 # The library search path used internally by the compiler when linking
18058 # a shared library.
18059 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18060
18061 # Method to check whether dependent libraries are shared objects.
18062 deplibs_check_method=$lt_deplibs_check_method
18063
18064 # Command to use when deplibs_check_method == file_magic.
18065 file_magic_cmd=$lt_file_magic_cmd
18066
18067 # Flag that allows shared libraries with undefined symbols to be built.
18068 allow_undefined_flag=$lt_allow_undefined_flag_RC
18069
18070 # Flag that forces no undefined symbols.
18071 no_undefined_flag=$lt_no_undefined_flag_RC
18072
18073 # Commands used to finish a libtool library installation in a directory.
18074 finish_cmds=$lt_finish_cmds
18075
18076 # Same as above, but a single script fragment to be evaled but not shown.
18077 finish_eval=$lt_finish_eval
18078
18079 # Take the output of nm and produce a listing of raw symbols and C names.
18080 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18081
18082 # Transform the output of nm in a proper C declaration
18083 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18084
18085 # Transform the output of nm in a C name address pair
18086 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18087
18088 # This is the shared library runtime path variable.
18089 runpath_var=$runpath_var
18090
18091 # This is the shared library path variable.
18092 shlibpath_var=$shlibpath_var
18093
18094 # Is shlibpath searched before the hard-coded library search path?
18095 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18096
18097 # How to hardcode a shared library path into an executable.
18098 hardcode_action=$hardcode_action_RC
18099
18100 # Whether we should hardcode library paths into libraries.
18101 hardcode_into_libs=$hardcode_into_libs
18102
18103 # Flag to hardcode \$libdir into a binary during linking.
18104 # This must work even if \$libdir does not exist.
18105 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18106
18107 # If ld is used when linking, flag to hardcode \$libdir into
18108 # a binary during linking. This must work even if \$libdir does
18109 # not exist.
18110 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18111
18112 # Whether we need a single -rpath flag with a separated argument.
18113 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18114
18115 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18116 # resulting binary.
18117 hardcode_direct=$hardcode_direct_RC
18118
18119 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18120 # resulting binary.
18121 hardcode_minus_L=$hardcode_minus_L_RC
18122
18123 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18124 # the resulting binary.
18125 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18126
18127 # Set to yes if building a shared library automatically hardcodes DIR into the library
18128 # and all subsequent libraries and executables linked against it.
18129 hardcode_automatic=$hardcode_automatic_RC
18130
18131 # Variables whose values should be saved in libtool wrapper scripts and
18132 # restored at relink time.
18133 variables_saved_for_relink="$variables_saved_for_relink"
18134
18135 # Whether libtool must link a program against all its dependency libraries.
18136 link_all_deplibs=$link_all_deplibs_RC
18137
18138 # Compile-time system search path for libraries
18139 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18140
18141 # Run-time system search path for libraries
18142 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18143
18144 # Fix the shell variable \$srcfile for the compiler.
18145 fix_srcfile_path="$fix_srcfile_path_RC"
18146
18147 # Set to yes if exported symbols are required.
18148 always_export_symbols=$always_export_symbols_RC
18149
18150 # The commands to list exported symbols.
18151 export_symbols_cmds=$lt_export_symbols_cmds_RC
18152
18153 # The commands to extract the exported symbol list from a shared archive.
18154 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18155
18156 # Symbols that should not be listed in the preloaded symbols.
18157 exclude_expsyms=$lt_exclude_expsyms_RC
18158
18159 # Symbols that must always be exported.
18160 include_expsyms=$lt_include_expsyms_RC
18161
18162 # ### END LIBTOOL TAG CONFIG: $tagname
18163
18164 __EOF__
18165
18166
18167 else
18168   # If there is no Makefile yet, we rely on a make rule to execute
18169   # `config.status --recheck' to rerun these tests and create the
18170   # libtool script then.
18171   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18172   if test -f "$ltmain_in"; then
18173     test -f Makefile && make "$ltmain"
18174   fi
18175 fi
18176
18177
18178 ac_ext=c
18179 ac_cpp='$CPP $CPPFLAGS'
18180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18183
18184 CC="$lt_save_CC"
18185
18186         ;;
18187
18188       *)
18189         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18190 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18191    { (exit 1); exit 1; }; }
18192         ;;
18193       esac
18194
18195       # Append the new tag name to the list of available tags.
18196       if test -n "$tagname" ; then
18197       available_tags="$available_tags $tagname"
18198     fi
18199     fi
18200   done
18201   IFS="$lt_save_ifs"
18202
18203   # Now substitute the updated list of available tags.
18204   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18205     mv "${ofile}T" "$ofile"
18206     chmod +x "$ofile"
18207   else
18208     rm -f "${ofile}T"
18209     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18210 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18211    { (exit 1); exit 1; }; }
18212   fi
18213 fi
18214
18215
18216
18217 # This can be used to rebuild libtool when needed
18218 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18219
18220 # Always use our own libtool.
18221 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18222
18223 # Prevent multiple expansion
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236 # Check whether --with-system-libtool or --without-system-libtool was given.
18237 if test "${with_system_libtool+set}" = set; then
18238   withval="$with_system_libtool"
18239    # Extract the first word of "libtool", so it can be a program name with args.
18240 set dummy libtool; ac_word=$2
18241 echo "$as_me:$LINENO: checking for $ac_word" >&5
18242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18243 if test "${ac_cv_path_LIBTOOL+set}" = set; then
18244   echo $ECHO_N "(cached) $ECHO_C" >&6
18245 else
18246   case $LIBTOOL in
18247   [\\/]* | ?:[\\/]*)
18248   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
18249   ;;
18250   *)
18251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18252 as_dummy="$PATH:/usr/local/bin"
18253 for as_dir in $as_dummy
18254 do
18255   IFS=$as_save_IFS
18256   test -z "$as_dir" && as_dir=.
18257   for ac_exec_ext in '' $ac_executable_extensions; do
18258   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18259     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
18260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18261     break 2
18262   fi
18263 done
18264 done
18265
18266   ;;
18267 esac
18268 fi
18269 LIBTOOL=$ac_cv_path_LIBTOOL
18270
18271 if test -n "$LIBTOOL"; then
18272   echo "$as_me:$LINENO: result: $LIBTOOL" >&5
18273 echo "${ECHO_T}$LIBTOOL" >&6
18274 else
18275   echo "$as_me:$LINENO: result: no" >&5
18276 echo "${ECHO_T}no" >&6
18277 fi
18278
18279 else
18280
18281   LIBTOOL="`pwd`/libtool"
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296 fi;
18297
18298
18299
18300 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
18301 if test "${enable_strict_dependencies+set}" = set; then
18302   enableval="$enable_strict_dependencies"
18303
18304 fi;
18305
18306 logdir='${localstatedir}/log/radius'
18307 echo "$as_me:$LINENO: checking logdir" >&5
18308 echo $ECHO_N "checking logdir... $ECHO_C" >&6
18309
18310 # Check whether --with-logdir or --without-logdir was given.
18311 if test "${with_logdir+set}" = set; then
18312   withval="$with_logdir"
18313    case "$withval" in
18314     no)
18315         { { echo "$as_me:$LINENO: error: Need logdir" >&5
18316 echo "$as_me: error: Need logdir" >&2;}
18317    { (exit 1); exit 1; }; }
18318         ;;
18319     yes)
18320         ;;
18321     *)
18322         logdir="$withval"
18323         ;;
18324   esac
18325
18326 fi;
18327
18328 echo "$as_me:$LINENO: result: $logdir" >&5
18329 echo "${ECHO_T}$logdir" >&6
18330
18331 radacctdir='${logdir}/radacct'
18332 echo "$as_me:$LINENO: checking radacctdir" >&5
18333 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
18334
18335 # Check whether --with-radacctdir or --without-radacctdir was given.
18336 if test "${with_radacctdir+set}" = set; then
18337   withval="$with_radacctdir"
18338    case "$withval" in
18339     no)
18340         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
18341 echo "$as_me: error: Need radacctdir" >&2;}
18342    { (exit 1); exit 1; }; }
18343         ;;
18344     yes)
18345         ;;
18346     *)
18347         radacctdir="$withval"
18348         ;;
18349   esac
18350
18351 fi;
18352
18353 echo "$as_me:$LINENO: result: $radacctdir" >&5
18354 echo "${ECHO_T}$radacctdir" >&6
18355
18356 raddbdir='${sysconfdir}/raddb'
18357 echo "$as_me:$LINENO: checking raddbdir" >&5
18358 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
18359
18360 # Check whether --with-raddbdir or --without-raddbdir was given.
18361 if test "${with_raddbdir+set}" = set; then
18362   withval="$with_raddbdir"
18363    case "$withval" in
18364     no)
18365         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
18366 echo "$as_me: error: Need raddbdir" >&2;}
18367    { (exit 1); exit 1; }; }
18368         ;;
18369     yes)
18370         ;;
18371     *)
18372         raddbdir="$withval"
18373         ;;
18374   esac
18375
18376 fi;
18377
18378 echo "$as_me:$LINENO: result: $raddbdir" >&5
18379 echo "${ECHO_T}$raddbdir" >&6
18380
18381 ASCEND_BINARY=yes
18382
18383 # Check whether --with-ascend-binary or --without-ascend-binary was given.
18384 if test "${with_ascend_binary+set}" = set; then
18385   withval="$with_ascend_binary"
18386    case "$withval" in
18387     yes)
18388         ;;
18389     *)
18390         ASCEND_BINARY=""
18391   esac
18392
18393 fi;
18394 if test "X$ASCEND_BINARY" = "Xyes"; then
18395   cat >>confdefs.h <<\_ACEOF
18396 #define ASCEND_BINARY 1
18397 _ACEOF
18398
18399 fi
18400
18401 WITH_THREADS=yes
18402
18403 # Check whether --with-threads or --without-threads was given.
18404 if test "${with_threads+set}" = set; then
18405   withval="$with_threads"
18406    case "$withval" in
18407     yes)
18408         ;;
18409     *)
18410         WITH_THREADS=""
18411   esac
18412
18413 fi;
18414
18415 WITH_SNMP=yes
18416
18417 # Check whether --with-snmp or --without-snmp was given.
18418 if test "${with_snmp+set}" = set; then
18419   withval="$with_snmp"
18420    case "$withval" in
18421     yes)
18422         ;;
18423     *)
18424         WITH_SNMP=no
18425   esac
18426
18427 fi;
18428
18429 rad_enable_largefiles=no
18430
18431 # Check whether --with-large-files or --without-large-files was given.
18432 if test "${with_large_files+set}" = set; then
18433   withval="$with_large_files"
18434    case "$withval" in
18435     yes)
18436         rad_enable_largefiles=yes
18437         ;;
18438     *)
18439         ;;
18440   esac
18441
18442 fi;
18443
18444
18445
18446 STATIC_MODULES=
18447
18448 # Check whether --with-static_modules or --without-static_modules was given.
18449 if test "${with_static_modules+set}" = set; then
18450   withval="$with_static_modules"
18451
18452   for i in $withval; do
18453     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
18454   done
18455
18456 fi;
18457
18458 # Check whether --enable-developer or --disable-developer was given.
18459 if test "${enable_developer+set}" = set; then
18460   enableval="$enable_developer"
18461    case "$enableval" in
18462     no)
18463         developer=no
18464         ;;
18465     *)
18466         developer=yes
18467   esac
18468
18469 fi;
18470
18471 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
18472     developer="yes"
18473 fi
18474
18475 EXPERIMENTAL=
18476
18477 # Check whether --with-experimental-modules or --without-experimental-modules was given.
18478 if test "${with_experimental_modules+set}" = set; then
18479   withval="$with_experimental_modules"
18480    case "$withval" in
18481     yes)
18482         EXPERIMENTAL=yes
18483         ;;
18484     *)
18485   esac
18486
18487 fi;
18488
18489
18490 # Check whether --with-openssl-includes or --without-openssl-includes was given.
18491 if test "${with_openssl_includes+set}" = set; then
18492   withval="$with_openssl_includes"
18493    case "$withval" in
18494     *) OPENSSL_INCLUDE_DIR="$withval"
18495         ;;
18496   esac
18497
18498 fi;
18499
18500
18501 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
18502 if test "${with_openssl_libraries+set}" = set; then
18503   withval="$with_openssl_libraries"
18504    case "$withval" in
18505     *) OPENSSL_LIB_DIR="$withval"
18506         ;;
18507   esac
18508
18509 fi;
18510
18511
18512
18513 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
18514 if test "${with_rlm_FOO_lib_dir+set}" = set; then
18515   withval="$with_rlm_FOO_lib_dir"
18516    case "$withval" in
18517     *)
18518         ;;
18519   esac
18520
18521 fi;
18522
18523
18524 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
18525 if test "${with_rlm_FOO_include_dir+set}" = set; then
18526   withval="$with_rlm_FOO_include_dir"
18527    case "$withval" in
18528     *)
18529         ;;
18530   esac
18531
18532 fi;
18533
18534
18535 WITH_UDPFROMTO=no
18536
18537 # Check whether --with-udpfromto or --without-udpfromto was given.
18538 if test "${with_udpfromto+set}" = set; then
18539   withval="$with_udpfromto"
18540    case "$withval" in
18541     yes)
18542         WITH_UDPFROMTO=yes
18543         ;;
18544     *)
18545         WITH_UDPFROMTO=no
18546   esac
18547
18548 fi;
18549
18550 if test "x$WITH_UDPFROMTO" = "xyes"; then
18551         cat >>confdefs.h <<\_ACEOF
18552 #define WITH_UDPFROMTO 1
18553 _ACEOF
18554
18555 fi
18556
18557
18558 CHECKRAD=checkrad.pl
18559 # Extract the first word of "perl", so it can be a program name with args.
18560 set dummy perl; ac_word=$2
18561 echo "$as_me:$LINENO: checking for $ac_word" >&5
18562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18563 if test "${ac_cv_path_PERL+set}" = set; then
18564   echo $ECHO_N "(cached) $ECHO_C" >&6
18565 else
18566   case $PERL in
18567   [\\/]* | ?:[\\/]*)
18568   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
18569   ;;
18570   *)
18571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18572 for as_dir in $PATH
18573 do
18574   IFS=$as_save_IFS
18575   test -z "$as_dir" && as_dir=.
18576   for ac_exec_ext in '' $ac_executable_extensions; do
18577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18578     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
18579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18580     break 2
18581   fi
18582 done
18583 done
18584
18585   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
18586   ;;
18587 esac
18588 fi
18589 PERL=$ac_cv_path_PERL
18590
18591 if test -n "$PERL"; then
18592   echo "$as_me:$LINENO: result: $PERL" >&5
18593 echo "${ECHO_T}$PERL" >&6
18594 else
18595   echo "$as_me:$LINENO: result: no" >&5
18596 echo "${ECHO_T}no" >&6
18597 fi
18598
18599 if test "x$ac_cv_path_PERL" = "x"; then
18600   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
18601 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18602 fi
18603 # Extract the first word of "snmpget", so it can be a program name with args.
18604 set dummy snmpget; ac_word=$2
18605 echo "$as_me:$LINENO: checking for $ac_word" >&5
18606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18607 if test "${ac_cv_path_SNMPGET+set}" = set; then
18608   echo $ECHO_N "(cached) $ECHO_C" >&6
18609 else
18610   case $SNMPGET in
18611   [\\/]* | ?:[\\/]*)
18612   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
18613   ;;
18614   *)
18615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18616 for as_dir in $PATH
18617 do
18618   IFS=$as_save_IFS
18619   test -z "$as_dir" && as_dir=.
18620   for ac_exec_ext in '' $ac_executable_extensions; do
18621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18622     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
18623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18624     break 2
18625   fi
18626 done
18627 done
18628
18629   ;;
18630 esac
18631 fi
18632 SNMPGET=$ac_cv_path_SNMPGET
18633
18634 if test -n "$SNMPGET"; then
18635   echo "$as_me:$LINENO: result: $SNMPGET" >&5
18636 echo "${ECHO_T}$SNMPGET" >&6
18637 else
18638   echo "$as_me:$LINENO: result: no" >&5
18639 echo "${ECHO_T}no" >&6
18640 fi
18641
18642 if test "x$ac_cv_path_SNMPGET" = "x"; then
18643   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
18644 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18645 fi
18646
18647 # Extract the first word of "snmpwalk", so it can be a program name with args.
18648 set dummy snmpwalk; ac_word=$2
18649 echo "$as_me:$LINENO: checking for $ac_word" >&5
18650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18651 if test "${ac_cv_path_SNMPWALK+set}" = set; then
18652   echo $ECHO_N "(cached) $ECHO_C" >&6
18653 else
18654   case $SNMPWALK in
18655   [\\/]* | ?:[\\/]*)
18656   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
18657   ;;
18658   *)
18659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18660 for as_dir in $PATH
18661 do
18662   IFS=$as_save_IFS
18663   test -z "$as_dir" && as_dir=.
18664   for ac_exec_ext in '' $ac_executable_extensions; do
18665   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18666     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
18667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18668     break 2
18669   fi
18670 done
18671 done
18672
18673   ;;
18674 esac
18675 fi
18676 SNMPWALK=$ac_cv_path_SNMPWALK
18677
18678 if test -n "$SNMPWALK"; then
18679   echo "$as_me:$LINENO: result: $SNMPWALK" >&5
18680 echo "${ECHO_T}$SNMPWALK" >&6
18681 else
18682   echo "$as_me:$LINENO: result: no" >&5
18683 echo "${ECHO_T}no" >&6
18684 fi
18685
18686 if test "x$ac_cv_path_SNMPWALK" = "x"; then
18687   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
18688 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18689 fi
18690
18691 # Extract the first word of "rusers", so it can be a program name with args.
18692 set dummy rusers; ac_word=$2
18693 echo "$as_me:$LINENO: checking for $ac_word" >&5
18694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18695 if test "${ac_cv_path_RUSERS+set}" = set; then
18696   echo $ECHO_N "(cached) $ECHO_C" >&6
18697 else
18698   case $RUSERS in
18699   [\\/]* | ?:[\\/]*)
18700   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
18701   ;;
18702   *)
18703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18704 for as_dir in $PATH
18705 do
18706   IFS=$as_save_IFS
18707   test -z "$as_dir" && as_dir=.
18708   for ac_exec_ext in '' $ac_executable_extensions; do
18709   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18710     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
18711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18712     break 2
18713   fi
18714 done
18715 done
18716
18717   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
18718   ;;
18719 esac
18720 fi
18721 RUSERS=$ac_cv_path_RUSERS
18722
18723 if test -n "$RUSERS"; then
18724   echo "$as_me:$LINENO: result: $RUSERS" >&5
18725 echo "${ECHO_T}$RUSERS" >&6
18726 else
18727   echo "$as_me:$LINENO: result: no" >&5
18728 echo "${ECHO_T}no" >&6
18729 fi
18730
18731
18732 missing_dir=`cd $ac_aux_dir && pwd`
18733 echo "$as_me:$LINENO: checking for working aclocal" >&5
18734 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
18735 # Run test in a subshell; some versions of sh will print an error if
18736 # an executable is not found, even if stderr is redirected.
18737 # Redirect stdin to placate older versions of autoconf.  Sigh.
18738 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
18739    ACLOCAL=aclocal
18740    echo "$as_me:$LINENO: result: found" >&5
18741 echo "${ECHO_T}found" >&6
18742 else
18743    ACLOCAL="$missing_dir/missing aclocal"
18744    echo "$as_me:$LINENO: result: missing" >&5
18745 echo "${ECHO_T}missing" >&6
18746 fi
18747
18748 echo "$as_me:$LINENO: checking for working autoconf" >&5
18749 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
18750 # Run test in a subshell; some versions of sh will print an error if
18751 # an executable is not found, even if stderr is redirected.
18752 # Redirect stdin to placate older versions of autoconf.  Sigh.
18753 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
18754    AUTOCONF=autoconf
18755    echo "$as_me:$LINENO: result: found" >&5
18756 echo "${ECHO_T}found" >&6
18757 else
18758    AUTOCONF="$missing_dir/missing autoconf"
18759    echo "$as_me:$LINENO: result: missing" >&5
18760 echo "${ECHO_T}missing" >&6
18761 fi
18762
18763 echo "$as_me:$LINENO: checking for working autoheader" >&5
18764 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
18765 # Run test in a subshell; some versions of sh will print an error if
18766 # an executable is not found, even if stderr is redirected.
18767 # Redirect stdin to placate older versions of autoconf.  Sigh.
18768 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
18769    AUTOHEADER=autoheader
18770    echo "$as_me:$LINENO: result: found" >&5
18771 echo "${ECHO_T}found" >&6
18772 else
18773    AUTOHEADER="$missing_dir/missing autoheader"
18774    echo "$as_me:$LINENO: result: missing" >&5
18775 echo "${ECHO_T}missing" >&6
18776 fi
18777
18778
18779 # Extract the first word of "locate", so it can be a program name with args.
18780 set dummy locate; ac_word=$2
18781 echo "$as_me:$LINENO: checking for $ac_word" >&5
18782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18783 if test "${ac_cv_path_LOCATE+set}" = set; then
18784   echo $ECHO_N "(cached) $ECHO_C" >&6
18785 else
18786   case $LOCATE in
18787   [\\/]* | ?:[\\/]*)
18788   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
18789   ;;
18790   *)
18791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18792 for as_dir in $PATH
18793 do
18794   IFS=$as_save_IFS
18795   test -z "$as_dir" && as_dir=.
18796   for ac_exec_ext in '' $ac_executable_extensions; do
18797   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18798     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
18799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18800     break 2
18801   fi
18802 done
18803 done
18804
18805   ;;
18806 esac
18807 fi
18808 LOCATE=$ac_cv_path_LOCATE
18809
18810 if test -n "$LOCATE"; then
18811   echo "$as_me:$LINENO: result: $LOCATE" >&5
18812 echo "${ECHO_T}$LOCATE" >&6
18813 else
18814   echo "$as_me:$LINENO: result: no" >&5
18815 echo "${ECHO_T}no" >&6
18816 fi
18817
18818 # Extract the first word of "dirname", so it can be a program name with args.
18819 set dummy dirname; ac_word=$2
18820 echo "$as_me:$LINENO: checking for $ac_word" >&5
18821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18822 if test "${ac_cv_path_DIRNAME+set}" = set; then
18823   echo $ECHO_N "(cached) $ECHO_C" >&6
18824 else
18825   case $DIRNAME in
18826   [\\/]* | ?:[\\/]*)
18827   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
18828   ;;
18829   *)
18830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18831 for as_dir in $PATH
18832 do
18833   IFS=$as_save_IFS
18834   test -z "$as_dir" && as_dir=.
18835   for ac_exec_ext in '' $ac_executable_extensions; do
18836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18837     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
18838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18839     break 2
18840   fi
18841 done
18842 done
18843
18844   ;;
18845 esac
18846 fi
18847 DIRNAME=$ac_cv_path_DIRNAME
18848
18849 if test -n "$DIRNAME"; then
18850   echo "$as_me:$LINENO: result: $DIRNAME" >&5
18851 echo "${ECHO_T}$DIRNAME" >&6
18852 else
18853   echo "$as_me:$LINENO: result: no" >&5
18854 echo "${ECHO_T}no" >&6
18855 fi
18856
18857 # Extract the first word of "grep", so it can be a program name with args.
18858 set dummy grep; ac_word=$2
18859 echo "$as_me:$LINENO: checking for $ac_word" >&5
18860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18861 if test "${ac_cv_path_GREP+set}" = set; then
18862   echo $ECHO_N "(cached) $ECHO_C" >&6
18863 else
18864   case $GREP in
18865   [\\/]* | ?:[\\/]*)
18866   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
18867   ;;
18868   *)
18869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18870 for as_dir in $PATH
18871 do
18872   IFS=$as_save_IFS
18873   test -z "$as_dir" && as_dir=.
18874   for ac_exec_ext in '' $ac_executable_extensions; do
18875   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18876     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
18877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18878     break 2
18879   fi
18880 done
18881 done
18882
18883   ;;
18884 esac
18885 fi
18886 GREP=$ac_cv_path_GREP
18887
18888 if test -n "$GREP"; then
18889   echo "$as_me:$LINENO: result: $GREP" >&5
18890 echo "${ECHO_T}$GREP" >&6
18891 else
18892   echo "$as_me:$LINENO: result: no" >&5
18893 echo "${ECHO_T}no" >&6
18894 fi
18895
18896
18897
18898 old_CFLAGS=$CFLAGS
18899 if test "x$WITH_THREADS" = "xyes"; then
18900   if test $ac_cv_prog_suncc = "yes"; then
18901     CFLAGS="$CFLAGS -mt"
18902   fi
18903
18904
18905 for ac_header in pthread.h
18906 do
18907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18909   echo "$as_me:$LINENO: checking for $ac_header" >&5
18910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18912   echo $ECHO_N "(cached) $ECHO_C" >&6
18913 fi
18914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18916 else
18917   # Is the header compilable?
18918 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18920 cat >conftest.$ac_ext <<_ACEOF
18921 #line $LINENO "configure"
18922 /* confdefs.h.  */
18923 _ACEOF
18924 cat confdefs.h >>conftest.$ac_ext
18925 cat >>conftest.$ac_ext <<_ACEOF
18926 /* end confdefs.h.  */
18927 $ac_includes_default
18928 #include <$ac_header>
18929 _ACEOF
18930 rm -f conftest.$ac_objext
18931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18932   (eval $ac_compile) 2>&5
18933   ac_status=$?
18934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935   (exit $ac_status); } &&
18936          { ac_try='test -s conftest.$ac_objext'
18937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938   (eval $ac_try) 2>&5
18939   ac_status=$?
18940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941   (exit $ac_status); }; }; then
18942   ac_header_compiler=yes
18943 else
18944   echo "$as_me: failed program was:" >&5
18945 sed 's/^/| /' conftest.$ac_ext >&5
18946
18947 ac_header_compiler=no
18948 fi
18949 rm -f conftest.$ac_objext conftest.$ac_ext
18950 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18951 echo "${ECHO_T}$ac_header_compiler" >&6
18952
18953 # Is the header present?
18954 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18955 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18956 cat >conftest.$ac_ext <<_ACEOF
18957 #line $LINENO "configure"
18958 /* confdefs.h.  */
18959 _ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h.  */
18963 #include <$ac_header>
18964 _ACEOF
18965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18966   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18967   ac_status=$?
18968   grep -v '^ *+' conftest.er1 >conftest.err
18969   rm -f conftest.er1
18970   cat conftest.err >&5
18971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972   (exit $ac_status); } >/dev/null; then
18973   if test -s conftest.err; then
18974     ac_cpp_err=$ac_c_preproc_warn_flag
18975   else
18976     ac_cpp_err=
18977   fi
18978 else
18979   ac_cpp_err=yes
18980 fi
18981 if test -z "$ac_cpp_err"; then
18982   ac_header_preproc=yes
18983 else
18984   echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18986
18987   ac_header_preproc=no
18988 fi
18989 rm -f conftest.err conftest.$ac_ext
18990 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18991 echo "${ECHO_T}$ac_header_preproc" >&6
18992
18993 # So?  What about this header?
18994 case $ac_header_compiler:$ac_header_preproc in
18995   yes:no )
18996     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19000     (
19001       cat <<\_ASBOX
19002 ## ------------------------------------ ##
19003 ## Report this to bug-autoconf@gnu.org. ##
19004 ## ------------------------------------ ##
19005 _ASBOX
19006     ) |
19007       sed "s/^/$as_me: WARNING:     /" >&2
19008     ;;
19009   no:yes )
19010     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19012     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19016     (
19017       cat <<\_ASBOX
19018 ## ------------------------------------ ##
19019 ## Report this to bug-autoconf@gnu.org. ##
19020 ## ------------------------------------ ##
19021 _ASBOX
19022     ) |
19023       sed "s/^/$as_me: WARNING:     /" >&2
19024     ;;
19025 esac
19026 echo "$as_me:$LINENO: checking for $ac_header" >&5
19027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19029   echo $ECHO_N "(cached) $ECHO_C" >&6
19030 else
19031   eval "$as_ac_Header=$ac_header_preproc"
19032 fi
19033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19035
19036 fi
19037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19038   cat >>confdefs.h <<_ACEOF
19039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19040 _ACEOF
19041
19042 else
19043    WITH_THREADS="no"
19044 fi
19045
19046 done
19047
19048
19049   echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19050 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19051 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19052   echo $ECHO_N "(cached) $ECHO_C" >&6
19053 else
19054   ac_check_lib_save_LIBS=$LIBS
19055 LIBS="-lpthread  $LIBS"
19056 cat >conftest.$ac_ext <<_ACEOF
19057 #line $LINENO "configure"
19058 /* confdefs.h.  */
19059 _ACEOF
19060 cat confdefs.h >>conftest.$ac_ext
19061 cat >>conftest.$ac_ext <<_ACEOF
19062 /* end confdefs.h.  */
19063
19064 /* Override any gcc2 internal prototype to avoid an error.  */
19065 #ifdef __cplusplus
19066 extern "C"
19067 #endif
19068 /* We use char because int might match the return type of a gcc2
19069    builtin and then its argument prototype would still apply.  */
19070 char pthread_create ();
19071 int
19072 main ()
19073 {
19074 pthread_create ();
19075   ;
19076   return 0;
19077 }
19078 _ACEOF
19079 rm -f conftest.$ac_objext conftest$ac_exeext
19080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19081   (eval $ac_link) 2>&5
19082   ac_status=$?
19083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084   (exit $ac_status); } &&
19085          { ac_try='test -s conftest$ac_exeext'
19086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087   (eval $ac_try) 2>&5
19088   ac_status=$?
19089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); }; }; then
19091   ac_cv_lib_pthread_pthread_create=yes
19092 else
19093   echo "$as_me: failed program was:" >&5
19094 sed 's/^/| /' conftest.$ac_ext >&5
19095
19096 ac_cv_lib_pthread_pthread_create=no
19097 fi
19098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19099 LIBS=$ac_check_lib_save_LIBS
19100 fi
19101 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19102 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19103 if test $ac_cv_lib_pthread_pthread_create = yes; then
19104    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
19105                   LIBS="$LIBS -lpthread"
19106 else
19107   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
19108 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
19109 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
19110   echo $ECHO_N "(cached) $ECHO_C" >&6
19111 else
19112   ac_check_lib_save_LIBS=$LIBS
19113 LIBS="-lc_r  $LIBS"
19114 cat >conftest.$ac_ext <<_ACEOF
19115 #line $LINENO "configure"
19116 /* confdefs.h.  */
19117 _ACEOF
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h.  */
19121
19122 /* Override any gcc2 internal prototype to avoid an error.  */
19123 #ifdef __cplusplus
19124 extern "C"
19125 #endif
19126 /* We use char because int might match the return type of a gcc2
19127    builtin and then its argument prototype would still apply.  */
19128 char pthread_create ();
19129 int
19130 main ()
19131 {
19132 pthread_create ();
19133   ;
19134   return 0;
19135 }
19136 _ACEOF
19137 rm -f conftest.$ac_objext conftest$ac_exeext
19138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19139   (eval $ac_link) 2>&5
19140   ac_status=$?
19141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142   (exit $ac_status); } &&
19143          { ac_try='test -s conftest$ac_exeext'
19144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145   (eval $ac_try) 2>&5
19146   ac_status=$?
19147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148   (exit $ac_status); }; }; then
19149   ac_cv_lib_c_r_pthread_create=yes
19150 else
19151   echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19153
19154 ac_cv_lib_c_r_pthread_create=no
19155 fi
19156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19157 LIBS=$ac_check_lib_save_LIBS
19158 fi
19159 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
19160 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
19161 if test $ac_cv_lib_c_r_pthread_create = yes; then
19162    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
19163 else
19164    WITH_THREADS="no"
19165
19166 fi
19167
19168
19169 fi
19170
19171 fi
19172
19173 if test "x$WITH_THREADS" != "xyes"; then
19174   CFLAGS=$old_CFLAGS
19175   ac_cv_header_pthread_h="no"
19176   WITH_THREADS=no
19177 else
19178
19179   echo "$as_me:$LINENO: checking for library containing sem_init" >&5
19180 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
19181 if test "${ac_cv_search_sem_init+set}" = set; then
19182   echo $ECHO_N "(cached) $ECHO_C" >&6
19183 else
19184   ac_func_search_save_LIBS=$LIBS
19185 ac_cv_search_sem_init=no
19186 cat >conftest.$ac_ext <<_ACEOF
19187 #line $LINENO "configure"
19188 /* confdefs.h.  */
19189 _ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h.  */
19193
19194 /* Override any gcc2 internal prototype to avoid an error.  */
19195 #ifdef __cplusplus
19196 extern "C"
19197 #endif
19198 /* We use char because int might match the return type of a gcc2
19199    builtin and then its argument prototype would still apply.  */
19200 char sem_init ();
19201 int
19202 main ()
19203 {
19204 sem_init ();
19205   ;
19206   return 0;
19207 }
19208 _ACEOF
19209 rm -f conftest.$ac_objext conftest$ac_exeext
19210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19211   (eval $ac_link) 2>&5
19212   ac_status=$?
19213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214   (exit $ac_status); } &&
19215          { ac_try='test -s conftest$ac_exeext'
19216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217   (eval $ac_try) 2>&5
19218   ac_status=$?
19219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220   (exit $ac_status); }; }; then
19221   ac_cv_search_sem_init="none required"
19222 else
19223   echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19225
19226 fi
19227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19228 if test "$ac_cv_search_sem_init" = no; then
19229   for ac_lib in pthread sem posix4 rt; do
19230     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19231     cat >conftest.$ac_ext <<_ACEOF
19232 #line $LINENO "configure"
19233 /* confdefs.h.  */
19234 _ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h.  */
19238
19239 /* Override any gcc2 internal prototype to avoid an error.  */
19240 #ifdef __cplusplus
19241 extern "C"
19242 #endif
19243 /* We use char because int might match the return type of a gcc2
19244    builtin and then its argument prototype would still apply.  */
19245 char sem_init ();
19246 int
19247 main ()
19248 {
19249 sem_init ();
19250   ;
19251   return 0;
19252 }
19253 _ACEOF
19254 rm -f conftest.$ac_objext conftest$ac_exeext
19255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19256   (eval $ac_link) 2>&5
19257   ac_status=$?
19258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259   (exit $ac_status); } &&
19260          { ac_try='test -s conftest$ac_exeext'
19261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19262   (eval $ac_try) 2>&5
19263   ac_status=$?
19264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265   (exit $ac_status); }; }; then
19266   ac_cv_search_sem_init="-l$ac_lib"
19267 break
19268 else
19269   echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19271
19272 fi
19273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19274   done
19275 fi
19276 LIBS=$ac_func_search_save_LIBS
19277 fi
19278 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
19279 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
19280 if test "$ac_cv_search_sem_init" != no; then
19281   test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
19282
19283 else
19284   { { 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
19285 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;}
19286    { (exit 1); exit 1; }; }
19287
19288 fi
19289
19290 fi
19291
19292
19293 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
19294 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
19295 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
19296   echo $ECHO_N "(cached) $ECHO_C" >&6
19297 else
19298   ac_check_lib_save_LIBS=$LIBS
19299 LIBS="-lsocket  $LIBS"
19300 cat >conftest.$ac_ext <<_ACEOF
19301 #line $LINENO "configure"
19302 /* confdefs.h.  */
19303 _ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h.  */
19307
19308 /* Override any gcc2 internal prototype to avoid an error.  */
19309 #ifdef __cplusplus
19310 extern "C"
19311 #endif
19312 /* We use char because int might match the return type of a gcc2
19313    builtin and then its argument prototype would still apply.  */
19314 char getsockname ();
19315 int
19316 main ()
19317 {
19318 getsockname ();
19319   ;
19320   return 0;
19321 }
19322 _ACEOF
19323 rm -f conftest.$ac_objext conftest$ac_exeext
19324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19325   (eval $ac_link) 2>&5
19326   ac_status=$?
19327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); } &&
19329          { ac_try='test -s conftest$ac_exeext'
19330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331   (eval $ac_try) 2>&5
19332   ac_status=$?
19333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334   (exit $ac_status); }; }; then
19335   ac_cv_lib_socket_getsockname=yes
19336 else
19337   echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19339
19340 ac_cv_lib_socket_getsockname=no
19341 fi
19342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19343 LIBS=$ac_check_lib_save_LIBS
19344 fi
19345 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
19346 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
19347 if test $ac_cv_lib_socket_getsockname = yes; then
19348   cat >>confdefs.h <<_ACEOF
19349 #define HAVE_LIBSOCKET 1
19350 _ACEOF
19351
19352   LIBS="-lsocket $LIBS"
19353
19354 fi
19355
19356
19357
19358 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
19359 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
19360 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
19361   echo $ECHO_N "(cached) $ECHO_C" >&6
19362 else
19363   ac_check_lib_save_LIBS=$LIBS
19364 LIBS="-lresolv  $LIBS"
19365 cat >conftest.$ac_ext <<_ACEOF
19366 #line $LINENO "configure"
19367 /* confdefs.h.  */
19368 _ACEOF
19369 cat confdefs.h >>conftest.$ac_ext
19370 cat >>conftest.$ac_ext <<_ACEOF
19371 /* end confdefs.h.  */
19372
19373 /* Override any gcc2 internal prototype to avoid an error.  */
19374 #ifdef __cplusplus
19375 extern "C"
19376 #endif
19377 /* We use char because int might match the return type of a gcc2
19378    builtin and then its argument prototype would still apply.  */
19379 char inet_aton ();
19380 int
19381 main ()
19382 {
19383 inet_aton ();
19384   ;
19385   return 0;
19386 }
19387 _ACEOF
19388 rm -f conftest.$ac_objext conftest$ac_exeext
19389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19390   (eval $ac_link) 2>&5
19391   ac_status=$?
19392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393   (exit $ac_status); } &&
19394          { ac_try='test -s conftest$ac_exeext'
19395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19396   (eval $ac_try) 2>&5
19397   ac_status=$?
19398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399   (exit $ac_status); }; }; then
19400   ac_cv_lib_resolv_inet_aton=yes
19401 else
19402   echo "$as_me: failed program was:" >&5
19403 sed 's/^/| /' conftest.$ac_ext >&5
19404
19405 ac_cv_lib_resolv_inet_aton=no
19406 fi
19407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19408 LIBS=$ac_check_lib_save_LIBS
19409 fi
19410 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
19411 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
19412 if test $ac_cv_lib_resolv_inet_aton = yes; then
19413   cat >>confdefs.h <<_ACEOF
19414 #define HAVE_LIBRESOLV 1
19415 _ACEOF
19416
19417   LIBS="-lresolv $LIBS"
19418
19419 fi
19420
19421
19422
19423 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
19424 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
19425 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
19426   echo $ECHO_N "(cached) $ECHO_C" >&6
19427 else
19428   ac_check_lib_save_LIBS=$LIBS
19429 LIBS="-lnsl  $LIBS"
19430 cat >conftest.$ac_ext <<_ACEOF
19431 #line $LINENO "configure"
19432 /* confdefs.h.  */
19433 _ACEOF
19434 cat confdefs.h >>conftest.$ac_ext
19435 cat >>conftest.$ac_ext <<_ACEOF
19436 /* end confdefs.h.  */
19437
19438 /* Override any gcc2 internal prototype to avoid an error.  */
19439 #ifdef __cplusplus
19440 extern "C"
19441 #endif
19442 /* We use char because int might match the return type of a gcc2
19443    builtin and then its argument prototype would still apply.  */
19444 char inet_ntoa ();
19445 int
19446 main ()
19447 {
19448 inet_ntoa ();
19449   ;
19450   return 0;
19451 }
19452 _ACEOF
19453 rm -f conftest.$ac_objext conftest$ac_exeext
19454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19455   (eval $ac_link) 2>&5
19456   ac_status=$?
19457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458   (exit $ac_status); } &&
19459          { ac_try='test -s conftest$ac_exeext'
19460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19461   (eval $ac_try) 2>&5
19462   ac_status=$?
19463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464   (exit $ac_status); }; }; then
19465   ac_cv_lib_nsl_inet_ntoa=yes
19466 else
19467   echo "$as_me: failed program was:" >&5
19468 sed 's/^/| /' conftest.$ac_ext >&5
19469
19470 ac_cv_lib_nsl_inet_ntoa=no
19471 fi
19472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19473 LIBS=$ac_check_lib_save_LIBS
19474 fi
19475 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
19476 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
19477 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
19478   cat >>confdefs.h <<_ACEOF
19479 #define HAVE_LIBNSL 1
19480 _ACEOF
19481
19482   LIBS="-lnsl $LIBS"
19483
19484 fi
19485
19486
19487
19488 case "$host" in
19489 *-interix*)
19490         CFLAGS="$CFLAGS -D_ALL_SOURCE"
19491         ;;
19492 esac
19493
19494
19495
19496
19497
19498
19499 ac_header_dirent=no
19500 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19501   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19502 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19503 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19505   echo $ECHO_N "(cached) $ECHO_C" >&6
19506 else
19507   cat >conftest.$ac_ext <<_ACEOF
19508 #line $LINENO "configure"
19509 /* confdefs.h.  */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h.  */
19514 #include <sys/types.h>
19515 #include <$ac_hdr>
19516
19517 int
19518 main ()
19519 {
19520 if ((DIR *) 0)
19521 return 0;
19522   ;
19523   return 0;
19524 }
19525 _ACEOF
19526 rm -f conftest.$ac_objext
19527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19528   (eval $ac_compile) 2>&5
19529   ac_status=$?
19530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531   (exit $ac_status); } &&
19532          { ac_try='test -s conftest.$ac_objext'
19533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534   (eval $ac_try) 2>&5
19535   ac_status=$?
19536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537   (exit $ac_status); }; }; then
19538   eval "$as_ac_Header=yes"
19539 else
19540   echo "$as_me: failed program was:" >&5
19541 sed 's/^/| /' conftest.$ac_ext >&5
19542
19543 eval "$as_ac_Header=no"
19544 fi
19545 rm -f conftest.$ac_objext conftest.$ac_ext
19546 fi
19547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19550   cat >>confdefs.h <<_ACEOF
19551 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19552 _ACEOF
19553
19554 ac_header_dirent=$ac_hdr; break
19555 fi
19556
19557 done
19558 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19559 if test $ac_header_dirent = dirent.h; then
19560   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19561 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19562 if test "${ac_cv_search_opendir+set}" = set; then
19563   echo $ECHO_N "(cached) $ECHO_C" >&6
19564 else
19565   ac_func_search_save_LIBS=$LIBS
19566 ac_cv_search_opendir=no
19567 cat >conftest.$ac_ext <<_ACEOF
19568 #line $LINENO "configure"
19569 /* confdefs.h.  */
19570 _ACEOF
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h.  */
19574
19575 /* Override any gcc2 internal prototype to avoid an error.  */
19576 #ifdef __cplusplus
19577 extern "C"
19578 #endif
19579 /* We use char because int might match the return type of a gcc2
19580    builtin and then its argument prototype would still apply.  */
19581 char opendir ();
19582 int
19583 main ()
19584 {
19585 opendir ();
19586   ;
19587   return 0;
19588 }
19589 _ACEOF
19590 rm -f conftest.$ac_objext conftest$ac_exeext
19591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19592   (eval $ac_link) 2>&5
19593   ac_status=$?
19594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595   (exit $ac_status); } &&
19596          { ac_try='test -s conftest$ac_exeext'
19597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19598   (eval $ac_try) 2>&5
19599   ac_status=$?
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); }; }; then
19602   ac_cv_search_opendir="none required"
19603 else
19604   echo "$as_me: failed program was:" >&5
19605 sed 's/^/| /' conftest.$ac_ext >&5
19606
19607 fi
19608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19609 if test "$ac_cv_search_opendir" = no; then
19610   for ac_lib in dir; do
19611     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19612     cat >conftest.$ac_ext <<_ACEOF
19613 #line $LINENO "configure"
19614 /* confdefs.h.  */
19615 _ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h.  */
19619
19620 /* Override any gcc2 internal prototype to avoid an error.  */
19621 #ifdef __cplusplus
19622 extern "C"
19623 #endif
19624 /* We use char because int might match the return type of a gcc2
19625    builtin and then its argument prototype would still apply.  */
19626 char opendir ();
19627 int
19628 main ()
19629 {
19630 opendir ();
19631   ;
19632   return 0;
19633 }
19634 _ACEOF
19635 rm -f conftest.$ac_objext conftest$ac_exeext
19636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19637   (eval $ac_link) 2>&5
19638   ac_status=$?
19639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640   (exit $ac_status); } &&
19641          { ac_try='test -s conftest$ac_exeext'
19642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19643   (eval $ac_try) 2>&5
19644   ac_status=$?
19645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646   (exit $ac_status); }; }; then
19647   ac_cv_search_opendir="-l$ac_lib"
19648 break
19649 else
19650   echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19652
19653 fi
19654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19655   done
19656 fi
19657 LIBS=$ac_func_search_save_LIBS
19658 fi
19659 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19660 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19661 if test "$ac_cv_search_opendir" != no; then
19662   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19663
19664 fi
19665
19666 else
19667   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19668 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19669 if test "${ac_cv_search_opendir+set}" = set; then
19670   echo $ECHO_N "(cached) $ECHO_C" >&6
19671 else
19672   ac_func_search_save_LIBS=$LIBS
19673 ac_cv_search_opendir=no
19674 cat >conftest.$ac_ext <<_ACEOF
19675 #line $LINENO "configure"
19676 /* confdefs.h.  */
19677 _ACEOF
19678 cat confdefs.h >>conftest.$ac_ext
19679 cat >>conftest.$ac_ext <<_ACEOF
19680 /* end confdefs.h.  */
19681
19682 /* Override any gcc2 internal prototype to avoid an error.  */
19683 #ifdef __cplusplus
19684 extern "C"
19685 #endif
19686 /* We use char because int might match the return type of a gcc2
19687    builtin and then its argument prototype would still apply.  */
19688 char opendir ();
19689 int
19690 main ()
19691 {
19692 opendir ();
19693   ;
19694   return 0;
19695 }
19696 _ACEOF
19697 rm -f conftest.$ac_objext conftest$ac_exeext
19698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19699   (eval $ac_link) 2>&5
19700   ac_status=$?
19701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702   (exit $ac_status); } &&
19703          { ac_try='test -s conftest$ac_exeext'
19704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705   (eval $ac_try) 2>&5
19706   ac_status=$?
19707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708   (exit $ac_status); }; }; then
19709   ac_cv_search_opendir="none required"
19710 else
19711   echo "$as_me: failed program was:" >&5
19712 sed 's/^/| /' conftest.$ac_ext >&5
19713
19714 fi
19715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19716 if test "$ac_cv_search_opendir" = no; then
19717   for ac_lib in x; do
19718     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19719     cat >conftest.$ac_ext <<_ACEOF
19720 #line $LINENO "configure"
19721 /* confdefs.h.  */
19722 _ACEOF
19723 cat confdefs.h >>conftest.$ac_ext
19724 cat >>conftest.$ac_ext <<_ACEOF
19725 /* end confdefs.h.  */
19726
19727 /* Override any gcc2 internal prototype to avoid an error.  */
19728 #ifdef __cplusplus
19729 extern "C"
19730 #endif
19731 /* We use char because int might match the return type of a gcc2
19732    builtin and then its argument prototype would still apply.  */
19733 char opendir ();
19734 int
19735 main ()
19736 {
19737 opendir ();
19738   ;
19739   return 0;
19740 }
19741 _ACEOF
19742 rm -f conftest.$ac_objext conftest$ac_exeext
19743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19744   (eval $ac_link) 2>&5
19745   ac_status=$?
19746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747   (exit $ac_status); } &&
19748          { ac_try='test -s conftest$ac_exeext'
19749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750   (eval $ac_try) 2>&5
19751   ac_status=$?
19752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753   (exit $ac_status); }; }; then
19754   ac_cv_search_opendir="-l$ac_lib"
19755 break
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   done
19763 fi
19764 LIBS=$ac_func_search_save_LIBS
19765 fi
19766 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19767 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19768 if test "$ac_cv_search_opendir" != no; then
19769   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19770
19771 fi
19772
19773 fi
19774
19775 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19776 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19777 if test "${ac_cv_header_stdc+set}" = set; then
19778   echo $ECHO_N "(cached) $ECHO_C" >&6
19779 else
19780   cat >conftest.$ac_ext <<_ACEOF
19781 #line $LINENO "configure"
19782 /* confdefs.h.  */
19783 _ACEOF
19784 cat confdefs.h >>conftest.$ac_ext
19785 cat >>conftest.$ac_ext <<_ACEOF
19786 /* end confdefs.h.  */
19787 #include <stdlib.h>
19788 #include <stdarg.h>
19789 #include <string.h>
19790 #include <float.h>
19791
19792 int
19793 main ()
19794 {
19795
19796   ;
19797   return 0;
19798 }
19799 _ACEOF
19800 rm -f conftest.$ac_objext
19801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19802   (eval $ac_compile) 2>&5
19803   ac_status=$?
19804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805   (exit $ac_status); } &&
19806          { ac_try='test -s conftest.$ac_objext'
19807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19808   (eval $ac_try) 2>&5
19809   ac_status=$?
19810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811   (exit $ac_status); }; }; then
19812   ac_cv_header_stdc=yes
19813 else
19814   echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19816
19817 ac_cv_header_stdc=no
19818 fi
19819 rm -f conftest.$ac_objext conftest.$ac_ext
19820
19821 if test $ac_cv_header_stdc = yes; then
19822   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19823   cat >conftest.$ac_ext <<_ACEOF
19824 #line $LINENO "configure"
19825 /* confdefs.h.  */
19826 _ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h.  */
19830 #include <string.h>
19831
19832 _ACEOF
19833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19834   $EGREP "memchr" >/dev/null 2>&1; then
19835   :
19836 else
19837   ac_cv_header_stdc=no
19838 fi
19839 rm -f conftest*
19840
19841 fi
19842
19843 if test $ac_cv_header_stdc = yes; then
19844   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19845   cat >conftest.$ac_ext <<_ACEOF
19846 #line $LINENO "configure"
19847 /* confdefs.h.  */
19848 _ACEOF
19849 cat confdefs.h >>conftest.$ac_ext
19850 cat >>conftest.$ac_ext <<_ACEOF
19851 /* end confdefs.h.  */
19852 #include <stdlib.h>
19853
19854 _ACEOF
19855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19856   $EGREP "free" >/dev/null 2>&1; then
19857   :
19858 else
19859   ac_cv_header_stdc=no
19860 fi
19861 rm -f conftest*
19862
19863 fi
19864
19865 if test $ac_cv_header_stdc = yes; then
19866   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19867   if test "$cross_compiling" = yes; then
19868   :
19869 else
19870   cat >conftest.$ac_ext <<_ACEOF
19871 #line $LINENO "configure"
19872 /* confdefs.h.  */
19873 _ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h.  */
19877 #include <ctype.h>
19878 #if ((' ' & 0x0FF) == 0x020)
19879 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19880 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19881 #else
19882 # define ISLOWER(c) \
19883                    (('a' <= (c) && (c) <= 'i') \
19884                      || ('j' <= (c) && (c) <= 'r') \
19885                      || ('s' <= (c) && (c) <= 'z'))
19886 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19887 #endif
19888
19889 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19890 int
19891 main ()
19892 {
19893   int i;
19894   for (i = 0; i < 256; i++)
19895     if (XOR (islower (i), ISLOWER (i))
19896         || toupper (i) != TOUPPER (i))
19897       exit(2);
19898   exit (0);
19899 }
19900 _ACEOF
19901 rm -f conftest$ac_exeext
19902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19903   (eval $ac_link) 2>&5
19904   ac_status=$?
19905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19908   (eval $ac_try) 2>&5
19909   ac_status=$?
19910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911   (exit $ac_status); }; }; then
19912   :
19913 else
19914   echo "$as_me: program exited with status $ac_status" >&5
19915 echo "$as_me: failed program was:" >&5
19916 sed 's/^/| /' conftest.$ac_ext >&5
19917
19918 ( exit $ac_status )
19919 ac_cv_header_stdc=no
19920 fi
19921 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19922 fi
19923 fi
19924 fi
19925 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19926 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19927 if test $ac_cv_header_stdc = yes; then
19928
19929 cat >>confdefs.h <<\_ACEOF
19930 #define STDC_HEADERS 1
19931 _ACEOF
19932
19933 fi
19934
19935 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19936 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19937 if test "${ac_cv_header_time+set}" = set; then
19938   echo $ECHO_N "(cached) $ECHO_C" >&6
19939 else
19940   cat >conftest.$ac_ext <<_ACEOF
19941 #line $LINENO "configure"
19942 /* confdefs.h.  */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h.  */
19947 #include <sys/types.h>
19948 #include <sys/time.h>
19949 #include <time.h>
19950
19951 int
19952 main ()
19953 {
19954 if ((struct tm *) 0)
19955 return 0;
19956   ;
19957   return 0;
19958 }
19959 _ACEOF
19960 rm -f conftest.$ac_objext
19961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19962   (eval $ac_compile) 2>&5
19963   ac_status=$?
19964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965   (exit $ac_status); } &&
19966          { ac_try='test -s conftest.$ac_objext'
19967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968   (eval $ac_try) 2>&5
19969   ac_status=$?
19970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971   (exit $ac_status); }; }; then
19972   ac_cv_header_time=yes
19973 else
19974   echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19976
19977 ac_cv_header_time=no
19978 fi
19979 rm -f conftest.$ac_objext conftest.$ac_ext
19980 fi
19981 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19982 echo "${ECHO_T}$ac_cv_header_time" >&6
19983 if test $ac_cv_header_time = yes; then
19984
19985 cat >>confdefs.h <<\_ACEOF
19986 #define TIME_WITH_SYS_TIME 1
19987 _ACEOF
19988
19989 fi
19990
19991 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19992 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19993 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19994   echo $ECHO_N "(cached) $ECHO_C" >&6
19995 else
19996   cat >conftest.$ac_ext <<_ACEOF
19997 #line $LINENO "configure"
19998 /* confdefs.h.  */
19999 _ACEOF
20000 cat confdefs.h >>conftest.$ac_ext
20001 cat >>conftest.$ac_ext <<_ACEOF
20002 /* end confdefs.h.  */
20003 #include <sys/types.h>
20004 #include <sys/wait.h>
20005 #ifndef WEXITSTATUS
20006 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20007 #endif
20008 #ifndef WIFEXITED
20009 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20010 #endif
20011
20012 int
20013 main ()
20014 {
20015   int s;
20016   wait (&s);
20017   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20018   ;
20019   return 0;
20020 }
20021 _ACEOF
20022 rm -f conftest.$ac_objext
20023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20024   (eval $ac_compile) 2>&5
20025   ac_status=$?
20026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027   (exit $ac_status); } &&
20028          { ac_try='test -s conftest.$ac_objext'
20029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030   (eval $ac_try) 2>&5
20031   ac_status=$?
20032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033   (exit $ac_status); }; }; then
20034   ac_cv_header_sys_wait_h=yes
20035 else
20036   echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20038
20039 ac_cv_header_sys_wait_h=no
20040 fi
20041 rm -f conftest.$ac_objext conftest.$ac_ext
20042 fi
20043 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20044 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20045 if test $ac_cv_header_sys_wait_h = yes; then
20046
20047 cat >>confdefs.h <<\_ACEOF
20048 #define HAVE_SYS_WAIT_H 1
20049 _ACEOF
20050
20051 fi
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082 for ac_header in \
20083         unistd.h \
20084         crypt.h \
20085         errno.h \
20086         resource.h \
20087         getopt.h \
20088         malloc.h \
20089         utmp.h \
20090         utmpx.h \
20091         signal.h \
20092         sys/select.h \
20093         syslog.h \
20094         inttypes.h \
20095         stdint.h \
20096         stdio.h \
20097         netdb.h \
20098         semaphore.h \
20099         arpa/inet.h \
20100         netinet/in.h \
20101         sys/types.h \
20102         sys/socket.h \
20103         sys/time.h \
20104         sys/wait.h \
20105         sys/security.h \
20106         fcntl.h \
20107         sys/fcntl.h \
20108         prot.h \
20109         sia.h \
20110         siad.h
20111
20112 do
20113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20115   echo "$as_me:$LINENO: checking for $ac_header" >&5
20116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20118   echo $ECHO_N "(cached) $ECHO_C" >&6
20119 fi
20120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20122 else
20123   # Is the header compilable?
20124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20126 cat >conftest.$ac_ext <<_ACEOF
20127 #line $LINENO "configure"
20128 /* confdefs.h.  */
20129 _ACEOF
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h.  */
20133 $ac_includes_default
20134 #include <$ac_header>
20135 _ACEOF
20136 rm -f conftest.$ac_objext
20137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20138   (eval $ac_compile) 2>&5
20139   ac_status=$?
20140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141   (exit $ac_status); } &&
20142          { ac_try='test -s conftest.$ac_objext'
20143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144   (eval $ac_try) 2>&5
20145   ac_status=$?
20146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147   (exit $ac_status); }; }; then
20148   ac_header_compiler=yes
20149 else
20150   echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20152
20153 ac_header_compiler=no
20154 fi
20155 rm -f conftest.$ac_objext conftest.$ac_ext
20156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20157 echo "${ECHO_T}$ac_header_compiler" >&6
20158
20159 # Is the header present?
20160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20162 cat >conftest.$ac_ext <<_ACEOF
20163 #line $LINENO "configure"
20164 /* confdefs.h.  */
20165 _ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h.  */
20169 #include <$ac_header>
20170 _ACEOF
20171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20172   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20173   ac_status=$?
20174   grep -v '^ *+' conftest.er1 >conftest.err
20175   rm -f conftest.er1
20176   cat conftest.err >&5
20177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178   (exit $ac_status); } >/dev/null; then
20179   if test -s conftest.err; then
20180     ac_cpp_err=$ac_c_preproc_warn_flag
20181   else
20182     ac_cpp_err=
20183   fi
20184 else
20185   ac_cpp_err=yes
20186 fi
20187 if test -z "$ac_cpp_err"; then
20188   ac_header_preproc=yes
20189 else
20190   echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20192
20193   ac_header_preproc=no
20194 fi
20195 rm -f conftest.err conftest.$ac_ext
20196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20197 echo "${ECHO_T}$ac_header_preproc" >&6
20198
20199 # So?  What about this header?
20200 case $ac_header_compiler:$ac_header_preproc in
20201   yes:no )
20202     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20206     (
20207       cat <<\_ASBOX
20208 ## ------------------------------------ ##
20209 ## Report this to bug-autoconf@gnu.org. ##
20210 ## ------------------------------------ ##
20211 _ASBOX
20212     ) |
20213       sed "s/^/$as_me: WARNING:     /" >&2
20214     ;;
20215   no:yes )
20216     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20218     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20222     (
20223       cat <<\_ASBOX
20224 ## ------------------------------------ ##
20225 ## Report this to bug-autoconf@gnu.org. ##
20226 ## ------------------------------------ ##
20227 _ASBOX
20228     ) |
20229       sed "s/^/$as_me: WARNING:     /" >&2
20230     ;;
20231 esac
20232 echo "$as_me:$LINENO: checking for $ac_header" >&5
20233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20235   echo $ECHO_N "(cached) $ECHO_C" >&6
20236 else
20237   eval "$as_ac_Header=$ac_header_preproc"
20238 fi
20239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20241
20242 fi
20243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20244   cat >>confdefs.h <<_ACEOF
20245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20246 _ACEOF
20247
20248 fi
20249
20250 done
20251
20252
20253 REGEX=no
20254 if test "${ac_cv_header_regex_h+set}" = set; then
20255   echo "$as_me:$LINENO: checking for regex.h" >&5
20256 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20257 if test "${ac_cv_header_regex_h+set}" = set; then
20258   echo $ECHO_N "(cached) $ECHO_C" >&6
20259 fi
20260 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20261 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20262 else
20263   # Is the header compilable?
20264 echo "$as_me:$LINENO: checking regex.h usability" >&5
20265 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20266 cat >conftest.$ac_ext <<_ACEOF
20267 #line $LINENO "configure"
20268 /* confdefs.h.  */
20269 _ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h.  */
20273 $ac_includes_default
20274 #include <regex.h>
20275 _ACEOF
20276 rm -f conftest.$ac_objext
20277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20278   (eval $ac_compile) 2>&5
20279   ac_status=$?
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); } &&
20282          { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
20289 else
20290   echo "$as_me: failed program was:" >&5
20291 sed 's/^/| /' conftest.$ac_ext >&5
20292
20293 ac_header_compiler=no
20294 fi
20295 rm -f conftest.$ac_objext conftest.$ac_ext
20296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20297 echo "${ECHO_T}$ac_header_compiler" >&6
20298
20299 # Is the header present?
20300 echo "$as_me:$LINENO: checking regex.h presence" >&5
20301 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20302 cat >conftest.$ac_ext <<_ACEOF
20303 #line $LINENO "configure"
20304 /* confdefs.h.  */
20305 _ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h.  */
20309 #include <regex.h>
20310 _ACEOF
20311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20312   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20313   ac_status=$?
20314   grep -v '^ *+' conftest.er1 >conftest.err
20315   rm -f conftest.er1
20316   cat conftest.err >&5
20317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318   (exit $ac_status); } >/dev/null; then
20319   if test -s conftest.err; then
20320     ac_cpp_err=$ac_c_preproc_warn_flag
20321   else
20322     ac_cpp_err=
20323   fi
20324 else
20325   ac_cpp_err=yes
20326 fi
20327 if test -z "$ac_cpp_err"; then
20328   ac_header_preproc=yes
20329 else
20330   echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20332
20333   ac_header_preproc=no
20334 fi
20335 rm -f conftest.err conftest.$ac_ext
20336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20337 echo "${ECHO_T}$ac_header_preproc" >&6
20338
20339 # So?  What about this header?
20340 case $ac_header_compiler:$ac_header_preproc in
20341   yes:no )
20342     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20343 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20344     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20345 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20346     (
20347       cat <<\_ASBOX
20348 ## ------------------------------------ ##
20349 ## Report this to bug-autoconf@gnu.org. ##
20350 ## ------------------------------------ ##
20351 _ASBOX
20352     ) |
20353       sed "s/^/$as_me: WARNING:     /" >&2
20354     ;;
20355   no:yes )
20356     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20357 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
20358     { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20359 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20360     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20361 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20362     (
20363       cat <<\_ASBOX
20364 ## ------------------------------------ ##
20365 ## Report this to bug-autoconf@gnu.org. ##
20366 ## ------------------------------------ ##
20367 _ASBOX
20368     ) |
20369       sed "s/^/$as_me: WARNING:     /" >&2
20370     ;;
20371 esac
20372 echo "$as_me:$LINENO: checking for regex.h" >&5
20373 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20374 if test "${ac_cv_header_regex_h+set}" = set; then
20375   echo $ECHO_N "(cached) $ECHO_C" >&6
20376 else
20377   ac_cv_header_regex_h=$ac_header_preproc
20378 fi
20379 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20380 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20381
20382 fi
20383 if test $ac_cv_header_regex_h = yes; then
20384   cat >>confdefs.h <<\_ACEOF
20385 #define HAVE_REGEX_H 1
20386 _ACEOF
20387
20388 fi
20389
20390
20391 if test "x$ac_cv_header_regex_h" = "xyes"; then
20392   REGEX_EXTENDED=no
20393   REGEX=yes
20394   cat >conftest.$ac_ext <<_ACEOF
20395 #line $LINENO "configure"
20396 /* confdefs.h.  */
20397 _ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h.  */
20401 #include <regex.h>
20402      #ifdef REG_EXTENDED
20403        yes
20404      #endif
20405
20406 _ACEOF
20407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20408   $EGREP "yes" >/dev/null 2>&1; then
20409   cat >>confdefs.h <<\_ACEOF
20410 #define HAVE_REG_EXTENDED 1
20411 _ACEOF
20412  REGEX_EXTENDED=yes
20413 fi
20414 rm -f conftest*
20415
20416 fi
20417
20418
20419
20420 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
20421 then
20422   cat >>confdefs.h <<\_ACEOF
20423 #define OSFC2 1
20424 _ACEOF
20425
20426 fi
20427
20428 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
20429 then
20430   cat >>confdefs.h <<\_ACEOF
20431 #define OSFSIA 1
20432 _ACEOF
20433
20434 fi
20435
20436 smart_try_dir="$OPENSSL_INCLUDE_DIR"
20437 CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
20438
20439
20440 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
20441 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
20442 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
20443
20444 smart_include=
20445 smart_include_dir=
20446
20447   old_CFLAGS="$CFLAGS"
20448   cat >conftest.$ac_ext <<_ACEOF
20449 #line $LINENO "configure"
20450 /* confdefs.h.  */
20451 _ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h.  */
20455
20456                   #include <openssl/ssl.h>
20457 int
20458 main ()
20459 {
20460  int a = 1;
20461   ;
20462   return 0;
20463 }
20464 _ACEOF
20465 rm -f conftest.$ac_objext
20466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20467   (eval $ac_compile) 2>&5
20468   ac_status=$?
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); } &&
20471          { ac_try='test -s conftest.$ac_objext'
20472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473   (eval $ac_try) 2>&5
20474   ac_status=$?
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); }; }; then
20477   smart_include=" "
20478 else
20479   echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20481
20482 smart_include=
20483 fi
20484 rm -f conftest.$ac_objext conftest.$ac_ext
20485
20486   if test "x$smart_include" = "x"; then
20487
20488
20489 if test "x$LOCATE" != "x"; then
20490         DIRS=
20491   file=openssl/ssl.h
20492
20493   for x in `${LOCATE} $file 2>/dev/null`; do
20494                                         base=`echo $x | sed "s%/${file}%%"`
20495     if test "x$x" = "x$base"; then
20496       continue;
20497     fi
20498
20499     dir=`${DIRNAME} $x 2>/dev/null`
20500                 exclude=`echo ${dir} | ${GREP} /home`
20501     if test "x$exclude" != "x"; then
20502       continue
20503     fi
20504
20505                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
20506     if test "x$already" = "x"; then
20507       DIRS="$DIRS $dir"
20508     fi
20509   done
20510 fi
20511
20512 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
20513
20514
20515     for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
20516       CFLAGS="$old_CFLAGS -I$try"
20517
20518       cat >conftest.$ac_ext <<_ACEOF
20519 #line $LINENO "configure"
20520 /* confdefs.h.  */
20521 _ACEOF
20522 cat confdefs.h >>conftest.$ac_ext
20523 cat >>conftest.$ac_ext <<_ACEOF
20524 /* end confdefs.h.  */
20525
20526                        #include <openssl/ssl.h>
20527 int
20528 main ()
20529 {
20530  int a = 1;
20531   ;
20532   return 0;
20533 }
20534 _ACEOF
20535 rm -f conftest.$ac_objext
20536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20537   (eval $ac_compile) 2>&5
20538   ac_status=$?
20539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540   (exit $ac_status); } &&
20541          { ac_try='test -s conftest.$ac_objext'
20542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20543   (eval $ac_try) 2>&5
20544   ac_status=$?
20545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546   (exit $ac_status); }; }; then
20547   smart_include="-I$try"
20548 else
20549   echo "$as_me: failed program was:" >&5
20550 sed 's/^/| /' conftest.$ac_ext >&5
20551
20552 smart_include=
20553 fi
20554 rm -f conftest.$ac_objext conftest.$ac_ext
20555
20556       if test "x$smart_include" != "x"; then
20557         break;
20558       fi
20559     done
20560     CFLAGS="$old_CFLAGS"
20561   fi
20562
20563         if test "x$smart_include" != "x"; then
20564     echo "$as_me:$LINENO: result: yes" >&5
20565 echo "${ECHO_T}yes" >&6
20566     eval "ac_cv_header_$ac_safe=yes"
20567     CFLAGS="$old_CFLAGS $smart_include"
20568     SMART_CFLAGS="$SMART_CFLAGS $smart_include"
20569   else
20570     echo "$as_me:$LINENO: result: no" >&5
20571 echo "${ECHO_T}no" >&6
20572 fi
20573
20574 OPENSSL_INCLUDE=
20575 OPENSSL_LIBS=
20576 if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
20577   cat >>confdefs.h <<\_ACEOF
20578 #define HAVE_OPENSSL_SSL_H 1
20579 _ACEOF
20580
20581   old_CPPFLAGS="$CPPFLAGS"
20582   if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
20583       CPPFLAGS="-I$OPENSSL_INCLUDE_DIR $CPPFLAGS"
20584   fi
20585
20586
20587
20588
20589 for ac_header in \
20590           openssl/err.h \
20591           openssl/crypto.h \
20592           openssl/rand.h \
20593           openssl/engine.h
20594
20595 do
20596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20598   echo "$as_me:$LINENO: checking for $ac_header" >&5
20599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20601   echo $ECHO_N "(cached) $ECHO_C" >&6
20602 fi
20603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20605 else
20606   # Is the header compilable?
20607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20609 cat >conftest.$ac_ext <<_ACEOF
20610 #line $LINENO "configure"
20611 /* confdefs.h.  */
20612 _ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h.  */
20616 $ac_includes_default
20617 #include <$ac_header>
20618 _ACEOF
20619 rm -f conftest.$ac_objext
20620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20621   (eval $ac_compile) 2>&5
20622   ac_status=$?
20623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624   (exit $ac_status); } &&
20625          { ac_try='test -s conftest.$ac_objext'
20626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627   (eval $ac_try) 2>&5
20628   ac_status=$?
20629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630   (exit $ac_status); }; }; then
20631   ac_header_compiler=yes
20632 else
20633   echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20635
20636 ac_header_compiler=no
20637 fi
20638 rm -f conftest.$ac_objext conftest.$ac_ext
20639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20640 echo "${ECHO_T}$ac_header_compiler" >&6
20641
20642 # Is the header present?
20643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20645 cat >conftest.$ac_ext <<_ACEOF
20646 #line $LINENO "configure"
20647 /* confdefs.h.  */
20648 _ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h.  */
20652 #include <$ac_header>
20653 _ACEOF
20654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20655   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20656   ac_status=$?
20657   grep -v '^ *+' conftest.er1 >conftest.err
20658   rm -f conftest.er1
20659   cat conftest.err >&5
20660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661   (exit $ac_status); } >/dev/null; then
20662   if test -s conftest.err; then
20663     ac_cpp_err=$ac_c_preproc_warn_flag
20664   else
20665     ac_cpp_err=
20666   fi
20667 else
20668   ac_cpp_err=yes
20669 fi
20670 if test -z "$ac_cpp_err"; then
20671   ac_header_preproc=yes
20672 else
20673   echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20675
20676   ac_header_preproc=no
20677 fi
20678 rm -f conftest.err conftest.$ac_ext
20679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20680 echo "${ECHO_T}$ac_header_preproc" >&6
20681
20682 # So?  What about this header?
20683 case $ac_header_compiler:$ac_header_preproc in
20684   yes:no )
20685     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20687     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20689     (
20690       cat <<\_ASBOX
20691 ## ------------------------------------ ##
20692 ## Report this to bug-autoconf@gnu.org. ##
20693 ## ------------------------------------ ##
20694 _ASBOX
20695     ) |
20696       sed "s/^/$as_me: WARNING:     /" >&2
20697     ;;
20698   no:yes )
20699     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20701     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20703     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20705     (
20706       cat <<\_ASBOX
20707 ## ------------------------------------ ##
20708 ## Report this to bug-autoconf@gnu.org. ##
20709 ## ------------------------------------ ##
20710 _ASBOX
20711     ) |
20712       sed "s/^/$as_me: WARNING:     /" >&2
20713     ;;
20714 esac
20715 echo "$as_me:$LINENO: checking for $ac_header" >&5
20716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20718   echo $ECHO_N "(cached) $ECHO_C" >&6
20719 else
20720   eval "$as_ac_Header=$ac_header_preproc"
20721 fi
20722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20724
20725 fi
20726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20727   cat >>confdefs.h <<_ACEOF
20728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20729 _ACEOF
20730
20731 fi
20732
20733 done
20734
20735   CPPFLAGS="$old_CPPFLAGS"
20736
20737   echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
20738 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
20739        old_CPPFLAGS=$CPPFLAGS
20740        old_LIBS="$LIBS"
20741        if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
20742            CPPFLAGS="-I$OPENSSL_INCLUDE_DIR"
20743            fi
20744        cat >conftest.$ac_ext <<_ACEOF
20745 #line $LINENO "configure"
20746 /* confdefs.h.  */
20747 _ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h.  */
20751 #include <openssl/crypto.h>
20752        #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
20753         yes
20754        #endif
20755
20756 _ACEOF
20757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20758   $EGREP "yes" >/dev/null 2>&1; then
20759   goodssl="yes"
20760 fi
20761 rm -f conftest*
20762
20763            if test "x$goodssl" != "xyes"; then
20764              echo "$as_me:$LINENO: result: no" >&5
20765 echo "${ECHO_T}no" >&6
20766              OPENSSL_INCLUDE=
20767              OPENSSL_LIBS=
20768            else
20769              echo "$as_me:$LINENO: result: yes" >&5
20770 echo "${ECHO_T}yes" >&6
20771
20772              # Look for the OpenSSL libraries.
20773              smart_try_dir=$OPENSSL_LIB_DIR
20774
20775
20776 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
20777 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
20778 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20779 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
20780
20781 smart_lib=
20782 smart_lib_dir=
20783
20784   old_LIBS="$LIBS"
20785   LIBS="$LIBS -lcrypto"
20786   cat >conftest.$ac_ext <<_ACEOF
20787 #line $LINENO "configure"
20788 /* confdefs.h.  */
20789 _ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h.  */
20793 extern char DH_new();
20794 int
20795 main ()
20796 {
20797  DH_new()
20798   ;
20799   return 0;
20800 }
20801 _ACEOF
20802 rm -f conftest.$ac_objext conftest$ac_exeext
20803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20804   (eval $ac_link) 2>&5
20805   ac_status=$?
20806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807   (exit $ac_status); } &&
20808          { ac_try='test -s conftest$ac_exeext'
20809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810   (eval $ac_try) 2>&5
20811   ac_status=$?
20812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813   (exit $ac_status); }; }; then
20814   smart_lib="-lcrypto"
20815 else
20816   echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20818
20819 fi
20820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20821
20822   if test "x$smart_lib" = "x"; then
20823
20824
20825 if test "x$LOCATE" != "x"; then
20826         DIRS=
20827   file=libcrypto${libltdl_cv_shlibext}
20828
20829   for x in `${LOCATE} $file 2>/dev/null`; do
20830                                         base=`echo $x | sed "s%/${file}%%"`
20831     if test "x$x" = "x$base"; then
20832       continue;
20833     fi
20834
20835     dir=`${DIRNAME} $x 2>/dev/null`
20836                 exclude=`echo ${dir} | ${GREP} /home`
20837     if test "x$exclude" != "x"; then
20838       continue
20839     fi
20840
20841                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
20842     if test "x$already" = "x"; then
20843       DIRS="$DIRS $dir"
20844     fi
20845   done
20846 fi
20847
20848 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
20849
20850
20851
20852 if test "x$LOCATE" != "x"; then
20853         DIRS=
20854   file=libcrypto.a
20855
20856   for x in `${LOCATE} $file 2>/dev/null`; do
20857                                         base=`echo $x | sed "s%/${file}%%"`
20858     if test "x$x" = "x$base"; then
20859       continue;
20860     fi
20861
20862     dir=`${DIRNAME} $x 2>/dev/null`
20863                 exclude=`echo ${dir} | ${GREP} /home`
20864     if test "x$exclude" != "x"; then
20865       continue
20866     fi
20867
20868                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
20869     if test "x$already" = "x"; then
20870       DIRS="$DIRS $dir"
20871     fi
20872   done
20873 fi
20874
20875 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
20876
20877
20878     for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
20879       LIBS="$old_LIBS -L$try -lcrypto"
20880
20881       cat >conftest.$ac_ext <<_ACEOF
20882 #line $LINENO "configure"
20883 /* confdefs.h.  */
20884 _ACEOF
20885 cat confdefs.h >>conftest.$ac_ext
20886 cat >>conftest.$ac_ext <<_ACEOF
20887 /* end confdefs.h.  */
20888 extern char DH_new();
20889 int
20890 main ()
20891 {
20892  DH_new()
20893   ;
20894   return 0;
20895 }
20896 _ACEOF
20897 rm -f conftest.$ac_objext conftest$ac_exeext
20898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20899   (eval $ac_link) 2>&5
20900   ac_status=$?
20901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902   (exit $ac_status); } &&
20903          { ac_try='test -s conftest$ac_exeext'
20904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905   (eval $ac_try) 2>&5
20906   ac_status=$?
20907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908   (exit $ac_status); }; }; then
20909   smart_lib="-L$try -lcrypto"
20910 else
20911   echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20913
20914 fi
20915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20916       if test "x$smart_lib" != "x"; then
20917         break;
20918       fi
20919     done
20920     LIBS="$old_LIBS"
20921   fi
20922
20923         if test "x$smart_lib" != "x"; then
20924     echo "$as_me:$LINENO: result: yes" >&5
20925 echo "${ECHO_T}yes" >&6
20926     eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
20927     LIBS="$old_LIBS $smart_lib"
20928     SMART_LIBS="$SMART_LIBS $smart_lib"
20929   else
20930     echo "$as_me:$LINENO: result: no" >&5
20931 echo "${ECHO_T}no" >&6
20932 fi
20933
20934              if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
20935
20936
20937 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
20938 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
20939 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20940 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
20941
20942 smart_lib=
20943 smart_lib_dir=
20944
20945   old_LIBS="$LIBS"
20946   LIBS="$LIBS -lssl"
20947   cat >conftest.$ac_ext <<_ACEOF
20948 #line $LINENO "configure"
20949 /* confdefs.h.  */
20950 _ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h.  */
20954 extern char SSL_new();
20955 int
20956 main ()
20957 {
20958  SSL_new()
20959   ;
20960   return 0;
20961 }
20962 _ACEOF
20963 rm -f conftest.$ac_objext conftest$ac_exeext
20964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20965   (eval $ac_link) 2>&5
20966   ac_status=$?
20967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968   (exit $ac_status); } &&
20969          { ac_try='test -s conftest$ac_exeext'
20970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20971   (eval $ac_try) 2>&5
20972   ac_status=$?
20973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974   (exit $ac_status); }; }; then
20975   smart_lib="-lssl"
20976 else
20977   echo "$as_me: failed program was:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20979
20980 fi
20981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20982
20983   if test "x$smart_lib" = "x"; then
20984
20985
20986 if test "x$LOCATE" != "x"; then
20987         DIRS=
20988   file=libssl${libltdl_cv_shlibext}
20989
20990   for x in `${LOCATE} $file 2>/dev/null`; do
20991                                         base=`echo $x | sed "s%/${file}%%"`
20992     if test "x$x" = "x$base"; then
20993       continue;
20994     fi
20995
20996     dir=`${DIRNAME} $x 2>/dev/null`
20997                 exclude=`echo ${dir} | ${GREP} /home`
20998     if test "x$exclude" != "x"; then
20999       continue
21000     fi
21001
21002                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21003     if test "x$already" = "x"; then
21004       DIRS="$DIRS $dir"
21005     fi
21006   done
21007 fi
21008
21009 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21010
21011
21012
21013 if test "x$LOCATE" != "x"; then
21014         DIRS=
21015   file=libssl.a
21016
21017   for x in `${LOCATE} $file 2>/dev/null`; do
21018                                         base=`echo $x | sed "s%/${file}%%"`
21019     if test "x$x" = "x$base"; then
21020       continue;
21021     fi
21022
21023     dir=`${DIRNAME} $x 2>/dev/null`
21024                 exclude=`echo ${dir} | ${GREP} /home`
21025     if test "x$exclude" != "x"; then
21026       continue
21027     fi
21028
21029                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21030     if test "x$already" = "x"; then
21031       DIRS="$DIRS $dir"
21032     fi
21033   done
21034 fi
21035
21036 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21037
21038
21039     for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
21040       LIBS="$old_LIBS -L$try -lssl"
21041
21042       cat >conftest.$ac_ext <<_ACEOF
21043 #line $LINENO "configure"
21044 /* confdefs.h.  */
21045 _ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h.  */
21049 extern char SSL_new();
21050 int
21051 main ()
21052 {
21053  SSL_new()
21054   ;
21055   return 0;
21056 }
21057 _ACEOF
21058 rm -f conftest.$ac_objext conftest$ac_exeext
21059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21060   (eval $ac_link) 2>&5
21061   ac_status=$?
21062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063   (exit $ac_status); } &&
21064          { ac_try='test -s conftest$ac_exeext'
21065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066   (eval $ac_try) 2>&5
21067   ac_status=$?
21068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069   (exit $ac_status); }; }; then
21070   smart_lib="-L$try -lssl"
21071 else
21072   echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21074
21075 fi
21076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21077       if test "x$smart_lib" != "x"; then
21078         break;
21079       fi
21080     done
21081     LIBS="$old_LIBS"
21082   fi
21083
21084         if test "x$smart_lib" != "x"; then
21085     echo "$as_me:$LINENO: result: yes" >&5
21086 echo "${ECHO_T}yes" >&6
21087     eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
21088     LIBS="$old_LIBS $smart_lib"
21089     SMART_LIBS="$SMART_LIBS $smart_lib"
21090   else
21091     echo "$as_me:$LINENO: result: no" >&5
21092 echo "${ECHO_T}no" >&6
21093 fi
21094
21095                if test "x$ac_cv_lib_ssl_SSL_new" = "xyes"; then
21096                  if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21097                    OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR"
21098                  fi
21099                  if test "x$OPENSSL_LIB_DIR" != "x"; then
21100                    OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21101                  fi
21102                  OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21103                else
21104                  OPENSSL_INCLUDE=
21105                  OPENSSL_LIBS=
21106                fi
21107              fi
21108            fi
21109        CPPFLAGS=$old_CPPFLAGS
21110        LIBS="$old_LIBS"
21111 fi
21112
21113
21114 export OPENSSL_LIBS
21115
21116
21117 echo "$as_me:$LINENO: checking for off_t" >&5
21118 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21119 if test "${ac_cv_type_off_t+set}" = set; then
21120   echo $ECHO_N "(cached) $ECHO_C" >&6
21121 else
21122   cat >conftest.$ac_ext <<_ACEOF
21123 #line $LINENO "configure"
21124 /* confdefs.h.  */
21125 _ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h.  */
21129 $ac_includes_default
21130 int
21131 main ()
21132 {
21133 if ((off_t *) 0)
21134   return 0;
21135 if (sizeof (off_t))
21136   return 0;
21137   ;
21138   return 0;
21139 }
21140 _ACEOF
21141 rm -f conftest.$ac_objext
21142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21143   (eval $ac_compile) 2>&5
21144   ac_status=$?
21145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146   (exit $ac_status); } &&
21147          { ac_try='test -s conftest.$ac_objext'
21148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149   (eval $ac_try) 2>&5
21150   ac_status=$?
21151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152   (exit $ac_status); }; }; then
21153   ac_cv_type_off_t=yes
21154 else
21155   echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21157
21158 ac_cv_type_off_t=no
21159 fi
21160 rm -f conftest.$ac_objext conftest.$ac_ext
21161 fi
21162 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21163 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21164 if test $ac_cv_type_off_t = yes; then
21165   :
21166 else
21167
21168 cat >>confdefs.h <<_ACEOF
21169 #define off_t long
21170 _ACEOF
21171
21172 fi
21173
21174 echo "$as_me:$LINENO: checking for pid_t" >&5
21175 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21176 if test "${ac_cv_type_pid_t+set}" = set; then
21177   echo $ECHO_N "(cached) $ECHO_C" >&6
21178 else
21179   cat >conftest.$ac_ext <<_ACEOF
21180 #line $LINENO "configure"
21181 /* confdefs.h.  */
21182 _ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h.  */
21186 $ac_includes_default
21187 int
21188 main ()
21189 {
21190 if ((pid_t *) 0)
21191   return 0;
21192 if (sizeof (pid_t))
21193   return 0;
21194   ;
21195   return 0;
21196 }
21197 _ACEOF
21198 rm -f conftest.$ac_objext
21199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21200   (eval $ac_compile) 2>&5
21201   ac_status=$?
21202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203   (exit $ac_status); } &&
21204          { ac_try='test -s conftest.$ac_objext'
21205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21206   (eval $ac_try) 2>&5
21207   ac_status=$?
21208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209   (exit $ac_status); }; }; then
21210   ac_cv_type_pid_t=yes
21211 else
21212   echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.$ac_ext >&5
21214
21215 ac_cv_type_pid_t=no
21216 fi
21217 rm -f conftest.$ac_objext conftest.$ac_ext
21218 fi
21219 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21220 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21221 if test $ac_cv_type_pid_t = yes; then
21222   :
21223 else
21224
21225 cat >>confdefs.h <<_ACEOF
21226 #define pid_t int
21227 _ACEOF
21228
21229 fi
21230
21231 echo "$as_me:$LINENO: checking for size_t" >&5
21232 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21233 if test "${ac_cv_type_size_t+set}" = set; then
21234   echo $ECHO_N "(cached) $ECHO_C" >&6
21235 else
21236   cat >conftest.$ac_ext <<_ACEOF
21237 #line $LINENO "configure"
21238 /* confdefs.h.  */
21239 _ACEOF
21240 cat confdefs.h >>conftest.$ac_ext
21241 cat >>conftest.$ac_ext <<_ACEOF
21242 /* end confdefs.h.  */
21243 $ac_includes_default
21244 int
21245 main ()
21246 {
21247 if ((size_t *) 0)
21248   return 0;
21249 if (sizeof (size_t))
21250   return 0;
21251   ;
21252   return 0;
21253 }
21254 _ACEOF
21255 rm -f conftest.$ac_objext
21256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21257   (eval $ac_compile) 2>&5
21258   ac_status=$?
21259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260   (exit $ac_status); } &&
21261          { ac_try='test -s conftest.$ac_objext'
21262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21263   (eval $ac_try) 2>&5
21264   ac_status=$?
21265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266   (exit $ac_status); }; }; then
21267   ac_cv_type_size_t=yes
21268 else
21269   echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21271
21272 ac_cv_type_size_t=no
21273 fi
21274 rm -f conftest.$ac_objext conftest.$ac_ext
21275 fi
21276 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21277 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21278 if test $ac_cv_type_size_t = yes; then
21279   :
21280 else
21281
21282 cat >>confdefs.h <<_ACEOF
21283 #define size_t unsigned
21284 _ACEOF
21285
21286 fi
21287
21288 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21289 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21290 if test "${ac_cv_type_uid_t+set}" = set; then
21291   echo $ECHO_N "(cached) $ECHO_C" >&6
21292 else
21293   cat >conftest.$ac_ext <<_ACEOF
21294 #line $LINENO "configure"
21295 /* confdefs.h.  */
21296 _ACEOF
21297 cat confdefs.h >>conftest.$ac_ext
21298 cat >>conftest.$ac_ext <<_ACEOF
21299 /* end confdefs.h.  */
21300 #include <sys/types.h>
21301
21302 _ACEOF
21303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21304   $EGREP "uid_t" >/dev/null 2>&1; then
21305   ac_cv_type_uid_t=yes
21306 else
21307   ac_cv_type_uid_t=no
21308 fi
21309 rm -f conftest*
21310
21311 fi
21312 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21313 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21314 if test $ac_cv_type_uid_t = no; then
21315
21316 cat >>confdefs.h <<\_ACEOF
21317 #define uid_t int
21318 _ACEOF
21319
21320
21321 cat >>confdefs.h <<\_ACEOF
21322 #define gid_t int
21323 _ACEOF
21324
21325 fi
21326
21327
21328
21329   echo "$as_me:$LINENO: checking for socklen_t" >&5
21330 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21331 if test "${ac_cv_type_socklen_t+set}" = set; then
21332   echo $ECHO_N "(cached) $ECHO_C" >&6
21333 else
21334    ac_cv_type_socklen_t=no
21335       cat >conftest.$ac_ext <<_ACEOF
21336 #line $LINENO "configure"
21337 /* confdefs.h.  */
21338 _ACEOF
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h.  */
21342 #ifdef HAVE_SYS_TYPES_H
21343 #include <sys/types.h>
21344 #endif
21345 #ifdef HAVE_SYS_SOCKET_H
21346 #include <sys/socket.h>
21347 #endif
21348
21349 int
21350 main ()
21351 {
21352 socklen_t foo
21353   ;
21354   return 0;
21355 }
21356 _ACEOF
21357 rm -f conftest.$ac_objext
21358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21359   (eval $ac_compile) 2>&5
21360   ac_status=$?
21361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362   (exit $ac_status); } &&
21363          { ac_try='test -s conftest.$ac_objext'
21364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365   (eval $ac_try) 2>&5
21366   ac_status=$?
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); }; }; then
21369   ac_cv_type_socklen_t=yes
21370 else
21371   echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21373
21374 fi
21375 rm -f conftest.$ac_objext conftest.$ac_ext
21376
21377
21378 fi
21379 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21380 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21381
21382   if test "$ac_cv_type_socklen_t" != "yes"; then
21383          cat >>confdefs.h <<\_ACEOF
21384 #define socklen_t int
21385 _ACEOF
21386
21387   fi
21388
21389
21390
21391   echo "$as_me:$LINENO: checking for uint8_t" >&5
21392 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
21393 if test "${ac_cv_type_uint8_t+set}" = set; then
21394   echo $ECHO_N "(cached) $ECHO_C" >&6
21395 else
21396    ac_cv_type_uint8_t=no
21397       cat >conftest.$ac_ext <<_ACEOF
21398 #line $LINENO "configure"
21399 /* confdefs.h.  */
21400 _ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h.  */
21404 #ifdef HAVE_INTTYPES_H
21405 #include <inttypes.h>
21406 #endif
21407 #ifdef HAVE_STDINT_H
21408 #include <stdint.h>
21409 #endif
21410
21411 int
21412 main ()
21413 {
21414 uint8_t foo
21415   ;
21416   return 0;
21417 }
21418 _ACEOF
21419 rm -f conftest.$ac_objext
21420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21421   (eval $ac_compile) 2>&5
21422   ac_status=$?
21423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424   (exit $ac_status); } &&
21425          { ac_try='test -s conftest.$ac_objext'
21426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21427   (eval $ac_try) 2>&5
21428   ac_status=$?
21429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430   (exit $ac_status); }; }; then
21431   ac_cv_type_uint8_t=yes
21432 else
21433   echo "$as_me: failed program was:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21435
21436 fi
21437 rm -f conftest.$ac_objext conftest.$ac_ext
21438
21439
21440 fi
21441 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
21442 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
21443
21444   if test "$ac_cv_type_uint8_t" != "yes"; then
21445          cat >>confdefs.h <<\_ACEOF
21446 #define uint8_t unsigned char
21447 _ACEOF
21448
21449   fi
21450
21451
21452
21453   echo "$as_me:$LINENO: checking for uint16_t" >&5
21454 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
21455 if test "${ac_cv_type_uint16_t+set}" = set; then
21456   echo $ECHO_N "(cached) $ECHO_C" >&6
21457 else
21458    ac_cv_type_uint16_t=no
21459       cat >conftest.$ac_ext <<_ACEOF
21460 #line $LINENO "configure"
21461 /* confdefs.h.  */
21462 _ACEOF
21463 cat confdefs.h >>conftest.$ac_ext
21464 cat >>conftest.$ac_ext <<_ACEOF
21465 /* end confdefs.h.  */
21466 #ifdef HAVE_INTTYPES_H
21467 #include <inttypes.h>
21468 #endif
21469 #ifdef HAVE_STDINT_H
21470 #include <stdint.h>
21471 #endif
21472
21473 int
21474 main ()
21475 {
21476 uint16_t foo
21477   ;
21478   return 0;
21479 }
21480 _ACEOF
21481 rm -f conftest.$ac_objext
21482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21483   (eval $ac_compile) 2>&5
21484   ac_status=$?
21485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486   (exit $ac_status); } &&
21487          { ac_try='test -s conftest.$ac_objext'
21488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21489   (eval $ac_try) 2>&5
21490   ac_status=$?
21491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492   (exit $ac_status); }; }; then
21493   ac_cv_type_uint16_t=yes
21494 else
21495   echo "$as_me: failed program was:" >&5
21496 sed 's/^/| /' conftest.$ac_ext >&5
21497
21498 fi
21499 rm -f conftest.$ac_objext conftest.$ac_ext
21500
21501
21502 fi
21503 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
21504 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
21505
21506   if test "$ac_cv_type_uint16_t" != "yes"; then
21507          cat >>confdefs.h <<\_ACEOF
21508 #define uint16_t unsigned short
21509 _ACEOF
21510
21511   fi
21512
21513
21514
21515   echo "$as_me:$LINENO: checking for uint32_t" >&5
21516 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
21517 if test "${ac_cv_type_uint32_t+set}" = set; then
21518   echo $ECHO_N "(cached) $ECHO_C" >&6
21519 else
21520    ac_cv_type_uint32_t=no
21521       cat >conftest.$ac_ext <<_ACEOF
21522 #line $LINENO "configure"
21523 /* confdefs.h.  */
21524 _ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h.  */
21528 #ifdef HAVE_INTTYPES_H
21529 #include <inttypes.h>
21530 #endif
21531 #ifdef HAVE_STDINT_H
21532 #include <stdint.h>
21533 #endif
21534
21535 int
21536 main ()
21537 {
21538 uint32_t foo
21539   ;
21540   return 0;
21541 }
21542 _ACEOF
21543 rm -f conftest.$ac_objext
21544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21545   (eval $ac_compile) 2>&5
21546   ac_status=$?
21547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548   (exit $ac_status); } &&
21549          { ac_try='test -s conftest.$ac_objext'
21550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551   (eval $ac_try) 2>&5
21552   ac_status=$?
21553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554   (exit $ac_status); }; }; then
21555   ac_cv_type_uint32_t=yes
21556 else
21557   echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21559
21560 fi
21561 rm -f conftest.$ac_objext conftest.$ac_ext
21562
21563
21564 fi
21565 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
21566 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
21567
21568   if test "$ac_cv_type_uint32_t" != "yes"; then
21569          cat >>confdefs.h <<\_ACEOF
21570 #define uint32_t unsigned int
21571 _ACEOF
21572
21573   fi
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599 for ac_func in \
21600         getopt_long \
21601         lockf \
21602         strsignal \
21603         sigaction \
21604         sigprocmask \
21605         pthread_sigmask \
21606         snprintf \
21607         vsnprintf \
21608         setsid \
21609         strncasecmp \
21610         strcasecmp \
21611         localtime_r \
21612         ctime_r \
21613         gmtime_r \
21614         strsep \
21615         inet_aton \
21616         inet_pton \
21617         inet_ntop \
21618         gethostname \
21619         setlinebuf \
21620         setvbuf \
21621         getusershell \
21622         initgroups
21623
21624 do
21625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21626 echo "$as_me:$LINENO: checking for $ac_func" >&5
21627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21628 if eval "test \"\${$as_ac_var+set}\" = set"; then
21629   echo $ECHO_N "(cached) $ECHO_C" >&6
21630 else
21631   cat >conftest.$ac_ext <<_ACEOF
21632 #line $LINENO "configure"
21633 /* confdefs.h.  */
21634 _ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h.  */
21638 /* System header to define __stub macros and hopefully few prototypes,
21639     which can conflict with char $ac_func (); below.
21640     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21641     <limits.h> exists even on freestanding compilers.  */
21642 #ifdef __STDC__
21643 # include <limits.h>
21644 #else
21645 # include <assert.h>
21646 #endif
21647 /* Override any gcc2 internal prototype to avoid an error.  */
21648 #ifdef __cplusplus
21649 extern "C"
21650 {
21651 #endif
21652 /* We use char because int might match the return type of a gcc2
21653    builtin and then its argument prototype would still apply.  */
21654 char $ac_func ();
21655 /* The GNU C library defines this for functions which it implements
21656     to always fail with ENOSYS.  Some functions are actually named
21657     something starting with __ and the normal name is an alias.  */
21658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21659 choke me
21660 #else
21661 char (*f) () = $ac_func;
21662 #endif
21663 #ifdef __cplusplus
21664 }
21665 #endif
21666
21667 int
21668 main ()
21669 {
21670 return f != $ac_func;
21671   ;
21672   return 0;
21673 }
21674 _ACEOF
21675 rm -f conftest.$ac_objext conftest$ac_exeext
21676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21677   (eval $ac_link) 2>&5
21678   ac_status=$?
21679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680   (exit $ac_status); } &&
21681          { ac_try='test -s conftest$ac_exeext'
21682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683   (eval $ac_try) 2>&5
21684   ac_status=$?
21685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686   (exit $ac_status); }; }; then
21687   eval "$as_ac_var=yes"
21688 else
21689   echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21691
21692 eval "$as_ac_var=no"
21693 fi
21694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21695 fi
21696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21698 if test `eval echo '${'$as_ac_var'}'` = yes; then
21699   cat >>confdefs.h <<_ACEOF
21700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21701 _ACEOF
21702
21703 fi
21704 done
21705
21706 for ac_func in \
21707         crypt \
21708         strncasecmp \
21709         strcasecmp \
21710         inet_aton \
21711         gethostname \
21712         setlinebuf \
21713         getusershell \
21714         endusershell
21715
21716 do
21717 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
21718 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
21719 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
21720   echo $ECHO_N "(cached) $ECHO_C" >&6
21721 else
21722   cat >conftest.$ac_ext <<_ACEOF
21723 #line $LINENO "configure"
21724 /* confdefs.h.  */
21725 _ACEOF
21726 cat confdefs.h >>conftest.$ac_ext
21727 cat >>conftest.$ac_ext <<_ACEOF
21728 /* end confdefs.h.  */
21729
21730 #include <stdio.h>
21731 #include <string.h>
21732 #ifdef HAVE_UNISTD_H
21733 #include <unistd.h>
21734 #endif
21735 #ifdef HAVE_CRYPT_H
21736 #include <crypt.h>
21737 #endif
21738 #ifdef HAVE_ERRNO_H
21739 #include <errno.h>
21740 #endif
21741 #ifdef HAVE_RESOURCE_H
21742 #include <resource.h>
21743 #endif
21744 #ifdef HAVE_GETOPT_H
21745 #include <getopt.h>
21746 #endif
21747 #ifdef HAVE_MALLOC_H
21748 #include <malloc.h>
21749 #endif
21750 #ifdef HAVE_UTMP_H
21751 #include <utmp.h>
21752 #endif
21753 #ifdef HAVE_UTMPX_H
21754 #include <utmpx.h>
21755 #endif
21756 #ifdef HAVE_SYS_SELECT_H
21757 #include <sys/select.h>
21758 #endif
21759 #ifdef HAVE_DLFCN_H
21760 #include <dlfcn.h>
21761 #endif
21762 #ifdef HAVE_REGEX_H
21763 #include <regex.h>
21764 #endif
21765 #ifdef HAVE_SYSLOG_H
21766 #include <syslog.h>
21767 #endif
21768 #ifdef HAVE_INTTYPES_H
21769 #include <inttypes.h>
21770 #endif
21771 #ifdef HAVE_STDINT_H
21772 #include <stdint.h>
21773 #endif
21774 #ifdef HAVE_ARPA_INET_H
21775 #include <arpa/inet.h>
21776 #endif
21777
21778 int
21779 main ()
21780 {
21781 char *(*pfn) = (char *(*)) $ac_func
21782   ;
21783   return 0;
21784 }
21785 _ACEOF
21786 rm -f conftest.$ac_objext
21787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21788   (eval $ac_compile) 2>&5
21789   ac_status=$?
21790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791   (exit $ac_status); } &&
21792          { ac_try='test -s conftest.$ac_objext'
21793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794   (eval $ac_try) 2>&5
21795   ac_status=$?
21796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797   (exit $ac_status); }; }; then
21798   eval "radius_cv_decl_needed_$ac_func=no"
21799 else
21800   echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21802
21803 eval "radius_cv_decl_needed_$ac_func=yes"
21804 fi
21805 rm -f conftest.$ac_objext conftest.$ac_ext
21806 fi
21807
21808 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
21809   echo "$as_me:$LINENO: result: yes" >&5
21810 echo "${ECHO_T}yes" >&6
21811   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21812   cat >>confdefs.h <<_ACEOF
21813 #define $radius_tr_decl 1
21814 _ACEOF
21815
21816 else
21817   echo "$as_me:$LINENO: result: no" >&5
21818 echo "${ECHO_T}no" >&6
21819 fi
21820
21821 done
21822
21823
21824 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21825 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21826 if test "${ac_cv_type_signal+set}" = set; then
21827   echo $ECHO_N "(cached) $ECHO_C" >&6
21828 else
21829   cat >conftest.$ac_ext <<_ACEOF
21830 #line $LINENO "configure"
21831 /* confdefs.h.  */
21832 _ACEOF
21833 cat confdefs.h >>conftest.$ac_ext
21834 cat >>conftest.$ac_ext <<_ACEOF
21835 /* end confdefs.h.  */
21836 #include <sys/types.h>
21837 #include <signal.h>
21838 #ifdef signal
21839 # undef signal
21840 #endif
21841 #ifdef __cplusplus
21842 extern "C" void (*signal (int, void (*)(int)))(int);
21843 #else
21844 void (*signal ()) ();
21845 #endif
21846
21847 int
21848 main ()
21849 {
21850 int i;
21851   ;
21852   return 0;
21853 }
21854 _ACEOF
21855 rm -f conftest.$ac_objext
21856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21857   (eval $ac_compile) 2>&5
21858   ac_status=$?
21859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860   (exit $ac_status); } &&
21861          { ac_try='test -s conftest.$ac_objext'
21862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21863   (eval $ac_try) 2>&5
21864   ac_status=$?
21865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866   (exit $ac_status); }; }; then
21867   ac_cv_type_signal=void
21868 else
21869   echo "$as_me: failed program was:" >&5
21870 sed 's/^/| /' conftest.$ac_ext >&5
21871
21872 ac_cv_type_signal=int
21873 fi
21874 rm -f conftest.$ac_objext conftest.$ac_ext
21875 fi
21876 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21877 echo "${ECHO_T}$ac_cv_type_signal" >&6
21878
21879 cat >>confdefs.h <<_ACEOF
21880 #define RETSIGTYPE $ac_cv_type_signal
21881 _ACEOF
21882
21883
21884
21885 if test "x$ac_cv_header_utmpx_h" = "xyes"
21886 then
21887
21888   echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
21889 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
21890
21891
21892   cat >conftest.$ac_ext <<_ACEOF
21893 #line $LINENO "configure"
21894 /* confdefs.h.  */
21895 _ACEOF
21896 cat confdefs.h >>conftest.$ac_ext
21897 cat >>conftest.$ac_ext <<_ACEOF
21898 /* end confdefs.h.  */
21899
21900 #include <utmpx.h>
21901 #ifndef offsetof
21902 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21903 #endif
21904
21905 int
21906 main ()
21907 {
21908  int foo = offsetof(struct utmpx, ut_xtime)
21909   ;
21910   return 0;
21911 }
21912 _ACEOF
21913 rm -f conftest.$ac_objext
21914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21915   (eval $ac_compile) 2>&5
21916   ac_status=$?
21917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918   (exit $ac_status); } &&
21919          { ac_try='test -s conftest.$ac_objext'
21920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21921   (eval $ac_try) 2>&5
21922   ac_status=$?
21923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924   (exit $ac_status); }; }; then
21925   has_element=" "
21926 else
21927   echo "$as_me: failed program was:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21929
21930 has_element=
21931 fi
21932 rm -f conftest.$ac_objext conftest.$ac_ext
21933
21934   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
21935   if test "x$has_element" != "x"; then
21936     echo "$as_me:$LINENO: result: yes" >&5
21937 echo "${ECHO_T}yes" >&6
21938     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
21939   else
21940     echo "$as_me:$LINENO: result: no" >&5
21941 echo "${ECHO_T}no" >&6
21942     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
21943  fi
21944
21945  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
21946  then
21947    cat >>confdefs.h <<\_ACEOF
21948 #define ut_xtime ut_tv.tv_sec
21949 _ACEOF
21950
21951  fi
21952 fi
21953
21954
21955   echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
21956 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
21957
21958
21959   cat >conftest.$ac_ext <<_ACEOF
21960 #line $LINENO "configure"
21961 /* confdefs.h.  */
21962 _ACEOF
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h.  */
21966
21967 #include <netinet/in.h>
21968 #ifndef offsetof
21969 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21970 #endif
21971
21972 int
21973 main ()
21974 {
21975  int foo = offsetof(struct in_pktinfo, ipi_addr)
21976   ;
21977   return 0;
21978 }
21979 _ACEOF
21980 rm -f conftest.$ac_objext
21981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21982   (eval $ac_compile) 2>&5
21983   ac_status=$?
21984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985   (exit $ac_status); } &&
21986          { ac_try='test -s conftest.$ac_objext'
21987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21988   (eval $ac_try) 2>&5
21989   ac_status=$?
21990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991   (exit $ac_status); }; }; then
21992   has_element=" "
21993 else
21994   echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.$ac_ext >&5
21996
21997 has_element=
21998 fi
21999 rm -f conftest.$ac_objext conftest.$ac_ext
22000
22001   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22002   if test "x$has_element" != "x"; then
22003     echo "$as_me:$LINENO: result: yes" >&5
22004 echo "${ECHO_T}yes" >&6
22005     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22006   else
22007     echo "$as_me:$LINENO: result: no" >&5
22008 echo "${ECHO_T}no" >&6
22009     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22010  fi
22011
22012 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22013 then
22014         cat >>confdefs.h <<\_ACEOF
22015 #define HAVE_IP_PKTINFO 1
22016 _ACEOF
22017
22018 fi
22019
22020
22021 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22022 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22023 if test "${ac_cv_c_const+set}" = set; then
22024   echo $ECHO_N "(cached) $ECHO_C" >&6
22025 else
22026   cat >conftest.$ac_ext <<_ACEOF
22027 #line $LINENO "configure"
22028 /* confdefs.h.  */
22029 _ACEOF
22030 cat confdefs.h >>conftest.$ac_ext
22031 cat >>conftest.$ac_ext <<_ACEOF
22032 /* end confdefs.h.  */
22033
22034 int
22035 main ()
22036 {
22037 /* FIXME: Include the comments suggested by Paul. */
22038 #ifndef __cplusplus
22039   /* Ultrix mips cc rejects this.  */
22040   typedef int charset[2];
22041   const charset x;
22042   /* SunOS 4.1.1 cc rejects this.  */
22043   char const *const *ccp;
22044   char **p;
22045   /* NEC SVR4.0.2 mips cc rejects this.  */
22046   struct point {int x, y;};
22047   static struct point const zero = {0,0};
22048   /* AIX XL C 1.02.0.0 rejects this.
22049      It does not let you subtract one const X* pointer from another in
22050      an arm of an if-expression whose if-part is not a constant
22051      expression */
22052   const char *g = "string";
22053   ccp = &g + (g ? g-g : 0);
22054   /* HPUX 7.0 cc rejects these. */
22055   ++ccp;
22056   p = (char**) ccp;
22057   ccp = (char const *const *) p;
22058   { /* SCO 3.2v4 cc rejects this.  */
22059     char *t;
22060     char const *s = 0 ? (char *) 0 : (char const *) 0;
22061
22062     *t++ = 0;
22063   }
22064   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22065     int x[] = {25, 17};
22066     const int *foo = &x[0];
22067     ++foo;
22068   }
22069   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22070     typedef const int *iptr;
22071     iptr p = 0;
22072     ++p;
22073   }
22074   { /* AIX XL C 1.02.0.0 rejects this saying
22075        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22076     struct s { int j; const int *ap[3]; };
22077     struct s *b; b->j = 5;
22078   }
22079   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22080     const int foo = 10;
22081   }
22082 #endif
22083
22084   ;
22085   return 0;
22086 }
22087 _ACEOF
22088 rm -f conftest.$ac_objext
22089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22090   (eval $ac_compile) 2>&5
22091   ac_status=$?
22092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093   (exit $ac_status); } &&
22094          { ac_try='test -s conftest.$ac_objext'
22095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22096   (eval $ac_try) 2>&5
22097   ac_status=$?
22098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099   (exit $ac_status); }; }; then
22100   ac_cv_c_const=yes
22101 else
22102   echo "$as_me: failed program was:" >&5
22103 sed 's/^/| /' conftest.$ac_ext >&5
22104
22105 ac_cv_c_const=no
22106 fi
22107 rm -f conftest.$ac_objext conftest.$ac_ext
22108 fi
22109 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22110 echo "${ECHO_T}$ac_cv_c_const" >&6
22111 if test $ac_cv_c_const = no; then
22112
22113 cat >>confdefs.h <<\_ACEOF
22114 #define const
22115 _ACEOF
22116
22117 fi
22118
22119
22120 echo "$as_me:$LINENO: checking type of OS" >&5
22121 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
22122 OS=`uname -s`
22123 echo "$as_me:$LINENO: result: $OS" >&5
22124 echo "${ECHO_T}$OS" >&6
22125 if test "$OS" = "OS/2"; then
22126         LIBPREFIX=
22127 else
22128         LIBPREFIX=lib
22129 fi
22130
22131
22132 if test "x$GCC" = "xyes"; then
22133     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22134 fi
22135
22136 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22137 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
22138 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22139   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22140   CFLAGS="$CFLAGS $devflags"
22141   INSTALLSTRIP=""
22142   echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
22143 echo "${ECHO_T}yes.  Using $devflags" >&6
22144 else
22145   devflags=""
22146   CFLAGS="$CFLAGS -DNDEBUG"
22147   INSTALLSTRIP="-s"
22148   echo "$as_me:$LINENO: result: no." >&5
22149 echo "${ECHO_T}no." >&6
22150 fi
22151
22152
22153 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22154 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22155 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22156   echo $ECHO_N "(cached) $ECHO_C" >&6
22157 else
22158   ac_check_lib_save_LIBS=$LIBS
22159 LIBS="-lcrypt  $LIBS"
22160 cat >conftest.$ac_ext <<_ACEOF
22161 #line $LINENO "configure"
22162 /* confdefs.h.  */
22163 _ACEOF
22164 cat confdefs.h >>conftest.$ac_ext
22165 cat >>conftest.$ac_ext <<_ACEOF
22166 /* end confdefs.h.  */
22167
22168 /* Override any gcc2 internal prototype to avoid an error.  */
22169 #ifdef __cplusplus
22170 extern "C"
22171 #endif
22172 /* We use char because int might match the return type of a gcc2
22173    builtin and then its argument prototype would still apply.  */
22174 char crypt ();
22175 int
22176 main ()
22177 {
22178 crypt ();
22179   ;
22180   return 0;
22181 }
22182 _ACEOF
22183 rm -f conftest.$ac_objext conftest$ac_exeext
22184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22185   (eval $ac_link) 2>&5
22186   ac_status=$?
22187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188   (exit $ac_status); } &&
22189          { ac_try='test -s conftest$ac_exeext'
22190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22191   (eval $ac_try) 2>&5
22192   ac_status=$?
22193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194   (exit $ac_status); }; }; then
22195   ac_cv_lib_crypt_crypt=yes
22196 else
22197   echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22199
22200 ac_cv_lib_crypt_crypt=no
22201 fi
22202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22203 LIBS=$ac_check_lib_save_LIBS
22204 fi
22205 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22206 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22207 if test $ac_cv_lib_crypt_crypt = yes; then
22208   CRYPTLIB="-lcrypt"
22209
22210 fi
22211
22212 if test "$CRYPTLIB" != ""; then
22213   cat >>confdefs.h <<\_ACEOF
22214 #define HAVE_CRYPT 1
22215 _ACEOF
22216
22217 else
22218   echo "$as_me:$LINENO: checking for crypt" >&5
22219 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
22220 if test "${ac_cv_func_crypt+set}" = set; then
22221   echo $ECHO_N "(cached) $ECHO_C" >&6
22222 else
22223   cat >conftest.$ac_ext <<_ACEOF
22224 #line $LINENO "configure"
22225 /* confdefs.h.  */
22226 _ACEOF
22227 cat confdefs.h >>conftest.$ac_ext
22228 cat >>conftest.$ac_ext <<_ACEOF
22229 /* end confdefs.h.  */
22230 /* System header to define __stub macros and hopefully few prototypes,
22231     which can conflict with char crypt (); below.
22232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22233     <limits.h> exists even on freestanding compilers.  */
22234 #ifdef __STDC__
22235 # include <limits.h>
22236 #else
22237 # include <assert.h>
22238 #endif
22239 /* Override any gcc2 internal prototype to avoid an error.  */
22240 #ifdef __cplusplus
22241 extern "C"
22242 {
22243 #endif
22244 /* We use char because int might match the return type of a gcc2
22245    builtin and then its argument prototype would still apply.  */
22246 char crypt ();
22247 /* The GNU C library defines this for functions which it implements
22248     to always fail with ENOSYS.  Some functions are actually named
22249     something starting with __ and the normal name is an alias.  */
22250 #if defined (__stub_crypt) || defined (__stub___crypt)
22251 choke me
22252 #else
22253 char (*f) () = crypt;
22254 #endif
22255 #ifdef __cplusplus
22256 }
22257 #endif
22258
22259 int
22260 main ()
22261 {
22262 return f != crypt;
22263   ;
22264   return 0;
22265 }
22266 _ACEOF
22267 rm -f conftest.$ac_objext conftest$ac_exeext
22268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22269   (eval $ac_link) 2>&5
22270   ac_status=$?
22271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272   (exit $ac_status); } &&
22273          { ac_try='test -s conftest$ac_exeext'
22274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22275   (eval $ac_try) 2>&5
22276   ac_status=$?
22277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278   (exit $ac_status); }; }; then
22279   ac_cv_func_crypt=yes
22280 else
22281   echo "$as_me: failed program was:" >&5
22282 sed 's/^/| /' conftest.$ac_ext >&5
22283
22284 ac_cv_func_crypt=no
22285 fi
22286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22287 fi
22288 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
22289 echo "${ECHO_T}$ac_cv_func_crypt" >&6
22290 if test $ac_cv_func_crypt = yes; then
22291   cat >>confdefs.h <<\_ACEOF
22292 #define HAVE_CRYPT 1
22293 _ACEOF
22294
22295 fi
22296
22297 fi
22298
22299 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
22300 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
22301 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
22302   echo $ECHO_N "(cached) $ECHO_C" >&6
22303 else
22304   ac_check_lib_save_LIBS=$LIBS
22305 LIBS="-lcipher  $LIBS"
22306 cat >conftest.$ac_ext <<_ACEOF
22307 #line $LINENO "configure"
22308 /* confdefs.h.  */
22309 _ACEOF
22310 cat confdefs.h >>conftest.$ac_ext
22311 cat >>conftest.$ac_ext <<_ACEOF
22312 /* end confdefs.h.  */
22313
22314 /* Override any gcc2 internal prototype to avoid an error.  */
22315 #ifdef __cplusplus
22316 extern "C"
22317 #endif
22318 /* We use char because int might match the return type of a gcc2
22319    builtin and then its argument prototype would still apply.  */
22320 char setkey ();
22321 int
22322 main ()
22323 {
22324 setkey ();
22325   ;
22326   return 0;
22327 }
22328 _ACEOF
22329 rm -f conftest.$ac_objext conftest$ac_exeext
22330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22331   (eval $ac_link) 2>&5
22332   ac_status=$?
22333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334   (exit $ac_status); } &&
22335          { ac_try='test -s conftest$ac_exeext'
22336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22337   (eval $ac_try) 2>&5
22338   ac_status=$?
22339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340   (exit $ac_status); }; }; then
22341   ac_cv_lib_cipher_setkey=yes
22342 else
22343   echo "$as_me: failed program was:" >&5
22344 sed 's/^/| /' conftest.$ac_ext >&5
22345
22346 ac_cv_lib_cipher_setkey=no
22347 fi
22348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22349 LIBS=$ac_check_lib_save_LIBS
22350 fi
22351 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
22352 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
22353 if test $ac_cv_lib_cipher_setkey = yes; then
22354   CRYPTLIB="${CRYPTLIB} -lcipher"
22355
22356 fi
22357
22358
22359
22360 if test "x$WITH_SNMP" = "xyes"; then
22361
22362
22363
22364
22365 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
22366 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
22367
22368 cat >conftest.$ac_ext <<_ACEOF
22369 #line $LINENO "configure"
22370 /* confdefs.h.  */
22371 _ACEOF
22372 cat confdefs.h >>conftest.$ac_ext
22373 cat >>conftest.$ac_ext <<_ACEOF
22374 /* end confdefs.h.  */
22375
22376 #ifdef HAVE_SYS_TYPES_H
22377 #include <sys/types.h>
22378 #endif
22379 #ifdef HAVE_STDINT_H
22380 #include <stdint.h>
22381 #endif
22382 #ifdef HAVE_STDIO_H
22383 #include <stdio.h>
22384 #endif
22385 #ifdef HAVE_NETDB_H
22386 #include <netdb.h>
22387 #endif
22388 #ifdef HAVE_UNISTD_H
22389 #include <unistd.h>
22390 #endif
22391 #include <ucd-snmp/asn1.h>
22392 #include <ucd-snmp/snmp.h>
22393 #include <ucd-snmp/snmp_impl.h>
22394 int
22395 main ()
22396 {
22397  int a = 1;
22398   ;
22399   return 0;
22400 }
22401 _ACEOF
22402 rm -f conftest.$ac_objext
22403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22404   (eval $ac_compile) 2>&5
22405   ac_status=$?
22406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407   (exit $ac_status); } &&
22408          { ac_try='test -s conftest.$ac_objext'
22409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22410   (eval $ac_try) 2>&5
22411   ac_status=$?
22412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413   (exit $ac_status); }; }; then
22414   SNMP_INCLUDE="";ucdsnmp=yes
22415 else
22416   echo "$as_me: failed program was:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22418
22419 ucdsnmp=
22420 fi
22421 rm -f conftest.$ac_objext conftest.$ac_ext
22422
22423 if test "x$ucdsnmp" = "x"; then
22424   old_CFLAGS="$CFLAGS"
22425   for try in /usr/include /usr/local/include $snmp_include_dir; do
22426     CFLAGS="$old_CFLAGS -I$try"
22427     cat >conftest.$ac_ext <<_ACEOF
22428 #line $LINENO "configure"
22429 /* confdefs.h.  */
22430 _ACEOF
22431 cat confdefs.h >>conftest.$ac_ext
22432 cat >>conftest.$ac_ext <<_ACEOF
22433 /* end confdefs.h.  */
22434
22435 #ifdef HAVE_SYS_TYPES_H
22436 #include <sys/types.h>
22437 #endif
22438 #ifdef HAVE_STDINT_H
22439 #include <stdint.h>
22440 #endif
22441 #ifdef HAVE_STDIO_H
22442 #include <stdio.h>
22443 #endif
22444 #ifdef HAVE_NETDB_H
22445 #include <netdb.h>
22446 #endif
22447 #ifdef HAVE_UNISTD_H
22448 #include <unistd.h>
22449 #endif
22450 #include <ucd-snmp/asn1.h>
22451 #include <ucd-snmp/snmp.h>
22452 #include <ucd-snmp/snmp_impl.h>
22453 int
22454 main ()
22455 {
22456  int a = 1;
22457   ;
22458   return 0;
22459 }
22460 _ACEOF
22461 rm -f conftest.$ac_objext
22462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22463   (eval $ac_compile) 2>&5
22464   ac_status=$?
22465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466   (exit $ac_status); } &&
22467          { ac_try='test -s conftest.$ac_objext'
22468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22469   (eval $ac_try) 2>&5
22470   ac_status=$?
22471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472   (exit $ac_status); }; }; then
22473   SNMP_INCLUDE="-I$try";ucdsnmp=yes
22474 else
22475   echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.$ac_ext >&5
22477
22478 ucdsnmp=
22479 fi
22480 rm -f conftest.$ac_objext conftest.$ac_ext
22481     if test "x$ucdsnmp" != "x"; then
22482       break;
22483     fi
22484   done
22485   CFLAGS="$old_CFLAGS"
22486 fi
22487
22488 if test "x$ucdsnmp" = "x"; then
22489   old_CFLAGS="$CFLAGS"
22490   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
22491     CFLAGS="$old_CFLAGS -I$try"
22492 cat >conftest.$ac_ext <<_ACEOF
22493 #line $LINENO "configure"
22494 /* confdefs.h.  */
22495 _ACEOF
22496 cat confdefs.h >>conftest.$ac_ext
22497 cat >>conftest.$ac_ext <<_ACEOF
22498 /* end confdefs.h.  */
22499
22500 #ifdef HAVE_SYS_TYPES_H
22501 #include <sys/types.h>
22502 #endif
22503 #ifdef HAVE_STDINT_H
22504 #include <stdint.h>
22505 #endif
22506 #ifdef HAVE_STDIO_H
22507 #include <stdio.h>
22508 #endif
22509 #ifdef HAVE_NETDB_H
22510 #include <netdb.h>
22511 #endif
22512 #ifdef HAVE_UNISTD_H
22513 #include <unistd.h>
22514 #endif
22515 #include <asn1.h>
22516 #include <snmp.h>
22517 #include <snmp_impl.h>
22518 int
22519 main ()
22520 {
22521  int a = 1;
22522   ;
22523   return 0;
22524 }
22525 _ACEOF
22526 rm -f conftest.$ac_objext
22527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22528   (eval $ac_compile) 2>&5
22529   ac_status=$?
22530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531   (exit $ac_status); } &&
22532          { ac_try='test -s conftest.$ac_objext'
22533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534   (eval $ac_try) 2>&5
22535   ac_status=$?
22536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537   (exit $ac_status); }; }; then
22538   SNMP_INCLUDE="";ucdsnmp=no
22539 else
22540   echo "$as_me: failed program was:" >&5
22541 sed 's/^/| /' conftest.$ac_ext >&5
22542
22543 ucdsnmp=
22544 fi
22545 rm -f conftest.$ac_objext conftest.$ac_ext
22546     if test "x$ucdsnmp" != "x"; then
22547       break;
22548     fi
22549   done
22550   CFLAGS="$old_CFLAGS"
22551 fi
22552
22553 if test "x$ucdsnmp" = "x"; then
22554   old_CFLAGS="$CFLAGS"
22555   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
22556     CFLAGS="$old_CFLAGS -I$try"
22557     cat >conftest.$ac_ext <<_ACEOF
22558 #line $LINENO "configure"
22559 /* confdefs.h.  */
22560 _ACEOF
22561 cat confdefs.h >>conftest.$ac_ext
22562 cat >>conftest.$ac_ext <<_ACEOF
22563 /* end confdefs.h.  */
22564
22565 #ifdef HAVE_SYS_TYPES_H
22566 #include <sys/types.h>
22567 #endif
22568 #ifdef HAVE_STDINT_H
22569 #include <stdint.h>
22570 #endif
22571 #ifdef HAVE_STDIO_H
22572 #include <stdio.h>
22573 #endif
22574 #ifdef HAVE_NETDB_H
22575 #include <netdb.h>
22576 #endif
22577 #ifdef HAVE_UNISTD_H
22578 #include <unistd.h>
22579 #endif
22580 #include <asn1.h>
22581 #include <snmp.h>
22582 #include <snmp_impl.h>
22583 int
22584 main ()
22585 {
22586  int a = 1;
22587   ;
22588   return 0;
22589 }
22590 _ACEOF
22591 rm -f conftest.$ac_objext
22592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22593   (eval $ac_compile) 2>&5
22594   ac_status=$?
22595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596   (exit $ac_status); } &&
22597          { ac_try='test -s conftest.$ac_objext'
22598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22599   (eval $ac_try) 2>&5
22600   ac_status=$?
22601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602   (exit $ac_status); }; }; then
22603   SNMP_INCLUDE="-I$try";ucdsnmp=no
22604 else
22605   echo "$as_me: failed program was:" >&5
22606 sed 's/^/| /' conftest.$ac_ext >&5
22607
22608 ucdsnmp=
22609 fi
22610 rm -f conftest.$ac_objext conftest.$ac_ext
22611     if test "x$ucdsnmp" != "x"; then
22612       break;
22613     fi
22614   done
22615   CFLAGS="$old_CFLAGS"
22616 fi
22617
22618 if test "x$ucdsnmp" = "x"; then
22619   echo "$as_me:$LINENO: result: no" >&5
22620 echo "${ECHO_T}no" >&6
22621 else
22622   if test "x$ucdsnmp" = "xyes"; then
22623     echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
22624 echo "${ECHO_T}(ucd-snmp)yes" >&6
22625     cat >>confdefs.h <<\_ACEOF
22626 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
22627 _ACEOF
22628
22629   else
22630     echo "$as_me:$LINENO: result: yes" >&5
22631 echo "${ECHO_T}yes" >&6
22632     cat >>confdefs.h <<\_ACEOF
22633 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
22634 _ACEOF
22635
22636   fi
22637   echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
22638 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
22639
22640   old_LIBS="$LIBS"
22641   LIBS="$old_LIBS -lsnmp"
22642   cat >conftest.$ac_ext <<_ACEOF
22643 #line $LINENO "configure"
22644 /* confdefs.h.  */
22645 _ACEOF
22646 cat confdefs.h >>conftest.$ac_ext
22647 cat >>conftest.$ac_ext <<_ACEOF
22648 /* end confdefs.h.  */
22649 extern char snmp_build_var_op();
22650 int
22651 main ()
22652 {
22653  snmp_build_var_op()
22654   ;
22655   return 0;
22656 }
22657 _ACEOF
22658 rm -f conftest.$ac_objext conftest$ac_exeext
22659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22660   (eval $ac_link) 2>&5
22661   ac_status=$?
22662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663   (exit $ac_status); } &&
22664          { ac_try='test -s conftest$ac_exeext'
22665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666   (eval $ac_try) 2>&5
22667   ac_status=$?
22668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669   (exit $ac_status); }; }; then
22670   SNMP_LIBS="-lsnmp"
22671 else
22672   echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22674
22675 SNMP_LIBS=
22676 fi
22677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22678
22679   if test "x$SNMP_LIBS" = "x"; then
22680     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $snmp_lib_dir; do
22681       LIBS="$old_LIBS -L$try -lsnmp"
22682       cat >conftest.$ac_ext <<_ACEOF
22683 #line $LINENO "configure"
22684 /* confdefs.h.  */
22685 _ACEOF
22686 cat confdefs.h >>conftest.$ac_ext
22687 cat >>conftest.$ac_ext <<_ACEOF
22688 /* end confdefs.h.  */
22689 extern char snmp_build_var_op();
22690 int
22691 main ()
22692 {
22693  snmp_build_var_op()
22694   ;
22695   return 0;
22696 }
22697 _ACEOF
22698 rm -f conftest.$ac_objext conftest$ac_exeext
22699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22700   (eval $ac_link) 2>&5
22701   ac_status=$?
22702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703   (exit $ac_status); } &&
22704          { ac_try='test -s conftest$ac_exeext'
22705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22706   (eval $ac_try) 2>&5
22707   ac_status=$?
22708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709   (exit $ac_status); }; }; then
22710   SNMP_LIBS="-L$try -lsnmp"
22711 else
22712   echo "$as_me: failed program was:" >&5
22713 sed 's/^/| /' conftest.$ac_ext >&5
22714
22715 SNMP_LIBS=
22716 fi
22717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22718       if test "x$SNMP_LIBS" != "x"; then
22719         break;
22720       fi
22721       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
22722       cat >conftest.$ac_ext <<_ACEOF
22723 #line $LINENO "configure"
22724 /* confdefs.h.  */
22725 _ACEOF
22726 cat confdefs.h >>conftest.$ac_ext
22727 cat >>conftest.$ac_ext <<_ACEOF
22728 /* end confdefs.h.  */
22729 extern char snmp_build_var_op();
22730 int
22731 main ()
22732 {
22733  snmp_build_var_op()
22734   ;
22735   return 0;
22736 }
22737 _ACEOF
22738 rm -f conftest.$ac_objext conftest$ac_exeext
22739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22740   (eval $ac_link) 2>&5
22741   ac_status=$?
22742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743   (exit $ac_status); } &&
22744          { ac_try='test -s conftest$ac_exeext'
22745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22746   (eval $ac_try) 2>&5
22747   ac_status=$?
22748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749   (exit $ac_status); }; }; then
22750   SNMP_LIBS="-L$try -lsnmp -lcrypto"
22751 else
22752   echo "$as_me: failed program was:" >&5
22753 sed 's/^/| /' conftest.$ac_ext >&5
22754
22755 SNMP_LIBS=
22756 fi
22757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22758       if test "x$SNMP_LIBS" != "x"; then
22759         break;
22760       fi
22761     done
22762   fi
22763   LIBS="$old_LIBS"
22764
22765           CFLAGS="$old_CFLAGS"
22766   if test "x$SNMP_LIBS" = "x"; then
22767     echo "$as_me:$LINENO: result: no" >&5
22768 echo "${ECHO_T}no" >&6
22769     SNMP_INCLUDE=
22770   else
22771     echo "$as_me:$LINENO: result: yes" >&5
22772 echo "${ECHO_T}yes" >&6
22773     cat >>confdefs.h <<\_ACEOF
22774 #define WITH_SNMP 1
22775 _ACEOF
22776
22777     cat >>confdefs.h <<\_ACEOF
22778 #define HAVE_LIBSNMP 1
22779 _ACEOF
22780
22781   fi
22782 fi
22783
22784 fi
22785
22786 gethostbyaddrrstyle=""
22787 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
22788 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
22789 case "$host" in
22790 *-freebsd*)
22791         cat >>confdefs.h <<\_ACEOF
22792 #define GETHOSTBYADDRRSTYLE BSDSTYLE
22793 _ACEOF
22794
22795         gethostbyaddrrstyle=BSD
22796         { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
22797 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
22798         ;;
22799 esac
22800 if test "x$gethostbyaddrrstyle" = "x"; then
22801         cat >conftest.$ac_ext <<_ACEOF
22802 #line $LINENO "configure"
22803 /* confdefs.h.  */
22804 _ACEOF
22805 cat confdefs.h >>conftest.$ac_ext
22806 cat >>conftest.$ac_ext <<_ACEOF
22807 /* end confdefs.h.  */
22808
22809 #include <stdio.h>
22810 #include <netdb.h>
22811
22812 int
22813 main ()
22814 {
22815  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
22816   ;
22817   return 0;
22818 }
22819 _ACEOF
22820 rm -f conftest.$ac_objext conftest$ac_exeext
22821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22822   (eval $ac_link) 2>&5
22823   ac_status=$?
22824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825   (exit $ac_status); } &&
22826          { ac_try='test -s conftest$ac_exeext'
22827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22828   (eval $ac_try) 2>&5
22829   ac_status=$?
22830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831   (exit $ac_status); }; }; then
22832
22833         cat >>confdefs.h <<\_ACEOF
22834 #define GETHOSTBYADDRRSTYLE GNUSTYLE
22835 _ACEOF
22836
22837         gethostbyaddrrstyle=GNU
22838
22839 else
22840   echo "$as_me: failed program was:" >&5
22841 sed 's/^/| /' conftest.$ac_ext >&5
22842
22843 fi
22844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22845 fi
22846 if test "x$gethostbyaddrrstyle" = "x"; then
22847         cat >conftest.$ac_ext <<_ACEOF
22848 #line $LINENO "configure"
22849 /* confdefs.h.  */
22850 _ACEOF
22851 cat confdefs.h >>conftest.$ac_ext
22852 cat >>conftest.$ac_ext <<_ACEOF
22853 /* end confdefs.h.  */
22854
22855 #include <stdio.h>
22856 #include <netdb.h>
22857
22858 int
22859 main ()
22860 {
22861  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
22862   ;
22863   return 0;
22864 }
22865 _ACEOF
22866 rm -f conftest.$ac_objext conftest$ac_exeext
22867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22868   (eval $ac_link) 2>&5
22869   ac_status=$?
22870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871   (exit $ac_status); } &&
22872          { ac_try='test -s conftest$ac_exeext'
22873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22874   (eval $ac_try) 2>&5
22875   ac_status=$?
22876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877   (exit $ac_status); }; }; then
22878
22879                 cat >>confdefs.h <<\_ACEOF
22880 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
22881 _ACEOF
22882
22883                 gethostbyaddrrstyle=SYSV
22884
22885 else
22886   echo "$as_me: failed program was:" >&5
22887 sed 's/^/| /' conftest.$ac_ext >&5
22888
22889 fi
22890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22891 fi
22892 if test "x$gethostbyaddrrstyle" = "x"; then
22893         cat >conftest.$ac_ext <<_ACEOF
22894 #line $LINENO "configure"
22895 /* confdefs.h.  */
22896 _ACEOF
22897 cat confdefs.h >>conftest.$ac_ext
22898 cat >>conftest.$ac_ext <<_ACEOF
22899 /* end confdefs.h.  */
22900
22901 #include <stdio.h>
22902 #include <netdb.h>
22903
22904 int
22905 main ()
22906 {
22907  gethostbyaddr(NULL, 0, 0)
22908   ;
22909   return 0;
22910 }
22911 _ACEOF
22912 rm -f conftest.$ac_objext conftest$ac_exeext
22913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22914   (eval $ac_link) 2>&5
22915   ac_status=$?
22916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917   (exit $ac_status); } &&
22918          { ac_try='test -s conftest$ac_exeext'
22919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22920   (eval $ac_try) 2>&5
22921   ac_status=$?
22922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923   (exit $ac_status); }; }; then
22924
22925                 cat >>confdefs.h <<\_ACEOF
22926 #define GETHOSTBYADDRRSTYLE BSDSTYLE
22927 _ACEOF
22928
22929                 gethostbyaddrrstyle=BSD
22930
22931 else
22932   echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22934
22935 fi
22936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22937 fi
22938
22939 if test "x$gethostbyaddrrstyle" = "x"; then
22940         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
22941 echo "${ECHO_T}none!  It must not exist, here." >&6
22942 else
22943         echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
22944 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
22945 fi
22946
22947 if test "x$gethostbyaddrrstyle" = "xBSD"; then
22948         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
22949 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
22950 fi
22951
22952 gethostbynamerstyle=""
22953 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
22954 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
22955 cat >conftest.$ac_ext <<_ACEOF
22956 #line $LINENO "configure"
22957 /* confdefs.h.  */
22958 _ACEOF
22959 cat confdefs.h >>conftest.$ac_ext
22960 cat >>conftest.$ac_ext <<_ACEOF
22961 /* end confdefs.h.  */
22962
22963 #include <stdio.h>
22964 #include <netdb.h>
22965
22966 int
22967 main ()
22968 {
22969  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
22970   ;
22971   return 0;
22972 }
22973 _ACEOF
22974 rm -f conftest.$ac_objext conftest$ac_exeext
22975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22976   (eval $ac_link) 2>&5
22977   ac_status=$?
22978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979   (exit $ac_status); } &&
22980          { ac_try='test -s conftest$ac_exeext'
22981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22982   (eval $ac_try) 2>&5
22983   ac_status=$?
22984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985   (exit $ac_status); }; }; then
22986
22987         cat >>confdefs.h <<\_ACEOF
22988 #define GETHOSTBYNAMERSTYLE GNUSTYLE
22989 _ACEOF
22990
22991         gethostbynamerstyle=GNU
22992
22993 else
22994   echo "$as_me: failed program was:" >&5
22995 sed 's/^/| /' conftest.$ac_ext >&5
22996
22997 fi
22998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22999 if test "x$gethostbynamerstyle" = "x"; then
23000         cat >conftest.$ac_ext <<_ACEOF
23001 #line $LINENO "configure"
23002 /* confdefs.h.  */
23003 _ACEOF
23004 cat confdefs.h >>conftest.$ac_ext
23005 cat >>conftest.$ac_ext <<_ACEOF
23006 /* end confdefs.h.  */
23007
23008 #include <stdio.h>
23009 #include <netdb.h>
23010
23011 int
23012 main ()
23013 {
23014  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
23015   ;
23016   return 0;
23017 }
23018 _ACEOF
23019 rm -f conftest.$ac_objext conftest$ac_exeext
23020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23021   (eval $ac_link) 2>&5
23022   ac_status=$?
23023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024   (exit $ac_status); } &&
23025          { ac_try='test -s conftest$ac_exeext'
23026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23027   (eval $ac_try) 2>&5
23028   ac_status=$?
23029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030   (exit $ac_status); }; }; then
23031
23032                 cat >>confdefs.h <<\_ACEOF
23033 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
23034 _ACEOF
23035
23036                 gethostbynamerstyle=SYSV
23037
23038 else
23039   echo "$as_me: failed program was:" >&5
23040 sed 's/^/| /' conftest.$ac_ext >&5
23041
23042 fi
23043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23044 fi
23045 if test "x$gethostbynamerstyle" = "x"; then
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 #include <stdio.h>
23055 #include <netdb.h>
23056
23057 int
23058 main ()
23059 {
23060  gethostbyname(NULL)
23061   ;
23062   return 0;
23063 }
23064 _ACEOF
23065 rm -f conftest.$ac_objext conftest$ac_exeext
23066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23067   (eval $ac_link) 2>&5
23068   ac_status=$?
23069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070   (exit $ac_status); } &&
23071          { ac_try='test -s conftest$ac_exeext'
23072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23073   (eval $ac_try) 2>&5
23074   ac_status=$?
23075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076   (exit $ac_status); }; }; then
23077
23078                 cat >>confdefs.h <<\_ACEOF
23079 #define GETHOSTBYNAMERSTYLE BSDSTYLE
23080 _ACEOF
23081
23082                 gethostbynamerstyle=BSD
23083
23084 else
23085   echo "$as_me: failed program was:" >&5
23086 sed 's/^/| /' conftest.$ac_ext >&5
23087
23088 fi
23089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23090 fi
23091
23092 if test "x$gethostbynamerstyle" = "x"; then
23093         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23094 echo "${ECHO_T}none!  It must not exist, here." >&6
23095 else
23096         echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
23097 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
23098 fi
23099
23100 if test "x$gethostbynamerstyle" = "xBSD"; then
23101         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
23102 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
23103 fi
23104
23105 ctimerstyle=""
23106 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
23107 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
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 #include <time.h>
23117
23118 int
23119 main ()
23120 {
23121  ctime_r(NULL, NULL, 0)
23122   ;
23123   return 0;
23124 }
23125 _ACEOF
23126 rm -f conftest.$ac_objext conftest$ac_exeext
23127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23128   (eval $ac_link) 2>&5
23129   ac_status=$?
23130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131   (exit $ac_status); } &&
23132          { ac_try='test -s conftest$ac_exeext'
23133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23134   (eval $ac_try) 2>&5
23135   ac_status=$?
23136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137   (exit $ac_status); }; }; then
23138
23139         cat >>confdefs.h <<\_ACEOF
23140 #define CTIMERSTYLE SOLARISSTYLE
23141 _ACEOF
23142
23143         ctimerstyle="SOLARIS"
23144
23145 else
23146   echo "$as_me: failed program was:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23148
23149 fi
23150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23151 if test "x$ctimerstyle" = "x"; then
23152         cat >conftest.$ac_ext <<_ACEOF
23153 #line $LINENO "configure"
23154 /* confdefs.h.  */
23155 _ACEOF
23156 cat confdefs.h >>conftest.$ac_ext
23157 cat >>conftest.$ac_ext <<_ACEOF
23158 /* end confdefs.h.  */
23159
23160 #include <time.h>
23161
23162 int
23163 main ()
23164 {
23165  ctime_r(NULL, NULL)
23166   ;
23167   return 0;
23168 }
23169 _ACEOF
23170 rm -f conftest.$ac_objext conftest$ac_exeext
23171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23172   (eval $ac_link) 2>&5
23173   ac_status=$?
23174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175   (exit $ac_status); } &&
23176          { ac_try='test -s conftest$ac_exeext'
23177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23178   (eval $ac_try) 2>&5
23179   ac_status=$?
23180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181   (exit $ac_status); }; }; then
23182
23183                 cat >>confdefs.h <<\_ACEOF
23184 #define CTIMERSTYLE POSIXSTYLE
23185 _ACEOF
23186
23187                 ctimerstyle="POSIX"
23188
23189 else
23190   echo "$as_me: failed program was:" >&5
23191 sed 's/^/| /' conftest.$ac_ext >&5
23192
23193 fi
23194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23195 fi
23196
23197 if test "x$ctimerstyle" = "x"; then
23198         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23199 echo "${ECHO_T}none!  It must not exist, here." >&6
23200 else
23201         echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
23202 echo "${ECHO_T}${ctimerstyle}-style" >&6
23203 fi
23204
23205
23206 if test x"$rad_enable_largefiles" = xyes ; then
23207     echo "$as_me:$LINENO: checking for largefile linkage" >&5
23208 echo $ECHO_N "checking for largefile linkage... $ECHO_C" >&6
23209     case "$host" in
23210     *-aix4.01*)
23211         echo "$as_me:$LINENO: result: no" >&5
23212 echo "${ECHO_T}no" >&6
23213         { { echo "$as_me:$LINENO: error: AIX before 4.2 does not support large files" >&5
23214 echo "$as_me: error: AIX before 4.2 does not support large files" >&2;}
23215    { (exit 1); exit 1; }; }
23216         ;;
23217     *-aix4*)
23218         echo "$as_me:$LINENO: result: ok" >&5
23219 echo "${ECHO_T}ok" >&6
23220         LFS_CFLAGS="-D_LARGE_FILES"
23221         LFS_LDFLAGS=""
23222         LFS_LIBS=""
23223         ;;
23224     *-hpux*)
23225         echo "$as_me:$LINENO: result: ok" >&5
23226 echo "${ECHO_T}ok" >&6
23227         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23228         LFS_LDFLAGS=""
23229         LFS_LIBS=""
23230         ;;
23231     *-irix*)
23232         echo "$as_me:$LINENO: result: no" >&5
23233 echo "${ECHO_T}no" >&6
23234         { { echo "$as_me:$LINENO: error: Large files not supported on this platform" >&5
23235 echo "$as_me: error: Large files not supported on this platform" >&2;}
23236    { (exit 1); exit 1; }; }
23237         ;;
23238     *-linux*)
23239         echo "$as_me:$LINENO: result: maybe" >&5
23240 echo "${ECHO_T}maybe" >&6
23241         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23242         LFS_LDFLAGS=""
23243         LFS_LIBS=""
23244
23245 cat >>confdefs.h <<\_ACEOF
23246 #define _GNU_SOURCE 1
23247 _ACEOF
23248
23249         ;;
23250     *-solaris*)
23251         echo "$as_me:$LINENO: result: ok" >&5
23252 echo "${ECHO_T}ok" >&6
23253         # Extract the first word of "getconf", so it can be a program name with args.
23254 set dummy getconf; ac_word=$2
23255 echo "$as_me:$LINENO: checking for $ac_word" >&5
23256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23257 if test "${ac_cv_path_GETCONF+set}" = set; then
23258   echo $ECHO_N "(cached) $ECHO_C" >&6
23259 else
23260   case $GETCONF in
23261   [\\/]* | ?:[\\/]*)
23262   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
23263   ;;
23264   *)
23265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23266 for as_dir in $PATH
23267 do
23268   IFS=$as_save_IFS
23269   test -z "$as_dir" && as_dir=.
23270   for ac_exec_ext in '' $ac_executable_extensions; do
23271   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23272     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
23273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23274     break 2
23275   fi
23276 done
23277 done
23278
23279   ;;
23280 esac
23281 fi
23282 GETCONF=$ac_cv_path_GETCONF
23283
23284 if test -n "$GETCONF"; then
23285   echo "$as_me:$LINENO: result: $GETCONF" >&5
23286 echo "${ECHO_T}$GETCONF" >&6
23287 else
23288   echo "$as_me:$LINENO: result: no" >&5
23289 echo "${ECHO_T}no" >&6
23290 fi
23291
23292         if test -z "$GETCONF" ; then
23293             { { echo "$as_me:$LINENO: error: getconf required to configure large file support" >&5
23294 echo "$as_me: error: getconf required to configure large file support" >&2;}
23295    { (exit 1); exit 1; }; }
23296         fi
23297         LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
23298         LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
23299         LFS_LIBS=`$GETCONF LFS_LIBS`
23300         ;;
23301     *)
23302         echo "$as_me:$LINENO: result: maybe" >&5
23303 echo "${ECHO_T}maybe" >&6
23304         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23305         LFS_LDFLAGS=""
23306         LFS_LIBS=""
23307         ;;
23308     esac
23309
23310
23311
23312 fi
23313
23314 HOSTINFO=$host
23315
23316
23317
23318 top_builddir=`pwd`
23319 export top_builddir
23320 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
23321 echo "${ECHO_T}top_builddir=$top_builddir" >&6
23322
23323
23324
23325 if test "x$INCLTDL" != "x";then
23326   INCLTDL='-I${top_builddir}/''libltdl'
23327 fi
23328
23329
23330
23331 mysubdirs=
23332 if test "x$EXPERIMENTAL" = "xyes"; then
23333   bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
23334     mysubdirs=`echo $bar`
23335 else
23336         for bar in `cat src/modules/stable`; do
23337     if test -f src/modules/$bar/configure; then
23338       mysubdirs="$mysubdirs src/modules/$bar"
23339     fi
23340   done
23341 fi
23342
23343 MODULES=
23344 if test "x$EXPERIMENTAL" = "xyes"; then
23345   for foo in `ls -1 src/modules | grep rlm_`; do
23346     MODULES="$MODULES $foo"
23347   done
23348 else
23349             for foo in `cat src/modules/stable`; do
23350     MODULES="$MODULES $foo"
23351    done
23352 fi
23353
23354
23355
23356 subdirs="$subdirs $mysubdirs"
23357
23358
23359
23360
23361
23362
23363
23364 USE_SHARED_LIBS=$enable_shared
23365
23366 USE_STATIC_LIBS=$enable_static
23367
23368
23369
23370
23371
23372 export CFLAGS LIBS
23373
23374                                                                                                                                             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"
23375 cat >confcache <<\_ACEOF
23376 # This file is a shell script that caches the results of configure
23377 # tests run on this system so they can be shared between configure
23378 # scripts and configure runs, see configure's option --config-cache.
23379 # It is not useful on other systems.  If it contains results you don't
23380 # want to keep, you may remove or edit it.
23381 #
23382 # config.status only pays attention to the cache file if you give it
23383 # the --recheck option to rerun configure.
23384 #
23385 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23386 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23387 # following values.
23388
23389 _ACEOF
23390
23391 # The following way of writing the cache mishandles newlines in values,
23392 # but we know of no workaround that is simple, portable, and efficient.
23393 # So, don't put newlines in cache variables' values.
23394 # Ultrix sh set writes to stderr and can't be redirected directly,
23395 # and sets the high bit in the cache file unless we assign to the vars.
23396 {
23397   (set) 2>&1 |
23398     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23399     *ac_space=\ *)
23400       # `set' does not quote correctly, so add quotes (double-quote
23401       # substitution turns \\\\ into \\, and sed turns \\ into \).
23402       sed -n \
23403         "s/'/'\\\\''/g;
23404           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23405       ;;
23406     *)
23407       # `set' quotes correctly as required by POSIX, so do not add quotes.
23408       sed -n \
23409         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23410       ;;
23411     esac;
23412 } |
23413   sed '
23414      t clear
23415      : clear
23416      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23417      t end
23418      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23419      : end' >>confcache
23420 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23421   if test -w $cache_file; then
23422     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23423     cat confcache >$cache_file
23424   else
23425     echo "not updating unwritable cache $cache_file"
23426   fi
23427 fi
23428 rm -f confcache
23429
23430 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23431 # Let make expand exec_prefix.
23432 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23433
23434 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23435 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23436 # trailing colons and then remove the whole line if VPATH becomes empty
23437 # (actually we leave an empty line to preserve line numbers).
23438 if test "x$srcdir" = x.; then
23439   ac_vpsub='/^[         ]*VPATH[        ]*=/{
23440 s/:*\$(srcdir):*/:/;
23441 s/:*\${srcdir}:*/:/;
23442 s/:*@srcdir@:*/:/;
23443 s/^\([^=]*=[    ]*\):*/\1/;
23444 s/:*$//;
23445 s/^[^=]*=[      ]*$//;
23446 }'
23447 fi
23448
23449 DEFS=-DHAVE_CONFIG_H
23450
23451 ac_libobjs=
23452 ac_ltlibobjs=
23453 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23454   # 1. Remove the extension, and $U if already installed.
23455   ac_i=`echo "$ac_i" |
23456          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23457   # 2. Add them.
23458   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23459   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23460 done
23461 LIBOBJS=$ac_libobjs
23462
23463 LTLIBOBJS=$ac_ltlibobjs
23464
23465
23466
23467 : ${CONFIG_STATUS=./config.status}
23468 ac_clean_files_save=$ac_clean_files
23469 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23470 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23471 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23472 cat >$CONFIG_STATUS <<_ACEOF
23473 #! $SHELL
23474 # Generated by $as_me.
23475 # Run this file to recreate the current configuration.
23476 # Compiler output produced by configure, useful for debugging
23477 # configure, is in config.log if it exists.
23478
23479 debug=false
23480 ac_cs_recheck=false
23481 ac_cs_silent=false
23482 SHELL=\${CONFIG_SHELL-$SHELL}
23483 _ACEOF
23484
23485 cat >>$CONFIG_STATUS <<\_ACEOF
23486 ## --------------------- ##
23487 ## M4sh Initialization.  ##
23488 ## --------------------- ##
23489
23490 # Be Bourne compatible
23491 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23492   emulate sh
23493   NULLCMD=:
23494   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23495   # is contrary to our usage.  Disable this feature.
23496   alias -g '${1+"$@"}'='"$@"'
23497 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23498   set -o posix
23499 fi
23500
23501 # Support unset when possible.
23502 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23503   as_unset=unset
23504 else
23505   as_unset=false
23506 fi
23507
23508
23509 # Work around bugs in pre-3.0 UWIN ksh.
23510 $as_unset ENV MAIL MAILPATH
23511 PS1='$ '
23512 PS2='> '
23513 PS4='+ '
23514
23515 # NLS nuisances.
23516 for as_var in \
23517   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23518   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23519   LC_TELEPHONE LC_TIME
23520 do
23521   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23522     eval $as_var=C; export $as_var
23523   else
23524     $as_unset $as_var
23525   fi
23526 done
23527
23528 # Required to use basename.
23529 if expr a : '\(a\)' >/dev/null 2>&1; then
23530   as_expr=expr
23531 else
23532   as_expr=false
23533 fi
23534
23535 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23536   as_basename=basename
23537 else
23538   as_basename=false
23539 fi
23540
23541
23542 # Name of the executable.
23543 as_me=`$as_basename "$0" ||
23544 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23545          X"$0" : 'X\(//\)$' \| \
23546          X"$0" : 'X\(/\)$' \| \
23547          .     : '\(.\)' 2>/dev/null ||
23548 echo X/"$0" |
23549     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23550           /^X\/\(\/\/\)$/{ s//\1/; q; }
23551           /^X\/\(\/\).*/{ s//\1/; q; }
23552           s/.*/./; q'`
23553
23554
23555 # PATH needs CR, and LINENO needs CR and PATH.
23556 # Avoid depending upon Character Ranges.
23557 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23558 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23559 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23560 as_cr_digits='0123456789'
23561 as_cr_alnum=$as_cr_Letters$as_cr_digits
23562
23563 # The user is always right.
23564 if test "${PATH_SEPARATOR+set}" != set; then
23565   echo "#! /bin/sh" >conf$$.sh
23566   echo  "exit 0"   >>conf$$.sh
23567   chmod +x conf$$.sh
23568   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23569     PATH_SEPARATOR=';'
23570   else
23571     PATH_SEPARATOR=:
23572   fi
23573   rm -f conf$$.sh
23574 fi
23575
23576
23577   as_lineno_1=$LINENO
23578   as_lineno_2=$LINENO
23579   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23580   test "x$as_lineno_1" != "x$as_lineno_2" &&
23581   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23582   # Find who we are.  Look in the path if we contain no path at all
23583   # relative or not.
23584   case $0 in
23585     *[\\/]* ) as_myself=$0 ;;
23586     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23587 for as_dir in $PATH
23588 do
23589   IFS=$as_save_IFS
23590   test -z "$as_dir" && as_dir=.
23591   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23592 done
23593
23594        ;;
23595   esac
23596   # We did not find ourselves, most probably we were run as `sh COMMAND'
23597   # in which case we are not to be found in the path.
23598   if test "x$as_myself" = x; then
23599     as_myself=$0
23600   fi
23601   if test ! -f "$as_myself"; then
23602     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23603 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23604    { (exit 1); exit 1; }; }
23605   fi
23606   case $CONFIG_SHELL in
23607   '')
23608     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23609 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23610 do
23611   IFS=$as_save_IFS
23612   test -z "$as_dir" && as_dir=.
23613   for as_base in sh bash ksh sh5; do
23614          case $as_dir in
23615          /*)
23616            if ("$as_dir/$as_base" -c '
23617   as_lineno_1=$LINENO
23618   as_lineno_2=$LINENO
23619   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23620   test "x$as_lineno_1" != "x$as_lineno_2" &&
23621   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23622              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23623              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23624              CONFIG_SHELL=$as_dir/$as_base
23625              export CONFIG_SHELL
23626              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23627            fi;;
23628          esac
23629        done
23630 done
23631 ;;
23632   esac
23633
23634   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23635   # uniformly replaced by the line number.  The first 'sed' inserts a
23636   # line-number line before each line; the second 'sed' does the real
23637   # work.  The second script uses 'N' to pair each line-number line
23638   # with the numbered line, and appends trailing '-' during
23639   # substitution so that $LINENO is not a special case at line end.
23640   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23641   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23642   sed '=' <$as_myself |
23643     sed '
23644       N
23645       s,$,-,
23646       : loop
23647       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23648       t loop
23649       s,-$,,
23650       s,^['$as_cr_digits']*\n,,
23651     ' >$as_me.lineno &&
23652   chmod +x $as_me.lineno ||
23653     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23654 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23655    { (exit 1); exit 1; }; }
23656
23657   # Don't try to exec as it changes $[0], causing all sort of problems
23658   # (the dirname of $[0] is not the place where we might find the
23659   # original and so on.  Autoconf is especially sensible to this).
23660   . ./$as_me.lineno
23661   # Exit status is that of the last command.
23662   exit
23663 }
23664
23665
23666 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23667   *c*,-n*) ECHO_N= ECHO_C='
23668 ' ECHO_T='      ' ;;
23669   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23670   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23671 esac
23672
23673 if expr a : '\(a\)' >/dev/null 2>&1; then
23674   as_expr=expr
23675 else
23676   as_expr=false
23677 fi
23678
23679 rm -f conf$$ conf$$.exe conf$$.file
23680 echo >conf$$.file
23681 if ln -s conf$$.file conf$$ 2>/dev/null; then
23682   # We could just check for DJGPP; but this test a) works b) is more generic
23683   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23684   if test -f conf$$.exe; then
23685     # Don't use ln at all; we don't have any links
23686     as_ln_s='cp -p'
23687   else
23688     as_ln_s='ln -s'
23689   fi
23690 elif ln conf$$.file conf$$ 2>/dev/null; then
23691   as_ln_s=ln
23692 else
23693   as_ln_s='cp -p'
23694 fi
23695 rm -f conf$$ conf$$.exe conf$$.file
23696
23697 if mkdir -p . 2>/dev/null; then
23698   as_mkdir_p=:
23699 else
23700   as_mkdir_p=false
23701 fi
23702
23703 as_executable_p="test -f"
23704
23705 # Sed expression to map a string onto a valid CPP name.
23706 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23707
23708 # Sed expression to map a string onto a valid variable name.
23709 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23710
23711
23712 # IFS
23713 # We need space, tab and new line, in precisely that order.
23714 as_nl='
23715 '
23716 IFS="   $as_nl"
23717
23718 # CDPATH.
23719 $as_unset CDPATH
23720
23721 exec 6>&1
23722
23723 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23724 # report actual input values of CONFIG_FILES etc. instead of their
23725 # values after options handling.  Logging --version etc. is OK.
23726 exec 5>>config.log
23727 {
23728   echo
23729   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23730 ## Running $as_me. ##
23731 _ASBOX
23732 } >&5
23733 cat >&5 <<_CSEOF
23734
23735 This file was extended by $as_me, which was
23736 generated by GNU Autoconf 2.57.  Invocation command line was
23737
23738   CONFIG_FILES    = $CONFIG_FILES
23739   CONFIG_HEADERS  = $CONFIG_HEADERS
23740   CONFIG_LINKS    = $CONFIG_LINKS
23741   CONFIG_COMMANDS = $CONFIG_COMMANDS
23742   $ $0 $@
23743
23744 _CSEOF
23745 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23746 echo >&5
23747 _ACEOF
23748
23749 # Files that config.status was made for.
23750 if test -n "$ac_config_files"; then
23751   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23752 fi
23753
23754 if test -n "$ac_config_headers"; then
23755   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23756 fi
23757
23758 if test -n "$ac_config_links"; then
23759   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23760 fi
23761
23762 if test -n "$ac_config_commands"; then
23763   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23764 fi
23765
23766 cat >>$CONFIG_STATUS <<\_ACEOF
23767
23768 ac_cs_usage="\
23769 \`$as_me' instantiates files from templates according to the
23770 current configuration.
23771
23772 Usage: $0 [OPTIONS] [FILE]...
23773
23774   -h, --help       print this help, then exit
23775   -V, --version    print version number, then exit
23776   -q, --quiet      do not print progress messages
23777   -d, --debug      don't remove temporary files
23778       --recheck    update $as_me by reconfiguring in the same conditions
23779   --file=FILE[:TEMPLATE]
23780                    instantiate the configuration file FILE
23781   --header=FILE[:TEMPLATE]
23782                    instantiate the configuration header FILE
23783
23784 Configuration files:
23785 $config_files
23786
23787 Configuration headers:
23788 $config_headers
23789
23790 Report bugs to <bug-autoconf@gnu.org>."
23791 _ACEOF
23792
23793 cat >>$CONFIG_STATUS <<_ACEOF
23794 ac_cs_version="\\
23795 config.status
23796 configured by $0, generated by GNU Autoconf 2.57,
23797   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23798
23799 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23800 Free Software Foundation, Inc.
23801 This config.status script is free software; the Free Software Foundation
23802 gives unlimited permission to copy, distribute and modify it."
23803 srcdir=$srcdir
23804 _ACEOF
23805
23806 cat >>$CONFIG_STATUS <<\_ACEOF
23807 # If no file are specified by the user, then we need to provide default
23808 # value.  By we need to know if files were specified by the user.
23809 ac_need_defaults=:
23810 while test $# != 0
23811 do
23812   case $1 in
23813   --*=*)
23814     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23815     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23816     ac_shift=:
23817     ;;
23818   -*)
23819     ac_option=$1
23820     ac_optarg=$2
23821     ac_shift=shift
23822     ;;
23823   *) # This is not an option, so the user has probably given explicit
23824      # arguments.
23825      ac_option=$1
23826      ac_need_defaults=false;;
23827   esac
23828
23829   case $ac_option in
23830   # Handling of the options.
23831 _ACEOF
23832 cat >>$CONFIG_STATUS <<\_ACEOF
23833   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23834     ac_cs_recheck=: ;;
23835   --version | --vers* | -V )
23836     echo "$ac_cs_version"; exit 0 ;;
23837   --he | --h)
23838     # Conflict between --help and --header
23839     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23840 Try \`$0 --help' for more information." >&5
23841 echo "$as_me: error: ambiguous option: $1
23842 Try \`$0 --help' for more information." >&2;}
23843    { (exit 1); exit 1; }; };;
23844   --help | --hel | -h )
23845     echo "$ac_cs_usage"; exit 0 ;;
23846   --debug | --d* | -d )
23847     debug=: ;;
23848   --file | --fil | --fi | --f )
23849     $ac_shift
23850     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23851     ac_need_defaults=false;;
23852   --header | --heade | --head | --hea )
23853     $ac_shift
23854     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23855     ac_need_defaults=false;;
23856   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23857   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23858     ac_cs_silent=: ;;
23859
23860   # This is an error.
23861   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23862 Try \`$0 --help' for more information." >&5
23863 echo "$as_me: error: unrecognized option: $1
23864 Try \`$0 --help' for more information." >&2;}
23865    { (exit 1); exit 1; }; } ;;
23866
23867   *) ac_config_targets="$ac_config_targets $1" ;;
23868
23869   esac
23870   shift
23871 done
23872
23873 ac_configure_extra_args=
23874
23875 if $ac_cs_silent; then
23876   exec 6>/dev/null
23877   ac_configure_extra_args="$ac_configure_extra_args --silent"
23878 fi
23879
23880 _ACEOF
23881 cat >>$CONFIG_STATUS <<_ACEOF
23882 if \$ac_cs_recheck; then
23883   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23884   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23885 fi
23886
23887 _ACEOF
23888
23889
23890
23891
23892
23893 cat >>$CONFIG_STATUS <<\_ACEOF
23894 for ac_config_target in $ac_config_targets
23895 do
23896   case "$ac_config_target" in
23897   # Handling of arguments.
23898   "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
23899   "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
23900   "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
23901   "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
23902   "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
23903   "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
23904   "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
23905   "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
23906   "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
23907   "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
23908   "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
23909   "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
23910   "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
23911   "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
23912   "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
23913   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23914 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23915    { (exit 1); exit 1; }; };;
23916   esac
23917 done
23918
23919 # If the user did not use the arguments to specify the items to instantiate,
23920 # then the envvar interface is used.  Set only those that are not.
23921 # We use the long form for the default assignment because of an extremely
23922 # bizarre bug on SunOS 4.1.3.
23923 if $ac_need_defaults; then
23924   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23925   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23926 fi
23927
23928 # Have a temporary directory for convenience.  Make it in the build tree
23929 # simply because there is no reason to put it here, and in addition,
23930 # creating and moving files from /tmp can sometimes cause problems.
23931 # Create a temporary directory, and hook for its removal unless debugging.
23932 $debug ||
23933 {
23934   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23935   trap '{ (exit 1); exit 1; }' 1 2 13 15
23936 }
23937
23938 # Create a (secure) tmp directory for tmp files.
23939
23940 {
23941   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23942   test -n "$tmp" && test -d "$tmp"
23943 }  ||
23944 {
23945   tmp=./confstat$$-$RANDOM
23946   (umask 077 && mkdir $tmp)
23947 } ||
23948 {
23949    echo "$me: cannot create a temporary directory in ." >&2
23950    { (exit 1); exit 1; }
23951 }
23952
23953 _ACEOF
23954
23955 cat >>$CONFIG_STATUS <<_ACEOF
23956
23957 #
23958 # CONFIG_FILES section.
23959 #
23960
23961 # No need to generate the scripts if there are no CONFIG_FILES.
23962 # This happens for instance when ./config.status config.h
23963 if test -n "\$CONFIG_FILES"; then
23964   # Protect against being on the right side of a sed subst in config.status.
23965   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23966    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23967 s,@SHELL@,$SHELL,;t t
23968 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23969 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23970 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23971 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23972 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23973 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23974 s,@exec_prefix@,$exec_prefix,;t t
23975 s,@prefix@,$prefix,;t t
23976 s,@program_transform_name@,$program_transform_name,;t t
23977 s,@bindir@,$bindir,;t t
23978 s,@sbindir@,$sbindir,;t t
23979 s,@libexecdir@,$libexecdir,;t t
23980 s,@datadir@,$datadir,;t t
23981 s,@sysconfdir@,$sysconfdir,;t t
23982 s,@sharedstatedir@,$sharedstatedir,;t t
23983 s,@localstatedir@,$localstatedir,;t t
23984 s,@libdir@,$libdir,;t t
23985 s,@includedir@,$includedir,;t t
23986 s,@oldincludedir@,$oldincludedir,;t t
23987 s,@infodir@,$infodir,;t t
23988 s,@mandir@,$mandir,;t t
23989 s,@build_alias@,$build_alias,;t t
23990 s,@host_alias@,$host_alias,;t t
23991 s,@target_alias@,$target_alias,;t t
23992 s,@DEFS@,$DEFS,;t t
23993 s,@ECHO_C@,$ECHO_C,;t t
23994 s,@ECHO_N@,$ECHO_N,;t t
23995 s,@ECHO_T@,$ECHO_T,;t t
23996 s,@LIBS@,$LIBS,;t t
23997 s,@CC@,$CC,;t t
23998 s,@CFLAGS@,$CFLAGS,;t t
23999 s,@LDFLAGS@,$LDFLAGS,;t t
24000 s,@CPPFLAGS@,$CPPFLAGS,;t t
24001 s,@ac_ct_CC@,$ac_ct_CC,;t t
24002 s,@EXEEXT@,$EXEEXT,;t t
24003 s,@OBJEXT@,$OBJEXT,;t t
24004 s,@CPP@,$CPP,;t t
24005 s,@EGREP@,$EGREP,;t t
24006 s,@RANLIB@,$RANLIB,;t t
24007 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24008 s,@abs_top_builddir@,$abs_top_builddir,;t t
24009 s,@GMAKE@,$GMAKE,;t t
24010 s,@MAKE@,$MAKE,;t t
24011 s,@subdirs@,$subdirs,;t t
24012 s,@LIBLTDLPATH@,$LIBLTDLPATH,;t t
24013 s,@LIBTOOL@,$LIBTOOL,;t t
24014 s,@build@,$build,;t t
24015 s,@build_cpu@,$build_cpu,;t t
24016 s,@build_vendor@,$build_vendor,;t t
24017 s,@build_os@,$build_os,;t t
24018 s,@host@,$host,;t t
24019 s,@host_cpu@,$host_cpu,;t t
24020 s,@host_vendor@,$host_vendor,;t t
24021 s,@host_os@,$host_os,;t t
24022 s,@LN_S@,$LN_S,;t t
24023 s,@ECHO@,$ECHO,;t t
24024 s,@AR@,$AR,;t t
24025 s,@ac_ct_AR@,$ac_ct_AR,;t t
24026 s,@STRIP@,$STRIP,;t t
24027 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24028 s,@CXX@,$CXX,;t t
24029 s,@CXXFLAGS@,$CXXFLAGS,;t t
24030 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24031 s,@CXXCPP@,$CXXCPP,;t t
24032 s,@F77@,$F77,;t t
24033 s,@FFLAGS@,$FFLAGS,;t t
24034 s,@ac_ct_F77@,$ac_ct_F77,;t t
24035 s,@logdir@,$logdir,;t t
24036 s,@radacctdir@,$radacctdir,;t t
24037 s,@raddbdir@,$raddbdir,;t t
24038 s,@PERL@,$PERL,;t t
24039 s,@SNMPGET@,$SNMPGET,;t t
24040 s,@SNMPWALK@,$SNMPWALK,;t t
24041 s,@RUSERS@,$RUSERS,;t t
24042 s,@ACLOCAL@,$ACLOCAL,;t t
24043 s,@AUTOCONF@,$AUTOCONF,;t t
24044 s,@AUTOHEADER@,$AUTOHEADER,;t t
24045 s,@LOCATE@,$LOCATE,;t t
24046 s,@DIRNAME@,$DIRNAME,;t t
24047 s,@GREP@,$GREP,;t t
24048 s,@REGEX@,$REGEX,;t t
24049 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
24050 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
24051 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24052 s,@LIBPREFIX@,$LIBPREFIX,;t t
24053 s,@CRYPTLIB@,$CRYPTLIB,;t t
24054 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
24055 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
24056 s,@GETCONF@,$GETCONF,;t t
24057 s,@LFS_CFLAGS@,$LFS_CFLAGS,;t t
24058 s,@LFS_LDFLAGS@,$LFS_LDFLAGS,;t t
24059 s,@LFS_LIBS@,$LFS_LIBS,;t t
24060 s,@HOSTINFO@,$HOSTINFO,;t t
24061 s,@LIBLTDL@,$LIBLTDL,;t t
24062 s,@INCLTDL@,$INCLTDL,;t t
24063 s,@MODULES@,$MODULES,;t t
24064 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
24065 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
24066 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
24067 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
24068 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
24069 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
24070 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
24071 s,@LIBOBJS@,$LIBOBJS,;t t
24072 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24073 CEOF
24074
24075 _ACEOF
24076
24077   cat >>$CONFIG_STATUS <<\_ACEOF
24078   # Split the substitutions into bite-sized pieces for seds with
24079   # small command number limits, like on Digital OSF/1 and HP-UX.
24080   ac_max_sed_lines=48
24081   ac_sed_frag=1 # Number of current file.
24082   ac_beg=1 # First line for current file.
24083   ac_end=$ac_max_sed_lines # Line after last line for current file.
24084   ac_more_lines=:
24085   ac_sed_cmds=
24086   while $ac_more_lines; do
24087     if test $ac_beg -gt 1; then
24088       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24089     else
24090       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24091     fi
24092     if test ! -s $tmp/subs.frag; then
24093       ac_more_lines=false
24094     else
24095       # The purpose of the label and of the branching condition is to
24096       # speed up the sed processing (if there are no `@' at all, there
24097       # is no need to browse any of the substitutions).
24098       # These are the two extra sed commands mentioned above.
24099       (echo ':t
24100   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24101       if test -z "$ac_sed_cmds"; then
24102         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24103       else
24104         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24105       fi
24106       ac_sed_frag=`expr $ac_sed_frag + 1`
24107       ac_beg=$ac_end
24108       ac_end=`expr $ac_end + $ac_max_sed_lines`
24109     fi
24110   done
24111   if test -z "$ac_sed_cmds"; then
24112     ac_sed_cmds=cat
24113   fi
24114 fi # test -n "$CONFIG_FILES"
24115
24116 _ACEOF
24117 cat >>$CONFIG_STATUS <<\_ACEOF
24118 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24119   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24120   case $ac_file in
24121   - | *:- | *:-:* ) # input from stdin
24122         cat >$tmp/stdin
24123         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24124         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24125   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24126         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24127   * )   ac_file_in=$ac_file.in ;;
24128   esac
24129
24130   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24131   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24132 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24133          X"$ac_file" : 'X\(//\)[^/]' \| \
24134          X"$ac_file" : 'X\(//\)$' \| \
24135          X"$ac_file" : 'X\(/\)' \| \
24136          .     : '\(.\)' 2>/dev/null ||
24137 echo X"$ac_file" |
24138     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24139           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24140           /^X\(\/\/\)$/{ s//\1/; q; }
24141           /^X\(\/\).*/{ s//\1/; q; }
24142           s/.*/./; q'`
24143   { if $as_mkdir_p; then
24144     mkdir -p "$ac_dir"
24145   else
24146     as_dir="$ac_dir"
24147     as_dirs=
24148     while test ! -d "$as_dir"; do
24149       as_dirs="$as_dir $as_dirs"
24150       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24152          X"$as_dir" : 'X\(//\)[^/]' \| \
24153          X"$as_dir" : 'X\(//\)$' \| \
24154          X"$as_dir" : 'X\(/\)' \| \
24155          .     : '\(.\)' 2>/dev/null ||
24156 echo X"$as_dir" |
24157     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24158           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24159           /^X\(\/\/\)$/{ s//\1/; q; }
24160           /^X\(\/\).*/{ s//\1/; q; }
24161           s/.*/./; q'`
24162     done
24163     test ! -n "$as_dirs" || mkdir $as_dirs
24164   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24165 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24166    { (exit 1); exit 1; }; }; }
24167
24168   ac_builddir=.
24169
24170 if test "$ac_dir" != .; then
24171   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24172   # A "../" for each directory in $ac_dir_suffix.
24173   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24174 else
24175   ac_dir_suffix= ac_top_builddir=
24176 fi
24177
24178 case $srcdir in
24179   .)  # No --srcdir option.  We are building in place.
24180     ac_srcdir=.
24181     if test -z "$ac_top_builddir"; then
24182        ac_top_srcdir=.
24183     else
24184        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24185     fi ;;
24186   [\\/]* | ?:[\\/]* )  # Absolute path.
24187     ac_srcdir=$srcdir$ac_dir_suffix;
24188     ac_top_srcdir=$srcdir ;;
24189   *) # Relative path.
24190     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24191     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24192 esac
24193 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24194 # absolute.
24195 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24196 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24197 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24198 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24199
24200
24201
24202   if test x"$ac_file" != x-; then
24203     { echo "$as_me:$LINENO: creating $ac_file" >&5
24204 echo "$as_me: creating $ac_file" >&6;}
24205     rm -f "$ac_file"
24206   fi
24207   # Let's still pretend it is `configure' which instantiates (i.e., don't
24208   # use $as_me), people would be surprised to read:
24209   #    /* config.h.  Generated by config.status.  */
24210   if test x"$ac_file" = x-; then
24211     configure_input=
24212   else
24213     configure_input="$ac_file.  "
24214   fi
24215   configure_input=$configure_input"Generated from `echo $ac_file_in |
24216                                      sed 's,.*/,,'` by configure."
24217
24218   # First look for the input files in the build tree, otherwise in the
24219   # src tree.
24220   ac_file_inputs=`IFS=:
24221     for f in $ac_file_in; do
24222       case $f in
24223       -) echo $tmp/stdin ;;
24224       [\\/$]*)
24225          # Absolute (can't be DOS-style, as IFS=:)
24226          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24227 echo "$as_me: error: cannot find input file: $f" >&2;}
24228    { (exit 1); exit 1; }; }
24229          echo $f;;
24230       *) # Relative
24231          if test -f "$f"; then
24232            # Build tree
24233            echo $f
24234          elif test -f "$srcdir/$f"; then
24235            # Source tree
24236            echo $srcdir/$f
24237          else
24238            # /dev/null tree
24239            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24240 echo "$as_me: error: cannot find input file: $f" >&2;}
24241    { (exit 1); exit 1; }; }
24242          fi;;
24243       esac
24244     done` || { (exit 1); exit 1; }
24245 _ACEOF
24246 cat >>$CONFIG_STATUS <<_ACEOF
24247   sed "$ac_vpsub
24248 $extrasub
24249 _ACEOF
24250 cat >>$CONFIG_STATUS <<\_ACEOF
24251 :t
24252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24253 s,@configure_input@,$configure_input,;t t
24254 s,@srcdir@,$ac_srcdir,;t t
24255 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24256 s,@top_srcdir@,$ac_top_srcdir,;t t
24257 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24258 s,@builddir@,$ac_builddir,;t t
24259 s,@abs_builddir@,$ac_abs_builddir,;t t
24260 s,@top_builddir@,$ac_top_builddir,;t t
24261 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24262 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24263   rm -f $tmp/stdin
24264   if test x"$ac_file" != x-; then
24265     mv $tmp/out $ac_file
24266   else
24267     cat $tmp/out
24268     rm -f $tmp/out
24269   fi
24270
24271 done
24272 _ACEOF
24273 cat >>$CONFIG_STATUS <<\_ACEOF
24274
24275 #
24276 # CONFIG_HEADER section.
24277 #
24278
24279 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24280 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24281 #
24282 # ac_d sets the value in "#define NAME VALUE" lines.
24283 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24284 ac_dB='[        ].*$,\1#\2'
24285 ac_dC=' '
24286 ac_dD=',;t'
24287 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24288 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24289 ac_uB='$,\1#\2define\3'
24290 ac_uC=' '
24291 ac_uD=',;t'
24292
24293 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24294   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24295   case $ac_file in
24296   - | *:- | *:-:* ) # input from stdin
24297         cat >$tmp/stdin
24298         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24299         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24300   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24301         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24302   * )   ac_file_in=$ac_file.in ;;
24303   esac
24304
24305   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24306 echo "$as_me: creating $ac_file" >&6;}
24307
24308   # First look for the input files in the build tree, otherwise in the
24309   # src tree.
24310   ac_file_inputs=`IFS=:
24311     for f in $ac_file_in; do
24312       case $f in
24313       -) echo $tmp/stdin ;;
24314       [\\/$]*)
24315          # Absolute (can't be DOS-style, as IFS=:)
24316          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24317 echo "$as_me: error: cannot find input file: $f" >&2;}
24318    { (exit 1); exit 1; }; }
24319          echo $f;;
24320       *) # Relative
24321          if test -f "$f"; then
24322            # Build tree
24323            echo $f
24324          elif test -f "$srcdir/$f"; then
24325            # Source tree
24326            echo $srcdir/$f
24327          else
24328            # /dev/null tree
24329            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24330 echo "$as_me: error: cannot find input file: $f" >&2;}
24331    { (exit 1); exit 1; }; }
24332          fi;;
24333       esac
24334     done` || { (exit 1); exit 1; }
24335   # Remove the trailing spaces.
24336   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24337
24338 _ACEOF
24339
24340 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24341 # `conftest.undefs', that substitutes the proper values into
24342 # config.h.in to produce config.h.  The first handles `#define'
24343 # templates, and the second `#undef' templates.
24344 # And first: Protect against being on the right side of a sed subst in
24345 # config.status.  Protect against being in an unquoted here document
24346 # in config.status.
24347 rm -f conftest.defines conftest.undefs
24348 # Using a here document instead of a string reduces the quoting nightmare.
24349 # Putting comments in sed scripts is not portable.
24350 #
24351 # `end' is used to avoid that the second main sed command (meant for
24352 # 0-ary CPP macros) applies to n-ary macro definitions.
24353 # See the Autoconf documentation for `clear'.
24354 cat >confdef2sed.sed <<\_ACEOF
24355 s/[\\&,]/\\&/g
24356 s,[\\$`],\\&,g
24357 t clear
24358 : clear
24359 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24360 t end
24361 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24362 : end
24363 _ACEOF
24364 # If some macros were called several times there might be several times
24365 # the same #defines, which is useless.  Nevertheless, we may not want to
24366 # sort them, since we want the *last* AC-DEFINE to be honored.
24367 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24368 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24369 rm -f confdef2sed.sed
24370
24371 # This sed command replaces #undef with comments.  This is necessary, for
24372 # example, in the case of _POSIX_SOURCE, which is predefined and required
24373 # on some systems where configure will not decide to define it.
24374 cat >>conftest.undefs <<\_ACEOF
24375 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24376 _ACEOF
24377
24378 # Break up conftest.defines because some shells have a limit on the size
24379 # of here documents, and old seds have small limits too (100 cmds).
24380 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24381 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24382 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24383 echo '  :' >>$CONFIG_STATUS
24384 rm -f conftest.tail
24385 while grep . conftest.defines >/dev/null
24386 do
24387   # Write a limited-size here document to $tmp/defines.sed.
24388   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24389   # Speed up: don't consider the non `#define' lines.
24390   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24391   # Work around the forget-to-reset-the-flag bug.
24392   echo 't clr' >>$CONFIG_STATUS
24393   echo ': clr' >>$CONFIG_STATUS
24394   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24395   echo 'CEOF
24396   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24397   rm -f $tmp/in
24398   mv $tmp/out $tmp/in
24399 ' >>$CONFIG_STATUS
24400   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24401   rm -f conftest.defines
24402   mv conftest.tail conftest.defines
24403 done
24404 rm -f conftest.defines
24405 echo '  fi # grep' >>$CONFIG_STATUS
24406 echo >>$CONFIG_STATUS
24407
24408 # Break up conftest.undefs because some shells have a limit on the size
24409 # of here documents, and old seds have small limits too (100 cmds).
24410 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24411 rm -f conftest.tail
24412 while grep . conftest.undefs >/dev/null
24413 do
24414   # Write a limited-size here document to $tmp/undefs.sed.
24415   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24416   # Speed up: don't consider the non `#undef'
24417   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24418   # Work around the forget-to-reset-the-flag bug.
24419   echo 't clr' >>$CONFIG_STATUS
24420   echo ': clr' >>$CONFIG_STATUS
24421   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24422   echo 'CEOF
24423   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24424   rm -f $tmp/in
24425   mv $tmp/out $tmp/in
24426 ' >>$CONFIG_STATUS
24427   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24428   rm -f conftest.undefs
24429   mv conftest.tail conftest.undefs
24430 done
24431 rm -f conftest.undefs
24432
24433 cat >>$CONFIG_STATUS <<\_ACEOF
24434   # Let's still pretend it is `configure' which instantiates (i.e., don't
24435   # use $as_me), people would be surprised to read:
24436   #    /* config.h.  Generated by config.status.  */
24437   if test x"$ac_file" = x-; then
24438     echo "/* Generated by configure.  */" >$tmp/config.h
24439   else
24440     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24441   fi
24442   cat $tmp/in >>$tmp/config.h
24443   rm -f $tmp/in
24444   if test x"$ac_file" != x-; then
24445     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24446       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24447 echo "$as_me: $ac_file is unchanged" >&6;}
24448     else
24449       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24450 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24451          X"$ac_file" : 'X\(//\)[^/]' \| \
24452          X"$ac_file" : 'X\(//\)$' \| \
24453          X"$ac_file" : 'X\(/\)' \| \
24454          .     : '\(.\)' 2>/dev/null ||
24455 echo X"$ac_file" |
24456     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24457           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24458           /^X\(\/\/\)$/{ s//\1/; q; }
24459           /^X\(\/\).*/{ s//\1/; q; }
24460           s/.*/./; q'`
24461       { if $as_mkdir_p; then
24462     mkdir -p "$ac_dir"
24463   else
24464     as_dir="$ac_dir"
24465     as_dirs=
24466     while test ! -d "$as_dir"; do
24467       as_dirs="$as_dir $as_dirs"
24468       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24470          X"$as_dir" : 'X\(//\)[^/]' \| \
24471          X"$as_dir" : 'X\(//\)$' \| \
24472          X"$as_dir" : 'X\(/\)' \| \
24473          .     : '\(.\)' 2>/dev/null ||
24474 echo X"$as_dir" |
24475     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24476           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24477           /^X\(\/\/\)$/{ s//\1/; q; }
24478           /^X\(\/\).*/{ s//\1/; q; }
24479           s/.*/./; q'`
24480     done
24481     test ! -n "$as_dirs" || mkdir $as_dirs
24482   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24483 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24484    { (exit 1); exit 1; }; }; }
24485
24486       rm -f $ac_file
24487       mv $tmp/config.h $ac_file
24488     fi
24489   else
24490     cat $tmp/config.h
24491     rm -f $tmp/config.h
24492   fi
24493 done
24494 _ACEOF
24495
24496 cat >>$CONFIG_STATUS <<\_ACEOF
24497
24498 { (exit 0); exit 0; }
24499 _ACEOF
24500 chmod +x $CONFIG_STATUS
24501 ac_clean_files=$ac_clean_files_save
24502
24503
24504 # configure is writing to config.log, and then calls config.status.
24505 # config.status does its own redirection, appending to config.log.
24506 # Unfortunately, on DOS this fails, as config.log is still kept open
24507 # by configure, so config.status won't be able to write to it; its
24508 # output is simply discarded.  So we exec the FD to /dev/null,
24509 # effectively closing config.log, so it can be properly (re)opened and
24510 # appended to by config.status.  When coming back to configure, we
24511 # need to make the FD available again.
24512 if test "$no_create" != yes; then
24513   ac_cs_success=:
24514   ac_config_status_args=
24515   test "$silent" = yes &&
24516     ac_config_status_args="$ac_config_status_args --quiet"
24517   exec 5>/dev/null
24518   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24519   exec 5>>config.log
24520   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24521   # would make configure fail if this is the last instruction.
24522   $ac_cs_success || { (exit 1); exit 1; }
24523 fi
24524
24525 #
24526 # CONFIG_SUBDIRS section.
24527 #
24528 if test "$no_recursion" != yes; then
24529
24530   # Remove --cache-file and --srcdir arguments so they do not pile up.
24531   ac_sub_configure_args=
24532   ac_prev=
24533   for ac_arg in $ac_configure_args; do
24534     if test -n "$ac_prev"; then
24535       ac_prev=
24536       continue
24537     fi
24538     case $ac_arg in
24539     -cache-file | --cache-file | --cache-fil | --cache-fi \
24540     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24541       ac_prev=cache_file ;;
24542     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24543     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24544     | --c=*)
24545       ;;
24546     --config-cache | -C)
24547       ;;
24548     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24549       ac_prev=srcdir ;;
24550     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24551       ;;
24552     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24553       ac_prev=prefix ;;
24554     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24555       ;;
24556     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24557     esac
24558   done
24559
24560   # Always prepend --prefix to ensure using the same prefix
24561   # in subdir configurations.
24562   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24563
24564   ac_popdir=`pwd`
24565   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24566
24567     # Do not complain, so a configure script can configure whichever
24568     # parts of a large source tree are present.
24569     test -d $srcdir/$ac_dir || continue
24570
24571     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24572 echo "$as_me: configuring in $ac_dir" >&6;}
24573     { if $as_mkdir_p; then
24574     mkdir -p "$ac_dir"
24575   else
24576     as_dir="$ac_dir"
24577     as_dirs=
24578     while test ! -d "$as_dir"; do
24579       as_dirs="$as_dir $as_dirs"
24580       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24581 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24582          X"$as_dir" : 'X\(//\)[^/]' \| \
24583          X"$as_dir" : 'X\(//\)$' \| \
24584          X"$as_dir" : 'X\(/\)' \| \
24585          .     : '\(.\)' 2>/dev/null ||
24586 echo X"$as_dir" |
24587     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24588           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24589           /^X\(\/\/\)$/{ s//\1/; q; }
24590           /^X\(\/\).*/{ s//\1/; q; }
24591           s/.*/./; q'`
24592     done
24593     test ! -n "$as_dirs" || mkdir $as_dirs
24594   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24595 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24596    { (exit 1); exit 1; }; }; }
24597
24598     ac_builddir=.
24599
24600 if test "$ac_dir" != .; then
24601   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24602   # A "../" for each directory in $ac_dir_suffix.
24603   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24604 else
24605   ac_dir_suffix= ac_top_builddir=
24606 fi
24607
24608 case $srcdir in
24609   .)  # No --srcdir option.  We are building in place.
24610     ac_srcdir=.
24611     if test -z "$ac_top_builddir"; then
24612        ac_top_srcdir=.
24613     else
24614        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24615     fi ;;
24616   [\\/]* | ?:[\\/]* )  # Absolute path.
24617     ac_srcdir=$srcdir$ac_dir_suffix;
24618     ac_top_srcdir=$srcdir ;;
24619   *) # Relative path.
24620     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24621     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24622 esac
24623 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24624 # absolute.
24625 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24626 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24627 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24628 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24629
24630
24631     cd $ac_dir
24632
24633     # Check for guested configure; otherwise get Cygnus style configure.
24634     if test -f $ac_srcdir/configure.gnu; then
24635       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24636     elif test -f $ac_srcdir/configure; then
24637       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24638     elif test -f $ac_srcdir/configure.in; then
24639       ac_sub_configure=$ac_configure
24640     else
24641       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24642 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24643       ac_sub_configure=
24644     fi
24645
24646     # The recursion is here.
24647     if test -n "$ac_sub_configure"; then
24648       # Make the cache file name correct relative to the subdirectory.
24649       case $cache_file in
24650       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24651       *) # Relative path.
24652         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24653       esac
24654
24655       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24656 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24657       # The eval makes quoting arguments work.
24658       eval $ac_sub_configure $ac_sub_configure_args \
24659            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24660         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24661 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24662    { (exit 1); exit 1; }; }
24663     fi
24664
24665     cd $ac_popdir
24666   done
24667 fi
24668
24669
24670           ac_config_commands="$ac_config_commands default-1"
24671
24672           ac_config_commands="$ac_config_commands default-2"
24673
24674           ac_config_commands="$ac_config_commands default-3"
24675
24676           ac_config_commands="$ac_config_commands default-4"
24677